@crowdedkingdoms/crowdyjs 18.9.0-test.1 → 18.10.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.
@@ -33,6 +33,22 @@ export type Scalars = {
33
33
  output: string;
34
34
  };
35
35
  };
36
+ /** A platform-wide block on an account, set by a super-admin. While it holds, every sign-in and every authenticated request is refused with ACCOUNT_BLOCKED, on CK and on Crowd Altar, and every session, realtime connection and ck-exec socket the account had was ended when it was set. The last block stays readable after it is lifted or lapses. */
37
+ export type AccountBlock = {
38
+ __typename?: 'AccountBlock';
39
+ /** Whether the block holds now. */
40
+ blocked: Scalars['Boolean']['output'];
41
+ /** When the last block was set; null if the account was never blocked. */
42
+ blockedAt: Maybe<Scalars['DateTime']['output']>;
43
+ /** The super-admin who set it. */
44
+ blockedBy: Maybe<Scalars['BigInt']['output']>;
45
+ /** When it lapses (or was lifted); null while it lasts until lifted. */
46
+ blockedUntil: Maybe<Scalars['DateTime']['output']>;
47
+ /** Why, as the super-admin wrote it. */
48
+ reason: Maybe<Scalars['String']['output']>;
49
+ /** The account. */
50
+ userId: Scalars['BigInt']['output'];
51
+ };
36
52
  export type Actor = {
37
53
  __typename?: 'Actor';
38
54
  /** App (game) this actor belongs to. BigInt serialized as a decimal string. */
@@ -4546,10 +4562,16 @@ export type Mutation = {
4546
4562
  assignGroupToGrid: Array<GridGroupGrant>;
4547
4563
  /** 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. */
4548
4564
  authorizeApp: AppAuthorizationGrant;
4565
+ /** Ban a user from a channel: their membership (or a new row, for someone not yet in it) becomes 'banned', their roles go, Buddy stops routing the channel to and from them, and joining, requesting to join and being added are refused with GROUP_MEMBER_BANNED until unbanChannelMember. Leaving or removing does not lift a ban. Requires the 'manage_members' channel permission (app admins bypass). Never the channel's owner, never yourself. */
4566
+ banChannelMember: GroupMember;
4567
+ /** Ban a user from a team: their membership (or a new row, for someone not yet in it) becomes 'banned' and their roles go, and joining, requesting to join and being added are refused with GROUP_MEMBER_BANNED until unbanTeamMember. Leaving or removing does not lift a ban. Requires the 'manage_members' team permission (app admins bypass). Never the team's owner, never yourself. */
4568
+ banTeamMember: GroupMember;
4549
4569
  /** Declare a publish: the full manifest of the built bundle (path, size, SHA-256 per file; index.html at the root). Validates it as a whole (HOSTED_MANIFEST_INVALID names every problem), records a STAGING publish, and returns one presigned PUT per file. Upload every file with exactly the returned headers, then call completeGamePublish. Rate-limited per app. Requires manage_apps and a SESSION token. */
4550
4570
  beginGamePublish: BeginGamePublishResult;
4551
4571
  /** 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. */
4552
4572
  beginPlayerCardSetup: PlayerCardSetup;
4573
+ /** ADMIN/DESTRUCTIVE: blocks an account platform-wide. Every session and app token it holds is revoked, its realtime sessions and ck-exec sockets (developer sessions too) end in every datacenter, its mods stop, and every later sign-in and request, on CK and on Crowd Altar, is refused with ACCOUNT_BLOCKED until `until` (or until unblockAccount when absent). Not yourself, not a super-admin. Requires a super-admin bearer game token. */
4574
+ blockAccount: AccountBlock;
4553
4575
  /** 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. */
4554
4576
  cancelSharedSubscription: AppSharedSubscription;
4555
4577
  /** 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. */
@@ -4920,6 +4942,12 @@ export type Mutation = {
4920
4942
  transferGridOwnership: GridOwnership;
4921
4943
  /** 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. */
4922
4944
  transferPlayerCodeListing: PlayerCodeListing;
4945
+ /** Lift a channel ban, so the user may join or be added again (nothing is restored). Requires the 'manage_members' channel permission (app admins bypass). Returns true if there was a ban. */
4946
+ unbanChannelMember: Scalars['Boolean']['output'];
4947
+ /** Lift a team ban, so the user may join or be added again (nothing is restored). Requires the 'manage_members' team permission (app admins bypass). Returns true if there was a ban. */
4948
+ unbanTeamMember: Scalars['Boolean']['output'];
4949
+ /** ADMIN: lifts an account block now. Nothing is restored; the account signs in again. The last block stays readable through accountBlock. Requires a super-admin bearer game token. */
4950
+ unblockAccount: AccountBlock;
4923
4951
  /** Unlink a federated identity from the signed-in account by identityId. Refuses to remove your last remaining sign-in method. Requires a session token. */
4924
4952
  unlinkIdentity: Scalars['Boolean']['output'];
4925
4953
  /** Lift a user's suspension (suspendAppAccess) before it lapses. A no-op for a user who is not suspended. Requires the 'manage_access_tiers' permission on the app; super admins bypass. */
@@ -5007,9 +5035,24 @@ export type MutationAssignGroupToGridArgs = {
5007
5035
  export type MutationAuthorizeAppArgs = {
5008
5036
  input: AuthorizeAppInput;
5009
5037
  };
5038
+ export type MutationBanChannelMemberArgs = {
5039
+ groupId: Scalars['BigInt']['input'];
5040
+ reason?: InputMaybe<Scalars['String']['input']>;
5041
+ userId: Scalars['BigInt']['input'];
5042
+ };
5043
+ export type MutationBanTeamMemberArgs = {
5044
+ groupId: Scalars['BigInt']['input'];
5045
+ reason?: InputMaybe<Scalars['String']['input']>;
5046
+ userId: Scalars['BigInt']['input'];
5047
+ };
5010
5048
  export type MutationBeginGamePublishArgs = {
5011
5049
  input: BeginGamePublishInput;
5012
5050
  };
5051
+ export type MutationBlockAccountArgs = {
5052
+ reason: Scalars['String']['input'];
5053
+ until?: InputMaybe<Scalars['DateTime']['input']>;
5054
+ userId: Scalars['BigInt']['input'];
5055
+ };
5013
5056
  export type MutationCancelSharedSubscriptionArgs = {
5014
5057
  appId: Scalars['BigInt']['input'];
5015
5058
  idempotencyKey?: InputMaybe<Scalars['String']['input']>;
@@ -5668,6 +5711,17 @@ export type MutationTransferGridOwnershipArgs = {
5668
5711
  export type MutationTransferPlayerCodeListingArgs = {
5669
5712
  input: TransferPlayerCodeListingInput;
5670
5713
  };
5714
+ export type MutationUnbanChannelMemberArgs = {
5715
+ groupId: Scalars['BigInt']['input'];
5716
+ userId: Scalars['BigInt']['input'];
5717
+ };
5718
+ export type MutationUnbanTeamMemberArgs = {
5719
+ groupId: Scalars['BigInt']['input'];
5720
+ userId: Scalars['BigInt']['input'];
5721
+ };
5722
+ export type MutationUnblockAccountArgs = {
5723
+ userId: Scalars['BigInt']['input'];
5724
+ };
5671
5725
  export type MutationUnlinkIdentityArgs = {
5672
5726
  identityId: Scalars['String']['input'];
5673
5727
  };
@@ -6564,6 +6618,8 @@ export type PublishFileInput = {
6564
6618
  };
6565
6619
  export type Query = {
6566
6620
  __typename?: 'Query';
6621
+ /** ADMIN: the target account's platform-wide block: whether it holds now, and the last one set (who, when, why, until). Requires a super-admin bearer game token. */
6622
+ accountBlock: AccountBlock;
6567
6623
  /** List only healthy GraphQL API servers (status = ReadyForClients) for client routing/discovery. No authentication required. */
6568
6624
  activeGraphQLServers: Array<GraphQlServer>;
6569
6625
  /** Fetches a single actor by its 32-character ASCII `uuid`. Game-plane: requires an app token for the actor’s app (a session token or another app’s token is answered NotFound, the same as a missing id). Owner-aware: the owner receives full state; non-owners receive a public copy with `privateState` stripped (null). */
@@ -6956,6 +7012,9 @@ export type Query = {
6956
7012
  /** Lists the organization's wallet transactions (credits and debits), ordered newest first. Use it to audit how the balance changed over time. Requires the 'view_billing' org permission. Relay cursor connection; prefer this over the offset-based walletTransactions. */
6957
7013
  walletTransactionsConnection: WalletTransactionsConnection;
6958
7014
  };
7015
+ export type QueryAccountBlockArgs = {
7016
+ userId: Scalars['BigInt']['input'];
7017
+ };
6959
7018
  export type QueryActorArgs = {
6960
7019
  uuid: Scalars['String']['input'];
6961
7020
  };