{
  "openapi": "3.1.0",
  "info": {
    "title": "Static Riot RGS and developer evaluation API",
    "version": "2026-10-evaluation-v1",
    "description": "Working server-authoritative evaluation RGS. EUR developer credits only; non-redeemable. External casino wallets for gameplay and real-money mode are unavailable. A separate browser sandbox wallet test connector is documented at /sandbox-wallet.html with its outbound contract at /sandbox-wallet-openapi.json. Independent certification and partner acceptance are required for commercial wagering. Full math and launch prerequisites are documented at /integration.html. Exact complete-round settlement occurs before animation. Developer math/simulation tools are documented under their /api/v1 paths and use the same bearer key and allowance; they do not settle wagers. A settled receipt can be recovered by its original Idempotency-Key."
  },
  "servers": [
    {
      "url": "https://staticriot.dev/api/integration/v1",
      "description": "Developer evaluation"
    }
  ],
  "security": [
    {
      "SandboxKey": []
    }
  ],
  "tags": [
    {
      "name": "Status"
    },
    {
      "name": "Sessions"
    },
    {
      "name": "Rounds"
    },
    {
      "name": "Launch"
    },
    {
      "name": "Developer Tools",
      "description": "Published math and non-settling Monte Carlo simulation."
    },
    {
      "name": "Console Wallet Lab",
      "description": "Private hosted mock-transport test runs; fake credits only. Separate from the local Node SQLite/HTTP acceptance harness."
    }
  ],
  "paths": {
    "/health": {
      "get": {
        "tags": [
          "Status"
        ],
        "operationId": "health",
        "security": [],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "const": "ok"
                    },
                    "realMoneyEnabled": {
                      "const": false
                    },
                    "certified": {
                      "const": false
                    },
                    "apiVersion": {
                      "const": "2026-10-evaluation-v1"
                    },
                    "model": {
                      "type": "string"
                    },
                    "environment": {
                      "const": "sandbox"
                    },
                    "funds": {
                      "const": "developer_credits"
                    },
                    "currency": {
                      "const": "EUR"
                    },
                    "redeemable": {
                      "const": false
                    }
                  },
                  "required": [
                    "status",
                    "realMoneyEnabled",
                    "certified",
                    "apiVersion",
                    "model",
                    "environment",
                    "funds",
                    "currency",
                    "redeemable"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Origin denied. Partner requests belong on your backend.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Method not supported; inspect Allow.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Allow": {
                "description": "Supported HTTP methods.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "description": "Game or service unavailable; preserve the original wager key and reconcile.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "default": {
            "description": "Evaluation error; retry a timed-out wager with its original idempotency key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/games": {
      "get": {
        "tags": [
          "Status"
        ],
        "operationId": "games",
        "security": [],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "description": "Evaluation game catalogue. Outlaw and Dracula use 6×5 clusters; Poseidon uses 5×4 paylines and two bonus tiers. Poseidon is listed when enabled.",
                  "properties": {
                    "environment": {
                      "const": "sandbox"
                    },
                    "funds": {
                      "const": "developer_credits"
                    },
                    "currency": {
                      "const": "EUR"
                    },
                    "redeemable": {
                      "const": false
                    },
                    "apiVersion": {
                      "const": "2026-10-evaluation-v1"
                    },
                    "model": {
                      "type": "string"
                    },
                    "targetRtpPercent": {
                      "const": 98
                    },
                    "certified": {
                      "const": false
                    },
                    "realMoneyEnabled": {
                      "const": false
                    },
                    "games": {
                      "type": "array",
                      "minItems": 2,
                      "maxItems": 3,
                      "items": {
                        "$ref": "#/components/schemas/Game"
                      }
                    },
                    "openapi": {
                      "type": "string"
                    },
                    "documentation": {
                      "type": "string"
                    },
                    "mathSource": {
                      "type": "string"
                    },
                    "catalogue": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "environment",
                    "funds",
                    "currency",
                    "redeemable",
                    "apiVersion",
                    "model",
                    "targetRtpPercent",
                    "certified",
                    "realMoneyEnabled",
                    "games",
                    "openapi",
                    "documentation",
                    "mathSource",
                    "catalogue"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Origin denied. Partner requests belong on your backend.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Method not supported; inspect Allow.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Allow": {
                "description": "Supported HTTP methods.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "description": "Game or service unavailable; preserve the original wager key and reconcile.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "default": {
            "description": "Evaluation error; retry a timed-out wager with its original idempotency key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/sessions": {
      "post": {
        "tags": [
          "Sessions"
        ],
        "operationId": "createSession",
        "description": "Create a 24-hour session with EUR 1,000,000 non-redeemable credits. No auto refill. Ten sessions per developer per 24-hour window.",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 128,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:-]{15,127}$"
            },
            "description": "Persist and reuse for the exact same request after any timeout. Round keys are scoped to the session; create keys are scoped to the developer."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSession"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Identical idempotent retry; the original session or settled round is reused.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "session"
                  ],
                  "properties": {
                    "session": {
                      "$ref": "#/components/schemas/Session"
                    }
                  }
                }
              }
            },
            "headers": {
              "Idempotent-Replayed": {
                "description": "true for the original settled request reused by this retry.",
                "schema": {
                  "const": "true"
                }
              }
            }
          },
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "session"
                  ],
                  "properties": {
                    "session": {
                      "$ref": "#/components/schemas/Session"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid JSON/input, pagination or idempotency key. Correct the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, revoked or inactive key/browser launch. Do not expose credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Origin denied. Partner requests belong on your backend.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No visible resource owned by this principal. A keyed receipt404 is not proof an earlier request cannot still settle.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Method not supported; inspect Allow.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Allow": {
                "description": "Supported HTTP methods.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Idempotency conflict or insufficient developer credits. Do not issue a new key for an uncertain wager.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Session expired/closed; new wagers unavailable. Settled receipt lookup/replay/safe duplicates remain available.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "JSON body exceeds the permitted byte limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Content-Type must be application/json with optional parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Evaluation-only environment/funds/currency.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate/daily quota exhausted; respect Retry-After and preserve the wager key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds until a retry is allowed; daily quotas reset at midnight UTC.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            }
          },
          "503": {
            "description": "Game or service unavailable; preserve the original wager key and reconcile.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "default": {
            "description": "Evaluation error; retry a timed-out wager with its original idempotency key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/sessions/{sessionId}": {
      "parameters": [
        {
          "name": "sessionId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "format": "uuid"
          }
        }
      ],
      "get": {
        "tags": [
          "Sessions"
        ],
        "operationId": "getSession",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "session": {
                      "$ref": "#/components/schemas/Session"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid JSON/input, pagination or idempotency key. Correct the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, revoked or inactive key/browser launch. Do not expose credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Origin denied. Partner requests belong on your backend.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No visible resource owned by this principal. A keyed receipt404 is not proof an earlier request cannot still settle.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Method not supported; inspect Allow.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Allow": {
                "description": "Supported HTTP methods.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Idempotency conflict or insufficient developer credits. Do not issue a new key for an uncertain wager.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Session expired/closed; new wagers unavailable. Settled receipt lookup/replay/safe duplicates remain available.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "JSON body exceeds the permitted byte limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Content-Type must be application/json with optional parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Evaluation-only environment/funds/currency.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate/daily quota exhausted; respect Retry-After and preserve the wager key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds until a retry is allowed; daily quotas reset at midnight UTC.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            }
          },
          "503": {
            "description": "Game or service unavailable; preserve the original wager key and reconcile.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "default": {
            "description": "Evaluation error; retry a timed-out wager with its original idempotency key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Sessions"
        ],
        "operationId": "closeSession",
        "description": "Idempotently close for new rounds. History and identical settled wager retries remain available.",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "session": {
                      "$ref": "#/components/schemas/Session"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid JSON/input, pagination or idempotency key. Correct the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, revoked or inactive key/browser launch. Do not expose credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Origin denied. Partner requests belong on your backend.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No visible resource owned by this principal. A keyed receipt404 is not proof an earlier request cannot still settle.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Method not supported; inspect Allow.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Allow": {
                "description": "Supported HTTP methods.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Idempotency conflict or insufficient developer credits. Do not issue a new key for an uncertain wager.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Session expired/closed; new wagers unavailable. Settled receipt lookup/replay/safe duplicates remain available.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "JSON body exceeds the permitted byte limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Content-Type must be application/json with optional parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Evaluation-only environment/funds/currency.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate/daily quota exhausted; respect Retry-After and preserve the wager key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds until a retry is allowed; daily quotas reset at midnight UTC.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            }
          },
          "503": {
            "description": "Game or service unavailable; preserve the original wager key and reconcile.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "default": {
            "description": "Evaluation error; retry a timed-out wager with its original idempotency key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/sessions/{sessionId}/rounds": {
      "parameters": [
        {
          "name": "sessionId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "format": "uuid"
          }
        }
      ],
      "post": {
        "tags": [
          "Rounds"
        ],
        "operationId": "settleRound",
        "description": "Server samples one complete round including all free spins and settles its full cost and award atomically. Exactly-once idempotency within a session. Sixty rounds per developer per minute.",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 128,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:-]{15,127}$"
            },
            "description": "Persist and reuse for the exact same request after any timeout. Round keys are scoped to the session; create keys are scoped to the developer."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Wager"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Identical idempotent retry; the original session or settled round is reused.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RoundResult"
                }
              }
            },
            "headers": {
              "Idempotent-Replayed": {
                "description": "true for the original settled request reused by this retry.",
                "schema": {
                  "const": "true"
                }
              }
            }
          },
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RoundResult"
                }
              }
            }
          },
          "400": {
            "description": "Invalid JSON/input, pagination or idempotency key. Correct the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, revoked or inactive key/browser launch. Do not expose credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Origin denied. Partner requests belong on your backend.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No visible resource owned by this principal. A keyed receipt404 is not proof an earlier request cannot still settle.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Method not supported; inspect Allow.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Allow": {
                "description": "Supported HTTP methods.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Idempotency conflict or insufficient developer credits. Do not issue a new key for an uncertain wager.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Session expired/closed; new wagers unavailable. Settled receipt lookup/replay/safe duplicates remain available.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "JSON body exceeds the permitted byte limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Content-Type must be application/json with optional parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Evaluation-only environment/funds/currency.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate/daily quota exhausted; respect Retry-After and preserve the wager key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds until a retry is allowed; daily quotas reset at midnight UTC.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            }
          },
          "503": {
            "description": "Game or service unavailable; preserve the original wager key and reconcile.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "default": {
            "description": "Evaluation error; retry a timed-out wager with its original idempotency key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "Rounds"
        ],
        "operationId": "listRounds",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 50,
              "default": 20
            }
          },
          {
            "name": "beforeSequence",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "description": "Exclusive sequence cursor; omit for newest."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "sessionId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "rounds": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Receipt"
                      }
                    },
                    "nextBeforeSequence": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid JSON/input, pagination or idempotency key. Correct the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, revoked or inactive key/browser launch. Do not expose credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Origin denied. Partner requests belong on your backend.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No visible resource owned by this principal. A keyed receipt404 is not proof an earlier request cannot still settle.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Method not supported; inspect Allow.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Allow": {
                "description": "Supported HTTP methods.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Idempotency conflict or insufficient developer credits. Do not issue a new key for an uncertain wager.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Session expired/closed; new wagers unavailable. Settled receipt lookup/replay/safe duplicates remain available.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "JSON body exceeds the permitted byte limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Content-Type must be application/json with optional parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Evaluation-only environment/funds/currency.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate/daily quota exhausted; respect Retry-After and preserve the wager key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds until a retry is allowed; daily quotas reset at midnight UTC.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            }
          },
          "503": {
            "description": "Game or service unavailable; preserve the original wager key and reconcile.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "default": {
            "description": "Evaluation error; retry a timed-out wager with its original idempotency key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/sessions/{sessionId}/rounds/{roundId}": {
      "parameters": [
        {
          "name": "sessionId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "format": "uuid"
          }
        },
        {
          "name": "roundId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "format": "uuid"
          }
        }
      ],
      "get": {
        "tags": [
          "Rounds"
        ],
        "operationId": "replayRound",
        "description": "Read immutable original result. Does not sample, debit or credit again.",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RoundResult"
                }
              }
            }
          },
          "400": {
            "description": "Invalid JSON/input, pagination or idempotency key. Correct the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, revoked or inactive key/browser launch. Do not expose credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Origin denied. Partner requests belong on your backend.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No visible resource owned by this principal. A keyed receipt404 is not proof an earlier request cannot still settle.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Method not supported; inspect Allow.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Allow": {
                "description": "Supported HTTP methods.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Idempotency conflict or insufficient developer credits. Do not issue a new key for an uncertain wager.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Session expired/closed; new wagers unavailable. Settled receipt lookup/replay/safe duplicates remain available.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "JSON body exceeds the permitted byte limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Content-Type must be application/json with optional parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Evaluation-only environment/funds/currency.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate/daily quota exhausted; respect Retry-After and preserve the wager key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds until a retry is allowed; daily quotas reset at midnight UTC.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            }
          },
          "503": {
            "description": "Game or service unavailable; preserve the original wager key and reconcile.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "default": {
            "description": "Evaluation error; retry a timed-out wager with its original idempotency key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/sessions/{sessionId}/reconciliation": {
      "parameters": [
        {
          "name": "sessionId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "format": "uuid"
          }
        }
      ],
      "get": {
        "tags": [
          "Rounds"
        ],
        "operationId": "reconcileSession",
        "description": "Single-snapshot check of initial balance minus all debits plus all credits against current balance and round count.",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "sessionId": {
                      "type": "string"
                    },
                    "initialBalanceCents": {
                      "type": "integer"
                    },
                    "balanceCents": {
                      "type": "integer"
                    },
                    "completedRounds": {
                      "type": "integer"
                    },
                    "debitCents": {
                      "type": "integer"
                    },
                    "creditCents": {
                      "type": "integer"
                    },
                    "reconciled": {
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid JSON/input, pagination or idempotency key. Correct the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, revoked or inactive key/browser launch. Do not expose credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Origin denied. Partner requests belong on your backend.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No visible resource owned by this principal. A keyed receipt404 is not proof an earlier request cannot still settle.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Method not supported; inspect Allow.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Allow": {
                "description": "Supported HTTP methods.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Idempotency conflict or insufficient developer credits. Do not issue a new key for an uncertain wager.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Session expired/closed; new wagers unavailable. Settled receipt lookup/replay/safe duplicates remain available.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "JSON body exceeds the permitted byte limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Content-Type must be application/json with optional parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Evaluation-only environment/funds/currency.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate/daily quota exhausted; respect Retry-After and preserve the wager key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds until a retry is allowed; daily quotas reset at midnight UTC.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            }
          },
          "503": {
            "description": "Game or service unavailable; preserve the original wager key and reconcile.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "default": {
            "description": "Evaluation error; retry a timed-out wager with its original idempotency key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/sessions/{sessionId}/launch": {
      "parameters": [
        {
          "name": "sessionId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "format": "uuid"
          }
        }
      ],
      "post": {
        "tags": [
          "Launch"
        ],
        "operationId": "issueLaunch",
        "description": "Issue a single-use 256-bit launch capability, stored hashed, valid five minutes. launchUrl keeps the token in a fragment, never a query/API key. Open on this origin; do not log or share.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "sessionId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "expiresAt": {
                      "type": "integer"
                    },
                    "launchUrl": {
                      "type": "string",
                      "example": "/play.html?rgs=1&session=UUID&game=outlaw#launch=OPAQUE_TOKEN"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid JSON/input, pagination or idempotency key. Correct the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, revoked or inactive key/browser launch. Do not expose credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Origin denied. Partner requests belong on your backend.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No visible resource owned by this principal. A keyed receipt404 is not proof an earlier request cannot still settle.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Method not supported; inspect Allow.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Allow": {
                "description": "Supported HTTP methods.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Idempotency conflict or insufficient developer credits. Do not issue a new key for an uncertain wager.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Session expired/closed; new wagers unavailable. Settled receipt lookup/replay/safe duplicates remain available.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "JSON body exceeds the permitted byte limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Content-Type must be application/json with optional parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Evaluation-only environment/funds/currency.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate/daily quota exhausted; respect Retry-After and preserve the wager key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds until a retry is allowed; daily quotas reset at midnight UTC.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            }
          },
          "503": {
            "description": "Game or service unavailable; preserve the original wager key and reconcile.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "default": {
            "description": "Evaluation error; retry a timed-out wager with its original idempotency key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/rgs/v1/launch/exchange": {
      "servers": [
        {
          "url": "https://staticriot.dev"
        }
      ],
      "post": {
        "tags": [
          "Launch"
        ],
        "operationId": "exchangeLaunch",
        "security": [],
        "description": "Same-origin browser POST with Origin equal to this origin. Atomically consumes the capability and sets an HttpOnly Secure SameSite=Strict session-bound cookie. Renderer then uses the same session/round paths prefixed /api/rgs/v1/browser. This is not a partner server authentication mechanism.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "launchToken"
                ],
                "properties": {
                  "launchToken": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$",
                    "writeOnly": true
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "sessionId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "environment": {
                      "const": "sandbox"
                    },
                    "funds": {
                      "const": "developer_credits"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid JSON/input, pagination or idempotency key. Correct the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, revoked or inactive key/browser launch. Do not expose credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Origin denied. Partner requests belong on your backend.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No visible resource owned by this principal. A keyed receipt404 is not proof an earlier request cannot still settle.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Method not supported; inspect Allow.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Allow": {
                "description": "Supported HTTP methods.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Idempotency conflict or insufficient developer credits. Do not issue a new key for an uncertain wager.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Session expired/closed; new wagers unavailable. Settled receipt lookup/replay/safe duplicates remain available.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "JSON body exceeds the permitted byte limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Content-Type must be application/json with optional parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Evaluation-only environment/funds/currency.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate/daily quota exhausted; respect Retry-After and preserve the wager key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds until a retry is allowed; daily quotas reset at midnight UTC.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            }
          },
          "503": {
            "description": "Game or service unavailable; preserve the original wager key and reconcile.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "default": {
            "description": "Evaluation error; retry a timed-out wager with its original idempotency key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/rgs/v1/browser/sessions/{sessionId}": {
      "parameters": [
        {
          "name": "sessionId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "format": "uuid"
          }
        }
      ],
      "get": {
        "tags": [
          "Sessions"
        ],
        "operationId": "browserGetSession",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "session": {
                      "$ref": "#/components/schemas/Session"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid JSON/input, pagination or idempotency key. Correct the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, revoked or inactive key/browser launch. Do not expose credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Origin denied. Partner requests belong on your backend.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No visible resource owned by this principal. A keyed receipt404 is not proof an earlier request cannot still settle.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Method not supported; inspect Allow.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Allow": {
                "description": "Supported HTTP methods.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Idempotency conflict or insufficient developer credits. Do not issue a new key for an uncertain wager.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Session expired/closed; new wagers unavailable. Settled receipt lookup/replay/safe duplicates remain available.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "JSON body exceeds the permitted byte limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Content-Type must be application/json with optional parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Evaluation-only environment/funds/currency.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate/daily quota exhausted; respect Retry-After and preserve the wager key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds until a retry is allowed; daily quotas reset at midnight UTC.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            }
          },
          "503": {
            "description": "Game or service unavailable; preserve the original wager key and reconcile.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "default": {
            "description": "Evaluation error; retry a timed-out wager with its original idempotency key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "BrowserSession": []
          }
        ],
        "description": "Same-origin renderer adapter. Cookie must belong to this one session. "
      },
      "delete": {
        "tags": [
          "Sessions"
        ],
        "operationId": "browserCloseSession",
        "description": "Same-origin renderer adapter. Cookie must belong to this one session. Idempotently close for new rounds. History and identical settled wager retries remain available.",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "session": {
                      "$ref": "#/components/schemas/Session"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid JSON/input, pagination or idempotency key. Correct the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, revoked or inactive key/browser launch. Do not expose credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Origin denied. Partner requests belong on your backend.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No visible resource owned by this principal. A keyed receipt404 is not proof an earlier request cannot still settle.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Method not supported; inspect Allow.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Allow": {
                "description": "Supported HTTP methods.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Idempotency conflict or insufficient developer credits. Do not issue a new key for an uncertain wager.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Session expired/closed; new wagers unavailable. Settled receipt lookup/replay/safe duplicates remain available.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "JSON body exceeds the permitted byte limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Content-Type must be application/json with optional parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Evaluation-only environment/funds/currency.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate/daily quota exhausted; respect Retry-After and preserve the wager key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds until a retry is allowed; daily quotas reset at midnight UTC.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            }
          },
          "503": {
            "description": "Game or service unavailable; preserve the original wager key and reconcile.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "default": {
            "description": "Evaluation error; retry a timed-out wager with its original idempotency key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "BrowserSession": []
          }
        ],
        "parameters": [
          {
            "name": "Origin",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uri"
            },
            "description": "Must exactly equal the requested Static Riot origin. Browsers set this automatically."
          }
        ]
      },
      "servers": [
        {
          "url": "https://staticriot.dev"
        }
      ]
    },
    "/api/rgs/v1/browser/sessions/{sessionId}/rounds": {
      "parameters": [
        {
          "name": "sessionId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "format": "uuid"
          }
        }
      ],
      "post": {
        "tags": [
          "Rounds"
        ],
        "operationId": "browserSettleRound",
        "description": "Same-origin renderer adapter. Cookie must belong to this one session. Server samples one complete round including all free spins and settles its full cost and award atomically. Exactly-once idempotency within a session. Sixty rounds per developer per minute.",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 128,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:-]{15,127}$"
            },
            "description": "Persist and reuse for the exact same request after any timeout. Round keys are scoped to the session; create keys are scoped to the developer."
          },
          {
            "name": "Origin",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uri"
            },
            "description": "Must exactly equal the requested Static Riot origin. Browsers set this automatically."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Wager"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Identical idempotent retry; the original session or settled round is reused.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RoundResult"
                }
              }
            },
            "headers": {
              "Idempotent-Replayed": {
                "description": "true for the original settled request reused by this retry.",
                "schema": {
                  "const": "true"
                }
              }
            }
          },
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RoundResult"
                }
              }
            }
          },
          "400": {
            "description": "Invalid JSON/input, pagination or idempotency key. Correct the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, revoked or inactive key/browser launch. Do not expose credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Origin denied. Partner requests belong on your backend.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No visible resource owned by this principal. A keyed receipt404 is not proof an earlier request cannot still settle.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Method not supported; inspect Allow.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Allow": {
                "description": "Supported HTTP methods.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Idempotency conflict or insufficient developer credits. Do not issue a new key for an uncertain wager.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Session expired/closed; new wagers unavailable. Settled receipt lookup/replay/safe duplicates remain available.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "JSON body exceeds the permitted byte limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Content-Type must be application/json with optional parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Evaluation-only environment/funds/currency.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate/daily quota exhausted; respect Retry-After and preserve the wager key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds until a retry is allowed; daily quotas reset at midnight UTC.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            }
          },
          "503": {
            "description": "Game or service unavailable; preserve the original wager key and reconcile.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "default": {
            "description": "Evaluation error; retry a timed-out wager with its original idempotency key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "BrowserSession": []
          }
        ]
      },
      "get": {
        "tags": [
          "Rounds"
        ],
        "operationId": "browserListRounds",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 50,
              "default": 20
            }
          },
          {
            "name": "beforeSequence",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1
            },
            "description": "Exclusive sequence cursor; omit for newest."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "sessionId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "rounds": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Receipt"
                      }
                    },
                    "nextBeforeSequence": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid JSON/input, pagination or idempotency key. Correct the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, revoked or inactive key/browser launch. Do not expose credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Origin denied. Partner requests belong on your backend.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No visible resource owned by this principal. A keyed receipt404 is not proof an earlier request cannot still settle.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Method not supported; inspect Allow.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Allow": {
                "description": "Supported HTTP methods.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Idempotency conflict or insufficient developer credits. Do not issue a new key for an uncertain wager.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Session expired/closed; new wagers unavailable. Settled receipt lookup/replay/safe duplicates remain available.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "JSON body exceeds the permitted byte limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Content-Type must be application/json with optional parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Evaluation-only environment/funds/currency.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate/daily quota exhausted; respect Retry-After and preserve the wager key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds until a retry is allowed; daily quotas reset at midnight UTC.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            }
          },
          "503": {
            "description": "Game or service unavailable; preserve the original wager key and reconcile.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "default": {
            "description": "Evaluation error; retry a timed-out wager with its original idempotency key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "BrowserSession": []
          }
        ],
        "description": "Same-origin renderer adapter. Cookie must belong to this one session. "
      },
      "servers": [
        {
          "url": "https://staticriot.dev"
        }
      ]
    },
    "/api/rgs/v1/browser/sessions/{sessionId}/rounds/{roundId}": {
      "parameters": [
        {
          "name": "sessionId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "format": "uuid"
          }
        },
        {
          "name": "roundId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "format": "uuid"
          }
        }
      ],
      "get": {
        "tags": [
          "Rounds"
        ],
        "operationId": "browserReplayRound",
        "description": "Same-origin renderer adapter. Cookie must belong to this one session. Read immutable original result. Does not sample, debit or credit again.",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RoundResult"
                }
              }
            }
          },
          "400": {
            "description": "Invalid JSON/input, pagination or idempotency key. Correct the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, revoked or inactive key/browser launch. Do not expose credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Origin denied. Partner requests belong on your backend.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No visible resource owned by this principal. A keyed receipt404 is not proof an earlier request cannot still settle.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Method not supported; inspect Allow.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Allow": {
                "description": "Supported HTTP methods.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Idempotency conflict or insufficient developer credits. Do not issue a new key for an uncertain wager.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Session expired/closed; new wagers unavailable. Settled receipt lookup/replay/safe duplicates remain available.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "JSON body exceeds the permitted byte limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Content-Type must be application/json with optional parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Evaluation-only environment/funds/currency.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate/daily quota exhausted; respect Retry-After and preserve the wager key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds until a retry is allowed; daily quotas reset at midnight UTC.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            }
          },
          "503": {
            "description": "Game or service unavailable; preserve the original wager key and reconcile.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "default": {
            "description": "Evaluation error; retry a timed-out wager with its original idempotency key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "BrowserSession": []
          }
        ]
      },
      "servers": [
        {
          "url": "https://staticriot.dev"
        }
      ]
    },
    "/api/rgs/v1/browser/sessions/{sessionId}/reconciliation": {
      "parameters": [
        {
          "name": "sessionId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "format": "uuid"
          }
        }
      ],
      "get": {
        "tags": [
          "Rounds"
        ],
        "operationId": "browserReconcileSession",
        "description": "Same-origin renderer adapter. Cookie must belong to this one session. Single-snapshot check of initial balance minus all debits plus all credits against current balance and round count.",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "sessionId": {
                      "type": "string"
                    },
                    "initialBalanceCents": {
                      "type": "integer"
                    },
                    "balanceCents": {
                      "type": "integer"
                    },
                    "completedRounds": {
                      "type": "integer"
                    },
                    "debitCents": {
                      "type": "integer"
                    },
                    "creditCents": {
                      "type": "integer"
                    },
                    "reconciled": {
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid JSON/input, pagination or idempotency key. Correct the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, revoked or inactive key/browser launch. Do not expose credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Origin denied. Partner requests belong on your backend.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No visible resource owned by this principal. A keyed receipt404 is not proof an earlier request cannot still settle.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Method not supported; inspect Allow.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Allow": {
                "description": "Supported HTTP methods.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Idempotency conflict or insufficient developer credits. Do not issue a new key for an uncertain wager.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Session expired/closed; new wagers unavailable. Settled receipt lookup/replay/safe duplicates remain available.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "JSON body exceeds the permitted byte limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Content-Type must be application/json with optional parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Evaluation-only environment/funds/currency.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate/daily quota exhausted; respect Retry-After and preserve the wager key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds until a retry is allowed; daily quotas reset at midnight UTC.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            }
          },
          "503": {
            "description": "Game or service unavailable; preserve the original wager key and reconcile.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "default": {
            "description": "Evaluation error; retry a timed-out wager with its original idempotency key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "BrowserSession": []
          }
        ]
      },
      "servers": [
        {
          "url": "https://staticriot.dev"
        }
      ]
    },
    "/sessions/{sessionId}/rounds/by-key": {
      "parameters": [
        {
          "name": "sessionId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "format": "uuid"
          }
        }
      ],
      "get": {
        "tags": [
          "Rounds"
        ],
        "operationId": "findRoundByKey",
        "description": "Read the exact settled receipt/result by its original idempotency key. Available after session close/expiry; owner-bound. No balance mutation.404 NOT_FOUND is not proof that an earlier request is no longer in flight; retry the original POST and key to resolve uncertainty.",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RoundResult"
                }
              }
            }
          },
          "400": {
            "description": "Invalid JSON/input, pagination or idempotency key. Correct the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, revoked or inactive key/browser launch. Do not expose credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Origin denied. Partner requests belong on your backend.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No visible resource owned by this principal. A keyed receipt404 is not proof an earlier request cannot still settle.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Method not supported; inspect Allow.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Allow": {
                "description": "Supported HTTP methods.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Idempotency conflict or insufficient developer credits. Do not issue a new key for an uncertain wager.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Session expired/closed; new wagers unavailable. Settled receipt lookup/replay/safe duplicates remain available.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "JSON body exceeds the permitted byte limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Content-Type must be application/json with optional parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Evaluation-only environment/funds/currency.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate/daily quota exhausted; respect Retry-After and preserve the wager key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds until a retry is allowed; daily quotas reset at midnight UTC.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            }
          },
          "503": {
            "description": "Game or service unavailable; preserve the original wager key and reconcile.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "default": {
            "description": "Evaluation error; retry a timed-out wager with its original idempotency key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 128,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:-]{15,127}$"
            },
            "description": "Original wager Idempotency-Key. Lookup is read-only and does not send a new wager; a404 means no settled receipt is currently visible and does not prove an in-flight wager cannot settle."
          }
        ]
      }
    },
    "/api/rgs/v1/browser/sessions/{sessionId}/rounds/by-key": {
      "parameters": [
        {
          "name": "sessionId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "format": "uuid"
          }
        }
      ],
      "get": {
        "tags": [
          "Rounds"
        ],
        "operationId": "browserFindRoundByKey",
        "description": "Read the exact settled receipt/result by its original idempotency key. Available after session close/expiry; owner-bound. No balance mutation.404 NOT_FOUND is not proof that an earlier request is no longer in flight; retry the original POST and key to resolve uncertainty.",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RoundResult"
                }
              }
            }
          },
          "400": {
            "description": "Invalid JSON/input, pagination or idempotency key. Correct the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Missing, revoked or inactive key/browser launch. Do not expose credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Origin denied. Partner requests belong on your backend.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "No visible resource owned by this principal. A keyed receipt404 is not proof an earlier request cannot still settle.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "405": {
            "description": "Method not supported; inspect Allow.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Allow": {
                "description": "Supported HTTP methods.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "Idempotency conflict or insufficient developer credits. Do not issue a new key for an uncertain wager.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Session expired/closed; new wagers unavailable. Settled receipt lookup/replay/safe duplicates remain available.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "JSON body exceeds the permitted byte limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Content-Type must be application/json with optional parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Evaluation-only environment/funds/currency.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate/daily quota exhausted; respect Retry-After and preserve the wager key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds until a retry is allowed; daily quotas reset at midnight UTC.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            }
          },
          "503": {
            "description": "Game or service unavailable; preserve the original wager key and reconcile.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "default": {
            "description": "Evaluation error; retry a timed-out wager with its original idempotency key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "BrowserSession": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 128,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:-]{15,127}$"
            },
            "description": "Original wager Idempotency-Key. Lookup is read-only and does not send a new wager; a404 means no settled receipt is currently visible and does not prove an in-flight wager cannot settle."
          }
        ]
      },
      "servers": [
        {
          "url": "https://staticriot.dev"
        }
      ]
    },
    "/api/v1/math": {
      "servers": [
        {
          "url": "https://staticriot.dev"
        }
      ],
      "get": {
        "tags": [
          "Developer Tools"
        ],
        "operationId": "getMath",
        "description": "Inspect the published frozen math model. Uses the same key and1000-call daily allowance as RGS requests; does not settle a wager.",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MathSpecification"
                }
              }
            }
          },
          "401": {
            "description": "Missing, revoked or inactive key/browser launch. Do not expose credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeveloperError"
                }
              }
            }
          },
          "405": {
            "description": "Method not supported; inspect Allow.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeveloperError"
                }
              }
            },
            "headers": {
              "Allow": {
                "description": "Supported HTTP methods.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "description": "Rate/daily quota exhausted; respect Retry-After and preserve the wager key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeveloperError"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds until a retry is allowed; daily quotas reset at midnight UTC.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            }
          },
          "503": {
            "description": "Game or service unavailable; preserve the original wager key and reconcile.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeveloperError"
                }
              }
            }
          },
          "default": {
            "description": "Developer-tool error; inspect HTTP status. This legacy format differs from RGS errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeveloperError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/simulate": {
      "servers": [
        {
          "url": "https://staticriot.dev"
        }
      ],
      "post": {
        "tags": [
          "Developer Tools"
        ],
        "operationId": "simulate",
        "description": "Sample1–5000 complete rounds in either game, using the actual stake. This does not debit/credit an RGS session, create receipts or provide idempotent wager semantics. A retry samples new independent outcomes. Highly volatile observed RTP can differ from98%.",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Simulation"
                }
              }
            }
          },
          "400": {
            "description": "Invalid JSON/input, pagination or idempotency key. Correct the request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeveloperError"
                }
              }
            }
          },
          "401": {
            "description": "Missing, revoked or inactive key/browser launch. Do not expose credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeveloperError"
                }
              }
            }
          },
          "405": {
            "description": "Method not supported; inspect Allow.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeveloperError"
                }
              }
            },
            "headers": {
              "Allow": {
                "description": "Supported HTTP methods.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "413": {
            "description": "JSON body exceeds the permitted byte limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeveloperError"
                }
              }
            }
          },
          "415": {
            "description": "Content-Type must be application/json with optional parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeveloperError"
                }
              }
            }
          },
          "429": {
            "description": "Rate/daily quota exhausted; respect Retry-After and preserve the wager key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeveloperError"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds until a retry is allowed; daily quotas reset at midnight UTC.",
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            }
          },
          "503": {
            "description": "Game or service unavailable; preserve the original wager key and reconcile.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeveloperError"
                }
              }
            }
          },
          "default": {
            "description": "Developer-tool error; inspect HTTP status. This legacy format differs from RGS errors.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeveloperError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SimulationRequest"
              },
              "examples": {
                "outlawBase": {
                  "value": {
                    "game": "outlaw",
                    "mode": "base",
                    "spins": 100,
                    "bet": 1
                  }
                },
                "draculaEpic": {
                  "value": {
                    "game": "dracula",
                    "mode": "bonus",
                    "tier": "epic",
                    "spins": 100,
                    "bet": 1
                  }
                },
                "featureBet": {
                  "value": {
                    "game": "outlaw",
                    "mode": "base",
                    "hunt": true,
                    "spins": 100,
                    "bet": 1
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/wallet-lab/runs": {
      "servers": [
        {
          "url": "https://staticriot.dev"
        }
      ],
      "get": {
        "tags": [
          "Console Wallet Lab"
        ],
        "operationId": "listWalletLabRuns",
        "description": "List recent runs owned by the signed-in developer. No execution occurs on GET.",
        "security": [
          {
            "AccountSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Saved private wallet-lab run or results.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "runs"
                  ],
                  "properties": {
                    "runs": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/WalletLabRun"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Structured console-lab error. Correct validation/auth failures; retain the run/idempotency key for transient failures.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletLabError"
                }
              }
            }
          },
          "401": {
            "description": "Structured console-lab error. Correct validation/auth failures; retain the run/idempotency key for transient failures.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletLabError"
                }
              }
            }
          },
          "403": {
            "description": "Structured console-lab error. Correct validation/auth failures; retain the run/idempotency key for transient failures.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletLabError"
                }
              }
            }
          },
          "404": {
            "description": "Structured console-lab error. Correct validation/auth failures; retain the run/idempotency key for transient failures.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletLabError"
                }
              }
            }
          },
          "405": {
            "description": "Structured console-lab error. Correct validation/auth failures; retain the run/idempotency key for transient failures.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletLabError"
                }
              }
            }
          },
          "409": {
            "description": "Structured console-lab error. Correct validation/auth failures; retain the run/idempotency key for transient failures.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletLabError"
                }
              }
            }
          },
          "413": {
            "description": "Structured console-lab error. Correct validation/auth failures; retain the run/idempotency key for transient failures.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletLabError"
                }
              }
            }
          },
          "415": {
            "description": "Structured console-lab error. Correct validation/auth failures; retain the run/idempotency key for transient failures.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletLabError"
                }
              }
            }
          },
          "429": {
            "description": "Structured console-lab error. Correct validation/auth failures; retain the run/idempotency key for transient failures.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletLabError"
                }
              }
            }
          },
          "503": {
            "description": "Structured console-lab error. Correct validation/auth failures; retain the run/idempotency key for transient failures.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletLabError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Console Wallet Lab"
        ],
        "operationId": "createWalletLabRun",
        "description": "Create an isolated hosted mock-transport run. Maximum ten new runs per developer per rolling day; one active run per developer. No financial balance is modified.",
        "security": [
          {
            "AccountSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Idempotent or active run reused.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "run"
                  ],
                  "properties": {
                    "run": {
                      "$ref": "#/components/schemas/WalletLabRun"
                    },
                    "reused": {
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          },
          "201": {
            "description": "Saved private wallet-lab run or results.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "run"
                  ],
                  "properties": {
                    "run": {
                      "$ref": "#/components/schemas/WalletLabRun"
                    },
                    "reused": {
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Structured console-lab error. Correct validation/auth failures; retain the run/idempotency key for transient failures.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletLabError"
                }
              }
            }
          },
          "401": {
            "description": "Structured console-lab error. Correct validation/auth failures; retain the run/idempotency key for transient failures.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletLabError"
                }
              }
            }
          },
          "403": {
            "description": "Structured console-lab error. Correct validation/auth failures; retain the run/idempotency key for transient failures.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletLabError"
                }
              }
            }
          },
          "404": {
            "description": "Structured console-lab error. Correct validation/auth failures; retain the run/idempotency key for transient failures.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletLabError"
                }
              }
            }
          },
          "405": {
            "description": "Structured console-lab error. Correct validation/auth failures; retain the run/idempotency key for transient failures.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletLabError"
                }
              }
            }
          },
          "409": {
            "description": "Structured console-lab error. Correct validation/auth failures; retain the run/idempotency key for transient failures.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletLabError"
                }
              }
            }
          },
          "413": {
            "description": "Structured console-lab error. Correct validation/auth failures; retain the run/idempotency key for transient failures.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletLabError"
                }
              }
            }
          },
          "415": {
            "description": "Structured console-lab error. Correct validation/auth failures; retain the run/idempotency key for transient failures.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletLabError"
                }
              }
            }
          },
          "429": {
            "description": "Structured console-lab error. Correct validation/auth failures; retain the run/idempotency key for transient failures.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletLabError"
                }
              }
            }
          },
          "503": {
            "description": "Structured console-lab error. Correct validation/auth failures; retain the run/idempotency key for transient failures.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletLabError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "game"
                ],
                "properties": {
                  "game": {
                    "type": "string",
                    "enum": [
                      "both",
                      "outlaw",
                      "dracula"
                    ]
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "description": "Fresh UUID for a new run; retain exactly on retry.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/api/wallet-lab/runs/{runId}": {
      "servers": [
        {
          "url": "https://staticriot.dev"
        }
      ],
      "parameters": [
        {
          "name": "runId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "format": "uuid"
          }
        }
      ],
      "get": {
        "tags": [
          "Console Wallet Lab"
        ],
        "operationId": "getWalletLabRun",
        "description": "Read saved private results and progress without executing cases.",
        "security": [
          {
            "AccountSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Saved private wallet-lab run or results.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "run"
                  ],
                  "properties": {
                    "run": {
                      "$ref": "#/components/schemas/WalletLabRun"
                    },
                    "reused": {
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Structured console-lab error. Correct validation/auth failures; retain the run/idempotency key for transient failures.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletLabError"
                }
              }
            }
          },
          "401": {
            "description": "Structured console-lab error. Correct validation/auth failures; retain the run/idempotency key for transient failures.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletLabError"
                }
              }
            }
          },
          "403": {
            "description": "Structured console-lab error. Correct validation/auth failures; retain the run/idempotency key for transient failures.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletLabError"
                }
              }
            }
          },
          "404": {
            "description": "Structured console-lab error. Correct validation/auth failures; retain the run/idempotency key for transient failures.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletLabError"
                }
              }
            }
          },
          "405": {
            "description": "Structured console-lab error. Correct validation/auth failures; retain the run/idempotency key for transient failures.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletLabError"
                }
              }
            }
          },
          "409": {
            "description": "Structured console-lab error. Correct validation/auth failures; retain the run/idempotency key for transient failures.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletLabError"
                }
              }
            }
          },
          "413": {
            "description": "Structured console-lab error. Correct validation/auth failures; retain the run/idempotency key for transient failures.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletLabError"
                }
              }
            }
          },
          "415": {
            "description": "Structured console-lab error. Correct validation/auth failures; retain the run/idempotency key for transient failures.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletLabError"
                }
              }
            }
          },
          "429": {
            "description": "Structured console-lab error. Correct validation/auth failures; retain the run/idempotency key for transient failures.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletLabError"
                }
              }
            }
          },
          "503": {
            "description": "Structured console-lab error. Correct validation/auth failures; retain the run/idempotency key for transient failures.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletLabError"
                }
              }
            }
          }
        }
      }
    },
    "/api/wallet-lab/runs/{runId}/advance": {
      "servers": [
        {
          "url": "https://staticriot.dev"
        }
      ],
      "parameters": [
        {
          "name": "runId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "format": "uuid"
          }
        }
      ],
      "post": {
        "tags": [
          "Console Wallet Lab"
        ],
        "operationId": "advanceWalletLabRun",
        "description": "Execute and save one bounded hosted test step. Concurrent advances use compare-and-swap; terminal reports remain immutable.",
        "security": [
          {
            "AccountSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Saved private wallet-lab run or results.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "run"
                  ],
                  "properties": {
                    "run": {
                      "$ref": "#/components/schemas/WalletLabRun"
                    },
                    "reused": {
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Structured console-lab error. Correct validation/auth failures; retain the run/idempotency key for transient failures.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletLabError"
                }
              }
            }
          },
          "401": {
            "description": "Structured console-lab error. Correct validation/auth failures; retain the run/idempotency key for transient failures.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletLabError"
                }
              }
            }
          },
          "403": {
            "description": "Structured console-lab error. Correct validation/auth failures; retain the run/idempotency key for transient failures.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletLabError"
                }
              }
            }
          },
          "404": {
            "description": "Structured console-lab error. Correct validation/auth failures; retain the run/idempotency key for transient failures.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletLabError"
                }
              }
            }
          },
          "405": {
            "description": "Structured console-lab error. Correct validation/auth failures; retain the run/idempotency key for transient failures.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletLabError"
                }
              }
            }
          },
          "409": {
            "description": "Structured console-lab error. Correct validation/auth failures; retain the run/idempotency key for transient failures.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletLabError"
                }
              }
            }
          },
          "413": {
            "description": "Structured console-lab error. Correct validation/auth failures; retain the run/idempotency key for transient failures.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletLabError"
                }
              }
            }
          },
          "415": {
            "description": "Structured console-lab error. Correct validation/auth failures; retain the run/idempotency key for transient failures.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletLabError"
                }
              }
            }
          },
          "429": {
            "description": "Structured console-lab error. Correct validation/auth failures; retain the run/idempotency key for transient failures.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletLabError"
                }
              }
            }
          },
          "503": {
            "description": "Structured console-lab error. Correct validation/auth failures; retain the run/idempotency key for transient failures.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletLabError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/wallet-lab/reports": {
      "get": {
        "tags": [
          "Saved wallet reports"
        ],
        "operationId": "listSavedWalletReports",
        "summary": "List your account-saved report summaries",
        "description": "Owner-only read; no wallet execution. Available after Developer Tools expiry.",
        "security": [
          {
            "AccountSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Report result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "reports"
                  ],
                  "properties": {
                    "reports": {
                      "type": "array",
                      "maxItems": 200,
                      "items": {
                        "$ref": "#/components/schemas/SavedWalletReportSummary"
                      }
                    }
                  }
                }
              }
            }
          },
          "default": {
            "description": "Structured error. 401 sign in;403 entitlement/origin;404 absent ownership or invalid/expired/revoked capability;409 immutable snapshot conflict;413 body limit;429 quota;503 unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletLabError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Saved wallet reports"
        ],
        "operationId": "saveWalletReport",
        "summary": "Save a terminal browser-observed snapshot",
        "description": "Same-origin Origin and active Developer Tools access required.512KiB body limit. Server removes connection secrets/identity, validates accounting consistency and computes immutable normalized hash. Exact owner/run duplicate reuses report; changed snapshot conflicts. This is browser evidence, not independently verified wallet execution.",
        "security": [
          {
            "AccountSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Report result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "report"
                  ],
                  "properties": {
                    "report": {
                      "$ref": "#/components/schemas/SavedWalletReport"
                    },
                    "reused": {
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          },
          "201": {
            "description": "New saved report",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "report"
                  ],
                  "properties": {
                    "report": {
                      "$ref": "#/components/schemas/SavedWalletReport"
                    },
                    "reused": {
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          },
          "default": {
            "description": "Structured error. 401 sign in;403 entitlement/origin;404 absent ownership or invalid/expired/revoked capability;409 immutable snapshot conflict;413 body limit;429 quota;503 unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletLabError"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WalletReportUpload"
              }
            }
          }
        }
      }
    },
    "/api/wallet-lab/reports/{reportId}": {
      "get": {
        "tags": [
          "Saved wallet reports"
        ],
        "operationId": "getSavedWalletReport",
        "summary": "Read your immutable report",
        "description": "Owner-only read; no transactions or credentials needed. Another account sees404.",
        "security": [
          {
            "AccountSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Report result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "report"
                  ],
                  "properties": {
                    "report": {
                      "$ref": "#/components/schemas/SavedWalletReport"
                    }
                  }
                }
              }
            }
          },
          "default": {
            "description": "Structured error. 401 sign in;403 entitlement/origin;404 absent ownership or invalid/expired/revoked capability;409 immutable snapshot conflict;413 body limit;429 quota;503 unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletLabError"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "reportId",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      }
    },
    "/api/wallet-lab/reports/{reportId}/shares": {
      "get": {
        "tags": [
          "Saved wallet reports"
        ],
        "operationId": "listWalletReportShares",
        "summary": "List share status and expiry",
        "description": "Owner-only metadata; raw share tokens/URLs are not returned again.",
        "security": [
          {
            "AccountSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Report result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "shares"
                  ],
                  "properties": {
                    "shares": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/SavedWalletShare"
                      }
                    }
                  }
                }
              }
            }
          },
          "default": {
            "description": "Structured error. 401 sign in;403 entitlement/origin;404 absent ownership or invalid/expired/revoked capability;409 immutable snapshot conflict;413 body limit;429 quota;503 unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletLabError"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "reportId",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      },
      "post": {
        "tags": [
          "Saved wallet reports"
        ],
        "operationId": "shareWalletReport",
        "summary": "Create an expiring read-only share link",
        "description": "Same-origin Origin and active Developer Tools access required. Anyone holding the fragment capability can read the redacted report until expiry/revocation. Raw token returned once; only a hash is stored. Share creation is not automatically retried.",
        "security": [
          {
            "AccountSession": []
          }
        ],
        "responses": {
          "201": {
            "description": "Report result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "share"
                  ],
                  "properties": {
                    "share": {
                      "type": "object",
                      "required": [
                        "id",
                        "url",
                        "createdAt",
                        "expiresAt"
                      ],
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "url": {
                          "type": "string"
                        },
                        "createdAt": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "expiresAt": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "default": {
            "description": "Structured error. 401 sign in;403 entitlement/origin;404 absent ownership or invalid/expired/revoked capability;409 immutable snapshot conflict;413 body limit;429 quota;503 unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletLabError"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "reportId",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "expiresInDays"
                ],
                "properties": {
                  "expiresInDays": {
                    "enum": [
                      7,
                      30,
                      90
                    ]
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/wallet-lab/reports/{reportId}/shares/{shareId}/revoke": {
      "post": {
        "tags": [
          "Saved wallet reports"
        ],
        "operationId": "revokeWalletReportShare",
        "summary": "Revoke a share link",
        "description": "Same-origin Origin and owner session required. Safe to repeat. Available after Developer Tools expiry; blocks future public reads.",
        "security": [
          {
            "AccountSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Report result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "share"
                  ],
                  "properties": {
                    "share": {
                      "$ref": "#/components/schemas/SavedWalletShare"
                    }
                  }
                }
              }
            }
          },
          "default": {
            "description": "Structured error. 401 sign in;403 entitlement/origin;404 absent ownership or invalid/expired/revoked capability;409 immutable snapshot conflict;413 body limit;429 quota;503 unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletLabError"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "reportId",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "in": "path",
            "name": "shareId",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "maxProperties": 0
              }
            }
          }
        }
      }
    },
    "/api/wallet-lab/shared-reports": {
      "get": {
        "tags": [
          "Saved wallet reports"
        ],
        "operationId": "readSharedWalletReport",
        "summary": "Read a shared sandbox report",
        "description": "Read-only capability. Token is carried in a header, never a query/path. Unknown, revoked, expired and suspended-owner links return404. Response is no-store and excludes owner identity, endpoint, player ID and credentials.",
        "security": [
          {
            "WalletReportCapability": []
          }
        ],
        "responses": {
          "200": {
            "description": "Report result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "report"
                  ],
                  "properties": {
                    "report": {
                      "$ref": "#/components/schemas/SavedWalletReport"
                    }
                  }
                }
              }
            }
          },
          "default": {
            "description": "Structured error. 401 sign in;403 entitlement/origin;404 absent ownership or invalid/expired/revoked capability;409 immutable snapshot conflict;413 body limit;429 quota;503 unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletLabError"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "SandboxKey": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "sr_sandbox_…",
        "description": "Active developer key; subscription or an administrator grant required. Never embed in a game URL or browser source."
      },
      "BrowserSession": {
        "type": "apiKey",
        "in": "cookie",
        "name": "sr_rgs",
        "description": "HttpOnly session-bound browser cookie set only by a successful single-use launch exchange. Never use this as a partner server API credential."
      },
      "AccountSession": {
        "type": "apiKey",
        "in": "cookie",
        "name": "sr_session",
        "description": "Signed-in Static Riot website account with active Developer Tools access. Same-origin Origin required for POST. Developer Bearer keys are not accepted on console wallet-lab routes."
      },
      "WalletReportCapability": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Wallet-Report-Token",
        "description": "256-bit base64url capability from wallet-report.html URL fragment. No account session needed; report is read-only, redacted and expires/revocable."
      }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "required": [
          "error",
          "environment"
        ],
        "properties": {
          "environment": {
            "const": "sandbox"
          },
          "error": {
            "type": "object",
            "required": [
              "code",
              "message"
            ],
            "properties": {
              "code": {
                "type": "string"
              },
              "message": {
                "type": "string"
              }
            }
          }
        }
      },
      "CreateSession": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "game",
          "currency",
          "environment",
          "funds"
        ],
        "properties": {
          "game": {
            "type": "string",
            "enum": [
              "outlaw",
              "dracula",
              "poseidon"
            ]
          },
          "currency": {
            "const": "EUR"
          },
          "environment": {
            "const": "sandbox"
          },
          "funds": {
            "const": "developer_credits"
          }
        }
      },
      "Wager": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "mode",
          "betCents"
        ],
        "properties": {
          "mode": {
            "type": "string",
            "enum": [
              "base",
              "hunt",
              "first",
              "second",
              "epic"
            ],
            "description": "Costs in selected base-bet units: 1 / 3 / 120 / 240 / 1000."
          },
          "betCents": {
            "type": "integer",
            "minimum": 5,
            "maximum": 40000,
            "description": "Selected base bet, before feature/buy multiplier; integer EUR cents."
          }
        },
        "description": "Poseidon accepts base, hunt, first and second modes and the bet values listed in its game catalogue. Epic mode is available only for the legacy games."
      },
      "Session": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "game": {
            "type": "string",
            "enum": [
              "outlaw",
              "dracula",
              "poseidon"
            ]
          },
          "environment": {
            "const": "sandbox"
          },
          "funds": {
            "const": "developer_credits"
          },
          "currency": {
            "const": "EUR"
          },
          "redeemable": {
            "const": false
          },
          "initialBalanceCents": {
            "type": "integer",
            "const": 100000000
          },
          "balanceCents": {
            "type": "integer",
            "minimum": 0
          },
          "completedRounds": {
            "type": "integer",
            "minimum": 0
          },
          "createdAt": {
            "type": "integer"
          },
          "expiresAt": {
            "type": "integer"
          },
          "closedAt": {
            "type": [
              "integer",
              "null"
            ]
          },
          "active": {
            "type": "boolean"
          },
          "noAutomaticRefill": {
            "const": true
          }
        },
        "required": [
          "id",
          "game",
          "environment",
          "funds",
          "currency",
          "redeemable",
          "initialBalanceCents",
          "balanceCents",
          "completedRounds",
          "createdAt",
          "expiresAt",
          "closedAt",
          "active",
          "noAutomaticRefill"
        ]
      },
      "Receipt": {
        "type": "object",
        "required": [
          "id",
          "sessionId",
          "sequence",
          "state",
          "mode",
          "betCents",
          "debitCents",
          "creditCents",
          "balanceBeforeCents",
          "balanceAfterCents",
          "resultHash",
          "createdAt",
          "model",
          "environment",
          "funds",
          "currency",
          "redeemable"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "sessionId": {
            "type": "string",
            "format": "uuid"
          },
          "sequence": {
            "type": "integer",
            "minimum": 1
          },
          "state": {
            "const": "settled"
          },
          "mode": {
            "type": "string",
            "enum": [
              "base",
              "hunt",
              "first",
              "second",
              "epic"
            ]
          },
          "betCents": {
            "type": "integer",
            "minimum": 5,
            "maximum": 40000
          },
          "debitCents": {
            "type": "integer",
            "minimum": 5
          },
          "creditCents": {
            "type": "integer",
            "minimum": 0
          },
          "balanceBeforeCents": {
            "type": "integer",
            "minimum": 0
          },
          "balanceAfterCents": {
            "type": "integer",
            "minimum": 0
          },
          "resultHash": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$",
            "description": "SHA-256 of exact JSON.stringify(result) UTF-8 bytes."
          },
          "createdAt": {
            "type": "integer"
          },
          "model": {
            "type": "string"
          },
          "environment": {
            "const": "sandbox"
          },
          "funds": {
            "const": "developer_credits"
          },
          "currency": {
            "const": "EUR"
          },
          "redeemable": {
            "const": false
          }
        }
      },
      "RoundResult": {
        "type": "object",
        "required": [
          "receipt",
          "result"
        ],
        "properties": {
          "receipt": {
            "$ref": "#/components/schemas/Receipt"
          },
          "result": {
            "type": "object",
            "additionalProperties": true,
            "description": "Server-authoritative settled result. Legacy games use their cascading cluster model; Poseidon uses its versioned 5×4 payline model. The receipt identifies the model, cents and result hash."
          }
        }
      },
      "Game": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/LegacyGame"
          },
          {
            "$ref": "#/components/schemas/PoseidonGame"
          }
        ]
      },
      "DeveloperError": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "string"
          }
        },
        "description": "Legacy developer tools error format; RGS errors instead contain error.code and error.message."
      },
      "SimulationRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "game": {
            "type": "string",
            "enum": [
              "outlaw",
              "dracula"
            ],
            "default": "outlaw"
          },
          "mode": {
            "type": "string",
            "enum": [
              "base",
              "bonus"
            ],
            "default": "base"
          },
          "tier": {
            "type": "string",
            "enum": [
              "first",
              "second",
              "epic"
            ],
            "default": "first",
            "description": "Valid in Base input but only affects Bonus mode."
          },
          "hunt": {
            "type": "boolean",
            "default": false,
            "description": "May only be true with mode=base; raises natural trigger chance fivefold for a3x total stake."
          },
          "spins": {
            "type": "integer",
            "minimum": 1,
            "maximum": 5000,
            "default": 100,
            "description": "Complete rounds, including each entire bonus."
          },
          "bet": {
            "type": "number",
            "minimum": 0.05,
            "maximum": 400,
            "multipleOf": 0.01,
            "default": 1,
            "description": "Selected base bet in EUR units, NOT integer cents. JSON strings are not accepted."
          }
        },
        "allOf": [
          {
            "if": {
              "required": [
                "mode"
              ],
              "properties": {
                "mode": {
                  "const": "bonus"
                }
              }
            },
            "then": {
              "properties": {
                "hunt": {
                  "const": false
                }
              }
            }
          }
        ]
      },
      "Simulation": {
        "type": "object",
        "required": [
          "baseBet",
          "completeRoundCap",
          "minimumBonusPrize",
          "totalWager",
          "totalWin",
          "observedRtp",
          "hitRate",
          "maxWin",
          "model",
          "targetRtp",
          "certified",
          "currency",
          "game",
          "mode",
          "spins",
          "minimumBonusRule",
          "bonusTriggers",
          "warning"
        ],
        "properties": {
          "baseBet": {
            "type": "number"
          },
          "completeRoundCap": {
            "type": "number"
          },
          "minimumBonusPrize": {
            "type": "number"
          },
          "totalWager": {
            "type": "number"
          },
          "totalWin": {
            "type": "number"
          },
          "observedRtp": {
            "type": "number"
          },
          "hitRate": {
            "type": "number"
          },
          "maxWin": {
            "type": "number"
          },
          "model": {
            "type": "string"
          },
          "targetRtp": {
            "const": 98
          },
          "certified": {
            "const": false
          },
          "currency": {
            "const": "EUR"
          },
          "game": {
            "type": "string",
            "enum": [
              "outlaw",
              "dracula"
            ]
          },
          "mode": {
            "type": "string",
            "enum": [
              "base",
              "bonus"
            ]
          },
          "tier": {
            "type": "string",
            "enum": [
              "first",
              "second",
              "epic"
            ]
          },
          "spins": {
            "type": "integer",
            "minimum": 1
          },
          "hunt": {
            "type": "boolean"
          },
          "minimumBonusRule": {
            "type": "string"
          },
          "bonusTriggers": {
            "type": "integer",
            "minimum": 0
          },
          "warning": {
            "type": "string"
          }
        },
        "description": "Independent sample only; no session, receipt, persistent balance settlement or idempotent wager. Observed RTP is not the long-run RTP or certification proof."
      },
      "MathSpecification": {
        "type": "object",
        "required": [
          "model",
          "targetRtp",
          "certified",
          "math",
          "bonusTiers",
          "bonusNames",
          "games",
          "source",
          "warning"
        ],
        "properties": {
          "model": {
            "type": "string"
          },
          "targetRtp": {
            "const": 98
          },
          "certified": {
            "const": false
          },
          "math": {
            "type": "object",
            "additionalProperties": true
          },
          "bonusTiers": {
            "type": "object",
            "additionalProperties": true
          },
          "bonusNames": {
            "type": "object",
            "required": [
              "outlaw",
              "dracula"
            ],
            "additionalProperties": true
          },
          "games": {
            "type": "object",
            "required": [
              "outlaw",
              "dracula"
            ],
            "additionalProperties": true
          },
          "source": {
            "type": "string"
          },
          "warning": {
            "type": "string"
          }
        },
        "additionalProperties": true,
        "description": "Full frozen model and paytables, symbol factors, coins/pots/multipliers, feature rules, limits and both games. Publishable uncertified prototype."
      },
      "WalletLabCase": {
        "type": "object",
        "required": [
          "id",
          "name",
          "game",
          "status",
          "assertions"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "game": {
            "type": "string",
            "enum": [
              "outlaw",
              "dracula",
              "both"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "passed",
              "failed"
            ]
          },
          "assertions": {
            "type": "integer",
            "minimum": 0
          },
          "durationMs": {
            "type": "number",
            "minimum": 0
          },
          "error": {
            "type": [
              "string",
              "null"
            ]
          },
          "summary": {
            "type": [
              "object",
              "string",
              "null"
            ]
          },
          "transactions": {
            "type": "array",
            "items": {
              "type": "object"
            }
          }
        }
      },
      "WalletLabRun": {
        "type": "object",
        "required": [
          "id",
          "status",
          "game",
          "games",
          "createdAt",
          "totalCases",
          "completedCases",
          "checksPassed",
          "checksFailed",
          "cases",
          "environment",
          "funds",
          "redeemable",
          "currency",
          "model",
          "targetRtpPercent",
          "scope"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "type": "string",
            "enum": [
              "running",
              "passed",
              "failed"
            ]
          },
          "game": {
            "type": "string",
            "enum": [
              "both",
              "outlaw",
              "dracula"
            ]
          },
          "games": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "outlaw",
                "dracula"
              ]
            }
          },
          "createdAt": {
            "type": "integer"
          },
          "completedAt": {
            "type": [
              "integer",
              "null"
            ]
          },
          "totalCases": {
            "type": "integer",
            "minimum": 1
          },
          "completedCases": {
            "type": "integer",
            "minimum": 0
          },
          "checksPassed": {
            "type": "integer",
            "minimum": 0
          },
          "checksFailed": {
            "type": "integer",
            "minimum": 0
          },
          "cases": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WalletLabCase"
            }
          },
          "environment": {
            "const": "sandbox"
          },
          "funds": {
            "const": "mock_credits"
          },
          "redeemable": {
            "const": false
          },
          "currency": {
            "const": "EUR"
          },
          "model": {
            "type": "string"
          },
          "targetRtpPercent": {
            "const": 98
          },
          "scope": {
            "const": "hosted_mock_transport"
          },
          "localSuiteUrl": {
            "type": "string"
          }
        }
      },
      "WalletLabError": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "object",
            "required": [
              "code",
              "message"
            ],
            "properties": {
              "code": {
                "type": "string"
              },
              "message": {
                "type": "string"
              }
            }
          }
        }
      },
      "SavedWalletReceipt": {
        "type": "object",
        "required": [
          "operation",
          "transactionId",
          "roundId",
          "currency",
          "amountCents",
          "status",
          "balanceBeforeCents",
          "balanceCents"
        ],
        "properties": {
          "operation": {
            "enum": [
              "debit",
              "credit",
              "rollback"
            ]
          },
          "transactionId": {
            "type": "string"
          },
          "roundId": {
            "type": "string"
          },
          "currency": {
            "const": "EUR"
          },
          "amountCents": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "referenceTransactionId": {
            "type": "string"
          },
          "status": {
            "enum": [
              "succeeded",
              "rejected"
            ]
          },
          "balanceBeforeCents": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "balanceCents": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "refundedCents": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "code": {
            "type": "string"
          }
        }
      },
      "SavedWalletPlan": {
        "type": "object",
        "required": [
          "roundId",
          "game",
          "mode",
          "betCents",
          "debitCents",
          "creditCents",
          "model",
          "resultHash"
        ],
        "properties": {
          "roundId": {
            "type": "string"
          },
          "game": {
            "enum": [
              "outlaw",
              "dracula"
            ]
          },
          "mode": {
            "enum": [
              "base",
              "hunt",
              "first",
              "second",
              "epic"
            ]
          },
          "betCents": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "debitCents": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "creditCents": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "model": {
            "type": "string"
          },
          "resultHash": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "spins": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "spinCredits": {
            "type": "array",
            "items": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            }
          },
          "transactions": {
            "type": "object",
            "required": [
              "debit",
              "credit",
              "rollback"
            ],
            "properties": {
              "debit": {
                "type": "string"
              },
              "credit": {
                "type": "string"
              },
              "rollback": {
                "type": "string"
              }
            }
          },
          "visiblePayout": {
            "type": "object"
          }
        }
      },
      "SavedWalletCase": {
        "type": "object",
        "required": [
          "id",
          "name",
          "game",
          "status",
          "receipts",
          "assertions"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "game": {
            "enum": [
              "outlaw",
              "dracula"
            ]
          },
          "mode": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "betCents": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "status": {
            "enum": [
              "pending",
              "running",
              "passed",
              "failed"
            ]
          },
          "step": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "plan": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/SavedWalletPlan"
              },
              {
                "type": "null"
              }
            ]
          },
          "receipts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SavedWalletReceipt"
            }
          },
          "operationAttempts": {
            "type": "object"
          },
          "assertions": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "name",
                "passed"
              ],
              "properties": {
                "name": {
                  "type": "string"
                },
                "passed": {
                  "type": "boolean"
                }
              }
            }
          },
          "error": {
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  }
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "startedAt": {
            "type": [
              "string",
              "null"
            ]
          },
          "completedAt": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "SavedWalletReportSummary": {
        "type": "object",
        "required": [
          "id",
          "runId",
          "game",
          "status",
          "createdAt",
          "reportHash"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "runId": {
            "type": "string",
            "format": "uuid"
          },
          "game": {
            "enum": [
              "both",
              "outlaw",
              "dracula"
            ]
          },
          "status": {
            "enum": [
              "complete",
              "failed",
              "review"
            ]
          },
          "createdAt": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "reportHash": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "scope": {
            "const": "browser_observed"
          },
          "certified": {
            "const": false
          },
          "totalCases": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "completedCases": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "casesPassed": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "casesFailed": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "checksPassed": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "checksFailed": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "operations": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "unresolved": {
            "type": "boolean"
          }
        }
      },
      "SavedWalletReport": {
        "type": "object",
        "required": [
          "id",
          "runId",
          "game",
          "status",
          "createdAt",
          "reportHash",
          "scope",
          "certified",
          "currency",
          "funds",
          "redeemable",
          "cases"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "runId": {
            "type": "string",
            "format": "uuid"
          },
          "game": {
            "enum": [
              "both",
              "outlaw",
              "dracula"
            ]
          },
          "status": {
            "enum": [
              "complete",
              "failed",
              "review"
            ]
          },
          "createdAt": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "reportHash": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "scope": {
            "const": "browser_observed"
          },
          "certified": {
            "const": false
          },
          "totalCases": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "completedCases": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "casesPassed": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "casesFailed": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "checksPassed": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "checksFailed": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "operations": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "unresolved": {
            "type": "boolean"
          },
          "version": {
            "type": "string"
          },
          "protocol": {
            "const": "static-riot-sandbox-wallet-v1"
          },
          "model": {
            "type": "string"
          },
          "targetRtpPercent": {
            "const": 98
          },
          "currency": {
            "const": "EUR"
          },
          "funds": {
            "const": "test_credits"
          },
          "redeemable": {
            "const": false
          },
          "initialBalanceCents": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "balanceCents": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "startedAt": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string"
          },
          "completedAt": {
            "type": [
              "string",
              "null"
            ]
          },
          "error": {
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  }
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "reconciliation": {
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "expectedBalanceCents",
                  "walletBalanceCents",
                  "passed",
                  "checkedAt"
                ],
                "properties": {
                  "expectedBalanceCents": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "walletBalanceCents": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "passed": {
                    "type": "boolean"
                  },
                  "checkedAt": {
                    "type": "string"
                  }
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "cases": {
            "type": "array",
            "maxItems": 26,
            "items": {
              "$ref": "#/components/schemas/SavedWalletCase"
            }
          }
        }
      },
      "SavedWalletShare": {
        "type": "object",
        "required": [
          "id",
          "createdAt",
          "expiresAt"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "createdAt": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "expiresAt": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "revokedAt": {
            "type": [
              "integer",
              "null"
            ]
          },
          "status": {
            "enum": [
              "active",
              "expired",
              "revoked"
            ]
          }
        }
      },
      "WalletReportUpload": {
        "type": "object",
        "required": [
          "run"
        ],
        "properties": {
          "run": {
            "type": "object",
            "required": [
              "id",
              "version",
              "protocol",
              "model",
              "game",
              "status",
              "currency",
              "initialBalanceCents",
              "balanceCents",
              "cases",
              "startedAt",
              "updatedAt",
              "targetRtp"
            ],
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "version": {
                "const": "external-wallet-browser-v1"
              },
              "protocol": {
                "const": "static-riot-sandbox-wallet-v1"
              },
              "model": {
                "type": "string"
              },
              "game": {
                "enum": [
                  "both",
                  "outlaw",
                  "dracula"
                ]
              },
              "status": {
                "enum": [
                  "complete",
                  "failed",
                  "review"
                ]
              },
              "currency": {
                "const": "EUR"
              },
              "initialBalanceCents": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "balanceCents": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "cursor": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "startedAt": {
                "type": "string"
              },
              "updatedAt": {
                "type": "string"
              },
              "completedAt": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "cases": {
                "type": "array",
                "maxItems": 26,
                "items": {
                  "type": "object"
                }
              },
              "reconciliation": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "error": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "targetRtp": {
                "const": 0.98
              }
            }
          }
        }
      },
      "LegacyGame": {
        "type": "object",
        "required": [
          "id",
          "name",
          "enabled",
          "columns",
          "rows",
          "mechanic",
          "bonusNames",
          "bonusTiers",
          "minBetCents",
          "maxBetCents",
          "maxWinBaseBet",
          "naturalBonusProbability",
          "huntBonusProbability",
          "huntCostBaseBet"
        ],
        "properties": {
          "id": {
            "type": "string",
            "enum": [
              "outlaw",
              "dracula"
            ]
          },
          "name": {
            "type": "string"
          },
          "enabled": {
            "type": "boolean"
          },
          "columns": {
            "const": 6
          },
          "rows": {
            "const": 5
          },
          "mechanic": {
            "type": "string"
          },
          "bonusNames": {
            "type": "object",
            "required": [
              "first",
              "second",
              "epic"
            ],
            "additionalProperties": {
              "type": "string"
            }
          },
          "bonusTiers": {
            "type": "object",
            "required": [
              "first",
              "second",
              "epic"
            ],
            "additionalProperties": true
          },
          "minBetCents": {
            "const": 5
          },
          "maxBetCents": {
            "const": 40000
          },
          "maxWinBaseBet": {
            "const": 10000
          },
          "naturalBonusProbability": {
            "const": 0.00390625
          },
          "huntBonusProbability": {
            "const": 0.01953125
          },
          "huntCostBaseBet": {
            "const": 3
          }
        }
      },
      "PoseidonGame": {
        "type": "object",
        "required": [
          "id",
          "name",
          "enabled",
          "columns",
          "rows",
          "mechanic",
          "bonusNames",
          "bonusTiers",
          "minBetCents",
          "maxBetCents",
          "maxWinBaseBet",
          "naturalBonusProbability",
          "huntBonusProbability",
          "huntCostBaseBet",
          "model",
          "permittedBetsCents",
          "rtpPercent",
          "certified"
        ],
        "properties": {
          "id": {
            "const": "poseidon"
          },
          "name": {
            "type": "string"
          },
          "enabled": {
            "type": "boolean"
          },
          "columns": {
            "const": 5
          },
          "rows": {
            "const": 4
          },
          "mechanic": {
            "type": "string"
          },
          "bonusNames": {
            "type": "object",
            "required": [
              "first",
              "second"
            ],
            "properties": {
              "first": {
                "type": "string"
              },
              "second": {
                "type": "string"
              }
            }
          },
          "bonusTiers": {
            "type": "object",
            "required": [
              "first",
              "second"
            ],
            "properties": {
              "first": {
                "$ref": "#/components/schemas/PoseidonBonus"
              },
              "second": {
                "$ref": "#/components/schemas/PoseidonBonus"
              }
            }
          },
          "minBetCents": {
            "const": 5
          },
          "maxBetCents": {
            "const": 40000
          },
          "maxWinBaseBet": {
            "const": 10000
          },
          "naturalBonusProbability": {
            "const": 0.00390625
          },
          "huntBonusProbability": {
            "const": 0.01953125
          },
          "huntCostBaseBet": {
            "const": 3
          },
          "model": {
            "type": "string"
          },
          "permittedBetsCents": {
            "type": "array",
            "items": {
              "type": "integer"
            },
            "minItems": 36,
            "maxItems": 36
          },
          "rtpPercent": {
            "const": 98
          },
          "certified": {
            "const": false
          }
        }
      },
      "PoseidonBonus": {
        "type": "object",
        "required": [
          "name",
          "cost",
          "spins"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "cost": {
            "type": "integer"
          },
          "spins": {
            "const": 10
          }
        }
      }
    }
  },
  "externalDocs": {
    "description": "Integration, recovery and commercial acceptance requirements",
    "url": "https://staticriot.dev/integration-guide.md"
  }
}
