@crowdedkingdoms/crowdyjs 18.23.1-test.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.
- package/MIGRATION.md +62 -0
- package/README.md +135 -14
- package/dist/crowdy-client.d.ts +10 -1
- package/dist/crowdy-client.d.ts.map +1 -1
- package/dist/crowdy-client.js +5 -0
- package/dist/default-origin.d.ts +6 -6
- package/dist/default-origin.d.ts.map +1 -1
- package/dist/default-origin.js +6 -6
- package/dist/domains/admin.d.ts +4 -0
- package/dist/domains/admin.d.ts.map +1 -1
- package/dist/domains/admin.js +1 -0
- package/dist/domains/apps.d.ts +43 -3
- package/dist/domains/apps.d.ts.map +1 -1
- package/dist/domains/apps.js +46 -3
- package/dist/domains/auth.d.ts +140 -16
- package/dist/domains/auth.d.ts.map +1 -1
- package/dist/domains/auth.js +153 -16
- package/dist/domains/inputLog.d.ts +4 -1
- package/dist/domains/inputLog.d.ts.map +1 -1
- package/dist/domains/inputLog.js +4 -1
- package/dist/domains/managedPlayers.d.ts +56 -3
- package/dist/domains/managedPlayers.d.ts.map +1 -1
- package/dist/domains/managedPlayers.js +16 -3
- package/dist/domains/moderation.d.ts +53 -0
- package/dist/domains/moderation.d.ts.map +1 -0
- package/dist/domains/moderation.js +68 -0
- package/dist/domains/platform.d.ts +13 -0
- package/dist/domains/platform.d.ts.map +1 -1
- package/dist/domains/platform.js +14 -0
- package/dist/domains/portal.d.ts +86 -8
- package/dist/domains/portal.d.ts.map +1 -1
- package/dist/domains/portal.js +78 -8
- package/dist/domains/safety.d.ts +163 -0
- package/dist/domains/safety.d.ts.map +1 -0
- package/dist/domains/safety.js +167 -0
- package/dist/domains/users.d.ts +9 -1
- package/dist/domains/users.d.ts.map +1 -1
- package/dist/domains/users.js +9 -1
- package/dist/errors.d.ts +135 -0
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +163 -0
- package/dist/generated/graphql-schema.d.ts +522 -14
- package/dist/generated/graphql-schema.d.ts.map +1 -1
- package/dist/generated/graphql-schema.js +64 -0
- package/dist/generated/graphql.d.ts +375 -0
- package/dist/generated/graphql.d.ts.map +1 -1
- package/dist/generated/graphql.js +24 -3
- package/dist/index.d.ts +12 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -4
- package/dist/live-coding/assets/browser-authoring-index.json +1 -1
- package/dist/live-coding/assets/manifest.json +1 -1
- package/dist/live-coding/browser-authoring-index.generated.d.ts.map +1 -1
- package/dist/live-coding/browser-authoring-index.generated.js +265 -6
- 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
|
@@ -34,6 +34,8 @@ so it needs that Game API or newer; promote the Game API before the SDK on each
|
|
|
34
34
|
|
|
35
35
|
| CrowdyJS | Needs the Game API (ck-api) |
|
|
36
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`) |
|
|
37
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) |
|
|
38
40
|
| 18.10.0 | the release after v2.43.1 (channel and team bans); the access-ended close needs ck-exec 0.16 |
|
|
39
41
|
| 18.9.0 | the release after v2.40.2 (`InputLogSession.missingRecords`) |
|
|
@@ -118,15 +120,33 @@ the player, from a phishing page.
|
|
|
118
120
|
**Every player stores the terms and an age attestation before playing** (ck-api
|
|
119
121
|
v2.35.0, 2026-10-07). Until they do, `portal.mintAppToken`,
|
|
120
122
|
`portal.createAuthorizationCode` and `portal.refresh` answer
|
|
121
|
-
`LEGAL_ACCEPTANCE_REQUIRED` (`isLegalAcceptanceRequiredError
|
|
122
|
-
|
|
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
|
|
123
126
|
back through `portal.signIn` when a refresh is refused that way. On the other rows,
|
|
124
|
-
show your own
|
|
125
|
-
`client.auth.
|
|
126
|
-
|
|
127
|
-
|
|
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.
|
|
128
132
|
See [MIGRATION.md](MIGRATION.md#1840-the-terms-and-age-gate).
|
|
129
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
|
+
|
|
130
150
|
Crowded Kingdoms no longer hosts games (retired 2026-10-29), so a customer's game
|
|
131
151
|
always runs on its own domain and takes the first row. See
|
|
132
152
|
[Hosting your game](#hosting-your-game).
|
|
@@ -225,7 +245,15 @@ const res = await fetch('https://ck.dev.crowdedkingdoms.com/graphql', {
|
|
|
225
245
|
body: JSON.stringify({
|
|
226
246
|
query: `mutation($i: MintManagedPlayerTokenInput!) { mintManagedPlayerToken(input: $i) {
|
|
227
247
|
token gameTokenId appId expiresAt gameApiUrl gameApiWsUrl discoveryUrl launchUrl } }`,
|
|
228
|
-
variables: {
|
|
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
|
+
},
|
|
229
257
|
}),
|
|
230
258
|
});
|
|
231
259
|
const { data } = await res.json();
|
|
@@ -245,11 +273,22 @@ and the same id is always the same player. The token refreshes (`refreshGameplay
|
|
|
245
273
|
the sign-in's lifetime ends (`sessionTtlSeconds`, at most the organization's setting); then the
|
|
246
274
|
device asks your server again.
|
|
247
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
|
+
|
|
248
286
|
**With a signed assertion.** Register a public key once
|
|
249
287
|
(`managedPlayers.registerSigningKey({ orgId, kid, algorithm: 'EdDSA', publicJwk, issuer })`);
|
|
250
288
|
your sign-in service signs a short JWS per player (`iss`, `aud: 'ck:app:<appId>'`, `sub` your
|
|
251
|
-
account id, `iat`, `exp` at most 300 s later, a fresh `jti`, optionally `gamertag
|
|
252
|
-
|
|
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:
|
|
253
292
|
|
|
254
293
|
```ts
|
|
255
294
|
const access = await game.portal.exchangeManagedPlayerAssertion({ appId, assertion });
|
|
@@ -285,6 +324,66 @@ keep the socket and sign with the new token; when it is null, place again with
|
|
|
285
324
|
`serverWithLeastClients`. A Buddy silently drops datagrams for a token it was
|
|
286
325
|
never told about, so a native refresh without it is a re-placement.
|
|
287
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
|
+
|
|
288
387
|
## Game-loop lifecycle
|
|
289
388
|
|
|
290
389
|
1. Sign in on the identity client with `client.auth` (`login` / `register`), or
|
|
@@ -309,12 +408,13 @@ never told about, so a native refresh without it is a re-placement.
|
|
|
309
408
|
|
|
310
409
|
| Sub-client | What it does |
|
|
311
410
|
|---|---|
|
|
312
|
-
| `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. |
|
|
313
|
-
| `client.users` | `me
|
|
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). |
|
|
314
414
|
| `client.session` | Token store, `restore()`, `getToken()`, manual `setToken()`. |
|
|
315
|
-
| `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`). |
|
|
316
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). |
|
|
317
|
-
| `client.platform` | Public platform configuration (`config()`). |
|
|
417
|
+
| `client.platform` | Public platform configuration (`config()`) and the territory list (`territoryPolicies()`). |
|
|
318
418
|
| `client.serverStatus` | `gameClientBootstrap(appId)` — per-app version info, UDP status, spatial limits. |
|
|
319
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. |
|
|
320
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. |
|
|
@@ -340,7 +440,8 @@ grouped under `client.admin` and mirrored at the top level):
|
|
|
340
440
|
|---|---|
|
|
341
441
|
| `client.organizations` | Orgs, members, RBAC roles, org API tokens (with `scopes` and `appIds` for org-managed players). |
|
|
342
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). |
|
|
343
|
-
| `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). |
|
|
344
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`. |
|
|
345
446
|
| `client.billing` | Org wallet + per-app spend budgets. |
|
|
346
447
|
| `client.payments` | Payment checkouts (wallet top-ups, plan purchases). |
|
|
@@ -1280,6 +1381,15 @@ before entering the world. For org-managed players: `assertionRejectedOf(err)`
|
|
|
1280
1381
|
(`ASSERTION_REJECTED`, with the failed check as `reason`) and `managedPlayerNotAllowedOf(err)`
|
|
1281
1382
|
(`MANAGED_PLAYER_NOT_ALLOWED`: no wallet, or mods the organization has not switched on).
|
|
1282
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
|
+
|
|
1283
1393
|
## Idempotent retries
|
|
1284
1394
|
|
|
1285
1395
|
Destructive game-client mutations accept an optional **idempotency key**. Pass
|
|
@@ -1365,6 +1475,17 @@ leaves the org behind and archives the app, so it runs only when asked to.
|
|
|
1365
1475
|
starter hubs with `kit.topology`, builds and deploys them, and two players play them (on dev and
|
|
1366
1476
|
test it also needs `CROWDY_PROVISIONING_TOKEN`, which their staff-only sign-up asks for).
|
|
1367
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
|
+
|
|
1368
1489
|
## Maintainers: schema artifacts and fixtures
|
|
1369
1490
|
|
|
1370
1491
|
CrowdyJS is a standalone public package: a clean clone builds with
|
package/dist/crowdy-client.d.ts
CHANGED
|
@@ -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,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEpE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;A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AAE,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"}
|
package/dist/crowdy-client.js
CHANGED
|
@@ -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). */
|
package/dist/default-origin.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* GENERATED — do not edit. The operator tooling's
|
|
3
|
-
* `sync-client-origins.mjs --write --tier
|
|
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 '
|
|
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 = "
|
|
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.
|
|
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.
|
|
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.
|
|
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,
|
|
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"}
|
package/dist/default-origin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* GENERATED — do not edit. The operator tooling's
|
|
3
|
-
* `sync-client-origins.mjs --write --tier
|
|
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 '
|
|
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 = '
|
|
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.
|
|
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.
|
|
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.
|
|
22
|
+
export const CROWDY_DEFAULT_HOST = 'ck.dev.crowdedkingdoms.com';
|
package/dist/domains/admin.d.ts
CHANGED
|
@@ -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,OA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,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB,iDAAiD;IACjD,QAAQ,CAAC,SAAS,EAAE,YAAY,CAAC;IACjC,0CAA0C;IAC1C,QAAQ,CAAC,OAAO,EAAE,UAAU,CAAC;IAC7B,0DAA0D;IAC1D,QAAQ,CAAC,QAAQ,EAAE,WAAW,CAAC;IAC/B,yCAAyC;IACzC,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC;IAC3B,6CAA6C;IAC7C,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC;IACzB,mEAAmE;IACnE,QAAQ,CAAC,iBAAiB,EAAE,oBAAoB,CAAC;IACjD,0DAA0D;IAC1D,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC;IAC5B,uEAAuE;IACvE,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAC;gBAEvB,IAAI,EAAE;QAChB,aAAa,EAAE,gBAAgB,CAAC;QAChC,cAAc,EAAE,iBAAiB,CAAC;QAClC,IAAI,EAAE,OAAO,CAAC;QACd,SAAS,EAAE,YAAY,CAAC;QACxB,OAAO,EAAE,UAAU,CAAC;QACpB,QAAQ,EAAE,WAAW,CAAC;QACtB,MAAM,EAAE,SAAS,CAAC;QAClB,KAAK,EAAE,QAAQ,CAAC;QAChB,iBAAiB,EAAE,oBAAoB,CAAC;QACxC,KAAK,EAAE,WAAW,CAAC;QACnB,UAAU,EAAE,aAAa,CAAC;KAC3B;CAaF"}
|
package/dist/domains/admin.js
CHANGED
package/dist/domains/apps.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { GraphQLClient } from '../client.js';
|
|
2
|
-
import { type AppQuery, type AppBySlugQuery, type MyAppsQuery, type AppsForOrgQuery, type MarketplaceAppsQuery, type MarketplaceAppsQueryVariables, type AppsConnectionQuery, type AppsConnectionQueryVariables, type CreateAppMutation, type UpdateAppMutation, type ArchiveAppMutation, type AppCodeAdmissionModeQuery, type AppCodeAdmissionsQuery, type SetAppCodeAdmissionModeMutation, type AdmitAppCodeMutation, type RevokeAppCodeAdmissionMutation, type PlaceableDatacentersQuery, type CreateAppInput, type UpdateAppInput, type AdmitAppCodeInput, type CodeAdmissionMode } from '../generated/graphql.js';
|
|
2
|
+
import { type AppRecordingQuery, type AppRequiredDocumentInput, type SetAppRequiredDocumentsMutation, type AppQuery, type AppBySlugQuery, type MyAppsQuery, type AppsForOrgQuery, type MarketplaceAppsQuery, type MarketplaceAppsQueryVariables, type AppsConnectionQuery, type AppsConnectionQueryVariables, type CreateAppMutation, type UpdateAppMutation, type ArchiveAppMutation, type AppCodeAdmissionModeQuery, type AppCodeAdmissionsQuery, type SetAppCodeAdmissionModeMutation, type AdmitAppCodeMutation, type RevokeAppCodeAdmissionMutation, type PlaceableDatacentersQuery, type CreateAppInput, type UpdateAppInput, type AdmitAppCodeInput, type CodeAdmissionMode } from '../generated/graphql.js';
|
|
3
3
|
/**
|
|
4
4
|
* The minimal routing tuple the SDK derives from an `App` row: just enough to
|
|
5
5
|
* decide which game-api endpoint should serve a given app. Returned by
|
|
@@ -27,6 +27,12 @@ export interface AppRoute {
|
|
|
27
27
|
*/
|
|
28
28
|
gameApiUrl: string | null;
|
|
29
29
|
}
|
|
30
|
+
/**
|
|
31
|
+
* What an app's safety log records right now ({@link AppsAPI.recording}): `enabled` (the log
|
|
32
|
+
* is on, so text chat and direct messages are recorded), `voice` (voice and channel audio)
|
|
33
|
+
* and `video` (webcam video).
|
|
34
|
+
*/
|
|
35
|
+
export type AppRecordingState = NonNullable<AppRecordingQuery['app']>['recording'];
|
|
30
36
|
/**
|
|
31
37
|
* App discovery & game-api routing — exposed as `client.apps`.
|
|
32
38
|
*
|
|
@@ -100,6 +106,29 @@ export declare class AppsAPI {
|
|
|
100
106
|
* @throws {CrowdyGraphQLError} `UNAUTHENTICATED` if the caller is not signed in.
|
|
101
107
|
*/
|
|
102
108
|
app(appId: string): Promise<AppQuery['app']>;
|
|
109
|
+
/**
|
|
110
|
+
* What the app's safety log (replay logging) records right now, for the notice and the
|
|
111
|
+
* recording indicator a game shows its players: `enabled` (the log is on: text chat and
|
|
112
|
+
* direct messages are recorded), `voice` (voice and channel audio) and `video` (webcam
|
|
113
|
+
* video). Readable with the app's own app token, so a game reads it on its gameplay client.
|
|
114
|
+
* ck-api v2.60.0.
|
|
115
|
+
*
|
|
116
|
+
* While `voice` or `video` is true, show the player a notice before they first speak or
|
|
117
|
+
* appear on camera, and an indicator while it stays true. Read it when the player enters
|
|
118
|
+
* the app; an admin's change applies within about 15 seconds. Null for an unknown app.
|
|
119
|
+
*/
|
|
120
|
+
recording(appId: string): Promise<AppRecordingState | null>;
|
|
121
|
+
/**
|
|
122
|
+
* Set the documents the app's players accept before playing, replacing the list:
|
|
123
|
+
* documents left out stop being required, and a new `version` of one asks every player of
|
|
124
|
+
* the app again at their next mint or refresh (`LEGAL_ACCEPTANCE_REQUIRED` until they accept
|
|
125
|
+
* it). At most 10; `documentId` is 1-64 lower-case letters, digits and hyphens and may not
|
|
126
|
+
* reuse a platform document's id; `url` is https. An empty list requires none. Players
|
|
127
|
+
* read the list with `auth.appRequiredDocuments(appId)` and accept it with
|
|
128
|
+
* `auth.recordPlayerConsents({ acceptLegal: true, appId })`. Requires `manage_apps` on the
|
|
129
|
+
* app. ck-api v2.60.0.
|
|
130
|
+
*/
|
|
131
|
+
setRequiredDocuments(appId: string, documents: AppRequiredDocumentInput[]): Promise<SetAppRequiredDocumentsMutation['setAppRequiredDocuments']>;
|
|
103
132
|
/**
|
|
104
133
|
* Look up a single app by its org slug + app slug (the marketplace URL path).
|
|
105
134
|
* **Public**: no authentication required, and not filtered by visibility or
|
|
@@ -222,13 +251,24 @@ export declare class AppsAPI {
|
|
|
222
251
|
* every client input they accept for the app, readable with `client.inputLog` and
|
|
223
252
|
* billed as stored input logs (crowdedkingdoms.com/pricing). Apps start with it off
|
|
224
253
|
* ("No replication logging"), and recording stops shortly after it is turned off.
|
|
254
|
+
* It is the app's safety log: an app that admits players under 18 must keep it on, so
|
|
255
|
+
* turning it off there is refused `SAFETY_LOG_REQUIRED` (ck-api v2.60.0).
|
|
256
|
+
*
|
|
257
|
+
* `replayLoggingRecordsVoice` / `replayLoggingRecordsVideo` (both true by default) keep
|
|
258
|
+
* voice and channel audio, or webcam video, in or out of the log while it is on;
|
|
259
|
+
* {@link recording} is what players are told. `minPlayerAge` (13 to 18) raises the
|
|
260
|
+
* youngest age the app admits above the platform's, never below it; `null` returns
|
|
261
|
+
* it to the platform's, and `effectiveMinPlayerAge` reads the result. Younger players
|
|
262
|
+
* are refused `AGE_REQUIREMENT_NOT_MET` at their next mint or refresh.
|
|
225
263
|
*
|
|
226
264
|
* @param appId - Numeric app id.
|
|
227
265
|
* @param input - {@link UpdateAppInput} fields to change.
|
|
228
266
|
* @returns The updated {@link App}.
|
|
229
267
|
* @throws {CrowdyGraphQLError} `FORBIDDEN`/`SCOPE_MISSING` without
|
|
230
|
-
* `manage_apps`,
|
|
231
|
-
* an org whose wallet has no spendable balance (a billing-exempt org needs none)
|
|
268
|
+
* `manage_apps`, `INPUT_LOG_FUNDS_NEEDED` when turning replay logging on for
|
|
269
|
+
* an org whose wallet has no spendable balance (a billing-exempt org needs none),
|
|
270
|
+
* or `SAFETY_LOG_REQUIRED` when turning it off in an app that admits players
|
|
271
|
+
* under 18.
|
|
232
272
|
*/
|
|
233
273
|
update(appId: string, input: UpdateAppInput): Promise<UpdateAppMutation['updateApp']>;
|
|
234
274
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apps.d.ts","sourceRoot":"","sources":["../../src/domains/apps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,
|
|
1
|
+
{"version":3,"file":"apps.d.ts","sourceRoot":"","sources":["../../src/domains/apps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAkBL,KAAK,iBAAiB,EACtB,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