@zaisma/cli 0.63.0 → 0.65.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
|
@@ -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
|
|
|
@@ -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. |
|
|
@@ -371,6 +372,23 @@ The HTTP status goes with the code, as listed. The list lives in `ERROR_CODES` (
|
|
|
371
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. |
|
|
372
373
|
| `save_busy` | 409 | The player's game kept saving at the same moment, so the change didn't go through. |
|
|
373
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
|
+
|
|
374
392
|
**The developer forum**
|
|
375
393
|
|
|
376
394
|
| Code | HTTP | Meaning |
|
|
@@ -381,6 +399,8 @@ The HTTP status goes with the code, as listed. The list lives in `ERROR_CODES` (
|
|
|
381
399
|
| `no_media` | 404 | There's no image there you can see. |
|
|
382
400
|
| `bad_tab` | 400 | tab isn't latest, top, unanswered, known, yours, messages or bookmarks. |
|
|
383
401
|
| `bad_section` | 400 | section isn't one of the forum's sections. |
|
|
402
|
+
| `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. |
|
|
403
|
+
| `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
404
|
| `bad_category` | 400 | category isn't one of the forum's categories. |
|
|
385
405
|
| `no_category` | 400 | A public topic was sent without its category. |
|
|
386
406
|
| `bad_tag` | 400 | tag isn't one of the forum's tags. |
|
|
@@ -523,7 +543,7 @@ Versions the AI review held before Nov 24, 2026 still read with its code. Settin
|
|
|
523
543
|
| `link_flagged` | `malware` | Cloudflare lists the link's site for malware or phishing, so the link opens for nobody. |
|
|
524
544
|
| `details_rejected` | picked | A person at Zaisma didn't approve the new title or description; the message says why. |
|
|
525
545
|
|
|
526
|
-
**The
|
|
546
|
+
**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
547
|
|
|
528
548
|
| Code | Rule | Meaning |
|
|
529
549
|
| --- | --- | --- |
|
|
@@ -640,9 +660,9 @@ Every call is checked before any of it runs, in this order: the key's access, wh
|
|
|
640
660
|
| Call | What it does |
|
|
641
661
|
| --- | --- |
|
|
642
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. |
|
|
643
|
-
| `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
|
|
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. |
|
|
644
664
|
|
|
645
|
-
**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;
|
|
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.
|
|
646
666
|
|
|
647
667
|
## Games
|
|
648
668
|
|
|
@@ -653,7 +673,7 @@ Every call is checked before any of it runs, in this order: the key's access, wh
|
|
|
653
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`. |
|
|
654
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`. |
|
|
655
675
|
|
|
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
|
|
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), `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
677
|
|
|
658
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.
|
|
659
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.
|
|
@@ -676,7 +696,7 @@ A game looks like: `slug`, `page_url`, `can_change_slug`, `title`, `description`
|
|
|
676
696
|
- **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
697
|
- **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
698
|
- 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
|
-
-
|
|
699
|
+
- 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
700
|
|
|
681
701
|
| Call | What it does |
|
|
682
702
|
| --- | --- |
|
|
@@ -696,7 +716,6 @@ A game looks like: `slug`, `page_url`, `can_change_slug`, `title`, `description`
|
|
|
696
716
|
- `version_rejected`: the newest version was rejected. `GET /games/:slug/versions/:id` has its `findings`.
|
|
697
717
|
- `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
718
|
- `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
719
|
- `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
720
|
- `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
721
|
- `second_free_allowance_started`: the game filled its free hosting for the first time, so it has a second free allowance this month, once.
|
|
@@ -1484,6 +1503,31 @@ A signed-in player's progress in a game with cloud saves on is mirrored to their
|
|
|
1484
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.
|
|
1485
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.
|
|
1486
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
|
+
|
|
1487
1531
|
## Webhooks
|
|
1488
1532
|
|
|
1489
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).
|
|
@@ -1573,7 +1617,7 @@ Before a build reaches testers, try its online play on your own computer: `npx @
|
|
|
1573
1617
|
|
|
1574
1618
|
| Call | What it does |
|
|
1575
1619
|
| --- | --- |
|
|
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`, `
|
|
1620
|
+
| `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
1621
|
| `DELETE /games/:slug/images/:id` | Remove one; answers `removed_image_id`. |
|
|
1578
1622
|
|
|
1579
1623
|
**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 +1633,13 @@ Before a build reaches testers, try its online play on your own computer: `npx @
|
|
|
1589
1633
|
|
|
1590
1634
|
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
1635
|
|
|
1592
|
-
**
|
|
1636
|
+
**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
1637
|
|
|
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 (`
|
|
1638
|
+
- **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.
|
|
1639
|
+
- **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.
|
|
1640
|
+
- **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
1641
|
|
|
1598
|
-
A
|
|
1642
|
+
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
1643
|
|
|
1600
1644
|
**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
1645
|
|
|
@@ -1669,9 +1713,9 @@ void mainImage(out vec4 fragColor, in vec2 fragCoord) {
|
|
|
1669
1713
|
- 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
1714
|
- 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
1715
|
- 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
|
|
1716
|
+
- 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
1717
|
|
|
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).
|
|
1718
|
+
**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
1719
|
|
|
1676
1720
|
**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
1721
|
|
|
@@ -1690,7 +1734,7 @@ curl -X PUT "https://zaisma.com/api/dev/games/sky-hopper/backgrounds/wide" \
|
|
|
1690
1734
|
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
1735
|
|
|
1692
1736
|
- **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
|
-
- **
|
|
1737
|
+
- **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
1738
|
- **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
1739
|
- **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
1740
|
- **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 +1893,7 @@ The files a version needed before its first frame in its run in Chrome are prelo
|
|
|
1849
1893
|
| `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
1894
|
| `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
1895
|
| `zaisma versions <slug>` | The game and its versions, with preview links | `GET /games/:slug` |
|
|
1896
|
+
| `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
1897
|
| `zaisma unschedule <slug> <version_id>` | Cancel a publish-later | `DELETE /games/:slug/versions/:id/publish` |
|
|
1853
1898
|
| `zaisma visibility <slug> listed\|unlisted\|private\|draft` | Who can see the game | `PATCH /games/:slug` |
|
|
1854
1899
|
| `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
|
|
@@ -304,6 +305,21 @@ Every error the developer API and MCP answer with, as `{ "error": { code, messag
|
|
|
304
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
|
|
305
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
|
|
306
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
|
+
|
|
307
323
|
## The developer forum
|
|
308
324
|
|
|
309
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
|
|
@@ -312,6 +328,8 @@ Every error the developer API and MCP answer with, as `{ "error": { code, messag
|
|
|
312
328
|
- `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
329
|
- `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
330
|
- `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
|
|
331
|
+
- `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
|
|
332
|
+
- `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
333
|
- `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
334
|
- `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
335
|
- `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
|
|
@@ -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
|
|
|
@@ -334,8 +335,7 @@ One name per concept. The API and MCP column is snake_case; the SDK and game ser
|
|
|
334
335
|
| Zaisma's review of a game | `review_status`: `pending`, `live`, `held`, `removed` | |
|
|
335
336
|
| 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
337
|
| 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) | |
|
|
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`, `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
339
|
| 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
340
|
| Who can see a game | `visibility`: `draft`, `listed`, `unlisted`, `private` | |
|
|
341
341
|
| Where to continue a list | `cursor` in, `next_cursor` out | |
|
|
@@ -352,7 +352,7 @@ One name per concept. The API and MCP column is snake_case; the SDK and game ser
|
|
|
352
352
|
| Where a report stands | `report_status`: `open`, `dismissed`, `actioned` | |
|
|
353
353
|
| How serious a report or topic is (admin MCP) | `severity`: `child_safety` (reports only), `urgent`, `high`, `normal`, `low` | |
|
|
354
354
|
| 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`; `
|
|
355
|
+
| A ruling report triage follows, and where it stands (admin MCP) | `precedent_id`; `precedent_status`: `proposed`, `active`, `retired`; `replaces_precedent_id`, `followed_count` | |
|
|
356
356
|
| What report triage and forum sorting found (admin MCP) | `triage`, `sorting`, `is_waiting_for_sorting`; what triage did by itself is `ai_actions` | |
|
|
357
357
|
| Public forum posts waiting for a person (admin MCP) | `waiting_posts` | |
|
|
358
358
|
| What happened to a game, and who did it | `events`, each with `happened_at` and `last_happened_at`, `occurrence_count`, `subject_name`; `done_by`: `you`, `api_key`, `ai`, `zaisma`; `actor` in the admin MCP | |
|