@crowdedkingdomstudios/crowdyjs 5.0.0 → 5.1.0

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.
@@ -1663,6 +1663,12 @@ export type JoinSessionInput = {
1663
1663
  role?: InputMaybe<Scalars['String']['input']>;
1664
1664
  sessionId: Scalars['String']['input'];
1665
1665
  };
1666
+ export type LinkAppToEnvironmentInput = {
1667
+ appId: Scalars['BigInt']['input'];
1668
+ /** Environment slug (cks_environments.slug) to link the app to. */
1669
+ environmentSlug: Scalars['String']['input'];
1670
+ orgId: Scalars['BigInt']['input'];
1671
+ };
1666
1672
  export type ListVoxelUpdatesByDistanceInput = {
1667
1673
  appId: Scalars['BigInt']['input'];
1668
1674
  centerCoordinate: ChunkCoordinatesInput;
@@ -1776,6 +1782,8 @@ export type Mutation = {
1776
1782
  leaveChannel: Scalars['Boolean']['output'];
1777
1783
  /** Leave a team. */
1778
1784
  leaveTeam: Scalars['Boolean']['output'];
1785
+ /** Links an unlinked app to an existing environment for split-mode routing. Refuses shared apps and apps already linked elsewhere. */
1786
+ linkAppToEnvironment: App;
1779
1787
  login: AuthResponse;
1780
1788
  logout: Scalars['Boolean']['output'];
1781
1789
  logoutAllDevices: Scalars['Boolean']['output'];
@@ -2067,6 +2075,9 @@ export type MutationLeaveChannelArgs = {
2067
2075
  export type MutationLeaveTeamArgs = {
2068
2076
  groupId: Scalars['BigInt']['input'];
2069
2077
  };
2078
+ export type MutationLinkAppToEnvironmentArgs = {
2079
+ input: LinkAppToEnvironmentInput;
2080
+ };
2070
2081
  export type MutationLoginArgs = {
2071
2082
  loginUserInput: LoginUserInput;
2072
2083
  };
@@ -2551,6 +2562,7 @@ export type Query = {
2551
2562
  environmentDatacenters: Array<CksOvhDatacenter>;
2552
2563
  /** Customer-selectable instance flavors in the datacenter with current availability and customer pricing. */
2553
2564
  environmentFlavors: Array<CksOvhFlavor>;
2565
+ environmentForwardVersions: Array<CksEnvironmentVersion>;
2554
2566
  /** Pricing quote for the selected flavors. Fails if any flavor is unavailable, hidden, or lacks customer pricing. */
2555
2567
  environmentQuote: CksEnvironmentQuote;
2556
2568
  /** Per-app usage totals for apps linked to an environment. */
@@ -2786,6 +2798,10 @@ export type QueryEffectiveQuotaArgs = {
2786
2798
  export type QueryEnvironmentFlavorsArgs = {
2787
2799
  datacenter: Scalars['String']['input'];
2788
2800
  };
2801
+ export type QueryEnvironmentForwardVersionsArgs = {
2802
+ orgId: Scalars['BigInt']['input'];
2803
+ slug: Scalars['String']['input'];
2804
+ };
2789
2805
  export type QueryEnvironmentQuoteArgs = {
2790
2806
  input: EnvironmentQuoteInput;
2791
2807
  };
@@ -3028,6 +3044,7 @@ export type RedeployEnvironmentInput = {
3028
3044
  deployMode?: InputMaybe<RedeployDeployMode>;
3029
3045
  orgId: Scalars['BigInt']['input'];
3030
3046
  slug: Scalars['String']['input'];
3047
+ version?: InputMaybe<Scalars['String']['input']>;
3031
3048
  };
3032
3049
  export type RegisterUserInput = {
3033
3050
  email: Scalars['String']['input'];
@@ -3328,15 +3345,9 @@ export type SingleActorMessageNotification = {
3328
3345
  };
3329
3346
  export type Subscription = {
3330
3347
  __typename?: 'Subscription';
3331
- /** Realtime stream of successful function-invocation events for an app, optionally narrowed to one session. Backed by Postgres NOTIFY so it fans out across game-api replicas without Buddy. Poll gameModelEvents if you prefer pull-based delivery. */
3332
- gameModelEventStream: Maybe<GmEvent>;
3333
3348
  /** Downlink from the game server (responses, notifications, GenericErrorResponse, and RealtimeConnectionEvent). On subscribe, opens a UDP proxy session if none exists (least-loaded server). Connection failures are delivered as RealtimeConnectionEvent. Unsubscribing stops delivery only; call disconnectUdpProxy to release the session. */
3334
3349
  udpNotifications: Maybe<UdpNotification>;
3335
3350
  };
3336
- export type SubscriptionGameModelEventStreamArgs = {
3337
- appId: Scalars['BigInt']['input'];
3338
- sessionId?: InputMaybe<Scalars['String']['input']>;
3339
- };
3340
3351
  export type TeleportRequestInput = {
3341
3352
  appId: Scalars['BigInt']['input'];
3342
3353
  chunkAddress: ChunkCoordinatesInput;
@@ -6122,6 +6133,332 @@ export type UserAppStatesQuery = {
6122
6133
  updatedAt: string;
6123
6134
  }>;
6124
6135
  };
6136
+ export type AddTeamMemberMutationVariables = Exact<{
6137
+ groupId: Scalars['BigInt']['input'];
6138
+ userId: Scalars['BigInt']['input'];
6139
+ }>;
6140
+ export type AddTeamMemberMutation = {
6141
+ __typename?: 'Mutation';
6142
+ addTeamMember: {
6143
+ __typename?: 'GroupMember';
6144
+ groupMemberId: string;
6145
+ groupId: string;
6146
+ userId: string;
6147
+ status: string;
6148
+ createdAt: string;
6149
+ roles: Array<{
6150
+ __typename?: 'GroupRole';
6151
+ groupRoleId: string;
6152
+ roleName: string;
6153
+ rank: number;
6154
+ isSystem: boolean;
6155
+ permissions: Array<string>;
6156
+ }>;
6157
+ };
6158
+ };
6159
+ export type CreateTeamMutationVariables = Exact<{
6160
+ input: CreateTeamInput;
6161
+ }>;
6162
+ export type CreateTeamMutation = {
6163
+ __typename?: 'Mutation';
6164
+ createTeam: {
6165
+ __typename?: 'Group';
6166
+ groupId: string;
6167
+ appId: string;
6168
+ groupType: string;
6169
+ name: string;
6170
+ description: string | null;
6171
+ ownerUserId: string | null;
6172
+ membershipPolicy: string;
6173
+ status: string;
6174
+ defaultRoleId: string | null;
6175
+ createdAt: string;
6176
+ };
6177
+ };
6178
+ export type CreateTeamRoleMutationVariables = Exact<{
6179
+ input: CreateGroupRoleInput;
6180
+ }>;
6181
+ export type CreateTeamRoleMutation = {
6182
+ __typename?: 'Mutation';
6183
+ createTeamRole: {
6184
+ __typename?: 'GroupRole';
6185
+ groupRoleId: string;
6186
+ groupId: string;
6187
+ roleName: string;
6188
+ rank: number;
6189
+ isSystem: boolean;
6190
+ permissions: Array<string>;
6191
+ createdAt: string;
6192
+ };
6193
+ };
6194
+ export type DeleteTeamMutationVariables = Exact<{
6195
+ groupId: Scalars['BigInt']['input'];
6196
+ }>;
6197
+ export type DeleteTeamMutation = {
6198
+ __typename?: 'Mutation';
6199
+ deleteTeam: boolean;
6200
+ };
6201
+ export type DeleteTeamRoleMutationVariables = Exact<{
6202
+ groupRoleId: Scalars['BigInt']['input'];
6203
+ }>;
6204
+ export type DeleteTeamRoleMutation = {
6205
+ __typename?: 'Mutation';
6206
+ deleteTeamRole: boolean;
6207
+ };
6208
+ export type JoinTeamMutationVariables = Exact<{
6209
+ groupId: Scalars['BigInt']['input'];
6210
+ }>;
6211
+ export type JoinTeamMutation = {
6212
+ __typename?: 'Mutation';
6213
+ joinTeam: {
6214
+ __typename?: 'GroupMember';
6215
+ groupMemberId: string;
6216
+ groupId: string;
6217
+ userId: string;
6218
+ status: string;
6219
+ createdAt: string;
6220
+ roles: Array<{
6221
+ __typename?: 'GroupRole';
6222
+ groupRoleId: string;
6223
+ roleName: string;
6224
+ rank: number;
6225
+ isSystem: boolean;
6226
+ permissions: Array<string>;
6227
+ }>;
6228
+ };
6229
+ };
6230
+ export type LeaveTeamMutationVariables = Exact<{
6231
+ groupId: Scalars['BigInt']['input'];
6232
+ }>;
6233
+ export type LeaveTeamMutation = {
6234
+ __typename?: 'Mutation';
6235
+ leaveTeam: boolean;
6236
+ };
6237
+ export type MyTeamsQueryVariables = Exact<{
6238
+ appId: Scalars['BigInt']['input'];
6239
+ }>;
6240
+ export type MyTeamsQuery = {
6241
+ __typename?: 'Query';
6242
+ myTeams: Array<{
6243
+ __typename?: 'GroupMembership';
6244
+ permissions: Array<string>;
6245
+ joinedAt: string;
6246
+ group: {
6247
+ __typename?: 'Group';
6248
+ groupId: string;
6249
+ appId: string;
6250
+ groupType: string;
6251
+ name: string;
6252
+ description: string | null;
6253
+ ownerUserId: string | null;
6254
+ membershipPolicy: string;
6255
+ status: string;
6256
+ defaultRoleId: string | null;
6257
+ createdAt: string;
6258
+ };
6259
+ roles: Array<{
6260
+ __typename?: 'GroupRole';
6261
+ groupRoleId: string;
6262
+ roleName: string;
6263
+ rank: number;
6264
+ isSystem: boolean;
6265
+ permissions: Array<string>;
6266
+ }>;
6267
+ }>;
6268
+ };
6269
+ export type RemoveTeamMemberMutationVariables = Exact<{
6270
+ groupId: Scalars['BigInt']['input'];
6271
+ userId: Scalars['BigInt']['input'];
6272
+ }>;
6273
+ export type RemoveTeamMemberMutation = {
6274
+ __typename?: 'Mutation';
6275
+ removeTeamMember: boolean;
6276
+ };
6277
+ export type RequestToJoinTeamMutationVariables = Exact<{
6278
+ groupId: Scalars['BigInt']['input'];
6279
+ }>;
6280
+ export type RequestToJoinTeamMutation = {
6281
+ __typename?: 'Mutation';
6282
+ requestToJoinTeam: {
6283
+ __typename?: 'GroupMember';
6284
+ groupMemberId: string;
6285
+ groupId: string;
6286
+ userId: string;
6287
+ status: string;
6288
+ createdAt: string;
6289
+ roles: Array<{
6290
+ __typename?: 'GroupRole';
6291
+ groupRoleId: string;
6292
+ roleName: string;
6293
+ rank: number;
6294
+ isSystem: boolean;
6295
+ permissions: Array<string>;
6296
+ }>;
6297
+ };
6298
+ };
6299
+ export type SetTeamMemberRolesMutationVariables = Exact<{
6300
+ input: SetMemberRolesInput;
6301
+ }>;
6302
+ export type SetTeamMemberRolesMutation = {
6303
+ __typename?: 'Mutation';
6304
+ setTeamMemberRoles: {
6305
+ __typename?: 'GroupMember';
6306
+ groupMemberId: string;
6307
+ groupId: string;
6308
+ userId: string;
6309
+ status: string;
6310
+ createdAt: string;
6311
+ roles: Array<{
6312
+ __typename?: 'GroupRole';
6313
+ groupRoleId: string;
6314
+ roleName: string;
6315
+ rank: number;
6316
+ isSystem: boolean;
6317
+ permissions: Array<string>;
6318
+ }>;
6319
+ };
6320
+ };
6321
+ export type SetTeamPolicyMutationVariables = Exact<{
6322
+ input: SetTeamPolicyInput;
6323
+ }>;
6324
+ export type SetTeamPolicyMutation = {
6325
+ __typename?: 'Mutation';
6326
+ setTeamPolicy: {
6327
+ __typename?: 'AppGroupPolicy';
6328
+ appId: string;
6329
+ groupType: string;
6330
+ creationPolicy: string;
6331
+ defaultMembershipPolicy: string;
6332
+ maxMembers: number | null;
6333
+ maxGroupsPerUser: number | null;
6334
+ };
6335
+ };
6336
+ export type TeamQueryVariables = Exact<{
6337
+ groupId: Scalars['BigInt']['input'];
6338
+ }>;
6339
+ export type TeamQuery = {
6340
+ __typename?: 'Query';
6341
+ team: {
6342
+ __typename?: 'Group';
6343
+ groupId: string;
6344
+ appId: string;
6345
+ groupType: string;
6346
+ name: string;
6347
+ description: string | null;
6348
+ ownerUserId: string | null;
6349
+ membershipPolicy: string;
6350
+ status: string;
6351
+ defaultRoleId: string | null;
6352
+ createdAt: string;
6353
+ };
6354
+ };
6355
+ export type TeamMembersQueryVariables = Exact<{
6356
+ groupId: Scalars['BigInt']['input'];
6357
+ }>;
6358
+ export type TeamMembersQuery = {
6359
+ __typename?: 'Query';
6360
+ teamMembers: Array<{
6361
+ __typename?: 'GroupMember';
6362
+ groupMemberId: string;
6363
+ groupId: string;
6364
+ userId: string;
6365
+ status: string;
6366
+ createdAt: string;
6367
+ roles: Array<{
6368
+ __typename?: 'GroupRole';
6369
+ groupRoleId: string;
6370
+ roleName: string;
6371
+ rank: number;
6372
+ isSystem: boolean;
6373
+ permissions: Array<string>;
6374
+ }>;
6375
+ }>;
6376
+ };
6377
+ export type TeamPolicyQueryVariables = Exact<{
6378
+ appId: Scalars['BigInt']['input'];
6379
+ }>;
6380
+ export type TeamPolicyQuery = {
6381
+ __typename?: 'Query';
6382
+ teamPolicy: {
6383
+ __typename?: 'AppGroupPolicy';
6384
+ appId: string;
6385
+ groupType: string;
6386
+ creationPolicy: string;
6387
+ defaultMembershipPolicy: string;
6388
+ maxMembers: number | null;
6389
+ maxGroupsPerUser: number | null;
6390
+ };
6391
+ };
6392
+ export type TeamRolesQueryVariables = Exact<{
6393
+ groupId: Scalars['BigInt']['input'];
6394
+ }>;
6395
+ export type TeamRolesQuery = {
6396
+ __typename?: 'Query';
6397
+ teamRoles: Array<{
6398
+ __typename?: 'GroupRole';
6399
+ groupRoleId: string;
6400
+ groupId: string;
6401
+ roleName: string;
6402
+ rank: number;
6403
+ isSystem: boolean;
6404
+ permissions: Array<string>;
6405
+ createdAt: string;
6406
+ }>;
6407
+ };
6408
+ export type TeamsQueryVariables = Exact<{
6409
+ appId: Scalars['BigInt']['input'];
6410
+ }>;
6411
+ export type TeamsQuery = {
6412
+ __typename?: 'Query';
6413
+ teams: Array<{
6414
+ __typename?: 'Group';
6415
+ groupId: string;
6416
+ appId: string;
6417
+ groupType: string;
6418
+ name: string;
6419
+ description: string | null;
6420
+ ownerUserId: string | null;
6421
+ membershipPolicy: string;
6422
+ status: string;
6423
+ defaultRoleId: string | null;
6424
+ createdAt: string;
6425
+ }>;
6426
+ };
6427
+ export type UpdateTeamMutationVariables = Exact<{
6428
+ input: UpdateTeamInput;
6429
+ }>;
6430
+ export type UpdateTeamMutation = {
6431
+ __typename?: 'Mutation';
6432
+ updateTeam: {
6433
+ __typename?: 'Group';
6434
+ groupId: string;
6435
+ appId: string;
6436
+ groupType: string;
6437
+ name: string;
6438
+ description: string | null;
6439
+ ownerUserId: string | null;
6440
+ membershipPolicy: string;
6441
+ status: string;
6442
+ defaultRoleId: string | null;
6443
+ createdAt: string;
6444
+ };
6445
+ };
6446
+ export type UpdateTeamRoleMutationVariables = Exact<{
6447
+ input: UpdateGroupRoleInput;
6448
+ }>;
6449
+ export type UpdateTeamRoleMutation = {
6450
+ __typename?: 'Mutation';
6451
+ updateTeamRole: {
6452
+ __typename?: 'GroupRole';
6453
+ groupRoleId: string;
6454
+ groupId: string;
6455
+ roleName: string;
6456
+ rank: number;
6457
+ isSystem: boolean;
6458
+ permissions: Array<string>;
6459
+ createdAt: string;
6460
+ };
6461
+ };
6125
6462
  export type TeleportRequestMutationVariables = Exact<{
6126
6463
  input: TeleportRequestInput;
6127
6464
  }>;
@@ -6782,6 +7119,25 @@ export declare const DeleteUserAppStateDocument: DocumentNode<DeleteUserAppState
6782
7119
  export declare const UpdateUserAppStateDocument: DocumentNode<UpdateUserAppStateMutation, UpdateUserAppStateMutationVariables>;
6783
7120
  export declare const UserAppStateDocument: DocumentNode<UserAppStateQuery, UserAppStateQueryVariables>;
6784
7121
  export declare const UserAppStatesDocument: DocumentNode<UserAppStatesQuery, UserAppStatesQueryVariables>;
7122
+ export declare const AddTeamMemberDocument: DocumentNode<AddTeamMemberMutation, AddTeamMemberMutationVariables>;
7123
+ export declare const CreateTeamDocument: DocumentNode<CreateTeamMutation, CreateTeamMutationVariables>;
7124
+ export declare const CreateTeamRoleDocument: DocumentNode<CreateTeamRoleMutation, CreateTeamRoleMutationVariables>;
7125
+ export declare const DeleteTeamDocument: DocumentNode<DeleteTeamMutation, DeleteTeamMutationVariables>;
7126
+ export declare const DeleteTeamRoleDocument: DocumentNode<DeleteTeamRoleMutation, DeleteTeamRoleMutationVariables>;
7127
+ export declare const JoinTeamDocument: DocumentNode<JoinTeamMutation, JoinTeamMutationVariables>;
7128
+ export declare const LeaveTeamDocument: DocumentNode<LeaveTeamMutation, LeaveTeamMutationVariables>;
7129
+ export declare const MyTeamsDocument: DocumentNode<MyTeamsQuery, MyTeamsQueryVariables>;
7130
+ export declare const RemoveTeamMemberDocument: DocumentNode<RemoveTeamMemberMutation, RemoveTeamMemberMutationVariables>;
7131
+ export declare const RequestToJoinTeamDocument: DocumentNode<RequestToJoinTeamMutation, RequestToJoinTeamMutationVariables>;
7132
+ export declare const SetTeamMemberRolesDocument: DocumentNode<SetTeamMemberRolesMutation, SetTeamMemberRolesMutationVariables>;
7133
+ export declare const SetTeamPolicyDocument: DocumentNode<SetTeamPolicyMutation, SetTeamPolicyMutationVariables>;
7134
+ export declare const TeamDocument: DocumentNode<TeamQuery, TeamQueryVariables>;
7135
+ export declare const TeamMembersDocument: DocumentNode<TeamMembersQuery, TeamMembersQueryVariables>;
7136
+ export declare const TeamPolicyDocument: DocumentNode<TeamPolicyQuery, TeamPolicyQueryVariables>;
7137
+ export declare const TeamRolesDocument: DocumentNode<TeamRolesQuery, TeamRolesQueryVariables>;
7138
+ export declare const TeamsDocument: DocumentNode<TeamsQuery, TeamsQueryVariables>;
7139
+ export declare const UpdateTeamDocument: DocumentNode<UpdateTeamMutation, UpdateTeamMutationVariables>;
7140
+ export declare const UpdateTeamRoleDocument: DocumentNode<UpdateTeamRoleMutation, UpdateTeamRoleMutationVariables>;
6785
7141
  export declare const TeleportRequestDocument: DocumentNode<TeleportRequestMutation, TeleportRequestMutationVariables>;
6786
7142
  export declare const ConnectUdpProxyDocument: DocumentNode<ConnectUdpProxyMutation, ConnectUdpProxyMutationVariables>;
6787
7143
  export declare const DisconnectUdpProxyDocument: DocumentNode<DisconnectUdpProxyMutation, DisconnectUdpProxyMutationVariables>;