|
|
@ -283,6 +283,12 @@ func (o TeamInviteID) DeepCopy() TeamInviteID { |
|
|
|
return o |
|
|
|
return o |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type TeamInviteMaxUses int |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (o TeamInviteMaxUses) DeepCopy() TeamInviteMaxUses { |
|
|
|
|
|
|
|
return o |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
type ReaderKeyMask struct { |
|
|
|
type ReaderKeyMask struct { |
|
|
|
Application TeamApplication `codec:"application" json:"application"` |
|
|
|
Application TeamApplication `codec:"application" json:"application"` |
|
|
|
Generation PerTeamKeyGeneration `codec:"generation" json:"generation"` |
|
|
|
Generation PerTeamKeyGeneration `codec:"generation" json:"generation"` |
|
|
@ -494,6 +500,7 @@ type TeamMemberDetails struct { |
|
|
|
FullName FullName `codec:"fullName" json:"fullName"` |
|
|
|
FullName FullName `codec:"fullName" json:"fullName"` |
|
|
|
NeedsPUK bool `codec:"needsPUK" json:"needsPUK"` |
|
|
|
NeedsPUK bool `codec:"needsPUK" json:"needsPUK"` |
|
|
|
Status TeamMemberStatus `codec:"status" json:"status"` |
|
|
|
Status TeamMemberStatus `codec:"status" json:"status"` |
|
|
|
|
|
|
|
JoinTime *Time `codec:"joinTime,omitempty" json:"joinTime,omitempty"` |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func (o TeamMemberDetails) DeepCopy() TeamMemberDetails { |
|
|
|
func (o TeamMemberDetails) DeepCopy() TeamMemberDetails { |
|
|
@ -503,6 +510,13 @@ func (o TeamMemberDetails) DeepCopy() TeamMemberDetails { |
|
|
|
FullName: o.FullName.DeepCopy(), |
|
|
|
FullName: o.FullName.DeepCopy(), |
|
|
|
NeedsPUK: o.NeedsPUK, |
|
|
|
NeedsPUK: o.NeedsPUK, |
|
|
|
Status: o.Status.DeepCopy(), |
|
|
|
Status: o.Status.DeepCopy(), |
|
|
|
|
|
|
|
JoinTime: (func(x *Time) *Time { |
|
|
|
|
|
|
|
if x == nil { |
|
|
|
|
|
|
|
return nil |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
tmp := (*x).DeepCopy() |
|
|
|
|
|
|
|
return &tmp |
|
|
|
|
|
|
|
})(o.JoinTime), |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -617,12 +631,82 @@ func (o TeamDetails) DeepCopy() TeamDetails { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type TeamMemberRole struct { |
|
|
|
|
|
|
|
Uid UID `codec:"uid" json:"uid"` |
|
|
|
|
|
|
|
Username string `codec:"username" json:"username"` |
|
|
|
|
|
|
|
FullName FullName `codec:"fullName" json:"fullName"` |
|
|
|
|
|
|
|
Role TeamRole `codec:"role" json:"role"` |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (o TeamMemberRole) DeepCopy() TeamMemberRole { |
|
|
|
|
|
|
|
return TeamMemberRole{ |
|
|
|
|
|
|
|
Uid: o.Uid.DeepCopy(), |
|
|
|
|
|
|
|
Username: o.Username, |
|
|
|
|
|
|
|
FullName: o.FullName.DeepCopy(), |
|
|
|
|
|
|
|
Role: o.Role.DeepCopy(), |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type UntrustedTeamInfo struct { |
|
|
|
|
|
|
|
Name TeamName `codec:"name" json:"name"` |
|
|
|
|
|
|
|
InTeam bool `codec:"inTeam" json:"inTeam"` |
|
|
|
|
|
|
|
Open bool `codec:"open" json:"open"` |
|
|
|
|
|
|
|
Description string `codec:"description" json:"description"` |
|
|
|
|
|
|
|
PublicAdmins []string `codec:"publicAdmins" json:"publicAdmins"` |
|
|
|
|
|
|
|
NumMembers int `codec:"numMembers" json:"numMembers"` |
|
|
|
|
|
|
|
PublicMembers []TeamMemberRole `codec:"publicMembers" json:"publicMembers"` |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (o UntrustedTeamInfo) DeepCopy() UntrustedTeamInfo { |
|
|
|
|
|
|
|
return UntrustedTeamInfo{ |
|
|
|
|
|
|
|
Name: o.Name.DeepCopy(), |
|
|
|
|
|
|
|
InTeam: o.InTeam, |
|
|
|
|
|
|
|
Open: o.Open, |
|
|
|
|
|
|
|
Description: o.Description, |
|
|
|
|
|
|
|
PublicAdmins: (func(x []string) []string { |
|
|
|
|
|
|
|
if x == nil { |
|
|
|
|
|
|
|
return nil |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
ret := make([]string, len(x)) |
|
|
|
|
|
|
|
for i, v := range x { |
|
|
|
|
|
|
|
vCopy := v |
|
|
|
|
|
|
|
ret[i] = vCopy |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return ret |
|
|
|
|
|
|
|
})(o.PublicAdmins), |
|
|
|
|
|
|
|
NumMembers: o.NumMembers, |
|
|
|
|
|
|
|
PublicMembers: (func(x []TeamMemberRole) []TeamMemberRole { |
|
|
|
|
|
|
|
if x == nil { |
|
|
|
|
|
|
|
return nil |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
ret := make([]TeamMemberRole, len(x)) |
|
|
|
|
|
|
|
for i, v := range x { |
|
|
|
|
|
|
|
vCopy := v.DeepCopy() |
|
|
|
|
|
|
|
ret[i] = vCopy |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return ret |
|
|
|
|
|
|
|
})(o.PublicMembers), |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
type UserVersionPercentForm string |
|
|
|
type UserVersionPercentForm string |
|
|
|
|
|
|
|
|
|
|
|
func (o UserVersionPercentForm) DeepCopy() UserVersionPercentForm { |
|
|
|
func (o UserVersionPercentForm) DeepCopy() UserVersionPercentForm { |
|
|
|
return o |
|
|
|
return o |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type TeamUsedInvite struct { |
|
|
|
|
|
|
|
InviteID TeamInviteID `codec:"inviteID" json:"inviteID"` |
|
|
|
|
|
|
|
Uv UserVersionPercentForm `codec:"uv" json:"uv"` |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (o TeamUsedInvite) DeepCopy() TeamUsedInvite { |
|
|
|
|
|
|
|
return TeamUsedInvite{ |
|
|
|
|
|
|
|
InviteID: o.InviteID.DeepCopy(), |
|
|
|
|
|
|
|
Uv: o.Uv.DeepCopy(), |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
type TeamChangeReq struct { |
|
|
|
type TeamChangeReq struct { |
|
|
|
Owners []UserVersion `codec:"owners" json:"owners"` |
|
|
|
Owners []UserVersion `codec:"owners" json:"owners"` |
|
|
|
Admins []UserVersion `codec:"admins" json:"admins"` |
|
|
|
Admins []UserVersion `codec:"admins" json:"admins"` |
|
|
@ -632,6 +716,7 @@ type TeamChangeReq struct { |
|
|
|
RestrictedBots map[UserVersion]TeamBotSettings `codec:"restrictedBots" json:"restrictedBots"` |
|
|
|
RestrictedBots map[UserVersion]TeamBotSettings `codec:"restrictedBots" json:"restrictedBots"` |
|
|
|
None []UserVersion `codec:"none" json:"none"` |
|
|
|
None []UserVersion `codec:"none" json:"none"` |
|
|
|
CompletedInvites map[TeamInviteID]UserVersionPercentForm `codec:"completedInvites" json:"completedInvites"` |
|
|
|
CompletedInvites map[TeamInviteID]UserVersionPercentForm `codec:"completedInvites" json:"completedInvites"` |
|
|
|
|
|
|
|
UsedInvites []TeamUsedInvite `codec:"usedInvites" json:"usedInvites"` |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func (o TeamChangeReq) DeepCopy() TeamChangeReq { |
|
|
|
func (o TeamChangeReq) DeepCopy() TeamChangeReq { |
|
|
@ -726,6 +811,17 @@ func (o TeamChangeReq) DeepCopy() TeamChangeReq { |
|
|
|
} |
|
|
|
} |
|
|
|
return ret |
|
|
|
return ret |
|
|
|
})(o.CompletedInvites), |
|
|
|
})(o.CompletedInvites), |
|
|
|
|
|
|
|
UsedInvites: (func(x []TeamUsedInvite) []TeamUsedInvite { |
|
|
|
|
|
|
|
if x == nil { |
|
|
|
|
|
|
|
return nil |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
ret := make([]TeamUsedInvite, len(x)) |
|
|
|
|
|
|
|
for i, v := range x { |
|
|
|
|
|
|
|
vCopy := v.DeepCopy() |
|
|
|
|
|
|
|
ret[i] = vCopy |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return ret |
|
|
|
|
|
|
|
})(o.UsedInvites), |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -1499,6 +1595,7 @@ const ( |
|
|
|
TeamInviteCategory_SBS TeamInviteCategory = 4 |
|
|
|
TeamInviteCategory_SBS TeamInviteCategory = 4 |
|
|
|
TeamInviteCategory_SEITAN TeamInviteCategory = 5 |
|
|
|
TeamInviteCategory_SEITAN TeamInviteCategory = 5 |
|
|
|
TeamInviteCategory_PHONE TeamInviteCategory = 6 |
|
|
|
TeamInviteCategory_PHONE TeamInviteCategory = 6 |
|
|
|
|
|
|
|
TeamInviteCategory_INVITELINK TeamInviteCategory = 7 |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
func (o TeamInviteCategory) DeepCopy() TeamInviteCategory { return o } |
|
|
|
func (o TeamInviteCategory) DeepCopy() TeamInviteCategory { return o } |
|
|
@ -1511,6 +1608,7 @@ var TeamInviteCategoryMap = map[string]TeamInviteCategory{ |
|
|
|
"SBS": 4, |
|
|
|
"SBS": 4, |
|
|
|
"SEITAN": 5, |
|
|
|
"SEITAN": 5, |
|
|
|
"PHONE": 6, |
|
|
|
"PHONE": 6, |
|
|
|
|
|
|
|
"INVITELINK": 7, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var TeamInviteCategoryRevMap = map[TeamInviteCategory]string{ |
|
|
|
var TeamInviteCategoryRevMap = map[TeamInviteCategory]string{ |
|
|
@ -1521,6 +1619,7 @@ var TeamInviteCategoryRevMap = map[TeamInviteCategory]string{ |
|
|
|
4: "SBS", |
|
|
|
4: "SBS", |
|
|
|
5: "SEITAN", |
|
|
|
5: "SEITAN", |
|
|
|
6: "PHONE", |
|
|
|
6: "PHONE", |
|
|
|
|
|
|
|
7: "INVITELINK", |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func (e TeamInviteCategory) String() string { |
|
|
|
func (e TeamInviteCategory) String() string { |
|
|
@ -1624,12 +1723,20 @@ func (o TeamInviteName) DeepCopy() TeamInviteName { |
|
|
|
return o |
|
|
|
return o |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type TeamInviteDisplayName string |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (o TeamInviteDisplayName) DeepCopy() TeamInviteDisplayName { |
|
|
|
|
|
|
|
return o |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
type TeamInvite struct { |
|
|
|
type TeamInvite struct { |
|
|
|
Role TeamRole `codec:"role" json:"role"` |
|
|
|
Role TeamRole `codec:"role" json:"role"` |
|
|
|
Id TeamInviteID `codec:"id" json:"id"` |
|
|
|
Id TeamInviteID `codec:"id" json:"id"` |
|
|
|
Type TeamInviteType `codec:"type" json:"type"` |
|
|
|
Type TeamInviteType `codec:"type" json:"type"` |
|
|
|
Name TeamInviteName `codec:"name" json:"name"` |
|
|
|
Name TeamInviteName `codec:"name" json:"name"` |
|
|
|
Inviter UserVersion `codec:"inviter" json:"inviter"` |
|
|
|
Inviter UserVersion `codec:"inviter" json:"inviter"` |
|
|
|
|
|
|
|
MaxUses *TeamInviteMaxUses `codec:"maxUses,omitempty" json:"maxUses,omitempty"` |
|
|
|
|
|
|
|
Etime *UnixTime `codec:"etime,omitempty" json:"etime,omitempty"` |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func (o TeamInvite) DeepCopy() TeamInvite { |
|
|
|
func (o TeamInvite) DeepCopy() TeamInvite { |
|
|
@ -1639,32 +1746,58 @@ func (o TeamInvite) DeepCopy() TeamInvite { |
|
|
|
Type: o.Type.DeepCopy(), |
|
|
|
Type: o.Type.DeepCopy(), |
|
|
|
Name: o.Name.DeepCopy(), |
|
|
|
Name: o.Name.DeepCopy(), |
|
|
|
Inviter: o.Inviter.DeepCopy(), |
|
|
|
Inviter: o.Inviter.DeepCopy(), |
|
|
|
|
|
|
|
MaxUses: (func(x *TeamInviteMaxUses) *TeamInviteMaxUses { |
|
|
|
|
|
|
|
if x == nil { |
|
|
|
|
|
|
|
return nil |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
tmp := (*x).DeepCopy() |
|
|
|
|
|
|
|
return &tmp |
|
|
|
|
|
|
|
})(o.MaxUses), |
|
|
|
|
|
|
|
Etime: (func(x *UnixTime) *UnixTime { |
|
|
|
|
|
|
|
if x == nil { |
|
|
|
|
|
|
|
return nil |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
tmp := (*x).DeepCopy() |
|
|
|
|
|
|
|
return &tmp |
|
|
|
|
|
|
|
})(o.Etime), |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
type AnnotatedTeamInvite struct { |
|
|
|
type AnnotatedTeamInvite struct { |
|
|
|
Role TeamRole `codec:"role" json:"role"` |
|
|
|
Invite TeamInvite `codec:"invite" json:"invite"` |
|
|
|
Id TeamInviteID `codec:"id" json:"id"` |
|
|
|
DisplayName TeamInviteDisplayName `codec:"displayName" json:"displayName"` |
|
|
|
Type TeamInviteType `codec:"type" json:"type"` |
|
|
|
|
|
|
|
Name TeamInviteName `codec:"name" json:"name"` |
|
|
|
|
|
|
|
Uv UserVersion `codec:"uv" json:"uv"` |
|
|
|
|
|
|
|
Inviter UserVersion `codec:"inviter" json:"inviter"` |
|
|
|
|
|
|
|
InviterUsername string `codec:"inviterUsername" json:"inviterUsername"` |
|
|
|
InviterUsername string `codec:"inviterUsername" json:"inviterUsername"` |
|
|
|
|
|
|
|
InviteeUv UserVersion `codec:"inviteeUv" json:"inviteeUv"` |
|
|
|
TeamName string `codec:"teamName" json:"teamName"` |
|
|
|
TeamName string `codec:"teamName" json:"teamName"` |
|
|
|
Status TeamMemberStatus `codec:"status" json:"status"` |
|
|
|
Status *TeamMemberStatus `codec:"status,omitempty" json:"status,omitempty"` |
|
|
|
|
|
|
|
UsedInvites []AnnotatedTeamUsedInviteLogPoint `codec:"usedInvites" json:"usedInvites"` |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func (o AnnotatedTeamInvite) DeepCopy() AnnotatedTeamInvite { |
|
|
|
func (o AnnotatedTeamInvite) DeepCopy() AnnotatedTeamInvite { |
|
|
|
return AnnotatedTeamInvite{ |
|
|
|
return AnnotatedTeamInvite{ |
|
|
|
Role: o.Role.DeepCopy(), |
|
|
|
Invite: o.Invite.DeepCopy(), |
|
|
|
Id: o.Id.DeepCopy(), |
|
|
|
DisplayName: o.DisplayName.DeepCopy(), |
|
|
|
Type: o.Type.DeepCopy(), |
|
|
|
|
|
|
|
Name: o.Name.DeepCopy(), |
|
|
|
|
|
|
|
Uv: o.Uv.DeepCopy(), |
|
|
|
|
|
|
|
Inviter: o.Inviter.DeepCopy(), |
|
|
|
|
|
|
|
InviterUsername: o.InviterUsername, |
|
|
|
InviterUsername: o.InviterUsername, |
|
|
|
|
|
|
|
InviteeUv: o.InviteeUv.DeepCopy(), |
|
|
|
TeamName: o.TeamName, |
|
|
|
TeamName: o.TeamName, |
|
|
|
Status: o.Status.DeepCopy(), |
|
|
|
Status: (func(x *TeamMemberStatus) *TeamMemberStatus { |
|
|
|
|
|
|
|
if x == nil { |
|
|
|
|
|
|
|
return nil |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
tmp := (*x).DeepCopy() |
|
|
|
|
|
|
|
return &tmp |
|
|
|
|
|
|
|
})(o.Status), |
|
|
|
|
|
|
|
UsedInvites: (func(x []AnnotatedTeamUsedInviteLogPoint) []AnnotatedTeamUsedInviteLogPoint { |
|
|
|
|
|
|
|
if x == nil { |
|
|
|
|
|
|
|
return nil |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
ret := make([]AnnotatedTeamUsedInviteLogPoint, len(x)) |
|
|
|
|
|
|
|
for i, v := range x { |
|
|
|
|
|
|
|
vCopy := v.DeepCopy() |
|
|
|
|
|
|
|
ret[i] = vCopy |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return ret |
|
|
|
|
|
|
|
})(o.UsedInvites), |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -1752,6 +1885,7 @@ type TeamSigChainState struct { |
|
|
|
StubbedLinks map[Seqno]bool `codec:"stubbedLinks" json:"stubbedLinks"` |
|
|
|
StubbedLinks map[Seqno]bool `codec:"stubbedLinks" json:"stubbedLinks"` |
|
|
|
ActiveInvites map[TeamInviteID]TeamInvite `codec:"activeInvites" json:"activeInvites"` |
|
|
|
ActiveInvites map[TeamInviteID]TeamInvite `codec:"activeInvites" json:"activeInvites"` |
|
|
|
ObsoleteInvites map[TeamInviteID]TeamInvite `codec:"obsoleteInvites" json:"obsoleteInvites"` |
|
|
|
ObsoleteInvites map[TeamInviteID]TeamInvite `codec:"obsoleteInvites" json:"obsoleteInvites"` |
|
|
|
|
|
|
|
UsedInvites map[TeamInviteID][]TeamUsedInviteLogPoint `codec:"usedInvites" json:"usedInvites"` |
|
|
|
Open bool `codec:"open" json:"open"` |
|
|
|
Open bool `codec:"open" json:"open"` |
|
|
|
OpenTeamJoinAs TeamRole `codec:"openTeamJoinAs" json:"openTeamJoinAs"` |
|
|
|
OpenTeamJoinAs TeamRole `codec:"openTeamJoinAs" json:"openTeamJoinAs"` |
|
|
|
Bots map[UserVersion]TeamBotSettings `codec:"bots" json:"bots"` |
|
|
|
Bots map[UserVersion]TeamBotSettings `codec:"bots" json:"bots"` |
|
|
@ -1897,6 +2031,28 @@ func (o TeamSigChainState) DeepCopy() TeamSigChainState { |
|
|
|
} |
|
|
|
} |
|
|
|
return ret |
|
|
|
return ret |
|
|
|
})(o.ObsoleteInvites), |
|
|
|
})(o.ObsoleteInvites), |
|
|
|
|
|
|
|
UsedInvites: (func(x map[TeamInviteID][]TeamUsedInviteLogPoint) map[TeamInviteID][]TeamUsedInviteLogPoint { |
|
|
|
|
|
|
|
if x == nil { |
|
|
|
|
|
|
|
return nil |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
ret := make(map[TeamInviteID][]TeamUsedInviteLogPoint, len(x)) |
|
|
|
|
|
|
|
for k, v := range x { |
|
|
|
|
|
|
|
kCopy := k.DeepCopy() |
|
|
|
|
|
|
|
vCopy := (func(x []TeamUsedInviteLogPoint) []TeamUsedInviteLogPoint { |
|
|
|
|
|
|
|
if x == nil { |
|
|
|
|
|
|
|
return nil |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
ret := make([]TeamUsedInviteLogPoint, len(x)) |
|
|
|
|
|
|
|
for i, v := range x { |
|
|
|
|
|
|
|
vCopy := v.DeepCopy() |
|
|
|
|
|
|
|
ret[i] = vCopy |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return ret |
|
|
|
|
|
|
|
})(v) |
|
|
|
|
|
|
|
ret[kCopy] = vCopy |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return ret |
|
|
|
|
|
|
|
})(o.UsedInvites), |
|
|
|
Open: o.Open, |
|
|
|
Open: o.Open, |
|
|
|
OpenTeamJoinAs: o.OpenTeamJoinAs.DeepCopy(), |
|
|
|
OpenTeamJoinAs: o.OpenTeamJoinAs.DeepCopy(), |
|
|
|
Bots: (func(x map[UserVersion]TeamBotSettings) map[UserVersion]TeamBotSettings { |
|
|
|
Bots: (func(x map[UserVersion]TeamBotSettings) map[UserVersion]TeamBotSettings { |
|
|
@ -1986,6 +2142,30 @@ func (o UserLogPoint) DeepCopy() UserLogPoint { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type AnnotatedTeamUsedInviteLogPoint struct { |
|
|
|
|
|
|
|
Username string `codec:"username" json:"username"` |
|
|
|
|
|
|
|
TeamUsedInviteLogPoint TeamUsedInviteLogPoint `codec:"teamUsedInviteLogPoint" json:"teamUsedInviteLogPoint"` |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (o AnnotatedTeamUsedInviteLogPoint) DeepCopy() AnnotatedTeamUsedInviteLogPoint { |
|
|
|
|
|
|
|
return AnnotatedTeamUsedInviteLogPoint{ |
|
|
|
|
|
|
|
Username: o.Username, |
|
|
|
|
|
|
|
TeamUsedInviteLogPoint: o.TeamUsedInviteLogPoint.DeepCopy(), |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type TeamUsedInviteLogPoint struct { |
|
|
|
|
|
|
|
Uv UserVersion `codec:"uv" json:"uv"` |
|
|
|
|
|
|
|
LogPoint int `codec:"logPoint" json:"logPoint"` |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (o TeamUsedInviteLogPoint) DeepCopy() TeamUsedInviteLogPoint { |
|
|
|
|
|
|
|
return TeamUsedInviteLogPoint{ |
|
|
|
|
|
|
|
Uv: o.Uv.DeepCopy(), |
|
|
|
|
|
|
|
LogPoint: o.LogPoint, |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
type SubteamLogPoint struct { |
|
|
|
type SubteamLogPoint struct { |
|
|
|
Name TeamName `codec:"name" json:"name"` |
|
|
|
Name TeamName `codec:"name" json:"name"` |
|
|
|
Seqno Seqno `codec:"seqno" json:"seqno"` |
|
|
|
Seqno Seqno `codec:"seqno" json:"seqno"` |
|
|
@ -2101,7 +2281,7 @@ type TeamChangeRow struct { |
|
|
|
MembershipChanged bool `codec:"membershipChanged" json:"membership_changed"` |
|
|
|
MembershipChanged bool `codec:"membershipChanged" json:"membership_changed"` |
|
|
|
LatestSeqno Seqno `codec:"latestSeqno" json:"latest_seqno"` |
|
|
|
LatestSeqno Seqno `codec:"latestSeqno" json:"latest_seqno"` |
|
|
|
LatestHiddenSeqno Seqno `codec:"latestHiddenSeqno" json:"latest_hidden_seqno"` |
|
|
|
LatestHiddenSeqno Seqno `codec:"latestHiddenSeqno" json:"latest_hidden_seqno"` |
|
|
|
LatestOffchainSeqno Seqno `codec:"latestOffchainSeqno" json:"latest_offchain_seqno"` |
|
|
|
LatestOffchainSeqno Seqno `codec:"latestOffchainSeqno" json:"latest_offchain_version"` |
|
|
|
ImplicitTeam bool `codec:"implicitTeam" json:"implicit_team"` |
|
|
|
ImplicitTeam bool `codec:"implicitTeam" json:"implicit_team"` |
|
|
|
Misc bool `codec:"misc" json:"misc"` |
|
|
|
Misc bool `codec:"misc" json:"misc"` |
|
|
|
RemovedResetUsers bool `codec:"removedResetUsers" json:"removed_reset_users"` |
|
|
|
RemovedResetUsers bool `codec:"removedResetUsers" json:"removed_reset_users"` |
|
|
@ -2230,6 +2410,12 @@ func (o SeitanIKey) DeepCopy() SeitanIKey { |
|
|
|
return o |
|
|
|
return o |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type SeitanIKeyInvitelink string |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (o SeitanIKeyInvitelink) DeepCopy() SeitanIKeyInvitelink { |
|
|
|
|
|
|
|
return o |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
type SeitanPubKey string |
|
|
|
type SeitanPubKey string |
|
|
|
|
|
|
|
|
|
|
|
func (o SeitanPubKey) DeepCopy() SeitanPubKey { |
|
|
|
func (o SeitanPubKey) DeepCopy() SeitanPubKey { |
|
|
@ -2247,6 +2433,7 @@ type SeitanKeyAndLabelVersion int |
|
|
|
const ( |
|
|
|
const ( |
|
|
|
SeitanKeyAndLabelVersion_V1 SeitanKeyAndLabelVersion = 1 |
|
|
|
SeitanKeyAndLabelVersion_V1 SeitanKeyAndLabelVersion = 1 |
|
|
|
SeitanKeyAndLabelVersion_V2 SeitanKeyAndLabelVersion = 2 |
|
|
|
SeitanKeyAndLabelVersion_V2 SeitanKeyAndLabelVersion = 2 |
|
|
|
|
|
|
|
SeitanKeyAndLabelVersion_Invitelink SeitanKeyAndLabelVersion = 3 |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
func (o SeitanKeyAndLabelVersion) DeepCopy() SeitanKeyAndLabelVersion { return o } |
|
|
|
func (o SeitanKeyAndLabelVersion) DeepCopy() SeitanKeyAndLabelVersion { return o } |
|
|
@ -2254,11 +2441,13 @@ func (o SeitanKeyAndLabelVersion) DeepCopy() SeitanKeyAndLabelVersion { return o |
|
|
|
var SeitanKeyAndLabelVersionMap = map[string]SeitanKeyAndLabelVersion{ |
|
|
|
var SeitanKeyAndLabelVersionMap = map[string]SeitanKeyAndLabelVersion{ |
|
|
|
"V1": 1, |
|
|
|
"V1": 1, |
|
|
|
"V2": 2, |
|
|
|
"V2": 2, |
|
|
|
|
|
|
|
"Invitelink": 3, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var SeitanKeyAndLabelVersionRevMap = map[SeitanKeyAndLabelVersion]string{ |
|
|
|
var SeitanKeyAndLabelVersionRevMap = map[SeitanKeyAndLabelVersion]string{ |
|
|
|
1: "V1", |
|
|
|
1: "V1", |
|
|
|
2: "V2", |
|
|
|
2: "V2", |
|
|
|
|
|
|
|
3: "Invitelink", |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func (e SeitanKeyAndLabelVersion) String() string { |
|
|
|
func (e SeitanKeyAndLabelVersion) String() string { |
|
|
@ -2272,6 +2461,7 @@ type SeitanKeyAndLabel struct { |
|
|
|
V__ SeitanKeyAndLabelVersion `codec:"v" json:"v"` |
|
|
|
V__ SeitanKeyAndLabelVersion `codec:"v" json:"v"` |
|
|
|
V1__ *SeitanKeyAndLabelVersion1 `codec:"v1,omitempty" json:"v1,omitempty"` |
|
|
|
V1__ *SeitanKeyAndLabelVersion1 `codec:"v1,omitempty" json:"v1,omitempty"` |
|
|
|
V2__ *SeitanKeyAndLabelVersion2 `codec:"v2,omitempty" json:"v2,omitempty"` |
|
|
|
V2__ *SeitanKeyAndLabelVersion2 `codec:"v2,omitempty" json:"v2,omitempty"` |
|
|
|
|
|
|
|
Invitelink__ *SeitanKeyAndLabelInvitelink `codec:"invitelink,omitempty" json:"invitelink,omitempty"` |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func (o *SeitanKeyAndLabel) V() (ret SeitanKeyAndLabelVersion, err error) { |
|
|
|
func (o *SeitanKeyAndLabel) V() (ret SeitanKeyAndLabelVersion, err error) { |
|
|
@ -2286,6 +2476,11 @@ func (o *SeitanKeyAndLabel) V() (ret SeitanKeyAndLabelVersion, err error) { |
|
|
|
err = errors.New("unexpected nil value for V2__") |
|
|
|
err = errors.New("unexpected nil value for V2__") |
|
|
|
return ret, err |
|
|
|
return ret, err |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
case SeitanKeyAndLabelVersion_Invitelink: |
|
|
|
|
|
|
|
if o.Invitelink__ == nil { |
|
|
|
|
|
|
|
err = errors.New("unexpected nil value for Invitelink__") |
|
|
|
|
|
|
|
return ret, err |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return o.V__, nil |
|
|
|
return o.V__, nil |
|
|
|
} |
|
|
|
} |
|
|
@ -2310,6 +2505,16 @@ func (o SeitanKeyAndLabel) V2() (res SeitanKeyAndLabelVersion2) { |
|
|
|
return *o.V2__ |
|
|
|
return *o.V2__ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (o SeitanKeyAndLabel) Invitelink() (res SeitanKeyAndLabelInvitelink) { |
|
|
|
|
|
|
|
if o.V__ != SeitanKeyAndLabelVersion_Invitelink { |
|
|
|
|
|
|
|
panic("wrong case accessed") |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if o.Invitelink__ == nil { |
|
|
|
|
|
|
|
return |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return *o.Invitelink__ |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func NewSeitanKeyAndLabelWithV1(v SeitanKeyAndLabelVersion1) SeitanKeyAndLabel { |
|
|
|
func NewSeitanKeyAndLabelWithV1(v SeitanKeyAndLabelVersion1) SeitanKeyAndLabel { |
|
|
|
return SeitanKeyAndLabel{ |
|
|
|
return SeitanKeyAndLabel{ |
|
|
|
V__: SeitanKeyAndLabelVersion_V1, |
|
|
|
V__: SeitanKeyAndLabelVersion_V1, |
|
|
@ -2324,6 +2529,13 @@ func NewSeitanKeyAndLabelWithV2(v SeitanKeyAndLabelVersion2) SeitanKeyAndLabel { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func NewSeitanKeyAndLabelWithInvitelink(v SeitanKeyAndLabelInvitelink) SeitanKeyAndLabel { |
|
|
|
|
|
|
|
return SeitanKeyAndLabel{ |
|
|
|
|
|
|
|
V__: SeitanKeyAndLabelVersion_Invitelink, |
|
|
|
|
|
|
|
Invitelink__: &v, |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func NewSeitanKeyAndLabelDefault(v SeitanKeyAndLabelVersion) SeitanKeyAndLabel { |
|
|
|
func NewSeitanKeyAndLabelDefault(v SeitanKeyAndLabelVersion) SeitanKeyAndLabel { |
|
|
|
return SeitanKeyAndLabel{ |
|
|
|
return SeitanKeyAndLabel{ |
|
|
|
V__: v, |
|
|
|
V__: v, |
|
|
@ -2347,6 +2559,13 @@ func (o SeitanKeyAndLabel) DeepCopy() SeitanKeyAndLabel { |
|
|
|
tmp := (*x).DeepCopy() |
|
|
|
tmp := (*x).DeepCopy() |
|
|
|
return &tmp |
|
|
|
return &tmp |
|
|
|
})(o.V2__), |
|
|
|
})(o.V2__), |
|
|
|
|
|
|
|
Invitelink__: (func(x *SeitanKeyAndLabelInvitelink) *SeitanKeyAndLabelInvitelink { |
|
|
|
|
|
|
|
if x == nil { |
|
|
|
|
|
|
|
return nil |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
tmp := (*x).DeepCopy() |
|
|
|
|
|
|
|
return &tmp |
|
|
|
|
|
|
|
})(o.Invitelink__), |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -2374,20 +2593,35 @@ func (o SeitanKeyAndLabelVersion2) DeepCopy() SeitanKeyAndLabelVersion2 { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type SeitanKeyAndLabelInvitelink struct { |
|
|
|
|
|
|
|
I SeitanIKeyInvitelink `codec:"i" json:"i"` |
|
|
|
|
|
|
|
L SeitanKeyLabel `codec:"l" json:"l"` |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (o SeitanKeyAndLabelInvitelink) DeepCopy() SeitanKeyAndLabelInvitelink { |
|
|
|
|
|
|
|
return SeitanKeyAndLabelInvitelink{ |
|
|
|
|
|
|
|
I: o.I.DeepCopy(), |
|
|
|
|
|
|
|
L: o.L.DeepCopy(), |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
type SeitanKeyLabelType int |
|
|
|
type SeitanKeyLabelType int |
|
|
|
|
|
|
|
|
|
|
|
const ( |
|
|
|
const ( |
|
|
|
SeitanKeyLabelType_SMS SeitanKeyLabelType = 1 |
|
|
|
SeitanKeyLabelType_SMS SeitanKeyLabelType = 1 |
|
|
|
|
|
|
|
SeitanKeyLabelType_GENERIC SeitanKeyLabelType = 2 |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
func (o SeitanKeyLabelType) DeepCopy() SeitanKeyLabelType { return o } |
|
|
|
func (o SeitanKeyLabelType) DeepCopy() SeitanKeyLabelType { return o } |
|
|
|
|
|
|
|
|
|
|
|
var SeitanKeyLabelTypeMap = map[string]SeitanKeyLabelType{ |
|
|
|
var SeitanKeyLabelTypeMap = map[string]SeitanKeyLabelType{ |
|
|
|
"SMS": 1, |
|
|
|
"SMS": 1, |
|
|
|
|
|
|
|
"GENERIC": 2, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var SeitanKeyLabelTypeRevMap = map[SeitanKeyLabelType]string{ |
|
|
|
var SeitanKeyLabelTypeRevMap = map[SeitanKeyLabelType]string{ |
|
|
|
1: "SMS", |
|
|
|
1: "SMS", |
|
|
|
|
|
|
|
2: "GENERIC", |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func (e SeitanKeyLabelType) String() string { |
|
|
|
func (e SeitanKeyLabelType) String() string { |
|
|
@ -2400,6 +2634,7 @@ func (e SeitanKeyLabelType) String() string { |
|
|
|
type SeitanKeyLabel struct { |
|
|
|
type SeitanKeyLabel struct { |
|
|
|
T__ SeitanKeyLabelType `codec:"t" json:"t"` |
|
|
|
T__ SeitanKeyLabelType `codec:"t" json:"t"` |
|
|
|
Sms__ *SeitanKeyLabelSms `codec:"sms,omitempty" json:"sms,omitempty"` |
|
|
|
Sms__ *SeitanKeyLabelSms `codec:"sms,omitempty" json:"sms,omitempty"` |
|
|
|
|
|
|
|
Generic__ *SeitanKeyLabelGeneric `codec:"generic,omitempty" json:"generic,omitempty"` |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func (o *SeitanKeyLabel) T() (ret SeitanKeyLabelType, err error) { |
|
|
|
func (o *SeitanKeyLabel) T() (ret SeitanKeyLabelType, err error) { |
|
|
@ -2409,6 +2644,11 @@ func (o *SeitanKeyLabel) T() (ret SeitanKeyLabelType, err error) { |
|
|
|
err = errors.New("unexpected nil value for Sms__") |
|
|
|
err = errors.New("unexpected nil value for Sms__") |
|
|
|
return ret, err |
|
|
|
return ret, err |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
case SeitanKeyLabelType_GENERIC: |
|
|
|
|
|
|
|
if o.Generic__ == nil { |
|
|
|
|
|
|
|
err = errors.New("unexpected nil value for Generic__") |
|
|
|
|
|
|
|
return ret, err |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return o.T__, nil |
|
|
|
return o.T__, nil |
|
|
|
} |
|
|
|
} |
|
|
@ -2423,6 +2663,16 @@ func (o SeitanKeyLabel) Sms() (res SeitanKeyLabelSms) { |
|
|
|
return *o.Sms__ |
|
|
|
return *o.Sms__ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (o SeitanKeyLabel) Generic() (res SeitanKeyLabelGeneric) { |
|
|
|
|
|
|
|
if o.T__ != SeitanKeyLabelType_GENERIC { |
|
|
|
|
|
|
|
panic("wrong case accessed") |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if o.Generic__ == nil { |
|
|
|
|
|
|
|
return |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return *o.Generic__ |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func NewSeitanKeyLabelWithSms(v SeitanKeyLabelSms) SeitanKeyLabel { |
|
|
|
func NewSeitanKeyLabelWithSms(v SeitanKeyLabelSms) SeitanKeyLabel { |
|
|
|
return SeitanKeyLabel{ |
|
|
|
return SeitanKeyLabel{ |
|
|
|
T__: SeitanKeyLabelType_SMS, |
|
|
|
T__: SeitanKeyLabelType_SMS, |
|
|
@ -2430,6 +2680,13 @@ func NewSeitanKeyLabelWithSms(v SeitanKeyLabelSms) SeitanKeyLabel { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func NewSeitanKeyLabelWithGeneric(v SeitanKeyLabelGeneric) SeitanKeyLabel { |
|
|
|
|
|
|
|
return SeitanKeyLabel{ |
|
|
|
|
|
|
|
T__: SeitanKeyLabelType_GENERIC, |
|
|
|
|
|
|
|
Generic__: &v, |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func NewSeitanKeyLabelDefault(t SeitanKeyLabelType) SeitanKeyLabel { |
|
|
|
func NewSeitanKeyLabelDefault(t SeitanKeyLabelType) SeitanKeyLabel { |
|
|
|
return SeitanKeyLabel{ |
|
|
|
return SeitanKeyLabel{ |
|
|
|
T__: t, |
|
|
|
T__: t, |
|
|
@ -2446,6 +2703,13 @@ func (o SeitanKeyLabel) DeepCopy() SeitanKeyLabel { |
|
|
|
tmp := (*x).DeepCopy() |
|
|
|
tmp := (*x).DeepCopy() |
|
|
|
return &tmp |
|
|
|
return &tmp |
|
|
|
})(o.Sms__), |
|
|
|
})(o.Sms__), |
|
|
|
|
|
|
|
Generic__: (func(x *SeitanKeyLabelGeneric) *SeitanKeyLabelGeneric { |
|
|
|
|
|
|
|
if x == nil { |
|
|
|
|
|
|
|
return nil |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
tmp := (*x).DeepCopy() |
|
|
|
|
|
|
|
return &tmp |
|
|
|
|
|
|
|
})(o.Generic__), |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -2461,6 +2725,16 @@ func (o SeitanKeyLabelSms) DeepCopy() SeitanKeyLabelSms { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type SeitanKeyLabelGeneric struct { |
|
|
|
|
|
|
|
L string `codec:"l" json:"l"` |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (o SeitanKeyLabelGeneric) DeepCopy() SeitanKeyLabelGeneric { |
|
|
|
|
|
|
|
return SeitanKeyLabelGeneric{ |
|
|
|
|
|
|
|
L: o.L, |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
type TeamSeitanRequest struct { |
|
|
|
type TeamSeitanRequest struct { |
|
|
|
InviteID TeamInviteID `codec:"inviteID" json:"invite_id"` |
|
|
|
InviteID TeamInviteID `codec:"inviteID" json:"invite_id"` |
|
|
|
Uid UID `codec:"uid" json:"uid"` |
|
|
|
Uid UID `codec:"uid" json:"uid"` |
|
|
@ -2903,12 +3177,16 @@ func (o TeamAddMembersResult) DeepCopy() TeamAddMembersResult { |
|
|
|
type TeamJoinRequest struct { |
|
|
|
type TeamJoinRequest struct { |
|
|
|
Name string `codec:"name" json:"name"` |
|
|
|
Name string `codec:"name" json:"name"` |
|
|
|
Username string `codec:"username" json:"username"` |
|
|
|
Username string `codec:"username" json:"username"` |
|
|
|
|
|
|
|
FullName FullName `codec:"fullName" json:"fullName"` |
|
|
|
|
|
|
|
Ctime UnixTime `codec:"ctime" json:"ctime"` |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func (o TeamJoinRequest) DeepCopy() TeamJoinRequest { |
|
|
|
func (o TeamJoinRequest) DeepCopy() TeamJoinRequest { |
|
|
|
return TeamJoinRequest{ |
|
|
|
return TeamJoinRequest{ |
|
|
|
Name: o.Name, |
|
|
|
Name: o.Name, |
|
|
|
Username: o.Username, |
|
|
|
Username: o.Username, |
|
|
|
|
|
|
|
FullName: o.FullName.DeepCopy(), |
|
|
|
|
|
|
|
Ctime: o.Ctime.DeepCopy(), |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -3107,14 +3385,14 @@ func (o TeamAndMemberShowcase) DeepCopy() TeamAndMemberShowcase { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
type UserRolePair struct { |
|
|
|
type UserRolePair struct { |
|
|
|
AssertionOrEmail string `codec:"assertionOrEmail" json:"assertionOrEmail"` |
|
|
|
Assertion string `codec:"assertion" json:"assertion"` |
|
|
|
Role TeamRole `codec:"role" json:"role"` |
|
|
|
Role TeamRole `codec:"role" json:"role"` |
|
|
|
BotSettings *TeamBotSettings `codec:"botSettings,omitempty" json:"botSettings,omitempty"` |
|
|
|
BotSettings *TeamBotSettings `codec:"botSettings,omitempty" json:"botSettings,omitempty"` |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func (o UserRolePair) DeepCopy() UserRolePair { |
|
|
|
func (o UserRolePair) DeepCopy() UserRolePair { |
|
|
|
return UserRolePair{ |
|
|
|
return UserRolePair{ |
|
|
|
AssertionOrEmail: o.AssertionOrEmail, |
|
|
|
Assertion: o.Assertion, |
|
|
|
Role: o.Role.DeepCopy(), |
|
|
|
Role: o.Role.DeepCopy(), |
|
|
|
BotSettings: (func(x *TeamBotSettings) *TeamBotSettings { |
|
|
|
BotSettings: (func(x *TeamBotSettings) *TeamBotSettings { |
|
|
|
if x == nil { |
|
|
|
if x == nil { |
|
|
@ -3126,36 +3404,92 @@ func (o UserRolePair) DeepCopy() UserRolePair { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
type BulkRes struct { |
|
|
|
type TeamMemberToRemove struct { |
|
|
|
Invited []string `codec:"invited" json:"invited"` |
|
|
|
Username string `codec:"username" json:"username"` |
|
|
|
AlreadyInvited []string `codec:"alreadyInvited" json:"alreadyInvited"` |
|
|
|
Email string `codec:"email" json:"email"` |
|
|
|
Malformed []string `codec:"malformed" json:"malformed"` |
|
|
|
InviteID TeamInviteID `codec:"inviteID" json:"inviteID"` |
|
|
|
|
|
|
|
AllowInaction bool `codec:"allowInaction" json:"allowInaction"` |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func (o BulkRes) DeepCopy() BulkRes { |
|
|
|
func (o TeamMemberToRemove) DeepCopy() TeamMemberToRemove { |
|
|
|
return BulkRes{ |
|
|
|
return TeamMemberToRemove{ |
|
|
|
Invited: (func(x []string) []string { |
|
|
|
Username: o.Username, |
|
|
|
|
|
|
|
Email: o.Email, |
|
|
|
|
|
|
|
InviteID: o.InviteID.DeepCopy(), |
|
|
|
|
|
|
|
AllowInaction: o.AllowInaction, |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type TeamRemoveMembersResult struct { |
|
|
|
|
|
|
|
Failures []TeamMemberToRemove `codec:"failures" json:"failures"` |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (o TeamRemoveMembersResult) DeepCopy() TeamRemoveMembersResult { |
|
|
|
|
|
|
|
return TeamRemoveMembersResult{ |
|
|
|
|
|
|
|
Failures: (func(x []TeamMemberToRemove) []TeamMemberToRemove { |
|
|
|
if x == nil { |
|
|
|
if x == nil { |
|
|
|
return nil |
|
|
|
return nil |
|
|
|
} |
|
|
|
} |
|
|
|
ret := make([]string, len(x)) |
|
|
|
ret := make([]TeamMemberToRemove, len(x)) |
|
|
|
for i, v := range x { |
|
|
|
for i, v := range x { |
|
|
|
vCopy := v |
|
|
|
vCopy := v.DeepCopy() |
|
|
|
ret[i] = vCopy |
|
|
|
ret[i] = vCopy |
|
|
|
} |
|
|
|
} |
|
|
|
return ret |
|
|
|
return ret |
|
|
|
})(o.Invited), |
|
|
|
})(o.Failures), |
|
|
|
AlreadyInvited: (func(x []string) []string { |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type TeamEditMembersResult struct { |
|
|
|
|
|
|
|
Failures []UserRolePair `codec:"failures" json:"failures"` |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (o TeamEditMembersResult) DeepCopy() TeamEditMembersResult { |
|
|
|
|
|
|
|
return TeamEditMembersResult{ |
|
|
|
|
|
|
|
Failures: (func(x []UserRolePair) []UserRolePair { |
|
|
|
if x == nil { |
|
|
|
if x == nil { |
|
|
|
return nil |
|
|
|
return nil |
|
|
|
} |
|
|
|
} |
|
|
|
ret := make([]string, len(x)) |
|
|
|
ret := make([]UserRolePair, len(x)) |
|
|
|
for i, v := range x { |
|
|
|
for i, v := range x { |
|
|
|
vCopy := v |
|
|
|
vCopy := v.DeepCopy() |
|
|
|
ret[i] = vCopy |
|
|
|
ret[i] = vCopy |
|
|
|
} |
|
|
|
} |
|
|
|
return ret |
|
|
|
return ret |
|
|
|
})(o.AlreadyInvited), |
|
|
|
})(o.Failures), |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type UntrustedTeamExistsResult struct { |
|
|
|
|
|
|
|
Exists bool `codec:"exists" json:"exists"` |
|
|
|
|
|
|
|
Status StatusCode `codec:"status" json:"status"` |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (o UntrustedTeamExistsResult) DeepCopy() UntrustedTeamExistsResult { |
|
|
|
|
|
|
|
return UntrustedTeamExistsResult{ |
|
|
|
|
|
|
|
Exists: o.Exists, |
|
|
|
|
|
|
|
Status: o.Status.DeepCopy(), |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type Invitelink struct { |
|
|
|
|
|
|
|
Ikey SeitanIKeyInvitelink `codec:"ikey" json:"ikey"` |
|
|
|
|
|
|
|
Url string `codec:"url" json:"url"` |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (o Invitelink) DeepCopy() Invitelink { |
|
|
|
|
|
|
|
return Invitelink{ |
|
|
|
|
|
|
|
Ikey: o.Ikey.DeepCopy(), |
|
|
|
|
|
|
|
Url: o.Url, |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type BulkRes struct { |
|
|
|
|
|
|
|
Malformed []string `codec:"malformed" json:"malformed"` |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (o BulkRes) DeepCopy() BulkRes { |
|
|
|
|
|
|
|
return BulkRes{ |
|
|
|
Malformed: (func(x []string) []string { |
|
|
|
Malformed: (func(x []string) []string { |
|
|
|
if x == nil { |
|
|
|
if x == nil { |
|
|
|
return nil |
|
|
|
return nil |
|
|
@ -3170,6 +3504,43 @@ func (o BulkRes) DeepCopy() BulkRes { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type InviteLinkDetails struct { |
|
|
|
|
|
|
|
InviteID TeamInviteID `codec:"inviteID" json:"inviteID"` |
|
|
|
|
|
|
|
InviterUID UID `codec:"inviterUID" json:"inviterUID"` |
|
|
|
|
|
|
|
InviterUsername string `codec:"inviterUsername" json:"inviterUsername"` |
|
|
|
|
|
|
|
InviterResetOrDel bool `codec:"inviterResetOrDel" json:"inviterResetOrDel"` |
|
|
|
|
|
|
|
TeamID TeamID `codec:"teamID" json:"teamID"` |
|
|
|
|
|
|
|
TeamDesc string `codec:"teamDesc" json:"teamDesc"` |
|
|
|
|
|
|
|
TeamName TeamName `codec:"teamName" json:"teamName"` |
|
|
|
|
|
|
|
TeamNumMembers int `codec:"teamNumMembers" json:"teamNumMembers"` |
|
|
|
|
|
|
|
TeamAvatars map[AvatarFormat]AvatarUrl `codec:"teamAvatars" json:"teamAvatars"` |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (o InviteLinkDetails) DeepCopy() InviteLinkDetails { |
|
|
|
|
|
|
|
return InviteLinkDetails{ |
|
|
|
|
|
|
|
InviteID: o.InviteID.DeepCopy(), |
|
|
|
|
|
|
|
InviterUID: o.InviterUID.DeepCopy(), |
|
|
|
|
|
|
|
InviterUsername: o.InviterUsername, |
|
|
|
|
|
|
|
InviterResetOrDel: o.InviterResetOrDel, |
|
|
|
|
|
|
|
TeamID: o.TeamID.DeepCopy(), |
|
|
|
|
|
|
|
TeamDesc: o.TeamDesc, |
|
|
|
|
|
|
|
TeamName: o.TeamName.DeepCopy(), |
|
|
|
|
|
|
|
TeamNumMembers: o.TeamNumMembers, |
|
|
|
|
|
|
|
TeamAvatars: (func(x map[AvatarFormat]AvatarUrl) map[AvatarFormat]AvatarUrl { |
|
|
|
|
|
|
|
if x == nil { |
|
|
|
|
|
|
|
return nil |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
ret := make(map[AvatarFormat]AvatarUrl, len(x)) |
|
|
|
|
|
|
|
for k, v := range x { |
|
|
|
|
|
|
|
kCopy := k.DeepCopy() |
|
|
|
|
|
|
|
vCopy := v.DeepCopy() |
|
|
|
|
|
|
|
ret[kCopy] = vCopy |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return ret |
|
|
|
|
|
|
|
})(o.TeamAvatars), |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
type ImplicitTeamUserSet struct { |
|
|
|
type ImplicitTeamUserSet struct { |
|
|
|
KeybaseUsers []string `codec:"keybaseUsers" json:"keybaseUsers"` |
|
|
|
KeybaseUsers []string `codec:"keybaseUsers" json:"keybaseUsers"` |
|
|
|
UnresolvedUsers []SocialAssertion `codec:"unresolvedUsers" json:"unresolvedUsers"` |
|
|
|
UnresolvedUsers []SocialAssertion `codec:"unresolvedUsers" json:"unresolvedUsers"` |
|
|
@ -3486,7 +3857,6 @@ type AnnotatedTeam struct { |
|
|
|
Members []AnnotatedTeamMemberDetails `codec:"members" json:"members"` |
|
|
|
Members []AnnotatedTeamMemberDetails `codec:"members" json:"members"` |
|
|
|
Invites []AnnotatedTeamInvite `codec:"invites" json:"invites"` |
|
|
|
Invites []AnnotatedTeamInvite `codec:"invites" json:"invites"` |
|
|
|
JoinRequests []TeamJoinRequest `codec:"joinRequests" json:"joinRequests"` |
|
|
|
JoinRequests []TeamJoinRequest `codec:"joinRequests" json:"joinRequests"` |
|
|
|
UserIsShowcasing bool `codec:"userIsShowcasing" json:"userIsShowcasing"` |
|
|
|
|
|
|
|
TarsDisabled bool `codec:"tarsDisabled" json:"tarsDisabled"` |
|
|
|
TarsDisabled bool `codec:"tarsDisabled" json:"tarsDisabled"` |
|
|
|
Settings TeamSettings `codec:"settings" json:"settings"` |
|
|
|
Settings TeamSettings `codec:"settings" json:"settings"` |
|
|
|
Showcase TeamShowcase `codec:"showcase" json:"showcase"` |
|
|
|
Showcase TeamShowcase `codec:"showcase" json:"showcase"` |
|
|
@ -3530,9 +3900,156 @@ func (o AnnotatedTeam) DeepCopy() AnnotatedTeam { |
|
|
|
} |
|
|
|
} |
|
|
|
return ret |
|
|
|
return ret |
|
|
|
})(o.JoinRequests), |
|
|
|
})(o.JoinRequests), |
|
|
|
UserIsShowcasing: o.UserIsShowcasing, |
|
|
|
|
|
|
|
TarsDisabled: o.TarsDisabled, |
|
|
|
TarsDisabled: o.TarsDisabled, |
|
|
|
Settings: o.Settings.DeepCopy(), |
|
|
|
Settings: o.Settings.DeepCopy(), |
|
|
|
Showcase: o.Showcase.DeepCopy(), |
|
|
|
Showcase: o.Showcase.DeepCopy(), |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type AnnotatedSubteamMemberDetails struct { |
|
|
|
|
|
|
|
TeamName TeamName `codec:"teamName" json:"teamName"` |
|
|
|
|
|
|
|
TeamID TeamID `codec:"teamID" json:"teamID"` |
|
|
|
|
|
|
|
Details TeamMemberDetails `codec:"details" json:"details"` |
|
|
|
|
|
|
|
Role TeamRole `codec:"role" json:"role"` |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (o AnnotatedSubteamMemberDetails) DeepCopy() AnnotatedSubteamMemberDetails { |
|
|
|
|
|
|
|
return AnnotatedSubteamMemberDetails{ |
|
|
|
|
|
|
|
TeamName: o.TeamName.DeepCopy(), |
|
|
|
|
|
|
|
TeamID: o.TeamID.DeepCopy(), |
|
|
|
|
|
|
|
Details: o.Details.DeepCopy(), |
|
|
|
|
|
|
|
Role: o.Role.DeepCopy(), |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type TeamTreeMembershipValue struct { |
|
|
|
|
|
|
|
Role TeamRole `codec:"role" json:"role"` |
|
|
|
|
|
|
|
JoinTime *Time `codec:"joinTime,omitempty" json:"joinTime,omitempty"` |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (o TeamTreeMembershipValue) DeepCopy() TeamTreeMembershipValue { |
|
|
|
|
|
|
|
return TeamTreeMembershipValue{ |
|
|
|
|
|
|
|
Role: o.Role.DeepCopy(), |
|
|
|
|
|
|
|
JoinTime: (func(x *Time) *Time { |
|
|
|
|
|
|
|
if x == nil { |
|
|
|
|
|
|
|
return nil |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
tmp := (*x).DeepCopy() |
|
|
|
|
|
|
|
return &tmp |
|
|
|
|
|
|
|
})(o.JoinTime), |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type TeamTreeMembershipStatus int |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const ( |
|
|
|
|
|
|
|
TeamTreeMembershipStatus_OK TeamTreeMembershipStatus = 0 |
|
|
|
|
|
|
|
TeamTreeMembershipStatus_ERROR TeamTreeMembershipStatus = 1 |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (o TeamTreeMembershipStatus) DeepCopy() TeamTreeMembershipStatus { return o } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var TeamTreeMembershipStatusMap = map[string]TeamTreeMembershipStatus{ |
|
|
|
|
|
|
|
"OK": 0, |
|
|
|
|
|
|
|
"ERROR": 1, |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var TeamTreeMembershipStatusRevMap = map[TeamTreeMembershipStatus]string{ |
|
|
|
|
|
|
|
0: "OK", |
|
|
|
|
|
|
|
1: "ERROR", |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (e TeamTreeMembershipStatus) String() string { |
|
|
|
|
|
|
|
if v, ok := TeamTreeMembershipStatusRevMap[e]; ok { |
|
|
|
|
|
|
|
return v |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return fmt.Sprintf("%v", int(e)) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type TeamTreeMembershipResult struct { |
|
|
|
|
|
|
|
S__ TeamTreeMembershipStatus `codec:"s" json:"s"` |
|
|
|
|
|
|
|
Ok__ *TeamTreeMembershipValue `codec:"ok,omitempty" json:"ok,omitempty"` |
|
|
|
|
|
|
|
Error__ *GenericError `codec:"error,omitempty" json:"error,omitempty"` |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (o *TeamTreeMembershipResult) S() (ret TeamTreeMembershipStatus, err error) { |
|
|
|
|
|
|
|
switch o.S__ { |
|
|
|
|
|
|
|
case TeamTreeMembershipStatus_OK: |
|
|
|
|
|
|
|
if o.Ok__ == nil { |
|
|
|
|
|
|
|
err = errors.New("unexpected nil value for Ok__") |
|
|
|
|
|
|
|
return ret, err |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
case TeamTreeMembershipStatus_ERROR: |
|
|
|
|
|
|
|
if o.Error__ == nil { |
|
|
|
|
|
|
|
err = errors.New("unexpected nil value for Error__") |
|
|
|
|
|
|
|
return ret, err |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return o.S__, nil |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (o TeamTreeMembershipResult) Ok() (res TeamTreeMembershipValue) { |
|
|
|
|
|
|
|
if o.S__ != TeamTreeMembershipStatus_OK { |
|
|
|
|
|
|
|
panic("wrong case accessed") |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if o.Ok__ == nil { |
|
|
|
|
|
|
|
return |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return *o.Ok__ |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (o TeamTreeMembershipResult) Error() (res GenericError) { |
|
|
|
|
|
|
|
if o.S__ != TeamTreeMembershipStatus_ERROR { |
|
|
|
|
|
|
|
panic("wrong case accessed") |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if o.Error__ == nil { |
|
|
|
|
|
|
|
return |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return *o.Error__ |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func NewTeamTreeMembershipResultWithOk(v TeamTreeMembershipValue) TeamTreeMembershipResult { |
|
|
|
|
|
|
|
return TeamTreeMembershipResult{ |
|
|
|
|
|
|
|
S__: TeamTreeMembershipStatus_OK, |
|
|
|
|
|
|
|
Ok__: &v, |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func NewTeamTreeMembershipResultWithError(v GenericError) TeamTreeMembershipResult { |
|
|
|
|
|
|
|
return TeamTreeMembershipResult{ |
|
|
|
|
|
|
|
S__: TeamTreeMembershipStatus_ERROR, |
|
|
|
|
|
|
|
Error__: &v, |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (o TeamTreeMembershipResult) DeepCopy() TeamTreeMembershipResult { |
|
|
|
|
|
|
|
return TeamTreeMembershipResult{ |
|
|
|
|
|
|
|
S__: o.S__.DeepCopy(), |
|
|
|
|
|
|
|
Ok__: (func(x *TeamTreeMembershipValue) *TeamTreeMembershipValue { |
|
|
|
|
|
|
|
if x == nil { |
|
|
|
|
|
|
|
return nil |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
tmp := (*x).DeepCopy() |
|
|
|
|
|
|
|
return &tmp |
|
|
|
|
|
|
|
})(o.Ok__), |
|
|
|
|
|
|
|
Error__: (func(x *GenericError) *GenericError { |
|
|
|
|
|
|
|
if x == nil { |
|
|
|
|
|
|
|
return nil |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
tmp := (*x).DeepCopy() |
|
|
|
|
|
|
|
return &tmp |
|
|
|
|
|
|
|
})(o.Error__), |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type TeamTreeMembership struct { |
|
|
|
|
|
|
|
TeamName TeamName `codec:"teamName" json:"teamName"` |
|
|
|
|
|
|
|
Result TeamTreeMembershipResult `codec:"result" json:"result"` |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (o TeamTreeMembership) DeepCopy() TeamTreeMembership { |
|
|
|
|
|
|
|
return TeamTreeMembership{ |
|
|
|
|
|
|
|
TeamName: o.TeamName.DeepCopy(), |
|
|
|
|
|
|
|
Result: o.Result.DeepCopy(), |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|