@crowdedkingdoms/crowdyjs 15.11.0 → 15.12.0-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1603,6 +1603,13 @@ export type BillingExemptOrgType = {
1603
1603
  /** Organization slug. */
1604
1604
  slug: Scalars['String']['output'];
1605
1605
  };
1606
+ export type BindCrowdyStudioGitHubInput = {
1607
+ appId: Scalars['BigInt']['input'];
1608
+ branch?: InputMaybe<Scalars['String']['input']>;
1609
+ owner: Scalars['String']['input'];
1610
+ projectId: Scalars['String']['input'];
1611
+ repo: Scalars['String']['input'];
1612
+ };
1606
1613
  /** Live (most recent heartbeat) Buddy UDP throughput rates. */
1607
1614
  export type BuddyLiveRates = {
1608
1615
  __typename?: 'BuddyLiveRates';
@@ -2067,28 +2074,6 @@ export declare enum CodeAdmissionSubjectKind {
2067
2074
  Code = "CODE",
2068
2075
  Org = "ORG"
2069
2076
  }
2070
- /** One entry in the T11 commerce risk queue (studio/operator moderation). */
2071
- export type CommerceRiskFlag = {
2072
- __typename?: 'CommerceRiskFlag';
2073
- /** App the flag belongs to. */
2074
- appId: Scalars['BigInt']['output'];
2075
- /** When the flag was raised. */
2076
- createdAt: Scalars['DateTime']['output'];
2077
- /** Detail note. */
2078
- detail: Maybe<Scalars['String']['output']>;
2079
- /** Flag row id. */
2080
- flagId: Scalars['String']['output'];
2081
- /** Flag kind: 'buyer_velocity', 'listing_velocity', 'same_party', 'chargeback', or 'manual'. */
2082
- kind: Scalars['String']['output'];
2083
- /** Related order UUID, if any. */
2084
- orderId: Maybe<Scalars['String']['output']>;
2085
- /** 'open', 'released', or 'confirmed'. */
2086
- status: Scalars['String']['output'];
2087
- /** Subject: 'user' or 'org'. */
2088
- subjectKind: Scalars['String']['output'];
2089
- /** Subject user or org id. */
2090
- subjectRef: Scalars['BigInt']['output'];
2091
- };
2092
2077
  /** Complete a magic-link sign-in with the emailed token. */
2093
2078
  export type CompleteLoginLinkInput = {
2094
2079
  /** The one-time token from the magic-link URL. */
@@ -2359,30 +2344,6 @@ export type CreateGridInput = {
2359
2344
  /** The opposite corner of the grid box, in chunk coordinates. May equal corner1 for a single-chunk grid. */
2360
2345
  corner2: ChunkCoordinatesInput;
2361
2346
  };
2362
- export type CreateGridListingInput = {
2363
- /** App the listing belongs to. */
2364
- appId: Scalars['BigInt']['input'];
2365
- /** JSON bounds/placement config (blueprint listings). */
2366
- blueprintConfigJson?: InputMaybe<Scalars['String']['input']>;
2367
- /** Player-code keys the sale confers (e.g. write/run server/client). */
2368
- conferredPermissionKeys?: InputMaybe<Array<Scalars['String']['input']>>;
2369
- /** Store description. */
2370
- description?: InputMaybe<Scalars['String']['input']>;
2371
- /** The concrete grid id being sold (concrete listings). */
2372
- gridId?: InputMaybe<Scalars['BigInt']['input']>;
2373
- /** 'blueprint' or 'concrete'. */
2374
- kind: Scalars['String']['input'];
2375
- /** Display name. */
2376
- name: Scalars['String']['input'];
2377
- /** Price in cents. */
2378
- priceCents: Scalars['Int']['input'];
2379
- /** JSON per-grid quota preset bound on purchase. */
2380
- quotaPresetJson?: InputMaybe<Scalars['String']['input']>;
2381
- /** Resale policy: 'no_resale' (default), 'resale_free', or 'resale_with_studio_cut'. */
2382
- resalePolicy?: InputMaybe<Scalars['String']['input']>;
2383
- /** Studio cut (bps) taken on resales, when resale_with_studio_cut. */
2384
- studioCutBps?: InputMaybe<Scalars['Int']['input']>;
2385
- };
2386
2347
  /** Result of createGrid. This is a hybrid result rather than a thrown error: inspect `error` first. When `error` is NO_ERROR the call succeeded and `grid` is populated; otherwise `grid` is null and `error` explains why. */
2387
2348
  export type CreateGridResponse = {
2388
2349
  __typename?: 'CreateGridResponse';
@@ -3228,6 +3189,74 @@ export declare enum CrowdyStudioFileProvenance {
3228
3189
  /** The file was copied from a specific revision of the owner’s private personal library. */
3229
3190
  Library = "LIBRARY"
3230
3191
  }
3192
+ export type CrowdyStudioGitHubConnectStart = {
3193
+ __typename?: 'CrowdyStudioGitHubConnectStart';
3194
+ /** Install URL for this tier's App, carrying a signed state. */
3195
+ connectUrl: Scalars['String']['output'];
3196
+ };
3197
+ export type CrowdyStudioGitHubFile = {
3198
+ __typename?: 'CrowdyStudioGitHubFile';
3199
+ /** UTF-8 content. */
3200
+ content: Scalars['String']['output'];
3201
+ path: Scalars['String']['output'];
3202
+ /** Blob SHA; send it back on update. */
3203
+ sha: Scalars['String']['output'];
3204
+ };
3205
+ export type CrowdyStudioGitHubFileInput = {
3206
+ appId: Scalars['BigInt']['input'];
3207
+ path: Scalars['String']['input'];
3208
+ projectId: Scalars['String']['input'];
3209
+ };
3210
+ export type CrowdyStudioGitHubProjectInput = {
3211
+ appId: Scalars['BigInt']['input'];
3212
+ projectId: Scalars['String']['input'];
3213
+ };
3214
+ export type CrowdyStudioGitHubPutFileInput = {
3215
+ appId: Scalars['BigInt']['input'];
3216
+ content: Scalars['String']['input'];
3217
+ message: Scalars['String']['input'];
3218
+ path: Scalars['String']['input'];
3219
+ projectId: Scalars['String']['input'];
3220
+ /** Required when the file already exists. */
3221
+ sha?: InputMaybe<Scalars['String']['input']>;
3222
+ };
3223
+ export type CrowdyStudioGitHubRepo = {
3224
+ __typename?: 'CrowdyStudioGitHubRepo';
3225
+ defaultBranch: Maybe<Scalars['String']['output']>;
3226
+ fullName: Scalars['String']['output'];
3227
+ name: Scalars['String']['output'];
3228
+ owner: Scalars['String']['output'];
3229
+ private: Scalars['Boolean']['output'];
3230
+ };
3231
+ /** GitHub connection for the caller and, when a project is named, the repository bound to it. GitHub is a Studio filesystem capability, not a login provider. */
3232
+ export type CrowdyStudioGitHubStatus = {
3233
+ __typename?: 'CrowdyStudioGitHubStatus';
3234
+ /** GitHub login the App is installed on. */
3235
+ accountLogin: Maybe<Scalars['String']['output']>;
3236
+ /** `User` or `Organization`. */
3237
+ accountType: Maybe<Scalars['String']['output']>;
3238
+ /** Studio autosave also pushes to the bound repository. Off by default; the project owner opts in. */
3239
+ autosave: Scalars['Boolean']['output'];
3240
+ branch: Maybe<Scalars['String']['output']>;
3241
+ /** This tier has a GitHub App registered. */
3242
+ configured: Scalars['Boolean']['output'];
3243
+ /** The caller has installed the App on a GitHub account. */
3244
+ connected: Scalars['Boolean']['output'];
3245
+ /** Where to send the modder to install or manage the App. */
3246
+ installUrl: Maybe<Scalars['String']['output']>;
3247
+ /** Bound repository owner, when a project was named. */
3248
+ owner: Maybe<Scalars['String']['output']>;
3249
+ repo: Maybe<Scalars['String']['output']>;
3250
+ };
3251
+ export type CrowdyStudioGitHubTreeEntry = {
3252
+ __typename?: 'CrowdyStudioGitHubTreeEntry';
3253
+ /** Repo-relative path. */
3254
+ path: Scalars['String']['output'];
3255
+ sha: Maybe<Scalars['String']['output']>;
3256
+ size: Maybe<Scalars['Int']['output']>;
3257
+ /** `blob` or `tree`. */
3258
+ type: Scalars['String']['output'];
3259
+ };
3231
3260
  /** The source catalog used for a copy-by-value project file import. */
3232
3261
  export declare enum CrowdyStudioImportSource {
3233
3262
  /** Import from an immutable published common-file version in the requested app. */
@@ -4730,7 +4759,7 @@ export type Grid = {
4730
4759
  /** Low (minimum x/y/z) corner chunk of the box. */
4731
4760
  low_chunk: ChunkCoordinates;
4732
4761
  };
4733
- /** How a player claim confers grid ownership in this app (D4): SELF_CLAIM (the claim alone assigns ownership), APPROVAL (claims create requests designated approvers accept), INVITE (only against a standing invite), or MARKETPLACE_ONLY (only a marketplace grid purchase; direct claims refused — the purchase edge ships in P4b). */
4762
+ /** How a player claim confers grid ownership in this app (D4): SELF_CLAIM (the claim alone assigns ownership), APPROVAL (claims create requests designated approvers accept), INVITE (only against a standing invite), or MARKETPLACE_ONLY (direct claims refused). setAppGridClaimPolicy refuses MARKETPLACE_ONLY while paid grid commerce is off the public API. */
4734
4763
  export declare enum GridClaimPolicy {
4735
4764
  Approval = "APPROVAL",
4736
4765
  Invite = "INVITE",
@@ -4817,30 +4846,6 @@ export type GridGroupGrant = {
4817
4846
  /** The runtime permission key string granted to the group/role. */
4818
4847
  permissionKey: Scalars['String']['output'];
4819
4848
  };
4820
- /** A grid listing available in the app store (P4b): a blueprint that stamps a fresh grid per purchase, or a concrete grid. Buying it confers grid_ownership + the listed player-code keys + the quota preset atomically. */
4821
- export type GridListing = {
4822
- __typename?: 'GridListing';
4823
- /** App the listing belongs to. */
4824
- appId: Scalars['BigInt']['output'];
4825
- /** Player-code keys conferred on purchase. */
4826
- conferredPermissionKeys: Array<Scalars['String']['output']>;
4827
- /** Store description. */
4828
- description: Scalars['String']['output'];
4829
- /** UUID of the grid listing. */
4830
- gridListingId: Scalars['String']['output'];
4831
- /** 'blueprint' or 'concrete'. */
4832
- kind: Scalars['String']['output'];
4833
- /** Display name. */
4834
- name: Scalars['String']['output'];
4835
- /** Price in cents. */
4836
- priceCents: Scalars['Int']['output'];
4837
- /** Resale policy for the grid. */
4838
- resalePolicy: Scalars['String']['output'];
4839
- /** Catalog status: 'active' or 'delisted'. */
4840
- status: Maybe<Scalars['String']['output']>;
4841
- /** Studio cut (bps) on resale, when applicable. */
4842
- studioCutBps: Maybe<Scalars['Int']['output']>;
4843
- };
4844
4849
  /** Kind of principal holding grid title. P1 can assign USER owners; GROUP and ORG are schema-reserved for future shared ownership. */
4845
4850
  export declare enum GridOwnerKind {
4846
4851
  Group = "GROUP",
@@ -4879,14 +4884,6 @@ export type GridPermissionLimits = {
4879
4884
  /** The permission keys this grid is limited to. Empty means no limit (every active grid permission is allowed). */
4880
4885
  permissionKeys: Array<Scalars['String']['output']>;
4881
4886
  };
4882
- /** Result of purchasing a grid listing: the owned grid the buyer now holds. */
4883
- export type GridPurchaseResult = {
4884
- __typename?: 'GridPurchaseResult';
4885
- /** The grid the buyer now owns. */
4886
- gridId: Scalars['BigInt']['output'];
4887
- /** True when ownership was assigned. */
4888
- ownershipAssigned: Scalars['Boolean']['output'];
4889
- };
4890
4887
  /** Whether the current title is permanent ownership or an expiring rental. */
4891
4888
  export declare enum GridTenure {
4892
4889
  Owned = "OWNED",
@@ -5090,7 +5087,7 @@ export type MintAppTokenInput = {
5090
5087
  };
5091
5088
  export type Mutation = {
5092
5089
  __typename?: 'Mutation';
5093
- /** Acquire a free listing: writes the entitlement row (no payment edge exists in P4a — paid modes are P4b). Idempotent per (listing, caller). Allowed in any admission mode; in allow_list apps an unadmitted acquisition holds until the listing/author/org is admitted, at which point installPlayerCode proceeds. */
5090
+ /** Acquire a free listing: writes the entitlement row. Paid listings (price_cents > 0 or a non-free acquisition mode) are refused with FEATURE_DISABLED. Idempotent per (listing, caller). Allowed in any admission mode; in allow_list apps an unadmitted acquisition holds until the listing/author/org is admitted, at which point installPlayerCode proceeds. */
5094
5091
  acquirePlayerCode: PlayerCodeAcquisition;
5095
5092
  /** Application liveness heartbeat for the authenticated user's existing actor rows in an app. Refreshes actors.updated_at so the user stays host-eligible, then returns the freshly-elected host so a client can fold its poll and heartbeat into one round-trip. This is not proof of a live Buddy session and does not refresh the separate Buddy presence lease used by security-sensitive artifact/compute occupancy gates. */
5096
5093
  actorHeartbeat: Maybe<GameHost>;
@@ -5110,12 +5107,8 @@ export type Mutation = {
5110
5107
  assignGroupToGrid: Array<GridGroupGrant>;
5111
5108
  /** Record the user's consent for an (untrusted) app to receive app-scoped tokens via the portal. Called from the Overworld consent screen before createPortalAuthorizationCode. Idempotent. Requires a SESSION token. */
5112
5109
  authorizeApp: AppAuthorizationGrant;
5113
- /** Begin Stripe Connect Express onboarding for an ORG's payout account (org-owned listings, DN-9). Requires 'manage_billing' in the org. */
5114
- beginOrgSellerOnboarding: SellerOnboardingLink;
5115
5110
  /** Begin vaulting a card on the caller's player wallet (P4b): returns a Stripe SetupIntent client secret + publishable key for the browser to confirm. On success the card is saved for wallet auto-recharge and rent auto-renew. Closes the P2 gap where players had no card-setup path. */
5116
5111
  beginPlayerCardSetup: PlayerCardSetup;
5117
- /** Begin Stripe Connect Express seller onboarding for the calling player (personal listings). Returns the hosted onboarding URL to finish KYC, or an unavailable reason in unsupported regions. Required before pricing a listing above free. */
5118
- beginSellerOnboarding: SellerOnboardingLink;
5119
5112
  /** DESTRUCTIVE. Cancels an app's paid shared-environment subscription. The app loses its paid shared slot (typically at currentPeriodEnd) and may be denied runtime once the period lapses unless a free slot covers it. Returns the updated subscription. Requires the 'manage_billing' permission on the app's org. */
5120
5113
  cancelSharedSubscription: AppSharedSubscription;
5121
5114
  /** 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. */
@@ -5126,7 +5119,7 @@ export type Mutation = {
5126
5119
  claimFreeAppAccess: AppUserAccess;
5127
5120
  /** Claim one currently unclaimed chunk as a new player-owned grid. Requires an ordinary app-scoped player token and active app access, but never manage_apps. The app's policy must be SELF_CLAIM. The server validates the app's grid assignment and peer-overlap rules, then atomically creates a one-chunk grid, assigns current-user ownership, grants access/update_voxel_data/use_voice_chat/teleport plus the player-code keys and use_video_chat where the caller's tier already carries them, and materializes the effective ACL. Conflicts and policy denials throw GraphQL errors; no partial grid, ownership, or grant rows remain. */
5128
5121
  claimGridChunk: ChunkClaimResult;
5129
- /** Claim grid ownership under the app's claim policy (D4, server-authorized — no client manage_apps involved). SELF_CLAIM assigns ownership immediately; APPROVAL creates a pending request for designated approvers; INVITE requires a standing invite (consumed on use); MARKETPLACE_ONLY refuses (ownership arrives only via grid purchase, P4b). The grid must exist and have no current owner; game rules gate who may attempt a claim. */
5122
+ /** Claim grid ownership under the app's claim policy (D4, server-authorized — no client manage_apps involved). SELF_CLAIM assigns ownership immediately; APPROVAL creates a pending request for designated approvers; INVITE requires a standing invite (consumed on use); MARKETPLACE_ONLY refuses. The grid must exist and have no current owner; game rules gate who may attempt a claim. */
5130
5123
  claimGridOwnership: GridClaimResult;
5131
5124
  /** Remove an app's compute allowance, returning it to observation against the platform reference allowance. Returns true if an allowance was removed. Requires app-admin ('manage_apps'). */
5132
5125
  clearAppComputeBudget: Scalars['Boolean']['output'];
@@ -5180,20 +5173,14 @@ export type Mutation = {
5180
5173
  createCheckout: Checkout;
5181
5174
  /** Create a grid: a named 3D box of chunks that runtime/world (voxel) permissions are scoped to. The box must fit within one of the app's grid assignments (its buildable regions); it MAY be nested inside a broader containing grid such as the open-by-default world grid, but must not partially overlap a peer grid. Requires app-admin ('manage_apps'). Returns a hybrid response — on success `grid` is populated and `error` is NO_ERROR; on failure `grid` is null and `error` is a UDP-style error code (e.g. NO_MATCHING_GRID_ASSIGNMENT, GRID_OUTSIDE_ASSIGNMENT, GRID_OVERLAPS_EXISTING, GRID_ALREADY_EXISTS). */
5182
5175
  createGrid: CreateGridResponse;
5183
- /** Create a studio grid listing (07 §1.1): a blueprint that stamps a fresh grid per sale, or a concrete grid. Requires 'manage_apps'. Purchase (in-game) confers grid_ownership + the listed keys + quota preset atomically. */
5184
- createGridListing: GridListing;
5185
5176
  /** Creates a custom role in an organization with a name, optional description, and permission keys. Requires the 'manage_members' permission on the org (super admins bypass). */
5186
5177
  createOrgRole: OrgRole;
5187
- /** Create an embedded-components Account Session for an ORG's payout account (org-owned listings, DN-9). Requires 'manage_billing' in the org. */
5188
- createOrgSellerAccountSession: SellerAccountSession;
5189
5178
  /** Mints a new org API token and returns the plaintext token exactly once - save it, since subsequent queries only show metadata. Requires the 'manage_tokens' permission on the target org (super admins bypass). */
5190
5179
  createOrgToken: OrgTokenWithSecret;
5191
5180
  /** Creates a new organization and makes the authenticated caller its owner (with full permissions). Requires a valid session token. */
5192
5181
  createOrganization: Organization;
5193
5182
  /** Create a one-time, PKCE-bound portal authorization code (browser handoff). The Overworld identity origin (holding the SESSION token) calls this; redirect the player to the destination game carrying the code, which the game exchanges via exchangePortalCode. Requires a SESSION token. */
5194
5183
  createPortalAuthorizationCode: PortalAuthorizationCode;
5195
- /** Create an Account Session for Stripe's EMBEDDED Connect components on the calling player's seller account (created on first call): the browser initializes Connect.js with the returned publishable key + client secret and mounts account-onboarding / payouts / balances INSIDE the platform UI. Client secrets are short-lived — re-request on expiry. The hosted-link flow (beginSellerOnboarding) remains the fallback. */
5196
- createSellerAccountSession: SellerAccountSession;
5197
5184
  /** Create a team. Whether the caller may create one is governed by the per-app team policy (app_group_policies: admin | member | anyone). The caller becomes the owner and is granted a system 'leader' role holding every team permission. New teams default to the app's default membership policy unless overridden. */
5198
5185
  createTeam: Group;
5199
5186
  /** Create a custom (non-system) team role granting the given team permission keys. Requires the 'manage_roles' team permission (app admins bypass). Permission keys must be valid team permission keys (group_permission_defs). */
@@ -5232,6 +5219,16 @@ export type Mutation = {
5232
5219
  crowdyStudioAgentToolResult: AgentToolCall;
5233
5220
  /** Publish a new immutable version of an app-scoped Crowdy Studio-curated common file and make it the current player-readable version. Requires an app-scoped token plus the app manage_compute permission. Old versions remain immutable for provenance; an idempotency key is strongly recommended for transport retries. */
5234
5221
  crowdyStudioCommonPublish: CrowdyStudioCommonFile;
5222
+ /** Bind a Crowdy Studio project you own to a repository granted to your installation. Verifies the branch exists. Identity session only. Autosave stays off until you turn it on. */
5223
+ crowdyStudioGitHubBind: CrowdyStudioGitHubStatus;
5224
+ /** Install URL for this tier's Crowdy Studio GitHub App with a signed state. Identity session only. No GitHub token ever reaches the browser. */
5225
+ crowdyStudioGitHubConnectUrl: CrowdyStudioGitHubConnectStart;
5226
+ /** Create or update one UTF-8 file in the bound repository. Send the current sha on update; a stale sha is refused with GITHUB_STALE_SHA. */
5227
+ crowdyStudioGitHubPutFile: CrowdyStudioGitHubFile;
5228
+ /** Opt a bound project into (or out of) pushing Studio autosaves to GitHub. Default is off. */
5229
+ crowdyStudioGitHubSetAutosave: CrowdyStudioGitHubStatus;
5230
+ /** Remove the repository bind from a project you own. Files in Crowdy Studio are untouched. */
5231
+ crowdyStudioGitHubUnbind: CrowdyStudioGitHubStatus;
5235
5232
  /** Create or optimistically update one private personal-library source file. Requires an app-scoped token; ownership is always the authenticated player and cannot be delegated. Safe source paths, 64-KiB content, revision, and configurable bounded aggregate library storage are enforced atomically. */
5236
5233
  crowdyStudioLibrarySave: CrowdyStudioLibraryFile;
5237
5234
  /** Archive or restore one caller-owned personal-library file under optimistic revision control. Requires an app-scoped token and exact app/user ownership; archived entries remain retained but cannot be imported until restored. */
@@ -5250,8 +5247,6 @@ export type Mutation = {
5250
5247
  crowdyStudioProjectSaveMetadata: CrowdyStudioProject;
5251
5248
  /** Archive or restore a private project without deleting any source or provenance, using optimistic revision control. Requires an app-scoped token and exact owner match. Archived projects remain readable by their owner but are read-only until restored. */
5252
5249
  crowdyStudioProjectSetArchived: CrowdyStudioProject;
5253
- /** Release (settle held order + unfreeze payout) or confirm (uphold) a T11 risk flag. Requires 'manage_compute'. */
5254
- decideCommerceRiskFlag: Scalars['Boolean']['output'];
5255
5250
  /** Approve or deny a pending grid claim request (claim policy APPROVAL). Callable by the app's designated approver users or studio staff holding manage_compute. Approval assigns grid_ownership to the requester. */
5256
5251
  decideGridClaim: GridClaimRequest;
5257
5252
  /** DESTRUCTIVE: permanently deletes the actor identified by `uuid` and returns a copy of the now-deleted row. OWNER-EXCLUSIVE: only the owner may delete (throws Unauthorized otherwise). Requires a valid game token. `uuid` is the 32-character ASCII actor id. */
@@ -5406,12 +5401,8 @@ export type Mutation = {
5406
5401
  publishPlayerCode: PlayerCodeListing;
5407
5402
  /** Publish an immutable version under a listing from the caller's successfully compiled module versions. Snapshots artifact hashes, explicit SERVER-to-required-CLIENT edges, and the derived aggregate capability summary; publishing fails if a required client version is absent from the bundle. Source never leaves the author's rows. */
5408
5403
  publishPlayerCodeVersion: PlayerCodeListingVersion;
5409
- /** Buy a grid listing with real money (P4b). Debits the player wallet management-side (platform/org split), then assigns grid_ownership + the listed player-code keys atomically; a failure to apply ownership refunds the charge. For blueprint listings, targetChunk picks where the fresh grid is stamped. This is the ownership path for marketplace_only-policy apps. */
5410
- purchaseGrid: GridPurchaseResult;
5411
5404
  /** 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. NATIVE CLIENTS: pass `currentServer` (the ip4 + clientPort serverWithLeastClients gave you) and the new token is authorized on that same Buddy -- read `authorizedServer` on the response: when it is set, keep your UDP session and just switch tokens; when it is null, call serverWithLeastClients for a fresh placement. Without `currentServer` the new token is not known to any Buddy until you call serverWithLeastClients. */
5412
5405
  refreshAppToken: AppTokenResponse;
5413
- /** Request a refund of a paid acquisition (P4b). Allowed only within the refund window and before meaningful use (first install/fetch voids it), capped per buyer; a successful refund credits the wallet, reverses the ledger split, claws back the seller balance, revokes the acquisition, and drains installs. Returns cents refunded. */
5414
- refundPlayerCodeAcquisition: Scalars['Int']['output'];
5415
5406
  /** 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 it is refused with extensions.code EMAIL_ALREADY_REGISTERED (409) and no session is returned: an account that already has a password is left exactly as it was (sign in, or use the emailed reset), and only a password-less account (created via magic link/social) gets the password attached pending email confirmation. It is a routine outcome rather than a fault, and it reached clients as INTERNAL_SERVER_ERROR before v1.60.0, which is why several of them match it by its message text. Public; first-party origins only (HOSTED_SIGN_IN_REQUIRED otherwise); rate-limited. */
5416
5407
  register: AuthResponse;
5417
5408
  /** OPERATOR ONLY. Reverses a retirement: the organization returns to status 'active', deleted_at is cleared, and the tombstone records who put it back and why rather than being deleted. Its apps are LEFT ARCHIVED — un-archiving is archiveApp's inverse and belongs to whoever decides which apps should serve traffic again. Refuses an organization that is not currently retired. */
@@ -5426,14 +5417,10 @@ export type Mutation = {
5426
5417
  removeSharedPaymentMethod: Scalars['Boolean']['output'];
5427
5418
  /** Remove a member from a team. Requires the 'manage_members' team permission, except that any member may remove themselves. DESTRUCTIVE: drops the membership and its roles. Returns true if a membership was removed. */
5428
5419
  removeTeamMember: Scalars['Boolean']['output'];
5429
- /** Renew a RENT acquisition (or extend a TIME_LIMITED window): a wallet charge on the same acquisition that pushes its expiry out. A drained install resumes on the next scheduler pass without re-consent. Paid modes only (P4b). */
5430
- renewPlayerCodeAcquisition: PlayerCodeAcquisition;
5431
5420
  /** 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; first-party origins only (HOSTED_SIGN_IN_REQUIRED otherwise); rate-limited. */
5432
5421
  requestLoginLink: RequestLoginLinkResult;
5433
5422
  /** 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; first-party origins only (HOSTED_SIGN_IN_REQUIRED otherwise); rate-limited. */
5434
5423
  requestPasswordReset: Scalars['Boolean']['output'];
5435
- /** Pay out the calling player's payable balance to their Connect account (D6 minimum, 7-day delay, reserves enforced). Returns cents paid. */
5436
- requestSellerPayout: Scalars['Int']['output'];
5437
5424
  /** 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. */
5438
5425
  requestToJoinChannel: GroupMember;
5439
5426
  /** 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. */
@@ -5486,10 +5473,8 @@ export type Mutation = {
5486
5473
  setAppCodeAdmissionMode: CodeAdmissionMode;
5487
5474
  /** Set an app's compute allowance in units per minute, spanning the model expression engine and both WASM tiers. One unit is one millisecond of measured execution time. 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 refuse invokes when the allowance is exceeded; leave it false to record the decision and admit, which is what produces the measurements a threshold should be chosen from. Requires app-admin ('manage_apps'). */
5488
5475
  setAppComputeBudget: AppComputeBudgetInfo;
5489
- /** Set how a player claim confers grid ownership in this app (D4): SELF_CLAIM, APPROVAL (optionally with a designated approver list), INVITE, or MARKETPLACE_ONLY. Requires 'manage_apps'. SIDE EFFECTS: replica-syncs to game-api, where claimGridOwnership enforces the policy. Changing policy never revokes existing grid_ownership rows. */
5476
+ /** Set how a player claim confers grid ownership in this app (D4): SELF_CLAIM, APPROVAL (optionally with a designated approver list), or INVITE. MARKETPLACE_ONLY is refused with FEATURE_DISABLED while paid grid commerce is off the public API. Requires 'manage_apps'. Changing policy never revokes existing grid_ownership rows. */
5490
5477
  setAppGridClaimPolicy: GridClaimPolicy;
5491
- /** Set the app's marketplace org revenue share in basis points (OQ-3; taken from the post-platform remainder). Requires 'manage_billing'. BWF uses 0. */
5492
- setAppMarketplaceOrgShare: Scalars['Int']['output'];
5493
5478
  /** Reserve capacity for a shared app. A reservation is a FLOOR, not a ceiling: the platform provisions and holds a minimum for you and does not limit what you may use beyond it. Billed monthly from the org wallet whether or not it is used; upgrades are prorated for the current month. Note that the ~1 MB/s free-tier shaping is lifted by funding a wallet, not by reserving. Requires 'manage_billing' on the app's org. */
5494
5479
  setAppReservedThroughput: SetAppReservedThroughputResult;
5495
5480
  /** 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. */
@@ -5512,8 +5497,6 @@ export type Mutation = {
5512
5497
  setGridPermissionLimits: GridPermissionLimits;
5513
5498
  /** Adds a password to the signed-in account when it does not have one yet — for an account created by magic link or a social provider, which previously had no in-product way to add password sign-in. Requires a valid session token; the session is the proof of account control, so the password is usable immediately and no email confirmation is needed. Refuses with extensions.code PASSWORD_ALREADY_SET (409) when a password is already set — use changePassword, which verifies the current one, or the reset flow if it is forgotten. (Before v1.60.0 that refusal reached clients as INTERNAL_SERVER_ERROR while this description said CONFLICT, so a client could only recognise it by the message text.) A security notification is emailed to the account address. Existing sessions are not revoked. */
5514
5499
  setInitialPassword: Scalars['Boolean']['output'];
5515
- /** Set (author-only) the acquisition mode and pricing for a code listing. Non-free modes require completed seller onboarding. Curation can reject a listing but never reprice it (07 §1.2). */
5516
- setListingPricing: Scalars['Boolean']['output'];
5517
5500
  /** Super-admin only. Flip users.is_operator to grant or revoke control-plane / operator access. */
5518
5501
  setOperator: User;
5519
5502
  /** OPERATOR ONLY. Sets or clears an organization billing exemption. When true, org-wallet debits and money-driven runtime denials are skipped; usage is still metered and every waived amount is written to org_billing_waivers. Does not waive player-wallet charges, failure breakers, or the per-minute compute budget. reason is required when setting true. SIDE EFFECT: re-evaluates the runtime gate for every shared app in the org, so clearing the exemption re-denies immediately instead of waiting for the next hourly tick. */
@@ -5544,12 +5527,8 @@ export type Mutation = {
5544
5527
  socialLoginComplete: AuthResponse;
5545
5528
  /** Begin a federated (social) sign-in: returns an authorizeUrl to redirect the user to and an opaque state to round-trip back to socialLoginComplete. Public; first-party origins only (HOSTED_SIGN_IN_REQUIRED otherwise). */
5546
5529
  socialLoginStart: SocialLoginStart;
5547
- /** Earn-to-mod: convert payable seller balance into the player wallet without a provider round-trip (07 §4.1). Returns cents credited. */
5548
- spendPayoutBalanceToWallet: Scalars['Int']['output'];
5549
5530
  /** Checks whether the authenticated user is allowed to teleport an actor to a destination within an app and returns the authorization result. This is an authorization check only — it does NOT itself move the actor; the UDP runtime performs the actual movement. Requires a valid bearer game token plus the app-level "teleport" runtime permission. Returns success=false with errorCode INVALID_APP_ID (non-positive appId), UNAUTHORIZED (reserved sentinel destination -6,-6,-6 or missing permission), or success=true / NO_ERROR when allowed. */
5550
5531
  teleportRequest: TeleportResponse;
5551
- /** Top up a COST_LIMITED acquisition's compute-unit budget: a wallet charge that adds the listing's unit budget to the license. Exhausted installs resume once the budget clears their consumed units. Paid modes only (P4b). */
5552
- topUpPlayerCodeAcquisition: PlayerCodeAcquisition;
5553
5532
  /** 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. */
5554
5533
  transferGridOwnership: GridOwnership;
5555
5534
  /** 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 game-api. Ownership moves listing control and source-access rights; from P4b it also moves proceeds. */
@@ -5640,13 +5619,6 @@ export type MutationAssignGroupToGridArgs = {
5640
5619
  export type MutationAuthorizeAppArgs = {
5641
5620
  input: AuthorizeAppInput;
5642
5621
  };
5643
- export type MutationBeginOrgSellerOnboardingArgs = {
5644
- country: Scalars['String']['input'];
5645
- orgId: Scalars['BigInt']['input'];
5646
- };
5647
- export type MutationBeginSellerOnboardingArgs = {
5648
- country: Scalars['String']['input'];
5649
- };
5650
5622
  export type MutationCancelSharedSubscriptionArgs = {
5651
5623
  appId: Scalars['BigInt']['input'];
5652
5624
  idempotencyKey?: InputMaybe<Scalars['String']['input']>;
@@ -5758,16 +5730,9 @@ export type MutationCreateCheckoutArgs = {
5758
5730
  export type MutationCreateGridArgs = {
5759
5731
  input: CreateGridInput;
5760
5732
  };
5761
- export type MutationCreateGridListingArgs = {
5762
- input: CreateGridListingInput;
5763
- };
5764
5733
  export type MutationCreateOrgRoleArgs = {
5765
5734
  input: CreateOrgRoleInput;
5766
5735
  };
5767
- export type MutationCreateOrgSellerAccountSessionArgs = {
5768
- country: Scalars['String']['input'];
5769
- orgId: Scalars['BigInt']['input'];
5770
- };
5771
5736
  export type MutationCreateOrgTokenArgs = {
5772
5737
  input: CreateOrgTokenInput;
5773
5738
  };
@@ -5777,9 +5742,6 @@ export type MutationCreateOrganizationArgs = {
5777
5742
  export type MutationCreatePortalAuthorizationCodeArgs = {
5778
5743
  input: CreatePortalAuthorizationCodeInput;
5779
5744
  };
5780
- export type MutationCreateSellerAccountSessionArgs = {
5781
- country: Scalars['String']['input'];
5782
- };
5783
5745
  export type MutationCreateTeamArgs = {
5784
5746
  input: CreateTeamInput;
5785
5747
  };
@@ -5840,6 +5802,18 @@ export type MutationCrowdyStudioAgentToolResultArgs = {
5840
5802
  export type MutationCrowdyStudioCommonPublishArgs = {
5841
5803
  input: PublishCrowdyStudioCommonFileInput;
5842
5804
  };
5805
+ export type MutationCrowdyStudioGitHubBindArgs = {
5806
+ input: BindCrowdyStudioGitHubInput;
5807
+ };
5808
+ export type MutationCrowdyStudioGitHubPutFileArgs = {
5809
+ input: CrowdyStudioGitHubPutFileInput;
5810
+ };
5811
+ export type MutationCrowdyStudioGitHubSetAutosaveArgs = {
5812
+ input: SetCrowdyStudioGitHubAutosaveInput;
5813
+ };
5814
+ export type MutationCrowdyStudioGitHubUnbindArgs = {
5815
+ input: CrowdyStudioGitHubProjectInput;
5816
+ };
5843
5817
  export type MutationCrowdyStudioLibrarySaveArgs = {
5844
5818
  input: SaveCrowdyStudioLibraryFileInput;
5845
5819
  };
@@ -5867,11 +5841,6 @@ export type MutationCrowdyStudioProjectSaveMetadataArgs = {
5867
5841
  export type MutationCrowdyStudioProjectSetArchivedArgs = {
5868
5842
  input: SetCrowdyStudioProjectArchivedInput;
5869
5843
  };
5870
- export type MutationDecideCommerceRiskFlagArgs = {
5871
- appId: Scalars['BigInt']['input'];
5872
- flagId: Scalars['String']['input'];
5873
- release: Scalars['Boolean']['input'];
5874
- };
5875
5844
  export type MutationDecideGridClaimArgs = {
5876
5845
  appId: Scalars['BigInt']['input'];
5877
5846
  approve: Scalars['Boolean']['input'];
@@ -6142,20 +6111,9 @@ export type MutationPublishPlayerCodeArgs = {
6142
6111
  export type MutationPublishPlayerCodeVersionArgs = {
6143
6112
  input: PublishPlayerCodeVersionInput;
6144
6113
  };
6145
- export type MutationPurchaseGridArgs = {
6146
- appId: Scalars['BigInt']['input'];
6147
- chunkX?: InputMaybe<Scalars['Int']['input']>;
6148
- chunkY?: InputMaybe<Scalars['Int']['input']>;
6149
- chunkZ?: InputMaybe<Scalars['Int']['input']>;
6150
- gridListingId: Scalars['String']['input'];
6151
- };
6152
6114
  export type MutationRefreshAppTokenArgs = {
6153
6115
  currentServer?: InputMaybe<CurrentServerInput>;
6154
6116
  };
6155
- export type MutationRefundPlayerCodeAcquisitionArgs = {
6156
- acquisitionId: Scalars['String']['input'];
6157
- appId: Scalars['BigInt']['input'];
6158
- };
6159
6117
  export type MutationRegisterArgs = {
6160
6118
  registerUserInput: RegisterUserInput;
6161
6119
  };
@@ -6184,10 +6142,6 @@ export type MutationRemoveTeamMemberArgs = {
6184
6142
  groupId: Scalars['BigInt']['input'];
6185
6143
  userId: Scalars['BigInt']['input'];
6186
6144
  };
6187
- export type MutationRenewPlayerCodeAcquisitionArgs = {
6188
- acquisitionId: Scalars['String']['input'];
6189
- appId: Scalars['BigInt']['input'];
6190
- };
6191
6145
  export type MutationRequestLoginLinkArgs = {
6192
6146
  input: RequestLoginLinkInput;
6193
6147
  };
@@ -6286,10 +6240,6 @@ export type MutationSetAppGridClaimPolicyArgs = {
6286
6240
  approverUserIds?: InputMaybe<Array<Scalars['BigInt']['input']>>;
6287
6241
  policy: GridClaimPolicy;
6288
6242
  };
6289
- export type MutationSetAppMarketplaceOrgShareArgs = {
6290
- appId: Scalars['BigInt']['input'];
6291
- bps: Scalars['Int']['input'];
6292
- };
6293
6243
  export type MutationSetAppReservedThroughputArgs = {
6294
6244
  idempotencyKey?: InputMaybe<Scalars['String']['input']>;
6295
6245
  input: SetAppReservedThroughputInput;
@@ -6333,9 +6283,6 @@ export type MutationSetGridPermissionLimitsArgs = {
6333
6283
  export type MutationSetInitialPasswordArgs = {
6334
6284
  newPassword: Scalars['String']['input'];
6335
6285
  };
6336
- export type MutationSetListingPricingArgs = {
6337
- input: SetListingPricingInput;
6338
- };
6339
6286
  export type MutationSetOperatorArgs = {
6340
6287
  userId: Scalars['BigInt']['input'];
6341
6288
  value: Scalars['Boolean']['input'];
@@ -6396,16 +6343,9 @@ export type MutationSocialLoginCompleteArgs = {
6396
6343
  export type MutationSocialLoginStartArgs = {
6397
6344
  input: SocialLoginStartInput;
6398
6345
  };
6399
- export type MutationSpendPayoutBalanceToWalletArgs = {
6400
- amountCents: Scalars['Int']['input'];
6401
- };
6402
6346
  export type MutationTeleportRequestArgs = {
6403
6347
  input: TeleportRequestInput;
6404
6348
  };
6405
- export type MutationTopUpPlayerCodeAcquisitionArgs = {
6406
- acquisitionId: Scalars['String']['input'];
6407
- appId: Scalars['BigInt']['input'];
6408
- };
6409
6349
  export type MutationTransferGridOwnershipArgs = {
6410
6350
  input: TransferGridOwnershipInput;
6411
6351
  };
@@ -7776,8 +7716,6 @@ export type Query = {
7776
7716
  checkouts: CheckoutsPage;
7777
7717
  /** 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. */
7778
7718
  checkoutsConnection: CheckoutsConnection;
7779
- /** The app's open T11 commerce risk queue (velocity holds, same-party flags, chargebacks). Requires 'manage_compute'. */
7780
- commerceRiskQueue: Array<CommerceRiskFlag>;
7781
7719
  /** A snapshot of an app's compute footprint: module/version/trigger counts plus 24h run activity and the most-active modules. Requires the org 'view_compute_diagnostics' permission. */
7782
7720
  computeAppDiagnostics: WasmAppDiagnostics;
7783
7721
  /** Read one compute module by name. Requires the org 'view_compute_diagnostics' permission. */
@@ -7822,6 +7760,14 @@ export type Query = {
7822
7760
  crowdyStudioAgentUsage: CrowdyStudioAgentUsagePage;
7823
7761
  /** List the current immutable versions of published Crowdy Studio-curated common files for one app. Requires an app-scoped token for appId; unlike private player source, this catalog content is intentionally readable by players in that app. Results are bounded and may be filtered by target. */
7824
7762
  crowdyStudioCommonFiles: Array<CrowdyStudioCommonFile>;
7763
+ /** One UTF-8 file from the bound repository, with its blob SHA. */
7764
+ crowdyStudioGitHubFile: CrowdyStudioGitHubFile;
7765
+ /** Repositories the caller granted to their Crowdy Studio installation. Identity session only. */
7766
+ crowdyStudioGitHubRepos: Array<CrowdyStudioGitHubRepo>;
7767
+ /** GitHub connection for the caller and the repository bound to a Crowdy Studio project. GitHub is a Studio filesystem capability, not a login provider. */
7768
+ crowdyStudioGitHubStatus: CrowdyStudioGitHubStatus;
7769
+ /** Recursive file list of the repository bound to the project (Git Trees API). */
7770
+ crowdyStudioGitHubTree: Array<CrowdyStudioGitHubTreeEntry>;
7825
7771
  /** List the authenticated player’s private reusable Crowdy Studio source files in one app. Requires an app-scoped token for appId; cross-user entries are never visible, including to grid owners or Crowdy Studio operators. The bounded result defaults to 50. */
7826
7772
  crowdyStudioLibraryFiles: Array<CrowdyStudioLibraryFile>;
7827
7773
  /** Load one private Crowdy Studio project with all bounded source files. Requires an app-scoped token for appId and exact caller ownership; missing, cross-app, and cross-user ids all return the same NOT_FOUND shape. Grid owners and Crowdy Studio operators receive no source override. */
@@ -7914,8 +7860,6 @@ export type Query = {
7914
7860
  gridClientMods: Array<GridClientMod>;
7915
7861
  /** List the group/role -> permission-key grants configured on a grid for one group (rows of the `grid_group_grants` input table). These are inputs to the effective ACL, not the materialized result — use `gridUserPermissions` for a specific user's effective keys. Requires app-admin ('manage_apps'). */
7916
7862
  gridGroupGrants: Array<GridGroupGrant>;
7917
- /** Browse the app's grid listings (P4b): blueprints that stamp a fresh grid per purchase, or concrete grids. Buying confers ownership + keys + quota preset atomically. */
7918
- gridListings: Array<GridListing>;
7919
7863
  /** Read the current first-class ownership record for a grid. Requires authentication. Returns null when the grid has no current/unexpired owner. Player server code always resolves its execution identity from this record. */
7920
7864
  gridOwnership: Maybe<GridOwnership>;
7921
7865
  /** Read the permission-key whitelist configured for a grid. An empty list means there is no limit (every active runtime permission may be granted on the grid). Requires app-admin ('manage_apps'). */
@@ -7964,8 +7908,6 @@ export type Query = {
7964
7908
  * @deprecated Legacy donation/property-token data; these products are no longer purchasable. Retained for historical records.
7965
7909
  */
7966
7910
  myPropertyTokens: UserPropertyTokenData;
7967
- /** The calling player's seller payout balance (pending/payable/reserved). */
7968
- mySellerPayoutBalance: SellerPayoutBalance;
7969
7911
  /** The caller's teams in an app, with their roles and effective team permissions. Use this to discover which teams the current user belongs to and what they may do in each. */
7970
7912
  myTeams: Array<GroupMembership>;
7971
7913
  /** List every grid overlapping a chunk-coordinate bounding box, each with the given user's effective permission keys on it. Useful for previewing what a user can do across a region (e.g. around their current position). Requires app-admin ('manage_apps'). */
@@ -8268,9 +8210,6 @@ export type QueryCheckoutsConnectionArgs = {
8268
8210
  filter?: InputMaybe<CheckoutFilterInput>;
8269
8211
  first?: InputMaybe<Scalars['Int']['input']>;
8270
8212
  };
8271
- export type QueryCommerceRiskQueueArgs = {
8272
- appId: Scalars['BigInt']['input'];
8273
- };
8274
8213
  export type QueryComputeAppDiagnosticsArgs = {
8275
8214
  appId: Scalars['BigInt']['input'];
8276
8215
  };
@@ -8349,6 +8288,16 @@ export type QueryCrowdyStudioCommonFilesArgs = {
8349
8288
  offset?: InputMaybe<Scalars['Int']['input']>;
8350
8289
  target?: InputMaybe<CrowdyStudioTarget>;
8351
8290
  };
8291
+ export type QueryCrowdyStudioGitHubFileArgs = {
8292
+ input: CrowdyStudioGitHubFileInput;
8293
+ };
8294
+ export type QueryCrowdyStudioGitHubStatusArgs = {
8295
+ appId?: InputMaybe<Scalars['BigInt']['input']>;
8296
+ projectId?: InputMaybe<Scalars['String']['input']>;
8297
+ };
8298
+ export type QueryCrowdyStudioGitHubTreeArgs = {
8299
+ input: CrowdyStudioGitHubProjectInput;
8300
+ };
8352
8301
  export type QueryCrowdyStudioLibraryFilesArgs = {
8353
8302
  appId: Scalars['BigInt']['input'];
8354
8303
  includeArchived?: InputMaybe<Scalars['Boolean']['input']>;
@@ -8534,9 +8483,6 @@ export type QueryGridGroupGrantsArgs = {
8534
8483
  gridId: Scalars['BigInt']['input'];
8535
8484
  groupId: Scalars['BigInt']['input'];
8536
8485
  };
8537
- export type QueryGridListingsArgs = {
8538
- appId: Scalars['BigInt']['input'];
8539
- };
8540
8486
  export type QueryGridOwnershipArgs = {
8541
8487
  appId: Scalars['BigInt']['input'];
8542
8488
  gridId: Scalars['BigInt']['input'];
@@ -9229,55 +9175,6 @@ export type SeedPropertyInput = {
9229
9175
  /** Value type of the value being set. */
9230
9176
  valueType: Scalars['String']['input'];
9231
9177
  };
9232
- /** An Account Session for Stripe's EMBEDDED Connect components: the browser initializes Connect.js with the publishable key + this short-lived client secret and mounts the account-onboarding / payouts / balances components INSIDE the platform UI — sellers never leave for a Stripe-hosted page. Re-request on expiry. The hosted-link flow (beginSellerOnboarding) remains the fallback. */
9233
- export type SellerAccountSession = {
9234
- __typename?: 'SellerAccountSession';
9235
- /** The connected account the session is scoped to (provider ref only). */
9236
- accountRef: Scalars['String']['output'];
9237
- /** Short-lived Account Session client secret for Connect.js. */
9238
- clientSecret: Scalars['String']['output'];
9239
- /** When the client secret expires; re-request after this. */
9240
- expiresAt: Maybe<Scalars['DateTime']['output']>;
9241
- /** Whether onboarding is already complete (payouts enabled) — render the payouts/balances components instead of onboarding. */
9242
- onboardingComplete: Scalars['Boolean']['output'];
9243
- /** Stripe publishable key the browser initializes Connect.js with. */
9244
- publishableKey: Maybe<Scalars['String']['output']>;
9245
- };
9246
- /** Result of beginning seller onboarding: the Stripe Connect Express account link the seller opens to finish KYC. */
9247
- export type SellerOnboardingLink = {
9248
- __typename?: 'SellerOnboardingLink';
9249
- /** The Stripe-hosted onboarding URL to open; null when already complete or unavailable in the seller region. */
9250
- onboardingUrl: Maybe<Scalars['String']['output']>;
9251
- /** Current onboarding state. */
9252
- status: SellerOnboardingStatus;
9253
- /** Why onboarding is unavailable (e.g. region unsupported); null otherwise. */
9254
- unavailableReason: Maybe<Scalars['String']['output']>;
9255
- };
9256
- /** A seller (player or org) payout-account state: NONE (never started), PENDING (Stripe Connect Express onboarding incomplete), COMPLETE (payouts enabled), or BLOCKED (provider or platform hold). */
9257
- export declare enum SellerOnboardingStatus {
9258
- Blocked = "BLOCKED",
9259
- Complete = "COMPLETE",
9260
- None = "NONE",
9261
- Pending = "PENDING"
9262
- }
9263
- /** A seller's payout balance (player or org). pending ages through the D6 delay window into payable; reserved is the D6 young-account holdback or a T11 freeze. */
9264
- export type SellerPayoutBalance = {
9265
- __typename?: 'SellerPayoutBalance';
9266
- /** Stripe Connect Express onboarding state. */
9267
- onboardingStatus: SellerOnboardingStatus;
9268
- /** 'user' or 'org'. */
9269
- partyKind: Scalars['String']['output'];
9270
- /** User id or org id. */
9271
- partyRef: Scalars['BigInt']['output'];
9272
- /** Cents aged, unreserved, and withdrawable. */
9273
- payableCents: Scalars['Int']['output'];
9274
- /** Whether payouts are frozen by a T11 review hold. */
9275
- payoutsFrozen: Scalars['Boolean']['output'];
9276
- /** Cents still aging in the delay window. */
9277
- pendingCents: Scalars['Int']['output'];
9278
- /** Cents held back (reserve or T11 freeze). */
9279
- reservedCents: Scalars['Int']['output'];
9280
- };
9281
9178
  /** Accept one bounded human message and queue exactly one serialized run. */
9282
9179
  export type SendAgentMessageInput = {
9283
9180
  /** Current attached client epoch. */
@@ -9624,6 +9521,11 @@ export type SetCrowdyStudioAgentPlatformPolicyInput = {
9624
9521
  /** Optional per-turn limit patch. */
9625
9522
  turnLimits?: InputMaybe<CrowdyStudioAgentTurnLimitsInput>;
9626
9523
  };
9524
+ export type SetCrowdyStudioGitHubAutosaveInput = {
9525
+ appId: Scalars['BigInt']['input'];
9526
+ autosave: Scalars['Boolean']['input'];
9527
+ projectId: Scalars['String']['input'];
9528
+ };
9627
9529
  /** Optimistically archive or restore one caller-owned personal-library file. */
9628
9530
  export type SetCrowdyStudioLibraryFileArchivedInput = {
9629
9531
  /** App tenant that owns the private library entry. */
@@ -9668,24 +9570,6 @@ export type SetGridPermissionLimitsInput = {
9668
9570
  /** The whitelist of permission keys allowed on this grid. Empty array removes all limits (every active grid permission becomes grantable again). Each key must be a known runtime permission key, unique, and at most 64 chars. */
9669
9571
  permissionKeys: Array<Scalars['String']['input']>;
9670
9572
  };
9671
- export type SetListingPricingInput = {
9672
- /** Acquisition mode: 'free', 'buy', 'rent', 'time_limited', or 'cost_limited'. */
9673
- acquisitionMode: Scalars['String']['input'];
9674
- /** App that owns the listing. */
9675
- appId: Scalars['BigInt']['input'];
9676
- /** Whether an acquired license may travel with a grid resale (default false; 07 §5.a). */
9677
- licenseTransferable?: InputMaybe<Scalars['Boolean']['input']>;
9678
- /** UUID of the listing to price. */
9679
- listingId: Scalars['String']['input'];
9680
- /** Price in cents (required for all non-free modes; author-set only). */
9681
- priceCents?: InputMaybe<Scalars['Int']['input']>;
9682
- /** Rent billing interval in days (rent mode). */
9683
- rentIntervalDays?: InputMaybe<Scalars['Int']['input']>;
9684
- /** Compute-unit budget the license grants (cost_limited mode). */
9685
- unitBudget?: InputMaybe<Scalars['BigInt']['input']>;
9686
- /** Single fixed window in days (time_limited mode). */
9687
- windowDays?: InputMaybe<Scalars['Int']['input']>;
9688
- };
9689
9573
  /** Replace a member's roles in a group (the listed roles become their full set). */
9690
9574
  export type SetMemberRolesInput = {
9691
9575
  /** The group (team/channel) id. */
@@ -18090,226 +17974,6 @@ export type MarketplaceSetGridClaimPolicyMutation = {
18090
17974
  __typename?: 'Mutation';
18091
17975
  setAppGridClaimPolicy: GridClaimPolicy;
18092
17976
  };
18093
- export type MarketplaceRenewAcquisitionMutationVariables = Exact<{
18094
- appId: Scalars['BigInt']['input'];
18095
- acquisitionId: Scalars['String']['input'];
18096
- }>;
18097
- export type MarketplaceRenewAcquisitionMutation = {
18098
- __typename?: 'Mutation';
18099
- renewPlayerCodeAcquisition: {
18100
- __typename?: 'PlayerCodeAcquisition';
18101
- acquisitionId: string;
18102
- listingId: string;
18103
- appId: string;
18104
- mode: PlayerCodeAcquisitionMode;
18105
- status: string;
18106
- expiresAt: string | null;
18107
- unitBudget: string | null;
18108
- unitsConsumed: string;
18109
- acquiredAt: string;
18110
- };
18111
- };
18112
- export type MarketplaceTopUpAcquisitionMutationVariables = Exact<{
18113
- appId: Scalars['BigInt']['input'];
18114
- acquisitionId: Scalars['String']['input'];
18115
- }>;
18116
- export type MarketplaceTopUpAcquisitionMutation = {
18117
- __typename?: 'Mutation';
18118
- topUpPlayerCodeAcquisition: {
18119
- __typename?: 'PlayerCodeAcquisition';
18120
- acquisitionId: string;
18121
- listingId: string;
18122
- appId: string;
18123
- mode: PlayerCodeAcquisitionMode;
18124
- status: string;
18125
- expiresAt: string | null;
18126
- unitBudget: string | null;
18127
- unitsConsumed: string;
18128
- acquiredAt: string;
18129
- };
18130
- };
18131
- export type MarketplaceRefundAcquisitionMutationVariables = Exact<{
18132
- appId: Scalars['BigInt']['input'];
18133
- acquisitionId: Scalars['String']['input'];
18134
- }>;
18135
- export type MarketplaceRefundAcquisitionMutation = {
18136
- __typename?: 'Mutation';
18137
- refundPlayerCodeAcquisition: number;
18138
- };
18139
- export type MarketplaceGridListingsQueryVariables = Exact<{
18140
- appId: Scalars['BigInt']['input'];
18141
- }>;
18142
- export type MarketplaceGridListingsQuery = {
18143
- __typename?: 'Query';
18144
- gridListings: Array<{
18145
- __typename?: 'GridListing';
18146
- gridListingId: string;
18147
- appId: string;
18148
- kind: string;
18149
- name: string;
18150
- description: string;
18151
- priceCents: number;
18152
- conferredPermissionKeys: Array<string>;
18153
- resalePolicy: string;
18154
- }>;
18155
- };
18156
- export type MarketplacePurchaseGridMutationVariables = Exact<{
18157
- appId: Scalars['BigInt']['input'];
18158
- gridListingId: Scalars['String']['input'];
18159
- chunkX?: InputMaybe<Scalars['Int']['input']>;
18160
- chunkY?: InputMaybe<Scalars['Int']['input']>;
18161
- chunkZ?: InputMaybe<Scalars['Int']['input']>;
18162
- }>;
18163
- export type MarketplacePurchaseGridMutation = {
18164
- __typename?: 'Mutation';
18165
- purchaseGrid: {
18166
- __typename?: 'GridPurchaseResult';
18167
- gridId: string;
18168
- ownershipAssigned: boolean;
18169
- };
18170
- };
18171
- export type MarketplaceSetListingPricingMutationVariables = Exact<{
18172
- input: SetListingPricingInput;
18173
- }>;
18174
- export type MarketplaceSetListingPricingMutation = {
18175
- __typename?: 'Mutation';
18176
- setListingPricing: boolean;
18177
- };
18178
- export type MarketplaceSetOrgShareMutationVariables = Exact<{
18179
- appId: Scalars['BigInt']['input'];
18180
- bps: Scalars['Int']['input'];
18181
- }>;
18182
- export type MarketplaceSetOrgShareMutation = {
18183
- __typename?: 'Mutation';
18184
- setAppMarketplaceOrgShare: number;
18185
- };
18186
- export type MarketplaceBeginSellerOnboardingMutationVariables = Exact<{
18187
- country: Scalars['String']['input'];
18188
- }>;
18189
- export type MarketplaceBeginSellerOnboardingMutation = {
18190
- __typename?: 'Mutation';
18191
- beginSellerOnboarding: {
18192
- __typename?: 'SellerOnboardingLink';
18193
- status: SellerOnboardingStatus;
18194
- onboardingUrl: string | null;
18195
- unavailableReason: string | null;
18196
- };
18197
- };
18198
- export type MarketplaceCreateAccountSessionMutationVariables = Exact<{
18199
- country: Scalars['String']['input'];
18200
- }>;
18201
- export type MarketplaceCreateAccountSessionMutation = {
18202
- __typename?: 'Mutation';
18203
- createSellerAccountSession: {
18204
- __typename?: 'SellerAccountSession';
18205
- clientSecret: string;
18206
- publishableKey: string | null;
18207
- accountRef: string;
18208
- onboardingComplete: boolean;
18209
- expiresAt: string | null;
18210
- };
18211
- };
18212
- export type MarketplaceCreateOrgAccountSessionMutationVariables = Exact<{
18213
- orgId: Scalars['BigInt']['input'];
18214
- country: Scalars['String']['input'];
18215
- }>;
18216
- export type MarketplaceCreateOrgAccountSessionMutation = {
18217
- __typename?: 'Mutation';
18218
- createOrgSellerAccountSession: {
18219
- __typename?: 'SellerAccountSession';
18220
- clientSecret: string;
18221
- publishableKey: string | null;
18222
- accountRef: string;
18223
- onboardingComplete: boolean;
18224
- expiresAt: string | null;
18225
- };
18226
- };
18227
- export type MarketplaceBeginOrgSellerOnboardingMutationVariables = Exact<{
18228
- orgId: Scalars['BigInt']['input'];
18229
- country: Scalars['String']['input'];
18230
- }>;
18231
- export type MarketplaceBeginOrgSellerOnboardingMutation = {
18232
- __typename?: 'Mutation';
18233
- beginOrgSellerOnboarding: {
18234
- __typename?: 'SellerOnboardingLink';
18235
- status: SellerOnboardingStatus;
18236
- onboardingUrl: string | null;
18237
- unavailableReason: string | null;
18238
- };
18239
- };
18240
- export type MarketplaceMySellerBalanceQueryVariables = Exact<{
18241
- [key: string]: never;
18242
- }>;
18243
- export type MarketplaceMySellerBalanceQuery = {
18244
- __typename?: 'Query';
18245
- mySellerPayoutBalance: {
18246
- __typename?: 'SellerPayoutBalance';
18247
- partyKind: string;
18248
- partyRef: string;
18249
- pendingCents: number;
18250
- payableCents: number;
18251
- reservedCents: number;
18252
- onboardingStatus: SellerOnboardingStatus;
18253
- payoutsFrozen: boolean;
18254
- };
18255
- };
18256
- export type MarketplaceRequestPayoutMutationVariables = Exact<{
18257
- [key: string]: never;
18258
- }>;
18259
- export type MarketplaceRequestPayoutMutation = {
18260
- __typename?: 'Mutation';
18261
- requestSellerPayout: number;
18262
- };
18263
- export type MarketplaceSpendPayoutToWalletMutationVariables = Exact<{
18264
- amountCents: Scalars['Int']['input'];
18265
- }>;
18266
- export type MarketplaceSpendPayoutToWalletMutation = {
18267
- __typename?: 'Mutation';
18268
- spendPayoutBalanceToWallet: number;
18269
- };
18270
- export type MarketplaceCommerceRiskQueueQueryVariables = Exact<{
18271
- appId: Scalars['BigInt']['input'];
18272
- }>;
18273
- export type MarketplaceCommerceRiskQueueQuery = {
18274
- __typename?: 'Query';
18275
- commerceRiskQueue: Array<{
18276
- __typename?: 'CommerceRiskFlag';
18277
- flagId: string;
18278
- appId: string;
18279
- kind: string;
18280
- orderId: string | null;
18281
- subjectKind: string;
18282
- subjectRef: string;
18283
- detail: string | null;
18284
- status: string;
18285
- createdAt: string;
18286
- }>;
18287
- };
18288
- export type MarketplaceDecideRiskFlagMutationVariables = Exact<{
18289
- appId: Scalars['BigInt']['input'];
18290
- flagId: Scalars['String']['input'];
18291
- release: Scalars['Boolean']['input'];
18292
- }>;
18293
- export type MarketplaceDecideRiskFlagMutation = {
18294
- __typename?: 'Mutation';
18295
- decideCommerceRiskFlag: boolean;
18296
- };
18297
- export type MarketplaceCreateGridListingMutationVariables = Exact<{
18298
- input: CreateGridListingInput;
18299
- }>;
18300
- export type MarketplaceCreateGridListingMutation = {
18301
- __typename?: 'Mutation';
18302
- createGridListing: {
18303
- __typename?: 'GridListing';
18304
- gridListingId: string;
18305
- appId: string;
18306
- kind: string;
18307
- name: string;
18308
- priceCents: number;
18309
- resalePolicy: string;
18310
- status: string | null;
18311
- };
18312
- };
18313
17977
  export type CreateOrgRoleMutationVariables = Exact<{
18314
17978
  input: CreateOrgRoleInput;
18315
17979
  }>;
@@ -21492,23 +21156,6 @@ export declare const MarketplaceAppAcquisitionsDocument: DocumentNode<Marketplac
21492
21156
  export declare const MarketplaceTransferListingDocument: DocumentNode<MarketplaceTransferListingMutation, MarketplaceTransferListingMutationVariables>;
21493
21157
  export declare const MarketplaceSetListingStatusDocument: DocumentNode<MarketplaceSetListingStatusMutation, MarketplaceSetListingStatusMutationVariables>;
21494
21158
  export declare const MarketplaceSetGridClaimPolicyDocument: DocumentNode<MarketplaceSetGridClaimPolicyMutation, MarketplaceSetGridClaimPolicyMutationVariables>;
21495
- export declare const MarketplaceRenewAcquisitionDocument: DocumentNode<MarketplaceRenewAcquisitionMutation, MarketplaceRenewAcquisitionMutationVariables>;
21496
- export declare const MarketplaceTopUpAcquisitionDocument: DocumentNode<MarketplaceTopUpAcquisitionMutation, MarketplaceTopUpAcquisitionMutationVariables>;
21497
- export declare const MarketplaceRefundAcquisitionDocument: DocumentNode<MarketplaceRefundAcquisitionMutation, MarketplaceRefundAcquisitionMutationVariables>;
21498
- export declare const MarketplaceGridListingsDocument: DocumentNode<MarketplaceGridListingsQuery, MarketplaceGridListingsQueryVariables>;
21499
- export declare const MarketplacePurchaseGridDocument: DocumentNode<MarketplacePurchaseGridMutation, MarketplacePurchaseGridMutationVariables>;
21500
- export declare const MarketplaceSetListingPricingDocument: DocumentNode<MarketplaceSetListingPricingMutation, MarketplaceSetListingPricingMutationVariables>;
21501
- export declare const MarketplaceSetOrgShareDocument: DocumentNode<MarketplaceSetOrgShareMutation, MarketplaceSetOrgShareMutationVariables>;
21502
- export declare const MarketplaceBeginSellerOnboardingDocument: DocumentNode<MarketplaceBeginSellerOnboardingMutation, MarketplaceBeginSellerOnboardingMutationVariables>;
21503
- export declare const MarketplaceCreateAccountSessionDocument: DocumentNode<MarketplaceCreateAccountSessionMutation, MarketplaceCreateAccountSessionMutationVariables>;
21504
- export declare const MarketplaceCreateOrgAccountSessionDocument: DocumentNode<MarketplaceCreateOrgAccountSessionMutation, MarketplaceCreateOrgAccountSessionMutationVariables>;
21505
- export declare const MarketplaceBeginOrgSellerOnboardingDocument: DocumentNode<MarketplaceBeginOrgSellerOnboardingMutation, MarketplaceBeginOrgSellerOnboardingMutationVariables>;
21506
- export declare const MarketplaceMySellerBalanceDocument: DocumentNode<MarketplaceMySellerBalanceQuery, MarketplaceMySellerBalanceQueryVariables>;
21507
- export declare const MarketplaceRequestPayoutDocument: DocumentNode<MarketplaceRequestPayoutMutation, MarketplaceRequestPayoutMutationVariables>;
21508
- export declare const MarketplaceSpendPayoutToWalletDocument: DocumentNode<MarketplaceSpendPayoutToWalletMutation, MarketplaceSpendPayoutToWalletMutationVariables>;
21509
- export declare const MarketplaceCommerceRiskQueueDocument: DocumentNode<MarketplaceCommerceRiskQueueQuery, MarketplaceCommerceRiskQueueQueryVariables>;
21510
- export declare const MarketplaceDecideRiskFlagDocument: DocumentNode<MarketplaceDecideRiskFlagMutation, MarketplaceDecideRiskFlagMutationVariables>;
21511
- export declare const MarketplaceCreateGridListingDocument: DocumentNode<MarketplaceCreateGridListingMutation, MarketplaceCreateGridListingMutationVariables>;
21512
21159
  export declare const CreateOrgRoleDocument: DocumentNode<CreateOrgRoleMutation, CreateOrgRoleMutationVariables>;
21513
21160
  export declare const CreateOrgTokenDocument: DocumentNode<CreateOrgTokenMutation, CreateOrgTokenMutationVariables>;
21514
21161
  export declare const CreateOrganizationDocument: DocumentNode<CreateOrganizationMutation, CreateOrganizationMutationVariables>;