@zaisma/cli 0.60.0 → 0.62.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/skill/SKILL.md CHANGED
@@ -27,7 +27,7 @@ The MCP also serves this skill and its references as resources (`zaisma://skill`
27
27
  - The folder needs an `index.html` at the top.
28
28
  4. **The scan.** Every version is scanned, usually in under a minute: malware, known images and Zaisma's own file checks. `get_version` shows the result, and `performance_check` on it says how the game started in Chrome, with notes on what would make it much smaller. A held version waits for a person, usually within a day.
29
29
  5. **Show the developer the preview link.** A passed version gets a private preview link that opens only for its developer. Always show it before publishing.
30
- 6. **The AI review.** A version others can reach gets an AI review against the content rules before it goes live. `is_ai_review_needed_to_publish` and `usual_ai_review_duration_min` on the version say so first: tell the developer how long it usually takes, never as a promise. `ai_review_speed` says whether it runs at once (a small fix of 1 MB or less of new code to a game that passed) or in a batch. Start it ahead of a launch with `start_ai_review`. Reviews count on the game's hosting meter. When a live game breaks, roll back first (publish the last version that passed: free and instant, no review), then publish the fix. A developer who has earned it (`get_access`, `standing.publish_before_ai_review_enabled`) can go live at once with the review pending. A game only its developer can reach never gets one.
30
+ 6. **The fixed checks decide.** No AI reads an upload: Zaisma's fixed checks and the sandbox decide every version, the same answer every time, usually in under a minute. A refused version's `findings` each give their fix (`check_game` and `zaisma check` show the same before uploading); a version that passes can go live at once, with no daily limit and nothing on the meter. A new developer's listed game shows in Zaisma's own lists once it has had real players and a few quiet days (`is_waiting_for_zaisma_lists`); its link plays at once. When a live game breaks, roll back first (publish the last version that worked: instant), then publish the fix.
31
31
  7. **Publish.** `publish_version` makes a passed version live, now or at `scheduled_publish_at`, and rolls back to an older one the same way. A publish is a quiet patch unless `is_big_update` is true (with `patch_notes`): only that shows players the Updated tag. `match_update_mode: "now"` switches running matches within seconds instead of at their next match.
32
32
  8. **Choose who plays.** `update_game` with `visibility`: `listed` (everyone, in Zaisma's lists from the first day), `unlisted` (anyone with the link), `private` or `draft`. To let testers play first, keep it private and make tester links with `add_tester_link`. Before a multiplayer game goes public, test it once on Zaisma's rooms through a tester link on the live version (`version_choice: "live"`): that's where the game server's CPU limits, real networks and the chat filter show.
33
33
 
@@ -16,7 +16,7 @@ claude mcp add --transport http zaisma https://zaisma.com/mcp --header "Authoriz
16
16
 
17
17
  Apps that can't send a key connect by signing in instead. In claude.ai: Settings → Connectors → Add custom connector, with `https://zaisma.com/mcp`; ChatGPT and other apps the same way, wherever they add a remote MCP server. The app opens a Zaisma page where you choose what it may do and tap your passkey, then you're back in the app with every tool working. The key command above stays the way for Claude Code and the upload command.
18
18
 
19
- Every tool is a call to this API (`apps/site/src/mcp.ts`): `list_games`, `create_game`, `get_game`, `get_playing_now`, `get_whats_on`, `update_game`, `check_game` (what Zaisma would refuse in a game and what won't work on Zaisma, before uploading; see Checking a game below), `upload_files` (small games up to 5 MB, sent as file contents), `get_version`, `update_version` (a version's notes before it's live), `publish_version` (also rolls back and publishes later), `cancel_scheduled_publish`, `end_preview_links`, `add_image`, `remove_image`, `add_shader`, `check_shader` (a shader drawn as the check would, before it's sent; see Backgrounds below), `remove_shader`, `set_background`, `preview_game_page` (pictures of every place players meet the game, from what you're still designing; see Seeing it as players do below), `add_tester_link`, `update_tester_link`, `remove_tester_link`, `get_reports`, `get_stats`, `get_history`, `get_qr_code` (the game's link, or a room's, as a QR code), `export_game` (everything about a game as one .zip; see Export everything below), `get_logs` (what the game server printed, see A game server's logs below), `get_player`, `get_access` (what the key can do), `get_activity` (your account's activity, needs a full key), `list_api_keys` (your keys and connected apps with their end dates, last use and whether Zaisma turned one off; needs a full key), the sign-in apps' `list_sign_in_apps`, `create_sign_in_app`, `update_sign_in_app` and `delete_sign_in_app`, hosting credit's `get_credit`, `top_up_credit`, `refund_top_up`, `start_ai_review`, `start_credit_plan`, `change_credit_plan`, `stop_credit_plan` and `get_spending_request` (see Hosting and credit below), Zaisma Pro's `get_pro`, `start_pro`, `cancel_pro`, `resume_pro` and `refund_pro` (see Zaisma Pro below), `get_storage`, `set_storage_budget`, `delete_version` and `delete_game`, `bring_back_game`, `erase_game_now`, `get_game_deletion_request` (see Storage below), the Stripe account's `get_stripe_account`, `connect_stripe_account`, `update_stripe_account` and `disconnect_stripe_account` (see Selling with the buy sheet below), the webhooks' `list_webhooks`, `create_webhook`, `update_webhook`, `delete_webhook`, `test_webhook` and `list_webhook_deliveries` (see Webhooks below), a game's secrets' `list_secrets`, `set_secret` and `delete_secret` (see Secrets below), the items' `list_items`, `set_item`, `remove_item`, `set_purchase_settings`, `grant_item`, `list_purchases`, `get_purchase`, `refund_purchase`, `mark_purchase_handled` and `get_player_items` (see Items and purchases below), a game's kept rooms' `list_kept_rooms`, `delete_kept_room`, `bring_back_kept_room` and `erase_kept_room_now`, `restore_kept_room`, `undo_kept_room_restore`, `list_kept_room_restores`, `restore_every_kept_room`, `get_kept_room_restore_batch`, `undo_every_kept_room_restore` (see Kept rooms below), a game's live rooms' `list_rooms`, `get_room`, `send_room_message`, `send_to_every_room`, `list_room_messages`, `cancel_room_message`, `kick_player` and `end_room` (see Reaching live rooms below), the game database's `get_database`, `query_database`, `batch_database`, `export_database`, `import_database`, `erase_player`, `restore_database` and `undo_database_restore` (see The game database below), cloud saves' `list_saves`, `get_save`, `change_save`, `replace_save`, `reset_save`, `list_save_copies`, `get_save_copy` and `restore_save_copy` (see Cloud saves below), and the developer forum's `search_forum`, `get_topic`, `post_topic`, `message_zaisma`, `reply_to_topic`, `vote`, `rate_post`, `bookmark_post`, `report_post`, `forum_people`, `still_happening`, `flag_misplaced`, `follow_topic` and `mark_answer` (see The developer forum below). Bigger builds go through the upload command. Making a game players can play private or a draft again, and ending a live room (`end_room`), need `"confirm": true`, so the AI asks you first.
19
+ Every tool is a call to this API (`apps/site/src/mcp.ts`): `list_games`, `create_game`, `get_game`, `get_playing_now`, `get_whats_on`, `update_game`, `check_game` (what Zaisma would refuse in a game and what won't work on Zaisma, before uploading; see Checking a game below), `upload_files` (small games up to 5 MB, sent as file contents), `get_version`, `update_version` (a version's notes before it's live), `publish_version` (also rolls back and publishes later), `cancel_scheduled_publish`, `end_preview_links`, `add_image`, `remove_image`, `add_shader`, `check_shader` (a shader drawn as the check would, before it's sent; see Backgrounds below), `remove_shader`, `set_background`, `preview_game_page` (pictures of every place players meet the game, from what you're still designing; see Seeing it as players do below), `add_tester_link`, `update_tester_link`, `remove_tester_link`, `get_reports`, `get_stats`, `get_history`, `get_qr_code` (the game's link, or a room's, as a QR code), `export_game` (everything about a game as one .zip; see Export everything below), `get_logs` (what the game server printed, see A game server's logs below), `get_player`, `get_access` (what the key can do), `get_activity` (your account's activity, needs a full key), `list_api_keys` (your keys and connected apps with their end dates, last use and whether Zaisma turned one off; needs a full key), the sign-in apps' `list_sign_in_apps`, `create_sign_in_app`, `update_sign_in_app` and `delete_sign_in_app`, hosting credit's `get_credit`, `top_up_credit`, `refund_top_up`, `start_credit_plan`, `change_credit_plan`, `stop_credit_plan` and `get_spending_request` (see Hosting and credit below), Zaisma Pro's `get_pro`, `start_pro`, `cancel_pro`, `resume_pro` and `refund_pro` (see Zaisma Pro below), `get_storage`, `set_storage_budget`, `delete_version` and `delete_game`, `bring_back_game`, `erase_game_now`, `get_game_deletion_request` (see Storage below), the Stripe account's `get_stripe_account`, `connect_stripe_account`, `update_stripe_account` and `disconnect_stripe_account` (see Selling with the buy sheet below), the webhooks' `list_webhooks`, `create_webhook`, `update_webhook`, `delete_webhook`, `test_webhook` and `list_webhook_deliveries` (see Webhooks below), a game's secrets' `list_secrets`, `set_secret` and `delete_secret` (see Secrets below), the items' `list_items`, `set_item`, `remove_item`, `set_purchase_settings`, `grant_item`, `list_purchases`, `get_purchase`, `refund_purchase`, `mark_purchase_handled` and `get_player_items` (see Items and purchases below), a game's kept rooms' `list_kept_rooms`, `delete_kept_room`, `bring_back_kept_room` and `erase_kept_room_now`, `restore_kept_room`, `undo_kept_room_restore`, `list_kept_room_restores`, `restore_every_kept_room`, `get_kept_room_restore_batch`, `undo_every_kept_room_restore` (see Kept rooms below), a game's live rooms' `list_rooms`, `get_room`, `send_room_message`, `send_to_every_room`, `list_room_messages`, `cancel_room_message`, `kick_player` and `end_room` (see Reaching live rooms below), the game database's `get_database`, `query_database`, `batch_database`, `export_database`, `import_database`, `erase_player`, `restore_database` and `undo_database_restore` (see The game database below), cloud saves' `list_saves`, `get_save`, `change_save`, `replace_save`, `reset_save`, `list_save_copies`, `get_save_copy` and `restore_save_copy` (see Cloud saves below), and the developer forum's `search_forum`, `get_topic`, `post_topic`, `message_zaisma`, `reply_to_topic`, `vote`, `rate_post`, `bookmark_post`, `report_post`, `forum_people`, `still_happening`, `flag_misplaced`, `follow_topic` and `mark_answer` (see The developer forum below). Bigger builds go through the upload command. Making a game players can play private or a draft again, and ending a live room (`end_room`), need `"confirm": true`, so the AI asks you first.
20
20
 
21
21
  Every tool has an output schema, and answers are compact JSON. Arguments are closed: one a tool doesn't take is refused (`unknown_field`, with the arguments it does take), never quietly dropped, and a missing required one is `missing_field`. A refused call is a tool result with `isError: true`, the error object below as its `structuredContent` and its message, fix and code as its text; each tool's listed output schema is its answer or that error, because MCP clients check both against it. The tools that are easy to get wrong (`update_game`, `check_game`, `upload_files`, `publish_version`, `search_forum`, `post_topic`, `change_save`, `replace_save`, `set_secret`) carry good examples in their input schema and bad ones at the end of their description.
22
22
 
@@ -186,7 +186,6 @@ The HTTP status goes with the code, as listed. The list lives in `ERROR_CODES` (
186
186
  | `big_update_needs_patch_notes` | 400 | A big update has no patch_notes, and a big update must say what's new. |
187
187
  | `big_update_already_live` | 400 | The version has been live already, and only a version going live for the first time can be a big update. |
188
188
  | `bad_publish_when_approved` | 400 | publish_when_approved isn't true or false. |
189
- | `bad_publish_after_ai_review_enabled` | 400 | publish_after_ai_review_enabled isn't true or false, or it came with nothing to publish. |
190
189
  | `bad_match_update_mode` | 400 | match_update_mode isn't next_match or now, or it came without publish_when_approved. |
191
190
  | `version_limit` | 429 | The game has had 100 versions in the last day. |
192
191
  | `version_in_use` | 409 | The version can't be deleted: it's live, set to publish, or a tester link picked it. |
@@ -426,25 +425,17 @@ Every call that changes something answers with `next_steps`: the calls that usua
426
425
  - `after_sec`: how long to wait first, or `null` for straight away.
427
426
  - What follows today: a restored kept room, its undo and restores (`undo_kept_room_restore`, `list_kept_room_restores`); a restore of every kept room, its progress and the database and version calls with the same time (`get_kept_room_restore_batch`, `restore_database`, `publish_version`); a new game, its upload (`upload_files`); a new version, checking its scan (`get_version`); publishing while the game is a draft or private, making it `listed` when the developer wants players in (`update_game`); making a game `listed` or `unlisted` with nothing live, publishing the version that passed (`publish_version`), checking the one being scanned, or uploading one; `multiplayer_mode: "own"` without a game server, uploading one; scheduling a version still being scanned, checking its scan; a new webhook, or a new `endpoint_url` or signing secret, sending it a test event (`test_webhook`); a database restore, seeing the tables it went back to (`get_database`) and undoing it (`undo_database_restore`); an undo, `get_database`; a new image or shader, checking it (`get_game`); a shader check that passed, sending the same shader (`add_shader`, with its `image` and `buffers` to add); a new credit checkout or refund, `get_credit`; a new Zaisma Pro checkout or a Pro refund, `get_pro`; a kept room deleted, `list_kept_rooms`; a send to every room, `list_rooms`; a scheduled one, `list_room_messages` once it's due and `cancel_room_message`; a kick, `get_room`; an ended room, `list_rooms`; a secret set while the game server has no allowed hosts, `update_game` with `game_server_allowed_hosts`; a database import, `get_database`; `minimum_player_age_years` set to 16 or 18, which passes the versions held only for lifelike gore, `get_version`; a priced item before the Stripe account is connected or can take payments, and a new Stripe account connection, `get_stripe_account`. Other calls answer `[]` today; read `next_steps` on every answer, since more calls fill it within v1.
428
427
 
429
- ## The AI review
428
+ ## The fixed checks are the review
430
429
 
431
- The fixed checks (malware scan, image matching and Zaisma's own file checks) run on every upload, and any can stop it. The AI review follows for what other people can reach, and only the newest live version is reviewed, the same for every developer.
430
+ No AI reads an upload. Every version passes Zaisma's fixed checks and the sandbox's limits, and they decide it: the same files always get the same answer, usually in under a minute. A version that passes is ready to publish at once, with nothing reviewing it afterwards, no daily limit, and nothing on the game's meter.
432
431
 
433
- - **A version only its developer can reach gets none and never waits:** a draft, or a live version of a `draft` or `private` game with nothing sold. Until a review lets it through, its `preview_url` opens only for the game's signed-in developer. An AI tests with `npx @zaisma/cli play-locally`, or starts the review.
434
- - **Before publishing,** `is_ai_review_needed_to_publish` says whether publishing starts a review, and `usual_ai_review_duration_min` how long a review like it usually takes, from recent real ones, not a promise: a batch can take much longer.
435
- - **While it runs,** `ai_review_step` says where it is (`waiting_for_daily_review`, `in_line`, `reading_files`, `judging`) and `ai_review_step_started_at` since when; waiting for a daily review, `ai_review_waiting_ahead_count` says how many of the account's reviews of the same size go first and `daily_review_free_at` when one frees up for it. The dashboard shows the same, and moves with it.
436
- - **A developer who has earned it** (`GET /access`, `standing.publish_before_ai_review_enabled`: established, a card that paid or a Stripe account that can take payments, with no ruling in 30 days) publishes straight away, with the review pending. With `publish_after_ai_review_enabled` it goes live only once it passes.
437
- - **A `draft` or `private` game's tester links** start no review when you publish: a tester's first open of the build a link points at does, so ten publishes and one play-test are one review. Your own opening of the link never does. Until it passes, testers play the last build that passed, and the link says a newer build is being checked; only a game with no build that passed yet makes them wait, with how long it usually takes. A link to one `picked` build waits for that build. For a developer who has earned it, testers get the new build at once, with the review running beside it. `start_ai_review` has it done before you send the links.
438
- - **Until then, what other people can reach waits for the review:** a publish stays off and goes live once it passes; a hidden game set `listed` or `unlisted` stays hidden, with `visibility_after_ai_review` saying what it becomes. A game's first review runs at full price in about a minute, and so does a small fix (1 MB or less of new code to read) to a game whose live version passed; other updates go in half-price batches, and `usual_ai_review_duration_min` says how long those usually take, from recent real ones. `ai_review_speed` says which speed a version gets before publishing. A tweak (nothing new in the evidence) reuses the earlier verdict. Only what changed is read again, and a script a minifier rebuilt counts only code that really changed, not the short names it gave out again.
439
- - **When a live game breaks, roll back first, then fix:** publishing the last version that passed is free and instant and needs no review; then publish the fix, which as a small fix is usually reviewed in about a minute.
440
- - **Reviews count on the game's hosting meter** (`ai_reviews` in `get_stats`' `shares`), against the free allowance and then credit. A re-check after a player's report is Zaisma's. A game paused for money (`free_used`, `budget_used` or `credit_used`) gets no review until its hosting starts again: its version waits (`ai_review_waiting_reason` `hosting_paused_for_money`) for credit, a budget or the next month. Rolling back to a version that passed needs no review.
441
- - **A game with 1,000 counted plays in the last 7 days** is reviewed at once, at full price.
442
- - **Ahead of a launch,** `POST /games/:slug/versions/:version_id/ai-review` (`start_ai_review`) starts a review without publishing. A scheduled release's review starts by itself up to a day before its time when other people can reach the game. If it isn't done on time, a developer who has earned it goes live anyway, and anyone else goes live when it passes.
443
- - **A stop** rolls the game back to the last version that passed, in running matches too, or with none leaves the game with no live version and its `review_reason`, until a fix goes live. The version's `findings` give the reason and the fix. The `ai_review_finished` webhook says when any review ends.
444
- - **Past Zaisma's monthly review budget,** a version waits for its review (`ai_review_waiting_reason` `review_budget_used`, `ai_review_step` `in_line`) and goes on by itself once reviews are available again; it never goes on unreviewed. A game paying for its own hosting with credit is reviewed at once, and a rollback to a version that passed is still instant. Only a re-check after a player's report goes on with the fixed checks alone (the note `ai_review_budget_used`).
445
- - **Files are read once.** A file any version that passed already had read is never read again, whoever sends it.
446
-
447
- `ai_review_status` is `not_started`, `waiting`, `reviewing`, `passed`, `stopped` or `skipped`; `ai_review_speed` is `at_once` or `batch`.
432
+ - **What the checks refuse,** each with its fix: crypto miners (in code, in an embedded module or in a `.wasm` file), code that runs text it decodes (base64, character codes or bytes) as code, password fields, and asking for a crypto wallet's seed phrase or private key or for access to a wallet other than Bitcoin's. `check_game` and `zaisma check` run the same checks before you upload (`packages/cli/fixed-checks.mjs`, open source like the rest of the upload command).
433
+ - **What the sandbox stops while the game runs,** so trying it does nothing: connections to anything but the game's own files, Zaisma rooms and its own servers; forms that send anywhere; changing the page outside the game; opening sites without a tap; peer connections around Zaisma's relay. The checks note these when they see them, and hold nothing.
434
+ - **What a person looks at:** known abuse images (matched and reported as the law requires), another developer's files, a code file too big to read in one go, and a scan that didn't finish.
435
+ - **What goes by player reports:** everything no check can see for free and at once, like pictures, typed chat, a game asking for personal details, or lifelike gore. The content rules are the same either way.
436
+ - **What watches after publishing:** players' reports, and Zaisma's watchers, which flag a game for a person to look at and change nothing by themselves: a game server on free hosting using far more time than its players explain, players' devices working unusually hard while the game is open, and plays with no real people behind them. For the second, Zaisma adds a small script to every game page that counts, where the browser says (Chrome and Edge), the seconds the game is on screen and the seconds of them the device's processor is under heavy load; only those two numbers leave the game's frame, added up per game and day.
437
+ - **Zaisma's own lists wait for a new developer's game:** a listed game plays from its link and tester links at once, and Zaisma's home, browsing and search show it once it has had 10 real players and been live 3 days with no upheld report in the last 3. An established developer's game (`get_access` standing), and one from a developer Zaisma let publish before the beta, shows at once. `is_waiting_for_zaisma_lists` on the game says which.
438
+ - **When a live game breaks, roll back first, then fix:** publishing the last version that worked is instant; then publish the fix.
448
439
 
449
440
  ## Holds and takedowns
450
441
 
@@ -455,7 +446,7 @@ When Zaisma holds, rejects or takes something down, it says why, the same way in
455
446
  ```
456
447
 
457
448
  - `code`: stable, one problem per code, from the list below, never the same as an error code; search the forum with it (`search_forum`).
458
- - `message`: what happened and why, in plain words: the code's meaning, or for the AI review and a person at Zaisma, their own words.
449
+ - `message`: what happened and why, in plain words: the code's meaning, or for a person at Zaisma, their own words.
459
450
  - `content_rule`: the content rule it's about ([zaisma.com/legal/content-rules](https://zaisma.com/legal/content-rules), each rule at `#<rule>`), or `null` when it breaks none, like a check that couldn't finish. A hold names the rule a person checks it against; a rejection or takedown, the rule it broke.
460
451
  - `fix`: what to do about it, naming the call when there is one.
461
452
  - `message_for_people`: what happened and what to do, in a page's words, naming no call or field: the only text Zaisma's pages show. Show it to your human as it is when they should read what the dashboard would say.
@@ -464,30 +455,30 @@ Where it shows:
464
455
 
465
456
  - **A game's `review_reason`**: why it's `held` or `removed`; `null` while it's `pending` or `live`.
466
457
 
467
- Zaisma acts on `copyright`, `defamation` and `trademark` only when someone sends a notice ([zaisma.com/legal/dmca](https://zaisma.com/legal/dmca), [zaisma.com/legal/defamation](https://zaisma.com/legal/defamation), [zaisma.com/legal/trademark](https://zaisma.com/legal/trademark)), in a game's files and on its covers, backgrounds and title alike, and doesn't judge the notice itself: the game is `held` with `copyright_notice`, `defamation_notice` or `trademark_notice`, and the message says what the notice names. The game can still get new versions: publish one without it, and a person at Zaisma checks it and shows the game again, usually within a day (publishing tells Zaisma; there's nothing more to send). If the notice is wrong, the developer sends a counter-notice instead, which goes to the person who sent the notice; the game is back after 10 working days unless they say they've gone to court. The scan and the AI review never look for either rule.
458
+ Zaisma acts on `copyright`, `defamation` and `trademark` only when someone sends a notice ([zaisma.com/legal/dmca](https://zaisma.com/legal/dmca), [zaisma.com/legal/defamation](https://zaisma.com/legal/defamation), [zaisma.com/legal/trademark](https://zaisma.com/legal/trademark)), in a game's files and on its covers, backgrounds and title alike, and doesn't judge the notice itself: the game is `held` with `copyright_notice`, `defamation_notice` or `trademark_notice`, and the message says what the notice names. The game can still get new versions: publish one without it, and a person at Zaisma checks it and shows the game again, usually within a day (publishing tells Zaisma; there's nothing more to send). If the notice is wrong, the developer sends a counter-notice instead, which goes to the person who sent the notice; the game is back after 10 working days unless they say they've gone to court. The fixed checks never look for any of these rules.
468
459
 
469
460
  When a country's law forbids what US law allows (the UK's hatred offences, say), a notice from a court, regulator or police there blocks the game for players in that country only, and everyone else still plays it: it's in the game's `country_blocks` with `country_law_notice`, whose message says which law and what it names, and the `game_blocked_in_country` alert. Players there get a page saying it isn't available in their country (HTTP 451), and Zaisma's lists, its files and Zaisma rooms leave it out there; its preview links still open, so you can check a fix from there. The game keeps its versions and can publish more: publish one without what the notice names, and a person at Zaisma checks it and lifts the block, usually within a day. If the notice is wrong, write to safety@zaisma.com with the game's slug and why. A `country_blocks_changed` webhook says when a block starts or ends.
470
461
 
471
- - **A version's `review_reason`**: a person rejected it, or a report paused the update; `null` otherwise. Its `findings` are what the scan found that holds or rejects it, each `{"code", "severity", "message", "content_rule", "path", "fix", "message_for_people"}`, where `severity` is `reject` (it can't go live) or `hold` (a person at Zaisma looks first, usually within a day). A finding with severity `info` is a note and holds nothing: `unregistered_link`, `unlisted_address`, `api_key_in_files` and `ai_player_name_unchecked` (a name players type for themselves that others see: show the Zaisma name, or check it with Zaisma's chat check). The AI review stops a version only for a break its quoted code proves by itself: a finding it isn't sure of comes as a note on a passed version, for you to check. A game that bumps into a protection the sandbox already enforces (a plain `window.open`, a call to an address that isn't Zaisma rooms or its own servers) passes with a note; a game that tries to get around one (a site opened with no tap, a link or address built from pieces, the page outside the frame, a peer connection from a frame of its own) is rejected as `ai_protection_dodged`. Sending the page outside the frame a message (`parent.postMessage`) isn't trying to get around anything. The version that only removes what held or rejected a game passes by itself, with no daily review used.
462
+ - **A version's `review_reason`**: a person rejected it, or a report paused the update; `null` otherwise. Its `findings` are what the scan found that holds or rejects it, each `{"code", "severity", "message", "content_rule", "path", "fix", "message_for_people"}`, where `severity` is `reject` (it can't go live: fix what it names and upload again) or `hold` (a person at Zaisma looks first, usually within a day). A finding with severity `info` is a note and holds nothing: `unregistered_link`, `unlisted_address`, `top_navigation`, `relay_bypass`, `external_form` (each something the sandbox already stops) and `api_key_in_files`. A fixable refusal never counts against the developer's standing; a crypto miner or a file antivirus engines flag does.
472
463
 
473
- The AI review judges each content rule by one yes/no test, shown under the rule at [zaisma.com/legal/content-rules](https://zaisma.com/legal/content-rules) (`CONTENT_RULE_DETAILS` in `packages/core/src/review.ts`). A version whose files answer a test yes is rejected within minutes, with the rule, the line it found and the fix, and no person; so is obfuscated code, which the review can't read (a minified build is fine). The AI review holds a version for a person only for lifelike gore (`ai_lifelike_gore`, which the game's age setting decides) or when it can't finish.
474
464
  - **An image's `review_reason`**: why it wasn't approved.
475
465
  - **`get_history`**: each hold, rejection and takedown with its `review_reason`, kept after it's over.
476
- - **A hold or rejection released because the review was wrong:** if the review got it wrong, `message_zaisma` with the `version_id`. When a person at Zaisma approves a version the AI review held or rejected, `get_history` says "A person looked and released this hold. It didn't count against your daily reviews." with the version's ID, and that review is given back: it doesn't count toward your 5 judged reviews a day.
466
+ - **A hold or rejection a person finds wrong:** `message_zaisma` with the `version_id`; a person at Zaisma looks, usually within a day.
477
467
  - **Errors:** `game_removed` and `not_approved` put the reason's code and message in theirs, and its fix as theirs.
478
468
 
479
469
  The list lives in `REVIEW_CODES` and the rules in `CONTENT_RULES` (`packages/core/src/review.ts`), and a test keeps this page in step with them. Rule says which content rule a code is about: one rule always, `none` when it breaks none, or `picked` when the person deciding picks it each time.
480
470
 
481
- **The scan's checks**
471
+ **The fixed checks**
482
472
 
483
473
  | Code | Rule | Meaning |
484
474
  | --- | --- | --- |
485
475
  | `crypto_miner` | `malware` | The code mines cryptocurrency. |
486
- | `packed_code` | `malware` | Code is packed or decoded at runtime (eval of encoded text), which hides what it does. |
487
- | `top_navigation` | `malware` | The code tries to change the page outside the game (the top or parent window's location). |
488
- | `relay_bypass` | `malware` | The code makes a WebRTC connection from a frame of its own, which skips Zaisma's relay and would show players each other's internet address. |
476
+ | `disguised_code` | `malware` | The code runs text it decodes (base64, character codes or bytes) as code, which hides what it runs. |
489
477
  | `password_field` | `malware` | The game has a password field. Games don't need one, and phishing pages do. |
490
- | `external_form` | `personal_details` | The game has a form that sends what players type to another site. |
478
+ | `wallet_request` | `crypto` | The game asks players for a crypto wallet's seed phrase or private key, or for access to a wallet other than Bitcoin's. |
479
+ | `top_navigation` | none | The code tries to change the page outside the game (the top or parent window's location). The game's frame stops it, so nothing happens. |
480
+ | `relay_bypass` | none | The code makes a WebRTC connection from a frame of its own. Zaisma's relay still carries it, so players never see each other's internet address. |
481
+ | `external_form` | none | The game has a form that would send what players type to another site. The game's security policy stops it, so it never sends. |
491
482
  | `antivirus_flag` | `malware` | Antivirus engines flag a file: three or more reject the version, fewer hold it for a person. |
492
483
  | `unregistered_link` | none | The game opens a site with window.open or a link that opens a new tab. The sandbox blocks that, so players tapping it get nothing. |
493
484
  | `unlisted_address` | none | The game connects to an address that isn't Zaisma rooms or one of its own servers. The game's security policy blocks it, so the call fails for players. |
@@ -499,44 +490,19 @@ The list lives in `REVIEW_CODES` and the rules in `CONTENT_RULES` (`packages/cor
499
490
 
500
491
  | Code | Rule | Meaning |
501
492
  | --- | --- | --- |
502
- | `too_much_code` | none | The game has more code than the review reads (about 19 MB of text), so a person at Zaisma looks first. |
493
+ | `too_much_code` | none | A code file is bigger than the checks read in one go (40 MB), so a person at Zaisma looks first. |
503
494
  | `too_many_pictures_inside_packs` | none | The game's packs hold more pictures than image matching checks inside them (10,000), so the first 10,000 were matched. |
504
495
  | `image_matching_off` | none | Image matching isn't connected, so a person at Zaisma approves each version. |
505
496
  | `image_matching_failed` | none | Image matching couldn't check every picture and video, so a person at Zaisma looks first. |
506
- | `ai_review_off` | none | AI review isn't set up, so a person at Zaisma approves each version. |
507
- | `ai_review_budget_used` | none | This month's AI reviews are used up, so this version went on with the fixed checks alone. |
508
- | `ai_review_declined` | none | The AI reviewer wouldn't review the game, so a person at Zaisma looks. |
509
- | `ai_review_failed` | none | The AI review didn't finish, so a person at Zaisma looks. |
510
- | `daily_large_reviews_used` | none | This developer's 5 large reviews for today (a new game or a real change, judged) are used, so this version waits for the next one to free up. |
511
- | `daily_small_reviews_used` | none | This developer's 30 small reviews for today (versions read by the AI) are used, so this version waits unread for the next one to free up. |
512
- | `hosting_paused_for_money` | none | This game's hosting is paused for money (its free allowance, budget or credit is used), so this version's review waits for credit, a budget or the next month. Reviews are paid like hosting: past the free allowance, by credit. |
513
- | `review_budget_used` | none | Zaisma's AI reviews for this month are used up, so this version waits for the review instead of going on without it, until next month or until Zaisma adds more. |
514
- | `version_replaced` | none | A newer version of this game came in while this one waited, so this one isn't reviewed. |
515
497
  | `scan_failed` | none | The scan didn't finish after three tries, so a person at Zaisma looks. |
516
498
 
517
- **The AI review**
518
-
519
- Every version gets the same review, as a process rather than one look. Zaisma's own checks list what each file connects to, the links it opens and the code it can't follow. Reader models then read all of the code and pictures, in pieces, and pull out the exact lines and pictures that matter. Last, one stronger model judges from that list alone and picks its findings from the codes below, so the same game gets the same verdict every run. A finding's `path` and `quote` point at the exact line it's about.
499
+ **From the AI review, before the fixed checks became the review**
520
500
 
521
- Each developer gets two kinds of review a day, across all their games. A large review is a new game or a real change: read by the reader models and judged, 5 a day. A small review is a version the reader models read, 30 a day: a tweak of a game that already passed (levels, sprites, balance: nothing new it connects to, opens, asks for or shows) keeps that version's verdict on a small review alone, and a real change uses one of each. Files a version shares unchanged with an earlier one aren't read again, so a version that changes nothing to read uses neither. Past 30, a new version is held unread with `daily_small_reviews_used`; past 5, a real change is held with `daily_large_reviews_used`, and tweaks still pass at once. Either way it's checked by itself as soon as one frees up, within a day. A version after a held one is checked for what the hold named and for anything new; what already passed stays passed. A version that's still waiting when a newer one of the same game comes in steps aside (`version_replaced`, with `replaced_by_version_id` on the version): only the newest is reviewed, and the older one never goes live by itself.
501
+ Versions the AI review held before Nov 24, 2026 still read with its code. Setting the game for 16 and up passes one held only for lifelike gore.
522
502
 
523
503
  | Code | Rule | Meaning |
524
504
  | --- | --- | --- |
525
- | `ai_malware` | `malware` | The AI review found malware: a crypto miner, or code that hides what it runs. |
526
- | `ai_phishing_or_scam` | `malware` | The AI review found phishing or a scam. |
527
- | `ai_data_collection` | `personal_details` | The AI review found the game asking players for personal details, like emails, real names, birthdays or location. |
528
- | `ai_sexual_content` | `sexual` | The AI review found sexual content or nudity. |
529
- | `ai_private_details_or_threats` | `real_people` | The AI review found private details about a real person, like a home address, phone number or school, or a real threat against one. |
530
- | `ai_protection_dodged` | `malware` | The AI review found code that tries to get around one of Zaisma's protections: the page outside the game's frame, the relay between players, registered links or the list of servers. |
531
505
  | `ai_lifelike_gore` | none | The AI review found lifelike gore (photo-real or lifelike injury shown up close), which plays only in games for 16 and up. |
532
- | `ai_real_money_gambling` | `illegal` | The AI review found real-money gambling. |
533
- | `ai_paid_random_rewards` | `purchases` | The AI review found paid random rewards (loot boxes): something bought with money, or with coins bought with money, that gives a random item. |
534
- | `ai_coin_price_without_real_price` | `purchases` | The AI review found prices in coins or gems with no real price beside them, for coins or gems bought with money. |
535
- | `ai_free_text_chat` | `chat` | The AI review found typed text another player reads as written that doesn't go through Zaisma's chat hosting (room.chat in Zaisma rooms, canChat and checkChat on your own server). |
536
- | `ai_player_name_unchecked` | `chat` | The AI review found a name players type for themselves that other players see, with no check from Zaisma on it. It's a note: nothing is held. |
537
- | `ai_disallowed_crypto` | `crypto` | The AI review found cryptocurrency the rules don't allow: coins other than Bitcoin, tokens, NFTs or airdrops, or Bitcoin used for investment advice, paying players or asking for wallet access. |
538
- | `ai_other` | none | The AI review found faked plays or players, or text that addresses the reviewer. |
539
- | `ai_concern` | none | The AI review held or rejected the version without naming one concern; the message is its summary. |
540
506
 
541
507
  **People and reports**
542
508
 
@@ -588,7 +554,7 @@ Each developer gets two kinds of review a day, across all their games. A large r
588
554
  | `purchases` | Selling paid random rewards (loot boxes), including through coins bought with money, or showing prices in coins or gems bought with money without the real price beside each one, even when the coins themselves are sold at a real price. |
589
555
  | `faked_plays` | Faking plays or players, with bots, scripts or click farms. |
590
556
 
591
- Allowed, even where other platforms ban it (`ALLOWED_CONTENT`): the AI review passes it and report triage dismisses reports about it.
557
+ Allowed, even where other platforms ban it (`ALLOWED_CONTENT`): report triage dismisses reports about it.
592
558
 
593
559
  - Offensive, edgy and dark humor, insults and swearing.
594
560
  - Jokes and opinions about any group, religion, country or political side. There's no hate-speech rule.
@@ -600,7 +566,7 @@ Allowed, even where other platforms ban it (`ALLOWED_CONTENT`): the AI review pa
600
566
  - Trash talk and fiery lobbies: how players talk to each other is up to each game.
601
567
  - Bitcoin games: teaching it, Bitcoin themes, selling items for sats, and tips.
602
568
 
603
- One kind of content plays only in games for 16 and up: lifelike gore, meaning photo-real or lifelike injury shown up close (dismemberment, torture, exposed organs). Cartoon, pixel and stylized blood are fine for everyone. The AI review holds a version with lifelike gore on a game for everyone 13 and up (`ai_lifelike_gore`): set `minimum_player_age_years` to `16` and it passes by itself, or make the gore stylized and upload again. Publishing or giving a tester link such a version while the game is for everyone 13 and up, or lowering the age to `13` while players can reach one, answers `content_needs_minimum_age`. Covers and gallery pictures never show lifelike gore, whatever the age. Players never see the age.
569
+ One kind of content plays only in games for 16 and up: lifelike gore, meaning photo-real or lifelike injury shown up close (dismemberment, torture, exposed organs). Cartoon, pixel and stylized blood are fine for everyone. No check looks for it: players report it, and a person decides. Publishing or giving a tester link such a version while the game is for everyone 13 and up, or lowering the age to `13` while players can reach one, answers `content_needs_minimum_age`. Covers and gallery pictures never show lifelike gore, whatever the age. Players never see the age.
604
570
 
605
571
  For where each line is, see the yes/no test under each rule at [zaisma.com/legal/content-rules](https://zaisma.com/legal/content-rules).
606
572
 
@@ -687,7 +653,7 @@ Every call is checked before any of it runs, in this order: the key's access, wh
687
653
  | `GET /games/:slug` | One game with its `alerts` (see Alerts below), `playing_now_player_count` (the exact number of people playing it now: browsers that pressed Play and still have it on screen, and players in your Zaisma rooms, each counted once however many rooms they sit in, from the last 6 minutes; players see it from 3 up), `images`, `versions` (newest first, each with its `review_reason` and scan `findings`) and `testers`. |
688
654
  | `PATCH /games/:slug` | Change any of `new_slug` (the game's link, only while `can_change_slug`: a draft or private game never published, with no tester links or kept rooms; else `slug_locked`), `title`, `description`, `visibility`, `devices`, `controls`, `genres`, `screen_orientation`, `play_modes`, `cloud_saves_enabled`, `account_offer_enabled`, `deleted_account_erase_enabled`, `friend_joins_enabled`, `performance_measuring_enabled`, `room_browsing`, `multiplayer_mode`, `account_requirement`, `minimum_player_age_years`, `game_server_allowed_hosts`, `own_server_urls`, `links`, `glass_tint_color`, `demo_game_slug`, `full_game_item_name` (the game's price to play, see "Sell your game once" under Items and purchases; it needs `purchase_access` `write`), `monthly_budget_cents` (the game's monthly budget from your hosting credit, see Hosting and credit; it needs `credit_access` `write`, and a first or higher budget answers `confirmation_needed`). Leave out what stays the same; `null` clears it. Answers with the `game`, `review_message` (set when new words wait for review), `game_server_problem` (why the game's own game server can't run yet, or `null`) and `next_steps`. |
689
655
 
690
- A game looks like: `slug`, `page_url`, `can_change_slug`, `title`, `description`, `visibility`, `visibility_after_ai_review`, `review_status`, `review_reason`, `erases_at`, `is_erase_now_allowed`, `country_blocks`, `devices`, `controls`, `genres`, `screen_orientation`, `play_modes`, `cloud_saves_enabled`, `account_offer_enabled`, `deleted_account_erase_enabled`, `friend_joins_enabled`, `performance_measuring_enabled`, `multiplayer_mode`, `room_browsing`, `account_requirement`, `minimum_player_age_years`, `game_server_allowed_hosts`, `own_server_urls`, `links`, `link_out_url`, `link_out_who_can_open`, `link_out_review_reason`, `details_waiting_for_review`, `title_listing_reason`, `glass_tint_color`, `monthly_budget_cents` (`null`: no paid hosting), `purchase_label` (what the game page says it sells, see In-game purchases), `refund_policy` and `refund_policy_text` (`null` until it states one), `full_game_item_name` (`null`: free to play), `demo_game_slug` (`null`: no demo), `first_published_at` (when it first went live; it never moves), `big_update_at` (the last marked big update; `null`: none yet), `recently_updated_at` (where Browse's Recently updated places it) and `updated_at`.
656
+ A game looks like: `slug`, `page_url`, `can_change_slug`, `title`, `description`, `visibility`, `is_waiting_for_zaisma_lists` (a listed game from a new developer, waiting for real players and a few quiet days before Zaisma's own lists show it; its link plays meanwhile), `review_status`, `review_reason`, `erases_at`, `is_erase_now_allowed`, `country_blocks`, `devices`, `controls`, `genres`, `screen_orientation`, `play_modes`, `cloud_saves_enabled`, `account_offer_enabled`, `deleted_account_erase_enabled`, `friend_joins_enabled`, `performance_measuring_enabled`, `multiplayer_mode`, `room_browsing`, `account_requirement`, `minimum_player_age_years`, `game_server_allowed_hosts`, `own_server_urls`, `links`, `link_out_url`, `link_out_who_can_open`, `link_out_review_reason`, `details_waiting_for_review`, `title_listing_reason`, `glass_tint_color`, `monthly_budget_cents` (`null`: no paid hosting), `purchase_label` (what the game page says it sells, see In-game purchases), `refund_policy` and `refund_policy_text` (`null` until it states one), `full_game_item_name` (`null`: free to play), `demo_game_slug` (`null`: no demo), `first_published_at` (when it first went live; it never moves), `big_update_at` (the last marked big update; `null`: none yet), `recently_updated_at` (where Browse's Recently updated places it) and `updated_at`.
691
657
 
692
658
  - **visibility:** `draft`, `listed` (home page, search and search engines), `unlisted` (anyone with the link, never in lists or search engines) or `private`. Draft and private games open only through preview links and tester links (below), and on their own page for their developer, signed in. There a multiplayer game plays online while the page plays the live version; a newer version not yet published plays alone, and joining a room says so. A game is listed only with at least one gallery picture, sent or approved: `listed` without one answers `gallery_picture_needed`, and so does removing the last gallery picture of a listed game.
693
659
  - **review_status** is ours and separate: `pending` (no version has passed review yet), `live`, `held` or `removed`, and `review_reason` says why it's held or removed (see Holds and takedowns). Changing visibility never undoes a takedown.
@@ -706,7 +672,7 @@ A game looks like: `slug`, `page_url`, `can_change_slug`, `title`, `description`
706
672
  - **account_requirement:** what the game needs a Zaisma account for. `none` (the default): guests play everything, and signed-in players play as their account. `multiplayer`: guests play alone; only signed-in players get player passes, so a guest's `Zaisma.player.getPass()` and `Zaisma.joinRoom()` fail with `error.code` `"account_needed"` (show your own message, or ask them to sign in without leaving the game with `Zaisma.player.signIn()`), and room links ask guests to sign in first. That's part of v1: a guest never gets a pass in such a game. `whole_game`: the game page says "Needs a Zaisma account" and Play asks guests to sign in first; only signed-in players get player passes. Passes are the backstop: Zaisma rooms also turn away guest passes given before the change, and your own servers can check a pass's `kind` claim for the same. Players under 13 can't make accounts, so they can't play games that need one.
707
673
  - **minimum_player_age_years:** the youngest age that can play, even when the game's content suits everyone. `13` (the default): everyone, guests included as `account_requirement` allows. `16` or `18`: only accounts that old; younger accounts don't find the game on Zaisma (home, More games, friends' Playing now, profiles), and a link to it says "This game isn't open to your account." Only accounts have an age, so above 13 the game needs an account for the whole game: giving `16` or `18` alone sets `account_requirement` to `whole_game` too, and any other `account_requirement` while it's above 13 is refused with `accounts_needed_for_minimum_age` (set it back to `13` first; that leaves `account_requirement` as it is). Zaisma enforces it: Play, player passes, the relay and requests to your game server turn away younger accounts with `game_not_open_to_player`, and Zaisma rooms remove ones already playing when you raise it. Tester links follow it (testers then need an account); your own previews don't. Neither your game nor your own servers ever learn a player's age: a pass never carries it, and a younger account never gets one. Lifelike gore needs `16` or `18`: see "Allowed, even where other platforms ban it" under the content rules.
708
674
  - **game_server_allowed_hosts:** the hosts the game's own game server can call with plain `fetch()` (game server reach): your own server, a payment provider, Discord, GitHub. Up to 20 host names, like `["discord.com", "api.github.com"]`, or `"*.example.com"` for every name under example.com (not example.com itself); `[]` (the default) for none, and the whole list each time. No `https://`, paths or ports: every call is https, never to an IP address, this computer or Zaisma's own domains. Live within a minute, with no approval by Zaisma, and kept in the game's history; players don't see it (the game page names only servers their browser connects to). Calls send up to 5 MB, get 10 seconds, aren't redirected (a redirect comes back to your code), and a game makes up to about 600 a minute in each place. A call to anything else throws an `OutsideCallError` in the game server, with a `code` (`not_https`, `unreachable_host`, `host_not_allowed`, `outside_call_limit`, `too_big`, `outside_call_timeout` or `outside_call_failed`) and a `fix`; the stats' `game_server_errors` show it. Raw sockets (`connect()` from `cloudflare:sockets`, `node:net` and `node:tls`) aren't offered: opening one throws. The game server reaches the game's database, receipts and rooms through `room` and `server` while a handler runs, and `env` from `cloudflare:workers` is empty. The tokens it needs go in its secrets (below).
709
- - **own_server_urls:** your own servers the game connects to from players' browsers: a game server you run with `@zaisma/game-server` (`Zaisma.joinRoom({ serverUrl })`), your own relay or your own API. Up to 5 addresses, each `wss://` or `https://` and the name, with a port if it needs one and nothing after it, like `["wss://play.example.com", "wss://eu.example.com:8443"]`; `[]` (the default) for none, and the whole list each time. Never an IP address, this computer (`localhost`) or Zaisma's own domains. `wss://` and `https://` of one server count once, and the game may use either. Live at once with no approval by Zaisma: players' next page load connects (a relay of your own within 5 minutes), and friends' Join can send them to rooms there. Kept in the game's history, and the game's ⋯ menu names them in neutral words: "Online play runs on the developer's own server: play.example.com" (nothing on the details players see before Play); games that only use Zaisma rooms show nothing. Everything a game shows players is under the content rules wherever it comes from. Not for the servers your game server on Zaisma calls: that's `game_server_allowed_hosts`. From a terminal: `zaisma own-servers <slug> wss://play.example.com`.
675
+ - **own_server_urls:** your own servers the game connects to from players' browsers: a game server you run with `@zaisma/game-server` (`Zaisma.joinRoom({ serverUrl })`), your own relay or your own API. Up to 5 addresses, each `wss://` or `https://` and the name, with a port if it needs one and nothing after it, like `["wss://play.example.com", "wss://eu.example.com:8443"]`; `[]` (the default) for none, and the whole list each time. Never an IP address, this computer (`localhost`) or Zaisma's own domains. `wss://` and `https://` of one server count once, and the game may use either. Live at once with no approval by Zaisma: players' next page load connects (a relay of your own within 5 minutes), and friends' Join can send them to rooms there. Kept in the game's history, and the game's ⋯ menu names them in neutral words: "Online play runs on the developer's own server: play.example.com". As with a link out, what players send there is beyond what Zaisma sees, so from the moment a game has one, its page says so under the title and Play first shows a warning naming the hosts, with one Play to go on (once a browser session per game; autoplay and room links ask too). A report against such a game for child safety, something illegal, malware or a harmful site takes it out of Zaisma's own lists at once until a person decides (its link still plays), and report triage never closes such a report by itself. Games that only use Zaisma rooms show nothing. Everything a game shows players is under the content rules wherever it comes from. Not for the servers your game server on Zaisma calls: that's `game_server_allowed_hosts`. From a terminal: `zaisma own-servers <slug> wss://play.example.com`.
710
676
  - **links:** the game's registered links, which it opens with `Zaisma.links.open` (Registered links, below); `[]` (the default) for none, and the whole list each time.
711
677
  - **full_game_item_name** and **demo_game_slug:** a game that sells itself once, and its free demo; see "Sell your game once" under Items and purchases. `null` (the default): free to play, no demo.
712
678
  - Titles, descriptions, patch notes, tester link and sign-in app names, and forum titles and posts take any language and emoji, but no invisible characters or characters that flip text direction (zero-width spaces, direction overrides, byte order marks and the like): the call answers `bad_<field>` naming the character as `U+XXXX`.
@@ -714,7 +680,7 @@ A game looks like: `slug`, `page_url`, `can_change_slug`, `title`, `description`
714
680
 
715
681
  | Call | What it does |
716
682
  | --- | --- |
717
- | `GET /games/:slug/reports?cursor=` | Player reports from the last 90 days (`period_duration_days`), counted by reason in `reasons` (`reason`, `label`, `open_count`, `closed_count`), and `bug_reports`: reports that report triage sorted as bugs, each with `player_text`, a one-line `summary`, the `version_id` they played and `reported_at`, and `player_reports`: reports about one of your game's players that Zaisma passed to you, newest first, up to 50, each with its `reason` (`harassment`, `cheating`, `other`, or one of the four Zaisma looks at itself when a person passed it on: `real_life_threat`, `personal_details`, `following_after_block`, `sexual`), `player_text`, `chat_messages` (the last chat lines, up to 20, between the reported player and the reporter, from the reporter's screen: `from_player_id`, the reported player's or `null` for anyone else's, `text` and `sent_at`; `[]` when none), `reported_player_id`, `reported_player_name`, `room_code`, `version_id` and `reported_at`. How players treat each other is your game's call, with mute and block always there; Zaisma itself acts only on threats that reach into real life, sharing someone's personal details, following someone after they blocked them, and anything sexual toward a teen. Pass the `next_cursor` from your last call as `cursor` to get only the bug and player reports that arrived after it. Child-safety reports are never counted or shown, and no report says who sent it. |
683
+ | `GET /games/:slug/reports?cursor=` | Player reports from the last 90 days (`period_duration_days`), counted by reason in `reasons` (`reason`, `label`, `open_count`, `closed_count`), and `bug_reports`: reports that report triage sorted as bugs, each with `player_text`, a one-line `summary`, the `version_id` they played and `reported_at`, and `player_reports`: reports about one of your game's players that Zaisma passed to you, newest first, up to 50, each with its `reason` (`harassment`, `cheating`, `other`, or one of the four Zaisma looks at itself when a person passed it on: `real_life_threat`, `personal_details`, `following_after_block`, `sexual`; age reports, `wrong_age` and `under_13`, stay with Zaisma), `player_text`, `chat_messages` (the reported player's own chat lines the reporter ticked, up to 20, from the reporter's screen: `from_player_id`, `text` and `sent_at`; `[]` when none; the reporter's own lines never leave Zaisma, since their text and times would say who reported), `reported_player_id`, `reported_player_name`, `room_code`, `version_id` and `reported_at`. How players treat each other is your game's call, with mute and block always there; Zaisma itself acts only on threats that reach into real life, sharing someone's personal details, following someone after they blocked them, and anything sexual toward a teen. Pass the `next_cursor` from your last call as `cursor` to get only the bug and player reports that arrived after it. Child-safety reports are never counted or shown, and no report says who sent it. |
718
684
  | `GET /games/:slug/stats?period_duration_days=30` | How the game is played, up to 90 days (`play_stats`, see Play stats below), how many accounts have it in their favorites now (`favorite_count`, never who), how it runs on players' devices (`performance`, the same section), and multiplayer use per day in `multiplayer_days`: `date`, `room_count`, `room_play_duration_min`, `message_count` (messages and bytes players sent), the day's room traffic per player a second (`inbound_messages_per_player_sec`, `inbound_size_bytes_per_player_sec`, `outbound_messages_per_player_sec`, `outbound_size_bytes_per_player_sec`, divided by its player time, each message out counted once per player it reached) and `game_server_cpu_duration_sec`, the time the game's own game server ran in its rooms (each call's time less its waits on the database, other servers and its own timers). `hosting_use_this_month`: the game's month on its one hosting meter (see Hosting and credit): `free_used_pct`, `shares`, `is_paused`, `paused_reason`, `paused_at`, `resets_on_date`, `monthly_budget_cents`, `spent_from_credit_cents`, and the raw counts behind it, facts for tuning that are never priced on their own: `room_play_duration_hours` on Zaisma rooms, `relayed_size_bytes` (the data Zaisma's relay sent the game's players for their connections to each other, read from Cloudflare about once an hour), `game_server_cpu_duration_sec` (its rooms, and requests, schedule runs and webhooks past their first 10 ms), `request_count` (requests, webhook events and schedule runs), `written_row_count`, `read_row_count`, `database_size_bytes` and `adult_chat_check_count`. Rooms on your own server aren't counted. `room_traffic`: this month's traffic per player a second (the same four numbers), `message_types`, its 10 biggest message types by bytes (`message_type`: a message's `data.type`, or `(none)`, `(bytes)`, `(zaisma)` for Zaisma's own, `(state)` for state sync's updates (`stateSyncEnabled`) and `(other)` past a room's first 20; `direction` `inbound` or `outbound`; `message_count`, `size_bytes`, `largest_size_bytes`, `average_size_bytes`), and `traffic_hints`, each a `code` and a `message` with the game's numbers: `json_messages_large` (a JSON type averages 512 bytes or more at 5 or more a player-second: send it as bytes), `outbound_heavy` (each player gets 32 KB a second or more: send only what changed and what they can see, with `stateSyncEnabled` and `stateView`), `message_near_limit` (a message of 12 KB or more, near the 16 KB limit) `latest_only_available` (a type goes to each player 10 or more times a second, and 10% or more of it went to players whose connection was backed up: send it with `delivery: "latest_only"`) and `input_frequent` (players' games send 15 or more messages a second each: unless the game needs every one, send input when it changes and positions with `delivery: "latest_only"`). Messages inside a combined message (the SDK's `sendCombiningEnabled`) count one by one in `message_types`, and once in `message_count`. Rooms on your own server aren't counted. `schedules`: the live version's schedules (see "Schedules" in the README), read within a minute of it going live, each with `schedule_name`, `cron` (UTC), `version_id`, `next_run_at` and `last_run_at` (`null` until it first runs); `[]` when it has none or players can't play the game. For games whose own game server runs on Zaisma (rooms on `own`, or any requests or schedules), each day's `game_server` has `call_count` (calls from its rooms), `request_count` (requests to `onRequest`, see "Requests to your game server" in the README), `scheduled_run_count` (runs of `onSchedule`), `crash_count` (a handler threw; that call, request or run is lost), `stopped_count` (ran on too long, like an endless loop; the match froze about 2 seconds, or the request or run failed) and `ended_match_count` (stopped twice, or 20 of its calls in a minute went past their CPU: 50 ms, or 50 ms for each tick a call carries), and `game_server_errors` lists the 20 most recent distinct errors: `kind`, `message` with the file and line it came from (a game server that didn't start says why, like an option it doesn't take, with the ones it does, or a cron that doesn't read; a run's error starts with its schedule's name), `occurrence_count`, `version_id`, `first_at` and `last_at`. Other games get `game_server: null` and `game_server_errors: []`. |
719
685
  | `GET /games/:slug/history` | What happened to the game in `events`, newest first, up to 100: `description`, `version_id`, `subject_name` (what it was done to, like a secret's name), `done_by` (`you`, `api_key`, `ai` or `zaisma`), `api_key_name`, where it came from (`device`, `network_name`, `city_name`, `region_name`, `country_code`, `connection_address`: kept 90 days, and `null` with Keep where my account is used from off, except that uploads keep their address 90 days either way), `is_new_place` (a key's first change from a network and country it hadn't been used from), `occurrence_count` (SQL writes, imports, exports and save reads and changes from one key within the hour fold into one event), `happened_at`, `last_happened_at` and, for a hold, rejection or takedown, its `review_reason` (otherwise `null`). Besides uploads, scans and publishes it holds database writes, imports, exports and restores (a restore's `subject_name` is the time it went back to; an undo's, the restore it undid), a re-upload of the game by another developer that Zaisma stopped (its `subject_name` is their username; you also get an email), save reads and changes, secrets and tester links; a key that isn't limited to some games also sees your webhooks and sign-in apps. |
720
686
  | `GET /games/:slug/qr-code?room_code=` | The game's link as a QR code: `link_url` (the game page, or with `room_code` a room in it) and `qr_code_svg`, an SVG document, black on white with its margin, to save as a `.svg` file or turn into a PNG at any size for posters, booths and trailers. The dashboard has it under Details with SVG and PNG downloads, and players get the same code from Share on the game page. `room_code` that isn't a room's code answers `bad_room_code`. |
@@ -809,7 +775,7 @@ Everything a game runs on Zaisma's servers is on one meter per game, shown as a
809
775
  `hosting_use_this_month`, in `GET /games/:slug/stats` and `GET /games/:slug/database`:
810
776
 
811
777
  - `free_used_pct`: how much of the month's free hosting is used, 0 to 100. `resets_on_date` is when it starts again.
812
- - `shares`: what used it, each `{"kind", "share_pct"}` adding to 100, biggest first: `rooms`, `game_server`, `relayed_data`, `database`, `requests`, `ai_reviews` (the AI reviews of its versions), `adult_chat_checks` (the chat filter's checks between adults, with `adultChatFilterEnabled`), `page_previews` (Chrome drawing your AI's preview pictures, `preview_game_page`). `[]` before any use.
778
+ - `shares`: what used it, each `{"kind", "share_pct"}` adding to 100, biggest first: `rooms`, `game_server`, `relayed_data`, `database`, `requests`, `ai_reviews` (AI reviews of its versions from before the fixed checks became the review; nothing new is charged), `adult_chat_checks` (the chat filter's checks between adults, with `adultChatFilterEnabled`), `page_previews` (Chrome drawing your AI's preview pictures, `preview_game_page`). `[]` before any use.
813
779
  - `second_free_allowance_month_start_date`: the month the game had its second free allowance, the first time it filled its free hosting, or `null` until then. It comes once; that month `free_used_pct` counts both.
814
780
  - `is_paused`, `paused_reason` (`free_used`, `budget_used`, `credit_used`, `no_real_players`, `free_hosting_ended` or `null`) and `paused_at`.
815
781
  - `free_rooms_stopped_at`: when Zaisma's free room time for the month ran out across all games, for a game with no budget with credit; `null` otherwise. See the stop below.
@@ -867,7 +833,7 @@ Zaisma Pro is $10 a month on your card, apart from hosting credit, for developer
867
833
  | New data a day | 10 GB, or 25 GB once established or paid by card | 100 GB |
868
834
  | Performance checks a day | 20 | 60 |
869
835
 
870
- Reviews and versions a day are the same on every plan: 5 large reviews, 30 small reviews and 100 versions a game. Stats and scheduled releases are free for everyone. Seats come with Teams and custom domains with Custom game domains, so neither is part of Pro. You can cancel any time and keep Pro to the end of the paid month, with no refunds for part of a month; then the free limits come back. Your first payment refunds within 14 days of it (`POST /pro/refund`), and Pro ends then: only the account's first Pro payment, while it's the only one, so starting Pro again after a refund doesn't refund again. A live version over 2 GB stays live, and only new uploads must fit. Versions waiting past a lowered daily review limit wait for the next free one. Pro ends at the end of the period Stripe says is paid, so a renewal Stripe retries keeps it until Stripe says it's over. Stripe sells it as the merchant of record, as it does credit. Teen developers buy Pro like anyone; whoever owns the card pays. These calls need `credit_access` (`read` for `GET /pro`, `write` for the rest); `GET /access` answers `plan` (`free` or `pro`).
836
+ Versions a day are the same on every plan: 100 a game, and publishing has no limit. Stats and scheduled releases are free for everyone. Seats come with Teams and custom domains with Custom game domains, so neither is part of Pro. You can cancel any time and keep Pro to the end of the paid month, with no refunds for part of a month; then the free limits come back. Your first payment refunds within 14 days of it (`POST /pro/refund`), and Pro ends then: only the account's first Pro payment, while it's the only one, so starting Pro again after a refund doesn't refund again. A live version over 2 GB stays live, and only new uploads must fit. Pro ends at the end of the period Stripe says is paid, so a renewal Stripe retries keeps it until Stripe says it's over. Stripe sells it as the merchant of record, as it does credit. Teen developers buy Pro like anyone; whoever owns the card pays. These calls need `credit_access` (`read` for `GET /pro`, `write` for the rest); `GET /access` answers `plan` (`free` or `pro`).
871
837
 
872
838
  | Call | What it does |
873
839
  | --- | --- |
@@ -928,7 +894,7 @@ Players type to each other through Zaisma's chat hosting: one call in the game,
928
894
  - **Your game server decides first:** `onChat(state, player, room, { text, toPlayerIds })` runs before Zaisma's filter, in both runtimes, the way `canJoin` runs before a join: answer `true` to send it, `false` to stop it (the sender's `room.chat` fails with `chat_stopped`, reason `stopped_by_game`, "Your message wasn't sent."), or `{ toPlayerIds }` to send it to fewer players (a team chat, a player your moderators muted). It can only narrow: players outside what Zaisma allows are dropped. Only decide in it: `room` can be read, not changed. A game server without `onChat` sends every message on to the filter.
929
895
  - **The filter:** every message to or from an under-18 account is checked on Zaisma's side. It stops contact details in any disguise (numbers written as words or sent a few digits at a time, handles, links, "add me on…"), moving to another app or meeting up in real life, personal details (where someone lives, their school, their full name, photos) and sexual content. Swearing and slurs are your call: it flags them (`hasSwearing`, `hasSlur`) and lets them through. What the rules can't tell goes to a small AI model, a narrow second look that blocks only what clearly is one of those four kinds; when in doubt, or when it can't look, the message goes. The verdict is one for the whole message, never per receiver, so it never says which player is under 18.
930
896
  - **Between adults** the filter only flags, unless your game server sets `adultChatFilterEnabled: true`: then the same checks run, and each message the AI looks at counts on your hosting meter (`adult_chat_checks`, $0.20 per 1,000 checks). Zaisma pays for the checks on under-18s' chat.
931
- - **Reports carry the lines:** `room.report` (and the Players panel's Report) sends the last 20 chat lines the reported player sent this player, or this player sent them, from this screen. `get_reports` and the `player_reported` webhook carry them as `chat_messages` (`from_player_id`, the reported player's or `null` for anyone else's, `text`, `sent_at`): what the reporter's game showed, not a record Zaisma kept.
897
+ - **Reports carry the lines:** on a Zaisma page, `room.report(playerId, reason, details)` opens Zaisma's report sheet beside the game, filled in, and resolves `{ isReported: true }` once the player sends it, or rejects with `error.code` `"report_not_sent"` when they close it without sending. The sheet asks the SDK for that player's last 20 lines on this screen, and the player ticks the ones to send. Only a report the player sends from Zaisma counts toward the steps a few trusted reports take at once (a mute in that room, a chat pause): a report a game sends by itself, off Zaisma or from its own server, still reaches Zaisma but never counts. `get_reports` and the `player_reported` webhook carry the reported player's own ticked lines as `chat_messages` (`from_player_id`, `text`, `sent_at`): what the reporter's game showed, not a record Zaisma kept. Reasons are `real_life_threat`, `personal_details`, `following_after_block`, `sexual`, `wrong_age` and `under_13` (Zaisma looks), and `harassment`, `cheating` and `other` (passed to you).
932
898
 
933
899
  A chat box to copy, all of it in the game (a `<div id="chat-log">`, an `<input id="chat-input">` and a `<button id="chat-send">`; games run in a frame that doesn't submit forms, so it sends on the button and Enter):
934
900
 
@@ -963,7 +929,7 @@ input.addEventListener("keydown", (event) => event.key === "Enter" && sendLine()
963
929
  Every answer from the filter is `{ isAllowed, reason, message, hasSwearing, hasSlur }`: `reason` is `contact_details`, `personal_details`, `sexual`, `chat_paused` (the sender's chat is paused or removed), `too_long` (over 2000 characters: checked whole, never cut), `unchecked` (Zaisma's check couldn't run just now, so the message is held: the player sends it again in a moment) or `not_allowed_to_chat` (own servers' `checkChat` only: `canChat` says no for a receiver), and `message` is the words to show the sender, which never mention age or the other player ("Contact details can't be sent here.").
964
930
 
965
931
  - **Other text players type:** `Zaisma.checkChat(text)` answers the same for up to 2000 characters (`too_long` past that), with the tidied `text`, for text that isn't chat, like a name for a world. It checks the text alone and keeps nothing.
966
- - **On your own server without the runner:** `checkChat({ text, senderPass, receiverPasses, isAdultFilterEnabled })` from `@zaisma/game-server`, with the players' passes as your server received them, after `canChat`. The runner does this for `room.chat` itself. It keeps each sender's last 5 messages from the last 2 minutes in memory and sends them along, and it answers `unchecked` when Zaisma can't be reached: don't deliver those. Zaisma applies `canChat`'s rule itself too: if the sender may not chat with any receiver, it answers `not_allowed_to_chat`, one verdict for the message that never says which receiver. It's free, except the checks between adults when `isAdultFilterEnabled` is `true`. A player your server let in from outside Zaisma (a game played off its Zaisma page, `kind` `outside_zaisma`) goes as `null` in place of a pass: a message between them and an under-18 account is `not_allowed_to_chat`, between them and adults it's checked as between adults, and one among such players only is allowed without asking Zaisma. Underneath it's `POST https://rooms.zaisma.com/v1/chat/check` with `{ gameSlug, senderPass, receiverPasses, text, recentTexts, isAdultFilterEnabled }` (up to 50 receivers, 2000 characters, 5 recent texts), up to 120 a minute per game and sender; a pass that isn't valid for the game is `bad_pass` with its `field` (`senderPass` or `receiverPasses`). In Zaisma rooms, `checkChat` throws a `ChatCheckError` with code `own_server_only`: send chat with `room.chat` there.
932
+ - **On your own server without the runner:** `checkChat({ text, senderPass, receiverPasses, isAdultFilterEnabled })` from `@zaisma/game-server`, with the players' passes as your server received them, after `canChat`. The runner does this for `room.chat` itself. It keeps each sender's last 5 messages from the last 2 minutes in memory and sends them along, and it answers `unchecked` when Zaisma can't be reached: don't deliver those. Zaisma applies `canChat`'s rule itself too: if the sender may not chat with any receiver, it answers `not_allowed_to_chat`, one verdict for the message that never says which receiver. It's free, except the checks between adults when `isAdultFilterEnabled` is `true`. A player your server let in from outside Zaisma (a game played off its Zaisma page, `kind` `outside_zaisma`) goes as `null` in place of a pass: a message between them and an under-18 account is `not_allowed_to_chat`, between them and adults it's checked as between adults, and one among such players only is allowed without asking Zaisma. Underneath it's `POST https://rooms.zaisma.com/v1/chat/check` with `{ gameSlug, senderPass, receiverPasses, text, recentTexts, isAdultFilterEnabled, roomCode }` (`roomCode` optional: the room's six-letter code, so a player trusted reports muted in that room stays muted there; a pause everywhere reaches your server through the pass's `who_can_chat`, `nobody`) (up to 50 receivers, 2000 characters, 5 recent texts), up to 120 a minute per game and sender; a pass that isn't valid for the game is `bad_pass` with its `field` (`senderPass` or `receiverPasses`). In Zaisma rooms, `checkChat` throws a `ChatCheckError` with code `own_server_only`: send chat with `room.chat` there.
967
933
 
968
934
  Contact or personal details stopped toward under-18 accounts five times in a day pause the sender's chat for an hour. A paused account's next pass says `who_can_chat: "nobody"`, so `canChat` stops it on your server too. Zaisma keeps no chat, except a sexual message from an adult to a teen that reached the filter from an own server, kept for review.
969
935
 
@@ -1537,7 +1503,6 @@ Zaisma POSTs an event to your server whenever something happens to your games, s
1537
1503
  - `bug_reported`: report triage sorted a player's report as a bug, the same ones `GET /games/:slug/reports` lists (never child-safety reports, and never who sent them).
1538
1504
  - `player_reported`: Zaisma passed you a report about one of your game's players (bullying, cheating and other behavior that's your game's call), the same ones `GET /games/:slug/reports` lists as `player_reports`. Sent to a game server, it lets your game moderate by itself.
1539
1505
  - `scan_status_changed`: a version's scan finished (`approved`, `held` or `rejected`), or Zaisma changed its `scan_status` later: a person approved or rejected it, a report paused it, image matching held it.
1540
- - `ai_review_finished`: a version's AI review ended: `version.ai_review_status` says how, and a stop also changes `scan_status` and sends players back.
1541
1506
  - `live_version_changed`: players get another version: you published or rolled back, it went live at its `scheduled_publish_at` or as soon as it passed, a report put players back on the version before, or a person put it back after checking.
1542
1507
  - `review_status_changed`: Zaisma held or took down the game, or put it back (`game.review_status` and `game.review_reason` say which and why).
1543
1508
  - `country_blocks_changed`: Zaisma blocked the game for players in one country on a notice under that country's law, or lifted it (`game.country_blocks` says which countries and why).
@@ -1584,13 +1549,13 @@ The same handler can post a crash (`event.kind === "game_server_error_found"`, w
1584
1549
 
1585
1550
  ## Tester links
1586
1551
 
1587
- Secret links that open the game for anyone who has them, once its AI review lets the version through (a tester's first open starts it) or at once for a developer who has earned that (see The AI review), whatever its visibility, so a private or draft game can be played before it's public, and an update before players get it. Testers need no account. Make one per group (your team, playtesters, a streamer) and name it for them, so you can turn one off without the others.
1552
+ Secret links that open the game for anyone who has them, whatever its visibility, so a private or draft game can be played before it's public, and an update before players get it. Testers need no account. Make one per group (your team, playtesters, a streamer) and name it for them, so you can turn one off without the others.
1588
1553
 
1589
1554
  Before a build reaches testers, try its online play on your own computer: `npx @zaisma/cli play-locally` in the game's folder runs it and its game server with a test bench, no key needed, holding the game server to the memory, CPU and modules a copy has on Zaisma's rooms, so one that fails there fails here first, with the same line (README, "Play it on your own computer"). When it starts, it asks npm whether a newer bench is out and, if one is, says so in one line: run it again to use it, or, where your project or computer installed an older one, the `npm install` that moves it up. Offline, or on the latest, it says nothing and never waits.
1590
1555
 
1591
1556
  | Call | What it does |
1592
1557
  | --- | --- |
1593
- | `GET /games/:slug/testers` | The links that aren't turned off: `{"id", "name", "link_url", "version_choice", "picked_version_id", "current_build_name", "next_build_name", "ends_at", "created_at", "last_opened_at"}`. `current_build_name` is the build its testers get now, like `Build 12` (`null`: nothing yet), and `next_build_name` a newer one it points at that they get once its review passes (`null`: none). `last_opened_at` is when someone last opened it (to the hour), or `null`. A link past its `ends_at` is still listed, so you can give it a new end date. |
1558
+ | `GET /games/:slug/testers` | The links that aren't turned off: `{"id", "name", "link_url", "version_choice", "picked_version_id", "current_build_name", "ends_at", "created_at", "last_opened_at"}`. `current_build_name` is the build its testers get now, like `Build 12` (`null`: nothing yet), and `next_build_name` a newer one it points at that they get once its review passes (`null`: none). `last_opened_at` is when someone last opened it (to the hour), or `null`. A link past its `ends_at` is still listed, so you can give it a new end date. |
1594
1559
  | `POST /games/:slug/testers` | Make one: `{"name"}`, 1 to 60 characters, and optionally `version_choice`, `picked_version_id` and `ends_at`. Up to 50 per game. Answers with the `tester`. |
1595
1560
  | `PATCH /games/:slug/testers/:id` | Change its `name`, `version_choice`, `picked_version_id` or `ends_at`; leave out what stays, and `"ends_at": null` takes the end date away. Testers keep the same link and their progress. Answers with the `tester`. |
1596
1561
  | `DELETE /games/:slug/testers/:id` | Turn one off for good; answers `removed_tester_id`. It stops opening the game straight away, and players who came through it are let go from their multiplayer matches within about 10 seconds. A game already open in their browser keeps running until they leave or reload. Make a new one to let that group back in. |
@@ -1773,9 +1738,8 @@ Files are stored once, by their SHA-256, and shared by every version that has th
1773
1738
  | `PUT /files/:sha256/parts/:part_number?upload_id=` | Send one part as the request body, numbered from 1; every part but the last is exactly `part_size_bytes`. Answers its `part_number` and `etag`. |
1774
1739
  | `POST /files/:sha256/parts/done` | Finish: `{"upload_id", "parts": [{"part_number", "etag"}]}`, every part. Storage checks the hash, as for `PUT /files/:sha256`. Answers `storage_status` `stored_now` and `size_bytes`. |
1775
1740
  | `POST /games/:slug/versions` | Make the version from the same list, plus `patch_notes` (up to 2,000 characters) and optionally `"publish_when_approved": true`, which needs `version_access` `publish` (an upload key gets `key_not_allowed`), with `match_update_mode` for when it goes live (below; only with `publish_when_approved`, else `bad_match_update_mode`) and `is_big_update` to mark it a big update (the same: else `bad_is_big_update`). |
1776
- | `GET /games/:slug/versions/:id` | The `version`: `id`, `build_name` (`Build` and the game's count of uploads, from 1: `Build 14`, as its tester links show testers), `file_count`, `size_bytes`, `scan_status` (`scanning`, `held`, `approved` or `rejected`), `ai_review_status`, `ai_review_speed`, `ai_review_requested_at`, `ai_review_finished_at`, `ai_review_waiting_reason`, `usual_ai_review_duration_min`, `ai_review_step`, `ai_review_step_started_at`, `ai_review_waiting_ahead_count`, `daily_review_free_at`, `is_ai_review_needed_to_publish`, `is_open_before_ai_review`, `publish_after_ai_review_enabled` (see The AI review), `has_threads` (the build needs threads, so it runs only in Chrome and Edge, and the game page tells other browsers' players), `is_live`, `patch_notes`, `preview_url` and `preview_url_expires_at` once it passes, `published_at`, `first_published_at` (a rollback doesn't move it), `is_big_update`, `scheduled_publish_at`, `match_update_mode` (how running matches get it when it goes live by itself), `created_at`, `review_reason` (a person rejected it, or a report paused it), `findings`: what the scan found that holds or rejects it (`code`, `severity`, `message`, `content_rule`, `path`, `fix`, `message_for_people`; see Holds and takedowns), and `replaced_by_version_id`: the newer version that replaced it while it waited, or `null`, and `performance_check`: how it started in Chrome (see How it started in Chrome, below). |
1741
+ | `GET /games/:slug/versions/:id` | The `version`: `id`, `build_name` (`Build` and the game's count of uploads, from 1: `Build 14`, as its tester links show testers), `file_count`, `size_bytes`, `scan_status` (`scanning`, `held`, `approved` or `rejected`; see The fixed checks are the review), `has_threads` (the build needs threads, so it runs only in Chrome and Edge, and the game page tells other browsers' players), `is_live`, `patch_notes`, `preview_url` and `preview_url_expires_at` once it passes, `published_at`, `first_published_at` (a rollback doesn't move it), `is_big_update`, `scheduled_publish_at`, `match_update_mode` (how running matches get it when it goes live by itself), `created_at`, `review_reason` (a person rejected it, or a report paused it), `findings`: what the scan found that holds or rejects it (`code`, `severity`, `message`, `content_rule`, `path`, `fix`, `message_for_people`; see Holds and takedowns), and `replaced_by_version_id`: the newer version that replaced it while it waited, or `null`, and `performance_check`: how it started in Chrome (see How it started in Chrome, below). |
1777
1742
  | `PATCH /games/:slug/versions/:id` | `update_version`: `patch_notes` (up to 2,000 characters, lines kept) and `is_big_update` on a version that has never been live, kept for when it goes live, now or scheduled. Answers the `version`. A version that has been live keeps its own (`bad_patch_notes`); a big update needs notes (`big_update_needs_patch_notes`). |
1778
- | `POST /games/:slug/versions/:version_id/ai-review` | Start its AI review without publishing it (see The AI review). Needs `version_access` `publish`. Asked again, it answers where the review stands. |
1779
1743
  | `POST /games/:slug/versions/:id/publish` | Publish a draft that passed, or roll back to an older version. With `{"scheduled_publish_at": "2026-11-01T17:00:00Z"}` (an ISO time; numbers are refused) it publishes later instead (a few minutes to 90 days ahead; checked every 5 minutes). A version still being scanned goes live at that time if it has passed by then. `match_update_mode` says when running matches get it: `"next_match"` (the default: they finish on the version they started, and new matches get it) or `"now"` (every live match switches within seconds, in the same room; see [Updates](#updates)); a scheduled publish keeps the choice, and the version's `match_update_mode` shows it. A publish is a quiet patch: its notes show in the game page's Updates and nothing else changes. `"is_big_update": true` marks a big update, now or scheduled, with `patch_notes` saying what's new (given here in place of the version's, or `big_update_needs_patch_notes` with none): it sets `big_update_at`, which shows the Updated tag to players who've played before it and the Updated fact on the game page, and moves `recently_updated_at` at most once every 30 days, counting from the first release. Only a version going live for the first time on a released game counts: a first release is a release, a rollback or republish never counts, and a version that has been live keeps its notes and can't be marked (`big_update_already_live`). Answers with the `game` and the `version`. |
1780
1744
  | `DELETE /games/:slug/versions/:id/publish` | Cancel a publish-later, and its big update mark. Answers with the `game` and the `version`. |
1781
1745
  | `DELETE /games/:slug/versions/:id/preview-links` | Turn off every preview link handed out so far for this version, and every browser that opened one. The next `preview_url` works again. Answers with the `version`. |
@@ -1882,11 +1846,9 @@ The files a version needed before its first frame in its run in Chrome are prelo
1882
1846
  | `zaisma new <title> [--slug <slug>]` | Make a game (a draft) | `POST /games` |
1883
1847
  | `zaisma check <folder> [--game <slug>] [--screen wide\|phone] [--draw-on-zaisma]` | Check a game's folder before uploading, with no key and nothing sent (with `--game` and a key, its own servers count); or draw a shader's folder as the shader check does, in Chrome on this computer, or on Zaisma when there's none | Checking a game, above; `POST /games/:slug/shader-checks` |
1884
1848
  | `zaisma play-locally [folder] [--port <port>] [--game <slug>] [--on-network] [--no-open]` | Play the game on this computer with its game server and a test bench: each player on Zaisma's own game page, blocking and buying through it (Zaisma's buy sheet with a test card that's never charged), players made on this computer with an age band and social mode, their friends, blocks, items and refunds set in their details, and a dev bar to add or switch players; with no key and nothing sent, it runs `npx @zaisma/game-server@1 play-locally` | none |
1885
- | `zaisma upload <folder> --game <slug> [--patch-notes "…"] [--publish-when-approved [--after-review] [--match-update-mode next_match\|now] [--big-update]]` | Check, fix what it can, upload a version, sending only new files, and wait for its scan | Uploading versions, above |
1849
+ | `zaisma upload <folder> --game <slug> [--patch-notes "…"] [--publish-when-approved [--match-update-mode next_match\|now] [--big-update]]` | Check, fix what it can, upload a version, sending only new files, and wait for its scan | Uploading versions, above |
1886
1850
  | `zaisma shader <folder> --game <slug> --screen wide\|phone` | Send a shader's folder: each texture as an image of kind `shader_texture` (one the game has already, byte for byte, is used again), waited for until approved, then the shader | `POST /games/:slug/images?kind=shader_texture`, `POST /games/:slug/shaders` |
1887
1851
  | `zaisma versions <slug>` | The game and its versions, with preview links | `GET /games/:slug` |
1888
- | `zaisma ai-review <slug> <version_id>` | Start a version's AI review without publishing it | `POST /games/:slug/versions/:version_id/ai-review` |
1889
- | `zaisma publish <slug> <version_id> [--after-review] [--scheduled-publish-at <time>] [--match-update-mode next_match\|now] [--big-update] [--patch-notes "…"]` | Publish, roll back, or publish later | `POST /games/:slug/versions/:id/publish` |
1890
1852
  | `zaisma unschedule <slug> <version_id>` | Cancel a publish-later | `DELETE /games/:slug/versions/:id/publish` |
1891
1853
  | `zaisma visibility <slug> listed\|unlisted\|private\|draft` | Who can see the game | `PATCH /games/:slug` |
1892
1854
  | `zaisma allowed-hosts <slug> [<host> …] [--none]` | The hosts the game server can call; given hosts (or `--none`), sets the whole list | `GET` or `PATCH /games/:slug` |
@@ -129,7 +129,6 @@ Every error the developer API and MCP answer with, as `{ "error": { code, messag
129
129
  - `big_update_needs_patch_notes` (HTTP 400): A big update has no patch_notes, and a big update must say what's new. Fix: Send patch_notes saying what's new beside is_big_update true. https://zaisma.com/developers/errors/big_update_needs_patch_notes
130
130
  - `big_update_already_live` (HTTP 400): The version has been live already, and only a version going live for the first time can be a big update. Fix: Publish it as a quiet patch without is_big_update, or upload a new version for the big update. https://zaisma.com/developers/errors/big_update_already_live
131
131
  - `bad_publish_when_approved` (HTTP 400): publish_when_approved isn't true or false. Fix: Give publish_when_approved as true or false. https://zaisma.com/developers/errors/bad_publish_when_approved
132
- - `bad_publish_after_ai_review_enabled` (HTTP 400): publish_after_ai_review_enabled isn't true or false, or it came with nothing to publish. Fix: Give publish_after_ai_review_enabled as true or false, beside a version to publish. https://zaisma.com/developers/errors/bad_publish_after_ai_review_enabled
133
132
  - `bad_match_update_mode` (HTTP 400): match_update_mode isn't next_match or now, or it came without publish_when_approved. Fix: Give match_update_mode as next_match or now, and with an upload only beside publish_when_approved true. https://zaisma.com/developers/errors/bad_match_update_mode
134
133
  - `version_limit` (HTTP 429): The game has had 100 versions in the last day. Fix: Wait retry_after_sec seconds for the oldest version to pass a day, and test locally with npx @zaisma/cli play-locally in between. https://zaisma.com/developers/errors/version_limit
135
134
  - `version_in_use` (HTTP 409): The version can't be deleted: it's live, set to publish, or a tester link picked it. Fix: Publish another version, cancel the scheduled publish or change the tester link first, then delete it. https://zaisma.com/developers/errors/version_in_use
@@ -122,7 +122,6 @@ Every ID Zaisma makes says its kind in its value: `<kind>_<random>`, the kind in
122
122
  | `report` | `report_…` |
123
123
  | `media` | `media_…` |
124
124
  | `precedent` | `precedent_…` |
125
- | `review_precedent` (a ruling the AI review follows) | `review_precedent_…` |
126
125
  | `player` | `player_…` |
127
126
  | `owner` | `owner_…` |
128
127
  | `save_copy` | `save_copy_…` |
@@ -148,7 +147,6 @@ Every ID Zaisma makes says its kind in its value: `<kind>_<random>`, the kind in
148
147
  | `pending_refund` (a deleted account's refund Stripe hasn't taken yet; never shown outside Zaisma) | `pending_refund_…` |
149
148
  | `scheduled_room_message` (a send to every room a game scheduled for later) | `scheduled_room_message_…` |
150
149
  | `ban_match` (another account that paid with a card banned with an account, for a person at Zaisma to decide; only in the admin MCP) | `ban_match_…` |
151
- | `review_batch` (a batch of a version's AI review requests sent to Anthropic; never shown outside Zaisma) | `review_batch_…` |
152
150
  | `ncmec_report` (a report to NCMEC's CyberTipline; never shown outside Zaisma) | `ncmec_report_…` |
153
151
  | `admin_change` (a change the admin's AI asked for, waiting for the admin's passkey tap; never shown outside Zaisma) | `admin_change_…` |
154
152
 
@@ -295,7 +293,7 @@ One name per concept. The API and MCP column is snake_case; the SDK and game ser
295
293
  | What an API key may do, and on which games | `access`: `api_key_name`, `access_level` (`read`, `upload`, `publish`, `full`, `custom`), `area_access` (each area's choice: `game_access`, `version_access`, `stats_access`, `database_access`, `save_access`, `purchase_access`, `forum_access`, `sign_in_app_access`, `webhook_access`, `credit_access`, `stripe_account_access`; choices `none`, `read`, `write`, and for versions `upload`, `publish`), `game_slugs` (`null` for every game); refused with `key_not_allowed` | |
296
294
  | An AI app that connects to the MCP by signing in (OAuth's client), and the connection it makes | `mcp_client_id` (the OAuth `client_id`: an `mcp_client_…` ID, or its metadata document's URL); on `list_api_keys` items, `kind` (`api_key`, `connected_app`) and `connected_app_host` | |
297
295
  | An address a developer's server takes Zaisma's events at (or the game's own game server), the events it takes and the games they're about | `webhook_id`; `destination_kind` (`endpoint_url`, `game_server`), `endpoint_url` (`null` for a game server), `event_kinds`, `game_slugs` (`null` for every game; a game server's one game) | `onWebhook(event, server)` (`WebhookEvent`, the same JSON), `WEBHOOK_LIMITS`; on your own server, POSTs at `/v1/webhooks` checked with `ZAISMA_WEBHOOK_SIGNING_SECRET` |
298
- | What a webhook is sent, and what happened | `webhook_event`, its `id` a `webhook_event_…` ID; its `kind`: `bug_reported`, `player_reported`, `scan_status_changed`, `ai_review_finished`, `live_version_changed`, `review_status_changed`, `country_blocks_changed`, `game_server_error_found`, `alert_raised`, `account_deleted` (with `account_deletion` `{ player_id, deleted_account_erase_enabled }`, and `game` or `sign_in_app`), `security_alert` (with `security_event`), `purchase_completed` and `purchase_refunded` (with `purchase`), `test`; when Zaisma made it: `created_at`; what it carries: `game`, `version`, `bug_report`, `player_report`, `game_server_error`, `alert`, `account_deletion`, `sign_in_app`, `security_event`, `purchase`. The game server gets it as the API's JSON, snake_case: the one exception to camelCase there | `WebhookEvent`, `WebhookEventKind`, `AccountDeletion`; `verifyWebhook` and `runWebhook` errors `{ error: { code, message, fix } }` |
296
+ | What a webhook is sent, and what happened | `webhook_event`, its `id` a `webhook_event_…` ID; its `kind`: `bug_reported`, `player_reported`, `scan_status_changed`, `live_version_changed`, `review_status_changed`, `country_blocks_changed`, `game_server_error_found`, `alert_raised`, `account_deleted` (with `account_deletion` `{ player_id, deleted_account_erase_enabled }`, and `game` or `sign_in_app`), `security_alert` (with `security_event`), `purchase_completed` and `purchase_refunded` (with `purchase`), `test`; when Zaisma made it: `created_at`; what it carries: `game`, `version`, `bug_report`, `player_report`, `game_server_error`, `alert`, `account_deletion`, `sign_in_app`, `security_event`, `purchase`. The game server gets it as the API's JSON, snake_case: the one exception to camelCase there | `WebhookEvent`, `WebhookEventKind`, `AccountDeletion`; `verifyWebhook` and `runWebhook` errors `{ error: { code, message, fix } }` |
299
297
  | Asking for a new signing secret for a webhook | `replace_signing_secret: true`, answered once as `signing_secret` (`whsec_…`, Standard Webhooks' form) | |
300
298
  | An event on its way to one webhook, and how it went | `delivery_status`: `pending`, `delivered`, `failed`; `attempt_count`, `last_attempt_at`, `next_attempt_at`, `failure_message`; `pending_delivery_count`, `failed_delivery_count`, `is_last_delivery_failed` | |
301
299
  | The youngest age that can play a game, in years: 13, 16 or 18; never a band name. A younger account turned away gets `game_not_open_to_player` | `minimum_player_age_years`; errors `bad_minimum_player_age`, `accounts_needed_for_minimum_age` | error `code` `game_not_open_to_player` |
@@ -330,10 +328,8 @@ One name per concept. The API and MCP column is snake_case; the SDK and game ser
330
328
  | How many days a report or stats answer covers | `period_duration_days` | |
331
329
  | What the game check finds before an upload | `problems`, each `{ code, problem_kind, is_fixed_by_upload_command, message, path, quote, fix }`, `problem_kind` `refused` or `broken`; `omitted_problem_count` | |
332
330
  | A version's scan result, and what it found that holds or rejects it | `scan_status`: `scanning`, `held`, `approved`, `rejected`; `findings`, each `{ code, severity, message, content_rule, path, fix }` | |
333
- | Where a version stands with the AI review, and how long reviews usually take | `ai_review_status` (`not_started`, `waiting`, `reviewing`, `passed`, `stopped`, `skipped`), `ai_review_speed` (`at_once`, `batch`), `ai_review_requested_at`, `ai_review_finished_at`, `ai_review_waiting_reason`, `usual_ai_review_duration_min`, `ai_review_step` (`waiting_for_daily_review`, `in_line`, `reading_files`, `judging`), `ai_review_step_started_at`, `ai_review_waiting_ahead_count`, `daily_review_free_at`, `is_ai_review_needed_to_publish`, `is_open_before_ai_review`, `publish_after_ai_review_enabled`, `visibility_after_ai_review`, `publish_before_ai_review_enabled`. Inside: `ai_review_queued_at_ms`, `review_batches` (`anthropic_batch_id`, `request_count`, `review_step`: `reading`, `judging`, `ended_at_ms`, `collected_at_ms`), `read_files` (`file_sha256`, `reader_prompt_sha256`, `evidence_items`, `read_at_ms`) | `start_ai_review`, `AI_REVIEW_LIMITS`, `AiReviewStep`, `AiReviewProgress`, `aiReviewProgress`, `bad_publish_after_ai_review_enabled` |
334
331
  | How a version started in headless Chrome, and what would make it much smaller (notes, never holds) | `performance_check`: `{ check_status, checked_at, browser_description, loading_duration_sec, start_download_size_bytes, start_file_count, start_memory_size_bytes, longest_start_task_duration_ms, notes }`, `check_status` `waiting`, `checking`, `checked`, `over_daily_limit`, `could_not_run`; a performance note `{ code, message, path, saved_size_bytes, fix }`; the game check's `performance_notes`. Inside: `performance_checks.start_files`, each `{ path, destination, is_cors_request, downloaded_size_bytes }` | `PERFORMANCE_CHECK_LIMITS` |
335
332
  | How a game runs on players' devices, as totals (never per player), and the switch for it | `performance` in `get_stats`: `version_totals` and `device_totals`, each row `{ version_id, play_count, median_loading_duration_sec, slow_tenth_loading_duration_sec, median_frames_per_sec, low_tenth_frames_per_sec, long_frames_per_min, crashed_play_pct, error_stop_count, context_lost_count, stopped_responding_count, median_peak_memory_size_bytes, is_measured }`, a device row also `browser_name` (`chrome`, `edge`, `firefox`, `safari`, `samsung_internet`, `other`), `os_name` (`windows`, `macos`, `linux`, `chromeos`, `android`, `ios`, `other`), `device_kind` (`computer`, `phone`, `tablet`; `other` only in the folded row) and `graphics_family` (`nvidia`, `amd`, `intel`, `apple`, `qualcomm`, `arm`, `imagination`, `other`, `unknown`); the game's `performance_measuring_enabled`, error `bad_performance_measuring_enabled`. Inside: `performance_days` (`loading_counts`, `frame_rate_seconds`, `memory_counts`: JSON arrays of counts by bucket), `play_tickets.has_performance_loading`, `has_performance_crash`, `measured_duration_sec`; page messages `zaisma:performance`, `zaisma:alive` | `LOADING_BUCKETS_SEC`, `FRAME_RATE_BUCKETS`, `MEMORY_BUCKETS_BYTES`, `BROWSER_NAMES`, `OS_NAMES`, `DEVICE_KINDS`, `GRAPHICS_FAMILIES`, `CRASH_KINDS`, `PLAYER_PERFORMANCE_LIMITS`, `browserOf`, `osOf`, `percentileOf`, `frameRateAt` |
336
- | The AI review's daily limits, and a version that steps aside for a newer one | a large review (read and judged: `daily_large_reviews_used`) and a small review (read alone: `daily_small_reviews_used`), never "judged review"; a game paused for money waits for its hosting to start again (`hosting_paused_for_money`); past Zaisma's monthly budget a version waits (`review_budget_used`); a small fix is one with 1 MB or less of new code to read (`ai_review_read_size_bytes`, reviewed `at_once`); reviews on the hosting meter (`ai_reviews`; `ai_review_cost_cents` in `room_usage`, `game_paid_review_cost_cents` in `ai_usage`); `replaced_by_version_id` (`version_replaced`). Inside: `read_at_ms` (when a version's small review ran), `is_small_review` in a scan report, and in the admin MCP `changes_since` with `added_paths`, `changed_paths`, `removed_paths` and their `*_path_count` | `PLAN_LIMITS.free.maximumLargeReviewsPerDay`, `maximumSmallReviewsPerDay`, `maximumAtOnceReadSizeBytes`, `HOSTING_PRICES.aiReviewCentsPerCostCent`, `pathWithoutContentHash` |
337
333
  | A sample game in the review test set, and what a run found | `is_honest`, `content_rule`, `protection`, `why` (in `case.json`); `outcome`: `held_bad`, `missed_bad`, `passed_honest`, `held_honest`, `inconsistent` (Zaisma's own code) | |
338
334
  | Zaisma's review of a game | `review_status`: `pending`, `live`, `held`, `removed` | |
339
335
  | Why Zaisma held, rejected or took down a game, version or image | `review_reason`: `{ code, message, content_rule, fix }`, its `code` from `REVIEW_CODES` | |
@@ -357,7 +353,6 @@ One name per concept. The API and MCP column is snake_case; the SDK and game ser
357
353
  | How serious a report or topic is (admin MCP) | `severity`: `child_safety` (reports only), `urgent`, `high`, `normal`, `low` | |
358
354
  | What a person decides about reports, a precedent or a post, and why (admin MCP) | `decision`, `why` | |
359
355
  | A ruling report triage follows, and where it stands (admin MCP) | `precedent_id`; `precedent_status`: `proposed`, `active`, `retired`; `can_ai_apply_alone`, `replaces_precedent_id`, `followed_count` | |
360
- | A ruling the AI review follows when it was wrong, and where it stands (admin MCP) | `review_precedent_id`; `decision`: `pass`, `hold`; `review_precedent_status`: `proposed`, `testing`, `active`, `failed`, `retired`; `replaces_review_precedent_id`, `followed_count` | |
361
356
  | What report triage and forum sorting found (admin MCP) | `triage`, `sorting`, `is_waiting_for_sorting`; what triage did by itself is `ai_actions` | |
362
357
  | Public forum posts waiting for a person (admin MCP) | `waiting_posts` | |
363
358
  | What happened to a game, and who did it | `events`, each with `happened_at` and `last_happened_at`, `occurrence_count`, `subject_name`; `done_by`: `you`, `api_key`, `ai`, `zaisma`; `actor` in the admin MCP | |
@@ -425,7 +420,10 @@ One name per concept. The API and MCP column is snake_case; the SDK and game ser
425
420
  | A game server's schedules, and one run of one | `schedules` (in stats): `schedule_name`, `cron`, `version_id`, `next_run_at`, `last_run_at`; `scheduled_run_count` (in a day's `game_server`) | `schedules: [{ name, cron }]` (`Schedule`, up to `SCHEDULE_LIMITS.maximumScheduleCount`, cron in UTC); `onSchedule(run, server)` with `run.name`, `run.cron`, `run.scheduledAt` (`ScheduledRun`), and `server.database` |
426
421
  | A friend request a game offers, sent only once the player says yes on Zaisma's page, and who takes them | the social setting `who_can_send_friend_requests`: `nobody` (Invites only), `played_with` (People I play with: the same room now or within the last hour), `anyone`; in Zaisma's own code `friend_requests` (`sender_account_id`, `recipient_account_id`, `answer`: `accepted`, `turned_down`) and `room_visits` | `Zaisma.friends.sendRequest(playerId)` answers `{ status }`: `sent`, `cancelled`, `already_friends`, `not_taking_requests`; the room's `{ type: "friend_request", playerId }` from a game and `{ type: "friend_request" }` to the other player (look now, never who) |
427
422
  | A game played off its Zaisma page (exported, on another site, in a store), and its players on the developer's own server | | `Zaisma.setUpOffZaisma({ gameSlug, playerToken })` answers `{ isOffZaisma }` (refused with `bad_game_slug`, `bad_player_token`); `playerToken`, a player's proof from somewhere other than Zaisma (a Sign in with Zaisma ID token or the game's own token, up to 8 KB; `null` for a guest), sent in a hello or request in place of `pass` (`REQUEST_LIMITS.maximumPlayerTokenSizeBytes`); the player's `kind` `outside_zaisma`; `startServer`'s `identifyPlayer(playerToken, { origin })` answering `{ id, name }` or null (`IdentifyPlayer`, `OutsidePlayer`) and `outsideGuestsEnabled`; `signInWithZaismaPlayers({ signInAppIds, siteUrl, loadKeys, loadProfile })` and `guestPlayer()`; refused with `bad_player_token`; `checkChat`'s `null` passes. Inside: `OUTSIDE_PLAYER_LIMITS`, `OUTSIDE_ZAISMA_CHAT_SETTINGS`, `checkedOutsidePlayer`, `isPlayerToken`, `ChatMessage.hasOutsideReceiver` |
428
- | A game's own servers that players' browsers connect to, named in the game's menu | `own_server_urls` (each `wss://` or `https://` and a host, like `wss://play.example.com`) | `serverUrl` in `Zaisma.joinRoom` and `Zaisma.friends.setRoom` |
423
+ | A game's own servers that players' browsers connect to, named in the game's menu and in the warning before play | `own_server_urls` (each `wss://` or `https://` and a host, like `wss://play.example.com`). Inside: `ownServerHostsOf`, `playsOnOwnServers`, the page's `has_own_servers`, `ownServerSheet`; `games.lists_held_at_ms` (a report holding such a game out of Zaisma's lists until a person decides) | `serverUrl` in `Zaisma.joinRoom` and `Zaisma.friends.setRoom` |
424
+ | A new developer's listed game waiting for Zaisma's own lists (home, browsing, search) | `is_waiting_for_zaisma_lists` on a game. Inside: `games.lists_opened_at_ms` (when they opened; they stay open), `LISTS_WAIT_LIMITS`, `owners.is_invited_developer` (let publish before the beta: established from the start) | |
425
+ | What watches games after publishing, and flags one for a person | reports of reason `watcher_flag` with `watcher_kind` (`server_time_past_players`, `devices_running_hot`, `plays_without_people`); `read_game_file` in the admin MCP. Inside: `WATCHERS`, `WATCHER_LIMITS`; per game and day `pressure_measured_duration_sec`, `pressure_serious_duration_sec`, `pressure_play_count` (the game frame's `zaisma:pressure` message, `{ measured_sec, serious_sec }`), and a ticket's own `pressure_measured_duration_sec` | |
426
+ | The fixed checks that decide every version | each check's `code` (a `REVIEW_CODES` entry); `stopped_by` in a test-set case (a refusing code, `sandbox`, `reports` or `watchers`). Inside: `FIXED_CHECKS`, `runFixedChecks`, `REFUSING_CHECK_CODES` | |
429
427
  | The hosts a game's own game server can call (game server reach), and how a call it can't make fails | `game_server_allowed_hosts` (host names, or `*.example.com` for the names under one) | plain `fetch()`; a refused call throws an `OutsideCallError` with a `code` (`OutsideCallErrorCode`: `not_https`, `unreachable_host`, `host_not_allowed`, `outside_call_limit`, `too_big`, `outside_call_timeout`, `outside_call_failed`) and a `fix` (`OUTSIDE_CALL_LIMITS`: `maximumBodySizeBytes`, `timeoutSec`, `maximumCallsPerMin`) |
430
428
  | A game listed from another site: where it plays, its check, who it opens for, and the report that its site is harmful | `link_out_url`, `link_out_who_can_open` (`everyone`, `waiting_for_standing`, `nobody`), `link_out_review_reason`; errors `bad_link_out_url`, `link_out_not_browser`, `game_hosted_here`, `hosted_only_setting`; the report reason `harmful_site`. Zaisma's own code: `games.link_out_checked_at_ms`, `LINK_OUT_TRUSTED_DOMAINS`, `checkLinkOutUrl`, `linkOutAudience`, `isOpenListing`, `HAS_SOMETHING_TO_PLAY_SQL` | |
431
429
  | A game's registered links: the name the game opens one by, its address, whether its game page shows it, and who it opens for | `links`, each `{ link_name, destination_url, is_on_game_page, who_can_open, review_reason }`; `who_can_open`: `everyone`, `signed_in_adults`, `waiting_for_standing`, `nobody` | `Zaisma.links.open(linkName, { path, queryParameters, ownSiteUrl })` answers a `LinkStatus`: `opened`, `stayed`; errors `unknown_link`, `bad_link_path`, `bad_link_query`, `bad_own_site_url`, `needs_player_tap` |