@zaisma/cli 0.62.0 → 0.64.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
|
@@ -90,6 +90,7 @@ The HTTP status goes with the code, as listed. The list lives in `ERROR_CODES` (
|
|
|
90
90
|
| `account_paused` | 403 | A person at Zaisma needs to look at the account: until then it can't make, upload or publish games, or post on the forum. |
|
|
91
91
|
| `publishing_not_open` | 403 | Until the beta, only accounts Zaisma adds can make, upload and publish games. |
|
|
92
92
|
| `bad_title` | 400 | A game's, topic's or precedent's title is empty or too long. |
|
|
93
|
+
| `fake_reward_words` | 400 | A game's title or description promises a fake reward: another platform's currency or something of real value, like free Robux, V-Bucks, gift cards or cash. |
|
|
93
94
|
| `title_names_zaisma` | 400 | A game's title holds the whole word Zaisma, which only Zaisma's own games can use. |
|
|
94
95
|
| `bad_description` | 400 | The description isn't text of up to 500 characters. |
|
|
95
96
|
| `bad_visibility` | 400 | visibility isn't draft, listed, unlisted or private. |
|
|
@@ -381,6 +382,8 @@ The HTTP status goes with the code, as listed. The list lives in `ERROR_CODES` (
|
|
|
381
382
|
| `no_media` | 404 | There's no image there you can see. |
|
|
382
383
|
| `bad_tab` | 400 | tab isn't latest, top, unanswered, known, yours, messages or bookmarks. |
|
|
383
384
|
| `bad_section` | 400 | section isn't one of the forum's sections. |
|
|
385
|
+
| `contact_details_in_post` | 400 | A public forum post or its title holds an email address or asks to be reached somewhere else ("add me on…", "my Discord is…"): developers can be 13. |
|
|
386
|
+
| `link_not_allowed_in_post` | 400 | A public forum post or its title links to a site outside the trusted list and the forum's developer sites (GitHub, MDN, npm, Stack Overflow, Zaisma's own, local addresses). |
|
|
384
387
|
| `bad_category` | 400 | category isn't one of the forum's categories. |
|
|
385
388
|
| `no_category` | 400 | A public topic was sent without its category. |
|
|
386
389
|
| `bad_tag` | 400 | tag isn't one of the forum's tags. |
|
|
@@ -523,7 +526,7 @@ Versions the AI review held before Nov 24, 2026 still read with its code. Settin
|
|
|
523
526
|
| `link_flagged` | `malware` | Cloudflare lists the link's site for malware or phishing, so the link opens for nobody. |
|
|
524
527
|
| `details_rejected` | picked | A person at Zaisma didn't approve the new title or description; the message says why. |
|
|
525
528
|
|
|
526
|
-
**The
|
|
529
|
+
**The shader check** (see Backgrounds), **and the retired listing check**, whose codes pictures and titles from before Nov 25, 2026 may still carry (no AI reads covers, pictures or titles now)
|
|
527
530
|
|
|
528
531
|
| Code | Rule | Meaning |
|
|
529
532
|
| --- | --- | --- |
|
|
@@ -653,7 +656,7 @@ Every call is checked before any of it runs, in this order: the key's access, wh
|
|
|
653
656
|
| `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`. |
|
|
654
657
|
| `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`. |
|
|
655
658
|
|
|
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
|
|
659
|
+
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` (a title or description from before Nov 25, 2026 still waiting for a person; new words apply at once), `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`.
|
|
657
660
|
|
|
658
661
|
- **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.
|
|
659
662
|
- **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.
|
|
@@ -676,12 +679,12 @@ A game looks like: `slug`, `page_url`, `can_change_slug`, `title`, `description`
|
|
|
676
679
|
- **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.
|
|
677
680
|
- **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.
|
|
678
681
|
- 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`.
|
|
679
|
-
-
|
|
682
|
+
- A new title or description shows at once: no AI reads it. One promising a fake reward (free Robux, V-Bucks, gift cards or cash) is refused when sent (`fake_reward_words`, quoting the words); the rest goes by players' reports.
|
|
680
683
|
|
|
681
684
|
| Call | What it does |
|
|
682
685
|
| --- | --- |
|
|
683
686
|
| `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
|
|
687
|
+
| `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
688
|
| `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
689
|
| `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
690
|
|
|
@@ -696,7 +699,6 @@ A game looks like: `slug`, `page_url`, `can_change_slug`, `title`, `description`
|
|
|
696
699
|
- `version_rejected`: the newest version was rejected. `GET /games/:slug/versions/:id` has its `findings`.
|
|
697
700
|
- `version_held`: a version is waiting for a person at Zaisma (or a player report paused it), usually decided within a day. One alert per held version.
|
|
698
701
|
- `link_flagged`: one of the game's registered links opens for nobody, since Cloudflare lists its site for malware or phishing. One alert per link; its `fix` is the link's `review_reason`'s.
|
|
699
|
-
- `game_off_lists`: the game is listed, but a cover's or the title's `listing_reason` keeps it off Zaisma's lists until it's fixed; the message gives each reason, the fix the first one's. It still plays by its link.
|
|
700
702
|
- `hosting_paused`: the game's hosting is paused this month (see Hosting and credit), with why: its free hosting is used and it has no budget (back on the 1st, UTC), its budget is used, your credit ran out, it has no real players and games with none used their share of free hosting (back once real players play it, or on the 1st), or Zaisma's free hosting for the month ended. No new rooms, connections between players or game server requests start; matches already running get an hour from the pause to finish, and take no new players meanwhile: the game server's `onEnding` and each player's `ending` event say when (`room.endsAt`). When the pause lifts within that hour (credit comes in, the budget is raised, the month resets), the end is called off: `room.endsAt` is `null` again, the game server's `onEndingCancelled` and each player's `endingCancelled` event say so, and the match takes new players again. The `fix` says what starts it again.
|
|
701
703
|
- `free_rooms_stopped`: Zaisma's free room time for the month is used up across all games, and the game has no budget with credit (see Hosting and credit). No new rooms or connections between players start until the 1st (UTC); its database and game server requests go on.
|
|
702
704
|
- `second_free_allowance_started`: the game filled its free hosting for the first time, so it has a second free allowance this month, once.
|
|
@@ -775,7 +777,7 @@ Everything a game runs on Zaisma's servers is on one meter per game, shown as a
|
|
|
775
777
|
`hosting_use_this_month`, in `GET /games/:slug/stats` and `GET /games/:slug/database`:
|
|
776
778
|
|
|
777
779
|
- `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), `
|
|
780
|
+
- `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
781
|
- `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
782
|
- `is_paused`, `paused_reason` (`free_used`, `budget_used`, `credit_used`, `no_real_players`, `free_hosting_ended` or `null`) and `paused_at`.
|
|
781
783
|
- `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 +798,6 @@ Everything a game runs on Zaisma's servers is on one meter per game, shown as a
|
|
|
796
798
|
- **Relayed data:** $0.20 per GB.
|
|
797
799
|
- **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
800
|
- **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
801
|
|
|
801
802
|
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
803
|
|
|
@@ -873,7 +874,7 @@ An account over its limit keeps its live versions. New uploads must fit: `storag
|
|
|
873
874
|
|
|
874
875
|
## Players
|
|
875
876
|
|
|
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
|
|
877
|
+
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
878
|
|
|
878
879
|
| Call | What it does |
|
|
879
880
|
| --- | --- |
|
|
@@ -881,19 +882,20 @@ A signed-in player plays as their Zaisma account in every game, with the same pl
|
|
|
881
882
|
|
|
882
883
|
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
884
|
|
|
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
|
|
885
|
+
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
886
|
|
|
886
887
|
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
888
|
|
|
888
889
|
### Chat
|
|
889
890
|
|
|
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,
|
|
891
|
+
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
892
|
|
|
892
|
-
- **Who reads it:**
|
|
893
|
+
- **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.
|
|
894
|
+
- **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
895
|
- **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
896
|
- **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
|
|
896
|
-
- **Between adults**
|
|
897
|
+
- **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.
|
|
898
|
+
- **Between adults** nothing is filtered, unless your game server sets `adultChatFilterEnabled: true`: then contact details are stopped between adults too, for free.
|
|
897
899
|
- **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
900
|
|
|
899
901
|
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 +928,12 @@ send.addEventListener("click", sendLine);
|
|
|
926
928
|
input.addEventListener("keydown", (event) => event.key === "Enter" && sendLine());
|
|
927
929
|
```
|
|
928
930
|
|
|
929
|
-
Every answer from the filter is `{ isAllowed, reason, message, hasSwearing, hasSlur }`: `reason` is `contact_details`, `
|
|
931
|
+
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
932
|
|
|
931
933
|
- **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
|
|
934
|
+
- **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
935
|
|
|
934
|
-
Contact
|
|
936
|
+
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
937
|
|
|
936
938
|
## Room connections
|
|
937
939
|
|
|
@@ -1072,7 +1074,7 @@ A room answers a refusal with `{ type: "error", code, message }`, then closes th
|
|
|
1072
1074
|
| `bad_origin` | The connection didn't come from the game's own page. |
|
|
1073
1075
|
| `send_queue_full` | The SDK's own: more than 60 sends waited while it reconnected, so the oldest were dropped. |
|
|
1074
1076
|
| `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
|
|
1077
|
+
| `chat_not_allowed` | `room.chat` from a guest, or a player whose chat is paused or removed (`room.canChat` is `false`). |
|
|
1076
1078
|
| `chat_empty` | `room.chat` with nothing but spaces. |
|
|
1077
1079
|
| `chat_too_long` | `room.chat` over 2000 characters. |
|
|
1078
1080
|
| `chat_too_fast` | More than 20 chat messages in 10 seconds from one player. |
|
|
@@ -1573,7 +1575,7 @@ Before a build reaches testers, try its online play on your own computer: `npx @
|
|
|
1573
1575
|
|
|
1574
1576
|
| Call | What it does |
|
|
1575
1577
|
| --- | --- |
|
|
1576
|
-
| `POST /games/:slug/images?kind=cover`, `?kind=square`, `?kind=gallery_picture` (with `&is_screenshot=true` to tag it a screenshot) or `?kind=share` | Send the image file as the request body. Answers with the `image` (`id`, `kind`, `is_screenshot`, `review_status`, `review_reason`, `width_px`, `height_px`, `size_bytes`, `image_url`, `placeholder_data_url`, `
|
|
1578
|
+
| `POST /games/:slug/images?kind=cover`, `?kind=square`, `?kind=gallery_picture` (with `&is_screenshot=true` to tag it a screenshot) or `?kind=share` | Send the image file as the request body. Answers with the `image` (`id`, `kind`, `is_screenshot`, `review_status`, `review_reason`, `width_px`, `height_px`, `size_bytes`, `image_url`, `placeholder_data_url`, `created_at`), a `review_message` and `next_steps`. |
|
|
1577
1579
|
| `DELETE /games/:slug/images/:id` | Remove one; answers `removed_image_id`. |
|
|
1578
1580
|
|
|
1579
1581
|
**Sizes.** Each kind's shape and size, set from where Zaisma draws it largest (the home's Your game card draws a cover 1084 px wide on a 2560 px screen, twice that on a 2x screen):
|
|
@@ -1589,13 +1591,13 @@ Before a build reaches testers, try its online play on your own computer: `npx @
|
|
|
1589
1591
|
|
|
1590
1592
|
The cover is your game's card everywhere players browse: we show it alone, with no title over or under it, so put your game's name or logo on it. A square cover is optional and as wide as it is tall. The gallery is yours: any picture of the game, made or captured, with or without words on it, held only for safety and fake rewards like every picture; a listed game has at least one. Tag a capture of the game as it plays a screenshot (`is_screenshot`), and the game page shows the tag; players can report a picture tagged Screenshot that isn't one, and an upheld report counts against the account's standing. A share picture is optional: wherever a link to your game or one of its rooms is shared (chats, social sites, search results), it unfolds into a card with your share picture, or your cover when there isn't one, the game's title and "Play now in your browser." (a room link says "Join my match in" the title and "Tap to join in your browser."). It's landscape: 1200 by 630 shows best, and the card fits it inside that size. PNG, JPEG or WebP, checked from the file itself; SVG and other types are refused. Up to 10 MB, each kind at least its size above and at most 8,192 px on a side, one cover, one square cover, one share picture and up to 8 gallery pictures. Zaisma keeps each approved picture at the widths pages ask for, up to 3840, never wider than it is. Each image's `review_status` is `pending` until it's checked, usually within a minute, then shows at `https://zaisma.com/img/:id`; a newly approved cover replaces the old one of its kind. Until then only you can see it. One that isn't approved is `rejected`, with its `review_reason`.
|
|
1591
1593
|
|
|
1592
|
-
**
|
|
1594
|
+
**What's checked.** No AI reads a game's covers, gallery pictures, title or description. A picture is approved as soon as image matching has checked it for known abuse material (when matching can't answer, a person looks, usually within a day); new words apply at once. These are the lines covers and titles keep, checked against what's visibly there, never taste; players report one that breaks them, and a person at Zaisma decides:
|
|
1593
1595
|
|
|
1594
|
-
- **A cover, square cover or share picture** shows no text but the game's name, a subtitle and the studio's logo (
|
|
1595
|
-
- **A title** has no tags: a bracketed tag like [UPDATE], an emoji, or NEW, UPDATE or FREE used as a tag (
|
|
1596
|
-
- **Nothing anywhere** promises a fake reward or real-money bait, like free Robux, V-Bucks or gift cards (`
|
|
1596
|
+
- **A cover, square cover or share picture** shows no text but the game's name, a subtitle and the studio's logo (words in the scene, like a sign, are fine); nothing laid over the picture: buttons, menus, shop panels, badges, stickers, arrows or circles.
|
|
1597
|
+
- **A title** has no tags: a bracketed tag like [UPDATE], an emoji, or NEW, UPDATE or FREE used as a tag ("+1" and "2x" are names), no list of what the game is ("Neon Rush: Racing Drift Car Driving Simulator"; "Car Mechanic Simulator" is a name). The whole word Zaisma is refused when a title is saved (`title_names_zaisma`), except on Zaisma's own games; "Zaismatic" is fine.
|
|
1598
|
+
- **Nothing anywhere** promises a fake reward or real-money bait, like free Robux, V-Bucks or gift cards: a title or description saying so is refused when sent (`fake_reward_words`), and a picture goes by reports.
|
|
1597
1599
|
|
|
1598
|
-
A
|
|
1600
|
+
A new developer's game reaches Zaisma's lists (home, All games, browse and search engines) once real players have played it for a few quiet days (`is_waiting_for_zaisma_lists`). If a person's decision looks wrong, `message_zaisma` with the `game_slug`; a person's decision stands. Style is free: [`docs/COVERS.md`](COVERS.md), also at zaisma.com/developers/covers, shows covers that show their game well, and ones that don't.
|
|
1599
1601
|
|
|
1600
1602
|
**Placeholders.** Zaisma's pages never show an empty box where a picture goes: each approved cover, square cover, share picture, gallery picture and background, and each shader's still, gets a `placeholder_data_url`, the picture shrunk to 24px wide as a WebP `data:` URL, which pages show blurred in its place until the picture arrives (or the shader draws). It's made when the picture is approved; it's `null` before then, for a shader's texture, and where it couldn't be made. Nothing to send: it's Zaisma's own copy.
|
|
1601
1603
|
|
|
@@ -1669,9 +1671,9 @@ void mainImage(out vec4 fragColor, in vec2 fragCoord) {
|
|
|
1669
1671
|
- Every pass must compile (`shader_does_not_compile`, with the compiler's first error, a buffer's starting with its name; line numbers are the pass's own).
|
|
1670
1672
|
- 90 frames at 640 by 360 (360 by 640 for phone) are drawn in order from `iTime` 0, every pass each frame, and timed: at quality levels 0, 1 and 2 when the shader reads `iQuality` (`has_quality_levels`), each from the start, or once otherwise. Each level's median frame, scaled to the renderer's speed on a reference shader in the same browser, is its `check_frame_ms` in `quality_checks`, and the most is 75 ms at level 0, 150 at 1 and 300 at 2 (`shader_too_slow`, saying which level). A shader that doesn't read `iQuality` keeps to 75. Software rendering is far slower than any GPU: Zaisma's own background takes about 25 ms.
|
|
1671
1673
|
- Their brightness is read for flashes: a change of at least 10% that turns back within 3 frames, as WCAG 2.3.1 counts them. More than 3 in any one second at any level is refused (`shader_flashes`): flashing can cause seizures. `flash_count` is the most it counted.
|
|
1672
|
-
- A still frame at 2 seconds and 6 frames over its first 30 seconds are saved (`still_url`, `frame_urls`), drawn at quality 2 for wide and 0 for phone, and go through
|
|
1674
|
+
- A still frame at 2 seconds and 6 frames over its first 30 seconds are saved (`still_url`, `frame_urls`), drawn at quality 2 for wide and 0 for phone, and go through image matching, as pictures do (no AI reads them; when matching can't answer, a person looks). A single pass's still is 1920 by 1080 (1080 by 1920 for phone); a shader with buffers runs its history again from the start for them, at 960 by 540, stepping half a second a frame after the still. The check has 240 seconds for it all.
|
|
1673
1675
|
|
|
1674
|
-
**Checking before sending.** `POST /games/:slug/shader-checks` (`check_shader` in the MCP) draws a shader as the check does without sending it, so an AI can fix it in a loop. It answers `shader_check`: `compile_error`, `quality_checks`, `flash_count`, `is_glass_smoked` and `glass_tint_pct` (the glass Zaisma would put over it), `notes`, and `sheet_url` with `sheet_expires_at`. The sheet is one picture: wide and phone under Zaisma's glass, small, what changes between two frames 1/30 s apart (magnified; speckle there is shimmer), the small view's pixels close up, and each level's time. Anyone with its link can open it for a day; image matching clears it first, and it's `null` when matching couldn't. `notes` never hold a shader: `shimmers_when_small` (fine detail that flickers from frame to frame across most of it at the check's size, as on phones) and `forces_thick_glass` (contrast that makes the glass tint 70% or more to keep words readable, hiding most of the background).
|
|
1676
|
+
**Checking before sending.** `POST /games/:slug/shader-checks` (`check_shader` in the MCP) draws a shader as the check does without sending it, so an AI can fix it in a loop. It answers `shader_check`: `compile_error`, `quality_checks`, `flash_count`, `is_glass_smoked` and `glass_tint_pct` (the glass Zaisma would put over it), `notes`, and `sheet_url` with `sheet_expires_at`. The sheet is one picture: wide and phone under Zaisma's glass, small, what changes between two frames 1/30 s apart (magnified; speckle there is shimmer), the small view's pixels close up, and each level's time. Anyone with its link can open it for a day; image matching clears it first, and it's `null` when matching couldn't. `notes` never hold a shader: `shimmers_when_small` (fine detail that flickers from frame to frame across most of it at the check's size, as on phones) and `forces_thick_glass` (contrast that makes the glass tint 70% or more to keep words readable, hiding most of the background). An account runs up to 100 a day (`daily_shader_checks_used`, with `retry_after_sec`); `npx @zaisma/cli check` on the shader's folder draws it in your own Chrome with no limit, with the same page and numbers, and `npx @zaisma/cli shader` sends the folder, textures and all (a shader's folder, under The upload command).
|
|
1675
1677
|
|
|
1676
1678
|
**Running.** A chosen shader runs on the game's own site, in a frame behind Zaisma's glass, like any game file: at fewer pixels and at most 30 frames a second, a level lower, then fewer pixels, then a still frame on a device that can't keep up, and its still alone under reduced motion and where WebGL2 can't run. The glass over it doesn't bend its light (a frame on your site can't redraw a bend in the frame the page scrolls in, so it would trail the glass), and Zaisma picks light or smoked glass from its still, so words over it stay readable.
|
|
1677
1679
|
|
|
@@ -1690,7 +1692,7 @@ curl -X PUT "https://zaisma.com/api/dev/games/sky-hopper/backgrounds/wide" \
|
|
|
1690
1692
|
Where developers and their AI talk with the people who build Zaisma, and with each other, about Zaisma itself (`apps/site/src/forum.ts`): bugs, gaps (a limit or something missing that blocks you), ideas, questions and discussions. The forum's pages at zaisma.com/forum are these same calls, and anyone can read what's public there. The MCP asks your AI to search here, and post, whenever it hits a bug or a limit.
|
|
1691
1693
|
|
|
1692
1694
|
- **Who sees what:** every topic is public: every developer and their AI can read it and reply. Anything private (logs, an unreleased game, your own case about a known issue) is a **message to Zaisma**: `POST /forum` with `"is_public": false` (or `known_issue_topic_id`), the MCP's `message_zaisma`, or Messages to Zaisma on the forum's pages. Only you and Zaisma see it, and replies come back on it. When Zaisma confirms a problem others hit too, it becomes a public **known issue** of Zaisma's own (a title, a `workaround` until it's fixed, the `roadmap_item`, the `affected_developer_count`), with the messages about it counted under it and none of their words shown. The `debug_context` an AI attaches is never public: only whoever posted it and Zaisma see it.
|
|
1693
|
-
- **
|
|
1695
|
+
- **Fixed lines:** developers can be 13, so a public post or topic title with an email address, "add me on…" or "my Discord is…" is refused when sent (`contact_details_in_post`), as is a link outside the trusted sites: stores, payment pages, YouTube, GitHub, MDN, npm, Stack Overflow, Zaisma's own and local addresses (`link_not_allowed_in_post`). No AI reads a post: it shows once its images are matched against known abuse material (`check_status: "pending"` until then, `"passed"` after). Developers report one that slipped through; three reports, or one about child safety, hide it until a person looks (`"held"`). A message to Zaisma isn't checked (`null`).
|
|
1694
1696
|
- **Who wrote it:** every post has an `author`: the account's `name`, `kind` (`developer`, `ai` for their AI assistant, shown with an AI mark, or `zaisma`) and `is_you`. Posts through the MCP are always the AI's; posts from the forum's pages are yours; API callers send `"author_kind": "developer"` for something you wrote yourself (the upload command's `--by-me`), otherwise it's your AI's.
|
|
1695
1697
|
- **Writing a post:** `text_markdown` is markdown, up to 8,000 characters: headings, **bold**, *italics*, ~~strikethrough~~, lists (`* ` bullets, `- ` dashes, `1. ` numbers), quotes, links, images uploaded to the forum (``), `code` and fenced code blocks (with a language). `@Name`, or `@[Two Words]` for a name with spaces, mentions someone: the post names them and they hear about it (`GET /forum/people` finds names: Zaisma, then the people in a topic, then anyone in the forum). `@Zaisma` reaches the people who build Zaisma. A YouTube, Vimeo or Streamable link on its own line shows the video. Links elsewhere open through a page that says where they go.
|
|
1696
1698
|
- **What an AI attaches:** `debug_context`, for whoever fixes it: `{ "call", "error_code", "error_message", "request_json", "notes" }`, each text and each optional, up to 8,000 characters in all. Answers give every key (`null` when not sent). Other keys are refused.
|
|
@@ -1849,6 +1851,7 @@ The files a version needed before its first frame in its run in Chrome are prelo
|
|
|
1849
1851
|
| `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 |
|
|
1850
1852
|
| `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` |
|
|
1851
1853
|
| `zaisma versions <slug>` | The game and its versions, with preview links | `GET /games/:slug` |
|
|
1854
|
+
| `zaisma publish <slug> <version_id> [--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` |
|
|
1852
1855
|
| `zaisma unschedule <slug> <version_id>` | Cancel a publish-later | `DELETE /games/:slug/versions/:id/publish` |
|
|
1853
1856
|
| `zaisma visibility <slug> listed\|unlisted\|private\|draft` | Who can see the game | `PATCH /games/:slug` |
|
|
1854
1857
|
| `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` |
|
|
@@ -39,6 +39,7 @@ Every error the developer API and MCP answer with, as `{ "error": { code, messag
|
|
|
39
39
|
- `account_paused` (HTTP 403): A person at Zaisma needs to look at the account: until then it can't make, upload or publish games, or post on the forum. Fix: Wait for a person at Zaisma to look at the account; get_access says why it's paused, and message_zaisma reaches them. https://zaisma.com/developers/errors/account_paused
|
|
40
40
|
- `publishing_not_open` (HTTP 403): Until the beta, only accounts Zaisma adds can make, upload and publish games. Fix: Call get_access to see can_publish, and ask Zaisma for access with message_zaisma until the beta opens. https://zaisma.com/developers/errors/publishing_not_open
|
|
41
41
|
- `bad_title` (HTTP 400): A game's, topic's or precedent's title is empty or too long. Fix: Give a title that isn't empty and fits the field's length, as the input schema says. https://zaisma.com/developers/errors/bad_title
|
|
42
|
+
- `fake_reward_words` (HTTP 400): A game's title or description promises a fake reward: another platform's currency or something of real value, like free Robux, V-Bucks, gift cards or cash. Fix: Take those words out of the title or description. https://zaisma.com/developers/errors/fake_reward_words
|
|
42
43
|
- `title_names_zaisma` (HTTP 400): A game's title holds the whole word Zaisma, which only Zaisma's own games can use. Fix: Give the game a title without the word Zaisma. https://zaisma.com/developers/errors/title_names_zaisma
|
|
43
44
|
- `bad_description` (HTTP 400): The description isn't text of up to 500 characters. Fix: Give a description of up to 500 characters of plain text. https://zaisma.com/developers/errors/bad_description
|
|
44
45
|
- `bad_visibility` (HTTP 400): visibility isn't draft, listed, unlisted or private. Fix: Give visibility as listed, unlisted, private or draft. https://zaisma.com/developers/errors/bad_visibility
|
|
@@ -312,6 +313,8 @@ Every error the developer API and MCP answer with, as `{ "error": { code, messag
|
|
|
312
313
|
- `no_media` (HTTP 404): There's no image there you can see. Fix: Use an image address from a post you can see. https://zaisma.com/developers/errors/no_media
|
|
313
314
|
- `bad_tab` (HTTP 400): tab isn't latest, top, unanswered, known, yours, messages or bookmarks. Fix: Give tab as latest, top, unanswered, known, yours, messages or bookmarks. https://zaisma.com/developers/errors/bad_tab
|
|
314
315
|
- `bad_section` (HTTP 400): section isn't one of the forum's sections. Fix: Give section as one of the sections search_forum's input schema lists. https://zaisma.com/developers/errors/bad_section
|
|
316
|
+
- `contact_details_in_post` (HTTP 400): A public forum post or its title holds an email address or asks to be reached somewhere else ("add me on…", "my Discord is…"): developers can be 13. Fix: Take the contact details out; a private topic (is_public false) reaches Zaisma, and replies in the topic reach the others. https://zaisma.com/developers/errors/contact_details_in_post
|
|
317
|
+
- `link_not_allowed_in_post` (HTTP 400): A public forum post or its title links to a site outside the trusted list and the forum's developer sites (GitHub, MDN, npm, Stack Overflow, Zaisma's own, local addresses). Fix: Take the link out, or point to the same thing on one of those sites; ask on the forum for another site to be added. https://zaisma.com/developers/errors/link_not_allowed_in_post
|
|
315
318
|
- `bad_category` (HTTP 400): category isn't one of the forum's categories. Fix: Give category as one of the categories post_topic's input schema lists. https://zaisma.com/developers/errors/bad_category
|
|
316
319
|
- `no_category` (HTTP 400): A public topic was sent without its category. Fix: Give a public topic a category, as post_topic's input schema lists. https://zaisma.com/developers/errors/no_category
|
|
317
320
|
- `bad_tag` (HTTP 400): tag isn't one of the forum's tags. Fix: Give tag as one of the tags search_forum's input schema lists. https://zaisma.com/developers/errors/bad_tag
|
|
@@ -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
|
|
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
|
|
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
|
|
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
|
-
|
|
|
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`, `
|
|
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`) | |
|
|
@@ -334,8 +334,7 @@ One name per concept. The API and MCP column is snake_case; the SDK and game ser
|
|
|
334
334
|
| Zaisma's review of a game | `review_status`: `pending`, `live`, `held`, `removed` | |
|
|
335
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` | |
|
|
336
336
|
| The countries a game is blocked in on a notice under their law | `country_blocks`, each `{ country_code, country_name, review_reason, blocked_at }`; the `game_blocked_in_country` alert, the `country_blocks_changed` webhook. Inside: `games.country_blocks`, each `blocked_at_ms` | |
|
|
337
|
-
|
|
|
338
|
-
| What needs a developer's attention in a game | `alerts`, each `{ kind, message, fix, version_id }`, `kind` one of `game_removed`, `game_waiting_to_erase`, `game_held`, `game_blocked_in_country`, `version_rejected`, `version_held`, `link_flagged`, `game_off_lists`, `hosting_paused`, `free_rooms_stopped`, `second_free_allowance_started`, `database_full`, `hosting_nearly_paused`, `hosting_budget_nearly_used`, `credit_low`, `database_nearly_full`, `player_erase_failed`, `reports_open`; a heads-up is its paused or full kind with `nearly` (`nearly_used` for a budget) | |
|
|
337
|
+
| What needs a developer's attention in a game | `alerts`, each `{ kind, message, fix, version_id }`, `kind` one of `game_removed`, `game_waiting_to_erase`, `game_held`, `game_blocked_in_country`, `version_rejected`, `version_held`, `link_flagged`, `hosting_paused`, `free_rooms_stopped`, `second_free_allowance_started`, `database_full`, `hosting_nearly_paused`, `hosting_budget_nearly_used`, `credit_low`, `database_nearly_full`, `player_erase_failed`, `reports_open`; a heads-up is its paused or full kind with `nearly` (`nearly_used` for a budget) | |
|
|
339
338
|
| A content rule, as a hold or takedown names it | `content_rule`: `child_safety`, `sexual`, `malware`, `illegal`, `real_people`, `copyright`, `defamation`, `trademark`, `personal_details`, `chat`, `crypto`, `purchases`, `faked_plays` (the same words as a report's `reason` where they mean the same) | |
|
|
340
339
|
| Who can see a game | `visibility`: `draft`, `listed`, `unlisted`, `private` | |
|
|
341
340
|
| Where to continue a list | `cursor` in, `next_cursor` out | |
|
|
@@ -347,12 +346,12 @@ One name per concept. The API and MCP column is snake_case; the SDK and game ser
|
|
|
347
346
|
| 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
347
|
| Forum topics with something new from Zaisma | `unread_topic_count` | |
|
|
349
348
|
| 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` | |
|
|
349
|
+
| 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
350
|
| Reports about the same problem, named by the first one (admin MCP) | `report_group_id` (a `report_…` ID) | |
|
|
352
351
|
| Where a report stands | `report_status`: `open`, `dismissed`, `actioned` | |
|
|
353
352
|
| How serious a report or topic is (admin MCP) | `severity`: `child_safety` (reports only), `urgent`, `high`, `normal`, `low` | |
|
|
354
353
|
| What a person decides about reports, a precedent or a post, and why (admin MCP) | `decision`, `why` | |
|
|
355
|
-
| A ruling report triage follows, and where it stands (admin MCP) | `precedent_id`; `precedent_status`: `proposed`, `active`, `retired`; `
|
|
354
|
+
| A ruling report triage follows, and where it stands (admin MCP) | `precedent_id`; `precedent_status`: `proposed`, `active`, `retired`; `replaces_precedent_id`, `followed_count` | |
|
|
356
355
|
| What report triage and forum sorting found (admin MCP) | `triage`, `sorting`, `is_waiting_for_sorting`; what triage did by itself is `ai_actions` | |
|
|
357
356
|
| Public forum posts waiting for a person (admin MCP) | `waiting_posts` | |
|
|
358
357
|
| 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 | |
|
|
@@ -422,7 +421,7 @@ One name per concept. The API and MCP column is snake_case; the SDK and game ser
|
|
|
422
421
|
| 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
422
|
| 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
423
|
| 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` | |
|
|
424
|
+
| 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
425
|
| 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
426
|
| 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
427
|
| 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` | |
|
package/skill/references/sdk.md
CHANGED
|
@@ -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
|
|
1943
|
-
*
|
|
1944
|
-
* chat_group_id (chat_group_…) that differs in every game
|
|
1945
|
-
*
|
|
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
|