@crowdedkingdomstudios/crowdyjs 5.0.1 → 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.
- package/MIGRATION.md +31 -0
- package/dist/crowdy-client.d.ts +3 -0
- package/dist/crowdy-client.d.ts.map +1 -1
- package/dist/crowdy-client.js +2 -0
- package/dist/domains/teams.d.ts +34 -0
- package/dist/domains/teams.d.ts.map +1 -0
- package/dist/domains/teams.js +94 -0
- package/dist/generated/graphql.d.ts +345 -6
- package/dist/generated/graphql.d.ts.map +1 -1
- package/dist/generated/graphql.js +19 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/MIGRATION.md
CHANGED
|
@@ -1,3 +1,34 @@
|
|
|
1
|
+
# CrowdyJS v5.1 Notes
|
|
2
|
+
|
|
3
|
+
v5.1 is additive and non-breaking.
|
|
4
|
+
|
|
5
|
+
## Added
|
|
6
|
+
|
|
7
|
+
- **`client.teams`** — the Teams API is now a first-class sub-client, mirroring
|
|
8
|
+
`client.channels`. Create / update / delete teams, manage membership and
|
|
9
|
+
roles, set the per-app team policy, and read `mine` (`myTeams`), `list`
|
|
10
|
+
(`teams`), `get`, `members`, `roles`, and `policy`. Teams are app-scoped
|
|
11
|
+
player groups with roles and delegated management (no realtime messaging
|
|
12
|
+
path — that is Channels).
|
|
13
|
+
|
|
14
|
+
```ts
|
|
15
|
+
const team = await client.teams.create({ appId: '1', name: 'Red Squad' });
|
|
16
|
+
await client.teams.join(team.groupId);
|
|
17
|
+
const mine = await client.teams.mine('1');
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Removed
|
|
21
|
+
|
|
22
|
+
- The `gameModelEventStream` GraphQL subscription has been removed from the Game
|
|
23
|
+
API and the bundled schema. It was never wrapped by a CrowdyJS method, so no
|
|
24
|
+
SDK call sites change. To react to game-model changes, have the mutating
|
|
25
|
+
client send a lightweight notification over the realtime UDP path — a channel
|
|
26
|
+
message (`client.udp.sendChannelMessage`, recommended) or a spatial client
|
|
27
|
+
event (`client.udp.sendClientEvent`) — and have peers re-pull authoritative
|
|
28
|
+
state via `client.gameModel.containerState(...)` / `client.gameModel.events(...)`.
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
1
32
|
# CrowdyJS v5 Migration Notes
|
|
2
33
|
|
|
3
34
|
CrowdyJS v5 makes the realtime subscription **app-scoped** to fix a cross-app
|
package/dist/crowdy-client.d.ts
CHANGED
|
@@ -37,6 +37,7 @@ import { TeleportAPI } from './domains/teleport.js';
|
|
|
37
37
|
import { StateAPI } from './domains/state.js';
|
|
38
38
|
import { ServerStatusAPI } from './domains/serverStatus.js';
|
|
39
39
|
import { ChannelsAPI } from './domains/channels.js';
|
|
40
|
+
import { TeamsAPI } from './domains/teams.js';
|
|
40
41
|
import { UdpAPI } from './domains/udp.js';
|
|
41
42
|
import { GameModelAPI } from './domains/gameModel.js';
|
|
42
43
|
export interface CrowdyClientConfig {
|
|
@@ -89,6 +90,8 @@ export declare class CrowdyClient {
|
|
|
89
90
|
readonly state: StateAPI;
|
|
90
91
|
readonly serverStatus: ServerStatusAPI;
|
|
91
92
|
readonly channels: ChannelsAPI;
|
|
93
|
+
/** Teams: app-scoped player groups with roles and delegated management. */
|
|
94
|
+
readonly teams: TeamsAPI;
|
|
92
95
|
readonly udp: UdpAPI;
|
|
93
96
|
/** Abstract game model: containers, properties, functions, sessions. */
|
|
94
97
|
readonly gameModel: GameModelAPI;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"crowdy-client.d.ts","sourceRoot":"","sources":["../src/crowdy-client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,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B,2EAA2E;IAC3E,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC;IACzB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,wEAAwE;IACxE,QAAQ,CAAC,SAAS,EAAE,YAAY,CAAC;gBAErB,MAAM,GAAE,kBAAuB;IA0D3C,4EAA4E;IAC5E,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IAIpC,0DAA0D;IAC1D,QAAQ,IAAI,MAAM,GAAG,IAAI;IAIzB,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,WAAW;IAIjC,gEAAgE;IAChE,KAAK,IAAI,IAAI;CAId;AAED,wBAAgB,kBAAkB,CAChC,MAAM,GAAE,kBAAuB,GAC9B,YAAY,CAEd"}
|
package/dist/crowdy-client.js
CHANGED
|
@@ -35,6 +35,7 @@ import { TeleportAPI } from './domains/teleport.js';
|
|
|
35
35
|
import { StateAPI } from './domains/state.js';
|
|
36
36
|
import { ServerStatusAPI } from './domains/serverStatus.js';
|
|
37
37
|
import { ChannelsAPI } from './domains/channels.js';
|
|
38
|
+
import { TeamsAPI } from './domains/teams.js';
|
|
38
39
|
import { UdpAPI } from './domains/udp.js';
|
|
39
40
|
import { GameModelAPI } from './domains/gameModel.js';
|
|
40
41
|
export class CrowdyClient {
|
|
@@ -75,6 +76,7 @@ export class CrowdyClient {
|
|
|
75
76
|
this.state = new StateAPI(this.graphql);
|
|
76
77
|
this.serverStatus = new ServerStatusAPI(this.graphql);
|
|
77
78
|
this.channels = new ChannelsAPI(this.graphql);
|
|
79
|
+
this.teams = new TeamsAPI(this.graphql);
|
|
78
80
|
this.udp = new UdpAPI(this.graphql, this.realtime);
|
|
79
81
|
this.gameModel = new GameModelAPI(this.graphql);
|
|
80
82
|
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { GraphQLClient } from '../client.js';
|
|
2
|
+
import { type MyTeamsQuery, type MyTeamsQueryVariables, type TeamsQuery, type TeamsQueryVariables, type TeamQuery, type TeamQueryVariables, type TeamMembersQuery, type TeamMembersQueryVariables, type TeamRolesQuery, type TeamRolesQueryVariables, type TeamPolicyQuery, type TeamPolicyQueryVariables, type SetTeamPolicyMutation, type SetTeamPolicyMutationVariables, type CreateTeamMutation, type CreateTeamMutationVariables, type UpdateTeamMutation, type UpdateTeamMutationVariables, type DeleteTeamMutationVariables, type JoinTeamMutation, type JoinTeamMutationVariables, type RequestToJoinTeamMutation, type RequestToJoinTeamMutationVariables, type LeaveTeamMutationVariables, type AddTeamMemberMutation, type AddTeamMemberMutationVariables, type RemoveTeamMemberMutationVariables, type SetTeamMemberRolesMutation, type SetTeamMemberRolesMutationVariables, type CreateTeamRoleMutation, type CreateTeamRoleMutationVariables, type UpdateTeamRoleMutation, type UpdateTeamRoleMutationVariables, type DeleteTeamRoleMutationVariables } from '../generated/graphql.js';
|
|
3
|
+
/**
|
|
4
|
+
* Teams: app-scoped player groups with roles and delegated management, built
|
|
5
|
+
* on the same generic groups subsystem as Channels (group_type='team'). Team
|
|
6
|
+
* CRUD, membership, and roles run over the game-api GraphQL endpoint. Unlike
|
|
7
|
+
* channels, teams have no realtime messaging path.
|
|
8
|
+
*
|
|
9
|
+
* Exposed as `client.teams`.
|
|
10
|
+
*/
|
|
11
|
+
export declare class TeamsAPI {
|
|
12
|
+
private gql;
|
|
13
|
+
constructor(gql: GraphQLClient);
|
|
14
|
+
mine(appId: MyTeamsQueryVariables['appId']): Promise<MyTeamsQuery['myTeams']>;
|
|
15
|
+
list(appId: TeamsQueryVariables['appId']): Promise<TeamsQuery['teams']>;
|
|
16
|
+
get(groupId: TeamQueryVariables['groupId']): Promise<TeamQuery['team']>;
|
|
17
|
+
members(groupId: TeamMembersQueryVariables['groupId']): Promise<TeamMembersQuery['teamMembers']>;
|
|
18
|
+
roles(groupId: TeamRolesQueryVariables['groupId']): Promise<TeamRolesQuery['teamRoles']>;
|
|
19
|
+
policy(appId: TeamPolicyQueryVariables['appId']): Promise<TeamPolicyQuery['teamPolicy']>;
|
|
20
|
+
create(input: CreateTeamMutationVariables['input']): Promise<CreateTeamMutation['createTeam']>;
|
|
21
|
+
update(input: UpdateTeamMutationVariables['input']): Promise<UpdateTeamMutation['updateTeam']>;
|
|
22
|
+
remove(groupId: DeleteTeamMutationVariables['groupId']): Promise<boolean>;
|
|
23
|
+
setPolicy(input: SetTeamPolicyMutationVariables['input']): Promise<SetTeamPolicyMutation['setTeamPolicy']>;
|
|
24
|
+
join(groupId: JoinTeamMutationVariables['groupId']): Promise<JoinTeamMutation['joinTeam']>;
|
|
25
|
+
requestToJoin(groupId: RequestToJoinTeamMutationVariables['groupId']): Promise<RequestToJoinTeamMutation['requestToJoinTeam']>;
|
|
26
|
+
leave(groupId: LeaveTeamMutationVariables['groupId']): Promise<boolean>;
|
|
27
|
+
addMember(groupId: AddTeamMemberMutationVariables['groupId'], userId: AddTeamMemberMutationVariables['userId']): Promise<AddTeamMemberMutation['addTeamMember']>;
|
|
28
|
+
removeMember(groupId: RemoveTeamMemberMutationVariables['groupId'], userId: RemoveTeamMemberMutationVariables['userId']): Promise<boolean>;
|
|
29
|
+
setMemberRoles(input: SetTeamMemberRolesMutationVariables['input']): Promise<SetTeamMemberRolesMutation['setTeamMemberRoles']>;
|
|
30
|
+
createRole(input: CreateTeamRoleMutationVariables['input']): Promise<CreateTeamRoleMutation['createTeamRole']>;
|
|
31
|
+
updateRole(input: UpdateTeamRoleMutationVariables['input']): Promise<UpdateTeamRoleMutation['updateTeamRole']>;
|
|
32
|
+
deleteRole(groupRoleId: DeleteTeamRoleMutationVariables['groupRoleId']): Promise<boolean>;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=teams.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"teams.d.ts","sourceRoot":"","sources":["../../src/domains/teams.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD,OAAO,EAEL,KAAK,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ClB,KAAK,EAAE,mCAAmC,CAAC,OAAO,CAAC,GAClD,OAAO,CAAC,0BAA0B,CAAC,oBAAoB,CAAC,CAAC;IAOtD,UAAU,CACd,KAAK,EAAE,+BAA+B,CAAC,OAAO,CAAC,GAC9C,OAAO,CAAC,sBAAsB,CAAC,gBAAgB,CAAC,CAAC;IAK9C,UAAU,CACd,KAAK,EAAE,+BAA+B,CAAC,OAAO,CAAC,GAC9C,OAAO,CAAC,sBAAsB,CAAC,gBAAgB,CAAC,CAAC;IAK9C,UAAU,CACd,WAAW,EAAE,+BAA+B,CAAC,aAAa,CAAC,GAC1D,OAAO,CAAC,OAAO,CAAC;CAIpB"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { MyTeamsDocument, TeamsDocument, TeamDocument, TeamMembersDocument, TeamRolesDocument, TeamPolicyDocument, SetTeamPolicyDocument, CreateTeamDocument, UpdateTeamDocument, DeleteTeamDocument, JoinTeamDocument, RequestToJoinTeamDocument, LeaveTeamDocument, AddTeamMemberDocument, RemoveTeamMemberDocument, SetTeamMemberRolesDocument, CreateTeamRoleDocument, UpdateTeamRoleDocument, DeleteTeamRoleDocument, } from '../generated/graphql.js';
|
|
2
|
+
/**
|
|
3
|
+
* Teams: app-scoped player groups with roles and delegated management, built
|
|
4
|
+
* on the same generic groups subsystem as Channels (group_type='team'). Team
|
|
5
|
+
* CRUD, membership, and roles run over the game-api GraphQL endpoint. Unlike
|
|
6
|
+
* channels, teams have no realtime messaging path.
|
|
7
|
+
*
|
|
8
|
+
* Exposed as `client.teams`.
|
|
9
|
+
*/
|
|
10
|
+
export class TeamsAPI {
|
|
11
|
+
constructor(gql) {
|
|
12
|
+
this.gql = gql;
|
|
13
|
+
}
|
|
14
|
+
// -- Queries --------------------------------------------------------------
|
|
15
|
+
async mine(appId) {
|
|
16
|
+
const data = await this.gql.request(MyTeamsDocument, { appId });
|
|
17
|
+
return data.myTeams;
|
|
18
|
+
}
|
|
19
|
+
async list(appId) {
|
|
20
|
+
const data = await this.gql.request(TeamsDocument, { appId });
|
|
21
|
+
return data.teams;
|
|
22
|
+
}
|
|
23
|
+
async get(groupId) {
|
|
24
|
+
const data = await this.gql.request(TeamDocument, { groupId });
|
|
25
|
+
return data.team;
|
|
26
|
+
}
|
|
27
|
+
async members(groupId) {
|
|
28
|
+
const data = await this.gql.request(TeamMembersDocument, { groupId });
|
|
29
|
+
return data.teamMembers;
|
|
30
|
+
}
|
|
31
|
+
async roles(groupId) {
|
|
32
|
+
const data = await this.gql.request(TeamRolesDocument, { groupId });
|
|
33
|
+
return data.teamRoles;
|
|
34
|
+
}
|
|
35
|
+
async policy(appId) {
|
|
36
|
+
const data = await this.gql.request(TeamPolicyDocument, { appId });
|
|
37
|
+
return data.teamPolicy;
|
|
38
|
+
}
|
|
39
|
+
// -- Team mutations -------------------------------------------------------
|
|
40
|
+
async create(input) {
|
|
41
|
+
const data = await this.gql.request(CreateTeamDocument, { input });
|
|
42
|
+
return data.createTeam;
|
|
43
|
+
}
|
|
44
|
+
async update(input) {
|
|
45
|
+
const data = await this.gql.request(UpdateTeamDocument, { input });
|
|
46
|
+
return data.updateTeam;
|
|
47
|
+
}
|
|
48
|
+
async remove(groupId) {
|
|
49
|
+
const data = await this.gql.request(DeleteTeamDocument, { groupId });
|
|
50
|
+
return data.deleteTeam;
|
|
51
|
+
}
|
|
52
|
+
async setPolicy(input) {
|
|
53
|
+
const data = await this.gql.request(SetTeamPolicyDocument, { input });
|
|
54
|
+
return data.setTeamPolicy;
|
|
55
|
+
}
|
|
56
|
+
// -- Membership mutations -------------------------------------------------
|
|
57
|
+
async join(groupId) {
|
|
58
|
+
const data = await this.gql.request(JoinTeamDocument, { groupId });
|
|
59
|
+
return data.joinTeam;
|
|
60
|
+
}
|
|
61
|
+
async requestToJoin(groupId) {
|
|
62
|
+
const data = await this.gql.request(RequestToJoinTeamDocument, { groupId });
|
|
63
|
+
return data.requestToJoinTeam;
|
|
64
|
+
}
|
|
65
|
+
async leave(groupId) {
|
|
66
|
+
const data = await this.gql.request(LeaveTeamDocument, { groupId });
|
|
67
|
+
return data.leaveTeam;
|
|
68
|
+
}
|
|
69
|
+
async addMember(groupId, userId) {
|
|
70
|
+
const data = await this.gql.request(AddTeamMemberDocument, { groupId, userId });
|
|
71
|
+
return data.addTeamMember;
|
|
72
|
+
}
|
|
73
|
+
async removeMember(groupId, userId) {
|
|
74
|
+
const data = await this.gql.request(RemoveTeamMemberDocument, { groupId, userId });
|
|
75
|
+
return data.removeTeamMember;
|
|
76
|
+
}
|
|
77
|
+
async setMemberRoles(input) {
|
|
78
|
+
const data = await this.gql.request(SetTeamMemberRolesDocument, { input });
|
|
79
|
+
return data.setTeamMemberRoles;
|
|
80
|
+
}
|
|
81
|
+
// -- Role mutations -------------------------------------------------------
|
|
82
|
+
async createRole(input) {
|
|
83
|
+
const data = await this.gql.request(CreateTeamRoleDocument, { input });
|
|
84
|
+
return data.createTeamRole;
|
|
85
|
+
}
|
|
86
|
+
async updateRole(input) {
|
|
87
|
+
const data = await this.gql.request(UpdateTeamRoleDocument, { input });
|
|
88
|
+
return data.updateTeamRole;
|
|
89
|
+
}
|
|
90
|
+
async deleteRole(groupRoleId) {
|
|
91
|
+
const data = await this.gql.request(DeleteTeamRoleDocument, { groupRoleId });
|
|
92
|
+
return data.deleteTeamRole;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
@@ -3345,15 +3345,9 @@ export type SingleActorMessageNotification = {
|
|
|
3345
3345
|
};
|
|
3346
3346
|
export type Subscription = {
|
|
3347
3347
|
__typename?: 'Subscription';
|
|
3348
|
-
/** 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. */
|
|
3349
|
-
gameModelEventStream: Maybe<GmEvent>;
|
|
3350
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. */
|
|
3351
3349
|
udpNotifications: Maybe<UdpNotification>;
|
|
3352
3350
|
};
|
|
3353
|
-
export type SubscriptionGameModelEventStreamArgs = {
|
|
3354
|
-
appId: Scalars['BigInt']['input'];
|
|
3355
|
-
sessionId?: InputMaybe<Scalars['String']['input']>;
|
|
3356
|
-
};
|
|
3357
3351
|
export type TeleportRequestInput = {
|
|
3358
3352
|
appId: Scalars['BigInt']['input'];
|
|
3359
3353
|
chunkAddress: ChunkCoordinatesInput;
|
|
@@ -6139,6 +6133,332 @@ export type UserAppStatesQuery = {
|
|
|
6139
6133
|
updatedAt: string;
|
|
6140
6134
|
}>;
|
|
6141
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
|
+
};
|
|
6142
6462
|
export type TeleportRequestMutationVariables = Exact<{
|
|
6143
6463
|
input: TeleportRequestInput;
|
|
6144
6464
|
}>;
|
|
@@ -6799,6 +7119,25 @@ export declare const DeleteUserAppStateDocument: DocumentNode<DeleteUserAppState
|
|
|
6799
7119
|
export declare const UpdateUserAppStateDocument: DocumentNode<UpdateUserAppStateMutation, UpdateUserAppStateMutationVariables>;
|
|
6800
7120
|
export declare const UserAppStateDocument: DocumentNode<UserAppStateQuery, UserAppStateQueryVariables>;
|
|
6801
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>;
|
|
6802
7141
|
export declare const TeleportRequestDocument: DocumentNode<TeleportRequestMutation, TeleportRequestMutationVariables>;
|
|
6803
7142
|
export declare const ConnectUdpProxyDocument: DocumentNode<ConnectUdpProxyMutation, ConnectUdpProxyMutationVariables>;
|
|
6804
7143
|
export declare const DisconnectUdpProxyDocument: DocumentNode<DisconnectUdpProxyMutation, DisconnectUdpProxyMutationVariables>;
|