@@ -84,6 +84,7 @@ type APIInterface interface {
84
84
TrackEvent (ctx context.Context , event * RemoteTrackMessage ) (err error )
85
85
GetSupportedWorkspaceClasses (ctx context.Context ) (res []* SupportedWorkspaceClass , err error )
86
86
87
+ GetTeams (ctx context.Context ) ([]* Team , error )
87
88
CreateTeam (ctx context.Context , teamName string ) (* Team , error )
88
89
GetTeamMembers (ctx context.Context , teamID string ) ([]* TeamMemberInfo , error )
89
90
JoinTeam (ctx context.Context , teamID string ) (* Team , error )
@@ -209,6 +210,8 @@ const (
209
210
// FunctionGetSupportedWorkspaceClasses is the name of the getSupportedWorkspaceClasses function
210
211
FunctionGetSupportedWorkspaceClasses FunctionName = "getSupportedWorkspaceClasses"
211
212
213
+ // FunctionGetTeams is the name of the getTeams function
214
+ FunctionGetTeams FunctionName = "getTeams"
212
215
// FunctionCreateTeam is the name of the createTeam function
213
216
FunctionCreateTeam FunctionName = "createTeam"
214
217
// FunctionJoinTeam is the name of the joinTeam function
@@ -1396,6 +1399,16 @@ func (gp *APIoverJSONRPC) GetSupportedWorkspaceClasses(ctx context.Context) (res
1396
1399
return
1397
1400
}
1398
1401
1402
+ func (gp * APIoverJSONRPC ) GetTeams (ctx context.Context ) (res []* Team , err error ) {
1403
+ if gp == nil {
1404
+ err = errNotConnected
1405
+ return
1406
+ }
1407
+ _params := []interface {}{}
1408
+ err = gp .C .Call (ctx , string (FunctionGetTeams ), _params , & res )
1409
+ return
1410
+ }
1411
+
1399
1412
func (gp * APIoverJSONRPC ) CreateTeam (ctx context.Context , teamName string ) (res * Team , err error ) {
1400
1413
if gp == nil {
1401
1414
err = errNotConnected
0 commit comments