@crowdedkingdoms/crowdyjs 18.39.1 → 18.40.0-test.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/MIGRATION.md +62 -0
- package/README.md +420 -17
- package/dist/binary-wire.d.ts +94 -1
- package/dist/binary-wire.d.ts.map +1 -1
- package/dist/binary-wire.js +122 -20
- package/dist/crowdy-client.d.ts +7 -0
- package/dist/crowdy-client.d.ts.map +1 -1
- package/dist/crowdy-client.js +3 -0
- package/dist/default-origin.d.ts +6 -6
- package/dist/default-origin.js +6 -6
- package/dist/domains/admin.d.ts +7 -0
- package/dist/domains/admin.d.ts.map +1 -1
- package/dist/domains/admin.js +1 -0
- package/dist/domains/exec.d.ts +91 -3
- package/dist/domains/exec.d.ts.map +1 -1
- package/dist/domains/exec.js +132 -5
- package/dist/domains/fleetSessions.d.ts +87 -0
- package/dist/domains/fleetSessions.d.ts.map +1 -0
- package/dist/domains/fleetSessions.js +87 -0
- package/dist/dropped-read.d.ts +2 -1
- package/dist/dropped-read.d.ts.map +1 -1
- package/dist/dropped-read.js +2 -6
- package/dist/errors.d.ts +59 -0
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +70 -0
- package/dist/fleet/index.d.ts +4 -0
- package/dist/fleet/index.d.ts.map +1 -0
- package/dist/fleet/index.js +21 -0
- package/dist/fleet/session.d.ts +730 -0
- package/dist/fleet/session.d.ts.map +1 -0
- package/dist/fleet/session.js +1376 -0
- package/dist/fleet/socket.d.ts +59 -0
- package/dist/fleet/socket.d.ts.map +1 -0
- package/dist/fleet/socket.js +111 -0
- package/dist/fleet-wire.d.ts +272 -0
- package/dist/fleet-wire.d.ts.map +1 -0
- package/dist/fleet-wire.js +472 -0
- package/dist/generated/graphql-schema.d.ts +176 -13
- package/dist/generated/graphql-schema.d.ts.map +1 -1
- package/dist/generated/graphql-schema.js +15 -3
- package/dist/generated/graphql.d.ts +79 -0
- package/dist/generated/graphql.d.ts.map +1 -1
- package/dist/generated/graphql.js +5 -0
- package/dist/index.d.ts +6 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -3
- package/dist/server-only.d.ts +54 -0
- package/dist/server-only.d.ts.map +1 -0
- package/dist/server-only.js +55 -0
- package/package.json +5 -1
|
@@ -2150,6 +2150,13 @@ export type ClientVideoPacketInput = {
|
|
|
2150
2150
|
/** One video fragment, base64-encoded: the 6-byte fragment header followed by that slice of the encoded frame. Opaque to the server. */
|
|
2151
2151
|
videoData: Scalars['String']['input'];
|
|
2152
2152
|
};
|
|
2153
|
+
/** The fleet session to end. */
|
|
2154
|
+
export type CloseFleetSessionInput = {
|
|
2155
|
+
/** The app the session is in (BigInt as a decimal string). */
|
|
2156
|
+
appId: Scalars['BigInt']['input'];
|
|
2157
|
+
/** The session's gameTokenId, from openFleetSession. */
|
|
2158
|
+
gameTokenId: Scalars['BigInt']['input'];
|
|
2159
|
+
};
|
|
2153
2160
|
/** Controls player-code censorship for an app. IMPLICIT_ALLOW admits lawful code by default; ALLOW_LIST requires every code target, including self-authored code, to match an active code/author/org admission. */
|
|
2154
2161
|
export declare enum CodeAdmissionMode {
|
|
2155
2162
|
AllowList = "ALLOW_LIST",
|
|
@@ -2436,7 +2443,7 @@ export type CreateOrgTokenInput = {
|
|
|
2436
2443
|
label?: InputMaybe<Scalars['String']['input']>;
|
|
2437
2444
|
/** Organization to mint the token for (BigInt as string). */
|
|
2438
2445
|
orgId: Scalars['BigInt']['input'];
|
|
2439
|
-
/** What the token may do: 'players:mint' and
|
|
2446
|
+
/** What the token may do: 'players:mint' and 'players:manage' (org-managed players), 'fleet:session' (its game servers' fleet sessions and hub connections), in any combination. Omit for a token with no scope, which can do nothing. */
|
|
2440
2447
|
scopes?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
2441
2448
|
};
|
|
2442
2449
|
export type CreateOrganizationInput = {
|
|
@@ -4204,6 +4211,22 @@ export type FileSafetyReportInput = {
|
|
|
4204
4211
|
/** The player reported. */
|
|
4205
4212
|
reportedUserId: Scalars['BigInt']['input'];
|
|
4206
4213
|
};
|
|
4214
|
+
/** A fleet session: one realtime session an organization's game server opens for itself, in which it carries the players who are on it. A player still signs in once, when they join (mintManagedPlayerToken); moving to another of the organization's servers is that server starting to carry them, with no call to this API. The session's token never goes to a player's device. */
|
|
4215
|
+
export type FleetSession = {
|
|
4216
|
+
__typename?: 'FleetSession';
|
|
4217
|
+
/** The app the session is in (BigInt as a decimal string). */
|
|
4218
|
+
appId: Scalars['BigInt']['output'];
|
|
4219
|
+
/** When the session ends unless it is refreshed first: 24 hours after it was opened or last refreshed. */
|
|
4220
|
+
expiresAt: Scalars['DateTime']['output'];
|
|
4221
|
+
/** The token's id (BigInt as a decimal string): what the session's own realtime messages carry, and what refreshFleetSession and closeFleetSession name it by. */
|
|
4222
|
+
gameTokenId: Scalars['BigInt']['output'];
|
|
4223
|
+
/** How many players the session may carry at once: the organization's maxFleetPlayers when the session was opened. A carry past it is refused, so a game with more players on one server opens a second session or asks for a higher number. */
|
|
4224
|
+
maxPlayers: Scalars['Int']['output'];
|
|
4225
|
+
/** The realtime server to connect the session to (ip4 and clientPort), in the datacenter that holds the app. The token is authorized there and nowhere else. */
|
|
4226
|
+
server: ServerStatus;
|
|
4227
|
+
/** The session's token: 64 characters, the key the game server signs the session's realtime messages with. Keep it on the server. It is not a bearer for this API. */
|
|
4228
|
+
token: Scalars['String']['output'];
|
|
4229
|
+
};
|
|
4207
4230
|
/** An org's free shared app slot quota usage. */
|
|
4208
4231
|
export type FreeAppQuota = {
|
|
4209
4232
|
__typename?: 'FreeAppQuota';
|
|
@@ -4277,7 +4300,7 @@ export declare enum FreeTierLevel {
|
|
|
4277
4300
|
Domain = "DOMAIN",
|
|
4278
4301
|
/** 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. */
|
|
4279
4302
|
Measured = "MEASURED",
|
|
4280
|
-
/** The organization has completed its project profile. 200 GB. */
|
|
4303
|
+
/** The organization has completed its project profile and Crowded Kingdoms has approved it. 200 GB. */
|
|
4281
4304
|
Profile = "PROFILE"
|
|
4282
4305
|
}
|
|
4283
4306
|
/** One rung of the free tier ladder. */
|
|
@@ -5190,6 +5213,8 @@ export type Mutation = {
|
|
|
5190
5213
|
claimGridOwnership: GridClaimResult;
|
|
5191
5214
|
/** Remove an app's compute allowance, so its ck-exec code is no longer paused for its budget. Returns true if an allowance was removed. Requires app-admin ('manage_apps'). */
|
|
5192
5215
|
clearAppComputeBudget: Scalars['Boolean']['output'];
|
|
5216
|
+
/** ORG TOKEN ONLY. End a fleet session now, when its game server stops: the realtime servers release the players it carries (their actors leave, as when a player's own session ends) and its place counts toward the organization's maxFleetSessions no longer. True when a session was ended; false when there was none by that id (already closed, or opened with another org token). A session that is neither closed nor refreshed ends by itself at expiresAt. The org token that opened the session, with scope fleet:session; to end the sessions another org token opened, revoke that token. */
|
|
5217
|
+
closeFleetSession: Scalars['Boolean']['output'];
|
|
5193
5218
|
/** RETIRED 2026-10-29: Crowded Kingdoms no longer hosts games and every tier runs with hosting off, so this answers CONTENT_HOSTING_DISABLED. Host your build on your own origin. Finish a publish: verifies every staged object against the manifest (HOSTED_PUBLISH_INCOMPLETE names what is missing), promotes the staging area to the live prefix, removes objects the previous publish left, records the publish LIVE and invalidates the content CDN. Requires manage_apps and a SESSION token. */
|
|
5194
5219
|
completeGamePublish: CompleteGamePublishResult;
|
|
5195
5220
|
/** Complete a magic-link sign-in with the emailed token; returns a session AuthResponse. Public (the token authorizes the call); throws if invalid/expired/used. First-party origins only (HOSTED_SIGN_IN_REQUIRED otherwise). */
|
|
@@ -5320,6 +5345,8 @@ export type Mutation = {
|
|
|
5320
5345
|
execConnect: ExecConnection;
|
|
5321
5346
|
/** Connect to an app's ck-exec code as one of its developers, for studio tools, manual runs and admin endpoints. The session's calls arrive as `Caller::Developer` with your user id and may reach any node type, not only `client` ones, but never the platform's `$` methods. Requires the org 'manage_compute' permission and your own session, not an app token. */
|
|
5322
5347
|
execConnectAsDeveloper: ExecConnection;
|
|
5348
|
+
/** ORG TOKEN ONLY. Connect one of your organization's game servers to an app's hubs as itself. Open a WebSocket to the answer's gatewayUrl with its token, as a player's game does after execConnect. The connection's calls reach a hub as `Caller::Org`: the server's own, or with the call-as frame made for a player the server names. Crowded Kingdoms checks that the server is your organization's; the player a call names is your organization's word, so a hub should treat it as that. The connection may call and subscribe to any node type of the app, has its own budget of 2,000 calls a second in place of a player's, and a hub placed by it counts toward no player's limit. One connection for each game server; an organization may hold 256 to one app on one execution host. Hubs built with ckx-sdk before 0.15 answer such a call `Denied` until they are built again. Call from the server with `Authorization: Bearer cko_...` (scope fleet:session); a request with an Origin header is refused. The checks of openFleetSession apply (fleet sessions switched on for the organization, the app its own, the addendum accepted), and the connection closes when the org token is revoked or fleet sessions are switched off. The token lasts a minute and is for opening the socket once; ask again to connect again. */
|
|
5349
|
+
execConnectAsServer: ExecConnection;
|
|
5323
5350
|
/** Consent to run a mod's CLIENT half in your browser at its current capability hash. A CLIENT half whose capabilities change carries a new hash, and the consent stops holding until you consent again. Answers CONFLICT when the hash is not the current one. Requires access to the app. */
|
|
5324
5351
|
execConsentClientMod: Scalars['Boolean']['output'];
|
|
5325
5352
|
/** Deploy a new version of an app's ck-exec topology: the manifest and any modules it names that were not uploaded before. The execution manager checks the manifest's tree and bounds and each module's digest, stores them, and makes the version active. Running instances of the types it keeps pick it up when they next start; those of a type it drops are persisted and stopped at once, and the type leaves the switched-off list. Requires the org 'manage_compute' permission. */
|
|
@@ -5404,6 +5431,8 @@ export type Mutation = {
|
|
|
5404
5431
|
mintGridToken: GridTokenResponse;
|
|
5405
5432
|
/** ORG TOKEN ONLY. Sign one of your organization's own players in and get its app-scoped gameplay token, the same token mintAppToken returns: hand `token` (and the URLs) to the player's device, which plays with it exactly as with any app token and refreshes it with refreshAppToken. Call from your server with `Authorization: Bearer cko_...` (scope players:mint); a request with an Origin header is refused. The player is created on its first sign-in (no email, password or wallet), and each sign-in lasts `sessionTtlSeconds` (default and maximum: the org's settings): after it the device comes back to you. The app must be one of your organization's apps (and in the token's app list, if it has one). Free tiers grant access automatically; a paid tier needs grantAppAccess. Refused with ORG_LEGAL_ACCEPTANCE_REQUIRED until an admin of the organization has accepted the current Org-Managed Players Addendum. Pass the player's ageYears and country, and its region where the country is checked by region: the player is refused TERRITORY_NOT_SUPPORTED in a country or region Crowded Kingdoms does not serve (or without a region it needs), AGE_REQUIRED without an age once players 13 and over are admitted, and AGE_REQUIREMENT_NOT_MET under 13 or under the app's or the country's minimum age (before it is created); that refusal names no age, the same player is refused it for 24 hours whatever is sent, and a player that exists and is said to be under 13 is deleted as deleteManagedPlayer does; its bracket and country are stored on it, and a refresh is refused once its bracket is wholly below the app's minimum. */
|
|
5406
5433
|
mintManagedPlayerToken: AppTokenResponse;
|
|
5434
|
+
/** ORG TOKEN ONLY. Open a fleet session for one of your organization's game servers: one realtime session the server holds for itself, in which it carries the players who are on it. Call from the server with `Authorization: Bearer cko_...` (scope fleet:session) when the server starts; a request with an Origin header is refused. The answer is the session's token (its signing key; keep it on the server), its gameTokenId, when it expires (24 hours; keep it with refreshFleetSession), how many players it may carry at once (maxPlayers) and the realtime server to connect to. A player still signs in once, when they join the game (mintManagedPlayerToken); the server then carries that player with the player's own token, and a player who moves to another of your servers is carried by that server with no call to this API. The app must be one of your organization's apps (and in the token's app list, if it has one). Refused FORBIDDEN until a Crowded Kingdoms operator has switched fleet sessions on for the organization (orgManagedPlayerSettings.fleetSessionsEnabled), ORG_LEGAL_ACCEPTANCE_REQUIRED until an admin has accepted the current Org-Managed Players Addendum, and FLEET_SESSION_LIMIT when the organization holds as many sessions as it may (maxFleetSessions). Open one session for each game server. */
|
|
5435
|
+
openFleetSession: FleetSession;
|
|
5407
5436
|
/** Create managed players ahead of their first sign-in, up to 500 a call in one write (creating a player is a cluster-wide commit, so a large import goes in batches). A player that exists is left as it is. Refused with ORG_LEGAL_ACCEPTANCE_REQUIRED until the organization has accepted the current Org-Managed Players Addendum. An org token with players:manage, or an org admin with manage_players. */
|
|
5408
5437
|
provisionManagedPlayers: ProvisionManagedPlayersResult;
|
|
5409
5438
|
/** Publishes an app to the shared Application API environment. Free under the org's app-slot quota (result.free = true); beyond the quota, publish still succeeds and metered usage is charged to the org wallet. Requires the 'manage_apps' permission on the app's org. Blocked when SHARED_GAME_API_URL is not configured. */
|
|
@@ -5418,6 +5447,8 @@ export type Mutation = {
|
|
|
5418
5447
|
recordPlayerConsents: Scalars['Boolean']['output'];
|
|
5419
5448
|
/** Rotate the calling app token for a fresh one (same app, extended TTL) and revoke the old. Call before the current token expires to keep playing without signing in again. Allowed for app-scoped tokens; re-checks entitlement. NATIVE CLIENTS: pass `currentServer` (the ip4 + clientPort serverWithLeastClients gave you) and the new token is authorized on that same Buddy -- read `authorizedServer` on the response: when it is set, keep your UDP session and just switch tokens; when it is null, call serverWithLeastClients for a fresh placement. `authorizedServer` is null when the node is gone, draining, Full, on the wrong shard -- or when it is NearCapacity / running hot and a Ready sibling has room: a refresh is the cheapest moment to rebalance a resident, so expect to be moved occasionally under load. Without `currentServer` the new token is not known to any Buddy until you call serverWithLeastClients. */
|
|
5420
5449
|
refreshAppToken: AppTokenResponse;
|
|
5450
|
+
/** ORG TOKEN ONLY. Keep a fleet session: its expiry moves to 24 hours from now, with the same token and gameTokenId, and it is authorized again on a realtime server. Name the server the session is connected to (currentServer) and it stays there while that server still serves the app; leave it out, or name one that no longer serves, and the answer's server is a new one to connect to, which is how a session that a realtime server told to move finds its next server. Call it before expiresAt, from the same server, with the org token that opened the session (scope fleet:session). Refused NOT_FOUND for a session that has expired, was closed, or was opened with another org token: open a new one. The checks of openFleetSession apply again, so a session stops within a day of fleet sessions being switched off. */
|
|
5451
|
+
refreshFleetSession: FleetSession;
|
|
5421
5452
|
/** Registers a new email + password account: creates the (initially unconfirmed) account, emails a confirmation link, and returns an AuthResponse with a session `token` for immediate use (send as `Authorization: Bearer <token>`). Since 2026-11-11 a gameplay token (mintAppToken, the hosted sign-in) is refused with EMAIL_CONFIRMATION_REQUIRED until the account confirms its address (confirmEmail with the emailed link); dev and test accounts made with a provisioning token are not asked. If an account already exists for the email it is refused with extensions.code EMAIL_ALREADY_REGISTERED (409) and no session is returned: an account that already has a password is left exactly as it was (sign in, or use the emailed reset), and only a password-less account (created via magic link/social) gets the password attached pending email confirmation. It is a routine outcome rather than a fault, and it reached clients as INTERNAL_SERVER_ERROR before v1.60.0, which is why several of them match it by its message text. A browser request (Origin header present) must send acceptLegal and attestAgeOfMajority both true or it is refused with LEGAL_ACCEPTANCE_REQUIRED before an account is created; a request with no Origin may omit them, and gameplay tokens stay refused until the documents are stored. Public; first-party origins only (HOSTED_SIGN_IN_REQUIRED otherwise); rate-limited. */
|
|
5422
5453
|
register: AuthResponse;
|
|
5423
5454
|
/** Register the PUBLIC half of a key your organization signs its players' sign-in assertions with (exchangeManagedPlayerAssertion): its kid, algorithm (EdDSA, ES256 or RS256), the JWK, the iss your assertions carry and, if your identity provider sets its own, their aud. The private key never leaves your systems. Requires manage_players on the org. */
|
|
@@ -5570,14 +5601,18 @@ export type Mutation = {
|
|
|
5570
5601
|
setOrgBillingExempt: BillingExemptOrgType;
|
|
5571
5602
|
/** 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. */
|
|
5572
5603
|
setOrgCardRequirementExempt: OrgCardRequirement;
|
|
5604
|
+
/** Operator only. Give an organization its own compute ceiling in place of the platform's default for a funded organization (16,384 instances reserving 65,536 MB for each app in each datacenter), or remove it with clear: true. Each of the organization's apps takes the change within about a minute. Lowering a ceiling stops nothing that runs, and nothing more is placed past it. It applies only while the organization is funded. Reserved memory is billed as before (meteredRateCard). */
|
|
5605
|
+
setOrgComputeCeiling: OrgComputeCeiling;
|
|
5573
5606
|
/** 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. */
|
|
5574
5607
|
setOrgFreeTierAgreement: OrgFreeTier;
|
|
5575
5608
|
/** 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). */
|
|
5576
5609
|
setOrgManagedPlayerSettings: OrgManagedPlayerSettings;
|
|
5577
5610
|
/** 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. */
|
|
5578
5611
|
setOrgOwnDomain: OrgFreeTier;
|
|
5579
|
-
/** 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
|
|
5612
|
+
/** Saves answers to the organization's project profile. An omitted field keeps its answer; null clears it. When every answer but anythingElse is in, the profile is complete and waits for Crowded Kingdoms' review; approved, it earns the PROFILE free tier level from the start of the next month. Next month's level is checked again at once. Requires the 'manage_billing' org permission. */
|
|
5580
5613
|
setOrgProjectProfile: OrgProjectProfile;
|
|
5614
|
+
/** Operator only. Records Crowded Kingdoms' decision on an organization's project profile (APPROVED or DECLINED), or clears it (WAITING_FOR_REVIEW). The business side decides in its CRM, whose webhook records the same; this is the operator's path. Recorded in billing_rate_changes (scope SHARED, metric free_tier_profile_review); next month's level is checked again at once. */
|
|
5615
|
+
setOrgProjectProfileReview: OrgProjectProfile;
|
|
5581
5616
|
/** 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. */
|
|
5582
5617
|
setOrgStatus: Organization;
|
|
5583
5618
|
/** 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. */
|
|
@@ -5778,6 +5813,9 @@ export type MutationClaimGridOwnershipArgs = {
|
|
|
5778
5813
|
export type MutationClearAppComputeBudgetArgs = {
|
|
5779
5814
|
appId: Scalars['BigInt']['input'];
|
|
5780
5815
|
};
|
|
5816
|
+
export type MutationCloseFleetSessionArgs = {
|
|
5817
|
+
input: CloseFleetSessionInput;
|
|
5818
|
+
};
|
|
5781
5819
|
export type MutationCompleteGamePublishArgs = {
|
|
5782
5820
|
publishId: Scalars['BigInt']['input'];
|
|
5783
5821
|
slug: Scalars['String']['input'];
|
|
@@ -5984,6 +6022,11 @@ export type MutationExecConnectAsDeveloperArgs = {
|
|
|
5984
6022
|
key?: InputMaybe<Scalars['String']['input']>;
|
|
5985
6023
|
nodeType?: InputMaybe<Scalars['String']['input']>;
|
|
5986
6024
|
};
|
|
6025
|
+
export type MutationExecConnectAsServerArgs = {
|
|
6026
|
+
appId: Scalars['BigInt']['input'];
|
|
6027
|
+
key?: InputMaybe<Scalars['String']['input']>;
|
|
6028
|
+
nodeType?: InputMaybe<Scalars['String']['input']>;
|
|
6029
|
+
};
|
|
5987
6030
|
export type MutationExecConsentClientModArgs = {
|
|
5988
6031
|
appId: Scalars['BigInt']['input'];
|
|
5989
6032
|
capabilityHash: Scalars['String']['input'];
|
|
@@ -6148,6 +6191,9 @@ export type MutationMintGridTokenArgs = {
|
|
|
6148
6191
|
export type MutationMintManagedPlayerTokenArgs = {
|
|
6149
6192
|
input: MintManagedPlayerTokenInput;
|
|
6150
6193
|
};
|
|
6194
|
+
export type MutationOpenFleetSessionArgs = {
|
|
6195
|
+
input: OpenFleetSessionInput;
|
|
6196
|
+
};
|
|
6151
6197
|
export type MutationProvisionManagedPlayersArgs = {
|
|
6152
6198
|
input: ProvisionManagedPlayersInput;
|
|
6153
6199
|
};
|
|
@@ -6179,6 +6225,9 @@ export type MutationRecordPlayerConsentsArgs = {
|
|
|
6179
6225
|
export type MutationRefreshAppTokenArgs = {
|
|
6180
6226
|
currentServer?: InputMaybe<CurrentServerInput>;
|
|
6181
6227
|
};
|
|
6228
|
+
export type MutationRefreshFleetSessionArgs = {
|
|
6229
|
+
input: RefreshFleetSessionInput;
|
|
6230
|
+
};
|
|
6182
6231
|
export type MutationRegisterArgs = {
|
|
6183
6232
|
registerUserInput: RegisterUserInput;
|
|
6184
6233
|
};
|
|
@@ -6453,6 +6502,9 @@ export type MutationSetOrgCardRequirementExemptArgs = {
|
|
|
6453
6502
|
orgId: Scalars['BigInt']['input'];
|
|
6454
6503
|
reason: Scalars['String']['input'];
|
|
6455
6504
|
};
|
|
6505
|
+
export type MutationSetOrgComputeCeilingArgs = {
|
|
6506
|
+
input: SetOrgComputeCeilingInput;
|
|
6507
|
+
};
|
|
6456
6508
|
export type MutationSetOrgFreeTierAgreementArgs = {
|
|
6457
6509
|
input: SetOrgFreeTierAgreementInput;
|
|
6458
6510
|
};
|
|
@@ -6466,6 +6518,9 @@ export type MutationSetOrgOwnDomainArgs = {
|
|
|
6466
6518
|
export type MutationSetOrgProjectProfileArgs = {
|
|
6467
6519
|
input: SetOrgProjectProfileInput;
|
|
6468
6520
|
};
|
|
6521
|
+
export type MutationSetOrgProjectProfileReviewArgs = {
|
|
6522
|
+
input: SetOrgProjectProfileReviewInput;
|
|
6523
|
+
};
|
|
6469
6524
|
export type MutationSetOrgStatusArgs = {
|
|
6470
6525
|
orgId: Scalars['BigInt']['input'];
|
|
6471
6526
|
status: Scalars['String']['input'];
|
|
@@ -6718,6 +6773,11 @@ export type NearbyGridsInput = {
|
|
|
6718
6773
|
/** Low corner of the region to scan, in chunk coordinates (normalized). */
|
|
6719
6774
|
lowChunk: ChunkCoordinatesInput;
|
|
6720
6775
|
};
|
|
6776
|
+
/** The app to open a fleet session in. */
|
|
6777
|
+
export type OpenFleetSessionInput = {
|
|
6778
|
+
/** One of the organization's apps (BigInt as a decimal string), in the org token's app list if it has one. */
|
|
6779
|
+
appId: Scalars['BigInt']['input'];
|
|
6780
|
+
};
|
|
6721
6781
|
/** 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. */
|
|
6722
6782
|
export type OrgAllowancePool = {
|
|
6723
6783
|
__typename?: 'OrgAllowancePool';
|
|
@@ -6788,6 +6848,28 @@ export type OrgCardRequirement = {
|
|
|
6788
6848
|
/** Whether the requirement applies to this organization now. */
|
|
6789
6849
|
requiredNow: Scalars['Boolean']['output'];
|
|
6790
6850
|
};
|
|
6851
|
+
/** What each of an organization's apps may run of compute modules in one datacenter once the organization is funded: the platform's default, or a ceiling an operator set for this organization. Each app has the whole of it in each datacenter. */
|
|
6852
|
+
export type OrgComputeCeiling = {
|
|
6853
|
+
__typename?: 'OrgComputeCeiling';
|
|
6854
|
+
/** The platform's default instances for a funded organization. */
|
|
6855
|
+
defaultMaxInstances: Scalars['Int']['output'];
|
|
6856
|
+
/** The platform's default reserved memory, in MB, for a funded organization. */
|
|
6857
|
+
defaultMaxReservedMb: Scalars['Int']['output'];
|
|
6858
|
+
/** Whether the organization is funded now (a spendable wallet balance, automatic billing or a billing exemption). While it is not, its apps keep the free tier limits whatever this says; execAppStatus reports what an app has. */
|
|
6859
|
+
funded: Scalars['Boolean']['output'];
|
|
6860
|
+
/** Instances one of its apps may have placed at once in one datacenter. */
|
|
6861
|
+
maxInstances: Scalars['Int']['output'];
|
|
6862
|
+
/** Memory, in MB, one of its apps' instances may reserve at once in one datacenter (each instance reserves its type's memory limit times its copies). */
|
|
6863
|
+
maxReservedMb: Scalars['Int']['output'];
|
|
6864
|
+
/** True when an operator set these for this organization; false when they are the platform's default for a funded organization. */
|
|
6865
|
+
operatorSet: Scalars['Boolean']['output'];
|
|
6866
|
+
/** The organization (BigInt as a decimal string). */
|
|
6867
|
+
orgId: Scalars['BigInt']['output'];
|
|
6868
|
+
/** Why the operator set it. Null for the default. */
|
|
6869
|
+
reason: Maybe<Scalars['String']['output']>;
|
|
6870
|
+
/** When the operator set it. Null for the default. */
|
|
6871
|
+
updatedAt: Maybe<Scalars['DateTime']['output']>;
|
|
6872
|
+
};
|
|
6791
6873
|
/** 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. */
|
|
6792
6874
|
export type OrgFreeTier = {
|
|
6793
6875
|
__typename?: 'OrgFreeTier';
|
|
@@ -6808,6 +6890,8 @@ export type OrgFreeTier = {
|
|
|
6808
6890
|
orgId: Scalars['BigInt']['output'];
|
|
6809
6891
|
/** The domain the organization gives as its own. */
|
|
6810
6892
|
ownDomain: Maybe<Scalars['String']['output']>;
|
|
6893
|
+
/** Where the project profile stands. PROFILE is met while it is APPROVED. */
|
|
6894
|
+
profileStatus: ProjectProfileStatus;
|
|
6811
6895
|
thisMonth: OrgFreeTierMonth;
|
|
6812
6896
|
};
|
|
6813
6897
|
/** A written agreement for a larger free allowance. */
|
|
@@ -6843,6 +6927,12 @@ export type OrgManagedPlayerSettings = {
|
|
|
6843
6927
|
defaultSessionTtlSeconds: Scalars['Int']['output'];
|
|
6844
6928
|
/** Whether the org may sign its own players in (mintManagedPlayerToken, exchangeManagedPlayerAssertion). */
|
|
6845
6929
|
enabled: Scalars['Boolean']['output'];
|
|
6930
|
+
/** Whether the organization's game servers may open fleet sessions (openFleetSession): one realtime session a server, carrying the server's players. An operator switches it on; it needs org-managed players enabled too. */
|
|
6931
|
+
fleetSessionsEnabled: Scalars['Boolean']['output'];
|
|
6932
|
+
/** Players one fleet session may carry at once (256 unless an operator set another, 1 to 1,024). A session that is already open takes the new number at its next refresh; the maxPlayers of an open or refresh answer is the one that applies. */
|
|
6933
|
+
maxFleetPlayers: Scalars['Int']['output'];
|
|
6934
|
+
/** Fleet sessions the organization may hold at once, over all its apps (512 unless an operator set another, 1 to 65,536). An organization grows by adding game servers, so an operator raises this when it needs more. */
|
|
6935
|
+
maxFleetSessions: Scalars['Int']['output'];
|
|
6846
6936
|
/** How many managed players the org may hold. */
|
|
6847
6937
|
maxPlayers: Scalars['BigInt']['output'];
|
|
6848
6938
|
/** The longest sign-in the org may ask for (seconds). */
|
|
@@ -6903,10 +6993,16 @@ export type OrgPermission = {
|
|
|
6903
6993
|
/** Stable permission key used in role grants (e.g. 'manage_members', 'manage_tokens'). */
|
|
6904
6994
|
permissionKey: Scalars['ID']['output'];
|
|
6905
6995
|
};
|
|
6906
|
-
/** The organization's
|
|
6996
|
+
/** The organization's project profile: seven questions, the last optional. Complete and approved by Crowded Kingdoms, it earns the PROFILE free tier level. */
|
|
6907
6997
|
export type OrgProjectProfile = {
|
|
6908
6998
|
__typename?: 'OrgProjectProfile';
|
|
6909
|
-
/**
|
|
6999
|
+
/** AI agents that act in one world at launch. */
|
|
7000
|
+
agentsPerWorldLaunch: Maybe<Scalars['Int']['output']>;
|
|
7001
|
+
/** AI agents that act in one world a year on. */
|
|
7002
|
+
agentsPerWorldYear1: Maybe<Scalars['Int']['output']>;
|
|
7003
|
+
/** Anything else the organization wants Crowded Kingdoms to know. Optional. */
|
|
7004
|
+
anythingElse: Maybe<Scalars['String']['output']>;
|
|
7005
|
+
/** When every answer was in; null while any is missing. anythingElse is optional. */
|
|
6910
7006
|
completedAt: Maybe<Scalars['DateTime']['output']>;
|
|
6911
7007
|
/** The networking it uses today. */
|
|
6912
7008
|
currentNetworking: Maybe<Scalars['String']['output']>;
|
|
@@ -6918,19 +7014,25 @@ export type OrgProjectProfile = {
|
|
|
6918
7014
|
launchDate: Maybe<Scalars['DateTime']['output']>;
|
|
6919
7015
|
logicLocation: Maybe<ProjectLogicLocation>;
|
|
6920
7016
|
orgId: Scalars['BigInt']['output'];
|
|
6921
|
-
/** Players each
|
|
7017
|
+
/** Players and AI agents that see or interact with each other at once, at launch. */
|
|
6922
7018
|
playersInViewLaunch: Maybe<Scalars['Int']['output']>;
|
|
6923
|
-
/** Players each
|
|
7019
|
+
/** Players and AI agents that see or interact with each other at once, a year on. */
|
|
6924
7020
|
playersInViewYear1: Maybe<Scalars['Int']['output']>;
|
|
6925
7021
|
/** Players in one world at launch. */
|
|
6926
7022
|
playersPerWorldLaunch: Maybe<Scalars['Int']['output']>;
|
|
6927
7023
|
/** Players in one world a year on. */
|
|
6928
7024
|
playersPerWorldYear1: Maybe<Scalars['Int']['output']>;
|
|
6929
|
-
/** Whether Crowded Kingdoms may name the
|
|
7025
|
+
/** Whether Crowded Kingdoms may name the organization as a customer at launch. */
|
|
6930
7026
|
referenceConsent: Maybe<Scalars['Boolean']['output']>;
|
|
7027
|
+
/** When Crowded Kingdoms approved or declined the profile; null while it waits. */
|
|
7028
|
+
reviewedAt: Maybe<Scalars['DateTime']['output']>;
|
|
6931
7029
|
stage: Maybe<ProjectStage>;
|
|
7030
|
+
/** True when the organization is starting from scratch, with no networking to replace. It answers the networking question in place of currentNetworking and its cost. */
|
|
7031
|
+
startingFromScratch: Maybe<Scalars['Boolean']['output']>;
|
|
7032
|
+
/** INCOMPLETE, WAITING_FOR_REVIEW, APPROVED or DECLINED. Crowded Kingdoms reviews a complete profile before the PROFILE level applies, and promises no time for it. */
|
|
7033
|
+
status: ProjectProfileStatus;
|
|
6932
7034
|
updatedAt: Maybe<Scalars['DateTime']['output']>;
|
|
6933
|
-
/** What the game
|
|
7035
|
+
/** What the organization is building: a game, an experience or another application. */
|
|
6934
7036
|
whatBuilding: Maybe<Scalars['String']['output']>;
|
|
6935
7037
|
worldShape: Maybe<ProjectWorldShape>;
|
|
6936
7038
|
};
|
|
@@ -7688,12 +7790,23 @@ export declare enum PriceBandBasis {
|
|
|
7688
7790
|
Rate = "RATE",
|
|
7689
7791
|
Volume = "VOLUME"
|
|
7690
7792
|
}
|
|
7691
|
-
/** Where the
|
|
7793
|
+
/** Where the project's logic runs: on the clients, in light server code, or in a full server simulation. */
|
|
7692
7794
|
export declare enum ProjectLogicLocation {
|
|
7693
7795
|
Clients = "CLIENTS",
|
|
7694
7796
|
FullServerSimulation = "FULL_SERVER_SIMULATION",
|
|
7695
7797
|
LightServerCode = "LIGHT_SERVER_CODE"
|
|
7696
7798
|
}
|
|
7799
|
+
/** Where an organization's project profile stands. The PROFILE free tier level needs it APPROVED. */
|
|
7800
|
+
export declare enum ProjectProfileStatus {
|
|
7801
|
+
/** Crowded Kingdoms approved it: the PROFILE level applies from the start of the next month. */
|
|
7802
|
+
Approved = "APPROVED",
|
|
7803
|
+
/** Crowded Kingdoms declined it: the organization has the level its other conditions give it. */
|
|
7804
|
+
Declined = "DECLINED",
|
|
7805
|
+
/** An answer is missing (anythingElse is optional). */
|
|
7806
|
+
Incomplete = "INCOMPLETE",
|
|
7807
|
+
/** Every answer is in, and Crowded Kingdoms has not decided yet. */
|
|
7808
|
+
WaitingForReview = "WAITING_FOR_REVIEW"
|
|
7809
|
+
}
|
|
7697
7810
|
/** The project's stage. */
|
|
7698
7811
|
export declare enum ProjectStage {
|
|
7699
7812
|
Beta = "BETA",
|
|
@@ -7702,7 +7815,7 @@ export declare enum ProjectStage {
|
|
|
7702
7815
|
Production = "PRODUCTION",
|
|
7703
7816
|
Prototype = "PROTOTYPE"
|
|
7704
7817
|
}
|
|
7705
|
-
/** Whether the
|
|
7818
|
+
/** Whether the project is one shared world or many copies of a small one. */
|
|
7706
7819
|
export declare enum ProjectWorldShape {
|
|
7707
7820
|
ManyCopies = "MANY_COPIES",
|
|
7708
7821
|
OneWorld = "ONE_WORLD",
|
|
@@ -8127,6 +8240,8 @@ export type Query = {
|
|
|
8127
8240
|
orgAutoBilling: OrgAutoBilling;
|
|
8128
8241
|
/** 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. */
|
|
8129
8242
|
orgCardRequirement: OrgCardRequirement;
|
|
8243
|
+
/** What each of the organization's apps may run of compute modules in one datacenter once it is funded: instances placed at once and the memory they reserve, and whether an operator set them for this organization. Requires view_compute_diagnostics on the org (super-admins and operators bypass). Read-only. */
|
|
8244
|
+
orgComputeCeiling: OrgComputeCeiling;
|
|
8130
8245
|
/**
|
|
8131
8246
|
* 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.
|
|
8132
8247
|
* @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.
|
|
@@ -8757,6 +8872,9 @@ export type QueryOrgAutoBillingArgs = {
|
|
|
8757
8872
|
export type QueryOrgCardRequirementArgs = {
|
|
8758
8873
|
orgId: Scalars['BigInt']['input'];
|
|
8759
8874
|
};
|
|
8875
|
+
export type QueryOrgComputeCeilingArgs = {
|
|
8876
|
+
orgId: Scalars['BigInt']['input'];
|
|
8877
|
+
};
|
|
8760
8878
|
export type QueryOrgFreeAppQuotaArgs = {
|
|
8761
8879
|
orgId: Scalars['BigInt']['input'];
|
|
8762
8880
|
};
|
|
@@ -9029,6 +9147,15 @@ export type RecordPlayerAgeInput = {
|
|
|
9029
9147
|
/** True when a player under 18 confirms that a parent or guardian agreed to their account. Required true under 18; ignored at 18 or over. */
|
|
9030
9148
|
parentalConfirmation?: InputMaybe<Scalars['Boolean']['input']>;
|
|
9031
9149
|
};
|
|
9150
|
+
/** The fleet session to keep, and where it is connected. */
|
|
9151
|
+
export type RefreshFleetSessionInput = {
|
|
9152
|
+
/** The app the session is in (BigInt as a decimal string). */
|
|
9153
|
+
appId: Scalars['BigInt']['input'];
|
|
9154
|
+
/** The realtime server the session is connected to (the ip4 and clientPort it was given). When that server still serves the app the session stays on it. Leave it out, or name one that no longer serves, and the answer names a new server to connect to: use that after a realtime server told the session to move. */
|
|
9155
|
+
currentServer?: InputMaybe<CurrentServerInput>;
|
|
9156
|
+
/** The session's gameTokenId, from openFleetSession. */
|
|
9157
|
+
gameTokenId: Scalars['BigInt']['input'];
|
|
9158
|
+
};
|
|
9032
9159
|
export type RegisterOrgSigningKeyInput = {
|
|
9033
9160
|
/** 'EdDSA' (Ed25519), 'ES256' (P-256) or 'RS256' (RSA, 2048 bits or more). */
|
|
9034
9161
|
algorithm: Scalars['String']['input'];
|
|
@@ -9753,6 +9880,19 @@ export type SetMemberRolesInput = {
|
|
|
9753
9880
|
/** The member (user) whose roles to set. */
|
|
9754
9881
|
userId: Scalars['BigInt']['input'];
|
|
9755
9882
|
};
|
|
9883
|
+
/** An organization's own compute ceiling, or its return to the platform's default. */
|
|
9884
|
+
export type SetOrgComputeCeilingInput = {
|
|
9885
|
+
/** True to remove the organization's own ceiling, so its apps go back to the platform's default. */
|
|
9886
|
+
clear?: InputMaybe<Scalars['Boolean']['input']>;
|
|
9887
|
+
/** Instances one of its apps may have placed at once in one datacenter, 1 to 1,048,576. Required unless clear is true. */
|
|
9888
|
+
maxInstances?: InputMaybe<Scalars['Int']['input']>;
|
|
9889
|
+
/** Memory, in MB, one of its apps' instances may reserve at once in one datacenter, 1 to 4,194,304. Required unless clear is true. */
|
|
9890
|
+
maxReservedMb?: InputMaybe<Scalars['Int']['input']>;
|
|
9891
|
+
/** The organization (BigInt as a decimal string). */
|
|
9892
|
+
orgId: Scalars['BigInt']['input'];
|
|
9893
|
+
/** Why, kept with the ceiling. */
|
|
9894
|
+
reason: Scalars['String']['input'];
|
|
9895
|
+
};
|
|
9756
9896
|
/** Operator only: records a written agreement for a larger free allowance (whole months, starting next month or later), or revokes one. */
|
|
9757
9897
|
export type SetOrgFreeTierAgreementInput = {
|
|
9758
9898
|
/** The first instant of the last UTC month it covers. Required unless revoke. */
|
|
@@ -9770,13 +9910,25 @@ export type SetOrgFreeTierAgreementInput = {
|
|
|
9770
9910
|
export type SetOrgManagedPlayerSettingsInput = {
|
|
9771
9911
|
defaultSessionTtlSeconds?: InputMaybe<Scalars['Int']['input']>;
|
|
9772
9912
|
enabled: Scalars['Boolean']['input'];
|
|
9913
|
+
/** Whether the organization's game servers may open fleet sessions (openFleetSession). Left out, it stays as it is (off for an organization never given it). Switching it off, or switching the organization's managed players off, ends the fleet sessions it holds. */
|
|
9914
|
+
fleetSessionsEnabled?: InputMaybe<Scalars['Boolean']['input']>;
|
|
9915
|
+
/** Players one fleet session may carry at once: 1 to 1,024 (256 for an organization never given another). Left out, it stays as it is. It applies to a session when it is opened and again at each refresh. */
|
|
9916
|
+
maxFleetPlayers?: InputMaybe<Scalars['Int']['input']>;
|
|
9917
|
+
/** Fleet sessions the organization may hold at once, over all its apps: 1 to 65,536 (512 for an organization never given another). Left out, it stays as it is. */
|
|
9918
|
+
maxFleetSessions?: InputMaybe<Scalars['Int']['input']>;
|
|
9773
9919
|
maxPlayers?: InputMaybe<Scalars['BigInt']['input']>;
|
|
9774
9920
|
maxSessionTtlSeconds?: InputMaybe<Scalars['Int']['input']>;
|
|
9775
9921
|
mintsPerMinute?: InputMaybe<Scalars['Int']['input']>;
|
|
9776
9922
|
orgId: Scalars['BigInt']['input'];
|
|
9777
9923
|
};
|
|
9778
|
-
/** Answers to the project profile. An omitted field keeps its answer; null clears it. Complete when every answer is in. */
|
|
9924
|
+
/** Answers to the project profile. An omitted field keeps its answer; null clears it. Complete when every answer but anythingElse is in; startingFromScratch true answers the networking question. */
|
|
9779
9925
|
export type SetOrgProjectProfileInput = {
|
|
9926
|
+
/** AI agents that act in one world at launch; 0 when none do. */
|
|
9927
|
+
agentsPerWorldLaunch?: InputMaybe<Scalars['Int']['input']>;
|
|
9928
|
+
/** AI agents that act in one world a year on; 0 when none do. */
|
|
9929
|
+
agentsPerWorldYear1?: InputMaybe<Scalars['Int']['input']>;
|
|
9930
|
+
/** Optional; 2,000 characters at most. */
|
|
9931
|
+
anythingElse?: InputMaybe<Scalars['String']['input']>;
|
|
9780
9932
|
/** 2,000 characters at most. */
|
|
9781
9933
|
currentNetworking?: InputMaybe<Scalars['String']['input']>;
|
|
9782
9934
|
/** US cents a month, 0 to 2,000,000,000. */
|
|
@@ -9793,10 +9945,21 @@ export type SetOrgProjectProfileInput = {
|
|
|
9793
9945
|
playersPerWorldYear1?: InputMaybe<Scalars['Int']['input']>;
|
|
9794
9946
|
referenceConsent?: InputMaybe<Scalars['Boolean']['input']>;
|
|
9795
9947
|
stage?: InputMaybe<ProjectStage>;
|
|
9796
|
-
/**
|
|
9948
|
+
/** True when starting from scratch: it answers the networking question in place of currentNetworking and its cost. */
|
|
9949
|
+
startingFromScratch?: InputMaybe<Scalars['Boolean']['input']>;
|
|
9950
|
+
/** What the organization is building: a game, an experience or another application (2,000 characters at most). */
|
|
9797
9951
|
whatBuilding?: InputMaybe<Scalars['String']['input']>;
|
|
9798
9952
|
worldShape?: InputMaybe<ProjectWorldShape>;
|
|
9799
9953
|
};
|
|
9954
|
+
/** Operator only: Crowded Kingdoms' decision on an organization's project profile, or back to waiting for review. */
|
|
9955
|
+
export type SetOrgProjectProfileReviewInput = {
|
|
9956
|
+
/** Organization id. */
|
|
9957
|
+
orgId: Scalars['BigInt']['input'];
|
|
9958
|
+
/** Why, for the audit (billing_rate_changes). */
|
|
9959
|
+
reason: Scalars['String']['input'];
|
|
9960
|
+
/** APPROVED or DECLINED, or WAITING_FOR_REVIEW to clear the decision. INCOMPLETE is refused. */
|
|
9961
|
+
status: ProjectProfileStatus;
|
|
9962
|
+
};
|
|
9800
9963
|
/** A change to when the player trial is per organization. */
|
|
9801
9964
|
export type SetPlayerTrialPoolInput = {
|
|
9802
9965
|
/** 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. */
|