3 Commits

Author SHA1 Message Date
c9a2bd80bc Add New() for creating new keybase objects.
This function accepts functional options, and allows you to set an alternate home dir for keybase
2020-05-11 22:48:30 -04:00
Sam
111d41b901 Update ListMembers to output correct type 2020-04-22 13:30:01 -04:00
Sam
300e330b8d Update AVDL compiled types 2020-04-22 13:29:22 -04:00
155 changed files with 1020 additions and 390 deletions

19
chat.go
View File

@ -9,7 +9,6 @@ import (
"time" "time"
"samhofi.us/x/keybase/v2/types/chat1" "samhofi.us/x/keybase/v2/types/chat1"
"samhofi.us/x/keybase/v2/types/keybase1"
"samhofi.us/x/keybase/v2/types/stellar1" "samhofi.us/x/keybase/v2/types/stellar1"
) )
@ -38,7 +37,15 @@ func getNewMessages(k *Keybase, subs *subscriptionChannels, execOptions []string
execString = append(execString, execOptions...) execString = append(execString, execOptions...)
} }
for { for {
execCmd := exec.Command(k.Path, execString...) cmd := make([]string, 0)
if k.HomePath != "" {
cmd = append(cmd, "--home", k.HomePath)
}
cmd = append(cmd, execString...)
execCmd := exec.Command(k.ExePath, cmd...)
stdOut, _ := execCmd.StdoutPipe() stdOut, _ := execCmd.StdoutPipe()
execCmd.Start() execCmd.Start()
scanner := bufio.NewScanner(stdOut) scanner := bufio.NewScanner(stdOut)
@ -701,9 +708,9 @@ func (k *Keybase) ClearCommands() error {
} }
// ListMembers returns member information for a channel or conversation // ListMembers returns member information for a channel or conversation
func (k *Keybase) ListMembers(options ListMembersOptions) (keybase1.TeamDetails, error) { func (k *Keybase) ListMembers(options ListMembersOptions) (chat1.ChatMembersDetails, error) {
type res struct { type res struct {
Result keybase1.TeamDetails `json:"result"` Result chat1.ChatMembersDetails `json:"result"`
Error *Error `json:"error,omitempty"` Error *Error `json:"error,omitempty"`
} }
@ -731,7 +738,7 @@ func (k *Keybase) ListMembers(options ListMembersOptions) (keybase1.TeamDetails,
} }
// ListMembersOfChannel returns member information for a channel // ListMembersOfChannel returns member information for a channel
func (k *Keybase) ListMembersOfChannel(channel chat1.ChatChannel) (keybase1.TeamDetails, error) { func (k *Keybase) ListMembersOfChannel(channel chat1.ChatChannel) (chat1.ChatMembersDetails, error) {
opts := ListMembersOptions{ opts := ListMembersOptions{
Channel: channel, Channel: channel,
} }
@ -739,7 +746,7 @@ func (k *Keybase) ListMembersOfChannel(channel chat1.ChatChannel) (keybase1.Team
} }
// ListMembersOfConversation returns member information for a conversation // ListMembersOfConversation returns member information for a conversation
func (k *Keybase) ListMembersOfConversation(convID chat1.ConvIDStr) (keybase1.TeamDetails, error) { func (k *Keybase) ListMembersOfConversation(convID chat1.ConvIDStr) (chat1.ChatMembersDetails, error) {
opts := ListMembersOptions{ opts := ListMembersOptions{
ConversationID: convID, ConversationID: convID,
} }

View File

@ -21,13 +21,33 @@ const (
CHAT string = "chat" CHAT string = "chat"
) )
// New returns a new Keybase
func New(opts ...KeybaseOpt) *Keybase {
k := &Keybase{ExePath: "keybase"}
for _, opt := range opts {
opt.apply(k)
}
s := k.status()
k.Version = k.version()
k.LoggedIn = s.LoggedIn
if k.LoggedIn {
k.Username = s.Username
k.Device = s.Device.Name
}
return k
}
// NewKeybase returns a new Keybase. Optionally, you can pass a string containing the path to the Keybase executable as the first argument. // NewKeybase returns a new Keybase. Optionally, you can pass a string containing the path to the Keybase executable as the first argument.
// This is deprecated and will be removed in a future update. Use New() instead.
func NewKeybase(path ...string) *Keybase { func NewKeybase(path ...string) *Keybase {
k := &Keybase{} k := &Keybase{}
if len(path) < 1 { if len(path) < 1 {
k.Path = "keybase" k.ExePath = "keybase"
} else { } else {
k.Path = path[0] k.ExePath = path[0]
} }
s := k.status() s := k.status()
@ -42,7 +62,15 @@ func NewKeybase(path ...string) *Keybase {
// Exec executes the given Keybase command // Exec executes the given Keybase command
func (k *Keybase) Exec(command ...string) ([]byte, error) { func (k *Keybase) Exec(command ...string) ([]byte, error) {
out, err := exec.Command(k.Path, command...).Output() cmd := make([]string, 0)
if k.HomePath != "" {
cmd = append(cmd, "--home", k.HomePath)
}
cmd = append(cmd, command...)
out, err := exec.Command(k.ExePath, cmd...).Output()
if err != nil { if err != nil {
return []byte{}, err return []byte{}, err
} }

View File

@ -20,6 +20,37 @@ type RunOptions struct {
FilterChannels []chat1.ChatChannel // Only subscribe to messages from specified channels FilterChannels []chat1.ChatChannel // Only subscribe to messages from specified channels
} }
// KeybaseOpt configures a Keybase
type KeybaseOpt interface {
apply(kb *Keybase)
}
// SetExePath sets the path to the Keybase executable
func SetExePath(path string) KeybaseOpt {
return setExePath{path}
}
type setExePath struct {
path string
}
func (o setExePath) apply(kb *Keybase) {
kb.ExePath = o.path
}
// SetHomePath sets the path to the Keybase home directory
func SetHomePath(path string) KeybaseOpt {
return setHomePath{path}
}
type setHomePath struct {
path string
}
func (o setHomePath) apply(kb *Keybase) {
kb.HomePath = o.path
}
type subscriptionType struct { type subscriptionType struct {
Type string `json:"type"` Type string `json:"type"`
} }
@ -954,7 +985,8 @@ type userBlocks struct {
// Keybase holds basic information about the local Keybase executable // Keybase holds basic information about the local Keybase executable
type Keybase struct { type Keybase struct {
Path string HomePath string
ExePath string
Username string Username string
LoggedIn bool LoggedIn bool
Version string Version string

View File

@ -1,5 +1,5 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // 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 package chat1
@ -942,6 +942,7 @@ type AdvertiseCommandAPIParam struct {
Typ string `codec:"typ" json:"type"` Typ string `codec:"typ" json:"type"`
Commands []UserBotCommandInput `codec:"commands" json:"commands"` Commands []UserBotCommandInput `codec:"commands" json:"commands"`
TeamName string `codec:"teamName,omitempty" json:"team_name,omitempty"` TeamName string `codec:"teamName,omitempty" json:"team_name,omitempty"`
ConvID ConvIDStr `codec:"convID,omitempty" json:"conv_id,omitempty"`
} }
func (o AdvertiseCommandAPIParam) DeepCopy() AdvertiseCommandAPIParam { func (o AdvertiseCommandAPIParam) DeepCopy() AdvertiseCommandAPIParam {
@ -959,6 +960,7 @@ func (o AdvertiseCommandAPIParam) DeepCopy() AdvertiseCommandAPIParam {
return ret return ret
})(o.Commands), })(o.Commands),
TeamName: o.TeamName, TeamName: o.TeamName,
ConvID: o.ConvID.DeepCopy(),
} }
} }

View File

@ -1,4 +1,4 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // 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 package chat1

View File

@ -1,14 +1,15 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // 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 package chat1
import ( import (
"errors"
"fmt"
gregor1 "samhofi.us/x/keybase/v2/types/gregor1" gregor1 "samhofi.us/x/keybase/v2/types/gregor1"
keybase1 "samhofi.us/x/keybase/v2/types/keybase1" keybase1 "samhofi.us/x/keybase/v2/types/keybase1"
stellar1 "samhofi.us/x/keybase/v2/types/stellar1" stellar1 "samhofi.us/x/keybase/v2/types/stellar1"
"errors"
"fmt"
) )
type UIPagination struct { type UIPagination struct {

View File

@ -1,5 +1,5 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // 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 package chat1

View File

@ -1,13 +1,15 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // 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 package chat1
import ( import (
gregor1 "samhofi.us/x/keybase/v2/types/gregor1"
keybase1 "samhofi.us/x/keybase/v2/types/keybase1"
"errors" "errors"
"fmt" "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 type ThreadID []byte
@ -1368,6 +1370,7 @@ type MessageClientHeader struct {
EphemeralMetadata *MsgEphemeralMetadata `codec:"em,omitempty" json:"em,omitempty"` EphemeralMetadata *MsgEphemeralMetadata `codec:"em,omitempty" json:"em,omitempty"`
PairwiseMacs map[keybase1.KID][]byte `codec:"pm" json:"pm"` PairwiseMacs map[keybase1.KID][]byte `codec:"pm" json:"pm"`
BotUID *gregor1.UID `codec:"b,omitempty" json:"b,omitempty"` BotUID *gregor1.UID `codec:"b,omitempty" json:"b,omitempty"`
TxID *stellar1.TransactionID `codec:"t,omitempty" json:"t,omitempty"`
} }
func (o MessageClientHeader) DeepCopy() MessageClientHeader { func (o MessageClientHeader) DeepCopy() MessageClientHeader {
@ -1467,6 +1470,13 @@ func (o MessageClientHeader) DeepCopy() MessageClientHeader {
tmp := (*x).DeepCopy() tmp := (*x).DeepCopy()
return &tmp return &tmp
})(o.BotUID), })(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_PUBLIC BotCommandsAdvertisementTyp = 0
BotCommandsAdvertisementTyp_TLFID_MEMBERS BotCommandsAdvertisementTyp = 1 BotCommandsAdvertisementTyp_TLFID_MEMBERS BotCommandsAdvertisementTyp = 1
BotCommandsAdvertisementTyp_TLFID_CONVS BotCommandsAdvertisementTyp = 2 BotCommandsAdvertisementTyp_TLFID_CONVS BotCommandsAdvertisementTyp = 2
BotCommandsAdvertisementTyp_CONV BotCommandsAdvertisementTyp = 3
) )
func (o BotCommandsAdvertisementTyp) DeepCopy() BotCommandsAdvertisementTyp { return o } func (o BotCommandsAdvertisementTyp) DeepCopy() BotCommandsAdvertisementTyp { return o }
@ -2489,12 +2500,14 @@ var BotCommandsAdvertisementTypMap = map[string]BotCommandsAdvertisementTyp{
"PUBLIC": 0, "PUBLIC": 0,
"TLFID_MEMBERS": 1, "TLFID_MEMBERS": 1,
"TLFID_CONVS": 2, "TLFID_CONVS": 2,
"CONV": 3,
} }
var BotCommandsAdvertisementTypRevMap = map[BotCommandsAdvertisementTyp]string{ var BotCommandsAdvertisementTypRevMap = map[BotCommandsAdvertisementTyp]string{
0: "PUBLIC", 0: "PUBLIC",
1: "TLFID_MEMBERS", 1: "TLFID_MEMBERS",
2: "TLFID_CONVS", 2: "TLFID_CONVS",
3: "CONV",
} }
func (e BotCommandsAdvertisementTyp) String() string { func (e BotCommandsAdvertisementTyp) String() string {
@ -2546,3 +2559,97 @@ func (e LastActiveStatus) String() string {
} }
return fmt.Sprintf("%v", int(e)) 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),
}
}

View File

@ -1,12 +1,13 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // 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 package chat1
import ( import (
gregor1 "samhofi.us/x/keybase/v2/types/gregor1"
"errors" "errors"
"fmt" "fmt"
gregor1 "samhofi.us/x/keybase/v2/types/gregor1"
) )
type EmojiLoadSourceTyp int type EmojiLoadSourceTyp int
@ -274,9 +275,12 @@ type Emoji struct {
IsBig bool `codec:"isBig" json:"isBig"` IsBig bool `codec:"isBig" json:"isBig"`
IsReacji bool `codec:"isReacji" json:"isReacji"` IsReacji bool `codec:"isReacji" json:"isReacji"`
IsCrossTeam bool `codec:"isCrossTeam" json:"isCrossTeam"` IsCrossTeam bool `codec:"isCrossTeam" json:"isCrossTeam"`
IsAlias bool `codec:"isAlias" json:"isAlias"`
Source EmojiLoadSource `codec:"source" json:"source"` Source EmojiLoadSource `codec:"source" json:"source"`
NoAnimSource EmojiLoadSource `codec:"noAnimSource" json:"noAnimSource"`
RemoteSource EmojiRemoteSource `codec:"remoteSource" json:"remoteSource"` RemoteSource EmojiRemoteSource `codec:"remoteSource" json:"remoteSource"`
CreationInfo *EmojiCreationInfo `codec:"creationInfo,omitempty" json:"creationInfo,omitempty"` CreationInfo *EmojiCreationInfo `codec:"creationInfo,omitempty" json:"creationInfo,omitempty"`
Teamname *string `codec:"teamname,omitempty" json:"teamname,omitempty"`
} }
func (o Emoji) DeepCopy() Emoji { func (o Emoji) DeepCopy() Emoji {
@ -285,7 +289,9 @@ func (o Emoji) DeepCopy() Emoji {
IsBig: o.IsBig, IsBig: o.IsBig,
IsReacji: o.IsReacji, IsReacji: o.IsReacji,
IsCrossTeam: o.IsCrossTeam, IsCrossTeam: o.IsCrossTeam,
IsAlias: o.IsAlias,
Source: o.Source.DeepCopy(), Source: o.Source.DeepCopy(),
NoAnimSource: o.NoAnimSource.DeepCopy(),
RemoteSource: o.RemoteSource.DeepCopy(), RemoteSource: o.RemoteSource.DeepCopy(),
CreationInfo: (func(x *EmojiCreationInfo) *EmojiCreationInfo { CreationInfo: (func(x *EmojiCreationInfo) *EmojiCreationInfo {
if x == nil { if x == nil {
@ -294,6 +300,13 @@ func (o Emoji) DeepCopy() Emoji {
tmp := (*x).DeepCopy() tmp := (*x).DeepCopy()
return &tmp return &tmp
})(o.CreationInfo), })(o.CreationInfo),
Teamname: (func(x *string) *string {
if x == nil {
return nil
}
tmp := (*x)
return &tmp
})(o.Teamname),
} }
} }

View File

@ -1,5 +1,5 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // 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 package chat1

View File

@ -1,14 +1,15 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // 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 package chat1
import ( import (
"errors"
"fmt"
gregor1 "samhofi.us/x/keybase/v2/types/gregor1" gregor1 "samhofi.us/x/keybase/v2/types/gregor1"
keybase1 "samhofi.us/x/keybase/v2/types/keybase1" keybase1 "samhofi.us/x/keybase/v2/types/keybase1"
stellar1 "samhofi.us/x/keybase/v2/types/stellar1" stellar1 "samhofi.us/x/keybase/v2/types/stellar1"
"errors"
"fmt"
) )
type VersionKind string type VersionKind string
@ -357,11 +358,24 @@ func (o MessageDelete) DeepCopy() MessageDelete {
type MessageHeadline struct { 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 { func (o MessageHeadline) DeepCopy() MessageHeadline {
return MessageHeadline{ return MessageHeadline{
Headline: o.Headline, 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),
} }
} }
@ -977,6 +991,7 @@ type MessageAttachment struct {
Uploaded bool `codec:"uploaded" json:"uploaded"` Uploaded bool `codec:"uploaded" json:"uploaded"`
UserMentions []KnownUserMention `codec:"userMentions" json:"userMentions"` UserMentions []KnownUserMention `codec:"userMentions" json:"userMentions"`
TeamMentions []KnownTeamMention `codec:"teamMentions" json:"teamMentions"` TeamMentions []KnownTeamMention `codec:"teamMentions" json:"teamMentions"`
Emojis map[string]HarvestedEmoji `codec:"emojis" json:"emojis"`
} }
func (o MessageAttachment) DeepCopy() MessageAttachment { func (o MessageAttachment) DeepCopy() MessageAttachment {
@ -1029,6 +1044,18 @@ func (o MessageAttachment) DeepCopy() MessageAttachment {
} }
return ret return ret
})(o.TeamMentions), })(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),
} }
} }
@ -3390,6 +3417,7 @@ type ConversationInfoLocal struct {
TlfName string `codec:"tlfName" json:"tlfName"` TlfName string `codec:"tlfName" json:"tlfName"`
TopicName string `codec:"topicName" json:"topicName"` TopicName string `codec:"topicName" json:"topicName"`
Headline string `codec:"headline" json:"headline"` Headline string `codec:"headline" json:"headline"`
HeadlineEmojis []HarvestedEmoji `codec:"headlineEmojis" json:"headlineEmojis"`
SnippetMsg *MessageUnboxed `codec:"snippetMsg,omitempty" json:"snippetMsg,omitempty"` SnippetMsg *MessageUnboxed `codec:"snippetMsg,omitempty" json:"snippetMsg,omitempty"`
PinnedMsg *ConversationPinnedMessage `codec:"pinnedMsg,omitempty" json:"pinnedMsg,omitempty"` PinnedMsg *ConversationPinnedMessage `codec:"pinnedMsg,omitempty" json:"pinnedMsg,omitempty"`
Draft *string `codec:"draft,omitempty" json:"draft,omitempty"` Draft *string `codec:"draft,omitempty" json:"draft,omitempty"`
@ -3414,6 +3442,17 @@ func (o ConversationInfoLocal) DeepCopy() ConversationInfoLocal {
TlfName: o.TlfName, TlfName: o.TlfName,
TopicName: o.TopicName, TopicName: o.TopicName,
Headline: o.Headline, 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 { SnippetMsg: (func(x *MessageUnboxed) *MessageUnboxed {
if x == nil { if x == nil {
return nil return nil
@ -5909,6 +5948,7 @@ type AdvertiseCommandsParam struct {
Typ BotCommandsAdvertisementTyp `codec:"typ" json:"typ"` Typ BotCommandsAdvertisementTyp `codec:"typ" json:"typ"`
Commands []UserBotCommandInput `codec:"commands" json:"commands"` Commands []UserBotCommandInput `codec:"commands" json:"commands"`
TeamName *string `codec:"teamName,omitempty" json:"teamName,omitempty"` TeamName *string `codec:"teamName,omitempty" json:"teamName,omitempty"`
ConvID *ConversationID `codec:"convID,omitempty" json:"convID,omitempty"`
} }
func (o AdvertiseCommandsParam) DeepCopy() AdvertiseCommandsParam { func (o AdvertiseCommandsParam) DeepCopy() AdvertiseCommandsParam {
@ -5932,6 +5972,13 @@ func (o AdvertiseCommandsParam) DeepCopy() AdvertiseCommandsParam {
tmp := (*x) tmp := (*x)
return &tmp return &tmp
})(o.TeamName), })(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 { 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 { func (o AddEmojiRes) DeepCopy() AddEmojiRes {
@ -6272,13 +6332,20 @@ func (o AddEmojiRes) DeepCopy() AddEmojiRes {
tmp := (*x).DeepCopy() tmp := (*x).DeepCopy()
return &tmp return &tmp
})(o.RateLimit), })(o.RateLimit),
Error: (func(x *EmojiError) *EmojiError {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.Error),
} }
} }
type AddEmojisRes struct { type AddEmojisRes struct {
RateLimit *RateLimit `codec:"rateLimit,omitempty" json:"rateLimit,omitempty"` RateLimit *RateLimit `codec:"rateLimit,omitempty" json:"rateLimit,omitempty"`
SuccessFilenames []string `codec:"successFilenames" json:"successFilenames"` SuccessFilenames []string `codec:"successFilenames" json:"successFilenames"`
FailedFilenames map[string]string `codec:"failedFilenames" json:"failedFilenames"` FailedFilenames map[string]EmojiError `codec:"failedFilenames" json:"failedFilenames"`
} }
func (o AddEmojisRes) DeepCopy() AddEmojisRes { func (o AddEmojisRes) DeepCopy() AddEmojisRes {
@ -6301,14 +6368,14 @@ func (o AddEmojisRes) DeepCopy() AddEmojisRes {
} }
return ret return ret
})(o.SuccessFilenames), })(o.SuccessFilenames),
FailedFilenames: (func(x map[string]string) map[string]string { FailedFilenames: (func(x map[string]EmojiError) map[string]EmojiError {
if x == nil { if x == nil {
return nil return nil
} }
ret := make(map[string]string, len(x)) ret := make(map[string]EmojiError, len(x))
for k, v := range x { for k, v := range x {
kCopy := k kCopy := k
vCopy := v vCopy := v.DeepCopy()
ret[kCopy] = vCopy ret[kCopy] = vCopy
} }
return ret return ret
@ -6318,7 +6385,7 @@ func (o AddEmojisRes) DeepCopy() AddEmojisRes {
type AddEmojiAliasRes struct { type AddEmojiAliasRes struct {
RateLimit *RateLimit `codec:"rateLimit,omitempty" json:"rateLimit,omitempty"` RateLimit *RateLimit `codec:"rateLimit,omitempty" json:"rateLimit,omitempty"`
ErrorString *string `codec:"errorString,omitempty" json:"errorString,omitempty"` Error *EmojiError `codec:"error,omitempty" json:"error,omitempty"`
} }
func (o AddEmojiAliasRes) DeepCopy() AddEmojiAliasRes { func (o AddEmojiAliasRes) DeepCopy() AddEmojiAliasRes {
@ -6330,13 +6397,13 @@ func (o AddEmojiAliasRes) DeepCopy() AddEmojiAliasRes {
tmp := (*x).DeepCopy() tmp := (*x).DeepCopy()
return &tmp return &tmp
})(o.RateLimit), })(o.RateLimit),
ErrorString: (func(x *string) *string { Error: (func(x *EmojiError) *EmojiError {
if x == nil { if x == nil {
return nil return nil
} }
tmp := (*x) tmp := (*x).DeepCopy()
return &tmp return &tmp
})(o.ErrorString), })(o.Error),
} }
} }

View File

@ -1,12 +1,13 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // 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 package chat1
import ( import (
keybase1 "samhofi.us/x/keybase/v2/types/keybase1"
"errors" "errors"
"fmt" "fmt"
keybase1 "samhofi.us/x/keybase/v2/types/keybase1"
) )
type ChatActivitySource int type ChatActivitySource int

View File

@ -1,13 +1,14 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // 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 package chat1
import ( import (
gregor1 "samhofi.us/x/keybase/v2/types/gregor1"
keybase1 "samhofi.us/x/keybase/v2/types/keybase1"
"errors" "errors"
"fmt" "fmt"
gregor1 "samhofi.us/x/keybase/v2/types/gregor1"
keybase1 "samhofi.us/x/keybase/v2/types/keybase1"
) )
type MessageBoxed struct { 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 { type RemoteBotCommandsAdvertisement struct {
Typ__ BotCommandsAdvertisementTyp `codec:"typ" json:"typ"` Typ__ BotCommandsAdvertisementTyp `codec:"typ" json:"typ"`
Public__ *RemoteBotCommandsAdvertisementPublic `codec:"public,omitempty" json:"public,omitempty"` Public__ *RemoteBotCommandsAdvertisementPublic `codec:"public,omitempty" json:"public,omitempty"`
TlfidMembers__ *RemoteBotCommandsAdvertisementTLFID `codec:"tlfidMembers,omitempty" json:"tlfidMembers,omitempty"` TlfidMembers__ *RemoteBotCommandsAdvertisementTLFID `codec:"tlfidMembers,omitempty" json:"tlfidMembers,omitempty"`
TlfidConvs__ *RemoteBotCommandsAdvertisementTLFID `codec:"tlfidConvs,omitempty" json:"tlfidConvs,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) { 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__") err = errors.New("unexpected nil value for TlfidConvs__")
return ret, err 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 return o.Typ__, nil
} }
@ -1023,6 +1042,16 @@ func (o RemoteBotCommandsAdvertisement) TlfidConvs() (res RemoteBotCommandsAdver
return *o.TlfidConvs__ 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 { func NewRemoteBotCommandsAdvertisementWithPublic(v RemoteBotCommandsAdvertisementPublic) RemoteBotCommandsAdvertisement {
return RemoteBotCommandsAdvertisement{ return RemoteBotCommandsAdvertisement{
Typ__: BotCommandsAdvertisementTyp_PUBLIC, 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 { func (o RemoteBotCommandsAdvertisement) DeepCopy() RemoteBotCommandsAdvertisement {
return RemoteBotCommandsAdvertisement{ return RemoteBotCommandsAdvertisement{
Typ__: o.Typ__.DeepCopy(), Typ__: o.Typ__.DeepCopy(),
@ -1068,6 +1104,13 @@ func (o RemoteBotCommandsAdvertisement) DeepCopy() RemoteBotCommandsAdvertisemen
tmp := (*x).DeepCopy() tmp := (*x).DeepCopy()
return &tmp return &tmp
})(o.TlfidConvs__), })(o.TlfidConvs__),
Conv__: (func(x *RemoteBotCommandsAdvertisementConv) *RemoteBotCommandsAdvertisementConv {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.Conv__),
} }
} }

View File

@ -1,12 +1,13 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // 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 package chat1
import ( import (
gregor1 "samhofi.us/x/keybase/v2/types/gregor1"
"errors" "errors"
"fmt" "fmt"
gregor1 "samhofi.us/x/keybase/v2/types/gregor1"
) )
type UnfurlType int type UnfurlType int

View File

@ -1,5 +1,5 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/gregor1/auth.avdl // Input file: ../../../../../../client/protocol/avdl/gregor1/auth.avdl
package gregor1 package gregor1

View File

@ -1,4 +1,4 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/gregor1/auth_internal.avdl // Input file: ../../../../../../client/protocol/avdl/gregor1/auth_internal.avdl
package gregor1 package gregor1

View File

@ -1,4 +1,4 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/gregor1/auth_update.avdl // Input file: ../../../../../../client/protocol/avdl/gregor1/auth_update.avdl
package gregor1 package gregor1

View File

@ -1,5 +1,5 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/gregor1/common.avdl // Input file: ../../../../../../client/protocol/avdl/gregor1/common.avdl
package gregor1 package gregor1

View File

@ -1,5 +1,5 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/gregor1/incoming.avdl // Input file: ../../../../../../client/protocol/avdl/gregor1/incoming.avdl
package gregor1 package gregor1

View File

@ -1,4 +1,4 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/gregor1/outgoing.avdl // Input file: ../../../../../../client/protocol/avdl/gregor1/outgoing.avdl
package gregor1 package gregor1

View File

@ -1,4 +1,4 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/gregor1/remind.avdl // Input file: ../../../../../../client/protocol/avdl/gregor1/remind.avdl
package gregor1 package gregor1

View File

@ -1,5 +1,5 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/account.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/account.avdl
package keybase1 package keybase1

View File

@ -1,5 +1,5 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/airdrop.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/airdrop.avdl
package keybase1 package keybase1

View File

@ -1,5 +1,5 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/apiserver.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/apiserver.avdl
package keybase1 package keybase1

View File

@ -1,5 +1,5 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/appstate.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/appstate.avdl
package keybase1 package keybase1

View File

@ -1,5 +1,5 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/audit.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/audit.avdl
package keybase1 package keybase1

View File

@ -1,5 +1,5 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/avatars.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/avatars.avdl
package keybase1 package keybase1

View File

@ -1,5 +1,5 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/backend_common.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/backend_common.avdl
package keybase1 package keybase1

View File

@ -1,4 +1,4 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/badger.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/badger.avdl
package keybase1 package keybase1

View File

@ -1,5 +1,5 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/block.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/block.avdl
package keybase1 package keybase1

View File

@ -1,5 +1,5 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/bot.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/bot.avdl
package keybase1 package keybase1

View File

@ -1,4 +1,4 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/btc.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/btc.avdl
package keybase1 package keybase1

View File

@ -1,5 +1,5 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/common.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/common.avdl
package keybase1 package keybase1
@ -1076,6 +1076,7 @@ func (e OfflineAvailability) String() string {
type UserReacji struct { type UserReacji struct {
Name string `codec:"name" json:"name"` Name string `codec:"name" json:"name"`
CustomAddr *string `codec:"customAddr,omitempty" json:"customAddr,omitempty"` CustomAddr *string `codec:"customAddr,omitempty" json:"customAddr,omitempty"`
CustomAddrNoAnim *string `codec:"customAddrNoAnim,omitempty" json:"customAddrNoAnim,omitempty"`
} }
func (o UserReacji) DeepCopy() UserReacji { func (o UserReacji) DeepCopy() UserReacji {
@ -1088,13 +1089,52 @@ func (o UserReacji) DeepCopy() UserReacji {
tmp := (*x) tmp := (*x)
return &tmp return &tmp
})(o.CustomAddr), })(o.CustomAddr),
CustomAddrNoAnim: (func(x *string) *string {
if x == nil {
return nil
}
tmp := (*x)
return &tmp
})(o.CustomAddrNoAnim),
} }
} }
type ReacjiSkinTone int type ReacjiSkinTone int
func (o ReacjiSkinTone) DeepCopy() ReacjiSkinTone { const (
return o ReacjiSkinTone_NONE ReacjiSkinTone = 0
ReacjiSkinTone_SKINTONE1 ReacjiSkinTone = 1
ReacjiSkinTone_SKINTONE2 ReacjiSkinTone = 2
ReacjiSkinTone_SKINTONE3 ReacjiSkinTone = 3
ReacjiSkinTone_SKINTONE4 ReacjiSkinTone = 4
ReacjiSkinTone_SKINTONE5 ReacjiSkinTone = 5
)
func (o ReacjiSkinTone) DeepCopy() ReacjiSkinTone { return o }
var ReacjiSkinToneMap = map[string]ReacjiSkinTone{
"NONE": 0,
"SKINTONE1": 1,
"SKINTONE2": 2,
"SKINTONE3": 3,
"SKINTONE4": 4,
"SKINTONE5": 5,
}
var ReacjiSkinToneRevMap = map[ReacjiSkinTone]string{
0: "NONE",
1: "SKINTONE1",
2: "SKINTONE2",
3: "SKINTONE3",
4: "SKINTONE4",
5: "SKINTONE5",
}
func (e ReacjiSkinTone) String() string {
if v, ok := ReacjiSkinToneRevMap[e]; ok {
return v
}
return fmt.Sprintf("%v", int(e))
} }
type UserReacjis struct { type UserReacjis struct {
@ -1153,13 +1193,3 @@ func (e WotStatusType) String() string {
} }
return fmt.Sprintf("%v", int(e)) return fmt.Sprintf("%v", int(e))
} }
type GenericError struct {
Message string `codec:"message" json:"message"`
}
func (o GenericError) DeepCopy() GenericError {
return GenericError{
Message: o.Message,
}
}

View File

@ -1,5 +1,5 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/config.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/config.avdl
package keybase1 package keybase1

View File

@ -1,5 +1,5 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/constants.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/constants.avdl
package keybase1 package keybase1

View File

@ -1,5 +1,5 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/contacts.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/contacts.avdl
package keybase1 package keybase1

View File

@ -1,5 +1,5 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/crypto.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/crypto.avdl
package keybase1 package keybase1

View File

@ -1,5 +1,5 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/cryptocurrency.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/cryptocurrency.avdl
package keybase1 package keybase1

View File

@ -1,5 +1,5 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/ctl.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/ctl.avdl
package keybase1 package keybase1

View File

@ -1,5 +1,5 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/debugging.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/debugging.avdl
package keybase1 package keybase1

View File

@ -1,4 +1,4 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/delegate_ui_ctl.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/delegate_ui_ctl.avdl
package keybase1 package keybase1

View File

@ -1,5 +1,5 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/device.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/device.avdl
package keybase1 package keybase1

View File

@ -1,5 +1,5 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/emails.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/emails.avdl
package keybase1 package keybase1

View File

@ -1,5 +1,5 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/ephemeral.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/ephemeral.avdl
package keybase1 package keybase1

View File

@ -1,5 +1,5 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/favorite.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/favorite.avdl
package keybase1 package keybase1

View File

@ -1,5 +1,5 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/featured_bot.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/featured_bot.avdl
package keybase1 package keybase1

View File

@ -1,5 +1,5 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/fs.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/fs.avdl
package keybase1 package keybase1

View File

@ -1,5 +1,5 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/git.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/git.avdl
package keybase1 package keybase1

View File

@ -1,5 +1,5 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/gpg_common.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/gpg_common.avdl
package keybase1 package keybase1

View File

@ -1,5 +1,5 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/gpg_ui.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/gpg_ui.avdl
package keybase1 package keybase1

View File

@ -1,4 +1,4 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/gregor.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/gregor.avdl
package keybase1 package keybase1

View File

@ -1,5 +1,5 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/gregor_ui.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/gregor_ui.avdl
package keybase1 package keybase1

View File

@ -1,5 +1,5 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/home.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/home.avdl
package keybase1 package keybase1
@ -298,19 +298,19 @@ const (
HomeScreenTodoType_PROOF HomeScreenTodoType = 2 HomeScreenTodoType_PROOF HomeScreenTodoType = 2
HomeScreenTodoType_DEVICE HomeScreenTodoType = 3 HomeScreenTodoType_DEVICE HomeScreenTodoType = 3
HomeScreenTodoType_FOLLOW HomeScreenTodoType = 4 HomeScreenTodoType_FOLLOW HomeScreenTodoType = 4
HomeScreenTodoType_CHAT HomeScreenTodoType = 5
HomeScreenTodoType_PAPERKEY HomeScreenTodoType = 6 HomeScreenTodoType_PAPERKEY HomeScreenTodoType = 6
HomeScreenTodoType_TEAM HomeScreenTodoType = 7 HomeScreenTodoType_TEAM HomeScreenTodoType = 7
HomeScreenTodoType_FOLDER HomeScreenTodoType = 8 HomeScreenTodoType_FOLDER HomeScreenTodoType = 8
HomeScreenTodoType_GIT_REPO HomeScreenTodoType = 9 HomeScreenTodoType_GIT_REPO HomeScreenTodoType = 9
HomeScreenTodoType_TEAM_SHOWCASE HomeScreenTodoType = 10 HomeScreenTodoType_TEAM_SHOWCASE HomeScreenTodoType = 10
HomeScreenTodoType_AVATAR_USER HomeScreenTodoType = 11
HomeScreenTodoType_AVATAR_TEAM HomeScreenTodoType = 12 HomeScreenTodoType_AVATAR_TEAM HomeScreenTodoType = 12
HomeScreenTodoType_ADD_PHONE_NUMBER HomeScreenTodoType = 18 HomeScreenTodoType_ADD_PHONE_NUMBER HomeScreenTodoType = 18
HomeScreenTodoType_VERIFY_ALL_PHONE_NUMBER HomeScreenTodoType = 19 HomeScreenTodoType_VERIFY_ALL_PHONE_NUMBER HomeScreenTodoType = 19
HomeScreenTodoType_VERIFY_ALL_EMAIL HomeScreenTodoType = 20 HomeScreenTodoType_VERIFY_ALL_EMAIL HomeScreenTodoType = 20
HomeScreenTodoType_LEGACY_EMAIL_VISIBILITY HomeScreenTodoType = 21 HomeScreenTodoType_LEGACY_EMAIL_VISIBILITY HomeScreenTodoType = 21
HomeScreenTodoType_ADD_EMAIL HomeScreenTodoType = 22 HomeScreenTodoType_ADD_EMAIL HomeScreenTodoType = 22
HomeScreenTodoType_AVATAR_USER HomeScreenTodoType = 23
HomeScreenTodoType_CHAT HomeScreenTodoType = 24
HomeScreenTodoType_ANNONCEMENT_PLACEHOLDER HomeScreenTodoType = 10000 HomeScreenTodoType_ANNONCEMENT_PLACEHOLDER HomeScreenTodoType = 10000
) )
@ -322,19 +322,19 @@ var HomeScreenTodoTypeMap = map[string]HomeScreenTodoType{
"PROOF": 2, "PROOF": 2,
"DEVICE": 3, "DEVICE": 3,
"FOLLOW": 4, "FOLLOW": 4,
"CHAT": 5,
"PAPERKEY": 6, "PAPERKEY": 6,
"TEAM": 7, "TEAM": 7,
"FOLDER": 8, "FOLDER": 8,
"GIT_REPO": 9, "GIT_REPO": 9,
"TEAM_SHOWCASE": 10, "TEAM_SHOWCASE": 10,
"AVATAR_USER": 11,
"AVATAR_TEAM": 12, "AVATAR_TEAM": 12,
"ADD_PHONE_NUMBER": 18, "ADD_PHONE_NUMBER": 18,
"VERIFY_ALL_PHONE_NUMBER": 19, "VERIFY_ALL_PHONE_NUMBER": 19,
"VERIFY_ALL_EMAIL": 20, "VERIFY_ALL_EMAIL": 20,
"LEGACY_EMAIL_VISIBILITY": 21, "LEGACY_EMAIL_VISIBILITY": 21,
"ADD_EMAIL": 22, "ADD_EMAIL": 22,
"AVATAR_USER": 23,
"CHAT": 24,
"ANNONCEMENT_PLACEHOLDER": 10000, "ANNONCEMENT_PLACEHOLDER": 10000,
} }
@ -344,19 +344,19 @@ var HomeScreenTodoTypeRevMap = map[HomeScreenTodoType]string{
2: "PROOF", 2: "PROOF",
3: "DEVICE", 3: "DEVICE",
4: "FOLLOW", 4: "FOLLOW",
5: "CHAT",
6: "PAPERKEY", 6: "PAPERKEY",
7: "TEAM", 7: "TEAM",
8: "FOLDER", 8: "FOLDER",
9: "GIT_REPO", 9: "GIT_REPO",
10: "TEAM_SHOWCASE", 10: "TEAM_SHOWCASE",
11: "AVATAR_USER",
12: "AVATAR_TEAM", 12: "AVATAR_TEAM",
18: "ADD_PHONE_NUMBER", 18: "ADD_PHONE_NUMBER",
19: "VERIFY_ALL_PHONE_NUMBER", 19: "VERIFY_ALL_PHONE_NUMBER",
20: "VERIFY_ALL_EMAIL", 20: "VERIFY_ALL_EMAIL",
21: "LEGACY_EMAIL_VISIBILITY", 21: "LEGACY_EMAIL_VISIBILITY",
22: "ADD_EMAIL", 22: "ADD_EMAIL",
23: "AVATAR_USER",
24: "CHAT",
10000: "ANNONCEMENT_PLACEHOLDER", 10000: "ANNONCEMENT_PLACEHOLDER",
} }

View File

@ -1,4 +1,4 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/home_ui.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/home_ui.avdl
package keybase1 package keybase1

View File

@ -1,5 +1,5 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/identify.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/identify.avdl
package keybase1 package keybase1

View File

@ -1,4 +1,4 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/identify3.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/identify3.avdl
package keybase1 package keybase1

View File

@ -1,5 +1,5 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/identify3_common.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/identify3_common.avdl
package keybase1 package keybase1

View File

@ -1,5 +1,5 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/identify3_ui.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/identify3_ui.avdl
package keybase1 package keybase1

View File

@ -1,5 +1,5 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/identify_common.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/identify_common.avdl
package keybase1 package keybase1

View File

@ -1,5 +1,5 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/identify_ui.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/identify_ui.avdl
package keybase1 package keybase1

View File

@ -1,4 +1,4 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/implicit_team_migration.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/implicit_team_migration.avdl
package keybase1 package keybase1

View File

@ -1,5 +1,5 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/incoming-share.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/incoming-share.avdl
package keybase1 package keybase1
@ -41,8 +41,8 @@ func (e IncomingShareType) String() string {
type IncomingShareItem struct { type IncomingShareItem struct {
Type IncomingShareType `codec:"type" json:"type"` Type IncomingShareType `codec:"type" json:"type"`
OriginalPath string `codec:"originalPath" json:"originalPath"` OriginalPath *string `codec:"originalPath,omitempty" json:"originalPath,omitempty"`
OriginalSize int `codec:"originalSize" json:"originalSize"` OriginalSize *int `codec:"originalSize,omitempty" json:"originalSize,omitempty"`
ScaledPath *string `codec:"scaledPath,omitempty" json:"scaledPath,omitempty"` ScaledPath *string `codec:"scaledPath,omitempty" json:"scaledPath,omitempty"`
ScaledSize *int `codec:"scaledSize,omitempty" json:"scaledSize,omitempty"` ScaledSize *int `codec:"scaledSize,omitempty" json:"scaledSize,omitempty"`
ThumbnailPath *string `codec:"thumbnailPath,omitempty" json:"thumbnailPath,omitempty"` ThumbnailPath *string `codec:"thumbnailPath,omitempty" json:"thumbnailPath,omitempty"`
@ -52,8 +52,20 @@ type IncomingShareItem struct {
func (o IncomingShareItem) DeepCopy() IncomingShareItem { func (o IncomingShareItem) DeepCopy() IncomingShareItem {
return IncomingShareItem{ return IncomingShareItem{
Type: o.Type.DeepCopy(), Type: o.Type.DeepCopy(),
OriginalPath: o.OriginalPath, OriginalPath: (func(x *string) *string {
OriginalSize: o.OriginalSize, if x == nil {
return nil
}
tmp := (*x)
return &tmp
})(o.OriginalPath),
OriginalSize: (func(x *int) *int {
if x == nil {
return nil
}
tmp := (*x)
return &tmp
})(o.OriginalSize),
ScaledPath: (func(x *string) *string { ScaledPath: (func(x *string) *string {
if x == nil { if x == nil {
return nil return nil

View File

@ -1,5 +1,5 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/install.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/install.avdl
package keybase1 package keybase1

View File

@ -1,5 +1,5 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/invite_friends.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/invite_friends.avdl
package keybase1 package keybase1
@ -8,6 +8,7 @@ type InviteCounts struct {
PercentageChange float64 `codec:"percentageChange" json:"percentageChange"` PercentageChange float64 `codec:"percentageChange" json:"percentageChange"`
ShowNumInvites bool `codec:"showNumInvites" json:"showNumInvites"` ShowNumInvites bool `codec:"showNumInvites" json:"showNumInvites"`
ShowFire bool `codec:"showFire" json:"showFire"` ShowFire bool `codec:"showFire" json:"showFire"`
TooltipMarkdown string `codec:"tooltipMarkdown" json:"tooltipMarkdown"`
} }
func (o InviteCounts) DeepCopy() InviteCounts { func (o InviteCounts) DeepCopy() InviteCounts {
@ -16,6 +17,7 @@ func (o InviteCounts) DeepCopy() InviteCounts {
PercentageChange: o.PercentageChange, PercentageChange: o.PercentageChange,
ShowNumInvites: o.ShowNumInvites, ShowNumInvites: o.ShowNumInvites,
ShowFire: o.ShowFire, ShowFire: o.ShowFire,
TooltipMarkdown: o.TooltipMarkdown,
} }
} }

View File

@ -1,5 +1,5 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/kbfs.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/kbfs.avdl
package keybase1 package keybase1

View File

@ -1,5 +1,5 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/kbfs_common.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/kbfs_common.avdl
package keybase1 package keybase1

View File

@ -1,5 +1,5 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/kbfs_git.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/kbfs_git.avdl
package keybase1 package keybase1

View File

@ -1,4 +1,4 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/kbfsmount.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/kbfsmount.avdl
package keybase1 package keybase1

View File

@ -1,5 +1,5 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/kex2provisionee.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/kex2provisionee.avdl
package keybase1 package keybase1

View File

@ -1,5 +1,5 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/kex2provisionee2.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/kex2provisionee2.avdl
package keybase1 package keybase1

View File

@ -1,4 +1,4 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/kex2provisioner.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/kex2provisioner.avdl
package keybase1 package keybase1

View File

@ -1,5 +1,5 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/kvstore.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/kvstore.avdl
package keybase1 package keybase1

View File

@ -1,4 +1,4 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/log.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/log.avdl
package keybase1 package keybase1

View File

@ -1,4 +1,4 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/log_ui.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/log_ui.avdl
package keybase1 package keybase1

View File

@ -1,5 +1,5 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/login.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/login.avdl
package keybase1 package keybase1

View File

@ -1,5 +1,5 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/login_ui.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/login_ui.avdl
package keybase1 package keybase1

View File

@ -1,4 +1,4 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/logsend.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/logsend.avdl
package keybase1 package keybase1

View File

@ -1,5 +1,5 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/merkle.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/merkle.avdl
package keybase1 package keybase1

View File

@ -1,5 +1,5 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/merkle_store.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/merkle_store.avdl
package keybase1 package keybase1

View File

@ -1,5 +1,5 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/metadata.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/metadata.avdl
package keybase1 package keybase1

View File

@ -1,5 +1,5 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/metadata_update.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/metadata_update.avdl
package keybase1 package keybase1

View File

@ -1,5 +1,5 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/network_stats.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/network_stats.avdl
package keybase1 package keybase1

View File

@ -1,4 +1,4 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/notify_app.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/notify_app.avdl
package keybase1 package keybase1

View File

@ -1,4 +1,4 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/notify_audit.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/notify_audit.avdl
package keybase1 package keybase1

View File

@ -1,5 +1,5 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/notify_badges.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/notify_badges.avdl
package keybase1 package keybase1

View File

@ -1,4 +1,4 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/notify_can_user_perform.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/notify_can_user_perform.avdl
package keybase1 package keybase1

View File

@ -1,5 +1,5 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/notify_ctl.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/notify_ctl.avdl
package keybase1 package keybase1
@ -35,6 +35,7 @@ type NotificationChannels struct {
Runtimestats bool `codec:"runtimestats" json:"runtimestats"` Runtimestats bool `codec:"runtimestats" json:"runtimestats"`
FeaturedBots bool `codec:"featuredBots" json:"featuredBots"` FeaturedBots bool `codec:"featuredBots" json:"featuredBots"`
Saltpack bool `codec:"saltpack" json:"saltpack"` Saltpack bool `codec:"saltpack" json:"saltpack"`
AllowChatNotifySkips bool `codec:"allowChatNotifySkips" json:"allowChatNotifySkips"`
} }
func (o NotificationChannels) DeepCopy() NotificationChannels { func (o NotificationChannels) DeepCopy() NotificationChannels {
@ -70,5 +71,6 @@ func (o NotificationChannels) DeepCopy() NotificationChannels {
Runtimestats: o.Runtimestats, Runtimestats: o.Runtimestats,
FeaturedBots: o.FeaturedBots, FeaturedBots: o.FeaturedBots,
Saltpack: o.Saltpack, Saltpack: o.Saltpack,
AllowChatNotifySkips: o.AllowChatNotifySkips,
} }
} }

View File

@ -1,4 +1,4 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/notify_device_clone.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/notify_device_clone.avdl
package keybase1 package keybase1

View File

@ -1,4 +1,4 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/notify_email.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/notify_email.avdl
package keybase1 package keybase1

View File

@ -1,4 +1,4 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/notify_ephemeral.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/notify_ephemeral.avdl
package keybase1 package keybase1

View File

@ -1,4 +1,4 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/notify_favorites.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/notify_favorites.avdl
package keybase1 package keybase1

View File

@ -1,4 +1,4 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/notify_featuredbots.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/notify_featuredbots.avdl
package keybase1 package keybase1

View File

@ -1,4 +1,4 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/notify_fs.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/notify_fs.avdl
package keybase1 package keybase1

View File

@ -1,4 +1,4 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/notify_fs_request.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/notify_fs_request.avdl
package keybase1 package keybase1

View File

@ -1,4 +1,4 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/notify_invite_friends.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/notify_invite_friends.avdl
package keybase1 package keybase1

View File

@ -1,4 +1,4 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/notify_keyfamily.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/notify_keyfamily.avdl
package keybase1 package keybase1

View File

@ -1,4 +1,4 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/notify_paperkey.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/notify_paperkey.avdl
package keybase1 package keybase1

View File

@ -1,4 +1,4 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/notify_pgp.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/notify_pgp.avdl
package keybase1 package keybase1

View File

@ -1,4 +1,4 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/notify_phone.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/notify_phone.avdl
package keybase1 package keybase1

View File

@ -1,5 +1,5 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler) // Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../client/protocol/avdl/keybase1/notify_runtimestats.avdl // Input file: ../../../../../../client/protocol/avdl/keybase1/notify_runtimestats.avdl
package keybase1 package keybase1

Some files were not shown because too many files have changed in this diff Show More