{"openapi":"3.1.0","info":{"title":"Rubbled API","version":"0.1.0","description":"Alpha public API for Rubbled, an API-first digging and extraction game.\n\nSwagger UI is reference-only. Request execution is disabled here; use the bearer token in your own API client.\n\n## Authentication\n\nMost endpoints require a bearer token. To obtain one:\n\n1. \u0060POST /alpha/register\u0060 with a delver name and email.\n2. Open the verification link in the first email.\n3. A second email delivers your bearer token.\n4. Send it on every authenticated request as \u0060Authorization: Bearer \u003Ctoken\u003E\u0060.\n\nLost the token? \u0060POST /alpha/auth/token/reset\u0060 re-sends it. Endpoints marked without a padlock (e.g. \u0060/health\u0060, \u0060/register\u0060, \u0060/verify\u0060, \u0060/world/guide\u0060, \u0060/layers/*\u0060) are public and take no token."},"servers":[{"url":"https://api.rubbled.io/alpha"}],"tags":[{"name":"Health","description":"Service readiness."},{"name":"Accounts","description":"Registration, verification, and auth-token reset."},{"name":"Delver","description":"Player position, view, inventory, ground items, and chests."},{"name":"Actions","description":"Queued and immediate gameplay actions."},{"name":"World","description":"Public world reference data."},{"name":"Clans","description":"Clan discovery and membership."},{"name":"Layers","description":"Public layer activity and extraction progress."},{"name":"Matches","description":"Solo/bot specimen matches."},{"name":"Skills","description":"Delver skills: programmable automaton runs such as the Surveyor Automaton."}],"paths":{"/health":{"get":{"operationId":"Health_Check","tags":["Health"],"summary":"Check API health.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Layer maintenance: gameplay is paused while a new layer opens. Retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/register":{"post":{"operationId":"Accounts_Register","tags":["Accounts"],"summary":"Register a new account and send a verification email.","responses":{"202":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Layer maintenance: gameplay is paused while a new layer opens. Retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterRequest"}}}}}},"/verify":{"post":{"operationId":"Accounts_VerifyEmail","tags":["Accounts"],"summary":"Verify an account email with the token from email.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyEmailResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Layer maintenance: gameplay is paused while a new layer opens. Retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"410":{"description":"Gone","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyEmailRequest"}}}}}},"/auth/token/reset":{"post":{"operationId":"Accounts_ResetAuthToken","tags":["Accounts"],"summary":"Request a fresh auth token email.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetAuthTokenResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Layer maintenance: gameplay is paused while a new layer opens. Retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetAuthTokenRequest"}}}}}},"/account/badges":{"get":{"operationId":"Accounts_GetBadges","tags":["Accounts"],"summary":"List the authenticated account\u0027s earned badges, whether awarded automatically by gameplay (tutorial, minecart rides, cairns, chests, blasts, extraction, shaft challenges, and more) or manually by an operator.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountBadgesResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Layer maintenance: gameplay is paused while a new layer opens. Retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"bearerAuth":[]}]}},"/delver/view":{"get":{"operationId":"Delvers_GetView","tags":["Delver"],"summary":"Get the authenticated delver and 9x9 world view. Managed delvers waiting for depot deployment receive 409 depot_deployment_required; their pocket-local position is not a shared-world location.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DelverViewResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Layer maintenance: gameplay is paused while a new layer opens. Retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"bearerAuth":[]}]}},"/delver/logs":{"get":{"operationId":"Delvers_GetLogs","tags":["Delver"],"summary":"List the authenticated player\u0027s recent log entries.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlayerLogsResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Layer maintenance: gameplay is paused while a new layer opens. Retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"bearerAuth":[]}],"parameters":[{"name":"limit","in":"query","required":false,"description":"Maximum log entries to return. Defaults to 50; maximum 100.","schema":{"type":"integer","format":"int32"}},{"name":"layerId","in":"query","required":false,"description":"Optional layer id. Defaults to the current layer.","schema":{"type":"integer","format":"int32"}},{"name":"before","in":"query","required":false,"description":"Opaque continuation token from nextPageToken.","schema":{"type":"string"}}]}},"/delver/inventory":{"get":{"operationId":"Delvers_GetInventory","tags":["Delver"],"summary":"List carried inventory.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InventoryResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Layer maintenance: gameplay is paused while a new layer opens. Retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"bearerAuth":[]}]}},"/delver/inventory/{id}":{"get":{"operationId":"Delvers_GetInventoryItem","tags":["Delver"],"summary":"Inspect one carried inventory item by id.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InventoryItemDetail"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Layer maintenance: gameplay is paused while a new layer opens. Retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Inventory-local item id from the inventory list.","schema":{"type":"string"}}]}},"/delver/specimens/{specimenId}/image":{"get":{"operationId":"Delvers_GetSpecimenImage","tags":["Delver"],"summary":"Stream an owned stone specimen\u0027s art as PNG bytes. specimenId is the inventory-local id for an owned stone_specimen item; internal source card ids and blob URLs are never exposed.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Specimen image","content":{"image/png":{"schema":{"type":"string","format":"binary"}}}},"401":{"description":"Unauthorized"},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"parameters":[{"name":"specimenId","in":"path","required":true,"description":"Inventory-local id for an owned stone_specimen item.","schema":{"type":"string"}}]}},"/delver/ground":{"get":{"operationId":"Delvers_GetGroundItems","tags":["Delver"],"summary":"List ground items at the delver\u0027s current position.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroundItemsResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Layer maintenance: gameplay is paused while a new layer opens. Retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"bearerAuth":[]}]}},"/delver/inventory/pickup":{"post":{"operationId":"Delvers_PickupGroundItem","tags":["Delver"],"summary":"Pick up an item from the current position.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PickupGroundItemResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Layer maintenance: gameplay is paused while a new layer opens. Retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PickupGroundItemRequest"}}}}}},"/delver/inventory/drop":{"post":{"operationId":"Delvers_DropInventoryItem","tags":["Delver"],"summary":"Drop inventory at the current position.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DropInventoryItemResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Layer maintenance: gameplay is paused while a new layer opens. Retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DropInventoryItemRequest"}}}}}},"/delver/chest/open":{"post":{"operationId":"Delvers_OpenChest","tags":["Delver"],"summary":"Open a visible generated chest while standing on its tile.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenChestResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Layer maintenance: gameplay is paused while a new layer opens. Retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"bearerAuth":[]}]}},"/delver/objects/{objectId}":{"get":{"operationId":"Delvers_InspectObject","tags":["Delver"],"summary":"Inspect a world object such as a cairn or a hermit by its opaque object id.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InspectObjectResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Layer maintenance: gameplay is paused while a new layer opens. Retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"bearerAuth":[]}],"parameters":[{"name":"objectId","in":"path","required":true,"description":"Opaque object id from GET /delver/view or a cairn hint log.","schema":{"type":"string"}}]}},"/delver/objects/{objectId}/claim":{"post":{"operationId":"Delvers_ClaimObject","tags":["Delver"],"summary":"Claim an inspected cairn while standing on its coordinate, consuming the offering and granting a stone specimen.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimObjectResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Layer maintenance: gameplay is paused while a new layer opens. Retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"bearerAuth":[]}],"parameters":[{"name":"objectId","in":"path","required":true,"description":"Opaque object id previously returned by inspect or view.","schema":{"type":"string"}}]}},"/delver/objects/{objectId}/offer":{"post":{"operationId":"Delvers_OfferToHermit","tags":["Delver"],"summary":"Offer a resource to a hermit while standing on its coordinate, for a low chance at a stone specimen. For a demolition worksite object id, send { itemId } while standing anywhere on its footprint to craft one bomb (see WorksiteCraftResponse); Idempotency-Key is optional and lets the same item be crafted again at the same worksite (without one, a repeat replays the earlier craft with replayed=true). If the pack fills up after the recipe was consumed, the call returns 409 worksite_craft_inventory_full with the recipe already spent; retry the same request once there is room and the bomb is handed over. Craft admission can return 409 layer_operation_unavailable when the layer has closed or is in maintenance; refresh and retry after the new layer opens.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfferToHermitResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Layer maintenance: gameplay is paused while a new layer opens. Retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"bearerAuth":[]}],"parameters":[{"name":"objectId","in":"path","required":true,"description":"Opaque object id previously returned by inspect or view.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfferToHermitRequest"}}}}}},"/delver/depot/deploy":{"post":{"operationId":"Delvers_DeployManagedDelver","tags":["Delver"],"summary":"Deploy one tutorial-complete managed delver into the shared world. The caller must be the owner/main delver and must be standing on a depot worksite.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeployManagedDelverResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Layer maintenance: gameplay is paused while a new layer opens. Retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeployManagedDelverRequest"}}}}}},"/world/guide":{"get":{"operationId":"World_GetGuide","tags":["World"],"summary":"Get player-facing guide data for tutorial flow, actions, skills, objects, inventory, matches, movement, and placements.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorldGuideResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Layer maintenance: gameplay is paused while a new layer opens. Retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/world/badges":{"get":{"operationId":"World_GetBadges","tags":["World"],"summary":"List the public badge catalog: active badges any player can work toward, sorted by name. Not account-specific and carries no earned state; use GET /account/badges for the caller\u0027s earned badges.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorldBadgesResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Layer maintenance: gameplay is paused while a new layer opens. Retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/actions/dig":{"post":{"operationId":"Actions_Dig","tags":["Actions"],"summary":"Queue a dig action in one cardinal direction.","responses":{"202":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueuedActionResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Layer maintenance: gameplay is paused while a new layer opens. Retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"bearerAuth":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional idempotency key for safe retries. Reusing the same key with the same request body replays the stored original response; reusing the same key with a different request body returns 409 idempotency_conflict. Keys are retained for the lifetime of the action row.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DirectionRequest"}}}}}},"/actions/move":{"post":{"operationId":"Actions_Move","tags":["Actions"],"summary":"Queue movement one tile in one cardinal direction.","responses":{"202":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoveActionResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Layer maintenance: gameplay is paused while a new layer opens. Retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"bearerAuth":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional idempotency key for safe retries. Reusing the same key with the same request body replays the stored original response; reusing the same key with a different request body returns 409 idempotency_conflict. Keys are retained for the lifetime of the action row.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DirectionRequest"}}}}}},"/actions/minecart/ride":{"post":{"operationId":"Actions_MinecartRide","tags":["Actions"],"summary":"Ride instantly from the current minecart station to a directly connected station, spending coal.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MinecartRideActionResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Layer maintenance: gameplay is paused while a new layer opens. Retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"bearerAuth":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional idempotency key for safe retries. Reusing the same key with the same request body replays the stored original response; reusing the same key with a different request body returns 409 idempotency_conflict. Keys are retained for the lifetime of the action row.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MinecartRideRequest"}}}}}},"/actions/place":{"post":{"operationId":"Actions_Place","tags":["Actions"],"summary":"Place one carried item or build a path in one cardinal direction. Bomb item ids (satchel_charge, powder_keg, deep_blast_charge) are accepted as itemId against an open or diggable target and return 202 with a pending action (QueuedActionResponse shape); the blast resolves through the completion queue or on the next GET /actions/{actionId}, which then returns BlastActionResponse. The bomb is consumed at resolution, not at placement.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaceActionResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Layer maintenance: gameplay is paused while a new layer opens. Retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"bearerAuth":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional idempotency key for safe retries. Reusing the same key with the same request body replays the stored original response; reusing the same key with a different request body returns 409 idempotency_conflict. Keys are retained for the lifetime of the action row.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaceRequest"}}}}}},"/actions/remove":{"post":{"operationId":"Actions_Remove","tags":["Actions"],"summary":"Remove a placed path and refund its material.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemoveActionResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Layer maintenance: gameplay is paused while a new layer opens. Retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"bearerAuth":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional idempotency key for safe retries. Reusing the same key with the same request body replays the stored original response; reusing the same key with a different request body returns 409 idempotency_conflict. Keys are retained for the lifetime of the action row.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemoveRequest"}}}}}},"/delver/actions/prospect":{"post":{"operationId":"Delvers_Prospect","tags":["Actions"],"summary":"Queue a fuzzy geological sample of an adjacent rock/wall cell in one cardinal direction.","responses":{"202":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProspectActionResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Layer maintenance: gameplay is paused while a new layer opens. Retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"bearerAuth":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional idempotency key for safe retries. Reusing the same key with the same request body replays the stored original response; reusing the same key with a different request body returns 409 idempotency_conflict. Keys are retained for the lifetime of the action row.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProspectRequest"}}}}}},"/actions/{actionId}":{"get":{"operationId":"Actions_Get","tags":["Actions"],"summary":"Poll an action and complete it if ready. A completed bomb placement returns BlastActionResponse instead of ActionStatusResponse; a bomb placement that failed to resolve (for example the bomb was no longer carried) is reported as ActionStatusResponse with status failed.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionStatusResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Layer maintenance: gameplay is paused while a new layer opens. Retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"bearerAuth":[]}],"parameters":[{"name":"actionId","in":"path","required":true,"description":"Action id returned by a prior action request.","schema":{"type":"string"}}]}},"/clans":{"get":{"operationId":"Clans_List","tags":["Clans"],"summary":"List clans.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClanListResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Layer maintenance: gameplay is paused while a new layer opens. Retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"bearerAuth":[]}]},"post":{"operationId":"Clans_Create","tags":["Clans"],"summary":"Create a clan.","responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClanResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Layer maintenance: gameplay is paused while a new layer opens. Retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateClanRequest"}}}}}},"/clans/{name}":{"patch":{"operationId":"Clans_Update","tags":["Clans"],"summary":"Rename an owned clan.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClanResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Layer maintenance: gameplay is paused while a new layer opens. Retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"bearerAuth":[]}],"parameters":[{"name":"name","in":"path","required":true,"description":"Current clan id/name.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateClanRequest"}}}}},"delete":{"operationId":"Clans_Dissolve","tags":["Clans"],"summary":"Dissolve an owned empty clan.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClanDissolveResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Layer maintenance: gameplay is paused while a new layer opens. Retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"bearerAuth":[]}],"parameters":[{"name":"name","in":"path","required":true,"description":"Clan id/name.","schema":{"type":"string"}}]}},"/clans/{name}/join":{"post":{"operationId":"Clans_Join","tags":["Clans"],"summary":"Join a clan.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClanMembershipResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Layer maintenance: gameplay is paused while a new layer opens. Retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"bearerAuth":[]}],"parameters":[{"name":"name","in":"path","required":true,"description":"Clan id/name.","schema":{"type":"string"}}]}},"/clans/{name}/leave":{"post":{"operationId":"Clans_Leave","tags":["Clans"],"summary":"Leave the current clan.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClanLeaveResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Layer maintenance: gameplay is paused while a new layer opens. Retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"bearerAuth":[]}],"parameters":[{"name":"name","in":"path","required":true,"description":"Clan id/name.","schema":{"type":"string"}}]}},"/clans/{name}/members":{"get":{"operationId":"Clans_GetMembers","tags":["Clans"],"summary":"List clan members by delver name and role.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClanMembersResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Layer maintenance: gameplay is paused while a new layer opens. Retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"bearerAuth":[]}],"parameters":[{"name":"name","in":"path","required":true,"description":"Clan id/name.","schema":{"type":"string"}}]}},"/layers":{"get":{"operationId":"Layers_List","tags":["Layers"],"summary":"List the current layer and recent archived layers for historical browsing.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LayersListResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Layer maintenance: gameplay is paused while a new layer opens. Retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"parameters":[{"name":"limit","in":"query","required":false,"description":"Maximum layers to return. Defaults to 25; maximum 100.","schema":{"type":"integer","format":"int32"}}]}},"/layers/activity":{"get":{"operationId":"Layers_GetActivity","tags":["Layers"],"summary":"Get public layer activity and extraction stats.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LayerActivityResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Layer maintenance: gameplay is paused while a new layer opens. Retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"parameters":[{"name":"layerId","in":"query","required":false,"description":"Optional layer id. Defaults to the current layer.","schema":{"type":"string"}}]}},"/layers/current/leaderboards":{"get":{"operationId":"Layers_GetCurrentLeaderboards","tags":["Layers"],"summary":"Get the current layer\u0027s public leaderboards. Totals are recomputed every 5 minutes; use the updatedAt field to label freshness, not as a live tick.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LayerLeaderboardsResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Layer maintenance: gameplay is paused while a new layer opens. Retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"parameters":[{"name":"limit","in":"query","required":false,"description":"Maximum ranked entries per stat. Defaults to 10; maximum 100.","schema":{"type":"integer","format":"int32"}}]}},"/layers/{layerId}/leaderboards":{"get":{"operationId":"Layers_GetLeaderboards","tags":["Layers"],"summary":"Get a specific layer\u0027s public leaderboards. Closed layers return finalized: true and a FinalizedAt timestamp; standings never change after that.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LayerLeaderboardsResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Layer maintenance: gameplay is paused while a new layer opens. Retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"parameters":[{"name":"layerId","in":"path","required":true,"description":"Positive integer layer id.","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Maximum ranked entries per stat. Defaults to 10; maximum 100.","schema":{"type":"integer","format":"int32"}}]}},"/layers/{layerId}/leaderboards/{statId}":{"get":{"operationId":"Layers_GetLeaderboardStat","tags":["Layers"],"summary":"Get one stat\u0027s ranked entries for a layer. See LayerLeaderboardStat for the MVP stat ids.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LayerLeaderboardStat"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Layer maintenance: gameplay is paused while a new layer opens. Retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"parameters":[{"name":"layerId","in":"path","required":true,"description":"Positive integer layer id.","schema":{"type":"string"}},{"name":"statId","in":"path","required":true,"description":"MVP stat id (see LayerLeaderboardStat.statId).","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Maximum ranked entries. Defaults to 10; maximum 100.","schema":{"type":"integer","format":"int32"}}]}},"/delver/matches":{"post":{"operationId":"Delvers_CreateMatch","tags":["Matches"],"summary":"Create or return the delver\u0027s current unfinished solo/bot specimen match. A delver has one unfinished match at a time: if one exists it is returned with 200 instead of creating another (201). A selecting_hand match older than 5 minutes is replaced; selecting_hand expires after 30 minutes and active after 24 hours without updates. Cancelling frees the slot.","responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MatchResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Layer maintenance: gameplay is paused while a new layer opens. Retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateMatchRequest"}}}}}},"/delver/matches/{matchId}":{"get":{"operationId":"Delvers_GetMatch","tags":["Matches"],"summary":"Get solo match state.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MatchResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Layer maintenance: gameplay is paused while a new layer opens. Retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"bearerAuth":[]}],"parameters":[{"name":"matchId","in":"path","required":true,"description":"Opaque match id returned by POST /delver/matches.","schema":{"type":"string"}}]}},"/delver/matches/{matchId}/hand":{"post":{"operationId":"Delvers_SubmitMatchHand","tags":["Matches"],"summary":"Submit exactly five owned stone specimen inventory items as a hand and start the match. Preferred request shape is hand: [{ inventoryId }]; specimenIds is legacy-compatible.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MatchResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Layer maintenance: gameplay is paused while a new layer opens. Retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"bearerAuth":[]}],"parameters":[{"name":"matchId","in":"path","required":true,"description":"Opaque match id returned by POST /delver/matches.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitMatchHandRequest"}}}}}},"/delver/matches/{matchId}/moves":{"post":{"operationId":"Delvers_PlaceMatchMove","tags":["Matches"],"summary":"Place one delver specimen, resolve captures, and resolve the bot\u0027s reply move when the board is not yet full.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MatchResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Layer maintenance: gameplay is paused while a new layer opens. Retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"bearerAuth":[]}],"parameters":[{"name":"matchId","in":"path","required":true,"description":"Opaque match id returned by POST /delver/matches.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaceMatchMoveRequest"}}}}}},"/delver/matches/{matchId}/cancel":{"post":{"operationId":"Delvers_CancelMatch","tags":["Matches"],"summary":"Cancel a selecting-hand or active solo match. This frees the one-unfinished-match slot so POST /delver/matches creates a fresh match.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MatchResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Layer maintenance: gameplay is paused while a new layer opens. Retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"bearerAuth":[]}],"parameters":[{"name":"matchId","in":"path","required":true,"description":"Opaque match id returned by POST /delver/matches.","schema":{"type":"string"}}]}},"/delver/matches/{matchId}/specimens/{specimenId}/image":{"get":{"operationId":"Delvers_GetMatchSpecimenImage","tags":["Matches"],"summary":"Stream a visible match specimen\u0027s art as PNG bytes. Use this for match-local opponent specimens; unplayed opponent specimens remain hidden.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Specimen image","content":{"image/png":{"schema":{"type":"string","format":"binary"}}}},"401":{"description":"Unauthorized"},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"parameters":[{"name":"matchId","in":"path","required":true,"description":"Opaque match id returned by POST /delver/matches.","schema":{"type":"string"}},{"name":"specimenId","in":"path","required":true,"description":"Public specimen id from the match hand or board, e.g. an inventory id or an opponent id like \u0022o_0\u0022.","schema":{"type":"string"}}]}},"/delver/skills":{"get":{"operationId":"Delvers_ListSkills","tags":["Skills"],"summary":"List every delver skill, including lock state, level/xp, and cooldown readiness.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SkillsListResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Layer maintenance: gameplay is paused while a new layer opens. Retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"bearerAuth":[]}]}},"/delver/skills/{skillId}/activate":{"post":{"operationId":"Delvers_ActivateSkill","tags":["Skills"],"summary":"Activate a skill run. Requires Idempotency-Key. Returns skill_not_ready with a cooldown if the skill is not yet available.","responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivateSkillResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Layer maintenance: gameplay is paused while a new layer opens. Retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"bearerAuth":[]}],"parameters":[{"name":"skillId","in":"path","required":true,"description":"Skill id, e.g. \u0022surveyor\u0022.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required idempotency key for safe retries. Reusing the same key with the same request replays the stored original response; reusing the same key with a different request returns 409 idempotency_conflict.","schema":{"type":"string"}}]}},"/delver/skills/{skillId}/runs/{runId}/commands/{command}":{"post":{"operationId":"Delvers_ExecuteSkillCommand","tags":["Skills"],"summary":"Send one command to a live skill run. Idempotency-Key is optional but supported for safe retries.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SkillCommandResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Layer maintenance: gameplay is paused while a new layer opens. Retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"bearerAuth":[]}],"parameters":[{"name":"skillId","in":"path","required":true,"description":"Skill id, e.g. \u0022surveyor\u0022.","schema":{"type":"string"}},{"name":"runId","in":"path","required":true,"description":"Run id returned by POST /delver/skills/{skillId}/activate.","schema":{"type":"string"}},{"name":"command","in":"path","required":true,"description":"Skill-specific command, e.g. \u0022north\u0022, \u0022south\u0022, \u0022east\u0022, or \u0022west\u0022 for the Surveyor Automaton.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional idempotency key for safe retries. Reusing the same key with the same request body replays the stored original response; reusing the same key with a different request body returns 409 idempotency_conflict. Keys are retained for the lifetime of the action row.","schema":{"type":"string"}}]}},"/delver/skills/{skillId}/runs/{runId}":{"get":{"operationId":"Delvers_GetSkillRun","tags":["Skills"],"summary":"Get a skill run\u0027s current status.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SkillRunStatusResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Layer maintenance: gameplay is paused while a new layer opens. Retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"bearerAuth":[]}],"parameters":[{"name":"skillId","in":"path","required":true,"description":"Skill id, e.g. \u0022surveyor\u0022.","schema":{"type":"string"}},{"name":"runId","in":"path","required":true,"description":"Run id returned by POST /delver/skills/{skillId}/activate.","schema":{"type":"string"}}]}},"/delver/skills/{skillId}/runs/{runId}/events":{"get":{"operationId":"Delvers_GetSkillRunEvents","tags":["Skills"],"summary":"List a skill run\u0027s chronological command log in ascending sequence order.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SkillRunEventsResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Layer maintenance: gameplay is paused while a new layer opens. Retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"bearerAuth":[]}],"parameters":[{"name":"skillId","in":"path","required":true,"description":"Skill id, e.g. \u0022surveyor\u0022.","schema":{"type":"string"}},{"name":"runId","in":"path","required":true,"description":"Run id returned by POST /delver/skills/{skillId}/activate.","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Maximum events to return. Defaults to 50; maximum 100.","schema":{"type":"integer","format":"int32"}},{"name":"pageToken","in":"query","required":false,"description":"Exclusive continuation token from nextPageToken.","schema":{"type":"string"}}]}},"/delver/skills/{skillId}/runs/{runId}/report":{"get":{"operationId":"Delvers_GetSkillRunReport","tags":["Skills"],"summary":"Get a skill run\u0027s summary report, including visited and blocked tiles.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SkillRunReportResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Layer maintenance: gameplay is paused while a new layer opens. Retry after the Retry-After interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}},"security":[{"bearerAuth":[]}],"parameters":[{"name":"skillId","in":"path","required":true,"description":"Skill id, e.g. \u0022surveyor\u0022.","schema":{"type":"string"}},{"name":"runId","in":"path","required":true,"description":"Run id returned by POST /delver/skills/{skillId}/activate.","schema":{"type":"string"}}]}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"opaque token","description":"Send the auth token from your verification email on the \u0060Authorization\u0060 header as \u0060Authorization: Bearer \u003Ctoken\u003E\u0060. Obtain a token by calling \u0060POST /alpha/register\u0060, opening the verification link, then reading the token from the follow-up email. Use \u0060POST /alpha/auth/token/reset\u0060 to re-send a lost token."}},"schemas":{"ApiError":{"type":"object","additionalProperties":false,"properties":{"error":{"type":"object","additionalProperties":false,"properties":{"code":{"type":"string","enum":["name_required","name_too_short","name_too_long","name_invalid_characters","name_reserved","name_taken","email_invalid","email_taken","invalid_request","verification_token_invalid","verification_token_expired","email_not_verified","synthetic_actor_pattern_reserved","invalid_direction","delver_not_found","action_in_progress","action_not_found","target_blocked","target_not_diggable","target_not_open","target_occupied","location_conflict","idempotency_conflict","invalid_prospect_effort","prospecting_not_available_in_tutorial","minecart_station_required","minecart_destination_station_required","minecart_station_not_found","minecart_destination_station_not_found","minecart_not_at_station","minecart_station_not_connected","minecart_insufficient_coal","minecart_not_available_in_tutorial","clan_not_found","clan_name_taken","clan_owner_only","clan_already_member","clan_not_member","clan_has_other_members","clan_rename_cooldown","clan_concurrent_modification","account_concurrent_modification","invalid_item","insufficient_quantity","inventory_full","not_found","reserved","pickup_failed","inventory_error","item_not_placeable","placement_failed","unsupported_path_material","path_already_exists","path_downgrade_not_allowed","path_not_found","chest_not_found","chest_already_opened","object_not_found","object_resolution_failed","cairn_already_claimed","cairn_not_at_position","insufficient_offering","claim_resolution_failed","hermit_not_found","hermit_not_at_position","hermit_pondering","hermit_offering_invalid_resource","hermit_offering_invalid_quantity","hermit_offering_insufficient_resource","hermit_offering_resolution_failed","worksite_not_on_footprint","worksite_craft_invalid_item","worksite_craft_insufficient_resources","worksite_craft_inventory_full","worksite_craft_resolution_failed","layer_operation_unavailable","layer_maintenance","maintenance_window_required","depot_required","depot_deployment_unavailable","depot_deployment_required","invalid_layer","layer_not_found","stat_not_found","match_not_found","match_limit_reached","invalid_match_difficulty","invalid_match_state","invalid_match_hand","match_specimen_not_owned","match_specimen_invalid","match_specimen_resolution_failed","match_not_your_turn","match_position_invalid","match_position_occupied","match_specimen_already_played","match_conflict","match_rate_limited","skill_not_found","skill_not_ready","skill_run_not_found","skill_run_expired","skill_run_superseded","skill_command_unsupported","skill_conflict","skill_not_unlocked"],"description":"Stable snake_case error code; switch on this, not on message. match_limit_reached and match_rate_limited are reserved for future match caps and rate limits and are not emitted by current V1 solo matches."},"message":{"type":"string"}}}}},"HealthResponse":{"type":"object","additionalProperties":false,"properties":{"status":{"type":"string","example":"ok"}}},"RegisterRequest":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","minLength":3,"maxLength":24,"description":"Delver name. Use 3-24 letters, digits, spaces, hyphens, or underscores."},"email":{"type":"string","format":"email"}}},"RegisterResponse":{"type":"object","additionalProperties":false,"properties":{"sent":{"type":"boolean"},"message":{"type":"string"},"rules":{"type":"array","items":{"type":"string"}}}},"VerifyEmailRequest":{"type":"object","additionalProperties":false,"properties":{"token":{"type":"string"}}},"VerifyEmailResponse":{"type":"object","additionalProperties":false,"properties":{"verified":{"type":"boolean"},"delver":{"$ref":"#/components/schemas/Delver"}}},"ResetAuthTokenRequest":{"type":"object","additionalProperties":false,"properties":{"email":{"type":"string","format":"email"}}},"ResetAuthTokenResponse":{"type":"object","additionalProperties":false,"properties":{"sent":{"type":"boolean"}}},"DirectionRequest":{"type":"object","additionalProperties":false,"properties":{"direction":{"type":"string","enum":["north","south","east","west"]}}},"MinecartRideRequest":{"type":"object","additionalProperties":false,"properties":{"stationId":{"type":"string","description":"Current minecart station id. The delver must be standing on this station\u0027s platform."},"toStationId":{"type":"string","description":"Directly connected destination station id."}}},"PlaceRequest":{"type":"object","additionalProperties":false,"properties":{"direction":{"type":"string","enum":["north","south","east","west"]},"itemId":{"type":["string","null"]},"placementId":{"type":["string","null"],"enum":["path"]},"materialId":{"type":["string","null"],"enum":["rubble","dense_stone"]}}},"QueuedActionResponse":{"type":"object","additionalProperties":false,"properties":{"action":{"$ref":"#/components/schemas/Action"}}},"ActionStatusResponse":{"type":"object","additionalProperties":false,"properties":{"action":{"$ref":"#/components/schemas/Action"},"view":{"anyOf":[{"$ref":"#/components/schemas/WorldView"},{"type":"null"}],"description":"Latest 9x9 world view when a polled dig or move action has completed; otherwise null."}}},"BlastActionResponse":{"type":"object","additionalProperties":false,"properties":{"actionId":{"type":"string"},"detonated":{"type":"object","additionalProperties":false,"properties":{"itemId":{"type":"string","example":"satchel_charge"},"name":{"type":"string","example":"Satchel Charge"},"x":{"type":"integer","format":"int32"},"y":{"type":"integer","format":"int32"},"depth":{"type":"integer","format":"int32"}}},"blast":{"type":"object","additionalProperties":false,"properties":{"affected":{"type":"integer","format":"int32","description":"Cells in the blast mask."},"dug":{"type":"integer","format":"int32","description":"Cells this blast opened."},"alreadyOpen":{"type":"integer","format":"int32","description":"Cells that were open when planned, or that another player changed before the blast reached them; those are never overwritten."},"skippedProtected":{"type":"integer","format":"int32","description":"Shaft-safe tiles and chest tiles."},"skippedNotDiggable":{"type":"integer","format":"int32"}}},"rewards":{"type":"object","additionalProperties":false,"properties":{"added":{"type":"array","items":{"$ref":"#/components/schemas/BlastReward"}},"leftBehind":{"type":"array","items":{"$ref":"#/components/schemas/BlastReward"},"description":"Rewards that did not fit in the pack."}}},"inventory":{"$ref":"#/components/schemas/InventoryResponse"},"view":{"$ref":"#/components/schemas/WorldView"}}},"BlastReward":{"type":"object","additionalProperties":false,"properties":{"itemId":{"type":"string"},"name":{"type":"string"},"quantity":{"type":"integer","format":"int32"}}},"MoveActionResponse":{"type":"object","additionalProperties":false,"properties":{"action":{"$ref":"#/components/schemas/Action"}}},"MinecartRideActionResponse":{"type":"object","additionalProperties":false,"properties":{"action":{"$ref":"#/components/schemas/Action"},"minecart":{"$ref":"#/components/schemas/MinecartRide"},"cost":{"$ref":"#/components/schemas/MinecartRideCost"},"inventory":{"$ref":"#/components/schemas/InventoryResponse"}}},"PlaceActionResponse":{"type":"object","additionalProperties":false,"properties":{"actionId":{"type":"string"},"placed":{"type":"object","additionalProperties":false,"properties":{"itemId":{"type":"string"},"placementId":{"type":["string","null"]},"materialId":{"type":["string","null"]},"terrain":{"type":"string"},"x":{"type":"integer","format":"int32"},"y":{"type":"integer","format":"int32"},"depth":{"type":"integer","format":"int32"}}},"inventory":{"$ref":"#/components/schemas/InventoryResponse"},"view":{"$ref":"#/components/schemas/WorldView"}}},"RemoveRequest":{"type":"object","additionalProperties":false,"properties":{"direction":{"type":"string","enum":["north","south","east","west"]},"placementId":{"type":"string","enum":["path"]}}},"RemoveActionResponse":{"type":"object","additionalProperties":false,"properties":{"actionId":{"type":"string"},"removed":{"type":"object","additionalProperties":false,"properties":{"placementId":{"type":"string"},"materialId":{"type":"string"},"itemId":{"type":"string"},"terrain":{"type":"string"},"resultTerrain":{"type":"string"},"x":{"type":"integer","format":"int32"},"y":{"type":"integer","format":"int32"},"depth":{"type":"integer","format":"int32"}}},"inventory":{"$ref":"#/components/schemas/InventoryResponse"},"view":{"$ref":"#/components/schemas/WorldView"}}},"ProspectRequest":{"type":"object","additionalProperties":false,"properties":{"direction":{"type":"string","enum":["north","south","east","west"]},"effort":{"type":"string","enum":["quick","careful","deep","survey"],"description":"Longer efforts take more time and scan a wider radius; see docs/design/prospecting.md."}}},"ProspectActionResponse":{"type":"object","additionalProperties":false,"properties":{"action":{"$ref":"#/components/schemas/Action"}}},"Action":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"type":{"type":"string","enum":["dig","move","place","remove","prospect","minecart_ride"]},"status":{"type":"string","enum":["pending","completing","completed","failed"]},"direction":{"type":"string"},"target":{"$ref":"#/components/schemas/Coordinate"},"startedAt":{"type":"string","format":"date-time"},"completesAt":{"type":"string","format":"date-time"},"completedAt":{"type":["string","null"],"format":"date-time"},"result":{"description":"For completed dig actions, contains dug and inventory details. For completed move actions, contains moved coordinates. For completed prospect actions, contains the fuzzy sample. For completed minecart ride actions, contains ride and cost details. Null for pending/completing/failed actions and for place/remove action status records; place/remove details are returned in their immediate action response payloads.","anyOf":[{"$ref":"#/components/schemas/DigActionResult"},{"$ref":"#/components/schemas/MoveActionResult"},{"$ref":"#/components/schemas/ProspectActionResult"},{"$ref":"#/components/schemas/MinecartRideActionResult"},{"type":"null"}]}}},"DigActionResult":{"type":"object","additionalProperties":false,"properties":{"dug":{"type":"object","additionalProperties":false,"properties":{"x":{"type":"integer","format":"int32"},"y":{"type":"integer","format":"int32"},"depth":{"type":"integer","format":"int32"},"terrain":{"type":"string"}}},"inventory":{"type":["object","null"],"additionalProperties":false,"properties":{"itemId":{"type":"string"},"quantityAdded":{"type":"integer","format":"int32"},"added":{"type":"boolean"},"reason":{"type":["string","null"]}}}}},"MoveActionResult":{"type":"object","additionalProperties":false,"properties":{"moved":{"$ref":"#/components/schemas/Coordinate"}}},"ProspectActionResult":{"type":"object","additionalProperties":false,"properties":{"sample":{"type":"object","additionalProperties":false,"properties":{"effort":{"type":"string","enum":["quick","careful","deep","survey"]},"durationSeconds":{"type":"integer","format":"int32"},"radius":{"type":"integer","format":"int32","description":"Cells scanned outward (Chebyshev distance) from the sampled coordinate."},"signal":{"type":"string","enum":["none","trace","faint","moderate","strong","rich"]},"families":{"type":"array","items":{"type":"string","enum":["carbon","metallic","crystalline","volatile","dark"]},"description":"Broad ore families only \u2014 never exact ore names or coordinates."},"richness":{"type":["string","null"],"enum":["thin","mixed","promising","dense"],"description":"Only populated for the survey effort."},"confidence":{"type":"number","minimum":0,"maximum":1},"message":{"type":"string"}}}}},"MinecartRideActionResult":{"type":"object","additionalProperties":false,"properties":{"ride":{"type":"object","additionalProperties":false,"properties":{"fromStationId":{"type":"string"},"toStationId":{"type":"string"},"direction":{"type":"string","enum":["north","south","east","west"]},"lineId":{"type":"string"},"from":{"$ref":"#/components/schemas/Coordinate"},"to":{"$ref":"#/components/schemas/Coordinate"},"distance":{"type":"integer","format":"int32"},"cost":{"$ref":"#/components/schemas/MinecartRideCost"}}}}},"MinecartRide":{"type":"object","additionalProperties":false,"properties":{"fromStationId":{"type":"string"},"toStationId":{"type":"string"},"direction":{"type":"string","enum":["north","south","east","west"]},"lineId":{"type":"string"},"from":{"$ref":"#/components/schemas/Coordinate"},"to":{"$ref":"#/components/schemas/Coordinate"},"distance":{"type":"integer","format":"int32","description":"Generated rail distance used for coal cost."}}},"MinecartRideCost":{"type":"object","additionalProperties":false,"properties":{"itemId":{"type":"string","enum":["ore_coal"]},"quantity":{"type":"integer","format":"int32","description":"V1 formula: max(1, ceil(distance / 128))."},"paid":{"type":["boolean","null"],"description":"Present on immediate ride responses; true when coal was consumed."}}},"DeployManagedDelverRequest":{"type":"object","additionalProperties":false,"properties":{"managedDelverEmail":{"type":"string","format":"email","description":"Email/id of a tutorial-complete managed delver on the caller\u0027s account."}}},"DeployManagedDelverResponse":{"type":"object","additionalProperties":false,"properties":{"deployed":{"type":"boolean"},"managedDelver":{"type":"object","additionalProperties":false,"properties":{"actorEmail":{"type":"string","format":"email"},"displayName":{"type":"string"},"status":{"type":"string","enum":["deployed"]},"deployedAt":{"type":"string","format":"date-time"},"depotObjectId":{"type":"string"},"position":{"$ref":"#/components/schemas/Coordinate"}}}}},"DelverViewResponse":{"type":"object","additionalProperties":false,"properties":{"delver":{"$ref":"#/components/schemas/Delver"},"view":{"$ref":"#/components/schemas/WorldView"}}},"Delver":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string"},"x":{"type":"integer","format":"int32"},"y":{"type":"integer","format":"int32"},"depth":{"type":"integer","format":"int32"}}},"WorldView":{"type":"object","additionalProperties":false,"properties":{"width":{"type":"integer","format":"int32"},"height":{"type":"integer","format":"int32"},"origin":{"$ref":"#/components/schemas/Coordinate","description":"Top-left coordinate of the returned view grid."},"ascii":{"type":"array","items":{"type":"string"}},"cells":{"type":"array","items":{"$ref":"#/components/schemas/WorldViewCell"}},"others":{"type":"array","items":{"$ref":"#/components/schemas/NearbyDelver"}}}},"WorldViewCell":{"type":"object","additionalProperties":false,"properties":{"x":{"type":"integer","format":"int32"},"y":{"type":"integer","format":"int32"},"depth":{"type":"integer","format":"int32"},"terrain":{"type":"string"},"glyph":{"type":"string"},"asciiGlyph":{"type":"string"},"diggable":{"type":"boolean"},"passable":{"type":"boolean"},"hardness":{"type":"integer","format":"int32"},"isDelver":{"type":"boolean"},"feature":{"anyOf":[{"$ref":"#/components/schemas/WorldFeature"},{"type":"null"}]},"object":{"anyOf":[{"$ref":"#/components/schemas/WorldObject"},{"type":"null"}]},"minecart":{"anyOf":[{"$ref":"#/components/schemas/MinecartFeature"},{"type":"null"}],"description":"Cosmetic Phase 1 minecart rail/station overlay. Present whenever a generated rail or station platform touches this tile, even if a chest/shaft/other object won the rendered glyph on the same tile \u2014 see docs/design/minecart-rides.md."}}},"NearbyDelver":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string"},"clan":{"type":["string","null"]},"x":{"type":"integer","format":"int32"},"y":{"type":"integer","format":"int32"},"glyph":{"type":"string","example":"d","description":"Nearby delvers are always on the same depth as the returned world view."}}},"WorldFeature":{"type":"object","additionalProperties":false,"properties":{"type":{"type":"string","example":"upward_shaft"},"shapeId":{"type":"string"},"family":{"type":"string"},"extractsAtLayerClose":{"type":"boolean"}}},"WorldObject":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","example":"obj_7k3q9x2b"},"type":{"type":"string","enum":["unknown","cairn","chest","upward_shaft","worksite"],"description":"Public object type. unknown: object exists but its kind is not yet revealed. worksite: generated cave infrastructure such as demolition_site or depot; every footprint tile carries the same id and type-specific glyph, and GET /delver/objects/{id} reveals worksiteType, footprint, and available actions. cairn: use GET /delver/objects/{id} to inspect. chest: stand on the tile and use POST /delver/chest/open. upward_shaft: step onto the tile to progress (intro cave) or extract at layer close (shared world)."},"glyph":{"type":"string","example":"?"}}},"MinecartFeature":{"type":"object","additionalProperties":false,"properties":{"type":{"type":"string","enum":["minecart_track","minecart_station"],"description":"Cosmetic Phase 1 minecart feature type. Track tiles render as = and cut visually across rubble/ore/stone; station tiles render as R in a static 3x3 platform. Neither changes the underlying terrain\u0027s passability, diggability, or hardness."},"phase":{"type":"string","example":"cosmetic","description":"Always \u0022cosmetic\u0022 in Phase 1. Reserved for later phases (e.g. walkable rail tunnels) without changing this field\u0027s meaning retroactively."},"lineId":{"type":["string","null"],"description":"Set only for minecart_track tiles."},"networkId":{"type":["string","null"],"description":"Set only for minecart_station tiles."},"stationId":{"type":["string","null"],"example":"cart_7k2q9mfa1b0_001","description":"Set only for minecart_station tiles. Stable numeric-suffixed id; not a display name."},"platform":{"anyOf":[{"$ref":"#/components/schemas/MinecartPlatform"},{"type":"null"}],"description":"Set only for minecart_station tiles."},"connectedStations":{"type":"array","items":{"$ref":"#/components/schemas/MinecartConnectedStation"},"description":"Set only for minecart_station tiles. Phase 1 stations expose the stations reachable from this one; no ride endpoint, duration, or coal cost is included."}}},"MinecartPlatform":{"type":"object","additionalProperties":false,"properties":{"origin":{"$ref":"#/components/schemas/Coordinate","description":"Top-left coordinate of the static 3x3 station platform."},"width":{"type":"integer","format":"int32"},"height":{"type":"integer","format":"int32"}}},"MinecartConnectedStation":{"type":"object","additionalProperties":false,"properties":{"stationId":{"type":"string","example":"cart_7k2q9mfa1b0_002"},"direction":{"type":"string","enum":["north","south","east","west"],"description":"Orientation context only, not a movement affordance."},"lineId":{"type":"string"},"x":{"type":"integer","format":"int32"},"y":{"type":"integer","format":"int32"},"depth":{"type":"integer","format":"int32"},"distance":{"type":"integer","format":"int32","description":"Generated rail distance between the two stations, not a walking or ride duration."}}},"Coordinate":{"type":"object","additionalProperties":false,"properties":{"x":{"type":"integer","format":"int32"},"y":{"type":"integer","format":"int32"},"depth":{"type":"integer","format":"int32","description":"Depth 0 is the starting depth; matching depth values are on the same horizontal plane."}}},"InventoryResponse":{"type":"object","additionalProperties":false,"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/InventoryItem"}},"maxLoad":{"type":["integer","null"],"format":"int32"},"currentLoad":{"type":["integer","null"],"format":"int32"},"remainingLoad":{"type":["integer","null"],"format":"int32"}}},"InventoryItem":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"type":{"type":"string"},"quantity":{"type":"integer","format":"int32"},"name":{"type":["string","null"]},"stackable":{"type":"boolean"},"loadEach":{"type":"integer","format":"int32"},"totalLoad":{"type":"integer","format":"int32"}}},"InventoryItemDetail":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"type":{"type":"string"},"quantity":{"type":"integer","format":"int32"},"name":{"type":["string","null"]},"stackable":{"type":"boolean"},"loadEach":{"type":"integer","format":"int32"},"totalLoad":{"type":"integer","format":"int32"},"metadata":{"type":"object","additionalProperties":{"type":"string"}},"specimen":{"anyOf":[{"$ref":"#/components/schemas/OwnedSpecimenDetail"},{"type":"null"}],"description":"Present for resolvable stone_specimen items; null otherwise."}}},"OwnedSpecimenDetail":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string"},"imageUrl":{"type":"string","description":"Opaque, authenticated API path (GET /delver/specimens/{id}/image) that streams this owned specimen\u0027s art. Never a direct blob/SAS URL."},"n":{"type":"integer","format":"int32"},"e":{"type":"integer","format":"int32"},"s":{"type":"integer","format":"int32"},"w":{"type":"integer","format":"int32"}}},"GroundItemsResponse":{"type":"object","additionalProperties":false,"properties":{"items":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"type":{"type":"string"},"name":{"type":"string"},"quantity":{"type":"integer","format":"int32"},"stackable":{"type":"boolean"},"droppedByYou":{"type":"boolean"},"droppedAt":{"type":"string","format":"date-time"},"reservedUntil":{"type":["string","null"],"format":"date-time"},"availableToYou":{"type":"boolean"}}}}}},"PlayerLogsResponse":{"type":"object","additionalProperties":false,"properties":{"entries":{"type":"array","items":{"$ref":"#/components/schemas/PlayerLogEntry"}},"nextPageToken":{"type":["string","null"],"description":"Pass this value as the before query parameter on the next request; null means there is no next page."}}},"PlayerLogEntry":{"type":"object","additionalProperties":false,"properties":{"createdAt":{"type":"string","format":"date-time"},"layerId":{"type":"integer","format":"int32"},"actionType":{"type":"string"},"title":{"type":"string"},"body":{"type":"string"},"location":{"anyOf":[{"$ref":"#/components/schemas/Coordinate"},{"type":"null"}]},"actionId":{"type":["string","null"]}}},"PickupGroundItemRequest":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","description":"Ground-local item id from GET /delver/ground."},"quantity":{"type":"integer","format":"int32","minimum":1}}},"PickupGroundItemResponse":{"type":"object","additionalProperties":false,"properties":{"requestedQuantity":{"type":"integer","format":"int32"},"pickedUpQuantity":{"type":"integer","format":"int32"},"remainingOnGround":{"type":"integer","format":"int32"},"reason":{"type":["string","null"]},"inventory":{"$ref":"#/components/schemas/InventoryResponse"}}},"DropInventoryItemRequest":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","description":"Inventory-local item id from GET /delver/inventory."},"quantity":{"type":"integer","format":"int32","minimum":1}}},"DropInventoryItemResponse":{"type":"object","additionalProperties":false,"properties":{"dropped":{"$ref":"#/components/schemas/DroppedItem"},"inventory":{"$ref":"#/components/schemas/InventoryResponse"}}},"DroppedItem":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"type":{"type":"string"},"name":{"type":"string"},"quantity":{"type":"integer","format":"int32"},"x":{"type":"integer","format":"int32"},"y":{"type":"integer","format":"int32"},"depth":{"type":"integer","format":"int32"},"reservedUntil":{"type":["string","null"],"format":"date-time"}}},"OpenChestResponse":{"type":"object","additionalProperties":false,"properties":{"opened":{"type":"boolean"},"loot":{"type":"array","items":{"$ref":"#/components/schemas/ChestLoot"}},"inventory":{"$ref":"#/components/schemas/InventoryResponse"}}},"ChestLoot":{"type":"object","additionalProperties":false,"properties":{"lootId":{"type":"string"},"type":{"type":"string","example":"item"},"itemId":{"type":"string"},"name":{"type":"string"},"quantity":{"type":"integer","format":"int32"},"grantedQuantity":{"type":"integer","format":"int32"},"grantReason":{"type":["string","null"]},"note":{"type":["object","null"],"additionalProperties":false,"properties":{"type":{"type":"string"},"text":{"type":"string"},"noteSetId":{"type":["string","null"]},"title":{"type":["string","null"]},"scrapIndex":{"type":["integer","null"],"format":"int32"},"scrapCount":{"type":["integer","null"],"format":"int32"},"routeNote":{"type":["object","null"],"additionalProperties":false,"properties":{"type":{"type":"string","example":"route_note"},"direction":{"type":["string","null"]},"distance":{"type":["string","null"]},"text":{"type":["string","null"]}}}}}}},"InspectObjectResponse":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","example":"obj_7k3q9x2b","description":"Opaque object id. Stable for the lifetime of the object."},"type":{"type":"string","example":"cairn","enum":["cairn","hermit","worksite"],"description":"Public object type revealed after inspection."},"name":{"type":"string","example":"Unusual Cairn","description":"Public display name. The specimen\u0027s real name is not revealed until a successful claim. Hermits always use \u0022A Hollow Delver\u0022."},"glyph":{"type":"string","example":"?","description":"Single-character map glyph. Matches the glyph on the world view cell."},"status":{"type":"string","example":"unclaimed","enum":["unclaimed","claimed","waiting"],"description":"Cairn: \u0022unclaimed\u0022 or \u0022claimed\u0022. Hermit: always \u0022waiting\u0022 \u2014 hermits are never claimed, only offered to."},"position":{"$ref":"#/components/schemas/Coordinate","description":"Object coordinate. A delver must stand on this tile to claim or offer."},"description":{"type":["string","null"],"example":"Four mineral recesses mark the arranged stones.","description":"Cairn only. Flavor text describing the object in-world."},"requirements":{"type":"array","items":{"$ref":"#/components/schemas/CairnRequirement"},"description":"Cairn only; absent for hermits. Stable per-object offering. Same object always returns the same four requirements."},"claimability":{"anyOf":[{"$ref":"#/components/schemas/CairnClaimability"},{"type":"null"}],"description":"Cairn only. Delver-specific view computed from the caller\u0027s carried inventory at request time."},"actions":{"type":"array","items":{"$ref":"#/components/schemas/HermitAction"},"description":"Hermit and demolition worksite only; absent for cairns and depots. Available interactions currently use offer."},"worksiteType":{"type":"string","example":"demolition_site","enum":["demolition_site","depot"],"description":"Worksite only. Kind of worksite."},"footprint":{"$ref":"#/components/schemas/WorksiteFootprint","description":"Worksite only. Inclusive tile bounds; every footprint tile renders the worksite glyph and object id in the view. Demolition sites are 5x5; depots are 1x1 in v1."},"crafts":{"type":"array","items":{"$ref":"#/components/schemas/WorksiteCraft"},"description":"Worksite only. Craftable bomb recipes."}}},"HermitAction":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","example":"offer","enum":["offer"]},"route":{"type":"string","example":"/alpha/delver/objects/obj_hermit_x7k2/offer"}}},"WorksiteFootprint":{"type":"object","additionalProperties":false,"properties":{"minX":{"type":"integer","format":"int32"},"minY":{"type":"integer","format":"int32"},"maxX":{"type":"integer","format":"int32"},"maxY":{"type":"integer","format":"int32"},"depth":{"type":"integer","format":"int32"}}},"WorksiteCraft":{"type":"object","additionalProperties":false,"properties":{"itemId":{"type":"string","example":"satchel_charge"},"name":{"type":"string","example":"Satchel Charge"},"requirements":{"type":"array","items":{"$ref":"#/components/schemas/WorksiteCraftRequirement"}},"effect":{"$ref":"#/components/schemas/WorksiteCraftEffect"}}},"WorksiteCraftRequirement":{"type":"object","additionalProperties":false,"properties":{"itemId":{"type":"string","example":"ore_sulfur"},"quantity":{"type":"integer","format":"int32"}}},"WorksiteCraftEffect":{"type":"object","additionalProperties":false,"properties":{"type":{"type":"string","example":"blast"},"shape":{"type":"string","example":"chaotic_noisy_blob"},"candidateSize":{"type":"integer","format":"int32"}}},"CairnRequirement":{"type":"object","additionalProperties":false,"properties":{"direction":{"type":"string","enum":["north","south","east","west"],"description":"Which recess of the cairn this line fills. Presentation only; the server does not require a delver to physically split ore by direction."},"resource":{"type":"string","example":"ore_gold","description":"Item id (matches the inventory item id) of the required ore."},"quantity":{"type":"integer","format":"int32","description":"How much of this resource the delver must hold to claim."}}},"CairnClaimability":{"type":"object","additionalProperties":false,"properties":{"canClaim":{"type":"boolean","description":"True only when every requirement is held in full at the time of inspection. Recomputed on every request."},"missing":{"type":"array","items":{"$ref":"#/components/schemas/CairnClaimabilityShortfall"},"description":"Empty when canClaim is true."}}},"CairnClaimabilityShortfall":{"type":"object","additionalProperties":false,"properties":{"resource":{"type":"string","example":"ore_gold"},"required":{"type":"integer","format":"int32","description":"Total quantity required by the offering."},"held":{"type":"integer","format":"int32","description":"Total quantity the delver currently carries across all stacks of this resource."},"shortfall":{"type":"integer","format":"int32","description":"required minus held."}}},"ClaimObjectResponse":{"type":"object","additionalProperties":false,"properties":{"claimed":{"type":"boolean"},"object":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","example":"obj_7k3q9x2b"},"type":{"type":"string","example":"cairn"},"status":{"type":"string","enum":["claimed"],"description":"Always \u0022claimed\u0022 on a success response."}}},"consumed":{"type":"array","items":{"$ref":"#/components/schemas/ClaimConsumed"},"description":"Resources removed from the delver\u0027s inventory to fulfill the offering. Retries return the same list from the durable claim record without consuming again."},"reward":{"$ref":"#/components/schemas/ClaimReward"},"message":{"type":"string","example":"The stones settle inward, revealing a specimen beneath.","description":"In-world flavor line describing the claim result."}}},"ClaimConsumed":{"type":"object","additionalProperties":false,"properties":{"resource":{"type":"string","example":"ore_gold"},"quantity":{"type":"integer","format":"int32"}}},"ClaimReward":{"type":"object","additionalProperties":false,"properties":{"inventoryItemId":{"type":"string","example":"i_n8f4k2p7","description":"Deterministic inventory id for the granted stone specimen; retries return the same id and do not create a duplicate."},"definitionId":{"type":"string","enum":["stone_specimen"],"description":"Public item definition id. Stone specimens are weightless and non-stackable, and behave like ordinary at-risk inventory: they must be extracted at layer close to keep."},"name":{"type":"string","example":"Basalt Wyrmling","description":"The specimen\u0027s in-world name. Only revealed after a successful claim."}}},"OfferToHermitRequest":{"type":"object","additionalProperties":false,"properties":{"resource":{"type":"string","example":"ore_gold","description":"Item id of an offerable (stackable) carried resource, e.g. rubble, dense_stone, or any ore_* item."},"quantity":{"type":"integer","format":"int32","minimum":1,"maximum":10,"description":"1-10. Larger offerings score higher but with diminishing returns."},"itemId":{"type":"string","example":"satchel_charge","description":"Worksite craft shape only: bomb item id to craft (satchel_charge, powder_keg, deep_blast_charge). Omit resource/quantity."}}},"WorksiteCraftResponse":{"type":"object","additionalProperties":false,"properties":{"crafted":{"type":"object","additionalProperties":false,"properties":{"itemId":{"type":"string","example":"satchel_charge"},"name":{"type":"string","example":"Satchel Charge"},"quantity":{"type":"integer","format":"int32"}}},"replayed":{"type":"boolean","description":"True when this request matched a craft that had already completed (same worksite, item, and Idempotency-Key, or no key); nothing was consumed or granted by this call."},"consumed":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"itemId":{"type":"string","example":"ore_sulfur"},"quantity":{"type":"integer","format":"int32"}}},"description":"Recipe resources consumed. Retries of the same craft return the same list without consuming again."},"inventory":{"$ref":"#/components/schemas/InventoryResponse"},"worksite":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"type":{"type":"string","enum":["worksite"]},"worksiteType":{"type":"string","enum":["demolition_site"]},"name":{"type":"string"},"glyph":{"type":"string","example":"\u0026"},"position":{"type":"object","additionalProperties":false,"properties":{"x":{"type":"integer","format":"int32"},"y":{"type":"integer","format":"int32"},"depth":{"type":"integer","format":"int32"}}}}}}},"OfferToHermitResponse":{"type":"object","additionalProperties":false,"properties":{"accepted":{"type":"boolean"},"result":{"type":"string","enum":["nothing","rewarded"],"description":"The offering is always consumed either way."},"offering":{"$ref":"#/components/schemas/HermitOfferingSummary"},"reward":{"anyOf":[{"$ref":"#/components/schemas/ClaimReward"},{"type":"null"}],"description":"Present only when result is \u0022rewarded\u0022."}}},"HermitOfferingSummary":{"type":"object","additionalProperties":false,"properties":{"resource":{"type":"string","example":"ore_gold"},"quantity":{"type":"integer","format":"int32"}}},"HermitPonderingResponse":{"type":"object","additionalProperties":false,"properties":{"error":{"type":"object","additionalProperties":false,"properties":{"code":{"type":"string","enum":["hermit_pondering"]},"message":{"type":"string","example":"A Hollow Delver is still considering your last offering."}}},"availableAt":{"type":"string","format":"date-time"}}},"InsufficientOfferingResponse":{"type":"object","additionalProperties":false,"properties":{"error":{"type":"object","additionalProperties":false,"properties":{"code":{"type":"string","enum":["insufficient_offering"]},"message":{"type":"string"}}},"missing":{"type":"array","items":{"$ref":"#/components/schemas/InsufficientOfferingMissing"},"description":"Sibling of the standard error envelope. Only appears on 409 insufficient_offering responses from POST /delver/objects/{objectId}/claim."}}},"InsufficientOfferingMissing":{"type":"object","additionalProperties":false,"properties":{"direction":{"type":"string","enum":["north","south","east","west"]},"resource":{"type":"string","example":"ore_gold"},"required":{"type":"integer","format":"int32"},"held":{"type":"integer","format":"int32"},"shortfall":{"type":"integer","format":"int32"}}},"WorldGuideResponse":{"type":"object","additionalProperties":false,"properties":{"version":{"type":"integer","format":"int32"},"sections":{"type":"array","items":{"type":"object","additionalProperties":true,"properties":{}}}}},"WorldBadgesResponse":{"type":"object","additionalProperties":false,"properties":{"badges":{"type":"array","items":{"$ref":"#/components/schemas/WorldBadge"},"description":"Active public badge definitions sorted by name, then id. Empty when no badges are published yet."}}},"WorldBadge":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","example":"halloween_2026","description":"Stable snake_case badge id. Matches the id returned by GET /account/badges."},"name":{"type":"string","example":"First Lantern"},"description":{"type":"string","example":"Awarded to early Rubbled delvers during the Halloween update."},"category":{"type":"string","example":"event"},"rarity":{"type":["string","null"],"example":"common","description":"Presentation only."},"imageUrl":{"type":["string","null"],"description":"Absolute HTTPS URL when present."},"altText":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"],"description":"Absolute HTTPS URL when present."}}},"AccountBadgesResponse":{"type":"object","additionalProperties":false,"properties":{"badges":{"type":"array","items":{"$ref":"#/components/schemas/AccountBadge"}}}},"AccountBadge":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","example":"halloween_2026","description":"Stable snake_case badge id."},"name":{"type":"string","example":"First Lantern"},"description":{"type":"string","example":"Awarded to early Rubbled delvers during the Halloween update."},"category":{"type":"string","example":"event"},"rarity":{"type":["string","null"],"example":"common","description":"Presentation only; not emphasized in the account page MVP."},"imageUrl":{"type":["string","null"],"description":"Absolute HTTPS URL when present."},"altText":{"type":["string","null"]},"thumbnailUrl":{"type":["string","null"],"description":"Absolute HTTPS URL when present."},"earnedAt":{"type":"string","format":"date-time"},"stackCount":{"type":"integer","format":"int32","description":"Number of earned rows represented by this readout. Most badges return 1; stackable badge families can return more."},"stackLayers":{"type":"array","items":{"type":"integer","format":"int32"},"description":"Public layer numbers represented by this stack, when applicable. Empty for ordinary non-layer badges."}}},"CreateClanRequest":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","minLength":3,"maxLength":24,"description":"Clan name. Use 3-24 letters, digits, spaces, hyphens, or underscores."}}},"UpdateClanRequest":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","minLength":3,"maxLength":24,"description":"Clan name. Use 3-24 letters, digits, spaces, hyphens, or underscores."}}},"ClanResponse":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"name":{"type":"string"}}},"ClanListResponse":{"type":"object","additionalProperties":false,"properties":{"clans":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"name":{"type":"string"},"memberCount":{"type":"integer","format":"int32"},"createdAt":{"type":"string","format":"date-time"}}}}}},"ClanMembersResponse":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"name":{"type":"string"},"memberCount":{"type":"integer","format":"int32"},"members":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"delverName":{"type":"string"},"role":{"type":"string","enum":["owner","member"]},"joinedAt":{"type":["string","null"],"format":"date-time"}}}}}},"ClanMembershipResponse":{"type":"object","additionalProperties":false,"properties":{"joined":{"type":"boolean"},"id":{"type":"string"},"name":{"type":"string"}}},"ClanLeaveResponse":{"type":"object","additionalProperties":false,"properties":{"left":{"type":"boolean"},"dissolved":{"type":"boolean"},"transferredOwnershipTo":{"anyOf":[{"$ref":"#/components/schemas/ClanOwnershipTransfer"},{"type":"null"}]}}},"ClanOwnershipTransfer":{"type":"object","additionalProperties":false,"properties":{"delverName":{"type":"string"}}},"ClanDissolveResponse":{"type":"object","additionalProperties":false,"properties":{"dissolved":{"type":"boolean"}}},"LayersListResponse":{"type":"object","additionalProperties":false,"properties":{"currentLayerId":{"type":["integer","null"],"format":"int32"},"layers":{"type":"array","items":{"$ref":"#/components/schemas/LayerListItem"}}}},"LayerListItem":{"type":"object","additionalProperties":false,"properties":{"layerId":{"type":"integer","format":"int32"},"isCurrentLayer":{"type":"boolean"},"startedAt":{"type":["string","null"],"format":"date-time"},"endedAt":{"type":["string","null"],"format":"date-time"},"leaderboardUpdatedAt":{"type":["string","null"],"format":"date-time"},"leaderboardFinalized":{"type":"boolean"},"leaderboardFinalizedAt":{"type":["string","null"],"format":"date-time"}}},"LayerActivityResponse":{"type":"object","additionalProperties":false,"properties":{"layerId":{"type":"integer","format":"int32"},"nextLayerId":{"type":["integer","null"],"format":"int32"},"isCurrentLayer":{"type":"boolean"},"activeDelverCount":{"type":["integer","null"],"format":"int32"},"schedule":{"type":["object","null"],"additionalProperties":false,"properties":{"enabled":{"type":"boolean"},"opensAtUtc":{"type":["string","null"],"format":"date-time"},"opensAtCentral":{"type":["string","null"],"description":"Layer end in US Central Time; legacy property name retained for compatibility."}}},"shaftReach":{"$ref":"#/components/schemas/LayerShaftReach"},"extraction":{"$ref":"#/components/schemas/LayerExtraction"}}},"LayerShaftReach":{"type":"object","additionalProperties":false,"properties":{"delverCount":{"type":"integer","format":"int32"},"currentlyOnShaftCount":{"type":"integer","format":"int32"},"firstReachedAt":{"type":["string","null"],"format":"date-time"},"leaders":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"rank":{"type":"integer","format":"int32"},"delverName":{"type":"string"},"firstReachedAt":{"type":"string","format":"date-time"},"currentlyOnShaft":{"type":"boolean"},"successfullyExtracted":{"type":"boolean"}}}}}},"LayerExtraction":{"type":"object","additionalProperties":false,"properties":{"resolved":{"type":"boolean"},"extractedCount":{"type":"integer","format":"int32"},"zeroedCount":{"type":"integer","format":"int32"},"gearCarriedForwardCount":{"type":"integer","format":"int32"},"extractedDelvers":{"type":"array","items":{"$ref":"#/components/schemas/LayerExtractionDelver"}},"zeroedDelvers":{"type":"array","items":{"$ref":"#/components/schemas/LayerExtractionDelver"}}}},"LayerExtractionDelver":{"type":"object","additionalProperties":false,"properties":{"delverName":{"type":"string"},"resolvedAt":{"type":"string","format":"date-time"}}},"LayerLeaderboardsResponse":{"type":"object","additionalProperties":false,"properties":{"layerId":{"type":"integer","format":"int32"},"updatedAt":{"type":"string","format":"date-time"},"finalized":{"type":"boolean","description":"True once the layer has closed and its final aggregation pass has landed. After finalization, entries never change."},"finalizedAt":{"type":["string","null"],"format":"date-time"},"stats":{"type":"array","items":{"$ref":"#/components/schemas/LayerLeaderboardStat"}}}},"LayerLeaderboardStat":{"type":"object","additionalProperties":false,"properties":{"layerId":{"type":"integer","format":"int32"},"statId":{"type":"string","enum":["most_dugs","most_moves","most_paths_placed","most_paths_removed","most_resources_mined","most_collected","most_chests_opened","most_chest_loot","most_cairns_claimed","most_offerings_given","most_shafts_reached"],"description":"Stable stat id; see label and aggregation for what it represents."},"label":{"type":"string","description":"Human-readable label for UI headers."},"aggregation":{"type":"string","enum":["count","sum"],"description":"count: each source row adds 1. sum: rows contribute a source-column value (e.g. dig reward quantity, grant quantity)."},"updatedAt":{"type":"string","format":"date-time"},"finalized":{"type":"boolean"},"finalizedAt":{"type":["string","null"],"format":"date-time"},"entries":{"type":"array","items":{"$ref":"#/components/schemas/LeaderboardEntry"},"description":"Ranked entries. Sorted by value (descending), with the delver who reached the current value first ranked higher on ties."}}},"LeaderboardEntry":{"type":"object","additionalProperties":false,"properties":{"rank":{"type":"integer","format":"int32","description":"1-indexed position in the sorted list."},"name":{"type":"string","description":"Snapshot of the delver\u0027s display name at the last aggregation pass. Mid-layer name changes take at most one interval to land."},"value":{"type":"integer","format":"int32","description":"Rolled-up count or sum, per the stat\u0027s aggregation kind."},"reachedValueAt":{"type":"string","format":"date-time"}}},"CreateMatchRequest":{"type":"object","additionalProperties":false,"properties":{"difficulty":{"type":["string","null"],"enum":["novice","adept","deep"],"description":"Defaults to \u0022novice\u0022 when omitted."}}},"SubmitMatchHandRequest":{"type":"object","additionalProperties":false,"properties":{"hand":{"type":"array","items":{"$ref":"#/components/schemas/SubmitMatchHandEntry"},"description":"Preferred shape. Exactly five owned stone_specimen inventory item references."},"specimenIds":{"type":"array","items":{"type":"string"},"description":"Legacy-compatible shape. Exactly five distinct owned stone_specimen inventory ids; use hand[].inventoryId for new clients."}}},"SubmitMatchHandEntry":{"type":"object","additionalProperties":false,"properties":{"inventoryId":{"type":"string","description":"Inventory-local id for an owned stone_specimen item."}}},"PlaceMatchMoveRequest":{"type":"object","additionalProperties":false,"properties":{"specimenId":{"type":"string","description":"An unplayed inventory id from the delver\u0027s hand."},"position":{"type":"integer","format":"int32","description":"Board position 0-8. row = position / 3, column = position % 3."}}},"MatchResponse":{"type":"object","additionalProperties":false,"properties":{"match":{"$ref":"#/components/schemas/Match"}}},"Match":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","example":"match_abc123"},"status":{"type":"string","enum":["selecting_hand","active","completed","cancelled","expired"]},"difficulty":{"type":"string","enum":["novice","adept","deep"]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"currentTurn":{"type":["string","null"],"description":"\u0022delver\u0022, \u0022opponent\u0022, or null once the match is no longer active."},"scores":{"anyOf":[{"$ref":"#/components/schemas/MatchScore"},{"type":"null"}]},"hand":{"type":"array","items":{"$ref":"#/components/schemas/MatchHandCard"},"description":"The authenticated delver\u0027s own hand. Empty until the hand is submitted."},"opponent":{"anyOf":[{"$ref":"#/components/schemas/MatchOpponentInfo"},{"type":"null"}],"description":"Opponent identity stays hidden beyond a display name and remaining-specimen count; placed opponent specimens are revealed on the board."},"board":{"type":"array","items":{"$ref":"#/components/schemas/MatchBoardCell"},"description":"Always all 9 positions, in order."},"lastMoves":{"type":"array","items":{"$ref":"#/components/schemas/MatchMoveEntry"},"description":"Present on POST .../moves responses: the delver\u0027s move followed by the bot\u0027s reply move, if one was made."},"winner":{"type":["string","null"],"description":"\u0022delver\u0022, \u0022opponent\u0022, or \u0022draw\u0022 once completed; null otherwise."}}},"MatchScore":{"type":"object","additionalProperties":false,"properties":{"delver":{"type":"integer","format":"int32"},"opponent":{"type":"integer","format":"int32"}}},"MatchOpponentInfo":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string"},"remainingCount":{"type":"integer","format":"int32"}}},"MatchHandCard":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","description":"Inventory id for this specimen."},"name":{"type":"string"},"imageUrl":{"type":"string","description":"Opaque, authenticated API path for the visible match specimen. Use the global /delver/specimens/{id}/image route outside matches for owned inventory specimens. Never a direct blob/SAS URL."},"n":{"type":"integer","format":"int32"},"e":{"type":"integer","format":"int32"},"s":{"type":"integer","format":"int32"},"w":{"type":"integer","format":"int32"},"played":{"type":"boolean"}}},"MatchBoardCell":{"type":"object","additionalProperties":false,"properties":{"position":{"type":"integer","format":"int32"},"row":{"type":"integer","format":"int32"},"column":{"type":"integer","format":"int32"},"controller":{"type":["string","null"],"description":"\u0022delver\u0022, \u0022opponent\u0022, or null when empty."},"specimen":{"anyOf":[{"$ref":"#/components/schemas/MatchBoardSpecimen"},{"type":"null"}]}}},"MatchBoardSpecimen":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"name":{"type":"string"},"imageUrl":{"type":"string","description":"Opaque, authenticated API path for this visible match specimen, including revealed opponent specimens. Never a direct blob/SAS URL."},"n":{"type":"integer","format":"int32"},"e":{"type":"integer","format":"int32"},"s":{"type":"integer","format":"int32"},"w":{"type":"integer","format":"int32"}}},"MatchMoveEntry":{"type":"object","additionalProperties":false,"properties":{"actor":{"type":"string","enum":["delver","opponent"]},"specimenId":{"type":["string","null"],"description":"Present for delver moves. Omitted-as-null for opponent moves so unplayed opponent hand identity stays hidden."},"position":{"type":"integer","format":"int32"},"capturedPositions":{"type":"array","items":{"type":"integer","format":"int32"}}}},"SkillsListResponse":{"type":"object","additionalProperties":false,"properties":{"skills":{"type":"array","items":{"$ref":"#/components/schemas/SkillSummary"}}}},"SkillSummary":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","example":"surveyor"},"name":{"type":"string","example":"Surveyor Automaton"},"unlocked":{"type":"boolean","description":"Baseline skills unlock after tutorial completion."},"level":{"type":["integer","null"],"format":"int32","description":"Null while unlocked is false."},"xp":{"type":["integer","null"],"format":"int32","description":"Null while unlocked is false."},"xpToNextLevel":{"type":["integer","null"],"format":"int32","description":"Null while unlocked is false."},"tier":{"anyOf":[{"$ref":"#/components/schemas/SkillTier"},{"type":"null"}],"description":"Current tier derived from the stored skill level. Null while unlocked is false."},"tiers":{"type":"array","items":{"$ref":"#/components/schemas/SkillTier"},"description":"All currently available tiers for this skill."},"cooldown":{"anyOf":[{"$ref":"#/components/schemas/SkillCooldown"},{"type":"null"}],"description":"Null while unlocked is false."}}},"SkillTier":{"type":"object","additionalProperties":false,"properties":{"level":{"type":"integer","format":"int32"},"cooldownMs":{"type":"integer","format":"int32","description":"Cooldown after activation at this tier."},"activeDurationMs":{"type":"integer","format":"int32","description":"Active window length after the first accepted command at this tier."}}},"SkillCooldown":{"type":"object","additionalProperties":false,"properties":{"availableAt":{"type":"string","format":"date-time"},"ready":{"type":"boolean"}}},"ActivateSkillResponse":{"type":"object","additionalProperties":false,"properties":{"skill":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"name":{"type":"string"},"level":{"type":"integer","format":"int32"},"xp":{"type":"integer","format":"int32"},"xpToNextLevel":{"type":"integer","format":"int32"},"tier":{"$ref":"#/components/schemas/SkillTier"}}},"run":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"status":{"type":"string","enum":["unused"]},"expiresAfterFirstCommandMs":{"type":"integer","format":"int32","description":"Active window length; the timer starts on the first accepted command, not at activation."}}},"cooldown":{"type":"object","additionalProperties":false,"properties":{"availableAt":{"type":"string","format":"date-time"}}}}},"SkillNotReadyResponse":{"type":"object","additionalProperties":false,"properties":{"error":{"type":"object","additionalProperties":false,"properties":{"code":{"type":"string","enum":["skill_not_ready"]},"message":{"type":"string"}}},"cooldown":{"type":"object","additionalProperties":false,"properties":{"availableAt":{"type":"string","format":"date-time"},"remainingMs":{"type":"integer","format":"int32"}}}}},"SkillCommandResponse":{"type":"object","additionalProperties":false,"properties":{"skill":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"name":{"type":"string"}}},"run":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"type":{"type":"string"},"status":{"type":"string","enum":["unused","active","expired","completed","superseded"]},"remainingMs":{"type":"integer","format":"int32"},"commandCount":{"type":"integer","format":"int32"}}},"command":{"$ref":"#/components/schemas/SkillCommandOutcome"}}},"SkillCommandOutcome":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","example":"east"},"result":{"type":"string","enum":["moved","blocked"]},"from":{"$ref":"#/components/schemas/Coordinate"},"to":{"$ref":"#/components/schemas/Coordinate","description":"Attempted target coordinate. Equal to position on a moved result."},"position":{"$ref":"#/components/schemas/Coordinate","description":"Resulting position. Equal to from on a blocked result."}}},"SkillRunStatusResponse":{"type":"object","additionalProperties":false,"properties":{"skill":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"name":{"type":"string"}}},"run":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"type":{"type":"string"},"status":{"type":"string","enum":["unused","active","expired","completed","superseded"]},"remainingMs":{"type":"integer","format":"int32"},"commandCount":{"type":"integer","format":"int32"},"origin":{"$ref":"#/components/schemas/Coordinate"},"position":{"$ref":"#/components/schemas/Coordinate"},"startedAt":{"type":["string","null"],"format":"date-time"},"expiresAt":{"type":["string","null"],"format":"date-time"},"completedAt":{"type":["string","null"],"format":"date-time"}}}}},"SkillRunEventsResponse":{"type":"object","additionalProperties":false,"properties":{"skillId":{"type":"string"},"runId":{"type":"string"},"status":{"type":"string","enum":["unused","active","expired","completed","superseded"]},"events":{"type":"array","items":{"$ref":"#/components/schemas/SkillRunEvent"}},"nextPageToken":{"type":["string","null"],"description":"Pass this value as the pageToken query parameter on the next request; null means there is no next page."}}},"SkillRunEvent":{"type":"object","additionalProperties":false,"properties":{"sequence":{"type":"integer","format":"int32","description":"Canonical command order within the run."},"createdAt":{"type":"string","format":"date-time"},"command":{"type":"string"},"result":{"type":"string","enum":["moved","blocked"]},"from":{"$ref":"#/components/schemas/Coordinate"},"to":{"$ref":"#/components/schemas/Coordinate"},"position":{"$ref":"#/components/schemas/Coordinate"}}},"SkillRunReportResponse":{"type":"object","additionalProperties":false,"properties":{"skillId":{"type":"string"},"runId":{"type":"string"},"type":{"type":"string","example":"surveyor_automaton"},"status":{"type":"string","enum":["unused","active","expired","completed","superseded"]},"origin":{"$ref":"#/components/schemas/Coordinate"},"finalPosition":{"$ref":"#/components/schemas/Coordinate"},"commandCount":{"type":"integer","format":"int32"},"movesSucceeded":{"type":"integer","format":"int32"},"movesBlocked":{"type":"integer","format":"int32"},"pathLength":{"type":"integer","format":"int32","description":"Number of successful one-tile moves during the run."},"uniqueTilesVisited":{"type":"integer","format":"int32"},"uniqueBlockedTiles":{"type":"integer","format":"int32"},"blockedDirections":{"$ref":"#/components/schemas/SkillRunBlockedDirections"},"furthestTile":{"$ref":"#/components/schemas/SkillRunFurthestTile"},"boundingBox":{"$ref":"#/components/schemas/SkillRunBoundingBox"},"startedAt":{"type":["string","null"],"format":"date-time"},"expiresAt":{"type":["string","null"],"format":"date-time"},"visited":{"type":"array","items":{"$ref":"#/components/schemas/Coordinate"}},"blocked":{"type":"array","items":{"$ref":"#/components/schemas/SkillRunBlockedTile"}}}},"SkillRunBlockedDirections":{"type":"object","additionalProperties":false,"properties":{"north":{"type":"integer","format":"int32"},"south":{"type":"integer","format":"int32"},"east":{"type":"integer","format":"int32"},"west":{"type":"integer","format":"int32"}}},"SkillRunFurthestTile":{"type":"object","additionalProperties":false,"properties":{"x":{"type":"integer","format":"int32"},"y":{"type":"integer","format":"int32"},"depth":{"type":"integer","format":"int32"},"distanceFromOrigin":{"type":"integer","format":"int32","description":"Manhattan distance from the run origin."}}},"SkillRunBoundingBox":{"type":"object","additionalProperties":false,"properties":{"minX":{"type":"integer","format":"int32"},"maxX":{"type":"integer","format":"int32"},"minY":{"type":"integer","format":"int32"},"maxY":{"type":"integer","format":"int32"},"minDepth":{"type":"integer","format":"int32"},"maxDepth":{"type":"integer","format":"int32"}}},"SkillRunBlockedTile":{"type":"object","additionalProperties":false,"properties":{"x":{"type":"integer","format":"int32"},"y":{"type":"integer","format":"int32"},"depth":{"type":"integer","format":"int32"},"direction":{"type":["string","null"],"enum":["north","south","east","west"]}}}}}}