@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.
@@ -1 +1 @@
1
- {"version":3,"file":"safety.d.ts","sourceRoot":"","sources":["../../src/domains/safety.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAgBL,KAAK,mBAAmB,EACxB,KAAK,8BAA8B,EACnC,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,aAAa,EAClB,KAAK,wBAAwB,EAC9B,MAAM,yBAAyB,CAAC;AAEjC;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,UAAU,GAAG,UAAU,CAAC;AAE7D,mGAAmG;AACnG,MAAM,MAAM,2BAA2B,GAAG,OAAO,GAAG,OAAO,CAAC;AAE5D,2FAA2F;AAC3F,MAAM,MAAM,uBAAuB,GAC/B,cAAc,GACd,YAAY,GACZ,gBAAgB,GAChB,MAAM,GACN,WAAW,GACX,UAAU,GACV,OAAO,CAAC;AAEZ,qGAAqG;AACrG,MAAM,WAAW,gBAAgB;IAC/B,yCAAyC;IACzC,SAAS,CAAC,EAAE,cAAc,CAAC;IAC3B,uCAAuC;IACvC,YAAY,CAAC,EAAE,cAAc,CAAC;IAC9B,yCAAyC;IACzC,SAAS,CAAC,EAAE,cAAc,CAAC;IAC3B,sCAAsC;IACtC,YAAY,CAAC,EAAE,cAAc,CAAC;CAC/B;AAED,iDAAiD;AACjD,MAAM,WAAW,kBAAkB;IACjC,mCAAmC;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,0DAA0D;IAC1D,cAAc,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,MAAM,EAAE,uBAAuB,CAAC;IAChC,wEAAwE;IACxE,OAAO,CAAC,EAAE,MAAM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M,GAAG,OAAO,CAAC,OAAO,CAAC;IAK9D;;;;;;;;;OASG;IACG,UAAU,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,yBAAyB,CAAC;CAiBjF"}
@@ -68,8 +68,9 @@ export class SafetyAPI {
68
68
  *
69
69
  * `status` is `REQUESTED` (the email went out), `ALREADY_GRANTED` or `NOT_REQUIRED` (the
70
70
  * player is 18 or over; nothing was sent). Refused with `PARENTAL_CONSENT_UNAVAILABLE`
71
- * ({@link parentalConsentUnavailableOf}) while the service is not configured on the
72
- * deployment, and `RATE_LIMITED` after three requests in an hour.
71
+ * ({@link parentalConsentUnavailableOf}, whose `reason` says whether the deployment has no
72
+ * consent service or the service refused or did not answer), and `RATE_LIMITED` after
73
+ * three requests in an hour.
73
74
  */
74
75
  async requestParentalConsent(appId, feature, parentEmail) {
75
76
  const data = await this.api.request(RequestParentalConsentDocument, {
package/dist/errors.d.ts CHANGED
@@ -311,8 +311,13 @@ export declare const TERRITORY_NOT_SUPPORTED_CODE = "TERRITORY_NOT_SUPPORTED";
311
311
  */
312
312
  export declare const SAFETY_LOG_REQUIRED_CODE = "SAFETY_LOG_REQUIRED";
313
313
  /**
314
- * `extensions.code` for "parental consent cannot be requested on this deployment" (HTTP 503);
315
- * see {@link parentalConsentUnavailableOf}.
314
+ * `extensions.code` for "the app admits players under 18 and its organization has appointed no
315
+ * safety moderator" (HTTP 403); see {@link safetyModeratorRequiredOf}.
316
+ */
317
+ export declare const SAFETY_MODERATOR_REQUIRED_CODE = "SAFETY_MODERATOR_REQUIRED";
318
+ /**
319
+ * `extensions.code` for "parental consent cannot be requested right now" (HTTP 503), with why in
320
+ * `extensions.reason`; see {@link parentalConsentUnavailableOf}.
316
321
  */
317
322
  export declare const PARENTAL_CONSENT_UNAVAILABLE_CODE = "PARENTAL_CONSENT_UNAVAILABLE";
318
323
  /**
@@ -335,6 +340,13 @@ export declare const MINECRAFT_VERIFICATION_UNAVAILABLE_CODE = "MINECRAFT_VERIFI
335
340
  * the server may add one.
336
341
  */
337
342
  export type MinecraftVerificationFailure = 'malformed' | 'forged' | 'expired' | 'not_joined' | 'replayed' | (string & {});
343
+ /**
344
+ * Why parental consent cannot be requested, as `extensions.reason` on
345
+ * `PARENTAL_CONSENT_UNAVAILABLE` carries it: `not_configured` (the deployment has no consent
346
+ * service), `provider_refused` (the service refused the request) or `provider_unavailable` (it
347
+ * did not answer). Open union: the server may add one.
348
+ */
349
+ export type ParentalConsentUnavailableReason = 'not_configured' | 'provider_refused' | 'provider_unavailable' | (string & {});
338
350
  /** One document a refused player still has to accept, from `extensions.missingDocuments`. */
339
351
  export interface MissingLegalDocument {
340
352
  /** The document's stable id, such as `player-terms` or an app's own `rules`. */
@@ -431,12 +443,15 @@ export declare function ageRequiredOf(value: unknown): boolean;
431
443
  /**
432
444
  * Whether an error is an `AGE_REQUIREMENT_NOT_MET` refusal (HTTP 403): by age, the player may
433
445
  * not play this app, or create or administer an organization. Not retryable, and asking for
434
- * the age again changes nothing: an account keeps the answer it gave.
446
+ * the age again changes nothing: an account keeps the answer it gave, and since ck-api v2.61.0
447
+ * the same client (address and user agent) is refused at sign-up and `auth.recordPlayerAge`
448
+ * for 24 hours whatever it sends, and an org-managed player at its sign-ins. An account that
449
+ * answers `recordPlayerAge` with an age under 13 is deleted.
435
450
  *
436
451
  * Deliberately a boolean. No refusal names an age (the platform's neutral age screen): tell the
437
452
  * player they cannot play this, without naming an age or a minimum, and do not offer to enter
438
- * the date again. Older APIs put `minimumAge` and `ageBracket` in the extensions; this reader
439
- * does not surface them, and a game must not show them.
453
+ * the date again. v2.60.0 put `minimumAge` and `ageBracket` in the extensions (v2.61.0 does
454
+ * not); this reader never surfaces them, and a game must not show them.
440
455
  */
441
456
  export declare function ageRequirementNotMetOf(value: unknown): boolean;
442
457
  /**
@@ -456,11 +471,24 @@ export declare function territoryNotSupportedOf(value: unknown): {
456
471
  */
457
472
  export declare function safetyLogRequiredOf(value: unknown): boolean;
458
473
  /**
459
- * Whether an error is a `PARENTAL_CONSENT_UNAVAILABLE` refusal (HTTP 503) from
460
- * `safety.requestParentalConsent`: the deployment's consent service is not configured. Not
461
- * fixed by retrying soon; voice and video stay off for the player meanwhile.
474
+ * Whether an error is a `SAFETY_MODERATOR_REQUIRED` refusal (HTTP 403, ck-api v2.61.0): a player
475
+ * under 18 is refused a token in an app that admits players under 18 while the app's
476
+ * organization has appointed no safety moderator (a member whose own role grants
477
+ * `moderate_safety`; an admin alone does not count). The player cannot fix it: tell them the
478
+ * app cannot admit them yet. The organization appoints one; `App.hasSafetyModerator` (on
479
+ * `apps.app`, for the organization's members) says whether it has.
462
480
  */
463
- export declare function parentalConsentUnavailableOf(value: unknown): boolean;
481
+ export declare function safetyModeratorRequiredOf(value: unknown): boolean;
482
+ /**
483
+ * A `PARENTAL_CONSENT_UNAVAILABLE` refusal (HTTP 503) from `safety.requestParentalConsent`, or
484
+ * `null`: a parent cannot be asked right now. `reason` is `extensions.reason`:
485
+ * `not_configured` (the deployment has no consent service; retrying soon does not help),
486
+ * `provider_refused` or `provider_unavailable` (the service refused or did not answer); null
487
+ * from an API that does not say. Voice and video stay off for the player meanwhile.
488
+ */
489
+ export declare function parentalConsentUnavailableOf(value: unknown): {
490
+ reason: ParentalConsentUnavailableReason | null;
491
+ } | null;
464
492
  /**
465
493
  * Whether an error is a `SOCIAL_LIMIT_REACHED` refusal (HTTP 409): the player already has as
466
494
  * many contacts, waiting contact requests or blocks in the app as the platform allows (the
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,iFAAiF;AACjF,MAAM,WAAW,yBAAyB;IACxC,mFAAmF;IACnF,OAAO,EAAE,MAAM,CAAC;IAChB,gFAAgF;IAChF,SAAS,CAAC,EAAE,SAAS,OAAO,EAAE,CAAC;IAC/B,2EAA2E;IAC3E,IAAI,CAAC,EAAE,SAAS,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ED_CODE = 'TERRITORY_NOT_SUPPORTED';
307
307
  */
308
308
  export const SAFETY_LOG_REQUIRED_CODE = 'SAFETY_LOG_REQUIRED';
309
309
  /**
310
- * `extensions.code` for "parental consent cannot be requested on this deployment" (HTTP 503);
311
- * see {@link parentalConsentUnavailableOf}.
310
+ * `extensions.code` for "the app admits players under 18 and its organization has appointed no
311
+ * safety moderator" (HTTP 403); see {@link safetyModeratorRequiredOf}.
312
+ */
313
+ export const SAFETY_MODERATOR_REQUIRED_CODE = 'SAFETY_MODERATOR_REQUIRED';
314
+ /**
315
+ * `extensions.code` for "parental consent cannot be requested right now" (HTTP 503), with why in
316
+ * `extensions.reason`; see {@link parentalConsentUnavailableOf}.
312
317
  */
313
318
  export const PARENTAL_CONSENT_UNAVAILABLE_CODE = 'PARENTAL_CONSENT_UNAVAILABLE';
314
319
  /**
@@ -469,12 +474,15 @@ export function ageRequiredOf(value) {
469
474
  /**
470
475
  * Whether an error is an `AGE_REQUIREMENT_NOT_MET` refusal (HTTP 403): by age, the player may
471
476
  * not play this app, or create or administer an organization. Not retryable, and asking for
472
- * the age again changes nothing: an account keeps the answer it gave.
477
+ * the age again changes nothing: an account keeps the answer it gave, and since ck-api v2.61.0
478
+ * the same client (address and user agent) is refused at sign-up and `auth.recordPlayerAge`
479
+ * for 24 hours whatever it sends, and an org-managed player at its sign-ins. An account that
480
+ * answers `recordPlayerAge` with an age under 13 is deleted.
473
481
  *
474
482
  * Deliberately a boolean. No refusal names an age (the platform's neutral age screen): tell the
475
483
  * player they cannot play this, without naming an age or a minimum, and do not offer to enter
476
- * the date again. Older APIs put `minimumAge` and `ageBracket` in the extensions; this reader
477
- * does not surface them, and a game must not show them.
484
+ * the date again. v2.60.0 put `minimumAge` and `ageBracket` in the extensions (v2.61.0 does
485
+ * not); this reader never surfaces them, and a game must not show them.
478
486
  */
479
487
  export function ageRequirementNotMetOf(value) {
480
488
  return errorWithCode(value, AGE_REQUIREMENT_NOT_MET_CODE) !== null;
@@ -502,12 +510,29 @@ export function safetyLogRequiredOf(value) {
502
510
  return errorWithCode(value, SAFETY_LOG_REQUIRED_CODE) !== null;
503
511
  }
504
512
  /**
505
- * Whether an error is a `PARENTAL_CONSENT_UNAVAILABLE` refusal (HTTP 503) from
506
- * `safety.requestParentalConsent`: the deployment's consent service is not configured. Not
507
- * fixed by retrying soon; voice and video stay off for the player meanwhile.
513
+ * Whether an error is a `SAFETY_MODERATOR_REQUIRED` refusal (HTTP 403, ck-api v2.61.0): a player
514
+ * under 18 is refused a token in an app that admits players under 18 while the app's
515
+ * organization has appointed no safety moderator (a member whose own role grants
516
+ * `moderate_safety`; an admin alone does not count). The player cannot fix it: tell them the
517
+ * app cannot admit them yet. The organization appoints one; `App.hasSafetyModerator` (on
518
+ * `apps.app`, for the organization's members) says whether it has.
519
+ */
520
+ export function safetyModeratorRequiredOf(value) {
521
+ return errorWithCode(value, SAFETY_MODERATOR_REQUIRED_CODE) !== null;
522
+ }
523
+ /**
524
+ * A `PARENTAL_CONSENT_UNAVAILABLE` refusal (HTTP 503) from `safety.requestParentalConsent`, or
525
+ * `null`: a parent cannot be asked right now. `reason` is `extensions.reason`:
526
+ * `not_configured` (the deployment has no consent service; retrying soon does not help),
527
+ * `provider_refused` or `provider_unavailable` (the service refused or did not answer); null
528
+ * from an API that does not say. Voice and video stay off for the player meanwhile.
508
529
  */
509
530
  export function parentalConsentUnavailableOf(value) {
510
- return errorWithCode(value, PARENTAL_CONSENT_UNAVAILABLE_CODE) !== null;
531
+ const entry = errorWithCode(value, PARENTAL_CONSENT_UNAVAILABLE_CODE);
532
+ if (!entry)
533
+ return null;
534
+ const reason = entry.extensions?.reason;
535
+ return { reason: typeof reason === 'string' && reason.length > 0 ? reason : null };
511
536
  }
512
537
  /**
513
538
  * Whether an error is a `SOCIAL_LIMIT_REACHED` refusal (HTTP 409): the player already has as
@@ -73,7 +73,7 @@ export type AccountErasure = {
73
73
  reason: Scalars['String']['output'];
74
74
  /** When it was asked for. */
75
75
  requestedAt: Scalars['DateTime']['output'];
76
- /** Who asked: user:<id>, org_token:<id> or operator:<id>. */
76
+ /** Who asked: user:<id>, org_token:<id>, operator:<id> (requestAccountErasure), operator:<id>: <their reason> (eraseAccount), or age_gate (an account that declared an age under 13). */
77
77
  requestedBy: Maybe<Scalars['String']['output']>;
78
78
  /** PENDING (apps still to do), RUNNING (finishing), DONE, FAILED (the finish threw; it is retried) or DEFERRED_HOLD (a legal hold applies; nothing is erased until it is released). */
79
79
  status: Scalars['String']['output'];
@@ -919,6 +919,8 @@ export type App = {
919
919
  gridClaimApproverUserIds: Array<Scalars['String']['output']>;
920
920
  /** How a player claim confers grid ownership (D4): "self_claim" (the claim right alone; default), "approval" (designated approvers accept claim requests), "invite" (standing invites only), or "marketplace_only" (only a marketplace grid purchase; the purchase edge ships in P4b). */
921
921
  gridClaimPolicy: Scalars['String']['output'];
922
+ /** Whether the app's organization has a safety moderator: a member one of whose roles grants moderate_safety itself (the admin role alone does not count; the moderator is appointed) and who is not deleted, blocked, banned from the organization or a minor. An app that admits players under 18 needs one, or its minors' sign-ins are refused SAFETY_MODERATOR_REQUIRED (the same check). Null unless you are a member of the app's organization (or a super admin). */
923
+ hasSafetyModerator: Maybe<Scalars['Boolean']['output']>;
922
924
  /** True for first-party/trusted apps: portal entry skips the consent screen. The Overworld (app 1) is trusted. Studio admins cannot set this; it is platform-controlled. */
923
925
  isTrusted: Scalars['Boolean']['output'];
924
926
  /** Browser destination (origin/URL) a player is redirected to when they portal into this app from the Overworld. Used to route the player and to validate portal redirect URIs. */
@@ -4693,7 +4695,7 @@ export type InputLogSessionFilter = {
4693
4695
  messageType?: InputMaybe<Scalars['Int']['input']>;
4694
4696
  /** Only sessions started at or before this instant. */
4695
4697
  to?: InputMaybe<Scalars['DateTime']['input']>;
4696
- /** Only this user's sessions. Without manage_apps on the app, only your own user id is accepted (and is the default). */
4698
+ /** Only this user's sessions. On an app for adults, without manage_apps only your own user id is accepted (and is the default). On an app that admits players under 18, a moderator (moderate_safety) may name any player to narrow the reported sessions, and everyone else only their own. */
4697
4699
  userId?: InputMaybe<Scalars['BigInt']['input']>;
4698
4700
  };
4699
4701
  export type InviteOrgMemberInput = {
@@ -4848,7 +4850,7 @@ export type MintGridTokenInput = {
4848
4850
  ttlSeconds?: InputMaybe<Scalars['Int']['input']>;
4849
4851
  };
4850
4852
  export type MintManagedPlayerTokenInput = {
4851
- /** The player's age in whole years, as your organization knows it. Stored as a bracket (under_13, 13_15, 16_17, 18_plus), which hubs read and which sets a minor's defaults; a player under 13, or under the app's or the country's minimum, is refused AGE_REQUIREMENT_NOT_MET before it is created or signed in. Optional while every player is 18 or older under the Org-Managed Players Addendum (omitted, the player counts as 18_plus); required once players 13 and over are admitted (AGE_REQUIRED without it). */
4853
+ /** The player's age in whole years, as your organization knows it. Stored as a bracket (under_13, 13_15, 16_17, 18_plus), which hubs read and which sets a minor's defaults; a player under 13, or under the app's or the country's minimum, is refused AGE_REQUIREMENT_NOT_MET before it is created or signed in, and then refused again, whatever the age, for 24 hours. A player that exists and is asserted under 13 is deleted, as deleteManagedPlayer does. Optional while every player is 18 or older under the Org-Managed Players Addendum (omitted, the player counts as 18_plus); required once players 13 and over are admitted (AGE_REQUIRED without it). */
4852
4854
  ageYears?: InputMaybe<Scalars['Int']['input']>;
4853
4855
  /** The app to play: one of the org token's organization's apps. */
4854
4856
  appId: Scalars['BigInt']['input'];
@@ -4858,6 +4860,8 @@ export type MintManagedPlayerTokenInput = {
4858
4860
  externalId: Scalars['String']['input'];
4859
4861
  /** Display name (at most 64 characters, none of them control, line-break or bidirectional-formatting characters). Set when the player is created; later sign-ins leave it (rename with updateManagedPlayer). */
4860
4862
  gamertag?: InputMaybe<Scalars['String']['input']>;
4863
+ /** The region the player lives in, ISO 3166-2 within country (such as UA-30). Required in a country Crowded Kingdoms checks by region (territoryPolicies lists its regions): without it, or in a blocked region, the player is refused TERRITORY_NOT_SUPPORTED. Checked at each sign-in, not stored. */
4864
+ region?: InputMaybe<Scalars['String']['input']>;
4861
4865
  /** How long this sign-in lasts, in seconds (default and maximum: the org's settings). The app token refreshes (refreshAppToken) until then; after it, sign the player in again. */
4862
4866
  sessionTtlSeconds?: InputMaybe<Scalars['Int']['input']>;
4863
4867
  };
@@ -5031,9 +5035,11 @@ export type Mutation = {
5031
5035
  endManagedPlayerSessions: Scalars['Boolean']['output'];
5032
5036
  /** OPERATOR: end the sessions and app tokens of these accounts (at most 1000), skipping any this tier admits. Returns how many had sessions ended. Refused on prod. */
5033
5037
  endTierAccessSessions: Scalars['Int']['output'];
5038
+ /** OPERATOR/DESTRUCTIVE: deletes another account and erases it, on Crowded Kingdoms' own word (a parent's request for a child's account, say): exactly what deleteMyAccount does to it, holds included. An open or escalated safety report about the account holds it first, and under a legal hold the account still closes but its content and identity are kept until the hold is released. The erasure record names you and your reason (AccountErasure.requestedBy is `operator:<your id>: <reason>`), and accountErasure(userId) follows it. Refused for your own account, a staff account (operator or super admin) and an account already deleted (requestAccountErasure runs a deleted account's erasure again); NOT_FOUND for an unknown user. Send the identity session; any datacenter answers. */
5039
+ eraseAccount: AccountErasure;
5034
5040
  /** Record that an open report was submitted to NCMEC's CyberTipline, under the CyberTipline report's id: its preserved copy is kept under COMPLIANCE retention for a year from now (nobody can delete it sooner), and the reported account's legal hold, if any, for as long. Escalating it again under the same id changes nothing; under another id is CONFLICT; a resolved report cannot be escalated (BAD_REQUEST). Requires 'moderate_safety' on the app (an org role, or the org's admins); super admins bypass. Send the identity session to the app's datacenter. */
5035
5041
  escalateSafetyReport: SafetyReport;
5036
- /** Exchange an assertion your organization signed for one of its players for that player's app-scoped gameplay token (the same token mintManagedPlayerToken returns). Public: the signature is the credential, so a game client calls it directly, from a browser on your registered origin or natively. The assertion must name a registered, active key (header kid) and carry iss and aud as registered (aud defaults to ck:app:<appId>), sub (your id for the player), iat, exp at most 300 seconds after iat, and a jti never used before for this app; optionally gamertag, and ageYears (the player's age in whole years) and country (ISO 3166-1 alpha-2), which mintManagedPlayerToken describes and which are required once players 13 and over are admitted. The player is created on its first sign-in. Refusals are ASSERTION_REJECTED with extensions.reason; a valid assertion is refused with ORG_LEGAL_ACCEPTANCE_REQUIRED until an admin of the organization has accepted the current Org-Managed Players Addendum, and with TERRITORY_NOT_SUPPORTED, AGE_REQUIRED or AGE_REQUIREMENT_NOT_MET as mintManagedPlayerToken is. */
5042
+ /** Exchange an assertion your organization signed for one of its players for that player's app-scoped gameplay token (the same token mintManagedPlayerToken returns). Public: the signature is the credential, so a game client calls it directly, from a browser on your registered origin or natively. The assertion must name a registered, active key (header kid) and carry iss and aud as registered (aud defaults to ck:app:<appId>), sub (your id for the player), iat, exp at most 300 seconds after iat, and a jti never used before for this app; optionally gamertag, and ageYears (the player's age in whole years) and country (ISO 3166-1 alpha-2), which mintManagedPlayerToken describes and which are required once players 13 and over are admitted, and region (ISO 3166-2), required where the country is checked by region. The player is created on its first sign-in. Refusals are ASSERTION_REJECTED with extensions.reason; a valid assertion is refused with ORG_LEGAL_ACCEPTANCE_REQUIRED until an admin of the organization has accepted the current Org-Managed Players Addendum, and with TERRITORY_NOT_SUPPORTED, AGE_REQUIRED or AGE_REQUIREMENT_NOT_MET as mintManagedPlayerToken is. */
5037
5043
  exchangeManagedPlayerAssertion: AppTokenResponse;
5038
5044
  /** Exchange a one-time portal authorization code (with the matching PKCE verifier) for an app-scoped gameplay token. Public (the code + verifier authorize the call); called by the destination game at its own origin so the game never sees the player's session token. */
5039
5045
  exchangePortalCode: AppTokenResponse;
@@ -5127,7 +5133,7 @@ export type Mutation = {
5127
5133
  mintAppToken: AppTokenResponse;
5128
5134
  /** Mint a grid-scoped token from the app token you hold (DN-10). The result can call only a short, fixed list of gameplay fields, and each is confined to the grid: world reads and replication sends must address a chunk inside it (a send's origin; its reach follows distance), and channels must be the grid's own. refreshAppToken and logout are refused, so the token cannot widen or tear down its parent. Requires an app token (not a session token, not another grid token), and the caller must own the grid or hold run_client_code on it. */
5129
5135
  mintGridToken: GridTokenResponse;
5130
- /** ORG TOKEN ONLY. Sign one of your organization's own players in and get its app-scoped gameplay token, the same token mintAppToken returns: hand `token` (and the URLs) to the player's device, which plays with it exactly as with any app token and refreshes it with refreshAppToken. Call from your server with `Authorization: Bearer cko_...` (scope players:mint); a request with an Origin header is refused. The player is created on its first sign-in (no email, password or wallet), and each sign-in lasts `sessionTtlSeconds` (default and maximum: the org's settings): after it the device comes back to you. The app must be one of your organization's apps (and in the token's app list, if it has one). Free tiers grant access automatically; a paid tier needs grantAppAccess. Refused with ORG_LEGAL_ACCEPTANCE_REQUIRED until an admin of the organization has accepted the current Org-Managed Players Addendum. Pass the player's ageYears and country: the player is refused TERRITORY_NOT_SUPPORTED in a country Crowded Kingdoms does not serve, AGE_REQUIREMENT_NOT_MET under 13 or under the app's or the country's minimum age (before it is created), and AGE_REQUIRED without an age once players 13 and over are admitted; its bracket and country are stored on it, and a refresh is refused once its bracket is wholly below the app's minimum. */
5136
+ /** ORG TOKEN ONLY. Sign one of your organization's own players in and get its app-scoped gameplay token, the same token mintAppToken returns: hand `token` (and the URLs) to the player's device, which plays with it exactly as with any app token and refreshes it with refreshAppToken. Call from your server with `Authorization: Bearer cko_...` (scope players:mint); a request with an Origin header is refused. The player is created on its first sign-in (no email, password or wallet), and each sign-in lasts `sessionTtlSeconds` (default and maximum: the org's settings): after it the device comes back to you. The app must be one of your organization's apps (and in the token's app list, if it has one). Free tiers grant access automatically; a paid tier needs grantAppAccess. Refused with ORG_LEGAL_ACCEPTANCE_REQUIRED until an admin of the organization has accepted the current Org-Managed Players Addendum. Pass the player's ageYears and country, and its region where the country is checked by region: the player is refused TERRITORY_NOT_SUPPORTED in a country or region Crowded Kingdoms does not serve (or without a region it needs), AGE_REQUIRED without an age once players 13 and over are admitted, and AGE_REQUIREMENT_NOT_MET under 13 or under the app's or the country's minimum age (before it is created); that refusal names no age, the same player is refused it for 24 hours whatever is sent, and a player that exists and is said to be under 13 is deleted as deleteManagedPlayer does; its bracket and country are stored on it, and a refresh is refused once its bracket is wholly below the app's minimum. */
5131
5137
  mintManagedPlayerToken: AppTokenResponse;
5132
5138
  /** Create managed players ahead of their first sign-in, up to 500 a call in one write (creating a player is a cluster-wide commit, so a large import goes in batches). A player that exists is left as it is. Refused with ORG_LEGAL_ACCEPTANCE_REQUIRED until the organization has accepted the current Org-Managed Players Addendum. An org token with players:manage, or an org admin with manage_players. */
5133
5139
  provisionManagedPlayers: ProvisionManagedPlayersResult;
@@ -5135,7 +5141,9 @@ export type Mutation = {
5135
5141
  publishAppToShared: PublishAppResult;
5136
5142
  /** Store acceptance of the current developer documents (developerLegalDocuments: the API Terms, SDK Developer Terms and Free Tier and Billing Basis). acceptDeveloperTerms must be true; false stores nothing and is refused with LEGAL_ACCEPTANCE_REQUIRED. The developer documents admit adults only: an account with no age is refused AGE_REQUIRED (recordPlayerAge first) and one under 18 AGE_REQUIREMENT_NOT_MET. Idempotent. Requires a session token. */
5137
5143
  recordDeveloperConsents: Scalars['Boolean']['output'];
5138
- /** Record the signed-in player's birth date and country, and under 18 that a parent or guardian agreed, for an account whose age is not known yet (me.ageBracket is 'unknown'). Only the year and month are kept. Refused with CONFLICT when the account already has an age, TERRITORY_NOT_SUPPORTED for a country Crowded Kingdoms does not serve (the declared one or the network's), and AGE_REQUIREMENT_NOT_MET under 13, in which case the account keeps the bracket under_13 and the answer cannot be changed by asking again. Whether the player may play a given app (its minimum age, the country's) is decided at the mint. Returns the account; read ageBracket and country. Requires a session token. */
5144
+ /** OPERATOR: record a parent's withdrawal of consent to one medium (VOICE or VIDEO) for one player in one app, when it reached Crowded Kingdoms by email rather than through the consent service. It ends the consent as the service's own withdrawal does, recomputes the player's communication settings (a minor's medium goes back to OFF) and tells the realtime servers (P2P_SOCIAL_REFRESH) when that changes what they read, so live sessions apply it within a second. withdrawn is false when no consent was held; the settings are recomputed all the same, so calling it again is safe. NOT_FOUND unless the player has a grant or a consent in the app. Send the identity session to the app's datacenter. */
5145
+ recordParentalConsentWithdrawal: ParentalConsentWithdrawal;
5146
+ /** Record the signed-in player's birth date and country, and under 18 that a parent or guardian agreed, for an account whose age is not known yet (me.ageBracket is 'unknown'). Only the year and month are kept. Refused with CONFLICT when the account already has an age, TERRITORY_NOT_SUPPORTED where Crowded Kingdoms does not serve (the declared country, or the network's country or region; not for Crowded Kingdoms staff), and AGE_REQUIREMENT_NOT_MET under 13, in which case the account is deleted and erased as deleteMyAccount does. That refusal names no age, and for 24 hours afterwards the same client (address and user agent) is refused AGE_REQUIREMENT_NOT_MET here and at register whatever it sends. Whether the player may play a given app (its minimum age, the country's) is decided at the mint. Returns the account; read ageBracket and country. Requires a session token. */
5139
5147
  recordPlayerAge: User;
5140
5148
  /** Store acceptance of the platform's current player documents (playerLegalDocuments) and, with appId, of the app's own (appRequiredDocuments), recorded with the app and the method. acceptLegal must be true. attestAgeOfMajority must be true too while the platform still uses the age-of-majority attestation (the player then counts as 18 or older); once players give a birth date instead (recordPlayerAge) it is ignored. A refused call stores nothing (LEGAL_ACCEPTANCE_REQUIRED). Idempotent for a version already stored. Requires a session token. Gameplay tokens stay refused until this has succeeded for the current documents. */
5141
5149
  recordPlayerConsents: Scalars['Boolean']['output'];
@@ -5299,7 +5307,7 @@ export type Mutation = {
5299
5307
  setTeamMemberRoles: GroupMember;
5300
5308
  /** Set who may create teams in an app and the default membership policy for new teams. Requires app-admin ('manage_apps'). Affects future team creation only, not existing teams. */
5301
5309
  setTeamPolicy: AppGroupPolicy;
5302
- /** OPERATOR ONLY. Block or open a country, or set its minimum age, with the reason on record. Every instance applies it within a minute; players already signed in there are refused at their next refresh. */
5310
+ /** OPERATOR ONLY. Block or open a country or (with regionCode) one of its regions, or set its minimum age, with the reason on record. Every instance applies it within a minute; players already signed in there are refused at their next refresh. */
5303
5311
  setTerritoryPolicy: TerritoryPolicy;
5304
5312
  /** SUPER ADMIN: set this tier to OBSERVE (log what would be refused) or ENFORCE. Refused on prod, where the gate is always off. */
5305
5313
  setTierAccessMode: TierAccessSettings;
@@ -5307,7 +5315,7 @@ export type Mutation = {
5307
5315
  setUserTierAccess: UserTierAccess;
5308
5316
  /** Begins vaulting a card for off-session auto-billing. Returns a Stripe SetupIntent client secret the browser confirms; no charge is made here. Requires the 'manage_billing' org permission. */
5309
5317
  setupSharedPaymentMethod: PaymentMethodSetup;
5310
- /** Sign a Minecraft player in to one of Crowded Kingdoms' own apps, as a player its organization manages (no Crowded Kingdoms account): the same app token mintManagedPlayerToken returns, refreshed with refreshAppToken. ck-api asks Mojang whether `username` joined with `serverId` (minecraftChallenge) and admits the player only on a yes; the player is identified by its Minecraft account, not its name. Refusals: MINECRAFT_VERIFICATION_FAILED (extensions.reason: malformed, forged, expired, not_joined, replayed: start again from minecraftChallenge), MINECRAFT_VERIFICATION_UNAVAILABLE (Mojang did not answer; retryable), TERRITORY_NOT_SUPPORTED (the declared country or the network's), AGE_REQUIREMENT_NOT_MET (under 13, or under the app's or the country's minimum age), LEGAL_ACCEPTANCE_REQUIRED (acceptedDocuments misses one in extensions.missingDocuments), and ORG_LEGAL_ACCEPTANCE_REQUIRED for an organization that has not accepted the Org-Managed Players Addendum. The accepted documents are recorded with method IN_GAME. Public; rate-limited per address. */
5318
+ /** Sign a Minecraft player in to one of Crowded Kingdoms' own apps, as a player its organization manages (no Crowded Kingdoms account): the same app token mintManagedPlayerToken returns, refreshed with refreshAppToken. ck-api asks Mojang whether `username` joined with `serverId` (minecraftChallenge) and admits the player only on a yes; the player is identified by its Minecraft account, not its name. Refusals: MINECRAFT_VERIFICATION_FAILED (extensions.reason: malformed, forged, expired, not_joined, replayed: start again from minecraftChallenge), MINECRAFT_VERIFICATION_UNAVAILABLE (Mojang did not answer; retryable), TERRITORY_NOT_SUPPORTED (the declared country, or the network's country or region), AGE_REQUIREMENT_NOT_MET (under 13, or under the app's or the country's minimum age; it names no age, and the same Minecraft account is then refused for 24 hours whatever it sends), LEGAL_ACCEPTANCE_REQUIRED (acceptedDocuments misses one in extensions.missingDocuments), and ORG_LEGAL_ACCEPTANCE_REQUIRED for an organization that has not accepted the Org-Managed Players Addendum. The age is checked once Mojang has confirmed the account, and the birth month of its first admitted sign-in stays its own: a later birthDate is ignored. The accepted documents are recorded with method IN_GAME. Public; rate-limited per address. */
5311
5319
  signInWithMinecraft: AppTokenResponse;
5312
5320
  /** Complete a federated sign-in from the provider callback (code + state). Returns a session AuthResponse, creating/linking the account by provider identity. Public; first-party origins only (HOSTED_SIGN_IN_REQUIRED otherwise). */
5313
5321
  socialLoginComplete: AuthResponse;
@@ -5653,6 +5661,10 @@ export type MutationEndManagedPlayerSessionsArgs = {
5653
5661
  export type MutationEndTierAccessSessionsArgs = {
5654
5662
  userIds: Array<Scalars['BigInt']['input']>;
5655
5663
  };
5664
+ export type MutationEraseAccountArgs = {
5665
+ reason: Scalars['String']['input'];
5666
+ userId: Scalars['BigInt']['input'];
5667
+ };
5656
5668
  export type MutationEscalateSafetyReportArgs = {
5657
5669
  appId: Scalars['BigInt']['input'];
5658
5670
  ncmecReportId: Scalars['String']['input'];
@@ -5857,6 +5869,11 @@ export type MutationPublishAppToSharedArgs = {
5857
5869
  export type MutationRecordDeveloperConsentsArgs = {
5858
5870
  acceptDeveloperTerms: Scalars['Boolean']['input'];
5859
5871
  };
5872
+ export type MutationRecordParentalConsentWithdrawalArgs = {
5873
+ appId: Scalars['BigInt']['input'];
5874
+ feature: ParentalConsentFeature;
5875
+ userId: Scalars['BigInt']['input'];
5876
+ };
5860
5877
  export type MutationRecordPlayerAgeArgs = {
5861
5878
  input: RecordPlayerAgeInput;
5862
5879
  };
@@ -6701,6 +6718,22 @@ export declare enum ParentalConsentRequestStatus {
6701
6718
  NotRequired = "NOT_REQUIRED",
6702
6719
  Requested = "REQUESTED"
6703
6720
  }
6721
+ /** The answer to recordParentalConsentWithdrawal: the consent it ended, if one was held, and the player’s communication settings recomputed after it. */
6722
+ export type ParentalConsentWithdrawal = {
6723
+ __typename?: 'ParentalConsentWithdrawal';
6724
+ /** The app. */
6725
+ appId: Scalars['BigInt']['output'];
6726
+ /** The medium the parent withdrew. */
6727
+ feature: ParentalConsentFeature;
6728
+ /** When the consent ended (now, when withdrawn is true); null when none was ever held. */
6729
+ revokedAt: Maybe<Scalars['DateTime']['output']>;
6730
+ /** The player’s settings in the app after the recompute, which the realtime servers read. */
6731
+ settings: CommSettings;
6732
+ /** The player. */
6733
+ userId: Scalars['BigInt']['output'];
6734
+ /** True when a consent was held and has now ended; false when none was held (nothing changed but the recompute). */
6735
+ withdrawn: Scalars['Boolean']['output'];
6736
+ };
6704
6737
  /** A single inbound payment-provider webhook event from the reconciliation audit log. */
6705
6738
  export type PaymentEventRecord = {
6706
6739
  __typename?: 'PaymentEventRecord';
@@ -7366,6 +7399,8 @@ export type Query = {
7366
7399
  checkouts: CheckoutsPage;
7367
7400
  /** Cross-tenant payments audit across all users, orgs, and apps (newest first), with optional filtering. Restricted to super admins; requests from non-super-admins are rejected. For a caller's own history use `myCheckoutsConnection` instead. Relay cursor connection; prefer this over the offset-based checkouts. */
7368
7401
  checkoutsConnection: CheckoutsConnection;
7402
+ /** OPERATOR: CK's child-safety queue (decision 41), the CHILD_SAFETY reports of every app, open ones first, then the newest; only those with the given status if one is given. At most `first` (default 50, at most 200). Each report is also announced to CK's abuse inbox when it is filed. The app's own moderators still read and decide it (safetyReports, resolveSafetyReport, escalateSafetyReport); operators read its evidence with exportPlayerData. Send the identity session; any datacenter answers. */
7403
+ childSafetyReports: Array<SafetyReport>;
7369
7404
  /** Contact requests waiting in the app: INCOMING ones other players sent the caller, then OUTGOING ones it sent, newest first. Game plane: send the app-scoped token for this app to the app’s datacenter. */
7370
7405
  contactRequests: Array<ContactRequest>;
7371
7406
  /** Operator only. The ledger invariant runs, newest first: whether the sums closed and, when they did not, which check failed and by how much. */
@@ -7498,9 +7533,9 @@ export type Query = {
7498
7533
  hostedGamePublishes: Array<HostedGamePublish>;
7499
7534
  /** RETIRED 2026-10-29: Crowded Kingdoms no longer hosts games and every tier runs with hosting off, so this answers []. Host your build on your own origin. The LIVE and LISTED hosted third-party games, for the Overworld lobby and the marketplace. PUBLIC. Empty when the tier does not host third-party games. Operators see every game with allHostedGames. */
7500
7535
  hostedGames: Array<HostedGame>;
7501
- /** The recorded inputs of one session, oldest first, each exactly as the client sent it (without its authentication tail). Read from the input log by the offset ranges its index holds, so inputs past the published retention are gone even while the session is still listed. With 'manage_apps' on the app you may read any session; with 'moderate_safety' (a moderator) only the sessions an open or escalated safety report covers (SafetyReport.sessions); anyone else may read only their own, and any other session answers NOT_FOUND. Every read of another player's session is audited. Game plane: send the app-scoped token for this app to the app's datacenter. Page with `first` (default 50, max 200) and `after`, the previous page's endCursor for this same session (a cursor from another session is BAD_USER_INPUT); a page can hold fewer than `first` inputs, or none, when it stopped at its time or scan limit, so keep paging while hasNextPage is true. An operation may select this field only once. A server runs one read per user (two per app and per org) at a time; a read over that share waits for the earlier one within its own few-second deadline, and a read whose request is closed stops. Errors: INPUT_LOG_UNAVAILABLE when input logging is not configured on this deployment, or this server may not read its log (do not retry); INPUT_LOG_RATE_LIMITED (429) when the wait for an earlier read ran out or left too little time to read, and INPUT_LOG_TEMPORARILY_UNAVAILABLE (503) when the log cannot be read just now, both with extensions.retryable: retry shortly with the same cursor. A read whose request closed stops as INPUT_LOG_READ_ABORTED (499), which nobody receives. */
7536
+ /** The recorded inputs of one session, oldest first, each exactly as the client sent it (without its authentication tail): a session holds only what its own player sent. Read from the input log by the offset ranges its index holds, so inputs past the published retention are gone even while the session is still listed. With 'moderate_safety' (a moderator, or the organization's admins) you may read the sessions an open or escalated safety report covers (SafetyReport.sessions); every player may read their own; any other session answers NOT_FOUND. With 'manage_apps' you may also read any session of an app for adults, but not on an app that admits players under 18 (the safety log), nor a session of a player under 18 anywhere. Every read of another player's session is audited, and so is every read on an app that admits players under 18, your own included. Game plane: send the app-scoped token for this app to the app's datacenter. Page with `first` (default 50, max 200) and `after`, the previous page's endCursor for this same session (a cursor from another session is BAD_USER_INPUT); a page can hold fewer than `first` inputs, or none, when it stopped at its time or scan limit, so keep paging while hasNextPage is true. An operation may select this field only once. A server runs one read per user (two per app and per org) at a time; a read over that share waits for the earlier one within its own few-second deadline, and a read whose request is closed stops. Errors: INPUT_LOG_UNAVAILABLE when input logging is not configured on this deployment, or this server may not read its log (do not retry); INPUT_LOG_RATE_LIMITED (429) when the wait for an earlier read ran out or left too little time to read, and INPUT_LOG_TEMPORARILY_UNAVAILABLE (503) when the log cannot be read just now, both with extensions.retryable: retry shortly with the same cursor. A read whose request closed stops as INPUT_LOG_READ_ABORTED (499), which nobody receives. */
7502
7537
  inputLogMessages: InputLogMessageConnection;
7503
- /** Recorded client sessions of an app with replay logging on (App.replayLoggingEnabled), newest first. With 'manage_apps' on the app you see every session and may filter by userId; anyone else sees only their own, and asking for another user's is FORBIDDEN. Game plane: send the app-scoped token for this app to the app's datacenter. Page with `first` (default 50, max 200) and `after`. INPUT_LOG_UNAVAILABLE when input logging is not configured on this deployment. */
7538
+ /** Recorded client sessions of an app with replay logging on (App.replayLoggingEnabled), newest first. On an app for adults (effective minimum age 18), 'manage_apps' on the app sees every session but a player under 18's and may filter by userId; anyone else sees only their own, and asking for another user's is FORBIDDEN. On an app that admits players under 18 (the safety log), 'manage_apps' gives nothing more: 'moderate_safety' holders (moderators, and the organization's admins) see only the sessions an open or escalated safety report covers (filter.userId narrows them; your own userId lists your own), every other player sees only their own, asking for another user's is FORBIDDEN, and every listing is audited. Game plane: send the app-scoped token for this app to the app's datacenter. Page with `first` (default 50, max 200) and `after`. INPUT_LOG_UNAVAILABLE when input logging is not configured on this deployment. */
7504
7539
  inputLogSessions: InputLogSessionConnection;
7505
7540
  /** OPERATOR: legal holds, newest first (at most 500), on one organization or account if given; only the ones that apply now unless includeReleased. */
7506
7541
  legalHolds: Array<LegalHold>;
@@ -7649,7 +7684,7 @@ export type Query = {
7649
7684
  teamRoles: Array<GroupRole>;
7650
7685
  /** List all active teams in an app (not just the caller's). */
7651
7686
  teams: Array<Group>;
7652
- /** The countries Crowded Kingdoms lists, by code: those it does not serve ('blocked': sign-up and play refused with TERRITORY_NOT_SUPPORTED, by the country a player gives or connects from) and those with a minimum age above 13. A country not listed is open at the platform's minimum. Public, so a sign-up form can say so before an account exists. */
7687
+ /** The countries Crowded Kingdoms lists, by code, then the regions it lists (regionCode, ISO 3166-2): those it does not serve ('blocked': sign-up and play refused with TERRITORY_NOT_SUPPORTED, by the country a player gives or the country and region it connects from) and those with a minimum age above 13. A country not listed is open at the platform's minimum. A country with a region listed is checked by region, and a connection from it whose region cannot be told is refused. Public, so a sign-up form can say so before an account exists. */
7653
7688
  territoryPolicies: Array<TerritoryPolicy>;
7654
7689
  /** OPERATOR: who on this tier would be refused -- counts, a page of refused accounts with what they hold, and organizations with no admitted member. Reads every account; for review, not for polling. Refused on prod. */
7655
7690
  tierAccessInventory: TierAccessInventory;
@@ -7871,6 +7906,10 @@ export type QueryCheckoutsConnectionArgs = {
7871
7906
  filter?: InputMaybe<CheckoutFilterInput>;
7872
7907
  first?: InputMaybe<Scalars['Int']['input']>;
7873
7908
  };
7909
+ export type QueryChildSafetyReportsArgs = {
7910
+ first?: InputMaybe<Scalars['Int']['input']>;
7911
+ status?: InputMaybe<SafetyReportStatus>;
7912
+ };
7874
7913
  export type QueryContactRequestsArgs = {
7875
7914
  appId: Scalars['BigInt']['input'];
7876
7915
  };
@@ -8443,7 +8482,7 @@ export type RegisterUserInput = {
8443
8482
  acceptLegal?: InputMaybe<Scalars['Boolean']['input']>;
8444
8483
  /** True when the player attests they are at least 18, or the age of majority where they live if that is higher. Same requirement as acceptLegal while the platform uses the attestation: required on a browser signup, optional when the request has no Origin. Ignored once the platform asks for birthDate instead. */
8445
8484
  attestAgeOfMajority?: InputMaybe<Scalars['Boolean']['input']>;
8446
- /** Birth date, YYYY-MM-DD (YYYY-MM is accepted too); only the year and month are kept, and the age is counted from the last day of that month. Sent with country. Required on a browser signup once the platform admits players under 18 (AGE_REQUIRED without it); a request with no Origin may omit it and gives it later with recordPlayerAge. Under 13, or under the minimum age where the player is, the signup is refused with AGE_REQUIREMENT_NOT_MET and no account is made. */
8485
+ /** Birth date, YYYY-MM-DD (YYYY-MM is accepted too); only the year and month are kept, and the age is counted from the last day of that month. Sent with country. Required on a browser signup once the platform admits players under 18 (AGE_REQUIRED without it); a request with no Origin may omit it and gives it later with recordPlayerAge. Under 13, or under the minimum age where the player is, the signup is refused with AGE_REQUIREMENT_NOT_MET (it names no age) and no account is made; for 24 hours afterwards the same client (address and user agent) is refused AGE_REQUIREMENT_NOT_MET whatever it sends. */
8447
8486
  birthDate?: InputMaybe<Scalars['String']['input']>;
8448
8487
  /** The country the player lives in, ISO 3166-1 alpha-2 (such as US); required with birthDate. A country Crowded Kingdoms does not serve, declared or detected from the network address, is refused with TERRITORY_NOT_SUPPORTED before an account exists. */
8449
8488
  country?: InputMaybe<Scalars['String']['input']>;
@@ -9185,7 +9224,7 @@ export type SetTeamPolicyInput = {
9185
9224
  /** Optional cap on members per team (null = unlimited). */
9186
9225
  maxMembers?: InputMaybe<Scalars['Int']['input']>;
9187
9226
  };
9188
- /** An operator’s change to one country’s policy. */
9227
+ /** An operator’s change to the policy of one country, or of one of its regions. */
9189
9228
  export type SetTerritoryPolicyInput = {
9190
9229
  /** ISO 3166-1 alpha-2 country code. */
9191
9230
  countryCode: Scalars['String']['input'];
@@ -9193,6 +9232,8 @@ export type SetTerritoryPolicyInput = {
9193
9232
  minAge?: InputMaybe<Scalars['Int']['input']>;
9194
9233
  /** Why, for the record (at most 500 characters). */
9195
9234
  reason: Scalars['String']['input'];
9235
+ /** ISO 3166-2 code of a region of countryCode (such as UA-43) to set that region's rule instead of the country's. Listing a region makes its country checked by region. */
9236
+ regionCode?: InputMaybe<Scalars['String']['input']>;
9196
9237
  /** 'open' or 'blocked'. */
9197
9238
  status: Scalars['String']['input'];
9198
9239
  };
@@ -9221,7 +9262,7 @@ export type SignInWithMinecraftInput = {
9221
9262
  acceptedDocuments: Array<AcceptedDocumentInput>;
9222
9263
  /** The app (BigInt as a decimal string): the one minecraftChallenge was asked for. */
9223
9264
  appId: Scalars['BigInt']['input'];
9224
- /** The player’s birth date, YYYY-MM-DD (YYYY-MM is accepted too), from the mod’s age screen. Only the age bracket is kept, counted from the last day of the month. */
9265
+ /** The player’s birth date, YYYY-MM or YYYY-MM-DD, from the mod’s age screen; the age is counted from the last day of the month. Only the year and month of the first admitted sign-in are kept, and they decide the account’s age from then on: a later sign-in’s birthDate is not used. */
9225
9266
  birthDate: Scalars['String']['input'];
9226
9267
  /** The country the player lives in: ISO 3166-1 alpha-2, such as US. */
9227
9268
  country: Scalars['String']['input'];
@@ -9310,13 +9351,15 @@ export type TeleportResponse = {
9310
9351
  /** True when the teleport is authorized/accepted; false otherwise (inspect errorCode for the reason). */
9311
9352
  success: Scalars['Boolean']['output'];
9312
9353
  };
9313
- /** A country Crowded Kingdoms lists: 'blocked' refuses its players (TERRITORY_NOT_SUPPORTED), and minAge raises the youngest age admitted there. A country not listed is open at the platform's minimum. */
9354
+ /** A country, or a region of one, that Crowded Kingdoms lists: 'blocked' refuses its players (TERRITORY_NOT_SUPPORTED), and minAge raises the youngest age admitted there. A country not listed is open at the platform's minimum. A country with a region listed is checked by region: a connection from it whose region cannot be told is refused, and so is an organization's player there sent without a region. */
9314
9355
  export type TerritoryPolicy = {
9315
9356
  __typename?: 'TerritoryPolicy';
9316
9357
  /** ISO 3166-1 alpha-2 country code, such as KR. */
9317
9358
  countryCode: Scalars['String']['output'];
9318
9359
  /** The youngest age admitted in the country (13 to 18); the platform's and the app's minimums still apply when higher. */
9319
9360
  minAge: Scalars['Int']['output'];
9361
+ /** ISO 3166-2 code of the region this rule is for, such as UA-43; null for the country's own rule. */
9362
+ regionCode: Maybe<Scalars['String']['output']>;
9320
9363
  /** 'open' or 'blocked'. */
9321
9364
  status: Scalars['String']['output'];
9322
9365
  };