@crowdedkingdoms/crowdyjs 18.33.0-test.1 → 18.34.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
@@ -1757,10 +1757,14 @@ be before:
1757
1757
  2. **Not a data allowance.** The monthly fee buys capacity, not volume, and is
1758
1758
  charged *in addition to* metered usage. Reserving 5 MB/s does not make the
1759
1759
  first 5 MB/s free.
1760
- 3. **Not the way to lift the free-tier cap.** Unfunded free apps are shaped at
1761
- roughly 1 MB/s. Funding the org wallet or enabling auto-billing lifts that;
1762
- reserving does not. Until 2026-09-01 a reservation did double duty as a
1763
- rate-limit bypass, which is why the old schema descriptions said so.
1760
+ 3. **Not the way to lift the free-tier cap.** When this release shipped,
1761
+ unfunded free apps were shaped at roughly 1 MB/s; funding the org wallet or
1762
+ enabling auto-billing lifted that, and reserving did not. Until 2026-09-01 a
1763
+ reservation did double duty as a rate-limit bypass, which is why the old
1764
+ schema descriptions said so. Since 2026-11-09 CK shapes no app. Instead, it
1765
+ denies an unfunded app that uses more of a meter than its organization's free
1766
+ allowance has left (`insufficient_funds`), within about a minute; see
1767
+ [What "access denied" means](https://docs.crowdedkingdoms.com/management-api/shared-environment#what-access-denied-means).
1764
1768
 
1765
1769
  ## Also
1766
1770
 
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * GENERATED — do not edit. The operator tooling's
3
- * `sync-client-origins.mjs --write --tier test` writes this file, and
3
+ * `sync-client-origins.mjs --write --tier dev` writes this file, and
4
4
  * `check-sdk-default-origin.mjs` refuses it when it names the wrong tier or a
5
5
  * host that declaration does not carry. Regenerate; never hand-edit.
6
6
  *
@@ -10,14 +10,14 @@
10
10
  * than no default at all. Every fallback this SDK ever removed named a host that
11
11
  * was already dead. A generated file plus a gate is what makes this one different.
12
12
  *
13
- * Source: the operator's per-tier public CK API origin declaration, tier 'test'
13
+ * Source: the operator's per-tier public CK API origin declaration, tier 'dev'
14
14
  */
15
15
  /** The tier this build of the SDK is published for. */
16
- export declare const CROWDY_DEFAULT_TIER = "test";
16
+ export declare const CROWDY_DEFAULT_TIER = "dev";
17
17
  /** The public CK API origin for that tier. */
18
- export declare const CROWDY_DEFAULT_HTTP_ORIGIN = "https://ck.test.crowdedkingdoms.com";
18
+ export declare const CROWDY_DEFAULT_HTTP_ORIGIN = "https://ck.dev.crowdedkingdoms.com";
19
19
  /** The same host over WebSocket. A scheme is composed; a hostname is looked up. */
20
- export declare const CROWDY_DEFAULT_WS_ORIGIN = "wss://ck.test.crowdedkingdoms.com";
20
+ export declare const CROWDY_DEFAULT_WS_ORIGIN = "wss://ck.dev.crowdedkingdoms.com";
21
21
  /** The bare hostname, for callers that need to compare rather than dial. */
22
- export declare const CROWDY_DEFAULT_HOST = "ck.test.crowdedkingdoms.com";
22
+ export declare const CROWDY_DEFAULT_HOST = "ck.dev.crowdedkingdoms.com";
23
23
  //# sourceMappingURL=default-origin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"default-origin.d.ts","sourceRoot":"","sources":["../src/default-origin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,uDAAuD;AACvD,eAAO,MAAM,mBAAmB,SAAS,CAAC;AAE1C,8CAA8C;AAC9C,eAAO,MAAM,0BAA0B,wCAAwC,CAAC;AAEhF,mFAAmF;AACnF,eAAO,MAAM,wBAAwB,sCAAsC,CAAC;AAE5E,4EAA4E;AAC5E,eAAO,MAAM,mBAAmB,gCAAgC,CAAC"}
1
+ {"version":3,"file":"default-origin.d.ts","sourceRoot":"","sources":["../src/default-origin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,uDAAuD;AACvD,eAAO,MAAM,mBAAmB,QAAQ,CAAC;AAEzC,8CAA8C;AAC9C,eAAO,MAAM,0BAA0B,uCAAuC,CAAC;AAE/E,mFAAmF;AACnF,eAAO,MAAM,wBAAwB,qCAAqC,CAAC;AAE3E,4EAA4E;AAC5E,eAAO,MAAM,mBAAmB,+BAA+B,CAAC"}
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * GENERATED — do not edit. The operator tooling's
3
- * `sync-client-origins.mjs --write --tier test` writes this file, and
3
+ * `sync-client-origins.mjs --write --tier dev` writes this file, and
4
4
  * `check-sdk-default-origin.mjs` refuses it when it names the wrong tier or a
5
5
  * host that declaration does not carry. Regenerate; never hand-edit.
6
6
  *
@@ -10,13 +10,13 @@
10
10
  * than no default at all. Every fallback this SDK ever removed named a host that
11
11
  * was already dead. A generated file plus a gate is what makes this one different.
12
12
  *
13
- * Source: the operator's per-tier public CK API origin declaration, tier 'test'
13
+ * Source: the operator's per-tier public CK API origin declaration, tier 'dev'
14
14
  */
15
15
  /** The tier this build of the SDK is published for. */
16
- export const CROWDY_DEFAULT_TIER = 'test';
16
+ export const CROWDY_DEFAULT_TIER = 'dev';
17
17
  /** The public CK API origin for that tier. */
18
- export const CROWDY_DEFAULT_HTTP_ORIGIN = 'https://ck.test.crowdedkingdoms.com';
18
+ export const CROWDY_DEFAULT_HTTP_ORIGIN = 'https://ck.dev.crowdedkingdoms.com';
19
19
  /** The same host over WebSocket. A scheme is composed; a hostname is looked up. */
20
- export const CROWDY_DEFAULT_WS_ORIGIN = 'wss://ck.test.crowdedkingdoms.com';
20
+ export const CROWDY_DEFAULT_WS_ORIGIN = 'wss://ck.dev.crowdedkingdoms.com';
21
21
  /** The bare hostname, for callers that need to compare rather than dial. */
22
- export const CROWDY_DEFAULT_HOST = 'ck.test.crowdedkingdoms.com';
22
+ export const CROWDY_DEFAULT_HOST = 'ck.dev.crowdedkingdoms.com';
@@ -49,7 +49,10 @@ import type { AppPauseReason } from '../errors.js';
49
49
  */
50
50
  export interface AppRuntimeGate {
51
51
  status: 'ACTIVE' | 'GRACE' | 'DENIED' | 'SUSPENDED' | (string & {});
52
- /** `insufficient_funds`, `spend_cap` or `subscription_lapsed`; null while ACTIVE. */
52
+ /**
53
+ * `insufficient_funds`, `spend_cap`, `subscription_lapsed` or `payment_method_required` (an
54
+ * open set); null while ACTIVE.
55
+ */
53
56
  reason: AppPauseReason | null;
54
57
  }
55
58
  export interface AppTokenResponse {
@@ -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,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,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AC,MAAM,CAAC;IAoClB;;;;;OAKG;IACG,aAAa,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC;CAmBvE"}
package/dist/errors.d.ts CHANGED
@@ -267,6 +267,11 @@ export declare const ACCOUNT_BLOCKED_CODE = "ACCOUNT_BLOCKED";
267
267
  * request, an add or an invite; see {@link groupMemberBannedOf}.
268
268
  */
269
269
  export declare const GROUP_MEMBER_BANNED_CODE = "GROUP_MEMBER_BANNED";
270
+ /**
271
+ * `extensions.code` for "a channel or team cap refuses this" (HTTP 409), on a join, an add or a
272
+ * creation (ck-api v2.77.0); see {@link groupLimitReachedOf}.
273
+ */
274
+ export declare const GROUP_LIMIT_REACHED_CODE = "GROUP_LIMIT_REACHED";
270
275
  /**
271
276
  * `extensions.code` for "an org-managed player cannot do this" (HTTP 403): it has no wallet,
272
277
  * and its mods are refused where its organization has not switched them on for the app; see
@@ -358,9 +363,12 @@ export interface MissingLegalDocument {
358
363
  }
359
364
  /**
360
365
  * Why an app is paused, as `extensions.reason` on `APP_PAUSED` and
361
- * `AppRuntimeGate.reason` carry it. Open union: the server may add one.
366
+ * `AppRuntimeGate.reason` carry it. `payment_method_required` (ck-api v2.76.0): the
367
+ * environment asks an organization for a saved card before its apps run, and the app's
368
+ * organization has none and no exemption (from v2.77.0 wallet funds do not count). Open union:
369
+ * the server may add one.
362
370
  */
363
- export type AppPauseReason = 'insufficient_funds' | 'spend_cap' | 'subscription_lapsed' | (string & {});
371
+ export type AppPauseReason = 'insufficient_funds' | 'spend_cap' | 'subscription_lapsed' | 'payment_method_required' | (string & {});
364
372
  /**
365
373
  * An `ACTOR_EXISTS` refusal (creating an actor whose uuid is taken), or `null`.
366
374
  * `ownedByCaller` is `extensions.ownedByCaller`: `true` means the actor is
@@ -393,6 +401,17 @@ export declare function accountBlockedOf(value: unknown): {
393
401
  } | null;
394
402
  /** Whether an error is a `GROUP_MEMBER_BANNED` refusal (HTTP 403); only an unban lifts it. */
395
403
  export declare function groupMemberBannedOf(value: unknown): boolean;
404
+ /**
405
+ * A `GROUP_LIMIT_REACHED` refusal (HTTP 409), or `null`: the app's policy for the group type
406
+ * (`channelPolicy` / `teamPolicy`) caps it. `limit` is `maxMembers` (the group is full) or
407
+ * `maxGroupsPerUser` (the user is in as many groups of the type as the app allows), and `max`
408
+ * the cap; either is `null` when the server did not say. Not fixed by retrying: wait for a member
409
+ * to leave, leave a group, or raise the cap.
410
+ */
411
+ export declare function groupLimitReachedOf(value: unknown): {
412
+ limit: 'maxMembers' | 'maxGroupsPerUser' | (string & {}) | null;
413
+ max: number | null;
414
+ } | null;
396
415
  /**
397
416
  * Whether an error is a `MANAGED_PLAYER_NOT_ALLOWED` refusal (HTTP 403): an org-managed
398
417
  * player asked for a wallet, or for a mod, a Crowdy Studio write or the Studio agent in an app
@@ -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,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;IACpC;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACtC;AAED,oEAAoE;AACpE,MAAM,WAAW,kBAAkB;IACjC,4CAA4C;IAC5C,OAAO,EAAE,MAAM,CAAC;IAChB,uEAAuE;IACvE,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;;;GAIG;AACH,qBAAa,WAAY,SAAQ,KAAK;IACpC,yDAAyD;IACzD,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;g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AO,GAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,OAAO,CAAA;KAAO;CAKnG;AAED;;;;;GAKG;AACH,qBAAa,mBAAoB,SAAQ,WAAW;CAAG"}
package/dist/errors.js CHANGED
@@ -263,6 +263,11 @@ export const ACCOUNT_BLOCKED_CODE = 'ACCOUNT_BLOCKED';
263
263
  * request, an add or an invite; see {@link groupMemberBannedOf}.
264
264
  */
265
265
  export const GROUP_MEMBER_BANNED_CODE = 'GROUP_MEMBER_BANNED';
266
+ /**
267
+ * `extensions.code` for "a channel or team cap refuses this" (HTTP 409), on a join, an add or a
268
+ * creation (ck-api v2.77.0); see {@link groupLimitReachedOf}.
269
+ */
270
+ export const GROUP_LIMIT_REACHED_CODE = 'GROUP_LIMIT_REACHED';
266
271
  /**
267
272
  * `extensions.code` for "an org-managed player cannot do this" (HTTP 403): it has no wallet,
268
273
  * and its mods are refused where its organization has not switched them on for the app; see
@@ -392,6 +397,23 @@ export function accountBlockedOf(value) {
392
397
  export function groupMemberBannedOf(value) {
393
398
  return errorWithCode(value, GROUP_MEMBER_BANNED_CODE) !== null;
394
399
  }
400
+ /**
401
+ * A `GROUP_LIMIT_REACHED` refusal (HTTP 409), or `null`: the app's policy for the group type
402
+ * (`channelPolicy` / `teamPolicy`) caps it. `limit` is `maxMembers` (the group is full) or
403
+ * `maxGroupsPerUser` (the user is in as many groups of the type as the app allows), and `max`
404
+ * the cap; either is `null` when the server did not say. Not fixed by retrying: wait for a member
405
+ * to leave, leave a group, or raise the cap.
406
+ */
407
+ export function groupLimitReachedOf(value) {
408
+ const entry = errorWithCode(value, GROUP_LIMIT_REACHED_CODE);
409
+ if (!entry)
410
+ return null;
411
+ const { limit, max } = entry.extensions ?? {};
412
+ return {
413
+ limit: typeof limit === 'string' && limit.length > 0 ? limit : null,
414
+ max: typeof max === 'number' && Number.isFinite(max) ? max : null,
415
+ };
416
+ }
395
417
  /**
396
418
  * Whether an error is a `MANAGED_PLAYER_NOT_ALLOWED` refusal (HTTP 403): an org-managed
397
419
  * player asked for a wallet, or for a mod, a Crowdy Studio write or the Studio agent in an app
@@ -892,6 +892,16 @@ export declare enum AllowancePeriod {
892
892
  Hour = "HOUR",
893
893
  Month = "MONTH"
894
894
  }
895
+ /** The organization allowance pool: from the first calendar month starting on or after effectiveFrom, an organization's apps share one free allowance per meter, factor times one app's allowance on the rate card, instead of each app having its own. One app may use the whole pool. */
896
+ export type AllowancePoolSettings = {
897
+ __typename?: 'AllowancePoolSettings';
898
+ /** The pool applies to calendar months starting on or after this instant; earlier months keep an allowance per app. */
899
+ effectiveFrom: Scalars['DateTime']['output'];
900
+ /** How many apps' allowances the pool is worth: each meter's pool is this times the rate card's allowance for one app. */
901
+ factor: Scalars['Int']['output'];
902
+ /** Whether the current calendar month is pooled on this tier (its start is on or after effectiveFrom). */
903
+ pooledNow: Scalars['Boolean']['output'];
904
+ };
895
905
  /** A publishable application (game/experience) owned by an organization. Its discoverability is controlled by visibility and its lifecycle by status. */
896
906
  export type App = {
897
907
  __typename?: 'App';
@@ -962,7 +972,7 @@ export type App = {
962
972
  reservedGraphqlOpsPerSec: Scalars['BigInt']['output'];
963
973
  /** Reserved realtime (UDP) capacity in bytes/s. Guarantees a minimum the platform provisions for you; it is not a limit on what you may send. Billed monthly whether or not used, IN ADDITION TO metered usage -- a reservation buys capacity, not volume, so reserving 5 MB/s does not make the first 5 MB/s free. Independent of reservedGraphqlOpsPerSec. 0 = none. */
964
974
  reservedUdpBytesPerSec: Scalars['BigInt']['output'];
965
- /** When runtimeStatus is not "active", why the runtime is gated: "insufficient_funds", "spend_cap", or "subscription_lapsed". Null when active. Historical rows may carry "free_allowance", which the gate no longer produces -- an app over its allowance with no way to pay is denied as "insufficient_funds". */
975
+ /** When runtimeStatus is not "active", why the runtime is gated: "insufficient_funds", "spend_cap", "subscription_lapsed", or "payment_method_required" (the free-tier card requirement applies to the organization and it has no saved card and no exemption). Null when active. Historical rows may carry "free_allowance", which the gate no longer produces -- an app over its allowance with no way to pay is denied as "insufficient_funds". */
966
976
  runtimeDenialReason: Maybe<Scalars['String']['output']>;
967
977
  /** Shared-environment runtime gate, mirrored to the game DB and enforced by game-api + Buddy: "active", "grace", "denied", or "suspended". */
968
978
  runtimeStatus: Scalars['String']['output'];
@@ -1198,7 +1208,7 @@ export type AppRequiredDocumentInput = {
1198
1208
  /** The app's runtime gate as a player's client may read it. When status is not ACTIVE the app's realtime traffic and hubs are paused: replication delivers nothing and refuses sends with APP_PAUSED, and hub calls are refused. Clients should tell the player the world is paused rather than show an empty one. Readable with the player's own app token; carries no billing figures. */
1199
1209
  export type AppRuntimeGate = {
1200
1210
  __typename?: 'AppRuntimeGate';
1201
- /** Why the app is paused: insufficient_funds, spend_cap or subscription_lapsed. Null while ACTIVE. */
1211
+ /** Why the app is paused: insufficient_funds, spend_cap, subscription_lapsed or payment_method_required. Null while ACTIVE. */
1202
1212
  reason: Maybe<Scalars['String']['output']>;
1203
1213
  /** ACTIVE when the app runs; anything else means paused. */
1204
1214
  status: AppRuntimeStatus;
@@ -1218,7 +1228,7 @@ export type AppRuntimeState = {
1218
1228
  deploymentTarget: AppDeploymentTarget;
1219
1229
  /** Per-app hourly spend cap in cents (set via setAppSpendCaps). Null = no cap. */
1220
1230
  hourlyLimitCents: Maybe<Scalars['BigInt']['output']>;
1221
- /** insufficient_funds | spend_cap | subscription_lapsed when not active. Historical rows may carry free_allowance, which the gate no longer produces. */
1231
+ /** insufficient_funds | spend_cap | subscription_lapsed | payment_method_required when not active. payment_method_required: the free-tier card requirement (freeTierCardRequirement) applies to the organization, and it has no saved card and no exemption. Historical rows may carry free_allowance, which the gate no longer produces. */
1222
1232
  runtimeDenialReason: Maybe<Scalars['String']['output']>;
1223
1233
  /** Current runtime gate decision (active / grace / denied / suspended). */
1224
1234
  runtimeStatus: AppRuntimeStatus;
@@ -1288,6 +1298,8 @@ export type AppTokenResponse = {
1288
1298
  /** End-of-month egress projection for one shared app from linear extrapolation of calendar-month usage so far. */
1289
1299
  export type AppUsageProjection = {
1290
1300
  __typename?: 'AppUsageProjection';
1301
+ /** True when this month's free allowance is the organization's pool, shared by all its apps (allowancePool), rather than this app's own. */
1302
+ allowancePooled: Scalars['Boolean']['output'];
1291
1303
  /** App id (as a string). */
1292
1304
  appId: Scalars['String']['output'];
1293
1305
  /** Egress bytes recorded so far this calendar month (from app_monthly_egress). Egress only -- bytes the service delivered to clients, measured as wire bytes at the network interface. Ingress is metered separately and does not count toward this figure or the allowance it is compared against. */
@@ -1300,7 +1312,7 @@ export type AppUsageProjection = {
1300
1312
  dataOutRateBands: Maybe<Array<DataOutRateBand>>;
1301
1313
  /** Fractional UTC days elapsed since the calendar month started. */
1302
1314
  daysElapsed: Scalars['Float']['output'];
1303
- /** Per-app free monthly egress allowance in bytes (5 decimal GB). */
1315
+ /** This app's free monthly egress allowance in bytes: 5 decimal GB of its own, or, in a month its organization's allowance is pooled (allowancePooled), what it holds of the pool plus what the pool has left. */
1304
1316
  freeAllowanceBytes: Scalars['String']['output'];
1305
1317
  /** Stored input logs this calendar month so far, in byte-hours (input_log_storage_byte_hours, which has no free allowance). Recordings keep accruing after replay logging is turned off, until they age out at the end of the retention; 0 when nothing was held this month. */
1306
1318
  inputLogByteHours: Scalars['String']['output'];
@@ -1622,6 +1634,18 @@ export type BuddyLiveRates = {
1622
1634
  /** Timestamp of the heartbeat these rates came from. */
1623
1635
  updatedAt: Scalars['DateTime']['output'];
1624
1636
  };
1637
+ /** An organization the free-tier card requirement never refuses. */
1638
+ export type CardRequirementExemption = {
1639
+ __typename?: 'CardRequirementExemption';
1640
+ createdAt: Scalars['DateTime']['output'];
1641
+ /** The operator who exempted it. */
1642
+ exemptedBy: Maybe<Scalars['BigInt']['output']>;
1643
+ orgId: Scalars['BigInt']['output'];
1644
+ /** The organization's name. */
1645
+ orgName: Maybe<Scalars['String']['output']>;
1646
+ /** Why it is exempt. */
1647
+ reason: Scalars['String']['output'];
1648
+ };
1625
1649
  /** Channel audio from another member of a channel you belong to (party or guild voice), delivered over the udpNotifications subscription wherever you are. The payload is opaque to the server: your app (or an SDK voice helper) defines its format and codec. */
1626
1650
  export type ChannelAudioNotification = {
1627
1651
  __typename?: 'ChannelAudioNotification';
@@ -2263,7 +2287,7 @@ export type CreateChannelInput = {
2263
2287
  name: Scalars['String']['input'];
2264
2288
  };
2265
2289
  export type CreateCheckoutInput = {
2266
- /** Charge amount in minor currency units (cents) of `currency`, as a BigInt decimal string. Required for ORG_WALLET_TOPUP. */
2290
+ /** Charge amount in minor currency units (cents) of `currency`, as a BigInt decimal string. Required for ORG_WALLET_TOPUP and PLAYER_WALLET_TOPUP, and at least the wallet’s smallest top-up: 1000 ($10) for ORG_WALLET_TOPUP and 500 ($5) for PLAYER_WALLET_TOPUP (walletTopUpMinimums); less is refused with TOP_UP_BELOW_MINIMUM. */
2267
2291
  amountCents?: InputMaybe<Scalars['BigInt']['input']>;
2268
2292
  /** Target app (BigInt as a decimal string). Required for APP_ACCESS_PURCHASE and SHARED_APP_SUBSCRIPTION. */
2269
2293
  appId?: InputMaybe<Scalars['BigInt']['input']>;
@@ -3659,7 +3683,7 @@ export type ExecAppStatus = {
3659
3683
  __typename?: 'ExecAppStatus';
3660
3684
  /** The active version; null before the first deploy. */
3661
3685
  activeVersion: Maybe<Scalars['Int']['output']>;
3662
- /** Why the app is paused: insufficient_funds, spend_cap, subscription_lapsed or compute_budget. Null when it is not paused (or the manager predates reasons). */
3686
+ /** Why the app is paused: insufficient_funds, spend_cap, subscription_lapsed, payment_method_required or compute_budget. Null when it is not paused (or the manager predates reasons). */
3663
3687
  budgetPauseReason: Maybe<Scalars['String']['output']>;
3664
3688
  /** Paused while the app's runtime gate is not active (no funds, a spend cap, a lapsed subscription) or it is over its compute budget; it resumes by itself once the cause clears. */
3665
3689
  budgetPaused: Scalars['Boolean']['output'];
@@ -4129,6 +4153,16 @@ export type FreePlayWindowInfo = {
4129
4153
  /** ISO-8601 start time of the next free-play window, or null if none. */
4130
4154
  nextWindowStart: Maybe<Scalars['String']['output']>;
4131
4155
  };
4156
+ /** The free-tier card requirement on this tier: from requiredFrom, an organization's apps run only while the organization has a saved card (saving one charges nothing) or an exemption, whatever its wallet holds; otherwise they are paused with runtimeDenialReason payment_method_required. An organization created before requiredFrom is asked existingOrganizationGraceDays later. Organizations only; player wallets are not asked. */
4157
+ export type FreeTierCardRequirement = {
4158
+ __typename?: 'FreeTierCardRequirement';
4159
+ /** How many days after requiredFrom the requirement applies to an organization created before it. */
4160
+ existingOrganizationGraceDays: Scalars['Int']['output'];
4161
+ /** The instant the requirement applies from, for an organization created from then on. Null while it is off on this tier. */
4162
+ requiredFrom: Maybe<Scalars['DateTime']['output']>;
4163
+ /** Whether the requirement applies now to an organization created from requiredFrom on. */
4164
+ requiredNow: Scalars['Boolean']['output'];
4165
+ };
4132
4166
  /** Startup contract for browser game clients. Fetch this after login to initialize protocol/version checks and UDP proxy state in one round trip. */
4133
4167
  export type GameClientBootstrap = {
4134
4168
  __typename?: 'GameClientBootstrap';
@@ -5030,7 +5064,7 @@ export type Mutation = {
5030
5064
  createChannel: Group;
5031
5065
  /** Create a custom (non-system) channel role granting the given channel permission keys (e.g. send_messages for posting rights). Requires the 'manage_roles' channel permission (app admins bypass). */
5032
5066
  createChannelRole: GroupRole;
5033
- /** Creates a Checkout row, opens a hosted payment session with the selected provider, and returns the row with `externalUrl` set — redirect the user there to pay. Status starts PENDING and is reconciled to COMPLETED/FAILED later via provider webhooks (this call does not itself capture funds). The side effect applied on completion depends on `purpose` (e.g. ORG_WALLET_TOPUP credits the org wallet, APP_ACCESS_PURCHASE grants app access). Requires an authenticated user; ORG_WALLET_TOPUP additionally requires the 'manage_billing' org permission. Purposes DONATION and PROPERTY_TOKENS are rejected. Pass `input.idempotencyKey` to make retries safe (a replay returns the first checkout instead of opening a second provider session). */
5067
+ /** Creates a Checkout row, opens a hosted payment session with the selected provider, and returns the row with `externalUrl` set — redirect the user there to pay. Status starts PENDING and is reconciled to COMPLETED/FAILED later via provider webhooks (this call does not itself capture funds). The side effect applied on completion depends on `purpose` (e.g. ORG_WALLET_TOPUP credits the org wallet, APP_ACCESS_PURCHASE grants app access). Requires an authenticated user; ORG_WALLET_TOPUP additionally requires the 'manage_billing' org permission. A wallet top-up below the wallet's smallest top-up ($10 for ORG_WALLET_TOPUP, $5 for PLAYER_WALLET_TOPUP; walletTopUpMinimums) is refused with TOP_UP_BELOW_MINIMUM. Purposes DONATION and PROPERTY_TOKENS are rejected. Pass `input.idempotencyKey` to make retries safe (a replay returns the first checkout instead of opening a second provider session). */
5034
5068
  createCheckout: Checkout;
5035
5069
  /** Create a grid: a named 3D box of chunks that runtime/world (voxel) permissions are scoped to. The box must fit within one of the app's grid assignments (its buildable regions); it MAY be nested inside a broader containing grid such as the open-by-default world grid, but must not partially overlap a peer grid. Requires app-admin ('manage_apps'). Returns a hybrid response — on success `grid` is populated and `error` is NO_ERROR; on failure `grid` is null and `error` is a UDP-style error code (e.g. NO_MATCHING_GRID_ASSIGNMENT, GRID_OUTSIDE_ASSIGNMENT, GRID_OVERLAPS_EXISTING, GRID_ALREADY_EXISTS). */
5036
5070
  createGrid: CreateGridResponse;
@@ -5320,6 +5354,8 @@ export type Mutation = {
5320
5354
  sendVideoPacket: Scalars['Boolean']['output'];
5321
5355
  /** Send a single voxel (block) update for spatial replication to nearby chunks. Requires a bearer game token; opens a UDP proxy session automatically if none exists. Returns Boolean! that is true only when the datagram was ACCEPTED FOR SENDING to the game server — NOT confirmation that the world applied the change. There is NO separate per-request success response: the change fans out to nearby clients (the sender included) as a VoxelUpdateNotification carrying the same sequenceNumber (VoxelUpdateResponse is legacy and is never emitted). Failures arrive ASYNCHRONOUSLY as a GenericErrorResponse; both are correlated by the request sequenceNumber (correlation only — not an idempotency key; the server does not dedupe replays). Throws FORBIDDEN synchronously, before anything is sent, without the voxel edit permission updateVoxel checks for the chunk (app access, the tier's update_voxel_data, and update_voxel_data on the most specific grid covering the chunk), and for a chunk only the app's world grid covers while the app's wilderness is closed (App.wildernessWritesOpen false). */
5322
5356
  sendVoxelUpdate: Scalars['Boolean']['output'];
5357
+ /** Operator only. Moves the start of the organization allowance pool or its size on this tier, and records each change in billing_rate_changes (scope SHARED, metric allowance_pool). A month already settled keeps the allowance it was settled with. */
5358
+ setAllowancePool: AllowancePoolSettings;
5323
5359
  /** Creates or updates an app's monthly spend cap (idempotent upsert keyed by org + app) and returns the resulting budget. This only records the cap used to monitor/limit overspend; it does not move money, charge a card, or alter the wallet balance. Requires the 'manage_billing' app permission. */
5324
5360
  setAppBudget: AppBudget;
5325
5361
  /** Register/update an app's portal client settings (redirect_uris, client_type, launch_url). Requires manage_apps on the app and a SESSION token. */
@@ -5352,6 +5388,8 @@ export type Mutation = {
5352
5388
  setCrowdyStudioAgentPolicy: CrowdyStudioAgentPolicy;
5353
5389
  /** Sets the per-user early-access override flag, forcing early access on or off regardless of the global free-play window. Requires a super-admin bearer game token (and the management API enabled). */
5354
5390
  setEarlyAccessOverride: User;
5391
+ /** Operator only. Sets when the free-tier card requirement applies on this tier (or switches it off) and the grace for organizations created before then, and records each change in billing_rate_changes (scope SHARED, metric free_tier_card). The usage gate applies it within about a minute. */
5392
+ setFreeTierCardRequirement: FreeTierCardRequirement;
5355
5393
  /** Open a grid to every player: replace the permission keys it grants each player with active access to the app (writes the `grid_open_permissions` input table), then recompute the grid's materialized effective ACL for all of them. The most specific grid covering a chunk decides a voxel write there, so a zone inside the world grid that everyone may build in must grant `update_voxel_data` itself. The grid's limits still cap these keys; players who get access later receive them when they connect. Pass an empty array to close the grid. Refuses the app's world grid (already open), the four player-code keys, and a 33rd open grid in one app. Requires app-admin ('manage_apps'). */
5356
5394
  setGridOpenPermissions: GridOpenPermissions;
5357
5395
  /** Replace the whitelist of permission keys allowed on a grid (writes the `grid_permission_limits` input table), then recompute the grid's materialized effective ACL so any keys no longer on the whitelist are dropped for all users. Pass an empty array to remove all limits. Requires app-admin ('manage_apps'). DESTRUCTIVE: narrowing the whitelist can strip effective permissions from existing users on the grid. */
@@ -5370,6 +5408,8 @@ export type Mutation = {
5370
5408
  setOperator: User;
5371
5409
  /** OPERATOR ONLY. Sets or clears an organization billing exemption. When true, org-wallet debits and money-driven runtime denials are skipped; usage is still metered and every waived amount is written to org_billing_waivers. Does not waive player-wallet charges, failure breakers, or the per-minute compute budget. reason is required when setting true. SIDE EFFECT: re-evaluates the runtime gate for every shared app in the org, so clearing the exemption re-denies immediately instead of waiting for the next hourly tick. */
5372
5410
  setOrgBillingExempt: BillingExemptOrgType;
5411
+ /** Operator only. Exempts an organization from the free-tier card requirement, or ends its exemption, records the change in billing_rate_changes (scope SHARED, metric free_tier_card), and re-evaluates the organization's apps at once. For CK's own organizations; reason is required. */
5412
+ setOrgCardRequirementExempt: OrgCardRequirement;
5373
5413
  /** OPERATOR ONLY. Enable or disable an organization's org-managed players and set its limits. Disabling refuses new sign-ins; sessions already running last until they lapse (end them with endManagedPlayerSessions). Enabling does not accept the addendum: an admin of the organization does that (acceptManagedPlayerTerms). */
5374
5414
  setOrgManagedPlayerSettings: OrgManagedPlayerSettings;
5375
5415
  /** Super admin only. Freeze ('frozen') or unfreeze ('active') an organization platform-wide. A FROZEN organization grants its members NO org permission (super admins excepted, so it is reversible): they cannot spend its wallet, create or manage apps, or change members, and every such refusal names the freeze; its API tokens stop authenticating; the org itself still resolves by id and slug so Studio can show the state. Takes exactly 'active' or 'frozen'; 'retired' is refused in either direction — retirement is retireOrganization, which writes a tombstone. */
@@ -6121,6 +6161,9 @@ export type MutationSendVideoPacketArgs = {
6121
6161
  export type MutationSendVoxelUpdateArgs = {
6122
6162
  input: VoxelUpdateRequestInput;
6123
6163
  };
6164
+ export type MutationSetAllowancePoolArgs = {
6165
+ input: SetAllowancePoolInput;
6166
+ };
6124
6167
  export type MutationSetAppBudgetArgs = {
6125
6168
  appId: Scalars['BigInt']['input'];
6126
6169
  idempotencyKey?: InputMaybe<Scalars['String']['input']>;
@@ -6190,6 +6233,9 @@ export type MutationSetEarlyAccessOverrideArgs = {
6190
6233
  userId: Scalars['BigInt']['input'];
6191
6234
  value: Scalars['Boolean']['input'];
6192
6235
  };
6236
+ export type MutationSetFreeTierCardRequirementArgs = {
6237
+ input: SetFreeTierCardRequirementInput;
6238
+ };
6193
6239
  export type MutationSetGridOpenPermissionsArgs = {
6194
6240
  input: SetGridOpenPermissionsInput;
6195
6241
  };
@@ -6221,6 +6267,11 @@ export type MutationSetOrgBillingExemptArgs = {
6221
6267
  orgId: Scalars['BigInt']['input'];
6222
6268
  reason: Scalars['String']['input'];
6223
6269
  };
6270
+ export type MutationSetOrgCardRequirementExemptArgs = {
6271
+ exempt: Scalars['Boolean']['input'];
6272
+ orgId: Scalars['BigInt']['input'];
6273
+ reason: Scalars['String']['input'];
6274
+ };
6224
6275
  export type MutationSetOrgManagedPlayerSettingsArgs = {
6225
6276
  input: SetOrgManagedPlayerSettingsInput;
6226
6277
  };
@@ -6473,6 +6524,16 @@ export type NearbyGridsInput = {
6473
6524
  /** Low corner of the region to scan, in chunk coordinates (normalized). */
6474
6525
  lowChunk: ChunkCoordinatesInput;
6475
6526
  };
6527
+ /** One meter of an organization's pooled free allowance this month: how large the pool is and how much of it its apps have used. */
6528
+ export type OrgAllowancePool = {
6529
+ __typename?: 'OrgAllowancePool';
6530
+ /** The priced meter: aggregate_data_volume (bytes out), aggregate_data_ingress (bytes in), compute_cpu_ms (CPU milliseconds), durable_storage_byte_hours (byte-hours stored) or wasm_write_bytes (bytes written by compute modules). */
6531
+ meter: Scalars['String']['output'];
6532
+ /** The pool, in the meter's raw units: the rate card's allowance for one app times allowancePool.factor. */
6533
+ poolUnits: Scalars['String']['output'];
6534
+ /** How much of the pool its apps hold this month, in the same units; usage beyond the pool is billed. */
6535
+ usedUnits: Scalars['String']['output'];
6536
+ };
6476
6537
  /** Per-app projection row within an org rollup. */
6477
6538
  export type OrgAppUsageProjectionRow = {
6478
6539
  __typename?: 'OrgAppUsageProjectionRow';
@@ -6509,6 +6570,20 @@ export type OrgAutoBilling = {
6509
6570
  /** Amount to top up the wallet by on each auto-recharge, in cents. */
6510
6571
  rechargeAmountCents: Scalars['BigInt']['output'];
6511
6572
  };
6573
+ /** Where one organization stands against the free-tier card requirement. met is what the usage gate asks: a saved card or an exemption (CK's own organizations, and billing-exempt ones). Wallet funds do not count. */
6574
+ export type OrgCardRequirement = {
6575
+ __typename?: 'OrgCardRequirement';
6576
+ /** The organization has an active saved card (orgPaymentMethods). */
6577
+ cardOnFile: Scalars['Boolean']['output'];
6578
+ /** The organization is exempt: on the exemption list or exempt from billing. */
6579
+ exempt: Scalars['Boolean']['output'];
6580
+ /** cardOnFile or exempt. While the requirement applies and this is false, the organization's apps are paused (payment_method_required). */
6581
+ met: Scalars['Boolean']['output'];
6582
+ /** The instant the requirement applies to this organization: the tier's start, or the start plus existingOrganizationGraceDays for an organization created before it. Null while it is off. */
6583
+ requiredFrom: Maybe<Scalars['DateTime']['output']>;
6584
+ /** Whether the requirement applies to this organization now. */
6585
+ requiredNow: Scalars['Boolean']['output'];
6586
+ };
6512
6587
  /** An organization's org-managed player settings, and where it stands on the Org-Managed Players Addendum. A Crowded Kingdoms operator sets the settings; an admin of the organization accepts the addendum. */
6513
6588
  export type OrgManagedPlayerSettings = {
6514
6589
  __typename?: 'OrgManagedPlayerSettings';
@@ -6708,6 +6783,10 @@ export type OrgTokenWithSecret = {
6708
6783
  /** Org-level rollup of per-app monthly egress projections for all shared apps. */
6709
6784
  export type OrgUsageProjection = {
6710
6785
  __typename?: 'OrgUsageProjection';
6786
+ /** True when this month's free allowance is one pool shared by the organization's apps (allowancePool). */
6787
+ allowancePooled: Scalars['Boolean']['output'];
6788
+ /** In a pooled month, each pooled meter with its pool and what the apps have used of it; empty otherwise. */
6789
+ allowancePools: Array<OrgAllowancePool>;
6711
6790
  /** Per-app projection breakdown. */
6712
6791
  apps: Array<OrgAppUsageProjectionRow>;
6713
6792
  /** Fractional UTC days elapsed since the calendar month started. */
@@ -6718,7 +6797,7 @@ export type OrgUsageProjection = {
6718
6797
  sufficientData: Scalars['Boolean']['output'];
6719
6798
  /** True when org total projected egress exceeds the combined free tier, so the org should expect a metered bill. Note that a capacity reservation is NOT a remedy for this: reservations buy provisioned capacity and are charged in addition to metered usage, so they do not reduce an egress bill. What this signals is that the org needs a funded wallet or auto-billing. */
6720
6799
  suggestReservedThroughput: Scalars['Boolean']['output'];
6721
- /** Total free monthly egress allowance across all shared apps in the org (apps × 5 GB). */
6800
+ /** Total free monthly egress allowance for the org's shared apps: apps × 5 GB, or the size of its pool in a pooled month (allowancePooled). */
6722
6801
  totalFreeAllowanceBytes: Scalars['String']['output'];
6723
6802
  /** Sum of projected end-of-month egress across shared apps, or null when insufficient data. */
6724
6803
  totalProjectedBytes: Maybe<Scalars['String']['output']>;
@@ -7339,13 +7418,13 @@ export type PublicRateCardEntryType = {
7339
7418
  /** How many raw metric units one priceCents charge covers, as a BigInt decimal string. A price of 19 with unitQuantity 1073741824 is 19 cents per GiB. priceCents and unitQuantity are two halves of one price and mean nothing apart. */
7340
7419
  unitQuantity: Scalars['BigInt']['output'];
7341
7420
  };
7342
- /** Result of publishing an app to the shared environment. All paths publish immediately. Usage above the free allowances is wallet-billed: each app has a per-dimension hourly allowance and, for client egress, 5 decimal GB per calendar month. */
7421
+ /** Result of publishing an app to the shared environment. All paths publish immediately. Usage above the free allowances is billed from the organization wallet: each app has the rate card's monthly allowances until allowancePool.effectiveFrom, and from then the organization's apps share one allowance. */
7343
7422
  export type PublishAppResult = {
7344
7423
  __typename?: 'PublishAppResult';
7345
7424
  appId: Scalars['BigInt']['output'];
7346
7425
  /** @deprecated Always null — subscriptions replaced by wallet billing. */
7347
7426
  checkout: Maybe<Checkout>;
7348
- /** True when the app uses a free org app-slot (under the quota). */
7427
+ /** True when the app uses a free org app-slot (under the quota). A count only: it does not change what is free or billed (see orgFreeAppQuota). */
7349
7428
  free: Scalars['Boolean']['output'];
7350
7429
  };
7351
7430
  /** Publish a new immutable Crowdy Studio-curated common-file version. Requires the app manage_compute permission. */
@@ -7398,6 +7477,8 @@ export type Query = {
7398
7477
  agentRateCards: Array<AgentRateCardEntryType>;
7399
7478
  /** 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. OPERATOR: every hosted game on the tier, whatever its status or listing. */
7400
7479
  allHostedGames: Array<HostedGame>;
7480
+ /** PUBLIC: no authentication required. When this tier pools an organization's free allowance across its apps, and how large each pool is. Read-only. */
7481
+ allowancePool: AllowancePoolSettings;
7401
7482
  /** Convenience for UI: returns true when the authenticated caller is the currently elected host for the given app (same election as gameHost), otherwise false (including when no host is elected). Not authoritative for server-side decisions. Requires a valid bearer game token (same auth as gameHost). */
7402
7483
  amIGameHost: Scalars['Boolean']['output'];
7403
7484
  /** Fetch a single app by its numeric id. Requires authentication (any signed-in user); does NOT enforce org/app permissions, so it can read apps the caller does not own, of any visibility/status. Returns null if the id does not exist. Prefer appBySlug for slug-based marketplace lookups. */
@@ -7477,6 +7558,8 @@ export type Query = {
7477
7558
  billingRateCard: Array<RateCardEntryType>;
7478
7559
  /** Amounts the platform could not bill this org for, with the reason (an exempt org, a provider with no generation record, a process that died with metered usage in memory). Requires 'view_billing' on the org. */
7479
7560
  billingWriteOffs: Array<BillingWriteOff>;
7561
+ /** Operator only. The organizations the free-tier card requirement never refuses. Billing-exempt organizations are not listed: the usage gate never refuses them for money. */
7562
+ cardRequirementExemptions: Array<CardRequirementExemption>;
7480
7563
  /** Fetch one channel by id. Errors if the id is not a channel. */
7481
7564
  channel: Group;
7482
7565
  /** List the members of a channel (the subscriber set, including pending requests), each with their status and roles. */
@@ -7591,6 +7674,8 @@ export type Query = {
7591
7674
  exportPlayerData: PlayerDataExport;
7592
7675
  /** Reports whether a free-play window is active now, a human-readable schedule description, and the ISO-8601 start of the next window. PUBLIC: no authentication required. Takes no arguments; computed from server config and the current clock. */
7593
7676
  freePlayWindowInfo: FreePlayWindowInfo;
7677
+ /** PUBLIC: no authentication required. Whether this tier asks an organization for a saved card before its apps run, from when, and how much later for an organization created before then. Read-only. */
7678
+ freeTierCardRequirement: FreeTierCardRequirement;
7594
7679
  /** Single startup payload for browser game clients: the authenticated user, server/min-client version requirements, current UDP proxy status, realtime protocol details (subprotocol + subscription name), and the spatial send limits/constants (maxReplicationDistance, maxDecayRate, sequenceNumberModulo). Requires a bearer game token. Read-only: does not open a UDP proxy session. Call this once after login to initialize a play session. */
7595
7680
  gameClientBootstrap: GameClientBootstrap;
7596
7681
  /** Returns the single elected host user for an app (game). Deterministic across all game-api replicas behind the LB: the user whose earliest still-connected actor row was created first wins, with a uuid tiebreaker. Returns null when no actors exist for the app. Stale actors (no recent actorHeartbeat) are excluded once HOST_ACTOR_FRESHNESS_SECONDS is enabled. Clients should poll; there is no host-change subscription in v1. */
@@ -7697,7 +7782,12 @@ export type Query = {
7697
7782
  nearbyGrids: Array<NearbyGrid>;
7698
7783
  /** An org's off-session auto-billing configuration (enabled flag, recharge amount, low-water threshold, per-period cap, and last error). Requires the 'view_billing' org permission. */
7699
7784
  orgAutoBilling: OrgAutoBilling;
7700
- /** An org's free shared-app slot quota and how much of it is used. Apps beyond the quota still publish; metered usage is billed from the org wallet. Caller must be a member of the org. */
7785
+ /** Where an organization stands against the free-tier card requirement: from when it applies to this organization, and whether the organization has a saved card or an exemption. Studio reads it to ask for a card. Requires the 'view_billing' org permission. */
7786
+ orgCardRequirement: OrgCardRequirement;
7787
+ /**
7788
+ * An org's free shared-app slot quota and how much of it is used. The slots are a count only: they never change what is free or billed, and apps beyond the quota still publish. Caller must be a member of the org.
7789
+ * @deprecated Free app slots are retired. From allowancePool.effectiveFrom an organization's apps share one free allowance a month; read orgUsageProjection.allowancePools. Before then each app has its own allowance whatever its slot.
7790
+ */
7701
7791
  orgFreeAppQuota: FreeAppQuota;
7702
7792
  /** The organization's org-managed player settings: whether it may sign its own players in, its cap, sign-in rate and sign-in lifetimes, how many players it holds, and whether it has accepted the current Org-Managed Players Addendum. Requires manage_players on the org (super-admins and operators bypass). */
7703
7793
  orgManagedPlayerSettings: OrgManagedPlayerSettings;
@@ -7818,6 +7908,8 @@ export type Query = {
7818
7908
  voxelUpdateHistoryConnection: VoxelUpdateHistoryConnection;
7819
7909
  /** Returns the organization's wallet, creating an empty zero-balance wallet on first access if one does not yet exist (so it never returns null). Use it to read the current balance and currency before charging usage or topping up. Requires the 'view_billing' org permission. */
7820
7910
  walletBalance: OrgWallet;
7911
+ /** The smallest wallet top-ups and auto-recharge amounts this tier accepts, for a top-up form in Studio or a game. Public. */
7912
+ walletTopUpMinimums: WalletTopUpMinimums;
7821
7913
  /** Lists the organization's wallet transactions (credits and debits), ordered newest first. Use it to audit how the balance changed over time. Requires the 'view_billing' org permission. */
7822
7914
  walletTransactions: Array<WalletTransaction>;
7823
7915
  /** Lists the organization's wallet transactions (credits and debits), ordered newest first. Use it to audit how the balance changed over time. Requires the 'view_billing' org permission. Relay cursor connection; prefer this over the offset-based walletTransactions. */
@@ -8308,6 +8400,9 @@ export type QueryNearbyGridsArgs = {
8308
8400
  export type QueryOrgAutoBillingArgs = {
8309
8401
  orgId: Scalars['BigInt']['input'];
8310
8402
  };
8403
+ export type QueryOrgCardRequirementArgs = {
8404
+ orgId: Scalars['BigInt']['input'];
8405
+ };
8311
8406
  export type QueryOrgFreeAppQuotaArgs = {
8312
8407
  orgId: Scalars['BigInt']['input'];
8313
8408
  };
@@ -9043,6 +9138,15 @@ export type ServiceQuota = {
9043
9138
  /** When the rule was last updated (ISO-8601 UTC timestamp). */
9044
9139
  updatedAt: Scalars['DateTime']['output'];
9045
9140
  };
9141
+ /** A change to the organization allowance pool. */
9142
+ export type SetAllowancePoolInput = {
9143
+ /** The first instant whose calendar months are pooled. Applies to months that have not been settled yet: a unit already settled this month keeps the allowance it was settled with. Omit to leave unchanged. */
9144
+ effectiveFrom?: InputMaybe<Scalars['DateTime']['input']>;
9145
+ /** How many apps' allowances each pool is worth, at least 1. Applies to pools first claimed from after the change. Omit to leave unchanged. */
9146
+ factor?: InputMaybe<Scalars['Int']['input']>;
9147
+ /** Why, for the audit (billing_rate_changes). */
9148
+ reason: Scalars['String']['input'];
9149
+ };
9046
9150
  /** Register/update an app's OAuth client settings for the portal handoff (requires manage_apps on the app). */
9047
9151
  export type SetAppClientSettingsInput = {
9048
9152
  appId: Scalars['BigInt']['input'];
@@ -9210,6 +9314,17 @@ export type SetCrowdyStudioProviderConsentInput = {
9210
9314
  /** True to accept, false to revoke. */
9211
9315
  consented: Scalars['Boolean']['input'];
9212
9316
  };
9317
+ /** A change to the free-tier card requirement: its start, off, or the grace for organizations created before the start. */
9318
+ export type SetFreeTierCardRequirementInput = {
9319
+ /** Days after requiredFrom that the requirement applies to an organization created before it, 0 to 365. Omit to leave unchanged (30 by default). */
9320
+ existingOrganizationGraceDays?: InputMaybe<Scalars['Int']['input']>;
9321
+ /** True switches the requirement off. Not with requiredFrom. */
9322
+ off?: InputMaybe<Scalars['Boolean']['input']>;
9323
+ /** Why, for the audit (billing_rate_changes). */
9324
+ reason: Scalars['String']['input'];
9325
+ /** The instant the requirement applies from. Not with off: true. */
9326
+ requiredFrom?: InputMaybe<Scalars['DateTime']['input']>;
9327
+ };
9213
9328
  /** Set the permission keys a grid grants every player with active access to the app (writes the grid_open_permissions input table): an open build area, a public arena. */
9214
9329
  export type SetGridOpenPermissionsInput = {
9215
9330
  /** The app (tenant) that owns the grid. */
@@ -10256,6 +10371,16 @@ export type VoxelUpdatesByDistanceResponse = {
10256
10371
  /** The chunk `skip` applied to this page: the one asked for, or 0. */
10257
10372
  skip: Maybe<Scalars['Int']['output']>;
10258
10373
  };
10374
+ /** The smallest wallet top-ups createCheckout accepts, and the smallest auto-recharge amounts. A smaller amount is refused with TOP_UP_BELOW_MINIMUM. */
10375
+ export type WalletTopUpMinimums = {
10376
+ __typename?: 'WalletTopUpMinimums';
10377
+ /** The currency both are in: usd. */
10378
+ currency: Scalars['String']['output'];
10379
+ /** An organization wallet (ORG_WALLET_TOPUP, setAutoBilling), in USD cents. */
10380
+ orgWalletCents: Scalars['BigInt']['output'];
10381
+ /** A player wallet (PLAYER_WALLET_TOPUP, setPlayerAutoBilling), in USD cents. */
10382
+ playerWalletCents: Scalars['BigInt']['output'];
10383
+ };
10259
10384
  export type WalletTransaction = {
10260
10385
  __typename?: 'WalletTransaction';
10261
10386
  /**