@crowdedkingdoms/crowdyjs 8.0.0 → 8.0.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/README.md +51 -14
- package/dist/client.d.ts +8 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +5 -0
- package/dist/crowdy-client.d.ts +7 -0
- package/dist/crowdy-client.d.ts.map +1 -1
- package/dist/crowdy-client.js +4 -0
- package/dist/domains/gameModel.d.ts +54 -3
- package/dist/domains/gameModel.d.ts.map +1 -1
- package/dist/domains/gameModel.js +67 -4
- package/dist/domains/host.d.ts +14 -3
- package/dist/domains/host.d.ts.map +1 -1
- package/dist/domains/host.js +17 -3
- package/dist/domains/organizations.d.ts +3 -3
- package/dist/domains/organizations.js +3 -3
- package/dist/domains/quotas.d.ts +1 -1
- package/dist/domains/quotas.js +1 -1
- package/dist/domains/udp.d.ts +28 -17
- package/dist/domains/udp.d.ts.map +1 -1
- package/dist/domains/udp.js +28 -17
- package/dist/generated/graphql.d.ts +289 -6
- package/dist/generated/graphql.d.ts.map +1 -1
- package/dist/generated/graphql.js +6 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/lb-cookie-store.d.ts +20 -0
- package/dist/lb-cookie-store.d.ts.map +1 -0
- package/dist/lb-cookie-store.js +73 -0
- package/dist/realtime.d.ts +20 -5
- package/dist/realtime.d.ts.map +1 -1
- package/dist/realtime.js +38 -0
- package/dist/types.d.ts +22 -6
- package/dist/types.d.ts.map +1 -1
- package/dist/world.d.ts +13 -8
- package/dist/world.d.ts.map +1 -1
- package/dist/world.js +13 -8
- package/package.json +6 -4
|
@@ -211,6 +211,8 @@ export type App = {
|
|
|
211
211
|
orgId: Scalars['BigInt']['output'];
|
|
212
212
|
/** OAuth-style redirect-URI allow-list for the portal handoff. A portal authorization code’s redirect_uri must match one of these by origin; empty disallows browser portal entry to this app. */
|
|
213
213
|
redirectUris: Array<Scalars['String']['output']>;
|
|
214
|
+
/** Reserved sustained egress in bytes/s for shared apps. 0 = free tier; >0 bypasses the ~1 MB/s rate limit and incurs a monthly reservation fee. */
|
|
215
|
+
reservedEgressBytesPerSec: Scalars['BigInt']['output'];
|
|
214
216
|
/** When runtimeStatus is not "active", why the runtime is gated: "free_allowance", "insufficient_funds", "spend_cap", or "subscription_lapsed". Null when active. */
|
|
215
217
|
runtimeDenialReason: Maybe<Scalars['String']['output']>;
|
|
216
218
|
/** Shared-environment runtime gate, mirrored to the game DB and enforced by game-api + Buddy: "active", "grace", "denied", or "suspended". */
|
|
@@ -409,7 +411,7 @@ export type AppSharedSubscription = {
|
|
|
409
411
|
export declare enum AppStatus {
|
|
410
412
|
/** Soft-deleted via archiveApp: retained but read-only and excluded from the marketplace. Reversible by setting status back to DRAFT or LIVE. */
|
|
411
413
|
Archived = "ARCHIVED",
|
|
412
|
-
/** Work-in-progress: invisible to non-members and never listed in the marketplace.
|
|
414
|
+
/** Work-in-progress: invisible to non-members and never listed in the marketplace. Selectable manually via updateApp; new apps default to LIVE. */
|
|
413
415
|
Draft = "DRAFT",
|
|
414
416
|
/** Published and purchasable/playable; eligible for the public marketplace when visibility=PUBLIC. */
|
|
415
417
|
Live = "LIVE"
|
|
@@ -432,6 +434,26 @@ export type AppTokenResponse = {
|
|
|
432
434
|
/** Opaque app-scoped gameplay token. Send to the target app's Game API as `Authorization: Bearer <token>` (and in the realtime `connectionParams`). Do NOT send it to the Management API for anything other than `me`/`refreshAppToken`. */
|
|
433
435
|
token: Scalars['String']['output'];
|
|
434
436
|
};
|
|
437
|
+
/** End-of-month egress projection for one shared app from linear extrapolation of calendar-month usage so far. */
|
|
438
|
+
export type AppUsageProjection = {
|
|
439
|
+
__typename?: 'AppUsageProjection';
|
|
440
|
+
/** App id (as a string). */
|
|
441
|
+
appId: Scalars['String']['output'];
|
|
442
|
+
/** Egress bytes recorded so far this calendar month (from app_monthly_egress). */
|
|
443
|
+
currentEgressBytes: Scalars['String']['output'];
|
|
444
|
+
/** Fractional UTC days elapsed since the calendar month started. */
|
|
445
|
+
daysElapsed: Scalars['Float']['output'];
|
|
446
|
+
/** Per-app free monthly egress allowance in bytes (5 decimal GB). */
|
|
447
|
+
freeAllowanceBytes: Scalars['String']['output'];
|
|
448
|
+
/** True when projected egress exceeds the free allowance, or null when insufficient data. */
|
|
449
|
+
onTrackToExceed: Maybe<Scalars['Boolean']['output']>;
|
|
450
|
+
/** Projected end-of-month egress bytes (linear extrapolation), or null when insufficient data. */
|
|
451
|
+
projectedBytes: Maybe<Scalars['String']['output']>;
|
|
452
|
+
/** Projected usage as a percentage of the free allowance, or null when insufficient data. */
|
|
453
|
+
projectedPctOfFree: Maybe<Scalars['Float']['output']>;
|
|
454
|
+
/** True when at least 3 days have elapsed in the month (projection is meaningful). */
|
|
455
|
+
sufficientData: Scalars['Boolean']['output'];
|
|
456
|
+
};
|
|
435
457
|
/** Aggregate byte totals for one app over the requested window. All *Bytes fields are string counters (may exceed Int range). */
|
|
436
458
|
export type AppUsageRollupRow = {
|
|
437
459
|
__typename?: 'AppUsageRollupRow';
|
|
@@ -560,6 +582,12 @@ export type AssignGroupToGridInput = {
|
|
|
560
582
|
/** Runtime permission key strings to grant to the group/role. Each must be a known key in runtime_permissions, unique, and at most 64 chars. */
|
|
561
583
|
permissionKeys: Array<Scalars['String']['input']>;
|
|
562
584
|
};
|
|
585
|
+
/** Whether the account has a password set. Does not reveal whether the email is registered. */
|
|
586
|
+
export type AuthMethodResult = {
|
|
587
|
+
__typename?: 'AuthMethodResult';
|
|
588
|
+
/** True when the account exists and has a password hash; false otherwise (including unknown emails). */
|
|
589
|
+
hasPassword: Scalars['Boolean']['output'];
|
|
590
|
+
};
|
|
563
591
|
/** Result of a successful login or registration: a session token plus the authenticated user. */
|
|
564
592
|
export type AuthResponse = {
|
|
565
593
|
__typename?: 'AuthResponse';
|
|
@@ -671,6 +699,11 @@ export type ChannelMessageNotification = {
|
|
|
671
699
|
/** The sending actor's UUID. */
|
|
672
700
|
uuid: Scalars['String']['output'];
|
|
673
701
|
};
|
|
702
|
+
/** Check whether an account has password sign-in enabled (email-first adaptive login). */
|
|
703
|
+
export type CheckAuthMethodInput = {
|
|
704
|
+
/** Email address to check. */
|
|
705
|
+
email: Scalars['String']['input'];
|
|
706
|
+
};
|
|
674
707
|
export type Checkout = {
|
|
675
708
|
__typename?: 'Checkout';
|
|
676
709
|
/** Charge amount in minor currency units (cents) of `currency`, as a BigInt decimal string; null when the purpose carries no amount. */
|
|
@@ -965,6 +998,8 @@ export type CksEnvironment = {
|
|
|
965
998
|
graphqlBillingTier: Maybe<Scalars['Int']['output']>;
|
|
966
999
|
/** Opaque environment UUID (cks_environments.id). */
|
|
967
1000
|
id: Scalars['String']['output'];
|
|
1001
|
+
/** True for the single platform-owned shared environment (slug 'shared') that hosts the shared game-api serving apps with deploymentTarget='shared'. Customer environments are always false. */
|
|
1002
|
+
isShared: Scalars['Boolean']['output'];
|
|
968
1003
|
loadBalancerCount: Scalars['Int']['output'];
|
|
969
1004
|
/** Release version actually observed running. Lags desiredEnvironmentVersion while a deploy is in progress. */
|
|
970
1005
|
observedEnvironmentVersion: Maybe<Scalars['String']['output']>;
|
|
@@ -1620,7 +1655,7 @@ export type CreateAppInput = {
|
|
|
1620
1655
|
orgId: Scalars['BigInt']['input'];
|
|
1621
1656
|
/** URL-safe slug (1-128 chars, lowercase letters, numbers and dashes only). Must be unique within the org. */
|
|
1622
1657
|
slug: Scalars['String']['input'];
|
|
1623
|
-
/** Optional initial lifecycle status. Defaults to
|
|
1658
|
+
/** Optional initial lifecycle status. Defaults to LIVE when omitted. */
|
|
1624
1659
|
status?: InputMaybe<AppStatus>;
|
|
1625
1660
|
/** Optional initial visibility. Defaults to PUBLIC when omitted. */
|
|
1626
1661
|
visibility?: InputMaybe<AppVisibility>;
|
|
@@ -1711,6 +1746,8 @@ export type CreateEnvironmentInput = {
|
|
|
1711
1746
|
gameApiMinServers?: InputMaybe<Scalars['Int']['input']>;
|
|
1712
1747
|
/** GraphQL billing tier level from graphqlBillingTiers. Defaults to tier 1 for dedicated environments. */
|
|
1713
1748
|
graphqlBillingTier?: InputMaybe<Scalars['Int']['input']>;
|
|
1749
|
+
/** Super-admin only: designate this as the single platform-owned shared environment (slug 'shared') that hosts the shared game-api for apps with deploymentTarget='shared'. Must be a dedicated environment. Customers cannot set this; the management API rejects it for non-super-admins. */
|
|
1750
|
+
isShared?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1714
1751
|
/** Number of Caddy load-balancer VMs in front of the game-api fleet (min 1). Required for dedicated; ignored for dev_single. */
|
|
1715
1752
|
loadBalancerCount?: InputMaybe<Scalars['Int']['input']>;
|
|
1716
1753
|
/** Organization id (BigInt) that will own and be billed for the environment. */
|
|
@@ -1926,6 +1963,8 @@ export type ExchangePortalCodeInput = {
|
|
|
1926
1963
|
/** An org's free shared app slot quota usage. */
|
|
1927
1964
|
export type FreeAppQuota = {
|
|
1928
1965
|
__typename?: 'FreeAppQuota';
|
|
1966
|
+
/** Shared apps with free-slot / reserved / paid credit status. */
|
|
1967
|
+
apps: Array<FreeAppQuotaApp>;
|
|
1929
1968
|
/** Organization id (BigInt). */
|
|
1930
1969
|
orgId: Scalars['BigInt']['output'];
|
|
1931
1970
|
/** Apps on a paid subscription (do not consume free slots). */
|
|
@@ -1934,9 +1973,29 @@ export type FreeAppQuota = {
|
|
|
1934
1973
|
quota: Scalars['Int']['output'];
|
|
1935
1974
|
/** Free slots still available (quota − usedFree). */
|
|
1936
1975
|
remainingFree: Scalars['Int']['output'];
|
|
1976
|
+
/** Apps with reserved throughput (premium; do not consume free slots). */
|
|
1977
|
+
reservedApps: Scalars['Int']['output'];
|
|
1937
1978
|
/** Free slots currently in use. */
|
|
1938
1979
|
usedFree: Scalars['Int']['output'];
|
|
1939
1980
|
};
|
|
1981
|
+
/** A shared app row in the org free-slot portfolio (free / reserved / paid credit). */
|
|
1982
|
+
export type FreeAppQuotaApp = {
|
|
1983
|
+
__typename?: 'FreeAppQuotaApp';
|
|
1984
|
+
/** App id (BigInt). */
|
|
1985
|
+
appId: Scalars['BigInt']['output'];
|
|
1986
|
+
/** True when the app consumes a free org slot (shared, not archived, no active subscription, no reserved throughput). */
|
|
1987
|
+
consumesFreeSlot: Scalars['Boolean']['output'];
|
|
1988
|
+
/** How this app is credited: 'free_slot', 'reserved', or 'paid_subscription'. */
|
|
1989
|
+
creditKind: Scalars['String']['output'];
|
|
1990
|
+
/** True when the app has an active legacy shared subscription. */
|
|
1991
|
+
hasActiveSubscription: Scalars['Boolean']['output'];
|
|
1992
|
+
/** App display name. */
|
|
1993
|
+
name: Scalars['String']['output'];
|
|
1994
|
+
/** Reserved egress throughput in bytes/sec (0 when none). */
|
|
1995
|
+
reservedEgressBytesPerSec: Scalars['BigInt']['output'];
|
|
1996
|
+
/** URL slug for the app. */
|
|
1997
|
+
slug: Scalars['String']['output'];
|
|
1998
|
+
};
|
|
1940
1999
|
/** Status of the recurring free-play window during which gameplay is open without entitlement. */
|
|
1941
2000
|
export type FreePlayWindowInfo = {
|
|
1942
2001
|
__typename?: 'FreePlayWindowInfo';
|
|
@@ -2935,6 +2994,12 @@ export type LodDataInput = {
|
|
|
2935
2994
|
/** LOD level (>= 0; 0 is the finest / highest detail). */
|
|
2936
2995
|
level: Scalars['Int']['input'];
|
|
2937
2996
|
};
|
|
2997
|
+
export type LoginUserInput = {
|
|
2998
|
+
/** Account email address. */
|
|
2999
|
+
email: Scalars['String']['input'];
|
|
3000
|
+
/** Account password (min 8 characters). */
|
|
3001
|
+
password: Scalars['String']['input'];
|
|
3002
|
+
};
|
|
2938
3003
|
/** Input for mintAppToken: directly mint an app-scoped gameplay token for the calling user (native/direct path, no browser redirect). */
|
|
2939
3004
|
export type MintAppTokenInput = {
|
|
2940
3005
|
/** Numeric id of the app to mint a confined gameplay token for. Free/open apps are auto-granted access; paid apps require an existing entitlement (else FORBIDDEN). */
|
|
@@ -2960,10 +3025,14 @@ export type Mutation = {
|
|
|
2960
3025
|
cancelSharedSubscription: AppSharedSubscription;
|
|
2961
3026
|
/** Captures an approved PayPal order after the hosted checkout redirects back, completes the checkout (wallet credit / access grant), and returns the updated Checkout. PayPal webhooks remain a backup for idempotent reconciliation if they arrive later. Requires an authenticated user who owns the checkout. */
|
|
2962
3027
|
capturePaypalCheckout: Checkout;
|
|
3028
|
+
/** Changes the authenticated user's password after verifying the current password. Requires a valid session token. Returns true on success; throws if the current password is wrong. Existing sessions are not revoked. */
|
|
3029
|
+
changePassword: Scalars['Boolean']['output'];
|
|
2963
3030
|
/** 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 game 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. */
|
|
2964
3031
|
claimFreeAppAccess: AppUserAccess;
|
|
2965
3032
|
/** Complete a magic-link sign-in with the emailed token; returns a session AuthResponse. Public (the token authorizes the call); throws if invalid/expired/used. */
|
|
2966
3033
|
completeLoginLink: AuthResponse;
|
|
3034
|
+
/** Confirms a user email address using the token from the confirmation email (also enables password sign-in for the account). Returns true on success, false if the token is invalid or expired. Public (the token authorizes the call). */
|
|
3035
|
+
confirmEmail: Scalars['Boolean']['output'];
|
|
2967
3036
|
/** Open the UDP proxy session for this game token (idempotent: returns the existing status if one is already open). Binds a socket and selects the game server with the fewest clients on first open. Optional: send mutations and udpNotifications also create a session lazily when none exists. To force a fresh socket, call disconnectUdpProxy first. */
|
|
2968
3037
|
connectUdpProxy: UdpProxyConnectionStatus;
|
|
2969
3038
|
/** 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 game API so Buddy sees the new tier. Does NOT grant the tier to any user. */
|
|
@@ -3042,8 +3111,16 @@ export type Mutation = {
|
|
|
3042
3111
|
gameModelDeleteAutomation: Scalars['Boolean']['output'];
|
|
3043
3112
|
/** Delete an automation event trigger by id. Requires app-admin ('manage_apps'). Returns true if one was deleted. */
|
|
3044
3113
|
gameModelDeleteAutomationTrigger: Scalars['Boolean']['output'];
|
|
3114
|
+
/** Delete a container instance. Cascades its instance properties and any edges connected to it. Allowed for an app admin or the container owner. Requires a valid token. DESTRUCTIVE. Returns true if a container was deleted. */
|
|
3115
|
+
gameModelDeleteContainer: Scalars['Boolean']['output'];
|
|
3116
|
+
/** Delete a container type. Also deletes its property definitions. Refuses if live containers of that type exist, or if functions are bound to it — delete those first. Requires app-admin ('manage_apps'). DESTRUCTIVE. Returns true if a type was deleted. */
|
|
3117
|
+
gameModelDeleteContainerType: Scalars['Boolean']['output'];
|
|
3118
|
+
/** Delete a directed relationship edge between two containers. Allowed for an app admin or the owner of the source (from) container. Requires a valid token. DESTRUCTIVE. Returns true if an edge was deleted. */
|
|
3119
|
+
gameModelDeleteEdge: Scalars['Boolean']['output'];
|
|
3045
3120
|
/** Delete a studio-defined function by name. Requires app-admin ('manage_apps'). DESTRUCTIVE. Returns true if a function was deleted. */
|
|
3046
3121
|
gameModelDeleteFunction: Scalars['Boolean']['output'];
|
|
3122
|
+
/** Delete a property definition from a container type. Does not remove instance property values already stored on containers. Requires app-admin ('manage_apps'). DESTRUCTIVE. Returns true if a definition was deleted. */
|
|
3123
|
+
gameModelDeletePropertyDef: Scalars['Boolean']['output'];
|
|
3047
3124
|
/** Grant a feature key to an access tier, so users on that tier satisfy tier_feature authority checks for it. Requires app-admin ('manage_apps'). */
|
|
3048
3125
|
gameModelGrantTierFeature: GmTierFeature;
|
|
3049
3126
|
/** Invoke a studio-defined function against a 'self' container with JSON params. The server enforces the function's invoke policy (authority rule tree: owner_of_self / is_host / is_current_turn / is_participant / tier_feature / group_permission / grid_permission / condition), evaluates its expressions, atomically applies its declared property mutations, logs an event, and returns the result (return value + mutations applied, or success=false with an error message). This is the primary, safe way for players to mutate game state. Requires a valid token; only player-scope functions are invocable here. */
|
|
@@ -3098,6 +3175,8 @@ export type Mutation = {
|
|
|
3098
3175
|
linkAppToEnvironment: App;
|
|
3099
3176
|
/** Link an additional federated identity (from a socialLoginStart callback) to the signed-in account. Requires a session token; throws if the identity is already linked to another account. */
|
|
3100
3177
|
linkIdentity: UserIdentity;
|
|
3178
|
+
/** 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. */
|
|
3179
|
+
login: AuthResponse;
|
|
3101
3180
|
/** Single-device logout: revokes the game token that authenticated this request by deleting its game_tokens row. Returns true if a token was revoked, false if the request had no game token. Other devices/tokens are unaffected (use the Management API to revoke all devices). After this, the bearer token is rejected and any open UDP proxy session will no longer authorize new traffic. */
|
|
3102
3181
|
logout: Scalars['Boolean']['output'];
|
|
3103
3182
|
/** Ends every active session for the authenticated user (deletes all their game_tokens and records revocations). Requires a valid session token. */
|
|
@@ -3118,6 +3197,8 @@ export type Mutation = {
|
|
|
3118
3197
|
redeployEnvironment: CksEnvironmentChangeOrder;
|
|
3119
3198
|
/** 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 bouncing back through the Overworld. Allowed for app-scoped tokens; re-checks entitlement. */
|
|
3120
3199
|
refreshAppToken: AppTokenResponse;
|
|
3200
|
+
/** 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>`). If an account already exists for the email (e.g. created via magic link/social), the password is attached pending email confirmation and no session is returned (throws CONFLICT). Public. */
|
|
3201
|
+
register: AuthResponse;
|
|
3121
3202
|
/** Remove a member from a channel. Requires the 'manage_members' channel permission, except that any member may remove themselves. Notifies Buddy to stop routing to the removed member. Returns true if a membership was removed. */
|
|
3122
3203
|
removeChannelMember: Scalars['Boolean']['output'];
|
|
3123
3204
|
/** Removes a user from an organization. Requires the 'manage_members' permission on the org (super admins bypass). DESTRUCTIVE: revokes the user's membership and role assignments in that org. Returns false if the user was not a member. */
|
|
@@ -3128,10 +3209,16 @@ export type Mutation = {
|
|
|
3128
3209
|
removeTeamMember: Scalars['Boolean']['output'];
|
|
3129
3210
|
/** Passwordless: email a one-time magic sign-in link to the address (creates the account on first sign-in). Always reports sent=true (no account enumeration). Public. */
|
|
3130
3211
|
requestLoginLink: RequestLoginLinkResult;
|
|
3212
|
+
/** Starts the password-reset flow by emailing a reset link to the address. Always returns true regardless of whether the email exists (prevents account enumeration). The reset link is also the ownership-proven way an existing passwordless account adds a password. Public. */
|
|
3213
|
+
requestPasswordReset: Scalars['Boolean']['output'];
|
|
3131
3214
|
/** Request to join a request-only channel (creates a pending membership a manager can approve via addChannelMember). Behaves identically to joinChannel; named for request-policy UIs. */
|
|
3132
3215
|
requestToJoinChannel: GroupMember;
|
|
3133
3216
|
/** Request to join a request-only team (creates a pending membership a manager can approve via addTeamMember). Behaves identically to joinTeam; named for request-policy UIs. */
|
|
3134
3217
|
requestToJoinTeam: GroupMember;
|
|
3218
|
+
/** Re-sends the email-confirmation link. Always returns true regardless of whether the account exists or is already confirmed (prevents enumeration); the email is only sent for existing unconfirmed accounts. Public. */
|
|
3219
|
+
resendConfirmationEmail: Scalars['Boolean']['output'];
|
|
3220
|
+
/** Completes a password reset using the reset token and a new password. Returns true on success; throws if the token is invalid or expired. Public (the token authorizes the call). Existing sessions are not revoked. */
|
|
3221
|
+
resetPassword: Scalars['Boolean']['output'];
|
|
3135
3222
|
/** SSH-restarts the Buddy systemd service on the active UDP runtime VM. Symptom relief when server_status heartbeat is stale (see CksBuddyHealth.isStale); does not replace cks-udp-api pool fixes. Requires the 'manage_environments' org permission. */
|
|
3136
3223
|
restartEnvironmentServices: CksEnvironmentChangeOrder;
|
|
3137
3224
|
/** Resumes a payment-suspended environment, queuing a change order and moving billingStatus to 'resume_queued' (and restarting runtime once it settles). Only valid when billingStatus is grace, suspension_queued, suspended, or resume_failed; otherwise fails. Resumes billable hourly charges. Requires the 'manage_environments' org permission. */
|
|
@@ -3148,7 +3235,7 @@ export type Mutation = {
|
|
|
3148
3235
|
revokeOrgToken: Scalars['Boolean']['output'];
|
|
3149
3236
|
/** Reverts every voxel edit made by `userId` in `appId` between `from` and `to`, returning one RollbackVoxelEventResult per affected voxel (`applied` tells you whether each was actually changed). DEFAULTS to dryRun=true, which only PREVIEWS the planned reversions without writing; pass dryRun=false to actually apply them (DESTRUCTIVE — mutates world state). Requires a valid bearer token AND the `manage_apps` permission on the org that owns `appId` (super admins bypass). */
|
|
3150
3237
|
rollbackVoxelUpdates: Array<RollbackVoxelEventResult>;
|
|
3151
|
-
/** Send an actor (player/NPC) state update for spatial replication to nearby chunks. Requires a bearer game token; opens a UDP proxy session automatically if none exists. Returns Boolean! that is true only when the datagram was ACCEPTED FOR SENDING to the game server — it does NOT confirm the world applied the update.
|
|
3238
|
+
/** Send an actor (player/NPC) state update for spatial replication to nearby chunks. Requires a bearer game token; opens a UDP proxy session automatically if none exists. Returns Boolean! that is true only when the datagram was ACCEPTED FOR SENDING to the game server — it does NOT confirm the world applied the update. There is NO separate per-request success response: the game server fans the update out to every client in the target chunk INCLUDING the sender, so you observe your own applied update as an ActorUpdateNotification carrying the same sequenceNumber (ActorUpdateResponse is legacy and is never emitted). Failures arrive ASYNCHRONOUSLY as a GenericErrorResponse; both are correlated by the request sequenceNumber (correlation only — not an idempotency key; the server does not dedupe replays). Subscribe to udpNotifications before sending so the self-notification/error is not missed. */
|
|
3152
3239
|
sendActorUpdate: Scalars['Boolean']['output'];
|
|
3153
3240
|
/** Send a spatial voice/audio packet, fanned out to nearby actors as a ClientAudioNotification. Requires a bearer game token; voice may additionally be gated by a runtime/grid permission for the region — if the caller lacks it the game server responds asynchronously with a GenericErrorResponse (errorCode UNAUTHORIZED). Opens a UDP proxy session automatically if none exists. Returns Boolean! that is true only when the datagram was ACCEPTED FOR SENDING — NOT that it was delivered; the sender receives no echo, only errors (GenericErrorResponse, correlated by sequenceNumber) on udpNotifications. sequenceNumber is correlation only, not an idempotency key. */
|
|
3154
3241
|
sendAudioPacket: Scalars['Boolean']['output'];
|
|
@@ -3160,12 +3247,14 @@ export type Mutation = {
|
|
|
3160
3247
|
sendSingleActorMessage: Scalars['Boolean']['output'];
|
|
3161
3248
|
/** Send a spatial text/chat packet, fanned out to nearby actors as a ClientTextNotification. Requires a bearer game token; opens a UDP proxy session automatically if none exists. Returns Boolean! that is true only when the datagram was ACCEPTED FOR SENDING to the game server — NOT confirmation of delivery. The sender receives no echo; failures arrive ASYNCHRONOUSLY as GenericErrorResponse on udpNotifications, correlated by the request sequenceNumber (correlation only — not an idempotency key; the server does not dedupe replays). */
|
|
3162
3249
|
sendTextPacket: Scalars['Boolean']['output'];
|
|
3163
|
-
/** Send a single voxel (block) update for spatial replication to nearby chunks. Requires a bearer game token; opens a UDP proxy session automatically if none exists. Returns Boolean! that is true only when the datagram was ACCEPTED FOR SENDING to the game server — NOT confirmation that the world applied the change.
|
|
3250
|
+
/** Send a single voxel (block) update for spatial replication to nearby chunks. Requires a bearer game token; opens a UDP proxy session automatically if none exists. Returns Boolean! that is true only when the datagram was ACCEPTED FOR SENDING to the game server — NOT confirmation that the world applied the change. There is NO separate per-request success response: the change fans out to nearby clients (the sender included) as a VoxelUpdateNotification carrying the same sequenceNumber (VoxelUpdateResponse is legacy and is never emitted). Failures arrive ASYNCHRONOUSLY as a GenericErrorResponse; both are correlated by the request sequenceNumber (correlation only — not an idempotency key; the server does not dedupe replays). */
|
|
3164
3251
|
sendVoxelUpdate: Scalars['Boolean']['output'];
|
|
3165
3252
|
/** Creates or updates an app's monthly spend cap (idempotent upsert keyed by org + app) and returns the resulting budget. This only records the cap used to monitor/limit overspend; it does not move money, charge a card, or alter the wallet balance. Requires the 'manage_billing' app permission. */
|
|
3166
3253
|
setAppBudget: AppBudget;
|
|
3167
3254
|
/** Register/update an app's portal client settings (redirect_uris, client_type, launch_url). Requires manage_apps on the app and a SESSION token. */
|
|
3168
3255
|
setAppClientSettings: PortalConsentState;
|
|
3256
|
+
/** Reserve sustained egress throughput for a shared app (bypasses the ~1 MB/s free-tier rate limit). Billed at $3/MB/s/month from the org wallet; upgrades are prorated for the current month. Requires 'manage_billing' on the app's org. */
|
|
3257
|
+
setAppReservedThroughput: SetAppReservedThroughputResult;
|
|
3169
3258
|
/** 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. */
|
|
3170
3259
|
setAppSpendCaps: AppRuntimeState;
|
|
3171
3260
|
/** Super admin only (also requires the management API to be enabled for this deployment). Overrides an app visibility platform-wide, e.g. to take down (PRIVATE/UNLISTED) or relist (PUBLIC) an app. Throws ForbiddenException for non-super-admins or when management APIs are disabled. Throws if the app id does not exist. */
|
|
@@ -3288,12 +3377,19 @@ export type MutationCapturePaypalCheckoutArgs = {
|
|
|
3288
3377
|
idempotencyKey?: InputMaybe<Scalars['String']['input']>;
|
|
3289
3378
|
orderId: Scalars['String']['input'];
|
|
3290
3379
|
};
|
|
3380
|
+
export type MutationChangePasswordArgs = {
|
|
3381
|
+
currentPassword: Scalars['String']['input'];
|
|
3382
|
+
newPassword: Scalars['String']['input'];
|
|
3383
|
+
};
|
|
3291
3384
|
export type MutationClaimFreeAppAccessArgs = {
|
|
3292
3385
|
appId: Scalars['BigInt']['input'];
|
|
3293
3386
|
};
|
|
3294
3387
|
export type MutationCompleteLoginLinkArgs = {
|
|
3295
3388
|
input: CompleteLoginLinkInput;
|
|
3296
3389
|
};
|
|
3390
|
+
export type MutationConfirmEmailArgs = {
|
|
3391
|
+
token: Scalars['String']['input'];
|
|
3392
|
+
};
|
|
3297
3393
|
export type MutationCreateAccessTierArgs = {
|
|
3298
3394
|
input: CreateAccessTierInput;
|
|
3299
3395
|
};
|
|
@@ -3410,10 +3506,27 @@ export type MutationGameModelDeleteAutomationTriggerArgs = {
|
|
|
3410
3506
|
appId: Scalars['BigInt']['input'];
|
|
3411
3507
|
triggerId: Scalars['String']['input'];
|
|
3412
3508
|
};
|
|
3509
|
+
export type MutationGameModelDeleteContainerArgs = {
|
|
3510
|
+
appId: Scalars['BigInt']['input'];
|
|
3511
|
+
containerId: Scalars['String']['input'];
|
|
3512
|
+
};
|
|
3513
|
+
export type MutationGameModelDeleteContainerTypeArgs = {
|
|
3514
|
+
appId: Scalars['BigInt']['input'];
|
|
3515
|
+
typeName: Scalars['String']['input'];
|
|
3516
|
+
};
|
|
3517
|
+
export type MutationGameModelDeleteEdgeArgs = {
|
|
3518
|
+
appId: Scalars['BigInt']['input'];
|
|
3519
|
+
edgeId: Scalars['String']['input'];
|
|
3520
|
+
};
|
|
3413
3521
|
export type MutationGameModelDeleteFunctionArgs = {
|
|
3414
3522
|
appId: Scalars['BigInt']['input'];
|
|
3415
3523
|
name: Scalars['String']['input'];
|
|
3416
3524
|
};
|
|
3525
|
+
export type MutationGameModelDeletePropertyDefArgs = {
|
|
3526
|
+
appId: Scalars['BigInt']['input'];
|
|
3527
|
+
containerTypeName: Scalars['String']['input'];
|
|
3528
|
+
key: Scalars['String']['input'];
|
|
3529
|
+
};
|
|
3417
3530
|
export type MutationGameModelGrantTierFeatureArgs = {
|
|
3418
3531
|
input: GrantTierFeatureInput;
|
|
3419
3532
|
};
|
|
@@ -3499,6 +3612,9 @@ export type MutationLinkAppToEnvironmentArgs = {
|
|
|
3499
3612
|
export type MutationLinkIdentityArgs = {
|
|
3500
3613
|
input: LinkIdentityInput;
|
|
3501
3614
|
};
|
|
3615
|
+
export type MutationLoginArgs = {
|
|
3616
|
+
loginUserInput: LoginUserInput;
|
|
3617
|
+
};
|
|
3502
3618
|
export type MutationMintAppTokenArgs = {
|
|
3503
3619
|
input: MintAppTokenInput;
|
|
3504
3620
|
};
|
|
@@ -3531,6 +3647,9 @@ export type MutationPutCpSecretArgs = {
|
|
|
3531
3647
|
export type MutationRedeployEnvironmentArgs = {
|
|
3532
3648
|
input: RedeployEnvironmentInput;
|
|
3533
3649
|
};
|
|
3650
|
+
export type MutationRegisterArgs = {
|
|
3651
|
+
registerUserInput: RegisterUserInput;
|
|
3652
|
+
};
|
|
3534
3653
|
export type MutationRemoveChannelMemberArgs = {
|
|
3535
3654
|
groupId: Scalars['BigInt']['input'];
|
|
3536
3655
|
userId: Scalars['BigInt']['input'];
|
|
@@ -3552,12 +3671,21 @@ export type MutationRemoveTeamMemberArgs = {
|
|
|
3552
3671
|
export type MutationRequestLoginLinkArgs = {
|
|
3553
3672
|
input: RequestLoginLinkInput;
|
|
3554
3673
|
};
|
|
3674
|
+
export type MutationRequestPasswordResetArgs = {
|
|
3675
|
+
email: Scalars['String']['input'];
|
|
3676
|
+
};
|
|
3555
3677
|
export type MutationRequestToJoinChannelArgs = {
|
|
3556
3678
|
groupId: Scalars['BigInt']['input'];
|
|
3557
3679
|
};
|
|
3558
3680
|
export type MutationRequestToJoinTeamArgs = {
|
|
3559
3681
|
groupId: Scalars['BigInt']['input'];
|
|
3560
3682
|
};
|
|
3683
|
+
export type MutationResendConfirmationEmailArgs = {
|
|
3684
|
+
email: Scalars['String']['input'];
|
|
3685
|
+
};
|
|
3686
|
+
export type MutationResetPasswordArgs = {
|
|
3687
|
+
resetPasswordInput: ResetPasswordInput;
|
|
3688
|
+
};
|
|
3561
3689
|
export type MutationRestartEnvironmentServicesArgs = {
|
|
3562
3690
|
input: RestartEnvironmentServicesInput;
|
|
3563
3691
|
};
|
|
@@ -3615,6 +3743,10 @@ export type MutationSetAppBudgetArgs = {
|
|
|
3615
3743
|
export type MutationSetAppClientSettingsArgs = {
|
|
3616
3744
|
input: SetAppClientSettingsInput;
|
|
3617
3745
|
};
|
|
3746
|
+
export type MutationSetAppReservedThroughputArgs = {
|
|
3747
|
+
idempotencyKey?: InputMaybe<Scalars['String']['input']>;
|
|
3748
|
+
input: SetAppReservedThroughputInput;
|
|
3749
|
+
};
|
|
3618
3750
|
export type MutationSetAppSpendCapsArgs = {
|
|
3619
3751
|
appId: Scalars['BigInt']['input'];
|
|
3620
3752
|
dailyLimitCents?: InputMaybe<Scalars['BigInt']['input']>;
|
|
@@ -3806,6 +3938,20 @@ export type NotificationArgInput = {
|
|
|
3806
3938
|
/** Argument name (kind-specific: chunk_x, channel_id, payload, target_uuid, ...). */
|
|
3807
3939
|
name: Scalars['String']['input'];
|
|
3808
3940
|
};
|
|
3941
|
+
/** Per-app projection row within an org rollup. */
|
|
3942
|
+
export type OrgAppUsageProjectionRow = {
|
|
3943
|
+
__typename?: 'OrgAppUsageProjectionRow';
|
|
3944
|
+
/** App id (as a string). */
|
|
3945
|
+
appId: Scalars['String']['output'];
|
|
3946
|
+
/** App display name. */
|
|
3947
|
+
appName: Scalars['String']['output'];
|
|
3948
|
+
/** Egress bytes so far this calendar month. */
|
|
3949
|
+
currentEgressBytes: Scalars['String']['output'];
|
|
3950
|
+
/** True when this app is on track to exceed its free allowance, or null when insufficient data. */
|
|
3951
|
+
onTrackToExceed: Maybe<Scalars['Boolean']['output']>;
|
|
3952
|
+
/** Projected end-of-month egress bytes, or null when insufficient data. */
|
|
3953
|
+
projectedBytes: Maybe<Scalars['String']['output']>;
|
|
3954
|
+
};
|
|
3809
3955
|
/** Org off-session auto-billing configuration. */
|
|
3810
3956
|
export type OrgAutoBilling = {
|
|
3811
3957
|
__typename?: 'OrgAutoBilling';
|
|
@@ -3924,6 +4070,40 @@ export type OrgTokenWithSecret = {
|
|
|
3924
4070
|
/** The plaintext token. Save it now; it is not stored. */
|
|
3925
4071
|
token: Scalars['String']['output'];
|
|
3926
4072
|
};
|
|
4073
|
+
/** Org-level rollup of per-app monthly egress projections for all shared apps. */
|
|
4074
|
+
export type OrgUsageProjection = {
|
|
4075
|
+
__typename?: 'OrgUsageProjection';
|
|
4076
|
+
/** Per-app projection breakdown. */
|
|
4077
|
+
apps: Array<OrgAppUsageProjectionRow>;
|
|
4078
|
+
/** Fractional UTC days elapsed since the calendar month started. */
|
|
4079
|
+
daysElapsed: Scalars['Float']['output'];
|
|
4080
|
+
/** True when any shared app is on track to exceed its free allowance. */
|
|
4081
|
+
onTrackToExceedAny: Scalars['Boolean']['output'];
|
|
4082
|
+
/** True when at least 3 days have elapsed in the month (projection is meaningful). */
|
|
4083
|
+
sufficientData: Scalars['Boolean']['output'];
|
|
4084
|
+
/** True when org total projected egress exceeds the combined free tier — suggest reserved throughput. */
|
|
4085
|
+
suggestReservedThroughput: Scalars['Boolean']['output'];
|
|
4086
|
+
/** Total free monthly egress allowance across all shared apps in the org (apps × 5 GB). */
|
|
4087
|
+
totalFreeAllowanceBytes: Scalars['String']['output'];
|
|
4088
|
+
/** Sum of projected end-of-month egress across shared apps, or null when insufficient data. */
|
|
4089
|
+
totalProjectedBytes: Maybe<Scalars['String']['output']>;
|
|
4090
|
+
};
|
|
4091
|
+
/** Org-level rollup of replication/GraphQL byte totals and GraphQL op counts across all apps in the organization for the time window. */
|
|
4092
|
+
export type OrgUsageSummary = {
|
|
4093
|
+
__typename?: 'OrgUsageSummary';
|
|
4094
|
+
/** Total GraphQL bytes received across all org apps (string counter). */
|
|
4095
|
+
graphqlRecvBytes: Scalars['String']['output'];
|
|
4096
|
+
/** Total GraphQL bytes sent across all org apps (string counter). */
|
|
4097
|
+
graphqlSendBytes: Scalars['String']['output'];
|
|
4098
|
+
/** Organization id (as a string). */
|
|
4099
|
+
orgId: Scalars['String']['output'];
|
|
4100
|
+
/** Total replication bytes received across all org apps (string counter). */
|
|
4101
|
+
replicationRecvBytes: Scalars['String']['output'];
|
|
4102
|
+
/** Total replication bytes sent across all org apps (string counter). */
|
|
4103
|
+
replicationSendBytes: Scalars['String']['output'];
|
|
4104
|
+
/** Total GraphQL operations (send + recv) across all org apps (string counter). */
|
|
4105
|
+
totalOps: Scalars['String']['output'];
|
|
4106
|
+
};
|
|
3927
4107
|
export type OrgWallet = {
|
|
3928
4108
|
__typename?: 'OrgWallet';
|
|
3929
4109
|
/** Current wallet balance in minor currency units (cents) of `currency`, as a BigInt decimal string. May be negative if usage was charged against an empty wallet. */
|
|
@@ -4127,6 +4307,8 @@ export type Query = {
|
|
|
4127
4307
|
actors: Array<Actor>;
|
|
4128
4308
|
/** Relay-style cursor-paginated version of `actors`: lists actors owned by the authenticated user, optionally narrowed by `filter` (appId, avatarId, uuid, chunk). Page forward with `first` (default 50, max 200) and `after` (an opaque cursor from a previous page’s `pageInfo.endCursor`); `totalCount` is the full number of matching actors. Requires a valid game token; only the caller’s own actors are returned (full state included). */
|
|
4129
4309
|
actorsConnection: ActorsConnection;
|
|
4310
|
+
/** Convenience for UI: returns true when the authenticated caller is the currently elected host for the given app (same election as gameHost), otherwise false (including when no host is elected). Not authoritative for server-side mutations — use gameModelInvoke's is_host policy for that. Requires a valid bearer game token (same auth as gameHost). */
|
|
4311
|
+
amIGameHost: Scalars['Boolean']['output'];
|
|
4130
4312
|
/** Fetch a single app by its numeric id. Requires authentication (any signed-in user); does NOT enforce org/app permissions, so it can read apps the caller does not own, of any visibility/status. Returns null if the id does not exist. Prefer appBySlug for slug-based marketplace lookups. */
|
|
4131
4313
|
app: Maybe<App>;
|
|
4132
4314
|
/** Public listing of an app's access tiers (the free/paid bundles of runtime permissions), ordered by tierOrder ascending. PUBLIC: no authentication required. Powers the marketplace app detail / pricing page. Includes tiers of all statuses; inspect AppAccessTier.status to skip archived tiers. */
|
|
@@ -4145,6 +4327,8 @@ export type Query = {
|
|
|
4145
4327
|
appRuntimeState: AppRuntimeState;
|
|
4146
4328
|
/** An app's paid shared-environment subscription, or null when it has none (e.g. unpublished or on the free quota). Caller must be a member of the app's org. */
|
|
4147
4329
|
appSharedSubscription: Maybe<AppSharedSubscription>;
|
|
4330
|
+
/** Linear end-of-month egress projection for one shared app from calendar-month usage so far. Requires at least 3 elapsed days in the month before returning projected values. Requires the 'view_usage' org permission. */
|
|
4331
|
+
appUsageProjection: AppUsageProjection;
|
|
4148
4332
|
/** Replication and GraphQL byte totals plus the top GraphQL operations for one app over the time range. Read-only reporting; the app must be linked to an environment in the org. Requires the 'view_usage' org permission. */
|
|
4149
4333
|
appUsageSummary: AppUsageSummary;
|
|
4150
4334
|
/** Admin view of the user access records for an app (who has been granted/revoked access and on which tier). Requires the 'manage_access_tiers' permission on the app; super admins bypass. Ordered by most recently updated. Paginated via limit/offset. */
|
|
@@ -4179,6 +4363,8 @@ export type Query = {
|
|
|
4179
4363
|
channelRoles: Array<GroupRole>;
|
|
4180
4364
|
/** List all active channels in an app (not just the caller's). */
|
|
4181
4365
|
channels: Array<Group>;
|
|
4366
|
+
/** Email-first adaptive login: check whether the account has password sign-in enabled. Public; does not reveal whether the email is registered. */
|
|
4367
|
+
checkAuthMethod: AuthMethodResult;
|
|
4182
4368
|
/** Cross-tenant payments audit across all users, orgs, and apps (newest first), with optional filtering. Restricted to super admins; requests from non-super-admins are rejected. For a caller's own history use `myCheckouts` instead. */
|
|
4183
4369
|
checkouts: CheckoutsPage;
|
|
4184
4370
|
/** Cross-tenant payments audit across all users, orgs, and apps (newest first), with optional filtering. Restricted to super admins; requests from non-super-admins are rejected. For a caller's own history use `myCheckoutsConnection` instead. Relay cursor connection; prefer this over the offset-based checkouts. */
|
|
@@ -4353,6 +4539,10 @@ export type Query = {
|
|
|
4353
4539
|
orgTokens: Array<OrgToken>;
|
|
4354
4540
|
/** Aggregate replication/GraphQL byte totals per environment across the org for the time window. Read-only reporting. Requires the 'view_usage' org permission. */
|
|
4355
4541
|
orgUsageByEnvironment: Array<EnvironmentUsageRollupRow>;
|
|
4542
|
+
/** Org rollup of per-app monthly egress projections for all shared apps, with upgrade prompts when on track to exceed free tier. Requires the 'view_usage' org permission. */
|
|
4543
|
+
orgUsageProjection: OrgUsageProjection;
|
|
4544
|
+
/** Org-level rollup of replication/GraphQL byte totals and GraphQL op counts across all apps in the organization for the time window. Read-only reporting. Requires the 'view_usage' org permission. */
|
|
4545
|
+
orgUsageSummary: OrgUsageSummary;
|
|
4356
4546
|
/** Fetches an organization by id (BigInt as string). Requires a valid session token. Returns null if no such organization exists. */
|
|
4357
4547
|
organization: Maybe<Organization>;
|
|
4358
4548
|
/** Fetches an organization by its unique URL slug. Requires a valid session token. Returns null if not found. Use this when you only have the slug; otherwise prefer organization(id). */
|
|
@@ -4361,7 +4551,7 @@ export type Query = {
|
|
|
4361
4551
|
paymentEvents: PaymentEventsPage;
|
|
4362
4552
|
/** Audit log of inbound payment-provider webhook events (used for idempotent reconciliation of checkouts), newest first. Restricted to super admins; requests from non-super-admins are rejected. Relay cursor connection; prefer this over the offset-based paymentEvents. */
|
|
4363
4553
|
paymentEventsConnection: PaymentEventsConnection;
|
|
4364
|
-
/** Public platform discovery. Returns the shared game-api URL clients use for shared-environment apps. No auth required. */
|
|
4554
|
+
/** Public platform discovery. Returns the shared game-api URL clients use for shared-environment apps (served by the platform shared environment). No auth required. */
|
|
4365
4555
|
platformConfig: PlatformConfig;
|
|
4366
4556
|
/** Live concurrent players for the org vs its all-time peak, a percentile comparison against other studios, and the site-wide total. Requires the 'view_usage' org permission. */
|
|
4367
4557
|
playerPulse: PlayerPulse;
|
|
@@ -4427,6 +4617,9 @@ export type QueryActorsConnectionArgs = {
|
|
|
4427
4617
|
filter?: InputMaybe<ActorFilterInput>;
|
|
4428
4618
|
first?: InputMaybe<Scalars['Int']['input']>;
|
|
4429
4619
|
};
|
|
4620
|
+
export type QueryAmIGameHostArgs = {
|
|
4621
|
+
appId: Scalars['BigInt']['input'];
|
|
4622
|
+
};
|
|
4430
4623
|
export type QueryAppArgs = {
|
|
4431
4624
|
appId: Scalars['BigInt']['input'];
|
|
4432
4625
|
};
|
|
@@ -4459,6 +4652,10 @@ export type QueryAppRuntimeStateArgs = {
|
|
|
4459
4652
|
export type QueryAppSharedSubscriptionArgs = {
|
|
4460
4653
|
appId: Scalars['BigInt']['input'];
|
|
4461
4654
|
};
|
|
4655
|
+
export type QueryAppUsageProjectionArgs = {
|
|
4656
|
+
appId: Scalars['BigInt']['input'];
|
|
4657
|
+
orgId: Scalars['BigInt']['input'];
|
|
4658
|
+
};
|
|
4462
4659
|
export type QueryAppUsageSummaryArgs = {
|
|
4463
4660
|
appId: Scalars['BigInt']['input'];
|
|
4464
4661
|
operationLimit?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -4519,6 +4716,9 @@ export type QueryChannelRolesArgs = {
|
|
|
4519
4716
|
export type QueryChannelsArgs = {
|
|
4520
4717
|
appId: Scalars['BigInt']['input'];
|
|
4521
4718
|
};
|
|
4719
|
+
export type QueryCheckAuthMethodArgs = {
|
|
4720
|
+
input: CheckAuthMethodInput;
|
|
4721
|
+
};
|
|
4522
4722
|
export type QueryCheckoutsArgs = {
|
|
4523
4723
|
filter?: InputMaybe<CheckoutFilterInput>;
|
|
4524
4724
|
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -4779,6 +4979,13 @@ export type QueryOrgUsageByEnvironmentArgs = {
|
|
|
4779
4979
|
orgId: Scalars['BigInt']['input'];
|
|
4780
4980
|
since: Scalars['DateTime']['input'];
|
|
4781
4981
|
};
|
|
4982
|
+
export type QueryOrgUsageProjectionArgs = {
|
|
4983
|
+
orgId: Scalars['BigInt']['input'];
|
|
4984
|
+
};
|
|
4985
|
+
export type QueryOrgUsageSummaryArgs = {
|
|
4986
|
+
orgId: Scalars['BigInt']['input'];
|
|
4987
|
+
since?: InputMaybe<Scalars['DateTime']['input']>;
|
|
4988
|
+
};
|
|
4782
4989
|
export type QueryOrganizationArgs = {
|
|
4783
4990
|
id: Scalars['BigInt']['input'];
|
|
4784
4991
|
};
|
|
@@ -4897,6 +5104,14 @@ export type RedeployEnvironmentInput = {
|
|
|
4897
5104
|
/** Target environment version. When omitted, redeploys to the latest available version for the class. Must be available, deployable by this class, and not older than the current version (forward-only — no rollback). */
|
|
4898
5105
|
version?: InputMaybe<Scalars['String']['input']>;
|
|
4899
5106
|
};
|
|
5107
|
+
export type RegisterUserInput = {
|
|
5108
|
+
/** Email for the new account; the confirmation email is sent here. */
|
|
5109
|
+
email: Scalars['String']['input'];
|
|
5110
|
+
/** Optional initial public gamertag (min 3 characters). Can be set later via updateGamertag. */
|
|
5111
|
+
gamertag?: InputMaybe<Scalars['String']['input']>;
|
|
5112
|
+
/** Password for the new account (min 8 characters). */
|
|
5113
|
+
password: Scalars['String']['input'];
|
|
5114
|
+
};
|
|
4900
5115
|
/** Request an emailed magic-link to sign in (passwordless). */
|
|
4901
5116
|
export type RequestLoginLinkInput = {
|
|
4902
5117
|
/** Email address to send the one-time sign-in link to. */
|
|
@@ -4912,6 +5127,12 @@ export type RequestLoginLinkResult = {
|
|
|
4912
5127
|
/** Always true (does not reveal whether the email exists). */
|
|
4913
5128
|
sent: Scalars['Boolean']['output'];
|
|
4914
5129
|
};
|
|
5130
|
+
export type ResetPasswordInput = {
|
|
5131
|
+
/** New password to set (min 8 characters). */
|
|
5132
|
+
newPassword: Scalars['String']['input'];
|
|
5133
|
+
/** Password-reset token from the emailed reset link. */
|
|
5134
|
+
token: Scalars['String']['input'];
|
|
5135
|
+
};
|
|
4915
5136
|
export type RestartEnvironmentServicesInput = {
|
|
4916
5137
|
/** Organization id (BigInt) that owns the environment. */
|
|
4917
5138
|
orgId: Scalars['BigInt']['input'];
|
|
@@ -5238,6 +5459,23 @@ export type SetAppClientSettingsInput = {
|
|
|
5238
5459
|
/** Allow-listed redirect URIs for the portal authorization code (origin-matched). Replaces the current list. */
|
|
5239
5460
|
redirectUris?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
5240
5461
|
};
|
|
5462
|
+
/** Set or change an app's reserved sustained throughput on the shared environment. */
|
|
5463
|
+
export type SetAppReservedThroughputInput = {
|
|
5464
|
+
/** App to configure reserved throughput for. */
|
|
5465
|
+
appId: Scalars['BigInt']['input'];
|
|
5466
|
+
/** Organization that owns the app. */
|
|
5467
|
+
orgId: Scalars['BigInt']['input'];
|
|
5468
|
+
/** Reserved sustained egress in bytes/s (decimal MB/s: 1_000_000 = 1 MB/s). 0 clears the reservation (free tier). */
|
|
5469
|
+
reservedBytesPerSec: Scalars['BigInt']['input'];
|
|
5470
|
+
};
|
|
5471
|
+
/** Result of setAppReservedThroughput: updated app + reservation fee debited (0 when downgrading or unchanged). */
|
|
5472
|
+
export type SetAppReservedThroughputResult = {
|
|
5473
|
+
__typename?: 'SetAppReservedThroughputResult';
|
|
5474
|
+
/** App after the reservation change. */
|
|
5475
|
+
app: App;
|
|
5476
|
+
/** Cents debited from the org wallet for this change (prorated upgrade). 0 when clearing or lowering reservation. */
|
|
5477
|
+
chargedCents: Scalars['BigInt']['output'];
|
|
5478
|
+
};
|
|
5241
5479
|
/** Set the per-app automation policy (guardrails / platform ceilings). */
|
|
5242
5480
|
export type SetAutomationPolicyInput = {
|
|
5243
5481
|
/** The app (tenant). */
|
|
@@ -6196,7 +6434,7 @@ export type WalletTransaction = {
|
|
|
6196
6434
|
referenceId: Maybe<Scalars['String']['output']>;
|
|
6197
6435
|
/** Unique transaction id (BigInt as a decimal string). */
|
|
6198
6436
|
transactionId: Scalars['BigInt']['output'];
|
|
6199
|
-
/** What produced this transaction. Known values: "topup" (wallet credit from a checkout/top-up), "usage" (per-app usage charge, negative), "shared_usage" (shared-environment usage charge, negative), "environment_usage" (hourly environment cost, negative), "auto_recharge" (automatic wallet recharge). Other caller-supplied deposit types are possible. */
|
|
6437
|
+
/** What produced this transaction. Known values: "topup" (wallet credit from a checkout/top-up), "usage" (per-app usage charge, negative), "shared_usage" (shared-environment usage charge, negative), "reserved_throughput" (monthly/prorated reserved egress capacity, negative), "environment_usage" (hourly environment cost, negative), "auto_recharge" (automatic wallet recharge). Other caller-supplied deposit types are possible. */
|
|
6200
6438
|
transactionType: Scalars['String']['output'];
|
|
6201
6439
|
/** Wallet this transaction belongs to (BigInt as a decimal string). */
|
|
6202
6440
|
walletId: Scalars['BigInt']['output'];
|
|
@@ -9198,6 +9436,14 @@ export type GameModelCreateContainerMutation = {
|
|
|
9198
9436
|
metadataJson: string;
|
|
9199
9437
|
};
|
|
9200
9438
|
};
|
|
9439
|
+
export type GameModelDeleteContainerMutationVariables = Exact<{
|
|
9440
|
+
appId: Scalars['BigInt']['input'];
|
|
9441
|
+
containerId: Scalars['String']['input'];
|
|
9442
|
+
}>;
|
|
9443
|
+
export type GameModelDeleteContainerMutation = {
|
|
9444
|
+
__typename?: 'Mutation';
|
|
9445
|
+
gameModelDeleteContainer: boolean;
|
|
9446
|
+
};
|
|
9201
9447
|
export type GameModelSetPropertyMutationVariables = Exact<{
|
|
9202
9448
|
input: SetContainerPropertyInput;
|
|
9203
9449
|
}>;
|
|
@@ -9229,6 +9475,14 @@ export type GameModelAddEdgeMutation = {
|
|
|
9229
9475
|
weight: number | null;
|
|
9230
9476
|
};
|
|
9231
9477
|
};
|
|
9478
|
+
export type GameModelDeleteEdgeMutationVariables = Exact<{
|
|
9479
|
+
appId: Scalars['BigInt']['input'];
|
|
9480
|
+
edgeId: Scalars['String']['input'];
|
|
9481
|
+
}>;
|
|
9482
|
+
export type GameModelDeleteEdgeMutation = {
|
|
9483
|
+
__typename?: 'Mutation';
|
|
9484
|
+
gameModelDeleteEdge: boolean;
|
|
9485
|
+
};
|
|
9232
9486
|
export type GameModelInvokeMutationVariables = Exact<{
|
|
9233
9487
|
input: InvokeFunctionInput;
|
|
9234
9488
|
}>;
|
|
@@ -9541,6 +9795,23 @@ export type GameModelUpsertPropertyDefMutation = {
|
|
|
9541
9795
|
description: string | null;
|
|
9542
9796
|
};
|
|
9543
9797
|
};
|
|
9798
|
+
export type GameModelDeletePropertyDefMutationVariables = Exact<{
|
|
9799
|
+
appId: Scalars['BigInt']['input'];
|
|
9800
|
+
containerTypeName: Scalars['String']['input'];
|
|
9801
|
+
key: Scalars['String']['input'];
|
|
9802
|
+
}>;
|
|
9803
|
+
export type GameModelDeletePropertyDefMutation = {
|
|
9804
|
+
__typename?: 'Mutation';
|
|
9805
|
+
gameModelDeletePropertyDef: boolean;
|
|
9806
|
+
};
|
|
9807
|
+
export type GameModelDeleteContainerTypeMutationVariables = Exact<{
|
|
9808
|
+
appId: Scalars['BigInt']['input'];
|
|
9809
|
+
typeName: Scalars['String']['input'];
|
|
9810
|
+
}>;
|
|
9811
|
+
export type GameModelDeleteContainerTypeMutation = {
|
|
9812
|
+
__typename?: 'Mutation';
|
|
9813
|
+
gameModelDeleteContainerType: boolean;
|
|
9814
|
+
};
|
|
9544
9815
|
export type GameModelUpsertFunctionMutationVariables = Exact<{
|
|
9545
9816
|
input: UpsertFunctionInput;
|
|
9546
9817
|
}>;
|
|
@@ -9873,6 +10144,13 @@ export type GameHostQuery = {
|
|
|
9873
10144
|
earliestActorJoinedAt: string;
|
|
9874
10145
|
} | null;
|
|
9875
10146
|
};
|
|
10147
|
+
export type AmIGameHostQueryVariables = Exact<{
|
|
10148
|
+
appId: Scalars['BigInt']['input'];
|
|
10149
|
+
}>;
|
|
10150
|
+
export type AmIGameHostQuery = {
|
|
10151
|
+
__typename?: 'Query';
|
|
10152
|
+
amIGameHost: boolean;
|
|
10153
|
+
};
|
|
9876
10154
|
export type ActorHeartbeatMutationVariables = Exact<{
|
|
9877
10155
|
appId: Scalars['BigInt']['input'];
|
|
9878
10156
|
}>;
|
|
@@ -12164,8 +12442,10 @@ export declare const GameModelCreateSessionDocument: DocumentNode<GameModelCreat
|
|
|
12164
12442
|
export declare const GameModelJoinSessionDocument: DocumentNode<GameModelJoinSessionMutation, GameModelJoinSessionMutationVariables>;
|
|
12165
12443
|
export declare const GameModelSetSessionTurnDocument: DocumentNode<GameModelSetSessionTurnMutation, GameModelSetSessionTurnMutationVariables>;
|
|
12166
12444
|
export declare const GameModelCreateContainerDocument: DocumentNode<GameModelCreateContainerMutation, GameModelCreateContainerMutationVariables>;
|
|
12445
|
+
export declare const GameModelDeleteContainerDocument: DocumentNode<GameModelDeleteContainerMutation, GameModelDeleteContainerMutationVariables>;
|
|
12167
12446
|
export declare const GameModelSetPropertyDocument: DocumentNode<GameModelSetPropertyMutation, GameModelSetPropertyMutationVariables>;
|
|
12168
12447
|
export declare const GameModelAddEdgeDocument: DocumentNode<GameModelAddEdgeMutation, GameModelAddEdgeMutationVariables>;
|
|
12448
|
+
export declare const GameModelDeleteEdgeDocument: DocumentNode<GameModelDeleteEdgeMutation, GameModelDeleteEdgeMutationVariables>;
|
|
12169
12449
|
export declare const GameModelInvokeDocument: DocumentNode<GameModelInvokeMutation, GameModelInvokeMutationVariables>;
|
|
12170
12450
|
export declare const GameModelContainerDocument: DocumentNode<GameModelContainerQuery, GameModelContainerQueryVariables>;
|
|
12171
12451
|
export declare const GameModelContainersDocument: DocumentNode<GameModelContainersQuery, GameModelContainersQueryVariables>;
|
|
@@ -12178,6 +12458,8 @@ export declare const GameModelEventsConnectionDocument: DocumentNode<GameModelEv
|
|
|
12178
12458
|
export declare const GameModelSeedDocument: DocumentNode<GameModelSeedMutation, GameModelSeedMutationVariables>;
|
|
12179
12459
|
export declare const GameModelUpsertContainerTypeDocument: DocumentNode<GameModelUpsertContainerTypeMutation, GameModelUpsertContainerTypeMutationVariables>;
|
|
12180
12460
|
export declare const GameModelUpsertPropertyDefDocument: DocumentNode<GameModelUpsertPropertyDefMutation, GameModelUpsertPropertyDefMutationVariables>;
|
|
12461
|
+
export declare const GameModelDeletePropertyDefDocument: DocumentNode<GameModelDeletePropertyDefMutation, GameModelDeletePropertyDefMutationVariables>;
|
|
12462
|
+
export declare const GameModelDeleteContainerTypeDocument: DocumentNode<GameModelDeleteContainerTypeMutation, GameModelDeleteContainerTypeMutationVariables>;
|
|
12181
12463
|
export declare const GameModelUpsertFunctionDocument: DocumentNode<GameModelUpsertFunctionMutation, GameModelUpsertFunctionMutationVariables>;
|
|
12182
12464
|
export declare const GameModelDeleteFunctionDocument: DocumentNode<GameModelDeleteFunctionMutation, GameModelDeleteFunctionMutationVariables>;
|
|
12183
12465
|
export declare const GameModelDefineFeatureDocument: DocumentNode<GameModelDefineFeatureMutation, GameModelDefineFeatureMutationVariables>;
|
|
@@ -12193,6 +12475,7 @@ export declare const GameModelTierFeaturesDocument: DocumentNode<GameModelTierFe
|
|
|
12193
12475
|
export declare const GameModelPolicyDocument: DocumentNode<GameModelPolicyQuery, GameModelPolicyQueryVariables>;
|
|
12194
12476
|
export declare const GameModelRevokeTierFeatureDocument: DocumentNode<GameModelRevokeTierFeatureMutation, GameModelRevokeTierFeatureMutationVariables>;
|
|
12195
12477
|
export declare const GameHostDocument: DocumentNode<GameHostQuery, GameHostQueryVariables>;
|
|
12478
|
+
export declare const AmIGameHostDocument: DocumentNode<AmIGameHostQuery, AmIGameHostQueryVariables>;
|
|
12196
12479
|
export declare const ActorHeartbeatDocument: DocumentNode<ActorHeartbeatMutation, ActorHeartbeatMutationVariables>;
|
|
12197
12480
|
export declare const CreateOrgRoleDocument: DocumentNode<CreateOrgRoleMutation, CreateOrgRoleMutationVariables>;
|
|
12198
12481
|
export declare const CreateOrgTokenDocument: DocumentNode<CreateOrgTokenMutation, CreateOrgTokenMutationVariables>;
|