@crowdedkingdoms/crowdyjs 18.23.1 → 18.24.0-dev.1

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.
Files changed (55) hide show
  1. package/MIGRATION.md +62 -0
  2. package/README.md +153 -28
  3. package/dist/crowdy-client.d.ts +10 -1
  4. package/dist/crowdy-client.d.ts.map +1 -1
  5. package/dist/crowdy-client.js +5 -0
  6. package/dist/default-origin.d.ts +6 -6
  7. package/dist/default-origin.d.ts.map +1 -1
  8. package/dist/default-origin.js +6 -6
  9. package/dist/domains/admin.d.ts +4 -0
  10. package/dist/domains/admin.d.ts.map +1 -1
  11. package/dist/domains/admin.js +1 -0
  12. package/dist/domains/apps.d.ts +43 -3
  13. package/dist/domains/apps.d.ts.map +1 -1
  14. package/dist/domains/apps.js +46 -3
  15. package/dist/domains/auth.d.ts +140 -16
  16. package/dist/domains/auth.d.ts.map +1 -1
  17. package/dist/domains/auth.js +153 -16
  18. package/dist/domains/inputLog.d.ts +4 -1
  19. package/dist/domains/inputLog.d.ts.map +1 -1
  20. package/dist/domains/inputLog.js +4 -1
  21. package/dist/domains/managedPlayers.d.ts +56 -3
  22. package/dist/domains/managedPlayers.d.ts.map +1 -1
  23. package/dist/domains/managedPlayers.js +16 -3
  24. package/dist/domains/moderation.d.ts +53 -0
  25. package/dist/domains/moderation.d.ts.map +1 -0
  26. package/dist/domains/moderation.js +68 -0
  27. package/dist/domains/platform.d.ts +13 -0
  28. package/dist/domains/platform.d.ts.map +1 -1
  29. package/dist/domains/platform.js +14 -0
  30. package/dist/domains/portal.d.ts +86 -8
  31. package/dist/domains/portal.d.ts.map +1 -1
  32. package/dist/domains/portal.js +78 -8
  33. package/dist/domains/safety.d.ts +163 -0
  34. package/dist/domains/safety.d.ts.map +1 -0
  35. package/dist/domains/safety.js +167 -0
  36. package/dist/domains/users.d.ts +9 -1
  37. package/dist/domains/users.d.ts.map +1 -1
  38. package/dist/domains/users.js +9 -1
  39. package/dist/errors.d.ts +135 -0
  40. package/dist/errors.d.ts.map +1 -1
  41. package/dist/errors.js +163 -0
  42. package/dist/generated/graphql-schema.d.ts +522 -14
  43. package/dist/generated/graphql-schema.d.ts.map +1 -1
  44. package/dist/generated/graphql-schema.js +64 -0
  45. package/dist/generated/graphql.d.ts +375 -0
  46. package/dist/generated/graphql.d.ts.map +1 -1
  47. package/dist/generated/graphql.js +24 -3
  48. package/dist/index.d.ts +12 -9
  49. package/dist/index.d.ts.map +1 -1
  50. package/dist/index.js +6 -4
  51. package/dist/live-coding/assets/browser-authoring-index.json +1 -1
  52. package/dist/live-coding/assets/manifest.json +1 -1
  53. package/dist/live-coding/browser-authoring-index.generated.d.ts.map +1 -1
  54. package/dist/live-coding/browser-authoring-index.generated.js +265 -6
  55. package/package.json +1 -1
package/MIGRATION.md CHANGED
@@ -120,6 +120,68 @@ super-admin's session). There is no SDK replacement.
120
120
  `dev`'s SDL after #417 merged (`npm run schema:sync:paths -- --schema <that schema.gql>`, then
121
121
  `npm run codegen`).
122
122
 
123
+ ## 18.24.0: the teen safety program
124
+
125
+ No breaking change: every existing call takes what it took. **What it needs.** ck-api `v2.60.0`
126
+ (cks-game-api #613 to #616) for the new calls and for three existing reads that select new
127
+ fields: `users.me()` (`ageBracket`, `country`), `apps.app()` and `apps.update()` (the safety log
128
+ and age fields). Against an older API those fail as GraphQL validation errors, so deploy the API
129
+ first. `auth.recordPlayerConsents({ acceptLegal, attestAgeOfMajority })` and
130
+ `auth.playerLegalAcceptance()` send their 18.23 documents and work against any API since
131
+ v2.35.0; only the new arguments need v2.60.0.
132
+
133
+ Crowded Kingdoms admits players from 13 once the platform's safety baseline is live on every
134
+ tier (the "flip"). Until then the platform stays 18+, the new inputs are optional, and the
135
+ age-of-majority attestation still applies. Build the flows now:
136
+
137
+ - **The age.** `auth.register` takes `birthDate` (`YYYY-MM-DD`; only the year and month are
138
+ kept), `country` (ISO 3166-1 alpha-2) and `parentalConfirmation` (a player under 18 confirmed
139
+ that a parent or guardian agreed). `auth.recordPlayerAge({ birthDate, country,
140
+ parentalConfirmation })` gives an existing account its age, once (`CONFLICT` after).
141
+ `users.me()` reports `ageBracket` (`unknown`, `under_13`, `13_15`, `16_17`, `18_plus`) and
142
+ `country`. Ask on a neutral screen: the date of birth and the country, no age shown, and the
143
+ parental line only for a player under 18. After the flip a browser sign-up without an age is
144
+ refused `AGE_REQUIRED`.
145
+ - **The player gate** at every mint and refresh: `TERRITORY_NOT_SUPPORTED`
146
+ (`territoryNotSupportedOf`, with `country`), `AGE_REQUIRED` (`ageRequiredOf`),
147
+ `AGE_REQUIREMENT_NOT_MET` (`ageRequirementNotMetOf`), then `LEGAL_ACCEPTANCE_REQUIRED`
148
+ (`legalAcceptanceRequiredOf`, with `missingDocuments`), and `SAFETY_LOG_REQUIRED`
149
+ (`safetyLogRequiredOf`) for a player under 18 in an app without its safety log. No refusal
150
+ names an age, and `ageRequirementNotMetOf` is a boolean on purpose: tell the player they
151
+ cannot play this, without a number. `platform.territoryPolicies()` lists the countries (public).
152
+ - **Documents.** The platform's player documents are `auth.playerLegalDocuments()`, an app's own
153
+ `auth.appRequiredDocuments(appId)` (its admins set them with `apps.setRequiredDocuments`).
154
+ `auth.recordPlayerConsents` takes `appId` (record the app's documents too) and `method`
155
+ (`CLICKWRAP`, the default, or `IN_GAME`), and the attestation may be left out once the
156
+ platform asks for a birth date. `auth.playerLegalAcceptance({ appId })` counts the app's.
157
+ A developer's documents: `auth.developerLegalDocuments()`, `recordDeveloperConsents`,
158
+ `developerLegalAcceptance`; after the flip creating or administering an organization needs
159
+ them, and an adult.
160
+ - **A player's own controls** (`client.safety`, app token): voice and video scopes
161
+ (`commSettings`, `setCommSettings`; under 18 each medium is off until a parent consents
162
+ through `requestParentalConsent`, then at most `CONTACTS`), contacts (`contacts`,
163
+ `contactRequests`, `requestContact`, `acceptContact`, `removeContact`), blocks (`blocks`,
164
+ `block`, `unblock`) and reports (`fileReport`).
165
+ - **The safety log's notice.** `apps.recording(appId)` (`{ enabled, voice, video }`, readable
166
+ with an app token): while voice or video is recorded, show a notice before the player first
167
+ speaks or appears on camera, and an indicator while it is. `apps.update` takes
168
+ `replayLoggingRecordsVoice`, `replayLoggingRecordsVideo` and `minPlayerAge`; turning the log
169
+ off in an app that admits players under 18 is refused `SAFETY_LOG_REQUIRED`.
170
+ - **Moderators** (`client.moderation`, also `client.admin.moderation`; `moderate_safety`):
171
+ `reports`, `resolveReport`, `escalateReport`, and `inputLog.messages` for the sessions a report
172
+ covers.
173
+ - **Org-managed players.** The organization sends `ageYears` and `country` with each sign-in:
174
+ on the mint's input (the type `MintManagedPlayerTokenInput`) or as the assertion's claims
175
+ (`ManagedPlayerAssertionClaims`). Optional until the flip; left out, the player counts as an
176
+ adult. The SDK still has no wrapper for the org-token mint.
177
+ - **Crowded Kingdoms' own apps** only: `portal.minecraftChallenge(appId)` and
178
+ `portal.signInWithMinecraft(...)` (refusals `minecraftVerificationFailedOf`,
179
+ `minecraftVerificationUnavailableOf`).
180
+
181
+ The operator's `setTerritoryPolicy` and `exportPlayerData` are not wrapped. The schema is
182
+ cks-game-api's at `dev/v2.60.0` (`npm run schema:sync:paths -- --schema <that schema.gql>`, then
183
+ `npm run codegen`).
184
+
123
185
  ## 18.23.1: Crowded Kingdoms no longer hosts games
124
186
 
125
187
  No breaking change. On 2026-10-29 Crowded Kingdoms retired Crowdy Games: the games site, the
package/README.md CHANGED
@@ -12,24 +12,30 @@ gameplay, minted per app through `client.portal`.
12
12
 
13
13
  Start here:
14
14
 
15
- - [SDK guide](https://docs.crowdedkingdoms.com/crowdyjs/readme) — the canonical
15
+ - [SDK guide](https://docs.dev.crowdedkingdoms.com/crowdyjs/readme) — the canonical
16
16
  walkthrough of everything in this README.
17
- - [Build a game](https://docs.crowdedkingdoms.com/build-a-game/intro) — a
17
+ - [Build a game](https://docs.dev.crowdedkingdoms.com/build-a-game/intro) — a
18
18
  hands-on tutorial from sign-in to a playable voxel game.
19
- - [Platform overview](https://docs.crowdedkingdoms.com/overview/client-workflow)
19
+ - [Platform overview](https://docs.dev.crowdedkingdoms.com/overview/client-workflow)
20
20
  — how a client session flows through the platform.
21
21
 
22
22
  ## Install
23
23
 
24
24
  ```bash
25
- npm install @crowdedkingdoms/crowdyjs
25
+ npm install @crowdedkingdoms/crowdyjs@dev
26
26
  ```
27
27
 
28
+ This README is the `dev` branch's: it documents the release on the `dev` dist-tag
29
+ (`npm view @crowdedkingdoms/crowdyjs dist-tags`), and its links go to the dev docs site. A
30
+ plain `npm install` resolves `latest`, the production release, which has no `client.exec`.
31
+
28
32
  **Server compatibility.** A release selects fields the Game API it was built against has,
29
33
  so it needs that Game API or newer; promote the Game API before the SDK on each tier.
30
34
 
31
35
  | CrowdyJS | Needs the Game API (ck-api) |
32
36
  | --- | --- |
37
+ | 18.24.0 | v2.60.0 or later (`users.me` selects `ageBracket` and `country`; app reads and `apps.update` select the safety log and age fields; the teen safety calls). `auth.recordPlayerConsents` with both flags and `auth.playerLegalAcceptance()` without an app work against older releases |
38
+ | 18.22.0 | v2.58.0 or later (`ExecInstance.orphaned`) |
33
39
  | 18.11.0 | what 18.10.0 needs; the Game Kit's hub modules need the app to run the starter pack of a compute toolchain with ckx-sdk 0.10.0 (`kit.topology` deploys it) |
34
40
  | 18.10.0 | the release after v2.43.1 (channel and team bans); the access-ended close needs ck-exec 0.16 |
35
41
  | 18.9.0 | the release after v2.40.2 (`InputLogSession.missingRecords`) |
@@ -114,15 +120,33 @@ the player, from a phishing page.
114
120
  **Every player stores the terms and an age attestation before playing** (ck-api
115
121
  v2.35.0, 2026-10-07). Until they do, `portal.mintAppToken`,
116
122
  `portal.createAuthorizationCode` and `portal.refresh` answer
117
- `LEGAL_ACCEPTANCE_REQUIRED` (`isLegalAcceptanceRequiredError`). On the first row
118
- Studio's `/authorize` asks for both, so a browser game only has to send the player
123
+ `LEGAL_ACCEPTANCE_REQUIRED` (`isLegalAcceptanceRequiredError`;
124
+ `legalAcceptanceRequiredOf(err).missingDocuments` names what is missing). On the first row
125
+ Studio's `/authorize` asks for everything, so a browser game only has to send the player
119
126
  back through `portal.signIn` when a refresh is refused that way. On the other rows,
120
- show your own two checkboxes linking each document, then call
121
- `client.auth.recordPlayerConsents({ acceptLegal: true, attestAgeOfMajority: true })`
122
- before minting; `client.auth.playerLegalAcceptance()` says whether that is still
123
- needed. `auth.register` takes the same two fields, and a browser page must send both.
127
+ show the documents with your own checkbox, each linked (`client.auth.playerLegalDocuments()`
128
+ and, since ck-api v2.60.0, the app's own `client.auth.appRequiredDocuments(appId)`), then call
129
+ `client.auth.recordPlayerConsents({ acceptLegal: true, attestAgeOfMajority: true, appId })`
130
+ before minting; `client.auth.playerLegalAcceptance({ appId })` says whether that is still
131
+ needed. `auth.register` takes the same fields, and a browser page must send them.
124
132
  See [MIGRATION.md](MIGRATION.md#1840-the-terms-and-age-gate).
125
133
 
134
+ **The player gate** (ck-api v2.60.0, the teen safety program) runs at every mint and
135
+ refresh: a country Crowded Kingdoms does not serve is refused `TERRITORY_NOT_SUPPORTED`
136
+ (`territoryNotSupportedOf(err)?.country`), an account with no age `AGE_REQUIRED`
137
+ (`ageRequiredOf`), an age the app or the country does not admit `AGE_REQUIREMENT_NOT_MET`
138
+ (`ageRequirementNotMetOf`), and a player under 18 in an app without its safety log
139
+ `SAFETY_LOG_REQUIRED` (`safetyLogRequiredOf`). Ask the date of birth and the country on a
140
+ neutral screen: it shows no age, and only a player under 18 sees the line that a parent or
141
+ guardian agreed. Send the answers with `auth.register({ ..., birthDate, country,
142
+ parentalConfirmation })`, or `auth.recordPlayerAge({ birthDate, country, parentalConfirmation })`
143
+ for an account that has none. No refusal names an age and the SDK's readers surface none: tell
144
+ the player they cannot play this, without a number, and do not offer the date again (the
145
+ account keeps its answer). `users.me()` reports `ageBracket` and `country`, and
146
+ `platform.territoryPolicies()` (public) lists the countries, so a sign-up form can say a
147
+ country is not served before an account exists. The age is optional until the platform admits
148
+ players under 18; until then the 18+ attestation still applies.
149
+
126
150
  Crowded Kingdoms no longer hosts games (retired 2026-10-29), so a customer's game
127
151
  always runs on its own domain and takes the first row. See
128
152
  [Hosting your game](#hosting-your-game).
@@ -187,8 +211,8 @@ Notes:
187
211
  - Use `client.auth.setToken(token)` to seed a token externally (e.g. when
188
212
  restoring auth from a non-default storage).
189
213
 
190
- Deeper reading: [Portals & app-scoped tokens](https://docs.crowdedkingdoms.com/management-api/portals-and-app-tokens)
191
- and [Sign in](https://docs.crowdedkingdoms.com/management-api/authentication).
214
+ Deeper reading: [Portals & app-scoped tokens](https://docs.dev.crowdedkingdoms.com/management-api/portals-and-app-tokens)
215
+ and [Sign in](https://docs.dev.crowdedkingdoms.com/management-api/authentication).
192
216
 
193
217
  ### Org-managed players
194
218
 
@@ -221,7 +245,15 @@ const res = await fetch('https://ck.dev.crowdedkingdoms.com/graphql', {
221
245
  body: JSON.stringify({
222
246
  query: `mutation($i: MintManagedPlayerTokenInput!) { mintManagedPlayerToken(input: $i) {
223
247
  token gameTokenId appId expiresAt gameApiUrl gameApiWsUrl discoveryUrl launchUrl } }`,
224
- variables: { i: { appId, externalId: account.id, gamertag: account.displayName } },
248
+ variables: {
249
+ i: {
250
+ appId,
251
+ externalId: account.id,
252
+ gamertag: account.displayName,
253
+ ageYears: account.ageYears, // whole years, as your organization knows them
254
+ country: account.country, // ISO 3166-1 alpha-2
255
+ },
256
+ },
225
257
  }),
226
258
  });
227
259
  const { data } = await res.json();
@@ -241,11 +273,22 @@ and the same id is always the same player. The token refreshes (`refreshGameplay
241
273
  the sign-in's lifetime ends (`sessionTtlSeconds`, at most the organization's setting); then the
242
274
  device asks your server again.
243
275
 
276
+ **Age and country** (ck-api v2.60.0). Send the player's `ageYears` and `country` with every
277
+ sign-in: on the mint's input (`MintManagedPlayerTokenInput`, exported as a type) or as the
278
+ assertion's claims (`ManagedPlayerAssertionClaims`). Crowded Kingdoms stores an age bracket and
279
+ the country on the player and applies a minor's defaults itself. A country it does not serve is
280
+ refused `TERRITORY_NOT_SUPPORTED`, and an age under the app's, the country's or the platform's
281
+ youngest `AGE_REQUIREMENT_NOT_MET`, before the player exists; a refresh is refused once the
282
+ stored bracket is wholly below the app's youngest age. Both are optional while every managed
283
+ player is 18 or older under the Org-Managed Players Addendum (left out, the player counts as an
284
+ adult) and required once the platform admits players under 18 (`AGE_REQUIRED` without an age).
285
+
244
286
  **With a signed assertion.** Register a public key once
245
287
  (`managedPlayers.registerSigningKey({ orgId, kid, algorithm: 'EdDSA', publicJwk, issuer })`);
246
288
  your sign-in service signs a short JWS per player (`iss`, `aud: 'ck:app:<appId>'`, `sub` your
247
- account id, `iat`, `exp` at most 300 s later, a fresh `jti`, optionally `gamertag`) and the
248
- device trades it, without your server calling Crowded Kingdoms:
289
+ account id, `iat`, `exp` at most 300 s later, a fresh `jti`, optionally `gamertag`, and
290
+ `ageYears` and `country` as above: `ManagedPlayerAssertionClaims`) and the device trades it,
291
+ without your server calling Crowded Kingdoms:
249
292
 
250
293
  ```ts
251
294
  const access = await game.portal.exchangeManagedPlayerAssertion({ appId, assertion });
@@ -281,6 +324,66 @@ keep the socket and sign with the new token; when it is null, place again with
281
324
  `serverWithLeastClients`. A Buddy silently drops datagrams for a token it was
282
325
  never told about, so a native refresh without it is a re-placement.
283
326
 
327
+ ## Player safety
328
+
329
+ The teen safety program (18.24.0, ck-api v2.60.0). The platform enforces a player's voice and
330
+ video scopes, contacts and blocks on the realtime servers, and keeps the app's safety log;
331
+ your game shows the player the controls, the recording notice and the indicator. Everything a
332
+ player does here takes the app token, on the game client:
333
+
334
+ ```ts
335
+ // The safety log: show a notice before the player first speaks or appears on camera while
336
+ // voice or video is recorded, and an indicator while it is.
337
+ const recording = await game.apps.recording(appId); // { enabled, voice, video }
338
+ if (recording?.voice || recording?.video) showRecordingNoticeAndIndicator(recording);
339
+
340
+ // Voice and video: who the player sends to and hears from (OFF, CONTACTS, EVERYONE).
341
+ const settings = await game.safety.commSettings(appId);
342
+ await game.safety.setCommSettings(appId, { voiceReceive: 'CONTACTS' });
343
+
344
+ // Contacts (mutual, per app: what CONTACTS admits), blocks and reports.
345
+ await game.safety.requestContact(appId, otherUserId);
346
+ await game.safety.acceptContact(appId, requesterUserId);
347
+ await game.safety.block(appId, otherUserId);
348
+ await game.safety.fileReport({ appId, reportedUserId, reason: 'HARASSMENT', details, occurredAt: new Date() });
349
+ ```
350
+
351
+ - **Scopes.** `commSettings` returns the EFFECTIVE scopes the servers enforce, the player's
352
+ `choices`, and what policy allows (`voiceAllowed`, `videoAllowed`). A player can only lower
353
+ them. An adult may choose anything (`EVERYONE` by default); a player under 18 (`isMinor`) has
354
+ each medium `OFF` until a parent consents, then at most `CONTACTS`.
355
+ `safety.requestParentalConsent(appId, 'VOICE' | 'VIDEO', parentEmail)` asks a parent through
356
+ the platform's consent service (`PARENTAL_CONSENT_UNAVAILABLE`, `parentalConsentUnavailableOf`,
357
+ while it is not configured).
358
+ - **Contacts.** `contacts`, `contactRequests` (`INCOMING`, then `OUTGOING`), `requestContact`,
359
+ `acceptContact`, `removeContact` (removes, declines or cancels).
360
+ - **Blocks.** `block`, `unblock`, `blocks`: nothing passes between the two players, either way,
361
+ and the blocked player is not told (its contact requests are answered as usual and dropped).
362
+ A hub that carries one player's words or media to another asks first (ck-exec's
363
+ `players.blocked`), because the realtime servers pass what a hub emits.
364
+ - **Reports.** `fileReport` covers both players' recorded sessions from 15 minutes before
365
+ `occurredAt`, and the platform preserves them for the app's moderators. `SOCIAL_LIMIT_REACHED`
366
+ (`socialLimitReachedOf`) refuses past 100 waiting requests, 1,000 contacts or 1,000 blocks.
367
+ - Every change reaches the player's live sessions within a second.
368
+
369
+ **Moderators** hold `moderate_safety` on the app (an organization role, or the org's admins)
370
+ and use their identity session: `client.moderation.reports(appId, { status })` (open
371
+ `CHILD_SAFETY` reports first), `resolveReport(appId, reportId, outcome)` and
372
+ `escalateReport(appId, reportId, ncmecReportId)`. A report's `sessions` are the recorded sessions
373
+ it covers; a moderator reads them with `inputLog.messages` on an app token for the app, while the
374
+ report is open or escalated, and every read is audited.
375
+
376
+ **App admins** (`manage_apps`): `apps.update(appId, { replayLoggingEnabled,
377
+ replayLoggingRecordsVoice, replayLoggingRecordsVideo, minPlayerAge })` (an app that admits
378
+ players under 18 must keep its safety log: `SAFETY_LOG_REQUIRED`), and
379
+ `apps.setRequiredDocuments(appId, documents)` for the app's own documents, which its players
380
+ accept on top of the platform's.
381
+
382
+ **Crowded Kingdoms' own apps** sign Minecraft players in: `portal.minecraftChallenge(appId)`, a
383
+ Mojang session join by the Minecraft client itself, then `portal.signInWithMinecraft({ appId,
384
+ username, serverId, birthDate, country, parentalConfirmation, acceptedDocuments })`. Any other app
385
+ is refused `FORBIDDEN`.
386
+
284
387
  ## Game-loop lifecycle
285
388
 
286
389
  1. Sign in on the identity client with `client.auth` (`login` / `register`), or
@@ -305,12 +408,13 @@ never told about, so a native refresh without it is a re-placement.
305
408
 
306
409
  | Sub-client | What it does |
307
410
  |---|---|
308
- | `client.auth` | Sign-in: `login` / `register` (email + password), magic link, social/OIDC. Passwords: `requestPasswordReset` / `resetPassword`, `changePassword`, and `setInitialPassword` for an account created by magic link or a social provider (added in 15.1.0). Log out, and linked identities (`myIdentities`, `linkIdentity`/`unlinkIdentity`). **No dev bypass** — `devLogin` was removed in 15.0.0 and `DEV_AUTH_BYPASS` is gone from every tier. |
309
- | `client.users` | `me`, `updateGamertag`, profile reads; `playerProfile` / `playerProfiles` (up to 100) for other players' public `{ userId, gamertag, disambiguation }`. |
411
+ | `client.auth` | Sign-in: `login` / `register` (email + password, with the age answers `birthDate` / `country` / `parentalConfirmation`), magic link, social/OIDC. Passwords: `requestPasswordReset` / `resetPassword`, `changePassword`, and `setInitialPassword` for an account created by magic link or a social provider (added in 15.1.0). Log out, and linked identities (`myIdentities`, `linkIdentity`/`unlinkIdentity`). The terms and the age: `playerLegalDocuments`, `appRequiredDocuments`, `recordPlayerConsents`, `playerLegalAcceptance`, `recordPlayerAge`; a developer's: `developerLegalDocuments`, `recordDeveloperConsents`, `developerLegalAcceptance`. **No dev bypass** — `devLogin` was removed in 15.0.0 and `DEV_AUTH_BYPASS` is gone from every tier. |
412
+ | `client.users` | `me` (with `ageBracket` and `country`), `updateGamertag`, profile reads; `playerProfile` / `playerProfiles` (up to 100) for other players' public `{ userId, gamertag, disambiguation }`. |
413
+ | `client.safety` | The player's own controls in an app (app token): voice and video scopes (`commSettings`, `setCommSettings`), a parent's consent (`requestParentalConsent`), contacts, blocks and reports (`fileReport`). See [Player safety](#player-safety). |
310
414
  | `client.session` | Token store, `restore()`, `getToken()`, manual `setToken()`. |
311
- | `client.portal` | App-scoped token minting (`mintAppToken`) and the cross-origin PKCE entry flow (`beginEntry` / `handleAuthorizeRequest` / `completeEntry` / `refresh`). For an org-managed player, `adoptAppToken` stores the token its organization minted and `exchangeManagedPlayerAssertion` trades the organization's signed assertion. |
415
+ | `client.portal` | App-scoped token minting (`mintAppToken`) and the cross-origin PKCE entry flow (`beginEntry` / `handleAuthorizeRequest` / `completeEntry` / `refresh`). For an org-managed player, `adoptAppToken` stores the token its organization minted and `exchangeManagedPlayerAssertion` trades the organization's signed assertion. Crowded Kingdoms' own apps sign Minecraft players in (`minecraftChallenge`, `signInWithMinecraft`). |
312
416
  | `client.hosting` | **Deprecated.** Crowded Kingdoms no longer hosts games (retired 2026-10-29): the hosting API answers `CONTENT_HOSTING_DISABLED` on every tier, and its reads return null or an empty list. The methods (`claim`, `beginPublish` / `completePublish` / `abandonPublish`, `setEnabled`, `game(slug)`, `listed()`) and the Node helper `publishDirectory` (`@crowdedkingdoms/crowdyjs/hosting`) remain in the package. See [Hosting your game](#hosting-your-game). |
313
- | `client.platform` | Public platform configuration (`config()`). |
417
+ | `client.platform` | Public platform configuration (`config()`) and the territory list (`territoryPolicies()`). |
314
418
  | `client.serverStatus` | `gameClientBootstrap(appId)` — per-app version info, UDP status, spatial limits. |
315
419
  | `client.chunks`, `client.voxels`, `client.actors`, `client.avatars`, `client.state` | World data reads + writes: terrain/LODs, voxel edit + history/rollback, durable actors, avatars, per-user app state blobs. |
316
420
  | `client.host` | Game-host election (`get`, `amIHost`) + actor liveness `heartbeat`. `amIHost` is UI convenience only — a hub decides host-only actions from its caller. |
@@ -336,7 +440,8 @@ grouped under `client.admin` and mirrored at the top level):
336
440
  |---|---|
337
441
  | `client.organizations` | Orgs, members, RBAC roles, org API tokens (with `scopes` and `appIds` for org-managed players). |
338
442
  | `client.managedPlayers` | Org-managed players: list, provision, rename, disable, end sessions, delete; assertion signing keys; whether the org pays for their mods in an app; where the org stands on the addendum. See [Org-managed players](#org-managed-players). |
339
- | `client.apps` | App registry, discovery + routing (`create`, `routeFor`, `marketplace`), visibility, and player-code admission mode / allow-list administration. |
443
+ | `client.apps` | App registry, discovery + routing (`create`, `routeFor`, `marketplace`), visibility, and player-code admission mode / allow-list administration. The safety log's state for players (`recording`, readable with an app token) and the app's own documents (`setRequiredDocuments`). |
444
+ | `client.moderation` | An app's safety reports for its moderators (`moderate_safety`): `reports`, `resolveReport`, `escalateReport`. See [Player safety](#player-safety). |
340
445
  | `client.appAccess` | Access tiers + per-user grants, and the feature keys a tier grants (`defineFeature`, `grantTierFeature`, `tierFeatures`, …), which a hub checks with the node API's `players.features`; timed bans (`suspend`, `unsuspend`) and `resyncTierGridPermissions`. |
341
446
  | `client.billing` | Org wallet + per-app spend budgets. |
342
447
  | `client.payments` | Payment checkouts (wallet top-ups, plan purchases). |
@@ -385,7 +490,7 @@ query AppForRouting($appId: BigInt!) {
385
490
  `CrowdyClient` with `httpUrl: gameApiUrl` (and the matching `wsUrl`) holding
386
491
  that app's app-scoped token, then drive gameplay through that client. Apps
387
492
  with no `gameApiUrl` keep working against the default `httpUrl` you
388
- configured. See [Loading an app's Game API](https://docs.crowdedkingdoms.com/crowdyjs/shared-environment-routing).
493
+ configured. See [Loading an app's Game API](https://docs.dev.crowdedkingdoms.com/crowdyjs/shared-environment-routing).
389
494
 
390
495
  ## Realtime notifications
391
496
 
@@ -821,7 +926,7 @@ reach your bundle. Reads are synchronous snapshots and writes happen on
821
926
  WebSocket events (not `requestAnimationFrame`), so render loops read freely
822
927
  and a backgrounded tab keeps ingesting updates; pass `workerTicker()` to also
823
928
  keep timer-driven sends at full rate while hidden. See the
824
- [World Stores guide](https://docs.crowdedkingdoms.com/crowdyjs/stores).
929
+ [World Stores guide](https://docs.dev.crowdedkingdoms.com/crowdyjs/stores).
825
930
 
826
931
  ## Game Kit
827
932
 
@@ -899,7 +1004,7 @@ The protocol is held to ck-exec's golden record of the starters
899
1004
  (`test/unit/fixtures/kit-protocol.json`): every module call and topic in it is replayed in
900
1005
  `test/unit/game-kit.test.mjs`. The blueprints, `kit.deploy`, the engines and the model-backed
901
1006
  helpers went with the game model in 18.0.0; the hub modules replace them. See the
902
- [Game Kit docs](https://docs.crowdedkingdoms.com/game-kit/intro) and
1007
+ [Game Kit docs](https://docs.dev.crowdedkingdoms.com/game-kit/intro) and
903
1008
  [MIGRATION.md](MIGRATION.md).
904
1009
 
905
1010
  ## ck-exec
@@ -963,7 +1068,7 @@ Integers above 2^53 decode as `number` and lose precision unless you pass
963
1068
  `{ decode: { useBigInt64: true } }`. A call's whole numbers outside 32 bits (a timestamp in
964
1069
  milliseconds, a player id) go out as 64-bit integers (18.11.0; before, as floats, which a
965
1070
  hub's integer fields refuse). The wire format is in the
966
- [ck-exec docs](https://docs.crowdedkingdoms.com/exec/intro).
1071
+ [ck-exec docs](https://docs.dev.crowdedkingdoms.com/exec/intro).
967
1072
 
968
1073
  ### A mod's CLIENT half
969
1074
 
@@ -1034,7 +1139,7 @@ counts what was dropped); `invoke` sends at most 256 KiB each way and is refused
1034
1139
  module is not running. `NOT_FOUND` holds a CLIENT half back 15 s and `RATE_LIMITED` 60 s. The
1035
1140
  grid's owner is asked about their own CLIENT halves like anyone; answer yes in `confirm` when
1036
1141
  `prompt.authorId` is the player. See
1037
- [CLIENT halves](https://docs.crowdedkingdoms.com/exec/client-halves).
1142
+ [CLIENT halves](https://docs.dev.crowdedkingdoms.com/exec/client-halves).
1038
1143
 
1039
1144
  ## Hosting your game
1040
1145
 
@@ -1143,8 +1248,8 @@ CLIENT project needs ck-api `v2.25.1` or later. A CLIENT crate still on the lega
1143
1248
  `mountCrowdyStudio` and the controller take `mods: client.exec`. Crowdy Studio runs nothing
1144
1249
  on legacy player compute since 18.0.0.
1145
1250
 
1146
- See [CLIENT halves](https://docs.crowdedkingdoms.com/exec/client-halves), [mods](https://docs.crowdedkingdoms.com/exec/mods)
1147
- and [Embed Crowdy Studio in your game](https://docs.crowdedkingdoms.com/crowdyjs/crowdy-studio-embed).
1251
+ See [CLIENT halves](https://docs.dev.crowdedkingdoms.com/exec/client-halves), [mods](https://docs.dev.crowdedkingdoms.com/exec/mods)
1252
+ and [Embed Crowdy Studio in your game](https://docs.dev.crowdedkingdoms.com/crowdyjs/crowdy-studio-embed).
1148
1253
 
1149
1254
  ### The Studio agent (DeepSeek Harness in the browser)
1150
1255
 
@@ -1276,6 +1381,15 @@ before entering the world. For org-managed players: `assertionRejectedOf(err)`
1276
1381
  (`ASSERTION_REJECTED`, with the failed check as `reason`) and `managedPlayerNotAllowedOf(err)`
1277
1382
  (`MANAGED_PLAYER_NOT_ALLOWED`: no wallet, or mods the organization has not switched on).
1278
1383
 
1384
+ The player gate and player safety (18.24.0): `legalAcceptanceRequiredOf(err)`
1385
+ (`LEGAL_ACCEPTANCE_REQUIRED`, with the `missingDocuments`), `ageRequiredOf(err)` (`AGE_REQUIRED`),
1386
+ `ageRequirementNotMetOf(err)` (`AGE_REQUIREMENT_NOT_MET`; a boolean on purpose, since no refusal
1387
+ names an age), `territoryNotSupportedOf(err)` (`TERRITORY_NOT_SUPPORTED`, with `country`),
1388
+ `safetyLogRequiredOf(err)` (`SAFETY_LOG_REQUIRED`), `parentalConsentUnavailableOf(err)`
1389
+ (`PARENTAL_CONSENT_UNAVAILABLE`), `socialLimitReachedOf(err)` (`SOCIAL_LIMIT_REACHED`), and for
1390
+ Minecraft sign-in `minecraftVerificationFailedOf(err)` (with `reason`) and
1391
+ `minecraftVerificationUnavailableOf(err)` (retry shortly). Each has its `*_CODE` constant.
1392
+
1279
1393
  ## Idempotent retries
1280
1394
 
1281
1395
  Destructive game-client mutations accept an optional **idempotency key**. Pass
@@ -1361,6 +1475,17 @@ leaves the org behind and archives the app, so it runs only when asked to.
1361
1475
  starter hubs with `kit.topology`, builds and deploys them, and two players play them (on dev and
1362
1476
  test it also needs `CROWDY_PROVISIONING_TOKEN`, which their staff-only sign-up asks for).
1363
1477
 
1478
+ `test/e2e/teen-safety.test.mjs` runs the teen safety calls (18.24.0). With `CROWDY_SAFETY_APP_ID`
1479
+ (an app whose default tier admits any player) and `CROWDY_PROVISIONING_TOKEN` on dev and test,
1480
+ two new players sign up with a birth date and a country, read `me`, change their voice and
1481
+ video settings, ask, accept and remove a contact, block and unblock, and delete their accounts;
1482
+ sign-ups declaring a blocked country or an age under 13 are refused before any account exists.
1483
+ With `CROWDY_OWNER_EMAIL` / `_PASSWORD` (an admin of that app's org) one player also reports the
1484
+ other and the admin lists and resolves the report; without them no report is filed. With
1485
+ `CROWDY_ORG_TOKEN` (`players:mint` and `players:manage`) and `CROWDY_MANAGED_APP_ID`, an
1486
+ organization's server signs a managed player in with `ageYears` and `country`, a blocked country
1487
+ and an age under 13 are refused, and the player is deleted.
1488
+
1364
1489
  ## Maintainers: schema artifacts and fixtures
1365
1490
 
1366
1491
  CrowdyJS is a standalone public package: a clean clone builds with
@@ -1372,7 +1497,7 @@ no other repositories and no network access required:
1372
1497
  `src/generated/graphql-schema.ts`, the generated schema types.
1373
1498
 
1374
1499
  Schema refresh is explicit, from the published
1375
- [SDL](https://docs.crowdedkingdoms.com/schema/game-api.graphql):
1500
+ [SDL](https://docs.dev.crowdedkingdoms.com/schema/game-api.graphql):
1376
1501
 
1377
1502
  ```bash
1378
1503
  npm run schema:sync:prod
@@ -53,6 +53,8 @@ import { VoxelsAPI } from './domains/voxels.js';
53
53
  import { ActorsAPI } from './domains/actors.js';
54
54
  import { TeleportAPI } from './domains/teleport.js';
55
55
  import { InputLogAPI } from './domains/inputLog.js';
56
+ import { SafetyAPI } from './domains/safety.js';
57
+ import { ModerationAPI } from './domains/moderation.js';
56
58
  import { StateAPI } from './domains/state.js';
57
59
  import { ServerStatusAPI } from './domains/serverStatus.js';
58
60
  import { ChannelsAPI } from './domains/channels.js';
@@ -268,10 +270,12 @@ export declare class CrowdyClient {
268
270
  readonly usage: UsageAPI;
269
271
  /** Shared-environment publishing, runtime gating, auto-billing (studio admin). */
270
272
  readonly sharedEnvironment: SharedEnvironmentAPI;
273
+ /** An app's safety reports for its moderators (`moderate_safety`; identity session). */
274
+ readonly moderation: ModerationAPI;
271
275
  /**
272
276
  * Studio-admin facade grouping the privileged management-surface sub-clients
273
277
  * (`organizations`, `appAccess`, `billing`, `payments`, `quotas`,
274
- * `usage`, `sharedEnvironment`, `grids`) under one namespace.
278
+ * `usage`, `sharedEnvironment`, `grids`, `moderation`) under one namespace.
275
279
  */
276
280
  readonly admin: AdminAPI;
277
281
  /** Chunk reads/writes: terrain, LODs, chunk state, distance queries. */
@@ -284,6 +288,11 @@ export declare class CrowdyClient {
284
288
  readonly teleport: TeleportAPI;
285
289
  /** The input log: recorded client inputs of an app with replay logging on. */
286
290
  readonly inputLog: InputLogAPI;
291
+ /**
292
+ * The player's own safety controls in an app (app token): voice and video scopes,
293
+ * contacts, blocks, a parent's consent, and reports to the app's moderators.
294
+ */
295
+ readonly safety: SafetyAPI;
287
296
  /** Per-user/per-app persisted state blobs. */
288
297
  readonly state: StateAPI;
289
298
  /** Server status + version discovery (UDP availability, version floors). */
@@ -1 +1 @@
1
- {"version":3,"file":"crowdy-client.d.ts","sourceRoot":"","sources":["../src/crowdy-client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAK5C,OAAO,EAAE,a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ACrC,+EAA+E;IAC/E,QAAQ,CAAC,YAAY,EAAE,eAAe,CAAC;IACvC,kEAAkE;IAClE,QAAQ,CAAC,OAAO,EAAE,UAAU,CAAC;IAC7B,qDAAqD;IACrD,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB,sEAAsE;IACtE,QAAQ,CAAC,QAAQ,EAAE,WAAW,CAAC;gBAEnB,MAAM,GAAE,kBAAuB;IA6M3C,4EAA4E;IAC5E,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IAIpC,0DAA0D;IAC1D,QAAQ,IAAI,MAAM,GAAG,IAAI;IAIzB;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACG,oBAAoB,IAAI,OAAO,CAAC,gBAAgB,CAAC;YAczC,2BAA2B;IAezC;;;;OAIG;IACG,2BAA2B,IAAI,OAAO,CAAC,IAAI,CAAC;IASlD;;;;;;;OAOG;IACH,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,WAAW;IAIjC;;;;;;;OAOG;IACH,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,OAAO,GAAG,SAAS;IAI7D;;;;;;;;;;;;OAYG;IACH,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,aAAa;IAgB3D,gEAAgE;IAChE,KAAK,IAAI,IAAI;IAQb,yDAAyD;IACzD,IAAI,eAAe,IAAI,MAAM,CAE5B;CACF;AAED,wBAAgB,kBAAkB,CAChC,MAAM,GAAE,kBAAuB,GAC9B,YAAY,CAEd"}
@@ -54,6 +54,8 @@ import { VoxelsAPI } from './domains/voxels.js';
54
54
  import { ActorsAPI } from './domains/actors.js';
55
55
  import { TeleportAPI } from './domains/teleport.js';
56
56
  import { InputLogAPI } from './domains/inputLog.js';
57
+ import { SafetyAPI } from './domains/safety.js';
58
+ import { ModerationAPI } from './domains/moderation.js';
57
59
  import { StateAPI } from './domains/state.js';
58
60
  import { ServerStatusAPI } from './domains/serverStatus.js';
59
61
  import { ChannelsAPI } from './domains/channels.js';
@@ -204,11 +206,13 @@ export class CrowdyClient {
204
206
  this.quotas = new QuotasAPI(this.graphql);
205
207
  this.usage = new UsageAPI(this.graphql);
206
208
  this.sharedEnvironment = new SharedEnvironmentAPI(this.graphql);
209
+ this.moderation = new ModerationAPI(this.graphql);
207
210
  this.chunks = new ChunksAPI(this.graphql);
208
211
  this.voxels = new VoxelsAPI(this.graphql);
209
212
  this.actors = new ActorsAPI(this.graphql);
210
213
  this.teleport = new TeleportAPI(this.graphql);
211
214
  this.inputLog = new InputLogAPI(this.graphql);
215
+ this.safety = new SafetyAPI(this.graphql);
212
216
  this.state = new StateAPI(this.graphql);
213
217
  this.serverStatus = new ServerStatusAPI(this.graphql);
214
218
  this.channels = new ChannelsAPI(this.graphql);
@@ -234,6 +238,7 @@ export class CrowdyClient {
234
238
  usage: this.usage,
235
239
  sharedEnvironment: this.sharedEnvironment,
236
240
  grids: this.gameApps,
241
+ moderation: this.moderation,
237
242
  });
238
243
  }
239
244
  /** Imperatively set the Bearer token (useful for SSO / token rehydrate). */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * GENERATED — do not edit. The operator tooling's
3
- * `sync-client-origins.mjs --write --tier prod` writes this file, and
3
+ * `sync-client-origins.mjs --write --tier dev` writes this file, and
4
4
  * `check-sdk-default-origin.mjs` refuses it when it names the wrong tier or a
5
5
  * host that declaration does not carry. Regenerate; never hand-edit.
6
6
  *
@@ -10,14 +10,14 @@
10
10
  * than no default at all. Every fallback this SDK ever removed named a host that
11
11
  * was already dead. A generated file plus a gate is what makes this one different.
12
12
  *
13
- * Source: the operator's per-tier public CK API origin declaration, tier 'prod'
13
+ * Source: the operator's per-tier public CK API origin declaration, tier 'dev'
14
14
  */
15
15
  /** The tier this build of the SDK is published for. */
16
- export declare const CROWDY_DEFAULT_TIER = "prod";
16
+ export declare const CROWDY_DEFAULT_TIER = "dev";
17
17
  /** The public CK API origin for that tier. */
18
- export declare const CROWDY_DEFAULT_HTTP_ORIGIN = "https://ck.prod.crowdedkingdoms.com";
18
+ export declare const CROWDY_DEFAULT_HTTP_ORIGIN = "https://ck.dev.crowdedkingdoms.com";
19
19
  /** The same host over WebSocket. A scheme is composed; a hostname is looked up. */
20
- export declare const CROWDY_DEFAULT_WS_ORIGIN = "wss://ck.prod.crowdedkingdoms.com";
20
+ export declare const CROWDY_DEFAULT_WS_ORIGIN = "wss://ck.dev.crowdedkingdoms.com";
21
21
  /** The bare hostname, for callers that need to compare rather than dial. */
22
- export declare const CROWDY_DEFAULT_HOST = "ck.prod.crowdedkingdoms.com";
22
+ export declare const CROWDY_DEFAULT_HOST = "ck.dev.crowdedkingdoms.com";
23
23
  //# sourceMappingURL=default-origin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"default-origin.d.ts","sourceRoot":"","sources":["../src/default-origin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,uDAAuD;AACvD,eAAO,MAAM,mBAAmB,SAAS,CAAC;AAE1C,8CAA8C;AAC9C,eAAO,MAAM,0BAA0B,wCAAwC,CAAC;AAEhF,mFAAmF;AACnF,eAAO,MAAM,wBAAwB,sCAAsC,CAAC;AAE5E,4EAA4E;AAC5E,eAAO,MAAM,mBAAmB,gCAAgC,CAAC"}
1
+ {"version":3,"file":"default-origin.d.ts","sourceRoot":"","sources":["../src/default-origin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,uDAAuD;AACvD,eAAO,MAAM,mBAAmB,QAAQ,CAAC;AAEzC,8CAA8C;AAC9C,eAAO,MAAM,0BAA0B,uCAAuC,CAAC;AAE/E,mFAAmF;AACnF,eAAO,MAAM,wBAAwB,qCAAqC,CAAC;AAE3E,4EAA4E;AAC5E,eAAO,MAAM,mBAAmB,+BAA+B,CAAC"}
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * GENERATED — do not edit. The operator tooling's
3
- * `sync-client-origins.mjs --write --tier prod` writes this file, and
3
+ * `sync-client-origins.mjs --write --tier dev` writes this file, and
4
4
  * `check-sdk-default-origin.mjs` refuses it when it names the wrong tier or a
5
5
  * host that declaration does not carry. Regenerate; never hand-edit.
6
6
  *
@@ -10,13 +10,13 @@
10
10
  * than no default at all. Every fallback this SDK ever removed named a host that
11
11
  * was already dead. A generated file plus a gate is what makes this one different.
12
12
  *
13
- * Source: the operator's per-tier public CK API origin declaration, tier 'prod'
13
+ * Source: the operator's per-tier public CK API origin declaration, tier 'dev'
14
14
  */
15
15
  /** The tier this build of the SDK is published for. */
16
- export const CROWDY_DEFAULT_TIER = 'prod';
16
+ export const CROWDY_DEFAULT_TIER = 'dev';
17
17
  /** The public CK API origin for that tier. */
18
- export const CROWDY_DEFAULT_HTTP_ORIGIN = 'https://ck.prod.crowdedkingdoms.com';
18
+ export const CROWDY_DEFAULT_HTTP_ORIGIN = 'https://ck.dev.crowdedkingdoms.com';
19
19
  /** The same host over WebSocket. A scheme is composed; a hostname is looked up. */
20
- export const CROWDY_DEFAULT_WS_ORIGIN = 'wss://ck.prod.crowdedkingdoms.com';
20
+ export const CROWDY_DEFAULT_WS_ORIGIN = 'wss://ck.dev.crowdedkingdoms.com';
21
21
  /** The bare hostname, for callers that need to compare rather than dial. */
22
- export const CROWDY_DEFAULT_HOST = 'ck.prod.crowdedkingdoms.com';
22
+ export const CROWDY_DEFAULT_HOST = 'ck.dev.crowdedkingdoms.com';
@@ -8,6 +8,7 @@ import type { QuotasAPI } from './quotas.js';
8
8
  import type { UsageAPI } from './usage.js';
9
9
  import type { SharedEnvironmentAPI } from './sharedEnvironment.js';
10
10
  import type { GameAppsAPI } from './gameApps.js';
11
+ import type { ModerationAPI } from './moderation.js';
11
12
  /**
12
13
  * Studio-admin facade — exposed as `client.admin`.
13
14
  *
@@ -49,6 +50,8 @@ export declare class AdminAPI {
49
50
  readonly sharedEnvironment: SharedEnvironmentAPI;
50
51
  /** App grids + grid runtime-permission administration. */
51
52
  readonly grids: GameAppsAPI;
53
+ /** An app's safety reports, for its moderators (`moderate_safety`). */
54
+ readonly moderation: ModerationAPI;
52
55
  constructor(deps: {
53
56
  organizations: OrganizationsAPI;
54
57
  managedPlayers: ManagedPlayersAPI;
@@ -60,6 +63,7 @@ export declare class AdminAPI {
60
63
  usage: UsageAPI;
61
64
  sharedEnvironment: SharedEnvironmentAPI;
62
65
  grids: GameAppsAPI;
66
+ moderation: ModerationAPI;
63
67
  });
64
68
  }
65
69
  //# sourceMappingURL=admin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"admin.d.ts","sourceRoot":"","sources":["../../src/domains/admin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBAAa,QAAQ;IACnB,8DAA8D;IAC9D,QAAQ,CAAC,aAAa,EAAE,gBAAgB,CAAC;IACzC,qEAAqE;IACrE,QAAQ,CAAC,cAAc,EAAE,iBAAiB,CAAC;IAC3C,+DAA+D;IAC/D,QAAQ,CAAC,IAAI,EAAE,OAAO,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AAE,oBAAoB,CAAC;QACxC,KAAK,EAAE,WAAW,CAAC;QACnB,UAAU,EAAE,aAAa,CAAC;KAC3B;CAaF"}
@@ -30,5 +30,6 @@ export class AdminAPI {
30
30
  this.usage = deps.usage;
31
31
  this.sharedEnvironment = deps.sharedEnvironment;
32
32
  this.grids = deps.grids;
33
+ this.moderation = deps.moderation;
33
34
  }
34
35
  }