func FetchInvites(ctx context.Context, id string, c *iClient.Identity) ([]*iModels.Invite, error) {
	params := invite.NewGetInvitesParams()
	params.SetTeamID(id)
	res, err := c.Invite.GetInvites(params, nil)
	if err != nil {
		return nil, err
	}
	return res.Payload, nil
}
FetchInvites returns a list of invites for a given team
package clients
import (
	"context"
	iClient "github.com/manifoldco/manifold-cli/generated/identity/client"
	"github.com/manifoldco/manifold-cli/generated/identity/client/invite"
	"github.com/manifoldco/manifold-cli/generated/identity/client/team"
	iModels "github.com/manifoldco/manifold-cli/generated/identity/models"
)
type TeamMembersCount struct {
	Name    string
	Title   string
	Members int
}
func FetchTeams(ctx context.Context, c *iClient.Identity) ([]*iModels.Team, error) {
	res, err := c.Team.GetTeams(
		team.NewGetTeamsParamsWithContext(ctx), nil)
	if err != nil {
		return nil, err
	}
	return res.Payload, nil
}
func FetchTeamMembers(ctx context.Context, id string, c *iClient.Identity) ([]*iModels.MemberProfile, error) {
	params := team.NewGetTeamsIDMembersParamsWithContext(ctx)
	params.SetID(id)
	res, err := c.Team.GetTeamsIDMembers(params, nil)
	if err != nil {
		return nil, err
	}
	return res.Payload, nil
}