github.com/keybase/client/go@v0.0.0-20240309051027-028f7c731f8b/protocol/keybase1/constants.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/constants.avdl
     3  
     4  package keybase1
     5  
     6  import (
     7  	"fmt"
     8  	"github.com/keybase/go-framed-msgpack-rpc/rpc"
     9  )
    10  
    11  type StatusCode int
    12  
    13  const (
    14  	StatusCode_SCOk                                        StatusCode = 0
    15  	StatusCode_SCInputError                                StatusCode = 100
    16  	StatusCode_SCAssertionParseError                       StatusCode = 101
    17  	StatusCode_SCLoginRequired                             StatusCode = 201
    18  	StatusCode_SCBadSession                                StatusCode = 202
    19  	StatusCode_SCBadLoginUserNotFound                      StatusCode = 203
    20  	StatusCode_SCBadLoginPassword                          StatusCode = 204
    21  	StatusCode_SCNotFound                                  StatusCode = 205
    22  	StatusCode_SCThrottleControl                           StatusCode = 210
    23  	StatusCode_SCDeleted                                   StatusCode = 216
    24  	StatusCode_SCGeneric                                   StatusCode = 218
    25  	StatusCode_SCAlreadyLoggedIn                           StatusCode = 235
    26  	StatusCode_SCExists                                    StatusCode = 230
    27  	StatusCode_SCCanceled                                  StatusCode = 237
    28  	StatusCode_SCInputCanceled                             StatusCode = 239
    29  	StatusCode_SCBadUsername                               StatusCode = 243
    30  	StatusCode_SCOffline                                   StatusCode = 267
    31  	StatusCode_SCReloginRequired                           StatusCode = 274
    32  	StatusCode_SCResolutionFailed                          StatusCode = 275
    33  	StatusCode_SCProfileNotPublic                          StatusCode = 276
    34  	StatusCode_SCIdentifyFailed                            StatusCode = 277
    35  	StatusCode_SCTrackingBroke                             StatusCode = 278
    36  	StatusCode_SCWrongCryptoFormat                         StatusCode = 279
    37  	StatusCode_SCDecryptionError                           StatusCode = 280
    38  	StatusCode_SCInvalidAddress                            StatusCode = 281
    39  	StatusCode_SCWrongCryptoMsgType                        StatusCode = 282
    40  	StatusCode_SCNoSession                                 StatusCode = 283
    41  	StatusCode_SCAccountReset                              StatusCode = 290
    42  	StatusCode_SCIdentifiesFailed                          StatusCode = 295
    43  	StatusCode_SCNoSpaceOnDevice                           StatusCode = 297
    44  	StatusCode_SCMerkleClientError                         StatusCode = 299
    45  	StatusCode_SCMerkleUpdateRoot                          StatusCode = 300
    46  	StatusCode_SCBadEmail                                  StatusCode = 472
    47  	StatusCode_SCRateLimit                                 StatusCode = 602
    48  	StatusCode_SCBadSignupUsernameTaken                    StatusCode = 701
    49  	StatusCode_SCDuplicate                                 StatusCode = 706
    50  	StatusCode_SCBadInvitationCode                         StatusCode = 707
    51  	StatusCode_SCBadSignupUsernameReserved                 StatusCode = 710
    52  	StatusCode_SCBadSignupTeamName                         StatusCode = 711
    53  	StatusCode_SCFeatureFlag                               StatusCode = 712
    54  	StatusCode_SCEmailTaken                                StatusCode = 713
    55  	StatusCode_SCEmailAlreadyAdded                         StatusCode = 714
    56  	StatusCode_SCEmailLimitExceeded                        StatusCode = 715
    57  	StatusCode_SCEmailCannotDeletePrimary                  StatusCode = 716
    58  	StatusCode_SCEmailUnknown                              StatusCode = 717
    59  	StatusCode_SCBotSignupTokenNotFound                    StatusCode = 719
    60  	StatusCode_SCNoUpdate                                  StatusCode = 723
    61  	StatusCode_SCMissingResult                             StatusCode = 801
    62  	StatusCode_SCKeyNotFound                               StatusCode = 901
    63  	StatusCode_SCKeyCorrupted                              StatusCode = 905
    64  	StatusCode_SCKeyInUse                                  StatusCode = 907
    65  	StatusCode_SCKeyBadGen                                 StatusCode = 913
    66  	StatusCode_SCKeyNoSecret                               StatusCode = 914
    67  	StatusCode_SCKeyBadUIDs                                StatusCode = 915
    68  	StatusCode_SCKeyNoActive                               StatusCode = 916
    69  	StatusCode_SCKeyNoSig                                  StatusCode = 917
    70  	StatusCode_SCKeyBadSig                                 StatusCode = 918
    71  	StatusCode_SCKeyBadEldest                              StatusCode = 919
    72  	StatusCode_SCKeyNoEldest                               StatusCode = 920
    73  	StatusCode_SCKeyDuplicateUpdate                        StatusCode = 921
    74  	StatusCode_SCSibkeyAlreadyExists                       StatusCode = 922
    75  	StatusCode_SCDecryptionKeyNotFound                     StatusCode = 924
    76  	StatusCode_SCVerificationKeyNotFound                   StatusCode = 925
    77  	StatusCode_SCKeyNoPGPEncryption                        StatusCode = 927
    78  	StatusCode_SCKeyNoNaClEncryption                       StatusCode = 928
    79  	StatusCode_SCKeySyncedPGPNotFound                      StatusCode = 929
    80  	StatusCode_SCKeyNoMatchingGPG                          StatusCode = 930
    81  	StatusCode_SCKeyRevoked                                StatusCode = 931
    82  	StatusCode_SCSigCannotVerify                           StatusCode = 1002
    83  	StatusCode_SCSigWrongKey                               StatusCode = 1008
    84  	StatusCode_SCSigOldSeqno                               StatusCode = 1010
    85  	StatusCode_SCSigCreationDisallowed                     StatusCode = 1016
    86  	StatusCode_SCSigMissingRatchet                         StatusCode = 1021
    87  	StatusCode_SCSigBadTotalOrder                          StatusCode = 1022
    88  	StatusCode_SCBadTrackSession                           StatusCode = 1301
    89  	StatusCode_SCDeviceBadName                             StatusCode = 1404
    90  	StatusCode_SCDeviceBadStatus                           StatusCode = 1405
    91  	StatusCode_SCDeviceNameInUse                           StatusCode = 1408
    92  	StatusCode_SCDeviceNotFound                            StatusCode = 1409
    93  	StatusCode_SCDeviceMismatch                            StatusCode = 1410
    94  	StatusCode_SCDeviceRequired                            StatusCode = 1411
    95  	StatusCode_SCDevicePrevProvisioned                     StatusCode = 1413
    96  	StatusCode_SCDeviceNoProvision                         StatusCode = 1414
    97  	StatusCode_SCDeviceProvisionViaDevice                  StatusCode = 1415
    98  	StatusCode_SCRevokeCurrentDevice                       StatusCode = 1416
    99  	StatusCode_SCRevokeLastDevice                          StatusCode = 1417
   100  	StatusCode_SCDeviceProvisionOffline                    StatusCode = 1418
   101  	StatusCode_SCRevokeLastDevicePGP                       StatusCode = 1419
   102  	StatusCode_SCStreamExists                              StatusCode = 1501
   103  	StatusCode_SCStreamNotFound                            StatusCode = 1502
   104  	StatusCode_SCStreamWrongKind                           StatusCode = 1503
   105  	StatusCode_SCStreamEOF                                 StatusCode = 1504
   106  	StatusCode_SCStreamUnknown                             StatusCode = 1505
   107  	StatusCode_SCGenericAPIError                           StatusCode = 1600
   108  	StatusCode_SCAPINetworkError                           StatusCode = 1601
   109  	StatusCode_SCTimeout                                   StatusCode = 1602
   110  	StatusCode_SCKBFSClientTimeout                         StatusCode = 1603
   111  	StatusCode_SCProofError                                StatusCode = 1701
   112  	StatusCode_SCIdentificationExpired                     StatusCode = 1702
   113  	StatusCode_SCSelfNotFound                              StatusCode = 1703
   114  	StatusCode_SCBadKexPhrase                              StatusCode = 1704
   115  	StatusCode_SCNoUIDelegation                            StatusCode = 1705
   116  	StatusCode_SCNoUI                                      StatusCode = 1706
   117  	StatusCode_SCGPGUnavailable                            StatusCode = 1707
   118  	StatusCode_SCInvalidVersionError                       StatusCode = 1800
   119  	StatusCode_SCOldVersionError                           StatusCode = 1801
   120  	StatusCode_SCInvalidLocationError                      StatusCode = 1802
   121  	StatusCode_SCServiceStatusError                        StatusCode = 1803
   122  	StatusCode_SCInstallError                              StatusCode = 1804
   123  	StatusCode_SCLoadKextError                             StatusCode = 1810
   124  	StatusCode_SCLoadKextPermError                         StatusCode = 1811
   125  	StatusCode_SCGitInternal                               StatusCode = 2300
   126  	StatusCode_SCGitRepoAlreadyExists                      StatusCode = 2301
   127  	StatusCode_SCGitInvalidRepoName                        StatusCode = 2302
   128  	StatusCode_SCGitCannotDelete                           StatusCode = 2303
   129  	StatusCode_SCGitRepoDoesntExist                        StatusCode = 2304
   130  	StatusCode_SCLoginStateTimeout                         StatusCode = 2400
   131  	StatusCode_SCChatInternal                              StatusCode = 2500
   132  	StatusCode_SCChatRateLimit                             StatusCode = 2501
   133  	StatusCode_SCChatConvExists                            StatusCode = 2502
   134  	StatusCode_SCChatUnknownTLFID                          StatusCode = 2503
   135  	StatusCode_SCChatNotInConv                             StatusCode = 2504
   136  	StatusCode_SCChatBadMsg                                StatusCode = 2505
   137  	StatusCode_SCChatBroadcast                             StatusCode = 2506
   138  	StatusCode_SCChatAlreadySuperseded                     StatusCode = 2507
   139  	StatusCode_SCChatAlreadyDeleted                        StatusCode = 2508
   140  	StatusCode_SCChatTLFFinalized                          StatusCode = 2509
   141  	StatusCode_SCChatCollision                             StatusCode = 2510
   142  	StatusCode_SCIdentifySummaryError                      StatusCode = 2511
   143  	StatusCode_SCNeedSelfRekey                             StatusCode = 2512
   144  	StatusCode_SCNeedOtherRekey                            StatusCode = 2513
   145  	StatusCode_SCChatMessageCollision                      StatusCode = 2514
   146  	StatusCode_SCChatDuplicateMessage                      StatusCode = 2515
   147  	StatusCode_SCChatClientError                           StatusCode = 2516
   148  	StatusCode_SCChatNotInTeam                             StatusCode = 2517
   149  	StatusCode_SCChatStalePreviousState                    StatusCode = 2518
   150  	StatusCode_SCChatEphemeralRetentionPolicyViolatedError StatusCode = 2519
   151  	StatusCode_SCChatUsersAlreadyInConversationError       StatusCode = 2520
   152  	StatusCode_SCChatBadConversationError                  StatusCode = 2521
   153  	StatusCode_SCTeamBadMembership                         StatusCode = 2604
   154  	StatusCode_SCTeamSelfNotOwner                          StatusCode = 2607
   155  	StatusCode_SCTeamNotFound                              StatusCode = 2614
   156  	StatusCode_SCTeamExists                                StatusCode = 2619
   157  	StatusCode_SCTeamReadError                             StatusCode = 2623
   158  	StatusCode_SCTeamWritePermDenied                       StatusCode = 2625
   159  	StatusCode_SCTeamBadGeneration                         StatusCode = 2634
   160  	StatusCode_SCNoOp                                      StatusCode = 2638
   161  	StatusCode_SCTeamInviteBadCancel                       StatusCode = 2645
   162  	StatusCode_SCTeamInviteBadToken                        StatusCode = 2646
   163  	StatusCode_SCTeamInviteCompletionMissing               StatusCode = 2648
   164  	StatusCode_SCTeamBadNameReservedDB                     StatusCode = 2650
   165  	StatusCode_SCTeamTarDuplicate                          StatusCode = 2663
   166  	StatusCode_SCTeamTarNotFound                           StatusCode = 2664
   167  	StatusCode_SCTeamMemberExists                          StatusCode = 2665
   168  	StatusCode_SCTeamNotReleased                           StatusCode = 2666
   169  	StatusCode_SCTeamPermanentlyLeft                       StatusCode = 2667
   170  	StatusCode_SCTeamNeedRootId                            StatusCode = 2668
   171  	StatusCode_SCTeamHasLiveChildren                       StatusCode = 2669
   172  	StatusCode_SCTeamDeleteError                           StatusCode = 2670
   173  	StatusCode_SCTeamBadRootTeam                           StatusCode = 2671
   174  	StatusCode_SCTeamNameConflictsWithUser                 StatusCode = 2672
   175  	StatusCode_SCTeamDeleteNoUpPointer                     StatusCode = 2673
   176  	StatusCode_SCTeamNeedOwner                             StatusCode = 2674
   177  	StatusCode_SCTeamNoOwnerAllowed                        StatusCode = 2675
   178  	StatusCode_SCTeamImplicitNoNonSbs                      StatusCode = 2676
   179  	StatusCode_SCTeamImplicitBadHash                       StatusCode = 2677
   180  	StatusCode_SCTeamImplicitBadName                       StatusCode = 2678
   181  	StatusCode_SCTeamImplicitClash                         StatusCode = 2679
   182  	StatusCode_SCTeamImplicitDuplicate                     StatusCode = 2680
   183  	StatusCode_SCTeamImplicitBadOp                         StatusCode = 2681
   184  	StatusCode_SCTeamImplicitBadRole                       StatusCode = 2682
   185  	StatusCode_SCTeamImplicitNotFound                      StatusCode = 2683
   186  	StatusCode_SCTeamBadAdminSeqnoType                     StatusCode = 2684
   187  	StatusCode_SCTeamImplicitBadAdd                        StatusCode = 2685
   188  	StatusCode_SCTeamImplicitBadRemove                     StatusCode = 2686
   189  	StatusCode_SCTeamInviteTokenReused                     StatusCode = 2696
   190  	StatusCode_SCTeamKeyMaskNotFound                       StatusCode = 2697
   191  	StatusCode_SCTeamBanned                                StatusCode = 2702
   192  	StatusCode_SCTeamInvalidBan                            StatusCode = 2703
   193  	StatusCode_SCTeamShowcasePermDenied                    StatusCode = 2711
   194  	StatusCode_SCTeamProvisionalCanKey                     StatusCode = 2721
   195  	StatusCode_SCTeamProvisionalCannotKey                  StatusCode = 2722
   196  	StatusCode_SCTeamFTLOutdated                           StatusCode = 2736
   197  	StatusCode_SCTeamStorageWrongRevision                  StatusCode = 2760
   198  	StatusCode_SCTeamStorageBadGeneration                  StatusCode = 2761
   199  	StatusCode_SCTeamStorageNotFound                       StatusCode = 2762
   200  	StatusCode_SCTeamContactSettingsBlock                  StatusCode = 2763
   201  	StatusCode_SCTeamSeitanInviteNeedPUK                   StatusCode = 2770
   202  	StatusCode_SCEphemeralKeyBadGeneration                 StatusCode = 2900
   203  	StatusCode_SCEphemeralKeyUnexpectedBox                 StatusCode = 2901
   204  	StatusCode_SCEphemeralKeyMissingBox                    StatusCode = 2902
   205  	StatusCode_SCEphemeralKeyWrongNumberOfKeys             StatusCode = 2903
   206  	StatusCode_SCEphemeralKeyMismatchedKey                 StatusCode = 2904
   207  	StatusCode_SCEphemeralPairwiseMACsMissingUIDs          StatusCode = 2905
   208  	StatusCode_SCEphemeralDeviceAfterEK                    StatusCode = 2906
   209  	StatusCode_SCEphemeralMemberAfterEK                    StatusCode = 2907
   210  	StatusCode_SCEphemeralDeviceStale                      StatusCode = 2908
   211  	StatusCode_SCEphemeralUserStale                        StatusCode = 2909
   212  	StatusCode_SCStellarError                              StatusCode = 3100
   213  	StatusCode_SCStellarBadInput                           StatusCode = 3101
   214  	StatusCode_SCStellarWrongRevision                      StatusCode = 3102
   215  	StatusCode_SCStellarMissingBundle                      StatusCode = 3103
   216  	StatusCode_SCStellarBadPuk                             StatusCode = 3104
   217  	StatusCode_SCStellarMissingAccount                     StatusCode = 3105
   218  	StatusCode_SCStellarBadPrev                            StatusCode = 3106
   219  	StatusCode_SCStellarWrongPrimary                       StatusCode = 3107
   220  	StatusCode_SCStellarUnsupportedCurrency                StatusCode = 3108
   221  	StatusCode_SCStellarNeedDisclaimer                     StatusCode = 3109
   222  	StatusCode_SCStellarDeviceNotMobile                    StatusCode = 3110
   223  	StatusCode_SCStellarMobileOnlyPurgatory                StatusCode = 3111
   224  	StatusCode_SCStellarIncompatibleVersion                StatusCode = 3112
   225  	StatusCode_SCNISTWrongSize                             StatusCode = 3201
   226  	StatusCode_SCNISTBadMode                               StatusCode = 3202
   227  	StatusCode_SCNISTHashWrongSize                         StatusCode = 3203
   228  	StatusCode_SCNISTSigWrongSize                          StatusCode = 3204
   229  	StatusCode_SCNISTSigBadInput                           StatusCode = 3205
   230  	StatusCode_SCNISTSigBadUID                             StatusCode = 3206
   231  	StatusCode_SCNISTSigBadDeviceID                        StatusCode = 3207
   232  	StatusCode_SCNISTSigBadNonce                           StatusCode = 3208
   233  	StatusCode_SCNISTNoSigOrHash                           StatusCode = 3209
   234  	StatusCode_SCNISTExpired                               StatusCode = 3210
   235  	StatusCode_SCNISTSigRevoked                            StatusCode = 3211
   236  	StatusCode_SCNISTKeyRevoked                            StatusCode = 3212
   237  	StatusCode_SCNISTUserDeleted                           StatusCode = 3213
   238  	StatusCode_SCNISTNoDevice                              StatusCode = 3214
   239  	StatusCode_SCNISTSigCannot_verify                      StatusCode = 3215
   240  	StatusCode_SCNISTReplay                                StatusCode = 3216
   241  	StatusCode_SCNISTSigBadLifetime                        StatusCode = 3217
   242  	StatusCode_SCNISTNotFound                              StatusCode = 3218
   243  	StatusCode_SCNISTBadClock                              StatusCode = 3219
   244  	StatusCode_SCNISTSigBadCtime                           StatusCode = 3220
   245  	StatusCode_SCBadSignupUsernameDeleted                  StatusCode = 3221
   246  	StatusCode_SCPhoneNumberUnknown                        StatusCode = 3400
   247  	StatusCode_SCPhoneNumberAlreadyVerified                StatusCode = 3401
   248  	StatusCode_SCPhoneNumberVerificationCodeExpired        StatusCode = 3402
   249  	StatusCode_SCPhoneNumberWrongVerificationCode          StatusCode = 3403
   250  	StatusCode_SCPhoneNumberLimitExceeded                  StatusCode = 3404
   251  	StatusCode_SCNoPaperKeys                               StatusCode = 3605
   252  	StatusCode_SCTeambotKeyGenerationExists                StatusCode = 3800
   253  	StatusCode_SCTeambotKeyOldBoxedGeneration              StatusCode = 3801
   254  	StatusCode_SCTeambotKeyBadGeneration                   StatusCode = 3802
   255  	StatusCode_SCAirdropRegisterFailedMisc                 StatusCode = 4207
   256  	StatusCode_SCSimpleFSNameExists                        StatusCode = 5101
   257  	StatusCode_SCSimpleFSDirNotEmpty                       StatusCode = 5102
   258  	StatusCode_SCSimpleFSNotExist                          StatusCode = 5103
   259  	StatusCode_SCSimpleFSNoAccess                          StatusCode = 5104
   260  )
   261  
   262  func (o StatusCode) DeepCopy() StatusCode { return o }
   263  
   264  var StatusCodeMap = map[string]StatusCode{
   265  	"SCOk":                        0,
   266  	"SCInputError":                100,
   267  	"SCAssertionParseError":       101,
   268  	"SCLoginRequired":             201,
   269  	"SCBadSession":                202,
   270  	"SCBadLoginUserNotFound":      203,
   271  	"SCBadLoginPassword":          204,
   272  	"SCNotFound":                  205,
   273  	"SCThrottleControl":           210,
   274  	"SCDeleted":                   216,
   275  	"SCGeneric":                   218,
   276  	"SCAlreadyLoggedIn":           235,
   277  	"SCExists":                    230,
   278  	"SCCanceled":                  237,
   279  	"SCInputCanceled":             239,
   280  	"SCBadUsername":               243,
   281  	"SCOffline":                   267,
   282  	"SCReloginRequired":           274,
   283  	"SCResolutionFailed":          275,
   284  	"SCProfileNotPublic":          276,
   285  	"SCIdentifyFailed":            277,
   286  	"SCTrackingBroke":             278,
   287  	"SCWrongCryptoFormat":         279,
   288  	"SCDecryptionError":           280,
   289  	"SCInvalidAddress":            281,
   290  	"SCWrongCryptoMsgType":        282,
   291  	"SCNoSession":                 283,
   292  	"SCAccountReset":              290,
   293  	"SCIdentifiesFailed":          295,
   294  	"SCNoSpaceOnDevice":           297,
   295  	"SCMerkleClientError":         299,
   296  	"SCMerkleUpdateRoot":          300,
   297  	"SCBadEmail":                  472,
   298  	"SCRateLimit":                 602,
   299  	"SCBadSignupUsernameTaken":    701,
   300  	"SCDuplicate":                 706,
   301  	"SCBadInvitationCode":         707,
   302  	"SCBadSignupUsernameReserved": 710,
   303  	"SCBadSignupTeamName":         711,
   304  	"SCFeatureFlag":               712,
   305  	"SCEmailTaken":                713,
   306  	"SCEmailAlreadyAdded":         714,
   307  	"SCEmailLimitExceeded":        715,
   308  	"SCEmailCannotDeletePrimary":  716,
   309  	"SCEmailUnknown":              717,
   310  	"SCBotSignupTokenNotFound":    719,
   311  	"SCNoUpdate":                  723,
   312  	"SCMissingResult":             801,
   313  	"SCKeyNotFound":               901,
   314  	"SCKeyCorrupted":              905,
   315  	"SCKeyInUse":                  907,
   316  	"SCKeyBadGen":                 913,
   317  	"SCKeyNoSecret":               914,
   318  	"SCKeyBadUIDs":                915,
   319  	"SCKeyNoActive":               916,
   320  	"SCKeyNoSig":                  917,
   321  	"SCKeyBadSig":                 918,
   322  	"SCKeyBadEldest":              919,
   323  	"SCKeyNoEldest":               920,
   324  	"SCKeyDuplicateUpdate":        921,
   325  	"SCSibkeyAlreadyExists":       922,
   326  	"SCDecryptionKeyNotFound":     924,
   327  	"SCVerificationKeyNotFound":   925,
   328  	"SCKeyNoPGPEncryption":        927,
   329  	"SCKeyNoNaClEncryption":       928,
   330  	"SCKeySyncedPGPNotFound":      929,
   331  	"SCKeyNoMatchingGPG":          930,
   332  	"SCKeyRevoked":                931,
   333  	"SCSigCannotVerify":           1002,
   334  	"SCSigWrongKey":               1008,
   335  	"SCSigOldSeqno":               1010,
   336  	"SCSigCreationDisallowed":     1016,
   337  	"SCSigMissingRatchet":         1021,
   338  	"SCSigBadTotalOrder":          1022,
   339  	"SCBadTrackSession":           1301,
   340  	"SCDeviceBadName":             1404,
   341  	"SCDeviceBadStatus":           1405,
   342  	"SCDeviceNameInUse":           1408,
   343  	"SCDeviceNotFound":            1409,
   344  	"SCDeviceMismatch":            1410,
   345  	"SCDeviceRequired":            1411,
   346  	"SCDevicePrevProvisioned":     1413,
   347  	"SCDeviceNoProvision":         1414,
   348  	"SCDeviceProvisionViaDevice":  1415,
   349  	"SCRevokeCurrentDevice":       1416,
   350  	"SCRevokeLastDevice":          1417,
   351  	"SCDeviceProvisionOffline":    1418,
   352  	"SCRevokeLastDevicePGP":       1419,
   353  	"SCStreamExists":              1501,
   354  	"SCStreamNotFound":            1502,
   355  	"SCStreamWrongKind":           1503,
   356  	"SCStreamEOF":                 1504,
   357  	"SCStreamUnknown":             1505,
   358  	"SCGenericAPIError":           1600,
   359  	"SCAPINetworkError":           1601,
   360  	"SCTimeout":                   1602,
   361  	"SCKBFSClientTimeout":         1603,
   362  	"SCProofError":                1701,
   363  	"SCIdentificationExpired":     1702,
   364  	"SCSelfNotFound":              1703,
   365  	"SCBadKexPhrase":              1704,
   366  	"SCNoUIDelegation":            1705,
   367  	"SCNoUI":                      1706,
   368  	"SCGPGUnavailable":            1707,
   369  	"SCInvalidVersionError":       1800,
   370  	"SCOldVersionError":           1801,
   371  	"SCInvalidLocationError":      1802,
   372  	"SCServiceStatusError":        1803,
   373  	"SCInstallError":              1804,
   374  	"SCLoadKextError":             1810,
   375  	"SCLoadKextPermError":         1811,
   376  	"SCGitInternal":               2300,
   377  	"SCGitRepoAlreadyExists":      2301,
   378  	"SCGitInvalidRepoName":        2302,
   379  	"SCGitCannotDelete":           2303,
   380  	"SCGitRepoDoesntExist":        2304,
   381  	"SCLoginStateTimeout":         2400,
   382  	"SCChatInternal":              2500,
   383  	"SCChatRateLimit":             2501,
   384  	"SCChatConvExists":            2502,
   385  	"SCChatUnknownTLFID":          2503,
   386  	"SCChatNotInConv":             2504,
   387  	"SCChatBadMsg":                2505,
   388  	"SCChatBroadcast":             2506,
   389  	"SCChatAlreadySuperseded":     2507,
   390  	"SCChatAlreadyDeleted":        2508,
   391  	"SCChatTLFFinalized":          2509,
   392  	"SCChatCollision":             2510,
   393  	"SCIdentifySummaryError":      2511,
   394  	"SCNeedSelfRekey":             2512,
   395  	"SCNeedOtherRekey":            2513,
   396  	"SCChatMessageCollision":      2514,
   397  	"SCChatDuplicateMessage":      2515,
   398  	"SCChatClientError":           2516,
   399  	"SCChatNotInTeam":             2517,
   400  	"SCChatStalePreviousState":    2518,
   401  	"SCChatEphemeralRetentionPolicyViolatedError": 2519,
   402  	"SCChatUsersAlreadyInConversationError":       2520,
   403  	"SCChatBadConversationError":                  2521,
   404  	"SCTeamBadMembership":                         2604,
   405  	"SCTeamSelfNotOwner":                          2607,
   406  	"SCTeamNotFound":                              2614,
   407  	"SCTeamExists":                                2619,
   408  	"SCTeamReadError":                             2623,
   409  	"SCTeamWritePermDenied":                       2625,
   410  	"SCTeamBadGeneration":                         2634,
   411  	"SCNoOp":                                      2638,
   412  	"SCTeamInviteBadCancel":                       2645,
   413  	"SCTeamInviteBadToken":                        2646,
   414  	"SCTeamInviteCompletionMissing":               2648,
   415  	"SCTeamBadNameReservedDB":                     2650,
   416  	"SCTeamTarDuplicate":                          2663,
   417  	"SCTeamTarNotFound":                           2664,
   418  	"SCTeamMemberExists":                          2665,
   419  	"SCTeamNotReleased":                           2666,
   420  	"SCTeamPermanentlyLeft":                       2667,
   421  	"SCTeamNeedRootId":                            2668,
   422  	"SCTeamHasLiveChildren":                       2669,
   423  	"SCTeamDeleteError":                           2670,
   424  	"SCTeamBadRootTeam":                           2671,
   425  	"SCTeamNameConflictsWithUser":                 2672,
   426  	"SCTeamDeleteNoUpPointer":                     2673,
   427  	"SCTeamNeedOwner":                             2674,
   428  	"SCTeamNoOwnerAllowed":                        2675,
   429  	"SCTeamImplicitNoNonSbs":                      2676,
   430  	"SCTeamImplicitBadHash":                       2677,
   431  	"SCTeamImplicitBadName":                       2678,
   432  	"SCTeamImplicitClash":                         2679,
   433  	"SCTeamImplicitDuplicate":                     2680,
   434  	"SCTeamImplicitBadOp":                         2681,
   435  	"SCTeamImplicitBadRole":                       2682,
   436  	"SCTeamImplicitNotFound":                      2683,
   437  	"SCTeamBadAdminSeqnoType":                     2684,
   438  	"SCTeamImplicitBadAdd":                        2685,
   439  	"SCTeamImplicitBadRemove":                     2686,
   440  	"SCTeamInviteTokenReused":                     2696,
   441  	"SCTeamKeyMaskNotFound":                       2697,
   442  	"SCTeamBanned":                                2702,
   443  	"SCTeamInvalidBan":                            2703,
   444  	"SCTeamShowcasePermDenied":                    2711,
   445  	"SCTeamProvisionalCanKey":                     2721,
   446  	"SCTeamProvisionalCannotKey":                  2722,
   447  	"SCTeamFTLOutdated":                           2736,
   448  	"SCTeamStorageWrongRevision":                  2760,
   449  	"SCTeamStorageBadGeneration":                  2761,
   450  	"SCTeamStorageNotFound":                       2762,
   451  	"SCTeamContactSettingsBlock":                  2763,
   452  	"SCTeamSeitanInviteNeedPUK":                   2770,
   453  	"SCEphemeralKeyBadGeneration":                 2900,
   454  	"SCEphemeralKeyUnexpectedBox":                 2901,
   455  	"SCEphemeralKeyMissingBox":                    2902,
   456  	"SCEphemeralKeyWrongNumberOfKeys":             2903,
   457  	"SCEphemeralKeyMismatchedKey":                 2904,
   458  	"SCEphemeralPairwiseMACsMissingUIDs":          2905,
   459  	"SCEphemeralDeviceAfterEK":                    2906,
   460  	"SCEphemeralMemberAfterEK":                    2907,
   461  	"SCEphemeralDeviceStale":                      2908,
   462  	"SCEphemeralUserStale":                        2909,
   463  	"SCStellarError":                              3100,
   464  	"SCStellarBadInput":                           3101,
   465  	"SCStellarWrongRevision":                      3102,
   466  	"SCStellarMissingBundle":                      3103,
   467  	"SCStellarBadPuk":                             3104,
   468  	"SCStellarMissingAccount":                     3105,
   469  	"SCStellarBadPrev":                            3106,
   470  	"SCStellarWrongPrimary":                       3107,
   471  	"SCStellarUnsupportedCurrency":                3108,
   472  	"SCStellarNeedDisclaimer":                     3109,
   473  	"SCStellarDeviceNotMobile":                    3110,
   474  	"SCStellarMobileOnlyPurgatory":                3111,
   475  	"SCStellarIncompatibleVersion":                3112,
   476  	"SCNISTWrongSize":                             3201,
   477  	"SCNISTBadMode":                               3202,
   478  	"SCNISTHashWrongSize":                         3203,
   479  	"SCNISTSigWrongSize":                          3204,
   480  	"SCNISTSigBadInput":                           3205,
   481  	"SCNISTSigBadUID":                             3206,
   482  	"SCNISTSigBadDeviceID":                        3207,
   483  	"SCNISTSigBadNonce":                           3208,
   484  	"SCNISTNoSigOrHash":                           3209,
   485  	"SCNISTExpired":                               3210,
   486  	"SCNISTSigRevoked":                            3211,
   487  	"SCNISTKeyRevoked":                            3212,
   488  	"SCNISTUserDeleted":                           3213,
   489  	"SCNISTNoDevice":                              3214,
   490  	"SCNISTSigCannot_verify":                      3215,
   491  	"SCNISTReplay":                                3216,
   492  	"SCNISTSigBadLifetime":                        3217,
   493  	"SCNISTNotFound":                              3218,
   494  	"SCNISTBadClock":                              3219,
   495  	"SCNISTSigBadCtime":                           3220,
   496  	"SCBadSignupUsernameDeleted":                  3221,
   497  	"SCPhoneNumberUnknown":                        3400,
   498  	"SCPhoneNumberAlreadyVerified":                3401,
   499  	"SCPhoneNumberVerificationCodeExpired":        3402,
   500  	"SCPhoneNumberWrongVerificationCode":          3403,
   501  	"SCPhoneNumberLimitExceeded":                  3404,
   502  	"SCNoPaperKeys":                               3605,
   503  	"SCTeambotKeyGenerationExists":                3800,
   504  	"SCTeambotKeyOldBoxedGeneration":              3801,
   505  	"SCTeambotKeyBadGeneration":                   3802,
   506  	"SCAirdropRegisterFailedMisc":                 4207,
   507  	"SCSimpleFSNameExists":                        5101,
   508  	"SCSimpleFSDirNotEmpty":                       5102,
   509  	"SCSimpleFSNotExist":                          5103,
   510  	"SCSimpleFSNoAccess":                          5104,
   511  }
   512  
   513  var StatusCodeRevMap = map[StatusCode]string{
   514  	0:    "SCOk",
   515  	100:  "SCInputError",
   516  	101:  "SCAssertionParseError",
   517  	201:  "SCLoginRequired",
   518  	202:  "SCBadSession",
   519  	203:  "SCBadLoginUserNotFound",
   520  	204:  "SCBadLoginPassword",
   521  	205:  "SCNotFound",
   522  	210:  "SCThrottleControl",
   523  	216:  "SCDeleted",
   524  	218:  "SCGeneric",
   525  	235:  "SCAlreadyLoggedIn",
   526  	230:  "SCExists",
   527  	237:  "SCCanceled",
   528  	239:  "SCInputCanceled",
   529  	243:  "SCBadUsername",
   530  	267:  "SCOffline",
   531  	274:  "SCReloginRequired",
   532  	275:  "SCResolutionFailed",
   533  	276:  "SCProfileNotPublic",
   534  	277:  "SCIdentifyFailed",
   535  	278:  "SCTrackingBroke",
   536  	279:  "SCWrongCryptoFormat",
   537  	280:  "SCDecryptionError",
   538  	281:  "SCInvalidAddress",
   539  	282:  "SCWrongCryptoMsgType",
   540  	283:  "SCNoSession",
   541  	290:  "SCAccountReset",
   542  	295:  "SCIdentifiesFailed",
   543  	297:  "SCNoSpaceOnDevice",
   544  	299:  "SCMerkleClientError",
   545  	300:  "SCMerkleUpdateRoot",
   546  	472:  "SCBadEmail",
   547  	602:  "SCRateLimit",
   548  	701:  "SCBadSignupUsernameTaken",
   549  	706:  "SCDuplicate",
   550  	707:  "SCBadInvitationCode",
   551  	710:  "SCBadSignupUsernameReserved",
   552  	711:  "SCBadSignupTeamName",
   553  	712:  "SCFeatureFlag",
   554  	713:  "SCEmailTaken",
   555  	714:  "SCEmailAlreadyAdded",
   556  	715:  "SCEmailLimitExceeded",
   557  	716:  "SCEmailCannotDeletePrimary",
   558  	717:  "SCEmailUnknown",
   559  	719:  "SCBotSignupTokenNotFound",
   560  	723:  "SCNoUpdate",
   561  	801:  "SCMissingResult",
   562  	901:  "SCKeyNotFound",
   563  	905:  "SCKeyCorrupted",
   564  	907:  "SCKeyInUse",
   565  	913:  "SCKeyBadGen",
   566  	914:  "SCKeyNoSecret",
   567  	915:  "SCKeyBadUIDs",
   568  	916:  "SCKeyNoActive",
   569  	917:  "SCKeyNoSig",
   570  	918:  "SCKeyBadSig",
   571  	919:  "SCKeyBadEldest",
   572  	920:  "SCKeyNoEldest",
   573  	921:  "SCKeyDuplicateUpdate",
   574  	922:  "SCSibkeyAlreadyExists",
   575  	924:  "SCDecryptionKeyNotFound",
   576  	925:  "SCVerificationKeyNotFound",
   577  	927:  "SCKeyNoPGPEncryption",
   578  	928:  "SCKeyNoNaClEncryption",
   579  	929:  "SCKeySyncedPGPNotFound",
   580  	930:  "SCKeyNoMatchingGPG",
   581  	931:  "SCKeyRevoked",
   582  	1002: "SCSigCannotVerify",
   583  	1008: "SCSigWrongKey",
   584  	1010: "SCSigOldSeqno",
   585  	1016: "SCSigCreationDisallowed",
   586  	1021: "SCSigMissingRatchet",
   587  	1022: "SCSigBadTotalOrder",
   588  	1301: "SCBadTrackSession",
   589  	1404: "SCDeviceBadName",
   590  	1405: "SCDeviceBadStatus",
   591  	1408: "SCDeviceNameInUse",
   592  	1409: "SCDeviceNotFound",
   593  	1410: "SCDeviceMismatch",
   594  	1411: "SCDeviceRequired",
   595  	1413: "SCDevicePrevProvisioned",
   596  	1414: "SCDeviceNoProvision",
   597  	1415: "SCDeviceProvisionViaDevice",
   598  	1416: "SCRevokeCurrentDevice",
   599  	1417: "SCRevokeLastDevice",
   600  	1418: "SCDeviceProvisionOffline",
   601  	1419: "SCRevokeLastDevicePGP",
   602  	1501: "SCStreamExists",
   603  	1502: "SCStreamNotFound",
   604  	1503: "SCStreamWrongKind",
   605  	1504: "SCStreamEOF",
   606  	1505: "SCStreamUnknown",
   607  	1600: "SCGenericAPIError",
   608  	1601: "SCAPINetworkError",
   609  	1602: "SCTimeout",
   610  	1603: "SCKBFSClientTimeout",
   611  	1701: "SCProofError",
   612  	1702: "SCIdentificationExpired",
   613  	1703: "SCSelfNotFound",
   614  	1704: "SCBadKexPhrase",
   615  	1705: "SCNoUIDelegation",
   616  	1706: "SCNoUI",
   617  	1707: "SCGPGUnavailable",
   618  	1800: "SCInvalidVersionError",
   619  	1801: "SCOldVersionError",
   620  	1802: "SCInvalidLocationError",
   621  	1803: "SCServiceStatusError",
   622  	1804: "SCInstallError",
   623  	1810: "SCLoadKextError",
   624  	1811: "SCLoadKextPermError",
   625  	2300: "SCGitInternal",
   626  	2301: "SCGitRepoAlreadyExists",
   627  	2302: "SCGitInvalidRepoName",
   628  	2303: "SCGitCannotDelete",
   629  	2304: "SCGitRepoDoesntExist",
   630  	2400: "SCLoginStateTimeout",
   631  	2500: "SCChatInternal",
   632  	2501: "SCChatRateLimit",
   633  	2502: "SCChatConvExists",
   634  	2503: "SCChatUnknownTLFID",
   635  	2504: "SCChatNotInConv",
   636  	2505: "SCChatBadMsg",
   637  	2506: "SCChatBroadcast",
   638  	2507: "SCChatAlreadySuperseded",
   639  	2508: "SCChatAlreadyDeleted",
   640  	2509: "SCChatTLFFinalized",
   641  	2510: "SCChatCollision",
   642  	2511: "SCIdentifySummaryError",
   643  	2512: "SCNeedSelfRekey",
   644  	2513: "SCNeedOtherRekey",
   645  	2514: "SCChatMessageCollision",
   646  	2515: "SCChatDuplicateMessage",
   647  	2516: "SCChatClientError",
   648  	2517: "SCChatNotInTeam",
   649  	2518: "SCChatStalePreviousState",
   650  	2519: "SCChatEphemeralRetentionPolicyViolatedError",
   651  	2520: "SCChatUsersAlreadyInConversationError",
   652  	2521: "SCChatBadConversationError",
   653  	2604: "SCTeamBadMembership",
   654  	2607: "SCTeamSelfNotOwner",
   655  	2614: "SCTeamNotFound",
   656  	2619: "SCTeamExists",
   657  	2623: "SCTeamReadError",
   658  	2625: "SCTeamWritePermDenied",
   659  	2634: "SCTeamBadGeneration",
   660  	2638: "SCNoOp",
   661  	2645: "SCTeamInviteBadCancel",
   662  	2646: "SCTeamInviteBadToken",
   663  	2648: "SCTeamInviteCompletionMissing",
   664  	2650: "SCTeamBadNameReservedDB",
   665  	2663: "SCTeamTarDuplicate",
   666  	2664: "SCTeamTarNotFound",
   667  	2665: "SCTeamMemberExists",
   668  	2666: "SCTeamNotReleased",
   669  	2667: "SCTeamPermanentlyLeft",
   670  	2668: "SCTeamNeedRootId",
   671  	2669: "SCTeamHasLiveChildren",
   672  	2670: "SCTeamDeleteError",
   673  	2671: "SCTeamBadRootTeam",
   674  	2672: "SCTeamNameConflictsWithUser",
   675  	2673: "SCTeamDeleteNoUpPointer",
   676  	2674: "SCTeamNeedOwner",
   677  	2675: "SCTeamNoOwnerAllowed",
   678  	2676: "SCTeamImplicitNoNonSbs",
   679  	2677: "SCTeamImplicitBadHash",
   680  	2678: "SCTeamImplicitBadName",
   681  	2679: "SCTeamImplicitClash",
   682  	2680: "SCTeamImplicitDuplicate",
   683  	2681: "SCTeamImplicitBadOp",
   684  	2682: "SCTeamImplicitBadRole",
   685  	2683: "SCTeamImplicitNotFound",
   686  	2684: "SCTeamBadAdminSeqnoType",
   687  	2685: "SCTeamImplicitBadAdd",
   688  	2686: "SCTeamImplicitBadRemove",
   689  	2696: "SCTeamInviteTokenReused",
   690  	2697: "SCTeamKeyMaskNotFound",
   691  	2702: "SCTeamBanned",
   692  	2703: "SCTeamInvalidBan",
   693  	2711: "SCTeamShowcasePermDenied",
   694  	2721: "SCTeamProvisionalCanKey",
   695  	2722: "SCTeamProvisionalCannotKey",
   696  	2736: "SCTeamFTLOutdated",
   697  	2760: "SCTeamStorageWrongRevision",
   698  	2761: "SCTeamStorageBadGeneration",
   699  	2762: "SCTeamStorageNotFound",
   700  	2763: "SCTeamContactSettingsBlock",
   701  	2770: "SCTeamSeitanInviteNeedPUK",
   702  	2900: "SCEphemeralKeyBadGeneration",
   703  	2901: "SCEphemeralKeyUnexpectedBox",
   704  	2902: "SCEphemeralKeyMissingBox",
   705  	2903: "SCEphemeralKeyWrongNumberOfKeys",
   706  	2904: "SCEphemeralKeyMismatchedKey",
   707  	2905: "SCEphemeralPairwiseMACsMissingUIDs",
   708  	2906: "SCEphemeralDeviceAfterEK",
   709  	2907: "SCEphemeralMemberAfterEK",
   710  	2908: "SCEphemeralDeviceStale",
   711  	2909: "SCEphemeralUserStale",
   712  	3100: "SCStellarError",
   713  	3101: "SCStellarBadInput",
   714  	3102: "SCStellarWrongRevision",
   715  	3103: "SCStellarMissingBundle",
   716  	3104: "SCStellarBadPuk",
   717  	3105: "SCStellarMissingAccount",
   718  	3106: "SCStellarBadPrev",
   719  	3107: "SCStellarWrongPrimary",
   720  	3108: "SCStellarUnsupportedCurrency",
   721  	3109: "SCStellarNeedDisclaimer",
   722  	3110: "SCStellarDeviceNotMobile",
   723  	3111: "SCStellarMobileOnlyPurgatory",
   724  	3112: "SCStellarIncompatibleVersion",
   725  	3201: "SCNISTWrongSize",
   726  	3202: "SCNISTBadMode",
   727  	3203: "SCNISTHashWrongSize",
   728  	3204: "SCNISTSigWrongSize",
   729  	3205: "SCNISTSigBadInput",
   730  	3206: "SCNISTSigBadUID",
   731  	3207: "SCNISTSigBadDeviceID",
   732  	3208: "SCNISTSigBadNonce",
   733  	3209: "SCNISTNoSigOrHash",
   734  	3210: "SCNISTExpired",
   735  	3211: "SCNISTSigRevoked",
   736  	3212: "SCNISTKeyRevoked",
   737  	3213: "SCNISTUserDeleted",
   738  	3214: "SCNISTNoDevice",
   739  	3215: "SCNISTSigCannot_verify",
   740  	3216: "SCNISTReplay",
   741  	3217: "SCNISTSigBadLifetime",
   742  	3218: "SCNISTNotFound",
   743  	3219: "SCNISTBadClock",
   744  	3220: "SCNISTSigBadCtime",
   745  	3221: "SCBadSignupUsernameDeleted",
   746  	3400: "SCPhoneNumberUnknown",
   747  	3401: "SCPhoneNumberAlreadyVerified",
   748  	3402: "SCPhoneNumberVerificationCodeExpired",
   749  	3403: "SCPhoneNumberWrongVerificationCode",
   750  	3404: "SCPhoneNumberLimitExceeded",
   751  	3605: "SCNoPaperKeys",
   752  	3800: "SCTeambotKeyGenerationExists",
   753  	3801: "SCTeambotKeyOldBoxedGeneration",
   754  	3802: "SCTeambotKeyBadGeneration",
   755  	4207: "SCAirdropRegisterFailedMisc",
   756  	5101: "SCSimpleFSNameExists",
   757  	5102: "SCSimpleFSDirNotEmpty",
   758  	5103: "SCSimpleFSNotExist",
   759  	5104: "SCSimpleFSNoAccess",
   760  }
   761  
   762  func (e StatusCode) String() string {
   763  	if v, ok := StatusCodeRevMap[e]; ok {
   764  		return v
   765  	}
   766  	return fmt.Sprintf("%v", int(e))
   767  }
   768  
   769  type ConstantsInterface interface {
   770  }
   771  
   772  func ConstantsProtocol(i ConstantsInterface) rpc.Protocol {
   773  	return rpc.Protocol{
   774  		Name:    "keybase.1.constants",
   775  		Methods: map[string]rpc.ServeHandlerDescription{},
   776  	}
   777  }
   778  
   779  type ConstantsClient struct {
   780  	Cli rpc.GenericClient
   781  }