@zaisma/cli 0.64.0 → 0.66.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.64.0",
3
+ "version": "0.66.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",
@@ -16,7 +16,7 @@ claude mcp add --transport http zaisma https://zaisma.com/mcp --header "Authoriz
16
16
 
17
17
  Apps that can't send a key connect by signing in instead. In claude.ai: Settings → Connectors → Add custom connector, with `https://zaisma.com/mcp`; ChatGPT and other apps the same way, wherever they add a remote MCP server. The app opens a Zaisma page where you choose what it may do and tap your passkey, then you're back in the app with every tool working. The key command above stays the way for Claude Code and the upload command.
18
18
 
19
- Every tool is a call to this API (`apps/site/src/mcp.ts`): `list_games`, `create_game`, `get_game`, `get_playing_now`, `get_whats_on`, `update_game`, `check_game` (what Zaisma would refuse in a game and what won't work on Zaisma, before uploading; see Checking a game below), `upload_files` (small games up to 5 MB, sent as file contents), `get_version`, `update_version` (a version's notes before it's live), `publish_version` (also rolls back and publishes later), `cancel_scheduled_publish`, `end_preview_links`, `add_image`, `remove_image`, `add_shader`, `check_shader` (a shader drawn as the check would, before it's sent; see Backgrounds below), `remove_shader`, `set_background`, `preview_game_page` (pictures of every place players meet the game, from what you're still designing; see Seeing it as players do below), `add_tester_link`, `update_tester_link`, `remove_tester_link`, `get_reports`, `get_stats`, `get_history`, `get_qr_code` (the game's link, or a room's, as a QR code), `export_game` (everything about a game as one .zip; see Export everything below), `get_logs` (what the game server printed, see A game server's logs below), `get_player`, `get_access` (what the key can do), `get_activity` (your account's activity, needs a full key), `list_api_keys` (your keys and connected apps with their end dates, last use and whether Zaisma turned one off; needs a full key), the sign-in apps' `list_sign_in_apps`, `create_sign_in_app`, `update_sign_in_app` and `delete_sign_in_app`, hosting credit's `get_credit`, `top_up_credit`, `refund_top_up`, `start_credit_plan`, `change_credit_plan`, `stop_credit_plan` and `get_spending_request` (see Hosting and credit below), Zaisma Pro's `get_pro`, `start_pro`, `cancel_pro`, `resume_pro` and `refund_pro` (see Zaisma Pro below), `get_storage`, `set_storage_budget`, `delete_version` and `delete_game`, `bring_back_game`, `erase_game_now`, `get_game_deletion_request` (see Storage below), the Stripe account's `get_stripe_account`, `connect_stripe_account`, `update_stripe_account` and `disconnect_stripe_account` (see Selling with the buy sheet below), the webhooks' `list_webhooks`, `create_webhook`, `update_webhook`, `delete_webhook`, `test_webhook` and `list_webhook_deliveries` (see Webhooks below), a game's secrets' `list_secrets`, `set_secret` and `delete_secret` (see Secrets below), the items' `list_items`, `set_item`, `remove_item`, `set_purchase_settings`, `grant_item`, `list_purchases`, `get_purchase`, `refund_purchase`, `mark_purchase_handled` and `get_player_items` (see Items and purchases below), a game's kept rooms' `list_kept_rooms`, `delete_kept_room`, `bring_back_kept_room` and `erase_kept_room_now`, `restore_kept_room`, `undo_kept_room_restore`, `list_kept_room_restores`, `restore_every_kept_room`, `get_kept_room_restore_batch`, `undo_every_kept_room_restore` (see Kept rooms below), a game's live rooms' `list_rooms`, `get_room`, `send_room_message`, `send_to_every_room`, `list_room_messages`, `cancel_room_message`, `kick_player` and `end_room` (see Reaching live rooms below), the game database's `get_database`, `query_database`, `batch_database`, `export_database`, `import_database`, `erase_player`, `restore_database` and `undo_database_restore` (see The game database below), cloud saves' `list_saves`, `get_save`, `change_save`, `replace_save`, `reset_save`, `list_save_copies`, `get_save_copy` and `restore_save_copy` (see Cloud saves below), and the developer forum's `search_forum`, `get_topic`, `post_topic`, `message_zaisma`, `reply_to_topic`, `vote`, `rate_post`, `bookmark_post`, `report_post`, `forum_people`, `still_happening`, `flag_misplaced`, `follow_topic` and `mark_answer` (see The developer forum below). Bigger builds go through the upload command. Making a game players can play private or a draft again, and ending a live room (`end_room`), need `"confirm": true`, so the AI asks you first.
19
+ Every tool is a call to this API (`apps/site/src/mcp.ts`): `list_games`, `create_game`, `get_game`, `get_playing_now`, `get_whats_on`, `update_game`, `check_game` (what Zaisma would refuse in a game and what won't work on Zaisma, before uploading; see Checking a game below), `upload_files` (small games up to 5 MB, sent as file contents), `get_version`, `update_version` (a version's notes before it's live), `publish_version` (also rolls back and publishes later), `cancel_scheduled_publish`, `end_preview_links`, `add_image`, `remove_image`, `add_shader`, `check_shader` (a shader drawn as the check would, before it's sent; see Backgrounds below), `remove_shader`, `set_background`, `preview_game_page` (pictures of every place players meet the game, from what you're still designing; see Seeing it as players do below), `add_tester_link`, `update_tester_link`, `remove_tester_link`, `get_reports`, `get_stats`, `get_history`, `get_qr_code` (the game's link, or a room's, as a QR code), `export_game` (everything about a game as one .zip; see Export everything below), `get_logs` (what the game server printed, see A game server's logs below), `get_player`, `get_access` (what the key can do), `get_activity` (your account's activity, needs a full key), the inbox's `list_inbox`, `update_inbox_notice`, `delete_inbox_notice` and `set_inbox_settings`, a game's `announce_event` and `reply_to_bug_report` (see The inbox below), `list_api_keys` (your keys and connected apps with their end dates, last use and whether Zaisma turned one off; needs a full key), the sign-in apps' `list_sign_in_apps`, `create_sign_in_app`, `update_sign_in_app` and `delete_sign_in_app`, hosting credit's `get_credit`, `top_up_credit`, `refund_top_up`, `start_credit_plan`, `change_credit_plan`, `stop_credit_plan` and `get_spending_request` (see Hosting and credit below), Zaisma Pro's `get_pro`, `start_pro`, `cancel_pro`, `resume_pro` and `refund_pro` (see Zaisma Pro below), `get_storage`, `set_storage_budget`, `delete_version` and `delete_game`, `bring_back_game`, `erase_game_now`, `get_game_deletion_request` (see Storage below), the Stripe account's `get_stripe_account`, `connect_stripe_account`, `update_stripe_account` and `disconnect_stripe_account` (see Selling with the buy sheet below), the webhooks' `list_webhooks`, `create_webhook`, `update_webhook`, `delete_webhook`, `test_webhook` and `list_webhook_deliveries` (see Webhooks below), a game's secrets' `list_secrets`, `set_secret` and `delete_secret` (see Secrets below), the items' `list_items`, `set_item`, `remove_item`, `set_purchase_settings`, `grant_item`, `list_purchases`, `get_purchase`, `refund_purchase`, `mark_purchase_handled` and `get_player_items` (see Items and purchases below), a game's kept rooms' `list_kept_rooms`, `delete_kept_room`, `bring_back_kept_room` and `erase_kept_room_now`, `restore_kept_room`, `undo_kept_room_restore`, `list_kept_room_restores`, `restore_every_kept_room`, `get_kept_room_restore_batch`, `undo_every_kept_room_restore` (see Kept rooms below), a game's live rooms' `list_rooms`, `get_room`, `send_room_message`, `send_to_every_room`, `list_room_messages`, `cancel_room_message`, `kick_player` and `end_room` (see Reaching live rooms below), the game database's `get_database`, `query_database`, `batch_database`, `export_database`, `import_database`, `erase_player`, `restore_database` and `undo_database_restore` (see The game database below), cloud saves' `list_saves`, `get_save`, `change_save`, `replace_save`, `reset_save`, `list_save_copies`, `get_save_copy` and `restore_save_copy` (see Cloud saves below), and the developer forum's `search_forum`, `get_topic`, `post_topic`, `message_zaisma`, `reply_to_topic`, `vote`, `rate_post`, `bookmark_post`, `report_post`, `forum_people`, `still_happening`, `flag_misplaced`, `follow_topic` and `mark_answer` (see The developer forum below). Bigger builds go through the upload command. Making a game players can play private or a draft again, and ending a live room (`end_room`), need `"confirm": true`, so the AI asks you first.
20
20
 
21
21
  Every tool has an output schema, and answers are compact JSON. Arguments are closed: one a tool doesn't take is refused (`unknown_field`, with the arguments it does take), never quietly dropped, and a missing required one is `missing_field`. A refused call is a tool result with `isError: true`, the error object below as its `structuredContent` and its message, fix and code as its text; each tool's listed output schema is its answer or that error, because MCP clients check both against it. The tools that are easy to get wrong (`update_game`, `check_game`, `upload_files`, `publish_version`, `search_forum`, `post_topic`, `change_save`, `replace_save`, `set_secret`) carry good examples in their input schema and bad ones at the end of their description.
22
22
 
@@ -372,6 +372,23 @@ The HTTP status goes with the code, as listed. The list lives in `ERROR_CODES` (
372
372
  | `cloud_saves_not_here` | 409 | Cloud saves don't work here: this is a tester link, or this Zaisma has no accounts. The game page answers it to `Zaisma.saves` and `Zaisma.player.offerAccount()`; no API or MCP call returns it. |
373
373
  | `save_busy` | 409 | The player's game kept saving at the same moment, so the change didn't go through. |
374
374
 
375
+ **The inbox**
376
+
377
+ | Code | HTTP | Meaning |
378
+ | --- | --- | --- |
379
+ | `no_inbox_notice` | 404 | There's no notice with that ID in the account's inbox: deleted, past its 90 days, or never its own. |
380
+ | `bad_inbox_section` | 400 | inbox_section isn't for_you or your_games. |
381
+ | `bad_is_read` | 400 | is_read isn't true or false. |
382
+ | `bad_is_archived` | 400 | is_archived isn't true or false. |
383
+ | `bad_turned_off_notice_kinds` | 400 | turned_off_notice_kinds isn't a list of the inbox's kinds, or names account_security or legal, which always come. |
384
+ | `too_many_notices` | 429 | The game sent 3 update and event notices in the last 7 days, the most a week takes. |
385
+ | `game_not_playable` | 409 | The game isn't live and listed or unlisted, so nobody follows it to hear about an event. |
386
+ | `bad_starts_at` | 400 | starts_at isn't an ISO time from now to 90 days ahead. |
387
+ | `bad_ends_at` | 400 | ends_at isn't an ISO time after starts_at and at most 30 days after it. |
388
+ | `no_bug_report` | 404 | The game has no bug report with that report_id from the last 90 days. |
389
+ | `already_replied` | 409 | The game's developer already replied to this bug report: one reply a report. |
390
+ | `bad_reply_text` | 400 | reply_text isn't 1 to 1,000 characters of text that shows. |
391
+
375
392
  **The developer forum**
376
393
 
377
394
  | Code | HTTP | Meaning |
@@ -643,9 +660,9 @@ Every call is checked before any of it runs, in this order: the key's access, wh
643
660
  | Call | What it does |
644
661
  | --- | --- |
645
662
  | `GET /api-keys` | Your API keys and connected apps, newest first: `api_keys`, each with `api_key_name` (a connected app's own name), `kind` (`api_key`, or `connected_app` for an AI app connected by signing in), `connected_app_host` (where a connected app sends you back, like `claude.ai`; `null` for a key), `access_level`, `area_access`, `game_slugs`, `created_at`, `last_used_at`, `last_used_where` (what it was last used with and from where; `null` when unknown or the account doesn't keep where it's used from), `ends_at` (`null` when it lasts until removed), `turned_off_at` and `found_in` (`github`, `game_files` or `forum_post`) with `found_at_url` when Zaisma turned it off because it was found in public, and `is_this_key`. It needs a full key for all your games. Keys are made and removed only on the account page. |
646
- | `GET /activity` | Your account's security activity from the last 90 days, newest first, 50 a page: `events`, each with `kind`, `description`, `sign_in_kind` (`password`, `passkey`, `email_code`, `google` or `discord` for a sign-in on a new device), `subject_name` (the passkey's device or the key's name), `done_by` (`you`, `api_key`, `ai` or `zaisma`), `api_key_name`, `device`, `network_name`, `city_name`, `region_name`, `country_code`, `connection_address`, `happened_at` and `security_alert_status` (below); `unseen_security_alerts`, the security alerts still waiting on the pages, newest first, up to 10, each like an event; `next_cursor` (pass it as `cursor` for older events, `null` on the last page); and `where_used_from_enabled`. It needs a full key for all your games, since it shows where your account is used from. Keep where my account is used from changes only on the account page, so an AI can't turn it off and erase where it was used from. A game's changes are in its history. |
663
+ | `GET /activity` | Your account's security activity from the last 90 days, newest first, 50 a page: `events`, each with `kind`, `description`, `sign_in_kind` (`password`, `passkey`, `email_code`, `google` or `discord` for a sign-in on a new device), `subject_name` (the passkey's device or the key's name), `done_by` (`you`, `api_key`, `ai` or `zaisma`), `api_key_name`, `device`, `network_name`, `city_name`, `region_name`, `country_code`, `connection_address`, `happened_at` and `security_alert_status` (below); `unseen_security_alerts`, the security alerts no email told the account about that still wait in its inbox, newest first, up to 10, each like an event; `next_cursor` (pass it as `cursor` for older events, `null` on the last page); and `where_used_from_enabled`. It needs a full key for all your games, since it shows where your account is used from. Keep where my account is used from changes only on the account page, so an AI can't turn it off and erase where it was used from. A game's changes are in its history. |
647
664
 
648
- **Security alerts.** The risky moments are security alerts: a sign-in on a new device from a network the account hasn't signed in from in 90 days, a password or email added, changed or removed, a passkey removed, an API key made, used from a new place or turned off because it was found in public, a key or AI app deleting a game's kept worlds, an AI or app connected, and an app Zaisma disconnected because its refresh token was used twice. Each is emailed to the account (an email change or removal to the old address too), at most 10 an hour; an account without an email (or past the 10) sees it on zaisma.com/account and the dashboard until it presses That was me there. Each event's `security_alert_status` says which: `emailed`, `unseen` (waiting on the pages), `seen`, or `null` when it isn't an alert. Marking alerts seen is only on those pages, so a key can't hide them. A `security_alert` webhook (see Webhooks) sends each one as it happens.
665
+ **Security alerts.** The risky moments are security alerts: a sign-in on a new device from a network the account hasn't signed in from in 90 days, a password or email added, changed or removed, a passkey removed, an API key made, used from a new place or turned off because it was found in public, a key or AI app deleting a game's kept worlds, an AI or app connected, and an app Zaisma disconnected because its refresh token was used twice. Each is emailed to the account (an email change or removal to the old address too), at most 10 an hour; each also waits, flagged, in the account's inbox (Was this you?), until it presses That was me there. Each event's `security_alert_status` says which: `emailed`, `unseen` (no email told it, and it's still waiting in the inbox), `seen`, or `null` when it isn't an alert. Answering is only in the inbox on zaisma.com, so a key can't hide them. A `security_alert` webhook (see Webhooks) sends each one as it happens.
649
666
 
650
667
  ## Games
651
668
 
@@ -656,7 +673,7 @@ Every call is checked before any of it runs, in this order: the key's access, wh
656
673
  | `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`. |
657
674
  | `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`. |
658
675
 
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`.
676
+ 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), `zaisma_lists_wait` (where a live waiting game stands, null when it isn't waiting or isn't live: `is_held_by_reports`, true when reports a person or triage upheld hold it, never who reported or what they wrote, and `progress`, null when only a report holds it: `live_duration_days` of `minimum_live_duration_days`, `counted_player_count` of `minimum_counted_player_count` and `quiet_duration_days` of `minimum_quiet_duration_days`, the same limits that open the lists every hour), `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`.
660
677
 
661
678
  - **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.
662
679
  - **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.
@@ -1486,6 +1503,31 @@ A signed-in player's progress in a game with cloud saves on is mirrored to their
1486
1503
  - **Limits:** a save is up to 5 MB (`save_too_big`); `keys` takes up to 100 keys. A game with cloud saves off doesn't read saves, so changes there are refused (`cloud_saves_off`); reading still works. Guests have no saves here: their progress stays in their browser.
1487
1504
  - **Where they don't work:** on a tester link, or a Zaisma with no accounts, both the `Zaisma.saves` calls and `Zaisma.player.offerAccount()` fail with `error.code` `cloud_saves_not_here`. Nothing to fix: the game saves in the browser as usual, and cloud saves work on its own page on Zaisma.
1488
1505
 
1506
+ ## The inbox
1507
+
1508
+ Every signed-in account has an inbox at zaisma.com/inbox, with a count on the top bar of every page; guests have none. It never carries messages between players. **For you** holds big updates and events from games the account favorited, what came of its reports, and account security and legal notices. **Your games** holds a developer's: a game paused, taken down or back, its hosting near its end or its game server's error, credit, a version held for a person or refused, refunds, and Zaisma's replies on their forum topics and messages. Notices keep 90 days; archived ones stay until deleted, and one waiting on the account's answer (a security alert's Was this you?) stays, flagged, until it's answered on zaisma.com. Only what's urgent goes by email too: a paused game, credit running out, a held version, account security and legal notices.
1509
+
1510
+ Your AI reads the same inbox (needs a full key for all your games):
1511
+
1512
+ - `list_inbox` (`GET /api/dev/inbox?inbox_section=&is_archived=&cursor=`): one section's notices, newest first, 50 at a time, each with its `title`, `summary`, `body_text`, the game it's about, `page_url`, its button's `link_url`, `sent_at`, `is_read`, `is_archived` and `is_emailed`; the unread counts of both sections; and `notice_kinds`, which kinds reach the inbox.
1513
+ - `update_inbox_notice` (`PATCH /api/dev/inbox/<inbox_notice_id>`, `{ is_read, is_archived }`) and `delete_inbox_notice` (`DELETE /api/dev/inbox/<inbox_notice_id>`).
1514
+ - `set_inbox_settings` (`PATCH /api/dev/inbox`, `{ turned_off_notice_kinds }`): the whole list of kinds to keep off, as the inbox's settings on the page do. `account_security` and `legal` always come.
1515
+
1516
+ | Call | What it does |
1517
+ | --- | --- |
1518
+ | `GET /inbox` | One section's notices (`inbox_section`: `for_you` or `your_games`; `is_archived=true` for the archived ones), newest first, what waits on an answer first: `inbox_notices`, `for_you_unread_count`, `your_games_unread_count`, `notice_kinds` and `next_cursor` (pass it as `cursor`). A full key for all your games. |
1519
+ | `PATCH /inbox` | `{ turned_off_notice_kinds }`: the whole list of kinds to keep off; answers `notice_kinds`. |
1520
+ | `PATCH /inbox/:inbox_notice_id` | `{ is_read, is_archived }`: answers the notice. |
1521
+ | `DELETE /inbox/:inbox_notice_id` | Deletes the notice from your inbox. |
1522
+ | `POST /games/:slug/reports/:report_id/reply` | `{ reply_text }`: answers the player who sent a bug report, in their inbox, once a report; answers `replied_at`. |
1523
+ | `POST /games/:slug/events` | `{ title, description, starts_at, ends_at, image_id }`: tells the game's followers about an event; answers `inbox_notice_id`, `page_url` and `remaining_notice_count`. |
1524
+
1525
+ Players hear from your game only once they favorite it, and stop at Unsubscribe in any of its notices. You send only what's tied to something real, at most 3 notices a game in 7 days (`too_many_notices` past it):
1526
+
1527
+ - **A big update:** `publish_version` with `is_big_update: true` sends a notice with the version's `patch_notes`, once the game is live and listed or unlisted. Past the week's 3 the version still publishes, with no notice.
1528
+ - **A reply to a bug report:** `reply_to_bug_report` (`POST /api/dev/games/<slug>/reports/<report_id>/reply`, `{ reply_text }`) answers the player who reported a bug in `get_reports`, in their inbox, once a report. You never learn who sent it, or whether they have an inbox: a guest's report is answered as one, and nobody receives it. It doesn't count toward the 3 a week.
1529
+ - **An event:** `announce_event` (`POST /api/dev/games/<slug>/events`, `{ title, description, starts_at, ends_at, image_id }`) tells the game's followers about an event it scheduled, within the next 90 days and up to 30 days long, with the game's cover or an approved image of its own. The game must be live and listed or unlisted (`game_not_playable`).
1530
+
1489
1531
  ## Webhooks
1490
1532
 
1491
1533
  Zaisma POSTs an event to your server whenever something happens to your games, so your server or CI doesn't have to keep checking: a bug report can open a GitHub issue, a passed scan can move a release on, a takedown can page you. No server of your own? A webhook can send a game's events to that game's own game server on Zaisma instead (Webhooks to the game server, below).
@@ -305,6 +305,21 @@ Every error the developer API and MCP answer with, as `{ "error": { code, messag
305
305
  - `cloud_saves_not_here` (HTTP 409): Cloud saves don't work here: this is a tester link, or this Zaisma has no accounts. The game page answers it to `Zaisma.saves` and `Zaisma.player.offerAccount()`; no API or MCP call returns it. Fix: Test cloud saves on the game's zaisma.com page, signed in, not through a tester link. https://zaisma.com/developers/errors/cloud_saves_not_here
306
306
  - `save_busy` (HTTP 409): The player's game kept saving at the same moment, so the change didn't go through. Fix: Call again in a moment. https://zaisma.com/developers/errors/save_busy
307
307
 
308
+ ## The inbox
309
+
310
+ - `no_inbox_notice` (HTTP 404): There's no notice with that ID in the account's inbox: deleted, past its 90 days, or never its own. Fix: List the inbox with list_inbox and use an inbox_notice_id it answers. https://zaisma.com/developers/errors/no_inbox_notice
311
+ - `bad_inbox_section` (HTTP 400): inbox_section isn't for_you or your_games. Fix: Give inbox_section as for_you or your_games. https://zaisma.com/developers/errors/bad_inbox_section
312
+ - `bad_is_read` (HTTP 400): is_read isn't true or false. Fix: Give is_read as true or false. https://zaisma.com/developers/errors/bad_is_read
313
+ - `bad_is_archived` (HTTP 400): is_archived isn't true or false. Fix: Give is_archived as true or false. https://zaisma.com/developers/errors/bad_is_archived
314
+ - `bad_turned_off_notice_kinds` (HTTP 400): turned_off_notice_kinds isn't a list of the inbox's kinds, or names account_security or legal, which always come. Fix: Give turned_off_notice_kinds as the whole list of kinds to turn off, from those list_inbox's notice_kinds says can_turn_off. https://zaisma.com/developers/errors/bad_turned_off_notice_kinds
315
+ - `too_many_notices` (HTTP 429): The game sent 3 update and event notices in the last 7 days, the most a week takes. Fix: Send it once retry_after_sec has passed, or fold it into the next notice. https://zaisma.com/developers/errors/too_many_notices
316
+ - `game_not_playable` (HTTP 409): The game isn't live and listed or unlisted, so nobody follows it to hear about an event. Fix: Publish a version and set visibility listed or unlisted with update_game, then announce the event. https://zaisma.com/developers/errors/game_not_playable
317
+ - `bad_starts_at` (HTTP 400): starts_at isn't an ISO time from now to 90 days ahead. Fix: Give starts_at as an ISO time, like 2026-12-05T18:00:00Z, within the next 90 days. https://zaisma.com/developers/errors/bad_starts_at
318
+ - `bad_ends_at` (HTTP 400): ends_at isn't an ISO time after starts_at and at most 30 days after it. Fix: Give ends_at as an ISO time after starts_at, at most 30 days later, or null for none. https://zaisma.com/developers/errors/bad_ends_at
319
+ - `no_bug_report` (HTTP 404): The game has no bug report with that report_id from the last 90 days. Fix: Take a bug report's id from get_reports. https://zaisma.com/developers/errors/no_bug_report
320
+ - `already_replied` (HTTP 409): The game's developer already replied to this bug report: one reply a report. Fix: Put what's new in the next update's patch notes instead. https://zaisma.com/developers/errors/already_replied
321
+ - `bad_reply_text` (HTTP 400): reply_text isn't 1 to 1,000 characters of text that shows. Fix: Give reply_text as a short answer to the player, up to 1,000 characters. https://zaisma.com/developers/errors/bad_reply_text
322
+
308
323
  ## The developer forum
309
324
 
310
325
  - `no_topic` (HTTP 404): There's no topic with that ID you can see. Fix: Call search_forum for the topic's ID, then call again with it. https://zaisma.com/developers/errors/no_topic
@@ -149,6 +149,7 @@ Every ID Zaisma makes says its kind in its value: `<kind>_<random>`, the kind in
149
149
  | `ban_match` (another account that paid with a card banned with an account, for a person at Zaisma to decide; only in the admin MCP) | `ban_match_…` |
150
150
  | `ncmec_report` (a report to NCMEC's CyberTipline; never shown outside Zaisma) | `ncmec_report_…` |
151
151
  | `admin_change` (a change the admin's AI asked for, waiting for the admin's passkey tap; never shown outside Zaisma) | `admin_change_…` |
152
+ | `inbox_notice` (a notice in an account's inbox: from Zaisma, or a game the account follows) | `inbox_notice_…` |
152
153
 
153
154
  `ID_KINDS` (`packages/core/src/ids.ts`) is this list, and a test keeps the two in step; a new kind is added to both in the same change. Accounts' and guests' player IDs are both `player_…`, in their passes and everywhere the SDK and game server show them; an account's never changes, and Zaisma's own account ID (the sign-in's) never leaves Zaisma. The developer API and MCP still name a game by its `slug`, the link name developers know. Not IDs, and kept as they are: a `slug`, a `room_code` (six letters players type), API keys (`zsk_…`, a format secret scanners know), connected apps' access and refresh tokens (`zat_…`, `zrt_…`), webhook signing secrets (`whsec_…`, Standard Webhooks' form) and file hashes (`sha256`).
154
155
 
@@ -420,7 +421,7 @@ One name per concept. The API and MCP column is snake_case; the SDK and game ser
420
421
  | A friend request a game offers, sent only once the player says yes on Zaisma's page, and who takes them | the social setting `who_can_send_friend_requests`: `nobody` (Invites only), `played_with` (People I play with: the same room now or within the last hour), `anyone`; in Zaisma's own code `friend_requests` (`sender_account_id`, `recipient_account_id`, `answer`: `accepted`, `turned_down`) and `room_visits` | `Zaisma.friends.sendRequest(playerId)` answers `{ status }`: `sent`, `cancelled`, `already_friends`, `not_taking_requests`; the room's `{ type: "friend_request", playerId }` from a game and `{ type: "friend_request" }` to the other player (look now, never who) |
421
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` |
422
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` |
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) | |
424
+ | A new developer's listed game waiting for Zaisma's own lists (home, browsing, search) | `is_waiting_for_zaisma_lists` on a game, and where it stands, `zaisma_lists_wait`: `{ is_held_by_reports, progress }`, `progress` `{ live_duration_days, minimum_live_duration_days, counted_player_count, minimum_counted_player_count, quiet_duration_days, minimum_quiet_duration_days }`. Inside: `games.lists_opened_at_ms` (when they opened; they stay open), `LISTS_WAIT_LIMITS`, `listsWaitProgress`, `hasEarnedLists`, `owners.is_invited_developer` (let publish before the beta: established from the start) | |
424
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` | |
425
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` | |
426
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`) |