{"components":{"responses":{"Error":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"JSON error with machine-readable code and human-readable message"}},"schemas":{"AccountProfile":{"additionalProperties":false,"properties":{"display_name":{"maxLength":80,"minLength":1,"type":"string"}},"required":["display_name"],"type":"object"},"AnagramAnswer":{"description":"Curated answer; ASCII case and whitespace normalized. Hard anagrams accept all allowed_words with exactly the supplied letters.","type":"string"},"AnagramData":{"properties":{"allowed_words":{"items":{"pattern":"^[a-z]+$","type":"string"},"maxItems":1000,"minItems":1,"type":"array"},"clue":{"type":"string"},"content_license":{"const":"CC0-1.0","type":"string"},"content_version":{"enum":["1","2"],"type":"string"},"first_letter":{"pattern":"^[a-z]+$","type":"string"},"learning":{"properties":{"experiment":{"type":"string"},"objective":{"type":"string"},"principle":{"type":"string"}},"required":["objective","principle","experiment"],"type":"object"},"length":{"maximum":32,"minimum":3,"type":"integer"},"letters":{"pattern":"^[a-z]+$","type":"string"},"locale":{"const":"en-US","type":"string"}},"required":["letters","length","content_version","locale","content_license"],"type":"object"},"AnagramPuzzle":{"properties":{"data":{"$ref":"#/components/schemas/AnagramData"},"difficulty":{"$ref":"#/components/schemas/Difficulty"},"generator_version":{"type":"string"},"id":{"type":"string"},"kind":{"const":"anagram","type":"string"},"rules":{"type":"string"},"seed":{"$ref":"#/components/schemas/SeedString"},"solution":{"$ref":"#/components/schemas/AnagramAnswer","description":"Present only when include_solution is true."},"uniqueness":{"type":"string"}},"required":["id","generator_version","kind","seed","difficulty","data","rules","uniqueness"],"type":"object"},"ArithmeticAnswer":{"description":"Exact integer result of the generated expression.","format":"int64","type":"integer"},"ArithmeticData":{"properties":{"expression":{"description":"Integer expression with +, -, *, and parentheses; normal arithmetic precedence applies.","type":"string"}},"required":["expression"],"type":"object"},"ArithmeticPuzzle":{"properties":{"data":{"$ref":"#/components/schemas/ArithmeticData"},"difficulty":{"$ref":"#/components/schemas/Difficulty"},"generator_version":{"type":"string"},"id":{"type":"string"},"kind":{"const":"arithmetic","type":"string"},"rules":{"type":"string"},"seed":{"$ref":"#/components/schemas/SeedString"},"solution":{"$ref":"#/components/schemas/ArithmeticAnswer","description":"Present only when include_solution is true."},"uniqueness":{"type":"string"}},"required":["id","generator_version","kind","seed","difficulty","data","rules","uniqueness"],"type":"object"},"BinaryCell":{"maximum":1,"minimum":0,"type":"integer"},"ChangePassword":{"additionalProperties":false,"properties":{"current_password":{"maxLength":1024,"type":"string","writeOnly":true},"new_password":{"maxLength":1024,"minLength":15,"type":"string","writeOnly":true}},"required":["current_password","new_password"],"type":"object"},"CompoundBridgeAnswer":{"description":"Curated answer; ASCII case and whitespace normalized. Hard anagrams accept all allowed_words with exactly the supplied letters.","type":"string"},"CompoundBridgeData":{"properties":{"clue":{"type":"string"},"content_license":{"const":"CC0-1.0","type":"string"},"content_version":{"enum":["1","2"],"type":"string"},"first_letter":{"pattern":"^[a-z]+$","type":"string"},"learning":{"properties":{"experiment":{"type":"string"},"objective":{"type":"string"},"principle":{"type":"string"}},"required":["objective","principle","experiment"],"type":"object"},"left":{"pattern":"^[a-z]+$","type":"string"},"length":{"maximum":32,"minimum":1,"type":"integer"},"locale":{"const":"en-US","type":"string"},"right":{"pattern":"^[a-z]+$","type":"string"}},"required":["left","right","length","content_version","locale","content_license"],"type":"object"},"CompoundBridgePuzzle":{"properties":{"data":{"$ref":"#/components/schemas/CompoundBridgeData"},"difficulty":{"$ref":"#/components/schemas/Difficulty"},"generator_version":{"type":"string"},"id":{"type":"string"},"kind":{"const":"compound-bridge","type":"string"},"rules":{"type":"string"},"seed":{"$ref":"#/components/schemas/SeedString"},"solution":{"$ref":"#/components/schemas/CompoundBridgeAnswer","description":"Present only when include_solution is true."},"uniqueness":{"type":"string"}},"required":["id","generator_version","kind","seed","difficulty","data","rules","uniqueness"],"type":"object"},"Coordinate":{"description":"Zero-based [row,column]. Coordinates must also lie inside the selected puzzle board.","items":{"maximum":24,"minimum":0,"type":"integer"},"maxItems":2,"minItems":2,"type":"array"},"CreateMemberKey":{"additionalProperties":false,"properties":{"name":{"maxLength":80,"minLength":1,"type":"string"}},"required":["name"],"type":"object"},"CryptogramAnswer":{"description":"Selected plaintext phrase. ASCII case and repeated, leading, or trailing whitespace are ignored. Linguistic uniqueness is not guaranteed.","type":"string"},"CryptogramData":{"properties":{"ciphertext":{"description":"Uppercase monoalphabetic substitution ciphertext, preserving spaces and punctuation.","type":"string"}},"required":["ciphertext"],"type":"object"},"CryptogramPuzzle":{"properties":{"data":{"$ref":"#/components/schemas/CryptogramData"},"difficulty":{"$ref":"#/components/schemas/Difficulty"},"generator_version":{"type":"string"},"id":{"type":"string"},"kind":{"const":"cryptogram","type":"string"},"rules":{"type":"string"},"seed":{"$ref":"#/components/schemas/SeedString"},"solution":{"$ref":"#/components/schemas/CryptogramAnswer","description":"Present only when include_solution is true."},"uniqueness":{"type":"string"}},"required":["id","generator_version","kind","seed","difficulty","data","rules","uniqueness"],"type":"object"},"DeleteAccount":{"additionalProperties":false,"properties":{"confirmation":{"const":"DELETE"},"password":{"maxLength":1024,"type":"string","writeOnly":true}},"required":["password","confirmation"],"type":"object"},"Difficulty":{"default":"medium","description":"Generation preset, not a calibrated human difficulty rating.","enum":["easy","medium","hard"],"type":"string"},"Error":{"properties":{"error":{"properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"type":"object"}},"required":["error"],"type":"object"},"FutoshikiAnswer":{"description":"Latin square satisfying every given and inequality; boxes are not constrained.","items":{"items":{"maximum":4,"minimum":1,"type":"integer"},"maxItems":4,"minItems":4,"type":"array"},"maxItems":4,"minItems":4,"type":"array"},"FutoshikiData":{"properties":{"clue_count":{"maximum":16,"minimum":4,"type":"integer"},"grid":{"items":{"items":{"maximum":4,"minimum":0,"type":"integer"},"maxItems":4,"minItems":4,"type":"array"},"maxItems":4,"minItems":4,"type":"array"},"inequalities":{"items":{"properties":{"first":{"$ref":"#/components/schemas/Coordinate"},"op":{"enum":["<",">"],"type":"string"},"second":{"$ref":"#/components/schemas/Coordinate"}},"required":["first","second","op"],"type":"object"},"maxItems":10,"minItems":6,"type":"array"},"size":{"const":4}},"required":["size","grid","clue_count","inequalities"],"type":"object"},"FutoshikiPuzzle":{"properties":{"data":{"$ref":"#/components/schemas/FutoshikiData"},"difficulty":{"$ref":"#/components/schemas/Difficulty"},"generator_version":{"type":"string"},"id":{"type":"string"},"kind":{"const":"futoshiki","type":"string"},"rules":{"type":"string"},"seed":{"$ref":"#/components/schemas/SeedString"},"solution":{"$ref":"#/components/schemas/FutoshikiAnswer","description":"Present only when include_solution is true."},"uniqueness":{"type":"string"}},"required":["id","generator_version","kind","seed","difficulty","data","rules","uniqueness"],"type":"object"},"GenerateRequest":{"additionalProperties":false,"properties":{"content_version":{"description":"Language puzzles: 1 or 2 (default latest). Nonogram, memory-pairs and sliding-puzzle: opt in to pictures-v1; omitted preserves legacy boards. Replay with the same content_version.","enum":["1","2","pictures-v1"],"type":"string"},"difficulty":{"default":"medium","description":"Generation preset, not a calibrated human difficulty rating.","enum":["easy","medium","hard"],"type":"string"},"include_solution":{"default":false,"type":"boolean"},"kind":{"enum":["sudoku","mini-sudoku","maze","nonogram","word-search","sliding-puzzle","lights-out","minesweeper","arithmetic","cryptogram","spoonerism","anagram","word-ladder","compound-bridge","word-sorting","sequence-detective","memory-pairs","path-connections","futoshiki","sound-families","sentence-assembly"],"type":"string"},"seed":{"anyOf":[{"description":"Unsigned 64-bit seed. Omit to choose a fresh seed. Use a bigint-aware JSON client for exact integers beyond 2^53-1.","maximum":18446744073709551615,"minimum":0,"type":"integer"},{"type":"null"}],"description":"Omit or send null for a fresh seed; otherwise send an unsigned 64-bit integer."}},"required":["kind"],"type":"object"},"LightsOutAnswer":{"description":"Press coordinates in any order. Each toggles itself and orthogonal neighbors; repeated presses are allowed. At most four times this board's area may be submitted. All lights must end off.","items":{"$ref":"#/components/schemas/Coordinate"},"maxItems":144,"minItems":0,"type":"array"},"LightsOutData":{"properties":{"grid":{"description":"0 is off and 1 is on.","oneOf":[{"items":{"items":{"$ref":"#/components/schemas/BinaryCell"},"maxItems":4,"minItems":4,"type":"array"},"maxItems":4,"minItems":4,"type":"array"},{"items":{"items":{"$ref":"#/components/schemas/BinaryCell"},"maxItems":5,"minItems":5,"type":"array"},"maxItems":5,"minItems":5,"type":"array"},{"items":{"items":{"$ref":"#/components/schemas/BinaryCell"},"maxItems":6,"minItems":6,"type":"array"},"maxItems":6,"minItems":6,"type":"array"}]}},"required":["grid"],"type":"object"},"LightsOutPuzzle":{"properties":{"data":{"$ref":"#/components/schemas/LightsOutData"},"difficulty":{"$ref":"#/components/schemas/Difficulty"},"generator_version":{"type":"string"},"id":{"type":"string"},"kind":{"const":"lights-out","type":"string"},"rules":{"type":"string"},"seed":{"$ref":"#/components/schemas/SeedString"},"solution":{"$ref":"#/components/schemas/LightsOutAnswer","description":"Present only when include_solution is true."},"uniqueness":{"type":"string"}},"required":["id","generator_version","kind","seed","difficulty","data","rules","uniqueness"],"type":"object"},"LoginAccount":{"additionalProperties":false,"properties":{"email":{"format":"email","type":"string"},"password":{"maxLength":1024,"type":"string","writeOnly":true}},"required":["email","password"],"type":"object"},"MazeAnswer":{"description":"Orthogonally adjacent open cells including start and end. Repeated cells are allowed; length is limited to four times this board's area.","items":{"$ref":"#/components/schemas/Coordinate"},"maxItems":2500,"minItems":2,"type":"array"},"MazeData":{"properties":{"end":{"$ref":"#/components/schemas/Coordinate"},"grid":{"description":"0 is open and 1 is a wall.","oneOf":[{"items":{"items":{"$ref":"#/components/schemas/BinaryCell"},"maxItems":11,"minItems":11,"type":"array"},"maxItems":11,"minItems":11,"type":"array"},{"items":{"items":{"$ref":"#/components/schemas/BinaryCell"},"maxItems":17,"minItems":17,"type":"array"},"maxItems":17,"minItems":17,"type":"array"},{"items":{"items":{"$ref":"#/components/schemas/BinaryCell"},"maxItems":25,"minItems":25,"type":"array"},"maxItems":25,"minItems":25,"type":"array"}]},"start":{"$ref":"#/components/schemas/Coordinate"}},"required":["grid","start","end"],"type":"object"},"MazePuzzle":{"properties":{"data":{"$ref":"#/components/schemas/MazeData"},"difficulty":{"$ref":"#/components/schemas/Difficulty"},"generator_version":{"type":"string"},"id":{"type":"string"},"kind":{"const":"maze","type":"string"},"rules":{"type":"string"},"seed":{"$ref":"#/components/schemas/SeedString"},"solution":{"$ref":"#/components/schemas/MazeAnswer","description":"Present only when include_solution is true."},"uniqueness":{"type":"string"}},"required":["id","generator_version","kind","seed","difficulty","data","rules","uniqueness"],"type":"object"},"MemberAllocation":{"additionalProperties":false,"properties":{"disabled":{"type":"boolean"},"max_batch":{"description":"Null means unlimited account quota; zero disables the resource. Physical server limits still apply.","maximum":2147483647,"minimum":0,"type":["integer","null"]},"max_concurrent":{"description":"Null means unlimited account quota; zero disables the resource. Physical server limits still apply.","maximum":2147483647,"minimum":0,"type":["integer","null"]},"max_keys":{"description":"Null means unlimited account quota; zero disables the resource. Physical server limits still apply.","maximum":2147483647,"minimum":0,"type":["integer","null"]},"operations_per_day":{"description":"Null means unlimited account quota; zero disables the resource. Physical server limits still apply.","maximum":2147483647,"minimum":0,"type":["integer","null"]},"requests_per_minute":{"description":"Null means unlimited account quota; zero disables the resource. Physical server limits still apply.","maximum":2147483647,"minimum":0,"type":["integer","null"]},"role":{"enum":["member","trusted","admin","owner"],"type":"string"}},"required":["role","disabled","requests_per_minute","operations_per_day","max_keys","max_batch","max_concurrent"],"type":"object"},"MemberKeyCreated":{"properties":{"id":{"format":"uuid","type":"string"},"message":{"type":"string"},"name":{"type":"string"},"prefix":{"type":"string"},"secret":{"description":"Shown exactly once; never returned in key listings.","pattern":"^pgk_[0-9a-f]{64}$","type":"string"}},"type":"object"},"MemoryPairsAnswer":{"description":"Every card exactly once in equal-face pairs. Pair order and card order inside pairs are ignored.","items":{"items":{"pattern":"^[a-z][0-9]+$","type":"string"},"maxItems":2,"minItems":2,"type":"array"},"maxItems":7,"minItems":3,"type":"array"},"MemoryPairsData":{"properties":{"cards":{"items":{"properties":{"face":{"type":"string"},"id":{"pattern":"^[a-z][0-9]+$","type":"string"},"picture_id":{"pattern":"^[a-z-]+$","type":"string"}},"required":["id","face"],"type":"object"},"maxItems":14,"minItems":6,"type":"array"},"content_version":{"const":"pictures-v1"},"pair_count":{"maximum":7,"minimum":3,"type":"integer"}},"required":["cards","pair_count"],"type":"object"},"MemoryPairsPuzzle":{"properties":{"data":{"$ref":"#/components/schemas/MemoryPairsData"},"difficulty":{"$ref":"#/components/schemas/Difficulty"},"generator_version":{"type":"string"},"id":{"type":"string"},"kind":{"const":"memory-pairs","type":"string"},"rules":{"type":"string"},"seed":{"$ref":"#/components/schemas/SeedString"},"solution":{"$ref":"#/components/schemas/MemoryPairsAnswer","description":"Present only when include_solution is true."},"uniqueness":{"type":"string"}},"required":["id","generator_version","kind","seed","difficulty","data","rules","uniqueness"],"type":"object"},"MinesweeperAnswer":{"description":"All mine coordinates in any order, with no duplicates. Count must equal mine_count. Safe-start generation does not guarantee no-guess solvability.","items":{"$ref":"#/components/schemas/Coordinate"},"maxItems":50,"minItems":10,"type":"array","uniqueItems":true},"MinesweeperData":{"properties":{"cols":{"enum":[8,12,16],"type":"integer"},"initial_revealed":{"items":{"$ref":"#/components/schemas/RevealedMineCell"},"maxItems":206,"minItems":1,"type":"array"},"mine_count":{"enum":[10,24,50],"type":"integer"},"rows":{"enum":[8,12,16],"type":"integer"},"start":{"$ref":"#/components/schemas/Coordinate"}},"required":["rows","cols","mine_count","start","initial_revealed"],"type":"object"},"MinesweeperPuzzle":{"properties":{"data":{"$ref":"#/components/schemas/MinesweeperData"},"difficulty":{"$ref":"#/components/schemas/Difficulty"},"generator_version":{"type":"string"},"id":{"type":"string"},"kind":{"const":"minesweeper","type":"string"},"rules":{"type":"string"},"seed":{"$ref":"#/components/schemas/SeedString"},"solution":{"$ref":"#/components/schemas/MinesweeperAnswer","description":"Present only when include_solution is true."},"uniqueness":{"type":"string"}},"required":["id","generator_version","kind","seed","difficulty","data","rules","uniqueness"],"type":"object"},"MiniSudokuAnswer":{"description":"Completed 4x4 grid preserving givens and satisfying every row, column, and 2x2 box.","items":{"items":{"maximum":4,"minimum":1,"type":"integer"},"maxItems":4,"minItems":4,"type":"array"},"maxItems":4,"minItems":4,"type":"array"},"MiniSudokuData":{"properties":{"box_size":{"const":2,"type":"integer"},"clue_count":{"maximum":16,"minimum":6,"type":"integer"},"grid":{"items":{"items":{"maximum":4,"minimum":0,"type":"integer"},"maxItems":4,"minItems":4,"type":"array"},"maxItems":4,"minItems":4,"type":"array"}},"required":["grid","box_size","clue_count"],"type":"object"},"MiniSudokuPuzzle":{"properties":{"data":{"$ref":"#/components/schemas/MiniSudokuData"},"difficulty":{"$ref":"#/components/schemas/Difficulty"},"generator_version":{"type":"string"},"id":{"type":"string"},"kind":{"const":"mini-sudoku","type":"string"},"rules":{"type":"string"},"seed":{"$ref":"#/components/schemas/SeedString"},"solution":{"$ref":"#/components/schemas/MiniSudokuAnswer","description":"Present only when include_solution is true."},"uniqueness":{"type":"string"}},"required":["id","generator_version","kind","seed","difficulty","data","rules","uniqueness"],"type":"object"},"NonogramAnswer":{"description":"Binary filled-cell grid matching every run clue. Dimensions must match rows and cols. Generated boards are uniquely solvable.","oneOf":[{"items":{"items":{"$ref":"#/components/schemas/BinaryCell"},"maxItems":5,"minItems":5,"type":"array"},"maxItems":5,"minItems":5,"type":"array"},{"items":{"items":{"$ref":"#/components/schemas/BinaryCell"},"maxItems":7,"minItems":7,"type":"array"},"maxItems":7,"minItems":7,"type":"array"},{"items":{"items":{"$ref":"#/components/schemas/BinaryCell"},"maxItems":9,"minItems":9,"type":"array"},"maxItems":9,"minItems":9,"type":"array"}]},"NonogramData":{"properties":{"cols":{"enum":[5,7,9],"type":"integer"},"column_clues":{"items":{"description":"Lengths of consecutive filled runs. An empty array means an empty line.","items":{"maximum":9,"minimum":1,"type":"integer"},"maxItems":5,"minItems":0,"type":"array"},"maxItems":9,"minItems":5,"type":"array"},"content_version":{"const":"pictures-v1"},"picture_id":{"pattern":"^[a-z-]+$","type":"string"},"row_clues":{"items":{"description":"Lengths of consecutive filled runs. An empty array means an empty line.","items":{"maximum":9,"minimum":1,"type":"integer"},"maxItems":5,"minItems":0,"type":"array"},"maxItems":9,"minItems":5,"type":"array"},"rows":{"enum":[5,7,9],"type":"integer"}},"required":["rows","cols","row_clues","column_clues"],"type":"object"},"NonogramPuzzle":{"properties":{"data":{"$ref":"#/components/schemas/NonogramData"},"difficulty":{"$ref":"#/components/schemas/Difficulty"},"generator_version":{"type":"string"},"id":{"type":"string"},"kind":{"const":"nonogram","type":"string"},"rules":{"type":"string"},"seed":{"$ref":"#/components/schemas/SeedString"},"solution":{"$ref":"#/components/schemas/NonogramAnswer","description":"Present only when include_solution is true."},"uniqueness":{"type":"string"}},"required":["id","generator_version","kind","seed","difficulty","data","rules","uniqueness"],"type":"object"},"PathConnectionsAnswer":{"description":"Rotate each original port mask. All ports must meet opposite ports, without boundary leaks, and all tiles must connect to the source.","oneOf":[{"items":{"items":{"maximum":15,"minimum":1,"type":"integer"},"maxItems":3,"minItems":3,"type":"array"},"maxItems":3,"minItems":3,"type":"array"},{"items":{"items":{"maximum":15,"minimum":1,"type":"integer"},"maxItems":4,"minItems":4,"type":"array"},"maxItems":4,"minItems":4,"type":"array"},{"items":{"items":{"maximum":15,"minimum":1,"type":"integer"},"maxItems":5,"minItems":5,"type":"array"},"maxItems":5,"minItems":5,"type":"array"}]},"PathConnectionsData":{"properties":{"direction_bits":{"properties":{"east":{"const":2},"north":{"const":1},"south":{"const":4},"west":{"const":8}},"required":["north","east","south","west"],"type":"object"},"goal":{"$ref":"#/components/schemas/Coordinate"},"grid":{"oneOf":[{"items":{"items":{"maximum":15,"minimum":1,"type":"integer"},"maxItems":3,"minItems":3,"type":"array"},"maxItems":3,"minItems":3,"type":"array"},{"items":{"items":{"maximum":15,"minimum":1,"type":"integer"},"maxItems":4,"minItems":4,"type":"array"},"maxItems":4,"minItems":4,"type":"array"},{"items":{"items":{"maximum":15,"minimum":1,"type":"integer"},"maxItems":5,"minItems":5,"type":"array"},"maxItems":5,"minItems":5,"type":"array"}]},"size":{"maximum":5,"minimum":3,"type":"integer"},"source":{"$ref":"#/components/schemas/Coordinate"}},"required":["size","grid","source","goal","direction_bits"],"type":"object"},"PathConnectionsPuzzle":{"properties":{"data":{"$ref":"#/components/schemas/PathConnectionsData"},"difficulty":{"$ref":"#/components/schemas/Difficulty"},"generator_version":{"type":"string"},"id":{"type":"string"},"kind":{"const":"path-connections","type":"string"},"rules":{"type":"string"},"seed":{"$ref":"#/components/schemas/SeedString"},"solution":{"$ref":"#/components/schemas/PathConnectionsAnswer","description":"Present only when include_solution is true."},"uniqueness":{"type":"string"}},"required":["id","generator_version","kind","seed","difficulty","data","rules","uniqueness"],"type":"object"},"Puzzle":{"description":"Kind determines the data and optional solution shape. Additional output fields may be added. Game constraints and cross-field dimensions are enforced by the engine.","discriminator":{"mapping":{"anagram":"#/components/schemas/AnagramPuzzle","arithmetic":"#/components/schemas/ArithmeticPuzzle","compound-bridge":"#/components/schemas/CompoundBridgePuzzle","cryptogram":"#/components/schemas/CryptogramPuzzle","futoshiki":"#/components/schemas/FutoshikiPuzzle","lights-out":"#/components/schemas/LightsOutPuzzle","maze":"#/components/schemas/MazePuzzle","memory-pairs":"#/components/schemas/MemoryPairsPuzzle","minesweeper":"#/components/schemas/MinesweeperPuzzle","mini-sudoku":"#/components/schemas/MiniSudokuPuzzle","nonogram":"#/components/schemas/NonogramPuzzle","path-connections":"#/components/schemas/PathConnectionsPuzzle","sentence-assembly":"#/components/schemas/SentenceAssemblyPuzzle","sequence-detective":"#/components/schemas/SequenceDetectivePuzzle","sliding-puzzle":"#/components/schemas/SlidingPuzzlePuzzle","sound-families":"#/components/schemas/SoundFamiliesPuzzle","spoonerism":"#/components/schemas/SpoonerismPuzzle","sudoku":"#/components/schemas/SudokuPuzzle","word-ladder":"#/components/schemas/WordLadderPuzzle","word-search":"#/components/schemas/WordSearchPuzzle","word-sorting":"#/components/schemas/WordSortingPuzzle"},"propertyName":"kind"},"oneOf":[{"$ref":"#/components/schemas/SudokuPuzzle"},{"$ref":"#/components/schemas/MiniSudokuPuzzle"},{"$ref":"#/components/schemas/MazePuzzle"},{"$ref":"#/components/schemas/NonogramPuzzle"},{"$ref":"#/components/schemas/WordSearchPuzzle"},{"$ref":"#/components/schemas/SlidingPuzzlePuzzle"},{"$ref":"#/components/schemas/LightsOutPuzzle"},{"$ref":"#/components/schemas/MinesweeperPuzzle"},{"$ref":"#/components/schemas/ArithmeticPuzzle"},{"$ref":"#/components/schemas/CryptogramPuzzle"},{"$ref":"#/components/schemas/SpoonerismPuzzle"},{"$ref":"#/components/schemas/AnagramPuzzle"},{"$ref":"#/components/schemas/WordLadderPuzzle"},{"$ref":"#/components/schemas/CompoundBridgePuzzle"},{"$ref":"#/components/schemas/WordSortingPuzzle"},{"$ref":"#/components/schemas/SequenceDetectivePuzzle"},{"$ref":"#/components/schemas/MemoryPairsPuzzle"},{"$ref":"#/components/schemas/PathConnectionsPuzzle"},{"$ref":"#/components/schemas/FutoshikiPuzzle"},{"$ref":"#/components/schemas/SoundFamiliesPuzzle"},{"$ref":"#/components/schemas/SentenceAssemblyPuzzle"}]},"RegisterAccount":{"additionalProperties":false,"properties":{"display_name":{"maxLength":80,"minLength":1,"type":"string"},"email":{"format":"email","maxLength":254,"type":"string"},"password":{"maxLength":1024,"minLength":15,"type":"string","writeOnly":true}},"required":["email","display_name","password"],"type":"object"},"RevealedMineCell":{"properties":{"adjacent":{"maximum":8,"minimum":0,"type":"integer"},"col":{"maximum":15,"minimum":0,"type":"integer"},"row":{"maximum":15,"minimum":0,"type":"integer"}},"required":["row","col","adjacent"],"type":"object"},"SeedString":{"description":"Decimal unsigned 64-bit seed string preserves every bit in JavaScript. Convert exactly to an integer for POST requests or pass unchanged in GET query parameters.","maxLength":20,"minLength":1,"pattern":"^[0-9]+$","type":"string"},"SentenceAssemblyAnswer":{"description":"Every tile ID once. Subject is the adjective animal. Adverb may be initial, before the verb, or final.","items":{"pattern":"^[a-z][0-9]+$","type":"string"},"maxItems":5,"minItems":5,"type":"array"},"SentenceAssemblyData":{"properties":{"hint":{"type":"string"},"tiles":{"items":{"properties":{"id":{"pattern":"^[a-z][0-9]+$","type":"string"},"text":{"type":"string"}},"required":["id","text"],"type":"object"},"maxItems":5,"minItems":5,"type":"array"}},"required":["tiles","hint"],"type":"object"},"SentenceAssemblyPuzzle":{"properties":{"data":{"$ref":"#/components/schemas/SentenceAssemblyData"},"difficulty":{"$ref":"#/components/schemas/Difficulty"},"generator_version":{"type":"string"},"id":{"type":"string"},"kind":{"const":"sentence-assembly","type":"string"},"rules":{"type":"string"},"seed":{"$ref":"#/components/schemas/SeedString"},"solution":{"$ref":"#/components/schemas/SentenceAssemblyAnswer","description":"Present only when include_solution is true."},"uniqueness":{"type":"string"}},"required":["id","generator_version","kind","seed","difficulty","data","rules","uniqueness"],"type":"object"},"SequenceDetectiveAnswer":{"description":"Missing integer within the named family, not an unrestricted inferred rule.","type":"integer"},"SequenceDetectiveData":{"properties":{"family":{"enum":["constant addition","constant multiplication","consecutive positive integer squares"],"type":"string"},"missing_index":{"maximum":6,"minimum":1,"type":"integer"},"terms":{"items":{"type":["integer","null"]},"maxItems":8,"minItems":6,"type":"array"}},"required":["terms","missing_index","family"],"type":"object"},"SequenceDetectivePuzzle":{"properties":{"data":{"$ref":"#/components/schemas/SequenceDetectiveData"},"difficulty":{"$ref":"#/components/schemas/Difficulty"},"generator_version":{"type":"string"},"id":{"type":"string"},"kind":{"const":"sequence-detective","type":"string"},"rules":{"type":"string"},"seed":{"$ref":"#/components/schemas/SeedString"},"solution":{"$ref":"#/components/schemas/SequenceDetectiveAnswer","description":"Present only when include_solution is true."},"uniqueness":{"type":"string"}},"required":["id","generator_version","kind","seed","difficulty","data","rules","uniqueness"],"type":"object"},"SlidingPuzzleAnswer":{"additionalProperties":false,"description":"Legal movements of the EMPTY cell, ending in row-major order with zero last. The move sequence need not be shortest.","properties":{"moves":{"items":{"enum":["up","down","left","right"],"type":"string"},"maxItems":10000,"minItems":0,"type":"array"}},"required":["moves"],"type":"object"},"SlidingPuzzleData":{"properties":{"content_version":{"const":"pictures-v1"},"grid":{"oneOf":[{"items":{"items":{"maximum":8,"minimum":0,"type":"integer"},"maxItems":3,"minItems":3,"type":"array"},"maxItems":3,"minItems":3,"type":"array"},{"items":{"items":{"maximum":15,"minimum":0,"type":"integer"},"maxItems":4,"minItems":4,"type":"array"},"maxItems":4,"minItems":4,"type":"array"}]},"picture_id":{"pattern":"^[a-z-]+$","type":"string"},"size":{"enum":[3,4],"type":"integer"}},"required":["grid","size"],"type":"object"},"SlidingPuzzlePuzzle":{"properties":{"data":{"$ref":"#/components/schemas/SlidingPuzzleData"},"difficulty":{"$ref":"#/components/schemas/Difficulty"},"generator_version":{"type":"string"},"id":{"type":"string"},"kind":{"const":"sliding-puzzle","type":"string"},"rules":{"type":"string"},"seed":{"$ref":"#/components/schemas/SeedString"},"solution":{"$ref":"#/components/schemas/SlidingPuzzleAnswer","description":"Present only when include_solution is true."},"uniqueness":{"type":"string"}},"required":["id","generator_version","kind","seed","difficulty","data","rules","uniqueness"],"type":"object"},"SoundFamiliesAnswer":{"description":"All three rhyming candidate IDs, in any order, without duplicates.","items":{"pattern":"^[a-z][0-9]+$","type":"string"},"maxItems":3,"minItems":3,"type":"array"},"SoundFamiliesData":{"properties":{"anchor":{"type":"string"},"convention":{"type":"string"},"hint":{"type":"string"},"words":{"items":{"properties":{"id":{"pattern":"^[a-z][0-9]+$","type":"string"},"text":{"type":"string"}},"required":["id","text"],"type":"object"},"maxItems":7,"minItems":5,"type":"array"}},"required":["anchor","words","convention","hint"],"type":"object"},"SoundFamiliesPuzzle":{"properties":{"data":{"$ref":"#/components/schemas/SoundFamiliesData"},"difficulty":{"$ref":"#/components/schemas/Difficulty"},"generator_version":{"type":"string"},"id":{"type":"string"},"kind":{"const":"sound-families","type":"string"},"rules":{"type":"string"},"seed":{"$ref":"#/components/schemas/SeedString"},"solution":{"$ref":"#/components/schemas/SoundFamiliesAnswer","description":"Present only when include_solution is true."},"uniqueness":{"type":"string"}},"required":["id","generator_version","kind","seed","difficulty","data","rules","uniqueness"],"type":"object"},"SpoonerismAnswer":{"description":"Curated answer; ASCII case and whitespace normalized. Hard anagrams accept all allowed_words with exactly the supplied letters.","type":"string"},"SpoonerismData":{"properties":{"choices":{"items":{"type":"string"},"maxItems":4,"minItems":4,"type":"array"},"clue":{"type":"string"},"content_license":{"const":"CC0-1.0","type":"string"},"content_version":{"enum":["1","2"],"type":"string"},"hint":{"type":"string"},"learning":{"properties":{"experiment":{"type":"string"},"objective":{"type":"string"},"principle":{"type":"string"}},"required":["objective","principle","experiment"],"type":"object"},"locale":{"const":"en-US","type":"string"},"source_phrase":{"type":"string"},"source_sounds":{"items":{"type":"string"},"maxItems":2,"minItems":2,"type":"array"},"word_lengths":{"items":{"maximum":32,"minimum":1,"type":"integer"},"maxItems":2,"minItems":2,"type":"array"}},"required":["source_phrase","clue","word_lengths","content_version","locale","content_license"],"type":"object"},"SpoonerismPuzzle":{"properties":{"data":{"$ref":"#/components/schemas/SpoonerismData"},"difficulty":{"$ref":"#/components/schemas/Difficulty"},"generator_version":{"type":"string"},"id":{"type":"string"},"kind":{"const":"spoonerism","type":"string"},"rules":{"type":"string"},"seed":{"$ref":"#/components/schemas/SeedString"},"solution":{"$ref":"#/components/schemas/SpoonerismAnswer","description":"Present only when include_solution is true."},"uniqueness":{"type":"string"}},"required":["id","generator_version","kind","seed","difficulty","data","rules","uniqueness"],"type":"object"},"SudokuAnswer":{"description":"Completed 9x9 grid preserving givens and satisfying every row, column, and 3x3 box.","items":{"items":{"maximum":9,"minimum":1,"type":"integer"},"maxItems":9,"minItems":9,"type":"array"},"maxItems":9,"minItems":9,"type":"array"},"SudokuData":{"properties":{"box_size":{"const":3,"type":"integer"},"clue_count":{"maximum":81,"minimum":28,"type":"integer"},"grid":{"items":{"items":{"maximum":9,"minimum":0,"type":"integer"},"maxItems":9,"minItems":9,"type":"array"},"maxItems":9,"minItems":9,"type":"array"}},"required":["grid","box_size","clue_count"],"type":"object"},"SudokuPuzzle":{"properties":{"data":{"$ref":"#/components/schemas/SudokuData"},"difficulty":{"$ref":"#/components/schemas/Difficulty"},"generator_version":{"type":"string"},"id":{"type":"string"},"kind":{"const":"sudoku","type":"string"},"rules":{"type":"string"},"seed":{"$ref":"#/components/schemas/SeedString"},"solution":{"$ref":"#/components/schemas/SudokuAnswer","description":"Present only when include_solution is true."},"uniqueness":{"type":"string"}},"required":["id","generator_version","kind","seed","difficulty","data","rules","uniqueness"],"type":"object"},"UnsignedSeed":{"description":"Unsigned 64-bit seed. Omit to choose a fresh seed. Use a bigint-aware JSON client for exact integers beyond 2^53-1.","maximum":18446744073709551615,"minimum":0,"type":"integer"},"VerifyAnagramRequest":{"additionalProperties":false,"properties":{"answer":{"$ref":"#/components/schemas/AnagramAnswer"},"content_version":{"description":"Language puzzles: 1 or 2 (default latest). Nonogram, memory-pairs and sliding-puzzle: opt in to pictures-v1; omitted preserves legacy boards. Replay with the same content_version.","enum":["1","2","pictures-v1"],"type":"string"},"difficulty":{"$ref":"#/components/schemas/Difficulty"},"kind":{"const":"anagram","type":"string"},"seed":{"$ref":"#/components/schemas/UnsignedSeed"}},"required":["kind","seed","answer"],"type":"object"},"VerifyArithmeticRequest":{"additionalProperties":false,"properties":{"answer":{"$ref":"#/components/schemas/ArithmeticAnswer"},"difficulty":{"$ref":"#/components/schemas/Difficulty"},"kind":{"const":"arithmetic","type":"string"},"seed":{"$ref":"#/components/schemas/UnsignedSeed"}},"required":["kind","seed","answer"],"type":"object"},"VerifyCompoundBridgeRequest":{"additionalProperties":false,"properties":{"answer":{"$ref":"#/components/schemas/CompoundBridgeAnswer"},"content_version":{"description":"Language puzzles: 1 or 2 (default latest). Nonogram, memory-pairs and sliding-puzzle: opt in to pictures-v1; omitted preserves legacy boards. Replay with the same content_version.","enum":["1","2","pictures-v1"],"type":"string"},"difficulty":{"$ref":"#/components/schemas/Difficulty"},"kind":{"const":"compound-bridge","type":"string"},"seed":{"$ref":"#/components/schemas/UnsignedSeed"}},"required":["kind","seed","answer"],"type":"object"},"VerifyCryptogramRequest":{"additionalProperties":false,"properties":{"answer":{"$ref":"#/components/schemas/CryptogramAnswer"},"difficulty":{"$ref":"#/components/schemas/Difficulty"},"kind":{"const":"cryptogram","type":"string"},"seed":{"$ref":"#/components/schemas/UnsignedSeed"}},"required":["kind","seed","answer"],"type":"object"},"VerifyFutoshikiRequest":{"additionalProperties":false,"properties":{"answer":{"$ref":"#/components/schemas/FutoshikiAnswer"},"difficulty":{"$ref":"#/components/schemas/Difficulty"},"kind":{"const":"futoshiki","type":"string"},"seed":{"$ref":"#/components/schemas/UnsignedSeed"}},"required":["kind","seed","answer"],"type":"object"},"VerifyLightsOutRequest":{"additionalProperties":false,"properties":{"answer":{"$ref":"#/components/schemas/LightsOutAnswer"},"difficulty":{"$ref":"#/components/schemas/Difficulty"},"kind":{"const":"lights-out","type":"string"},"seed":{"$ref":"#/components/schemas/UnsignedSeed"}},"required":["kind","seed","answer"],"type":"object"},"VerifyMazeRequest":{"additionalProperties":false,"properties":{"answer":{"$ref":"#/components/schemas/MazeAnswer"},"difficulty":{"$ref":"#/components/schemas/Difficulty"},"kind":{"const":"maze","type":"string"},"seed":{"$ref":"#/components/schemas/UnsignedSeed"}},"required":["kind","seed","answer"],"type":"object"},"VerifyMemoryPairsRequest":{"additionalProperties":false,"properties":{"answer":{"$ref":"#/components/schemas/MemoryPairsAnswer"},"difficulty":{"$ref":"#/components/schemas/Difficulty"},"kind":{"const":"memory-pairs","type":"string"},"seed":{"$ref":"#/components/schemas/UnsignedSeed"}},"required":["kind","seed","answer"],"type":"object"},"VerifyMinesweeperRequest":{"additionalProperties":false,"properties":{"answer":{"$ref":"#/components/schemas/MinesweeperAnswer"},"difficulty":{"$ref":"#/components/schemas/Difficulty"},"kind":{"const":"minesweeper","type":"string"},"seed":{"$ref":"#/components/schemas/UnsignedSeed"}},"required":["kind","seed","answer"],"type":"object"},"VerifyMiniSudokuRequest":{"additionalProperties":false,"properties":{"answer":{"$ref":"#/components/schemas/MiniSudokuAnswer"},"difficulty":{"$ref":"#/components/schemas/Difficulty"},"kind":{"const":"mini-sudoku","type":"string"},"seed":{"$ref":"#/components/schemas/UnsignedSeed"}},"required":["kind","seed","answer"],"type":"object"},"VerifyNonogramRequest":{"additionalProperties":false,"properties":{"answer":{"$ref":"#/components/schemas/NonogramAnswer"},"difficulty":{"$ref":"#/components/schemas/Difficulty"},"kind":{"const":"nonogram","type":"string"},"seed":{"$ref":"#/components/schemas/UnsignedSeed"}},"required":["kind","seed","answer"],"type":"object"},"VerifyPathConnectionsRequest":{"additionalProperties":false,"properties":{"answer":{"$ref":"#/components/schemas/PathConnectionsAnswer"},"difficulty":{"$ref":"#/components/schemas/Difficulty"},"kind":{"const":"path-connections","type":"string"},"seed":{"$ref":"#/components/schemas/UnsignedSeed"}},"required":["kind","seed","answer"],"type":"object"},"VerifyRequest":{"description":"Choose the answer shape using kind. Engine validation also checks board dimensions and game rules against the seed and difficulty.","discriminator":{"mapping":{"anagram":"#/components/schemas/VerifyAnagramRequest","arithmetic":"#/components/schemas/VerifyArithmeticRequest","compound-bridge":"#/components/schemas/VerifyCompoundBridgeRequest","cryptogram":"#/components/schemas/VerifyCryptogramRequest","futoshiki":"#/components/schemas/VerifyFutoshikiRequest","lights-out":"#/components/schemas/VerifyLightsOutRequest","maze":"#/components/schemas/VerifyMazeRequest","memory-pairs":"#/components/schemas/VerifyMemoryPairsRequest","minesweeper":"#/components/schemas/VerifyMinesweeperRequest","mini-sudoku":"#/components/schemas/VerifyMiniSudokuRequest","nonogram":"#/components/schemas/VerifyNonogramRequest","path-connections":"#/components/schemas/VerifyPathConnectionsRequest","sentence-assembly":"#/components/schemas/VerifySentenceAssemblyRequest","sequence-detective":"#/components/schemas/VerifySequenceDetectiveRequest","sliding-puzzle":"#/components/schemas/VerifySlidingPuzzleRequest","sound-families":"#/components/schemas/VerifySoundFamiliesRequest","spoonerism":"#/components/schemas/VerifySpoonerismRequest","sudoku":"#/components/schemas/VerifySudokuRequest","word-ladder":"#/components/schemas/VerifyWordLadderRequest","word-search":"#/components/schemas/VerifyWordSearchRequest","word-sorting":"#/components/schemas/VerifyWordSortingRequest"},"propertyName":"kind"},"oneOf":[{"$ref":"#/components/schemas/VerifySudokuRequest"},{"$ref":"#/components/schemas/VerifyMiniSudokuRequest"},{"$ref":"#/components/schemas/VerifyMazeRequest"},{"$ref":"#/components/schemas/VerifyNonogramRequest"},{"$ref":"#/components/schemas/VerifyWordSearchRequest"},{"$ref":"#/components/schemas/VerifySlidingPuzzleRequest"},{"$ref":"#/components/schemas/VerifyLightsOutRequest"},{"$ref":"#/components/schemas/VerifyMinesweeperRequest"},{"$ref":"#/components/schemas/VerifyArithmeticRequest"},{"$ref":"#/components/schemas/VerifyCryptogramRequest"},{"$ref":"#/components/schemas/VerifySpoonerismRequest"},{"$ref":"#/components/schemas/VerifyAnagramRequest"},{"$ref":"#/components/schemas/VerifyWordLadderRequest"},{"$ref":"#/components/schemas/VerifyCompoundBridgeRequest"},{"$ref":"#/components/schemas/VerifyWordSortingRequest"},{"$ref":"#/components/schemas/VerifySequenceDetectiveRequest"},{"$ref":"#/components/schemas/VerifyMemoryPairsRequest"},{"$ref":"#/components/schemas/VerifyPathConnectionsRequest"},{"$ref":"#/components/schemas/VerifyFutoshikiRequest"},{"$ref":"#/components/schemas/VerifySoundFamiliesRequest"},{"$ref":"#/components/schemas/VerifySentenceAssemblyRequest"}]},"VerifySentenceAssemblyRequest":{"additionalProperties":false,"properties":{"answer":{"$ref":"#/components/schemas/SentenceAssemblyAnswer"},"difficulty":{"$ref":"#/components/schemas/Difficulty"},"kind":{"const":"sentence-assembly","type":"string"},"seed":{"$ref":"#/components/schemas/UnsignedSeed"}},"required":["kind","seed","answer"],"type":"object"},"VerifySequenceDetectiveRequest":{"additionalProperties":false,"properties":{"answer":{"$ref":"#/components/schemas/SequenceDetectiveAnswer"},"difficulty":{"$ref":"#/components/schemas/Difficulty"},"kind":{"const":"sequence-detective","type":"string"},"seed":{"$ref":"#/components/schemas/UnsignedSeed"}},"required":["kind","seed","answer"],"type":"object"},"VerifySlidingPuzzleRequest":{"additionalProperties":false,"properties":{"answer":{"$ref":"#/components/schemas/SlidingPuzzleAnswer"},"difficulty":{"$ref":"#/components/schemas/Difficulty"},"kind":{"const":"sliding-puzzle","type":"string"},"seed":{"$ref":"#/components/schemas/UnsignedSeed"}},"required":["kind","seed","answer"],"type":"object"},"VerifySoundFamiliesRequest":{"additionalProperties":false,"properties":{"answer":{"$ref":"#/components/schemas/SoundFamiliesAnswer"},"difficulty":{"$ref":"#/components/schemas/Difficulty"},"kind":{"const":"sound-families","type":"string"},"seed":{"$ref":"#/components/schemas/UnsignedSeed"}},"required":["kind","seed","answer"],"type":"object"},"VerifySpoonerismRequest":{"additionalProperties":false,"properties":{"answer":{"$ref":"#/components/schemas/SpoonerismAnswer"},"content_version":{"description":"Language puzzles: 1 or 2 (default latest). Nonogram, memory-pairs and sliding-puzzle: opt in to pictures-v1; omitted preserves legacy boards. Replay with the same content_version.","enum":["1","2","pictures-v1"],"type":"string"},"difficulty":{"$ref":"#/components/schemas/Difficulty"},"kind":{"const":"spoonerism","type":"string"},"seed":{"$ref":"#/components/schemas/UnsignedSeed"}},"required":["kind","seed","answer"],"type":"object"},"VerifySudokuRequest":{"additionalProperties":false,"properties":{"answer":{"$ref":"#/components/schemas/SudokuAnswer"},"difficulty":{"$ref":"#/components/schemas/Difficulty"},"kind":{"const":"sudoku","type":"string"},"seed":{"$ref":"#/components/schemas/UnsignedSeed"}},"required":["kind","seed","answer"],"type":"object"},"VerifyWordLadderRequest":{"additionalProperties":false,"properties":{"answer":{"$ref":"#/components/schemas/WordLadderAnswer"},"content_version":{"description":"Language puzzles: 1 or 2 (default latest). Nonogram, memory-pairs and sliding-puzzle: opt in to pictures-v1; omitted preserves legacy boards. Replay with the same content_version.","enum":["1","2","pictures-v1"],"type":"string"},"difficulty":{"$ref":"#/components/schemas/Difficulty"},"kind":{"const":"word-ladder","type":"string"},"seed":{"$ref":"#/components/schemas/UnsignedSeed"}},"required":["kind","seed","answer"],"type":"object"},"VerifyWordSearchRequest":{"additionalProperties":false,"properties":{"answer":{"$ref":"#/components/schemas/WordSearchAnswer"},"difficulty":{"$ref":"#/components/schemas/Difficulty"},"kind":{"const":"word-search","type":"string"},"seed":{"$ref":"#/components/schemas/UnsignedSeed"}},"required":["kind","seed","answer"],"type":"object"},"VerifyWordSortingRequest":{"additionalProperties":false,"properties":{"answer":{"$ref":"#/components/schemas/WordSortingAnswer"},"difficulty":{"$ref":"#/components/schemas/Difficulty"},"kind":{"const":"word-sorting","type":"string"},"seed":{"$ref":"#/components/schemas/UnsignedSeed"}},"required":["kind","seed","answer"],"type":"object"},"WordLadderAnswer":{"description":"Any legal path within max_steps, including endpoints, using allowed_words without repeats. Case and whitespace normalized.","items":{"type":"string"},"maxItems":33,"minItems":2,"type":"array"},"WordLadderData":{"properties":{"allowed_words":{"items":{"pattern":"^[a-z]+$","type":"string"},"maxItems":1000,"minItems":1,"type":"array"},"content_license":{"const":"CC0-1.0","type":"string"},"content_version":{"enum":["1","2"],"type":"string"},"end":{"pattern":"^[a-z]+$","type":"string"},"learning":{"properties":{"experiment":{"type":"string"},"objective":{"type":"string"},"principle":{"type":"string"}},"required":["objective","principle","experiment"],"type":"object"},"locale":{"const":"en-US","type":"string"},"max_steps":{"maximum":32,"minimum":1,"type":"integer"},"minimum_steps":{"maximum":32,"minimum":1,"type":"integer"},"start":{"pattern":"^[a-z]+$","type":"string"}},"required":["start","end","allowed_words","max_steps","minimum_steps","content_version","locale","content_license"],"type":"object"},"WordLadderPuzzle":{"properties":{"data":{"$ref":"#/components/schemas/WordLadderData"},"difficulty":{"$ref":"#/components/schemas/Difficulty"},"generator_version":{"type":"string"},"id":{"type":"string"},"kind":{"const":"word-ladder","type":"string"},"rules":{"type":"string"},"seed":{"$ref":"#/components/schemas/SeedString"},"solution":{"$ref":"#/components/schemas/WordLadderAnswer","description":"Present only when include_solution is true."},"uniqueness":{"type":"string"}},"required":["id","generator_version","kind","seed","difficulty","data","rules","uniqueness"],"type":"object"},"WordPlacement":{"additionalProperties":false,"description":"Cells must spell this word in a straight horizontal, vertical or diagonal line, in order.","properties":{"cells":{"items":{"$ref":"#/components/schemas/Coordinate"},"maxItems":15,"minItems":2,"type":"array"},"word":{"pattern":"^[A-Z]+$","type":"string"}},"required":["word","cells"],"type":"object"},"WordSearchAnswer":{"description":"One placement per listed word, in any order. Alternate occurrences are accepted; missing or duplicate words are rejected.","items":{"$ref":"#/components/schemas/WordPlacement"},"maxItems":10,"minItems":0,"type":"array"},"WordSearchData":{"properties":{"grid":{"oneOf":[{"items":{"items":{"pattern":"^[A-Z]$","type":"string"},"maxItems":10,"minItems":10,"type":"array"},"maxItems":10,"minItems":10,"type":"array"},{"items":{"items":{"pattern":"^[A-Z]$","type":"string"},"maxItems":12,"minItems":12,"type":"array"},"maxItems":12,"minItems":12,"type":"array"},{"items":{"items":{"pattern":"^[A-Z]$","type":"string"},"maxItems":15,"minItems":15,"type":"array"},"maxItems":15,"minItems":15,"type":"array"}]},"words":{"items":{"pattern":"^[A-Z]+$","type":"string"},"maxItems":10,"minItems":0,"type":"array"}},"required":["grid","words"],"type":"object"},"WordSearchPuzzle":{"properties":{"data":{"$ref":"#/components/schemas/WordSearchData"},"difficulty":{"$ref":"#/components/schemas/Difficulty"},"generator_version":{"type":"string"},"id":{"type":"string"},"kind":{"const":"word-search","type":"string"},"rules":{"type":"string"},"seed":{"$ref":"#/components/schemas/SeedString"},"solution":{"$ref":"#/components/schemas/WordSearchAnswer","description":"Present only when include_solution is true."},"uniqueness":{"type":"string"}},"required":["id","generator_version","kind","seed","difficulty","data","rules","uniqueness"],"type":"object"},"WordSortingAnswer":{"additionalProperties":{"pattern":"^[a-z][0-9]+$","type":"string"},"description":"Exact mapping of every item ID to one category ID; no extra keys.","maxProperties":12,"minProperties":6,"type":"object"},"WordSortingData":{"properties":{"categories":{"items":{"properties":{"id":{"pattern":"^[a-z][0-9]+$","type":"string"},"label":{"type":"string"}},"required":["id","label"],"type":"object"},"maxItems":4,"minItems":2,"type":"array"},"items":{"items":{"properties":{"id":{"pattern":"^[a-z][0-9]+$","type":"string"},"text":{"type":"string"}},"required":["id","text"],"type":"object"},"maxItems":12,"minItems":6,"type":"array"}},"required":["categories","items"],"type":"object"},"WordSortingPuzzle":{"properties":{"data":{"$ref":"#/components/schemas/WordSortingData"},"difficulty":{"$ref":"#/components/schemas/Difficulty"},"generator_version":{"type":"string"},"id":{"type":"string"},"kind":{"const":"word-sorting","type":"string"},"rules":{"type":"string"},"seed":{"$ref":"#/components/schemas/SeedString"},"solution":{"$ref":"#/components/schemas/WordSortingAnswer","description":"Present only when include_solution is true."},"uniqueness":{"type":"string"}},"required":["id","generator_version","kind","seed","difficulty","data","rules","uniqueness"],"type":"object"}},"securitySchemes":{"anonymousFirebase":{"bearerFormat":"Firebase ID token","description":"Anonymous testing-project token; development lifecycle must be explicitly enabled.","scheme":"bearer","type":"http"},"bearerAuth":{"description":"Member API key in account mode; legacy environment key only when member accounts are unconfigured. Keys cannot access account/admin endpoints.","scheme":"bearer","type":"http"},"memberSession":{"description":"Opaque HttpOnly cookie; localhost HTTP uses puzzgen_session. Account mutations also require the canonical Origin and X-CSRF-Token returned by /account/session.","in":"cookie","name":"__Host-puzzgen_session","type":"apiKey"}}},"info":{"description":"Procedural puzzles and member accounts for learning. With DATABASE_URL, computation requires a member key or same-origin session and consumes shared account quotas. Without it, legacy public/static-key mode is available. Catalog and learning resources remain public. Exposed seeds and solutions are construction tools, not a competitive anti-cheat boundary.","title":"Puzzgen API","version":"0.2.0"},"openapi":"3.1.0","paths":{"/api/v1/account/admin/audit":{"get":{"parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"}},"security":[{"memberSession":[]}],"summary":"Admin: latest 100 audit events","tags":["Accounts"]}},"/api/v1/account/admin/members":{"get":{"parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"}},"security":[{"memberSession":[]}],"summary":"Admin: list up to 1000 members","tags":["Accounts"]}},"/api/v1/account/admin/members/{id}":{"post":{"parameters":[{"description":"Exact PUZZGEN_PUBLIC_ORIGIN; browsers send this automatically.","in":"header","name":"Origin","required":true,"schema":{"type":"string"}},{"in":"header","name":"X-CSRF-Token","required":true,"schema":{"type":"string"}},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemberAllocation"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"}},"security":[{"memberSession":[]}],"summary":"Admin: update allocation and disabled state; owner assigns roles","tags":["Accounts"]}},"/api/v1/account/admin/members/{id}/revoke":{"post":{"parameters":[{"description":"Exact PUZZGEN_PUBLIC_ORIGIN; browsers send this automatically.","in":"header","name":"Origin","required":true,"schema":{"type":"string"}},{"in":"header","name":"X-CSRF-Token","required":true,"schema":{"type":"string"}},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"}},"security":[{"memberSession":[]}],"summary":"Admin: revoke all keys and sessions","tags":["Accounts"]}},"/api/v1/account/config":{"get":{"parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"}},"security":[],"summary":"Account availability and default allocation","tags":["Accounts"]}},"/api/v1/account/delete":{"post":{"parameters":[{"description":"Exact PUZZGEN_PUBLIC_ORIGIN; browsers send this automatically.","in":"header","name":"Origin","required":true,"schema":{"type":"string"}},{"in":"header","name":"X-CSRF-Token","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteAccount"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"}},"security":[{"memberSession":[]}],"summary":"Permanently delete own non-owner account","tags":["Accounts"]}},"/api/v1/account/keys":{"get":{"parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"}},"security":[{"memberSession":[]}],"summary":"List active key metadata, never secrets","tags":["Accounts"]},"post":{"parameters":[{"description":"Exact PUZZGEN_PUBLIC_ORIGIN; browsers send this automatically.","in":"header","name":"Origin","required":true,"schema":{"type":"string"}},{"in":"header","name":"X-CSRF-Token","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateMemberKey"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemberKeyCreated"}}},"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"}},"security":[{"memberSession":[]}],"summary":"Create a key within the account's active-key cap","tags":["Accounts"]}},"/api/v1/account/keys/{id}/revoke":{"post":{"parameters":[{"description":"Exact PUZZGEN_PUBLIC_ORIGIN; browsers send this automatically.","in":"header","name":"Origin","required":true,"schema":{"type":"string"}},{"in":"header","name":"X-CSRF-Token","required":true,"schema":{"type":"string"}},{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"}},"security":[{"memberSession":[]}],"summary":"Revoke an owned key","tags":["Accounts"]}},"/api/v1/account/login":{"post":{"parameters":[{"description":"Exact PUZZGEN_PUBLIC_ORIGIN; browsers send this automatically.","in":"header","name":"Origin","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginAccount"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"}},"security":[],"summary":"Sign in using email and password","tags":["Accounts"]}},"/api/v1/account/logout":{"post":{"parameters":[{"description":"Exact PUZZGEN_PUBLIC_ORIGIN; browsers send this automatically.","in":"header","name":"Origin","required":true,"schema":{"type":"string"}},{"in":"header","name":"X-CSRF-Token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"}},"security":[{"memberSession":[]}],"summary":"Sign out this session","tags":["Accounts"]}},"/api/v1/account/password":{"post":{"parameters":[{"description":"Exact PUZZGEN_PUBLIC_ORIGIN; browsers send this automatically.","in":"header","name":"Origin","required":true,"schema":{"type":"string"}},{"in":"header","name":"X-CSRF-Token","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePassword"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"}},"security":[{"memberSession":[]}],"summary":"Change password and revoke prior sessions","tags":["Accounts"]}},"/api/v1/account/profile":{"post":{"parameters":[{"description":"Exact PUZZGEN_PUBLIC_ORIGIN; browsers send this automatically.","in":"header","name":"Origin","required":true,"schema":{"type":"string"}},{"in":"header","name":"X-CSRF-Token","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountProfile"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"}},"security":[{"memberSession":[]}],"summary":"Update display name","tags":["Accounts"]}},"/api/v1/account/register":{"post":{"parameters":[{"description":"Exact PUZZGEN_PUBLIC_ORIGIN; browsers send this automatically.","in":"header","name":"Origin","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterAccount"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"}},"security":[],"summary":"Create a regular account and cookie session","tags":["Accounts"]}},"/api/v1/account/session":{"get":{"parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"}},"security":[{"memberSession":[]}],"summary":"Profile, current limits, usage, and CSRF token","tags":["Accounts"]}},"/api/v1/account/sessions/revoke":{"post":{"parameters":[{"description":"Exact PUZZGEN_PUBLIC_ORIGIN; browsers send this automatically.","in":"header","name":"Origin","required":true,"schema":{"type":"string"}},{"in":"header","name":"X-CSRF-Token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"}},"security":[{"memberSession":[]}],"summary":"Sign out every session","tags":["Accounts"]}},"/api/v1/batch":{"post":{"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"puzzles":{"items":{"$ref":"#/components/schemas/GenerateRequest"},"maxItems":16,"minItems":1,"type":"array"}},"required":["puzzles"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"puzzles":{"items":{"$ref":"#/components/schemas/Puzzle"},"type":"array"}},"type":"object"}}},"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"413":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"},"504":{"$ref":"#/components/responses/Error"}},"summary":"Generate 1 to 16 puzzles with bounded CPU work"}},"/api/v1/catalog":{"get":{"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"kinds":{"items":{"type":"object"},"type":"array"}},"type":"object"}}},"description":"Generator catalog"}},"security":[],"summary":"List generators, rules, answer formats, and uniqueness guarantees"}},"/api/v1/daily/{kind}":{"get":{"parameters":[{"in":"path","name":"kind","required":true,"schema":{"enum":["sudoku","mini-sudoku","maze","nonogram","word-search","sliding-puzzle","lights-out","minesweeper","arithmetic","cryptogram","spoonerism","anagram","word-ladder","compound-bridge","word-sorting","sequence-detective","memory-pairs","path-connections","futoshiki","sound-families","sentence-assembly"],"type":"string"}},{"description":"Defaults to the current UTC date.","in":"query","name":"date","schema":{"format":"date","type":"string"}},{"in":"query","name":"difficulty","schema":{"default":"medium","description":"Generation preset, not a calibrated human difficulty rating.","enum":["easy","medium","hard"],"type":"string"}},{"in":"query","name":"include_solution","schema":{"default":false,"type":"boolean"}},{"in":"query","name":"content_version","schema":{"description":"Language puzzles: 1 or 2 (default latest). Nonogram, memory-pairs and sliding-puzzle: opt in to pictures-v1; omitted preserves legacy boards. Replay with the same content_version.","enum":["1","2","pictures-v1"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"date":{"format":"date","type":"string"},"puzzle":{"$ref":"#/components/schemas/Puzzle"},"timezone":{"const":"UTC"}},"type":"object"}}},"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"413":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"},"504":{"$ref":"#/components/responses/Error"}},"summary":"Get a deterministic daily puzzle using a UTC calendar date"}},"/api/v1/generate":{"post":{"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Puzzle"}}},"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"413":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"},"504":{"$ref":"#/components/responses/Error"}},"summary":"Generate one puzzle"}},"/api/v1/guest/activity":{"post":{"responses":{"204":{"description":"Accepted"},"401":{"description":"Invalid or wrong-project anonymous identity; deletion requires a token issued within five minutes"},"429":{"description":"Privacy request limit"},"503":{"description":"Development lifecycle disabled or unavailable"}},"security":[{"anonymousFirebase":[]}],"summary":"Record authenticated foreground activity for inactivity retention"}},"/api/v1/guest/deletion":{"post":{"responses":{"202":{"description":"Accepted"},"401":{"description":"Invalid or wrong-project anonymous identity; deletion requires a token issued within five minutes"},"429":{"description":"Privacy request limit"},"503":{"description":"Development lifecycle disabled or unavailable"}},"security":[{"anonymousFirebase":[]}],"summary":"Request deletion of the verified anonymous account; local garden is preserved"}},"/api/v1/guest/deletion/code":{"post":{"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"confirm":{"const":true}},"required":["confirm"],"type":"object"}}},"required":true},"responses":{"200":{"description":"Private code; save outside the app. No plaintext code is stored by the service."},"401":{"description":"Recent anonymous testing identity required"},"429":{"description":"Privacy request limit"},"503":{"description":"Development lifecycle unavailable"}},"security":[{"anonymousFirebase":[]}],"summary":"Replace the testing account's private external deletion code (180 days)"}},"/api/v1/guest/deletion/recover":{"post":{"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"code":{"pattern":"^bbdev1_[0-9a-f]{64}$","type":"string"},"confirm":{"const":true}},"required":["code","confirm"],"type":"object"}}},"required":true},"responses":{"202":{"description":"Accepted; local garden and developer key preserved"},"401":{"description":"Invalid, replaced or expired code"},"429":{"description":"Privacy request limit"},"503":{"description":"Development lifecycle unavailable"}},"security":[],"summary":"Delete an anonymous development account using its private code; retries return the same receipt"}},"/api/v1/guest/deletion/status":{"post":{"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"receipt":{"pattern":"^[0-9a-f]{64}$","type":"string"}},"required":["receipt"],"type":"object"}}},"required":true},"responses":{"200":{"description":"Pending or completed; provider backup retention is separate"},"401":{"description":"Unknown or expired receipt"},"429":{"description":"Privacy request limit"},"503":{"description":"Privacy service unavailable"}},"security":[],"summary":"Check a private deletion receipt without sending a Firebase UID"}},"/api/v1/guides":{"get":{"parameters":[{"description":"Pin the content revision; an unavailable revision returns 409.","in":"query","name":"revision","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"English-only guide bundle with schema_version and revision","headers":{"Content-Language":{"schema":{"const":"en-US","type":"string"}}}},"409":{"description":"Requested guide revision unavailable"}},"security":[],"summary":"Shared English player guides and teaching principles for all puzzles"}},"/api/v1/guides/{kind}":{"get":{"parameters":[{"in":"path","name":"kind","required":true,"schema":{"enum":["sudoku","mini-sudoku","maze","nonogram","word-search","sliding-puzzle","lights-out","minesweeper","arithmetic","cryptogram","spoonerism","anagram","word-ladder","compound-bridge","word-sorting","sequence-detective","memory-pairs","path-connections","futoshiki","sound-families","sentence-assembly"],"type":"string"}},{"in":"query","name":"revision","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Versioned English player guide"},"404":{"description":"Unknown puzzle kind"},"409":{"description":"Requested guide revision unavailable"}},"security":[],"summary":"English instructions, example and learning principle for one puzzle"}},"/api/v1/openapi.json":{"get":{"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"OpenAPI document"}},"security":[],"summary":"This OpenAPI 3.1 document"}},"/api/v1/puzzles/{kind}":{"get":{"parameters":[{"in":"path","name":"kind","required":true,"schema":{"enum":["sudoku","mini-sudoku","maze","nonogram","word-search","sliding-puzzle","lights-out","minesweeper","arithmetic","cryptogram","spoonerism","anagram","word-ladder","compound-bridge","word-sorting","sequence-detective","memory-pairs","path-connections","futoshiki","sound-families","sentence-assembly"],"type":"string"}},{"in":"query","name":"seed","schema":{"description":"Unsigned 64-bit seed. Omit to choose a fresh seed. Use a bigint-aware JSON client for exact integers beyond 2^53-1.","maximum":18446744073709551615,"minimum":0,"type":"integer"}},{"in":"query","name":"difficulty","schema":{"default":"medium","description":"Generation preset, not a calibrated human difficulty rating.","enum":["easy","medium","hard"],"type":"string"}},{"in":"query","name":"include_solution","schema":{"default":false,"type":"boolean"}},{"in":"query","name":"content_version","schema":{"description":"Language puzzles: 1 or 2 (default latest). Nonogram, memory-pairs and sliding-puzzle: opt in to pictures-v1; omitted preserves legacy boards. Replay with the same content_version.","enum":["1","2","pictures-v1"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Puzzle"}}},"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"413":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"},"504":{"$ref":"#/components/responses/Error"}},"summary":"Generate a puzzle using URL parameters"}},"/api/v1/verify":{"post":{"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"correct":{"type":"boolean"}},"required":["correct"],"type":"object"}}},"description":"Success"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"413":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"},"504":{"$ref":"#/components/responses/Error"}},"summary":"Verify an answer by regenerating its puzzle"}},"/api/v1/weather/current":{"get":{"description":"Optional gateway. No puzzle key required. Fixed provider queries only; unknown parameters rejected. Fresh cache is free. Stale results preserve fetched_at. Deployment starts paused. Quotas cover only this gateway ledger.","parameters":[{"in":"query","name":"latitude","required":true,"schema":{"maximum":90,"minimum":-90,"type":"number"}},{"in":"query","name":"longitude","required":true,"schema":{"maximum":180,"minimum":-180,"type":"number"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"type":"object"},"fetched_at":{"description":"Original observation receipt in Unix seconds","type":"integer"},"reason":{"type":["string","null"]},"source":{"enum":["upstream","cache","stale"],"type":"string"}},"required":["data","source","fetched_at"],"type":"object"}}},"description":"Weather envelope"},"400":{"description":"Invalid query"},"429":{"description":"Paused, quota exhausted, busy or cooling down; use cached/manual weather"},"503":{"description":"Gateway disabled or unavailable; no provider fallback"}},"security":[],"summary":"Get rounded-location weather through the shared weather budget"}},"/api/v1/weather/search":{"get":{"description":"Optional gateway. No puzzle key required. Fixed provider queries only; unknown parameters rejected. Fresh cache is free. Stale results preserve fetched_at. Deployment starts paused. Quotas cover only this gateway ledger.","parameters":[{"in":"query","name":"q","required":true,"schema":{"maxLength":80,"minLength":2,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"type":"object"},"fetched_at":{"description":"Original observation receipt in Unix seconds","type":"integer"},"reason":{"type":["string","null"]},"source":{"enum":["upstream","cache","stale"],"type":"string"}},"required":["data","source","fetched_at"],"type":"object"}}},"description":"Weather envelope"},"400":{"description":"Invalid query"},"429":{"description":"Paused, quota exhausted, busy or cooling down; use cached/manual weather"},"503":{"description":"Gateway disabled or unavailable; no provider fallback"}},"security":[],"summary":"Find up to five cities through the shared weather budget"}},"/health/live":{"get":{"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Healthy"}},"security":[],"summary":"Liveness"}},"/health/ready":{"get":{"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Healthy"}},"security":[],"summary":"Stateless API readiness; frontend assets are independent"}},"/metrics":{"get":{"description":"Member mode requires an admin/owner cookie session. Legacy mode accepts its configured static key.","responses":{"200":{"content":{"text/plain":{"schema":{"type":"string"}}},"description":"Metrics"},"401":{"$ref":"#/components/responses/Error"}},"security":[{"memberSession":[]}],"summary":"Prometheus instance counters; requires a key when configured"}}},"security":[{"bearerAuth":[]},{"memberSession":[]}],"servers":[{"url":"/"}]}