mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-06-15 10:22:13 +00:00
147 lines
6.2 KiB
Dart
147 lines
6.2 KiB
Dart
// This is a generated file - do not edit.
|
|
//
|
|
// Generated from api/websocket/error.proto.
|
|
|
|
// @dart = 3.3
|
|
|
|
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
|
// ignore_for_file: constant_identifier_names
|
|
// ignore_for_file: curly_braces_in_flow_control_structures
|
|
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
|
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
|
|
|
import 'dart:core' as $core;
|
|
|
|
import 'package:protobuf/protobuf.dart' as $pb;
|
|
|
|
class ErrorCode extends $pb.ProtobufEnum {
|
|
static const ErrorCode Unknown =
|
|
ErrorCode._(0, _omitEnumNames ? '' : 'Unknown');
|
|
static const ErrorCode BadRequest =
|
|
ErrorCode._(400, _omitEnumNames ? '' : 'BadRequest');
|
|
static const ErrorCode TooManyRequests =
|
|
ErrorCode._(429, _omitEnumNames ? '' : 'TooManyRequests');
|
|
static const ErrorCode InternalError =
|
|
ErrorCode._(500, _omitEnumNames ? '' : 'InternalError');
|
|
static const ErrorCode InvalidInvitationCode =
|
|
ErrorCode._(1002, _omitEnumNames ? '' : 'InvalidInvitationCode');
|
|
static const ErrorCode UsernameAlreadyTaken =
|
|
ErrorCode._(1003, _omitEnumNames ? '' : 'UsernameAlreadyTaken');
|
|
static const ErrorCode SignatureNotValid =
|
|
ErrorCode._(1004, _omitEnumNames ? '' : 'SignatureNotValid');
|
|
static const ErrorCode UsernameNotFound =
|
|
ErrorCode._(1005, _omitEnumNames ? '' : 'UsernameNotFound');
|
|
static const ErrorCode UsernameNotValid =
|
|
ErrorCode._(1006, _omitEnumNames ? '' : 'UsernameNotValid');
|
|
static const ErrorCode InvalidPublicKey =
|
|
ErrorCode._(1007, _omitEnumNames ? '' : 'InvalidPublicKey');
|
|
static const ErrorCode SessionAlreadyAuthenticated =
|
|
ErrorCode._(1008, _omitEnumNames ? '' : 'SessionAlreadyAuthenticated');
|
|
static const ErrorCode SessionNotAuthenticated =
|
|
ErrorCode._(1009, _omitEnumNames ? '' : 'SessionNotAuthenticated');
|
|
static const ErrorCode OnlyOneSessionAllowed =
|
|
ErrorCode._(1010, _omitEnumNames ? '' : 'OnlyOneSessionAllowed');
|
|
static const ErrorCode UploadLimitReached =
|
|
ErrorCode._(1011, _omitEnumNames ? '' : 'UploadLimitReached');
|
|
static const ErrorCode InvalidUpdateToken =
|
|
ErrorCode._(1012, _omitEnumNames ? '' : 'InvalidUpdateToken');
|
|
static const ErrorCode InvalidOffset =
|
|
ErrorCode._(1013, _omitEnumNames ? '' : 'InvalidOffset');
|
|
static const ErrorCode InvalidGoogleFcmToken =
|
|
ErrorCode._(1014, _omitEnumNames ? '' : 'InvalidGoogleFcmToken');
|
|
static const ErrorCode UploadTokenIsBlocked =
|
|
ErrorCode._(1015, _omitEnumNames ? '' : 'UploadTokenIsBlocked');
|
|
static const ErrorCode UploadChecksumInvalid =
|
|
ErrorCode._(1016, _omitEnumNames ? '' : 'UploadChecksumInvalid');
|
|
static const ErrorCode InvalidDownloadToken =
|
|
ErrorCode._(1017, _omitEnumNames ? '' : 'InvalidDownloadToken');
|
|
static const ErrorCode ApiEndpointNotFound =
|
|
ErrorCode._(1018, _omitEnumNames ? '' : 'ApiEndpointNotFound');
|
|
static const ErrorCode AuthTokenNotValid =
|
|
ErrorCode._(1019, _omitEnumNames ? '' : 'AuthTokenNotValid');
|
|
static const ErrorCode InvalidPreKeys =
|
|
ErrorCode._(1020, _omitEnumNames ? '' : 'InvalidPreKeys');
|
|
static const ErrorCode VoucherInValid =
|
|
ErrorCode._(1021, _omitEnumNames ? '' : 'VoucherInValid');
|
|
static const ErrorCode PlanNotAllowed =
|
|
ErrorCode._(1022, _omitEnumNames ? '' : 'PlanNotAllowed');
|
|
static const ErrorCode PlanLimitReached =
|
|
ErrorCode._(1023, _omitEnumNames ? '' : 'PlanLimitReached');
|
|
static const ErrorCode NotEnoughCredit =
|
|
ErrorCode._(1024, _omitEnumNames ? '' : 'NotEnoughCredit');
|
|
static const ErrorCode PlanDowngrade =
|
|
ErrorCode._(1025, _omitEnumNames ? '' : 'PlanDowngrade');
|
|
static const ErrorCode PlanUpgradeNotYearly =
|
|
ErrorCode._(1026, _omitEnumNames ? '' : 'PlanUpgradeNotYearly');
|
|
static const ErrorCode InvalidSignedPreKey =
|
|
ErrorCode._(1027, _omitEnumNames ? '' : 'InvalidSignedPreKey');
|
|
static const ErrorCode UserIdNotFound =
|
|
ErrorCode._(1028, _omitEnumNames ? '' : 'UserIdNotFound');
|
|
static const ErrorCode UserIdAlreadyTaken =
|
|
ErrorCode._(1029, _omitEnumNames ? '' : 'UserIdAlreadyTaken');
|
|
static const ErrorCode AppVersionOutdated =
|
|
ErrorCode._(1030, _omitEnumNames ? '' : 'AppVersionOutdated');
|
|
static const ErrorCode NewDeviceRegistered =
|
|
ErrorCode._(1031, _omitEnumNames ? '' : 'NewDeviceRegistered');
|
|
static const ErrorCode InvalidProofOfWork =
|
|
ErrorCode._(1032, _omitEnumNames ? '' : 'InvalidProofOfWork');
|
|
static const ErrorCode RegistrationDisabled =
|
|
ErrorCode._(1033, _omitEnumNames ? '' : 'RegistrationDisabled');
|
|
static const ErrorCode IPAPaymentExpired =
|
|
ErrorCode._(1034, _omitEnumNames ? '' : 'IPAPaymentExpired');
|
|
static const ErrorCode UserIsNotInFreePlan =
|
|
ErrorCode._(1035, _omitEnumNames ? '' : 'UserIsNotInFreePlan');
|
|
static const ErrorCode ForegroundSessionConnected =
|
|
ErrorCode._(1036, _omitEnumNames ? '' : 'ForegroundSessionConnected');
|
|
|
|
static const $core.List<ErrorCode> values = <ErrorCode>[
|
|
Unknown,
|
|
BadRequest,
|
|
TooManyRequests,
|
|
InternalError,
|
|
InvalidInvitationCode,
|
|
UsernameAlreadyTaken,
|
|
SignatureNotValid,
|
|
UsernameNotFound,
|
|
UsernameNotValid,
|
|
InvalidPublicKey,
|
|
SessionAlreadyAuthenticated,
|
|
SessionNotAuthenticated,
|
|
OnlyOneSessionAllowed,
|
|
UploadLimitReached,
|
|
InvalidUpdateToken,
|
|
InvalidOffset,
|
|
InvalidGoogleFcmToken,
|
|
UploadTokenIsBlocked,
|
|
UploadChecksumInvalid,
|
|
InvalidDownloadToken,
|
|
ApiEndpointNotFound,
|
|
AuthTokenNotValid,
|
|
InvalidPreKeys,
|
|
VoucherInValid,
|
|
PlanNotAllowed,
|
|
PlanLimitReached,
|
|
NotEnoughCredit,
|
|
PlanDowngrade,
|
|
PlanUpgradeNotYearly,
|
|
InvalidSignedPreKey,
|
|
UserIdNotFound,
|
|
UserIdAlreadyTaken,
|
|
AppVersionOutdated,
|
|
NewDeviceRegistered,
|
|
InvalidProofOfWork,
|
|
RegistrationDisabled,
|
|
IPAPaymentExpired,
|
|
UserIsNotInFreePlan,
|
|
ForegroundSessionConnected,
|
|
];
|
|
|
|
static final $core.Map<$core.int, ErrorCode> _byValue =
|
|
$pb.ProtobufEnum.initByValue(values);
|
|
static ErrorCode? valueOf($core.int value) => _byValue[value];
|
|
|
|
const ErrorCode._(super.value, super.name);
|
|
}
|
|
|
|
const $core.bool _omitEnumNames =
|
|
$core.bool.fromEnvironment('protobuf.omit_enum_names');
|