{
    "swagger": "2.0",
    "info": {
        "description": "Operator client credentials for local auth and OAuth token endpoints.",
        "title": "Slot Backend Operator API",
        "contact": {},
        "version": "1.0"
    },
    "basePath": "/api/v1",
    "paths": {
        "/operator/auth/login": {
            "post": {
                "description": "Local auth only; these routes are not registered when local operator auth is disabled.",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json",
                    "application/problem+json"
                ],
                "tags": [
                    "operator-auth"
                ],
                "summary": "Issue local operator access and refresh tokens",
                "parameters": [
                    {
                        "type": "string",
                        "description": "Basic client credentials; alternatively provide client_id and client_secret in the JSON body",
                        "name": "Authorization",
                        "in": "header"
                    },
                    {
                        "description": "Operator and player context",
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/auth.loginRequest"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/auth.tokenResponse"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/auth.OAuthErrorResponse"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/auth.OAuthErrorResponse"
                        }
                    },
                    "413": {
                        "description": "Request Entity Too Large",
                        "schema": {
                            "$ref": "#/definitions/httputil.ProblemDetail"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/auth.OAuthErrorResponse"
                        }
                    }
                }
            }
        },
        "/operator/auth/me": {
            "get": {
                "description": "Local auth only; these routes are not registered when local operator auth is disabled.",
                "produces": [
                    "application/json",
                    "application/problem+json"
                ],
                "tags": [
                    "operator-auth"
                ],
                "summary": "Inspect a local operator access token",
                "parameters": [
                    {
                        "type": "string",
                        "description": "Bearer token; a missing token returns active=false",
                        "name": "Authorization",
                        "in": "header"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/auth.meResponse"
                        }
                    },
                    "413": {
                        "description": "Request body too large",
                        "schema": {
                            "$ref": "#/definitions/httputil.ProblemDetail"
                        }
                    },
                    "503": {
                        "description": "Service Unavailable",
                        "schema": {
                            "$ref": "#/definitions/httputil.ProblemDetail"
                        }
                    }
                }
            }
        },
        "/operator/auth/refresh": {
            "post": {
                "security": [
                    {
                        "BasicAuth": []
                    }
                ],
                "description": "Local auth only; these routes are not registered when local operator auth is disabled.",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json",
                    "application/problem+json"
                ],
                "tags": [
                    "operator-auth"
                ],
                "summary": "Refresh a local operator access token",
                "parameters": [
                    {
                        "description": "Refresh token and optional scope",
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/auth.refreshRequest"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/auth.tokenResponse"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/auth.OAuthErrorResponse"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/auth.OAuthErrorResponse"
                        }
                    },
                    "413": {
                        "description": "Request Entity Too Large",
                        "schema": {
                            "$ref": "#/definitions/httputil.ProblemDetail"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/auth.OAuthErrorResponse"
                        }
                    }
                }
            }
        },
        "/operator/auth/revoke": {
            "post": {
                "security": [
                    {
                        "BasicAuth": []
                    }
                ],
                "description": "Local auth only; these routes are not registered when local operator auth is disabled.",
                "consumes": [
                    "application/json",
                    "application/x-www-form-urlencoded"
                ],
                "produces": [
                    "application/json",
                    "application/problem+json"
                ],
                "tags": [
                    "operator-auth"
                ],
                "summary": "Revoke a local operator token",
                "parameters": [
                    {
                        "description": "Token to revoke; form-encoded token is also accepted",
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/auth.revokeRequest"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/auth.OAuthErrorResponse"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/auth.OAuthErrorResponse"
                        }
                    },
                    "413": {
                        "description": "Request Entity Too Large",
                        "schema": {
                            "$ref": "#/definitions/httputil.ProblemDetail"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/auth.OAuthErrorResponse"
                        }
                    }
                }
            }
        },
        "/operator/game-launch": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json",
                    "application/problem+json"
                ],
                "tags": [
                    "operator-launch"
                ],
                "summary": "Create game launch token",
                "parameters": [
                    {
                        "description": "Launch request",
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/launch.createRequest"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/launch.CreateResponse"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httputil.ProblemDetail"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httputil.ProblemDetail"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httputil.ProblemDetail"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httputil.ProblemDetail"
                        }
                    },
                    "409": {
                        "description": "Conflict",
                        "schema": {
                            "$ref": "#/definitions/httputil.ProblemDetail"
                        }
                    },
                    "413": {
                        "description": "Request Entity Too Large",
                        "schema": {
                            "$ref": "#/definitions/httputil.ProblemDetail"
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "schema": {
                            "$ref": "#/definitions/httputil.ProblemDetail"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httputil.ProblemDetail"
                        }
                    },
                    "503": {
                        "description": "Service Unavailable",
                        "schema": {
                            "$ref": "#/definitions/httputil.ProblemDetail"
                        }
                    }
                }
            }
        },
        "/operator/games": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "produces": [
                    "application/json",
                    "application/problem+json"
                ],
                "tags": [
                    "operator-games"
                ],
                "summary": "List available games for operator integration",
                "parameters": [
                    {
                        "type": "string",
                        "description": "Operator ID; defaults to the authenticated operator scope",
                        "name": "operatorId",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/games.listGamesResponse"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httputil.ProblemDetail"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httputil.ProblemDetail"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httputil.ProblemDetail"
                        }
                    },
                    "413": {
                        "description": "Request body too large",
                        "schema": {
                            "$ref": "#/definitions/httputil.ProblemDetail"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httputil.ProblemDetail"
                        }
                    },
                    "503": {
                        "description": "Service Unavailable",
                        "schema": {
                            "$ref": "#/definitions/httputil.ProblemDetail"
                        }
                    }
                }
            }
        },
        "/operator/games/runtime-manifest": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "produces": [
                    "application/json",
                    "application/problem+json"
                ],
                "tags": [
                    "operator-games"
                ],
                "summary": "List active runtime identity manifest per game",
                "parameters": [
                    {
                        "type": "string",
                        "description": "Operator ID; defaults to the authenticated operator scope",
                        "name": "operatorId",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Optional game filter constrained by the authenticated game scope",
                        "name": "gameId",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/games.runtimeManifestResponse"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httputil.ProblemDetail"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httputil.ProblemDetail"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httputil.ProblemDetail"
                        }
                    },
                    "413": {
                        "description": "Request body too large",
                        "schema": {
                            "$ref": "#/definitions/httputil.ProblemDetail"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httputil.ProblemDetail"
                        }
                    },
                    "503": {
                        "description": "Service Unavailable",
                        "schema": {
                            "$ref": "#/definitions/httputil.ProblemDetail"
                        }
                    }
                }
            }
        },
        "/operator/iframe/demo/{launchToken}": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "produces": [
                    "application/json",
                    "application/problem+json"
                ],
                "tags": [
                    "operator-launch"
                ],
                "summary": "Resolve operator iframe launch token",
                "parameters": [
                    {
                        "type": "string",
                        "description": "Launch token",
                        "name": "launchToken",
                        "in": "path",
                        "required": true
                    },
                    {
                        "type": "string",
                        "description": "Operator ID",
                        "name": "operatorId",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Game ID",
                        "name": "gameId",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Player ID",
                        "name": "playerId",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Runtime profile hint",
                        "name": "runtimeProfileHint",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Quality tier hint",
                        "name": "qualityTierHint",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Asset pack",
                        "name": "assetPack",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Frontend build version",
                        "name": "frontendVersion",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Frontend build checksum",
                        "name": "frontendChecksum",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Browser origin used for launch binding",
                        "name": "Origin",
                        "in": "header"
                    },
                    {
                        "type": "string",
                        "description": "Browser user agent used for launch fingerprinting",
                        "name": "User-Agent",
                        "in": "header"
                    },
                    {
                        "type": "string",
                        "description": "Browser platform hint used for launch fingerprinting",
                        "name": "Sec-CH-UA-Platform",
                        "in": "header"
                    },
                    {
                        "type": "string",
                        "description": "Client session hint used for launch fingerprinting",
                        "name": "X-Session-Id",
                        "in": "header"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/launch.ResolveResponse"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httputil.ProblemDetail"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httputil.ProblemDetail"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httputil.ProblemDetail"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httputil.ProblemDetail"
                        }
                    },
                    "409": {
                        "description": "Conflict",
                        "schema": {
                            "$ref": "#/definitions/httputil.ProblemDetail"
                        }
                    },
                    "413": {
                        "description": "Request Entity Too Large",
                        "schema": {
                            "$ref": "#/definitions/httputil.ProblemDetail"
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "schema": {
                            "$ref": "#/definitions/httputil.ProblemDetail"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httputil.ProblemDetail"
                        }
                    },
                    "503": {
                        "description": "Service Unavailable",
                        "schema": {
                            "$ref": "#/definitions/httputil.ProblemDetail"
                        }
                    }
                }
            }
        },
        "/operator/iframe/real/{launchToken}": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "produces": [
                    "application/json",
                    "application/problem+json"
                ],
                "tags": [
                    "operator-launch"
                ],
                "summary": "Resolve operator iframe launch token",
                "parameters": [
                    {
                        "type": "string",
                        "description": "Launch token",
                        "name": "launchToken",
                        "in": "path",
                        "required": true
                    },
                    {
                        "type": "string",
                        "description": "Operator ID",
                        "name": "operatorId",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Game ID",
                        "name": "gameId",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Player ID",
                        "name": "playerId",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Runtime profile hint",
                        "name": "runtimeProfileHint",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Quality tier hint",
                        "name": "qualityTierHint",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Asset pack",
                        "name": "assetPack",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Frontend build version",
                        "name": "frontendVersion",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Frontend build checksum",
                        "name": "frontendChecksum",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Browser origin used for launch binding",
                        "name": "Origin",
                        "in": "header"
                    },
                    {
                        "type": "string",
                        "description": "Browser user agent used for launch fingerprinting",
                        "name": "User-Agent",
                        "in": "header"
                    },
                    {
                        "type": "string",
                        "description": "Browser platform hint used for launch fingerprinting",
                        "name": "Sec-CH-UA-Platform",
                        "in": "header"
                    },
                    {
                        "type": "string",
                        "description": "Client session hint used for launch fingerprinting",
                        "name": "X-Session-Id",
                        "in": "header"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/launch.ResolveResponse"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httputil.ProblemDetail"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httputil.ProblemDetail"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httputil.ProblemDetail"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/httputil.ProblemDetail"
                        }
                    },
                    "409": {
                        "description": "Conflict",
                        "schema": {
                            "$ref": "#/definitions/httputil.ProblemDetail"
                        }
                    },
                    "413": {
                        "description": "Request Entity Too Large",
                        "schema": {
                            "$ref": "#/definitions/httputil.ProblemDetail"
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "schema": {
                            "$ref": "#/definitions/httputil.ProblemDetail"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httputil.ProblemDetail"
                        }
                    },
                    "503": {
                        "description": "Service Unavailable",
                        "schema": {
                            "$ref": "#/definitions/httputil.ProblemDetail"
                        }
                    }
                }
            }
        },
        "/operator/oauth/revoke": {
            "post": {
                "security": [
                    {
                        "BasicAuth": []
                    }
                ],
                "description": "Local auth only; these routes are not registered when local operator auth is disabled.",
                "consumes": [
                    "application/x-www-form-urlencoded",
                    "application/json"
                ],
                "produces": [
                    "application/json",
                    "application/problem+json"
                ],
                "tags": [
                    "operator-oauth"
                ],
                "summary": "Revoke an OAuth token",
                "parameters": [
                    {
                        "type": "string",
                        "description": "Token to revoke; JSON token is also accepted",
                        "name": "token",
                        "in": "formData",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/auth.OAuthErrorResponse"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/auth.OAuthErrorResponse"
                        }
                    },
                    "413": {
                        "description": "Request Entity Too Large",
                        "schema": {
                            "$ref": "#/definitions/httputil.ProblemDetail"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/auth.OAuthErrorResponse"
                        }
                    }
                }
            }
        },
        "/operator/oauth/token": {
            "post": {
                "security": [
                    {
                        "BasicAuth": []
                    }
                ],
                "description": "Local auth only; these routes are not registered when local operator auth is disabled.",
                "consumes": [
                    "application/x-www-form-urlencoded"
                ],
                "produces": [
                    "application/json",
                    "application/problem+json"
                ],
                "tags": [
                    "operator-oauth"
                ],
                "summary": "Issue an OAuth token using client credentials or a refresh token",
                "parameters": [
                    {
                        "enum": [
                            "client_credentials",
                            "refresh_token"
                        ],
                        "type": "string",
                        "description": "OAuth grant",
                        "name": "grant_type",
                        "in": "formData",
                        "required": true
                    },
                    {
                        "type": "string",
                        "description": "Required for refresh_token grant",
                        "name": "refresh_token",
                        "in": "formData"
                    },
                    {
                        "type": "string",
                        "description": "Requested scope",
                        "name": "scope",
                        "in": "formData"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/auth.tokenResponse"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/auth.OAuthErrorResponse"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/auth.OAuthErrorResponse"
                        }
                    },
                    "413": {
                        "description": "Request Entity Too Large",
                        "schema": {
                            "$ref": "#/definitions/httputil.ProblemDetail"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/auth.OAuthErrorResponse"
                        }
                    }
                }
            }
        },
        "/operator/user/info": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json",
                    "application/problem+json"
                ],
                "tags": [
                    "operator-wallet"
                ],
                "summary": "Get user profile info",
                "parameters": [
                    {
                        "description": "User info request",
                        "name": "request",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/wallet.userInfoRequest"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/wallet.userInfoResponse"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/httputil.ProblemDetail"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/httputil.ProblemDetail"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/httputil.ProblemDetail"
                        }
                    },
                    "413": {
                        "description": "Request Entity Too Large",
                        "schema": {
                            "$ref": "#/definitions/httputil.ProblemDetail"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/httputil.ProblemDetail"
                        }
                    },
                    "503": {
                        "description": "Service Unavailable",
                        "schema": {
                            "$ref": "#/definitions/httputil.ProblemDetail"
                        }
                    }
                }
            }
        }
    },
    "definitions": {
        "auth.OAuthErrorResponse": {
            "type": "object",
            "required": [
                "error",
                "error_description"
            ],
            "properties": {
                "error": {
                    "type": "string"
                },
                "error_description": {
                    "type": "string"
                }
            }
        },
        "auth.loginRequest": {
            "type": "object",
            "required": [
                "operator_id",
                "player_id"
            ],
            "properties": {
                "client_id": {
                    "type": "string"
                },
                "client_secret": {
                    "type": "string"
                },
                "game_id": {
                    "type": "string"
                },
                "operator_id": {
                    "type": "string"
                },
                "player_id": {
                    "type": "string"
                },
                "scope": {
                    "type": "string"
                }
            }
        },
        "auth.meResponse": {
            "type": "object",
            "required": [
                "active"
            ],
            "properties": {
                "active": {
                    "type": "boolean"
                },
                "client_id": {
                    "type": "string"
                },
                "exp": {
                    "type": "integer"
                },
                "game_id": {
                    "type": "string"
                },
                "operator_id": {
                    "type": "string"
                },
                "player_id": {
                    "type": "string"
                },
                "scope": {
                    "type": "string"
                },
                "token_type": {
                    "type": "string"
                }
            }
        },
        "auth.refreshRequest": {
            "type": "object",
            "required": [
                "refresh_token"
            ],
            "properties": {
                "refresh_token": {
                    "type": "string"
                },
                "scope": {
                    "type": "string"
                }
            }
        },
        "auth.revokeRequest": {
            "type": "object",
            "required": [
                "token"
            ],
            "properties": {
                "token": {
                    "type": "string"
                }
            }
        },
        "auth.tokenResponse": {
            "type": "object",
            "required": [
                "access_token",
                "expires_in",
                "token_type"
            ],
            "properties": {
                "access_token": {
                    "type": "string"
                },
                "expires_in": {
                    "type": "integer"
                },
                "refresh_token": {
                    "type": "string"
                },
                "scope": {
                    "type": "string"
                },
                "token_type": {
                    "type": "string"
                }
            }
        },
        "games.gameInfo": {
            "type": "object",
            "required": [
                "badges",
                "coefficients",
                "cols",
                "configChecksum",
                "configVersion",
                "defaultBet",
                "gameId",
                "iframeDemoUrl",
                "iframeRealUrl",
                "launchReady",
                "mathVersion",
                "maxBet",
                "minBet",
                "name",
                "provider",
                "rows",
                "rtp",
                "rtpProfile",
                "status",
                "supportedCurrencies",
                "supportedModes",
                "type",
                "volatilityProfile"
            ],
            "properties": {
                "badges": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "bonusMessage": {
                    "type": "string"
                },
                "coefficients": {
                    "type": "array",
                    "items": {
                        "type": "number"
                    }
                },
                "cols": {
                    "type": "integer"
                },
                "configChecksum": {
                    "type": "string"
                },
                "configVersion": {
                    "type": "string"
                },
                "defaultBet": {
                    "type": "number"
                },
                "description": {
                    "type": "string"
                },
                "gameId": {
                    "type": "string"
                },
                "helpText": {
                    "type": "string"
                },
                "iframeDemoUrl": {
                    "type": "string"
                },
                "iframeRealUrl": {
                    "type": "string"
                },
                "launchReady": {
                    "type": "boolean"
                },
                "mathVersion": {
                    "type": "string"
                },
                "maxBet": {
                    "type": "number"
                },
                "minBet": {
                    "type": "number"
                },
                "name": {
                    "type": "string"
                },
                "paytableTitle": {
                    "type": "string"
                },
                "provider": {
                    "type": "string"
                },
                "rows": {
                    "type": "integer"
                },
                "rtp": {
                    "type": "number"
                },
                "rtpProfile": {
                    "type": "string"
                },
                "status": {
                    "type": "string"
                },
                "supportedCurrencies": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "supportedModes": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "type": {
                    "type": "string"
                },
                "volatilityProfile": {
                    "type": "string"
                }
            }
        },
        "games.listGamesResponse": {
            "type": "object",
            "required": [
                "fallback",
                "games",
                "locale"
            ],
            "properties": {
                "fallback": {
                    "type": "boolean"
                },
                "games": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/games.gameInfo"
                    }
                },
                "locale": {
                    "type": "string"
                }
            }
        },
        "games.runtimeManifestItem": {
            "type": "object",
            "required": [
                "canonicalizerVersion",
                "configChecksum",
                "configVersion",
                "effectiveFromUtc",
                "gameId",
                "mathVersion"
            ],
            "properties": {
                "canonicalizerVersion": {
                    "type": "string"
                },
                "configChecksum": {
                    "type": "string"
                },
                "configVersion": {
                    "type": "string"
                },
                "effectiveFromUtc": {
                    "type": "string"
                },
                "gameId": {
                    "type": "string"
                },
                "mathVersion": {
                    "type": "string"
                }
            }
        },
        "games.runtimeManifestResponse": {
            "type": "object",
            "required": [
                "items"
            ],
            "properties": {
                "items": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/games.runtimeManifestItem"
                    }
                }
            }
        },
        "httputil.ProblemDetail": {
            "type": "object",
            "required": [
                "code",
                "status",
                "title",
                "type"
            ],
            "properties": {
                "code": {
                    "type": "string"
                },
                "contractReason": {
                    "type": "string"
                },
                "detail": {
                    "type": "string"
                },
                "idempotencyStatus": {
                    "type": "string"
                },
                "requestId": {
                    "type": "string"
                },
                "status": {
                    "type": "integer"
                },
                "title": {
                    "type": "string"
                },
                "type": {
                    "type": "string"
                }
            }
        },
        "launch.CreateResponse": {
            "type": "object",
            "required": [
                "backendUrl",
                "expiresAt",
                "gameId",
                "launchToken",
                "sessionId",
                "token"
            ],
            "properties": {
                "backendUrl": {
                    "type": "string"
                },
                "expiresAt": {
                    "type": "string"
                },
                "gameId": {
                    "type": "string"
                },
                "launchToken": {
                    "type": "string"
                },
                "sessionId": {
                    "type": "string"
                },
                "token": {
                    "type": "string"
                }
            }
        },
        "launch.ResolveResponse": {
            "type": "object",
            "required": [
                "allowedParentOrigins",
                "apiPrefix",
                "backendUrl",
                "currency",
                "expiresAt",
                "gameId",
                "operatorId",
                "playerId",
                "runtimeContractVersion",
                "sessionId",
                "slotInstanceId",
                "token"
            ],
            "properties": {
                "allowedParentOrigins": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "apiPrefix": {
                    "type": "string"
                },
                "assetPack": {
                    "type": "string"
                },
                "backendUrl": {
                    "type": "string"
                },
                "currency": {
                    "type": "string"
                },
                "expiresAt": {
                    "type": "string"
                },
                "gameId": {
                    "type": "string"
                },
                "operatorId": {
                    "type": "string"
                },
                "playerId": {
                    "type": "string"
                },
                "qualityTierHint": {
                    "type": "string"
                },
                "runtimeContractVersion": {
                    "type": "string"
                },
                "runtimeProfileHint": {
                    "type": "string"
                },
                "sessionId": {
                    "type": "string"
                },
                "slotInstanceId": {
                    "type": "string"
                },
                "token": {
                    "type": "string"
                }
            }
        },
        "launch.createRequest": {
            "type": "object",
            "required": [
                "gameId"
            ],
            "properties": {
                "currency": {
                    "type": "string"
                },
                "gameId": {
                    "type": "string"
                },
                "operatorId": {
                    "type": "string"
                },
                "playerId": {
                    "type": "string"
                },
                "slotInstanceId": {
                    "type": "string"
                }
            }
        },
        "wallet.userInfoRequest": {
            "type": "object",
            "required": [
                "request_uuid",
                "user"
            ],
            "properties": {
                "request_uuid": {
                    "type": "string"
                },
                "user": {
                    "type": "string",
                    "minLength": 4
                }
            }
        },
        "wallet.userInfoResponse": {
            "type": "object",
            "required": [
                "request_uuid",
                "status",
                "user"
            ],
            "properties": {
                "affiliate_id": {
                    "type": "string"
                },
                "birth_date": {
                    "type": "string"
                },
                "country": {
                    "type": "string"
                },
                "jurisdiction": {
                    "type": "string"
                },
                "registration_date": {
                    "type": "string"
                },
                "request_uuid": {
                    "type": "string"
                },
                "sex": {
                    "type": "string"
                },
                "status": {
                    "type": "string"
                },
                "sub_partner_id": {
                    "type": "string"
                },
                "tags": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "user": {
                    "type": "string"
                }
            }
        }
    },
    "securityDefinitions": {
        "BasicAuth": {
            "type": "basic"
        },
        "BearerAuth": {
            "description": "Bearer operator access token.",
            "type": "apiKey",
            "name": "Authorization",
            "in": "header"
        }
    }
}