@crowdedkingdoms/crowdyjs 18.38.0 → 18.39.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 +13 -0
- package/README.md +44 -39
- package/dist/bootstrap-rediscover.js +3 -3
- package/dist/client.js +1 -1
- package/dist/crowdy-client.js +3 -3
- package/dist/datacenter-redirect.d.ts +5 -1
- package/dist/datacenter-redirect.d.ts.map +1 -1
- package/dist/datacenter-redirect.js +8 -4
- package/dist/default-origin.d.ts +6 -6
- package/dist/default-origin.js +6 -6
- package/dist/domains/apps.d.ts +15 -13
- package/dist/domains/apps.d.ts.map +1 -1
- package/dist/domains/apps.js +12 -8
- package/dist/domains/billing.d.ts +4 -2
- package/dist/domains/billing.d.ts.map +1 -1
- package/dist/domains/billing.js +4 -2
- package/dist/domains/discovery.d.ts +5 -1
- package/dist/domains/discovery.d.ts.map +1 -1
- package/dist/domains/discovery.js +5 -3
- package/dist/domains/platform.d.ts +6 -2
- package/dist/domains/platform.d.ts.map +1 -1
- package/dist/domains/platform.js +4 -2
- package/dist/domains/portal.d.ts +6 -2
- package/dist/domains/portal.d.ts.map +1 -1
- package/dist/domains/portal.js +1 -1
- package/dist/generated/graphql-schema.d.ts +117 -58
- package/dist/generated/graphql-schema.d.ts.map +1 -1
- package/dist/generated/graphql-schema.js +4 -4
- package/dist/generated/graphql.d.ts +23 -9
- package/dist/generated/graphql.d.ts.map +1 -1
- package/dist/generated/graphql.js +10 -10
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/realtime.js +2 -2
- package/dist/rediscover.d.ts +1 -1
- package/dist/rediscover.d.ts.map +1 -1
- package/dist/rediscover.js +5 -1
- package/package.json +1 -1
|
@@ -907,6 +907,8 @@ export type App = {
|
|
|
907
907
|
__typename?: 'App';
|
|
908
908
|
/** Unique numeric identifier of the app (primary key). */
|
|
909
909
|
appId: Scalars['BigInt']['output'];
|
|
910
|
+
/** Resolved Application API base URL for SDK/runtime calls: the per-tenant URL for dedicated apps, or the shared platform URL for shared apps. Null for legacy or not-yet-deployed apps. */
|
|
911
|
+
applicationApiUrl: Maybe<Scalars['String']['output']>;
|
|
910
912
|
/** Grid permission keys a player's claim grants its owner on the claimed grid (claimGridOwnership), beside the player-code keys the owner's tier carries; for example update_voxel_data makes a claim buildable without a hub granting it. Never a player-code key; the grid's permission limits still cap them. Empty by default. Set with updateApp (manage_apps). */
|
|
911
913
|
claimOwnerKeys: Array<Scalars['String']['output']>;
|
|
912
914
|
/** OAuth client type: "public" (browser/PKCE, no secret) or "confidential" (server-side, holds a secret). Defaults to "public". */
|
|
@@ -917,7 +919,7 @@ export type App = {
|
|
|
917
919
|
createdAt: Scalars['DateTime']['output'];
|
|
918
920
|
/** Numeric user id of the account that created the app. */
|
|
919
921
|
createdBy: Scalars['BigInt']['output'];
|
|
920
|
-
/** Where the app runs: "none" (draft / not deployed), "shared" (the shared
|
|
922
|
+
/** Where the app runs: "none" (draft / not deployed), "shared" (the shared Application API), or "dedicated" (a provisioned per-tenant environment). */
|
|
921
923
|
deploymentTarget: Scalars['String']['output'];
|
|
922
924
|
/** Short plain-text description shown in listings; also matched by the marketplace free-text filter. */
|
|
923
925
|
description: Maybe<Scalars['String']['output']>;
|
|
@@ -929,7 +931,10 @@ export type App = {
|
|
|
929
931
|
effectiveMaxVoiceSpeakers: Scalars['Int']['output'];
|
|
930
932
|
/** The youngest age the app admits now: the higher of minPlayerAge and the platform's minimum (18 until players 13 and over are admitted, then 13). A player's country can require more (territoryPolicies); younger players are refused AGE_REQUIREMENT_NOT_MET at mint. */
|
|
931
933
|
effectiveMinPlayerAge: Scalars['Int']['output'];
|
|
932
|
-
/**
|
|
934
|
+
/**
|
|
935
|
+
* Resolved Application API base URL for SDK/runtime calls: the per-tenant URL for dedicated apps, or the shared platform URL for shared apps. Null for legacy or not-yet-deployed apps.
|
|
936
|
+
* @deprecated Use applicationApiUrl: the Game API is now the Application API. Removed on January 1, 2027.
|
|
937
|
+
*/
|
|
933
938
|
gameApiUrl: Maybe<Scalars['String']['output']>;
|
|
934
939
|
/** Player user ids allowed to approve grid claim requests in "approval" mode. When empty, approval falls back to org staff holding manage_compute. */
|
|
935
940
|
gridClaimApproverUserIds: Array<Scalars['String']['output']>;
|
|
@@ -982,11 +987,11 @@ export type App = {
|
|
|
982
987
|
reservedUdpBytesPerSec: Scalars['BigInt']['output'];
|
|
983
988
|
/** When runtimeStatus is not "active", why the runtime is gated: "insufficient_funds", "spend_cap", "subscription_lapsed", or "payment_method_required" (the free-tier card requirement applies to the organization and it has no saved card and no exemption). Null when active. Historical rows may carry "free_allowance", which the gate no longer produces -- an app over its allowance with no way to pay is denied as "insufficient_funds". */
|
|
984
989
|
runtimeDenialReason: Maybe<Scalars['String']['output']>;
|
|
985
|
-
/** Shared-environment runtime gate, mirrored to the game DB and enforced by
|
|
990
|
+
/** Shared-environment runtime gate, mirrored to the game DB and enforced by Application API + Buddy: "active", "grace", "denied", or "suspended". */
|
|
986
991
|
runtimeStatus: Scalars['String']['output'];
|
|
987
992
|
/** URL-safe slug, unique within the org; combined with the org slug to form the marketplace path. May be null for legacy rows. */
|
|
988
993
|
slug: Maybe<Scalars['String']['output']>;
|
|
989
|
-
/** True when this app's runtime data lives in a dedicated per-tenant
|
|
994
|
+
/** True when this app's runtime data lives in a dedicated per-tenant Application API database (rather than the shared Application API). Used together with applicationApiUrl to route gameplay calls. */
|
|
990
995
|
splitMode: Scalars['Boolean']['output'];
|
|
991
996
|
/** Base64-encoded binary blob of the app's persisted runtime/world state; opaque to clients and potentially large. Null when no state has been saved. */
|
|
992
997
|
state: Maybe<Scalars['String']['output']>;
|
|
@@ -1068,7 +1073,7 @@ export type AppBudget = {
|
|
|
1068
1073
|
createdAt: Scalars['DateTime']['output'];
|
|
1069
1074
|
/** Spend so far in the current monthly period, in minor currency units (cents) as a BigInt decimal string. Resets when `periodStart` rolls over to a new month. */
|
|
1070
1075
|
currentMonthUsageCents: Scalars['BigInt']['output'];
|
|
1071
|
-
/** Monthly spend cap in minor currency units (cents) as a BigInt decimal string; null means no cap is configured (unlimited). */
|
|
1076
|
+
/** Monthly spend cap in minor currency units (cents) as a BigInt decimal string; null means no cap is configured (unlimited). Enforced: once currentMonthUsageCents reaches it the app is refused with spend_cap until the month ends or the cap is raised. setAppBudget with 0 removes it (null). */
|
|
1072
1077
|
monthlyLimitCents: Maybe<Scalars['BigInt']['output']>;
|
|
1073
1078
|
/** Organization that owns the app (BigInt as a decimal string). */
|
|
1074
1079
|
orgId: Scalars['BigInt']['output'];
|
|
@@ -1111,13 +1116,13 @@ export type AppComputeBudgetInfo = {
|
|
|
1111
1116
|
/** When the allowance was last written. */
|
|
1112
1117
|
updatedAt: Scalars['DateTime']['output'];
|
|
1113
1118
|
};
|
|
1114
|
-
/** Where an app runs: none (draft), shared (the shared
|
|
1119
|
+
/** Where an app runs: none (draft), shared (the shared Application API), or dedicated (a provisioned environment). */
|
|
1115
1120
|
export declare enum AppDeploymentTarget {
|
|
1116
1121
|
/** Runs on a dedicated, org-provisioned environment. */
|
|
1117
1122
|
Dedicated = "DEDICATED",
|
|
1118
1123
|
/** Draft / unpublished: the app is not deployed to any runtime. */
|
|
1119
1124
|
None = "NONE",
|
|
1120
|
-
/** Runs on the multi-tenant shared
|
|
1125
|
+
/** Runs on the multi-tenant shared Application API (publishAppToShared). */
|
|
1121
1126
|
Shared = "SHARED"
|
|
1122
1127
|
}
|
|
1123
1128
|
/** Where one app lives, and therefore which origin a client should talk to before it does anything else. Public: this is the same information the published DNS names already expose. */
|
|
@@ -1125,11 +1130,21 @@ export type AppDiscovery = {
|
|
|
1125
1130
|
__typename?: 'AppDiscovery';
|
|
1126
1131
|
/** The app this entry describes, echoed back so a batched result can be matched to its request. */
|
|
1127
1132
|
appId: Scalars['BigInt']['output'];
|
|
1133
|
+
/** HTTPS GraphQL origin for this app's OWN datacenter. Move here BEFORE authenticating: logging in through the shared origin writes the session on whichever datacenter DNS happened to pick, and the app token then has to be minted across a WAN. Null when the app has no placement, in which case keep using the shared origin. */
|
|
1134
|
+
applicationApiUrl: Maybe<Scalars['String']['output']>;
|
|
1135
|
+
/** The wss:// form of applicationApiUrl, for the subscription socket and the binary relay. */
|
|
1136
|
+
applicationApiWsUrl: Maybe<Scalars['String']['output']>;
|
|
1128
1137
|
/** Datacenter code the app is placed in (for example `or`, `va`), or null if the app has no placement yet. */
|
|
1129
1138
|
datacenterCode: Maybe<Scalars['String']['output']>;
|
|
1130
|
-
/**
|
|
1139
|
+
/**
|
|
1140
|
+
* HTTPS GraphQL origin for this app's OWN datacenter. Move here BEFORE authenticating: logging in through the shared origin writes the session on whichever datacenter DNS happened to pick, and the app token then has to be minted across a WAN. Null when the app has no placement, in which case keep using the shared origin.
|
|
1141
|
+
* @deprecated Use applicationApiUrl: the Game API is now the Application API. Removed on January 1, 2027.
|
|
1142
|
+
*/
|
|
1131
1143
|
gameApiUrl: Maybe<Scalars['String']['output']>;
|
|
1132
|
-
/**
|
|
1144
|
+
/**
|
|
1145
|
+
* The wss:// form of gameApiUrl, for the subscription socket and the binary relay.
|
|
1146
|
+
* @deprecated Use applicationApiWsUrl: the Game API is now the Application API. Removed on January 1, 2027.
|
|
1147
|
+
*/
|
|
1133
1148
|
gameApiWsUrl: Maybe<Scalars['String']['output']>;
|
|
1134
1149
|
};
|
|
1135
1150
|
/** An edge in a App connection. */
|
|
@@ -1230,12 +1245,16 @@ export type AppRuntimeState = {
|
|
|
1230
1245
|
currentDayUsageCents: Scalars['BigInt']['output'];
|
|
1231
1246
|
/** Spend so far in the current hour window, in cents. */
|
|
1232
1247
|
currentHourUsageCents: Scalars['BigInt']['output'];
|
|
1248
|
+
/** Spend so far in the current calendar month (UTC), in cents. */
|
|
1249
|
+
currentMonthUsageCents: Scalars['BigInt']['output'];
|
|
1233
1250
|
/** Per-app daily spend cap in cents (set via setAppSpendCaps). Null = no cap. */
|
|
1234
1251
|
dailyLimitCents: Maybe<Scalars['BigInt']['output']>;
|
|
1235
1252
|
/** Where the app runs (none / shared / dedicated). */
|
|
1236
1253
|
deploymentTarget: AppDeploymentTarget;
|
|
1237
1254
|
/** Per-app hourly spend cap in cents (set via setAppSpendCaps). Null = no cap. */
|
|
1238
1255
|
hourlyLimitCents: Maybe<Scalars['BigInt']['output']>;
|
|
1256
|
+
/** Per-app monthly budget in cents (set via setAppBudget). Null = no budget. The app is refused with spend_cap once this month's spend reaches it. */
|
|
1257
|
+
monthlyLimitCents: Maybe<Scalars['BigInt']['output']>;
|
|
1239
1258
|
/** insufficient_funds | spend_cap | subscription_lapsed | payment_method_required when not active. payment_method_required: the free-tier card requirement (freeTierCardRequirement) applies to the organization, and it has no saved card and no exemption. Historical rows may carry free_allowance, which the gate no longer produces. */
|
|
1240
1259
|
runtimeDenialReason: Maybe<Scalars['String']['output']>;
|
|
1241
1260
|
/** Current runtime gate decision (active / grace / denied / suspended). */
|
|
@@ -1243,7 +1262,7 @@ export type AppRuntimeState = {
|
|
|
1243
1262
|
/** Owning org wallet balance, in cents. */
|
|
1244
1263
|
walletBalanceCents: Scalars['BigInt']['output'];
|
|
1245
1264
|
};
|
|
1246
|
-
/** The per-app runtime gate
|
|
1265
|
+
/** The per-app runtime gate Application API + Buddy enforce. See runtimeDenialReason when not active. */
|
|
1247
1266
|
export declare enum AppRuntimeStatus {
|
|
1248
1267
|
/** Allowed to run; clients may connect. */
|
|
1249
1268
|
Active = "ACTIVE",
|
|
@@ -1279,20 +1298,30 @@ export declare enum AppStatus {
|
|
|
1279
1298
|
/** Published; listed in the public marketplace when visibility=PUBLIC. */
|
|
1280
1299
|
Live = "LIVE"
|
|
1281
1300
|
}
|
|
1282
|
-
/** A short-lived, app-scoped gameplay token (portal). Confined to a single app: usable only against that app's
|
|
1301
|
+
/** A short-lived, app-scoped gameplay token (portal). Confined to a single app: usable only against that app's Application 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. */
|
|
1283
1302
|
export type AppTokenResponse = {
|
|
1284
1303
|
__typename?: 'AppTokenResponse';
|
|
1285
1304
|
/** The app this token is confined to, as a String. */
|
|
1286
1305
|
appId: Scalars['String']['output'];
|
|
1306
|
+
/** Base HTTPS URL of the Application 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 Application API route yet. Use this for gameplay; use `discoveryUrl` to recover if it stops answering. */
|
|
1307
|
+
applicationApiUrl: Maybe<Scalars['String']['output']>;
|
|
1308
|
+
/** WebSocket URL of the Application API that serves this app (wss://), for realtime subscriptions. */
|
|
1309
|
+
applicationApiWsUrl: Maybe<Scalars['String']['output']>;
|
|
1287
1310
|
/** Set only by `refreshAppToken` when the caller passed `currentServer`: the Buddy the NEW token was just authorized on, which is the node the client is already connected to. When present, keep the existing UDP session and start signing datagrams with the new token; there is no need to call serverWithLeastClients. Null when the caller passed nothing, or when that node can no longer serve this app (gone, draining, Full, or not local to the app) -- then call serverWithLeastClients for a fresh placement, exactly as before. */
|
|
1288
1311
|
authorizedServer: Maybe<ServerStatus>;
|
|
1289
|
-
/** Stable entry origin, resolving to every datacenter, that always reaches SOME healthy instance. Use it to re-discover endpoints when `
|
|
1312
|
+
/** Stable entry origin, resolving to every datacenter, that always reaches SOME healthy instance. Use it to re-discover endpoints when `applicationApiUrl` 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. */
|
|
1290
1313
|
discoveryUrl: Maybe<Scalars['String']['output']>;
|
|
1291
1314
|
/** 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. */
|
|
1292
1315
|
expiresAt: Scalars['String']['output'];
|
|
1293
|
-
/**
|
|
1316
|
+
/**
|
|
1317
|
+
* Base HTTPS URL of the Application 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 Application API route yet. Use this for gameplay; use `discoveryUrl` to recover if it stops answering.
|
|
1318
|
+
* @deprecated Use applicationApiUrl: the Game API is now the Application API. Removed on January 1, 2027.
|
|
1319
|
+
*/
|
|
1294
1320
|
gameApiUrl: Maybe<Scalars['String']['output']>;
|
|
1295
|
-
/**
|
|
1321
|
+
/**
|
|
1322
|
+
* WebSocket URL of the Application API that serves this app (wss://), for realtime subscriptions.
|
|
1323
|
+
* @deprecated Use applicationApiWsUrl: the Game API is now the Application API. Removed on January 1, 2027.
|
|
1324
|
+
*/
|
|
1296
1325
|
gameApiWsUrl: Maybe<Scalars['String']['output']>;
|
|
1297
1326
|
/** Identifier of the underlying game_token row, as a String. */
|
|
1298
1327
|
gameTokenId: Scalars['String']['output'];
|
|
@@ -1300,7 +1329,7 @@ export type AppTokenResponse = {
|
|
|
1300
1329
|
launchUrl: Maybe<Scalars['String']['output']>;
|
|
1301
1330
|
/** The app's runtime gate when the token was minted. A token is issued for a paused app too, so a client can read status and reason and tell the player the world is paused; realtime sends and hub calls are refused until status is ACTIVE again. Null only when the gate could not be read. */
|
|
1302
1331
|
runtimeGate: Maybe<AppRuntimeGate>;
|
|
1303
|
-
/** Opaque app-scoped gameplay token. Send to the target app's
|
|
1332
|
+
/** Opaque app-scoped gameplay token. Send to the target app's Application API as `Authorization: Bearer <token>` (and in the realtime `connectionParams`). Do NOT send it to the Management API for anything other than `me`/`refreshAppToken`. */
|
|
1304
1333
|
token: Scalars['String']['output'];
|
|
1305
1334
|
};
|
|
1306
1335
|
/** End-of-month egress projection for one shared app from linear extrapolation of calendar-month usage so far. */
|
|
@@ -1837,7 +1866,7 @@ export type Chunk = {
|
|
|
1837
1866
|
voxelStatesTruncated: Scalars['Boolean']['output'];
|
|
1838
1867
|
/** BASE64-encoded binary blob of the dense voxel-type grid. When present, the DECODED buffer is exactly 4096 bytes: one unsigned byte (voxel type 0-255) per voxel, indexed as x + y*16 + z*256 with x,y,z in 0-15. Null when the chunk has no voxel grid yet. Decode from base64 before reading. */
|
|
1839
1868
|
voxels: Maybe<Scalars['String']['output']>;
|
|
1840
|
-
/** When the chunk's grid and stored voxel states were last written whole (updateChunk, a mod's world.set_chunk). Every voxel edit recorded at or before it is superseded, so `voxelStates` holds the stored states (dated with this time) and the edits recorded after it. Chunk-state and LOD writes do not move it. Null when the chunk has not been written whole since
|
|
1869
|
+
/** When the chunk's grid and stored voxel states were last written whole (updateChunk, a mod's world.set_chunk). Every voxel edit recorded at or before it is superseded, so `voxelStates` holds the stored states (dated with this time) and the edits recorded after it. Chunk-state and LOD writes do not move it. Null when the chunk has not been written whole since Application API v2.70.0: then an edit recorded at any time applies over the grid, as before. A client that merges realtime voxel updates into a copy treats a voxel with no entry as written at this time. Application API v2.70.0. */
|
|
1841
1870
|
voxelsUpdatedAt: Maybe<Scalars['DateTime']['output']>;
|
|
1842
1871
|
};
|
|
1843
1872
|
/** A chunk near you was replaced as a whole (a hub's or mod's world.set_chunk; Buddy v0.45.0): read it again with getChunk, or getChunksByDistance with since. It comes instead of a voxel update per voxel. Received via the udpNotifications subscription. */
|
|
@@ -2761,7 +2790,7 @@ export type CrowdyStudioAgentPlayerDayLimitsInput = {
|
|
|
2761
2790
|
/** Maximum total provider tokens per player per UTC day. */
|
|
2762
2791
|
totalTokens?: InputMaybe<Scalars['BigInt']['input']>;
|
|
2763
2792
|
};
|
|
2764
|
-
/** Management's Agentic Crowdy Studio policy publication. EFFECTIVE values are the fail-closed platform/app intersection; an app can never widen platform models, tools, modes, risks, budgets, retention, or privacy.
|
|
2793
|
+
/** Management's Agentic Crowdy Studio policy publication. EFFECTIVE values are the fail-closed platform/app intersection; an app can never widen platform models, tools, modes, risks, budgets, retention, or privacy. Application API runtime enforcement still requires a fresh validated replica. */
|
|
2765
2794
|
export type CrowdyStudioAgentPolicy = {
|
|
2766
2795
|
__typename?: 'CrowdyStudioAgentPolicy';
|
|
2767
2796
|
/** Exact model ids allowed by this layer/intersection. Empty denies all models. */
|
|
@@ -2784,9 +2813,9 @@ export type CrowdyStudioAgentPolicy = {
|
|
|
2784
2813
|
disableReason: Maybe<Scalars['String']['output']>;
|
|
2785
2814
|
/** Stable disable/kill reason code (for example AGENT_OPERATOR_KILLED); null when enabled. */
|
|
2786
2815
|
disableReasonCode: Maybe<Scalars['String']['output']>;
|
|
2787
|
-
/** Composite Management revision, formatted p<platform revision>:a<app revision>.
|
|
2816
|
+
/** Composite Management revision, formatted p<platform revision>:a<app revision>. Application API pins it only after a successful fresh replica pull. */
|
|
2788
2817
|
effectiveRevision: Scalars['String']['output'];
|
|
2789
|
-
/** Whether this Management policy layer/publication is enabled. EFFECTIVE is true only when all required layers are enabled and no kill applies; it does not attest that
|
|
2818
|
+
/** Whether this Management policy layer/publication is enabled. EFFECTIVE is true only when all required layers are enabled and no kill applies; it does not attest that Application API has synchronized. */
|
|
2790
2819
|
enabled: Scalars['Boolean']['output'];
|
|
2791
2820
|
/** Platform-funded pilot/future billing seam. */
|
|
2792
2821
|
funding: CrowdyStudioAgentFundingPolicy;
|
|
@@ -2985,7 +3014,7 @@ export declare enum CrowdyStudioAgentToolCallStatus {
|
|
|
2985
3014
|
export declare enum CrowdyStudioAgentToolExecutor {
|
|
2986
3015
|
/** The attached CrowdyJS host executes once after epoch/context/lease validation. */
|
|
2987
3016
|
Browser = "BROWSER",
|
|
2988
|
-
/**
|
|
3017
|
+
/** The Application API invokes an owner-scoped domain service; never shell or arbitrary GraphQL. */
|
|
2989
3018
|
Server = "SERVER"
|
|
2990
3019
|
}
|
|
2991
3020
|
/** Terminal result reported once by a browser executor. */
|
|
@@ -3142,7 +3171,7 @@ export type CrowdyStudioAgentUsageRecord = {
|
|
|
3142
3171
|
toolRounds: Scalars['BigInt']['output'];
|
|
3143
3172
|
/** Exact upstream inference cost in decimal USD when reported. */
|
|
3144
3173
|
upstreamInferenceCostUsd: Maybe<Scalars['String']['output']>;
|
|
3145
|
-
/**
|
|
3174
|
+
/** Application API-issued immutable usage UUID. */
|
|
3146
3175
|
usageId: Scalars['String']['output'];
|
|
3147
3176
|
/** Player whose isolated budget consumed usage. */
|
|
3148
3177
|
userId: Scalars['BigInt']['output'];
|
|
@@ -4277,17 +4306,27 @@ export type GameClientBootstrap = {
|
|
|
4277
4306
|
__typename?: 'GameClientBootstrap';
|
|
4278
4307
|
/** The app (game) this bootstrap was requested for, echoed back. A BigInt as a decimal string. Reuse this exact appId to scope the udpNotifications subscription and on every spatial send for this play session. */
|
|
4279
4308
|
appId: Scalars['BigInt']['output'];
|
|
4309
|
+
/** HTTPS origin the client should use for GraphQL right now: the app's OWN datacenter, because that is where its shards live and a query answered elsewhere crosses a WAN silently. Under direct connect it is one specific instance in that datacenter, which is NOT interchangeable with other instances for an open realtime session. Not to be confused with discoveryUrl, which is the shared origin resolving to every datacenter — fall back to that if requests here start failing. */
|
|
4310
|
+
applicationApiUrl: Maybe<Scalars['String']['output']>;
|
|
4311
|
+
/** The wss:// form of applicationApiUrl, for the graphql-transport-ws subscription socket and the binary relay. Same origin, same caveat: under direct connect it is one instance. */
|
|
4312
|
+
applicationApiWsUrl: Maybe<Scalars['String']['output']>;
|
|
4280
4313
|
/** Whether this server exposes the binary realtime relay (crowdy-relay-v1): a raw WebSocket endpoint at binaryRelayPath that relays complete client-signed Buddy wire datagrams as BINARY frames in both directions, replacing the GraphQL send*\/udpNotifications hot path. When false, use the GraphQL realtime surface. */
|
|
4281
4314
|
binaryRelayEnabled: Scalars['Boolean']['output'];
|
|
4282
4315
|
/** HTTP path of the binary realtime relay WebSocket endpoint on this origin (e.g. "/realtime"). Connect with `?appId=<appId>` and offer the binaryRelayProtocol subprotocol; authenticate with an app-scoped bearer token via the Authorization header, a `bearer.<base64url(token)>` subprotocol entry, or `?token=`. Wire format: cks docs, client-wire-formats. */
|
|
4283
4316
|
binaryRelayPath: Scalars['String']['output'];
|
|
4284
4317
|
/** Required WebSocket subprotocol for the binary realtime relay. The client must offer it during the upgrade; the server selects it. Currently "crowdy-relay-v1". */
|
|
4285
4318
|
binaryRelayProtocol: Scalars['String']['output'];
|
|
4286
|
-
/** Stable entry point that always resolves to SOME healthy API instance — the environment’s shared load balancer. Use this to RE-DISCOVER an endpoint when the instance you are connected to stops answering: call gameClientBootstrap (or mintAppToken) against it and use the
|
|
4319
|
+
/** Stable entry point that always resolves to SOME healthy API instance — the environment’s shared load balancer. Use this to RE-DISCOVER an endpoint when the instance you are connected to stops answering: call gameClientBootstrap (or mintAppToken) against it and use the applicationApiUrl it returns. This is the recovery path for direct connect, where applicationApiUrl is a single instance that can die; discoveryUrl is chosen so that it cannot die with it. Null only if the server has no public URL configured. */
|
|
4287
4320
|
discoveryUrl: Maybe<Scalars['String']['output']>;
|
|
4288
|
-
/**
|
|
4321
|
+
/**
|
|
4322
|
+
* HTTPS origin the client should use for GraphQL right now: the app's OWN datacenter, because that is where its shards live and a query answered elsewhere crosses a WAN silently. Under direct connect it is one specific instance in that datacenter, which is NOT interchangeable with other instances for an open realtime session. Not to be confused with discoveryUrl, which is the shared origin resolving to every datacenter — fall back to that if requests here start failing.
|
|
4323
|
+
* @deprecated Use applicationApiUrl: the Game API is now the Application API. Removed on January 1, 2027.
|
|
4324
|
+
*/
|
|
4289
4325
|
gameApiUrl: Maybe<Scalars['String']['output']>;
|
|
4290
|
-
/**
|
|
4326
|
+
/**
|
|
4327
|
+
* The wss:// form of gameApiUrl, for the graphql-transport-ws subscription socket and the binary relay. Same origin, same caveat: under direct connect it is one instance.
|
|
4328
|
+
* @deprecated Use applicationApiWsUrl: the Game API is now the Application API. Removed on January 1, 2027.
|
|
4329
|
+
*/
|
|
4291
4330
|
gameApiWsUrl: Maybe<Scalars['String']['output']>;
|
|
4292
4331
|
/** Maximum allowed value for the `decayRate` (named attenuation algorithm id) field on spatial sends. Currently 5; the server clamps send `decayRate` to 0..this. decayRate selects how the message attenuates with distance (0 = none). */
|
|
4293
4332
|
maxDecayRate: Scalars['Int']['output'];
|
|
@@ -4314,7 +4353,7 @@ export type GameClientBootstrap = {
|
|
|
4314
4353
|
/** Whether the app's wilderness (land no grid but the world grid covers) is open to players' voxel edits (App.wildernessWritesOpen). When false, edits there are refused, so a client can stop a player before sending one. */
|
|
4315
4354
|
wildernessWritesOpen: Scalars['Boolean']['output'];
|
|
4316
4355
|
};
|
|
4317
|
-
/** The elected host user of a game (app). Election is deterministic across all
|
|
4356
|
+
/** The elected host user of a game (app). Election is deterministic across all Application API replicas: among actors that are still fresh (recently heartbeated), the user whose earliest actor was created first wins, with a uuid tiebreaker. Row lifecycle is owned by Buddy, the realtime runtime; liveness (updated_at) is owned by game-api's actorHeartbeat mutation. */
|
|
4318
4357
|
export type GameHost = {
|
|
4319
4358
|
__typename?: 'GameHost';
|
|
4320
4359
|
/** How many actors the host user currently owns in this app (always >= 1 when this object is returned). */
|
|
@@ -4442,7 +4481,7 @@ export type GrantTierFeatureInput = {
|
|
|
4442
4481
|
/** The access tier id. */
|
|
4443
4482
|
tierId: Scalars['BigInt']['input'];
|
|
4444
4483
|
};
|
|
4445
|
-
/** A registered GraphQL API server instance in the fleet, with reachability addresses and basic host telemetry. Returned by graphqlServers (all) and activeGraphQLServers (only ReadyForClients). Use this for service discovery; realtime/UDP play still goes through the
|
|
4484
|
+
/** A registered GraphQL API server instance in the fleet, with reachability addresses and basic host telemetry. Returned by graphqlServers (all) and activeGraphQLServers (only ReadyForClients). Use this for service discovery; realtime/UDP play still goes through the Application API UDP proxy. */
|
|
4446
4485
|
export type GraphQlServer = {
|
|
4447
4486
|
__typename?: 'GraphQLServer';
|
|
4448
4487
|
/** TCP port the GraphQL/HTTP API listens on (default 4000). */
|
|
@@ -4465,7 +4504,7 @@ export type GraphQlServer = {
|
|
|
4465
4504
|
memoryUsagePct: Maybe<Scalars['Float']['output']>;
|
|
4466
4505
|
/** Cloud provider instance id of the underlying host, if known. */
|
|
4467
4506
|
providerInstanceId: Maybe<Scalars['String']['output']>;
|
|
4468
|
-
/** Public hostname clients can reach this instance on directly over TLS, e.g. `ck-api-or-1.prod.crowdedkingdoms.com`. Null when the instance has no public DNS name or certificate yet, in which case it is reachable only through the shared load balancer and must not be connected to directly. Prefer the `
|
|
4507
|
+
/** Public hostname clients can reach this instance on directly over TLS, e.g. `ck-api-or-1.prod.crowdedkingdoms.com`. Null when the instance has no public DNS name or certificate yet, in which case it is reachable only through the shared load balancer and must not be connected to directly. Prefer the `applicationApiUrl` returned by mintAppToken over building a URL from this field: that call already picks a low-load instance for you. */
|
|
4469
4508
|
publicHostname: Maybe<Scalars['String']['output']>;
|
|
4470
4509
|
/** Public IPv4 address clients use to reach this server, if assigned. */
|
|
4471
4510
|
publicIp4: Maybe<Scalars['String']['output']>;
|
|
@@ -5113,7 +5152,7 @@ export type Mutation = {
|
|
|
5113
5152
|
addTierAccessRule: TierAccessRule;
|
|
5114
5153
|
/** Admit one player-code listing, author, or authoring org to an app's strict allow list. Requires 'manage_compute'. Idempotency is explicit: an identical active entry returns a conflict instead of silently creating duplicates. SIDE EFFECTS: audit row + replica sync. */
|
|
5115
5154
|
admitAppCode: AppCodeAdmission;
|
|
5116
|
-
/** Soft-delete an access tier by setting its status to 'archived' (the row is retained, NOT hard-deleted) and notifies the
|
|
5155
|
+
/** Soft-delete an access tier by setting its status to 'archived' (the row is retained, NOT hard-deleted) and notifies the Application API. Requires the 'manage_access_tiers' permission on the app that owns the tier; super admins bypass. Existing user grants on this tier are NOT automatically revoked. Throws if the tier is not found. */
|
|
5117
5156
|
archiveAccessTier: AppAccessTier;
|
|
5118
5157
|
/** Soft-delete an app by setting status=ARCHIVED. The row is retained (NOT hard-deleted) and is excluded from the public marketplace. REVERSIBLE: call updateApp to set status back to DRAFT or LIVE. Requires the 'manage_apps' permission on the app; super admins bypass. Throws if the app id does not exist. */
|
|
5119
5158
|
archiveApp: App;
|
|
@@ -5141,7 +5180,7 @@ export type Mutation = {
|
|
|
5141
5180
|
capturePaypalCheckout: Checkout;
|
|
5142
5181
|
/** Changes the authenticated user's password after verifying the current password. Requires a valid session token. Returns true on success. Refuses with extensions.code INVALID_CURRENT_PASSWORD (403) when the current password is wrong, and PASSWORD_NOT_SET (409) when the account has no password to change — use setInitialPassword for that, which needs only the session. NEITHER of those means the session is invalid, and neither is UNAUTHENTICATED: both were until v1.60.0, so a client that signs the user out on UNAUTHENTICATED was signing them out over a typo. Every OTHER session for the account is revoked (with the app tokens minted from it); the session that made this call stays valid, so the client does not need to sign in again. */
|
|
5143
5182
|
changePassword: Scalars['Boolean']['output'];
|
|
5144
|
-
/** Self-service: the authenticated caller claims access to an app via its free, open-by-default tier. Requires authentication only (no org membership needed). ENTITLEMENT CHANGE: grants the free default tier as a 'system' grant and notifies the
|
|
5183
|
+
/** Self-service: the authenticated caller claims access to an app via its free, open-by-default tier. Requires authentication only (no org membership needed). ENTITLEMENT CHANGE: grants the free default tier as a 'system' grant and notifies the Application API. Idempotent: returns the existing row if already granted, and never overrides a prior revoke. Errors if the app has no free default tier or is archived. */
|
|
5145
5184
|
claimFreeAppAccess: AppUserAccess;
|
|
5146
5185
|
/** 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. Claim the hosting slug for an app (idempotent; the same app re-claiming its slug is a no-op, a different slug MOVES the game). Registers https://<games host>/<slug>/ and https://<slug>.<content host> as the app's redirect URIs and sets launch_url to the former. Requires manage_apps on the app and a SESSION token. Refuses a slug that is not a DNS label, is reserved, or belongs to another app (HOSTED_SLUG_UNAVAILABLE), and answers CONTENT_HOSTING_DISABLED on a tier without a content CDN. */
|
|
5147
5186
|
claimGameHosting: HostedGame;
|
|
@@ -5161,15 +5200,15 @@ export type Mutation = {
|
|
|
5161
5200
|
connectUdpProxy: UdpProxyConnectionStatus;
|
|
5162
5201
|
/** Operator only. Close an over-billed charge (an I3 finding: its priced total fell below what was billed and written off). The billed part of the difference is credited to the payer (a wallet credit and a CREDIT event); a written-off part (an exempt org) was never paid, so no money moves and a WRITE_OFF event of the opposite sign (reason OVERBILL_REVERSAL) offsets it. creditedMicrousd is the wallet credit only. Idempotent per charge state. */
|
|
5163
5202
|
cpBillingCreditOverbill: BillingCreditResult;
|
|
5164
|
-
/** Operator only (is_operator or is_super_admin). Publish or release an emergency kill for one app. This state is separate from the app's own kill and always takes precedence in Management's effective envelope; app users cannot clear it. SIDE EFFECTS: revision increment and a sanitized audit event. NOTHING IS PUSHED TO
|
|
5203
|
+
/** Operator only (is_operator or is_super_admin). Publish or release an emergency kill for one app. This state is separate from the app's own kill and always takes precedence in Management's effective envelope; app users cannot clear it. SIDE EFFECTS: revision increment and a sanitized audit event. NOTHING IS PUSHED TO THE APPLICATION API: preemption takes effect when its runtime next pulls this app's crowdy.studio-agent-policy/1 replica, which is within about a minute for an app already holding one and not at all for an app that does not until a permitted caller asks. Releasing the operator kill does not enable the app or clear its own kill. Stable errors: AGENT_POLICY_INVALID, AGENT_POLICY_REVISION_CONFLICT, IDEMPOTENCY_CONFLICT. */
|
|
5165
5204
|
cpSetCrowdyStudioAgentAppKill: CrowdyStudioAgentPolicy;
|
|
5166
|
-
/** Operator only (is_operator or is_super_admin). Patch Management platform Agentic Studio policy and global emergency kill. SIDE EFFECTS: the published kill takes precedence over every app setting, the revision increments, and a sanitized append-only audit event is written. NOTHING IS FANNED OUT TO APPS:
|
|
5205
|
+
/** Operator only (is_operator or is_super_admin). Patch Management platform Agentic Studio policy and global emergency kill. SIDE EFFECTS: the published kill takes precedence over every app setting, the revision increments, and a sanitized append-only audit event is written. NOTHING IS FANNED OUT TO APPS: Application API pulls crowdy.studio-agent-policy/1 per app, so a platform change reaches an app that already holds a replica within about a minute (refreshAfter is two thirds of a 60s validity) and reaches an app with no replica only when a permitted caller next asks about it. Application API must fail closed if the envelope is missing, malformed, or stale. Narrowing the platform lists narrows every app immediately on its next read, including apps that expressed no narrowing of their own. Hard ZDR/collection/body-retention rules and platform-funded/no-wallet pilot funding cannot be loosened. Stable errors: AGENT_POLICY_INVALID, AGENT_POLICY_REVISION_CONFLICT, IDEMPOTENCY_CONFLICT. */
|
|
5167
5206
|
cpSetCrowdyStudioAgentPlatformPolicy: CrowdyStudioAgentPolicy;
|
|
5168
|
-
/** Create a new access tier (a free/paid bundle of runtime permissions) for an app. Requires the 'manage_access_tiers' permission on the app (input.appId); super admins bypass. SIDE EFFECTS: validates the tier's permission keys against runtimePermissions and notifies the
|
|
5207
|
+
/** Create a new access tier (a free/paid bundle of runtime permissions) for an app. Requires the 'manage_access_tiers' permission on the app (input.appId); super admins bypass. SIDE EFFECTS: validates the tier's permission keys against runtimePermissions and notifies the Application API so Buddy sees the new tier. Does NOT grant the tier to any user. */
|
|
5169
5208
|
createAccessTier: AppAccessTier;
|
|
5170
5209
|
/** 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). */
|
|
5171
5210
|
createActor: Actor;
|
|
5172
|
-
/** 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
|
|
5211
|
+
/** 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 Application API. Elevated capabilities such as use_studio_agent are NOT granted by default and require an explicit tier grant. Slug must be unique within the org (a duplicate slug fails). New apps default to visibility=UNLISTED and status=LIVE unless overridden in the input: an app reaches the marketplace only once it is set PUBLIC (updateApp). Neither setting decides who may play; the access tiers do. An organization without a funded wallet or auto-billing may have at most 10 apps that are not archived; one more is refused with APP_LIMIT_REACHED (orgAppLimit says where an organization stands). */
|
|
5173
5212
|
createApp: App;
|
|
5174
5213
|
/** 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". */
|
|
5175
5214
|
createAvatar: Avatar;
|
|
@@ -5329,11 +5368,11 @@ export type Mutation = {
|
|
|
5329
5368
|
gameModelGrantTierFeature: GmTierFeature;
|
|
5330
5369
|
/** Revoke a feature key from an access tier. Requires app-admin ('manage_apps'). Returns true if a grant was removed. */
|
|
5331
5370
|
gameModelRevokeTierFeature: Scalars['Boolean']['output'];
|
|
5332
|
-
/** Grant (or re-activate) a user's access to an app, optionally on a specific tier. Requires the 'manage_access_tiers' permission on the app (input.appId); super admins bypass. ENTITLEMENT CHANGE: upserts an active app_user_access row and notifies the
|
|
5371
|
+
/** Grant (or re-activate) a user's access to an app, optionally on a specific tier. Requires the 'manage_access_tiers' permission on the app (input.appId); super admins bypass. ENTITLEMENT CHANGE: upserts an active app_user_access row and notifies the Application API, so the target user immediately gains that tier's runtime permissions in Buddy. Idempotent per (app,user): re-granting updates the tier and sets status back to active. */
|
|
5333
5372
|
grantAppAccess: AppUserAccess;
|
|
5334
5373
|
/** Grant one or more runtime permission keys directly to a single user on a grid (writes the `grid_user_direct_grants` input table), then recompute that user's materialized effective ACL on the grid. The target user must already have active app access (otherwise this fails). Requires app-admin ('manage_apps'). Returns the user's full effective permission-key set on the grid. To grant by group/role instead of per-user, use `assignGroupToGrid`. */
|
|
5335
5374
|
grantGridPermissions: GridUserPermissions;
|
|
5336
|
-
/** Org dashboard shortcut: the authenticated caller grants themselves access to an app using its default active tier. Requires that the caller is an active member of the app's owning org OR holds the 'manage_access_tiers' permission on the app. ENTITLEMENT CHANGE: upserts an active grant and notifies the
|
|
5375
|
+
/** Org dashboard shortcut: the authenticated caller grants themselves access to an app using its default active tier. Requires that the caller is an active member of the app's owning org OR holds the 'manage_access_tiers' permission on the app. ENTITLEMENT CHANGE: upserts an active grant and notifies the Application API. Errors if the app has no active tier, or the caller is neither a member nor a manager. */
|
|
5337
5376
|
grantMyAppAccess: AppUserAccess;
|
|
5338
5377
|
/** OPERATOR: grant every existing account a prefix*@domain pattern matches that has no grant -- for bot rosters created before the gate. The domain must be a reserved test domain or a company domain. Dry run by default. Refused on prod. */
|
|
5339
5378
|
grantTierAccessByPattern: GrantTierAccessByPatternResult;
|
|
@@ -5353,7 +5392,7 @@ export type Mutation = {
|
|
|
5353
5392
|
linkIdentity: UserIdentity;
|
|
5354
5393
|
/** Authenticates with email + password and starts a new session. Returns an AuthResponse whose `token` must be sent on subsequent requests as `Authorization: Bearer <token>`. Public (no auth required); throws on invalid credentials. If the account also has another verified sign-in method, the password must first be email-confirmed. First-party origins only: a browser page on any other origin is refused with HOSTED_SIGN_IN_REQUIRED (403) and must use the hosted sign-in redirect (CrowdyJS portal.signIn) instead; requests with no Origin header (native clients, scripts) are unaffected. Rate-limited per address and per client. */
|
|
5355
5394
|
login: AuthResponse;
|
|
5356
|
-
/** Ends the current session by deleting the game_token that authenticated this request; other devices stay logged in. An identity session logout also cascades to (revokes) every app token it minted. Returns false if no token was resolved. */
|
|
5395
|
+
/** Ends the current session by deleting the game_token that authenticated this request; other devices stay logged in. An identity session logout also cascades to (revokes) every app token it minted. An app token logs only itself out: it is deleted, and the realtime and compute-module sessions it opened end at once; the identity session that minted it is untouched. Returns false if no token was resolved. */
|
|
5357
5396
|
logout: Scalars['Boolean']['output'];
|
|
5358
5397
|
/** Ends every active session for the authenticated user: deletes every session token and every app-scoped gameplay token derived from one, so the user is signed out of the platform and of every game they had entered. Takes effect immediately — a deleted token stops authenticating on its next request rather than at its next refresh. Requires a valid session token. */
|
|
5359
5398
|
logoutAllDevices: Scalars['Boolean']['output'];
|
|
@@ -5367,7 +5406,7 @@ export type Mutation = {
|
|
|
5367
5406
|
mintManagedPlayerToken: AppTokenResponse;
|
|
5368
5407
|
/** 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. */
|
|
5369
5408
|
provisionManagedPlayers: ProvisionManagedPlayersResult;
|
|
5370
|
-
/** Publishes an app to the shared
|
|
5409
|
+
/** 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. */
|
|
5371
5410
|
publishAppToShared: PublishAppResult;
|
|
5372
5411
|
/** Store acceptance of the current developer documents (developerLegalDocuments: the API Terms, SDK Developer Terms and Free Tier and Billing Basis). acceptDeveloperTerms must be true; false stores nothing and is refused with LEGAL_ACCEPTANCE_REQUIRED. The developer documents admit adults only: an account with no age is refused AGE_REQUIRED (recordPlayerAge first) and one under 18 AGE_REQUIREMENT_NOT_MET. Idempotent. Requires a session token. */
|
|
5373
5412
|
recordDeveloperConsents: Scalars['Boolean']['output'];
|
|
@@ -5423,11 +5462,11 @@ export type Mutation = {
|
|
|
5423
5462
|
resyncTierGridPermissions: Scalars['Boolean']['output'];
|
|
5424
5463
|
/** OPERATOR ONLY. Retires an organization: sets organizations.status to 'retired', stamps deleted_at, archives its apps, and writes a tombstone to org_retirements. RETIREMENT IS A STATE, NOT A DELETION — no wallet_transactions, org_billing_waivers, app_shared_usage_charges or other ledger row is altered or removed, so an auditor can still reconstruct exactly what this organization spent, with the same joins as before, indefinitely. There is no purge and no retention window, by decision rather than by omission: org ledger rows are retained forever (operator decision, 2026-08-21), so retirement is only ever a state. A retired organization's remaining wallet balance is FROZEN indefinitely by the same decision — held, not refunded and not forfeited — and the amount is recorded on the tombstone. AFTER RETIREMENT the org's API tokens stop authenticating, its members lose every org permission (super admins excepted, so this is reversible), and it is excluded from the caller's organization list — but it is still readable by id and slug, because a retired org that answers like a missing one is worse than one that says what it is. Refuses unless expectedSlug matches the org named by orgId, and refuses an organization holding money unless acknowledgeFrozenBalance is passed. Reverse it with reinstateOrganization. */
|
|
5425
5464
|
retireOrganization: OrgRetirementType;
|
|
5426
|
-
/** Revoke a user's access to an app by setting their app_user_access status to 'revoked'. Their gameplay tokens for the app are deleted and their realtime sessions ended at once, and a new token is refused with ACCESS_REVOKED. Requires the 'manage_access_tiers' permission on the app; super admins bypass. The row is retained for audit (not deleted); REVERSIBLE via grantAppAccess. For a ban that lifts by itself use suspendAppAccess. */
|
|
5465
|
+
/** Revoke a user's access to an app by setting their app_user_access status to 'revoked'. Their gameplay tokens for the app are deleted and their realtime sessions ended at once, and a new token is refused with ACCESS_REVOKED. A user with no access record for the app is NOT_FOUND. Requires the 'manage_access_tiers' permission on the app; super admins bypass. The row is retained for audit (not deleted); REVERSIBLE via grantAppAccess. For a ban that lifts by itself use suspendAppAccess. */
|
|
5427
5466
|
revokeAppAccess: AppUserAccess;
|
|
5428
5467
|
/** Withdraw consent for an app and immediately invalidate every app-scoped token the authenticated user holds for it, whichever session minted them — the tokens stop authenticating on their next request, not at their next refresh. Atomic: if the tokens cannot be invalidated, consent is left in place and this returns an error, so a successful response is the only state in which access has actually been withdrawn. Does NOT sign the user out: their identity session and their tokens for other apps are untouched. Returns false when there was nothing to revoke (no active grant and no live tokens), which makes a repeat call safe. Requires a SESSION token. */
|
|
5429
5468
|
revokeAppAuthorization: Scalars['Boolean']['output'];
|
|
5430
|
-
/** Revoke an active player-code admission. Requires 'manage_compute'. SIDE EFFECTS: audit row + replica sync;
|
|
5469
|
+
/** Revoke an active player-code admission. Requires 'manage_compute'. SIDE EFFECTS: audit row + replica sync; Application API drains affected server modules and blocks client artifact fetches on the next admission refresh. */
|
|
5431
5470
|
revokeAppCodeAdmission: AppCodeAdmission;
|
|
5432
5471
|
/** Revoke a user's direct grants on a grid (deletes from the `grid_user_direct_grants` input table) and recompute their materialized effective ACL. Omit `permissionKeys` to remove ALL of the user's direct grants on the grid; pass a subset to remove only those keys. Does not affect permissions the user receives via group grants. Requires app-admin ('manage_apps'). DESTRUCTIVE for the targeted grants. Returns the user's remaining effective permission keys on the grid. */
|
|
5433
5472
|
revokeGridPermissions: GridUserPermissions;
|
|
@@ -5473,11 +5512,11 @@ export type Mutation = {
|
|
|
5473
5512
|
sendVoxelUpdate: Scalars['Boolean']['output'];
|
|
5474
5513
|
/** Operator only. Moves the start of the organization allowance pool or its size on this tier, and records each change in billing_rate_changes (scope SHARED, metric allowance_pool). A month already settled keeps the allowance it was settled with. */
|
|
5475
5514
|
setAllowancePool: AllowancePoolSettings;
|
|
5476
|
-
/** Creates or updates an app's monthly spend cap (idempotent upsert keyed by org + app) and returns the resulting budget.
|
|
5515
|
+
/** Creates or updates an app's monthly spend cap (idempotent upsert keyed by org + app) and returns the resulting budget. Once the app's spend this calendar month (UTC) reaches the cap, the platform refuses the app's traffic with spend_cap until the month ends or the cap is raised, as it does for the hourly and daily caps (setAppSpendCaps); 0 removes the budget. It does not move money, charge a card, or alter the wallet balance. Requires the 'manage_billing' app permission. */
|
|
5477
5516
|
setAppBudget: AppBudget;
|
|
5478
5517
|
/** Register/update an app's portal client settings (redirect_uris, client_type, launch_url). Requires manage_apps on the app and a SESSION token. */
|
|
5479
5518
|
setAppClientSettings: PortalConsentState;
|
|
5480
|
-
/** Set an app's player-code censorship mode. Requires 'manage_compute'. SIDE EFFECTS: writes an immutable audit row and replica-syncs the mode to
|
|
5519
|
+
/** Set an app's player-code censorship mode. Requires 'manage_compute'. SIDE EFFECTS: writes an immutable audit row and replica-syncs the mode to Application API. Switching to ALLOW_LIST is strict: unadmitted code (including self-authored code) drains at the runtime activation gate; deploy/compile remain allowed. */
|
|
5481
5520
|
setAppCodeAdmissionMode: CodeAdmissionMode;
|
|
5482
5521
|
/** Set an app's compute allowance in units per minute. One unit is one millisecond of measured execution time; ck-exec work is converted from busy time and fuel. An over-ceiling value is REFUSED naming the ceiling (6000000 units per minute) rather than accepted and clamped, so the value reported back is always the value in force. Set enforce to true to pause the app's ck-exec code while its last settled minute is over the allowance; leave it false to record the allowance without pausing anything. Requires app-admin ('manage_apps'). */
|
|
5483
5522
|
setAppComputeBudget: AppComputeBudgetInfo;
|
|
@@ -5503,7 +5542,7 @@ export type Mutation = {
|
|
|
5503
5542
|
setChannelPolicy: AppGroupPolicy;
|
|
5504
5543
|
/** Operator only. Sets the Twenty sync's mode (OFF, SHADOW, LIVE) and whether its signed webhook is accepted; recorded in crm_sync_changes. LIVE sends studio and developer contacts to the CRM. */
|
|
5505
5544
|
setCrmSync: CrmSyncStatus;
|
|
5506
|
-
/** Create or patch an app's Agentic Crowdy Studio policy. Requires 'manage_compute'. Omitted values stay unchanged; first creation starts disabled, killed, and deny-all. A model/tool/mode/risk list naming anything outside the platform allowlist is REFUSED with AGENT_POLICY_INVALID quoting the platform's current list, rather than silently reduced; a list you do send is stored exactly as sent and can only narrow, and omitting it entirely means 'no narrowing', which inherits the platform's list live on every read. Numeric and retention values are still clamped down to platform limits. Locked ZDR/collection/body-retention rules and the operator app kill cannot be changed. SIDE EFFECTS: increments Management's publication revision and appends a sanitized audit event. NOTHING IS PUSHED TO
|
|
5545
|
+
/** Create or patch an app's Agentic Crowdy Studio policy. Requires 'manage_compute'. Omitted values stay unchanged; first creation starts disabled, killed, and deny-all. A model/tool/mode/risk list naming anything outside the platform allowlist is REFUSED with AGENT_POLICY_INVALID quoting the platform's current list, rather than silently reduced; a list you do send is stored exactly as sent and can only narrow, and omitting it entirely means 'no narrowing', which inherits the platform's list live on every read. Numeric and retention values are still clamped down to platform limits. Locked ZDR/collection/body-retention rules and the operator app kill cannot be changed. SIDE EFFECTS: increments Management's publication revision and appends a sanitized audit event. NOTHING IS PUSHED TO THE APPLICATION API: its runtime pulls crowdy.studio-agent-policy/1, obtaining a replica the first time a permitted caller asks about an app that has none, and re-pulling an existing replica once it passes refreshAfter (two thirds of its 60s validity). A change therefore reaches enforcement within about a minute for an app already in use, and not at all until someone asks for one that is not. Stable errors: AGENT_POLICY_INVALID, AGENT_POLICY_REVISION_CONFLICT, IDEMPOTENCY_CONFLICT. */
|
|
5507
5546
|
setCrowdyStudioAgentPolicy: CrowdyStudioAgentPolicy;
|
|
5508
5547
|
/** Sets the per-user early-access override flag, forcing early access on or off regardless of the global free-play window. Requires a super-admin bearer game token (and the management API enabled). */
|
|
5509
5548
|
setEarlyAccessOverride: User;
|
|
@@ -5581,7 +5620,7 @@ export type Mutation = {
|
|
|
5581
5620
|
teleportRequest: TeleportResponse;
|
|
5582
5621
|
/** Transfer grid title to another user. The current user owner or an app admin may transfer. DESTRUCTIVE/SECURITY-SENSITIVE: atomically disables every player module on the grid pending new-owner consent, wipes module state, removes the old owner direct grid grants, and closes the old title row. The new owner receives no implicit permissions. */
|
|
5583
5622
|
transferGridOwnership: GridOwnership;
|
|
5584
|
-
/** Transfer a listing between personal and org ownership (DN-9). The caller must be the current owner (user-owned) or hold manage_compute in the owning org; transfers to an org require manage_compute in the receiving org. SIDE EFFECTS: append-only ownership audit row + replica sync to
|
|
5623
|
+
/** Transfer a listing between personal and org ownership (DN-9). The caller must be the current owner (user-owned) or hold manage_compute in the owning org; transfers to an org require manage_compute in the receiving org. SIDE EFFECTS: append-only ownership audit row + replica sync to Application API. Ownership moves listing control and source-access rights; from P4b it also moves proceeds. */
|
|
5585
5624
|
transferPlayerCodeListing: PlayerCodeListing;
|
|
5586
5625
|
/** Lift a channel ban, so the user may join or be added again (nothing is restored). Requires the 'manage_members' channel permission (app admins bypass). Returns true if there was a ban. */
|
|
5587
5626
|
unbanChannelMember: Scalars['Boolean']['output'];
|
|
@@ -5595,7 +5634,7 @@ export type Mutation = {
|
|
|
5595
5634
|
unlinkIdentity: Scalars['Boolean']['output'];
|
|
5596
5635
|
/** Lift a user's suspension (suspendAppAccess) before it lapses. A no-op for a user who is not suspended. Requires the 'manage_access_tiers' permission on the app; super admins bypass. */
|
|
5597
5636
|
unsuspendAppAccess: AppUserAccess;
|
|
5598
|
-
/** Update an existing access tier (name, ordering, pricing, permissions, etc.); only fields present in the input are changed. Requires the 'manage_access_tiers' permission on the app that owns the tier (resolved from tierId); super admins bypass. SIDE EFFECTS: re-syncs the tier's permissions to the
|
|
5637
|
+
/** Update an existing access tier (name, ordering, pricing, permissions, etc.); only fields present in the input are changed. Requires the 'manage_access_tiers' permission on the app that owns the tier (resolved from tierId); super admins bypass. SIDE EFFECTS: re-syncs the tier's permissions to the Application API. Throws if the tier is not found or the caller lacks permission. */
|
|
5599
5638
|
updateAccessTier: AppAccessTier;
|
|
5600
5639
|
/** Partially updates an actor (appId, avatarId, chunk, publicState, privateState); fields omitted from `input` are left unchanged. OWNER-EXCLUSIVE: only the actor’s owner may update (throws Unauthorized otherwise). Game-plane: requires an app token for the actor’s app (a session token or another app’s token is answered NotFound). `uuid` is the 32-character ASCII actor id. */
|
|
5601
5640
|
updateActor: Actor;
|
|
@@ -5613,7 +5652,7 @@ export type Mutation = {
|
|
|
5613
5652
|
updateChannel: Group;
|
|
5614
5653
|
/** Update a channel role's name, rank, and/or permission keys (system roles cannot be renamed/re-ranked). When permissions are supplied they REPLACE the role's existing keys. Requires the 'manage_roles' channel permission (app admins bypass). Note: changing send_messages here does not re-push Buddy until affected members' roles are re-applied via setChannelMemberRoles. */
|
|
5615
5654
|
updateChannelRole: GroupRole;
|
|
5616
|
-
/** Creates or replaces a chunk's dense voxel grid and/or per-voxel states for the given app and coordinates, records each provided voxel state as an individual voxel update, and asynchronously uploads the chunk to the CDN. WRITES world state. A whole-chunk write: every voxel edit recorded for the chunk at or before it is superseded and removed, so the chunk reads back as written (Chunk.voxelsUpdatedAt;
|
|
5655
|
+
/** Creates or replaces a chunk's dense voxel grid and/or per-voxel states for the given app and coordinates, records each provided voxel state as an individual voxel update, and asynchronously uploads the chunk to the CDN. WRITES world state. A whole-chunk write: every voxel edit recorded for the chunk at or before it is superseded and removed, so the chunk reads back as written (Chunk.voxelsUpdatedAt; Application API v2.70.0). A client that saves a grid it read earlier therefore overwrites edits made since that read. Leaves chunkState and LODs untouched. Requires an app token for the app and either the 'manage_apps' permission on the app (resolved via its org; super admins bypass) or the voxel edit permission for this chunk that updateVoxel checks (app access, the tier's update_voxel_data, and update_voxel_data on the most specific grid covering the chunk). Throws FORBIDDEN otherwise, and for a chunk only the app's world grid covers while the app's wilderness is closed (App.wildernessWritesOpen false). */
|
|
5617
5656
|
updateChunk: Chunk;
|
|
5618
5657
|
/** Replaces the level-of-detail (LOD) set for a chunk, preserving voxels, per-voxel states, chunk state and owner; returns the updated chunk (or null if it could not be written). WRITES world state. Requires a valid bearer token AND the `manage_apps` permission on the org that owns input.appId (super admins bypass). */
|
|
5619
5658
|
updateChunkLods: Maybe<Chunk>;
|
|
@@ -6983,7 +7022,7 @@ export type OrgToken = {
|
|
|
6983
7022
|
/** False once revoked; inactive tokens cannot authenticate. */
|
|
6984
7023
|
isActive: Scalars['Boolean']['output'];
|
|
6985
7024
|
/**
|
|
6986
|
-
* 'user_minted' (human-created) or 'service' (minted by the control plane for per-tenant
|
|
7025
|
+
* 'user_minted' (human-created) or 'service' (minted by the control plane for per-tenant Application API environments).
|
|
6987
7026
|
* @deprecated Service tokens were retired; every org token is 'user_minted'. Read `scopes` for what a token may do.
|
|
6988
7027
|
*/
|
|
6989
7028
|
kind: Scalars['String']['output'];
|
|
@@ -7212,11 +7251,21 @@ export type PlaceableDatacenter = {
|
|
|
7212
7251
|
__typename?: 'PlaceableDatacenter';
|
|
7213
7252
|
/** 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. */
|
|
7214
7253
|
appShardCount: Scalars['Int']['output'];
|
|
7254
|
+
/** 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. */
|
|
7255
|
+
applicationApiUrl: Maybe<Scalars['String']['output']>;
|
|
7256
|
+
/** The wss:// form of applicationApiUrl. Null under the same conditions. */
|
|
7257
|
+
applicationApiWsUrl: Maybe<Scalars['String']['output']>;
|
|
7215
7258
|
/** Datacenter code, e.g. 'va'. Pass this verbatim as createApp's input.datacenter; it is compared lowercase. */
|
|
7216
7259
|
code: Scalars['String']['output'];
|
|
7217
|
-
/**
|
|
7260
|
+
/**
|
|
7261
|
+
* 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.
|
|
7262
|
+
* @deprecated Use applicationApiUrl: the Game API is now the Application API. Removed on January 1, 2027.
|
|
7263
|
+
*/
|
|
7218
7264
|
gameApiUrl: Maybe<Scalars['String']['output']>;
|
|
7219
|
-
/**
|
|
7265
|
+
/**
|
|
7266
|
+
* The wss:// form of gameApiUrl. Null under the same conditions.
|
|
7267
|
+
* @deprecated Use applicationApiWsUrl: the Game API is now the Application API. Removed on January 1, 2027.
|
|
7268
|
+
*/
|
|
7220
7269
|
gameApiWsUrl: Maybe<Scalars['String']['output']>;
|
|
7221
7270
|
/** Whether createApp will accept this datacenter right now. False means it holds no shards of the app colocation group, so no app id can hash into it and creation would fail after exhausting its candidates. Do not offer a false entry as a choice — show it as unavailable, because dropping it hides a half-built datacenter from the only person who would notice. */
|
|
7222
7271
|
placeable: Scalars['Boolean']['output'];
|
|
@@ -7233,14 +7282,24 @@ export type PlaceableDatacenters = {
|
|
|
7233
7282
|
/** The datacenter of the instance that answered this call, or null if it was not told its own. Present so a picker can SAY which datacenter it is talking to; deliberately NOT a default. The published origin is a multivalue record over every datacenter's load balancer, so the instance answering is whichever one DNS picked, and defaulting to it would place apps by exactly the accident createApp's required argument exists to remove. */
|
|
7234
7283
|
servedBy: Maybe<Scalars['String']['output']>;
|
|
7235
7284
|
};
|
|
7236
|
-
/** Public platform discovery. Clients/SDKs read the shared
|
|
7285
|
+
/** Public platform discovery. Clients/SDKs read the shared Application API URL here to route apps deployed to the shared environment. */
|
|
7237
7286
|
export type PlatformConfig = {
|
|
7238
7287
|
__typename?: 'PlatformConfig';
|
|
7239
7288
|
/** Free shared app slots an org gets before usage is wallet-billed. */
|
|
7240
7289
|
freeAppsPerOrg: Scalars['Int']['output'];
|
|
7241
|
-
/** Shared
|
|
7290
|
+
/** Shared Application API HTTP/GraphQL root for shared-environment apps. */
|
|
7291
|
+
sharedApplicationApiUrl: Maybe<Scalars['String']['output']>;
|
|
7292
|
+
/** Shared Application API WebSocket root (subscriptions / UDP proxy). */
|
|
7293
|
+
sharedApplicationApiWsUrl: Maybe<Scalars['String']['output']>;
|
|
7294
|
+
/**
|
|
7295
|
+
* Shared Application API HTTP/GraphQL root for shared-environment apps.
|
|
7296
|
+
* @deprecated Use sharedApplicationApiUrl: the Game API is now the Application API. Removed on January 1, 2027.
|
|
7297
|
+
*/
|
|
7242
7298
|
sharedGameApiUrl: Maybe<Scalars['String']['output']>;
|
|
7243
|
-
/**
|
|
7299
|
+
/**
|
|
7300
|
+
* Shared Application API WebSocket root (subscriptions / UDP proxy).
|
|
7301
|
+
* @deprecated Use sharedApplicationApiWsUrl: the Game API is now the Application API. Removed on January 1, 2027.
|
|
7302
|
+
*/
|
|
7244
7303
|
sharedGameApiWsUrl: Maybe<Scalars['String']['output']>;
|
|
7245
7304
|
};
|
|
7246
7305
|
/** Off-session auto-recharge settings for the player wallet (the org auto-billing twin): when enabled with a vaulted card, the player gate tops the wallet up before denying for insufficient funds. */
|
|
@@ -7775,7 +7834,7 @@ export type Query = {
|
|
|
7775
7834
|
appCodeAdmissions: Array<AppCodeAdmission>;
|
|
7776
7835
|
/** An app's stored compute allowance, or null when none has been set — in which case its ck-exec code is never paused for its budget. Requires app-admin ('manage_apps'). */
|
|
7777
7836
|
appComputeBudget: Maybe<AppComputeBudgetInfo>;
|
|
7778
|
-
/** Resolve where one or more apps are placed, WITHOUT authenticating. Call this before login and connect to the returned
|
|
7837
|
+
/** Resolve where one or more apps are placed, WITHOUT authenticating. Call this before login and connect to the returned applicationApiUrl, so the session and app token are both written in the app's own datacenter instead of across a WAN. Pass every app a launcher might switch to and cache the result; placement changes rarely and only an operator can change it. An app with no placement comes back with nulls, which means 'keep using the shared origin'. */
|
|
7779
7838
|
appDiscovery: Array<AppDiscovery>;
|
|
7780
7839
|
/** Lists org members eligible for a manual app access grant (active members of the app's owning org). Requires the 'manage_access_tiers' permission on the app; super admins bypass. Use the returned user ids with grantAppAccess. */
|
|
7781
7840
|
appGrantMemberCandidates: Array<AppGrantMemberCandidate>;
|
|
@@ -7870,7 +7929,7 @@ export type Query = {
|
|
|
7870
7929
|
crmBackfillPreview: CrmBackfillPreview;
|
|
7871
7930
|
/** Operator only. The Twenty sync's mode, queue and last error in this environment, and what the CRM workspace lacks for LIVE. */
|
|
7872
7931
|
crmSyncStatus: CrmSyncStatus;
|
|
7873
|
-
/** Read Management's fail-closed Agentic Crowdy Studio publication: platform enable/kill, per-app operator kill, app enable/kill, the resolved model/tool/mode/risk lists (models and modes are the platform/app intersection; a tool or risk list the app left empty is inherited from the platform whole, because empty at a layer that can only narrow means no narrowing), minimum budgets/retention, locked privacy, and platform-funded billing seam. Requires 'view_compute_diagnostics'. This is the source publication, not proof of current runtime enforcement:
|
|
7932
|
+
/** Read Management's fail-closed Agentic Crowdy Studio publication: platform enable/kill, per-app operator kill, app enable/kill, the resolved model/tool/mode/risk lists (models and modes are the platform/app intersection; a tool or risk list the app left empty is inherited from the platform whole, because empty at a layer that can only narrow means no narrowing), minimum budgets/retention, locked privacy, and platform-funded billing seam. Requires 'view_compute_diagnostics'. This is the source publication, not proof of current runtime enforcement: Application API must hold a fresh crowdy.studio-agent-policy/1 replica and independently enforce it; missing/stale/malformed replica or an empty model/mode intersection must disable the agent. */
|
|
7874
7933
|
crowdyStudioAgentEffectivePolicy: CrowdyStudioAgentPolicy;
|
|
7875
7934
|
/** Read the app-owned Agentic Crowdy Studio policy row, or a disabled/killed deny-all projection when no row exists. Requires 'view_compute_diagnostics' on the app. This is configuration only: use crowdyStudioAgentEffectivePolicy to see platform clamp and kill precedence. No provider key, prompt, source, header, request/response body, payer reference, or other secret is exposed. */
|
|
7876
7935
|
crowdyStudioAgentPolicy: CrowdyStudioAgentPolicy;
|
|
@@ -7960,7 +8019,7 @@ export type Query = {
|
|
|
7960
8019
|
freeTierLevels: FreeTierLevels;
|
|
7961
8020
|
/** Single startup payload for browser game clients: the authenticated user, server/min-client version requirements, current UDP proxy status, realtime protocol details (subprotocol + subscription name), and the spatial send limits/constants (maxReplicationDistance, maxDecayRate, sequenceNumberModulo). Requires a bearer game token. Read-only: does not open a UDP proxy session. Call this once after login to initialize a play session. */
|
|
7962
8021
|
gameClientBootstrap: GameClientBootstrap;
|
|
7963
|
-
/** Returns the single elected host user for an app (game). Deterministic across all
|
|
8022
|
+
/** Returns the single elected host user for an app (game). Deterministic across all Application API replicas behind the LB: the user whose earliest still-connected actor row was created first wins, with a uuid tiebreaker. Returns null when no actors exist for the app. Stale actors (no recent actorHeartbeat) are excluded once HOST_ACTOR_FRESHNESS_SECONDS is enabled. Clients should poll; there is no host-change subscription in v1. */
|
|
7964
8023
|
gameHost: Maybe<GameHost>;
|
|
7965
8024
|
/** List the feature keys defined for an app. Requires app-admin ('manage_apps'). */
|
|
7966
8025
|
gameModelFeatures: Array<GmAppFeature>;
|
|
@@ -8105,7 +8164,7 @@ export type Query = {
|
|
|
8105
8164
|
paymentEventsConnection: PaymentEventsConnection;
|
|
8106
8165
|
/** The datacenters this deployment can create an app in. Call this before createApp and use a returned `code` as input.datacenter: the argument is REQUIRED and permanent, because an app is distributed on its app_id and all of its data lives in one datacenter for the life of the app. Requires authentication. Offer only entries with placeable=true; an empty list means no datacenter topology has been pushed here and app creation will refuse until it has. Cheap and stable — the answer changes only when the fleet does, and it is served from Citus reference tables on whichever instance answers. */
|
|
8107
8166
|
placeableDatacenters: PlaceableDatacenters;
|
|
8108
|
-
/** Public platform discovery. Returns the shared
|
|
8167
|
+
/** Public platform discovery. Returns the shared Application API URL clients use for shared-environment apps (served by the platform shared environment). No auth required. */
|
|
8109
8168
|
platformConfig: PlatformConfig;
|
|
8110
8169
|
/** The caller's player-wallet auto-recharge settings (off-session card top-up before the player gate denies for funds). */
|
|
8111
8170
|
playerAutoBilling: PlayerAutoBilling;
|
|
@@ -8148,7 +8207,7 @@ export type Query = {
|
|
|
8148
8207
|
runtimePermissions: Array<Scalars['String']['output']>;
|
|
8149
8208
|
/** The app's safety reports, newest first, with open CHILD_SAFETY reports ahead of the rest; only those with the given status if one is given. At most `first` (default 50, at most 200). Requires 'moderate_safety' on the app (an org role, or the org's admins); super admins bypass. Send the identity session to the app's datacenter. */
|
|
8150
8209
|
safetyReports: Array<SafetyReport>;
|
|
8151
|
-
/** Pick a low-load game server for a native (direct-UDP) client to connect to: returns a random server from the least-loaded ~20% (by client count) of ReadyForClients servers to spread load, always CO-LOCATED with the datacenter that holds the data for this app (all rows for one app live in a single datacenter). This REFUSES rather than returning a Buddy elsewhere, because every gameplay write for the session would otherwise cross datacenters — invisible, because each write still succeeds — and the refusal tells you which of three situations you are in. If you reached the wrong datacenter (the shared entry name resolves to all of them, so this is the common case for a client that has not re-discovered) it is WRONG_DATACENTER, carrying
|
|
8210
|
+
/** Pick a low-load game server for a native (direct-UDP) client to connect to: returns a random server from the least-loaded ~20% (by client count) of ReadyForClients servers to spread load, always CO-LOCATED with the datacenter that holds the data for this app (all rows for one app live in a single datacenter). This REFUSES rather than returning a Buddy elsewhere, because every gameplay write for the session would otherwise cross datacenters — invisible, because each write still succeeds — and the refusal tells you which of three situations you are in. If you reached the wrong datacenter (the shared entry name resolves to all of them, so this is the common case for a client that has not re-discovered) it is WRONG_DATACENTER, carrying applicationApiUrl and applicationApiWsUrl in extensions: reconnect there and retry, which the CrowdyJS and CrowdyCPP clients do for you. If the app’s own datacenter is not serving at all it is APP_UNAVAILABLE, deliberately with no endpoint. Only when this IS the app’s datacenter and it has no healthy co-located Buddy is it NO_LOCAL_BUDDY — also with no endpoint, because there is nowhere else to go; that one needs an operator. Requires a bearer game token; as a side effect it authorizes that token’s P2P session with the chosen Buddy so the native client’s spatial datagrams are accepted. Connect the native client to the returned ip4 and clientPort. Browser clients should instead use the UDP proxy (connectUdpProxy / udpNotifications) and do not need this. */
|
|
8152
8211
|
serverWithLeastClients: ServerStatus;
|
|
8153
8212
|
/** @deprecated Legacy monthly app-slot subscription catalog. New shared publishes use wallet usage billing only. */
|
|
8154
8213
|
sharedEnvPlans: Array<SharedEnvPlan>;
|
|
@@ -10260,7 +10319,7 @@ export type UpdateAppInput = {
|
|
|
10260
10319
|
status?: InputMaybe<AppStatus>;
|
|
10261
10320
|
/** New visibility (PUBLIC/UNLISTED/PRIVATE). Omit to leave unchanged. */
|
|
10262
10321
|
visibility?: InputMaybe<AppVisibility>;
|
|
10263
|
-
/** Open (true) or close (false) the app's wilderness to voxel and chunk writes: chunks that no grid but the app's world grid covers. Closing refuses every write there, whoever makes it; each
|
|
10322
|
+
/** Open (true) or close (false) the app's wilderness to voxel and chunk writes: chunks that no grid but the app's world grid covers. Closing refuses every write there, whoever makes it; each Application API replica, and each realtime server for a client's direct voxel updates, acts on the change within about 15 seconds. Omit to leave unchanged. */
|
|
10264
10323
|
wildernessWritesOpen?: InputMaybe<Scalars['Boolean']['input']>;
|
|
10265
10324
|
};
|
|
10266
10325
|
export type UpdateAvatarAppStateInput = {
|
|
@@ -10596,7 +10655,7 @@ export type VoxelState = {
|
|
|
10596
10655
|
__typename?: 'VoxelState';
|
|
10597
10656
|
/** BASE64-encoded binary state blob for this voxel (decode from base64); null/empty when the voxel has no extra state. */
|
|
10598
10657
|
state: Maybe<Scalars['String']['output']>;
|
|
10599
|
-
/** When this entry was last written: the recorded voxel edit's time, or for a state stored with the chunk, when the chunk's voxels were last written whole (Chunk.voxelsUpdatedAt; the chunk's last write when that is null). A client that also hears realtime voxel updates keeps, per voxel, the newer of this and a notification's time (a realtime edit is recorded at the time its notification carries, replication servers v0.46.0). Null when the read did not apply recorded edits.
|
|
10658
|
+
/** When this entry was last written: the recorded voxel edit's time, or for a state stored with the chunk, when the chunk's voxels were last written whole (Chunk.voxelsUpdatedAt; the chunk's last write when that is null). A client that also hears realtime voxel updates keeps, per voxel, the newer of this and a notification's time (a realtime edit is recorded at the time its notification carries, replication servers v0.46.0). Null when the read did not apply recorded edits. Application API v2.69.0; stored states dated by the whole-chunk write since v2.70.0. */
|
|
10600
10659
|
updatedAt: Maybe<Scalars['DateTime']['output']>;
|
|
10601
10660
|
/** Voxel position within the chunk (signed 16-bit per axis, app-defined). */
|
|
10602
10661
|
voxelCoord: VoxelCoordinates;
|