Update AVDL compiled types
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
|
||||
// Input file: ../client/protocol/avdl/chat1/api.avdl
|
||||
// Input file: ../../../../../../client/protocol/avdl/chat1/api.avdl
|
||||
|
||||
package chat1
|
||||
|
||||
@ -942,6 +942,7 @@ type AdvertiseCommandAPIParam struct {
|
||||
Typ string `codec:"typ" json:"type"`
|
||||
Commands []UserBotCommandInput `codec:"commands" json:"commands"`
|
||||
TeamName string `codec:"teamName,omitempty" json:"team_name,omitempty"`
|
||||
ConvID ConvIDStr `codec:"convID,omitempty" json:"conv_id,omitempty"`
|
||||
}
|
||||
|
||||
func (o AdvertiseCommandAPIParam) DeepCopy() AdvertiseCommandAPIParam {
|
||||
@ -959,6 +960,7 @@ func (o AdvertiseCommandAPIParam) DeepCopy() AdvertiseCommandAPIParam {
|
||||
return ret
|
||||
})(o.Commands),
|
||||
TeamName: o.TeamName,
|
||||
ConvID: o.ConvID.DeepCopy(),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
|
||||
// Input file: ../client/protocol/avdl/chat1/blocking.avdl
|
||||
// Input file: ../../../../../../client/protocol/avdl/chat1/blocking.avdl
|
||||
|
||||
package chat1
|
||||
|
||||
@ -1,14 +1,15 @@
|
||||
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
|
||||
// Input file: ../client/protocol/avdl/chat1/chat_ui.avdl
|
||||
// Input file: ../../../../../../client/protocol/avdl/chat1/chat_ui.avdl
|
||||
|
||||
package chat1
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
gregor1 "samhofi.us/x/keybase/v2/types/gregor1"
|
||||
keybase1 "samhofi.us/x/keybase/v2/types/keybase1"
|
||||
stellar1 "samhofi.us/x/keybase/v2/types/stellar1"
|
||||
"errors"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
type UIPagination struct {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
|
||||
// Input file: ../client/protocol/avdl/chat1/commands.avdl
|
||||
// Input file: ../../../../../../client/protocol/avdl/chat1/commands.avdl
|
||||
|
||||
package chat1
|
||||
|
||||
|
||||
@ -1,13 +1,15 @@
|
||||
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
|
||||
// Input file: ../client/protocol/avdl/chat1/common.avdl
|
||||
// Input file: ../../../../../../client/protocol/avdl/chat1/common.avdl
|
||||
|
||||
package chat1
|
||||
|
||||
import (
|
||||
gregor1 "samhofi.us/x/keybase/v2/types/gregor1"
|
||||
keybase1 "samhofi.us/x/keybase/v2/types/keybase1"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
gregor1 "samhofi.us/x/keybase/v2/types/gregor1"
|
||||
keybase1 "samhofi.us/x/keybase/v2/types/keybase1"
|
||||
stellar1 "samhofi.us/x/keybase/v2/types/stellar1"
|
||||
)
|
||||
|
||||
type ThreadID []byte
|
||||
@ -1368,6 +1370,7 @@ type MessageClientHeader struct {
|
||||
EphemeralMetadata *MsgEphemeralMetadata `codec:"em,omitempty" json:"em,omitempty"`
|
||||
PairwiseMacs map[keybase1.KID][]byte `codec:"pm" json:"pm"`
|
||||
BotUID *gregor1.UID `codec:"b,omitempty" json:"b,omitempty"`
|
||||
TxID *stellar1.TransactionID `codec:"t,omitempty" json:"t,omitempty"`
|
||||
}
|
||||
|
||||
func (o MessageClientHeader) DeepCopy() MessageClientHeader {
|
||||
@ -1467,6 +1470,13 @@ func (o MessageClientHeader) DeepCopy() MessageClientHeader {
|
||||
tmp := (*x).DeepCopy()
|
||||
return &tmp
|
||||
})(o.BotUID),
|
||||
TxID: (func(x *stellar1.TransactionID) *stellar1.TransactionID {
|
||||
if x == nil {
|
||||
return nil
|
||||
}
|
||||
tmp := (*x).DeepCopy()
|
||||
return &tmp
|
||||
})(o.TxID),
|
||||
}
|
||||
}
|
||||
|
||||
@ -2481,6 +2491,7 @@ const (
|
||||
BotCommandsAdvertisementTyp_PUBLIC BotCommandsAdvertisementTyp = 0
|
||||
BotCommandsAdvertisementTyp_TLFID_MEMBERS BotCommandsAdvertisementTyp = 1
|
||||
BotCommandsAdvertisementTyp_TLFID_CONVS BotCommandsAdvertisementTyp = 2
|
||||
BotCommandsAdvertisementTyp_CONV BotCommandsAdvertisementTyp = 3
|
||||
)
|
||||
|
||||
func (o BotCommandsAdvertisementTyp) DeepCopy() BotCommandsAdvertisementTyp { return o }
|
||||
@ -2489,12 +2500,14 @@ var BotCommandsAdvertisementTypMap = map[string]BotCommandsAdvertisementTyp{
|
||||
"PUBLIC": 0,
|
||||
"TLFID_MEMBERS": 1,
|
||||
"TLFID_CONVS": 2,
|
||||
"CONV": 3,
|
||||
}
|
||||
|
||||
var BotCommandsAdvertisementTypRevMap = map[BotCommandsAdvertisementTyp]string{
|
||||
0: "PUBLIC",
|
||||
1: "TLFID_MEMBERS",
|
||||
2: "TLFID_CONVS",
|
||||
3: "CONV",
|
||||
}
|
||||
|
||||
func (e BotCommandsAdvertisementTyp) String() string {
|
||||
@ -2546,3 +2559,97 @@ func (e LastActiveStatus) String() string {
|
||||
}
|
||||
return fmt.Sprintf("%v", int(e))
|
||||
}
|
||||
|
||||
type ChatMemberDetails struct {
|
||||
Uid keybase1.UID `codec:"uid" json:"uid"`
|
||||
Username string `codec:"username" json:"username"`
|
||||
FullName keybase1.FullName `codec:"fullName" json:"fullName"`
|
||||
}
|
||||
|
||||
func (o ChatMemberDetails) DeepCopy() ChatMemberDetails {
|
||||
return ChatMemberDetails{
|
||||
Uid: o.Uid.DeepCopy(),
|
||||
Username: o.Username,
|
||||
FullName: o.FullName.DeepCopy(),
|
||||
}
|
||||
}
|
||||
|
||||
type ChatMembersDetails struct {
|
||||
Owners []ChatMemberDetails `codec:"owners" json:"owners"`
|
||||
Admins []ChatMemberDetails `codec:"admins" json:"admins"`
|
||||
Writers []ChatMemberDetails `codec:"writers" json:"writers"`
|
||||
Readers []ChatMemberDetails `codec:"readers" json:"readers"`
|
||||
Bots []ChatMemberDetails `codec:"bots" json:"bots"`
|
||||
RestrictedBots []ChatMemberDetails `codec:"restrictedBots" json:"restrictedBots"`
|
||||
}
|
||||
|
||||
func (o ChatMembersDetails) DeepCopy() ChatMembersDetails {
|
||||
return ChatMembersDetails{
|
||||
Owners: (func(x []ChatMemberDetails) []ChatMemberDetails {
|
||||
if x == nil {
|
||||
return nil
|
||||
}
|
||||
ret := make([]ChatMemberDetails, len(x))
|
||||
for i, v := range x {
|
||||
vCopy := v.DeepCopy()
|
||||
ret[i] = vCopy
|
||||
}
|
||||
return ret
|
||||
})(o.Owners),
|
||||
Admins: (func(x []ChatMemberDetails) []ChatMemberDetails {
|
||||
if x == nil {
|
||||
return nil
|
||||
}
|
||||
ret := make([]ChatMemberDetails, len(x))
|
||||
for i, v := range x {
|
||||
vCopy := v.DeepCopy()
|
||||
ret[i] = vCopy
|
||||
}
|
||||
return ret
|
||||
})(o.Admins),
|
||||
Writers: (func(x []ChatMemberDetails) []ChatMemberDetails {
|
||||
if x == nil {
|
||||
return nil
|
||||
}
|
||||
ret := make([]ChatMemberDetails, len(x))
|
||||
for i, v := range x {
|
||||
vCopy := v.DeepCopy()
|
||||
ret[i] = vCopy
|
||||
}
|
||||
return ret
|
||||
})(o.Writers),
|
||||
Readers: (func(x []ChatMemberDetails) []ChatMemberDetails {
|
||||
if x == nil {
|
||||
return nil
|
||||
}
|
||||
ret := make([]ChatMemberDetails, len(x))
|
||||
for i, v := range x {
|
||||
vCopy := v.DeepCopy()
|
||||
ret[i] = vCopy
|
||||
}
|
||||
return ret
|
||||
})(o.Readers),
|
||||
Bots: (func(x []ChatMemberDetails) []ChatMemberDetails {
|
||||
if x == nil {
|
||||
return nil
|
||||
}
|
||||
ret := make([]ChatMemberDetails, len(x))
|
||||
for i, v := range x {
|
||||
vCopy := v.DeepCopy()
|
||||
ret[i] = vCopy
|
||||
}
|
||||
return ret
|
||||
})(o.Bots),
|
||||
RestrictedBots: (func(x []ChatMemberDetails) []ChatMemberDetails {
|
||||
if x == nil {
|
||||
return nil
|
||||
}
|
||||
ret := make([]ChatMemberDetails, len(x))
|
||||
for i, v := range x {
|
||||
vCopy := v.DeepCopy()
|
||||
ret[i] = vCopy
|
||||
}
|
||||
return ret
|
||||
})(o.RestrictedBots),
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,12 +1,13 @@
|
||||
// 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
|
||||
// Input file: ../../../../../../client/protocol/avdl/chat1/emoji.avdl
|
||||
|
||||
package chat1
|
||||
|
||||
import (
|
||||
gregor1 "samhofi.us/x/keybase/v2/types/gregor1"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
gregor1 "samhofi.us/x/keybase/v2/types/gregor1"
|
||||
)
|
||||
|
||||
type EmojiLoadSourceTyp int
|
||||
@ -274,9 +275,12 @@ type Emoji struct {
|
||||
IsBig bool `codec:"isBig" json:"isBig"`
|
||||
IsReacji bool `codec:"isReacji" json:"isReacji"`
|
||||
IsCrossTeam bool `codec:"isCrossTeam" json:"isCrossTeam"`
|
||||
IsAlias bool `codec:"isAlias" json:"isAlias"`
|
||||
Source EmojiLoadSource `codec:"source" json:"source"`
|
||||
NoAnimSource EmojiLoadSource `codec:"noAnimSource" json:"noAnimSource"`
|
||||
RemoteSource EmojiRemoteSource `codec:"remoteSource" json:"remoteSource"`
|
||||
CreationInfo *EmojiCreationInfo `codec:"creationInfo,omitempty" json:"creationInfo,omitempty"`
|
||||
Teamname *string `codec:"teamname,omitempty" json:"teamname,omitempty"`
|
||||
}
|
||||
|
||||
func (o Emoji) DeepCopy() Emoji {
|
||||
@ -285,7 +289,9 @@ func (o Emoji) DeepCopy() Emoji {
|
||||
IsBig: o.IsBig,
|
||||
IsReacji: o.IsReacji,
|
||||
IsCrossTeam: o.IsCrossTeam,
|
||||
IsAlias: o.IsAlias,
|
||||
Source: o.Source.DeepCopy(),
|
||||
NoAnimSource: o.NoAnimSource.DeepCopy(),
|
||||
RemoteSource: o.RemoteSource.DeepCopy(),
|
||||
CreationInfo: (func(x *EmojiCreationInfo) *EmojiCreationInfo {
|
||||
if x == nil {
|
||||
@ -294,6 +300,13 @@ func (o Emoji) DeepCopy() Emoji {
|
||||
tmp := (*x).DeepCopy()
|
||||
return &tmp
|
||||
})(o.CreationInfo),
|
||||
Teamname: (func(x *string) *string {
|
||||
if x == nil {
|
||||
return nil
|
||||
}
|
||||
tmp := (*x)
|
||||
return &tmp
|
||||
})(o.Teamname),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
|
||||
// Input file: ../client/protocol/avdl/chat1/gregor.avdl
|
||||
// Input file: ../../../../../../client/protocol/avdl/chat1/gregor.avdl
|
||||
|
||||
package chat1
|
||||
|
||||
|
||||
@ -1,14 +1,15 @@
|
||||
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
|
||||
// Input file: ../client/protocol/avdl/chat1/local.avdl
|
||||
// Input file: ../../../../../../client/protocol/avdl/chat1/local.avdl
|
||||
|
||||
package chat1
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
gregor1 "samhofi.us/x/keybase/v2/types/gregor1"
|
||||
keybase1 "samhofi.us/x/keybase/v2/types/keybase1"
|
||||
stellar1 "samhofi.us/x/keybase/v2/types/stellar1"
|
||||
"errors"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
type VersionKind string
|
||||
@ -356,12 +357,25 @@ func (o MessageDelete) DeepCopy() MessageDelete {
|
||||
}
|
||||
|
||||
type MessageHeadline struct {
|
||||
Headline string `codec:"headline" json:"headline"`
|
||||
Headline string `codec:"headline" json:"headline"`
|
||||
Emojis map[string]HarvestedEmoji `codec:"emojis" json:"emojis"`
|
||||
}
|
||||
|
||||
func (o MessageHeadline) DeepCopy() MessageHeadline {
|
||||
return MessageHeadline{
|
||||
Headline: o.Headline,
|
||||
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),
|
||||
}
|
||||
}
|
||||
|
||||
@ -970,13 +984,14 @@ func (o MessageDeleteHistory) DeepCopy() MessageDeleteHistory {
|
||||
}
|
||||
|
||||
type MessageAttachment struct {
|
||||
Object Asset `codec:"object" json:"object"`
|
||||
Preview *Asset `codec:"preview,omitempty" json:"preview,omitempty"`
|
||||
Previews []Asset `codec:"previews" json:"previews"`
|
||||
Metadata []byte `codec:"metadata" json:"metadata"`
|
||||
Uploaded bool `codec:"uploaded" json:"uploaded"`
|
||||
UserMentions []KnownUserMention `codec:"userMentions" json:"userMentions"`
|
||||
TeamMentions []KnownTeamMention `codec:"teamMentions" json:"teamMentions"`
|
||||
Object Asset `codec:"object" json:"object"`
|
||||
Preview *Asset `codec:"preview,omitempty" json:"preview,omitempty"`
|
||||
Previews []Asset `codec:"previews" json:"previews"`
|
||||
Metadata []byte `codec:"metadata" json:"metadata"`
|
||||
Uploaded bool `codec:"uploaded" json:"uploaded"`
|
||||
UserMentions []KnownUserMention `codec:"userMentions" json:"userMentions"`
|
||||
TeamMentions []KnownTeamMention `codec:"teamMentions" json:"teamMentions"`
|
||||
Emojis map[string]HarvestedEmoji `codec:"emojis" json:"emojis"`
|
||||
}
|
||||
|
||||
func (o MessageAttachment) DeepCopy() MessageAttachment {
|
||||
@ -1029,6 +1044,18 @@ func (o MessageAttachment) DeepCopy() MessageAttachment {
|
||||
}
|
||||
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),
|
||||
}
|
||||
}
|
||||
|
||||
@ -3385,26 +3412,27 @@ func (o ConversationPinnedMessage) DeepCopy() ConversationPinnedMessage {
|
||||
}
|
||||
|
||||
type ConversationInfoLocal struct {
|
||||
Id ConversationID `codec:"id" json:"id"`
|
||||
Triple ConversationIDTriple `codec:"triple" json:"triple"`
|
||||
TlfName string `codec:"tlfName" json:"tlfName"`
|
||||
TopicName string `codec:"topicName" json:"topicName"`
|
||||
Headline string `codec:"headline" json:"headline"`
|
||||
SnippetMsg *MessageUnboxed `codec:"snippetMsg,omitempty" json:"snippetMsg,omitempty"`
|
||||
PinnedMsg *ConversationPinnedMessage `codec:"pinnedMsg,omitempty" json:"pinnedMsg,omitempty"`
|
||||
Draft *string `codec:"draft,omitempty" json:"draft,omitempty"`
|
||||
Visibility keybase1.TLFVisibility `codec:"visibility" json:"visibility"`
|
||||
IsDefaultConv bool `codec:"isDefaultConv" json:"isDefaultConv"`
|
||||
Status ConversationStatus `codec:"status" json:"status"`
|
||||
MembersType ConversationMembersType `codec:"membersType" json:"membersType"`
|
||||
MemberStatus ConversationMemberStatus `codec:"memberStatus" json:"memberStatus"`
|
||||
TeamType TeamType `codec:"teamType" json:"teamType"`
|
||||
Existence ConversationExistence `codec:"existence" json:"existence"`
|
||||
Version ConversationVers `codec:"version" json:"version"`
|
||||
LocalVersion LocalConversationVers `codec:"localVersion" json:"localVersion"`
|
||||
Participants []ConversationLocalParticipant `codec:"participants" json:"participants"`
|
||||
FinalizeInfo *ConversationFinalizeInfo `codec:"finalizeInfo,omitempty" json:"finalizeInfo,omitempty"`
|
||||
ResetNames []string `codec:"resetNames" json:"resetNames"`
|
||||
Id ConversationID `codec:"id" json:"id"`
|
||||
Triple ConversationIDTriple `codec:"triple" json:"triple"`
|
||||
TlfName string `codec:"tlfName" json:"tlfName"`
|
||||
TopicName string `codec:"topicName" json:"topicName"`
|
||||
Headline string `codec:"headline" json:"headline"`
|
||||
HeadlineEmojis []HarvestedEmoji `codec:"headlineEmojis" json:"headlineEmojis"`
|
||||
SnippetMsg *MessageUnboxed `codec:"snippetMsg,omitempty" json:"snippetMsg,omitempty"`
|
||||
PinnedMsg *ConversationPinnedMessage `codec:"pinnedMsg,omitempty" json:"pinnedMsg,omitempty"`
|
||||
Draft *string `codec:"draft,omitempty" json:"draft,omitempty"`
|
||||
Visibility keybase1.TLFVisibility `codec:"visibility" json:"visibility"`
|
||||
IsDefaultConv bool `codec:"isDefaultConv" json:"isDefaultConv"`
|
||||
Status ConversationStatus `codec:"status" json:"status"`
|
||||
MembersType ConversationMembersType `codec:"membersType" json:"membersType"`
|
||||
MemberStatus ConversationMemberStatus `codec:"memberStatus" json:"memberStatus"`
|
||||
TeamType TeamType `codec:"teamType" json:"teamType"`
|
||||
Existence ConversationExistence `codec:"existence" json:"existence"`
|
||||
Version ConversationVers `codec:"version" json:"version"`
|
||||
LocalVersion LocalConversationVers `codec:"localVersion" json:"localVersion"`
|
||||
Participants []ConversationLocalParticipant `codec:"participants" json:"participants"`
|
||||
FinalizeInfo *ConversationFinalizeInfo `codec:"finalizeInfo,omitempty" json:"finalizeInfo,omitempty"`
|
||||
ResetNames []string `codec:"resetNames" json:"resetNames"`
|
||||
}
|
||||
|
||||
func (o ConversationInfoLocal) DeepCopy() ConversationInfoLocal {
|
||||
@ -3414,6 +3442,17 @@ func (o ConversationInfoLocal) DeepCopy() ConversationInfoLocal {
|
||||
TlfName: o.TlfName,
|
||||
TopicName: o.TopicName,
|
||||
Headline: o.Headline,
|
||||
HeadlineEmojis: (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.HeadlineEmojis),
|
||||
SnippetMsg: (func(x *MessageUnboxed) *MessageUnboxed {
|
||||
if x == nil {
|
||||
return nil
|
||||
@ -5909,6 +5948,7 @@ type AdvertiseCommandsParam struct {
|
||||
Typ BotCommandsAdvertisementTyp `codec:"typ" json:"typ"`
|
||||
Commands []UserBotCommandInput `codec:"commands" json:"commands"`
|
||||
TeamName *string `codec:"teamName,omitempty" json:"teamName,omitempty"`
|
||||
ConvID *ConversationID `codec:"convID,omitempty" json:"convID,omitempty"`
|
||||
}
|
||||
|
||||
func (o AdvertiseCommandsParam) DeepCopy() AdvertiseCommandsParam {
|
||||
@ -5932,6 +5972,13 @@ func (o AdvertiseCommandsParam) DeepCopy() AdvertiseCommandsParam {
|
||||
tmp := (*x)
|
||||
return &tmp
|
||||
})(o.TeamName),
|
||||
ConvID: (func(x *ConversationID) *ConversationID {
|
||||
if x == nil {
|
||||
return nil
|
||||
}
|
||||
tmp := (*x).DeepCopy()
|
||||
return &tmp
|
||||
})(o.ConvID),
|
||||
}
|
||||
}
|
||||
|
||||
@ -6259,8 +6306,21 @@ func (o LastActiveStatusAll) DeepCopy() LastActiveStatusAll {
|
||||
}
|
||||
}
|
||||
|
||||
type EmojiError struct {
|
||||
Clidisplay string `codec:"clidisplay" json:"clidisplay"`
|
||||
Uidisplay string `codec:"uidisplay" json:"uidisplay"`
|
||||
}
|
||||
|
||||
func (o EmojiError) DeepCopy() EmojiError {
|
||||
return EmojiError{
|
||||
Clidisplay: o.Clidisplay,
|
||||
Uidisplay: o.Uidisplay,
|
||||
}
|
||||
}
|
||||
|
||||
type AddEmojiRes struct {
|
||||
RateLimit *RateLimit `codec:"rateLimit,omitempty" json:"rateLimit,omitempty"`
|
||||
RateLimit *RateLimit `codec:"rateLimit,omitempty" json:"rateLimit,omitempty"`
|
||||
Error *EmojiError `codec:"error,omitempty" json:"error,omitempty"`
|
||||
}
|
||||
|
||||
func (o AddEmojiRes) DeepCopy() AddEmojiRes {
|
||||
@ -6272,13 +6332,20 @@ func (o AddEmojiRes) DeepCopy() AddEmojiRes {
|
||||
tmp := (*x).DeepCopy()
|
||||
return &tmp
|
||||
})(o.RateLimit),
|
||||
Error: (func(x *EmojiError) *EmojiError {
|
||||
if x == nil {
|
||||
return nil
|
||||
}
|
||||
tmp := (*x).DeepCopy()
|
||||
return &tmp
|
||||
})(o.Error),
|
||||
}
|
||||
}
|
||||
|
||||
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"`
|
||||
RateLimit *RateLimit `codec:"rateLimit,omitempty" json:"rateLimit,omitempty"`
|
||||
SuccessFilenames []string `codec:"successFilenames" json:"successFilenames"`
|
||||
FailedFilenames map[string]EmojiError `codec:"failedFilenames" json:"failedFilenames"`
|
||||
}
|
||||
|
||||
func (o AddEmojisRes) DeepCopy() AddEmojisRes {
|
||||
@ -6301,14 +6368,14 @@ func (o AddEmojisRes) DeepCopy() AddEmojisRes {
|
||||
}
|
||||
return ret
|
||||
})(o.SuccessFilenames),
|
||||
FailedFilenames: (func(x map[string]string) map[string]string {
|
||||
FailedFilenames: (func(x map[string]EmojiError) map[string]EmojiError {
|
||||
if x == nil {
|
||||
return nil
|
||||
}
|
||||
ret := make(map[string]string, len(x))
|
||||
ret := make(map[string]EmojiError, len(x))
|
||||
for k, v := range x {
|
||||
kCopy := k
|
||||
vCopy := v
|
||||
vCopy := v.DeepCopy()
|
||||
ret[kCopy] = vCopy
|
||||
}
|
||||
return ret
|
||||
@ -6317,8 +6384,8 @@ func (o AddEmojisRes) DeepCopy() AddEmojisRes {
|
||||
}
|
||||
|
||||
type AddEmojiAliasRes struct {
|
||||
RateLimit *RateLimit `codec:"rateLimit,omitempty" json:"rateLimit,omitempty"`
|
||||
ErrorString *string `codec:"errorString,omitempty" json:"errorString,omitempty"`
|
||||
RateLimit *RateLimit `codec:"rateLimit,omitempty" json:"rateLimit,omitempty"`
|
||||
Error *EmojiError `codec:"error,omitempty" json:"error,omitempty"`
|
||||
}
|
||||
|
||||
func (o AddEmojiAliasRes) DeepCopy() AddEmojiAliasRes {
|
||||
@ -6330,13 +6397,13 @@ func (o AddEmojiAliasRes) DeepCopy() AddEmojiAliasRes {
|
||||
tmp := (*x).DeepCopy()
|
||||
return &tmp
|
||||
})(o.RateLimit),
|
||||
ErrorString: (func(x *string) *string {
|
||||
Error: (func(x *EmojiError) *EmojiError {
|
||||
if x == nil {
|
||||
return nil
|
||||
}
|
||||
tmp := (*x)
|
||||
tmp := (*x).DeepCopy()
|
||||
return &tmp
|
||||
})(o.ErrorString),
|
||||
})(o.Error),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -1,12 +1,13 @@
|
||||
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
|
||||
// Input file: ../client/protocol/avdl/chat1/notify.avdl
|
||||
// Input file: ../../../../../../client/protocol/avdl/chat1/notify.avdl
|
||||
|
||||
package chat1
|
||||
|
||||
import (
|
||||
keybase1 "samhofi.us/x/keybase/v2/types/keybase1"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
keybase1 "samhofi.us/x/keybase/v2/types/keybase1"
|
||||
)
|
||||
|
||||
type ChatActivitySource int
|
||||
|
||||
@ -1,13 +1,14 @@
|
||||
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
|
||||
// Input file: ../client/protocol/avdl/chat1/remote.avdl
|
||||
// Input file: ../../../../../../client/protocol/avdl/chat1/remote.avdl
|
||||
|
||||
package chat1
|
||||
|
||||
import (
|
||||
gregor1 "samhofi.us/x/keybase/v2/types/gregor1"
|
||||
keybase1 "samhofi.us/x/keybase/v2/types/keybase1"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
gregor1 "samhofi.us/x/keybase/v2/types/gregor1"
|
||||
keybase1 "samhofi.us/x/keybase/v2/types/keybase1"
|
||||
)
|
||||
|
||||
type MessageBoxed struct {
|
||||
@ -965,11 +966,24 @@ func (o RemoteBotCommandsAdvertisementTLFID) DeepCopy() RemoteBotCommandsAdverti
|
||||
}
|
||||
}
|
||||
|
||||
type RemoteBotCommandsAdvertisementConv struct {
|
||||
ConvID ConversationID `codec:"convID" json:"convID"`
|
||||
AdvertiseConvID ConversationID `codec:"advertiseConvID" json:"advertiseConvID"`
|
||||
}
|
||||
|
||||
func (o RemoteBotCommandsAdvertisementConv) DeepCopy() RemoteBotCommandsAdvertisementConv {
|
||||
return RemoteBotCommandsAdvertisementConv{
|
||||
ConvID: o.ConvID.DeepCopy(),
|
||||
AdvertiseConvID: o.AdvertiseConvID.DeepCopy(),
|
||||
}
|
||||
}
|
||||
|
||||
type RemoteBotCommandsAdvertisement struct {
|
||||
Typ__ BotCommandsAdvertisementTyp `codec:"typ" json:"typ"`
|
||||
Public__ *RemoteBotCommandsAdvertisementPublic `codec:"public,omitempty" json:"public,omitempty"`
|
||||
TlfidMembers__ *RemoteBotCommandsAdvertisementTLFID `codec:"tlfidMembers,omitempty" json:"tlfidMembers,omitempty"`
|
||||
TlfidConvs__ *RemoteBotCommandsAdvertisementTLFID `codec:"tlfidConvs,omitempty" json:"tlfidConvs,omitempty"`
|
||||
Conv__ *RemoteBotCommandsAdvertisementConv `codec:"conv,omitempty" json:"conv,omitempty"`
|
||||
}
|
||||
|
||||
func (o *RemoteBotCommandsAdvertisement) Typ() (ret BotCommandsAdvertisementTyp, err error) {
|
||||
@ -989,6 +1003,11 @@ func (o *RemoteBotCommandsAdvertisement) Typ() (ret BotCommandsAdvertisementTyp,
|
||||
err = errors.New("unexpected nil value for TlfidConvs__")
|
||||
return ret, err
|
||||
}
|
||||
case BotCommandsAdvertisementTyp_CONV:
|
||||
if o.Conv__ == nil {
|
||||
err = errors.New("unexpected nil value for Conv__")
|
||||
return ret, err
|
||||
}
|
||||
}
|
||||
return o.Typ__, nil
|
||||
}
|
||||
@ -1023,6 +1042,16 @@ func (o RemoteBotCommandsAdvertisement) TlfidConvs() (res RemoteBotCommandsAdver
|
||||
return *o.TlfidConvs__
|
||||
}
|
||||
|
||||
func (o RemoteBotCommandsAdvertisement) Conv() (res RemoteBotCommandsAdvertisementConv) {
|
||||
if o.Typ__ != BotCommandsAdvertisementTyp_CONV {
|
||||
panic("wrong case accessed")
|
||||
}
|
||||
if o.Conv__ == nil {
|
||||
return
|
||||
}
|
||||
return *o.Conv__
|
||||
}
|
||||
|
||||
func NewRemoteBotCommandsAdvertisementWithPublic(v RemoteBotCommandsAdvertisementPublic) RemoteBotCommandsAdvertisement {
|
||||
return RemoteBotCommandsAdvertisement{
|
||||
Typ__: BotCommandsAdvertisementTyp_PUBLIC,
|
||||
@ -1044,6 +1073,13 @@ func NewRemoteBotCommandsAdvertisementWithTlfidConvs(v RemoteBotCommandsAdvertis
|
||||
}
|
||||
}
|
||||
|
||||
func NewRemoteBotCommandsAdvertisementWithConv(v RemoteBotCommandsAdvertisementConv) RemoteBotCommandsAdvertisement {
|
||||
return RemoteBotCommandsAdvertisement{
|
||||
Typ__: BotCommandsAdvertisementTyp_CONV,
|
||||
Conv__: &v,
|
||||
}
|
||||
}
|
||||
|
||||
func (o RemoteBotCommandsAdvertisement) DeepCopy() RemoteBotCommandsAdvertisement {
|
||||
return RemoteBotCommandsAdvertisement{
|
||||
Typ__: o.Typ__.DeepCopy(),
|
||||
@ -1068,6 +1104,13 @@ func (o RemoteBotCommandsAdvertisement) DeepCopy() RemoteBotCommandsAdvertisemen
|
||||
tmp := (*x).DeepCopy()
|
||||
return &tmp
|
||||
})(o.TlfidConvs__),
|
||||
Conv__: (func(x *RemoteBotCommandsAdvertisementConv) *RemoteBotCommandsAdvertisementConv {
|
||||
if x == nil {
|
||||
return nil
|
||||
}
|
||||
tmp := (*x).DeepCopy()
|
||||
return &tmp
|
||||
})(o.Conv__),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -1,12 +1,13 @@
|
||||
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
|
||||
// Input file: ../client/protocol/avdl/chat1/unfurl.avdl
|
||||
// Input file: ../../../../../../client/protocol/avdl/chat1/unfurl.avdl
|
||||
|
||||
package chat1
|
||||
|
||||
import (
|
||||
gregor1 "samhofi.us/x/keybase/v2/types/gregor1"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
gregor1 "samhofi.us/x/keybase/v2/types/gregor1"
|
||||
)
|
||||
|
||||
type UnfurlType int
|
||||
|
||||
Reference in New Issue
Block a user