@crowdedkingdoms/crowdyjs 18.32.0-test.1 → 18.33.0-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/MIGRATION.md +29 -0
- package/README.md +1 -0
- package/dist/crowdy-studio/controller.d.ts +6 -1
- package/dist/crowdy-studio/controller.d.ts.map +1 -1
- package/dist/crowdy-studio/controller.js +28 -13
- package/dist/crowdy-studio/starter-projects.d.ts +5 -0
- package/dist/crowdy-studio/starter-projects.d.ts.map +1 -1
- package/dist/crowdy-studio/starter-projects.js +7 -5
- package/dist/default-origin.d.ts +6 -6
- package/dist/default-origin.d.ts.map +1 -1
- package/dist/default-origin.js +6 -6
- package/dist/domains/crowdyStudio.d.ts +10 -0
- package/dist/domains/crowdyStudio.d.ts.map +1 -1
- package/dist/domains/crowdyStudio.js +6 -1
- package/dist/domains/exec.d.ts +24 -4
- package/dist/domains/exec.d.ts.map +1 -1
- package/dist/domains/exec.js +30 -7
- package/dist/generated/graphql-schema.d.ts +106 -37
- package/dist/generated/graphql-schema.d.ts.map +1 -1
- package/dist/generated/graphql-schema.js +14 -8
- package/dist/generated/graphql.d.ts +57 -0
- package/dist/generated/graphql.d.ts.map +1 -1
- package/dist/generated/graphql.js +17 -15
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -925,9 +925,9 @@ export type App = {
|
|
|
925
925
|
hasSafetyModerator: Maybe<Scalars['Boolean']['output']>;
|
|
926
926
|
/** The app's own gameplay idle timeout in seconds, when it sets one: 0 turns the timeout off, otherwise 60 to 86400. null uses the platform default (effectiveIdleTimeoutSeconds). Set with updateApp (manage_apps). */
|
|
927
927
|
idleTimeoutSeconds: Maybe<Scalars['Int']['output']>;
|
|
928
|
-
/** True for
|
|
928
|
+
/** True for a trusted app: createPortalAuthorizationCode (Studio's hosted sign-in, or a launcher's PKCE handoff) issues its code without the player's consent grant, so no consent screen is shown. Set by Crowded Kingdoms; studio admins cannot set it. mintAppToken, which a client holding the session calls directly, never asks for consent. */
|
|
929
929
|
isTrusted: Scalars['Boolean']['output'];
|
|
930
|
-
/** Browser destination (origin/URL) a player is
|
|
930
|
+
/** Browser destination (origin/URL) of this app: where a player is sent to enter it from another page, and the page Crowdy Studio's Live code opens. Also accepted, by origin, as a redirect URI for hosted sign-in. */
|
|
931
931
|
launchUrl: Maybe<Scalars['String']['output']>;
|
|
932
932
|
/** Whether the organization lets its org-managed players build and run mods (and use the Studio agent) in this app, paying for their mod compute, egress, storage and model tokens itself. False by default, and false on a tier that does not serve org-managed players. Set with setAppManagedPlayerMods (manage_billing). Players with a Crowded Kingdoms account are unaffected. */
|
|
933
933
|
managedPlayerModsEnabled: Scalars['Boolean']['output'];
|
|
@@ -1013,7 +1013,7 @@ export type AppAccessTier = {
|
|
|
1013
1013
|
/** Timestamp when the tier was last updated. */
|
|
1014
1014
|
updatedAt: Scalars['DateTime']['output'];
|
|
1015
1015
|
};
|
|
1016
|
-
/** A user's standing consent for an app to receive app-scoped tokens
|
|
1016
|
+
/** A user's standing consent for an app to receive app-scoped tokens through a portal authorization code (the “connected apps” list). */
|
|
1017
1017
|
export type AppAuthorizationGrant = {
|
|
1018
1018
|
__typename?: 'AppAuthorizationGrant';
|
|
1019
1019
|
appId: Scalars['ID']['output'];
|
|
@@ -1252,16 +1252,16 @@ export type AppSharedSubscription = {
|
|
|
1252
1252
|
/** Subscription status, e.g. 'active', 'past_due', or 'canceled'. */
|
|
1253
1253
|
status: Scalars['String']['output'];
|
|
1254
1254
|
};
|
|
1255
|
-
/** Lifecycle state of an app. Independent of AppVisibility; the public marketplace
|
|
1255
|
+
/** Lifecycle state of an app. Independent of AppVisibility; the public marketplace lists only LIVE apps. Only ARCHIVED changes who may play; otherwise the app's access tiers decide. */
|
|
1256
1256
|
export declare enum AppStatus {
|
|
1257
|
-
/** Soft-deleted via archiveApp: retained but read-only and excluded from the marketplace. Reversible by setting status back to DRAFT or LIVE. */
|
|
1257
|
+
/** Soft-deleted via archiveApp: retained but read-only and excluded from the marketplace. While archived, players are refused app tokens and refreshes; holders of manage_apps or moderate_safety on its organization still get one. Reversible by setting status back to DRAFT or LIVE. */
|
|
1258
1258
|
Archived = "ARCHIVED",
|
|
1259
|
-
/** Work
|
|
1259
|
+
/** Work in progress: never listed in the marketplace. It refuses no player; to keep players out, remove the app's free default access tier and grant access explicitly. Set via updateApp; new apps default to LIVE. */
|
|
1260
1260
|
Draft = "DRAFT",
|
|
1261
|
-
/** Published
|
|
1261
|
+
/** Published; listed in the public marketplace when visibility=PUBLIC. */
|
|
1262
1262
|
Live = "LIVE"
|
|
1263
1263
|
}
|
|
1264
|
-
/** A short-lived, app-scoped gameplay token (
|
|
1264
|
+
/** A short-lived, app-scoped gameplay token (portal). Confined to a single app: usable only against that app's Game API + Buddy realtime surface (plus read-only `me` and same-app `refreshAppToken`). It CANNOT perform management operations and CANNOT mint tokens for other apps, so a game stack that receives it never gets the player's full identity session. */
|
|
1265
1265
|
export type AppTokenResponse = {
|
|
1266
1266
|
__typename?: 'AppTokenResponse';
|
|
1267
1267
|
/** The app this token is confined to, as a String. */
|
|
@@ -1270,7 +1270,7 @@ export type AppTokenResponse = {
|
|
|
1270
1270
|
authorizedServer: Maybe<ServerStatus>;
|
|
1271
1271
|
/** Stable entry origin, resolving to every datacenter, that always reaches SOME healthy instance. Use it to re-discover endpoints when `gameApiUrl` stops answering: a token-holding client cannot re-mint, because that needs the identity session it does not have. Never a per-datacenter or per-instance address. */
|
|
1272
1272
|
discoveryUrl: Maybe<Scalars['String']['output']>;
|
|
1273
|
-
/** ISO-8601 UTC expiry. Call `refreshAppToken` (same app) before this
|
|
1273
|
+
/** ISO-8601 UTC expiry. Call `refreshAppToken` (same app) before this. A different app needs its own token: a hosted sign-in for that app, or mintAppToken with the session. */
|
|
1274
1274
|
expiresAt: Scalars['String']['output'];
|
|
1275
1275
|
/** Base HTTPS URL of the Game API that serves this app — its OWN datacenter's endpoint when a placement exists, because that is where the app's shards are. Null if the app has no dedicated/shared game-api route yet. Use this for gameplay; use `discoveryUrl` to recover if it stops answering. */
|
|
1276
1276
|
gameApiUrl: Maybe<Scalars['String']['output']>;
|
|
@@ -1294,6 +1294,10 @@ export type AppUsageProjection = {
|
|
|
1294
1294
|
currentEgressBytes: Scalars['String']['output'];
|
|
1295
1295
|
/** Ingress bytes recorded so far this calendar month (from app_monthly_egress.ingress_bytes): bytes clients sent the service over UDP replication and GraphQL, measured on the same basis as egress. Billed once, as aggregate_data_ingress above its own monthly allowance; never counted toward the egress figure or allowance. */
|
|
1296
1296
|
currentIngressBytes: Scalars['String']['output'];
|
|
1297
|
+
/** What this month's data out has cost so far, in cents, at its rate bands and after the free allowance (before any billing exemption). Null with dataOutRateBands. */
|
|
1298
|
+
dataOutPricedCents: Maybe<Scalars['Float']['output']>;
|
|
1299
|
+
/** This month's data out split by delivery-rate band, as the ledger last priced it. Null when the app's month is not priced by delivery rate, or has no data out yet. */
|
|
1300
|
+
dataOutRateBands: Maybe<Array<DataOutRateBand>>;
|
|
1297
1301
|
/** Fractional UTC days elapsed since the calendar month started. */
|
|
1298
1302
|
daysElapsed: Scalars['Float']['output'];
|
|
1299
1303
|
/** Per-app free monthly egress allowance in bytes (5 decimal GB). */
|
|
@@ -1304,6 +1308,8 @@ export type AppUsageProjection = {
|
|
|
1304
1308
|
onTrackToExceed: Maybe<Scalars['Boolean']['output']>;
|
|
1305
1309
|
/** Projected end-of-month egress bytes (linear extrapolation), or null when insufficient data. */
|
|
1306
1310
|
projectedBytes: Maybe<Scalars['String']['output']>;
|
|
1311
|
+
/** Projected end-of-month data-out cost in cents: this month's mix of rate bands scaled to the projected egress and priced the same way. Null when there is insufficient data or no rate bands. */
|
|
1312
|
+
projectedDataOutCents: Maybe<Scalars['Float']['output']>;
|
|
1307
1313
|
/** Projected end-of-month stored input logs in byte-hours (linear extrapolation), or null when insufficient data. */
|
|
1308
1314
|
projectedInputLogByteHours: Maybe<Scalars['String']['output']>;
|
|
1309
1315
|
/** Projected usage as a percentage of the free allowance, or null when insufficient data. */
|
|
@@ -1385,13 +1391,13 @@ export type AppUserAccessEdge = {
|
|
|
1385
1391
|
/** The node at the end of this edge. */
|
|
1386
1392
|
node: AppUserAccess;
|
|
1387
1393
|
};
|
|
1388
|
-
/**
|
|
1394
|
+
/** Whether an app is listed in the public marketplace. Independent of AppStatus: the marketplace lists only PUBLIC, LIVE apps. Visibility never decides who may play; the app's access tiers do (a free default tier admits every player, and without one a player needs a grant). */
|
|
1389
1395
|
export declare enum AppVisibility {
|
|
1390
|
-
/**
|
|
1396
|
+
/** Not listed in the marketplace. It hides the app from listings only: appBySlug and app(appId) still return it, and it refuses no player (the app's access tiers decide who may play). */
|
|
1391
1397
|
Private = "PRIVATE",
|
|
1392
1398
|
/** Listed in the public marketplace (when status=LIVE) and resolvable by slug. */
|
|
1393
1399
|
Public = "PUBLIC",
|
|
1394
|
-
/**
|
|
1400
|
+
/** Not listed in the marketplace; anyone with its org and app slugs can look it up (appBySlug). */
|
|
1395
1401
|
Unlisted = "UNLISTED"
|
|
1396
1402
|
}
|
|
1397
1403
|
/** A Relay cursor connection over App records. Page with first/after; pass pageInfo.endCursor back as after for the next page. */
|
|
@@ -1455,7 +1461,7 @@ export type AuthResponse = {
|
|
|
1455
1461
|
/** The authenticated user. */
|
|
1456
1462
|
user: User;
|
|
1457
1463
|
};
|
|
1458
|
-
/** Approve (consent to) an app receiving app-scoped tokens
|
|
1464
|
+
/** Approve (consent to) an app receiving app-scoped tokens through a portal authorization code. */
|
|
1459
1465
|
export type AuthorizeAppInput = {
|
|
1460
1466
|
/** App to authorize. */
|
|
1461
1467
|
appId: Scalars['BigInt']['input'];
|
|
@@ -2220,7 +2226,7 @@ export type CreateActorInput = {
|
|
|
2220
2226
|
};
|
|
2221
2227
|
/** Input payload for creating a new app. */
|
|
2222
2228
|
export type CreateAppInput = {
|
|
2223
|
-
/** Datacenter the app will live in, e.g. '
|
|
2229
|
+
/** Datacenter the app will live in, e.g. 'va'. Query placeableDatacenters for the accepted codes and whether each can currently hold an app. REQUIRED and permanent: an app is distributed on app_id, so all of its data lives on one node in one datacenter and that is fixed when the id is minted. Creation FAILS if the datacenter is unknown to this deployment or holds no capacity, rather than creating an app that cannot be routed. There is no default — the instance answering this call may be in a different datacenter from the one you want. Moving an app afterwards is an operator action. */
|
|
2224
2230
|
datacenter: Scalars['String']['input'];
|
|
2225
2231
|
/** Optional short plain-text description for listings. */
|
|
2226
2232
|
description?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -2378,7 +2384,7 @@ export type CreateOrganizationInput = {
|
|
|
2378
2384
|
/** Unique URL slug; lowercase letters, numbers, and dashes only (1-128 characters). */
|
|
2379
2385
|
slug: Scalars['String']['input'];
|
|
2380
2386
|
};
|
|
2381
|
-
/** Input for createPortalAuthorizationCode: the
|
|
2387
|
+
/** Input for createPortalAuthorizationCode: the identity origin holding the session token (Studio's hosted sign-in, or a native launcher) mints a one-time code the destination game exchanges for an app token. Browser handoff path; pair with a PKCE verifier held by the destination game origin. */
|
|
2382
2388
|
export type CreatePortalAuthorizationCodeInput = {
|
|
2383
2389
|
/** Numeric id of the target app the player is portaling into. */
|
|
2384
2390
|
appId: Scalars['BigInt']['input'];
|
|
@@ -2386,7 +2392,7 @@ export type CreatePortalAuthorizationCodeInput = {
|
|
|
2386
2392
|
codeChallenge: Scalars['String']['input'];
|
|
2387
2393
|
/** PKCE method: "S256" (default, recommended) or "plain". */
|
|
2388
2394
|
codeChallengeMethod?: InputMaybe<Scalars['String']['input']>;
|
|
2389
|
-
/** Where to redirect the player after issuing the code. Must match the target app's
|
|
2395
|
+
/** Where to redirect the player after issuing the code. Must match, by origin, one of the target app's registered redirect URIs or its launch URL; an app with neither refuses every code. */
|
|
2390
2396
|
redirectUri: Scalars['String']['input'];
|
|
2391
2397
|
};
|
|
2392
2398
|
/** Create a team in an app. */
|
|
@@ -3365,6 +3371,14 @@ export type CrowdyStudioLibraryFile = {
|
|
|
3365
3371
|
/** Timestamp of the latest successful library mutation. */
|
|
3366
3372
|
updatedAt: Scalars['DateTime']['output'];
|
|
3367
3373
|
};
|
|
3374
|
+
/** This tier’s Crowdy Studio, for a Studio dock in a game: where it opens its popups and where it sends a player for funds. */
|
|
3375
|
+
export type CrowdyStudioLinks = {
|
|
3376
|
+
__typename?: 'CrowdyStudioLinks';
|
|
3377
|
+
/** Studio’s origin on this tier, e.g. https://studio.dev.crowdedkingdoms.com: the only origin a dock opens a popup to. */
|
|
3378
|
+
origin: Scalars['String']['output'];
|
|
3379
|
+
/** Studio’s wallet page, where a dock sends a player when the model needs funds (`AGENT_FUNDS_NEEDED`). */
|
|
3380
|
+
walletUrl: Scalars['String']['output'];
|
|
3381
|
+
};
|
|
3368
3382
|
/** The player's model spend in this app today plus their most recent requests. */
|
|
3369
3383
|
export type CrowdyStudioModelUsage = {
|
|
3370
3384
|
__typename?: 'CrowdyStudioModelUsage';
|
|
@@ -3524,6 +3538,18 @@ export type CurrentServerInput = {
|
|
|
3524
3538
|
/** The `ip4` of the ServerStatus the client is connected to (as returned by serverWithLeastClients). */
|
|
3525
3539
|
ip4: Scalars['String']['input'];
|
|
3526
3540
|
};
|
|
3541
|
+
/** One delivery-rate band of an app's data out this calendar month, as the ledger last priced it: each connection's minute is split at the band edges, and data out that belongs to no connection (API responses, module egress) is the first band. */
|
|
3542
|
+
export type DataOutRateBand = {
|
|
3543
|
+
__typename?: 'DataOutRateBand';
|
|
3544
|
+
/** Bytes of data out in this band so far this month. */
|
|
3545
|
+
bytes: Scalars['String']['output'];
|
|
3546
|
+
/** Of those bytes, how many the free monthly allowance covered (it is spent from the first band up). */
|
|
3547
|
+
freeBytes: Scalars['String']['output'];
|
|
3548
|
+
/** This band's price in cents per decimal GB, fixed for the month at the app's first data out in it. */
|
|
3549
|
+
priceCents: Scalars['Float']['output'];
|
|
3550
|
+
/** This band's exclusive upper edge in bits per second, as a decimal string; null on the last band. */
|
|
3551
|
+
upToBitsPerSecond: Maybe<Scalars['String']['output']>;
|
|
3552
|
+
};
|
|
3527
3553
|
/** Whether a datacenter currently has a ck-api instance able to serve clients. Three-valued on purpose: "nothing is serving there" and "the liveness signal could not be read" look identical through a boolean and call for opposite reactions. */
|
|
3528
3554
|
export declare enum DatacenterServingStatus {
|
|
3529
3555
|
/** The signal was readable and reported no instance able to take a client there. An app placed here would be created and stored correctly, and its players would be told the app is temporarily offline until an instance returns. */
|
|
@@ -3680,6 +3706,10 @@ export type ExecBuild = {
|
|
|
3680
3706
|
startedAt: Maybe<Scalars['DateTime']['output']>;
|
|
3681
3707
|
/** `queued`, `building`, `succeeded` or `failed`. */
|
|
3682
3708
|
status: Scalars['String']['output'];
|
|
3709
|
+
/** The Crowdy Studio project the build was made from (`execModBuild` / `execModClientBuild` `studio`); null when it named none. */
|
|
3710
|
+
studioProjectId: Maybe<Scalars['String']['output']>;
|
|
3711
|
+
/** That project’s revision the build was made from; null when it named none. */
|
|
3712
|
+
studioRevision: Maybe<Scalars['BigInt']['output']>;
|
|
3683
3713
|
};
|
|
3684
3714
|
/** One module a ck-exec build produced. */
|
|
3685
3715
|
export type ExecBuildArtifact = {
|
|
@@ -3873,6 +3903,10 @@ export type ExecMod = {
|
|
|
3873
3903
|
ownerId: Scalars['BigInt']['output'];
|
|
3874
3904
|
/** Whether an instance of it runs now. */
|
|
3875
3905
|
running: Scalars['Boolean']['output'];
|
|
3906
|
+
/** The Crowdy Studio project its version was deployed from, when that build named one (`execModBuild` `studio`); null otherwise, an install or a version from when the grid changed hands included. */
|
|
3907
|
+
studioProjectId: Maybe<Scalars['String']['output']>;
|
|
3908
|
+
/** That project’s revision its version was deployed from; null when `studioProjectId` is. */
|
|
3909
|
+
studioRevision: Maybe<Scalars['BigInt']['output']>;
|
|
3876
3910
|
updatedAt: Scalars['DateTime']['output'];
|
|
3877
3911
|
version: Scalars['Int']['output'];
|
|
3878
3912
|
};
|
|
@@ -3897,6 +3931,10 @@ export type ExecModClient = {
|
|
|
3897
3931
|
ownerId: Scalars['BigInt']['output'];
|
|
3898
3932
|
/** The module’s size in bytes. */
|
|
3899
3933
|
sizeBytes: Scalars['Int']['output'];
|
|
3934
|
+
/** The Crowdy Studio project its build was made from (`execModClientBuild` `studio`); null when it named none, or for an install. */
|
|
3935
|
+
studioProjectId: Maybe<Scalars['String']['output']>;
|
|
3936
|
+
/** That project’s revision its build was made from; null when `studioProjectId` is. */
|
|
3937
|
+
studioRevision: Maybe<Scalars['BigInt']['output']>;
|
|
3900
3938
|
/** How often, in milliseconds, browsers tick it (16-1000, from its Cargo.toml). */
|
|
3901
3939
|
tickIntervalMs: Scalars['Int']['output'];
|
|
3902
3940
|
/** When it was last attached. */
|
|
@@ -4010,6 +4048,13 @@ export type ExecStarterPack = {
|
|
|
4010
4048
|
/** One entry per node type of the manifest: a crate that serves two types appears twice, so build each crate once. */
|
|
4011
4049
|
starters: Array<ExecStarter>;
|
|
4012
4050
|
};
|
|
4051
|
+
/** The Crowdy Studio project and saved revision a player’s build is made from. The build, and the mod version or CLIENT half deployed from it, report them back, so any client can read which revision a grid runs. */
|
|
4052
|
+
export type ExecStudioSourceInput = {
|
|
4053
|
+
/** A Studio project of yours in this app (`crowdyStudioProject`). */
|
|
4054
|
+
projectId: Scalars['String']['input'];
|
|
4055
|
+
/** The project revision the crate is, at most the project’s current `revision`. */
|
|
4056
|
+
revision: Scalars['BigInt']['input'];
|
|
4057
|
+
};
|
|
4013
4058
|
/** A deployed version of an app’s ck-exec topology. */
|
|
4014
4059
|
export type ExecVersion = {
|
|
4015
4060
|
__typename?: 'ExecVersion';
|
|
@@ -4929,7 +4974,7 @@ export type Mutation = {
|
|
|
4929
4974
|
assignGridOwnership: GridOwnership;
|
|
4930
4975
|
/** Grant runtime permission keys to a group (optionally scoped to a single group role) on a grid by writing the `grid_group_grants` input table, then recompute the materialized effective ACL so every affected member gains the keys. Requires app-admin ('manage_apps'). Returns the grid's current group grants for the group. Use `grantGridPermissions` for per-user grants instead. */
|
|
4931
4976
|
assignGroupToGrid: Array<GridGroupGrant>;
|
|
4932
|
-
/** Record the user's consent for an (untrusted) app to receive app-scoped tokens via the portal. Called from the
|
|
4977
|
+
/** Record the user's consent for an (untrusted) app to receive app-scoped tokens via the portal. Called from the consent screen (Studio's hosted sign-in shows one) before createPortalAuthorizationCode. Idempotent. Requires a SESSION token. */
|
|
4933
4978
|
authorizeApp: AppAuthorizationGrant;
|
|
4934
4979
|
/** Ban a user from a channel: their membership (or a new row, for someone not yet in it) becomes 'banned', their roles go, Buddy stops routing the channel to and from them, and joining, requesting to join and being added are refused with GROUP_MEMBER_BANNED until unbanChannelMember. Leaving or removing does not lift a ban. Requires the 'manage_members' channel permission (app admins bypass). Never the channel's owner, never yourself. */
|
|
4935
4980
|
banChannelMember: GroupMember;
|
|
@@ -4977,7 +5022,7 @@ export type Mutation = {
|
|
|
4977
5022
|
createAccessTier: AppAccessTier;
|
|
4978
5023
|
/** 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). */
|
|
4979
5024
|
createActor: Actor;
|
|
4980
|
-
/** 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=
|
|
5025
|
+
/** 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. */
|
|
4981
5026
|
createApp: App;
|
|
4982
5027
|
/** 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". */
|
|
4983
5028
|
createAvatar: Avatar;
|
|
@@ -4997,7 +5042,7 @@ export type Mutation = {
|
|
|
4997
5042
|
createOrgToken: OrgTokenWithSecret;
|
|
4998
5043
|
/** Creates a new organization and makes the authenticated caller its owner (with full permissions). Requires a valid session token. Once developers accept their own documents (developerLegalDocuments not empty), refused with LEGAL_ACCEPTANCE_REQUIRED until recordDeveloperConsents, and to an account under 18 (AGE_REQUIREMENT_NOT_MET) or with no age (AGE_REQUIRED); administering an organization or app asks the same. */
|
|
4999
5044
|
createOrganization: Organization;
|
|
5000
|
-
/** Create a one-time, PKCE-bound portal authorization code (browser handoff). The
|
|
5045
|
+
/** Create a one-time, PKCE-bound portal authorization code (browser handoff). The identity origin that holds the player's SESSION token (Studio's hosted sign-in, or a native launcher) calls this; redirect the player to the destination game carrying the code, which the game exchanges via exchangePortalCode. An untrusted app needs the player's consent grant first (authorizeApp), else FORBIDDEN prefixed CONSENT_REQUIRED. Refused like mintAppToken before any code exists: TERRITORY_NOT_SUPPORTED, AGE_REQUIRED, AGE_REQUIREMENT_NOT_MET, LEGAL_ACCEPTANCE_REQUIRED and EMAIL_CONFIRMATION_REQUIRED, and for a player under 18 SAFETY_LOG_REQUIRED (the app keeps no safety log) then SAFETY_MODERATOR_REQUIRED (its organization has no safety moderator), with the same neutral messages. Requires a SESSION token. */
|
|
5001
5046
|
createPortalAuthorizationCode: PortalAuthorizationCode;
|
|
5002
5047
|
/** Create a team. Whether the caller may create one is governed by the per-app team policy (app_group_policies: admin | member | anyone). The caller becomes the owner and is granted a system 'leader' role holding every team permission. New teams default to the app's default membership policy unless overridden. */
|
|
5003
5048
|
createTeam: Group;
|
|
@@ -5093,9 +5138,9 @@ export type Mutation = {
|
|
|
5093
5138
|
execConsentClientMod: Scalars['Boolean']['output'];
|
|
5094
5139
|
/** 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. */
|
|
5095
5140
|
execDeploy: ExecDeployResult;
|
|
5096
|
-
/** Build a mod from one ckx-sdk crate, as `execBuild` builds a developer's crates. Returns at once with the build queued; poll `execModBuildStatus`, then pass its id to `execModDeploy`. One build at a time per player. Requires the 'write_server_code' permission in the app. */
|
|
5141
|
+
/** Build a mod from one ckx-sdk crate, as `execBuild` builds a developer's crates. Returns at once with the build queued; poll `execModBuildStatus`, then pass its id to `execModDeploy`. One build at a time per player. `studio` names the Crowdy Studio project and revision the crate is (yours, at a revision it has reached); the mod version deployed from the build reports them. Requires the 'write_server_code' permission in the app. */
|
|
5097
5142
|
execModBuild: ExecBuild;
|
|
5098
|
-
/** Build the CLIENT half of a mod from one crowdy-client-sdk crate: compiled for wasm32-unknown-unknown in the build sandbox, fuel-metered and optimized there, checked against the client ABI and at most 512 KiB, with its capability summary derived from the module. Returns at once with the build queued (`kind` `client`); poll `execModBuildStatus`, then attach it with `execModClientDeploy`. One build, server or CLIENT, at a time per player. Requires the 'write_client_code' permission in the app. */
|
|
5143
|
+
/** Build the CLIENT half of a mod from one crowdy-client-sdk crate: compiled for wasm32-unknown-unknown in the build sandbox, fuel-metered and optimized there, checked against the client ABI and at most 512 KiB, with its capability summary derived from the module. Returns at once with the build queued (`kind` `client`); poll `execModBuildStatus`, then attach it with `execModClientDeploy`. One build, server or CLIENT, at a time per player. `studio` names the Crowdy Studio project and revision the crate is (yours, at a revision it has reached); the CLIENT half attached from the build reports them. Requires the 'write_client_code' permission in the app. */
|
|
5099
5144
|
execModClientBuild: ExecBuild;
|
|
5100
5145
|
/** Detach the CLIENT half of a mod on your grid, with every visitor's consent to it; the mod itself keeps running. Requires being the grid's current owner and 'write_client_code' on both the app tier and the grid. */
|
|
5101
5146
|
execModClientDelete: Scalars['Boolean']['output'];
|
|
@@ -5185,7 +5230,7 @@ export type Mutation = {
|
|
|
5185
5230
|
recordPlayerAge: User;
|
|
5186
5231
|
/** Store acceptance of the platform's current player documents (playerLegalDocuments) and, with appId, of the app's own (appRequiredDocuments), recorded with the app and the method. acceptLegal must be true. attestAgeOfMajority must be true too while the platform still uses the age-of-majority attestation (the player then counts as 18 or older); once players give a birth date instead (recordPlayerAge) it is ignored. A refused call stores nothing (LEGAL_ACCEPTANCE_REQUIRED). Idempotent for a version already stored. Requires a session token. Gameplay tokens stay refused until this has succeeded for the current documents. */
|
|
5187
5232
|
recordPlayerConsents: Scalars['Boolean']['output'];
|
|
5188
|
-
/** 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
|
|
5233
|
+
/** 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. */
|
|
5189
5234
|
refreshAppToken: AppTokenResponse;
|
|
5190
5235
|
/** 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. */
|
|
5191
5236
|
register: AuthResponse;
|
|
@@ -5293,11 +5338,11 @@ export type Mutation = {
|
|
|
5293
5338
|
setAppReservedThroughput: SetAppReservedThroughputResult;
|
|
5294
5339
|
/** Sets per-app hourly/daily spend caps (in cents) and returns the re-evaluated runtime state. Pass null for a limit to clear that cap. Exceeding a cap denies the app's runtime (runtimeDenialReason = spend_cap). Requires the 'manage_billing' permission on the app's org. */
|
|
5295
5340
|
setAppSpendCaps: AppRuntimeState;
|
|
5296
|
-
/** Super admin only (also requires the management API to be enabled for this deployment). Overrides an app visibility platform-wide,
|
|
5341
|
+
/** Super admin only (also requires the management API to be enabled for this deployment). Overrides an app's visibility platform-wide, to hide it from the marketplace (PRIVATE/UNLISTED) or relist it (PUBLIC). It does not stop play: players keep getting app tokens. Archiving the app (archiveApp) or suspending players' access does that. Throws ForbiddenException for non-super-admins or when management APIs are disabled. Throws if the app id does not exist. */
|
|
5297
5342
|
setAppVisibility: App;
|
|
5298
5343
|
/** Enables or disables off-session auto-billing for an org and updates its thresholds. When enabled and the wallet falls to lowWaterThresholdCents, the saved payment method is charged rechargeAmountCents (requires setupSharedPaymentMethod first). Pass limitCents=null for no per-period cap. Requires the 'manage_billing' org permission. */
|
|
5299
5344
|
setAutoBilling: OrgAutoBilling;
|
|
5300
|
-
/** OPERATOR ONLY. Sets a metered dimension's price, the UNIT that price is quoted in, its free allowances, or any combination, and returns the new row alongside the values that moved. THIS IS THE ONLY SANCTIONED WAY TO CHANGE A PRICE OR A UNIT: the schema seeds use ON CONFLICT DO NOTHING, so a rate reaches a tier once at install and a unit corrected in the declaration never reaches a tier that already exists. Refuses an unknown or unmetered metric (a rate for a dimension nothing meters bills nobody while appearing configured), refuses a negative price, refuses unitLabel without unitQuantity (which would restate the rate card while the arithmetic kept the old divisor), and refuses a call that would change nothing. A unit change that also moves the money needs acknowledgeRepricing: true, so restating a price and cutting it cannot be confused. priceBands sets a graduated schedule (SHARED aggregate_data_volume only; band 1 becomes priceCents) and clearPriceBands returns the dimension to one flat price; while a dimension is banded a bare priceCents or a unit change is refused. NOT RETROACTIVE: the ledger keeps the rate and allowance in force when a (payer, dimension, period) is first charged, so a change applies from each dimension's next period and nothing already charged is repriced. Takes effect within about a minute — the settlement reloads the card on every run, so no restart is needed. */
|
|
5345
|
+
/** OPERATOR ONLY. Sets a metered dimension's price, the UNIT that price is quoted in, its free allowances, or any combination, and returns the new row alongside the values that moved. THIS IS THE ONLY SANCTIONED WAY TO CHANGE A PRICE OR A UNIT: the schema seeds use ON CONFLICT DO NOTHING, so a rate reaches a tier once at install and a unit corrected in the declaration never reaches a tier that already exists. Refuses an unknown or unmetered metric (a rate for a dimension nothing meters bills nobody while appearing configured), refuses a negative price, refuses unitLabel without unitQuantity (which would restate the rate card while the arithmetic kept the old divisor), and refuses a call that would change nothing. A unit change that also moves the money needs acknowledgeRepricing: true, so restating a price and cutting it cannot be confused. priceBands sets a graduated schedule (SHARED aggregate_data_volume only; band 1 becomes priceCents), priceBandBasis says whether its edges are on volume or on each connection's delivery rate (RATE takes edges in upToBitsPerSecond), and clearPriceBands returns the dimension to one flat price; while a dimension is banded a bare priceCents or a unit change is refused. NOT RETROACTIVE: the ledger keeps the rate and allowance in force when a (payer, dimension, period) is first charged, so a change applies from each dimension's next period and nothing already charged is repriced. Takes effect within about a minute — the settlement reloads the card on every run, so no restart is needed. */
|
|
5301
5346
|
setBillingRate: SetRateCardResult;
|
|
5302
5347
|
/** Replace a member's channel roles with the given set (not additive — roles not listed are removed). Requires the 'manage_roles' channel permission (app admins bypass). Re-pushes the member's effective send permission to Buddy so their ability to post updates immediately. */
|
|
5303
5348
|
setChannelMemberRoles: GroupMember;
|
|
@@ -5742,10 +5787,12 @@ export type MutationExecDeployArgs = {
|
|
|
5742
5787
|
export type MutationExecModBuildArgs = {
|
|
5743
5788
|
appId: Scalars['BigInt']['input'];
|
|
5744
5789
|
crate: ExecBuildCrateInput;
|
|
5790
|
+
studio?: InputMaybe<ExecStudioSourceInput>;
|
|
5745
5791
|
};
|
|
5746
5792
|
export type MutationExecModClientBuildArgs = {
|
|
5747
5793
|
appId: Scalars['BigInt']['input'];
|
|
5748
5794
|
crate: ExecBuildCrateInput;
|
|
5795
|
+
studio?: InputMaybe<ExecStudioSourceInput>;
|
|
5749
5796
|
};
|
|
5750
5797
|
export type MutationExecModClientDeleteArgs = {
|
|
5751
5798
|
appId: Scalars['BigInt']['input'];
|
|
@@ -6842,7 +6889,7 @@ export type PlaceableDatacenter = {
|
|
|
6842
6889
|
__typename?: 'PlaceableDatacenter';
|
|
6843
6890
|
/** How many shards of the app colocation group this datacenter currently holds. This is the placement odds: createApp mints candidate app ids until one hashes into the requested datacenter, so a datacenter holding half the shards is satisfied in about two attempts. Zero means unplaceable. Always 0 on a deployment that distributes nothing, where the number does not exist and `placeable` is true regardless — read `placeable`, not this, to decide whether a choice is offerable. */
|
|
6844
6891
|
appShardCount: Scalars['Int']['output'];
|
|
6845
|
-
/** Datacenter code, e.g. '
|
|
6892
|
+
/** Datacenter code, e.g. 'va'. Pass this verbatim as createApp's input.datacenter; it is compared lowercase. */
|
|
6846
6893
|
code: Scalars['String']['output'];
|
|
6847
6894
|
/** HTTPS GraphQL origin clients of an app in this datacenter should use. Null only where no topology has been pushed, which on a Citus deployment means the datacenter cannot yet be reached and on a single-node one means there is nothing to route. Informational for a picker: createApp does not need it, and appDiscovery is what a client reads per app. */
|
|
6848
6895
|
gameApiUrl: Maybe<Scalars['String']['output']>;
|
|
@@ -7230,7 +7277,7 @@ export type PortalAuthorizationCode = {
|
|
|
7230
7277
|
/** The validated redirect URI the player should be sent to. */
|
|
7231
7278
|
redirectUri: Scalars['String']['output'];
|
|
7232
7279
|
};
|
|
7233
|
-
/** Whether portaling into an app requires a consent prompt
|
|
7280
|
+
/** Whether portaling into an app requires a consent prompt from the identity origin (Studio’s hosted sign-in, or a launcher holding the session). */
|
|
7234
7281
|
export type PortalConsentState = {
|
|
7235
7282
|
__typename?: 'PortalConsentState';
|
|
7236
7283
|
/** True if the user already has an active grant for this app. */
|
|
@@ -7239,11 +7286,16 @@ export type PortalConsentState = {
|
|
|
7239
7286
|
appId: Scalars['String']['output'];
|
|
7240
7287
|
/** App display name. */
|
|
7241
7288
|
appName: Maybe<Scalars['String']['output']>;
|
|
7242
|
-
/** True if the
|
|
7289
|
+
/** True if the identity origin must show a consent screen (untrusted app, not yet granted) before creating a portal code. */
|
|
7243
7290
|
consentRequired: Scalars['Boolean']['output'];
|
|
7244
|
-
/** True for
|
|
7291
|
+
/** True for a trusted app (set by Crowded Kingdoms): consent is never asked. */
|
|
7245
7292
|
trusted: Scalars['Boolean']['output'];
|
|
7246
7293
|
};
|
|
7294
|
+
/** What a graduated price's band edges measure. VOLUME: the period's running total, so each unit is priced at the band the total has reached (edges in upToUnits). RATE: the rate one connection was served at in one minute, so each minute's bytes are split at the edges and each part is priced at its band (edges in upToBitsPerSecond). Both are graduated: a unit's price never rises as the total or the rate grows. */
|
|
7295
|
+
export declare enum PriceBandBasis {
|
|
7296
|
+
Rate = "RATE",
|
|
7297
|
+
Volume = "VOLUME"
|
|
7298
|
+
}
|
|
7247
7299
|
export type ProvisionManagedPlayersInput = {
|
|
7248
7300
|
/** The organization (an org token's own, if one is used). */
|
|
7249
7301
|
orgId: Scalars['BigInt']['input'];
|
|
@@ -7274,7 +7326,9 @@ export type PublicRateCardEntryType = {
|
|
|
7274
7326
|
freeUnits: Maybe<Scalars['BigInt']['output']>;
|
|
7275
7327
|
/** The metered dimension, e.g. "graphql_recv_ops" or "player_wasm_compute_units". This is the key your usage is aggregated under, so it is what to match a bill line against. */
|
|
7276
7328
|
metric: Scalars['String']['output'];
|
|
7277
|
-
/**
|
|
7329
|
+
/** What priceBands' edges measure: RATE (each connection's rate, minute by minute, in bits per second) or VOLUME (the app's running total for the month). Null on a flat row. */
|
|
7330
|
+
priceBandBasis: Maybe<PriceBandBasis>;
|
|
7331
|
+
/** The graduated price, band by band, or null when the dimension has one flat price. Egress (aggregate_data_volume) is priced this way. On a RATE schedule each connection's data out is priced minute by minute at the rate it was served at: the part of a minute below the first edge at the first band, the part between the first and second edges at the second, and so on, while data out that belongs to no connection (API responses, module egress) is priced at the first band. On a VOLUME schedule each GB is charged at the band the app's month-to-date total has reached. priceCents is the first band's price, and the free monthly allowance comes out of the first band. */
|
|
7278
7332
|
priceBands: Maybe<Array<RateCardBandType>>;
|
|
7279
7333
|
/** Cents charged per unitQuantity raw units, above the free allowance. Fractional values are permitted. 0 means metered but not charged. */
|
|
7280
7334
|
priceCents: Scalars['Float']['output'];
|
|
@@ -7475,6 +7529,8 @@ export type Query = {
|
|
|
7475
7529
|
crowdyStudioGitHubTree: CrowdyStudioGitHubTree;
|
|
7476
7530
|
/** List the authenticated player’s private reusable Crowdy Studio source files in one app. Requires an app-scoped token for appId; cross-user entries are never visible, including to grid owners or Crowdy Studio operators. The bounded result defaults to 50. */
|
|
7477
7531
|
crowdyStudioLibraryFiles: Array<CrowdyStudioLibraryFile>;
|
|
7532
|
+
/** This tier’s Crowdy Studio origin and wallet page, so a Studio dock in a game needs no release when Studio moves. Public. */
|
|
7533
|
+
crowdyStudioLinks: CrowdyStudioLinks;
|
|
7478
7534
|
/** Whether this player may draft_test or deploy_live. Requires use_studio_agent and an enabled agent policy. A missing policy row, a kill switch, or a missing permission refuses. The dock calls this before either action. The Studio Test button does not. */
|
|
7479
7535
|
crowdyStudioLiveModding: Scalars['Boolean']['output'];
|
|
7480
7536
|
/** The caller's own model usage in this app: today's request count and rate-carded charge against the policy ceiling, the payer (PLAYER wallet by default, ORG when the app elected it, PLATFORM while platform-funded), and the most recent requests. Counts and charges only; no prompts or provider bodies exist to return. Requires 'use_studio_agent'. */
|
|
@@ -7513,6 +7569,8 @@ export type Query = {
|
|
|
7513
7569
|
execModBuildStatus: ExecBuild;
|
|
7514
7570
|
/** A served CLIENT half's module, for the browser broker. Served only to a player holding 'run_client_code' in the app, standing in the mod's grid now, who consented to it at its current hash or trusts its author at a union no wider; every refusal answers NOT_FOUND. At most 12 fetches a minute per player and mod on each API instance (RATE_LIMITED); the module never changes for its digest, so cache it. */
|
|
7515
7571
|
execModClientArtifact: ExecModClientArtifact;
|
|
7572
|
+
/** The CLIENT half starter: a crowdy-client-sdk crate (`Cargo.toml` and `src/lib.rs`) that logs, keeps a tick count and shows it on the HUD, to pass to `execModClientBuild`. Its crate is `client-half`; rename the package to the CLIENT module. Requires access to the app. */
|
|
7573
|
+
execModClientStarter: ExecStarter;
|
|
7516
7574
|
/** The app's mod marketplace: listed mods, most installed first. Requires access to the app. */
|
|
7517
7575
|
execModListings: Array<ExecModListing>;
|
|
7518
7576
|
/** A mod of yours' guest log lines (`ctx.log`), newest first, kept for 24 hours. */
|
|
@@ -7698,7 +7756,7 @@ export type Query = {
|
|
|
7698
7756
|
playerWalletBalance: PlayerWallet;
|
|
7699
7757
|
/** The caller's player-wallet ledger, newest first: top-ups, usage debits (per app, the app's markup included), auto-recharges, refunds, purchases, payouts and adjustments. Each usage debit names its dimension and period, and an over-charge credited back appears as an adjustment. */
|
|
7700
7758
|
playerWalletTransactions: Array<PlayerWalletTransaction>;
|
|
7701
|
-
/** Whether portaling the calling user into an app needs a consent prompt. Trusted
|
|
7759
|
+
/** Whether portaling the calling user into an app needs a consent prompt. Trusted apps and already-granted apps return consentRequired=false. The identity origin (Studio's hosted sign-in, or a launcher holding the session) calls this before createPortalAuthorizationCode. Requires a SESSION token. */
|
|
7702
7760
|
portalConsent: PortalConsentState;
|
|
7703
7761
|
/** Lists the app-scoped quota rules explicitly configured for an app (excludes org-, tier-, and free-tier-default quotas). Use `effectiveQuota` to resolve the limit actually applied for a given metric. Requires the 'view_usage' app permission. */
|
|
7704
7762
|
quotasForApp: Array<ServiceQuota>;
|
|
@@ -8074,6 +8132,9 @@ export type QueryExecModClientArtifactArgs = {
|
|
|
8074
8132
|
appId: Scalars['BigInt']['input'];
|
|
8075
8133
|
modId: Scalars['String']['input'];
|
|
8076
8134
|
};
|
|
8135
|
+
export type QueryExecModClientStarterArgs = {
|
|
8136
|
+
appId: Scalars['BigInt']['input'];
|
|
8137
|
+
};
|
|
8077
8138
|
export type QueryExecModListingsArgs = {
|
|
8078
8139
|
appId: Scalars['BigInt']['input'];
|
|
8079
8140
|
};
|
|
@@ -8424,15 +8485,19 @@ export type RangedChannelMessageInput = {
|
|
|
8424
8485
|
export type RateCardBandInput = {
|
|
8425
8486
|
/** Cents per the row's unitQuantity raw units inside this band: >= 0, at most six decimals, and never more than the band below it. */
|
|
8426
8487
|
priceCents: Scalars['Float']['input'];
|
|
8427
|
-
/**
|
|
8488
|
+
/** RATE schedules: exclusive upper edge of this band in bits per second, as a BigInt decimal string, under the same rules as upToUnits. A band gives one edge or the other, never both, and one schedule uses one of them throughout. */
|
|
8489
|
+
upToBitsPerSecond?: InputMaybe<Scalars['BigInt']['input']>;
|
|
8490
|
+
/** VOLUME schedules: exclusive upper edge of this band on the period's running total, in raw metric units, as a BigInt decimal string. Every band but the last needs one edge, strictly above the band before; the last band must leave it null. */
|
|
8428
8491
|
upToUnits?: InputMaybe<Scalars['BigInt']['input']>;
|
|
8429
8492
|
};
|
|
8430
|
-
/** One band of a graduated price.
|
|
8493
|
+
/** One band of a graduated price. On a VOLUME schedule each unit of the period's running total is priced at the band its position falls in; on a RATE schedule each minute of one connection's data out is split at the edges, so the part below the first edge is priced at the first band, the part between the first and second edges at the second, and so on. Either way the price of the next unit never rises, and the free allowance fills the first band first. */
|
|
8431
8494
|
export type RateCardBandType = {
|
|
8432
8495
|
__typename?: 'RateCardBandType';
|
|
8433
8496
|
/** Cents charged per the row's unitQuantity raw units for the units inside this band. Fractional values are permitted. */
|
|
8434
8497
|
priceCents: Scalars['Float']['output'];
|
|
8435
|
-
/**
|
|
8498
|
+
/** RATE schedules: exclusive upper edge of this band in bits per second, as a BigInt decimal string. A connection's data out in one calendar minute, times 8 and divided by 60 seconds, is its rate; the bytes below this edge's share of the minute (edge x 60 / 8 bytes) are priced at this band or a lower one. Null on the last band and on every band of a VOLUME schedule. */
|
|
8499
|
+
upToBitsPerSecond: Maybe<Scalars['BigInt']['output']>;
|
|
8500
|
+
/** VOLUME schedules: exclusive upper edge of this band on the period's running total, in raw metric units, as a BigInt decimal string. A band covers units from the previous band's edge up to this one. Null on the last band, which has no upper edge, and on every band of a RATE schedule (read upToBitsPerSecond). */
|
|
8436
8501
|
upToUnits: Maybe<Scalars['BigInt']['output']>;
|
|
8437
8502
|
};
|
|
8438
8503
|
/** One priced dimension: its rate and, where it has one, its free allowance and the period that allowance resets on. A dimension with a price of 0 is metered but not charged. */
|
|
@@ -8452,7 +8517,9 @@ export type RateCardEntryType = {
|
|
|
8452
8517
|
freeUnits: Maybe<Scalars['BigInt']['output']>;
|
|
8453
8518
|
/** The metered dimension, e.g. "graphql_recv_ops" or "player_wasm_compute_units". Matches a key the billing tick aggregates. */
|
|
8454
8519
|
metric: Scalars['String']['output'];
|
|
8455
|
-
/**
|
|
8520
|
+
/** What priceBands' edges measure: VOLUME (the period's running total) or RATE (each connection's rate, minute by minute). Null on a flat row. */
|
|
8521
|
+
priceBandBasis: Maybe<PriceBandBasis>;
|
|
8522
|
+
/** The graduated price, band by band, or null when the dimension has one flat price. When present the bands price the period's usage on priceBandBasis and priceCents is the first band's price. aggregate_data_volume (egress) is the dimension priced this way. */
|
|
8456
8523
|
priceBands: Maybe<Array<RateCardBandType>>;
|
|
8457
8524
|
/** Cents charged per unitQuantity raw units, above the free allowance. Fractional values are permitted (the column is NUMERIC(20,6)). 0 means metered but not charged. */
|
|
8458
8525
|
priceCents: Scalars['Float']['output'];
|
|
@@ -8466,7 +8533,7 @@ export type RateCardEntryType = {
|
|
|
8466
8533
|
/** One field that moved, with the value it held before. Reported so a price change is auditable from the response rather than reconstructed afterwards. */
|
|
8467
8534
|
export type RateChangeType = {
|
|
8468
8535
|
__typename?: 'RateChangeType';
|
|
8469
|
-
/** One of "priceCents", "priceBands", "unitLabel", "unitQuantity", "freeUnits", "freePeriod" or "freePerMonth". */
|
|
8536
|
+
/** One of "priceCents", "priceBands", "priceBandBasis", "unitLabel", "unitQuantity", "freeUnits", "freePeriod" or "freePerMonth". */
|
|
8470
8537
|
field: Scalars['String']['output'];
|
|
8471
8538
|
metric: Scalars['String']['output'];
|
|
8472
8539
|
/** The value before this call, as a decimal string; for priceBands the schedule as JSON. "none" when there was no allowance row, or no bands. */
|
|
@@ -9230,7 +9297,9 @@ export type SetRateCardInput = {
|
|
|
9230
9297
|
freeUnits?: InputMaybe<Scalars['BigInt']['input']>;
|
|
9231
9298
|
/** The metered dimension to reprice. Refused unless the platform actually meters it: a rate for an unmetered metric bills nobody while appearing configured. */
|
|
9232
9299
|
metric: Scalars['String']['input'];
|
|
9233
|
-
/**
|
|
9300
|
+
/** What priceBands' edges measure: VOLUME (edges in upToUnits on the period's running total) or RATE (edges in upToBitsPerSecond on each connection's per-minute rate; SHARED aggregate_data_volume only). Only with priceBands, because it changes what every edge means. Omit to keep the dimension's current basis; clearPriceBands returns it to VOLUME. Like every price, it applies from a dimension's next period where a period has already been charged. */
|
|
9301
|
+
priceBandBasis?: InputMaybe<PriceBandBasis>;
|
|
9302
|
+
/** A whole graduated schedule, replacing the one the dimension holds: 1 to 10 bands, ascending edges (upToUnits on a VOLUME schedule, upToBitsPerSecond on a RATE one, per priceBandBasis), the last band open, no band dearer than the one below. Band 1's price becomes priceCents (supply priceCents only if it is the same). Accepted for SHARED aggregate_data_volume only. Like every price, it applies from a dimension's next period where a period has already been charged. */
|
|
9234
9303
|
priceBands?: InputMaybe<Array<RateCardBandInput>>;
|
|
9235
9304
|
/** New price in cents per unitQuantity raw units. Must be >= 0; 0 means meter but do not charge. Omit to leave the price unchanged. Fractional values are accepted (the column is NUMERIC(20,6)). */
|
|
9236
9305
|
priceCents?: InputMaybe<Scalars['Float']['input']>;
|
|
@@ -9614,7 +9683,7 @@ export declare enum UdpErrorCode {
|
|
|
9614
9683
|
PasswordTooLong = "PASSWORD_TOO_LONG",
|
|
9615
9684
|
/** Password failed minimum-length validation. */
|
|
9616
9685
|
PasswordTooShort = "PASSWORD_TOO_SHORT",
|
|
9617
|
-
/** The app-scoped gameplay token has expired. Refresh it (same app, via refreshAppToken) before it lapses, or
|
|
9686
|
+
/** The app-scoped gameplay token has expired. Refresh it (same app, via refreshAppToken) before it lapses, or sign in again for a fresh token (hosted sign-in, or mintAppToken with the session), then re-authorize the realtime session. */
|
|
9618
9687
|
TokenExpired = "TOKEN_EXPIRED",
|
|
9619
9688
|
/** The caller lacks the runtime/grid permission required for this action. A message sent right after connecting or entering a new region waits for that permission to load rather than being refused, so this means the permission is missing or could not be confirmed in time; after a move or a new session, one retry is enough to tell the two apart. */
|
|
9620
9689
|
Unauthorized = "UNAUTHORIZED",
|