@crowdedkingdoms/crowdyjs 18.24.0-dev.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.
package/MIGRATION.md CHANGED
@@ -120,6 +120,35 @@ 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
+
123
152
  ## 18.24.0: the teen safety program
124
153
 
125
154
  No breaking change: every existing call takes what it took. **What it needs.** ck-api `v2.60.0`
package/README.md CHANGED
@@ -34,6 +34,7 @@ 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.25.0 | v2.61.0 or later (app reads and `apps.update` select `hasSafetyModerator`; `platform.territoryPolicies` selects `regionCode`) |
37
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 |
38
39
  | 18.22.0 | v2.58.0 or later (`ExecInstance.orphaned`) |
39
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) |
@@ -136,16 +137,21 @@ refresh: a country Crowded Kingdoms does not serve is refused `TERRITORY_NOT_SUP
136
137
  (`territoryNotSupportedOf(err)?.country`), an account with no age `AGE_REQUIRED`
137
138
  (`ageRequiredOf`), an age the app or the country does not admit `AGE_REQUIREMENT_NOT_MET`
138
139
  (`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.
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.
149
155
 
150
156
  Crowded Kingdoms no longer hosts games (retired 2026-10-29), so a customer's game
151
157
  always runs on its own domain and takes the first row. See
@@ -252,6 +258,7 @@ const res = await fetch('https://ck.dev.crowdedkingdoms.com/graphql', {
252
258
  gamertag: account.displayName,
253
259
  ageYears: account.ageYears, // whole years, as your organization knows them
254
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
255
262
  },
256
263
  },
257
264
  }),
@@ -274,20 +281,24 @@ the sign-in's lifetime ends (`sessionTtlSeconds`, at most the organization's set
274
281
  device asks your server again.
275
282
 
276
283
  **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).
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).
285
296
 
286
297
  **With a signed assertion.** Register a public key once
287
298
  (`managedPlayers.registerSigningKey({ orgId, kid, algorithm: 'EdDSA', publicJwk, issuer })`);
288
299
  your sign-in service signs a short JWS per player (`iss`, `aud: 'ck:app:<appId>'`, `sub` your
289
300
  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,
301
+ `ageYears`, `country` and `region` as above: `ManagedPlayerAssertionClaims`) and the device trades it,
291
302
  without your server calling Crowded Kingdoms:
292
303
 
293
304
  ```ts
@@ -353,8 +364,8 @@ await game.safety.fileReport({ appId, reportedUserId, reason: 'HARASSMENT', deta
353
364
  them. An adult may choose anything (`EVERYONE` by default); a player under 18 (`isMinor`) has
354
365
  each medium `OFF` until a parent consents, then at most `CONTACTS`.
355
366
  `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).
367
+ the platform's consent service (`PARENTAL_CONSENT_UNAVAILABLE`: `parentalConsentUnavailableOf(err)?.reason`
368
+ is `not_configured`, `provider_refused` or `provider_unavailable`).
358
369
  - **Contacts.** `contacts`, `contactRequests` (`INCOMING`, then `OUTGOING`), `requestContact`,
359
370
  `acceptContact`, `removeContact` (removes, declines or cancels).
360
371
  - **Blocks.** `block`, `unblock`, `blocks`: nothing passes between the two players, either way,
@@ -371,7 +382,16 @@ and use their identity session: `client.moderation.reports(appId, { status })` (
371
382
  `CHILD_SAFETY` reports first), `resolveReport(appId, reportId, outcome)` and
372
383
  `escalateReport(appId, reportId, ncmecReportId)`. A report's `sessions` are the recorded sessions
373
384
  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.
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).
375
395
 
376
396
  **App admins** (`manage_apps`): `apps.update(appId, { replayLoggingEnabled,
377
397
  replayLoggingRecordsVoice, replayLoggingRecordsVideo, minPlayerAge })` (an app that admits
@@ -1385,8 +1405,9 @@ The player gate and player safety (18.24.0): `legalAcceptanceRequiredOf(err)`
1385
1405
  (`LEGAL_ACCEPTANCE_REQUIRED`, with the `missingDocuments`), `ageRequiredOf(err)` (`AGE_REQUIRED`),
1386
1406
  `ageRequirementNotMetOf(err)` (`AGE_REQUIREMENT_NOT_MET`; a boolean on purpose, since no refusal
1387
1407
  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
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
1390
1411
  Minecraft sign-in `minecraftVerificationFailedOf(err)` (with `reason`) and
1391
1412
  `minecraftVerificationUnavailableOf(err)` (retry shortly). Each has its `*_CODE` constant.
1392
1413
 
@@ -1475,16 +1496,23 @@ leaves the org behind and archives the app, so it runs only when asked to.
1475
1496
  starter hubs with `kit.topology`, builds and deploys them, and two players play them (on dev and
1476
1497
  test it also needs `CROWDY_PROVISIONING_TOKEN`, which their staff-only sign-up asks for).
1477
1498
 
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.
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.
1488
1516
 
1489
1517
  ## Maintainers: schema artifacts and fixtures
1490
1518
 
@@ -261,6 +261,12 @@ export declare class AppsAPI {
261
261
  * it to the platform's, and `effectiveMinPlayerAge` reads the result. Younger players
262
262
  * are refused `AGE_REQUIREMENT_NOT_MET` at their next mint or refresh.
263
263
  *
264
+ * App reads and this update also return `hasSafetyModerator` (ck-api v2.61.0): whether the
265
+ * organization has appointed a safety moderator, a member whose own role grants
266
+ * `moderate_safety` (an admin alone does not count). An app that admits players under 18
267
+ * needs one, or its minors are refused `SAFETY_MODERATOR_REQUIRED`. Null for a caller who is
268
+ * not a member of the app's organization.
269
+ *
264
270
  * @param appId - Numeric app id.
265
271
  * @param input - {@link UpdateAppInput} fields to change.
266
272
  * @returns The updated {@link App}.
@@ -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,EAkBL,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,+BAA+B,EACpC,KAAK,QAAQ,EAEb,KAAK,cAAc,EAEnB,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,6BAA6B,EAClC,KAAK,mBAAmB,EACxB,KAAK,4BAA4B,EACjC,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,sBAAsB,EAC3B,KAAK,+BAA+B,EACpC,KAAK,oBAAoB,EACzB,KAAK,8BAA8B,EACnC,KAAK,yBAAyB,EAE9B,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACvB,MAAM,yBAAyB,CAAC;AAEjC;;;;GAIG;AACH,MAAM,WAAW,QAAQ;IACvB,4DAA4D;IAC5D,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,SAAS,EAAE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;;;;;;;;;;;;;OAaG;IACG,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC;IAYhD;;;;;;;OAOG;IACG,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC;IAKrE;;;;;;;;;OASG;IACG,WAAW,CACf,IAAI,GAAE;QACJ,MAAM,CAAC,EAAE,6BAA6B,CAAC,QAAQ,CAAC,CAAC;QACjD,KAAK,CAAC,EAAE,6BAA6B,CAAC,OAAO,CAAC,CAAC;QAC/C,MAAM,CAAC,EAAE,6BAA6B,CAAC,QAAQ,CAAC,CAAC;KAC7C,GACL,OAAO,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC;IAKxC;;;;;;;OAOG;IACG,qBAAqB,CACzB,IAAI,GAAE,4BAAiC,GACtC,OAAO,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;IAKjD;;;;;;;;;;;;;;;;;;;;;OAqBG;IACG,oBAAoB,IAAI,OAAO,CACnC,yBAAyB,CAAC,sBAAsB,CAAC,CAClD;IAKD;;;;;;;;;;;;;;OAcG;IACG,MAAM,CACV,KAAK,EAAE,cAAc,GACpB,OAAO,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAC;IAK1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmCG;IACG,MAAM,CACV,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,cAAc,GACpB,OAAO,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAC;IAQ1C;;;;;;;OAOG;IACG,OAAO,CACX,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,kBAAkB,CAAC,YAAY,CAAC,CAAC;CAI7C"}
@@ -302,6 +302,12 @@ export class AppsAPI {
302
302
  * it to the platform's, and `effectiveMinPlayerAge` reads the result. Younger players
303
303
  * are refused `AGE_REQUIREMENT_NOT_MET` at their next mint or refresh.
304
304
  *
305
+ * App reads and this update also return `hasSafetyModerator` (ck-api v2.61.0): whether the
306
+ * organization has appointed a safety moderator, a member whose own role grants
307
+ * `moderate_safety` (an admin alone does not count). An app that admits players under 18
308
+ * needs one, or its minors are refused `SAFETY_MODERATOR_REQUIRED`. Null for a caller who is
309
+ * not a member of the app's organization.
310
+ *
305
311
  * @param appId - Numeric app id.
306
312
  * @param input - {@link UpdateAppInput} fields to change.
307
313
  * @returns The updated {@link App}.
@@ -257,7 +257,9 @@ export declare class AuthAPI {
257
257
  * {@link recordPlayerAge}. A country Crowded Kingdoms does not serve, declared or
258
258
  * detected, is refused `TERRITORY_NOT_SUPPORTED` (`territoryNotSupportedOf`), and an
259
259
  * age the platform does not admit `AGE_REQUIREMENT_NOT_MET`
260
- * (`ageRequirementNotMetOf`); either way no account is made.
260
+ * (`ageRequirementNotMetOf`); either way no account is made. Since ck-api v2.61.0
261
+ * the age refusal names no age, and for 24 hours the same client (address and user
262
+ * agent) is refused it whatever it sends.
261
263
  */
262
264
  register(input: {
263
265
  email: string;
@@ -337,11 +339,14 @@ export declare class AuthAPI {
337
339
  *
338
340
  * Ask on a neutral screen: the date of birth and the country, with no age shown,
339
341
  * and the parental line only for a player under 18. Refused with `CONFLICT` once
340
- * the account has an age, `TERRITORY_NOT_SUPPORTED` for a country Crowded Kingdoms
341
- * does not serve (declared or detected), and `AGE_REQUIREMENT_NOT_MET` under the
342
- * platform's youngest age, in which case the account keeps that answer and asking
343
- * again changes nothing. Whether the player may play a given app is decided at
344
- * the mint. Returns the account's `ageBracket` and `country`.
342
+ * the account has an age, `TERRITORY_NOT_SUPPORTED` where Crowded Kingdoms does not
343
+ * serve (the declared country, or the network's country or region), and
344
+ * `AGE_REQUIREMENT_NOT_MET` under the platform's youngest age. Since ck-api v2.61.0
345
+ * that refusal names no age, the account is deleted and erased as
346
+ * `users.deleteMyAccount` does, and for 24 hours the same client (address and user
347
+ * agent) is refused here and at sign-up whatever it sends: drop the session and do
348
+ * not ask again. Whether the player may play a given app is decided at the mint.
349
+ * Returns the account's `ageBracket` and `country`.
345
350
  */
346
351
  recordPlayerAge(input: PlayerAgeInput): Promise<PlayerAge>;
347
352
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/domains/auth.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAGL,KAAK,aAAa,EACnB,MAAM,yBAAyB,CAAC;AAEjC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AACH,MAAM,WAAW,QAAQ;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED,MAAM,WAAW,YAAY;IAC3B,yEAAyE;IACzE,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,QAAQ,CAAC;CAChB;AAED,MAAM,WAAW,YAAY;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,aAAa,EAAE,OAAO,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED;;;;GAIG;AACH,MAAM,MAAM,UAAU,GAClB,SAAS,GACT,UAAU,GACV,OAAO,GACP,OAAO,GACP,SAAS,GACT,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAElB,sGAAsG;AACtG,MAAM,MAAM,0BAA0B,GAAG,WAAW,GAAG,SAAS,CAAC;AAEjE,yDAAyD;AACzD,MAAM,WAAW,SAAS;IACxB,MAAM,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AAA;KAAE,CAAC;IAOvE;;;;;;;;;;OAUG;IACG,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAO3D;;;;;;;OAOG;IACG,aAAa,CAAC,KAAK,EAAE;QACzB,KAAK,EAAE,MAAM,CAAC;QACd,WAAW,EAAE,MAAM,CAAC;KACrB,GAAG,OAAO,CAAC,OAAO,CAAC;IAOpB;;;;;;;;;;;;;;;;;;OAkBG;IACG,cAAc,CAAC,KAAK,EAAE;QAC1B,eAAe,EAAE,MAAM,CAAC;QACxB,WAAW,EAAE,MAAM,CAAC;KACrB,GAAG,OAAO,CAAC,OAAO,CAAC;IAKpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACG,kBAAkB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAO/D,0EAA0E;IACpE,YAAY,IAAI,OAAO,CAAC,YAAY,EAAE,CAAC;IAK7C,sEAAsE;IAChE,YAAY,CAAC,KAAK,EAAE;QACxB,QAAQ,EAAE,MAAM,CAAC;QACjB,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;KACf,GAAG,OAAO,CAAC,YAAY,CAAC;IAKzB,2EAA2E;IACrE,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAO1D,mEAAmE;IAC7D,MAAM,IAAI,OAAO,CAAC,OAAO,CAAC;IAMhC,oEAAoE;IAC9D,gBAAgB,IAAI,OAAO,CAAC,OAAO,CAAC;IAK1C,oEAAoE;IACpE,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IAIpC,+CAA+C;IAC/C,QAAQ,IAAI,MAAM,GAAG,IAAI;CAG1B"}
@@ -272,7 +272,9 @@ export class AuthAPI {
272
272
  * {@link recordPlayerAge}. A country Crowded Kingdoms does not serve, declared or
273
273
  * detected, is refused `TERRITORY_NOT_SUPPORTED` (`territoryNotSupportedOf`), and an
274
274
  * age the platform does not admit `AGE_REQUIREMENT_NOT_MET`
275
- * (`ageRequirementNotMetOf`); either way no account is made.
275
+ * (`ageRequirementNotMetOf`); either way no account is made. Since ck-api v2.61.0
276
+ * the age refusal names no age, and for 24 hours the same client (address and user
277
+ * agent) is refused it whatever it sends.
276
278
  */
277
279
  async register(input) {
278
280
  const data = await this.graphql.request(RegisterDocument, {
@@ -368,11 +370,14 @@ export class AuthAPI {
368
370
  *
369
371
  * Ask on a neutral screen: the date of birth and the country, with no age shown,
370
372
  * and the parental line only for a player under 18. Refused with `CONFLICT` once
371
- * the account has an age, `TERRITORY_NOT_SUPPORTED` for a country Crowded Kingdoms
372
- * does not serve (declared or detected), and `AGE_REQUIREMENT_NOT_MET` under the
373
- * platform's youngest age, in which case the account keeps that answer and asking
374
- * again changes nothing. Whether the player may play a given app is decided at
375
- * the mint. Returns the account's `ageBracket` and `country`.
373
+ * the account has an age, `TERRITORY_NOT_SUPPORTED` where Crowded Kingdoms does not
374
+ * serve (the declared country, or the network's country or region), and
375
+ * `AGE_REQUIREMENT_NOT_MET` under the platform's youngest age. Since ck-api v2.61.0
376
+ * that refusal names no age, the account is deleted and erased as
377
+ * `users.deleteMyAccount` does, and for 24 hours the same client (address and user
378
+ * agent) is refused here and at sign-up whatever it sends: drop the session and do
379
+ * not ask again. Whether the player may play a given app is decided at the mint.
380
+ * Returns the account's `ageBracket` and `country`.
376
381
  */
377
382
  async recordPlayerAge(input) {
378
383
  const data = await this.graphql.request(RecordPlayerAgeDocument, {
@@ -32,11 +32,15 @@ export interface InputLogPageOptions<Filter> {
32
32
  * or hosted sign-in). An identity session token is refused, and the client follows
33
33
  * the app to its datacenter like any gameplay call.
34
34
  *
35
- * **Who sees what.** A player reads only the sessions and inputs they sent. A holder of
36
- * `manage_apps` on the app reads every session and may filter by `userId`. A moderator
37
- * (`moderate_safety`, ck-api v2.60.0) reads with {@link messages} only the sessions an open or
35
+ * **Who sees what.** Every player reads the sessions and inputs they sent: on an app with
36
+ * the safety log, that is the player's own records (call {@link sessions} without a filter,
37
+ * then {@link messages} for one of them). A moderator (`moderate_safety`: an appointed
38
+ * moderator or the organization's admins, ck-api v2.60.0) reads only the sessions an open or
38
39
  * escalated safety report covers (`client.moderation.reports(appId)`, each report's
39
- * `sessions`), and every read of another player's session is audited.
40
+ * `sessions`; `filter.userId` narrows them). `manage_apps` reads every session and may
41
+ * filter by `userId` only on an app for adults (effective minimum age 18), and never a
42
+ * player under 18's (ck-api v2.61.0). Every read of another player's session is audited, and
43
+ * on an app that admits players under 18 every read is, the player's own included.
40
44
  *
41
45
  * Inputs are kept for the input log's published retention (crowdedkingdoms.com/pricing,
42
46
  * up to about an hour longer) and then deleted, so an old session can still be listed
@@ -1 +1 @@
1
- {"version":3,"file":"inputLog.d.ts","sourceRoot":"","sources":["../../src/domains/inputLog.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD,OAAO,EAGL,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC3B,MAAM,yBAAyB,CAAC;AAEjC,gDAAgD;AAChD,MAAM,MAAM,mBAAmB,GAAG,qBAAqB,CAAC,kBAAkB,CAAC,CAAC;AAC5E,wEAAwE;AACxE,MAAM,MAAM,qBAAqB,GAAG,mBAAmB,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC;AACjF,gDAAgD;AAChD,MAAM,MAAM,mBAAmB,GAAG,qBAAqB,CAAC,kBAAkB,CAAC,CAAC;AAC5E,sEAAsE;AACtE,MAAM,MAAM,qBAAqB,GAAG,mBAAmB,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC;AAEjF,4FAA4F;AAC5F,MAAM,WAAW,mBAAmB,CAAC,MAAM;IACzC,iEAAiE;IACjE,KAAK,CAAC,EAAE,MAAM,CAA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CAAC,MAAM,CAAC,CAAC;AAEjF,4FAA4F;AAC5F,MAAM,WAAW,mBAAmB,CAAC,MAAM;IACzC,iEAAiE;IACjE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uEAAuE;IACvE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,qBAAa,WAAW;IACV,OAAO,CAAC,GAAG;gBAAH,GAAG,EAAE,aAAa;IAEtC;;;;;;;;;;;;;;;;;;;;;OAqBG;IACG,QAAQ,CACZ,KAAK,EAAE,MAAM,EACb,IAAI,GAAE,mBAAmB,CAAC,qBAAqB,CAAM,GACpD,OAAO,CAAC,mBAAmB,CAAC;IAS/B;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACG,QAAQ,CACZ,KAAK,EAAE,MAAM,EACb,WAAW,EAAE,MAAM,EACnB,IAAI,GAAE,mBAAmB,CAAC,qBAAqB,CAAM,GACpD,OAAO,CAAC,mBAAmB,CAAC;CAQhC"}
@@ -8,11 +8,15 @@ import { InputLogMessagesDocument, InputLogSessionsDocument, } from '../generate
8
8
  * or hosted sign-in). An identity session token is refused, and the client follows
9
9
  * the app to its datacenter like any gameplay call.
10
10
  *
11
- * **Who sees what.** A player reads only the sessions and inputs they sent. A holder of
12
- * `manage_apps` on the app reads every session and may filter by `userId`. A moderator
13
- * (`moderate_safety`, ck-api v2.60.0) reads with {@link messages} only the sessions an open or
11
+ * **Who sees what.** Every player reads the sessions and inputs they sent: on an app with
12
+ * the safety log, that is the player's own records (call {@link sessions} without a filter,
13
+ * then {@link messages} for one of them). A moderator (`moderate_safety`: an appointed
14
+ * moderator or the organization's admins, ck-api v2.60.0) reads only the sessions an open or
14
15
  * escalated safety report covers (`client.moderation.reports(appId)`, each report's
15
- * `sessions`), and every read of another player's session is audited.
16
+ * `sessions`; `filter.userId` narrows them). `manage_apps` reads every session and may
17
+ * filter by `userId` only on an app for adults (effective minimum age 18), and never a
18
+ * player under 18's (ck-api v2.61.0). Every read of another player's session is audited, and
19
+ * on an app that admits players under 18 every read is, the player's own included.
16
20
  *
17
21
  * Inputs are kept for the input log's published retention (crowdedkingdoms.com/pricing,
18
22
  * up to about an hour longer) and then deleted, so an old session can still be listed
@@ -43,6 +43,13 @@ export interface ManagedPlayerAssertionClaims {
43
43
  * after.
44
44
  */
45
45
  country?: string;
46
+ /**
47
+ * The region the player lives in, ISO 3166-2 within `country` (such as `UA-30`; ck-api
48
+ * v2.61.0). Required in a country Crowded Kingdoms checks by region (the regions
49
+ * `platform.territoryPolicies()` lists, Ukraine's today): without it, or in a blocked region,
50
+ * the player is refused `TERRITORY_NOT_SUPPORTED`. Checked at each sign-in, not stored.
51
+ */
52
+ region?: string;
46
53
  }
47
54
  /**
48
55
  * Org-managed players: an organization's own players, signed in by the organization
@@ -64,14 +71,17 @@ export interface ManagedPlayerAssertionClaims {
64
71
  * `client.portal.exchangeManagedPlayerAssertion`.
65
72
  *
66
73
  * **Age and country (ck-api v2.60.0).** Either way the organization says how old the player
67
- * is and where it lives: `ageYears` and `country` on the mint's input
68
- * (`MintManagedPlayerTokenInput`) or as the assertion's claims. Crowded Kingdoms stores an age
69
- * bracket and the country on the player, applies a minor's defaults itself, and refuses the
70
- * sign-in with `TERRITORY_NOT_SUPPORTED` in a country it does not serve and
71
- * `AGE_REQUIREMENT_NOT_MET` under the app's, the country's or the platform's youngest age,
72
- * before the player is created. Both are optional while every managed player is 18 or older
73
- * under the Org-Managed Players Addendum (left out, the player counts as an adult), and
74
- * required once the platform admits players under 18 (`AGE_REQUIRED` without an age).
74
+ * is and where it lives: `ageYears`, `country` and, where the country is checked by region,
75
+ * `region` (v2.61.0) on the mint's input (`MintManagedPlayerTokenInput`) or as the assertion's
76
+ * claims. Crowded Kingdoms stores an age bracket and the country on the player, applies a
77
+ * minor's defaults itself, and refuses the sign-in with `TERRITORY_NOT_SUPPORTED` in a country
78
+ * or region it does not serve (or without a region it needs) and `AGE_REQUIREMENT_NOT_MET`
79
+ * under the app's, the country's or the platform's youngest age, before the player is created.
80
+ * That refusal names no age, the same player is refused for 24 hours whatever is sent, and a
81
+ * player that exists and is said to be under 13 is deleted. The age and country are optional
82
+ * while every managed player is 18 or older under the Org-Managed Players Addendum (left out,
83
+ * the player counts as an adult), and required once the platform admits players under 18
84
+ * (`AGE_REQUIRED` without an age).
75
85
  *
76
86
  * The methods below are the organization's administration. They take an org admin's
77
87
  * session with the `manage_players` permission (or, from the organization's server, an org
@@ -1 +1 @@
1
- {"version":3,"file":"managedPlayers.d.ts","sourceRoot":"","sources":["../../src/domains/managedPlayers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAaL,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,+BAA+B,EACpC,KAAK,2BAA2B,EAChC,KAAK,6BAA6B,EAClC,KAAK,mBAAmB,EACxB,KAAK,6BAA6B,EAClC,KAAK,4BAA4B,EACjC,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAChC,MAAM,yBAAyB,CAAC;AAgBjC,uGAAuG;AACvG,MAAM,MAAM,yBAAyB,GAAG,IAAI,CAAC,0BAA0B,EAAE,WAAW,CAAC,GAAG;IACtF,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC7C,CAAC;AAEF;;;;;GAKG;AACH,MAAM,WAAW,4BAA4B;IAC3C,0CAA0C;IAC1C,GAAG,EAAE,MAAM,CAAC;IACZ,gEAAgE;IAChE,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACvB,yFAAyF;IACzF,GAAG,EAAE,MAAM,CAAC;IACZ,6CAA6C;IAC7C,GAAG,EAAE,MAAM,CAAC;IACZ,2EAA2E;IAC3E,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9B,OAAO,CAAC,2BAA2B,CAAC,qBAAqB,CAAC,CAAC;IAK9D,wFAAwF;IAClF,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAKtE;;;;;;;;OAQG;IACG,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAKjE;;;;;;OAMG;IACG,QAAQ,CACZ,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,6BAA6B,CAAC,0BAA0B,CAAC,CAAC;IAKrE,wEAAwE;IAClE,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;IAKhF;;;;;;;OAOG;IACG,kBAAkB,CACtB,KAAK,EAAE,yBAAyB,GAC/B,OAAO,CAAC,6BAA6B,CAAC,uBAAuB,CAAC,CAAC;IAiBlE,0EAA0E;IACpE,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAKtE;;;;;OAKG;IACG,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAKrD;;;;OAIG;IACG,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;CAIpE"}
@@ -33,14 +33,17 @@ function privateJwkMember(json) {
33
33
  * `client.portal.exchangeManagedPlayerAssertion`.
34
34
  *
35
35
  * **Age and country (ck-api v2.60.0).** Either way the organization says how old the player
36
- * is and where it lives: `ageYears` and `country` on the mint's input
37
- * (`MintManagedPlayerTokenInput`) or as the assertion's claims. Crowded Kingdoms stores an age
38
- * bracket and the country on the player, applies a minor's defaults itself, and refuses the
39
- * sign-in with `TERRITORY_NOT_SUPPORTED` in a country it does not serve and
40
- * `AGE_REQUIREMENT_NOT_MET` under the app's, the country's or the platform's youngest age,
41
- * before the player is created. Both are optional while every managed player is 18 or older
42
- * under the Org-Managed Players Addendum (left out, the player counts as an adult), and
43
- * required once the platform admits players under 18 (`AGE_REQUIRED` without an age).
36
+ * is and where it lives: `ageYears`, `country` and, where the country is checked by region,
37
+ * `region` (v2.61.0) on the mint's input (`MintManagedPlayerTokenInput`) or as the assertion's
38
+ * claims. Crowded Kingdoms stores an age bracket and the country on the player, applies a
39
+ * minor's defaults itself, and refuses the sign-in with `TERRITORY_NOT_SUPPORTED` in a country
40
+ * or region it does not serve (or without a region it needs) and `AGE_REQUIREMENT_NOT_MET`
41
+ * under the app's, the country's or the platform's youngest age, before the player is created.
42
+ * That refusal names no age, the same player is refused for 24 hours whatever is sent, and a
43
+ * player that exists and is said to be under 13 is deleted. The age and country are optional
44
+ * while every managed player is 18 or older under the Org-Managed Players Addendum (left out,
45
+ * the player counts as an adult), and required once the platform admits players under 18
46
+ * (`AGE_REQUIRED` without an age).
44
47
  *
45
48
  * The methods below are the organization's administration. They take an org admin's
46
49
  * session with the `manage_players` permission (or, from the organization's server, an org
@@ -52,9 +52,12 @@ export declare class PlatformAPI {
52
52
  * `blocked` for one it does not serve (sign-up and play are refused there with
53
53
  * `TERRITORY_NOT_SUPPORTED`, by the country a player gives or connects from), and `open`
54
54
  * with a `minAge` above the platform's for the others it lists. A country not listed is
55
- * open at the platform's youngest age. **Public**, so a sign-up form can tell a player
56
- * before an account exists that the service is not available in their country. Do not show
57
- * the ages: a sign-up screen names none. ck-api v2.60.0.
55
+ * open at the platform's youngest age. Since ck-api v2.61.0 a row may be for one region of
56
+ * a country (`regionCode`, ISO 3166-2, such as `UA-43`; null on a country's own row): a
57
+ * country with a region listed is checked by region, so a connection whose region cannot be
58
+ * told is refused there, and an organization sends its players' `region`. **Public**, so a
59
+ * sign-up form can tell a player before an account exists that the service is not available
60
+ * where they are. Do not show the ages: a sign-up screen names none. ck-api v2.60.0.
58
61
  */
59
62
  territoryPolicies(): Promise<TerritoryPolicyRecord[]>;
60
63
  }
@@ -1 +1 @@
1
- {"version":3,"file":"platform.d.ts","sourceRoot":"","sources":["../../src/domains/platform.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAEL,KAAK,sBAAsB,EAC5B,MAAM,yBAAyB,CAAC;AAEjC,kFAAkF;AAClF,MAAM,MAAM,qBAAqB,GAAG,sBAAsB,CAAC,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;AAExF;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B,sFAAsF;IACtF,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,mFAAmF;IACnF,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,gFAAgF;IAChF,cAAc,EAAE,MAAM,CAAC;CACxB;AAiBD;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBAAa,WAAW;IACV,OAAO,CAAC,QAAQ,CAAC,GAAG;gBAAH,GAAG,EAAE,aAAa;IAE/C;;;;;;;;OAQG;IACG,MAAM,IAAI,OAAO,CAAC,cAAc,CAAC;IAKvC;;;;;;;;OAQG;IACG,iBAAiB,IAAI,OAAO,CAAC,qBAAqB,EAAE,CAAC;CAI5D"}
1
+ {"version":3,"file":"platform.d.ts","sourceRoot":"","sources":["../../src/domains/platform.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAEL,KAAK,sBAAsB,EAC5B,MAAM,yBAAyB,CAAC;AAEjC,kFAAkF;AAClF,MAAM,MAAM,qBAAqB,GAAG,sBAAsB,CAAC,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;AAExF;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B,sFAAsF;IACtF,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,mFAAmF;IACnF,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,gFAAgF;IAChF,cAAc,EAAE,MAAM,CAAC;CACxB;AAiBD;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBAAa,WAAW;IACV,OAAO,CAAC,QAAQ,CAAC,GAAG;gBAAH,GAAG,EAAE,aAAa;IAE/C;;;;;;;;OAQG;IACG,MAAM,IAAI,OAAO,CAAC,cAAc,CAAC;IAKvC;;;;;;;;;;;OAWG;IACG,iBAAiB,IAAI,OAAO,CAAC,qBAAqB,EAAE,CAAC;CAI5D"}
@@ -52,9 +52,12 @@ export class PlatformAPI {
52
52
  * `blocked` for one it does not serve (sign-up and play are refused there with
53
53
  * `TERRITORY_NOT_SUPPORTED`, by the country a player gives or connects from), and `open`
54
54
  * with a `minAge` above the platform's for the others it lists. A country not listed is
55
- * open at the platform's youngest age. **Public**, so a sign-up form can tell a player
56
- * before an account exists that the service is not available in their country. Do not show
57
- * the ages: a sign-up screen names none. ck-api v2.60.0.
55
+ * open at the platform's youngest age. Since ck-api v2.61.0 a row may be for one region of
56
+ * a country (`regionCode`, ISO 3166-2, such as `UA-43`; null on a country's own row): a
57
+ * country with a region listed is checked by region, so a connection whose region cannot be
58
+ * told is refused there, and an organization sends its players' `region`. **Public**, so a
59
+ * sign-up form can tell a player before an account exists that the service is not available
60
+ * where they are. Do not show the ages: a sign-up screen names none. ck-api v2.60.0.
58
61
  */
59
62
  async territoryPolicies() {
60
63
  const data = await this.api.request(TerritoryPoliciesDocument, {});
@@ -287,8 +287,10 @@ export declare class PortalAPI {
287
287
  * player's age is unknown (`auth.recordPlayerAge`); `AGE_REQUIREMENT_NOT_MET`
288
288
  * (`ageRequirementNotMetOf`) under the app's, the country's or the platform's
289
289
  * youngest age; then the documents. A player under 18 is also refused
290
- * `SAFETY_LOG_REQUIRED` (`safetyLogRequiredOf`) in an app without the safety log.
291
- * None of them is fixed by retrying.
290
+ * `SAFETY_LOG_REQUIRED` (`safetyLogRequiredOf`) in an app without the safety log,
291
+ * then `SAFETY_MODERATOR_REQUIRED` (`safetyModeratorRequiredOf`, ck-api v2.61.0) in
292
+ * one whose organization has appointed no safety moderator. None of them is fixed
293
+ * by retrying, and no refusal names an age.
292
294
  */
293
295
  mintAppToken(appId: string): Promise<AppTokenResponse>;
294
296
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"portal.d.ts","sourceRoot":"","sources":["../../src/domains/portal.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AAIH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAElD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAEnD;;;;;GAKG;AACH,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,WAAW,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IACpE,qFAAqF;IACrF,MAAM,EAAE,cAAc,GAAG,IAAI,CAAC;CAC/B;AAED,MAAM,WAAW,gBAAgB;IAC/B,gFAAgF;IAChF,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,0DAA0D;IAC1D,KAAK,EAAE,MAAM,CAAC;IACd,wEAAwE;IACxE,SAAS,EAAE,MAAM,CAAC;IAClB,0EAA0E;IAC1E,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,sDAAsD;IACtD,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B;;;;;;;;;;;;;;;OAeG;IACH,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,sDAAsD;IACtD,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB;;;;;;;OAOG;IACH,gBAAgB,CAAC,EAAE;QAAE,GAAG,EAAE,MA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@ -176,8 +176,10 @@ export class PortalAPI {
176
176
  * player's age is unknown (`auth.recordPlayerAge`); `AGE_REQUIREMENT_NOT_MET`
177
177
  * (`ageRequirementNotMetOf`) under the app's, the country's or the platform's
178
178
  * youngest age; then the documents. A player under 18 is also refused
179
- * `SAFETY_LOG_REQUIRED` (`safetyLogRequiredOf`) in an app without the safety log.
180
- * None of them is fixed by retrying.
179
+ * `SAFETY_LOG_REQUIRED` (`safetyLogRequiredOf`) in an app without the safety log,
180
+ * then `SAFETY_MODERATOR_REQUIRED` (`safetyModeratorRequiredOf`, ck-api v2.61.0) in
181
+ * one whose organization has appointed no safety moderator. None of them is fixed
182
+ * by retrying, and no refusal names an age.
181
183
  */
182
184
  async mintAppToken(appId) {
183
185
  const data = await this.api.request(MintAppTokenDocument, {
@@ -109,8 +109,9 @@ export declare class SafetyAPI {
109
109
  *
110
110
  * `status` is `REQUESTED` (the email went out), `ALREADY_GRANTED` or `NOT_REQUIRED` (the
111
111
  * player is 18 or over; nothing was sent). Refused with `PARENTAL_CONSENT_UNAVAILABLE`
112
- * ({@link parentalConsentUnavailableOf}) while the service is not configured on the
113
- * deployment, and `RATE_LIMITED` after three requests in an hour.
112
+ * ({@link parentalConsentUnavailableOf}, whose `reason` says whether the deployment has no
113
+ * consent service or the service refused or did not answer), and `RATE_LIMITED` after
114
+ * three requests in an hour.
114
115
  */
115
116
  requestParentalConsent(appId: string, feature: ParentalConsentFeatureValue, parentEmail: string): Promise<ParentalConsentRequestResult>;
116
117
  /** The player's accepted contacts in the app, most recent first (at most 1,000). */