{"openapi":"3.1.0","info":{"title":"PadCodes Game API","version":"1.0.0","contact":{"name":"PadCodes","email":"hi@padcodes.com"},"description":"Add and update games and propose cheat codes. **Nothing you submit is published.** Everything lands as a hidden game draft or a pending review item; a person approves in the review app, and the site shows a code only after that.\n\nEvery code must cite a source and an exact quote (text) or a timestamp (video). Text sources are fetched under the reading rules and the quote and the code must be found in the page word for word. A source's kind is a hint: a submitted source is never treated as primary; only the owner promotes one.\n\n**How to get a key:** email hi@padcodes.com with what you want to add or update; keys are issued by the owner.\n\nLimits: 60 requests a minute and 5000 a day per key; 200 review items a day per key. In launch mode API items rank below the pipeline's own."},"servers":[{"url":"https://padcodes.com/api/v1"}],"security":[{"bearer":[]}],"paths":{"/":{"get":{"summary":"What this API is, where the description is, and how to get a key (no key needed)","security":[],"responses":{"200":{"description":"A small JSON document"}}}},"/openapi.json":{"get":{"summary":"This document (no key needed)","security":[],"responses":{"200":{"description":"OpenAPI 3.1"}}}},"/games":{"get":{"summary":"List games","responses":{"200":{"description":"Games with code counts and the page gate"},"401":{"description":"No valid API key","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Key revoked or missing the scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or the API is not enabled","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limit or the daily review-item cap; see Retry-After","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/games/{slug}":{"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9]+(-[a-z0-9]+)*$"}}],"get":{"summary":"One game with its status","responses":{"200":{"description":"The game, code counts by state, pending review count and the gate"},"401":{"description":"No valid API key","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Key revoked or missing the scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or the API is not enabled","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limit or the daily review-item cap; see Retry-After","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"put":{"summary":"Add a game, or replace a draft you created","parameters":[{"name":"dryRun","in":"query","required":false,"description":"Validate and return what would be stored, without storing anything or using the daily item cap.","schema":{"type":"boolean"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"A repeat within 24 hours returns the first response (header Idempotent-Replayed: true). The same key with a different request is 422.","schema":{"type":"string","minLength":1,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutGame"}}}},"responses":{"200":{"description":"Replaced"},"201":{"description":"Created (a hidden draft)"},"400":{"description":"The request is not valid (field errors in `errors`)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No valid API key","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Key revoked or missing the scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or the API is not enabled","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"The game is live or was not created through the API","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limit or the daily review-item cap; see Retry-After","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"patch":{"summary":"Update a draft game you created","parameters":[{"name":"dryRun","in":"query","required":false,"description":"Validate and return what would be stored, without storing anything or using the daily item cap.","schema":{"type":"boolean"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"A repeat within 24 hours returns the first response (header Idempotent-Replayed: true). The same key with a different request is 422.","schema":{"type":"string","minLength":1,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchGame"}}}},"responses":{"200":{"description":"Updated"},"400":{"description":"The request is not valid (field errors in `errors`)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No valid API key","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Key revoked or missing the scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or the API is not enabled","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"The game is live or was not created through the API","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limit or the daily review-item cap; see Retry-After","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/games/{slug}/codes":{"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9]+(-[a-z0-9]+)*$"}}],"get":{"summary":"Read codes and their states","parameters":[{"name":"state","in":"query","required":false,"schema":{"type":"string","enum":["rumoured","seen","evidenced","confirmed","patched","disputed","retracted"]}}],"responses":{"200":{"description":"Codes with per-family states, proof counts and pending changes"},"401":{"description":"No valid API key","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Key revoked or missing the scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or the API is not enabled","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limit or the daily review-item cap; see Retry-After","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"post":{"summary":"Propose codes (1 to 200)","parameters":[{"name":"dryRun","in":"query","required":false,"description":"Validate and return what would be stored, without storing anything or using the daily item cap.","schema":{"type":"boolean"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"A repeat within 24 hours returns the first response (header Idempotent-Replayed: true). The same key with a different request is 422.","schema":{"type":"string","minLength":1,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostCodes"}}}},"responses":{"207":{"description":"One result per item, in order","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodesResponse"}}}},"400":{"description":"The request is not valid (field errors in `errors`)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No valid API key","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Key revoked or missing the scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or the API is not enabled","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limit or the daily review-item cap; see Retry-After","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/games/{slug}/codes/{codeSlug}":{"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9]+(-[a-z0-9]+)*$"}},{"name":"codeSlug","in":"path","required":true,"schema":{"type":"string"}}],"patch":{"summary":"Propose a corrected input (with evidence) or effect key for one code","parameters":[{"name":"dryRun","in":"query","required":false,"description":"Validate and return what would be stored, without storing anything or using the daily item cap.","schema":{"type":"boolean"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"A repeat within 24 hours returns the first response (header Idempotent-Replayed: true). The same key with a different request is 422.","schema":{"type":"string","minLength":1,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchCode"}}}},"responses":{"200":{"description":"The review items created"},"400":{"description":"The request is not valid (field errors in `errors`)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No valid API key","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Key revoked or missing the scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or the API is not enabled","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"Valid, but not supported or not supported by its evidence","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limit or the daily review-item cap; see Retry-After","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/games/{slug}/sources":{"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9]+(-[a-z0-9]+)*$"}}],"post":{"summary":"Submit sources to read (videos, publisher pages)","parameters":[{"name":"dryRun","in":"query","required":false,"description":"Validate and return what would be stored, without storing anything or using the daily item cap.","schema":{"type":"boolean"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"A repeat within 24 hours returns the first response (header Idempotent-Replayed: true). The same key with a different request is 422.","schema":{"type":"string","minLength":1,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostSources"}}}},"responses":{"207":{"description":"One result per source: queued, duplicate, blocked_by_robots, source_blocked, rejected"},"400":{"description":"The request is not valid (field errors in `errors`)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No valid API key","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Key revoked or missing the scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or the API is not enabled","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limit or the daily review-item cap; see Retry-After","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/games/{slug}/guides":{"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9]+(-[a-z0-9]+)*$"}}],"get":{"summary":"The game's guides with their phase (draft, pending, live, archived), the owner's note when one was sent back, and whether a revision of a live guide is waiting","parameters":[{"name":"phase","in":"query","required":false,"schema":{"type":"string","enum":["draft","pending","live","archived"]}}],"responses":{"200":{"description":"Guides without their blocks"},"401":{"description":"No valid API key","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Key revoked or missing the scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or the API is not enabled","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limit or the daily review-item cap; see Retry-After","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/games/{slug}/guides/{guideSlug}":{"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9]+(-[a-z0-9]+)*$"}},{"name":"guideSlug","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9]+(-[a-z0-9]+)*$","maxLength":80}}],"put":{"summary":"Submit a guide (needs the guides:write scope). Every source's quote is verified in the live page; a guide with any unverified source is 422 with a per-source reason. Valid guides are stored PENDING: nothing is live without the owner. A re-PUT of a live guide becomes a pending revision (the live version stays until it is approved); the same body again changes nothing.","parameters":[{"name":"dryRun","in":"query","required":false,"description":"Validate and return what would be stored, without storing anything or using the daily item cap.","schema":{"type":"boolean"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"A repeat within 24 hours returns the first response (header Idempotent-Replayed: true). The same key with a different request is 422.","schema":{"type":"string","minLength":1,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutGuide"}}}},"responses":{"200":{"description":"Stored as a pending revision, replaced a pending draft, or unchanged"},"201":{"description":"Stored pending (new guide)"},"400":{"description":"The request is not valid (field errors in `errors`)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No valid API key","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Key revoked or missing the scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or the API is not enabled","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"Valid, but not supported or not supported by its evidence","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limit or the daily review-item cap; see Retry-After","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/games/{slug}/guide-images":{"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9]+(-[a-z0-9]+)*$"}}],"post":{"summary":"Register a guide image's metadata (alt, credit, licence) and get a signed URL to upload the original to Cloud Storage (needs the guides:write scope). Stored pending; the owner approves it with the guide that uses it.","parameters":[{"name":"dryRun","in":"query","required":false,"description":"Validate and return what would be stored, without storing anything or using the daily item cap.","schema":{"type":"boolean"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"A repeat within 24 hours returns the first response (header Idempotent-Replayed: true). The same key with a different request is 422.","schema":{"type":"string","minLength":1,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostGuideImage"}}}},"responses":{"200":{"description":"Replaced a pending image's metadata"},"201":{"description":"Created; upload the file with PUT to upload.url"},"400":{"description":"The request is not valid (field errors in `errors`)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No valid API key","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Key revoked or missing the scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or the API is not enabled","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"The game is live or was not created through the API","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"Valid, but not supported or not supported by its evidence","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limit or the daily review-item cap; see Retry-After","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/submissions/{id}":{"get":{"summary":"Status of an earlier submission: per item, the verbatim-gate result and the live review status","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The submission"},"401":{"description":"No valid API key","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Key revoked or missing the scope","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or the API is not enabled","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Rate limit or the daily review-item cap; see Retry-After","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}}},"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","bearerFormat":"pc_live_<43 characters>","description":"Authorization: Bearer pc_live_... A missing or bad key is 401, a revoked key 403."}},"schemas":{"PutGame":{"type":"object","properties":{"title":{"type":"string","minLength":1},"shortTitle":{"type":"string","minLength":1},"aliases":{"default":[],"type":"array","items":{"type":"string"}},"franchise":{"type":"string","minLength":1},"releaseYear":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"platforms":{"minItems":1,"type":"array","items":{"type":"string","enum":["ps5","ps4","ps3","ps2","psp","nds","gc","xsx","xone","x360","xbox","pc","switch","ios","android","phone","java","bedrock"]}},"families":{"minItems":1,"type":"array","items":{"type":"string","enum":["playstation","xbox","switch","pc_text","phone_number","phrase","gta6_unknown","console_command","menu_code","keyboard_typed","chat_typed","nintendo_ds","psp","gamecube","minecraft_java","minecraft_bedrock"]}},"vocabulary":{"type":"string","enum":["cheat codes","cheats","console commands","codes"]},"cheatSystem":{"type":"string","enum":["typed_anytime","found_in_world","mixed","none","unknown"]},"categories":{"default":[],"type":"array","items":{"type":"string","enum":["player","weapons","money","vehicles","wanted","movement","world","items","characters","build","fun","unlock"]}},"howToEnter":{"type":"object","propertyNames":{"type":"string","enum":["playstation","xbox","switch","pc_text","phone_number","phrase","gta6_unknown","console_command","menu_code","keyboard_typed","chat_typed","nintendo_ds","psp","gamecube","minecraft_java","minecraft_bedrock"]},"additionalProperties":{"type":"string"}},"consoleOpener":{"type":"object","propertyNames":{"type":"string","enum":["playstation","xbox","switch","pc_text","phone_number","phrase","gta6_unknown","console_command","menu_code","keyboard_typed","chat_typed","nintendo_ds","psp","gamecube","minecraft_java","minecraft_bedrock"]},"additionalProperties":{"anyOf":[{"type":"object","properties":{"tokens":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tokens"],"additionalProperties":false},{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":120}},"required":["text"],"additionalProperties":false}]}},"publisherDomains":{"maxItems":5,"type":"array","items":{"type":"string","pattern":"^[a-z0-9]([a-z0-9-]*[a-z0-9])?(\\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)+$"}},"expectedCount":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"editions":{"type":"object","propertyNames":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"additionalProperties":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":60},"base":{"type":"boolean"}},"required":["label"],"additionalProperties":false}},"sources":{"default":[],"type":"array","items":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"kind":{"type":"string","enum":["video","publisher_text","text","wiki","forum","social"]}},"required":["url","kind"],"additionalProperties":false}}},"required":["title","shortTitle","franchise","releaseYear","platforms","families","vocabulary","cheatSystem","howToEnter"],"additionalProperties":false},"PatchGame":{"type":"object","properties":{"title":{"type":"string","minLength":1},"shortTitle":{"type":"string","minLength":1},"aliases":{"default":[],"type":"array","items":{"type":"string"}},"franchise":{"type":"string","minLength":1},"releaseYear":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"platforms":{"minItems":1,"type":"array","items":{"type":"string","enum":["ps5","ps4","ps3","ps2","psp","nds","gc","xsx","xone","x360","xbox","pc","switch","ios","android","phone","java","bedrock"]}},"families":{"minItems":1,"type":"array","items":{"type":"string","enum":["playstation","xbox","switch","pc_text","phone_number","phrase","gta6_unknown","console_command","menu_code","keyboard_typed","chat_typed","nintendo_ds","psp","gamecube","minecraft_java","minecraft_bedrock"]}},"vocabulary":{"type":"string","enum":["cheat codes","cheats","console commands","codes"]},"cheatSystem":{"type":"string","enum":["typed_anytime","found_in_world","mixed","none","unknown"]},"categories":{"default":[],"type":"array","items":{"type":"string","enum":["player","weapons","money","vehicles","wanted","movement","world","items","characters","build","fun","unlock"]}},"howToEnter":{"type":"object","propertyNames":{"type":"string","enum":["playstation","xbox","switch","pc_text","phone_number","phrase","gta6_unknown","console_command","menu_code","keyboard_typed","chat_typed","nintendo_ds","psp","gamecube","minecraft_java","minecraft_bedrock"]},"additionalProperties":{"type":"string"}},"consoleOpener":{"type":"object","propertyNames":{"type":"string","enum":["playstation","xbox","switch","pc_text","phone_number","phrase","gta6_unknown","console_command","menu_code","keyboard_typed","chat_typed","nintendo_ds","psp","gamecube","minecraft_java","minecraft_bedrock"]},"additionalProperties":{"anyOf":[{"type":"object","properties":{"tokens":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["tokens"],"additionalProperties":false},{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":120}},"required":["text"],"additionalProperties":false}]}},"publisherDomains":{"maxItems":5,"type":"array","items":{"type":"string","pattern":"^[a-z0-9]([a-z0-9-]*[a-z0-9])?(\\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)+$"}},"expectedCount":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"editions":{"type":"object","propertyNames":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"additionalProperties":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":60},"base":{"type":"boolean"}},"required":["label"],"additionalProperties":false}},"sources":{"default":[],"type":"array","items":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"kind":{"type":"string","enum":["video","publisher_text","text","wiki","forum","social"]}},"required":["url","kind"],"additionalProperties":false}}},"additionalProperties":false},"PostCodes":{"type":"array","minItems":1,"maxItems":200,"items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"inGameName":{"type":"string"},"family":{"type":"string","enum":["playstation","xbox","switch","pc_text","phone_number","phrase","gta6_unknown","console_command","menu_code","keyboard_typed","chat_typed","nintendo_ds","psp","gamecube","minecraft_java","minecraft_bedrock"]},"input":{"type":"object","properties":{"tokens":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}},"text":{"type":"string","minLength":1},"template":{"type":"string","minLength":1},"params":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"type":{"type":"string","enum":["number","string","enum"]},"default":{"type":["string","number"]},"min":{"type":"number"},"max":{"type":"number"},"options":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["name","type","default"],"additionalProperties":false}}},"additionalProperties":false},"categories":{"minItems":1,"type":"array","items":{"type":"string","enum":["player","weapons","money","vehicles","wanted","movement","world","items","characters","build","fun","unlock"]}},"effectKey":{"type":"string","pattern":"^effect\\.[a-z0-9_.]+$"},"effectParams":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"trophyEffect":{"type":"string","enum":["none","disables_session","disables_until_reload","disables_save_file","blocks_specific","unknown"]},"saveEffect":{"type":"string","enum":["none","cannot_save_while_active","marks_save","blocks_autosave","unknown"]},"prerequisite":{"type":"object","properties":{"key":{"type":"string","pattern":"^prereq\\.[a-z0-9_.]+$"},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number"]}}},"required":["key"],"additionalProperties":false},"unlockedBy":{"type":"object","properties":{"text":{"type":"string","minLength":8,"maxLength":200,"pattern":"^[^\\n\\r\\t\\u0000-\\u001f]+$"}},"required":["text"],"additionalProperties":false},"edition":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"evidence":{"minItems":1,"type":"array","items":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"kind":{"type":"string","enum":["video","publisher_text","text"]},"timestampSec":{"type":"number","minimum":0},"quote":{"type":"string","minLength":1}},"required":["url","kind"],"additionalProperties":false}}},"required":["name","family","input","categories","evidence"],"additionalProperties":false}},"PutGuide":{"type":"object","properties":{"category":{"type":"string","enum":["getting-started","story","side-missions","strangers","activities","money","businesses","collectibles","map","vehicles","weapons","characters","trophies","cheats","tips"]},"kind":{"type":"string","enum":["guide","checklist","map","list"]},"title":{"type":"string","minLength":1,"maxLength":70,"pattern":"^[^\\n\\r\\t\\u0000-\\u001f]+$"},"summary":{"type":"string","minLength":50,"maxLength":160,"pattern":"^[^\\n\\r\\t\\u0000-\\u001f]+$"},"chapter":{"type":"integer","minimum":0,"maximum":99},"chapterName":{"type":"string","minLength":1,"maxLength":70,"pattern":"^[^\\n\\r\\t\\u0000-\\u001f]+$"},"inGameTotal":{"type":"integer","exclusiveMinimum":0,"maximum":100000},"video":{"type":"object","properties":{"youtubeId":{"type":"string","pattern":"^[A-Za-z0-9_-]{11}$"},"title":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[^\\n\\r\\t\\u0000-\\u001f]+$"},"uploadDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["youtubeId","title"],"additionalProperties":false},"order":{"type":"integer","minimum":0,"maximum":100000},"sections":{"minItems":1,"maxItems":40,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,29}$"},"heading":{"type":"string","minLength":1,"maxLength":120,"pattern":"^[^\\n\\r\\t\\u0000-\\u001f]+$"},"headingPublic":{"type":"string","minLength":1,"maxLength":120,"pattern":"^[^\\n\\r\\t\\u0000-\\u001f]+$"},"blocks":{"minItems":1,"maxItems":80,"type":"array","items":{"oneOf":[{"type":"object","properties":{"t":{"type":"string","const":"p"},"text":{"type":"string","minLength":1,"maxLength":2000},"refs":{"minItems":1,"maxItems":30,"type":"array","items":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,29}$"}}},"required":["t","text","refs"],"additionalProperties":false},{"type":"object","properties":{"t":{"type":"string","const":"step"},"text":{"type":"string","minLength":1,"maxLength":2000},"refs":{"minItems":1,"maxItems":30,"type":"array","items":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,29}$"}},"imageId":{"type":"string","maxLength":80,"pattern":"^[a-z0-9]+(-[a-z0-9]+)*$"}},"required":["t","text","refs"],"additionalProperties":false},{"type":"object","properties":{"t":{"type":"string","const":"callout"},"variant":{"type":"string","enum":["tip","missable","warning","reward"]},"text":{"type":"string","minLength":1,"maxLength":2000},"refs":{"minItems":1,"maxItems":30,"type":"array","items":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,29}$"}}},"required":["t","variant","text","refs"],"additionalProperties":false},{"type":"object","properties":{"t":{"type":"string","const":"table"},"columns":{"minItems":2,"maxItems":8,"type":"array","items":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[^\\n\\r\\t\\u0000-\\u001f]+$"}},"rows":{"minItems":1,"maxItems":200,"type":"array","items":{"minItems":2,"maxItems":8,"type":"array","items":{"type":"string","maxLength":300}}},"refs":{"minItems":1,"maxItems":30,"type":"array","items":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,29}$"}}},"required":["t","columns","rows","refs"],"additionalProperties":false},{"type":"object","properties":{"t":{"type":"string","const":"figure"},"imageId":{"type":"string","maxLength":80,"pattern":"^[a-z0-9]+(-[a-z0-9]+)*$"}},"required":["t","imageId"],"additionalProperties":false},{"type":"object","properties":{"t":{"type":"string","const":"gallery"},"imageIds":{"minItems":2,"maxItems":12,"type":"array","items":{"type":"string","maxLength":80,"pattern":"^[a-z0-9]+(-[a-z0-9]+)*$"}}},"required":["t","imageIds"],"additionalProperties":false},{"type":"object","properties":{"t":{"type":"string","const":"code"},"codeId":{"type":"string","pattern":"^[a-z0-9]+(-[a-z0-9]+)*__[a-z0-9]+(-[a-z0-9]+)*$"},"family":{"type":"string","minLength":2,"maxLength":30}},"required":["t","codeId"],"additionalProperties":false},{"type":"object","properties":{"t":{"type":"string","const":"checklist"},"items":{"minItems":1,"maxItems":400,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,29}$"},"label":{"type":"string","minLength":1,"maxLength":120,"pattern":"^[^\\n\\r\\t\\u0000-\\u001f]+$"},"detail":{"type":"string","minLength":1,"maxLength":2000},"pin":{"type":"integer","exclusiveMinimum":0,"maximum":999},"refs":{"minItems":1,"maxItems":30,"type":"array","items":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,29}$"}},"imageId":{"type":"string","maxLength":80,"pattern":"^[a-z0-9]+(-[a-z0-9]+)*$"}},"required":["id","label","refs"],"additionalProperties":false}}},"required":["t","items"],"additionalProperties":false},{"type":"object","properties":{"t":{"type":"string","const":"map"},"imageId":{"type":"string","maxLength":80,"pattern":"^[a-z0-9]+(-[a-z0-9]+)*$"},"pins":{"minItems":1,"maxItems":400,"type":"array","items":{"type":"object","properties":{"n":{"type":"integer","exclusiveMinimum":0,"maximum":999},"x":{"type":"number","minimum":0,"maximum":1},"y":{"type":"number","minimum":0,"maximum":1},"itemId":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,29}$"}},"required":["n","x","y"],"additionalProperties":false}}},"required":["t","imageId","pins"],"additionalProperties":false},{"type":"object","properties":{"t":{"type":"string","const":"guide"},"guideId":{"type":"string","pattern":"^[a-z0-9]+(-[a-z0-9]+)*__[a-z0-9]+(-[a-z0-9]+)*$"}},"required":["t","guideId"],"additionalProperties":false}]}}},"required":["id","heading","blocks"],"additionalProperties":false}},"relatedCodeIds":{"default":[],"maxItems":50,"type":"array","items":{"type":"string"}},"relatedGuideIds":{"default":[],"maxItems":50,"type":"array","items":{"type":"string"}},"sources":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,29}$"},"url":{"type":"string","format":"uri"},"kind":{"type":"string","enum":["text","publisher_text","video"]},"quote":{"type":"string","minLength":8,"maxLength":1200},"timestampSec":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["id","url","kind"],"additionalProperties":false}},"imageIds":{"maxItems":80,"type":"array","items":{"type":"string","maxLength":80,"pattern":"^[a-z0-9]+(-[a-z0-9]+)*$"}}},"required":["category","kind","title","summary","order","sections","sources"],"additionalProperties":false},"PostGuideImage":{"type":"object","properties":{"id":{"type":"string","maxLength":80,"pattern":"^[a-z0-9]+(-[a-z0-9]+)*$"},"alt":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[^\\n\\r\\t\\u0000-\\u001f]+$"},"caption":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[^\\n\\r\\t\\u0000-\\u001f]+$"},"credit":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[^\\n\\r\\t\\u0000-\\u001f]+$"},"sourceUrl":{"type":"string","format":"uri"},"license":{"type":"string","enum":["rockstar_official","own_capture","own_svg","ai_generated","own_video"]},"width":{"type":"integer","minimum":100,"maximum":8000},"height":{"type":"integer","minimum":100,"maximum":8000},"ext":{"type":"string","enum":["png","jpg","webp","avif","svg"]}},"required":["id","alt","credit","license","width","height","ext"],"additionalProperties":false},"PatchCode":{"type":"object","properties":{"name":{"type":"string","minLength":1},"inGameName":{"type":"string"},"family":{"type":"string","enum":["playstation","xbox","switch","pc_text","phone_number","phrase","gta6_unknown","console_command","menu_code","keyboard_typed","chat_typed","nintendo_ds","psp","gamecube","minecraft_java","minecraft_bedrock"]},"input":{"type":"object","properties":{"tokens":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}},"text":{"type":"string","minLength":1},"template":{"type":"string","minLength":1},"params":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"type":{"type":"string","enum":["number","string","enum"]},"default":{"type":["string","number"]},"min":{"type":"number"},"max":{"type":"number"},"options":{"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["name","type","default"],"additionalProperties":false}}},"additionalProperties":false},"categories":{"minItems":1,"type":"array","items":{"type":"string","enum":["player","weapons","money","vehicles","wanted","movement","world","items","characters","build","fun","unlock"]}},"effectKey":{"type":"string","pattern":"^effect\\.[a-z0-9_.]+$"},"effectParams":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"trophyEffect":{"type":"string","enum":["none","disables_session","disables_until_reload","disables_save_file","blocks_specific","unknown"]},"saveEffect":{"type":"string","enum":["none","cannot_save_while_active","marks_save","blocks_autosave","unknown"]},"prerequisite":{"type":"object","properties":{"key":{"type":"string","pattern":"^prereq\\.[a-z0-9_.]+$"},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number"]}}},"required":["key"],"additionalProperties":false},"unlockedBy":{"type":"object","properties":{"text":{"type":"string","minLength":8,"maxLength":200,"pattern":"^[^\\n\\r\\t\\u0000-\\u001f]+$"}},"required":["text"],"additionalProperties":false},"edition":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"evidence":{"minItems":1,"type":"array","items":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"kind":{"type":"string","enum":["video","publisher_text","text"]},"timestampSec":{"type":"number","minimum":0},"quote":{"type":"string","minLength":1}},"required":["url","kind"],"additionalProperties":false}},"correction":{"type":"object","properties":{"kind":{"type":"string","enum":["does_not_work","removed","patched_out","not_on_platform"]},"note":{"type":"string","maxLength":300}},"required":["kind"],"additionalProperties":false},"effectNote":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":300}},"required":["text"],"additionalProperties":false}},"additionalProperties":false},"PostSources":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"kind":{"type":"string","enum":["video","publisher_text","text","wiki","forum","social"]},"note":{"type":"string"}},"required":["url","kind"],"additionalProperties":false}},"CodesResponse":{"type":"object","properties":{"submissionId":{"type":"string"},"dryRun":{"type":"boolean"},"results":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"status":{"type":"string","const":"accepted"},"reviewItemId":{"type":"string"},"score":{"type":"number"},"reasons":{"type":"array","items":{"type":"string"}},"autoPublish":{"type":"boolean"}},"required":["status","reviewItemId"],"additionalProperties":false},{"type":"object","properties":{"status":{"type":"string","const":"duplicate"},"codeId":{"type":"string"},"reviewItemId":{"type":"string"}},"required":["status"],"additionalProperties":false},{"type":"object","properties":{"status":{"type":"string","const":"rejected"},"reason":{"type":"string","enum":["not_verbatim_in_source","source_blocked","unknown_token","before_unlock_gate","schema","source_deferred","item_limit"]},"detail":{"type":"string"}},"required":["status","reason"],"additionalProperties":false}]}}},"required":["submissionId","dryRun","results"],"additionalProperties":false},"SourceResult":{"oneOf":[{"type":"object","properties":{"status":{"type":"string","const":"queued"},"sourceId":{"type":"string"}},"required":["status","sourceId"],"additionalProperties":false},{"type":"object","properties":{"status":{"type":"string","const":"duplicate"},"sourceId":{"type":"string"}},"required":["status","sourceId"],"additionalProperties":false},{"type":"object","properties":{"status":{"type":"string","const":"blocked_by_robots"}},"required":["status"],"additionalProperties":false},{"type":"object","properties":{"status":{"type":"string","const":"source_blocked"},"detail":{"type":"string"}},"required":["status"],"additionalProperties":false},{"type":"object","properties":{"status":{"type":"string","const":"rejected"},"reason":{"type":"string","enum":["schema","source_deferred"]}},"required":["status","reason"],"additionalProperties":false}]},"Problem":{"type":"object","properties":{"type":{"type":"string"},"title":{"type":"string"},"status":{"type":"integer","minimum":400,"maximum":599},"detail":{"type":"string"},"instance":{"type":"string"}},"required":["type","title","status"],"additionalProperties":{}}}}}