teams

package
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddMemberRequest added in v0.8.0

type AddMemberRequest struct {
	UserID string `json:"user_id"`
	Role   string `json:"role"`

} // @name AddMemberRequest

AddMemberRequest represents the request body for adding a team member.

type CreateSSOMappingRequest added in v0.8.0

type CreateSSOMappingRequest struct {
	Provider     string `json:"provider"`
	SSOGroupName string `json:"sso_group_name"`
	TeamID       string `json:"team_id"`
	MemberRole   string `json:"member_role"`

} // @name CreateSSOMappingRequest

CreateSSOMappingRequest represents the request body for creating an SSO mapping.

type CreateTeamRequest added in v0.8.0

type CreateTeamRequest struct {
	Name        string `json:"name"`
	Description string `json:"description"`

} // @name CreateTeamRequest

CreateTeamRequest represents the request body for creating a team.

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(teamService *team.Service, userService user.Service, authService auth.Service, cfg *config.Config) *Handler

func (*Handler) Routes

func (h *Handler) Routes() []common.Route

type ListMembersResponse added in v0.8.0

type ListMembersResponse struct {
	Members []team.TeamMemberWithUser `json:"members"`

} // @name ListMembersResponse

ListMembersResponse represents the response from the list members endpoint.

type ListSSOMappingsResponse added in v0.8.0

type ListSSOMappingsResponse struct {
	Mappings []team.SSOTeamMapping `json:"mappings"`

} // @name ListSSOMappingsResponse

ListSSOMappingsResponse represents the response from the SSO mappings list endpoint.

type ListTeamsResponse added in v0.8.0

type ListTeamsResponse struct {
	Teams  []team.Team `json:"teams"`
	Total  int         `json:"total"`
	Limit  int         `json:"limit"`
	Offset int         `json:"offset"`

} // @name ListTeamsResponse

ListTeamsResponse represents the response from the teams list endpoint.

type MessageResponse added in v0.8.0

type MessageResponse struct {
	Message string `json:"message"`

} // @name MessageResponse

MessageResponse represents a simple message response.

type SearchOwnersResponse added in v0.8.0

type SearchOwnersResponse struct {
	Owners []team.Owner `json:"owners"`

} // @name SearchOwnersResponse

SearchOwnersResponse represents the response from the search owners endpoint.

type UpdateMemberRoleRequest added in v0.8.0

type UpdateMemberRoleRequest struct {
	Role string `json:"role"`

} // @name UpdateMemberRoleRequest

UpdateMemberRoleRequest represents the request body for updating a member role.

type UpdateSSOMappingRequest added in v0.8.0

type UpdateSSOMappingRequest struct {
	TeamID     string `json:"team_id"`
	MemberRole string `json:"member_role"`

} // @name UpdateSSOMappingRequest

UpdateSSOMappingRequest represents the request body for updating an SSO mapping.

type UpdateTeamRequest added in v0.8.0

type UpdateTeamRequest struct {
	Name        *string                `json:"name,omitempty"`
	Description *string                `json:"description,omitempty"`
	Metadata    map[string]interface{} `json:"metadata,omitempty"`
	Tags        []string               `json:"tags,omitempty"`

} // @name UpdateTeamRequest

UpdateTeamRequest represents the request body for updating a team.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL