github.com/keybase/client/go@v0.0.0-20241007131713-f10651d043c8/protocol/keybase1/identify_ui.go (about)

     1  // Auto-generated to Go types and interfaces using avdl-compiler v1.4.10 (https://github.com/keybase/node-avdl-compiler)
     2  //   Input file: avdl/keybase1/identify_ui.avdl
     3  
     4  package keybase1
     5  
     6  import (
     7  	"fmt"
     8  	"github.com/keybase/go-framed-msgpack-rpc/rpc"
     9  	context "golang.org/x/net/context"
    10  	"time"
    11  )
    12  
    13  type ProofResult struct {
    14  	State  ProofState  `codec:"state" json:"state"`
    15  	Status ProofStatus `codec:"status" json:"status"`
    16  	Desc   string      `codec:"desc" json:"desc"`
    17  }
    18  
    19  func (o ProofResult) DeepCopy() ProofResult {
    20  	return ProofResult{
    21  		State:  o.State.DeepCopy(),
    22  		Status: o.Status.DeepCopy(),
    23  		Desc:   o.Desc,
    24  	}
    25  }
    26  
    27  type IdentifyRow struct {
    28  	RowId     int         `codec:"rowId" json:"rowId"`
    29  	Proof     RemoteProof `codec:"proof" json:"proof"`
    30  	TrackDiff *TrackDiff  `codec:"trackDiff,omitempty" json:"trackDiff,omitempty"`
    31  }
    32  
    33  func (o IdentifyRow) DeepCopy() IdentifyRow {
    34  	return IdentifyRow{
    35  		RowId: o.RowId,
    36  		Proof: o.Proof.DeepCopy(),
    37  		TrackDiff: (func(x *TrackDiff) *TrackDiff {
    38  			if x == nil {
    39  				return nil
    40  			}
    41  			tmp := (*x).DeepCopy()
    42  			return &tmp
    43  		})(o.TrackDiff),
    44  	}
    45  }
    46  
    47  type IdentifyKey struct {
    48  	PGPFingerprint []byte     `codec:"pgpFingerprint" json:"pgpFingerprint"`
    49  	KID            KID        `codec:"KID" json:"KID"`
    50  	TrackDiff      *TrackDiff `codec:"trackDiff,omitempty" json:"trackDiff,omitempty"`
    51  	BreaksTracking bool       `codec:"breaksTracking" json:"breaksTracking"`
    52  	SigID          SigID      `codec:"sigID" json:"sigID"`
    53  }
    54  
    55  func (o IdentifyKey) DeepCopy() IdentifyKey {
    56  	return IdentifyKey{
    57  		PGPFingerprint: (func(x []byte) []byte {
    58  			if x == nil {
    59  				return nil
    60  			}
    61  			return append([]byte{}, x...)
    62  		})(o.PGPFingerprint),
    63  		KID: o.KID.DeepCopy(),
    64  		TrackDiff: (func(x *TrackDiff) *TrackDiff {
    65  			if x == nil {
    66  				return nil
    67  			}
    68  			tmp := (*x).DeepCopy()
    69  			return &tmp
    70  		})(o.TrackDiff),
    71  		BreaksTracking: o.BreaksTracking,
    72  		SigID:          o.SigID.DeepCopy(),
    73  	}
    74  }
    75  
    76  type Cryptocurrency struct {
    77  	RowId   int    `codec:"rowId" json:"rowId"`
    78  	Pkhash  []byte `codec:"pkhash" json:"pkhash"`
    79  	Address string `codec:"address" json:"address"`
    80  	SigID   SigID  `codec:"sigID" json:"sigID"`
    81  	Type    string `codec:"type" json:"type"`
    82  	Family  string `codec:"family" json:"family"`
    83  }
    84  
    85  func (o Cryptocurrency) DeepCopy() Cryptocurrency {
    86  	return Cryptocurrency{
    87  		RowId: o.RowId,
    88  		Pkhash: (func(x []byte) []byte {
    89  			if x == nil {
    90  				return nil
    91  			}
    92  			return append([]byte{}, x...)
    93  		})(o.Pkhash),
    94  		Address: o.Address,
    95  		SigID:   o.SigID.DeepCopy(),
    96  		Type:    o.Type,
    97  		Family:  o.Family,
    98  	}
    99  }
   100  
   101  type StellarAccount struct {
   102  	AccountID         string `codec:"accountID" json:"accountID"`
   103  	FederationAddress string `codec:"federationAddress" json:"federationAddress"`
   104  	SigID             SigID  `codec:"sigID" json:"sigID"`
   105  	Hidden            bool   `codec:"hidden" json:"hidden"`
   106  }
   107  
   108  func (o StellarAccount) DeepCopy() StellarAccount {
   109  	return StellarAccount{
   110  		AccountID:         o.AccountID,
   111  		FederationAddress: o.FederationAddress,
   112  		SigID:             o.SigID.DeepCopy(),
   113  		Hidden:            o.Hidden,
   114  	}
   115  }
   116  
   117  type RevokedProof struct {
   118  	Proof   RemoteProof `codec:"proof" json:"proof"`
   119  	Diff    TrackDiff   `codec:"diff" json:"diff"`
   120  	Snoozed bool        `codec:"snoozed" json:"snoozed"`
   121  }
   122  
   123  func (o RevokedProof) DeepCopy() RevokedProof {
   124  	return RevokedProof{
   125  		Proof:   o.Proof.DeepCopy(),
   126  		Diff:    o.Diff.DeepCopy(),
   127  		Snoozed: o.Snoozed,
   128  	}
   129  }
   130  
   131  type Identity struct {
   132  	Status          *Status          `codec:"status,omitempty" json:"status,omitempty"`
   133  	WhenLastTracked Time             `codec:"whenLastTracked" json:"whenLastTracked"`
   134  	Proofs          []IdentifyRow    `codec:"proofs" json:"proofs"`
   135  	Cryptocurrency  []Cryptocurrency `codec:"cryptocurrency" json:"cryptocurrency"`
   136  	Revoked         []TrackDiff      `codec:"revoked" json:"revoked"`
   137  	RevokedDetails  []RevokedProof   `codec:"revokedDetails" json:"revokedDetails"`
   138  	BreaksTracking  bool             `codec:"breaksTracking" json:"breaksTracking"`
   139  }
   140  
   141  func (o Identity) DeepCopy() Identity {
   142  	return Identity{
   143  		Status: (func(x *Status) *Status {
   144  			if x == nil {
   145  				return nil
   146  			}
   147  			tmp := (*x).DeepCopy()
   148  			return &tmp
   149  		})(o.Status),
   150  		WhenLastTracked: o.WhenLastTracked.DeepCopy(),
   151  		Proofs: (func(x []IdentifyRow) []IdentifyRow {
   152  			if x == nil {
   153  				return nil
   154  			}
   155  			ret := make([]IdentifyRow, len(x))
   156  			for i, v := range x {
   157  				vCopy := v.DeepCopy()
   158  				ret[i] = vCopy
   159  			}
   160  			return ret
   161  		})(o.Proofs),
   162  		Cryptocurrency: (func(x []Cryptocurrency) []Cryptocurrency {
   163  			if x == nil {
   164  				return nil
   165  			}
   166  			ret := make([]Cryptocurrency, len(x))
   167  			for i, v := range x {
   168  				vCopy := v.DeepCopy()
   169  				ret[i] = vCopy
   170  			}
   171  			return ret
   172  		})(o.Cryptocurrency),
   173  		Revoked: (func(x []TrackDiff) []TrackDiff {
   174  			if x == nil {
   175  				return nil
   176  			}
   177  			ret := make([]TrackDiff, len(x))
   178  			for i, v := range x {
   179  				vCopy := v.DeepCopy()
   180  				ret[i] = vCopy
   181  			}
   182  			return ret
   183  		})(o.Revoked),
   184  		RevokedDetails: (func(x []RevokedProof) []RevokedProof {
   185  			if x == nil {
   186  				return nil
   187  			}
   188  			ret := make([]RevokedProof, len(x))
   189  			for i, v := range x {
   190  				vCopy := v.DeepCopy()
   191  				ret[i] = vCopy
   192  			}
   193  			return ret
   194  		})(o.RevokedDetails),
   195  		BreaksTracking: o.BreaksTracking,
   196  	}
   197  }
   198  
   199  type SigHint struct {
   200  	RemoteId  string `codec:"remoteId" json:"remoteId"`
   201  	HumanUrl  string `codec:"humanUrl" json:"humanUrl"`
   202  	ApiUrl    string `codec:"apiUrl" json:"apiUrl"`
   203  	CheckText string `codec:"checkText" json:"checkText"`
   204  }
   205  
   206  func (o SigHint) DeepCopy() SigHint {
   207  	return SigHint{
   208  		RemoteId:  o.RemoteId,
   209  		HumanUrl:  o.HumanUrl,
   210  		ApiUrl:    o.ApiUrl,
   211  		CheckText: o.CheckText,
   212  	}
   213  }
   214  
   215  type CheckResultFreshness int
   216  
   217  const (
   218  	CheckResultFreshness_FRESH  CheckResultFreshness = 0
   219  	CheckResultFreshness_AGED   CheckResultFreshness = 1
   220  	CheckResultFreshness_RANCID CheckResultFreshness = 2
   221  )
   222  
   223  func (o CheckResultFreshness) DeepCopy() CheckResultFreshness { return o }
   224  
   225  var CheckResultFreshnessMap = map[string]CheckResultFreshness{
   226  	"FRESH":  0,
   227  	"AGED":   1,
   228  	"RANCID": 2,
   229  }
   230  
   231  var CheckResultFreshnessRevMap = map[CheckResultFreshness]string{
   232  	0: "FRESH",
   233  	1: "AGED",
   234  	2: "RANCID",
   235  }
   236  
   237  func (e CheckResultFreshness) String() string {
   238  	if v, ok := CheckResultFreshnessRevMap[e]; ok {
   239  		return v
   240  	}
   241  	return fmt.Sprintf("%v", int(e))
   242  }
   243  
   244  type CheckResult struct {
   245  	ProofResult ProofResult          `codec:"proofResult" json:"proofResult"`
   246  	Time        Time                 `codec:"time" json:"time"`
   247  	Freshness   CheckResultFreshness `codec:"freshness" json:"freshness"`
   248  }
   249  
   250  func (o CheckResult) DeepCopy() CheckResult {
   251  	return CheckResult{
   252  		ProofResult: o.ProofResult.DeepCopy(),
   253  		Time:        o.Time.DeepCopy(),
   254  		Freshness:   o.Freshness.DeepCopy(),
   255  	}
   256  }
   257  
   258  type LinkCheckResult struct {
   259  	ProofId            int          `codec:"proofId" json:"proofId"`
   260  	ProofResult        ProofResult  `codec:"proofResult" json:"proofResult"`
   261  	SnoozedResult      ProofResult  `codec:"snoozedResult" json:"snoozedResult"`
   262  	TorWarning         bool         `codec:"torWarning" json:"torWarning"`
   263  	TmpTrackExpireTime Time         `codec:"tmpTrackExpireTime" json:"tmpTrackExpireTime"`
   264  	Cached             *CheckResult `codec:"cached,omitempty" json:"cached,omitempty"`
   265  	Diff               *TrackDiff   `codec:"diff,omitempty" json:"diff,omitempty"`
   266  	RemoteDiff         *TrackDiff   `codec:"remoteDiff,omitempty" json:"remoteDiff,omitempty"`
   267  	Hint               *SigHint     `codec:"hint,omitempty" json:"hint,omitempty"`
   268  	BreaksTracking     bool         `codec:"breaksTracking" json:"breaksTracking"`
   269  }
   270  
   271  func (o LinkCheckResult) DeepCopy() LinkCheckResult {
   272  	return LinkCheckResult{
   273  		ProofId:            o.ProofId,
   274  		ProofResult:        o.ProofResult.DeepCopy(),
   275  		SnoozedResult:      o.SnoozedResult.DeepCopy(),
   276  		TorWarning:         o.TorWarning,
   277  		TmpTrackExpireTime: o.TmpTrackExpireTime.DeepCopy(),
   278  		Cached: (func(x *CheckResult) *CheckResult {
   279  			if x == nil {
   280  				return nil
   281  			}
   282  			tmp := (*x).DeepCopy()
   283  			return &tmp
   284  		})(o.Cached),
   285  		Diff: (func(x *TrackDiff) *TrackDiff {
   286  			if x == nil {
   287  				return nil
   288  			}
   289  			tmp := (*x).DeepCopy()
   290  			return &tmp
   291  		})(o.Diff),
   292  		RemoteDiff: (func(x *TrackDiff) *TrackDiff {
   293  			if x == nil {
   294  				return nil
   295  			}
   296  			tmp := (*x).DeepCopy()
   297  			return &tmp
   298  		})(o.RemoteDiff),
   299  		Hint: (func(x *SigHint) *SigHint {
   300  			if x == nil {
   301  				return nil
   302  			}
   303  			tmp := (*x).DeepCopy()
   304  			return &tmp
   305  		})(o.Hint),
   306  		BreaksTracking: o.BreaksTracking,
   307  	}
   308  }
   309  
   310  type UserTeamShowcase struct {
   311  	FqName          string   `codec:"fqName" json:"fq_name"`
   312  	Open            bool     `codec:"open" json:"open"`
   313  	TeamIsShowcased bool     `codec:"teamIsShowcased" json:"team_is_showcased"`
   314  	Description     string   `codec:"description" json:"description"`
   315  	Role            TeamRole `codec:"role" json:"role"`
   316  	PublicAdmins    []string `codec:"publicAdmins" json:"public_admins"`
   317  	NumMembers      int      `codec:"numMembers" json:"num_members"`
   318  }
   319  
   320  func (o UserTeamShowcase) DeepCopy() UserTeamShowcase {
   321  	return UserTeamShowcase{
   322  		FqName:          o.FqName,
   323  		Open:            o.Open,
   324  		TeamIsShowcased: o.TeamIsShowcased,
   325  		Description:     o.Description,
   326  		Role:            o.Role.DeepCopy(),
   327  		PublicAdmins: (func(x []string) []string {
   328  			if x == nil {
   329  				return nil
   330  			}
   331  			ret := make([]string, len(x))
   332  			for i, v := range x {
   333  				vCopy := v
   334  				ret[i] = vCopy
   335  			}
   336  			return ret
   337  		})(o.PublicAdmins),
   338  		NumMembers: o.NumMembers,
   339  	}
   340  }
   341  
   342  type UserCard struct {
   343  	UnverifiedNumFollowing int                `codec:"unverifiedNumFollowing" json:"unverifiedNumFollowing"`
   344  	UnverifiedNumFollowers int                `codec:"unverifiedNumFollowers" json:"unverifiedNumFollowers"`
   345  	Uid                    UID                `codec:"uid" json:"uid"`
   346  	FullName               string             `codec:"fullName" json:"fullName"`
   347  	Location               string             `codec:"location" json:"location"`
   348  	Bio                    string             `codec:"bio" json:"bio"`
   349  	BioDecorated           string             `codec:"bioDecorated" json:"bioDecorated"`
   350  	Website                string             `codec:"website" json:"website"`
   351  	Twitter                string             `codec:"twitter" json:"twitter"`
   352  	TeamShowcase           []UserTeamShowcase `codec:"teamShowcase" json:"teamShowcase"`
   353  	RegisteredForAirdrop   bool               `codec:"registeredForAirdrop" json:"registeredForAirdrop"`
   354  	StellarHidden          bool               `codec:"stellarHidden" json:"stellarHidden"`
   355  	Blocked                bool               `codec:"blocked" json:"blocked"`
   356  	HidFromFollowers       bool               `codec:"hidFromFollowers" json:"hidFromFollowers"`
   357  }
   358  
   359  func (o UserCard) DeepCopy() UserCard {
   360  	return UserCard{
   361  		UnverifiedNumFollowing: o.UnverifiedNumFollowing,
   362  		UnverifiedNumFollowers: o.UnverifiedNumFollowers,
   363  		Uid:                    o.Uid.DeepCopy(),
   364  		FullName:               o.FullName,
   365  		Location:               o.Location,
   366  		Bio:                    o.Bio,
   367  		BioDecorated:           o.BioDecorated,
   368  		Website:                o.Website,
   369  		Twitter:                o.Twitter,
   370  		TeamShowcase: (func(x []UserTeamShowcase) []UserTeamShowcase {
   371  			if x == nil {
   372  				return nil
   373  			}
   374  			ret := make([]UserTeamShowcase, len(x))
   375  			for i, v := range x {
   376  				vCopy := v.DeepCopy()
   377  				ret[i] = vCopy
   378  			}
   379  			return ret
   380  		})(o.TeamShowcase),
   381  		RegisteredForAirdrop: o.RegisteredForAirdrop,
   382  		StellarHidden:        o.StellarHidden,
   383  		Blocked:              o.Blocked,
   384  		HidFromFollowers:     o.HidFromFollowers,
   385  	}
   386  }
   387  
   388  type ConfirmResult struct {
   389  	IdentityConfirmed bool `codec:"identityConfirmed" json:"identityConfirmed"`
   390  	RemoteConfirmed   bool `codec:"remoteConfirmed" json:"remoteConfirmed"`
   391  	ExpiringLocal     bool `codec:"expiringLocal" json:"expiringLocal"`
   392  	AutoConfirmed     bool `codec:"autoConfirmed" json:"autoConfirmed"`
   393  }
   394  
   395  func (o ConfirmResult) DeepCopy() ConfirmResult {
   396  	return ConfirmResult{
   397  		IdentityConfirmed: o.IdentityConfirmed,
   398  		RemoteConfirmed:   o.RemoteConfirmed,
   399  		ExpiringLocal:     o.ExpiringLocal,
   400  		AutoConfirmed:     o.AutoConfirmed,
   401  	}
   402  }
   403  
   404  type DismissReasonType int
   405  
   406  const (
   407  	DismissReasonType_NONE              DismissReasonType = 0
   408  	DismissReasonType_HANDLED_ELSEWHERE DismissReasonType = 1
   409  )
   410  
   411  func (o DismissReasonType) DeepCopy() DismissReasonType { return o }
   412  
   413  var DismissReasonTypeMap = map[string]DismissReasonType{
   414  	"NONE":              0,
   415  	"HANDLED_ELSEWHERE": 1,
   416  }
   417  
   418  var DismissReasonTypeRevMap = map[DismissReasonType]string{
   419  	0: "NONE",
   420  	1: "HANDLED_ELSEWHERE",
   421  }
   422  
   423  func (e DismissReasonType) String() string {
   424  	if v, ok := DismissReasonTypeRevMap[e]; ok {
   425  		return v
   426  	}
   427  	return fmt.Sprintf("%v", int(e))
   428  }
   429  
   430  type DismissReason struct {
   431  	Type     DismissReasonType `codec:"type" json:"type"`
   432  	Reason   string            `codec:"reason" json:"reason"`
   433  	Resource string            `codec:"resource" json:"resource"`
   434  }
   435  
   436  func (o DismissReason) DeepCopy() DismissReason {
   437  	return DismissReason{
   438  		Type:     o.Type.DeepCopy(),
   439  		Reason:   o.Reason,
   440  		Resource: o.Resource,
   441  	}
   442  }
   443  
   444  type DisplayTLFCreateWithInviteArg struct {
   445  	SessionID       int             `codec:"sessionID" json:"sessionID"`
   446  	FolderName      string          `codec:"folderName" json:"folderName"`
   447  	IsPrivate       bool            `codec:"isPrivate" json:"isPrivate"`
   448  	Assertion       string          `codec:"assertion" json:"assertion"`
   449  	SocialAssertion SocialAssertion `codec:"socialAssertion" json:"socialAssertion"`
   450  	InviteLink      string          `codec:"inviteLink" json:"inviteLink"`
   451  	Throttled       bool            `codec:"throttled" json:"throttled"`
   452  }
   453  
   454  type DelegateIdentifyUIArg struct {
   455  }
   456  
   457  type StartArg struct {
   458  	SessionID    int            `codec:"sessionID" json:"sessionID"`
   459  	Username     string         `codec:"username" json:"username"`
   460  	Reason       IdentifyReason `codec:"reason" json:"reason"`
   461  	ForceDisplay bool           `codec:"forceDisplay" json:"forceDisplay"`
   462  }
   463  
   464  type DisplayKeyArg struct {
   465  	SessionID int         `codec:"sessionID" json:"sessionID"`
   466  	Key       IdentifyKey `codec:"key" json:"key"`
   467  }
   468  
   469  type ReportLastTrackArg struct {
   470  	SessionID int           `codec:"sessionID" json:"sessionID"`
   471  	Track     *TrackSummary `codec:"track,omitempty" json:"track,omitempty"`
   472  }
   473  
   474  type LaunchNetworkChecksArg struct {
   475  	SessionID int      `codec:"sessionID" json:"sessionID"`
   476  	Identity  Identity `codec:"identity" json:"identity"`
   477  	User      User     `codec:"user" json:"user"`
   478  }
   479  
   480  type DisplayTrackStatementArg struct {
   481  	SessionID int    `codec:"sessionID" json:"sessionID"`
   482  	Stmt      string `codec:"stmt" json:"stmt"`
   483  }
   484  
   485  type FinishWebProofCheckArg struct {
   486  	SessionID int             `codec:"sessionID" json:"sessionID"`
   487  	Rp        RemoteProof     `codec:"rp" json:"rp"`
   488  	Lcr       LinkCheckResult `codec:"lcr" json:"lcr"`
   489  }
   490  
   491  type FinishSocialProofCheckArg struct {
   492  	SessionID int             `codec:"sessionID" json:"sessionID"`
   493  	Rp        RemoteProof     `codec:"rp" json:"rp"`
   494  	Lcr       LinkCheckResult `codec:"lcr" json:"lcr"`
   495  }
   496  
   497  type DisplayCryptocurrencyArg struct {
   498  	SessionID int            `codec:"sessionID" json:"sessionID"`
   499  	C         Cryptocurrency `codec:"c" json:"c"`
   500  }
   501  
   502  type DisplayStellarAccountArg struct {
   503  	SessionID int            `codec:"sessionID" json:"sessionID"`
   504  	A         StellarAccount `codec:"a" json:"a"`
   505  }
   506  
   507  type ReportTrackTokenArg struct {
   508  	SessionID  int        `codec:"sessionID" json:"sessionID"`
   509  	TrackToken TrackToken `codec:"trackToken" json:"trackToken"`
   510  }
   511  
   512  type DisplayUserCardArg struct {
   513  	SessionID int      `codec:"sessionID" json:"sessionID"`
   514  	Card      UserCard `codec:"card" json:"card"`
   515  }
   516  
   517  type ConfirmArg struct {
   518  	SessionID int             `codec:"sessionID" json:"sessionID"`
   519  	Outcome   IdentifyOutcome `codec:"outcome" json:"outcome"`
   520  }
   521  
   522  type CancelArg struct {
   523  	SessionID int `codec:"sessionID" json:"sessionID"`
   524  }
   525  
   526  type FinishArg struct {
   527  	SessionID int `codec:"sessionID" json:"sessionID"`
   528  }
   529  
   530  type DismissArg struct {
   531  	SessionID int           `codec:"sessionID" json:"sessionID"`
   532  	Username  string        `codec:"username" json:"username"`
   533  	Reason    DismissReason `codec:"reason" json:"reason"`
   534  }
   535  
   536  type IdentifyUiInterface interface {
   537  	DisplayTLFCreateWithInvite(context.Context, DisplayTLFCreateWithInviteArg) error
   538  	DelegateIdentifyUI(context.Context) (int, error)
   539  	Start(context.Context, StartArg) error
   540  	DisplayKey(context.Context, DisplayKeyArg) error
   541  	ReportLastTrack(context.Context, ReportLastTrackArg) error
   542  	LaunchNetworkChecks(context.Context, LaunchNetworkChecksArg) error
   543  	DisplayTrackStatement(context.Context, DisplayTrackStatementArg) error
   544  	FinishWebProofCheck(context.Context, FinishWebProofCheckArg) error
   545  	FinishSocialProofCheck(context.Context, FinishSocialProofCheckArg) error
   546  	DisplayCryptocurrency(context.Context, DisplayCryptocurrencyArg) error
   547  	DisplayStellarAccount(context.Context, DisplayStellarAccountArg) error
   548  	ReportTrackToken(context.Context, ReportTrackTokenArg) error
   549  	DisplayUserCard(context.Context, DisplayUserCardArg) error
   550  	Confirm(context.Context, ConfirmArg) (ConfirmResult, error)
   551  	Cancel(context.Context, int) error
   552  	Finish(context.Context, int) error
   553  	Dismiss(context.Context, DismissArg) error
   554  }
   555  
   556  func IdentifyUiProtocol(i IdentifyUiInterface) rpc.Protocol {
   557  	return rpc.Protocol{
   558  		Name: "keybase.1.identifyUi",
   559  		Methods: map[string]rpc.ServeHandlerDescription{
   560  			"displayTLFCreateWithInvite": {
   561  				MakeArg: func() interface{} {
   562  					var ret [1]DisplayTLFCreateWithInviteArg
   563  					return &ret
   564  				},
   565  				Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) {
   566  					typedArgs, ok := args.(*[1]DisplayTLFCreateWithInviteArg)
   567  					if !ok {
   568  						err = rpc.NewTypeError((*[1]DisplayTLFCreateWithInviteArg)(nil), args)
   569  						return
   570  					}
   571  					err = i.DisplayTLFCreateWithInvite(ctx, typedArgs[0])
   572  					return
   573  				},
   574  			},
   575  			"delegateIdentifyUI": {
   576  				MakeArg: func() interface{} {
   577  					var ret [1]DelegateIdentifyUIArg
   578  					return &ret
   579  				},
   580  				Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) {
   581  					ret, err = i.DelegateIdentifyUI(ctx)
   582  					return
   583  				},
   584  			},
   585  			"start": {
   586  				MakeArg: func() interface{} {
   587  					var ret [1]StartArg
   588  					return &ret
   589  				},
   590  				Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) {
   591  					typedArgs, ok := args.(*[1]StartArg)
   592  					if !ok {
   593  						err = rpc.NewTypeError((*[1]StartArg)(nil), args)
   594  						return
   595  					}
   596  					err = i.Start(ctx, typedArgs[0])
   597  					return
   598  				},
   599  			},
   600  			"displayKey": {
   601  				MakeArg: func() interface{} {
   602  					var ret [1]DisplayKeyArg
   603  					return &ret
   604  				},
   605  				Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) {
   606  					typedArgs, ok := args.(*[1]DisplayKeyArg)
   607  					if !ok {
   608  						err = rpc.NewTypeError((*[1]DisplayKeyArg)(nil), args)
   609  						return
   610  					}
   611  					err = i.DisplayKey(ctx, typedArgs[0])
   612  					return
   613  				},
   614  			},
   615  			"reportLastTrack": {
   616  				MakeArg: func() interface{} {
   617  					var ret [1]ReportLastTrackArg
   618  					return &ret
   619  				},
   620  				Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) {
   621  					typedArgs, ok := args.(*[1]ReportLastTrackArg)
   622  					if !ok {
   623  						err = rpc.NewTypeError((*[1]ReportLastTrackArg)(nil), args)
   624  						return
   625  					}
   626  					err = i.ReportLastTrack(ctx, typedArgs[0])
   627  					return
   628  				},
   629  			},
   630  			"launchNetworkChecks": {
   631  				MakeArg: func() interface{} {
   632  					var ret [1]LaunchNetworkChecksArg
   633  					return &ret
   634  				},
   635  				Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) {
   636  					typedArgs, ok := args.(*[1]LaunchNetworkChecksArg)
   637  					if !ok {
   638  						err = rpc.NewTypeError((*[1]LaunchNetworkChecksArg)(nil), args)
   639  						return
   640  					}
   641  					err = i.LaunchNetworkChecks(ctx, typedArgs[0])
   642  					return
   643  				},
   644  			},
   645  			"displayTrackStatement": {
   646  				MakeArg: func() interface{} {
   647  					var ret [1]DisplayTrackStatementArg
   648  					return &ret
   649  				},
   650  				Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) {
   651  					typedArgs, ok := args.(*[1]DisplayTrackStatementArg)
   652  					if !ok {
   653  						err = rpc.NewTypeError((*[1]DisplayTrackStatementArg)(nil), args)
   654  						return
   655  					}
   656  					err = i.DisplayTrackStatement(ctx, typedArgs[0])
   657  					return
   658  				},
   659  			},
   660  			"finishWebProofCheck": {
   661  				MakeArg: func() interface{} {
   662  					var ret [1]FinishWebProofCheckArg
   663  					return &ret
   664  				},
   665  				Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) {
   666  					typedArgs, ok := args.(*[1]FinishWebProofCheckArg)
   667  					if !ok {
   668  						err = rpc.NewTypeError((*[1]FinishWebProofCheckArg)(nil), args)
   669  						return
   670  					}
   671  					err = i.FinishWebProofCheck(ctx, typedArgs[0])
   672  					return
   673  				},
   674  			},
   675  			"finishSocialProofCheck": {
   676  				MakeArg: func() interface{} {
   677  					var ret [1]FinishSocialProofCheckArg
   678  					return &ret
   679  				},
   680  				Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) {
   681  					typedArgs, ok := args.(*[1]FinishSocialProofCheckArg)
   682  					if !ok {
   683  						err = rpc.NewTypeError((*[1]FinishSocialProofCheckArg)(nil), args)
   684  						return
   685  					}
   686  					err = i.FinishSocialProofCheck(ctx, typedArgs[0])
   687  					return
   688  				},
   689  			},
   690  			"displayCryptocurrency": {
   691  				MakeArg: func() interface{} {
   692  					var ret [1]DisplayCryptocurrencyArg
   693  					return &ret
   694  				},
   695  				Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) {
   696  					typedArgs, ok := args.(*[1]DisplayCryptocurrencyArg)
   697  					if !ok {
   698  						err = rpc.NewTypeError((*[1]DisplayCryptocurrencyArg)(nil), args)
   699  						return
   700  					}
   701  					err = i.DisplayCryptocurrency(ctx, typedArgs[0])
   702  					return
   703  				},
   704  			},
   705  			"displayStellarAccount": {
   706  				MakeArg: func() interface{} {
   707  					var ret [1]DisplayStellarAccountArg
   708  					return &ret
   709  				},
   710  				Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) {
   711  					typedArgs, ok := args.(*[1]DisplayStellarAccountArg)
   712  					if !ok {
   713  						err = rpc.NewTypeError((*[1]DisplayStellarAccountArg)(nil), args)
   714  						return
   715  					}
   716  					err = i.DisplayStellarAccount(ctx, typedArgs[0])
   717  					return
   718  				},
   719  			},
   720  			"reportTrackToken": {
   721  				MakeArg: func() interface{} {
   722  					var ret [1]ReportTrackTokenArg
   723  					return &ret
   724  				},
   725  				Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) {
   726  					typedArgs, ok := args.(*[1]ReportTrackTokenArg)
   727  					if !ok {
   728  						err = rpc.NewTypeError((*[1]ReportTrackTokenArg)(nil), args)
   729  						return
   730  					}
   731  					err = i.ReportTrackToken(ctx, typedArgs[0])
   732  					return
   733  				},
   734  			},
   735  			"displayUserCard": {
   736  				MakeArg: func() interface{} {
   737  					var ret [1]DisplayUserCardArg
   738  					return &ret
   739  				},
   740  				Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) {
   741  					typedArgs, ok := args.(*[1]DisplayUserCardArg)
   742  					if !ok {
   743  						err = rpc.NewTypeError((*[1]DisplayUserCardArg)(nil), args)
   744  						return
   745  					}
   746  					err = i.DisplayUserCard(ctx, typedArgs[0])
   747  					return
   748  				},
   749  			},
   750  			"confirm": {
   751  				MakeArg: func() interface{} {
   752  					var ret [1]ConfirmArg
   753  					return &ret
   754  				},
   755  				Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) {
   756  					typedArgs, ok := args.(*[1]ConfirmArg)
   757  					if !ok {
   758  						err = rpc.NewTypeError((*[1]ConfirmArg)(nil), args)
   759  						return
   760  					}
   761  					ret, err = i.Confirm(ctx, typedArgs[0])
   762  					return
   763  				},
   764  			},
   765  			"cancel": {
   766  				MakeArg: func() interface{} {
   767  					var ret [1]CancelArg
   768  					return &ret
   769  				},
   770  				Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) {
   771  					typedArgs, ok := args.(*[1]CancelArg)
   772  					if !ok {
   773  						err = rpc.NewTypeError((*[1]CancelArg)(nil), args)
   774  						return
   775  					}
   776  					err = i.Cancel(ctx, typedArgs[0].SessionID)
   777  					return
   778  				},
   779  			},
   780  			"finish": {
   781  				MakeArg: func() interface{} {
   782  					var ret [1]FinishArg
   783  					return &ret
   784  				},
   785  				Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) {
   786  					typedArgs, ok := args.(*[1]FinishArg)
   787  					if !ok {
   788  						err = rpc.NewTypeError((*[1]FinishArg)(nil), args)
   789  						return
   790  					}
   791  					err = i.Finish(ctx, typedArgs[0].SessionID)
   792  					return
   793  				},
   794  			},
   795  			"dismiss": {
   796  				MakeArg: func() interface{} {
   797  					var ret [1]DismissArg
   798  					return &ret
   799  				},
   800  				Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) {
   801  					typedArgs, ok := args.(*[1]DismissArg)
   802  					if !ok {
   803  						err = rpc.NewTypeError((*[1]DismissArg)(nil), args)
   804  						return
   805  					}
   806  					err = i.Dismiss(ctx, typedArgs[0])
   807  					return
   808  				},
   809  			},
   810  		},
   811  	}
   812  }
   813  
   814  type IdentifyUiClient struct {
   815  	Cli rpc.GenericClient
   816  }
   817  
   818  func (c IdentifyUiClient) DisplayTLFCreateWithInvite(ctx context.Context, __arg DisplayTLFCreateWithInviteArg) (err error) {
   819  	err = c.Cli.Call(ctx, "keybase.1.identifyUi.displayTLFCreateWithInvite", []interface{}{__arg}, nil, 0*time.Millisecond)
   820  	return
   821  }
   822  
   823  func (c IdentifyUiClient) DelegateIdentifyUI(ctx context.Context) (res int, err error) {
   824  	err = c.Cli.Call(ctx, "keybase.1.identifyUi.delegateIdentifyUI", []interface{}{DelegateIdentifyUIArg{}}, &res, 0*time.Millisecond)
   825  	return
   826  }
   827  
   828  func (c IdentifyUiClient) Start(ctx context.Context, __arg StartArg) (err error) {
   829  	err = c.Cli.Call(ctx, "keybase.1.identifyUi.start", []interface{}{__arg}, nil, 0*time.Millisecond)
   830  	return
   831  }
   832  
   833  func (c IdentifyUiClient) DisplayKey(ctx context.Context, __arg DisplayKeyArg) (err error) {
   834  	err = c.Cli.Call(ctx, "keybase.1.identifyUi.displayKey", []interface{}{__arg}, nil, 0*time.Millisecond)
   835  	return
   836  }
   837  
   838  func (c IdentifyUiClient) ReportLastTrack(ctx context.Context, __arg ReportLastTrackArg) (err error) {
   839  	err = c.Cli.Call(ctx, "keybase.1.identifyUi.reportLastTrack", []interface{}{__arg}, nil, 0*time.Millisecond)
   840  	return
   841  }
   842  
   843  func (c IdentifyUiClient) LaunchNetworkChecks(ctx context.Context, __arg LaunchNetworkChecksArg) (err error) {
   844  	err = c.Cli.Call(ctx, "keybase.1.identifyUi.launchNetworkChecks", []interface{}{__arg}, nil, 0*time.Millisecond)
   845  	return
   846  }
   847  
   848  func (c IdentifyUiClient) DisplayTrackStatement(ctx context.Context, __arg DisplayTrackStatementArg) (err error) {
   849  	err = c.Cli.Call(ctx, "keybase.1.identifyUi.displayTrackStatement", []interface{}{__arg}, nil, 0*time.Millisecond)
   850  	return
   851  }
   852  
   853  func (c IdentifyUiClient) FinishWebProofCheck(ctx context.Context, __arg FinishWebProofCheckArg) (err error) {
   854  	err = c.Cli.Call(ctx, "keybase.1.identifyUi.finishWebProofCheck", []interface{}{__arg}, nil, 0*time.Millisecond)
   855  	return
   856  }
   857  
   858  func (c IdentifyUiClient) FinishSocialProofCheck(ctx context.Context, __arg FinishSocialProofCheckArg) (err error) {
   859  	err = c.Cli.Call(ctx, "keybase.1.identifyUi.finishSocialProofCheck", []interface{}{__arg}, nil, 0*time.Millisecond)
   860  	return
   861  }
   862  
   863  func (c IdentifyUiClient) DisplayCryptocurrency(ctx context.Context, __arg DisplayCryptocurrencyArg) (err error) {
   864  	err = c.Cli.Call(ctx, "keybase.1.identifyUi.displayCryptocurrency", []interface{}{__arg}, nil, 0*time.Millisecond)
   865  	return
   866  }
   867  
   868  func (c IdentifyUiClient) DisplayStellarAccount(ctx context.Context, __arg DisplayStellarAccountArg) (err error) {
   869  	err = c.Cli.Call(ctx, "keybase.1.identifyUi.displayStellarAccount", []interface{}{__arg}, nil, 0*time.Millisecond)
   870  	return
   871  }
   872  
   873  func (c IdentifyUiClient) ReportTrackToken(ctx context.Context, __arg ReportTrackTokenArg) (err error) {
   874  	err = c.Cli.Call(ctx, "keybase.1.identifyUi.reportTrackToken", []interface{}{__arg}, nil, 0*time.Millisecond)
   875  	return
   876  }
   877  
   878  func (c IdentifyUiClient) DisplayUserCard(ctx context.Context, __arg DisplayUserCardArg) (err error) {
   879  	err = c.Cli.Call(ctx, "keybase.1.identifyUi.displayUserCard", []interface{}{__arg}, nil, 0*time.Millisecond)
   880  	return
   881  }
   882  
   883  func (c IdentifyUiClient) Confirm(ctx context.Context, __arg ConfirmArg) (res ConfirmResult, err error) {
   884  	err = c.Cli.Call(ctx, "keybase.1.identifyUi.confirm", []interface{}{__arg}, &res, 0*time.Millisecond)
   885  	return
   886  }
   887  
   888  func (c IdentifyUiClient) Cancel(ctx context.Context, sessionID int) (err error) {
   889  	__arg := CancelArg{SessionID: sessionID}
   890  	err = c.Cli.Call(ctx, "keybase.1.identifyUi.cancel", []interface{}{__arg}, nil, 0*time.Millisecond)
   891  	return
   892  }
   893  
   894  func (c IdentifyUiClient) Finish(ctx context.Context, sessionID int) (err error) {
   895  	__arg := FinishArg{SessionID: sessionID}
   896  	err = c.Cli.Call(ctx, "keybase.1.identifyUi.finish", []interface{}{__arg}, nil, 0*time.Millisecond)
   897  	return
   898  }
   899  
   900  func (c IdentifyUiClient) Dismiss(ctx context.Context, __arg DismissArg) (err error) {
   901  	err = c.Cli.Call(ctx, "keybase.1.identifyUi.dismiss", []interface{}{__arg}, nil, 0*time.Millisecond)
   902  	return
   903  }