@crowdedkingdoms/crowdyjs 18.23.1 → 18.25.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 +91 -0
  2. package/README.md +181 -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 +49 -3
  13. package/dist/domains/apps.d.ts.map +1 -1
  14. package/dist/domains/apps.js +52 -3
  15. package/dist/domains/auth.d.ts +145 -16
  16. package/dist/domains/auth.d.ts.map +1 -1
  17. package/dist/domains/auth.js +158 -16
  18. package/dist/domains/inputLog.d.ts +9 -2
  19. package/dist/domains/inputLog.d.ts.map +1 -1
  20. package/dist/domains/inputLog.js +9 -2
  21. package/dist/domains/managedPlayers.d.ts +66 -3
  22. package/dist/domains/managedPlayers.d.ts.map +1 -1
  23. package/dist/domains/managedPlayers.js +19 -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 +16 -0
  28. package/dist/domains/platform.d.ts.map +1 -1
  29. package/dist/domains/platform.js +17 -0
  30. package/dist/domains/portal.d.ts +88 -8
  31. package/dist/domains/portal.d.ts.map +1 -1
  32. package/dist/domains/portal.js +80 -8
  33. package/dist/domains/safety.d.ts +164 -0
  34. package/dist/domains/safety.d.ts.map +1 -0
  35. package/dist/domains/safety.js +168 -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 +163 -0
  40. package/dist/errors.d.ts.map +1 -1
  41. package/dist/errors.js +188 -0
  42. package/dist/generated/graphql-schema.d.ts +568 -17
  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 +378 -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,97 @@ 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.25.0: appointed moderators, regions, and the consent refusal's reason
124
+
125
+ **What it needs.** ck-api `v2.61.0` (cks-game-api #623, #624): `apps.app()` and `apps.update()`
126
+ select `hasSafetyModerator`, and `platform.territoryPolicies()` selects `regionCode`; against an
127
+ older API those fail as GraphQL validation errors. Dev runs it with players from 13 admitted.
128
+
129
+ - **One change of type:** `parentalConsentUnavailableOf(err)` returns `{ reason } | null` instead
130
+ of a boolean (`reason`: `not_configured`, `provider_refused` or `provider_unavailable`, or null
131
+ from an API that does not say). `if (parentalConsentUnavailableOf(err))` works as before;
132
+ replace a comparison with `true`.
133
+ - **Appointed moderators.** A player under 18 is refused `SAFETY_MODERATOR_REQUIRED`
134
+ (`safetyModeratorRequiredOf`, `SAFETY_MODERATOR_REQUIRED_CODE`) in an app that admits players
135
+ under 18 while its organization has appointed no safety moderator: a member whose own role grants
136
+ `moderate_safety` (an admin alone does not count). `App.hasSafetyModerator` says whether it has
137
+ one, for the organization's members (null for anyone else).
138
+ - **Regions.** A country Crowded Kingdoms checks by region (Ukraine today) needs the player's
139
+ ISO 3166-2 region: `region` on the managed-player mint's input (`MintManagedPlayerTokenInput`)
140
+ and on `ManagedPlayerAssertionClaims`. Without it, or in a blocked region, the sign-in is refused
141
+ `TERRITORY_NOT_SUPPORTED`. `territoryPolicies()` rows carry `regionCode`.
142
+ - **No refusal names an age** (`AGE_REQUIREMENT_NOT_MET` has no extensions), the same client is
143
+ refused at sign-up and `recordPlayerAge` for 24 hours after one, an account that answers
144
+ `recordPlayerAge` under 13 is deleted, and an org-managed player said to be under 13 is too.
145
+ - **A player's own records.** On an app with the safety log a player reads its own sessions with
146
+ `inputLog.sessions(appId)` and `messages`; on an app that admits players under 18,
147
+ `manage_apps` reads nothing more and moderators read the sessions a report covers.
148
+
149
+ The operator's `childSafetyReports`, `eraseAccount` and `recordParentalConsentWithdrawal` are not
150
+ wrapped. The schema is cks-game-api's at `dev/v2.61.0`.
151
+
152
+ ## 18.24.0: the teen safety program
153
+
154
+ No breaking change: every existing call takes what it took. **What it needs.** ck-api `v2.60.0`
155
+ (cks-game-api #613 to #616) for the new calls and for three existing reads that select new
156
+ fields: `users.me()` (`ageBracket`, `country`), `apps.app()` and `apps.update()` (the safety log
157
+ and age fields). Against an older API those fail as GraphQL validation errors, so deploy the API
158
+ first. `auth.recordPlayerConsents({ acceptLegal, attestAgeOfMajority })` and
159
+ `auth.playerLegalAcceptance()` send their 18.23 documents and work against any API since
160
+ v2.35.0; only the new arguments need v2.60.0.
161
+
162
+ Crowded Kingdoms admits players from 13 once the platform's safety baseline is live on every
163
+ tier (the "flip"). Until then the platform stays 18+, the new inputs are optional, and the
164
+ age-of-majority attestation still applies. Build the flows now:
165
+
166
+ - **The age.** `auth.register` takes `birthDate` (`YYYY-MM-DD`; only the year and month are
167
+ kept), `country` (ISO 3166-1 alpha-2) and `parentalConfirmation` (a player under 18 confirmed
168
+ that a parent or guardian agreed). `auth.recordPlayerAge({ birthDate, country,
169
+ parentalConfirmation })` gives an existing account its age, once (`CONFLICT` after).
170
+ `users.me()` reports `ageBracket` (`unknown`, `under_13`, `13_15`, `16_17`, `18_plus`) and
171
+ `country`. Ask on a neutral screen: the date of birth and the country, no age shown, and the
172
+ parental line only for a player under 18. After the flip a browser sign-up without an age is
173
+ refused `AGE_REQUIRED`.
174
+ - **The player gate** at every mint and refresh: `TERRITORY_NOT_SUPPORTED`
175
+ (`territoryNotSupportedOf`, with `country`), `AGE_REQUIRED` (`ageRequiredOf`),
176
+ `AGE_REQUIREMENT_NOT_MET` (`ageRequirementNotMetOf`), then `LEGAL_ACCEPTANCE_REQUIRED`
177
+ (`legalAcceptanceRequiredOf`, with `missingDocuments`), and `SAFETY_LOG_REQUIRED`
178
+ (`safetyLogRequiredOf`) for a player under 18 in an app without its safety log. No refusal
179
+ names an age, and `ageRequirementNotMetOf` is a boolean on purpose: tell the player they
180
+ cannot play this, without a number. `platform.territoryPolicies()` lists the countries (public).
181
+ - **Documents.** The platform's player documents are `auth.playerLegalDocuments()`, an app's own
182
+ `auth.appRequiredDocuments(appId)` (its admins set them with `apps.setRequiredDocuments`).
183
+ `auth.recordPlayerConsents` takes `appId` (record the app's documents too) and `method`
184
+ (`CLICKWRAP`, the default, or `IN_GAME`), and the attestation may be left out once the
185
+ platform asks for a birth date. `auth.playerLegalAcceptance({ appId })` counts the app's.
186
+ A developer's documents: `auth.developerLegalDocuments()`, `recordDeveloperConsents`,
187
+ `developerLegalAcceptance`; after the flip creating or administering an organization needs
188
+ them, and an adult.
189
+ - **A player's own controls** (`client.safety`, app token): voice and video scopes
190
+ (`commSettings`, `setCommSettings`; under 18 each medium is off until a parent consents
191
+ through `requestParentalConsent`, then at most `CONTACTS`), contacts (`contacts`,
192
+ `contactRequests`, `requestContact`, `acceptContact`, `removeContact`), blocks (`blocks`,
193
+ `block`, `unblock`) and reports (`fileReport`).
194
+ - **The safety log's notice.** `apps.recording(appId)` (`{ enabled, voice, video }`, readable
195
+ with an app token): while voice or video is recorded, show a notice before the player first
196
+ speaks or appears on camera, and an indicator while it is. `apps.update` takes
197
+ `replayLoggingRecordsVoice`, `replayLoggingRecordsVideo` and `minPlayerAge`; turning the log
198
+ off in an app that admits players under 18 is refused `SAFETY_LOG_REQUIRED`.
199
+ - **Moderators** (`client.moderation`, also `client.admin.moderation`; `moderate_safety`):
200
+ `reports`, `resolveReport`, `escalateReport`, and `inputLog.messages` for the sessions a report
201
+ covers.
202
+ - **Org-managed players.** The organization sends `ageYears` and `country` with each sign-in:
203
+ on the mint's input (the type `MintManagedPlayerTokenInput`) or as the assertion's claims
204
+ (`ManagedPlayerAssertionClaims`). Optional until the flip; left out, the player counts as an
205
+ adult. The SDK still has no wrapper for the org-token mint.
206
+ - **Crowded Kingdoms' own apps** only: `portal.minecraftChallenge(appId)` and
207
+ `portal.signInWithMinecraft(...)` (refusals `minecraftVerificationFailedOf`,
208
+ `minecraftVerificationUnavailableOf`).
209
+
210
+ The operator's `setTerritoryPolicy` and `exportPlayerData` are not wrapped. The schema is
211
+ cks-game-api's at `dev/v2.60.0` (`npm run schema:sync:paths -- --schema <that schema.gql>`, then
212
+ `npm run codegen`).
213
+
123
214
  ## 18.23.1: Crowded Kingdoms no longer hosts games
124
215
 
125
216
  No breaking change. On 2026-10-29 Crowded Kingdoms retired Crowdy Games: the games site, the
package/README.md CHANGED
@@ -12,24 +12,31 @@ 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.25.0 | v2.61.0 or later (app reads and `apps.update` select `hasSafetyModerator`; `platform.territoryPolicies` selects `regionCode`) |
38
+ | 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 |
39
+ | 18.22.0 | v2.58.0 or later (`ExecInstance.orphaned`) |
33
40
  | 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
41
  | 18.10.0 | the release after v2.43.1 (channel and team bans); the access-ended close needs ck-exec 0.16 |
35
42
  | 18.9.0 | the release after v2.40.2 (`InputLogSession.missingRecords`) |
@@ -114,15 +121,38 @@ the player, from a phishing page.
114
121
  **Every player stores the terms and an age attestation before playing** (ck-api
115
122
  v2.35.0, 2026-10-07). Until they do, `portal.mintAppToken`,
116
123
  `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
124
+ `LEGAL_ACCEPTANCE_REQUIRED` (`isLegalAcceptanceRequiredError`;
125
+ `legalAcceptanceRequiredOf(err).missingDocuments` names what is missing). On the first row
126
+ Studio's `/authorize` asks for everything, so a browser game only has to send the player
119
127
  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.
128
+ show the documents with your own checkbox, each linked (`client.auth.playerLegalDocuments()`
129
+ and, since ck-api v2.60.0, the app's own `client.auth.appRequiredDocuments(appId)`), then call
130
+ `client.auth.recordPlayerConsents({ acceptLegal: true, attestAgeOfMajority: true, appId })`
131
+ before minting; `client.auth.playerLegalAcceptance({ appId })` says whether that is still
132
+ needed. `auth.register` takes the same fields, and a browser page must send them.
124
133
  See [MIGRATION.md](MIGRATION.md#1840-the-terms-and-age-gate).
125
134
 
135
+ **The player gate** (ck-api v2.60.0, the teen safety program) runs at every mint and
136
+ refresh: a country Crowded Kingdoms does not serve is refused `TERRITORY_NOT_SUPPORTED`
137
+ (`territoryNotSupportedOf(err)?.country`), an account with no age `AGE_REQUIRED`
138
+ (`ageRequiredOf`), an age the app or the country does not admit `AGE_REQUIREMENT_NOT_MET`
139
+ (`ageRequirementNotMetOf`), and a player under 18 in an app without its safety log
140
+ `SAFETY_LOG_REQUIRED` (`safetyLogRequiredOf`), or (ck-api v2.61.0) in an app whose organization
141
+ has appointed no safety moderator `SAFETY_MODERATOR_REQUIRED` (`safetyModeratorRequiredOf`).
142
+ Ask the date of birth and the country on a neutral screen: it shows no age, and only a player
143
+ under 18 sees the line that a parent or guardian agreed. Send the answers with
144
+ `auth.register({ ..., birthDate, country, parentalConfirmation })`, or
145
+ `auth.recordPlayerAge({ birthDate, country, parentalConfirmation })` for an account that has
146
+ none. No refusal names an age and the SDK's readers surface none: tell the player they cannot
147
+ play this, without a number, and do not offer the date again. Since v2.61.0 the same client
148
+ (address and user agent) is refused at sign-up and `recordPlayerAge` for 24 hours after an age
149
+ refusal, and an account that answers `recordPlayerAge` under 13 is deleted. `users.me()` reports
150
+ `ageBracket` and `country`, and `platform.territoryPolicies()` (public) lists the countries and,
151
+ since v2.61.0, regions (`regionCode`, ISO 3166-2: a country with a region listed is checked by
152
+ region), so a sign-up form can say a place is not served before an account exists. The age is
153
+ optional until the platform admits players under 18; until then the 18+ attestation still
154
+ applies.
155
+
126
156
  Crowded Kingdoms no longer hosts games (retired 2026-10-29), so a customer's game
127
157
  always runs on its own domain and takes the first row. See
128
158
  [Hosting your game](#hosting-your-game).
@@ -187,8 +217,8 @@ Notes:
187
217
  - Use `client.auth.setToken(token)` to seed a token externally (e.g. when
188
218
  restoring auth from a non-default storage).
189
219
 
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).
220
+ Deeper reading: [Portals & app-scoped tokens](https://docs.dev.crowdedkingdoms.com/management-api/portals-and-app-tokens)
221
+ and [Sign in](https://docs.dev.crowdedkingdoms.com/management-api/authentication).
192
222
 
193
223
  ### Org-managed players
194
224
 
@@ -221,7 +251,16 @@ const res = await fetch('https://ck.dev.crowdedkingdoms.com/graphql', {
221
251
  body: JSON.stringify({
222
252
  query: `mutation($i: MintManagedPlayerTokenInput!) { mintManagedPlayerToken(input: $i) {
223
253
  token gameTokenId appId expiresAt gameApiUrl gameApiWsUrl discoveryUrl launchUrl } }`,
224
- variables: { i: { appId, externalId: account.id, gamertag: account.displayName } },
254
+ variables: {
255
+ i: {
256
+ appId,
257
+ externalId: account.id,
258
+ gamertag: account.displayName,
259
+ ageYears: account.ageYears, // whole years, as your organization knows them
260
+ country: account.country, // ISO 3166-1 alpha-2
261
+ region: account.region, // ISO 3166-2 (UA-30), where the country is checked by region
262
+ },
263
+ },
225
264
  }),
226
265
  });
227
266
  const { data } = await res.json();
@@ -241,11 +280,26 @@ and the same id is always the same player. The token refreshes (`refreshGameplay
241
280
  the sign-in's lifetime ends (`sessionTtlSeconds`, at most the organization's setting); then the
242
281
  device asks your server again.
243
282
 
283
+ **Age and country** (ck-api v2.60.0). Send the player's `ageYears` and `country` with every
284
+ sign-in, and `region` (ISO 3166-2, v2.61.0) where the country is checked by region (the regions
285
+ `platform.territoryPolicies()` lists; Ukraine's today): on the mint's input
286
+ (`MintManagedPlayerTokenInput`, exported as a type) or as the assertion's claims
287
+ (`ManagedPlayerAssertionClaims`). Crowded Kingdoms stores an age bracket and the country on the
288
+ player and applies a minor's defaults itself. A country or region it does not serve, or a
289
+ missing region it needs, is refused `TERRITORY_NOT_SUPPORTED`, and an age under the app's, the
290
+ country's or the platform's youngest `AGE_REQUIREMENT_NOT_MET`, before the player exists; then
291
+ the same player is refused for 24 hours whatever is sent, and a player that exists and is said
292
+ to be under 13 is deleted. A refresh is refused once the stored bracket is wholly below the
293
+ app's youngest age. The age and country are optional while every managed player is 18 or older
294
+ under the Org-Managed Players Addendum (left out, the player counts as an adult) and required
295
+ once the platform admits players under 18 (`AGE_REQUIRED` without an age).
296
+
244
297
  **With a signed assertion.** Register a public key once
245
298
  (`managedPlayers.registerSigningKey({ orgId, kid, algorithm: 'EdDSA', publicJwk, issuer })`);
246
299
  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:
300
+ account id, `iat`, `exp` at most 300 s later, a fresh `jti`, optionally `gamertag`, and
301
+ `ageYears`, `country` and `region` as above: `ManagedPlayerAssertionClaims`) and the device trades it,
302
+ without your server calling Crowded Kingdoms:
249
303
 
250
304
  ```ts
251
305
  const access = await game.portal.exchangeManagedPlayerAssertion({ appId, assertion });
@@ -281,6 +335,75 @@ keep the socket and sign with the new token; when it is null, place again with
281
335
  `serverWithLeastClients`. A Buddy silently drops datagrams for a token it was
282
336
  never told about, so a native refresh without it is a re-placement.
283
337
 
338
+ ## Player safety
339
+
340
+ The teen safety program (18.24.0, ck-api v2.60.0). The platform enforces a player's voice and
341
+ video scopes, contacts and blocks on the realtime servers, and keeps the app's safety log;
342
+ your game shows the player the controls, the recording notice and the indicator. Everything a
343
+ player does here takes the app token, on the game client:
344
+
345
+ ```ts
346
+ // The safety log: show a notice before the player first speaks or appears on camera while
347
+ // voice or video is recorded, and an indicator while it is.
348
+ const recording = await game.apps.recording(appId); // { enabled, voice, video }
349
+ if (recording?.voice || recording?.video) showRecordingNoticeAndIndicator(recording);
350
+
351
+ // Voice and video: who the player sends to and hears from (OFF, CONTACTS, EVERYONE).
352
+ const settings = await game.safety.commSettings(appId);
353
+ await game.safety.setCommSettings(appId, { voiceReceive: 'CONTACTS' });
354
+
355
+ // Contacts (mutual, per app: what CONTACTS admits), blocks and reports.
356
+ await game.safety.requestContact(appId, otherUserId);
357
+ await game.safety.acceptContact(appId, requesterUserId);
358
+ await game.safety.block(appId, otherUserId);
359
+ await game.safety.fileReport({ appId, reportedUserId, reason: 'HARASSMENT', details, occurredAt: new Date() });
360
+ ```
361
+
362
+ - **Scopes.** `commSettings` returns the EFFECTIVE scopes the servers enforce, the player's
363
+ `choices`, and what policy allows (`voiceAllowed`, `videoAllowed`). A player can only lower
364
+ them. An adult may choose anything (`EVERYONE` by default); a player under 18 (`isMinor`) has
365
+ each medium `OFF` until a parent consents, then at most `CONTACTS`.
366
+ `safety.requestParentalConsent(appId, 'VOICE' | 'VIDEO', parentEmail)` asks a parent through
367
+ the platform's consent service (`PARENTAL_CONSENT_UNAVAILABLE`: `parentalConsentUnavailableOf(err)?.reason`
368
+ is `not_configured`, `provider_refused` or `provider_unavailable`).
369
+ - **Contacts.** `contacts`, `contactRequests` (`INCOMING`, then `OUTGOING`), `requestContact`,
370
+ `acceptContact`, `removeContact` (removes, declines or cancels).
371
+ - **Blocks.** `block`, `unblock`, `blocks`: nothing passes between the two players, either way,
372
+ and the blocked player is not told (its contact requests are answered as usual and dropped).
373
+ A hub that carries one player's words or media to another asks first (ck-exec's
374
+ `players.blocked`), because the realtime servers pass what a hub emits.
375
+ - **Reports.** `fileReport` covers both players' recorded sessions from 15 minutes before
376
+ `occurredAt`, and the platform preserves them for the app's moderators. `SOCIAL_LIMIT_REACHED`
377
+ (`socialLimitReachedOf`) refuses past 100 waiting requests, 1,000 contacts or 1,000 blocks.
378
+ - Every change reaches the player's live sessions within a second.
379
+
380
+ **Moderators** hold `moderate_safety` on the app (an organization role, or the org's admins)
381
+ and use their identity session: `client.moderation.reports(appId, { status })` (open
382
+ `CHILD_SAFETY` reports first), `resolveReport(appId, reportId, outcome)` and
383
+ `escalateReport(appId, reportId, ncmecReportId)`. A report's `sessions` are the recorded sessions
384
+ it covers; a moderator reads them with `inputLog.messages` on an app token for the app, while the
385
+ report is open or escalated, and every read is audited. An app that admits players under 18
386
+ needs an **appointed** moderator (ck-api v2.61.0): a member whose own role grants
387
+ `moderate_safety` (an admin alone does not count), or its minors are refused
388
+ `SAFETY_MODERATOR_REQUIRED`. `apps.app(appId).hasSafetyModerator` tells the organization's
389
+ members whether it has one (null for anyone else).
390
+
391
+ **A player's own records.** On an app with the safety log a player reads what it sent itself:
392
+ `inputLog.sessions(appId)` without a filter lists its own sessions, and `inputLog.messages(appId,
393
+ gameTokenId)` reads one. On an app that admits players under 18, `manage_apps` reads nothing
394
+ more, and every read is audited (ck-api v2.61.0).
395
+
396
+ **App admins** (`manage_apps`): `apps.update(appId, { replayLoggingEnabled,
397
+ replayLoggingRecordsVoice, replayLoggingRecordsVideo, minPlayerAge })` (an app that admits
398
+ players under 18 must keep its safety log: `SAFETY_LOG_REQUIRED`), and
399
+ `apps.setRequiredDocuments(appId, documents)` for the app's own documents, which its players
400
+ accept on top of the platform's.
401
+
402
+ **Crowded Kingdoms' own apps** sign Minecraft players in: `portal.minecraftChallenge(appId)`, a
403
+ Mojang session join by the Minecraft client itself, then `portal.signInWithMinecraft({ appId,
404
+ username, serverId, birthDate, country, parentalConfirmation, acceptedDocuments })`. Any other app
405
+ is refused `FORBIDDEN`.
406
+
284
407
  ## Game-loop lifecycle
285
408
 
286
409
  1. Sign in on the identity client with `client.auth` (`login` / `register`), or
@@ -305,12 +428,13 @@ never told about, so a native refresh without it is a re-placement.
305
428
 
306
429
  | Sub-client | What it does |
307
430
  |---|---|
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 }`. |
431
+ | `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. |
432
+ | `client.users` | `me` (with `ageBracket` and `country`), `updateGamertag`, profile reads; `playerProfile` / `playerProfiles` (up to 100) for other players' public `{ userId, gamertag, disambiguation }`. |
433
+ | `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
434
  | `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. |
435
+ | `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
436
  | `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()`). |
437
+ | `client.platform` | Public platform configuration (`config()`) and the territory list (`territoryPolicies()`). |
314
438
  | `client.serverStatus` | `gameClientBootstrap(appId)` — per-app version info, UDP status, spatial limits. |
315
439
  | `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
440
  | `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 +460,8 @@ grouped under `client.admin` and mirrored at the top level):
336
460
  |---|---|
337
461
  | `client.organizations` | Orgs, members, RBAC roles, org API tokens (with `scopes` and `appIds` for org-managed players). |
338
462
  | `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. |
463
+ | `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`). |
464
+ | `client.moderation` | An app's safety reports for its moderators (`moderate_safety`): `reports`, `resolveReport`, `escalateReport`. See [Player safety](#player-safety). |
340
465
  | `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
466
  | `client.billing` | Org wallet + per-app spend budgets. |
342
467
  | `client.payments` | Payment checkouts (wallet top-ups, plan purchases). |
@@ -385,7 +510,7 @@ query AppForRouting($appId: BigInt!) {
385
510
  `CrowdyClient` with `httpUrl: gameApiUrl` (and the matching `wsUrl`) holding
386
511
  that app's app-scoped token, then drive gameplay through that client. Apps
387
512
  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).
513
+ configured. See [Loading an app's Game API](https://docs.dev.crowdedkingdoms.com/crowdyjs/shared-environment-routing).
389
514
 
390
515
  ## Realtime notifications
391
516
 
@@ -821,7 +946,7 @@ reach your bundle. Reads are synchronous snapshots and writes happen on
821
946
  WebSocket events (not `requestAnimationFrame`), so render loops read freely
822
947
  and a backgrounded tab keeps ingesting updates; pass `workerTicker()` to also
823
948
  keep timer-driven sends at full rate while hidden. See the
824
- [World Stores guide](https://docs.crowdedkingdoms.com/crowdyjs/stores).
949
+ [World Stores guide](https://docs.dev.crowdedkingdoms.com/crowdyjs/stores).
825
950
 
826
951
  ## Game Kit
827
952
 
@@ -899,7 +1024,7 @@ The protocol is held to ck-exec's golden record of the starters
899
1024
  (`test/unit/fixtures/kit-protocol.json`): every module call and topic in it is replayed in
900
1025
  `test/unit/game-kit.test.mjs`. The blueprints, `kit.deploy`, the engines and the model-backed
901
1026
  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
1027
+ [Game Kit docs](https://docs.dev.crowdedkingdoms.com/game-kit/intro) and
903
1028
  [MIGRATION.md](MIGRATION.md).
904
1029
 
905
1030
  ## ck-exec
@@ -963,7 +1088,7 @@ Integers above 2^53 decode as `number` and lose precision unless you pass
963
1088
  `{ decode: { useBigInt64: true } }`. A call's whole numbers outside 32 bits (a timestamp in
964
1089
  milliseconds, a player id) go out as 64-bit integers (18.11.0; before, as floats, which a
965
1090
  hub's integer fields refuse). The wire format is in the
966
- [ck-exec docs](https://docs.crowdedkingdoms.com/exec/intro).
1091
+ [ck-exec docs](https://docs.dev.crowdedkingdoms.com/exec/intro).
967
1092
 
968
1093
  ### A mod's CLIENT half
969
1094
 
@@ -1034,7 +1159,7 @@ counts what was dropped); `invoke` sends at most 256 KiB each way and is refused
1034
1159
  module is not running. `NOT_FOUND` holds a CLIENT half back 15 s and `RATE_LIMITED` 60 s. The
1035
1160
  grid's owner is asked about their own CLIENT halves like anyone; answer yes in `confirm` when
1036
1161
  `prompt.authorId` is the player. See
1037
- [CLIENT halves](https://docs.crowdedkingdoms.com/exec/client-halves).
1162
+ [CLIENT halves](https://docs.dev.crowdedkingdoms.com/exec/client-halves).
1038
1163
 
1039
1164
  ## Hosting your game
1040
1165
 
@@ -1143,8 +1268,8 @@ CLIENT project needs ck-api `v2.25.1` or later. A CLIENT crate still on the lega
1143
1268
  `mountCrowdyStudio` and the controller take `mods: client.exec`. Crowdy Studio runs nothing
1144
1269
  on legacy player compute since 18.0.0.
1145
1270
 
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).
1271
+ See [CLIENT halves](https://docs.dev.crowdedkingdoms.com/exec/client-halves), [mods](https://docs.dev.crowdedkingdoms.com/exec/mods)
1272
+ and [Embed Crowdy Studio in your game](https://docs.dev.crowdedkingdoms.com/crowdyjs/crowdy-studio-embed).
1148
1273
 
1149
1274
  ### The Studio agent (DeepSeek Harness in the browser)
1150
1275
 
@@ -1276,6 +1401,16 @@ before entering the world. For org-managed players: `assertionRejectedOf(err)`
1276
1401
  (`ASSERTION_REJECTED`, with the failed check as `reason`) and `managedPlayerNotAllowedOf(err)`
1277
1402
  (`MANAGED_PLAYER_NOT_ALLOWED`: no wallet, or mods the organization has not switched on).
1278
1403
 
1404
+ The player gate and player safety (18.24.0): `legalAcceptanceRequiredOf(err)`
1405
+ (`LEGAL_ACCEPTANCE_REQUIRED`, with the `missingDocuments`), `ageRequiredOf(err)` (`AGE_REQUIRED`),
1406
+ `ageRequirementNotMetOf(err)` (`AGE_REQUIREMENT_NOT_MET`; a boolean on purpose, since no refusal
1407
+ names an age), `territoryNotSupportedOf(err)` (`TERRITORY_NOT_SUPPORTED`, with `country`),
1408
+ `safetyLogRequiredOf(err)` (`SAFETY_LOG_REQUIRED`), `safetyModeratorRequiredOf(err)`
1409
+ (`SAFETY_MODERATOR_REQUIRED`, 18.25.0), `parentalConsentUnavailableOf(err)`
1410
+ (`PARENTAL_CONSENT_UNAVAILABLE`, with `reason` since 18.25.0), `socialLimitReachedOf(err)` (`SOCIAL_LIMIT_REACHED`), and for
1411
+ Minecraft sign-in `minecraftVerificationFailedOf(err)` (with `reason`) and
1412
+ `minecraftVerificationUnavailableOf(err)` (retry shortly). Each has its `*_CODE` constant.
1413
+
1279
1414
  ## Idempotent retries
1280
1415
 
1281
1416
  Destructive game-client mutations accept an optional **idempotency key**. Pass
@@ -1361,6 +1496,24 @@ leaves the org behind and archives the app, so it runs only when asked to.
1361
1496
  starter hubs with `kit.topology`, builds and deploys them, and two players play them (on dev and
1362
1497
  test it also needs `CROWDY_PROVISIONING_TOKEN`, which their staff-only sign-up asks for).
1363
1498
 
1499
+ `test/e2e/teen-safety.test.mjs` runs the teen safety calls (18.24.0, 18.25.0). With
1500
+ `CROWDY_SAFETY_APP_ID` (an app whose default tier admits any player) and
1501
+ `CROWDY_PROVISIONING_TOKEN` on dev and test, two new players sign up with a birth date and a
1502
+ country, read `me`, change their voice and video settings, ask, accept and remove a contact,
1503
+ block and unblock, and delete their accounts; a sign-up declaring a blocked country is refused
1504
+ before any account exists. That test registers two accounts, and a tier's sign-ups are limited
1505
+ and shared, so run it deliberately (`--test-name-pattern` selects the others). With
1506
+ `CROWDY_OWNER_EMAIL` / `_PASSWORD` (an admin of that app's org) one player also reports the
1507
+ other and the admin lists and resolves the report; without them no report is filed. With those
1508
+ and `CROWDY_PLAYER_EMAIL` / `_PASSWORD` (an existing player outside that org), existing accounts
1509
+ read `hasSafetyModerator`, the player's own input-log sessions and the territory regions, with no
1510
+ sign-up. With `CROWDY_ORG_TOKEN` (`players:mint` and `players:manage`) and
1511
+ `CROWDY_MANAGED_APP_ID`, an organization's server signs a managed player in with `ageYears` and
1512
+ `country`, a blocked country, a blocked region, a missing region and an age under 13 are
1513
+ refused, and the players are deleted. `CROWDY_E2E_UNDER13_SIGNUP=1` also signs up under 13; since
1514
+ ck-api v2.61.0 that blocks every sign-up from the machine's address and user agent for 24 hours,
1515
+ so do not set it on a shared builder.
1516
+
1364
1517
  ## Maintainers: schema artifacts and fixtures
1365
1518
 
1366
1519
  CrowdyJS is a standalone public package: a clean clone builds with
@@ -1372,7 +1525,7 @@ no other repositories and no network access required:
1372
1525
  `src/generated/graphql-schema.ts`, the generated schema types.
1373
1526
 
1374
1527
  Schema refresh is explicit, from the published
1375
- [SDL](https://docs.crowdedkingdoms.com/schema/game-api.graphql):
1528
+ [SDL](https://docs.dev.crowdedkingdoms.com/schema/game-api.graphql):
1376
1529
 
1377
1530
  ```bash
1378
1531
  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,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zD,iEAAiE;IACjE,QAAQ,CAAC,WAAW,EAAE,cAAc,CAAC;IACrC,+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';