@zaisma/cli 0.62.0 → 0.63.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zaisma/cli",
3
- "version": "0.62.0",
3
+ "version": "0.63.0",
4
4
  "description": "Upload and publish browser games on Zaisma from the command line.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://zaisma.com",
@@ -681,7 +681,7 @@ A game looks like: `slug`, `page_url`, `can_change_slug`, `title`, `description`
681
681
  | Call | What it does |
682
682
  | --- | --- |
683
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. |
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: []`. |
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` and `database_size_bytes`. 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: []`. |
685
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. |
686
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`. |
687
687
 
@@ -775,7 +775,7 @@ Everything a game runs on Zaisma's servers is on one meter per game, shown as a
775
775
  `hosting_use_this_month`, in `GET /games/:slug/stats` and `GET /games/:slug/database`:
776
776
 
777
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.
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.
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), `page_previews` (Chrome drawing your AI's preview pictures, `preview_game_page`). `[]` before any use.
779
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.
780
780
  - `is_paused`, `paused_reason` (`free_used`, `budget_used`, `credit_used`, `no_real_players`, `free_hosting_ended` or `null`) and `paused_at`.
781
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.
@@ -796,7 +796,6 @@ Everything a game runs on Zaisma's servers is on one meter per game, shown as a
796
796
  - **Relayed data:** $0.20 per GB.
797
797
  - **Database:** $0.60 per million calls, $4 per million rows written, $0.004 per million read, $0.80 per GB-month stored, and $23.04 per 1,000 hours awake.
798
798
  - **Requests:** $1.80 per million game server requests, a schedule's run or a webhook event counting as one, and $23.04 per 1,000 hours its object is awake for them.
799
- - **Chat checks:** $0.20 per 1,000 checks of chat between adults, when its game server turns on `adultChatFilterEnabled`.
800
799
 
801
800
  Only this part shows in dollars. You hear at 80% of a game's budget (`hosting_budget_nearly_used`) and when it's used, by email and in its alerts and webhooks, again for a raised budget; at 80% of the free hosting for a game without a budget, or with one and no credit to spend (`hosting_nearly_paused`). When one run of the meter takes a game straight past a heads-up to its pause, you get both.
802
801
 
@@ -873,7 +872,7 @@ An account over its limit keeps its live versions. New uploads must fit: `storag
873
872
 
874
873
  ## Players
875
874
 
876
- A signed-in player plays as their Zaisma account in every game, with the same player ID (`player_…`) everywhere; anyone else is a guest with a new ID for each pass. Your game sees the ID in `room.players`, in `Zaisma.player.getPass()` and as the `sub` of the player pass your own server checks, with `kind` saying `account` or `guest`. Your server checks a pass with `verifyPass(pass, keys, { gameSlug })` from `@zaisma/game-server` (your game's own keys at `https://rooms.zaisma.com/v1/pass-keys/<gameSlug>`: every game's passes are signed with a key of its own, so a pass for another game never checks out against them; the list holds more than one so the next key is out ahead of signing anything: pick by the token's `kid`, as `verifyPass` does, and never pin one; `issuerUrl` defaults to `https://rooms.zaisma.com`): a JWT with header `typ` `pass+jwt` and claim `pass_version_number` `1`, refused with a `PassError` whose `code` is `malformed`, `unknown_key` (fetch the keys again), `bad_signature`, `expired`, `wrong_game`, `wrong_issuer`, `wrong_kind` (a receipt, or another JWT) or `wrong_version`. `kind` and `who_can_chat` may gain values, so treat one you don't know as a guest and as `nobody`. An account's pass says who it can chat with (`who_can_chat`, and when `anyone` an opaque `chat_group_id`), its own opaque `player_tag_id` and its friends' and blocks' tags (`friend_player_tag_ids`, `block_player_tag_ids`), all different in every game. Zaisma never tells a game anyone's age; a game could guess which chat group is the younger one from its size.
875
+ A signed-in player plays as their Zaisma account in every game, with the same player ID (`player_…`) everywhere; anyone else is a guest with a new ID for each pass. Your game sees the ID in `room.players`, in `Zaisma.player.getPass()` and as the `sub` of the player pass your own server checks, with `kind` saying `account` or `guest`. Your server checks a pass with `verifyPass(pass, keys, { gameSlug })` from `@zaisma/game-server` (your game's own keys at `https://rooms.zaisma.com/v1/pass-keys/<gameSlug>`: every game's passes are signed with a key of its own, so a pass for another game never checks out against them; the list holds more than one so the next key is out ahead of signing anything: pick by the token's `kid`, as `verifyPass` does, and never pin one; `issuerUrl` defaults to `https://rooms.zaisma.com`): a JWT with header `typ` `pass+jwt` and claim `pass_version_number` `1`, refused with a `PassError` whose `code` is `malformed`, `unknown_key` (fetch the keys again), `bad_signature`, `expired`, `wrong_game`, `wrong_issuer`, `wrong_kind` (a receipt, or another JWT) or `wrong_version`. `kind`, `who_reads_my_chat` and `who_can_chat` may gain values, so treat one you don't know as a guest and as `nobody`. An account's pass says how its chat reaches (`who_reads_my_chat`, `chat_reading_enabled`, its age band's opaque `chat_group_id`, its sealed `network_seal`, and v1's `who_can_chat` as a stricter stand-in), its own opaque `player_tag_id` and its friends' and blocks' tags (`friend_player_tag_ids`, `block_player_tag_ids`), all different in every game. Zaisma never tells a game anyone's age; a game could guess which chat group is the younger one from its size.
877
876
 
878
877
  | Call | What it does |
879
878
  | --- | --- |
@@ -881,19 +880,20 @@ A signed-in player plays as their Zaisma account in every game, with the same pl
881
880
 
882
881
  A player sits in one of your game's rooms at a time, as on Steam: joining another room closes their seat in the first (the room's players are told "Joined from somewhere else" with close code `4001`, and `onLeave` runs with reason `"left"`). Moves between your rooms (`room.moveTo`, `room.reserve`) and watching never close a seat. A game that keeps players in several rooms at once, like a hangout hub beside its matches, sets `maximumRoomCountPerPlayer` (an integer from 1 to 10, 1 by default; a join past it closes the oldest seat). `playing_now_player_count` (on `GET /games/:slug`) and the game page's playing count count each player once, however many rooms they sit in.
883
882
 
884
- Games and servers get the same with no key at `GET https://rooms.zaisma.com/v1/players/<player_id>` (open to any site, up to 300 a minute per address, answers cacheable for 5 minutes), and in games with `Zaisma.player.getProfile(playerId)`. A player pass proves only who the player is: an account's carries no name, so your server looks the name up there (the Node game server does it for you). It also says who an account can chat with, never its age: `who_can_chat` (`nobody`, `friends`, `anyone`: the player's own setting) and, unless `nobody`, an opaque `chat_group_id` (`chat_group_…`, different in every game: chat never leaves it, friends included); and its friends and blocks as opaque tags, never their player IDs: `player_tag_id` (its own, different in every game), `friend_player_tag_ids` (its friends', up to 200) and `block_player_tag_ids` (accounts it has a block with, either way, up to 100). Your server asks `passesAreFriends(first, second)`, `passesHaveBlockBetween(first, second)` and `canChat(first, second)` from `@zaisma/game-server` with two checked passes, before passing chat between them. Inside games, `Zaisma.friends.list()` gives a signed-in player their friends playing this game, with their rooms, and `Zaisma.friends.sendRequest(playerId)` offers a friend request that Zaisma asks the player about first, answering `{ status }`: `sent`, `cancelled`, `already_friends` or `not_taking_requests` (see "Friends in your game" in the README). A game never sees a request; two players who become friends get each other's tags in their next passes.
883
+ Games and servers get the same with no key at `GET https://rooms.zaisma.com/v1/players/<player_id>` (open to any site, up to 300 a minute per address, answers cacheable for 5 minutes), and in games with `Zaisma.player.getProfile(playerId)`. A player pass proves only who the player is: an account's carries no name, so your server looks the name up there (the Node game server does it for you). It also says how an account's chat reaches, never its age: `who_reads_my_chat` (`friends`, `my_age_band` or `everyone`: the player's own choice; `nobody` while their chat is stopped), `chat_reading_enabled` (whether they read others' chat), an opaque `chat_group_id` (`chat_group_…`, their age band's, different in every game: only `everyone` crosses it), `network_seal` (their network, sealed for Zaisma's witness rule alone and different in every pass) and `who_can_chat`, v1's setting, still sent as a stricter stand-in for servers that don't read `who_reads_my_chat`; and its friends and blocks as opaque tags, never their player IDs: `player_tag_id` (its own, different in every game), `friend_player_tag_ids` (its friends', up to 200) and `block_player_tag_ids` (accounts it has a block with, either way, up to 100). Your server asks `passesAreFriends(first, second)`, `passesHaveBlockBetween(first, second)` and `canChat(first, second)` from `@zaisma/game-server` with two checked passes, before passing chat between them. Inside games, `Zaisma.friends.list()` gives a signed-in player their friends playing this game, with their rooms, and `Zaisma.friends.sendRequest(playerId)` offers a friend request that Zaisma asks the player about first, answering `{ status }`: `sent`, `cancelled`, `already_friends` or `not_taking_requests` (see "Friends in your game" in the README). A game never sees a request; two players who become friends get each other's tags in their next passes.
885
884
 
886
885
  In games, `Zaisma.player.getPass()` gives this tab's player and their pass (`{ id, name, kind, pass, expiresAt }`) to send to your own server. `Zaisma.invite(room)` opens Zaisma's invite sheet on the game page (the room's QR code, link and code), or on your own site the share sheet or a copied link; it works only right after the player taps or presses a key in the game, so call it from that tap's handler, and it fails with `error.code` `"needs_player_tap"` otherwise. It answers `"opened"`, or `"failed"` when the page couldn't open it; on your own site `"shared"` from the share sheet, `"copied"` the link, `"cancelled"` the share sheet, or `"failed"` (`InviteStatus`; treat a value you don't know as `"failed"`). A game that shows its own player list reads its room's players and draws it, with `room.mute`, `room.unmute`, `room.block` and `room.report` behind its own buttons; the Zaisma overlay keeps its own list for every game, and no call opens it. On touch screens the Zaisma button stays in the top right corner over your game and takes presses there, so keep that corner free of your own buttons on phones and tablets. The reference is `packages/sdk/zaisma.d.ts`, served beside the SDK as `_zaisma/v1.d.ts`.
887
886
 
888
887
  ### Chat
889
888
 
890
- Players type to each other through Zaisma's chat hosting: one call in the game, `room.chat(text)`, sends a message through the room it's in, on Zaisma's rooms or your own server's runner (`zaisma-game-server`). Your game draws the chat box and moderates it; Zaisma decides who may read each message, filters it on its way and keeps none of it.
889
+ Players type to each other through Zaisma's chat hosting: one call in the game, `room.chat(text)`, sends a message through the room it's in, on Zaisma's rooms or your own server's runner (`zaisma-game-server`). Your game draws the chat box and moderates it; Zaisma decides who may read each message, checks it on its way and keeps none of it. Safety comes from who reads it, not from filtering words: every player 13 and up reads a room's chat by default, across age bands, so every lobby is full of witnesses, and anyone under 18 types only where others read it.
891
890
 
892
- - **Who reads it:** chat reaches only players in the sender's chat group whose settings let them chat with the sender: both accounts, no block either way, neither set to nobody, and friends unless both chat with anyone. Friends in different chat groups stay friends but can't chat. Guests don't chat (`room.canChat` is `false`: hide your box and offer preset phrases or emotes), and spectators neither send nor read chat. `room.chat` resolves `{ sentAt }` even when nobody could read it, so the sender is never told who can't.
891
+ - **Who reads it:** each player chooses who reads what they type: Friends (friends their age), My age band or Everyone (the only choice that reaches other age bands); 13 to 15 start on Friends, 16 to 17 on My age band, adults on Everyone. A message reaches the players that choice takes in who read chat (on unless they turned it off), with no block either way. Guests don't chat (`room.canChat` is `false`: hide your box and offer preset phrases or emotes), and spectators neither send nor read chat. `room.chat` resolves `{ sentAt }` even when nobody could read it, so the sender is never told who can't.
892
+ - **The witness rule:** a message an under-18 account sends or reads goes only where at least two independent players read it: signed-in accounts that have played a while (a week old, with plays on two days), on networks unlike the sender's and each other's. Whispers (`toPlayerIds`), two-player rooms and friends included: there is no exception. From an under-18 it's otherwise stopped (`chat_stopped`, `not_allowed_to_chat`). From an adult in Zaisma's rooms it goes on to the adults only, and the sender hears it went, so a duo never tells them the other player is under 18. Your game's own whispers or duos built on game messages must carry no typed chat to or from an under-18 either: only `room.chat` passes through Zaisma, and the same rule holds for what doesn't.
893
893
  - **In the game:** `room.chat(text, { toPlayerIds })` (all players when `toPlayerIds` is left out, up to 2000 characters, up to 20 messages in 10 seconds) resolves once it went, or rejects with `error.code` `chat_stopped` (`error.reason` says why and `error.message` is what to show the player), `chat_not_allowed`, `chat_empty`, `chat_too_long` or `chat_too_fast`. `room.on("chat", ({ fromPlayerId, text, hasSwearing, hasSlur, sentAt }) => …)` brings the others' messages; messages from players this player muted or blocked never come. Show the player's own line when `room.chat` resolves.
894
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.
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.
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.
895
+ - **The filter:** every message an under-18 account sends or reads is checked on Zaisma's side for one thing, and it never grows: contact details in any disguise (a run of 7 or more digits, 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. Everything else is your call: swearing, sexual words and slurs are flagged (`hasSwearing`, `hasSlur`) and let through, and what you don't want goes by your moderation and player reports. No AI decides anything in chat. The verdict is one for the whole message, never per receiver.
896
+ - **Between adults** nothing is filtered, unless your game server sets `adultChatFilterEnabled: true`: then contact details are stopped between adults too, for free.
897
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).
898
898
 
899
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):
@@ -926,12 +926,12 @@ send.addEventListener("click", sendLine);
926
926
  input.addEventListener("keydown", (event) => event.key === "Enter" && sendLine());
927
927
  ```
928
928
 
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.").
929
+ Every answer from the filter is `{ isAllowed, reason, message, hasSwearing, hasSlur }`: `reason` is `contact_details`, `chat_paused` (the sender's chat is paused or removed), `too_long` (over 2000 characters: checked whole, never cut), `not_allowed_to_chat` (too few independent players read a message with an under-18 in it, or on your own server `canChat` says no for a receiver) or, from your own server's `checkChat`, `unchecked` (Zaisma couldn't be reached: don't deliver it); `personal_details`, `sexual` and `slur` are v1's and no longer given. `message` is the words to show the sender, which never mention age or the other player ("Contact details can't be sent here.").
930
930
 
931
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.
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.
932
+ - **On your own server without the runner:** `checkChat({ text, senderPass, receiverPasses, isAdultFilterEnabled })` from `@zaisma/game-server`, with the passes of everyone who'd read it as your server received them, after `canChat(sender, reader)` says each may: the first pass is the sender's and the second the reader's, so the order matters (ask both ways for a two-way check, like voice). The runner does this for `room.chat` itself, in checks of 50 readers each for a bigger room, and delivers a message to all its readers or, if one left meanwhile, stops it. Your server is trusted to send the passes of the players who really read the message, as it's trusted to call `checkChat` at all. 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 and the witness rule itself too: if a receiver may not read the sender, or the message has an under-18 in it and fewer than two independent players read it, it answers `not_allowed_to_chat`, one verdict for the message that never says which receiver (between two players, a stop does show that one of them is under 18). It's free. 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_reads_my_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.
933
933
 
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.
934
+ Contact 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_reads_my_chat: "nobody"` (and `who_can_chat: "nobody"`), so `canChat` stops it on your server too. Zaisma keeps no chat.
935
935
 
936
936
  ## Room connections
937
937
 
@@ -1072,7 +1072,7 @@ A room answers a refusal with `{ type: "error", code, message }`, then closes th
1072
1072
  | `bad_origin` | The connection didn't come from the game's own page. |
1073
1073
  | `send_queue_full` | The SDK's own: more than 60 sends waited while it reconnected, so the oldest were dropped. |
1074
1074
  | `chat_not_here` | A chat message reached a room whose server doesn't take chat (an older runner). |
1075
- | `chat_not_allowed` | `room.chat` from a guest, or a player whose chat is set to nobody or paused (`room.canChat` is `false`). |
1075
+ | `chat_not_allowed` | `room.chat` from a guest, or a player whose chat is paused or removed (`room.canChat` is `false`). |
1076
1076
  | `chat_empty` | `room.chat` with nothing but spaces. |
1077
1077
  | `chat_too_long` | `room.chat` over 2000 characters. |
1078
1078
  | `chat_too_fast` | More than 20 chat messages in 10 seconds from one player. |
@@ -64,7 +64,7 @@ export default {
64
64
  // joinInfo: { fromRoomCode, isReturning, isSpectator } (isReturning: back to a held seat)
65
65
  canJoin(state, player, room, joinData, joinInfo) {}, // true lets them in; false or { refusalMessage } turns them away
66
66
  onChat(state, player, room, chatInfo) {}, // a player's room.chat, before Zaisma's filter: true, false or { toPlayerIds }
67
- adultChatFilterEnabled: false, // true: Zaisma's chat filter checks chat between adults too (on your meter)
67
+ adultChatFilterEnabled: false, // true: Zaisma's chat filter stops contact details between adults too (free)
68
68
  onLeave(state, player, room, leaveInfo) {}, // leaveInfo.reason: left, lost, idle, hidden or kicked
69
69
  onMessage(state, player, room, message) {},
70
70
  onBytes(state, player, room, bytes) {}, // bytes a player's game sent (room.sendBytes), a Uint8Array
@@ -553,7 +553,7 @@ A room answers a refusal with `{ type: "error", code, message }`, then closes th
553
553
  | `bad_origin` | The connection didn't come from the game's own page. |
554
554
  | `send_queue_full` | The SDK's own: more than 60 sends waited while it reconnected, so the oldest were dropped. |
555
555
  | `chat_not_here` | A chat message reached a room whose server doesn't take chat (an older runner). |
556
- | `chat_not_allowed` | `room.chat` from a guest, or a player whose chat is set to nobody or paused (`room.canChat` is `false`). |
556
+ | `chat_not_allowed` | `room.chat` from a guest, or a player whose chat is paused or removed (`room.canChat` is `false`). |
557
557
  | `chat_empty` | `room.chat` with nothing but spaces. |
558
558
  | `chat_too_long` | `room.chat` over 2000 characters. |
559
559
  | `chat_too_fast` | More than 20 chat messages in 10 seconds from one player. |
@@ -277,14 +277,14 @@ One name per concept. The API and MCP column is snake_case; the SDK and game ser
277
277
  | What an account has earned, and what each power needs | `standing` (`GET /access`): `is_established_developer`, `outside_links_enabled`, `search_engines_enabled`, `returning_player_count`, `minimum_returning_player_count`, `account_age_days`, `minimum_account_age_days`, `has_card_or_stripe_account`, `last_ruling_at`, `ruling_wait_ends_at`; the admin MCP's `set_zaisma_account` (`is_zaisma_account`); Zaisma's own code: `game_returning_players` (`first_counted_date`, `last_counted_date`, `counted_day_count`), `accounts.counted_play_day_count`, `accounts.last_counted_play_date`, `owners.last_ruling_at_ms`, `owners.returning_player_count`, `owners.is_established`, `owners.standing_checked_at_ms`, `owners.is_zaisma_account`, `STANDING_LIMITS`, `standingOf`, `recordReturningPlay`, `noteRuling`, `checkStanding`, `isStrangerChatWaiting`, `SEARCH_ENGINES_ENABLED_SQL` | |
278
278
  | A link that opens once the developer is established | `who_can_open` `waiting_for_standing` | |
279
279
  | Whether an account can make, upload and publish games before the beta (only accounts Zaisma adds can) | `can_publish` (`GET /access`, the admin MCP's `set_can_publish`); error `publishing_not_open` | |
280
- | Who an account can chat with, and the opaque group every account that chats at all chats in, friends included (never an age) | | player pass claims `who_can_chat`: `nobody`, `friends`, `anyone`; `chat_group_id` (a `chat_group_…` ID, different in every game); checked with `canChat(first, second)`; `room.canChat` (whether this player can chat at all); `PlayerChatSettings` (`whoCanChat`, `chatGroupId`, the room's host's copy, never the game's) |
280
+ | Who reads what an account types, whether it reads others' chat, and the opaque group of its age band (never an age) | `who_reads_my_chat`: `friends`, `my_age_band`, `everyone` (the social setting, outside the presets, `defaultWhoReadsMyChat`), `chat_reading_enabled` (Zaisma's own code: `accounts.who_reads_my_chat`, `accounts.chat_reading_enabled`, `PRESET_SOCIAL_SETTINGS`) | player pass claims `who_reads_my_chat` (`WhoReadsMyChat`, or `nobody` while stopped), `chat_reading_enabled`, `chat_group_id` (a `chat_group_…` ID, different in every game), v1's `who_can_chat` (`WhoCanChat`: `nobody`, `friends`, `anyone`) as a stricter stand-in; checked with `canChat(first, second)`, first the sender and second the reader; inside, `ChatReach` (`nobody`, `friends`, `my_age_band`, `everyone`), `chatReachOf`, `isWithinChatReach`, `PlayerChatSettings` (`sending`, `reading`, `chatGroupId`, `networkSeal`) |
281
281
  | A chat message: a line a player typed, sent with room.chat through the room to the players who may read it, after the game server's onChat and Zaisma's chat filter | `chat_messages` on a player report (`from_player_id`, the reported player's or `null`, `text`, `sent_at`); Zaisma's own code: `reports.reported_chat_json`, `ReportedChatMessage`, `REPORTED_CHAT_LIMITS` | `room.chat(text, { toPlayerIds })` answers `{ sentAt }` (`ChatSent`); the `chat` event's `ChatMessage`: `fromPlayerId`, `text`, `hasSwearing`, `hasSlur`, `sentAt`; game server `onChat(state, player, room, chatInfo)` with `ChatInfo` `{ text, toPlayerIds }`, answering a `ChatAnswer` (`true`, `false`, `{ toPlayerIds }`); option `adultChatFilterEnabled`; `CHAT_ROOM_LIMITS` (`maximumChatMessageCount`, `chatWindowDurationMs`); wire messages `chat`, `chat_sent`, `chat_stopped` with a `chatNumber`; error codes `chat_stopped` (with `reason`, `stopped_by_game` for onChat), `chat_not_allowed`, `chat_empty`, `chat_too_long`, `chat_too_fast`, `chat_not_here` |
282
- | Chat between adults checked by Zaisma's filter, on the game's hosting meter | `adult_chat_check_count` (`room_usage` and `hosting_use_this_month`); share kind `adult_chat_checks`; `HOSTING_PRICES.adultChatCheckCentsPerCheck` | game server option `adultChatFilterEnabled`; `checkChat`'s `isAdultFilterEnabled` |
282
+ | Anyone under 18 types only where two independent players read it: who counts, and a player's network for it (never shown to a game) | Zaisma's own code: `CHAT_WITNESS_LIMITS` (`minimumWitnessCount`, `minimumWitnessAccountAgeDays`, `minimumWitnessCountedDayCount`), `isEstablishedWitness`, `independentWitnessCount`, `WitnessReader`; a network is `v4:<address>` or `v6:<the /56>` (`networkOfAddress`, `networkOf`, `sealNetwork`, `openNetworkSeal`); the filter's answer in rooms adds `readerPlayerIds` and `isEveryReaderNeeded` | player pass claim `network_seal`; `deliverChat`'s `isEveryReaderNeeded` |
283
283
  | An account's Zaisma friends, and the invite that makes two accounts friends | | player pass claim `friend_player_tag_ids` (their `player_tag_id`s, never their player IDs), checked with `passesAreFriends(first, second)`; `room.areFriends(firstPlayerId, secondPlayerId)`; a friend invite's `invite_code` is 8 letters and digits, shown as `K7Q2-MX9P` |
284
284
  | A player's friends playing this game, the room to join each in, and why not | `server_url` (in Zaisma's own code: a room on the game's own servers) | `Zaisma.friends.list()` answers `{ friends }`, each `{ id, name, username, roomCode, serverUrl, joinRefusal }`; `joinRefusal`: `game_not_taking_joins`, `friend_not_taking_joins`, `private_room`, `room_closed`, `room_full`, `spectators_full`, `friend_not_in_room`; `Zaisma.friends.setRoom({ serverUrl, roomCode, friendJoinsEnabled })` (null when the player left), refused with `unlisted_server`; a friend's Join link's `?server=`, read as `Zaisma.rooms.linkedServerUrl` |
285
285
  | A block between two players, either way (never who made it, never anyone's list of blocks) | | `room.hasBlockBetween(firstPlayerId, secondPlayerId)`; player pass claims `player_tag_id` (the account's own `player_tag_…` ID, different in every game) and `block_player_tag_ids` (the player tags of the accounts it has a block with), checked with `passesHaveBlockBetween(first, second)`; the room's `{ type: "blocks", playerIds }` to each player; a game's `{ type: "block", playerId }` and `{ type: "unblock", playerId }`; `room.block(playerId)`; quickJoin's hello `avoidBlockedPlayers: true`, turned away with `blocked_player_here` |
286
286
  | Whether Zaisma's Join (friends on zaisma.com, `Zaisma.friends`) takes players into a game's rooms, or into one room, and whether a game joins players by itself | `friend_joins_enabled`, error `bad_friend_joins_enabled`; `quick_joined_at_ms` (Zaisma's own code) | `friendJoinsEnabled` in `joinRoom`, `quickJoin`, `room.reserve` and the room's settings; `room.setFriendJoinsEnabled(isEnabled)`; every hello from quickJoin says `isQuickJoin: true` |
287
- | What Zaisma's chat filter stopped, and why (one set of reasons everywhere), and what it only flags | `reason`: `contact_details`, `personal_details`, `sexual`, `chat_paused`, `too_long`, `not_allowed_to_chat` (own servers' `checkChat` only), and `unchecked` when Zaisma can't be reached or its check can't run just now (the message is held: send it again in a moment); a message kept for review is a `chat_review_…` ID, `chat_review_id` in the admin MCP | `Zaisma.checkChat` and the game server's `checkChat` answer `isAllowed`, `reason` (`ChatCheckReason`, the same values; the SDK's are the ones a game's own check can give), `message` (the words the sender sees), `hasSwearing` and `hasSlur` (allowed, flagged for the game), as a `ChatCheck` |
287
+ | What Zaisma's chat filter stopped, and why (one set of reasons everywhere), and what it only flags | `reason`: `contact_details`, `chat_paused`, `too_long`, `not_allowed_to_chat` (too few witnesses, or own servers' `checkChat` refusing a receiver), and from own servers' `checkChat` `unchecked` when Zaisma can't be reached; `personal_details`, `sexual` and `slur` are v1's, no longer given; a message kept for review before the chat review AI went is a `chat_review_…` ID, `chat_review_id` in the admin MCP | `Zaisma.checkChat` and the game server's `checkChat` answer `isAllowed`, `reason` (`ChatCheckReason`, the same values), `message` (the words the sender sees), `hasSwearing` and `hasSlur` (allowed, flagged for the game), as a `ChatCheck`; `adultChatFilterEnabled` and `isAdultFilterEnabled` stop contact details between adults too |
288
288
  | What a game needs a Zaisma account for | `account_requirement`: `none`, `multiplayer`, `whole_game`; a guest turned away gets `account_needed` | error `code` `account_needed` |
289
289
  | A game asking a guest to sign in while it runs, and the guest saying Not now | | `Zaisma.player.signIn()`; error `code` `sign_in_declined` |
290
290
  | A secret kept in the database under a key the database never holds (`packages/core/src/sealed-secrets.ts`), and what finds it | `sealed_signing_secret`, `sealed_token`, never in an answer; `token_sha256`. The key's two slots: `STORED_SECRETS_KEY`, `SECOND_STORED_SECRETS_KEY`, and `IS_SECOND_STORED_SECRETS_KEY_IN_USE`, the same shape for each replaceable key (`scripts/replace-key.mjs`) | |
@@ -347,7 +347,7 @@ One name per concept. The API and MCP column is snake_case; the SDK and game ser
347
347
  | What a tester link opens and until when, and when a preview link stops working | `version_choice`: `live`, `newest_passed`, `picked`; `picked_version_id`, `ends_at`; `preview_url_expires_at` | |
348
348
  | Forum topics with something new from Zaisma | `unread_topic_count` | |
349
349
  | What a player wrote in a report | `player_text` | |
350
- | A report about one of a game's players, passed to its developer | `player_report`, in `player_reports`; who it's about: `reported_player_id`, `reported_player_name`; why: `reason`, one of `real_life_threat`, `personal_details`, `following_after_block`, `sexual`, `harassment`, `cheating`, `other` | |
350
+ | A report about one of a game's players, passed to its developer | `player_report`, in `player_reports`; who it's about: `reported_player_id`, `reported_player_name`; why: `reason`, one of `real_life_threat`, `personal_details`, `following_after_block`, `sexual`, `wrong_age`, `harassment`, `cheating`, `other` | |
351
351
  | Reports about the same problem, named by the first one (admin MCP) | `report_group_id` (a `report_…` ID) | |
352
352
  | Where a report stands | `report_status`: `open`, `dismissed`, `actioned` | |
353
353
  | How serious a report or topic is (admin MCP) | `severity`: `child_safety` (reports only), `urgent`, `high`, `normal`, `low` | |
@@ -422,7 +422,7 @@ One name per concept. The API and MCP column is snake_case; the SDK and game ser
422
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` |
423
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
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` | |
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`, and on accounts `adult_meets_teens_in_small_rooms`, `adult_gives_teens_items_alone`, `repeated_age_reports`, whose flag names the account as its player); `read_game_file` in the admin MCP. Inside: `WATCHERS`, `WATCHER_LIMITS`, `flagAgainAfterDays`; adults and under-18s in small rooms together in `teen_small_room_meetings` (`met_date`, `is_alone_together`, `alone_together_updated_at_ms`, `teen_item_grant_count`; `TEEN_MEETING_LIMITS`, `recordTeenMeetings`, `endAloneTogether`, `countTeenItemGrant`); 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
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` | |
427
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`) |
428
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` | |
@@ -1939,10 +1939,11 @@ interface PlayerWithPass extends Player {
1939
1939
  * game's own keys at https://rooms.zaisma.com/v1/pass-keys/<gameSlug>. It proves only who the player is: its sub
1940
1940
  * is the player's ID, kind says guest or account, aud is the game, pass_version_number is 1. A
1941
1941
  * guest's pass also carries their name; an account's name comes from its profile
1942
- * (https://rooms.zaisma.com/v1/players/<id>). An account's pass says who it can chat with:
1943
- * who_can_chat (nobody, friends or anyone, the player's own setting) and, when anyone, an opaque
1944
- * chat_group_id (chat_group_…) that differs in every game. Zaisma never tells a game anyone's age; a
1945
- * game could guess which chat group is the younger one from its size. It carries its friends and
1942
+ * (https://rooms.zaisma.com/v1/players/<id>). An account's pass says how its chat reaches:
1943
+ * who_reads_my_chat (friends, my_age_band or everyone; nobody while its chat is stopped), chat_reading_enabled,
1944
+ * an opaque chat_group_id (chat_group_…) that differs in every game, network_seal (its network, sealed for
1945
+ * Zaisma's witness rule alone), and v1's who_can_chat as a stricter stand-in. Zaisma never tells a game anyone's
1946
+ * age; a game could guess which chat group is the younger one from its size. It carries its friends and
1946
1947
  * blocks, never as a list of players anyone can read: player_tag_id, its own opaque tag in this game
1947
1948
  * (player_tag_…), friend_player_tag_ids, its friends' tags (up to 200), and block_player_tag_ids, the
1948
1949
  * tags of the accounts it has a block with, either way (up to 100). Your own server checks it with