Update AVDL compiled types

This commit is contained in:
Sam
2020-04-08 13:18:10 -04:00
parent 0fd676670f
commit b51c00a910
30 changed files with 2926 additions and 452 deletions

View File

@ -139,9 +139,119 @@ func (o MsgFlipContent) DeepCopy() MsgFlipContent {
}
}
type EmojiContent struct {
Alias string `codec:"alias" json:"alias"`
IsCrossTeam bool `codec:"isCrossTeam" json:"isCrossTeam"`
ConvID *ConvIDStr `codec:"convID,omitempty" json:"convID,omitempty"`
MessageID *MessageID `codec:"messageID,omitempty" json:"messageID,omitempty"`
}
func (o EmojiContent) DeepCopy() EmojiContent {
return EmojiContent{
Alias: o.Alias,
IsCrossTeam: o.IsCrossTeam,
ConvID: (func(x *ConvIDStr) *ConvIDStr {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.ConvID),
MessageID: (func(x *MessageID) *MessageID {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.MessageID),
}
}
type MsgTextContent struct {
Body string `codec:"body" json:"body"`
Payments []TextPayment `codec:"payments" json:"payments"`
ReplyTo *MessageID `codec:"replyTo,omitempty" json:"replyTo,omitempty"`
ReplyToUID *string `codec:"replyToUID,omitempty" json:"replyToUID,omitempty"`
UserMentions []KnownUserMention `codec:"userMentions" json:"userMentions"`
TeamMentions []KnownTeamMention `codec:"teamMentions" json:"teamMentions"`
LiveLocation *LiveLocation `codec:"liveLocation,omitempty" json:"liveLocation,omitempty"`
Emojis []EmojiContent `codec:"emojis" json:"emojis"`
}
func (o MsgTextContent) DeepCopy() MsgTextContent {
return MsgTextContent{
Body: o.Body,
Payments: (func(x []TextPayment) []TextPayment {
if x == nil {
return nil
}
ret := make([]TextPayment, len(x))
for i, v := range x {
vCopy := v.DeepCopy()
ret[i] = vCopy
}
return ret
})(o.Payments),
ReplyTo: (func(x *MessageID) *MessageID {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.ReplyTo),
ReplyToUID: (func(x *string) *string {
if x == nil {
return nil
}
tmp := (*x)
return &tmp
})(o.ReplyToUID),
UserMentions: (func(x []KnownUserMention) []KnownUserMention {
if x == nil {
return nil
}
ret := make([]KnownUserMention, len(x))
for i, v := range x {
vCopy := v.DeepCopy()
ret[i] = vCopy
}
return ret
})(o.UserMentions),
TeamMentions: (func(x []KnownTeamMention) []KnownTeamMention {
if x == nil {
return nil
}
ret := make([]KnownTeamMention, len(x))
for i, v := range x {
vCopy := v.DeepCopy()
ret[i] = vCopy
}
return ret
})(o.TeamMentions),
LiveLocation: (func(x *LiveLocation) *LiveLocation {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.LiveLocation),
Emojis: (func(x []EmojiContent) []EmojiContent {
if x == nil {
return nil
}
ret := make([]EmojiContent, len(x))
for i, v := range x {
vCopy := v.DeepCopy()
ret[i] = vCopy
}
return ret
})(o.Emojis),
}
}
type MsgContent struct {
TypeName string `codec:"typeName" json:"type"`
Text *MessageText `codec:"text,omitempty" json:"text,omitempty"`
Text *MsgTextContent `codec:"text,omitempty" json:"text,omitempty"`
Attachment *MessageAttachment `codec:"attachment,omitempty" json:"attachment,omitempty"`
Edit *MessageEdit `codec:"edit,omitempty" json:"edit,omitempty"`
Reaction *MessageReaction `codec:"reaction,omitempty" json:"reaction,omitempty"`
@ -159,7 +269,7 @@ type MsgContent struct {
func (o MsgContent) DeepCopy() MsgContent {
return MsgContent{
TypeName: o.TypeName,
Text: (func(x *MessageText) *MessageText {
Text: (func(x *MsgTextContent) *MsgTextContent {
if x == nil {
return nil
}
@ -269,7 +379,7 @@ type MsgSummary struct {
IsEphemeral bool `codec:"isEphemeral,omitempty" json:"is_ephemeral,omitempty"`
IsEphemeralExpired bool `codec:"isEphemeralExpired,omitempty" json:"is_ephemeral_expired,omitempty"`
ETime gregor1.Time `codec:"eTime,omitempty" json:"e_time,omitempty"`
Reactions *ReactionMap `codec:"reactions,omitempty" json:"reactions,omitempty"`
Reactions *UIReactionMap `codec:"reactions,omitempty" json:"reactions,omitempty"`
HasPairwiseMacs bool `codec:"hasPairwiseMacs,omitempty" json:"has_pairwise_macs,omitempty"`
AtMentionUsernames []string `codec:"atMentionUsernames,omitempty" json:"at_mention_usernames,omitempty"`
ChannelMention string `codec:"channelMention,omitempty" json:"channel_mention,omitempty"`
@ -304,7 +414,7 @@ func (o MsgSummary) DeepCopy() MsgSummary {
IsEphemeral: o.IsEphemeral,
IsEphemeralExpired: o.IsEphemeralExpired,
ETime: o.ETime.DeepCopy(),
Reactions: (func(x *ReactionMap) *ReactionMap {
Reactions: (func(x *UIReactionMap) *UIReactionMap {
if x == nil {
return nil
}
@ -897,17 +1007,17 @@ func (o GetResetConvMembersRes) DeepCopy() GetResetConvMembersRes {
}
type DeviceInfo struct {
DeviceID keybase1.DeviceID `codec:"deviceID" json:"id"`
DeviceDescription string `codec:"deviceDescription" json:"description"`
DeviceType string `codec:"deviceType" json:"type"`
DeviceCtime int64 `codec:"deviceCtime" json:"ctime"`
DeviceID keybase1.DeviceID `codec:"deviceID" json:"id"`
DeviceDescription string `codec:"deviceDescription" json:"description"`
DeviceType keybase1.DeviceTypeV2 `codec:"deviceType" json:"type"`
DeviceCtime int64 `codec:"deviceCtime" json:"ctime"`
}
func (o DeviceInfo) DeepCopy() DeviceInfo {
return DeviceInfo{
DeviceID: o.DeviceID.DeepCopy(),
DeviceDescription: o.DeviceDescription,
DeviceType: o.DeviceType,
DeviceType: o.DeviceType.DeepCopy(),
DeviceCtime: o.DeviceCtime,
}
}

View File

@ -536,6 +536,7 @@ type InboxUIItem struct {
IsDefaultConv bool `codec:"isDefaultConv" json:"isDefaultConv"`
Name string `codec:"name" json:"name"`
Snippet string `codec:"snippet" json:"snippet"`
SnippetDecorated string `codec:"snippetDecorated" json:"snippetDecorated"`
SnippetDecoration SnippetDecoration `codec:"snippetDecoration" json:"snippetDecoration"`
Channel string `codec:"channel" json:"channel"`
Headline string `codec:"headline" json:"headline"`
@ -578,6 +579,7 @@ func (o InboxUIItem) DeepCopy() InboxUIItem {
IsDefaultConv: o.IsDefaultConv,
Name: o.Name,
Snippet: o.Snippet,
SnippetDecorated: o.SnippetDecorated,
SnippetDecoration: o.SnippetDecoration.DeepCopy(),
Channel: o.Channel,
Headline: o.Headline,
@ -888,6 +890,50 @@ func (o UIMessageUnfurlInfo) DeepCopy() UIMessageUnfurlInfo {
}
}
type UIReactionDesc struct {
Decorated string `codec:"decorated" json:"decorated"`
Users map[string]Reaction `codec:"users" json:"users"`
}
func (o UIReactionDesc) DeepCopy() UIReactionDesc {
return UIReactionDesc{
Decorated: o.Decorated,
Users: (func(x map[string]Reaction) map[string]Reaction {
if x == nil {
return nil
}
ret := make(map[string]Reaction, len(x))
for k, v := range x {
kCopy := k
vCopy := v.DeepCopy()
ret[kCopy] = vCopy
}
return ret
})(o.Users),
}
}
type UIReactionMap struct {
Reactions map[string]UIReactionDesc `codec:"reactions" json:"reactions"`
}
func (o UIReactionMap) DeepCopy() UIReactionMap {
return UIReactionMap{
Reactions: (func(x map[string]UIReactionDesc) map[string]UIReactionDesc {
if x == nil {
return nil
}
ret := make(map[string]UIReactionDesc, len(x))
for k, v := range x {
kCopy := k
vCopy := v.DeepCopy()
ret[kCopy] = vCopy
}
return ret
})(o.Reactions),
}
}
type UIMessageValid struct {
MessageID MessageID `codec:"messageID" json:"messageID"`
Ctime gregor1.Time `codec:"ctime" json:"ctime"`
@ -897,7 +943,7 @@ type UIMessageValid struct {
BodySummary string `codec:"bodySummary" json:"bodySummary"`
SenderUsername string `codec:"senderUsername" json:"senderUsername"`
SenderDeviceName string `codec:"senderDeviceName" json:"senderDeviceName"`
SenderDeviceType string `codec:"senderDeviceType" json:"senderDeviceType"`
SenderDeviceType keybase1.DeviceTypeV2 `codec:"senderDeviceType" json:"senderDeviceType"`
SenderUID gregor1.UID `codec:"senderUID" json:"senderUID"`
SenderDeviceID gregor1.DeviceID `codec:"senderDeviceID" json:"senderDeviceID"`
Superseded bool `codec:"superseded" json:"superseded"`
@ -910,7 +956,7 @@ type UIMessageValid struct {
IsEphemeralExpired bool `codec:"isEphemeralExpired" json:"isEphemeralExpired"`
ExplodedBy *string `codec:"explodedBy,omitempty" json:"explodedBy,omitempty"`
Etime gregor1.Time `codec:"etime" json:"etime"`
Reactions ReactionMap `codec:"reactions" json:"reactions"`
Reactions UIReactionMap `codec:"reactions" json:"reactions"`
HasPairwiseMacs bool `codec:"hasPairwiseMacs" json:"hasPairwiseMacs"`
PaymentInfos []UIPaymentInfo `codec:"paymentInfos" json:"paymentInfos"`
RequestInfo *UIRequestInfo `codec:"requestInfo,omitempty" json:"requestInfo,omitempty"`
@ -946,7 +992,7 @@ func (o UIMessageValid) DeepCopy() UIMessageValid {
BodySummary: o.BodySummary,
SenderUsername: o.SenderUsername,
SenderDeviceName: o.SenderDeviceName,
SenderDeviceType: o.SenderDeviceType,
SenderDeviceType: o.SenderDeviceType.DeepCopy(),
SenderUID: o.SenderUID.DeepCopy(),
SenderDeviceID: o.SenderDeviceID.DeepCopy(),
Superseded: o.Superseded,
@ -1067,6 +1113,7 @@ type UIMessageOutbox struct {
IsEphemeral bool `codec:"isEphemeral" json:"isEphemeral"`
FlipGameID *FlipGameIDStr `codec:"flipGameID,omitempty" json:"flipGameID,omitempty"`
ReplyTo *UIMessage `codec:"replyTo,omitempty" json:"replyTo,omitempty"`
Supersedes MessageID `codec:"supersedes" json:"supersedes"`
Filename string `codec:"filename" json:"filename"`
Title string `codec:"title" json:"title"`
Preview *MakePreviewRes `codec:"preview,omitempty" json:"preview,omitempty"`
@ -1102,8 +1149,9 @@ func (o UIMessageOutbox) DeepCopy() UIMessageOutbox {
tmp := (*x).DeepCopy()
return &tmp
})(o.ReplyTo),
Filename: o.Filename,
Title: o.Title,
Supersedes: o.Supersedes.DeepCopy(),
Filename: o.Filename,
Title: o.Title,
Preview: (func(x *MakePreviewRes) *MakePreviewRes {
if x == nil {
return nil
@ -1417,6 +1465,7 @@ const (
UITextDecorationTyp_LINK UITextDecorationTyp = 4
UITextDecorationTyp_MAILTO UITextDecorationTyp = 5
UITextDecorationTyp_KBFSPATH UITextDecorationTyp = 6
UITextDecorationTyp_EMOJI UITextDecorationTyp = 7
)
func (o UITextDecorationTyp) DeepCopy() UITextDecorationTyp { return o }
@ -1429,6 +1478,7 @@ var UITextDecorationTypMap = map[string]UITextDecorationTyp{
"LINK": 4,
"MAILTO": 5,
"KBFSPATH": 6,
"EMOJI": 7,
}
var UITextDecorationTypRevMap = map[UITextDecorationTyp]string{
@ -1439,6 +1489,7 @@ var UITextDecorationTypRevMap = map[UITextDecorationTyp]string{
4: "LINK",
5: "MAILTO",
6: "KBFSPATH",
7: "EMOJI",
}
func (e UITextDecorationTyp) String() string {
@ -1565,6 +1616,7 @@ type UITextDecoration struct {
Link__ *UILinkDecoration `codec:"link,omitempty" json:"link,omitempty"`
Mailto__ *UILinkDecoration `codec:"mailto,omitempty" json:"mailto,omitempty"`
Kbfspath__ *KBFSPath `codec:"kbfspath,omitempty" json:"kbfspath,omitempty"`
Emoji__ *Emoji `codec:"emoji,omitempty" json:"emoji,omitempty"`
}
func (o *UITextDecoration) Typ() (ret UITextDecorationTyp, err error) {
@ -1604,6 +1656,11 @@ func (o *UITextDecoration) Typ() (ret UITextDecorationTyp, err error) {
err = errors.New("unexpected nil value for Kbfspath__")
return ret, err
}
case UITextDecorationTyp_EMOJI:
if o.Emoji__ == nil {
err = errors.New("unexpected nil value for Emoji__")
return ret, err
}
}
return o.Typ__, nil
}
@ -1678,6 +1735,16 @@ func (o UITextDecoration) Kbfspath() (res KBFSPath) {
return *o.Kbfspath__
}
func (o UITextDecoration) Emoji() (res Emoji) {
if o.Typ__ != UITextDecorationTyp_EMOJI {
panic("wrong case accessed")
}
if o.Emoji__ == nil {
return
}
return *o.Emoji__
}
func NewUITextDecorationWithPayment(v TextPayment) UITextDecoration {
return UITextDecoration{
Typ__: UITextDecorationTyp_PAYMENT,
@ -1727,6 +1794,13 @@ func NewUITextDecorationWithKbfspath(v KBFSPath) UITextDecoration {
}
}
func NewUITextDecorationWithEmoji(v Emoji) UITextDecoration {
return UITextDecoration{
Typ__: UITextDecorationTyp_EMOJI,
Emoji__: &v,
}
}
func (o UITextDecoration) DeepCopy() UITextDecoration {
return UITextDecoration{
Typ__: o.Typ__.DeepCopy(),
@ -1779,6 +1853,13 @@ func (o UITextDecoration) DeepCopy() UITextDecoration {
tmp := (*x).DeepCopy()
return &tmp
})(o.Kbfspath__),
Emoji__: (func(x *Emoji) *Emoji {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.Emoji__),
}
}
@ -1917,7 +1998,8 @@ func (o UIChatSearchConvHits) DeepCopy() UIChatSearchConvHits {
}
type UIChatSearchTeamHits struct {
Hits []keybase1.TeamSearchItem `codec:"hits" json:"hits"`
Hits []keybase1.TeamSearchItem `codec:"hits" json:"hits"`
SuggestedMatches bool `codec:"suggestedMatches" json:"suggestedMatches"`
}
func (o UIChatSearchTeamHits) DeepCopy() UIChatSearchTeamHits {
@ -1933,6 +2015,29 @@ func (o UIChatSearchTeamHits) DeepCopy() UIChatSearchTeamHits {
}
return ret
})(o.Hits),
SuggestedMatches: o.SuggestedMatches,
}
}
type UIChatSearchBotHits struct {
Hits []keybase1.FeaturedBot `codec:"hits" json:"hits"`
SuggestedMatches bool `codec:"suggestedMatches" json:"suggestedMatches"`
}
func (o UIChatSearchBotHits) DeepCopy() UIChatSearchBotHits {
return UIChatSearchBotHits{
Hits: (func(x []keybase1.FeaturedBot) []keybase1.FeaturedBot {
if x == nil {
return nil
}
ret := make([]keybase1.FeaturedBot, len(x))
for i, v := range x {
vCopy := v.DeepCopy()
ret[i] = vCopy
}
return ret
})(o.Hits),
SuggestedMatches: o.SuggestedMatches,
}
}

View File

@ -310,6 +310,8 @@ const (
TopicType_CHAT TopicType = 1
TopicType_DEV TopicType = 2
TopicType_KBFSFILEEDIT TopicType = 3
TopicType_EMOJI TopicType = 4
TopicType_EMOJICROSS TopicType = 5
)
func (o TopicType) DeepCopy() TopicType { return o }
@ -319,6 +321,8 @@ var TopicTypeMap = map[string]TopicType{
"CHAT": 1,
"DEV": 2,
"KBFSFILEEDIT": 3,
"EMOJI": 4,
"EMOJICROSS": 5,
}
var TopicTypeRevMap = map[TopicType]string{
@ -326,6 +330,8 @@ var TopicTypeRevMap = map[TopicType]string{
1: "CHAT",
2: "DEV",
3: "KBFSFILEEDIT",
4: "EMOJI",
5: "EMOJICROSS",
}
type TeamType int
@ -626,6 +632,32 @@ func (o RateLimit) DeepCopy() RateLimit {
}
}
type InboxParticipantsMode int
const (
InboxParticipantsMode_ALL InboxParticipantsMode = 0
InboxParticipantsMode_SKIP_TEAMS InboxParticipantsMode = 1
)
func (o InboxParticipantsMode) DeepCopy() InboxParticipantsMode { return o }
var InboxParticipantsModeMap = map[string]InboxParticipantsMode{
"ALL": 0,
"SKIP_TEAMS": 1,
}
var InboxParticipantsModeRevMap = map[InboxParticipantsMode]string{
0: "ALL",
1: "SKIP_TEAMS",
}
func (e InboxParticipantsMode) String() string {
if v, ok := InboxParticipantsModeRevMap[e]; ok {
return v
}
return fmt.Sprintf("%v", int(e))
}
type GetInboxQuery struct {
ConvID *ConversationID `codec:"convID,omitempty" json:"convID,omitempty"`
TopicType *TopicType `codec:"topicType,omitempty" json:"topicType,omitempty"`
@ -644,6 +676,7 @@ type GetInboxQuery struct {
ReadOnly bool `codec:"readOnly" json:"readOnly"`
ComputeActiveList bool `codec:"computeActiveList" json:"computeActiveList"`
SummarizeMaxMsgs bool `codec:"summarizeMaxMsgs" json:"summarizeMaxMsgs"`
ParticipantsMode InboxParticipantsMode `codec:"participantsMode" json:"participantsMode"`
SkipBgLoads bool `codec:"skipBgLoads" json:"skipBgLoads"`
AllowUnseenQuery bool `codec:"allowUnseenQuery" json:"allowUnseenQuery"`
}
@ -765,6 +798,7 @@ func (o GetInboxQuery) DeepCopy() GetInboxQuery {
ReadOnly: o.ReadOnly,
ComputeActiveList: o.ComputeActiveList,
SummarizeMaxMsgs: o.SummarizeMaxMsgs,
ParticipantsMode: o.ParticipantsMode.DeepCopy(),
SkipBgLoads: o.SkipBgLoads,
AllowUnseenQuery: o.AllowUnseenQuery,
}
@ -958,6 +992,7 @@ type ConversationReaderInfo struct {
MaxMsgid MessageID `codec:"maxMsgid" json:"maxMsgid"`
Status ConversationMemberStatus `codec:"status" json:"status"`
UntrustedTeamRole keybase1.TeamRole `codec:"untrustedTeamRole" json:"untrustedTeamRole"`
LastSendTime gregor1.Time `codec:"l" json:"l"`
Journeycard *ConversationJourneycardInfo `codec:"jc,omitempty" json:"jc,omitempty"`
}
@ -968,6 +1003,7 @@ func (o ConversationReaderInfo) DeepCopy() ConversationReaderInfo {
MaxMsgid: o.MaxMsgid.DeepCopy(),
Status: o.Status.DeepCopy(),
UntrustedTeamRole: o.UntrustedTeamRole.DeepCopy(),
LastSendTime: o.LastSendTime.DeepCopy(),
Journeycard: (func(x *ConversationJourneycardInfo) *ConversationJourneycardInfo {
if x == nil {
return nil
@ -1958,6 +1994,7 @@ const (
GetThreadReason_KBFSFILEACTIVITY GetThreadReason = 8
GetThreadReason_COINFLIP GetThreadReason = 9
GetThreadReason_BOTCOMMANDS GetThreadReason = 10
GetThreadReason_EMOJISOURCE GetThreadReason = 11
)
func (o GetThreadReason) DeepCopy() GetThreadReason { return o }
@ -1974,6 +2011,7 @@ var GetThreadReasonMap = map[string]GetThreadReason{
"KBFSFILEACTIVITY": 8,
"COINFLIP": 9,
"BOTCOMMANDS": 10,
"EMOJISOURCE": 11,
}
var GetThreadReasonRevMap = map[GetThreadReason]string{
@ -1988,6 +2026,7 @@ var GetThreadReasonRevMap = map[GetThreadReason]string{
8: "KBFSFILEACTIVITY",
9: "COINFLIP",
10: "BOTCOMMANDS",
11: "EMOJISOURCE",
}
func (e GetThreadReason) String() string {
@ -2044,6 +2083,8 @@ type SearchOpts struct {
ConvID *ConversationID `codec:"convID,omitempty" json:"convID,omitempty"`
MaxNameConvs int `codec:"maxNameConvs" json:"maxNameConvs"`
MaxTeams int `codec:"maxTeams" json:"maxTeams"`
MaxBots int `codec:"maxBots" json:"maxBots"`
SkipBotCache bool `codec:"skipBotCache" json:"skipBotCache"`
}
func (o SearchOpts) DeepCopy() SearchOpts {
@ -2077,6 +2118,8 @@ func (o SearchOpts) DeepCopy() SearchOpts {
})(o.ConvID),
MaxNameConvs: o.MaxNameConvs,
MaxTeams: o.MaxTeams,
MaxBots: o.MaxBots,
SkipBotCache: o.SkipBotCache,
}
}
@ -2388,6 +2431,7 @@ type Asset struct {
Size int64 `codec:"size" json:"size"`
MimeType string `codec:"mimeType" json:"mimeType"`
EncHash Hash `codec:"encHash" json:"encHash"`
PtHash Hash `codec:"ptHash" json:"ptHash"`
Key []byte `codec:"key" json:"key"`
VerifyKey []byte `codec:"verifyKey" json:"verifyKey"`
Title string `codec:"title" json:"title"`
@ -2406,6 +2450,7 @@ func (o Asset) DeepCopy() Asset {
Size: o.Size,
MimeType: o.MimeType,
EncHash: o.EncHash.DeepCopy(),
PtHash: o.PtHash.DeepCopy(),
Key: (func(x []byte) []byte {
if x == nil {
return nil
@ -2472,3 +2517,32 @@ func (o TeamMember) DeepCopy() TeamMember {
Status: o.Status.DeepCopy(),
}
}
type LastActiveStatus int
const (
LastActiveStatus_NONE LastActiveStatus = 0
LastActiveStatus_ACTIVE LastActiveStatus = 1
LastActiveStatus_RECENTLY_ACTIVE LastActiveStatus = 2
)
func (o LastActiveStatus) DeepCopy() LastActiveStatus { return o }
var LastActiveStatusMap = map[string]LastActiveStatus{
"NONE": 0,
"ACTIVE": 1,
"RECENTLY_ACTIVE": 2,
}
var LastActiveStatusRevMap = map[LastActiveStatus]string{
0: "NONE",
1: "ACTIVE",
2: "RECENTLY_ACTIVE",
}
func (e LastActiveStatus) String() string {
if v, ok := LastActiveStatusRevMap[e]; ok {
return v
}
return fmt.Sprintf("%v", int(e))
}

361
types/chat1/emoji.go Normal file
View File

@ -0,0 +1,361 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/chat1/emoji.avdl
package chat1
import (
gregor1 "samhofi.us/x/keybase/types/gregor1"
"errors"
"fmt"
)
type EmojiLoadSourceTyp int
const (
EmojiLoadSourceTyp_HTTPSRV EmojiLoadSourceTyp = 0
EmojiLoadSourceTyp_STR EmojiLoadSourceTyp = 1
)
func (o EmojiLoadSourceTyp) DeepCopy() EmojiLoadSourceTyp { return o }
var EmojiLoadSourceTypMap = map[string]EmojiLoadSourceTyp{
"HTTPSRV": 0,
"STR": 1,
}
var EmojiLoadSourceTypRevMap = map[EmojiLoadSourceTyp]string{
0: "HTTPSRV",
1: "STR",
}
func (e EmojiLoadSourceTyp) String() string {
if v, ok := EmojiLoadSourceTypRevMap[e]; ok {
return v
}
return fmt.Sprintf("%v", int(e))
}
type EmojiLoadSource struct {
Typ__ EmojiLoadSourceTyp `codec:"typ" json:"typ"`
Httpsrv__ *string `codec:"httpsrv,omitempty" json:"httpsrv,omitempty"`
Str__ *string `codec:"str,omitempty" json:"str,omitempty"`
}
func (o *EmojiLoadSource) Typ() (ret EmojiLoadSourceTyp, err error) {
switch o.Typ__ {
case EmojiLoadSourceTyp_HTTPSRV:
if o.Httpsrv__ == nil {
err = errors.New("unexpected nil value for Httpsrv__")
return ret, err
}
case EmojiLoadSourceTyp_STR:
if o.Str__ == nil {
err = errors.New("unexpected nil value for Str__")
return ret, err
}
}
return o.Typ__, nil
}
func (o EmojiLoadSource) Httpsrv() (res string) {
if o.Typ__ != EmojiLoadSourceTyp_HTTPSRV {
panic("wrong case accessed")
}
if o.Httpsrv__ == nil {
return
}
return *o.Httpsrv__
}
func (o EmojiLoadSource) Str() (res string) {
if o.Typ__ != EmojiLoadSourceTyp_STR {
panic("wrong case accessed")
}
if o.Str__ == nil {
return
}
return *o.Str__
}
func NewEmojiLoadSourceWithHttpsrv(v string) EmojiLoadSource {
return EmojiLoadSource{
Typ__: EmojiLoadSourceTyp_HTTPSRV,
Httpsrv__: &v,
}
}
func NewEmojiLoadSourceWithStr(v string) EmojiLoadSource {
return EmojiLoadSource{
Typ__: EmojiLoadSourceTyp_STR,
Str__: &v,
}
}
func (o EmojiLoadSource) DeepCopy() EmojiLoadSource {
return EmojiLoadSource{
Typ__: o.Typ__.DeepCopy(),
Httpsrv__: (func(x *string) *string {
if x == nil {
return nil
}
tmp := (*x)
return &tmp
})(o.Httpsrv__),
Str__: (func(x *string) *string {
if x == nil {
return nil
}
tmp := (*x)
return &tmp
})(o.Str__),
}
}
type EmojiRemoteSourceTyp int
const (
EmojiRemoteSourceTyp_MESSAGE EmojiRemoteSourceTyp = 0
EmojiRemoteSourceTyp_STOCKALIAS EmojiRemoteSourceTyp = 1
)
func (o EmojiRemoteSourceTyp) DeepCopy() EmojiRemoteSourceTyp { return o }
var EmojiRemoteSourceTypMap = map[string]EmojiRemoteSourceTyp{
"MESSAGE": 0,
"STOCKALIAS": 1,
}
var EmojiRemoteSourceTypRevMap = map[EmojiRemoteSourceTyp]string{
0: "MESSAGE",
1: "STOCKALIAS",
}
func (e EmojiRemoteSourceTyp) String() string {
if v, ok := EmojiRemoteSourceTypRevMap[e]; ok {
return v
}
return fmt.Sprintf("%v", int(e))
}
type EmojiMessage struct {
ConvID ConversationID `codec:"convID" json:"convID"`
MsgID MessageID `codec:"msgID" json:"msgID"`
IsAlias bool `codec:"isAlias" json:"isAlias"`
}
func (o EmojiMessage) DeepCopy() EmojiMessage {
return EmojiMessage{
ConvID: o.ConvID.DeepCopy(),
MsgID: o.MsgID.DeepCopy(),
IsAlias: o.IsAlias,
}
}
type EmojiStockAlias struct {
Text string `codec:"text" json:"text"`
Username string `codec:"username" json:"username"`
Time gregor1.Time `codec:"time" json:"time"`
}
func (o EmojiStockAlias) DeepCopy() EmojiStockAlias {
return EmojiStockAlias{
Text: o.Text,
Username: o.Username,
Time: o.Time.DeepCopy(),
}
}
type EmojiRemoteSource struct {
Typ__ EmojiRemoteSourceTyp `codec:"typ" json:"typ"`
Message__ *EmojiMessage `codec:"message,omitempty" json:"message,omitempty"`
Stockalias__ *EmojiStockAlias `codec:"stockalias,omitempty" json:"stockalias,omitempty"`
}
func (o *EmojiRemoteSource) Typ() (ret EmojiRemoteSourceTyp, err error) {
switch o.Typ__ {
case EmojiRemoteSourceTyp_MESSAGE:
if o.Message__ == nil {
err = errors.New("unexpected nil value for Message__")
return ret, err
}
case EmojiRemoteSourceTyp_STOCKALIAS:
if o.Stockalias__ == nil {
err = errors.New("unexpected nil value for Stockalias__")
return ret, err
}
}
return o.Typ__, nil
}
func (o EmojiRemoteSource) Message() (res EmojiMessage) {
if o.Typ__ != EmojiRemoteSourceTyp_MESSAGE {
panic("wrong case accessed")
}
if o.Message__ == nil {
return
}
return *o.Message__
}
func (o EmojiRemoteSource) Stockalias() (res EmojiStockAlias) {
if o.Typ__ != EmojiRemoteSourceTyp_STOCKALIAS {
panic("wrong case accessed")
}
if o.Stockalias__ == nil {
return
}
return *o.Stockalias__
}
func NewEmojiRemoteSourceWithMessage(v EmojiMessage) EmojiRemoteSource {
return EmojiRemoteSource{
Typ__: EmojiRemoteSourceTyp_MESSAGE,
Message__: &v,
}
}
func NewEmojiRemoteSourceWithStockalias(v EmojiStockAlias) EmojiRemoteSource {
return EmojiRemoteSource{
Typ__: EmojiRemoteSourceTyp_STOCKALIAS,
Stockalias__: &v,
}
}
func (o EmojiRemoteSource) DeepCopy() EmojiRemoteSource {
return EmojiRemoteSource{
Typ__: o.Typ__.DeepCopy(),
Message__: (func(x *EmojiMessage) *EmojiMessage {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.Message__),
Stockalias__: (func(x *EmojiStockAlias) *EmojiStockAlias {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.Stockalias__),
}
}
type HarvestedEmoji struct {
Alias string `codec:"alias" json:"alias"`
IsBig bool `codec:"isBig" json:"isBig"`
IsCrossTeam bool `codec:"isCrossTeam" json:"isCrossTeam"`
Source EmojiRemoteSource `codec:"source" json:"source"`
}
func (o HarvestedEmoji) DeepCopy() HarvestedEmoji {
return HarvestedEmoji{
Alias: o.Alias,
IsBig: o.IsBig,
IsCrossTeam: o.IsCrossTeam,
Source: o.Source.DeepCopy(),
}
}
type EmojiCreationInfo struct {
Username string `codec:"username" json:"username"`
Time gregor1.Time `codec:"time" json:"time"`
}
func (o EmojiCreationInfo) DeepCopy() EmojiCreationInfo {
return EmojiCreationInfo{
Username: o.Username,
Time: o.Time.DeepCopy(),
}
}
type Emoji struct {
Alias string `codec:"alias" json:"alias"`
IsBig bool `codec:"isBig" json:"isBig"`
IsReacji bool `codec:"isReacji" json:"isReacji"`
IsCrossTeam bool `codec:"isCrossTeam" json:"isCrossTeam"`
Source EmojiLoadSource `codec:"source" json:"source"`
RemoteSource EmojiRemoteSource `codec:"remoteSource" json:"remoteSource"`
CreationInfo *EmojiCreationInfo `codec:"creationInfo,omitempty" json:"creationInfo,omitempty"`
}
func (o Emoji) DeepCopy() Emoji {
return Emoji{
Alias: o.Alias,
IsBig: o.IsBig,
IsReacji: o.IsReacji,
IsCrossTeam: o.IsCrossTeam,
Source: o.Source.DeepCopy(),
RemoteSource: o.RemoteSource.DeepCopy(),
CreationInfo: (func(x *EmojiCreationInfo) *EmojiCreationInfo {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.CreationInfo),
}
}
type EmojiGroup struct {
Name string `codec:"name" json:"name"`
Emojis []Emoji `codec:"emojis" json:"emojis"`
}
func (o EmojiGroup) DeepCopy() EmojiGroup {
return EmojiGroup{
Name: o.Name,
Emojis: (func(x []Emoji) []Emoji {
if x == nil {
return nil
}
ret := make([]Emoji, len(x))
for i, v := range x {
vCopy := v.DeepCopy()
ret[i] = vCopy
}
return ret
})(o.Emojis),
}
}
type UserEmojis struct {
Emojis []EmojiGroup `codec:"emojis" json:"emojis"`
}
func (o UserEmojis) DeepCopy() UserEmojis {
return UserEmojis{
Emojis: (func(x []EmojiGroup) []EmojiGroup {
if x == nil {
return nil
}
ret := make([]EmojiGroup, len(x))
for i, v := range x {
vCopy := v.DeepCopy()
ret[i] = vCopy
}
return ret
})(o.Emojis),
}
}
type EmojiStorage struct {
Mapping map[string]EmojiRemoteSource `codec:"mapping" json:"mapping"`
}
func (o EmojiStorage) DeepCopy() EmojiStorage {
return EmojiStorage{
Mapping: (func(x map[string]EmojiRemoteSource) map[string]EmojiRemoteSource {
if x == nil {
return nil
}
ret := make(map[string]EmojiRemoteSource, len(x))
for k, v := range x {
kCopy := k
vCopy := v.DeepCopy()
ret[kCopy] = vCopy
}
return ret
})(o.Mapping),
}
}

View File

@ -453,16 +453,6 @@ func (o UpdateConversations) DeepCopy() UpdateConversations {
}
}
type TeamChannelUpdate struct {
TeamID TLFID `codec:"teamID" json:"teamID"`
}
func (o TeamChannelUpdate) DeepCopy() TeamChannelUpdate {
return TeamChannelUpdate{
TeamID: o.TeamID.DeepCopy(),
}
}
type SetConvRetentionUpdate struct {
InboxVers InboxVers `codec:"inboxVers" json:"inboxVers"`
ConvID ConversationID `codec:"convID" json:"convID"`

View File

@ -194,13 +194,14 @@ func (o LiveLocation) DeepCopy() LiveLocation {
}
type MessageText struct {
Body string `codec:"body" json:"body"`
Payments []TextPayment `codec:"payments" json:"payments"`
ReplyTo *MessageID `codec:"replyTo,omitempty" json:"replyTo,omitempty"`
ReplyToUID *gregor1.UID `codec:"replyToUID,omitempty" json:"replyToUID,omitempty"`
UserMentions []KnownUserMention `codec:"userMentions" json:"userMentions"`
TeamMentions []KnownTeamMention `codec:"teamMentions" json:"teamMentions"`
LiveLocation *LiveLocation `codec:"liveLocation,omitempty" json:"liveLocation,omitempty"`
Body string `codec:"body" json:"body"`
Payments []TextPayment `codec:"payments" json:"payments"`
ReplyTo *MessageID `codec:"replyTo,omitempty" json:"replyTo,omitempty"`
ReplyToUID *gregor1.UID `codec:"replyToUID,omitempty" json:"replyToUID,omitempty"`
UserMentions []KnownUserMention `codec:"userMentions" json:"userMentions"`
TeamMentions []KnownTeamMention `codec:"teamMentions" json:"teamMentions"`
LiveLocation *LiveLocation `codec:"liveLocation,omitempty" json:"liveLocation,omitempty"`
Emojis map[string]HarvestedEmoji `codec:"emojis" json:"emojis"`
}
func (o MessageText) DeepCopy() MessageText {
@ -260,6 +261,18 @@ func (o MessageText) DeepCopy() MessageText {
tmp := (*x).DeepCopy()
return &tmp
})(o.LiveLocation),
Emojis: (func(x map[string]HarvestedEmoji) map[string]HarvestedEmoji {
if x == nil {
return nil
}
ret := make(map[string]HarvestedEmoji, len(x))
for k, v := range x {
kCopy := k
vCopy := v.DeepCopy()
ret[kCopy] = vCopy
}
return ret
})(o.Emojis),
}
}
@ -274,10 +287,11 @@ func (o MessageConversationMetadata) DeepCopy() MessageConversationMetadata {
}
type MessageEdit struct {
MessageID MessageID `codec:"messageID" json:"messageID"`
Body string `codec:"body" json:"body"`
UserMentions []KnownUserMention `codec:"userMentions" json:"userMentions"`
TeamMentions []KnownTeamMention `codec:"teamMentions" json:"teamMentions"`
MessageID MessageID `codec:"messageID" json:"messageID"`
Body string `codec:"body" json:"body"`
UserMentions []KnownUserMention `codec:"userMentions" json:"userMentions"`
TeamMentions []KnownTeamMention `codec:"teamMentions" json:"teamMentions"`
Emojis map[string]HarvestedEmoji `codec:"emojis" json:"emojis"`
}
func (o MessageEdit) DeepCopy() MessageEdit {
@ -306,6 +320,18 @@ func (o MessageEdit) DeepCopy() MessageEdit {
}
return ret
})(o.TeamMentions),
Emojis: (func(x map[string]HarvestedEmoji) map[string]HarvestedEmoji {
if x == nil {
return nil
}
ret := make(map[string]HarvestedEmoji, len(x))
for k, v := range x {
kCopy := k
vCopy := v.DeepCopy()
ret[kCopy] = vCopy
}
return ret
})(o.Emojis),
}
}
@ -399,6 +425,7 @@ const (
MessageSystemType_CHANGERETENTION MessageSystemType = 6
MessageSystemType_BULKADDTOCONV MessageSystemType = 7
MessageSystemType_SBSRESOLVE MessageSystemType = 8
MessageSystemType_NEWCHANNEL MessageSystemType = 9
)
func (o MessageSystemType) DeepCopy() MessageSystemType { return o }
@ -413,6 +440,7 @@ var MessageSystemTypeMap = map[string]MessageSystemType{
"CHANGERETENTION": 6,
"BULKADDTOCONV": 7,
"SBSRESOLVE": 8,
"NEWCHANNEL": 9,
}
var MessageSystemTypeRevMap = map[MessageSystemType]string{
@ -425,6 +453,7 @@ var MessageSystemTypeRevMap = map[MessageSystemType]string{
6: "CHANGERETENTION",
7: "BULKADDTOCONV",
8: "SBSRESOLVE",
9: "NEWCHANNEL",
}
func (e MessageSystemType) String() string {
@ -435,17 +464,11 @@ func (e MessageSystemType) String() string {
}
type MessageSystemAddedToTeam struct {
Team string `codec:"team" json:"team"`
Adder string `codec:"adder" json:"adder"`
Addee string `codec:"addee" json:"addee"`
Role keybase1.TeamRole `codec:"role" json:"role"`
BulkAdds []string `codec:"bulkAdds" json:"bulkAdds"`
Owners []string `codec:"owners" json:"owners"`
Admins []string `codec:"admins" json:"admins"`
Writers []string `codec:"writers" json:"writers"`
Readers []string `codec:"readers" json:"readers"`
Bots []string `codec:"bots" json:"bots"`
RestrictedBots []string `codec:"restrictedBots" json:"restrictedBots"`
Team string `codec:"team" json:"team"`
Adder string `codec:"adder" json:"adder"`
Addee string `codec:"addee" json:"addee"`
Role keybase1.TeamRole `codec:"role" json:"role"`
BulkAdds []string `codec:"bulkAdds" json:"bulkAdds"`
}
func (o MessageSystemAddedToTeam) DeepCopy() MessageSystemAddedToTeam {
@ -465,72 +488,6 @@ func (o MessageSystemAddedToTeam) DeepCopy() MessageSystemAddedToTeam {
}
return ret
})(o.BulkAdds),
Owners: (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.Owners),
Admins: (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.Admins),
Writers: (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.Writers),
Readers: (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.Readers),
Bots: (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.Bots),
RestrictedBots: (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.RestrictedBots),
}
}
@ -672,6 +629,20 @@ func (o MessageSystemSbsResolve) DeepCopy() MessageSystemSbsResolve {
}
}
type MessageSystemNewChannel struct {
Creator string `codec:"creator" json:"creator"`
NameAtCreation string `codec:"nameAtCreation" json:"nameAtCreation"`
ConvID ConversationID `codec:"convID" json:"convID"`
}
func (o MessageSystemNewChannel) DeepCopy() MessageSystemNewChannel {
return MessageSystemNewChannel{
Creator: o.Creator,
NameAtCreation: o.NameAtCreation,
ConvID: o.ConvID.DeepCopy(),
}
}
type MessageSystem struct {
SystemType__ MessageSystemType `codec:"systemType" json:"systemType"`
Addedtoteam__ *MessageSystemAddedToTeam `codec:"addedtoteam,omitempty" json:"addedtoteam,omitempty"`
@ -683,6 +654,7 @@ type MessageSystem struct {
Changeretention__ *MessageSystemChangeRetention `codec:"changeretention,omitempty" json:"changeretention,omitempty"`
Bulkaddtoconv__ *MessageSystemBulkAddToConv `codec:"bulkaddtoconv,omitempty" json:"bulkaddtoconv,omitempty"`
Sbsresolve__ *MessageSystemSbsResolve `codec:"sbsresolve,omitempty" json:"sbsresolve,omitempty"`
Newchannel__ *MessageSystemNewChannel `codec:"newchannel,omitempty" json:"newchannel,omitempty"`
}
func (o *MessageSystem) SystemType() (ret MessageSystemType, err error) {
@ -732,6 +704,11 @@ func (o *MessageSystem) SystemType() (ret MessageSystemType, err error) {
err = errors.New("unexpected nil value for Sbsresolve__")
return ret, err
}
case MessageSystemType_NEWCHANNEL:
if o.Newchannel__ == nil {
err = errors.New("unexpected nil value for Newchannel__")
return ret, err
}
}
return o.SystemType__, nil
}
@ -826,6 +803,16 @@ func (o MessageSystem) Sbsresolve() (res MessageSystemSbsResolve) {
return *o.Sbsresolve__
}
func (o MessageSystem) Newchannel() (res MessageSystemNewChannel) {
if o.SystemType__ != MessageSystemType_NEWCHANNEL {
panic("wrong case accessed")
}
if o.Newchannel__ == nil {
return
}
return *o.Newchannel__
}
func NewMessageSystemWithAddedtoteam(v MessageSystemAddedToTeam) MessageSystem {
return MessageSystem{
SystemType__: MessageSystemType_ADDEDTOTEAM,
@ -889,6 +876,13 @@ func NewMessageSystemWithSbsresolve(v MessageSystemSbsResolve) MessageSystem {
}
}
func NewMessageSystemWithNewchannel(v MessageSystemNewChannel) MessageSystem {
return MessageSystem{
SystemType__: MessageSystemType_NEWCHANNEL,
Newchannel__: &v,
}
}
func (o MessageSystem) DeepCopy() MessageSystem {
return MessageSystem{
SystemType__: o.SystemType__.DeepCopy(),
@ -955,6 +949,13 @@ func (o MessageSystem) DeepCopy() MessageSystem {
tmp := (*x).DeepCopy()
return &tmp
})(o.Sbsresolve__),
Newchannel__: (func(x *MessageSystemNewChannel) *MessageSystemNewChannel {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.Newchannel__),
}
}
@ -1102,14 +1103,35 @@ func (o MessageLeave) DeepCopy() MessageLeave {
}
type MessageReaction struct {
MessageID MessageID `codec:"m" json:"m"`
Body string `codec:"b" json:"b"`
MessageID MessageID `codec:"m" json:"m"`
Body string `codec:"b" json:"b"`
TargetUID *gregor1.UID `codec:"t,omitempty" json:"t,omitempty"`
Emojis map[string]HarvestedEmoji `codec:"e" json:"e"`
}
func (o MessageReaction) DeepCopy() MessageReaction {
return MessageReaction{
MessageID: o.MessageID.DeepCopy(),
Body: o.Body,
TargetUID: (func(x *gregor1.UID) *gregor1.UID {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.TargetUID),
Emojis: (func(x map[string]HarvestedEmoji) map[string]HarvestedEmoji {
if x == nil {
return nil
}
ret := make(map[string]HarvestedEmoji, len(x))
for k, v := range x {
kCopy := k
vCopy := v.DeepCopy()
ret[kCopy] = vCopy
}
return ret
})(o.Emojis),
}
}
@ -2816,6 +2838,7 @@ type MessagePlaintext struct {
ClientHeader MessageClientHeader `codec:"clientHeader" json:"clientHeader"`
MessageBody MessageBody `codec:"messageBody" json:"messageBody"`
SupersedesOutboxID *OutboxID `codec:"supersedesOutboxID,omitempty" json:"supersedesOutboxID,omitempty"`
Emojis []HarvestedEmoji `codec:"emojis" json:"emojis"`
}
func (o MessagePlaintext) DeepCopy() MessagePlaintext {
@ -2829,6 +2852,17 @@ func (o MessagePlaintext) DeepCopy() MessagePlaintext {
tmp := (*x).DeepCopy()
return &tmp
})(o.SupersedesOutboxID),
Emojis: (func(x []HarvestedEmoji) []HarvestedEmoji {
if x == nil {
return nil
}
ret := make([]HarvestedEmoji, len(x))
for i, v := range x {
vCopy := v.DeepCopy()
ret[i] = vCopy
}
return ret
})(o.Emojis),
}
}
@ -2838,7 +2872,7 @@ type MessageUnboxedValid struct {
MessageBody MessageBody `codec:"messageBody" json:"messageBody"`
SenderUsername string `codec:"senderUsername" json:"senderUsername"`
SenderDeviceName string `codec:"senderDeviceName" json:"senderDeviceName"`
SenderDeviceType string `codec:"senderDeviceType" json:"senderDeviceType"`
SenderDeviceType keybase1.DeviceTypeV2 `codec:"senderDeviceType" json:"senderDeviceType"`
BodyHash Hash `codec:"bodyHash" json:"bodyHash"`
HeaderHash Hash `codec:"headerHash" json:"headerHash"`
HeaderSignature *SignatureInfo `codec:"headerSignature,omitempty" json:"headerSignature,omitempty"`
@ -2851,6 +2885,7 @@ type MessageUnboxedValid struct {
ChannelNameMentions []ChannelNameMention `codec:"channelNameMentions" json:"channelNameMentions"`
Reactions ReactionMap `codec:"reactions" json:"reactions"`
Unfurls map[MessageID]UnfurlResult `codec:"unfurls" json:"unfurls"`
Emojis []HarvestedEmoji `codec:"emojis" json:"emojis"`
ReplyTo *MessageUnboxed `codec:"replyTo,omitempty" json:"replyTo,omitempty"`
BotUsername string `codec:"botUsername" json:"botUsername"`
}
@ -2862,7 +2897,7 @@ func (o MessageUnboxedValid) DeepCopy() MessageUnboxedValid {
MessageBody: o.MessageBody.DeepCopy(),
SenderUsername: o.SenderUsername,
SenderDeviceName: o.SenderDeviceName,
SenderDeviceType: o.SenderDeviceType,
SenderDeviceType: o.SenderDeviceType.DeepCopy(),
BodyHash: o.BodyHash.DeepCopy(),
HeaderHash: o.HeaderHash.DeepCopy(),
HeaderSignature: (func(x *SignatureInfo) *SignatureInfo {
@ -2949,6 +2984,17 @@ func (o MessageUnboxedValid) DeepCopy() MessageUnboxedValid {
}
return ret
})(o.Unfurls),
Emojis: (func(x []HarvestedEmoji) []HarvestedEmoji {
if x == nil {
return nil
}
ret := make([]HarvestedEmoji, len(x))
for i, v := range x {
vCopy := v.DeepCopy()
ret[i] = vCopy
}
return ret
})(o.Emojis),
ReplyTo: (func(x *MessageUnboxed) *MessageUnboxed {
if x == nil {
return nil
@ -3007,7 +3053,7 @@ type MessageUnboxedError struct {
IsCritical bool `codec:"isCritical" json:"isCritical"`
SenderUsername string `codec:"senderUsername" json:"senderUsername"`
SenderDeviceName string `codec:"senderDeviceName" json:"senderDeviceName"`
SenderDeviceType string `codec:"senderDeviceType" json:"senderDeviceType"`
SenderDeviceType keybase1.DeviceTypeV2 `codec:"senderDeviceType" json:"senderDeviceType"`
MessageID MessageID `codec:"messageID" json:"messageID"`
MessageType MessageType `codec:"messageType" json:"messageType"`
Ctime gregor1.Time `codec:"ctime" json:"ctime"`
@ -3027,7 +3073,7 @@ func (o MessageUnboxedError) DeepCopy() MessageUnboxedError {
IsCritical: o.IsCritical,
SenderUsername: o.SenderUsername,
SenderDeviceName: o.SenderDeviceName,
SenderDeviceType: o.SenderDeviceType,
SenderDeviceType: o.SenderDeviceType.DeepCopy(),
MessageID: o.MessageID.DeepCopy(),
MessageType: o.MessageType.DeepCopy(),
Ctime: o.Ctime.DeepCopy(),
@ -4366,6 +4412,98 @@ func (o SetConversationStatusLocalRes) DeepCopy() SetConversationStatusLocalRes
}
}
type NewConversationsLocalRes struct {
Results []NewConversationsLocalResult `codec:"results" json:"results"`
RateLimits []RateLimit `codec:"rateLimits" json:"rateLimits"`
IdentifyFailures []keybase1.TLFIdentifyFailure `codec:"identifyFailures" json:"identifyFailures"`
}
func (o NewConversationsLocalRes) DeepCopy() NewConversationsLocalRes {
return NewConversationsLocalRes{
Results: (func(x []NewConversationsLocalResult) []NewConversationsLocalResult {
if x == nil {
return nil
}
ret := make([]NewConversationsLocalResult, len(x))
for i, v := range x {
vCopy := v.DeepCopy()
ret[i] = vCopy
}
return ret
})(o.Results),
RateLimits: (func(x []RateLimit) []RateLimit {
if x == nil {
return nil
}
ret := make([]RateLimit, len(x))
for i, v := range x {
vCopy := v.DeepCopy()
ret[i] = vCopy
}
return ret
})(o.RateLimits),
IdentifyFailures: (func(x []keybase1.TLFIdentifyFailure) []keybase1.TLFIdentifyFailure {
if x == nil {
return nil
}
ret := make([]keybase1.TLFIdentifyFailure, len(x))
for i, v := range x {
vCopy := v.DeepCopy()
ret[i] = vCopy
}
return ret
})(o.IdentifyFailures),
}
}
type NewConversationsLocalResult struct {
Result *NewConversationLocalRes `codec:"result,omitempty" json:"result,omitempty"`
Err *string `codec:"err,omitempty" json:"err,omitempty"`
}
func (o NewConversationsLocalResult) DeepCopy() NewConversationsLocalResult {
return NewConversationsLocalResult{
Result: (func(x *NewConversationLocalRes) *NewConversationLocalRes {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.Result),
Err: (func(x *string) *string {
if x == nil {
return nil
}
tmp := (*x)
return &tmp
})(o.Err),
}
}
type NewConversationLocalArgument struct {
TlfName string `codec:"tlfName" json:"tlfName"`
TopicType TopicType `codec:"topicType" json:"topicType"`
TlfVisibility keybase1.TLFVisibility `codec:"tlfVisibility" json:"tlfVisibility"`
TopicName *string `codec:"topicName,omitempty" json:"topicName,omitempty"`
MembersType ConversationMembersType `codec:"membersType" json:"membersType"`
}
func (o NewConversationLocalArgument) DeepCopy() NewConversationLocalArgument {
return NewConversationLocalArgument{
TlfName: o.TlfName,
TopicType: o.TopicType.DeepCopy(),
TlfVisibility: o.TlfVisibility.DeepCopy(),
TopicName: (func(x *string) *string {
if x == nil {
return nil
}
tmp := (*x)
return &tmp
})(o.TopicName),
MembersType: o.MembersType.DeepCopy(),
}
}
type NewConversationLocalRes struct {
Conv ConversationLocal `codec:"conv" json:"conv"`
UiConv InboxUIItem `codec:"uiConv" json:"uiConv"`
@ -5121,6 +5259,74 @@ func (o GetTLFConversationsLocalRes) DeepCopy() GetTLFConversationsLocalRes {
}
}
type GetChannelMembershipsLocalRes struct {
Channels []ChannelNameMention `codec:"channels" json:"channels"`
Offline bool `codec:"offline" json:"offline"`
RateLimits []RateLimit `codec:"rateLimits" json:"rateLimits"`
}
func (o GetChannelMembershipsLocalRes) DeepCopy() GetChannelMembershipsLocalRes {
return GetChannelMembershipsLocalRes{
Channels: (func(x []ChannelNameMention) []ChannelNameMention {
if x == nil {
return nil
}
ret := make([]ChannelNameMention, len(x))
for i, v := range x {
vCopy := v.DeepCopy()
ret[i] = vCopy
}
return ret
})(o.Channels),
Offline: o.Offline,
RateLimits: (func(x []RateLimit) []RateLimit {
if x == nil {
return nil
}
ret := make([]RateLimit, len(x))
for i, v := range x {
vCopy := v.DeepCopy()
ret[i] = vCopy
}
return ret
})(o.RateLimits),
}
}
type GetMutualTeamsLocalRes struct {
TeamIDs []keybase1.TeamID `codec:"teamIDs" json:"teamIDs"`
Offline bool `codec:"offline" json:"offline"`
RateLimits []RateLimit `codec:"rateLimits" json:"rateLimits"`
}
func (o GetMutualTeamsLocalRes) DeepCopy() GetMutualTeamsLocalRes {
return GetMutualTeamsLocalRes{
TeamIDs: (func(x []keybase1.TeamID) []keybase1.TeamID {
if x == nil {
return nil
}
ret := make([]keybase1.TeamID, len(x))
for i, v := range x {
vCopy := v.DeepCopy()
ret[i] = vCopy
}
return ret
})(o.TeamIDs),
Offline: o.Offline,
RateLimits: (func(x []RateLimit) []RateLimit {
if x == nil {
return nil
}
ret := make([]RateLimit, len(x))
for i, v := range x {
vCopy := v.DeepCopy()
ret[i] = vCopy
}
return ret
})(o.RateLimits),
}
}
type SetAppNotificationSettingsLocalRes struct {
Offline bool `codec:"offline" json:"offline"`
RateLimits []RateLimit `codec:"rateLimits" json:"rateLimits"`
@ -5291,6 +5497,34 @@ func (o SearchInboxRes) DeepCopy() SearchInboxRes {
}
}
type SimpleSearchInboxConvNamesHit struct {
Name string `codec:"name" json:"name"`
ConvID ConversationID `codec:"convID" json:"convID"`
IsTeam bool `codec:"isTeam" json:"isTeam"`
Parts []string `codec:"parts" json:"parts"`
TlfName string `codec:"tlfName" json:"tlfName"`
}
func (o SimpleSearchInboxConvNamesHit) DeepCopy() SimpleSearchInboxConvNamesHit {
return SimpleSearchInboxConvNamesHit{
Name: o.Name,
ConvID: o.ConvID.DeepCopy(),
IsTeam: o.IsTeam,
Parts: (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.Parts),
TlfName: o.TlfName,
}
}
type ProfileSearchConvStats struct {
Err string `codec:"err" json:"err"`
ConvName string `codec:"convName" json:"convName"`
@ -5886,3 +6120,270 @@ func (e SnippetDecoration) String() string {
}
return fmt.Sprintf("%v", int(e))
}
type WelcomeMessageDisplay struct {
Set bool `codec:"set" json:"set"`
Display string `codec:"display" json:"display"`
Raw string `codec:"raw" json:"raw"`
}
func (o WelcomeMessageDisplay) DeepCopy() WelcomeMessageDisplay {
return WelcomeMessageDisplay{
Set: o.Set,
Display: o.Display,
Raw: o.Raw,
}
}
type WelcomeMessage struct {
Set bool `codec:"set" json:"set"`
Raw string `codec:"raw" json:"raw"`
}
func (o WelcomeMessage) DeepCopy() WelcomeMessage {
return WelcomeMessage{
Set: o.Set,
Raw: o.Raw,
}
}
type GetDefaultTeamChannelsLocalRes struct {
Convs []InboxUIItem `codec:"convs" json:"convs"`
RateLimit *RateLimit `codec:"rateLimit,omitempty" json:"rateLimit,omitempty"`
}
func (o GetDefaultTeamChannelsLocalRes) DeepCopy() GetDefaultTeamChannelsLocalRes {
return GetDefaultTeamChannelsLocalRes{
Convs: (func(x []InboxUIItem) []InboxUIItem {
if x == nil {
return nil
}
ret := make([]InboxUIItem, len(x))
for i, v := range x {
vCopy := v.DeepCopy()
ret[i] = vCopy
}
return ret
})(o.Convs),
RateLimit: (func(x *RateLimit) *RateLimit {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.RateLimit),
}
}
type SetDefaultTeamChannelsLocalRes struct {
RateLimit *RateLimit `codec:"rateLimit,omitempty" json:"rateLimit,omitempty"`
}
func (o SetDefaultTeamChannelsLocalRes) DeepCopy() SetDefaultTeamChannelsLocalRes {
return SetDefaultTeamChannelsLocalRes{
RateLimit: (func(x *RateLimit) *RateLimit {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.RateLimit),
}
}
type LastActiveTimeAll struct {
Teams map[TLFIDStr]gregor1.Time `codec:"teams" json:"teams"`
Channels map[ConvIDStr]gregor1.Time `codec:"channels" json:"channels"`
}
func (o LastActiveTimeAll) DeepCopy() LastActiveTimeAll {
return LastActiveTimeAll{
Teams: (func(x map[TLFIDStr]gregor1.Time) map[TLFIDStr]gregor1.Time {
if x == nil {
return nil
}
ret := make(map[TLFIDStr]gregor1.Time, len(x))
for k, v := range x {
kCopy := k.DeepCopy()
vCopy := v.DeepCopy()
ret[kCopy] = vCopy
}
return ret
})(o.Teams),
Channels: (func(x map[ConvIDStr]gregor1.Time) map[ConvIDStr]gregor1.Time {
if x == nil {
return nil
}
ret := make(map[ConvIDStr]gregor1.Time, len(x))
for k, v := range x {
kCopy := k.DeepCopy()
vCopy := v.DeepCopy()
ret[kCopy] = vCopy
}
return ret
})(o.Channels),
}
}
type LastActiveStatusAll struct {
Teams map[TLFIDStr]LastActiveStatus `codec:"teams" json:"teams"`
Channels map[ConvIDStr]LastActiveStatus `codec:"channels" json:"channels"`
}
func (o LastActiveStatusAll) DeepCopy() LastActiveStatusAll {
return LastActiveStatusAll{
Teams: (func(x map[TLFIDStr]LastActiveStatus) map[TLFIDStr]LastActiveStatus {
if x == nil {
return nil
}
ret := make(map[TLFIDStr]LastActiveStatus, len(x))
for k, v := range x {
kCopy := k.DeepCopy()
vCopy := v.DeepCopy()
ret[kCopy] = vCopy
}
return ret
})(o.Teams),
Channels: (func(x map[ConvIDStr]LastActiveStatus) map[ConvIDStr]LastActiveStatus {
if x == nil {
return nil
}
ret := make(map[ConvIDStr]LastActiveStatus, len(x))
for k, v := range x {
kCopy := k.DeepCopy()
vCopy := v.DeepCopy()
ret[kCopy] = vCopy
}
return ret
})(o.Channels),
}
}
type AddEmojiRes struct {
RateLimit *RateLimit `codec:"rateLimit,omitempty" json:"rateLimit,omitempty"`
}
func (o AddEmojiRes) DeepCopy() AddEmojiRes {
return AddEmojiRes{
RateLimit: (func(x *RateLimit) *RateLimit {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.RateLimit),
}
}
type AddEmojisRes struct {
RateLimit *RateLimit `codec:"rateLimit,omitempty" json:"rateLimit,omitempty"`
SuccessFilenames []string `codec:"successFilenames" json:"successFilenames"`
FailedFilenames map[string]string `codec:"failedFilenames" json:"failedFilenames"`
}
func (o AddEmojisRes) DeepCopy() AddEmojisRes {
return AddEmojisRes{
RateLimit: (func(x *RateLimit) *RateLimit {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.RateLimit),
SuccessFilenames: (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.SuccessFilenames),
FailedFilenames: (func(x map[string]string) map[string]string {
if x == nil {
return nil
}
ret := make(map[string]string, len(x))
for k, v := range x {
kCopy := k
vCopy := v
ret[kCopy] = vCopy
}
return ret
})(o.FailedFilenames),
}
}
type AddEmojiAliasRes struct {
RateLimit *RateLimit `codec:"rateLimit,omitempty" json:"rateLimit,omitempty"`
ErrorString *string `codec:"errorString,omitempty" json:"errorString,omitempty"`
}
func (o AddEmojiAliasRes) DeepCopy() AddEmojiAliasRes {
return AddEmojiAliasRes{
RateLimit: (func(x *RateLimit) *RateLimit {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.RateLimit),
ErrorString: (func(x *string) *string {
if x == nil {
return nil
}
tmp := (*x)
return &tmp
})(o.ErrorString),
}
}
type RemoveEmojiRes struct {
RateLimit *RateLimit `codec:"rateLimit,omitempty" json:"rateLimit,omitempty"`
}
func (o RemoveEmojiRes) DeepCopy() RemoveEmojiRes {
return RemoveEmojiRes{
RateLimit: (func(x *RateLimit) *RateLimit {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.RateLimit),
}
}
type UserEmojiRes struct {
Emojis UserEmojis `codec:"emojis" json:"emojis"`
RateLimit *RateLimit `codec:"rateLimit,omitempty" json:"rateLimit,omitempty"`
}
func (o UserEmojiRes) DeepCopy() UserEmojiRes {
return UserEmojiRes{
Emojis: o.Emojis.DeepCopy(),
RateLimit: (func(x *RateLimit) *RateLimit {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.RateLimit),
}
}
type EmojiFetchOpts struct {
GetCreationInfo bool `codec:"getCreationInfo" json:"getCreationInfo"`
GetAliases bool `codec:"getAliases" json:"getAliases"`
OnlyInTeam bool `codec:"onlyInTeam" json:"onlyInTeam"`
}
func (o EmojiFetchOpts) DeepCopy() EmojiFetchOpts {
return EmojiFetchOpts{
GetCreationInfo: o.GetCreationInfo,
GetAliases: o.GetAliases,
OnlyInTeam: o.OnlyInTeam,
}
}

View File

@ -323,8 +323,8 @@ func (o EphemeralPurgeNotifInfo) DeepCopy() EphemeralPurgeNotifInfo {
}
type ReactionUpdate struct {
Reactions ReactionMap `codec:"reactions" json:"reactions"`
TargetMsgID MessageID `codec:"targetMsgID" json:"targetMsgID"`
Reactions UIReactionMap `codec:"reactions" json:"reactions"`
TargetMsgID MessageID `codec:"targetMsgID" json:"targetMsgID"`
}
func (o ReactionUpdate) DeepCopy() ReactionUpdate {
@ -757,20 +757,16 @@ func (o ChatActivity) DeepCopy() ChatActivity {
}
type TyperInfo struct {
Uid keybase1.UID `codec:"uid" json:"uid"`
Username string `codec:"username" json:"username"`
DeviceID keybase1.DeviceID `codec:"deviceID" json:"deviceID"`
DeviceName string `codec:"deviceName" json:"deviceName"`
DeviceType string `codec:"deviceType" json:"deviceType"`
Uid keybase1.UID `codec:"uid" json:"uid"`
Username string `codec:"username" json:"username"`
DeviceID keybase1.DeviceID `codec:"deviceID" json:"deviceID"`
}
func (o TyperInfo) DeepCopy() TyperInfo {
return TyperInfo{
Uid: o.Uid.DeepCopy(),
Username: o.Username,
DeviceID: o.DeviceID.DeepCopy(),
DeviceName: o.DeviceName,
DeviceType: o.DeviceType,
Uid: o.Uid.DeepCopy(),
Username: o.Username,
DeviceID: o.DeviceID.DeepCopy(),
}
}

View File

@ -231,8 +231,10 @@ func (o NewConversationRemoteRes) DeepCopy() NewConversationRemoteRes {
}
type GetMessagesRemoteRes struct {
Msgs []MessageBoxed `codec:"msgs" json:"msgs"`
RateLimit *RateLimit `codec:"rateLimit,omitempty" json:"rateLimit,omitempty"`
Msgs []MessageBoxed `codec:"msgs" json:"msgs"`
MembersType ConversationMembersType `codec:"membersType" json:"membersType"`
Visibility keybase1.TLFVisibility `codec:"visibility" json:"visibility"`
RateLimit *RateLimit `codec:"rateLimit,omitempty" json:"rateLimit,omitempty"`
}
func (o GetMessagesRemoteRes) DeepCopy() GetMessagesRemoteRes {
@ -248,6 +250,8 @@ func (o GetMessagesRemoteRes) DeepCopy() GetMessagesRemoteRes {
}
return ret
})(o.Msgs),
MembersType: o.MembersType.DeepCopy(),
Visibility: o.Visibility.DeepCopy(),
RateLimit: (func(x *RateLimit) *RateLimit {
if x == nil {
return nil
@ -1247,3 +1251,155 @@ func (o BotInfoHash) DeepCopy() BotInfoHash {
return append([]byte{}, x...)
})(o)
}
type GetDefaultTeamChannelsRes struct {
Convs []ConversationID `codec:"convs" json:"convs"`
RateLimit *RateLimit `codec:"rateLimit,omitempty" json:"rateLimit,omitempty"`
}
func (o GetDefaultTeamChannelsRes) DeepCopy() GetDefaultTeamChannelsRes {
return GetDefaultTeamChannelsRes{
Convs: (func(x []ConversationID) []ConversationID {
if x == nil {
return nil
}
ret := make([]ConversationID, len(x))
for i, v := range x {
vCopy := v.DeepCopy()
ret[i] = vCopy
}
return ret
})(o.Convs),
RateLimit: (func(x *RateLimit) *RateLimit {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.RateLimit),
}
}
type SetDefaultTeamChannelsRes struct {
RateLimit *RateLimit `codec:"rateLimit,omitempty" json:"rateLimit,omitempty"`
}
func (o SetDefaultTeamChannelsRes) DeepCopy() SetDefaultTeamChannelsRes {
return SetDefaultTeamChannelsRes{
RateLimit: (func(x *RateLimit) *RateLimit {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.RateLimit),
}
}
type GetRecentJoinsRes struct {
NumJoins int `codec:"numJoins" json:"numJoins"`
RateLimit *RateLimit `codec:"rateLimit,omitempty" json:"rateLimit,omitempty"`
}
func (o GetRecentJoinsRes) DeepCopy() GetRecentJoinsRes {
return GetRecentJoinsRes{
NumJoins: o.NumJoins,
RateLimit: (func(x *RateLimit) *RateLimit {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.RateLimit),
}
}
type RefreshParticipantsRemoteRes struct {
HashMatch bool `codec:"hashMatch" json:"hashMatch"`
Uids []gregor1.UID `codec:"uids" json:"uids"`
Hash string `codec:"hash" json:"hash"`
RateLimit *RateLimit `codec:"rateLimit,omitempty" json:"rateLimit,omitempty"`
}
func (o RefreshParticipantsRemoteRes) DeepCopy() RefreshParticipantsRemoteRes {
return RefreshParticipantsRemoteRes{
HashMatch: o.HashMatch,
Uids: (func(x []gregor1.UID) []gregor1.UID {
if x == nil {
return nil
}
ret := make([]gregor1.UID, len(x))
for i, v := range x {
vCopy := v.DeepCopy()
ret[i] = vCopy
}
return ret
})(o.Uids),
Hash: o.Hash,
RateLimit: (func(x *RateLimit) *RateLimit {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.RateLimit),
}
}
type GetLastActiveAtRes struct {
LastActiveAt gregor1.Time `codec:"lastActiveAt" json:"lastActiveAt"`
RateLimit *RateLimit `codec:"rateLimit,omitempty" json:"rateLimit,omitempty"`
}
func (o GetLastActiveAtRes) DeepCopy() GetLastActiveAtRes {
return GetLastActiveAtRes{
LastActiveAt: o.LastActiveAt.DeepCopy(),
RateLimit: (func(x *RateLimit) *RateLimit {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.RateLimit),
}
}
type ResetConversationMember struct {
ConvID ConversationID `codec:"convID" json:"convID"`
Uid gregor1.UID `codec:"uid" json:"uid"`
}
func (o ResetConversationMember) DeepCopy() ResetConversationMember {
return ResetConversationMember{
ConvID: o.ConvID.DeepCopy(),
Uid: o.Uid.DeepCopy(),
}
}
type GetResetConversationsRes struct {
ResetConvs []ResetConversationMember `codec:"resetConvs" json:"resetConvs"`
RateLimit *RateLimit `codec:"rateLimit,omitempty" json:"rateLimit,omitempty"`
}
func (o GetResetConversationsRes) DeepCopy() GetResetConversationsRes {
return GetResetConversationsRes{
ResetConvs: (func(x []ResetConversationMember) []ResetConversationMember {
if x == nil {
return nil
}
ret := make([]ResetConversationMember, len(x))
for i, v := range x {
vCopy := v.DeepCopy()
ret[i] = vCopy
}
return ret
})(o.ResetConvs),
RateLimit: (func(x *RateLimit) *RateLimit {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.RateLimit),
}
}