@crowdedkingdoms/crowdyjs 18.34.0-test.1 → 18.35.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.
@@ -2264,7 +2264,7 @@ export type CreateAppInput = {
2264
2264
  slug: Scalars['String']['input'];
2265
2265
  /** Optional initial lifecycle status. Defaults to LIVE when omitted. */
2266
2266
  status?: InputMaybe<AppStatus>;
2267
- /** Optional initial visibility. Defaults to PUBLIC when omitted. */
2267
+ /** Optional initial visibility. Defaults to UNLISTED when omitted: set PUBLIC to list the app in the marketplace. */
2268
2268
  visibility?: InputMaybe<AppVisibility>;
2269
2269
  };
2270
2270
  export type CreateAvatarInput = {
@@ -2453,6 +2453,57 @@ export type CreatedTierAccessProvisioningToken = {
2453
2453
  /** The secret. Store it now; it cannot be read again. */
2454
2454
  token: Scalars['String']['output'];
2455
2455
  };
2456
+ /** Operator only. An organization the CRM backfill would add or leave out (BIZ-028 Q12). */
2457
+ export type CrmBackfillEntry = {
2458
+ __typename?: 'CrmBackfillEntry';
2459
+ /** The domain its Company is matched on; null when a new Company is made. */
2460
+ matchDomain: Maybe<Scalars['String']['output']>;
2461
+ name: Scalars['String']['output'];
2462
+ orgId: Scalars['String']['output'];
2463
+ ownerEmail: Maybe<Scalars['String']['output']>;
2464
+ /** Why it is left out; null when it is added. */
2465
+ reason: Maybe<Scalars['String']['output']>;
2466
+ };
2467
+ /** Operator only. The two lists the first CRM backfill is checked against before it runs (BIZ-028 Q12). */
2468
+ export type CrmBackfillPreview = {
2469
+ __typename?: 'CrmBackfillPreview';
2470
+ excluded: Array<CrmBackfillEntry>;
2471
+ included: Array<CrmBackfillEntry>;
2472
+ };
2473
+ /** Operator only. What a CRM backfill queued. */
2474
+ export type CrmBackfillResult = {
2475
+ __typename?: 'CrmBackfillResult';
2476
+ organizations: Scalars['Int']['output'];
2477
+ records: Scalars['Int']['output'];
2478
+ };
2479
+ /** Operator only. The Twenty sync's mode: OFF queues nothing; SHADOW queues and builds each record and sends nothing; LIVE writes to the CRM (and acts as SHADOW where this environment has no key). */
2480
+ export declare enum CrmSyncMode {
2481
+ Live = "LIVE",
2482
+ Off = "OFF",
2483
+ Shadow = "SHADOW"
2484
+ }
2485
+ /** Operator only. The Twenty sync's state in this environment. */
2486
+ export type CrmSyncStatus = {
2487
+ __typename?: 'CrmSyncStatus';
2488
+ /** When the first LIVE backfill was queued; the daily reconcile waits for it. */
2489
+ backfillDoneAt: Maybe<Scalars['DateTime']['output']>;
2490
+ /** Whether this environment has the CRM key. */
2491
+ configured: Scalars['Boolean']['output'];
2492
+ /** The mode the drain runs in: LIVE needs the CRM key here. */
2493
+ effectiveMode: CrmSyncMode;
2494
+ /** Records given up on in the last 7 days. */
2495
+ failedLast7Days: Scalars['Int']['output'];
2496
+ lastError: Maybe<Scalars['String']['output']>;
2497
+ lastSentAt: Maybe<Scalars['DateTime']['output']>;
2498
+ /** Fields or picklist values the CRM workspace lacks for LIVE (empty without a key); run scripts/twenty/ensure-schema.mjs. */
2499
+ missingFields: Array<Scalars['String']['output']>;
2500
+ mode: CrmSyncMode;
2501
+ /** Records waiting to be sent. */
2502
+ pending: Scalars['Int']['output'];
2503
+ sentLast24Hours: Scalars['Int']['output'];
2504
+ /** Whether the signed webhook is accepted. */
2505
+ webhookEnabled: Scalars['Boolean']['output'];
2506
+ };
2456
2507
  /** Single-use human decision lifecycle for one canonical argument hash. */
2457
2508
  export declare enum CrowdyStudioAgentApprovalStatus {
2458
2509
  /** Used exactly once for dispatch/execution. */
@@ -3695,10 +3746,18 @@ export type ExecAppStatus = {
3695
3746
  instanceLimit: Maybe<Scalars['Int']['output']>;
3696
3747
  /** Instances of the app placed and not yet stopped in this datacenter now, mods included. Null from a manager older than ck-exec 0.15. */
3697
3748
  instances: Maybe<Scalars['Int']['output']>;
3698
- /** The most instances the app may have placed in this datacenter. The free hub tier (an organization that has not funded the app) allows 16; null means the manager's default. */
3749
+ /** The most instances the app may have placed in this datacenter. The free hub tier (an organization that has not funded its wallet) allows 16, shared with the organization's other apps (orgMaxInstances); null means the manager's default. */
3699
3750
  maxInstances: Maybe<Scalars['Int']['output']>;
3700
- /** The most memory, in MB, the app's placed instances may reserve in this datacenter (each instance reserves its type's memory). The free hub tier allows 1,024; null means no memory limit beyond the instance count. */
3751
+ /** The most memory, in MB, the app's placed instances may reserve in this datacenter (each instance reserves its type's memory). The free hub tier allows 1,024, shared with the organization's other apps (orgMaxReservedMb); null means no memory limit beyond the instance count. */
3701
3752
  maxReservedMb: Maybe<Scalars['Int']['output']>;
3753
+ /** Instances of all of the organization's apps placed and not yet stopped in this datacenter now (what orgMaxInstances limits). Null without a shared ceiling. */
3754
+ orgInstances: Maybe<Scalars['Int']['output']>;
3755
+ /** The most instances all of the organization's apps together may have placed in this datacenter while it has not funded its wallet: 16. Null when the organization is funded (no shared ceiling) or the manager predates ck-exec 0.22. */
3756
+ orgMaxInstances: Maybe<Scalars['Int']['output']>;
3757
+ /** The most memory, in MB, all of the organization's apps' placed instances together may reserve in this datacenter while it has not funded its wallet: 1,024. Null when the organization is funded or the manager predates ck-exec 0.22. */
3758
+ orgMaxReservedMb: Maybe<Scalars['Int']['output']>;
3759
+ /** Memory, in MB, all of the organization's apps' instances reserve in this datacenter now (what orgMaxReservedMb limits). Null without a shared ceiling. */
3760
+ orgReservedMb: Maybe<Scalars['Int']['output']>;
3702
3761
  /** Memory, in MB, those instances reserve now (what maxReservedMb limits). Null from a manager older than ck-exec 0.15. */
3703
3762
  reservedMb: Maybe<Scalars['Int']['output']>;
3704
3763
  };
@@ -4163,6 +4222,48 @@ export type FreeTierCardRequirement = {
4163
4222
  /** Whether the requirement applies now to an organization created from requiredFrom on. */
4164
4223
  requiredNow: Scalars['Boolean']['output'];
4165
4224
  };
4225
+ /** What a free tier check did. */
4226
+ export type FreeTierCheckResult = {
4227
+ __typename?: 'FreeTierCheckResult';
4228
+ /** Organizations whose next month's level moved. */
4229
+ changed: Scalars['Int']['output'];
4230
+ checked: Scalars['Int']['output'];
4231
+ failed: Scalars['Int']['output'];
4232
+ };
4233
+ /** An organization's free tier level, which sets its free data out and data in a month. A level earned or agreed applies from the start of the next month. */
4234
+ export declare enum FreeTierLevel {
4235
+ /** A written agreement with Crowded Kingdoms sets the amount for whole months. */
4236
+ Agreement = "AGREEMENT",
4237
+ /** Every organization: the pool's own size (15 GB today). */
4238
+ Base = "BASE",
4239
+ /** A member has confirmed an email address at the domain the organization gives as its own; free email providers' domains do not count. 100 GB. */
4240
+ Domain = "DOMAIN",
4241
+ /** One of the organization's apps had at least 10 different player accounts play on at least 3 of the last 7 UTC days; the organization's own members do not count. 500 GB. */
4242
+ Measured = "MEASURED",
4243
+ /** The organization has completed its project profile. 200 GB. */
4244
+ Profile = "PROFILE"
4245
+ }
4246
+ /** One rung of the free tier ladder. */
4247
+ export type FreeTierLevelRung = {
4248
+ __typename?: 'FreeTierLevelRung';
4249
+ /** Free data out and free data in, each, a month, in GB (1 GB = 1,000,000,000 bytes). */
4250
+ gigabytes: Scalars['Int']['output'];
4251
+ level: FreeTierLevel;
4252
+ };
4253
+ /** The free tier ladder on this tier: what each earned level gives an organization's data out and data in a month. A daily check sets each organization's level for the next month. */
4254
+ export type FreeTierLevels = {
4255
+ __typename?: 'FreeTierLevels';
4256
+ /** The first month levels size organizations' pools on this tier. Null while they size none. */
4257
+ effectiveFrom: Maybe<Scalars['DateTime']['output']>;
4258
+ /** BASE, DOMAIN, PROFILE and MEASURED, lowest first. */
4259
+ levels: Array<FreeTierLevelRung>;
4260
+ /** MEASURED: distinct player accounts a day. */
4261
+ measuredMinAccounts: Scalars['Int']['output'];
4262
+ /** MEASURED: days with that many. */
4263
+ measuredMinDays: Scalars['Int']['output'];
4264
+ /** MEASURED: out of the last this many UTC days. */
4265
+ measuredWindowDays: Scalars['Int']['output'];
4266
+ };
4166
4267
  /** Startup contract for browser game clients. Fetch this after login to initialize protocol/version checks and UDP proxy state in one round trip. */
4167
4268
  export type GameClientBootstrap = {
4168
4269
  __typename?: 'GameClientBootstrap';
@@ -5056,7 +5157,7 @@ export type Mutation = {
5056
5157
  createAccessTier: AppAccessTier;
5057
5158
  /** Creates an actor (a player’s presence/instance in an app world) owned by the authenticated user and returns the persisted row (including the server-set `createdAt`). Requires a valid game token. If `input.avatarId` is set it must reference an avatar the caller owns (throws Unauthorized otherwise). `input.uuid` must be the 32-character ASCII actor id used on the UDP wire (NOT a hyphenated RFC-4122 UUID). */
5058
5159
  createActor: Actor;
5059
- /** Create a new app within an organization. Requires the 'manage_apps' permission on the target org (input.orgId); super admins bypass. REQUIRES A DATACENTER (input.datacenter): the app is distributed on its app_id, so all of its data lives in one datacenter, and the id is chosen at creation so that it does. Query placeableDatacenters first for the codes this deployment accepts. Creation FAILS — rather than producing an unroutable app — if the named datacenter is unknown to this deployment or holds no shards. SIDE EFFECTS: also provisions a free, open-by-default "Default" access tier granting baseline runtime permissions and notifies the game API. Elevated capabilities such as use_studio_agent are NOT granted by default and require an explicit tier grant. Slug must be unique within the org (a duplicate slug fails). New apps default to visibility=PUBLIC and status=LIVE unless overridden in the input. Neither setting decides who may play; the access tiers do. */
5160
+ /** Create a new app within an organization. Requires the 'manage_apps' permission on the target org (input.orgId); super admins bypass. REQUIRES A DATACENTER (input.datacenter): the app is distributed on its app_id, so all of its data lives in one datacenter, and the id is chosen at creation so that it does. Query placeableDatacenters first for the codes this deployment accepts. Creation FAILS — rather than producing an unroutable app — if the named datacenter is unknown to this deployment or holds no shards. SIDE EFFECTS: also provisions a free, open-by-default "Default" access tier granting baseline runtime permissions and notifies the game API. Elevated capabilities such as use_studio_agent are NOT granted by default and require an explicit tier grant. Slug must be unique within the org (a duplicate slug fails). New apps default to visibility=UNLISTED and status=LIVE unless overridden in the input: an app reaches the marketplace only once it is set PUBLIC (updateApp). Neither setting decides who may play; the access tiers do. An organization without a funded wallet or auto-billing may have at most 10 apps that are not archived; one more is refused with APP_LIMIT_REACHED (orgAppLimit says where an organization stands). */
5060
5161
  createApp: App;
5061
5162
  /** Creates a new avatar owned by the authenticated user and returns it. Requires a valid game token; the new avatar is always owned by the caller. `input.name` is optional and defaults to "Default Avatar". */
5062
5163
  createAvatar: Avatar;
@@ -5330,6 +5431,10 @@ export type Mutation = {
5330
5431
  revokeTierAccessRule: TierAccessRule;
5331
5432
  /** Reverts every voxel edit made by `userId` in `appId` between `from` and `to`, returning one RollbackVoxelEventResult per affected voxel (`applied` tells you whether each was actually changed). DEFAULTS to dryRun=true, which only PREVIEWS the planned reversions without writing; pass dryRun=false to actually apply them (DESTRUCTIVE — mutates world state). A reverted voxel’s edit-log row takes the earlier edit’s type, state and author and the ROLLBACK’s time as its createdAt, so a client reading edits `since` its last sync sees the revert. When the app’s wilderness is closed (`wildernessOpen` false), an applied rollback that would write any chunk of closed, unclaimed wilderness is refused (403) before it writes anything; a dry run is not. Requires a valid bearer token AND the `manage_apps` permission on the org that owns `appId` (super admins bypass). */
5332
5433
  rollbackVoxelUpdates: Array<RollbackVoxelEventResult>;
5434
+ /** Operator only. Queues every eligible organization for the Twenty sync (BIZ-028 Q12's backfill) and, in LIVE, records it so the daily reconcile starts. With orgId, queues that organization alone (a canary) and records nothing. Needs confirm: true. */
5435
+ runCrmBackfill: CrmBackfillResult;
5436
+ /** Operator only. Runs the daily free tier check now, for one organization or all of them, writing next month's levels. */
5437
+ runFreeTierCheck: FreeTierCheckResult;
5333
5438
  /** OPERATOR ONLY. Runs the shared-usage tick once instead of waiting for the ~60s cron: reserved-throughput billing, the itemised statement of the last closed clock hour, and the usage-gate evaluation of every shared app. Metered usage is priced and charged by the ledger's settlement, about once a minute, not by this tick. Backdating usage rows is a local-test fixture, not something this mutation does on a live tier. */
5334
5439
  runSharedUsageBillingTick: Scalars['Boolean']['output'];
5335
5440
  /** Send an actor (player/NPC) state 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 — it does NOT confirm the world applied the update. There is NO separate per-request success response: the game server fans the update out to every client in the target chunk INCLUDING the sender, so you observe your own applied update as an ActorUpdateNotification carrying the same sequenceNumber (ActorUpdateResponse 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). Subscribe to udpNotifications before sending so the self-notification/error is not missed. */
@@ -5384,12 +5489,16 @@ export type Mutation = {
5384
5489
  setChannelMemberRoles: GroupMember;
5385
5490
  /** Set who may create channels in an app and the default membership policy for new channels. Requires app-admin ('manage_apps'). Affects future channel creation only, not existing channels. */
5386
5491
  setChannelPolicy: AppGroupPolicy;
5492
+ /** Operator only. Sets the Twenty sync's mode (OFF, SHADOW, LIVE) and whether its signed webhook is accepted; recorded in crm_sync_changes. LIVE sends studio and developer contacts to the CRM. */
5493
+ setCrmSync: CrmSyncStatus;
5387
5494
  /** Create or patch an app's Agentic Crowdy Studio policy. Requires 'manage_compute'. Omitted values stay unchanged; first creation starts disabled, killed, and deny-all. A model/tool/mode/risk list naming anything outside the platform allowlist is REFUSED with AGENT_POLICY_INVALID quoting the platform's current list, rather than silently reduced; a list you do send is stored exactly as sent and can only narrow, and omitting it entirely means 'no narrowing', which inherits the platform's list live on every read. Numeric and retention values are still clamped down to platform limits. Locked ZDR/collection/body-retention rules and the operator app kill cannot be changed. SIDE EFFECTS: increments Management's publication revision and appends a sanitized audit event. NOTHING IS PUSHED TO GAME API: its runtime pulls crowdy.studio-agent-policy/1, obtaining a replica the first time a permitted caller asks about an app that has none, and re-pulling an existing replica once it passes refreshAfter (two thirds of its 60s validity). A change therefore reaches enforcement within about a minute for an app already in use, and not at all until someone asks for one that is not. Stable errors: AGENT_POLICY_INVALID, AGENT_POLICY_REVISION_CONFLICT, IDEMPOTENCY_CONFLICT. */
5388
5495
  setCrowdyStudioAgentPolicy: CrowdyStudioAgentPolicy;
5389
5496
  /** 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). */
5390
5497
  setEarlyAccessOverride: User;
5391
5498
  /** 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
5499
  setFreeTierCardRequirement: FreeTierCardRequirement;
5500
+ /** Operator only. Sets the first month free tier levels size organizations' pools on this tier (the first instant of a UTC month), or stops them, and records the change in billing_rate_changes (scope SHARED, metric free_tier_levels). A month whose pools are already open keeps their size. */
5501
+ setFreeTierLevels: FreeTierLevels;
5393
5502
  /** 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'). */
5394
5503
  setGridOpenPermissions: GridOpenPermissions;
5395
5504
  /** 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. */
@@ -5410,8 +5519,14 @@ export type Mutation = {
5410
5519
  setOrgBillingExempt: BillingExemptOrgType;
5411
5520
  /** 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
5521
  setOrgCardRequirementExempt: OrgCardRequirement;
5522
+ /** Operator only. Records a written agreement for a larger free allowance, for whole months starting next month or later, or revokes one (revoke: true with its startMonth). Recorded in billing_rate_changes (scope SHARED, metric free_tier_agreement); next month's level is checked again at once. */
5523
+ setOrgFreeTierAgreement: OrgFreeTier;
5413
5524
  /** 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). */
5414
5525
  setOrgManagedPlayerSettings: OrgManagedPlayerSettings;
5526
+ /** Sets the domain the organization gives as its own (studio.com), or clears it with null. A member's confirmed email address at it, or at one of its subdomains, earns the DOMAIN free tier level; a free email provider's domain is refused (FREE_EMAIL_DOMAIN). Next month's level is checked again at once. Requires the 'manage_billing' org permission. */
5527
+ setOrgOwnDomain: OrgFreeTier;
5528
+ /** Saves answers to the organization's project profile. An omitted field keeps its answer; null clears it. When every answer is in, the profile is complete and next month's free tier level is checked again at once (PROFILE). Requires the 'manage_billing' org permission. */
5529
+ setOrgProjectProfile: OrgProjectProfile;
5415
5530
  /** 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. */
5416
5531
  setOrgStatus: Organization;
5417
5532
  /** Configure the caller's player-wallet auto-recharge: enable/disable, per-period ceiling, recharge amount, and low-water threshold. Enabling requires a vaulted payment method. */
@@ -5422,6 +5537,8 @@ export type Mutation = {
5422
5537
  setPlayerRateMarkup: Scalars['Int']['output'];
5423
5538
  /** Set (or clear, by passing both limits null) one of the caller's self-set spend caps: a global or per-app daily/monthly ceiling in cents. Hitting a cap pauses that player's mods with PLAYER_SPEND_CAP until the window rolls — play is untouched. Changes replica-sync to the game runtime. */
5424
5539
  setPlayerSpendCap: Array<PlayerSpendCap>;
5540
+ /** Operator only. Sets (or switches off) the first calendar month whose player trial is one per player across an organization's apps on this tier, and records the change in billing_rate_changes (scope PLAYER, metric player_trial_pool). A month already settled keeps the trial it was settled with. */
5541
+ setPlayerTrialPool: PlayerTrialPoolSettings;
5425
5542
  /** Creates or updates a quota enforcement rule (idempotent upsert keyed by org/app/tier + metric + period) and returns it. Scope is inferred from the input ids: an app-scoped rule requires the 'manage_quotas' app permission, an org-scoped rule requires the 'manage_quotas' org permission, and a global rule (no org/app/tier) requires super admin. Changes which limit `effectiveQuota` resolves for the metric; does not retroactively alter past usage. */
5426
5543
  setQuota: ServiceQuota;
5427
5544
  /** ADMIN PRIVILEGE CHANGE: grants or revokes platform super-admin on the target user, changing their privileges across the whole platform. Requires a super-admin bearer game token (and the management API enabled). */
@@ -5472,7 +5589,7 @@ export type Mutation = {
5472
5589
  updateActor: Actor;
5473
5590
  /** Replaces an actor’s `publicState` and/or `privateState` blobs (fields omitted from `input` are left unchanged). OWNER-EXCLUSIVE: only the actor’s owner may write (throws Unauthorized otherwise). Game-plane: requires an app token for the actor’s app (a session token or another app’s token is answered NotFound). `uuid` is the 32-character ASCII actor id; blobs are base64-encoded binary. */
5474
5591
  updateActorState: Actor;
5475
- /** Update mutable fields of an existing app (name, description, visibility, status, metadata, wildernessWritesOpen, claimOwnerKeys, replayLoggingEnabled, replayLoggingRecordsMedia, replayLoggingRecordsVoice, replayLoggingRecordsVideo, minPlayerAge, idleTimeoutSeconds); only fields present in the input are changed. Turning replayLoggingEnabled on is refused with INPUT_LOG_FUNDS_NEEDED unless the org's wallet can spend at least the projected cost of keeping one retention period of the app's recent traffic (extensions.requiredMicrousd and spendableMicrousd say how much), or the org is billing-exempt; recordings already kept go on billing after it is turned off, until they age out. Turning it off is refused with SAFETY_LOG_REQUIRED while the app admits players under 18. Requires the 'manage_apps' permission on the app (resolved via its org); super admins bypass. Use this to publish (status=LIVE), change visibility, or restore an archived app (status back to DRAFT/LIVE). Throws if the app id does not exist. */
5592
+ /** Update mutable fields of an existing app (name, description, visibility, status, metadata, wildernessWritesOpen, claimOwnerKeys, replayLoggingEnabled, replayLoggingRecordsMedia, replayLoggingRecordsVoice, replayLoggingRecordsVideo, minPlayerAge, idleTimeoutSeconds); only fields present in the input are changed. Turning replayLoggingEnabled on is refused with INPUT_LOG_FUNDS_NEEDED unless the org's wallet can spend at least the projected cost of keeping one retention period of the app's recent traffic (extensions.requiredMicrousd and spendableMicrousd say how much), or the org is billing-exempt; recordings already kept go on billing after it is turned off, until they age out. Turning it off is refused with SAFETY_LOG_REQUIRED while the app admits players under 18. Requires the 'manage_apps' permission on the app (resolved via its org); super admins bypass. Use this to publish (status=LIVE), change visibility (PUBLIC lists the app in the marketplace), or restore an archived app (status back to DRAFT/LIVE); a restore counts against the cap of 10 apps for an organization without a funded wallet or auto-billing (APP_LIMIT_REACHED). Throws if the app id does not exist. */
5476
5593
  updateApp: App;
5477
5594
  /** Updates an avatar’s mutable fields (currently `name`) and returns it. OWNER-EXCLUSIVE: only the avatar’s owner may call this (throws Unauthorized otherwise). Requires a valid game token. To change state blobs use `updateAvatarState`. */
5478
5595
  updateAvatar: Avatar;
@@ -6127,6 +6244,13 @@ export type MutationRevokeTierAccessRuleArgs = {
6127
6244
  export type MutationRollbackVoxelUpdatesArgs = {
6128
6245
  input: RollbackVoxelUpdatesInput;
6129
6246
  };
6247
+ export type MutationRunCrmBackfillArgs = {
6248
+ confirm: Scalars['Boolean']['input'];
6249
+ orgId?: InputMaybe<Scalars['ID']['input']>;
6250
+ };
6251
+ export type MutationRunFreeTierCheckArgs = {
6252
+ orgId?: InputMaybe<Scalars['BigInt']['input']>;
6253
+ };
6130
6254
  export type MutationSendActorUpdateArgs = {
6131
6255
  input: ActorUpdateRequestInput;
6132
6256
  };
@@ -6226,6 +6350,9 @@ export type MutationSetChannelMemberRolesArgs = {
6226
6350
  export type MutationSetChannelPolicyArgs = {
6227
6351
  input: SetChannelPolicyInput;
6228
6352
  };
6353
+ export type MutationSetCrmSyncArgs = {
6354
+ input: SetCrmSyncInput;
6355
+ };
6229
6356
  export type MutationSetCrowdyStudioAgentPolicyArgs = {
6230
6357
  input: SetCrowdyStudioAgentAppPolicyInput;
6231
6358
  };
@@ -6236,6 +6363,9 @@ export type MutationSetEarlyAccessOverrideArgs = {
6236
6363
  export type MutationSetFreeTierCardRequirementArgs = {
6237
6364
  input: SetFreeTierCardRequirementInput;
6238
6365
  };
6366
+ export type MutationSetFreeTierLevelsArgs = {
6367
+ input: SetFreeTierLevelsInput;
6368
+ };
6239
6369
  export type MutationSetGridOpenPermissionsArgs = {
6240
6370
  input: SetGridOpenPermissionsInput;
6241
6371
  };
@@ -6272,9 +6402,19 @@ export type MutationSetOrgCardRequirementExemptArgs = {
6272
6402
  orgId: Scalars['BigInt']['input'];
6273
6403
  reason: Scalars['String']['input'];
6274
6404
  };
6405
+ export type MutationSetOrgFreeTierAgreementArgs = {
6406
+ input: SetOrgFreeTierAgreementInput;
6407
+ };
6275
6408
  export type MutationSetOrgManagedPlayerSettingsArgs = {
6276
6409
  input: SetOrgManagedPlayerSettingsInput;
6277
6410
  };
6411
+ export type MutationSetOrgOwnDomainArgs = {
6412
+ domain?: InputMaybe<Scalars['String']['input']>;
6413
+ orgId: Scalars['BigInt']['input'];
6414
+ };
6415
+ export type MutationSetOrgProjectProfileArgs = {
6416
+ input: SetOrgProjectProfileInput;
6417
+ };
6278
6418
  export type MutationSetOrgStatusArgs = {
6279
6419
  orgId: Scalars['BigInt']['input'];
6280
6420
  status: Scalars['String']['input'];
@@ -6300,6 +6440,9 @@ export type MutationSetPlayerSpendCapArgs = {
6300
6440
  monthlyLimitCents?: InputMaybe<Scalars['BigInt']['input']>;
6301
6441
  scope: Scalars['String']['input'];
6302
6442
  };
6443
+ export type MutationSetPlayerTrialPoolArgs = {
6444
+ input: SetPlayerTrialPoolInput;
6445
+ };
6303
6446
  export type MutationSetQuotaArgs = {
6304
6447
  input: SetQuotaInput;
6305
6448
  };
@@ -6534,6 +6677,16 @@ export type OrgAllowancePool = {
6534
6677
  /** How much of the pool its apps hold this month, in the same units; usage beyond the pool is billed. */
6535
6678
  usedUnits: Scalars['String']['output'];
6536
6679
  };
6680
+ /** How many apps an organization has against the cap for organizations that have not funded their wallet: at most 10 that are not archived while the wallet has no spendable balance and auto-billing is off. A funded (or billing-exempt) organization has no cap. Creating or restoring an app past it is refused with APP_LIMIT_REACHED; no existing app is removed. */
6681
+ export type OrgAppLimit = {
6682
+ __typename?: 'OrgAppLimit';
6683
+ /** The organization's apps that are not archived. */
6684
+ apps: Scalars['Int']['output'];
6685
+ /** True when the organization has a spendable wallet balance, auto-billing on, or a billing exemption: then it has no cap. */
6686
+ funded: Scalars['Boolean']['output'];
6687
+ /** The most apps it may have that are not archived, or null when it has no cap (funded). */
6688
+ max: Maybe<Scalars['Int']['output']>;
6689
+ };
6537
6690
  /** Per-app projection row within an org rollup. */
6538
6691
  export type OrgAppUsageProjectionRow = {
6539
6692
  __typename?: 'OrgAppUsageProjectionRow';
@@ -6584,6 +6737,54 @@ export type OrgCardRequirement = {
6584
6737
  /** Whether the requirement applies to this organization now. */
6585
6738
  requiredNow: Scalars['Boolean']['output'];
6586
6739
  };
6740
+ /** Where an organization stands on the free tier ladder: this month's level, next month's, and which conditions it meets now. A level it reaches applies from the start of the next month. */
6741
+ export type OrgFreeTier = {
6742
+ __typename?: 'OrgFreeTier';
6743
+ /** Written agreements covering this month or later. */
6744
+ agreements: Array<OrgFreeTierAgreement>;
6745
+ /** When the daily check last looked at the organization. */
6746
+ checkedAt: Maybe<Scalars['DateTime']['output']>;
6747
+ /** DOMAIN, PROFILE and MEASURED, with whether each is met now. */
6748
+ conditions: Array<OrgFreeTierCondition>;
6749
+ /** The level the conditions met now earn. */
6750
+ earnedLevel: FreeTierLevel;
6751
+ /** The first month levels size pools on this tier (freeTierLevels.effectiveFrom). */
6752
+ effectiveFrom: Maybe<Scalars['DateTime']['output']>;
6753
+ /** MEASURED: the most days in the window on which one of the organization's apps had enough distinct player accounts. */
6754
+ measuredQualifyingDays: Scalars['Int']['output'];
6755
+ /** Next month, as the latest check decided it. The daily check, and saving the profile or the domain, update it. */
6756
+ nextMonth: OrgFreeTierMonth;
6757
+ orgId: Scalars['BigInt']['output'];
6758
+ /** The domain the organization gives as its own. */
6759
+ ownDomain: Maybe<Scalars['String']['output']>;
6760
+ thisMonth: OrgFreeTierMonth;
6761
+ };
6762
+ /** A written agreement for a larger free allowance. */
6763
+ export type OrgFreeTierAgreement = {
6764
+ __typename?: 'OrgFreeTierAgreement';
6765
+ /** The last month it covers. */
6766
+ endMonth: Scalars['DateTime']['output'];
6767
+ /** Free data out and data in, each, a month, in GB. */
6768
+ gigabytes: Scalars['Int']['output'];
6769
+ /** The first month it covers. */
6770
+ startMonth: Scalars['DateTime']['output'];
6771
+ };
6772
+ /** One earned level and whether its condition is met now. */
6773
+ export type OrgFreeTierCondition = {
6774
+ __typename?: 'OrgFreeTierCondition';
6775
+ gigabytes: Scalars['Int']['output'];
6776
+ level: FreeTierLevel;
6777
+ met: Scalars['Boolean']['output'];
6778
+ };
6779
+ /** An organization's free tier level for one month. */
6780
+ export type OrgFreeTierMonth = {
6781
+ __typename?: 'OrgFreeTierMonth';
6782
+ /** Free data out and free data in, each, that month, in GB. For the current month, the pool's size once the organization's apps have drawn on it. */
6783
+ gigabytes: Scalars['Int']['output'];
6784
+ level: FreeTierLevel;
6785
+ /** The month, as its first instant (UTC). */
6786
+ periodStart: Scalars['DateTime']['output'];
6787
+ };
6587
6788
  /** 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. */
6588
6789
  export type OrgManagedPlayerSettings = {
6589
6790
  __typename?: 'OrgManagedPlayerSettings';
@@ -6651,6 +6852,37 @@ export type OrgPermission = {
6651
6852
  /** Stable permission key used in role grants (e.g. 'manage_members', 'manage_tokens'). */
6652
6853
  permissionKey: Scalars['ID']['output'];
6653
6854
  };
6855
+ /** The organization's six-question project profile. Complete, it earns the PROFILE free tier level. */
6856
+ export type OrgProjectProfile = {
6857
+ __typename?: 'OrgProjectProfile';
6858
+ /** When every answer was in; null while any is missing. */
6859
+ completedAt: Maybe<Scalars['DateTime']['output']>;
6860
+ /** The networking it uses today. */
6861
+ currentNetworking: Maybe<Scalars['String']['output']>;
6862
+ /** What that networking costs a month, in US cents. */
6863
+ currentNetworkingMonthlyCostCents: Maybe<Scalars['Int']['output']>;
6864
+ /** The engine. */
6865
+ engine: Maybe<Scalars['String']['output']>;
6866
+ /** The planned launch date. */
6867
+ launchDate: Maybe<Scalars['DateTime']['output']>;
6868
+ logicLocation: Maybe<ProjectLogicLocation>;
6869
+ orgId: Scalars['BigInt']['output'];
6870
+ /** Players each one sees at launch. */
6871
+ playersInViewLaunch: Maybe<Scalars['Int']['output']>;
6872
+ /** Players each one sees a year on. */
6873
+ playersInViewYear1: Maybe<Scalars['Int']['output']>;
6874
+ /** Players in one world at launch. */
6875
+ playersPerWorldLaunch: Maybe<Scalars['Int']['output']>;
6876
+ /** Players in one world a year on. */
6877
+ playersPerWorldYear1: Maybe<Scalars['Int']['output']>;
6878
+ /** Whether Crowded Kingdoms may name the studio as a reference. */
6879
+ referenceConsent: Maybe<Scalars['Boolean']['output']>;
6880
+ stage: Maybe<ProjectStage>;
6881
+ updatedAt: Maybe<Scalars['DateTime']['output']>;
6882
+ /** What the game is. */
6883
+ whatBuilding: Maybe<Scalars['String']['output']>;
6884
+ worldShape: Maybe<ProjectWorldShape>;
6885
+ };
6654
6886
  /** A record of one organization retirement. Retirement is a STATE, not a deletion: every ledger row the organization ever wrote is still present and still references it, so what the org spent stays reconstructable with the same joins as before. This row says who retired it, why, and what it was holding at the time. */
6655
6887
  export type OrgRetirementType = {
6656
6888
  __typename?: 'OrgRetirementType';
@@ -7265,6 +7497,16 @@ export type PlayerSpendCap = {
7265
7497
  /** The owning player user id. */
7266
7498
  userId: Scalars['BigInt']['output'];
7267
7499
  };
7500
+ /** The player compute trial: each player's monthly trial budget, and from when it is one trial per player across an organization's apps instead of one in each app. */
7501
+ export type PlayerTrialPoolSettings = {
7502
+ __typename?: 'PlayerTrialPoolSettings';
7503
+ /** The monthly trial budget in compute units (player_free_monthly_allowances, player_wasm_compute_units). */
7504
+ budgetUnits: Scalars['BigInt']['output'];
7505
+ /** Calendar months starting on or after this instant give a player one trial across an organization's apps; earlier months give one in each app. Null: not switched on, so every month gives one in each app. */
7506
+ perOrganizationFrom: Maybe<Scalars['DateTime']['output']>;
7507
+ /** Whether the current calendar month gives one trial per player across an organization (its start is on or after perOrganizationFrom). */
7508
+ perOrganizationNow: Scalars['Boolean']['output'];
7509
+ };
7268
7510
  /** One player usage charge from the hourly cents-era billing: a (player, app, closed clock hour) row. The lossless ledger, on by default, replaced that billing and writes no rows here, so the list ends where the ledger took over; usage since is in playerWalletTransactions as "usage_debit" entries. amountCents = platformCents + markupCents: what the platform charged and what the studio added. */
7269
7511
  export type PlayerUsageCharge = {
7270
7512
  __typename?: 'PlayerUsageCharge';
@@ -7291,7 +7533,7 @@ export type PlayerUsageCharge = {
7291
7533
  /** The owning player user id. */
7292
7534
  userId: Scalars['BigInt']['output'];
7293
7535
  };
7294
- /** The caller's player wallet: one platform-scoped balance, across every org and app they play in, that pays for the player's mods past their monthly trial (250,000 compute units in each app) and for any Agentic Studio model requests charged to them. Out-of-band from org wallets — player usage never touches an org's money. */
7536
+ /** The caller's player wallet: one platform-scoped balance, across every org and app they play in, that pays for the player's mods past their monthly trial (250,000 compute units a month in each app, or one trial across an organization's apps from playerTrialPool.perOrganizationFrom) and for any Agentic Studio model requests charged to them. Out-of-band from org wallets — player usage never touches an org's money. */
7295
7537
  export type PlayerWallet = {
7296
7538
  __typename?: 'PlayerWallet';
7297
7539
  /**
@@ -7375,6 +7617,26 @@ export declare enum PriceBandBasis {
7375
7617
  Rate = "RATE",
7376
7618
  Volume = "VOLUME"
7377
7619
  }
7620
+ /** Where the game's logic runs: on the clients, in light server code, or in a full server simulation. */
7621
+ export declare enum ProjectLogicLocation {
7622
+ Clients = "CLIENTS",
7623
+ FullServerSimulation = "FULL_SERVER_SIMULATION",
7624
+ LightServerCode = "LIGHT_SERVER_CODE"
7625
+ }
7626
+ /** The project's stage. */
7627
+ export declare enum ProjectStage {
7628
+ Beta = "BETA",
7629
+ Live = "LIVE",
7630
+ PreProduction = "PRE_PRODUCTION",
7631
+ Production = "PRODUCTION",
7632
+ Prototype = "PROTOTYPE"
7633
+ }
7634
+ /** Whether the game is one world with everyone in it or many copies of a small one. */
7635
+ export declare enum ProjectWorldShape {
7636
+ ManyCopies = "MANY_COPIES",
7637
+ OneWorld = "ONE_WORLD",
7638
+ Unsure = "UNSURE"
7639
+ }
7378
7640
  export type ProvisionManagedPlayersInput = {
7379
7641
  /** The organization (an org token's own, if one is used). */
7380
7642
  orgId: Scalars['BigInt']['input'];
@@ -7397,7 +7659,7 @@ export type PublicRateCardEntryType = {
7397
7659
  currency: Scalars['String']['output'];
7398
7660
  /** Raw metric units free per clock hour before anything is charged, as a BigInt decimal string. Null when this dimension has no allowance row, which for a priced dimension means it bills from the first unit. */
7399
7661
  freePerHour: Maybe<Scalars['BigInt']['output']>;
7400
- /** Raw metric units free per UTC calendar month, as a BigInt decimal string. On the PLAYER card this is the pooled monthly trial budget per (player, app). Null when this dimension has no monthly allowance. */
7662
+ /** Raw metric units free per UTC calendar month, as a BigInt decimal string. On the PLAYER card this is the monthly trial budget of a player: in each app, or one across the apps of an organization from playerTrialPool.perOrganizationFrom. Null when this dimension has no monthly allowance. */
7401
7663
  freePerMonth: Maybe<Scalars['BigInt']['output']>;
7402
7664
  /** The period freeUnits resets on. Every dimension is billed as its period aggregate crosses each whole cent, within about a minute of the usage arriving. */
7403
7665
  freePeriod: Maybe<AllowancePeriod>;
@@ -7590,6 +7852,10 @@ export type Query = {
7590
7852
  cpCrowdyStudioAgentCatalog: CrowdyStudioAgentCatalog;
7591
7853
  /** Operator only (is_operator or is_super_admin). Read the platform Agentic Studio enablement, global emergency kill, model/tool/mode/risk allowlists, budget ceilings, retention/privacy policy, pilot funding seam, timestamps, and revision. No provider credential or request body is stored or returned. */
7592
7854
  cpCrowdyStudioAgentPlatformPolicy: CrowdyStudioAgentPolicy;
7855
+ /** Operator only. The organizations the CRM backfill would add, and those it leaves out with why (BIZ-028 Q12). Holds owners' email addresses: for the operator only. */
7856
+ crmBackfillPreview: CrmBackfillPreview;
7857
+ /** Operator only. The Twenty sync's mode, queue and last error in this environment, and what the CRM workspace lacks for LIVE. */
7858
+ crmSyncStatus: CrmSyncStatus;
7593
7859
  /** Read Management's fail-closed Agentic Crowdy Studio publication: platform enable/kill, per-app operator kill, app enable/kill, the resolved model/tool/mode/risk lists (models and modes are the platform/app intersection; a tool or risk list the app left empty is inherited from the platform whole, because empty at a layer that can only narrow means no narrowing), minimum budgets/retention, locked privacy, and platform-funded billing seam. Requires 'view_compute_diagnostics'. This is the source publication, not proof of current runtime enforcement: Game API must hold a fresh crowdy.studio-agent-policy/1 replica and independently enforce it; missing/stale/malformed replica or an empty model/mode intersection must disable the agent. */
7594
7860
  crowdyStudioAgentEffectivePolicy: CrowdyStudioAgentPolicy;
7595
7861
  /** Read the app-owned Agentic Crowdy Studio policy row, or a disabled/killed deny-all projection when no row exists. Requires 'view_compute_diagnostics' on the app. This is configuration only: use crowdyStudioAgentEffectivePolicy to see platform clamp and kill precedence. No provider key, prompt, source, header, request/response body, payer reference, or other secret is exposed. */
@@ -7676,6 +7942,8 @@ export type Query = {
7676
7942
  freePlayWindowInfo: FreePlayWindowInfo;
7677
7943
  /** 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
7944
  freeTierCardRequirement: FreeTierCardRequirement;
7945
+ /** PUBLIC: no authentication required. The free tier ladder on this tier: an organization's free data out and data in a month at each earned level, the MEASURED thresholds, and the first month levels apply. Read-only. */
7946
+ freeTierLevels: FreeTierLevels;
7679
7947
  /** 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. */
7680
7948
  gameClientBootstrap: GameClientBootstrap;
7681
7949
  /** 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. */
@@ -7780,6 +8048,8 @@ export type Query = {
7780
8048
  nearbyGridPermissions: Array<NearbyGridPermissions>;
7781
8049
  /** List every grid overlapping a chunk-coordinate bounding box: its gridId, its bounds and the caller's own permission keys on it. Player-safe: another user's keys need nearbyGridPermissions (app admin). The grid that decides a voxel edit in a chunk is the smallest box covering it (the lower gridId on a tie), and the edit needs update_voxel_data there. Requires an app-scoped token for the same app. */
7782
8050
  nearbyGrids: Array<NearbyGrid>;
8051
+ /** Where an organization stands against the cap for organizations without a funded wallet or auto-billing: its apps that are not archived, whether it is funded, and the cap (10, or null when funded). Requires the 'manage_apps' permission on the organization; super admins bypass. */
8052
+ orgAppLimit: OrgAppLimit;
7783
8053
  /** 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. */
7784
8054
  orgAutoBilling: OrgAutoBilling;
7785
8055
  /** 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. */
@@ -7789,6 +8059,8 @@ export type Query = {
7789
8059
  * @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
8060
  */
7791
8061
  orgFreeAppQuota: FreeAppQuota;
8062
+ /** Where an organization stands on the free tier ladder: this month's level, next month's as the latest check decided it, the conditions it meets now, its own domain and its agreements. A level reached applies from the start of the next month. Requires the 'view_billing' org permission. */
8063
+ orgFreeTier: OrgFreeTier;
7792
8064
  /** 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). */
7793
8065
  orgManagedPlayerSettings: OrgManagedPlayerSettings;
7794
8066
  /** Lists the members of an organization. Requires the 'manage_members' permission on the org (super admins bypass). */
@@ -7797,6 +8069,8 @@ export type Query = {
7797
8069
  orgPaymentMethods: Array<SavedPaymentMethod>;
7798
8070
  /** The full seed list of permission keys. Used by the UI to render role editors. */
7799
8071
  orgPermissions: Array<OrgPermission>;
8072
+ /** The organization's project profile, empty until answered. Requires the 'view_billing' org permission. */
8073
+ orgProjectProfile: OrgProjectProfile;
7800
8074
  /** Lists all roles defined in an organization. Requires the 'manage_members' permission on the org (super admins bypass). */
7801
8075
  orgRoles: Array<OrgRole>;
7802
8076
  /** The organization's signing keys for player assertions, newest first, revoked ones included. Requires manage_players on the org. */
@@ -7837,6 +8111,8 @@ export type Query = {
7837
8111
  playerRuntimeStates: Array<PlayerRuntimeState>;
7838
8112
  /** The caller's self-set spend caps (global and per-app) with running counters. The effective runtime limit is min(developer policy, self-cap, wallet balance). */
7839
8113
  playerSpendCaps: Array<PlayerSpendCap>;
8114
+ /** PUBLIC: no authentication required. The player compute trial on this tier: its monthly budget, and from when it is one trial per player across an organization's apps. Read-only. */
8115
+ playerTrialPool: PlayerTrialPoolSettings;
7840
8116
  /**
7841
8117
  * The caller's hourly player-usage charges from the cents-era billing, newest first, optionally filtered by app. Nothing has been added since the lossless ledger took over; current usage charges are the "usage_debit" entries in playerWalletTransactions.
7842
8118
  * @deprecated Reads the hourly cents-era charge rows, which the lossless ledger does not write. Read playerWalletTransactions: each "usage_debit" entry is one charge, per app, markup included.
@@ -8397,6 +8673,9 @@ export type QueryNearbyGridPermissionsArgs = {
8397
8673
  export type QueryNearbyGridsArgs = {
8398
8674
  input: NearbyGridsInput;
8399
8675
  };
8676
+ export type QueryOrgAppLimitArgs = {
8677
+ orgId: Scalars['BigInt']['input'];
8678
+ };
8400
8679
  export type QueryOrgAutoBillingArgs = {
8401
8680
  orgId: Scalars['BigInt']['input'];
8402
8681
  };
@@ -8406,6 +8685,9 @@ export type QueryOrgCardRequirementArgs = {
8406
8685
  export type QueryOrgFreeAppQuotaArgs = {
8407
8686
  orgId: Scalars['BigInt']['input'];
8408
8687
  };
8688
+ export type QueryOrgFreeTierArgs = {
8689
+ orgId: Scalars['BigInt']['input'];
8690
+ };
8409
8691
  export type QueryOrgManagedPlayerSettingsArgs = {
8410
8692
  orgId: Scalars['BigInt']['input'];
8411
8693
  };
@@ -8415,6 +8697,9 @@ export type QueryOrgMembersArgs = {
8415
8697
  export type QueryOrgPaymentMethodsArgs = {
8416
8698
  orgId: Scalars['BigInt']['input'];
8417
8699
  };
8700
+ export type QueryOrgProjectProfileArgs = {
8701
+ orgId: Scalars['BigInt']['input'];
8702
+ };
8418
8703
  export type QueryOrgRolesArgs = {
8419
8704
  orgId: Scalars['BigInt']['input'];
8420
8705
  };
@@ -8604,7 +8889,7 @@ export type RateCardEntryType = {
8604
8889
  description: Maybe<Scalars['String']['output']>;
8605
8890
  /** Raw metric units free per clock hour before anything is charged, as a BigInt decimal string. Null when this dimension has no allowance row, which for a priced dimension means it bills from the first unit. */
8606
8891
  freePerHour: Maybe<Scalars['BigInt']['output']>;
8607
- /** Raw metric units free per UTC calendar month, as a BigInt decimal string. On the PLAYER card this is the pooled monthly trial budget per (player, app), and player_wasm_compute_units is its canonical key. Null when this dimension has no monthly allowance. */
8892
+ /** Raw metric units free per UTC calendar month, as a BigInt decimal string. On the PLAYER card this is the monthly trial budget of a player: in each app, or one across the apps of an organization from playerTrialPool.perOrganizationFrom; player_wasm_compute_units is its canonical key. Null when this dimension has no monthly allowance. */
8608
8893
  freePerMonth: Maybe<Scalars['BigInt']['output']>;
8609
8894
  /** The period freeUnits resets on. Null when the dimension has no allowance row. */
8610
8895
  freePeriod: Maybe<AllowancePeriod>;
@@ -9198,6 +9483,13 @@ export type SetCommSettingsInput = {
9198
9483
  /** Whom the player’s voice may reach. */
9199
9484
  voiceSend?: InputMaybe<CommScope>;
9200
9485
  };
9486
+ /** Operator only: the Twenty sync's mode and webhook switch. */
9487
+ export type SetCrmSyncInput = {
9488
+ mode?: InputMaybe<CrmSyncMode>;
9489
+ /** Why, for the audit (crm_sync_changes). */
9490
+ reason: Scalars['String']['input'];
9491
+ webhookEnabled?: InputMaybe<Scalars['Boolean']['input']>;
9492
+ };
9201
9493
  /** Patch an app's Agentic Studio policy. Requires manage_compute. Omitted fields stay unchanged; all supplied authority and limits are clamped to platform policy. */
9202
9494
  export type SetCrowdyStudioAgentAppPolicyInput = {
9203
9495
  /** Replacement exact model allowlist (max 64). On an APP patch every id must already be in the platform allowlist or the whole write is refused with AGENT_POLICY_INVALID naming that list; values are never silently dropped. On the PLATFORM patch this list IS the ceiling. Empty denies all models at either layer. */
@@ -9325,6 +9617,15 @@ export type SetFreeTierCardRequirementInput = {
9325
9617
  /** The instant the requirement applies from. Not with off: true. */
9326
9618
  requiredFrom?: InputMaybe<Scalars['DateTime']['input']>;
9327
9619
  };
9620
+ /** Operator only: the first month free tier levels size pools on this tier, or off. */
9621
+ export type SetFreeTierLevelsInput = {
9622
+ /** The first instant of a UTC month. Not with off: true. */
9623
+ effectiveFrom?: InputMaybe<Scalars['DateTime']['input']>;
9624
+ /** True stops levels sizing pools. */
9625
+ off?: InputMaybe<Scalars['Boolean']['input']>;
9626
+ /** Why, for the audit (billing_rate_changes). */
9627
+ reason: Scalars['String']['input'];
9628
+ };
9328
9629
  /** 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. */
9329
9630
  export type SetGridOpenPermissionsInput = {
9330
9631
  /** The app (tenant) that owns the grid. */
@@ -9371,6 +9672,20 @@ export type SetMemberRolesInput = {
9371
9672
  /** The member (user) whose roles to set. */
9372
9673
  userId: Scalars['BigInt']['input'];
9373
9674
  };
9675
+ /** Operator only: records a written agreement for a larger free allowance (whole months, starting next month or later), or revokes one. */
9676
+ export type SetOrgFreeTierAgreementInput = {
9677
+ /** The first instant of the last UTC month it covers. Required unless revoke. */
9678
+ endMonth?: InputMaybe<Scalars['DateTime']['input']>;
9679
+ /** Free data out and data in, each, a month, in GB. Required unless revoke. */
9680
+ gigabytes?: InputMaybe<Scalars['Int']['input']>;
9681
+ orgId: Scalars['BigInt']['input'];
9682
+ /** Why, for the audit (billing_rate_changes). */
9683
+ reason: Scalars['String']['input'];
9684
+ /** True revokes the agreement that starts at startMonth. */
9685
+ revoke?: InputMaybe<Scalars['Boolean']['input']>;
9686
+ /** The first instant of the first UTC month it covers. */
9687
+ startMonth: Scalars['DateTime']['input'];
9688
+ };
9374
9689
  export type SetOrgManagedPlayerSettingsInput = {
9375
9690
  defaultSessionTtlSeconds?: InputMaybe<Scalars['Int']['input']>;
9376
9691
  enabled: Scalars['Boolean']['input'];
@@ -9379,6 +9694,37 @@ export type SetOrgManagedPlayerSettingsInput = {
9379
9694
  mintsPerMinute?: InputMaybe<Scalars['Int']['input']>;
9380
9695
  orgId: Scalars['BigInt']['input'];
9381
9696
  };
9697
+ /** Answers to the project profile. An omitted field keeps its answer; null clears it. Complete when every answer is in. */
9698
+ export type SetOrgProjectProfileInput = {
9699
+ /** 2,000 characters at most. */
9700
+ currentNetworking?: InputMaybe<Scalars['String']['input']>;
9701
+ /** US cents a month, 0 to 2,000,000,000. */
9702
+ currentNetworkingMonthlyCostCents?: InputMaybe<Scalars['Int']['input']>;
9703
+ /** 200 characters at most. */
9704
+ engine?: InputMaybe<Scalars['String']['input']>;
9705
+ launchDate?: InputMaybe<Scalars['DateTime']['input']>;
9706
+ logicLocation?: InputMaybe<ProjectLogicLocation>;
9707
+ /** Organization id. */
9708
+ orgId: Scalars['BigInt']['input'];
9709
+ playersInViewLaunch?: InputMaybe<Scalars['Int']['input']>;
9710
+ playersInViewYear1?: InputMaybe<Scalars['Int']['input']>;
9711
+ playersPerWorldLaunch?: InputMaybe<Scalars['Int']['input']>;
9712
+ playersPerWorldYear1?: InputMaybe<Scalars['Int']['input']>;
9713
+ referenceConsent?: InputMaybe<Scalars['Boolean']['input']>;
9714
+ stage?: InputMaybe<ProjectStage>;
9715
+ /** What the game is (2,000 characters at most). */
9716
+ whatBuilding?: InputMaybe<Scalars['String']['input']>;
9717
+ worldShape?: InputMaybe<ProjectWorldShape>;
9718
+ };
9719
+ /** A change to when the player trial is per organization. */
9720
+ export type SetPlayerTrialPoolInput = {
9721
+ /** The first instant whose calendar months give one trial per player across an organization, a UTC month start. A unit already settled this month keeps the trial it was settled with. Omit with off: true to switch it off. */
9722
+ effectiveFrom?: InputMaybe<Scalars['DateTime']['input']>;
9723
+ /** True to switch it off: months not settled yet give one trial in each app again. */
9724
+ off?: InputMaybe<Scalars['Boolean']['input']>;
9725
+ /** Why, for the audit (billing_rate_changes). */
9726
+ reason: Scalars['String']['input'];
9727
+ };
9382
9728
  export type SetQuotaInput = {
9383
9729
  /** What to do when the limit is exceeded. Optional; defaults to "throttle" (typical values: "throttle" to rate-limit, "block" to reject). */
9384
9730
  actionOnExceed?: InputMaybe<Scalars['String']['input']>;
@@ -9404,7 +9750,7 @@ export type SetRateCardInput = {
9404
9750
  clearPriceBands?: InputMaybe<Scalars['Boolean']['input']>;
9405
9751
  /** New hourly free allowance in raw metric units, as a BigInt decimal string. Must be >= 0. Omit to leave the allowance unchanged. Like a price, it applies from a dimension's next period where a period has already been charged. */
9406
9752
  freePerHour?: InputMaybe<Scalars['BigInt']['input']>;
9407
- /** New monthly free allowance in raw metric units, as a BigInt decimal string. Must be >= 0. On the PLAYER card with metric player_wasm_compute_units this is the pooled monthly TRIAL BUDGET per (player, app) — the only sanctioned way to change it on a live tier. Omit to leave it unchanged. Like a price, it applies from a dimension's next period where a period has already been charged. */
9753
+ /** New monthly free allowance in raw metric units, as a BigInt decimal string. Must be >= 0. On the PLAYER card with metric player_wasm_compute_units this is the monthly TRIAL BUDGET of a player (in each app, or one across the apps of an organization from playerTrialPool.perOrganizationFrom) — the only sanctioned way to change it on a live tier. Omit to leave it unchanged. Like a price, it applies from a dimension's next period where a period has already been charged. */
9408
9754
  freePerMonth?: InputMaybe<Scalars['BigInt']['input']>;
9409
9755
  /** New period for the free allowance. Leaves the units as they are unless freeUnits is also given. Moving a dimension to MONTH is how the development quota is stated. */
9410
9756
  freePeriod?: InputMaybe<AllowancePeriod>;