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