{"openapi":"3.1.0","info":{"title":"PageMarkets","version":"1.2.0","description":"Reading web pages with space for sale and image boards needs no key; answers are reused for up to a minute and never name an owner. Writing (signing a user in, with a wallet or through the app's own Privy app; buying and writing web page slots and image board blocks; selling the user's own page or picture, handing a page board over, and lowering a picture's prices; selling, buying and renting blocks; renting slots and pricing the ones the user owns; the user's own balances, holdings, notices, cash-out and webhooks for new notices) is in closed beta: it needs an app key, which you can ask for at onboard@pagemarkets.com. Writes are for an app's server, never a browser. The user's wallet signs every transaction; for a user signed in through Privy, PageMarkets pays its gas."},"servers":[{"url":"https://pagemarkets.com"}],"tags":[{"name":"Web pages","description":"Pages with space for sale, and their slots."},{"name":"Image boards","description":"Image boards, their blocks and their newest sales."},{"name":"Signing in","description":"A token that acts for one user, from their wallet or from your Privy app."},{"name":"The user","description":"Their balances, what they own, and what has happened to it."},{"name":"Buying and writing slots","description":"Buy a web page slot for the user, then put their words or picture in it."},{"name":"Image board blocks","description":"Buy areas of an image board for the user, then set a block’s picture and link."},{"name":"Selling a page","description":"Put the user’s own page up for sale, then run it: the tag, prices, slots, the listing and pictures waiting for them."},{"name":"Renting and pricing slots","description":"Rent a web page slot for the user and extend the term; offer a slot they own for rent, and set the price it comes down from."},{"name":"GitHub repos","description":"GitHub repos with parts for sale: README spaces, documents, pictures and code, each with its risk tier."},{"name":"Buying and writing repo parts","description":"Buy a part of a GitHub repo for the user, then put their words or picture in it; our App commits it."},{"name":"Selling a repo","description":"Connect the user’s GitHub through our App, choose the files and parts of a repo they run, and put them on sale."},{"name":"Bots","description":"Bots whose minds are lines anyone can buy: a line’s words are read in price order."},{"name":"Buying and writing bot lines","description":"Buy a line of a bot’s mind for the user, try words in it first, then put their words in it."},{"name":"Making and running a bot","description":"Make a bot from a draft, as the creation screen does, and use the holder’s powers."},{"name":"Image board selling and renting","description":"Put the user’s picture or one of their NFTs up for sale as an image board and lower its prices; sell a block, buy one that is for sale, offer one for rent, rent it and extend the term."}],"paths":{"/v1/pages":{"get":{"tags":["Web pages"],"summary":"Web pages with space for sale","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string"},"description":"Search words."},{"name":"category","in":"query","required":false,"schema":{"type":"string"},"description":"A category slug."},{"name":"sort","in":"query","required":false,"schema":{"type":"string"},"description":"`price` or `open`."}],"responses":{"200":{"description":"The pages.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageList"}}}},"503":{"description":"Could not read right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/pages/{site}":{"get":{"tags":["Web pages"],"summary":"One web page and its listed slots","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string"},"description":"The board address."}],"responses":{"200":{"description":"The page.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page"}}}},"400":{"description":"Not an address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not listed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Could not read right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/pages/{site}/slots/{key}":{"get":{"tags":["Web pages"],"summary":"One slot, as checkout sees it","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string"},"description":"The board address."},{"name":"key","in":"path","required":true,"schema":{"type":"string"},"description":"The slot key."}],"responses":{"200":{"description":"The slot.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlotDetail"}}}},"400":{"description":"Bad address or key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such slot.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Could not read right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/images":{"get":{"tags":["Image boards"],"summary":"Image boards","responses":{"200":{"description":"The boards.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageBoardList"}}}},"404":{"description":"Image boards are off here.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Could not read right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/images/{id}":{"get":{"tags":["Image boards"],"summary":"One image board with every block","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The board id, or the name in its address (`/images/<name>`)."}],"responses":{"200":{"description":"The board.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageBoard"}}}},"404":{"description":"No such board.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Could not read right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/images/{id}/blocks/{block}":{"get":{"tags":["Image boards"],"summary":"One block of an image board","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The board id or name."},{"name":"block","in":"path","required":true,"schema":{"type":"string"},"description":"The block number, from 1."}],"responses":{"200":{"description":"The block.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlockDetail"}}}},"400":{"description":"Not a block number.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such block.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Could not read right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/images/{id}/activity":{"get":{"tags":["Image boards"],"summary":"An image board's newest sales and price cuts","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The board id or name."}],"responses":{"200":{"description":"Newest first.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Activity"}}}},"404":{"description":"No such board.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Could not read right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/auth/nonce":{"post":{"tags":["Signing in"],"summary":"Start signing a user in","security":[{"appKey":[]}],"responses":{"200":{"description":"What goes in the message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Challenge"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/auth/verify":{"post":{"tags":["Signing in"],"summary":"Finish signing a user in, for a token","security":[{"appKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyBody"}}}},"responses":{"200":{"description":"Signed in.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignedIn"}}}},"400":{"description":"Missing fields, or an expired challenge.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"The message or signature did not check out, or was used before.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"The wallet is linked to another sign-in.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/auth/sign-out":{"post":{"tags":["Signing in"],"summary":"End the user's token now","security":[{"appKey":[],"userToken":[]}],"responses":{"200":{"description":"Ended.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignedOut"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/auth/privy":{"post":{"tags":["Signing in"],"summary":"Sign in a user the app signed in with its own Privy app, for a token","security":[{"appKey":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrivySignInBody"}}}},"responses":{"200":{"description":"Signed in. A user with no wallet gets one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignedIn"}}}},"400":{"description":"No access token, or a malformed signer id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"The access token is not one of this app's Privy app, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"This app does not sign people in with Privy, or the key is unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"The person's account belongs to another app.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/me":{"get":{"tags":["The user"],"summary":"Who the token is for: balances, money owed, where to top up","security":[{"appKey":[],"userToken":[]}],"responses":{"200":{"description":"The account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Me"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/me/cash-out":{"post":{"tags":["The user"],"summary":"Pay out what one board owes the user: sent and paid for by PageMarkets, signed by nobody","security":[{"appKey":[],"userToken":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CashOutBody"}}}},"responses":{"200":{"description":"Sent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CashedOut"}}}},"400":{"description":"No `kind` or `board`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"No such board.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"Nothing waiting, nothing past its holding period yet, or it did not go through; the message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/me/holdings":{"get":{"tags":["The user"],"summary":"The slots and blocks the user owns","security":[{"appKey":[],"userToken":[]}],"responses":{"200":{"description":"What they own now.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Holdings"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/me/notifications":{"get":{"tags":["The user"],"summary":"The user's newest notices","security":[{"appKey":[],"userToken":[]}],"responses":{"200":{"description":"Newest first, at most fifty.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Notifications"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/me/notifications/read":{"post":{"tags":["The user"],"summary":"Mark notices read, up to the newest one shown","security":[{"appKey":[],"userToken":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarkReadBody"}}}},"responses":{"200":{"description":"Marked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarkedRead"}}}},"400":{"description":"No `upTo`, or not a time.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/me/boards":{"get":{"tags":["Selling a page"],"summary":"The web page boards the user publishes","security":[{"appKey":[],"userToken":[]}],"responses":{"200":{"description":"Their boards.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MyBoards"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}},"post":{"tags":["Selling a page"],"summary":"Put a page's spaces up for sale: makes the board, which we pay for","security":[{"appKey":[],"userToken":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewBoardBody"}}}},"responses":{"200":{"description":"Made. Next: `install`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MyBoard"}}}},"400":{"description":"No page, no slots, or a slot the picker's rules refuse; the message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"No new boards right now, or this user has as many as one account may.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/me/boards/check":{"post":{"tags":["Selling a page"],"summary":"Check a page and its slots before making the board: the picker's rules, and whether our crawl finds each anchored slot","security":[{"appKey":[],"userToken":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewBoardBody"}}}},"responses":{"200":{"description":"Nothing is made.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BoardCheck"}}}},"400":{"description":"No JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/me/boards/{site}":{"get":{"tags":["Selling a page"],"summary":"One board the user publishes","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string"},"description":"The board address."}],"responses":{"200":{"description":"The board.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MyBoard"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"The user publishes no board there.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/me/boards/{site}/install":{"get":{"tags":["Selling a page"],"summary":"What the publisher pastes onto their page","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string"},"description":"The board address."}],"responses":{"200":{"description":"The tag, and any markup.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Install"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"The user publishes no board there.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/me/boards/{site}/install/check":{"post":{"tags":["Selling a page"],"summary":"Look at the page now: is the board live?","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string"},"description":"The board address."}],"responses":{"200":{"description":"What the page shows.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstallCheck"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"The user publishes no board there.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"The page could not be read just now.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/me/boards/{site}/slots":{"post":{"tags":["Selling a page"],"summary":"Prepare adding slots to the board","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string"},"description":"The board address."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddSlotsBody"}}}},"responses":{"200":{"description":"Send it, then `slots/confirm`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerTransaction"}}}},"400":{"description":"A slot the picker's rules refuse.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"The user publishes no board there.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"The chain refuses one, for the reason given.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/me/boards/{site}/slots/confirm":{"post":{"tags":["Selling a page"],"summary":"Record the added slots once mined","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string"},"description":"The board address."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmSlotsBody"}}}},"responses":{"200":{"description":"On the board.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlotsAdded"}}}},"400":{"description":"No hash, or the slots differ.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"The user publishes no board there.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"The chain does not have them.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/me/boards/{site}/slots/{key}":{"post":{"tags":["Selling a page"],"summary":"Change a slot's label or word limit (no transaction)","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string"},"description":"The board address."},{"name":"key","in":"path","required":true,"schema":{"type":"string"},"description":"The slot key."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlotChangeBody"}}}},"responses":{"200":{"description":"Saved.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Saved"}}}},"400":{"description":"Neither field.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"The user publishes no board there.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"Refused, for the reason given.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/me/boards/{site}/slots/{key}/price":{"post":{"tags":["Selling a page"],"summary":"Prepare a new price for a slot","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string"},"description":"The board address."},{"name":"key","in":"path","required":true,"schema":{"type":"string"},"description":"The slot key."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriceBody"}}}},"responses":{"200":{"description":"Send it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerTransaction"}}}},"400":{"description":"No price.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"The user publishes no board there.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"Too far, too soon, or not a slot; the message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/me/boards/{site}/slots/{key}/availability":{"post":{"tags":["Selling a page"],"summary":"Prepare taking an unsold slot off sale, or back on","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string"},"description":"The board address."},{"name":"key","in":"path","required":true,"schema":{"type":"string"},"description":"The slot key."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnSaleBody"}}}},"responses":{"200":{"description":"Send it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerTransaction"}}}},"400":{"description":"No `onSale`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"Not their board, or no such slot.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"Refused, for the reason given.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/me/boards/{site}/listing":{"post":{"tags":["Selling a page"],"summary":"What the directory says about the page","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string"},"description":"The board address."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListingBody"}}}},"responses":{"200":{"description":"Saved.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Saved"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"The user publishes no board there.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"A link that is not a web address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/me/boards/{site}/listing/picture":{"post":{"tags":["Selling a page"],"summary":"The picture the directory shows for the page","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string"},"description":"The board address."}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/ListingPictureBody"}}}},"responses":{"200":{"description":"Saved.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Saved"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"The user publishes no board there.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"Not a picture we take.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"413":{"description":"Too big.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/me/boards/{site}/policy":{"post":{"tags":["Selling a page"],"summary":"What the publisher accepts on their page","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string"},"description":"The board address."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyBody"}}}},"responses":{"200":{"description":"Saved.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Saved"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"The user publishes no board there.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/me/boards/{site}/handover":{"get":{"tags":["Selling a page"],"summary":"Whether an address has asked for the board","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string"},"description":"The board address."},{"name":"to","in":"query","required":true,"schema":{"type":"string"},"description":"The address the board would go to."}],"responses":{"200":{"description":"Where the handover stands.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Handover"}}}},"400":{"description":"No `to`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"The user publishes no board there.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"Not an address the board can go to.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}},"post":{"tags":["Selling a page"],"summary":"Prepare handing the board to an address that asked for it","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string"},"description":"The board address."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HandoverBody"}}}},"responses":{"200":{"description":"Send it, then `handover/confirm`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerTransaction"}}}},"400":{"description":"No `to`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"The user publishes no board there.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"That address has not asked, its request expired, or the board already moved.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/me/boards/{site}/handover/confirm":{"post":{"tags":["Selling a page"],"summary":"Record the handover once the chain has it","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string"},"description":"The board address."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HandoverConfirmBody"}}}},"responses":{"200":{"description":"Handed over: the board leaves the user's boards.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HandedOver"}}}},"400":{"description":"No `to` or `txHash`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"The user publishes no board there.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"The transaction failed, or the board has not moved.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/me/boards/{site}/disconnect":{"get":{"tags":["Selling a page"],"summary":"Whether the board can be disconnected","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string"},"description":"The board address."}],"responses":{"200":{"description":"Where it stands.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisconnectCheck"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"The user publishes no board there.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"Already disconnected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}},"post":{"tags":["Selling a page"],"summary":"Prepare disconnecting the board: stop every sale","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string"},"description":"The board address."}],"responses":{"200":{"description":"Send the transaction if there is one, then `disconnect/confirm`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisconnectPlan"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"The user publishes no board there.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"Someone else owns or rents a slot, it is already disconnected, or the gas could not be paid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/me/boards/{site}/disconnect/confirm":{"post":{"tags":["Selling a page"],"summary":"Disconnect the board once sales are stopped","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string"},"description":"The board address."}],"responses":{"200":{"description":"Disconnected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Disconnected"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"The user publishes no board there.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"Sales are not stopped yet, someone bought a slot in the same moment (start selling again or leave it paused), or it is already disconnected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/me/boards/{site}/reviews":{"get":{"tags":["Selling a page"],"summary":"Pictures waiting for the publisher","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string"},"description":"The board address."}],"responses":{"200":{"description":"Newest first.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Reviews"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"The user publishes no board there.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/me/boards/{site}/reviews/{hash}":{"post":{"tags":["Selling a page"],"summary":"Allow or refuse a held picture","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string"},"description":"The board address."},{"name":"hash","in":"path","required":true,"schema":{"type":"string"},"description":"The picture's hash."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewBody"}}}},"responses":{"200":{"description":"Decided.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewDecided"}}}},"400":{"description":"No `allow`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"The user publishes no board there.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"Already decided, or one we cannot host.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/me/boards/{site}/reviews/{hash}/picture":{"get":{"tags":["Selling a page"],"summary":"A held picture itself","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string"},"description":"The board address."},{"name":"hash","in":"path","required":true,"schema":{"type":"string"},"description":"The picture's hash."}],"responses":{"200":{"description":"The picture.","content":{"image/webp":{"schema":{"type":"string","format":"binary"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"Not their board, or no such picture.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/pages/{site}/slots/{key}/buy":{"post":{"tags":["Buying and writing slots"],"summary":"Prepare buying a slot for the user","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string"},"description":"The board address."},{"name":"key","in":"path","required":true,"schema":{"type":"string"},"description":"The slot key."}],"responses":{"200":{"description":"What the user's wallet sends.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuyPlan"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"No web page slot there.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"Checkout refuses, for the reason given.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/pages/{site}/slots/{key}/buy/confirm":{"post":{"tags":["Buying and writing slots"],"summary":"Record a mined purchase","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string"},"description":"The board address."},{"name":"key","in":"path","required":true,"schema":{"type":"string"},"description":"The slot key."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmBody"}}}},"responses":{"200":{"description":"Recorded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Recorded"}}}},"400":{"description":"No transaction hash.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"No web page slot there.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"Not a mined purchase of this slot by this user.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/pages/{site}/slots/{key}/content":{"post":{"tags":["Buying and writing slots"],"summary":"Stage what a slot shows, for the user to put there","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string"},"description":"The board address."},{"name":"key","in":"path","required":true,"schema":{"type":"string"},"description":"The slot key."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WordsBody"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/PictureBody"}}}},"responses":{"200":{"description":"Staged; the user sends `transaction`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Staged"}}}},"400":{"description":"Neither words nor a picture.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"No web page slot there.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"Refused, for the reason given: not theirs to write, too long, the picture refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"413":{"description":"Too big.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/images/{id}/buy":{"post":{"tags":["Image board blocks"],"summary":"Prepare buying areas of an image board for the user","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The board id or name."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AreasBody"}}}},"responses":{"200":{"description":"The total, and the permit to sign.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlockBuyPlan"}}}},"400":{"description":"No areas, or not shaped right.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"No such board.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"The board page would refuse this too, for the reason given.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/images/{id}/buy/transaction":{"post":{"tags":["Image board blocks"],"summary":"Build the buy from the signed permit","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The board id or name."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlockBuyTxBody"}}}},"responses":{"200":{"description":"The transaction the user's wallet sends.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlockBuyTransaction"}}}},"400":{"description":"Not the ticket `buy` gave this user for this board, or no signature.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"No such board.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/images/{id}/buy/confirm":{"post":{"tags":["Image board blocks"],"summary":"Record a mined block buy","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The board id or name."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmBody"}}}},"responses":{"200":{"description":"The blocks it made.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlocksBought"}}}},"400":{"description":"No transaction hash.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"No such board.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"Not a mined buy on this board for this user.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/images/{id}/blocks/{block}/picture":{"post":{"tags":["Image board blocks"],"summary":"Stage a block's picture, for the user to put there","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The board id or name."},{"name":"block","in":"path","required":true,"schema":{"type":"string"},"description":"The block number, from 1."}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/BlockPictureBody"}}}},"responses":{"200":{"description":"Staged; the user sends `transaction`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlockPictureStaged"}}}},"400":{"description":"No picture, or not a block number.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"No such board.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"Refused, for the reason given: not theirs, the wrong size, the picture refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"413":{"description":"Too big.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/images/{id}/blocks/{block}/picture/confirm":{"post":{"tags":["Image board blocks"],"summary":"Record a block's mined picture, and redraw the board","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The board id or name."},{"name":"block","in":"path","required":true,"schema":{"type":"string"},"description":"The block number, from 1."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PictureConfirmBody"}}}},"responses":{"200":{"description":"Recorded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PictureConfirmed"}}}},"400":{"description":"No hash, or not a block number.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"No such board.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"The block does not show that picture yet, or is not theirs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/images/{id}/blocks/{block}/link":{"post":{"tags":["Image board blocks"],"summary":"Set or remove where a click on a block goes","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The board id or name."},{"name":"block","in":"path","required":true,"schema":{"type":"string"},"description":"The block number, from 1."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkBody"}}}},"responses":{"200":{"description":"Set.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlockLink"}}}},"400":{"description":"Not a link or null, or not a block number.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"No such board.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"Not theirs to set, or not a link PageMarkets can use.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/pages/{site}/slots/{key}/rent":{"post":{"tags":["Renting and pricing slots"],"summary":"Prepare renting a slot for the user","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string"},"description":"The board address."},{"name":"key","in":"path","required":true,"schema":{"type":"string"},"description":"The slot key."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RentSlotBody"}}}},"responses":{"200":{"description":"The cost, and what the wallet sends.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RentSlotPlan"}}}},"400":{"description":"No `shownRate` or `seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"No web page slot there.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"The booking screen would refuse this too, for the reason given.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/pages/{site}/slots/{key}/rent/confirm":{"post":{"tags":["Renting and pricing slots"],"summary":"Record a mined booking","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string"},"description":"The board address."},{"name":"key","in":"path","required":true,"schema":{"type":"string"},"description":"The slot key."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TxBody"}}}},"responses":{"200":{"description":"Recorded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Recorded"}}}},"400":{"description":"No transaction hash.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"No web page slot there.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"Not a mined booking of this slot for this user.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/pages/{site}/slots/{key}/rent/extend":{"post":{"tags":["Renting and pricing slots"],"summary":"Prepare a longer term for the user while they rent the slot","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string"},"description":"The board address."},{"name":"key","in":"path","required":true,"schema":{"type":"string"},"description":"The slot key."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RentSlotBody"}}}},"responses":{"200":{"description":"The cost, and what the wallet sends.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RentSlotPlan"}}}},"400":{"description":"No `shownRate` or `seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"No web page slot there.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"Not their term, the offer ended or moved, or not a longer term offered.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/pages/{site}/slots/{key}/rent-listing":{"post":{"tags":["Renting and pricing slots"],"summary":"Prepare offering the user's slot for rent","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string"},"description":"The board address."},{"name":"key","in":"path","required":true,"schema":{"type":"string"},"description":"The slot key."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RentListingBody"}}}},"responses":{"200":{"description":"Send it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RentOffer"}}}},"400":{"description":"No `perDay` or `days`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"No web page slot there.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"Not their slot, or a rate or term the board refuses.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}},"delete":{"tags":["Renting and pricing slots"],"summary":"Prepare taking the slot off the rent market; a running term carries on","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string"},"description":"The board address."},{"name":"key","in":"path","required":true,"schema":{"type":"string"},"description":"The slot key."}],"responses":{"200":{"description":"Send it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTransaction"}}}},"400":{"description":"Not a slot.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"No web page slot there.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"Not their slot.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/pages/{site}/slots/{key}/ask":{"post":{"tags":["Renting and pricing slots"],"summary":"Prepare the user's ask: the price their slot's take price comes down from","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string"},"description":"The board address."},{"name":"key","in":"path","required":true,"schema":{"type":"string"},"description":"The slot key."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskBody"}}}},"responses":{"200":{"description":"Send it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlotAsk"}}}},"400":{"description":"No `price`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"No web page slot there.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"Not their slot, or outside the board's limits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}},"delete":{"tags":["Renting and pricing slots"],"summary":"Prepare clearing the ask: the price comes down from what they paid again","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string"},"description":"The board address."},{"name":"key","in":"path","required":true,"schema":{"type":"string"},"description":"The slot key."}],"responses":{"200":{"description":"Send it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTransaction"}}}},"400":{"description":"Not a slot.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"No web page slot there.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"Not their slot, or no ask to clear.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/me/images":{"post":{"tags":["Image board selling and renting"],"summary":"Take the user's picture to sell as an image board","security":[{"appKey":[],"userToken":[]}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/PictureUploadBody"}}}},"responses":{"200":{"description":"Kept as a draft; nothing is for sale yet.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PictureDraft"}}}},"400":{"description":"No picture in `file`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"Not a picture PageMarkets takes, or it could not be checked just now; the message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"413":{"description":"Over 5 MB.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/repos":{"get":{"tags":["GitHub repos"],"summary":"Every GitHub repo with parts for sale","responses":{"200":{"description":"Safest first, as the directory orders them.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepoList"}}}},"503":{"description":"Could not read right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/repos/{site}":{"get":{"tags":["GitHub repos"],"summary":"One repo board and every part of it","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string"},"description":"The board address."}],"responses":{"200":{"description":"Its parts, with tier, price and whether each sells.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Repo"}}}},"400":{"description":"Not a board address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No repo board has that address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Could not read right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/repos/{site}/parts/{key}/buy":{"post":{"tags":["Buying and writing repo parts"],"summary":"Prepare buying a repo part for the user","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string"},"description":"The board address."},{"name":"key","in":"path","required":true,"schema":{"type":"string"},"description":"The part's key."}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepoBuyBody"}}}},"responses":{"200":{"description":"Send `transactions` in order, then `buy/confirm`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuyPlan"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"No repo part there.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"Checkout refuses it, for the reason given: off sale, a cooldown, more funds needed, or a `consent` not agreed to.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/repos/{site}/parts/{key}/buy/confirm":{"post":{"tags":["Buying and writing repo parts"],"summary":"Record the purchase once mined","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string"},"description":"The board address."},{"name":"key","in":"path","required":true,"schema":{"type":"string"},"description":"The part's key."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmBody"}}}},"responses":{"200":{"description":"Recorded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Recorded"}}}},"400":{"description":"No `txHash`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"No repo part there.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"Not a mined purchase of this part by this user.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/repos/{site}/parts/{key}/content":{"post":{"tags":["Buying and writing repo parts"],"summary":"Stage what the part will hold, for the user to put there","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string"},"description":"The board address."},{"name":"key","in":"path","required":true,"schema":{"type":"string"},"description":"The part's key."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepoWordsBody"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/RepoPictureBody"}}}},"responses":{"200":{"description":"Send the `edit`, then `content/commit`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepoStaged"}}}},"400":{"description":"No words or picture.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"No repo part there.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"The user may not write it, or the writer refuses what was sent; the message says why.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"413":{"description":"Too big.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/repos/{site}/parts/{key}/content/check":{"post":{"tags":["Buying and writing repo parts"],"summary":"Whether staging would take these words, as the user types","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string"},"description":"The board address."},{"name":"key","in":"path","required":true,"schema":{"type":"string"},"description":"The part's key."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepoWordsBody"}}}},"responses":{"200":{"description":"The writer's answer.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepoWordsCheck"}}}},"400":{"description":"No `words`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"No repo part there.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/repos/{site}/parts/{key}/content/commit":{"post":{"tags":["Buying and writing repo parts"],"summary":"Commit the part to the repo now, once its `edit` is mined","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string"},"description":"The board address."},{"name":"key","in":"path","required":true,"schema":{"type":"string"},"description":"The part's key."}],"responses":{"200":{"description":"What the repo shows now.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepoCommitted"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"No repo part there.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"The user may not write it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/me/repos/connect":{"post":{"tags":["Selling a repo"],"summary":"Start connecting the user's GitHub, through our App","security":[{"appKey":[],"userToken":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepoConnectBody"}}}},"responses":{"200":{"description":"Send the user to `url`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepoConnect"}}}},"400":{"description":"No `returnTo` on one of your domains.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/me/repos":{"get":{"tags":["Selling a repo"],"summary":"The repos the user proved they run","security":[{"appKey":[],"userToken":[]}],"responses":{"200":{"description":"From their last GitHub connect.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MyRepos"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/me/repos/{repo}/files":{"get":{"tags":["Selling a repo"],"summary":"What one file of the repo could be sold as","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"repo","in":"path","required":true,"schema":{"type":"string"},"description":"GitHub's id for the repo, as `/v1/me/repos` gives it."},{"name":"path","in":"query","required":true,"schema":{"type":"string"},"description":"A file in the repo."}],"responses":{"200":{"description":"The file.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepoFile"}}}},"400":{"description":"No `path`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"Not a file we can sell, the proof is not fresh, or our App no longer reaches the repo; the message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/me/repos/{repo}/consents":{"post":{"tags":["Selling a repo"],"summary":"The boxes the owner ticks before these parts can be sold","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"repo","in":"path","required":true,"schema":{"type":"string"},"description":"GitHub's id for the repo, as `/v1/me/repos` gives it."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepoPartsBody"}}}},"responses":{"200":{"description":"Empty for tiers 1 and 2.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepoConsents"}}}},"400":{"description":"No `parts`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"The proof is not fresh, our App no longer reaches the repo, or GitHub could not be read.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/me/repos/{repo}/board":{"post":{"tags":["Selling a repo"],"summary":"Put the parts on sale: our App marks them, and we make the board and pay for it","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"repo","in":"path","required":true,"schema":{"type":"string"},"description":"GitHub's id for the repo, as `/v1/me/repos` gives it."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepoBoardBody"}}}},"responses":{"200":{"description":"Made.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepoBoardMade"}}}},"400":{"description":"No `parts` or `profile`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"The set-up screen refuses it, for the reasons given: a part, a missing consent, a private repo, an App on every repo, or a board already made.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/bots/{site}":{"get":{"tags":["Bots"],"summary":"One bot: its lines and recent posts","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string"},"description":"The board address."}],"responses":{"200":{"description":"The bot.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Bot"}}}},"400":{"description":"Not an address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No bot has that address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Could not read right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/bots/{site}/lines/{key}/buy":{"post":{"tags":["Buying and writing bot lines"],"summary":"Prepare buying a bot's line for the user","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string"},"description":"The board address."},{"name":"key","in":"path","required":true,"schema":{"type":"string"},"description":"The slot key."}],"responses":{"200":{"description":"Send `transactions`, then `buy/confirm`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuyPlan"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"No bot line there.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"Checkout refuses it, for the reason given.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/bots/{site}/lines/{key}/buy/confirm":{"post":{"tags":["Buying and writing bot lines"],"summary":"Record the purchase once mined","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string"},"description":"The board address."},{"name":"key","in":"path","required":true,"schema":{"type":"string"},"description":"The slot key."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmBody"}}}},"responses":{"200":{"description":"Recorded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Recorded"}}}},"400":{"description":"No `txHash`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"No bot line there.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"Not a mined purchase of this line by this user.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/bots/{site}/lines/{key}/content":{"post":{"tags":["Buying and writing bot lines"],"summary":"Stage what the line will say, or the brain line's model","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string"},"description":"The board address."},{"name":"key","in":"path","required":true,"schema":{"type":"string"},"description":"The slot key."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BotLineBody"}}}},"responses":{"200":{"description":"Send the `edit`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Staged"}}}},"400":{"description":"Neither words nor a model.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"The user may not write it, or the writer refuses it; the message says why.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/bots/{site}/lines/{key}/try":{"post":{"tags":["Buying and writing bot lines"],"summary":"What the bot would post with these words in the line","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string"},"description":"The board address."},{"name":"key","in":"path","required":true,"schema":{"type":"string"},"description":"The slot key."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BotLineTryBody"}}}},"responses":{"200":{"description":"Nothing is recorded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BotLineTried"}}}},"400":{"description":"No `words`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"Refused, for the reason given: the words, a paused bot, or its allowance spent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/me/bots/draft":{"get":{"tags":["Making and running a bot"],"summary":"The user's bot in progress, or a new one","security":[{"appKey":[],"userToken":[]}],"responses":{"200":{"description":"The draft.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BotDraft"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/me/bots/draft/{draft}":{"post":{"tags":["Making and running a bot"],"summary":"Keep the draft as typed","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"draft","in":"path","required":true,"schema":{"type":"string"},"description":"The draft's id."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BotDraftBody"}}}},"responses":{"200":{"description":"Kept.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Saved"}}}},"400":{"description":"No `spec`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"Not the user's draft, or already a bot.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/me/bots/draft/{draft}/face":{"post":{"tags":["Making and running a bot"],"summary":"Its face: a picture, decided and kept","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"draft","in":"path","required":true,"schema":{"type":"string"},"description":"The draft's id."}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/RepoPictureBody"}}}},"responses":{"200":{"description":"Kept.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BotFace"}}}},"400":{"description":"No picture.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"Not the user's draft.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"Not a picture we take, for the reason given.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/me/bots/draft/{draft}/try":{"post":{"tags":["Making and running a bot"],"summary":"What the bot would post on its first day","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"draft","in":"path","required":true,"schema":{"type":"string"},"description":"The draft's id."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BotDraftBody"}}}},"responses":{"200":{"description":"Paid from what it will start with; nothing recorded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BotDraftTried"}}}},"400":{"description":"No `spec`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"Refused, for the reason given.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/me/bots/draft/{draft}/create":{"post":{"tags":["Making and running a bot"],"summary":"Make the bot from the saved draft; we pay for it","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"draft","in":"path","required":true,"schema":{"type":"string"},"description":"The draft's id."}],"responses":{"200":{"description":"Made.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BotMade"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"The draft is not ready, for the reasons given.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/me/bots/{site}/powers":{"post":{"tags":["Making and running a bot"],"summary":"Prepare one of the holder's powers","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string"},"description":"The board address."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BotPowerBody"}}}},"responses":{"200":{"description":"Send it, then `powers/confirm`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerTransaction"}}}},"400":{"description":"No `power`, or its fields.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"Not the holder, or not allowed now, for the reason given.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/me/bots/{site}/powers/confirm":{"post":{"tags":["Making and running a bot"],"summary":"Record a power once mined","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string"},"description":"The board address."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TxBody"}}}},"responses":{"200":{"description":"Recorded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Recorded"}}}},"400":{"description":"No `txHash`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/me/nft-wallets":{"get":{"tags":["Image board selling and renting"],"summary":"The wallets the user's NFTs are read from","security":[{"appKey":[],"userToken":[]}],"responses":{"200":{"description":"Their own first.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NftWallets"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}},"post":{"tags":["Image board selling and renting"],"summary":"Link another wallet of the user's, by a message that wallet signs","description":"As signing in: ask `/v1/auth/nonce`, have the OTHER wallet sign a sign-in message (EIP-4361) naming your domain, the chain and the nonce, with `linkStatement` as its statement, and send it here with the challenge. Nothing is sent on chain.","security":[{"appKey":[],"userToken":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyBody"}}}},"responses":{"200":{"description":"Its NFTs are read from now on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletLinked"}}}},"400":{"description":"Missing fields, or an expired challenge.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's; or the message or signature is refused: another domain, another statement, or used before.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/me/nft-wallets/{address}":{"delete":{"tags":["Image board selling and renting"],"summary":"Stop reading a linked wallet","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string"},"description":"The linked wallet."}],"responses":{"200":{"description":"Done.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletRemoved"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/me/nfts":{"get":{"tags":["Image board selling and renting"],"summary":"The NFTs in the user's wallets","security":[{"appKey":[],"userToken":[]}],"responses":{"200":{"description":"By collection.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Nfts"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"The NFT index cannot be read just now, or something failed on our side.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}},"post":{"tags":["Image board selling and renting"],"summary":"Choose one to sell space on: its picture becomes a draft, as an uploaded one does","security":[{"appKey":[],"userToken":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NftChoiceBody"}}}},"responses":{"200":{"description":"Kept as a draft; nothing is for sale yet. Next: `/v1/me/images/{draft}`, which asks the chain that the user holds it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PictureDraft"}}}},"400":{"description":"No `contract` or `tokenId`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"Not an NFT of theirs we can offer, or its picture is not one we take; the message says which.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"413":{"description":"Its picture is over 5 MB.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"The NFT index or its picture cannot be read just now, or something failed on our side.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/me/images/{draft}":{"post":{"tags":["Image board selling and renting"],"summary":"Put the draft up for sale: PageMarkets makes the board and pays for it","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"draft","in":"path","required":true,"schema":{"type":"string"},"description":"As `/v1/me/images` answered it."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageBoardSetup"}}}},"responses":{"200":{"description":"On sale; the board's NFT is the user's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageBoardMade"}}}},"400":{"description":"A field missing or not shaped right.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"Not a draft of this user's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"The set-up screen would refuse it too, for the reason given.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/images/{id}/prices":{"post":{"tags":["Image board selling and renting"],"summary":"Prepare lowering every unsold square of a board the user holds","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The board id or name."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriceCutBody"}}}},"responses":{"200":{"description":"Send it, then `prices/confirm`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTransaction"}}}},"400":{"description":"No `priceBps`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"No such board.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"Not the board's holder, not a step below where it is, or no gas.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/images/{id}/prices/confirm":{"post":{"tags":["Image board selling and renting"],"summary":"Confirm the lowered prices once mined","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The board id or name."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriceCutBody"}}}},"responses":{"200":{"description":"The board asks the new prices.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Confirmed"}}}},"400":{"description":"No `priceBps`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"No such board.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"The chain does not show it yet.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/images/{id}/blocks/{block}/listing":{"post":{"tags":["Image board selling and renting"],"summary":"Prepare putting the user's block up for sale, or changing its price","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The board id or name."},{"name":"block","in":"path","required":true,"schema":{"type":"string"},"description":"The block number, from 1."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlockSaleBody"}}}},"responses":{"200":{"description":"Send it, then `listing/confirm`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlockSale"}}}},"400":{"description":"No `price`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"No such board.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"Not their block, nothing left of it, the same price, or no gas.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}},"delete":{"tags":["Image board selling and renting"],"summary":"Prepare taking the user's block off sale","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The board id or name."},{"name":"block","in":"path","required":true,"schema":{"type":"string"},"description":"The block number, from 1."}],"responses":{"200":{"description":"Send it, then `listing/confirm` with `\"0\"`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTransaction"}}}},"400":{"description":"Not a block number.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"No such board.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"Not their block, not for sale, or no gas.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/images/{id}/blocks/{block}/listing/confirm":{"post":{"tags":["Image board selling and renting"],"summary":"Record the block's price once mined","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The board id or name."},{"name":"block","in":"path","required":true,"schema":{"type":"string"},"description":"The block number, from 1."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlockSaleConfirmBody"}}}},"responses":{"200":{"description":"Recorded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Confirmed"}}}},"400":{"description":"No `price`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"No such board.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"The chain does not show that price yet.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/images/{id}/blocks/{block}/buy":{"post":{"tags":["Image board selling and renting"],"summary":"Prepare buying a block that is for sale, for the user","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The board id or name."},{"name":"block","in":"path","required":true,"schema":{"type":"string"},"description":"The block number, from 1."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResaleBody"}}}},"responses":{"200":{"description":"The price, and the permit to sign.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResalePlan"}}}},"400":{"description":"No `shownPrice`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"No such board.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"The board page would refuse this too, for the reason given.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/images/{id}/blocks/{block}/buy/transaction":{"post":{"tags":["Image board selling and renting"],"summary":"Build the purchase from the signed permit","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The board id or name."},{"name":"block","in":"path","required":true,"schema":{"type":"string"},"description":"The block number, from 1."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResaleTxBody"}}}},"responses":{"200":{"description":"Send it, then `buy/confirm`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlockBuyTransaction"}}}},"400":{"description":"No ticket or signature, or a ticket for another board, block or user.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"No such board.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/images/{id}/blocks/{block}/buy/confirm":{"post":{"tags":["Image board selling and renting"],"summary":"Record a mined purchase of a block","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The board id or name."},{"name":"block","in":"path","required":true,"schema":{"type":"string"},"description":"The block number, from 1."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TxBody"}}}},"responses":{"200":{"description":"The block is the user's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlockBought"}}}},"400":{"description":"No transaction hash.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"No such board.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"Not a mined purchase of this block for this user.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/images/{id}/blocks/{block}/rent-offer":{"post":{"tags":["Image board selling and renting"],"summary":"Prepare offering the user's block for rent","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The board id or name."},{"name":"block","in":"path","required":true,"schema":{"type":"string"},"description":"The block number, from 1."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RentOfferBody"}}}},"responses":{"200":{"description":"Send it, then `rent-offer/confirm`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RentOffer"}}}},"400":{"description":"No `perDay` or `days`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"No such board.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"Not their block, nothing left of it, not a rate or term offered, the same offer, or no gas.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}},"delete":{"tags":["Image board selling and renting"],"summary":"Prepare ending the rent offer; a running term carries on","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The board id or name."},{"name":"block","in":"path","required":true,"schema":{"type":"string"},"description":"The block number, from 1."}],"responses":{"200":{"description":"Send it, then `rent-offer/confirm` with zeros.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTransaction"}}}},"400":{"description":"Not a block number.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"No such board.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"Not their block, not offered, or no gas.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/images/{id}/blocks/{block}/rent-offer/confirm":{"post":{"tags":["Image board selling and renting"],"summary":"Record the rent offer once mined","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The board id or name."},{"name":"block","in":"path","required":true,"schema":{"type":"string"},"description":"The block number, from 1."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RentOfferConfirmBody"}}}},"responses":{"200":{"description":"Recorded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Confirmed"}}}},"400":{"description":"No `perDay` or `maxSeconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"No such board.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"The chain does not show that offer yet.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/images/{id}/blocks/{block}/rent":{"post":{"tags":["Image board selling and renting"],"summary":"Prepare renting a block for the user","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The board id or name."},{"name":"block","in":"path","required":true,"schema":{"type":"string"},"description":"The block number, from 1."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RentBody"}}}},"responses":{"200":{"description":"The cost, and the permit to sign.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RentPlan"}}}},"400":{"description":"No `shownRate` or `seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"No such board.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"The board page would refuse this too, for the reason given.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/images/{id}/blocks/{block}/rent/transaction":{"post":{"tags":["Image board selling and renting"],"summary":"Build the rent from the signed permit","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The board id or name."},{"name":"block","in":"path","required":true,"schema":{"type":"string"},"description":"The block number, from 1."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RentTxBody"}}}},"responses":{"200":{"description":"Send it, then `rent/confirm`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlockBuyTransaction"}}}},"400":{"description":"No ticket or signature, or a ticket for another board, block or user.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"No such board.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/images/{id}/blocks/{block}/rent/confirm":{"post":{"tags":["Image board selling and renting"],"summary":"Record a mined rent","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The board id or name."},{"name":"block","in":"path","required":true,"schema":{"type":"string"},"description":"The block number, from 1."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TxBody"}}}},"responses":{"200":{"description":"The term, and when it ends.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Rented"}}}},"400":{"description":"No transaction hash.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"No such board.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"Not a mined term of this block for this user.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/images/{id}/blocks/{block}/rent/extend":{"post":{"tags":["Image board selling and renting"],"summary":"Prepare a longer term for the user while they rent the block","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The board id or name."},{"name":"block","in":"path","required":true,"schema":{"type":"string"},"description":"The block number, from 1."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RentBody"}}}},"responses":{"200":{"description":"The cost, and the permit to sign.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RentPlan"}}}},"400":{"description":"No `shownRate` or `seconds`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"No such board.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"Not their term, the offer ended or moved, or not a longer term offered.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/images/{id}/blocks/{block}/rent/extend/transaction":{"post":{"tags":["Image board selling and renting"],"summary":"Build the extension from the signed permit","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The board id or name."},{"name":"block","in":"path","required":true,"schema":{"type":"string"},"description":"The block number, from 1."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RentTxBody"}}}},"responses":{"200":{"description":"Send it, then `rent/extend/confirm`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlockBuyTransaction"}}}},"400":{"description":"No ticket or signature, or a ticket for another board, block or user.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"No such board.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}},"/v1/images/{id}/blocks/{block}/rent/extend/confirm":{"post":{"tags":["Image board selling and renting"],"summary":"Record a mined extension","security":[{"appKey":[],"userToken":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"The board id or name."},{"name":"block","in":"path","required":true,"schema":{"type":"string"},"description":"The block number, from 1."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TxBody"}}}},"responses":{"200":{"description":"The new term, and when it ends.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Rented"}}}},"400":{"description":"No transaction hash.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"401":{"description":"No user token, or one expired, ended or another app's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"403":{"description":"No app key, or one PageMarkets does not know.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"404":{"description":"No such board.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"409":{"description":"Not a mined extension of this block for this user.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}},"503":{"description":"Could not do it right now; try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteError"}}}}}}}},"webhooks":{"notification":{"post":{"summary":"A new notice for one of your users","description":"Sent to the address your app gave when it asked for its key, within fifteen minutes of the notice. Signed the Standard Webhooks way: `webhook-id` (the notice's id, the same on every retry), `webhook-timestamp` (unix seconds) and `webhook-signature` (`v1,` and the base64 HMAC-SHA256 of `id.timestamp.body` under your secret). Answer with any 2xx. Anything else, a redirect or no answer in ten seconds is tried again at the next run, oldest first, until the notice is a day old.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookNotification"}}}},"responses":{"2XX":{"description":"Received."}}}}},"components":{"schemas":{"Money":{"type":"object","properties":{"units":{"type":"string","description":"Base units, as a decimal string."},"decimals":{"type":"integer","description":"How many of `units` are below one whole unit: 6 for a dollar token."},"currency":{"type":"string","description":"`usd` for dollar tokens, otherwise the chain's ticker."},"display":{"type":"string","description":"As PageMarkets prints it, e.g. `$10.00`. Exact, so a sub-cent amount never reads as zero."}},"required":["units","decimals","currency","display"],"additionalProperties":false,"description":"An amount. Never a JSON number: token amounts outgrow one."},"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["not-found","bad-request","unavailable","forbidden","unauthorized","refused","too-large"]},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false},"Format":{"type":"object","properties":{"id":{"type":"string","description":"The format's id, e.g. `rectangle`."},"label":{"type":"string","description":"Its trade name, e.g. Medium Rectangle."},"width":{"type":"integer","description":"In pixels."},"height":{"type":"integer","description":"In pixels."}},"required":["id","label","width","height"],"additionalProperties":false,"description":"The shape a buyer's picture must be. Not the slot's box on the page, which may differ or be absent."},"Escrow":{"type":"object","properties":{"window":{"type":"string","description":"How long, in words, e.g. 14 days."}},"required":["window"],"additionalProperties":false,"description":"The publisher's cut of each sale is held this long, and goes to the slot's holders if the page stops showing it."},"PageSummary":{"type":"object","properties":{"site":{"type":"string","description":"The page's id in every other call (its board's contract address)."},"name":{"type":"string","description":"The page's name, as its publisher gave it."},"domain":{"type":"string","description":"Where the page is. PageMarkets has found its tag serving there."},"description":{"anyOf":[{"type":"string","description":"The publisher's own words about the page."},{"type":"null"}]},"category":{"anyOf":[{"type":"object","properties":{"slug":{"type":"string"},"label":{"type":"string"}},"required":["slug","label"],"additionalProperties":false,"description":"One of a fixed list, e.g. news."},{"type":"null"}]},"tags":{"type":"array","items":{"type":"string","description":"The publisher's tags."}},"link":{"anyOf":[{"type":"string","description":"The publisher's one link. Render it `rel=\"nofollow ugc\"`."},{"type":"null"}]},"screenshot":{"anyOf":[{"type":"object","properties":{"url":{"type":"string"},"width":{"type":"integer"},"height":{"type":"integer"}},"required":["url","width","height"],"additionalProperties":false,"description":"A picture of the whole page, at most 4000 pixels tall."},{"type":"null"}]},"icon":{"anyOf":[{"type":"string","description":"The page's icon."},{"type":"null"}]},"lastSeen":{"anyOf":[{"type":"string","format":"date-time","description":"When PageMarkets last found its tag serving on the page."},{"type":"null"}]},"escrow":{"anyOf":[{"$ref":"#/components/schemas/Escrow"},{"type":"null"}]},"inventory":{"type":"object","properties":{"listed":{"type":"integer","description":"For sale now, or once a recent sale's cooldown ends."},"open":{"type":"integer","description":"Of those, never bought."},"buyableNow":{"type":"integer","description":"Of those, what checkout would sell this second."}},"required":["listed","open","buyableNow"],"additionalProperties":false,"description":"How many slots, by state."},"price":{"type":"object","properties":{"low":{"$ref":"#/components/schemas/Money"},"high":{"$ref":"#/components/schemas/Money"}},"required":["low","high"],"additionalProperties":false,"description":"What the next buyer pays, cheapest and dearest slot."},"url":{"type":"string","description":"The page on PageMarkets."}},"required":["site","name","domain","description","category","tags","link","screenshot","icon","lastSeen","escrow","inventory","price","url"],"additionalProperties":false,"description":"A web page with space for sale."},"Slot":{"type":"object","properties":{"key":{"type":"string","description":"The slot's id within its page. Permanent."},"label":{"anyOf":[{"type":"string","description":"Its name, as the publisher gave it."},{"type":"null"}]},"holds":{"anyOf":[{"type":"string","enum":["words","picture"],"description":"What a buyer puts in it."},{"type":"null"}]},"maxChars":{"anyOf":[{"type":"integer","description":"Words: the longest they may be. Longer words are cut with an ellipsis."},{"type":"null"}]},"size":{"anyOf":[{"type":"object","properties":{"width":{"type":"integer"},"height":{"type":"integer"}},"required":["width","height"],"additionalProperties":false,"description":"The box the page keeps for it, in pixels; null when the slot is part of the page's own layout."},{"type":"null"}]},"format":{"anyOf":[{"$ref":"#/components/schemas/Format"},{"type":"null"}]},"status":{"type":"string","enum":["open","owned","rented","cooldown"],"description":"`cooldown`: just sold, buyable again soon."},"buyableNow":{"type":"boolean","description":"Whether checkout would sell it this second."},"price":{"$ref":"#/components/schemas/Money"},"rent":{"type":"object","properties":{"available":{"type":"boolean","description":"Whether it can be rented now."},"perDay":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}]}},"required":["available","perDay"],"additionalProperties":false,"description":"Renting it, if its owner offers it."},"lastSeen":{"anyOf":[{"type":"string","format":"date-time","description":"When PageMarkets last saw it on the page."},{"type":"null"}]},"url":{"type":"string","description":"Where a person buys it on PageMarkets."}},"required":["key","label","holds","maxChars","size","format","status","buyableNow","price","rent","lastSeen","url"],"additionalProperties":false,"description":"A listed slot of a web page. `price` is what the next buyer pays: the floor for a first sale, more after."},"Page":{"allOf":[{"$ref":"#/components/schemas/PageSummary"},{"type":"object","properties":{"slots":{"type":"array","items":{"$ref":"#/components/schemas/Slot"}}},"required":["slots"],"additionalProperties":false}],"description":"A web page and its listed slots."},"PageList":{"type":"object","properties":{"pages":{"type":"array","items":{"$ref":"#/components/schemas/PageSummary"}},"categories":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"label":{"type":"string"},"count":{"type":"integer","description":"Pages it would show."}},"required":["slug","label","count"],"additionalProperties":false,"description":"Categories among the pages that match `q`."}},"total":{"type":"integer","description":"Every listed page, whatever the filters."}},"required":["pages","categories","total"],"additionalProperties":false},"SlotDetail":{"type":"object","properties":{"page":{"type":"object","properties":{"site":{"type":"string"},"name":{"type":"string"},"domain":{"type":"string"},"url":{"type":"string"}},"required":["site","name","domain","url"],"additionalProperties":false,"description":"The page it is on."},"key":{"type":"string","description":"The slot's id within its page."},"label":{"anyOf":[{"type":"string","description":"Its name."},{"type":"null"}]},"holds":{"anyOf":[{"type":"string","enum":["words","picture"],"description":"What a buyer puts in it."},{"type":"null"}]},"maxChars":{"anyOf":[{"type":"integer","description":"Words: the longest they may be."},{"type":"null"}]},"size":{"anyOf":[{"type":"object","properties":{"width":{"type":"integer"},"height":{"type":"integer"}},"required":["width","height"],"additionalProperties":false,"description":"The box the page keeps for it, in pixels."},{"type":"null"}]},"format":{"anyOf":[{"$ref":"#/components/schemas/Format"},{"type":"null"}]},"status":{"type":"string","enum":["open","off-market","owned","rented","cooldown","unregistered"],"description":"Its state on the chain."},"claimed":{"type":"boolean","description":"Whether it has ever been bought."},"price":{"$ref":"#/components/schemas/Money"},"displacedOwnerGets":{"$ref":"#/components/schemas/Money"},"buy":{"type":"object","properties":{"open":{"type":"boolean","description":"Whether checkout would sell it now."},"refusal":{"anyOf":[{"type":"object","properties":{"reason":{"type":"string","enum":["unregistered","off-market","cooldown","paused","unverified","bot-paused","not-in-repo"],"description":"Why checkout would refuse."},"until":{"anyOf":[{"type":"string","format":"date-time","description":"For `cooldown`: when it opens again."},{"type":"null"}]}},"required":["reason","until"],"additionalProperties":false,"description":"Null when it can be bought."},{"type":"null"}]}},"required":["open","refusal"],"additionalProperties":false,"description":"Whether it can be bought now, and if not, why."},"rent":{"type":"object","properties":{"available":{"type":"boolean","description":"Whether it can be rented now."},"perDay":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}]},"maxSeconds":{"anyOf":[{"type":"integer","description":"The longest term the owner offers, in seconds; null when not offered."},{"type":"null"}]}},"required":["available","perDay","maxSeconds"],"additionalProperties":false,"description":"Renting it, if its owner offers it."},"rentedUntil":{"anyOf":[{"type":"string","format":"date-time","description":"When the current term ends; null when nobody rents it."},{"type":"null"}]},"escrow":{"anyOf":[{"$ref":"#/components/schemas/Escrow"},{"type":"null"}]},"url":{"type":"string","description":"Where a person buys it on PageMarkets."}},"required":["page","key","label","holds","maxChars","size","format","status","claimed","price","displacedOwnerGets","buy","rent","rentedUntil","escrow","url"],"additionalProperties":false,"description":"One slot as checkout sees it. `price` is what the next buyer pays; `displacedOwnerGets` is the part of it paid to the owner it displaces."},"ImageBoardSummary":{"type":"object","properties":{"id":{"type":"string","description":"The board's id in every other call."},"name":{"type":"string","description":"Its name, as its creator gave it."},"picture":{"type":"object","properties":{"url":{"type":"string"},"width":{"type":"integer"},"height":{"type":"integer"}},"required":["url","width","height"],"additionalProperties":false,"description":"The board as it looks now, with every sold block drawn in."},"price":{"type":"object","properties":{"square":{"$ref":"#/components/schemas/Money"},"from":{"type":"boolean","description":"Some squares cost more."}},"required":["square","from"],"additionalProperties":false,"description":"The cheapest square for sale."},"squares":{"type":"object","properties":{"forSale":{"type":"integer","description":"Squares it sells at all."},"free":{"type":"integer","description":"Of those, never bought."},"resaleListed":{"type":"integer","description":"Blocks listed for resale."}},"required":["forSale","free","resaleListed"],"additionalProperties":false,"description":"How many squares, by state."},"loads":{"type":"integer","description":"Times the picture loaded in the last week. A floor: crawlers and PageMarkets' own pages don't count."},"url":{"type":"string","description":"The board on PageMarkets."}},"required":["id","name","picture","price","squares","loads","url"],"additionalProperties":false,"description":"An image board: a picture sold in squares."},"ImageBoardList":{"type":"object","properties":{"boards":{"type":"array","items":{"$ref":"#/components/schemas/ImageBoardSummary"}}},"required":["boards"],"additionalProperties":false},"Block":{"type":"object","properties":{"id":{"type":"string","description":"Its number on its board, from 1."},"col":{"type":"integer","description":"Its left edge, in squares from the left."},"row":{"type":"integer","description":"Its top edge, in squares from the top."},"cols":{"type":"integer","description":"Its width, in squares."},"rows":{"type":"integer","description":"Its height, in squares."},"cellsLeft":{"type":"integer","description":"Of its squares, how many no later block has taken."},"forSale":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}]},"rent":{"anyOf":[{"type":"object","properties":{"perDay":{"$ref":"#/components/schemas/Money"},"maxSeconds":{"type":"integer","description":"The longest term offered."}},"required":["perDay","maxSeconds"],"additionalProperties":false,"description":"Its owner's rent offer."},{"type":"null"}]},"rentedUntil":{"anyOf":[{"type":"string","format":"date-time","description":"When the current rental ends."},{"type":"null"}]},"link":{"anyOf":[{"type":"string","description":"Where a click on it goes, as a host name."},{"type":"null"}]},"url":{"type":"string","description":"The block on PageMarkets."}},"required":["id","col","row","cols","rows","cellsLeft","forSale","rent","rentedUntil","link","url"],"additionalProperties":false,"description":"A sold area of an image board. `forSale` is its owner's asking price, when they have listed it. Never names its owner."},"ImageBoard":{"type":"object","properties":{"id":{"type":"string","description":"The board's id."},"name":{"type":"string","description":"Its name."},"description":{"type":"string","description":"Its creator's words; may be empty."},"contract":{"type":"string","description":"The board's contract address."},"picture":{"type":"object","properties":{"url":{"type":"string"},"width":{"type":"integer"},"height":{"type":"integer"}},"required":["url","width","height"],"additionalProperties":false,"description":"The board as it looks now."},"grid":{"type":"object","properties":{"cellSize":{"type":"integer","description":"A square's side, in pixels."},"cols":{"type":"integer"},"rows":{"type":"integer"}},"required":["cellSize","cols","rows"],"additionalProperties":false,"description":"How the picture is cut into squares."},"prices":{"type":"object","properties":{"square":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}]},"zones":{"type":"array","items":{"type":"object","properties":{"col":{"type":"integer","description":"Its left edge, in squares from the left."},"row":{"type":"integer","description":"Its top edge, in squares from the top."},"cols":{"type":"integer","description":"Its width, in squares."},"rows":{"type":"integer","description":"Its height, in squares."},"square":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}]}},"required":["col","row","cols","rows","square"],"additionalProperties":false,"description":"Areas priced apart, in squares; `square` null when not for sale."}},"priceBps":{"type":"integer","description":"The share of creation prices unsold squares cost now, in basis points. Only falls."}},"required":["square","zones","priceBps"],"additionalProperties":false,"description":"A square now; `square` is null when squares outside every zone are not for sale."},"squares":{"type":"object","properties":{"forSale":{"type":"integer","description":"Squares it sells at all."},"free":{"type":"integer","description":"Of those, never bought."}},"required":["forSale","free"],"additionalProperties":false,"description":"How many squares, by state."},"blocks":{"type":"array","items":{"$ref":"#/components/schemas/Block"}},"url":{"type":"string","description":"The board on PageMarkets."},"embed":{"type":"string","description":"An address to show the board in an iframe."}},"required":["id","name","description","contract","picture","grid","prices","squares","blocks","url","embed"],"additionalProperties":false},"BlockDetail":{"allOf":[{"$ref":"#/components/schemas/Block"},{"type":"object","properties":{"board":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"url":{"type":"string"}},"required":["id","name","url"],"additionalProperties":false,"description":"The board it is on."}},"required":["board"],"additionalProperties":false}]},"Activity":{"type":"object","properties":{"activity":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["bought","resold","lowered"],"description":"`lowered`: the board's prices were cut."},"at":{"type":"string","format":"date-time","description":"When it happened."},"block":{"anyOf":[{"type":"string","description":"The block bought or resold."},{"type":"null"}]},"area":{"anyOf":[{"type":"object","properties":{"col":{"type":"integer","description":"Its left edge, in squares from the left."},"row":{"type":"integer","description":"Its top edge, in squares from the top."},"cols":{"type":"integer","description":"Its width, in squares."},"rows":{"type":"integer","description":"Its height, in squares."}},"required":["col","row","cols","rows"],"additionalProperties":false,"description":"Its area, in squares."},{"type":"null"}]},"amount":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}]},"priceBps":{"anyOf":[{"type":"integer","description":"For `lowered`: the new share of creation prices, in basis points."},{"type":"null"}]}},"required":["kind","at","block","area","amount","priceBps"],"additionalProperties":false,"description":"Newest first. Never names a buyer."}}},"required":["activity"],"additionalProperties":false},"WriteError":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["not-found","bad-request","unavailable","forbidden","unauthorized","refused","too-large"]},"message":{"type":"string","description":"Why, in words a person can read: the site's own."},"depositUrl":{"anyOf":[{"type":"string","description":"Where to add funds, when a buy is refused for want of them."},{"type":"null"}]}},"required":["code","message","depositUrl"],"additionalProperties":false}},"required":["error"],"additionalProperties":false},"Transaction":{"type":"object","properties":{"name":{"type":"string","description":"What it does: `approve`, `buy` or `edit`."},"chainId":{"type":"integer","description":"The chain to send it on."},"to":{"type":"string","description":"The contract it calls."},"data":{"type":"string","description":"The call, hex encoded."},"value":{"type":"string","description":"Native currency it sends, in base units; `0` for token payments."}},"required":["name","chainId","to","data","value"],"additionalProperties":false,"description":"A transaction for the user's own wallet to send. Gas is the wallet's to estimate."},"Challenge":{"type":"object","properties":{"nonce":{"type":"string","description":"Put it in the sign-in message."},"challenge":{"type":"string","description":"Send it back with the signature."},"expiresInSecs":{"type":"integer","description":"How long the challenge lasts."},"chainId":{"type":"integer","description":"The chain the message must name."},"statement":{"type":"string","description":"Suggested words for the message."},"domains":{"type":"array","items":{"type":"string","description":"The domains this app may name in the message."}}},"required":["nonce","challenge","expiresInSecs","chainId","statement","domains"],"additionalProperties":false},"SignedIn":{"type":"object","properties":{"token":{"type":"string","description":"Send it as `authorization: Bearer <token>` to act for this user."},"expiresAt":{"type":"string","format":"date-time","description":"When it stops working, unless ended sooner."},"account":{"type":"object","properties":{"id":{"type":"string"},"address":{"type":"string","description":"The wallet that signed."}},"required":["id","address"],"additionalProperties":false,"description":"The PageMarkets account: the same one the website gives this wallet."}},"required":["token","expiresAt","account"],"additionalProperties":false},"Me":{"type":"object","properties":{"account":{"type":"object","properties":{"id":{"type":"string"},"address":{"type":"string","description":"Their wallet."}},"required":["id","address"],"additionalProperties":false,"description":"Who the token is for."},"balances":{"type":"array","items":{"type":"object","properties":{"token":{"type":"string","description":"The token's contract."},"amount":{"$ref":"#/components/schemas/Money"}},"required":["token","amount"],"additionalProperties":false,"description":"What their wallet holds of one token a buy here is paid in."}},"owed":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["page","image"],"description":"A web page board, or an image board."},"board":{"type":"string","description":"The web page board's address, or the image board's id."},"amount":{"$ref":"#/components/schemas/Money"}},"required":["kind","board","amount"],"additionalProperties":false,"description":"Money a board credited them (outbid, mostly) and has not paid out yet. For an app's user it is paid into their wallet within fifteen minutes."}},"topUp":{"type":"object","properties":{"address":{"type":"string","description":"Their own wallet: money sent here adds to their balance."},"chainId":{"type":"integer","description":"The chain to send it on."}},"required":["address","chainId"],"additionalProperties":false,"description":"Where to add money."}},"required":["account","balances","owed","topUp"],"additionalProperties":false},"PrivySignInBody":{"type":"object","properties":{"accessToken":{"type":"string","description":"The user's Privy access token, from the app's own Privy app."},"signerId":{"type":"string","description":"Optional. One of the app's Privy key quorums, added as a signer when the API makes the user's wallet, so the app's server can sign for them."}},"required":["accessToken"],"additionalProperties":false},"Holdings":{"type":"object","properties":{"slots":{"type":"array","items":{"type":"object","properties":{"site":{"type":"string","description":"The board address."},"key":{"type":"string","description":"The slot key."},"domain":{"anyOf":[{"type":"string","description":"The page's domain."},{"type":"null"}]},"href":{"type":"string","description":"The slot's own page in this API."}},"required":["site","key","domain","href"],"additionalProperties":false,"description":"A web page slot they own."}},"blocks":{"type":"array","items":{"type":"object","properties":{"board":{"type":"string","description":"The image board's id."},"block":{"type":"string","description":"The block's number."},"boardName":{"type":"string","description":"What the board is called."},"href":{"type":"string","description":"The block's own page in this API."}},"required":["board","block","boardName","href"],"additionalProperties":false,"description":"An image board block they own, squares taken or not."}}},"required":["slots","blocks"],"additionalProperties":false},"Notifications":{"type":"object","properties":{"notifications":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["taken_over","board_dark","board_live","booking_ending","creative_held","creative_decided","editor_granted","price_dropped","slot_listed","image_block_sold","image_block_received","image_block_resold","image_block_royalty","image_board_sold_out","image_block_taken","image_block_rented","image_block_rent_ending","image_block_rent_refunded","repo_put_back","repo_stopped","repo_part_gone","repo_unreachable","repo_reachable","repo_committed","bot_sold","bot_received"],"description":"What happened."},"createdAt":{"type":"string","format":"date-time","description":"When."},"read":{"type":"boolean","description":"Whether it has been marked read."},"data":{"type":"object","additionalProperties":true,"description":"What it is about, by kind: the board, the slot or block, amounts. Never another person."}},"required":["id","kind","createdAt","read","data"],"additionalProperties":false,"description":"One notice, for the app to tell its user in its own words."}},"unread":{"type":"integer","description":"How many are unread."}},"required":["notifications","unread"],"additionalProperties":false},"WebhookNotification":{"type":"object","properties":{"type":{"type":"string","enum":["notification"],"description":"What this delivery carries."},"timestamp":{"type":"string","format":"date-time","description":"When it was sent."},"data":{"type":"object","properties":{"wallet":{"type":"string","description":"The user's wallet: which of your users this is about."},"notification":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["taken_over","board_dark","board_live","booking_ending","creative_held","creative_decided","editor_granted","price_dropped","slot_listed","image_block_sold","image_block_received","image_block_resold","image_block_royalty","image_board_sold_out","image_block_taken","image_block_rented","image_block_rent_ending","image_block_rent_refunded","repo_put_back","repo_stopped","repo_part_gone","repo_unreachable","repo_reachable","repo_committed","bot_sold","bot_received"],"description":"What happened."},"createdAt":{"type":"string","format":"date-time","description":"When."},"read":{"type":"boolean","description":"Whether it has been marked read."},"data":{"type":"object","additionalProperties":true,"description":"What it is about, by kind: the board, the slot or block, amounts. Never another person."}},"required":["id","kind","createdAt","read","data"],"additionalProperties":false,"description":"The notice, as `/v1/me/notifications` gives it. The `webhook-id` header is its `id`."}},"required":["wallet","notification"],"additionalProperties":false,"description":"Who it is for, and what happened."}},"required":["type","timestamp","data"],"additionalProperties":false,"description":"What your server is sent for each new notice of a user of your app."},"MarkReadBody":{"type":"object","properties":{"upTo":{"type":"string","format":"date-time","description":"The `createdAt` of the newest notice shown."}},"required":["upTo"],"additionalProperties":false},"MarkedRead":{"type":"object","properties":{"marked":{"type":"integer","description":"How many this marked read."}},"required":["marked"],"additionalProperties":false},"CashOutBody":{"type":"object","properties":{"kind":{"type":"string","enum":["page","image"],"description":"As `/v1/me` names it under `owed`."},"board":{"type":"string","description":"As `/v1/me` names it under `owed`: a web page board's address, or an image board's id."}},"required":["kind","board"],"additionalProperties":false},"CashedOut":{"type":"object","properties":{"moved":{"$ref":"#/components/schemas/Money"}},"required":["moved"],"additionalProperties":false,"description":"What reached an account: the user's own, or a web page board's treasury when they publish it."},"SlotSpec":{"type":"object","properties":{"key":{"type":"string","description":"Its permanent name: lowercase letters and numbers joined by dots, like `hero.headline`."},"label":{"type":"string","description":"What the publisher calls it. The key, when left out."},"price":{"type":"string","description":"What it first sells for, in dollars, like `\"10\"`. Also the least it can ever be taken for."},"holds":{"type":"string","enum":["words","picture"],"description":"What a buyer puts in it. Words, when left out."},"format":{"type":"string","enum":["leaderboard","rectangle","mobile-banner","super","billboard","rectangle-lg","half-page","skyscraper"],"description":"For a picture: its ad format, which fixes its size (`rectangle` is 300×250). Read from the code's own list."},"maxChars":{"type":"integer","description":"For words: how long they can be. Suggested, when left out."},"kind":{"type":"string","enum":["element","space"],"description":"`element`: something already on the page that a buyer takes over. `space`: an empty box the publisher adds. `element`, when left out."},"width":{"type":"integer","description":"A space's width, in pixels. 300, when left out."},"height":{"type":"integer","description":"A space's height, in pixels. 250, when left out."},"anchor":{"type":"object","properties":{"paths":{"type":"array","items":{"type":"string","description":"A CSS path to the element, the surest first."}},"tag":{"type":"string","description":"The element's tag name, like `div`."}},"required":["paths","tag"],"additionalProperties":false,"description":"Where on the page it is, as a picker records it; our tag then places it. Left out, the publisher pastes the markup `install` gives."},"place":{"type":"string","enum":["before","after","inside-start","inside-end"],"description":"For a space with an anchor: where it goes beside it."}},"required":["key","price"],"additionalProperties":false,"description":"A slot to sell."},"NewBoardBody":{"type":"object","properties":{"url":{"type":"string","description":"The page whose spaces are for sale."},"slots":{"type":"array","items":{"$ref":"#/components/schemas/SlotSpec"}},"profile":{"type":"string","enum":["standard","collector","rotating"],"description":"How prices move after a sale. `standard`, when left out."}},"required":["url","slots"],"additionalProperties":false},"MyBoardSummary":{"type":"object","properties":{"site":{"type":"string","description":"The board address."},"domain":{"anyOf":[{"type":"string","description":"The page's domain."},{"type":"null"}]},"name":{"type":"string","description":"What the board is called."},"live":{"type":"boolean","description":"Our tag has been seen on the page; until then nothing on it can be bought."},"disconnectedAt":{"anyOf":[{"type":"string","format":"date-time","description":"When the publisher disconnected it: nothing on it sells, and buyers cannot reach it. Null while it sells."},{"type":"null"}]},"href":{"type":"string","description":"This board, in full."}},"required":["site","domain","name","live","disconnectedAt","href"],"additionalProperties":false,"description":"A web page board the user publishes."},"MyBoards":{"type":"object","properties":{"boards":{"type":"array","items":{"$ref":"#/components/schemas/MyBoardSummary"}}},"required":["boards"],"additionalProperties":false},"BoardCheck":{"type":"object","properties":{"problem":{"anyOf":[{"type":"string","description":"Why making the board would be refused, in the same words; null when it would be made."},{"type":"null"}]},"read":{"type":"boolean","description":"Whether we could read the page. False says nothing about the slots: our request was refused or timed out."},"unresolved":{"anyOf":[{"type":"array","items":{"type":"string","description":"A slot key."}},{"type":"null"}]}},"required":["problem","read","unresolved"],"additionalProperties":false,"description":"What the website's picker would say. `unresolved` lists the anchored slots our crawl cannot find on the page as it serves it to an anonymous visitor (null when it could not read the page): the board can still be made, but those slots will not sell until the crawl sees them. A page drawn by its own scripts after loading usually shows nothing to the crawl."},"MySlot":{"type":"object","properties":{"key":{"type":"string","description":"The slot key."},"label":{"type":"string","description":"What the publisher calls it."},"holds":{"type":"string","enum":["words","picture"],"description":"What a buyer puts in it."},"format":{"anyOf":[{"type":"string","description":"For a picture: its ad format."},{"type":"null"}]},"maxChars":{"anyOf":[{"type":"integer","description":"For words: how long they can be."},{"type":"null"}]},"price":{"$ref":"#/components/schemas/Money"},"sold":{"type":"boolean","description":"Bought at least once."},"onSale":{"type":"boolean","description":"Whether it can be bought while unsold. A sold slot can always be taken."},"placed":{"type":"boolean","description":"Our tag places it; otherwise the publisher's markup does."}},"required":["key","label","holds","format","maxChars","price","sold","onSale","placed"],"additionalProperties":false,"description":"One slot, as its publisher sees it."},"MyBoard":{"type":"object","properties":{"site":{"type":"string","description":"The board address."},"domain":{"anyOf":[{"type":"string","description":"The page's domain."},{"type":"null"}]},"name":{"type":"string","description":"What the board is called."},"live":{"type":"boolean","description":"Our tag has been seen on the page; until then nothing on it can be bought."},"disconnectedAt":{"anyOf":[{"type":"string","format":"date-time","description":"When the publisher disconnected it: nothing on it sells, and buyers cannot reach it. Null while it sells."},{"type":"null"}]},"href":{"type":"string","description":"This board, in full."},"liveSince":{"anyOf":[{"type":"string","format":"date-time","description":"When the tag was first seen."},{"type":"null"}]},"slots":{"type":"array","items":{"$ref":"#/components/schemas/MySlot"}},"escrow":{"anyOf":[{"type":"object","properties":{"window":{"type":"string","description":"How long each sale's cut is held."},"held":{"$ref":"#/components/schemas/Money"}},"required":["window","held"],"additionalProperties":false,"description":"What escrow holds of the publisher's cut. When its window ends it is paid into their wallet."},{"type":"null"}]},"reviews":{"type":"integer","description":"Pictures waiting for the publisher to allow or refuse."},"policy":{"anyOf":[{"type":"string","description":"What the publisher accepts on their page, in their words. Null: our default applies."},{"type":"null"}]}},"required":["site","domain","name","live","disconnectedAt","href","liveSince","slots","escrow","reviews","policy"],"additionalProperties":false,"description":"A board the user publishes. `price` is what each slot was set to sell for."},"Install":{"type":"object","properties":{"tag":{"type":"string","description":"Goes in the page's `<head>`, once. When your app gave a buy page with its key, the tag carries it as `data-buy`, so a buyer who clicks a space on the page lands on `<your buy page><site>/<key>`, and a renter on the same with `/rent/` in place of `/buy/`."},"allPlaced":{"type":"boolean","description":"Our tag places every slot: there is nothing else to paste."},"markup":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","description":"The slot key."},"label":{"type":"string","description":"What the publisher calls it."},"kind":{"type":"string","enum":["element","space"],"description":"`element`: add this to what is already there. `space`: paste this where the box goes."},"html":{"type":"string","description":"The markup."}},"required":["key","label","kind","html"],"additionalProperties":false,"description":"What to paste for a slot our tag cannot place."}}},"required":["tag","allPlaced","markup"],"additionalProperties":false},"InstallCheck":{"type":"object","properties":{"live":{"type":"boolean","description":"Our tag was seen on the page: its slots can be bought."},"found":{"type":"integer","description":"Slots found on the page."},"total":{"type":"integer","description":"Slots the board sells."}},"required":["live","found","total"],"additionalProperties":false},"OwnerTransaction":{"type":"object","properties":{"transaction":{"$ref":"#/components/schemas/Transaction"}},"required":["transaction"],"additionalProperties":false,"description":"For the publisher's own wallet to send; we have paid its gas."},"AddSlotsBody":{"type":"object","properties":{"slots":{"type":"array","items":{"$ref":"#/components/schemas/SlotSpec"}}},"required":["slots"],"additionalProperties":false},"ConfirmSlotsBody":{"type":"object","properties":{"slots":{"type":"array","items":{"$ref":"#/components/schemas/SlotSpec"}},"txHash":{"type":"string","description":"The transaction's hash."}},"required":["slots","txHash"],"additionalProperties":false},"SlotsAdded":{"type":"object","properties":{"added":{"type":"array","items":{"type":"string","description":"A slot key now on the board."}}},"required":["added"],"additionalProperties":false},"SlotChangeBody":{"type":"object","properties":{"label":{"type":"string","description":"What the publisher calls it."},"maxChars":{"type":"integer","description":"For words, while it is unsold, or upward after."}},"required":[],"additionalProperties":false},"PriceBody":{"type":"object","properties":{"price":{"type":"string","description":"In dollars, like `\"12.50\"`."}},"required":["price"],"additionalProperties":false},"OnSaleBody":{"type":"object","properties":{"onSale":{"type":"boolean","description":"Whether it can be bought while unsold."}},"required":["onSale"],"additionalProperties":false},"ListingBody":{"type":"object","properties":{"description":{"anyOf":[{"type":"string","description":"What the page is, in the publisher's words."},{"type":"null"}]},"category":{"anyOf":[{"type":"string","description":"One of the directory's categories."},{"type":"null"}]},"tags":{"type":"array","items":{"type":"string","description":"Up to five, for search."}},"link":{"anyOf":[{"type":"string","description":"One link, for advertisers."},{"type":"null"}]}},"required":[],"additionalProperties":false},"ListingPictureBody":{"type":"object","properties":{"image":{"type":"string","format":"binary","description":"A picture of the page."}},"required":["image"],"additionalProperties":false},"PolicyBody":{"type":"object","properties":{"policy":{"anyOf":[{"type":"string","description":"What the publisher accepts on their page. Null or empty: our floor is enough."},{"type":"null"}]}},"required":["policy"],"additionalProperties":false},"Handover":{"type":"object","properties":{"owner":{"type":"string","description":"The board's owner on chain right now."},"ready":{"type":"boolean","description":"`to` has asked for the board and its request has not expired: the handover can be completed."},"expiresAt":{"anyOf":[{"type":"string","format":"date-time","description":"When `to`'s request expires (48 hours after it was made); null when it has made none."},{"type":"null"}]}},"required":["owner","ready","expiresAt"],"additionalProperties":false},"HandoverBody":{"type":"object","properties":{"to":{"type":"string","description":"The address the board goes to. It asks first, by sending `requestOwnershipHandover()` to the board from that address."}},"required":["to"],"additionalProperties":false},"HandoverConfirmBody":{"type":"object","properties":{"to":{"type":"string","description":"The same address."},"txHash":{"type":"string","description":"The transaction's hash."}},"required":["to","txHash"],"additionalProperties":false},"HandedOver":{"type":"object","properties":{"owner":{"type":"string","description":"The board's new owner, read back from the chain."}},"required":["owner"],"additionalProperties":false},"DisconnectCheck":{"type":"object","properties":{"possible":{"type":"boolean","description":"Nobody but the publisher owns or rents a slot, so it can be disconnected."},"refusal":{"anyOf":[{"type":"string","description":"Why it cannot be, when it cannot. Taking the tag off the page is still the publisher's to do; escrow then covers the holders."},{"type":"null"}]},"paused":{"type":"boolean","description":"Sales are already stopped on chain, so disconnecting needs no transaction."}},"required":["possible","refusal","paused"],"additionalProperties":false},"DisconnectPlan":{"type":"object","properties":{"transaction":{"anyOf":[{"$ref":"#/components/schemas/Transaction"},{"type":"null"}]}},"required":["transaction"],"additionalProperties":false,"description":"The pause for the publisher's own wallet to send (we have paid its gas), or null when sales are already stopped. Then `disconnect/confirm`."},"Disconnected":{"type":"object","properties":{"disconnectedAt":{"type":"string","format":"date-time","description":"When. The board is off the directory and this API for buyers; the publisher should take the tag off the page, which still marks the spaces until they do."}},"required":["disconnectedAt"],"additionalProperties":false},"Saved":{"type":"object","properties":{"saved":{"type":"boolean","description":"Always true."}},"required":["saved"],"additionalProperties":false},"Reviews":{"type":"object","properties":{"reviews":{"type":"array","items":{"type":"object","properties":{"contentHash":{"type":"string","description":"The picture, by hash."},"key":{"type":"string","description":"The slot it was bought for."},"link":{"anyOf":[{"type":"string","description":"Where a click would go."},{"type":"null"}]},"clause":{"anyOf":[{"type":"string","description":"The part of the publisher's policy it was held on, quoted."},{"type":"null"}]},"heldAt":{"type":"string","format":"date-time","description":"When it was held."},"picture":{"type":"string","description":"The picture: fetch it with the app key and the user's token."}},"required":["contentHash","key","link","clause","heldAt","picture"],"additionalProperties":false,"description":"A picture waiting for the publisher."}}},"required":["reviews"],"additionalProperties":false},"ReviewBody":{"type":"object","properties":{"allow":{"type":"boolean","description":"True shows it on the page; false never does."}},"required":["allow"],"additionalProperties":false},"ReviewDecided":{"type":"object","properties":{"allowed":{"type":"boolean","description":"What was decided."}},"required":["allowed"],"additionalProperties":false},"SignedOut":{"type":"object","properties":{"signedOut":{"type":"boolean","description":"Always true: the token no longer works."}},"required":["signedOut"],"additionalProperties":false},"BuyPlan":{"type":"object","properties":{"price":{"$ref":"#/components/schemas/Money"},"maxPrice":{"$ref":"#/components/schemas/Money"},"expiresAt":{"type":"string","format":"date-time","description":"The buy must be mined by then, or it fails and costs nothing but gas."},"transactions":{"type":"array","items":{"$ref":"#/components/schemas/Transaction"}}},"required":["price","maxPrice","expiresAt","transactions"],"additionalProperties":false,"description":"Send `transactions` in order from the user's wallet, then confirm with the last one's hash. `price` is what it costs now; `maxPrice` is the most the buy may take if the price moves before it is mined."},"Recorded":{"type":"object","properties":{"recorded":{"type":"boolean","description":"Always true: the purchase is on the user's account."}},"required":["recorded"],"additionalProperties":false},"Staged":{"type":"object","properties":{"contentHash":{"type":"string","description":"What the slot will show, by hash."},"held":{"type":"boolean","description":"A picture waiting for the publisher's review: send the transaction anyway; the page shows it once allowed."},"transaction":{"$ref":"#/components/schemas/Transaction"}},"required":["contentHash","held","transaction"],"additionalProperties":false},"VerifyBody":{"type":"object","properties":{"message":{"type":"string","description":"The SIWE message the user signed, naming one of the app's domains, the chain and the nonce."},"signature":{"type":"string","description":"The wallet's signature of it."},"challenge":{"type":"string","description":"From `/v1/auth/nonce`."}},"required":["message","signature","challenge"],"additionalProperties":false},"ConfirmBody":{"type":"object","properties":{"txHash":{"type":"string","description":"The buy transaction's hash."}},"required":["txHash"],"additionalProperties":false},"WordsBody":{"type":"object","properties":{"words":{"type":"string","description":"What the slot says. At most its `maxChars`."},"link":{"anyOf":[{"type":"string","description":"Where a click goes; a full https address."},{"type":"null"}]}},"required":["words"],"additionalProperties":false},"PictureBody":{"type":"object","properties":{"file":{"type":"string","format":"binary","description":"WebP, the slot's format's exact size, without metadata."},"link":{"type":"string","description":"Where a click goes; a full https address."}},"required":["file"],"additionalProperties":false},"BlockTicket":{"type":"object","properties":{"board":{"type":"string","description":"The board's contract."},"token":{"type":"string","description":"The token it is paid in."},"tokenName":{"type":"string","description":"That token's name, as the permit names it."},"chainId":{"type":"integer","description":"The chain."},"buyer":{"type":"string","description":"The user: the payer and every new block's owner."},"rects":{"type":"array","items":{"type":"object","properties":{"col":{"type":"integer","description":"Its left edge, in squares from the left."},"row":{"type":"integer","description":"Its top edge, in squares from the top."},"cols":{"type":"integer","description":"Its width, in squares."},"rows":{"type":"integer","description":"Its height, in squares."}},"required":["col","row","cols","rows"],"additionalProperties":false,"description":"An area bought, in squares."}},"total":{"type":"string","description":"The most the buy pays, in base units: the contract's own quote."},"nonce":{"type":"string","description":"The permit's nonce."},"deadline":{"type":"string","description":"The permit's deadline, in seconds."}},"required":["board","token","tokenName","chainId","buyer","rects","total","nonce","deadline"],"additionalProperties":false,"description":"Hand it back to `buy/transaction` exactly as given."},"Permit":{"type":"object","properties":{"domain":{"type":"object","properties":{"name":{"type":"string","description":"The token's name."},"version":{"type":"string","description":"Always `1`."},"chainId":{"type":"integer","description":"The chain."},"verifyingContract":{"type":"string","description":"The token."}},"required":["name","version","chainId","verifyingContract"],"additionalProperties":false,"description":"EIP-712 domain."},"types":{"type":"object","properties":{"Permit":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The field's name."},"type":{"type":"string","description":"Its Solidity type."}},"required":["name","type"],"additionalProperties":false,"description":"A field of the permit."}}},"required":["Permit"],"additionalProperties":false,"description":"EIP-712 types."},"primaryType":{"type":"string","enum":["Permit"],"description":"Always `Permit`."},"message":{"type":"object","properties":{"owner":{"type":"string","description":"The user."},"spender":{"type":"string","description":"The board."},"value":{"type":"string","description":"The total, in base units."},"nonce":{"type":"string","description":"In base units."},"deadline":{"type":"string","description":"In seconds."}},"required":["owner","spender","value","nonce","deadline"],"additionalProperties":false,"description":"Amounts as decimal strings; most wallets take them so, viem wants them as bigints."}},"required":["domain","types","primaryType","message"],"additionalProperties":false,"description":"An EIP-2612 permit for the user's wallet to sign with `eth_signTypedData_v4`. It lets the board take exactly the total, once."},"AreasBody":{"type":"object","properties":{"areas":{"type":"array","items":{"type":"object","properties":{"col":{"type":"integer","description":"Its left edge, in squares from the left."},"row":{"type":"integer","description":"Its top edge, in squares from the top."},"cols":{"type":"integer","description":"Its width, in squares."},"rows":{"type":"integer","description":"Its height, in squares."}},"required":["col","row","cols","rows"],"additionalProperties":false,"description":"An area to buy, in squares."}},"shownTotal":{"type":"string","description":"The total the user was shown, in base units: refused if the price rose."}},"required":["areas"],"additionalProperties":false},"BlockBuyPlan":{"type":"object","properties":{"total":{"$ref":"#/components/schemas/Money"},"permit":{"$ref":"#/components/schemas/Permit"},"ticket":{"$ref":"#/components/schemas/BlockTicket"}},"required":["total","permit","ticket"],"additionalProperties":false,"description":"Show the user `total`, have their wallet sign `permit`, then send both to `buy/transaction`."},"BlockBuyTxBody":{"type":"object","properties":{"ticket":{"$ref":"#/components/schemas/BlockTicket"},"signature":{"type":"string","description":"The wallet's 65-byte signature of the permit."}},"required":["ticket","signature"],"additionalProperties":false},"BlockBuyTransaction":{"type":"object","properties":{"transaction":{"$ref":"#/components/schemas/Transaction"}},"required":["transaction"],"additionalProperties":false},"BlocksBought":{"type":"object","properties":{"blocks":{"type":"array","items":{"type":"string","description":"A block the buy made, by number."}}},"required":["blocks"],"additionalProperties":false},"BlockPictureBody":{"type":"object","properties":{"file":{"type":"string","format":"binary","description":"WebP, exactly the block's size in pixels (its squares times the board's square size), without metadata."}},"required":["file"],"additionalProperties":false},"BlockPictureStaged":{"type":"object","properties":{"contentHash":{"type":"string","description":"The picture, by hash: send it to `picture/confirm` once mined."},"transaction":{"$ref":"#/components/schemas/Transaction"}},"required":["contentHash","transaction"],"additionalProperties":false},"PictureConfirmBody":{"type":"object","properties":{"contentHash":{"type":"string","description":"As `picture` gave it."}},"required":["contentHash"],"additionalProperties":false},"PictureConfirmed":{"type":"object","properties":{"confirmed":{"type":"boolean","description":"Always true: the board will be redrawn with it."}},"required":["confirmed"],"additionalProperties":false},"LinkBody":{"type":"object","properties":{"link":{"anyOf":[{"type":"string","description":"A full https address, or null to remove the link."},{"type":"null"}]}},"required":["link"],"additionalProperties":false},"BlockLink":{"type":"object","properties":{"link":{"anyOf":[{"type":"string","description":"The link as kept, or null for none."},{"type":"null"}]}},"required":["link"],"additionalProperties":false},"WalletTransaction":{"type":"object","properties":{"transaction":{"$ref":"#/components/schemas/Transaction"}},"required":["transaction"],"additionalProperties":false,"description":"For the user's own wallet to send. PageMarkets has paid its gas for a user signed in through your Privy app."},"TxBody":{"type":"object","properties":{"txHash":{"type":"string","description":"The transaction's hash."}},"required":["txHash"],"additionalProperties":false},"Confirmed":{"type":"object","properties":{"confirmed":{"type":"boolean","description":"Always true."}},"required":["confirmed"],"additionalProperties":false},"PriceCutBody":{"type":"object","properties":{"priceBps":{"type":"integer","description":"What every unsold square will cost, as a share of its creation price in basis points: one of 9000, 8000, 7500, 6000, 5000, 4000, 2500, 1000, 500 or 100, below the board's `priceBps` now."}},"required":["priceBps"],"additionalProperties":false},"BlockSaleBody":{"type":"object","properties":{"price":{"type":"string","description":"For the whole block, in dollars, like `\"12.50\"`."}},"required":["price"],"additionalProperties":false},"BlockSale":{"type":"object","properties":{"price":{"$ref":"#/components/schemas/Money"},"transaction":{"$ref":"#/components/schemas/Transaction"}},"required":["price","transaction"],"additionalProperties":false,"description":"The price as it will be set, and the transaction that sets it."},"BlockSaleConfirmBody":{"type":"object","properties":{"price":{"type":"string","description":"In base units, as `listing` answered it; `\"0\"` after taking the block off sale."}},"required":["price"],"additionalProperties":false},"ResaleBody":{"type":"object","properties":{"shownPrice":{"type":"string","description":"The block's `forSale` price the user was shown, in base units: refused if it is not the price now."}},"required":["shownPrice"],"additionalProperties":false},"ResaleTicket":{"type":"object","properties":{"board":{"type":"string","description":"The board's contract."},"token":{"type":"string","description":"The token it is paid in."},"tokenName":{"type":"string","description":"That token's name, as the permit names it."},"chainId":{"type":"integer","description":"The chain."},"buyer":{"type":"string","description":"The user: the payer and the block's new owner."},"tokenId":{"type":"string","description":"The block, by number."},"price":{"type":"string","description":"The price, in base units: what the permit allows and the contract must still ask."},"nonce":{"type":"string","description":"The permit's nonce."},"deadline":{"type":"string","description":"The permit's deadline, in seconds."}},"required":["board","token","tokenName","chainId","buyer","tokenId","price","nonce","deadline"],"additionalProperties":false,"description":"Hand it back exactly as given."},"ResalePlan":{"type":"object","properties":{"price":{"$ref":"#/components/schemas/Money"},"permit":{"$ref":"#/components/schemas/Permit"},"ticket":{"$ref":"#/components/schemas/ResaleTicket"}},"required":["price","permit","ticket"],"additionalProperties":false,"description":"Show the user `price`, have their wallet sign `permit`, then send both to `buy/transaction`."},"ResaleTxBody":{"type":"object","properties":{"ticket":{"$ref":"#/components/schemas/ResaleTicket"},"signature":{"type":"string","description":"The wallet's 65-byte signature of the permit."}},"required":["ticket","signature"],"additionalProperties":false},"BlockBought":{"type":"object","properties":{"block":{"type":"string","description":"The block, by number: now the user's."}},"required":["block"],"additionalProperties":false},"RentOfferBody":{"type":"object","properties":{"perDay":{"type":"string","enum":["0.01","0.05","0.10","0.25","0.50","1","2","5","10","25","50","100"],"description":"Dollars a day."},"days":{"type":"integer","description":"The longest term, in days: 1, 3, 7, 14, 30 or 90."}},"required":["perDay","days"],"additionalProperties":false},"RentOffer":{"type":"object","properties":{"perDay":{"$ref":"#/components/schemas/Money"},"maxSeconds":{"type":"integer","description":"The longest term offered, in seconds."},"transaction":{"$ref":"#/components/schemas/Transaction"}},"required":["perDay","maxSeconds","transaction"],"additionalProperties":false,"description":"The offer as it will stand, and the transaction that makes it."},"RentOfferConfirmBody":{"type":"object","properties":{"perDay":{"type":"string","description":"In base units, as `rent-offer` answered it; `\"0\"` once ended."},"maxSeconds":{"type":"integer","description":"As `rent-offer` answered it; `0` once ended."}},"required":["perDay","maxSeconds"],"additionalProperties":false},"RentBody":{"type":"object","properties":{"shownRate":{"type":"string","description":"The block's `rent.perDay` the user was shown, in base units: refused if it is not the rate now."},"seconds":{"type":"integer","description":"The term, from now: 1, 3, 7, 14, 30 or 90 days in seconds, up to the block's `rent.maxSeconds`, or `rent.maxSeconds` itself. An extension must be longer than what is left."}},"required":["shownRate","seconds"],"additionalProperties":false},"RentTicket":{"type":"object","properties":{"board":{"type":"string","description":"The board's contract."},"token":{"type":"string","description":"The token it is paid in."},"tokenName":{"type":"string","description":"That token's name, as the permit names it."},"chainId":{"type":"integer","description":"The chain."},"tenant":{"type":"string","description":"The user: the payer and the tenant."},"tokenId":{"type":"string","description":"The block, by number."},"ratePerDay":{"type":"string","description":"The daily rate, in base units."},"durationSecs":{"type":"string","description":"The term, in seconds."},"cost":{"type":"string","description":"What the term costs, in base units: what the permit allows."},"nonce":{"type":"string","description":"The permit's nonce."},"deadline":{"type":"string","description":"The permit's deadline, in seconds."}},"required":["board","token","tokenName","chainId","tenant","tokenId","ratePerDay","durationSecs","cost","nonce","deadline"],"additionalProperties":false,"description":"Hand it back exactly as given."},"RentPlan":{"type":"object","properties":{"cost":{"$ref":"#/components/schemas/Money"},"permit":{"$ref":"#/components/schemas/Permit"},"ticket":{"$ref":"#/components/schemas/RentTicket"}},"required":["cost","permit","ticket"],"additionalProperties":false,"description":"Show the user `cost`, have their wallet sign `permit`, then send both to the matching `transaction`."},"RentTxBody":{"type":"object","properties":{"ticket":{"$ref":"#/components/schemas/RentTicket"},"signature":{"type":"string","description":"The wallet's 65-byte signature of the permit."}},"required":["ticket","signature"],"additionalProperties":false},"Rented":{"type":"object","properties":{"block":{"type":"string","description":"The block, by number."},"rentedUntil":{"type":"string","format":"date-time","description":"When the term ends."}},"required":["block","rentedUntil"],"additionalProperties":false},"RentSlotBody":{"type":"object","properties":{"shownRate":{"type":"string","description":"The slot's `rent.perDay` the user was shown, in base units: refused if it is not the rate now."},"seconds":{"type":"integer","description":"The term, from now: at least a day, at most the slot's `rent.maxSeconds`. An extension must be longer than what is left."}},"required":["shownRate","seconds"],"additionalProperties":false},"RentSlotPlan":{"type":"object","properties":{"cost":{"$ref":"#/components/schemas/Money"},"transactions":{"type":"array","items":{"$ref":"#/components/schemas/Transaction"}}},"required":["cost","transactions"],"additionalProperties":false,"description":"Show the user `cost`; their wallet sends `transactions` in order: an approval when one is needed, then the rent."},"RentListingBody":{"type":"object","properties":{"perDay":{"type":"string","description":"Dollars a day, like `\"2.50\"`: at least the board's minimum for this slot."},"days":{"type":"integer","description":"The longest term, in days: 1, 3, 7, 14, 30 or 90, within the board's longest."}},"required":["perDay","days"],"additionalProperties":false},"AskBody":{"type":"object","properties":{"price":{"type":"string","description":"In dollars, like `\"40\"`: what the slot's take price comes down from, within the board's limits."}},"required":["price"],"additionalProperties":false},"SlotAsk":{"type":"object","properties":{"price":{"$ref":"#/components/schemas/Money"},"transaction":{"$ref":"#/components/schemas/Transaction"}},"required":["price","transaction"],"additionalProperties":false,"description":"The ask as it will be set, and the transaction that sets it."},"PictureUploadBody":{"type":"object","properties":{"file":{"type":"string","format":"binary","description":"PNG, JPEG or WebP, up to 5 MB."}},"required":["file"],"additionalProperties":false},"NftWallets":{"type":"object","properties":{"wallets":{"type":"array","items":{"type":"object","properties":{"address":{"type":"string","description":"The wallet."},"own":{"type":"boolean","description":"The wallet the user signs in with: always read, never removable."},"linkedAt":{"anyOf":[{"type":"string","format":"date-time","description":"When it was linked; null for their own."},{"type":"null"}]}},"required":["address","own","linkedAt"],"additionalProperties":false,"description":"A wallet whose NFTs are read for the user."}},"linkStatement":{"type":"string","description":"The statement a link message must carry, word for word."}},"required":["wallets","linkStatement"],"additionalProperties":false},"WalletLinked":{"type":"object","properties":{"result":{"type":"string","enum":["linked","already"],"description":"Linked now, or it already was."}},"required":["result"],"additionalProperties":false},"WalletRemoved":{"type":"object","properties":{"removed":{"type":"boolean","description":"False when it was not a linked wallet of theirs."}},"required":["removed"],"additionalProperties":false},"Nfts":{"type":"object","properties":{"collections":{"type":"array","items":{"type":"object","properties":{"contract":{"type":"string","description":"The collection's contract."},"name":{"type":"string","description":"What it is called."},"nfts":{"type":"array","items":{"$ref":"#/components/schemas/Nft"}}},"required":["contract","name","nfts"],"additionalProperties":false,"description":"One collection, by contract."}},"spam":{"type":"array","items":{"$ref":"#/components/schemas/Nft"}}},"required":["collections","spam"],"additionalProperties":false,"description":"What the user's wallets hold, as the website's picker shows it. `spam` is what the NFT index marked as spam: shown apart, never dropped. NFTs of ours (boards, bots) are left out."},"Nft":{"type":"object","properties":{"contract":{"type":"string","description":"Its contract."},"tokenId":{"type":"string","description":"Its token id, as a decimal string."},"name":{"type":"string","description":"Its name, or a stand-in when it has none."},"picture":{"anyOf":[{"type":"string","description":"A picture for a card: a link for a browser to load, not one PageMarkets has checked. Null for none; a chosen NFT's picture is read and checked then."},{"type":"null"}]},"offer":{"type":"string","enum":["picture","video","no-picture","board"],"description":"`picture`: it can be chosen. `video` and `no-picture`: it cannot, and why. `board`: one has been made of it already."},"board":{"anyOf":[{"type":"string","description":"The image board made of it, when there is one: one per NFT."},{"type":"null"}]}},"required":["contract","tokenId","name","picture","offer","board"],"additionalProperties":false,"description":"One NFT the user holds."},"RepoSummary":{"type":"object","properties":{"site":{"type":"string","description":"The board address."},"repo":{"type":"string","description":"`owner/name` on GitHub."},"description":{"anyOf":[{"type":"string","description":"GitHub's one line about the repo."},{"type":"null"}]},"tier":{"type":"integer","enum":[1,2,3,4,5],"description":"Its riskiest part's tier."},"tierName":{"type":"string","description":"That tier's name."},"forSale":{"type":"integer","description":"Parts that sell now, open or owned."},"open":{"type":"integer","description":"Of those, parts nobody has bought yet."},"cheapest":{"$ref":"#/components/schemas/Money"},"reach":{"anyOf":[{"$ref":"#/components/schemas/Reach"},{"type":"null"}]},"href":{"type":"string","description":"This repo board, in full."}},"required":["site","repo","description","tier","tierName","forSale","open","cheapest","reach","href"],"additionalProperties":false,"description":"A GitHub repo with parts for sale."},"RepoList":{"type":"object","properties":{"repos":{"type":"array","items":{"$ref":"#/components/schemas/RepoSummary"}}},"required":["repos"],"additionalProperties":false},"Reach":{"type":"object","properties":{"stars":{"type":"integer","description":"Stars on GitHub."},"forks":{"type":"integer","description":"Forks."},"pushedAt":{"anyOf":[{"type":"string","format":"date-time","description":"The last push."},{"type":"null"}]},"archived":{"type":"boolean","description":"Archived on GitHub."}},"required":["stars","forks","pushedAt","archived"],"additionalProperties":false,"description":"What GitHub says of the repo; null when GitHub did not answer."},"RepoPart":{"type":"object","properties":{"key":{"type":"string","description":"The part's key."},"label":{"type":"string","description":"What its owner calls it."},"path":{"type":"string","description":"The file it is in."},"whole":{"type":"boolean","description":"The whole file; otherwise a marked part of it."},"holds":{"type":"string","enum":["words","picture"],"description":"What a buyer puts in it."},"tier":{"type":"integer","enum":[1,2,3,4,5],"description":"What its holder controls, 1 (README spaces, no scripts or styles anywhere) to 5 (anything goes)."},"tierName":{"type":"string","description":"That tier's name."},"status":{"type":"string","enum":["open","off-market","owned","rented","cooldown","unregistered"],"description":"Its state on the chain."},"price":{"$ref":"#/components/schemas/Money"},"forSale":{"type":"boolean","description":"It is in the repo where it should be, so it sells."},"whyNot":{"anyOf":[{"type":"string","description":"Why it does not sell, when it does not."},{"type":"null"}]},"consent":{"anyOf":[{"type":"string","description":"What the buyer agrees to before buying it (tiers 3–5), word for word: show it, and send `consent: true` to `buy` once they have. Null when nothing is asked."},{"type":"null"}]},"shows":{"anyOf":[{"type":"object","properties":{"where":{"type":"string","enum":["site","package","elsewhere","nowhere"],"description":"Where it shows."},"note":{"anyOf":[{"type":"string","description":"The owner's one line, for `elsewhere`."},{"type":"null"}]}},"required":["where","note"],"additionalProperties":false,"description":"For code and config: where it shows, in its owner's words."},{"type":"null"}]},"written":{"anyOf":[{"type":"boolean","description":"Written by its holder and the repo shows exactly that. Null when nobody has written it."},{"type":"null"}]}},"required":["key","label","path","whole","holds","tier","tierName","status","price","forSale","whyNot","consent","shows","written"],"additionalProperties":false,"description":"One part of a repo, as its board page shows it."},"Repo":{"type":"object","properties":{"site":{"type":"string","description":"The board address."},"repo":{"type":"string","description":"`owner/name` on GitHub."},"url":{"type":"string","description":"The repo on GitHub."},"tier":{"type":"integer","enum":[1,2,3,4,5],"description":"Its riskiest part's tier."},"tierName":{"type":"string","description":"That tier's name."},"reach":{"anyOf":[{"$ref":"#/components/schemas/Reach"},{"type":"null"}]},"parts":{"type":"array","items":{"$ref":"#/components/schemas/RepoPart"}},"sold":{"type":"integer","description":"Parts bought at least once."},"total":{"type":"integer","description":"Every part."}},"required":["site","repo","url","tier","tierName","reach","parts","sold","total"],"additionalProperties":false},"RepoBuyBody":{"type":"object","properties":{"consent":{"type":"boolean","description":"The user agreed to the part's `consent`. Needed for tiers 3–5."}},"required":[],"additionalProperties":false},"RepoWordsBody":{"type":"object","properties":{"words":{"type":"string","description":"What the part will hold, committed exactly as sent."}},"required":["words"],"additionalProperties":false},"RepoPictureBody":{"type":"object","properties":{"file":{"type":"string","format":"binary","description":"The picture, for a part that holds one."}},"required":["file"],"additionalProperties":false},"RepoStaged":{"type":"object","properties":{"contentHash":{"type":"string","description":"What the part will hold, by hash."},"transaction":{"$ref":"#/components/schemas/Transaction"}},"required":["contentHash","transaction"],"additionalProperties":false,"description":"Send the `edit`; once mined, `content/commit`."},"RepoWordsCheck":{"type":"object","properties":{"problem":{"anyOf":[{"type":"string","description":"Why staging would refuse these words; null when it would take them."},{"type":"null"}]}},"required":["problem"],"additionalProperties":false},"RepoCommitted":{"type":"object","properties":{"shown":{"type":"boolean","description":"The repo shows exactly what the holder wrote now."},"commitUrl":{"anyOf":[{"type":"string","description":"The commit on GitHub, when one was made."},{"type":"null"}]},"why":{"anyOf":[{"type":"string","description":"Why it is not shown yet, when it is not."},{"type":"null"}]}},"required":["shown","commitUrl","why"],"additionalProperties":false},"RepoConnectBody":{"type":"object","properties":{"returnTo":{"type":"string","description":"Where to send the user afterwards: an https address on one of your app's domains. It gets `github=connected`, `requested` (an organisation's owner must approve), `refused` or `no-code`."},"go":{"type":"string","enum":["install","authorize"],"description":"Our App's install screen (the default), or authorize only, for an owner who installed it already."}},"required":["returnTo"],"additionalProperties":false},"RepoConnect":{"type":"object","properties":{"url":{"type":"string","description":"Send the user here: GitHub's own screen, which shows our App's name."}},"required":["url"],"additionalProperties":false},"MyRepos":{"type":"object","properties":{"repos":{"type":"array","items":{"type":"object","properties":{"repoId":{"type":"string","description":"GitHub's id for the repo: what the next steps name it by."},"repo":{"type":"string","description":"`owner/name`."},"branch":{"type":"string","description":"The branch parts are written on."},"fresh":{"type":"boolean","description":"Proved within a day, so a board can be made of it; otherwise connect again."},"provedAt":{"type":"string","format":"date-time","description":"When they last proved they run it."},"allRepos":{"type":"boolean","description":"Our App is installed on every repo of the account: install it on selected repos only, then connect again."},"board":{"anyOf":[{"type":"string","description":"Its live board, when it has one: one per repo."},{"type":"null"}]}},"required":["repoId","repo","branch","fresh","provedAt","allRepos","board"],"additionalProperties":false,"description":"A repo the user proved they administer."}}},"required":["repos"],"additionalProperties":false},"RepoFile":{"type":"object","properties":{"path":{"type":"string","description":"The file."},"accepts":{"type":"string","enum":["text","image"],"description":"What it holds."},"wholeFile":{"anyOf":[{"type":"object","properties":{"key":{"type":"string","description":"A key proposed for selling the whole file."},"tier":{"anyOf":[{"type":"integer","enum":[1,2,3,4,5],"description":"Its tier, sold whole; null when it cannot be sold."},{"type":"null"}]}},"required":["key","tier"],"additionalProperties":false,"description":"Selling the whole file, when it can be."},{"type":"null"}]},"marked":{"type":"array","items":{"type":"string","description":"A part already marked in it, by key."}},"lines":{"anyOf":[{"type":"array","items":{"type":"string","description":"One line."}},{"type":"null"}]}},"required":["path","accepts","wholeFile","marked","lines"],"additionalProperties":false,"description":"What one file could be sold as. `lines` is its text, for choosing a part by line, when it has a comment style for markers."},"RepoPartSpec":{"type":"object","properties":{"key":{"type":"string","description":"The part's key, used once."},"label":{"type":"string","description":"What the owner calls it. The key, when left out."},"path":{"type":"string","description":"The file."},"price":{"type":"string","description":"In dollars, like `\"10\"`."},"whole":{"type":"boolean","description":"Sell the whole file. Otherwise a part of it: one already marked by `key`, or the `lines` given."},"lines":{"type":"object","properties":{"from":{"type":"integer","description":"First line, from 1."},"to":{"type":"integer","description":"Last line, inclusive."}},"required":["from","to"],"additionalProperties":false,"description":"A part chosen by line: our App commits its markers."},"shows":{"type":"object","properties":{"where":{"type":"string","enum":["site","package","elsewhere","nowhere"],"description":"Where it shows."},"note":{"type":"string","description":"For `elsewhere`, one line."}},"required":["where","note"],"additionalProperties":false,"description":"For a code or config part the board cannot place: where it shows."}},"required":["key","path","price"],"additionalProperties":false},"RepoPartsBody":{"type":"object","properties":{"parts":{"type":"array","items":{"$ref":"#/components/schemas/RepoPartSpec"},"description":"The parts to be sold, as `board` will take them."}},"required":["parts"],"additionalProperties":false},"RepoConsents":{"type":"object","properties":{"consents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"What to send in `consent.ticked`."},"tier":{"type":"integer","enum":[1,2,3,4,5],"description":"The tier it belongs to."},"text":{"type":"string","description":"The words the owner ticks."}},"required":["id","tier","text"],"additionalProperties":false,"description":"One box the owner ticks."}},"nameNeeded":{"type":"boolean","description":"A part of tier 5: the owner also types the repo's name, as `consent.typedName`."}},"required":["consents","nameNeeded"],"additionalProperties":false},"RepoBoardBody":{"type":"object","properties":{"parts":{"type":"array","items":{"$ref":"#/components/schemas/RepoPartSpec"},"description":"Every part to sell, each a whole file or a part of one."},"profile":{"type":"string","enum":["standard","collector","rotating"],"description":"How prices move after a sale."},"consent":{"type":"object","properties":{"ticked":{"type":"array","items":{"type":"string","description":"A consent id."}},"typedName":{"type":"string","description":"The repo's name, for tier 5."}},"required":["ticked","typedName"],"additionalProperties":false,"description":"What the owner ticked and typed (`consents`)."},"forSaleLines":{"type":"boolean","description":"Add a line under each open marked part linking to where it is sold, removed once it sells. On unless false."}},"required":["parts","profile"],"additionalProperties":false},"RepoBoardMade":{"type":"object","properties":{"site":{"type":"string","description":"The new board's address."}},"required":["site"],"additionalProperties":false},"Bot":{"type":"object","properties":{"site":{"type":"string","description":"The bot's address."},"name":{"type":"string","description":"What it is called."},"face":{"anyOf":[{"type":"string","description":"Its picture, when it has one."},{"type":"null"}]},"quiet":{"anyOf":[{"type":"string","description":"Why it has not posted lately, when it has not."},{"type":"null"}]},"lines":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","description":"The line's key."},"kind":{"type":"string","description":"What it holds: `text`, `link`, `brain` (the model that writes) or `face`."},"label":{"type":"string","description":"Its name."},"open":{"type":"boolean","description":"An open line: its buyer names it."},"words":{"anyOf":[{"type":"string","description":"What it says now, on chain or the bot's default."},{"type":"null"}]},"link":{"anyOf":[{"type":"string","description":"For a link line, where it points."},{"type":"null"}]},"model":{"anyOf":[{"type":"string","description":"For the brain line, the model it names."},{"type":"null"}]},"price":{"$ref":"#/components/schemas/Money"},"status":{"type":"string","enum":["open","off-market","owned","rented","cooldown","unregistered"],"description":"Its state on the chain."}},"required":["key","kind","label","open","words","link","model","price","status"],"additionalProperties":false,"description":"One line of the bot's mind. Price is influence: lines are read in price order."}},"posts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The post."},"kind":{"type":"string","enum":["scheduled","reaction"],"description":"On its own time, or because a line changed."},"text":{"anyOf":[{"type":"string","description":"What it said."},{"type":"null"}]},"at":{"type":"string","format":"date-time","description":"When."}},"required":["id","kind","text","at"],"additionalProperties":false,"description":"A recent post, newest first."}}},"required":["site","name","face","quiet","lines","posts"],"additionalProperties":false},"BotLineBody":{"type":"object","properties":{"words":{"type":"string","description":"What the line will say."},"label":{"type":"string","description":"For an open line: its name."},"link":{"type":"string","description":"For a link line: where it points."},"provider":{"type":"string","description":"For the brain line, with `model`: the provider, from the bot page's choices."},"model":{"type":"string","description":"For the brain line: the model that writes, no dearer than the bot allows."}},"required":[],"additionalProperties":false},"BotLineTryBody":{"type":"object","properties":{"words":{"type":"string","description":"The words to try."},"label":{"type":"string","description":"For an open line: its name."},"link":{"type":"string","description":"For a link line: where it points."}},"required":["words"],"additionalProperties":false},"BotLineTried":{"type":"object","properties":{"post":{"type":"string","description":"What the bot would post with these words."},"model":{"type":"string","description":"The model that wrote it."},"rank":{"anyOf":[{"type":"object","properties":{"rank":{"type":"integer","description":"Where the line would stand by price."},"of":{"type":"integer","description":"Of how many."}},"required":["rank","of"],"additionalProperties":false,"description":"Where the line would stand among the bot's lines, by price; null when it would not be read."},{"type":"null"}]}},"required":["post","model","rank"],"additionalProperties":false},"BotDraft":{"type":"object","properties":{"draft":{"type":"string","description":"The draft's id."},"spec":{"type":"object","properties":{"name":{"type":"string","description":"The bot's name."},"frame":{"type":"string","description":"What it is told it is."},"seats":{"type":"array","items":{"type":"object","properties":{"open":{"type":"boolean","description":"An open line, named by its buyer."},"label":{"type":"string","description":"A named line's name."},"words":{"type":"string","description":"A named line's starting words."},"floor":{"type":"string","description":"Its starting price, in dollars."}},"required":["open","label","words","floor"],"additionalProperties":false,"description":"One line."}},"brain":{"type":"string","description":"The model that writes its posts, or empty for ours."},"brainFloor":{"type":"string","description":"The brain line's starting price."},"face":{"type":"object","properties":{"cid":{"anyOf":[{"type":"string","description":"Its picture, as `face` gave it."},{"type":"null"}]},"floor":{"type":"string","description":"The face line's starting price."}},"required":["cid","floor"],"additionalProperties":false,"description":"Its face."},"terms":{"type":"string","description":"A pricing profile id, or empty until chosen."},"cadence_hours":{"type":"integer","description":"How often it posts: 1, 3, 6, 12 or 24."}},"required":["name","frame","seats","brain","brainFloor","face","terms","cadence_hours"],"additionalProperties":false,"description":"The wizard's draft, as kept."},"left":{"type":"string","description":"What tries may still spend, in micro-dollars; the bot starts with it."}},"required":["draft","spec","left"],"additionalProperties":false},"BotDraftBody":{"type":"object","properties":{"spec":{"type":"object","properties":{},"required":[],"additionalProperties":false,"description":"The whole draft, as `BotDraft.spec`."}},"required":["spec"],"additionalProperties":false},"BotFace":{"type":"object","properties":{"cid":{"type":"string","description":"Put this in the draft's `face.cid`."}},"required":["cid"],"additionalProperties":false},"BotDraftTried":{"type":"object","properties":{"post":{"type":"string","description":"What it would post."},"model":{"type":"string","description":"The model that wrote it."},"left":{"type":"string","description":"What tries may still spend, in micro-dollars."}},"required":["post","model","left"],"additionalProperties":false},"BotMade":{"type":"object","properties":{"site":{"type":"string","description":"The bot's address."}},"required":["site"],"additionalProperties":false},"BotPowerBody":{"type":"object","properties":{"power":{"type":"string","enum":["seat-price","seat-on-sale","rental-terms","royalty","add-seats"],"description":"Which power."},"key":{"type":"string","description":"For `seat-price` and `seat-on-sale`: the line."},"price":{"type":"string","description":"For `seat-price`: dollars."},"onSale":{"type":"boolean","description":"For `seat-on-sale`."},"shareBps":{"type":"string","description":"For `rental-terms`: the holder's share of rent, in basis points."},"days":{"type":"integer","description":"For `rental-terms`: the longest term."},"bps":{"type":"string","description":"For `royalty`: the line royalty, in basis points."},"seats":{"type":"array","items":{"type":"object","properties":{"open":{"type":"boolean","description":"Open, or named."},"label":{"type":"string","description":"Its name."},"words":{"type":"string","description":"Its starting words."},"floor":{"type":"string","description":"Its starting price."}},"required":["open","label","words","floor"],"additionalProperties":false,"description":"A line to add."}}},"required":["power"],"additionalProperties":false},"NftChoiceBody":{"type":"object","properties":{"contract":{"type":"string","description":"The NFT's contract."},"tokenId":{"type":"string","description":"Its token id, as a decimal string."}},"required":["contract","tokenId"],"additionalProperties":false},"PictureDraft":{"type":"object","properties":{"draft":{"type":"string","description":"Send the set-up to `/v1/me/images/{draft}`. It becomes the board's id."},"width":{"type":"integer","description":"The picture as it will be sold, in pixels."},"height":{"type":"integer","description":"In pixels."},"cellSizes":{"type":"array","items":{"type":"integer","description":"A square size, in pixels, this picture can be cut into."}}},"required":["draft","width","height","cellSizes"],"additionalProperties":false},"ImageBoardSetup":{"type":"object","properties":{"cellSize":{"type":"integer","description":"One of the draft's `cellSizes`."},"price":{"type":"string","enum":["0.0001","0.001","0.01","0.02","0.05","0.10","0.25","0.50","1","kept"],"description":"Each square's price in dollars, outside any zone; `kept` keeps those squares off sale for good."},"name":{"type":"string","description":"Up to 64 characters, fixed for good."},"description":{"type":"string","description":"Up to 1,000 characters, fixed for good."},"terms":{"type":"string","enum":["standard","collector","rotating"],"description":"How a sold square can be bought from its owner. Fixed for good."},"zones":{"type":"array","items":{"type":"object","properties":{"col":{"type":"integer","description":"Its left edge, in squares from the left."},"row":{"type":"integer","description":"Its top edge, in squares from the top."},"cols":{"type":"integer","description":"Its width, in squares."},"rows":{"type":"integer","description":"Its height, in squares."},"price":{"type":"string","enum":["0.0001","0.001","0.01","0.02","0.05","0.10","0.25","0.50","1","kept"],"description":"Each square's price in this area; `kept` keeps it off sale."}},"required":["col","row","cols","rows","price"],"additionalProperties":false,"description":"An area priced apart, in squares."}}},"required":["cellSize","price","name","terms"],"additionalProperties":false},"ImageBoardMade":{"type":"object","properties":{"board":{"type":"string","description":"The board's id, in every other image board call."},"contract":{"type":"string","description":"The board's contract."},"href":{"type":"string","description":"The board, as anyone reads it."}},"required":["board","contract","href"],"additionalProperties":false}},"securitySchemes":{"appKey":{"type":"apiKey","in":"header","name":"x-api-key","description":"The app's key. Keep it on the app's server."},"userToken":{"type":"http","scheme":"bearer","description":"From `/v1/auth/verify` or `/v1/auth/privy`, for one user."}}}}