{"openapi":"3.1.0","info":{"title":"SELTENLABS platform API","version":"0.2.0","description":"API of the platform for an operator: players, wallets and the ledger, payments, bonuses, games, KYC, messages, projects (geo) and the catalogues of the back office. Base address `https://bo.seltenlabs.com`.\n\nAccess today is a staff session: `POST /api/admin/auth/login`, then the TOTP step; the session is the cookie `selten_adm`, and requests that change data send the header `X-CSRF-Token` with the value of the cookie `selten_adm_csrf`. API keys for integrations are planned, not available yet. Every operation names the permission it needs (`code:level`; levels view, edit, grant). The project (geo) of a request is the header `X-Project`.\n\nErrors are JSON `{\"error\": \"<code>\"}` with a stable code. Amounts are integers in minor units. Demo, no real money.\n\nThe wallet for game providers and the webhooks are a separate document: https://api.seltenlabs.com/reference/"},"servers":[{"url":"https://bo.seltenlabs.com","description":"back office"}],"tags":[{"name":"auth","description":"Login: password, mandatory TOTP, session."},{"name":"players","description":"Players: profile, status, tags, comments, sessions, wallet operations, rounds, bonuses."},{"name":"ledger","description":"Ledger: transactions, accounts, integrity check."},{"name":"invites","description":"Invitations to register (the demo is by invitation)."},{"name":"payments","description":"Deposits and withdrawals: checks, approval, payout."},{"name":"projects","description":"Projects (geo): currencies, languages, settings."},{"name":"games","description":"Games: performance and health of the catalogue."},{"name":"bonuses","description":"Bonuses with wagering: offers, grants, activation, forfeit."},{"name":"catalogues","description":"Catalogues and settings of the back office (games, lobby, promotions, content, templates and others): one generic interface, `rtype` is the kind of object; `GET /api/admin/bo/meta` lists them."},{"name":"messaging","description":"Messages to players: templates, preview, sending, journal."},{"name":"kyc","description":"KYC: cases, documents, decisions."}],"paths":{"/api/admin/auth/login":{"post":{"tags":["auth"],"summary":"Login","operationId":"staffAuthLogin","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"}},"security":[]}},"/api/admin/auth/totp":{"post":{"tags":["auth"],"summary":"Totp","operationId":"staffAuthTotp","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodeIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"}},"security":[]}},"/api/admin/auth/totp/setup":{"get":{"tags":["auth"],"summary":"Totp Setup","operationId":"staffAuthTotpSetup","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[]}},"/api/admin/auth/totp/confirm":{"post":{"tags":["auth"],"summary":"Totp Confirm","operationId":"staffAuthTotpConfirm","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodeIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"}},"security":[]}},"/api/admin/auth/logout":{"post":{"tags":["auth"],"summary":"Logout","operationId":"staffAuthLogout","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"}},"security":[]}},"/api/admin/auth/me":{"get":{"tags":["auth"],"summary":"Me","operationId":"staffAuthMe","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[]}]}},"/api/admin/auth/password":{"post":{"tags":["auth"],"summary":"Change Password","operationId":"staffAuthChangePassword","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[],"staffCsrf":[]}]}},"/api/admin/auth/lang":{"post":{"tags":["auth"],"summary":"Set Lang","operationId":"staffAuthSetLang","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LangIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[],"staffCsrf":[]}]}},"/api/admin/auth/sessions":{"get":{"tags":["auth"],"summary":"My Sessions","operationId":"accountMySessions","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[]}]}},"/api/admin/auth/sessions/{sid}":{"delete":{"tags":["auth"],"summary":"End Session","operationId":"accountEndSession","parameters":[{"name":"sid","in":"path","required":true,"schema":{"type":"string","title":"Sid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[],"staffCsrf":[]}]}},"/api/admin/auth/sessions/revoke-others":{"post":{"tags":["auth"],"summary":"End Other Sessions","operationId":"accountEndOtherSessions","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[],"staffCsrf":[]}]}},"/api/admin/auth/devices/{device_id}":{"delete":{"tags":["auth"],"summary":"Forget Device","description":"Forget an own device: its sessions end, the next sign-in from it is a new device again.","operationId":"accountForgetDevice","parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","title":"Device Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[],"staffCsrf":[]}]}},"/api/admin/players":{"get":{"tags":["players"],"summary":"Players","operationId":"adminPlayers","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"","title":"Status"}},{"name":"tag","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tag"}},{"name":"test","in":"query","required":false,"schema":{"type":"string","default":"","title":"Test"}},{"name":"vip","in":"query","required":false,"schema":{"type":"string","default":"","title":"Vip"}},{"name":"country","in":"query","required":false,"schema":{"type":"string","default":"","title":"Country"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","default":"-id","title":"Sort"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[]}],"x-permission":"players:view","description":"Permission: `players:view`."}},"/api/admin/players/{pid}":{"get":{"tags":["players"],"summary":"Player Card","operationId":"adminPlayerCard","parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"string","title":"Pid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[]}],"x-permission":"players:view","description":"Permission: `players:view`."},"put":{"tags":["players"],"summary":"Player Update","operationId":"adminPlayerUpdate","parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"string","title":"Pid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[],"staffCsrf":[]}],"x-permission":"players:edit","description":"Permission: `players:edit`."}},"/api/admin/players/{pid}/status":{"post":{"tags":["players"],"summary":"Player Status","operationId":"adminPlayerStatus","parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"string","title":"Pid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__routes_admin__StatusIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[],"staffCsrf":[]}],"x-permission":"player_block:edit","description":"Permission: `player_block:edit`."}},"/api/admin/players/{pid}/logout":{"post":{"tags":["players"],"summary":"Player Logout","operationId":"adminPlayerLogout","parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"string","title":"Pid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[],"staffCsrf":[]}],"x-permission":"player_logout:edit","description":"Permission: `player_logout:edit`."}},"/api/admin/players/{pid}/sessions":{"get":{"tags":["players"],"summary":"Player Sessions","operationId":"adminPlayerSessions","parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"string","title":"Pid"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[]}],"x-permission":"players:view","description":"Permission: `players:view`."}},"/api/admin/players/{pid}/log":{"get":{"tags":["players"],"summary":"Player Log","operationId":"adminPlayerLog","parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"string","title":"Pid"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":200,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[]}],"x-permission":"players:view","description":"Permission: `players:view`."}},"/api/admin/players/{pid}/tags":{"post":{"tags":["players"],"summary":"Player Tag Add","operationId":"adminPlayerTagAdd","parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"string","title":"Pid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[],"staffCsrf":[]}],"x-permission":"players:edit","description":"Permission: `players:edit`."}},"/api/admin/players/{pid}/tags/{tid}":{"delete":{"tags":["players"],"summary":"Player Tag Remove","operationId":"adminPlayerTagRemove","parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"string","title":"Pid"}},{"name":"tid","in":"path","required":true,"schema":{"type":"string","title":"Tid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[],"staffCsrf":[]}],"x-permission":"players:edit","description":"Permission: `players:edit`."}},"/api/admin/players/{pid}/comments":{"get":{"tags":["players"],"summary":"Player Comments","operationId":"adminPlayerComments","parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"string","title":"Pid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[]}],"x-permission":"player_comments:view","description":"Permission: `player_comments:view`."},"post":{"tags":["players"],"summary":"Player Comment Add","operationId":"adminPlayerCommentAdd","parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"string","title":"Pid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[],"staffCsrf":[]}],"x-permission":"player_comments:edit","description":"Permission: `player_comments:edit`."}},"/api/admin/players/{pid}/comments/{cid}/pin":{"post":{"tags":["players"],"summary":"Player Comment Pin","operationId":"adminPlayerCommentPin","parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"string","title":"Pid"}},{"name":"cid","in":"path","required":true,"schema":{"type":"string","title":"Cid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PinIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[],"staffCsrf":[]}],"x-permission":"player_comments:edit","description":"Permission: `player_comments:edit`."}},"/api/admin/players/{pid}/comments/{cid}":{"delete":{"tags":["players"],"summary":"Player Comment Delete","operationId":"adminPlayerCommentDelete","parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"string","title":"Pid"}},{"name":"cid","in":"path","required":true,"schema":{"type":"string","title":"Cid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[],"staffCsrf":[]}],"x-permission":"player_comments:edit","description":"Permission: `player_comments:edit`."}},"/api/admin/players/bulk":{"post":{"tags":["players"],"summary":"Players Bulk","operationId":"adminPlayersBulk","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__routes_admin__BulkIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[],"staffCsrf":[]}]}},"/api/admin/players/{pid}/transactions":{"get":{"tags":["players"],"summary":"Player Transactions","operationId":"adminPlayerTransactions","parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"string","title":"Pid"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Before"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[]}],"x-permission":"transactions:view","description":"Permission: `transactions:view`."}},"/api/admin/players/{pid}/rounds":{"get":{"tags":["players"],"summary":"Player Rounds","operationId":"adminPlayerRounds","parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"string","title":"Pid"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Before"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[]}],"x-permission":"transactions:view","description":"Permission: `transactions:view`."}},"/api/admin/players/{pid}/adjust":{"post":{"tags":["players"],"summary":"Adjust","operationId":"adminAdjust","parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"string","title":"Pid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdjustIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[],"staffCsrf":[]}],"x-permission":"manual_adjust_balance:edit","description":"Permission: `manual_adjust_balance:edit`."}},"/api/admin/ledger/transactions":{"get":{"tags":["ledger"],"summary":"Transactions","operationId":"adminTransactions","parameters":[{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"}},{"name":"player_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Player Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Before"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[]}],"x-permission":"transactions:view","description":"Permission: `transactions:view`."}},"/api/admin/ledger/integrity":{"get":{"tags":["ledger"],"summary":"Integrity","operationId":"adminIntegrity","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[]}],"x-permission":"transactions:view","description":"Permission: `transactions:view`."}},"/api/admin/ledger/accounts":{"get":{"tags":["ledger"],"summary":"Accounts","operationId":"adminAccounts","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[]}],"x-permission":"transactions:view","description":"Permission: `transactions:view`."}},"/api/admin/rounds/{rid}/cancel":{"post":{"tags":["ledger"],"summary":"Cancel Round","operationId":"adminCancelRound","parameters":[{"name":"rid","in":"path","required":true,"schema":{"type":"string","title":"Rid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[],"staffCsrf":[]}],"x-permission":"round_cancel:edit","description":"Permission: `round_cancel:edit`."}},"/api/admin/invites":{"get":{"tags":["invites"],"summary":"Invites","operationId":"adminInvites","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[]}],"x-permission":"invites:view","description":"Permission: `invites:view`."},"post":{"tags":["invites"],"summary":"Create Invite","operationId":"adminCreateInvite","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[],"staffCsrf":[]}],"x-permission":"invites:edit","description":"Permission: `invites:edit`."}},"/api/admin/invites/{iid}/revoke":{"post":{"tags":["invites"],"summary":"Revoke Invite","operationId":"adminRevokeInvite","parameters":[{"name":"iid","in":"path","required":true,"schema":{"type":"string","title":"Iid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[],"staffCsrf":[]}],"x-permission":"invites:edit","description":"Permission: `invites:edit`."}},"/api/admin/payments/deposits":{"get":{"tags":["payments"],"summary":"Deposits","operationId":"adminDeposits","parameters":[{"name":"player_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Player Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Before"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[]}],"x-permission":"payments:view","description":"Permission: `payments:view`."}},"/api/admin/projects":{"get":{"tags":["projects"],"summary":"Listing","operationId":"projectsListing","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[]}],"x-permission":"projects:view","description":"Permission: `projects:view`."},"post":{"tags":["projects"],"summary":"Create","operationId":"projectsCreate","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[],"staffCsrf":[]}],"x-permission":"projects:edit","description":"Permission: `projects:edit`."}},"/api/admin/projects/{pid}":{"get":{"tags":["projects"],"summary":"Card","operationId":"projectsCard","parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"string","title":"Pid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[]}],"x-permission":"projects:view","description":"Permission: `projects:view`."},"put":{"tags":["projects"],"summary":"Update","operationId":"projectsUpdate","parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"string","title":"Pid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[],"staffCsrf":[]}],"x-permission":"projects:edit","description":"Permission: `projects:edit`."}},"/api/admin/projects/{pid}/status":{"post":{"tags":["projects"],"summary":"Set Status","description":"draft | active | suspended | archived, always with a comment. The default project cannot be archived; a\nproject with open withdrawals cannot be archived (the money of those players must be settled first).\n\nPermission: `projects:edit`.","operationId":"projectsSetStatus","parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"string","title":"Pid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__routes_projects__StatusIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[],"staffCsrf":[]}],"x-permission":"projects:edit"}},"/api/admin/projects/{pid}/history":{"get":{"tags":["projects"],"summary":"History","operationId":"projectsHistory","parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"string","title":"Pid"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[]}],"x-permission":"projects:view","description":"Permission: `projects:view`."}},"/api/admin/projects/{pid}/demo-games":{"post":{"tags":["projects"],"summary":"Demo Games","description":"Put the built-in demo provider and its two games (no real money) into the catalogue of the project. Nothing\nis overwritten, a second call changes nothing.\n\nPermission: `projects:edit`.","operationId":"projectsDemoGames","parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"string","title":"Pid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[],"staffCsrf":[]}],"x-permission":"projects:edit"}},"/api/admin/games/performance":{"get":{"tags":["games"],"summary":"Performance","operationId":"gamesPerformance","parameters":[{"name":"date_from","in":"query","required":false,"schema":{"type":"string","default":"","title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"type":"string","default":"","title":"Date To"}},{"name":"currency","in":"query","required":false,"schema":{"type":"string","default":"","title":"Currency"}},{"name":"by","in":"query","required":false,"schema":{"type":"string","default":"game","title":"By"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[]}],"x-permission":"stat_games:view","description":"Permission: `stat_games:view`."}},"/api/admin/games/catalog-health":{"get":{"tags":["games"],"summary":"Catalog Health","operationId":"gamesCatalogHealth","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[]}],"x-permission":"games_catalog:view","description":"Permission: `games_catalog:view`."}},"/api/admin/payments/withdrawals":{"get":{"tags":["payments"],"summary":"Listing","operationId":"cashierListing","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"","title":"Status"}},{"name":"player_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Player Id"}},{"name":"date_from","in":"query","required":false,"schema":{"type":"string","default":"","title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"type":"string","default":"","title":"Date To"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[]}],"x-permission":"withdrawals:view","description":"Permission: `withdrawals:view`."}},"/api/admin/payments/withdrawals/{wid}":{"get":{"tags":["payments"],"summary":"Detail","operationId":"cashierDetail","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","title":"Wid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[]}],"x-permission":"withdrawals:view","description":"Permission: `withdrawals:view`."}},"/api/admin/payments/withdrawals/bulk":{"post":{"tags":["payments"],"summary":"Bulk","operationId":"cashierBulk","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__routes_cashier__BulkIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[],"staffCsrf":[]}],"x-permission":"withdrawals:edit","description":"Permission: `withdrawals:edit`."}},"/api/admin/payments/withdrawals/{wid}/approve":{"post":{"tags":["payments"],"summary":"Approve","operationId":"cashierApprove","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","title":"Wid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApproveIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[],"staffCsrf":[]}],"x-permission":"withdrawals:edit","description":"Permission: `withdrawals:edit`."}},"/api/admin/payments/withdrawals/{wid}/decline":{"post":{"tags":["payments"],"summary":"Decline","operationId":"cashierDecline","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","title":"Wid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeclineIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[],"staffCsrf":[]}],"x-permission":"withdrawals:edit","description":"Permission: `withdrawals:edit`."}},"/api/admin/payments/withdrawals/{wid}/pay":{"post":{"tags":["payments"],"summary":"Pay","operationId":"cashierPay","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","title":"Wid"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PayIn"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[],"staffCsrf":[]}],"x-permission":"withdrawals:edit","description":"Permission: `withdrawals:edit`."}},"/api/admin/bonuses":{"get":{"tags":["bonuses"],"summary":"Listing","operationId":"bonusesListing","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"","title":"Status"}},{"name":"player_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Player Id"}},{"name":"offer_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Offer Id"}},{"name":"date_from","in":"query","required":false,"schema":{"type":"string","default":"","title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"type":"string","default":"","title":"Date To"}},{"name":"currency","in":"query","required":false,"schema":{"type":"string","default":"","title":"Currency"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[]}],"x-permission":"bonuses:view","description":"Permission: `bonuses:view`."}},"/api/admin/bonuses/offers":{"get":{"tags":["bonuses"],"summary":"Offers","description":"Active cash bonus offers that staff may grant (names and the facts the grant dialog needs).\n\nPermission: `bonuses:view`.","operationId":"bonusesOffers","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[]}],"x-permission":"bonuses:view"}},"/api/admin/bonuses/{bid}":{"get":{"tags":["bonuses"],"summary":"Detail","operationId":"bonusesDetail","parameters":[{"name":"bid","in":"path","required":true,"schema":{"type":"string","title":"Bid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[]}],"x-permission":"bonuses:view","description":"Permission: `bonuses:view`."}},"/api/admin/players/{pid}/bonuses":{"get":{"tags":["players"],"summary":"Player List","operationId":"bonusesPlayerList","parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"string","title":"Pid"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[]}],"x-permission":"bonuses:view","description":"Permission: `bonuses:view`."},"post":{"tags":["players"],"summary":"Grant","operationId":"bonusesGrant","parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"string","title":"Pid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrantIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[],"staffCsrf":[]}],"x-permission":"bonus_grant:edit","description":"Permission: `bonus_grant:edit`."}},"/api/admin/bonuses/{bid}/forfeit":{"post":{"tags":["bonuses"],"summary":"Forfeit","operationId":"bonusesForfeit","parameters":[{"name":"bid","in":"path","required":true,"schema":{"type":"string","title":"Bid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForfeitIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[],"staffCsrf":[]}],"x-permission":"bonuses:edit","description":"Permission: `bonuses:edit`."}},"/api/admin/bonuses/{bid}/activate":{"post":{"tags":["bonuses"],"summary":"Activate","operationId":"bonusesActivate","parameters":[{"name":"bid","in":"path","required":true,"schema":{"type":"string","title":"Bid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[],"staffCsrf":[]}],"x-permission":"bonuses:edit","description":"Permission: `bonuses:edit`."}},"/api/admin/bo/meta":{"get":{"tags":["catalogues"],"summary":"Meta","operationId":"backOfficeMeta","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[]}]}},"/api/admin/bo/options/{rtype}":{"get":{"tags":["catalogues"],"summary":"Options","description":"Names for ref pickers. Names only, so any signed-in staff member may call it.","operationId":"backOfficeOptions","parameters":[{"name":"rtype","in":"path","required":true,"schema":{"type":"string","title":"Rtype"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"ids","in":"query","required":false,"schema":{"type":"string","default":"","title":"Ids"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[]}]}},"/api/admin/bo/o/{rtype}":{"get":{"tags":["catalogues"],"summary":"List Objects","operationId":"backOfficeListObjects","parameters":[{"name":"rtype","in":"path","required":true,"schema":{"type":"string","title":"Rtype"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"","title":"Status"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","default":"-id","title":"Sort"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[]}]},"post":{"tags":["catalogues"],"summary":"Create Object","operationId":"backOfficeCreateObject","parameters":[{"name":"rtype","in":"path","required":true,"schema":{"type":"string","title":"Rtype"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__bo__engine__SaveIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[],"staffCsrf":[]}]}},"/api/admin/bo/o/{rtype}/export.csv":{"get":{"tags":["catalogues"],"summary":"Export Csv","operationId":"backOfficeExportCsv","parameters":[{"name":"rtype","in":"path","required":true,"schema":{"type":"string","title":"Rtype"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"","title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[]}]}},"/api/admin/bo/o/{rtype}/{oid}":{"get":{"tags":["catalogues"],"summary":"Get Object","operationId":"backOfficeGetObject","parameters":[{"name":"rtype","in":"path","required":true,"schema":{"type":"string","title":"Rtype"}},{"name":"oid","in":"path","required":true,"schema":{"type":"string","title":"Oid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[]}]},"put":{"tags":["catalogues"],"summary":"Update Object","operationId":"backOfficeUpdateObject","parameters":[{"name":"rtype","in":"path","required":true,"schema":{"type":"string","title":"Rtype"}},{"name":"oid","in":"path","required":true,"schema":{"type":"string","title":"Oid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__bo__engine__SaveIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[],"staffCsrf":[]}]},"delete":{"tags":["catalogues"],"summary":"Delete Object","operationId":"backOfficeDeleteObject","parameters":[{"name":"rtype","in":"path","required":true,"schema":{"type":"string","title":"Rtype"}},{"name":"oid","in":"path","required":true,"schema":{"type":"string","title":"Oid"}},{"name":"comment","in":"query","required":false,"schema":{"type":"string","default":"","title":"Comment"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[],"staffCsrf":[]}]}},"/api/admin/bo/o/{rtype}/{oid}/status":{"post":{"tags":["catalogues"],"summary":"Set Status","operationId":"backOfficeSetStatus","parameters":[{"name":"rtype","in":"path","required":true,"schema":{"type":"string","title":"Rtype"}},{"name":"oid","in":"path","required":true,"schema":{"type":"string","title":"Oid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[],"staffCsrf":[]}]}},"/api/admin/bo/o/{rtype}/{oid}/clone":{"post":{"tags":["catalogues"],"summary":"Clone Object","operationId":"backOfficeCloneObject","parameters":[{"name":"rtype","in":"path","required":true,"schema":{"type":"string","title":"Rtype"}},{"name":"oid","in":"path","required":true,"schema":{"type":"string","title":"Oid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[],"staffCsrf":[]}]}},"/api/admin/bo/o/{rtype}/{oid}/history":{"get":{"tags":["catalogues"],"summary":"Object History","operationId":"backOfficeObjectHistory","parameters":[{"name":"rtype","in":"path","required":true,"schema":{"type":"string","title":"Rtype"}},{"name":"oid","in":"path","required":true,"schema":{"type":"string","title":"Oid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[]}]}},"/api/admin/bo/o/{rtype}/{oid}/revert/{hid}":{"post":{"tags":["catalogues"],"summary":"Revert","description":"Put the object back to the state it had right after history entry `hid`.","operationId":"backOfficeRevert","parameters":[{"name":"rtype","in":"path","required":true,"schema":{"type":"string","title":"Rtype"}},{"name":"oid","in":"path","required":true,"schema":{"type":"string","title":"Oid"}},{"name":"hid","in":"path","required":true,"schema":{"type":"string","title":"Hid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[],"staffCsrf":[]}]}},"/api/admin/bo/s/{rtype}":{"get":{"tags":["catalogues"],"summary":"Get Single","operationId":"backOfficeGetSingle","parameters":[{"name":"rtype","in":"path","required":true,"schema":{"type":"string","title":"Rtype"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[]}]},"put":{"tags":["catalogues"],"summary":"Put Single","operationId":"backOfficePutSingle","parameters":[{"name":"rtype","in":"path","required":true,"schema":{"type":"string","title":"Rtype"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__bo__engine__SaveIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[],"staffCsrf":[]}]}},"/api/admin/bo/history":{"get":{"tags":["catalogues"],"summary":"All History","operationId":"backOfficeAllHistory","parameters":[{"name":"type","in":"query","required":false,"schema":{"type":"string","default":"","title":"Type"}},{"name":"actor","in":"query","required":false,"schema":{"type":"string","default":"","title":"Actor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Before"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[]}]}},"/api/admin/messages/test":{"post":{"tags":["messaging"],"summary":"Send Test","description":"One message to an address the operator types in. The only kind of sending allowed in silent mode.\n\nPermission: `integrations:edit`.","operationId":"integrationsSendTest","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestMessageIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[],"staffCsrf":[]}],"x-permission":"integrations:edit"}},"/api/admin/messages/variables":{"get":{"tags":["messaging"],"summary":"Variables","operationId":"messagingVariables","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[]}],"x-permission":"messages:view","description":"Permission: `messages:view`."}},"/api/admin/messages/preview":{"post":{"tags":["messaging"],"summary":"Preview","operationId":"messagingPreview","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[],"staffCsrf":[]}],"x-permission":"messages:view","description":"Permission: `messages:view`."}},"/api/admin/messages/send":{"post":{"tags":["messaging"],"summary":"Send","description":"Manual 'send this template to these players'. Each player gets a result; silent mode still applies.\n\nPermission: `messages:edit`.","operationId":"messagingSend","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[],"staffCsrf":[]}],"x-permission":"messages:edit"}},"/api/admin/messages/settings":{"get":{"tags":["messaging"],"summary":"Get Settings","operationId":"messagingGetSettings","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[]}],"x-permission":"messages:view","description":"Permission: `messages:view`."},"put":{"tags":["messaging"],"summary":"Put Settings","description":"Silent mode ON needs only `messages:edit`. Switching it OFF (real sending) needs `messaging_launch:edit`,\nthe typed phrase and a comment, and is written to the audit log.\n\nPermission: `messages:edit`.","operationId":"messagingPutSettings","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[],"staffCsrf":[]}],"x-permission":"messages:edit"}},"/api/admin/messages":{"get":{"tags":["messaging"],"summary":"List Messages","operationId":"messagingListMessages","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"","title":"Status"}},{"name":"channel","in":"query","required":false,"schema":{"type":"string","default":"","title":"Channel"}},{"name":"kind","in":"query","required":false,"schema":{"type":"string","default":"","title":"Kind"}},{"name":"player_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Player Id"}},{"name":"date_from","in":"query","required":false,"schema":{"type":"string","default":"","title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"type":"string","default":"","title":"Date To"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Before"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[]}],"x-permission":"messages:view","description":"Permission: `messages:view`."}},"/api/admin/messages/{mid}":{"get":{"tags":["messaging"],"summary":"Message Card","operationId":"messagingMessageCard","parameters":[{"name":"mid","in":"path","required":true,"schema":{"type":"string","title":"Mid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[]}],"x-permission":"messages:view","description":"Permission: `messages:view`."}},"/api/admin/messages/{mid}/retry":{"post":{"tags":["messaging"],"summary":"Retry","operationId":"messagingRetry","parameters":[{"name":"mid","in":"path","required":true,"schema":{"type":"string","title":"Mid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[],"staffCsrf":[]}],"x-permission":"messages:edit","description":"Permission: `messages:edit`."}},"/api/admin/kyc/cases":{"get":{"tags":["kyc"],"summary":"Cases","operationId":"kycCases","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"","title":"Status"}},{"name":"provider","in":"query","required":false,"schema":{"type":"string","default":"","title":"Provider"}},{"name":"player_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Player Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[]}],"x-permission":"kyc:view","description":"Permission: `kyc:view`."},"post":{"tags":["kyc"],"summary":"Start","operationId":"kycStart","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[],"staffCsrf":[]}],"x-permission":"kyc:edit","description":"Permission: `kyc:edit`."}},"/api/admin/kyc/providers":{"get":{"tags":["kyc"],"summary":"Providers","operationId":"kycProviders","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[]}],"x-permission":"kyc:view","description":"Permission: `kyc:view`."}},"/api/admin/kyc/cases/{cid}":{"get":{"tags":["kyc"],"summary":"Case Card","operationId":"kycCaseCard","parameters":[{"name":"cid","in":"path","required":true,"schema":{"type":"string","title":"Cid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[]}],"x-permission":"kyc:view","description":"Permission: `kyc:view`."}},"/api/admin/kyc/cases/{cid}/documents":{"post":{"tags":["kyc"],"summary":"Add Document","description":"Register a document received from the player (the file itself lives in the vendor or the media store).\n\nPermission: `kyc:edit`.","operationId":"kycAddDocument","parameters":[{"name":"cid","in":"path","required":true,"schema":{"type":"string","title":"Cid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[],"staffCsrf":[]}],"x-permission":"kyc:edit"}},"/api/admin/kyc/documents/{did}/decision":{"post":{"tags":["kyc"],"summary":"Decide Document","operationId":"kycDecideDocument","parameters":[{"name":"did","in":"path","required":true,"schema":{"type":"string","title":"Did"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DecisionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[],"staffCsrf":[]}],"x-permission":"kyc:edit","description":"Permission: `kyc:edit`."}},"/api/admin/kyc/cases/{cid}/decision":{"post":{"tags":["kyc"],"summary":"Decide Case","description":"Staff decision. Approval is refused while a document is undecided or rejected.\n\nPermission: `kyc:edit`.","operationId":"kycDecideCase","parameters":[{"name":"cid","in":"path","required":true,"schema":{"type":"string","title":"Cid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DecisionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[],"staffCsrf":[]}],"x-permission":"kyc:edit"}},"/api/admin/kyc/cases/{cid}/refresh":{"post":{"tags":["kyc"],"summary":"Refresh","description":"Ask the vendor for the current state (when a callback was lost).\n\nPermission: `kyc:edit`.","operationId":"kycRefresh","parameters":[{"name":"cid","in":"path","required":true,"schema":{"type":"string","title":"Cid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"staffSession":[],"staffCsrf":[]}],"x-permission":"kyc:edit"}}},"components":{"schemas":{"AdjustIn":{"properties":{"amount":{"type":"integer","title":"Amount"},"reason":{"type":"string","title":"Reason"},"idempotency_key":{"type":"string","title":"Idempotency Key"}},"type":"object","required":["amount","reason","idempotency_key"],"title":"AdjustIn"},"ApproveIn":{"properties":{"comment":{"type":"string","title":"Comment","default":""},"override":{"type":"boolean","title":"Override","default":false}},"type":"object","title":"ApproveIn"},"CancelIn":{"properties":{"reason":{"type":"string","title":"Reason"}},"type":"object","required":["reason"],"title":"CancelIn"},"CodeIn":{"properties":{"code":{"type":"string","title":"Code"},"fp":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fp"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"}},"type":"object","required":["code"],"title":"CodeIn"},"CommentBody":{"properties":{"body":{"type":"string","title":"Body"},"pinned":{"type":"boolean","title":"Pinned","default":false}},"type":"object","required":["body"],"title":"CommentBody"},"CommentIn":{"properties":{"comment":{"type":"string","title":"Comment","default":""},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},"type":"object","title":"CommentIn"},"DecisionIn":{"properties":{"status":{"type":"string","title":"Status"},"reason":{"type":"string","title":"Reason","default":""}},"type":"object","required":["status"],"title":"DecisionIn"},"DeclineIn":{"properties":{"reason_id":{"type":"integer","title":"Reason Id"},"comment":{"type":"string","title":"Comment","default":""}},"type":"object","required":["reason_id"],"title":"DeclineIn"},"DocIn":{"properties":{"kind":{"type":"string","title":"Kind"},"note":{"type":"string","title":"Note","default":""},"file_name":{"type":"string","title":"File Name","default":""}},"type":"object","required":["kind"],"title":"DocIn"},"ForfeitIn":{"properties":{"reason":{"type":"string","title":"Reason"}},"type":"object","required":["reason"],"title":"ForfeitIn"},"GrantIn":{"properties":{"offer_id":{"type":"integer","title":"Offer Id"},"base_amount":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Base Amount"},"comment":{"type":"string","title":"Comment","default":""},"idempotency_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency Key"}},"type":"object","required":["offer_id"],"title":"GrantIn"},"InviteIn":{"properties":{"note":{"type":"string","title":"Note","default":""},"max_uses":{"type":"integer","title":"Max Uses","default":1},"days":{"type":"integer","title":"Days","default":14}},"type":"object","title":"InviteIn"},"LangIn":{"properties":{"lang":{"type":"string","title":"Lang"}},"type":"object","required":["lang"],"title":"LangIn"},"LoginIn":{"properties":{"username":{"type":"string","title":"Username"},"password":{"type":"string","title":"Password"}},"type":"object","required":["username","password"],"title":"LoginIn"},"PasswordIn":{"properties":{"current":{"type":"string","title":"Current"},"new":{"type":"string","title":"New"},"new2":{"type":"string","title":"New2"}},"type":"object","required":["current","new","new2"],"title":"PasswordIn"},"PayIn":{"properties":{"comment":{"type":"string","title":"Comment","default":""}},"type":"object","title":"PayIn"},"PinIn":{"properties":{"pinned":{"type":"boolean","title":"Pinned"}},"type":"object","required":["pinned"],"title":"PinIn"},"PreviewIn":{"properties":{"template_type":{"type":"string","title":"Template Type"},"template_id":{"type":"integer","title":"Template Id"},"player_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Player Id"},"locale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Locale"}},"type":"object","required":["template_type","template_id"],"title":"PreviewIn"},"ProfileIn":{"properties":{"changes":{"additionalProperties":true,"type":"object","title":"Changes"},"comment":{"type":"string","title":"Comment"}},"type":"object","required":["changes","comment"],"title":"ProfileIn"},"SendIn":{"properties":{"template_type":{"type":"string","title":"Template Type"},"template_id":{"type":"integer","title":"Template Id"},"player_ids":{"items":{"type":"integer"},"type":"array","title":"Player Ids"},"kind":{"type":"string","title":"Kind"},"campaign_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaign Ref"}},"type":"object","required":["template_type","template_id","player_ids","kind"],"title":"SendIn"},"SettingsIn":{"properties":{"silent_mode":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Silent Mode"},"rate_per_hour":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rate Per Hour"},"comment":{"type":"string","title":"Comment","default":""},"confirm":{"type":"string","title":"Confirm","default":""}},"type":"object","title":"SettingsIn"},"StartIn":{"properties":{"player_id":{"type":"integer","title":"Player Id"},"provider":{"type":"string","title":"Provider","default":"auto"},"level":{"type":"string","title":"Level","default":"identity"}},"type":"object","required":["player_id"],"title":"StartIn"},"TagIn":{"properties":{"tag_id":{"type":"integer","title":"Tag Id"},"days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Days"}},"type":"object","required":["tag_id"],"title":"TagIn"},"TestMessageIn":{"properties":{"integration":{"type":"string","title":"Integration"},"recipient":{"type":"string","title":"Recipient"},"subject":{"type":"string","title":"Subject","default":"Selten test"},"body":{"type":"string","title":"Body","default":"Test message from the Selten back office."}},"type":"object","required":["integration","recipient"],"title":"TestMessageIn"},"app__bo__engine__SaveIn":{"properties":{"data":{"additionalProperties":true,"type":"object","title":"Data"},"comment":{"type":"string","title":"Comment","default":""},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version"}},"type":"object","required":["data"],"title":"SaveIn"},"app__routes_admin__BulkIn":{"properties":{"ids":{"items":{"type":"integer"},"type":"array","title":"Ids"},"action":{"type":"string","title":"Action"},"reason":{"type":"string","title":"Reason","default":""},"tag_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tag Id"}},"type":"object","required":["ids","action"],"title":"BulkIn"},"app__routes_admin__StatusIn":{"properties":{"status":{"type":"string","title":"Status"},"reason":{"type":"string","title":"Reason","default":""}},"type":"object","required":["status"],"title":"StatusIn"},"app__routes_cashier__BulkIn":{"properties":{"ids":{"items":{"type":"integer"},"type":"array","title":"Ids"},"action":{"type":"string","title":"Action"},"reason_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Reason Id"},"comment":{"type":"string","title":"Comment","default":""}},"type":"object","required":["ids","action"],"title":"BulkIn"},"app__routes_projects__StatusIn":{"properties":{"status":{"type":"string","title":"Status"},"comment":{"type":"string","title":"Comment","default":""}},"type":"object","required":["status"],"title":"StatusIn"},"Error":{"type":"object","required":["error"],"additionalProperties":true,"properties":{"error":{"type":"string","description":"Stable machine code, the client translates it."},"fields":{"type":"array","items":{"type":"string"},"description":"With `bad_request`: fields that failed validation."},"permission":{"type":"string","description":"With `forbidden`: the missing permission."}},"example":{"error":"forbidden","permission":"players:edit"}}},"responses":{"BadRequest":{"description":"Validation or business rule failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"bad_request","fields":["amount"]}}}},"Unauthorized":{"description":"No session, the session has ended, or the signature is wrong.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"unauthorized"}}}},"Forbidden":{"description":"No permission, a wrong CSRF token, or the password must be changed first.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"forbidden","permission":"players:edit"}}}}},"securitySchemes":{"staffSession":{"type":"apiKey","in":"cookie","name":"selten_adm","description":"Staff session (password + TOTP), one for bo, core and board."},"staffCsrf":{"type":"apiKey","in":"header","name":"X-CSRF-Token","description":"Value of the cookie `selten_adm_csrf`; required for every non-GET request."}}}}