fix(useragent): upgraded to new protocol changes
This commit is contained in:
391
useragent/lib/proto/user_agent/auth.pb.dart
Normal file
391
useragent/lib/proto/user_agent/auth.pb.dart
Normal file
@@ -0,0 +1,391 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from user_agent/auth.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;
|
||||
|
||||
import 'auth.pbenum.dart';
|
||||
|
||||
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
|
||||
|
||||
export 'auth.pbenum.dart';
|
||||
|
||||
class AuthChallengeRequest extends $pb.GeneratedMessage {
|
||||
factory AuthChallengeRequest({
|
||||
$core.List<$core.int>? pubkey,
|
||||
$core.String? bootstrapToken,
|
||||
KeyType? keyType,
|
||||
}) {
|
||||
final result = create();
|
||||
if (pubkey != null) result.pubkey = pubkey;
|
||||
if (bootstrapToken != null) result.bootstrapToken = bootstrapToken;
|
||||
if (keyType != null) result.keyType = keyType;
|
||||
return result;
|
||||
}
|
||||
|
||||
AuthChallengeRequest._();
|
||||
|
||||
factory AuthChallengeRequest.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory AuthChallengeRequest.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'AuthChallengeRequest',
|
||||
package: const $pb.PackageName(
|
||||
_omitMessageNames ? '' : 'arbiter.user_agent.auth'),
|
||||
createEmptyInstance: create)
|
||||
..a<$core.List<$core.int>>(
|
||||
1, _omitFieldNames ? '' : 'pubkey', $pb.PbFieldType.OY)
|
||||
..aOS(2, _omitFieldNames ? '' : 'bootstrapToken')
|
||||
..aE<KeyType>(3, _omitFieldNames ? '' : 'keyType',
|
||||
enumValues: KeyType.values)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
AuthChallengeRequest clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
AuthChallengeRequest copyWith(void Function(AuthChallengeRequest) updates) =>
|
||||
super.copyWith((message) => updates(message as AuthChallengeRequest))
|
||||
as AuthChallengeRequest;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static AuthChallengeRequest create() => AuthChallengeRequest._();
|
||||
@$core.override
|
||||
AuthChallengeRequest createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static AuthChallengeRequest getDefault() => _defaultInstance ??=
|
||||
$pb.GeneratedMessage.$_defaultFor<AuthChallengeRequest>(create);
|
||||
static AuthChallengeRequest? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$core.List<$core.int> get pubkey => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set pubkey($core.List<$core.int> value) => $_setBytes(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasPubkey() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearPubkey() => $_clearField(1);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$core.String get bootstrapToken => $_getSZ(1);
|
||||
@$pb.TagNumber(2)
|
||||
set bootstrapToken($core.String value) => $_setString(1, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasBootstrapToken() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearBootstrapToken() => $_clearField(2);
|
||||
|
||||
@$pb.TagNumber(3)
|
||||
KeyType get keyType => $_getN(2);
|
||||
@$pb.TagNumber(3)
|
||||
set keyType(KeyType value) => $_setField(3, value);
|
||||
@$pb.TagNumber(3)
|
||||
$core.bool hasKeyType() => $_has(2);
|
||||
@$pb.TagNumber(3)
|
||||
void clearKeyType() => $_clearField(3);
|
||||
}
|
||||
|
||||
class AuthChallenge extends $pb.GeneratedMessage {
|
||||
factory AuthChallenge({
|
||||
$core.int? nonce,
|
||||
}) {
|
||||
final result = create();
|
||||
if (nonce != null) result.nonce = nonce;
|
||||
return result;
|
||||
}
|
||||
|
||||
AuthChallenge._();
|
||||
|
||||
factory AuthChallenge.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory AuthChallenge.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'AuthChallenge',
|
||||
package: const $pb.PackageName(
|
||||
_omitMessageNames ? '' : 'arbiter.user_agent.auth'),
|
||||
createEmptyInstance: create)
|
||||
..aI(1, _omitFieldNames ? '' : 'nonce')
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
AuthChallenge clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
AuthChallenge copyWith(void Function(AuthChallenge) updates) =>
|
||||
super.copyWith((message) => updates(message as AuthChallenge))
|
||||
as AuthChallenge;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static AuthChallenge create() => AuthChallenge._();
|
||||
@$core.override
|
||||
AuthChallenge createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static AuthChallenge getDefault() => _defaultInstance ??=
|
||||
$pb.GeneratedMessage.$_defaultFor<AuthChallenge>(create);
|
||||
static AuthChallenge? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$core.int get nonce => $_getIZ(0);
|
||||
@$pb.TagNumber(1)
|
||||
set nonce($core.int value) => $_setSignedInt32(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasNonce() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearNonce() => $_clearField(1);
|
||||
}
|
||||
|
||||
class AuthChallengeSolution extends $pb.GeneratedMessage {
|
||||
factory AuthChallengeSolution({
|
||||
$core.List<$core.int>? signature,
|
||||
}) {
|
||||
final result = create();
|
||||
if (signature != null) result.signature = signature;
|
||||
return result;
|
||||
}
|
||||
|
||||
AuthChallengeSolution._();
|
||||
|
||||
factory AuthChallengeSolution.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory AuthChallengeSolution.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'AuthChallengeSolution',
|
||||
package: const $pb.PackageName(
|
||||
_omitMessageNames ? '' : 'arbiter.user_agent.auth'),
|
||||
createEmptyInstance: create)
|
||||
..a<$core.List<$core.int>>(
|
||||
1, _omitFieldNames ? '' : 'signature', $pb.PbFieldType.OY)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
AuthChallengeSolution clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
AuthChallengeSolution copyWith(
|
||||
void Function(AuthChallengeSolution) updates) =>
|
||||
super.copyWith((message) => updates(message as AuthChallengeSolution))
|
||||
as AuthChallengeSolution;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static AuthChallengeSolution create() => AuthChallengeSolution._();
|
||||
@$core.override
|
||||
AuthChallengeSolution createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static AuthChallengeSolution getDefault() => _defaultInstance ??=
|
||||
$pb.GeneratedMessage.$_defaultFor<AuthChallengeSolution>(create);
|
||||
static AuthChallengeSolution? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$core.List<$core.int> get signature => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set signature($core.List<$core.int> value) => $_setBytes(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasSignature() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearSignature() => $_clearField(1);
|
||||
}
|
||||
|
||||
enum Request_Payload { challengeRequest, challengeSolution, notSet }
|
||||
|
||||
class Request extends $pb.GeneratedMessage {
|
||||
factory Request({
|
||||
AuthChallengeRequest? challengeRequest,
|
||||
AuthChallengeSolution? challengeSolution,
|
||||
}) {
|
||||
final result = create();
|
||||
if (challengeRequest != null) result.challengeRequest = challengeRequest;
|
||||
if (challengeSolution != null) result.challengeSolution = challengeSolution;
|
||||
return result;
|
||||
}
|
||||
|
||||
Request._();
|
||||
|
||||
factory Request.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory Request.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static const $core.Map<$core.int, Request_Payload> _Request_PayloadByTag = {
|
||||
1: Request_Payload.challengeRequest,
|
||||
2: Request_Payload.challengeSolution,
|
||||
0: Request_Payload.notSet
|
||||
};
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'Request',
|
||||
package: const $pb.PackageName(
|
||||
_omitMessageNames ? '' : 'arbiter.user_agent.auth'),
|
||||
createEmptyInstance: create)
|
||||
..oo(0, [1, 2])
|
||||
..aOM<AuthChallengeRequest>(1, _omitFieldNames ? '' : 'challengeRequest',
|
||||
subBuilder: AuthChallengeRequest.create)
|
||||
..aOM<AuthChallengeSolution>(2, _omitFieldNames ? '' : 'challengeSolution',
|
||||
subBuilder: AuthChallengeSolution.create)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Request clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Request copyWith(void Function(Request) updates) =>
|
||||
super.copyWith((message) => updates(message as Request)) as Request;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Request create() => Request._();
|
||||
@$core.override
|
||||
Request createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Request getDefault() =>
|
||||
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Request>(create);
|
||||
static Request? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
Request_Payload whichPayload() => _Request_PayloadByTag[$_whichOneof(0)]!;
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
void clearPayload() => $_clearField($_whichOneof(0));
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
AuthChallengeRequest get challengeRequest => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set challengeRequest(AuthChallengeRequest value) => $_setField(1, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasChallengeRequest() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearChallengeRequest() => $_clearField(1);
|
||||
@$pb.TagNumber(1)
|
||||
AuthChallengeRequest ensureChallengeRequest() => $_ensure(0);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
AuthChallengeSolution get challengeSolution => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set challengeSolution(AuthChallengeSolution value) => $_setField(2, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasChallengeSolution() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearChallengeSolution() => $_clearField(2);
|
||||
@$pb.TagNumber(2)
|
||||
AuthChallengeSolution ensureChallengeSolution() => $_ensure(1);
|
||||
}
|
||||
|
||||
enum Response_Payload { challenge, result, notSet }
|
||||
|
||||
class Response extends $pb.GeneratedMessage {
|
||||
factory Response({
|
||||
AuthChallenge? challenge,
|
||||
AuthResult? result,
|
||||
}) {
|
||||
final result$ = create();
|
||||
if (challenge != null) result$.challenge = challenge;
|
||||
if (result != null) result$.result = result;
|
||||
return result$;
|
||||
}
|
||||
|
||||
Response._();
|
||||
|
||||
factory Response.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory Response.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static const $core.Map<$core.int, Response_Payload> _Response_PayloadByTag = {
|
||||
1: Response_Payload.challenge,
|
||||
2: Response_Payload.result,
|
||||
0: Response_Payload.notSet
|
||||
};
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'Response',
|
||||
package: const $pb.PackageName(
|
||||
_omitMessageNames ? '' : 'arbiter.user_agent.auth'),
|
||||
createEmptyInstance: create)
|
||||
..oo(0, [1, 2])
|
||||
..aOM<AuthChallenge>(1, _omitFieldNames ? '' : 'challenge',
|
||||
subBuilder: AuthChallenge.create)
|
||||
..aE<AuthResult>(2, _omitFieldNames ? '' : 'result',
|
||||
enumValues: AuthResult.values)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Response clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Response copyWith(void Function(Response) updates) =>
|
||||
super.copyWith((message) => updates(message as Response)) as Response;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Response create() => Response._();
|
||||
@$core.override
|
||||
Response createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Response getDefault() =>
|
||||
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Response>(create);
|
||||
static Response? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
Response_Payload whichPayload() => _Response_PayloadByTag[$_whichOneof(0)]!;
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
void clearPayload() => $_clearField($_whichOneof(0));
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
AuthChallenge get challenge => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set challenge(AuthChallenge value) => $_setField(1, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasChallenge() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearChallenge() => $_clearField(1);
|
||||
@$pb.TagNumber(1)
|
||||
AuthChallenge ensureChallenge() => $_ensure(0);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
AuthResult get result => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set result(AuthResult value) => $_setField(2, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasResult() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearResult() => $_clearField(2);
|
||||
}
|
||||
|
||||
const $core.bool _omitFieldNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const $core.bool _omitMessageNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
77
useragent/lib/proto/user_agent/auth.pbenum.dart
Normal file
77
useragent/lib/proto/user_agent/auth.pbenum.dart
Normal file
@@ -0,0 +1,77 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from user_agent/auth.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 KeyType extends $pb.ProtobufEnum {
|
||||
static const KeyType KEY_TYPE_UNSPECIFIED =
|
||||
KeyType._(0, _omitEnumNames ? '' : 'KEY_TYPE_UNSPECIFIED');
|
||||
static const KeyType KEY_TYPE_ED25519 =
|
||||
KeyType._(1, _omitEnumNames ? '' : 'KEY_TYPE_ED25519');
|
||||
static const KeyType KEY_TYPE_ECDSA_SECP256K1 =
|
||||
KeyType._(2, _omitEnumNames ? '' : 'KEY_TYPE_ECDSA_SECP256K1');
|
||||
static const KeyType KEY_TYPE_RSA =
|
||||
KeyType._(3, _omitEnumNames ? '' : 'KEY_TYPE_RSA');
|
||||
|
||||
static const $core.List<KeyType> values = <KeyType>[
|
||||
KEY_TYPE_UNSPECIFIED,
|
||||
KEY_TYPE_ED25519,
|
||||
KEY_TYPE_ECDSA_SECP256K1,
|
||||
KEY_TYPE_RSA,
|
||||
];
|
||||
|
||||
static final $core.List<KeyType?> _byValue =
|
||||
$pb.ProtobufEnum.$_initByValueList(values, 3);
|
||||
static KeyType? valueOf($core.int value) =>
|
||||
value < 0 || value >= _byValue.length ? null : _byValue[value];
|
||||
|
||||
const KeyType._(super.value, super.name);
|
||||
}
|
||||
|
||||
class AuthResult extends $pb.ProtobufEnum {
|
||||
static const AuthResult AUTH_RESULT_UNSPECIFIED =
|
||||
AuthResult._(0, _omitEnumNames ? '' : 'AUTH_RESULT_UNSPECIFIED');
|
||||
static const AuthResult AUTH_RESULT_SUCCESS =
|
||||
AuthResult._(1, _omitEnumNames ? '' : 'AUTH_RESULT_SUCCESS');
|
||||
static const AuthResult AUTH_RESULT_INVALID_KEY =
|
||||
AuthResult._(2, _omitEnumNames ? '' : 'AUTH_RESULT_INVALID_KEY');
|
||||
static const AuthResult AUTH_RESULT_INVALID_SIGNATURE =
|
||||
AuthResult._(3, _omitEnumNames ? '' : 'AUTH_RESULT_INVALID_SIGNATURE');
|
||||
static const AuthResult AUTH_RESULT_BOOTSTRAP_REQUIRED =
|
||||
AuthResult._(4, _omitEnumNames ? '' : 'AUTH_RESULT_BOOTSTRAP_REQUIRED');
|
||||
static const AuthResult AUTH_RESULT_TOKEN_INVALID =
|
||||
AuthResult._(5, _omitEnumNames ? '' : 'AUTH_RESULT_TOKEN_INVALID');
|
||||
static const AuthResult AUTH_RESULT_INTERNAL =
|
||||
AuthResult._(6, _omitEnumNames ? '' : 'AUTH_RESULT_INTERNAL');
|
||||
|
||||
static const $core.List<AuthResult> values = <AuthResult>[
|
||||
AUTH_RESULT_UNSPECIFIED,
|
||||
AUTH_RESULT_SUCCESS,
|
||||
AUTH_RESULT_INVALID_KEY,
|
||||
AUTH_RESULT_INVALID_SIGNATURE,
|
||||
AUTH_RESULT_BOOTSTRAP_REQUIRED,
|
||||
AUTH_RESULT_TOKEN_INVALID,
|
||||
AUTH_RESULT_INTERNAL,
|
||||
];
|
||||
|
||||
static final $core.List<AuthResult?> _byValue =
|
||||
$pb.ProtobufEnum.$_initByValueList(values, 6);
|
||||
static AuthResult? valueOf($core.int value) =>
|
||||
value < 0 || value >= _byValue.length ? null : _byValue[value];
|
||||
|
||||
const AuthResult._(super.value, super.name);
|
||||
}
|
||||
|
||||
const $core.bool _omitEnumNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_enum_names');
|
||||
182
useragent/lib/proto/user_agent/auth.pbjson.dart
Normal file
182
useragent/lib/proto/user_agent/auth.pbjson.dart
Normal file
@@ -0,0 +1,182 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from user_agent/auth.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
|
||||
// ignore_for_file: unused_import
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
import 'dart:typed_data' as $typed_data;
|
||||
|
||||
@$core.Deprecated('Use keyTypeDescriptor instead')
|
||||
const KeyType$json = {
|
||||
'1': 'KeyType',
|
||||
'2': [
|
||||
{'1': 'KEY_TYPE_UNSPECIFIED', '2': 0},
|
||||
{'1': 'KEY_TYPE_ED25519', '2': 1},
|
||||
{'1': 'KEY_TYPE_ECDSA_SECP256K1', '2': 2},
|
||||
{'1': 'KEY_TYPE_RSA', '2': 3},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `KeyType`. Decode as a `google.protobuf.EnumDescriptorProto`.
|
||||
final $typed_data.Uint8List keyTypeDescriptor = $convert.base64Decode(
|
||||
'CgdLZXlUeXBlEhgKFEtFWV9UWVBFX1VOU1BFQ0lGSUVEEAASFAoQS0VZX1RZUEVfRUQyNTUxOR'
|
||||
'ABEhwKGEtFWV9UWVBFX0VDRFNBX1NFQ1AyNTZLMRACEhAKDEtFWV9UWVBFX1JTQRAD');
|
||||
|
||||
@$core.Deprecated('Use authResultDescriptor instead')
|
||||
const AuthResult$json = {
|
||||
'1': 'AuthResult',
|
||||
'2': [
|
||||
{'1': 'AUTH_RESULT_UNSPECIFIED', '2': 0},
|
||||
{'1': 'AUTH_RESULT_SUCCESS', '2': 1},
|
||||
{'1': 'AUTH_RESULT_INVALID_KEY', '2': 2},
|
||||
{'1': 'AUTH_RESULT_INVALID_SIGNATURE', '2': 3},
|
||||
{'1': 'AUTH_RESULT_BOOTSTRAP_REQUIRED', '2': 4},
|
||||
{'1': 'AUTH_RESULT_TOKEN_INVALID', '2': 5},
|
||||
{'1': 'AUTH_RESULT_INTERNAL', '2': 6},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `AuthResult`. Decode as a `google.protobuf.EnumDescriptorProto`.
|
||||
final $typed_data.Uint8List authResultDescriptor = $convert.base64Decode(
|
||||
'CgpBdXRoUmVzdWx0EhsKF0FVVEhfUkVTVUxUX1VOU1BFQ0lGSUVEEAASFwoTQVVUSF9SRVNVTF'
|
||||
'RfU1VDQ0VTUxABEhsKF0FVVEhfUkVTVUxUX0lOVkFMSURfS0VZEAISIQodQVVUSF9SRVNVTFRf'
|
||||
'SU5WQUxJRF9TSUdOQVRVUkUQAxIiCh5BVVRIX1JFU1VMVF9CT09UU1RSQVBfUkVRVUlSRUQQBB'
|
||||
'IdChlBVVRIX1JFU1VMVF9UT0tFTl9JTlZBTElEEAUSGAoUQVVUSF9SRVNVTFRfSU5URVJOQUwQ'
|
||||
'Bg==');
|
||||
|
||||
@$core.Deprecated('Use authChallengeRequestDescriptor instead')
|
||||
const AuthChallengeRequest$json = {
|
||||
'1': 'AuthChallengeRequest',
|
||||
'2': [
|
||||
{'1': 'pubkey', '3': 1, '4': 1, '5': 12, '10': 'pubkey'},
|
||||
{
|
||||
'1': 'bootstrap_token',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 9,
|
||||
'9': 0,
|
||||
'10': 'bootstrapToken',
|
||||
'17': true
|
||||
},
|
||||
{
|
||||
'1': 'key_type',
|
||||
'3': 3,
|
||||
'4': 1,
|
||||
'5': 14,
|
||||
'6': '.arbiter.user_agent.auth.KeyType',
|
||||
'10': 'keyType'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': '_bootstrap_token'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `AuthChallengeRequest`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List authChallengeRequestDescriptor = $convert.base64Decode(
|
||||
'ChRBdXRoQ2hhbGxlbmdlUmVxdWVzdBIWCgZwdWJrZXkYASABKAxSBnB1YmtleRIsCg9ib290c3'
|
||||
'RyYXBfdG9rZW4YAiABKAlIAFIOYm9vdHN0cmFwVG9rZW6IAQESOwoIa2V5X3R5cGUYAyABKA4y'
|
||||
'IC5hcmJpdGVyLnVzZXJfYWdlbnQuYXV0aC5LZXlUeXBlUgdrZXlUeXBlQhIKEF9ib290c3RyYX'
|
||||
'BfdG9rZW4=');
|
||||
|
||||
@$core.Deprecated('Use authChallengeDescriptor instead')
|
||||
const AuthChallenge$json = {
|
||||
'1': 'AuthChallenge',
|
||||
'2': [
|
||||
{'1': 'nonce', '3': 1, '4': 1, '5': 5, '10': 'nonce'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `AuthChallenge`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List authChallengeDescriptor = $convert
|
||||
.base64Decode('Cg1BdXRoQ2hhbGxlbmdlEhQKBW5vbmNlGAEgASgFUgVub25jZQ==');
|
||||
|
||||
@$core.Deprecated('Use authChallengeSolutionDescriptor instead')
|
||||
const AuthChallengeSolution$json = {
|
||||
'1': 'AuthChallengeSolution',
|
||||
'2': [
|
||||
{'1': 'signature', '3': 1, '4': 1, '5': 12, '10': 'signature'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `AuthChallengeSolution`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List authChallengeSolutionDescriptor = $convert.base64Decode(
|
||||
'ChVBdXRoQ2hhbGxlbmdlU29sdXRpb24SHAoJc2lnbmF0dXJlGAEgASgMUglzaWduYXR1cmU=');
|
||||
|
||||
@$core.Deprecated('Use requestDescriptor instead')
|
||||
const Request$json = {
|
||||
'1': 'Request',
|
||||
'2': [
|
||||
{
|
||||
'1': 'challenge_request',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.auth.AuthChallengeRequest',
|
||||
'9': 0,
|
||||
'10': 'challengeRequest'
|
||||
},
|
||||
{
|
||||
'1': 'challenge_solution',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.auth.AuthChallengeSolution',
|
||||
'9': 0,
|
||||
'10': 'challengeSolution'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'payload'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `Request`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List requestDescriptor = $convert.base64Decode(
|
||||
'CgdSZXF1ZXN0ElwKEWNoYWxsZW5nZV9yZXF1ZXN0GAEgASgLMi0uYXJiaXRlci51c2VyX2FnZW'
|
||||
'50LmF1dGguQXV0aENoYWxsZW5nZVJlcXVlc3RIAFIQY2hhbGxlbmdlUmVxdWVzdBJfChJjaGFs'
|
||||
'bGVuZ2Vfc29sdXRpb24YAiABKAsyLi5hcmJpdGVyLnVzZXJfYWdlbnQuYXV0aC5BdXRoQ2hhbG'
|
||||
'xlbmdlU29sdXRpb25IAFIRY2hhbGxlbmdlU29sdXRpb25CCQoHcGF5bG9hZA==');
|
||||
|
||||
@$core.Deprecated('Use responseDescriptor instead')
|
||||
const Response$json = {
|
||||
'1': 'Response',
|
||||
'2': [
|
||||
{
|
||||
'1': 'challenge',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.auth.AuthChallenge',
|
||||
'9': 0,
|
||||
'10': 'challenge'
|
||||
},
|
||||
{
|
||||
'1': 'result',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 14,
|
||||
'6': '.arbiter.user_agent.auth.AuthResult',
|
||||
'9': 0,
|
||||
'10': 'result'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'payload'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `Response`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List responseDescriptor = $convert.base64Decode(
|
||||
'CghSZXNwb25zZRJGCgljaGFsbGVuZ2UYASABKAsyJi5hcmJpdGVyLnVzZXJfYWdlbnQuYXV0aC'
|
||||
'5BdXRoQ2hhbGxlbmdlSABSCWNoYWxsZW5nZRI9CgZyZXN1bHQYAiABKA4yIy5hcmJpdGVyLnVz'
|
||||
'ZXJfYWdlbnQuYXV0aC5BdXRoUmVzdWx0SABSBnJlc3VsdEIJCgdwYXlsb2Fk');
|
||||
432
useragent/lib/proto/user_agent/evm.pb.dart
Normal file
432
useragent/lib/proto/user_agent/evm.pb.dart
Normal file
@@ -0,0 +1,432 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from user_agent/evm.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;
|
||||
import 'package:protobuf/well_known_types/google/protobuf/empty.pb.dart' as $1;
|
||||
|
||||
import '../evm.pb.dart' as $0;
|
||||
|
||||
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
|
||||
|
||||
class SignTransactionRequest extends $pb.GeneratedMessage {
|
||||
factory SignTransactionRequest({
|
||||
$core.int? clientId,
|
||||
$0.EvmSignTransactionRequest? request,
|
||||
}) {
|
||||
final result = create();
|
||||
if (clientId != null) result.clientId = clientId;
|
||||
if (request != null) result.request = request;
|
||||
return result;
|
||||
}
|
||||
|
||||
SignTransactionRequest._();
|
||||
|
||||
factory SignTransactionRequest.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory SignTransactionRequest.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'SignTransactionRequest',
|
||||
package: const $pb.PackageName(
|
||||
_omitMessageNames ? '' : 'arbiter.user_agent.evm'),
|
||||
createEmptyInstance: create)
|
||||
..aI(1, _omitFieldNames ? '' : 'clientId')
|
||||
..aOM<$0.EvmSignTransactionRequest>(2, _omitFieldNames ? '' : 'request',
|
||||
subBuilder: $0.EvmSignTransactionRequest.create)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
SignTransactionRequest clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
SignTransactionRequest copyWith(
|
||||
void Function(SignTransactionRequest) updates) =>
|
||||
super.copyWith((message) => updates(message as SignTransactionRequest))
|
||||
as SignTransactionRequest;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static SignTransactionRequest create() => SignTransactionRequest._();
|
||||
@$core.override
|
||||
SignTransactionRequest createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static SignTransactionRequest getDefault() => _defaultInstance ??=
|
||||
$pb.GeneratedMessage.$_defaultFor<SignTransactionRequest>(create);
|
||||
static SignTransactionRequest? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$core.int get clientId => $_getIZ(0);
|
||||
@$pb.TagNumber(1)
|
||||
set clientId($core.int value) => $_setSignedInt32(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasClientId() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearClientId() => $_clearField(1);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$0.EvmSignTransactionRequest get request => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set request($0.EvmSignTransactionRequest value) => $_setField(2, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasRequest() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearRequest() => $_clearField(2);
|
||||
@$pb.TagNumber(2)
|
||||
$0.EvmSignTransactionRequest ensureRequest() => $_ensure(1);
|
||||
}
|
||||
|
||||
enum Request_Payload {
|
||||
walletCreate,
|
||||
walletList,
|
||||
grantCreate,
|
||||
grantDelete,
|
||||
grantList,
|
||||
signTransaction,
|
||||
notSet
|
||||
}
|
||||
|
||||
class Request extends $pb.GeneratedMessage {
|
||||
factory Request({
|
||||
$1.Empty? walletCreate,
|
||||
$1.Empty? walletList,
|
||||
$0.EvmGrantCreateRequest? grantCreate,
|
||||
$0.EvmGrantDeleteRequest? grantDelete,
|
||||
$0.EvmGrantListRequest? grantList,
|
||||
SignTransactionRequest? signTransaction,
|
||||
}) {
|
||||
final result = create();
|
||||
if (walletCreate != null) result.walletCreate = walletCreate;
|
||||
if (walletList != null) result.walletList = walletList;
|
||||
if (grantCreate != null) result.grantCreate = grantCreate;
|
||||
if (grantDelete != null) result.grantDelete = grantDelete;
|
||||
if (grantList != null) result.grantList = grantList;
|
||||
if (signTransaction != null) result.signTransaction = signTransaction;
|
||||
return result;
|
||||
}
|
||||
|
||||
Request._();
|
||||
|
||||
factory Request.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory Request.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static const $core.Map<$core.int, Request_Payload> _Request_PayloadByTag = {
|
||||
1: Request_Payload.walletCreate,
|
||||
2: Request_Payload.walletList,
|
||||
3: Request_Payload.grantCreate,
|
||||
4: Request_Payload.grantDelete,
|
||||
5: Request_Payload.grantList,
|
||||
6: Request_Payload.signTransaction,
|
||||
0: Request_Payload.notSet
|
||||
};
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'Request',
|
||||
package: const $pb.PackageName(
|
||||
_omitMessageNames ? '' : 'arbiter.user_agent.evm'),
|
||||
createEmptyInstance: create)
|
||||
..oo(0, [1, 2, 3, 4, 5, 6])
|
||||
..aOM<$1.Empty>(1, _omitFieldNames ? '' : 'walletCreate',
|
||||
subBuilder: $1.Empty.create)
|
||||
..aOM<$1.Empty>(2, _omitFieldNames ? '' : 'walletList',
|
||||
subBuilder: $1.Empty.create)
|
||||
..aOM<$0.EvmGrantCreateRequest>(3, _omitFieldNames ? '' : 'grantCreate',
|
||||
subBuilder: $0.EvmGrantCreateRequest.create)
|
||||
..aOM<$0.EvmGrantDeleteRequest>(4, _omitFieldNames ? '' : 'grantDelete',
|
||||
subBuilder: $0.EvmGrantDeleteRequest.create)
|
||||
..aOM<$0.EvmGrantListRequest>(5, _omitFieldNames ? '' : 'grantList',
|
||||
subBuilder: $0.EvmGrantListRequest.create)
|
||||
..aOM<SignTransactionRequest>(6, _omitFieldNames ? '' : 'signTransaction',
|
||||
subBuilder: SignTransactionRequest.create)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Request clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Request copyWith(void Function(Request) updates) =>
|
||||
super.copyWith((message) => updates(message as Request)) as Request;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Request create() => Request._();
|
||||
@$core.override
|
||||
Request createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Request getDefault() =>
|
||||
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Request>(create);
|
||||
static Request? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
@$pb.TagNumber(3)
|
||||
@$pb.TagNumber(4)
|
||||
@$pb.TagNumber(5)
|
||||
@$pb.TagNumber(6)
|
||||
Request_Payload whichPayload() => _Request_PayloadByTag[$_whichOneof(0)]!;
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
@$pb.TagNumber(3)
|
||||
@$pb.TagNumber(4)
|
||||
@$pb.TagNumber(5)
|
||||
@$pb.TagNumber(6)
|
||||
void clearPayload() => $_clearField($_whichOneof(0));
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$1.Empty get walletCreate => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set walletCreate($1.Empty value) => $_setField(1, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasWalletCreate() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearWalletCreate() => $_clearField(1);
|
||||
@$pb.TagNumber(1)
|
||||
$1.Empty ensureWalletCreate() => $_ensure(0);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$1.Empty get walletList => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set walletList($1.Empty value) => $_setField(2, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasWalletList() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearWalletList() => $_clearField(2);
|
||||
@$pb.TagNumber(2)
|
||||
$1.Empty ensureWalletList() => $_ensure(1);
|
||||
|
||||
@$pb.TagNumber(3)
|
||||
$0.EvmGrantCreateRequest get grantCreate => $_getN(2);
|
||||
@$pb.TagNumber(3)
|
||||
set grantCreate($0.EvmGrantCreateRequest value) => $_setField(3, value);
|
||||
@$pb.TagNumber(3)
|
||||
$core.bool hasGrantCreate() => $_has(2);
|
||||
@$pb.TagNumber(3)
|
||||
void clearGrantCreate() => $_clearField(3);
|
||||
@$pb.TagNumber(3)
|
||||
$0.EvmGrantCreateRequest ensureGrantCreate() => $_ensure(2);
|
||||
|
||||
@$pb.TagNumber(4)
|
||||
$0.EvmGrantDeleteRequest get grantDelete => $_getN(3);
|
||||
@$pb.TagNumber(4)
|
||||
set grantDelete($0.EvmGrantDeleteRequest value) => $_setField(4, value);
|
||||
@$pb.TagNumber(4)
|
||||
$core.bool hasGrantDelete() => $_has(3);
|
||||
@$pb.TagNumber(4)
|
||||
void clearGrantDelete() => $_clearField(4);
|
||||
@$pb.TagNumber(4)
|
||||
$0.EvmGrantDeleteRequest ensureGrantDelete() => $_ensure(3);
|
||||
|
||||
@$pb.TagNumber(5)
|
||||
$0.EvmGrantListRequest get grantList => $_getN(4);
|
||||
@$pb.TagNumber(5)
|
||||
set grantList($0.EvmGrantListRequest value) => $_setField(5, value);
|
||||
@$pb.TagNumber(5)
|
||||
$core.bool hasGrantList() => $_has(4);
|
||||
@$pb.TagNumber(5)
|
||||
void clearGrantList() => $_clearField(5);
|
||||
@$pb.TagNumber(5)
|
||||
$0.EvmGrantListRequest ensureGrantList() => $_ensure(4);
|
||||
|
||||
@$pb.TagNumber(6)
|
||||
SignTransactionRequest get signTransaction => $_getN(5);
|
||||
@$pb.TagNumber(6)
|
||||
set signTransaction(SignTransactionRequest value) => $_setField(6, value);
|
||||
@$pb.TagNumber(6)
|
||||
$core.bool hasSignTransaction() => $_has(5);
|
||||
@$pb.TagNumber(6)
|
||||
void clearSignTransaction() => $_clearField(6);
|
||||
@$pb.TagNumber(6)
|
||||
SignTransactionRequest ensureSignTransaction() => $_ensure(5);
|
||||
}
|
||||
|
||||
enum Response_Payload {
|
||||
walletCreate,
|
||||
walletList,
|
||||
grantCreate,
|
||||
grantDelete,
|
||||
grantList,
|
||||
signTransaction,
|
||||
notSet
|
||||
}
|
||||
|
||||
class Response extends $pb.GeneratedMessage {
|
||||
factory Response({
|
||||
$0.WalletCreateResponse? walletCreate,
|
||||
$0.WalletListResponse? walletList,
|
||||
$0.EvmGrantCreateResponse? grantCreate,
|
||||
$0.EvmGrantDeleteResponse? grantDelete,
|
||||
$0.EvmGrantListResponse? grantList,
|
||||
$0.EvmSignTransactionResponse? signTransaction,
|
||||
}) {
|
||||
final result = create();
|
||||
if (walletCreate != null) result.walletCreate = walletCreate;
|
||||
if (walletList != null) result.walletList = walletList;
|
||||
if (grantCreate != null) result.grantCreate = grantCreate;
|
||||
if (grantDelete != null) result.grantDelete = grantDelete;
|
||||
if (grantList != null) result.grantList = grantList;
|
||||
if (signTransaction != null) result.signTransaction = signTransaction;
|
||||
return result;
|
||||
}
|
||||
|
||||
Response._();
|
||||
|
||||
factory Response.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory Response.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static const $core.Map<$core.int, Response_Payload> _Response_PayloadByTag = {
|
||||
1: Response_Payload.walletCreate,
|
||||
2: Response_Payload.walletList,
|
||||
3: Response_Payload.grantCreate,
|
||||
4: Response_Payload.grantDelete,
|
||||
5: Response_Payload.grantList,
|
||||
6: Response_Payload.signTransaction,
|
||||
0: Response_Payload.notSet
|
||||
};
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'Response',
|
||||
package: const $pb.PackageName(
|
||||
_omitMessageNames ? '' : 'arbiter.user_agent.evm'),
|
||||
createEmptyInstance: create)
|
||||
..oo(0, [1, 2, 3, 4, 5, 6])
|
||||
..aOM<$0.WalletCreateResponse>(1, _omitFieldNames ? '' : 'walletCreate',
|
||||
subBuilder: $0.WalletCreateResponse.create)
|
||||
..aOM<$0.WalletListResponse>(2, _omitFieldNames ? '' : 'walletList',
|
||||
subBuilder: $0.WalletListResponse.create)
|
||||
..aOM<$0.EvmGrantCreateResponse>(3, _omitFieldNames ? '' : 'grantCreate',
|
||||
subBuilder: $0.EvmGrantCreateResponse.create)
|
||||
..aOM<$0.EvmGrantDeleteResponse>(4, _omitFieldNames ? '' : 'grantDelete',
|
||||
subBuilder: $0.EvmGrantDeleteResponse.create)
|
||||
..aOM<$0.EvmGrantListResponse>(5, _omitFieldNames ? '' : 'grantList',
|
||||
subBuilder: $0.EvmGrantListResponse.create)
|
||||
..aOM<$0.EvmSignTransactionResponse>(
|
||||
6, _omitFieldNames ? '' : 'signTransaction',
|
||||
subBuilder: $0.EvmSignTransactionResponse.create)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Response clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Response copyWith(void Function(Response) updates) =>
|
||||
super.copyWith((message) => updates(message as Response)) as Response;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Response create() => Response._();
|
||||
@$core.override
|
||||
Response createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Response getDefault() =>
|
||||
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Response>(create);
|
||||
static Response? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
@$pb.TagNumber(3)
|
||||
@$pb.TagNumber(4)
|
||||
@$pb.TagNumber(5)
|
||||
@$pb.TagNumber(6)
|
||||
Response_Payload whichPayload() => _Response_PayloadByTag[$_whichOneof(0)]!;
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
@$pb.TagNumber(3)
|
||||
@$pb.TagNumber(4)
|
||||
@$pb.TagNumber(5)
|
||||
@$pb.TagNumber(6)
|
||||
void clearPayload() => $_clearField($_whichOneof(0));
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$0.WalletCreateResponse get walletCreate => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set walletCreate($0.WalletCreateResponse value) => $_setField(1, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasWalletCreate() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearWalletCreate() => $_clearField(1);
|
||||
@$pb.TagNumber(1)
|
||||
$0.WalletCreateResponse ensureWalletCreate() => $_ensure(0);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$0.WalletListResponse get walletList => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set walletList($0.WalletListResponse value) => $_setField(2, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasWalletList() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearWalletList() => $_clearField(2);
|
||||
@$pb.TagNumber(2)
|
||||
$0.WalletListResponse ensureWalletList() => $_ensure(1);
|
||||
|
||||
@$pb.TagNumber(3)
|
||||
$0.EvmGrantCreateResponse get grantCreate => $_getN(2);
|
||||
@$pb.TagNumber(3)
|
||||
set grantCreate($0.EvmGrantCreateResponse value) => $_setField(3, value);
|
||||
@$pb.TagNumber(3)
|
||||
$core.bool hasGrantCreate() => $_has(2);
|
||||
@$pb.TagNumber(3)
|
||||
void clearGrantCreate() => $_clearField(3);
|
||||
@$pb.TagNumber(3)
|
||||
$0.EvmGrantCreateResponse ensureGrantCreate() => $_ensure(2);
|
||||
|
||||
@$pb.TagNumber(4)
|
||||
$0.EvmGrantDeleteResponse get grantDelete => $_getN(3);
|
||||
@$pb.TagNumber(4)
|
||||
set grantDelete($0.EvmGrantDeleteResponse value) => $_setField(4, value);
|
||||
@$pb.TagNumber(4)
|
||||
$core.bool hasGrantDelete() => $_has(3);
|
||||
@$pb.TagNumber(4)
|
||||
void clearGrantDelete() => $_clearField(4);
|
||||
@$pb.TagNumber(4)
|
||||
$0.EvmGrantDeleteResponse ensureGrantDelete() => $_ensure(3);
|
||||
|
||||
@$pb.TagNumber(5)
|
||||
$0.EvmGrantListResponse get grantList => $_getN(4);
|
||||
@$pb.TagNumber(5)
|
||||
set grantList($0.EvmGrantListResponse value) => $_setField(5, value);
|
||||
@$pb.TagNumber(5)
|
||||
$core.bool hasGrantList() => $_has(4);
|
||||
@$pb.TagNumber(5)
|
||||
void clearGrantList() => $_clearField(5);
|
||||
@$pb.TagNumber(5)
|
||||
$0.EvmGrantListResponse ensureGrantList() => $_ensure(4);
|
||||
|
||||
@$pb.TagNumber(6)
|
||||
$0.EvmSignTransactionResponse get signTransaction => $_getN(5);
|
||||
@$pb.TagNumber(6)
|
||||
set signTransaction($0.EvmSignTransactionResponse value) =>
|
||||
$_setField(6, value);
|
||||
@$pb.TagNumber(6)
|
||||
$core.bool hasSignTransaction() => $_has(5);
|
||||
@$pb.TagNumber(6)
|
||||
void clearSignTransaction() => $_clearField(6);
|
||||
@$pb.TagNumber(6)
|
||||
$0.EvmSignTransactionResponse ensureSignTransaction() => $_ensure(5);
|
||||
}
|
||||
|
||||
const $core.bool _omitFieldNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const $core.bool _omitMessageNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
11
useragent/lib/proto/user_agent/evm.pbenum.dart
Normal file
11
useragent/lib/proto/user_agent/evm.pbenum.dart
Normal file
@@ -0,0 +1,11 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from user_agent/evm.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
|
||||
190
useragent/lib/proto/user_agent/evm.pbjson.dart
Normal file
190
useragent/lib/proto/user_agent/evm.pbjson.dart
Normal file
@@ -0,0 +1,190 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from user_agent/evm.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
|
||||
// ignore_for_file: unused_import
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
import 'dart:typed_data' as $typed_data;
|
||||
|
||||
@$core.Deprecated('Use signTransactionRequestDescriptor instead')
|
||||
const SignTransactionRequest$json = {
|
||||
'1': 'SignTransactionRequest',
|
||||
'2': [
|
||||
{'1': 'client_id', '3': 1, '4': 1, '5': 5, '10': 'clientId'},
|
||||
{
|
||||
'1': 'request',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.evm.EvmSignTransactionRequest',
|
||||
'10': 'request'
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `SignTransactionRequest`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List signTransactionRequestDescriptor = $convert.base64Decode(
|
||||
'ChZTaWduVHJhbnNhY3Rpb25SZXF1ZXN0EhsKCWNsaWVudF9pZBgBIAEoBVIIY2xpZW50SWQSQA'
|
||||
'oHcmVxdWVzdBgCIAEoCzImLmFyYml0ZXIuZXZtLkV2bVNpZ25UcmFuc2FjdGlvblJlcXVlc3RS'
|
||||
'B3JlcXVlc3Q=');
|
||||
|
||||
@$core.Deprecated('Use requestDescriptor instead')
|
||||
const Request$json = {
|
||||
'1': 'Request',
|
||||
'2': [
|
||||
{
|
||||
'1': 'wallet_create',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.google.protobuf.Empty',
|
||||
'9': 0,
|
||||
'10': 'walletCreate'
|
||||
},
|
||||
{
|
||||
'1': 'wallet_list',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.google.protobuf.Empty',
|
||||
'9': 0,
|
||||
'10': 'walletList'
|
||||
},
|
||||
{
|
||||
'1': 'grant_create',
|
||||
'3': 3,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.evm.EvmGrantCreateRequest',
|
||||
'9': 0,
|
||||
'10': 'grantCreate'
|
||||
},
|
||||
{
|
||||
'1': 'grant_delete',
|
||||
'3': 4,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.evm.EvmGrantDeleteRequest',
|
||||
'9': 0,
|
||||
'10': 'grantDelete'
|
||||
},
|
||||
{
|
||||
'1': 'grant_list',
|
||||
'3': 5,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.evm.EvmGrantListRequest',
|
||||
'9': 0,
|
||||
'10': 'grantList'
|
||||
},
|
||||
{
|
||||
'1': 'sign_transaction',
|
||||
'3': 6,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.evm.SignTransactionRequest',
|
||||
'9': 0,
|
||||
'10': 'signTransaction'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'payload'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `Request`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List requestDescriptor = $convert.base64Decode(
|
||||
'CgdSZXF1ZXN0Ej0KDXdhbGxldF9jcmVhdGUYASABKAsyFi5nb29nbGUucHJvdG9idWYuRW1wdH'
|
||||
'lIAFIMd2FsbGV0Q3JlYXRlEjkKC3dhbGxldF9saXN0GAIgASgLMhYuZ29vZ2xlLnByb3RvYnVm'
|
||||
'LkVtcHR5SABSCndhbGxldExpc3QSRwoMZ3JhbnRfY3JlYXRlGAMgASgLMiIuYXJiaXRlci5ldm'
|
||||
'0uRXZtR3JhbnRDcmVhdGVSZXF1ZXN0SABSC2dyYW50Q3JlYXRlEkcKDGdyYW50X2RlbGV0ZRgE'
|
||||
'IAEoCzIiLmFyYml0ZXIuZXZtLkV2bUdyYW50RGVsZXRlUmVxdWVzdEgAUgtncmFudERlbGV0ZR'
|
||||
'JBCgpncmFudF9saXN0GAUgASgLMiAuYXJiaXRlci5ldm0uRXZtR3JhbnRMaXN0UmVxdWVzdEgA'
|
||||
'UglncmFudExpc3QSWwoQc2lnbl90cmFuc2FjdGlvbhgGIAEoCzIuLmFyYml0ZXIudXNlcl9hZ2'
|
||||
'VudC5ldm0uU2lnblRyYW5zYWN0aW9uUmVxdWVzdEgAUg9zaWduVHJhbnNhY3Rpb25CCQoHcGF5'
|
||||
'bG9hZA==');
|
||||
|
||||
@$core.Deprecated('Use responseDescriptor instead')
|
||||
const Response$json = {
|
||||
'1': 'Response',
|
||||
'2': [
|
||||
{
|
||||
'1': 'wallet_create',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.evm.WalletCreateResponse',
|
||||
'9': 0,
|
||||
'10': 'walletCreate'
|
||||
},
|
||||
{
|
||||
'1': 'wallet_list',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.evm.WalletListResponse',
|
||||
'9': 0,
|
||||
'10': 'walletList'
|
||||
},
|
||||
{
|
||||
'1': 'grant_create',
|
||||
'3': 3,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.evm.EvmGrantCreateResponse',
|
||||
'9': 0,
|
||||
'10': 'grantCreate'
|
||||
},
|
||||
{
|
||||
'1': 'grant_delete',
|
||||
'3': 4,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.evm.EvmGrantDeleteResponse',
|
||||
'9': 0,
|
||||
'10': 'grantDelete'
|
||||
},
|
||||
{
|
||||
'1': 'grant_list',
|
||||
'3': 5,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.evm.EvmGrantListResponse',
|
||||
'9': 0,
|
||||
'10': 'grantList'
|
||||
},
|
||||
{
|
||||
'1': 'sign_transaction',
|
||||
'3': 6,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.evm.EvmSignTransactionResponse',
|
||||
'9': 0,
|
||||
'10': 'signTransaction'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'payload'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `Response`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List responseDescriptor = $convert.base64Decode(
|
||||
'CghSZXNwb25zZRJICg13YWxsZXRfY3JlYXRlGAEgASgLMiEuYXJiaXRlci5ldm0uV2FsbGV0Q3'
|
||||
'JlYXRlUmVzcG9uc2VIAFIMd2FsbGV0Q3JlYXRlEkIKC3dhbGxldF9saXN0GAIgASgLMh8uYXJi'
|
||||
'aXRlci5ldm0uV2FsbGV0TGlzdFJlc3BvbnNlSABSCndhbGxldExpc3QSSAoMZ3JhbnRfY3JlYX'
|
||||
'RlGAMgASgLMiMuYXJiaXRlci5ldm0uRXZtR3JhbnRDcmVhdGVSZXNwb25zZUgAUgtncmFudENy'
|
||||
'ZWF0ZRJICgxncmFudF9kZWxldGUYBCABKAsyIy5hcmJpdGVyLmV2bS5Fdm1HcmFudERlbGV0ZV'
|
||||
'Jlc3BvbnNlSABSC2dyYW50RGVsZXRlEkIKCmdyYW50X2xpc3QYBSABKAsyIS5hcmJpdGVyLmV2'
|
||||
'bS5Fdm1HcmFudExpc3RSZXNwb25zZUgAUglncmFudExpc3QSVAoQc2lnbl90cmFuc2FjdGlvbh'
|
||||
'gGIAEoCzInLmFyYml0ZXIuZXZtLkV2bVNpZ25UcmFuc2FjdGlvblJlc3BvbnNlSABSD3NpZ25U'
|
||||
'cmFuc2FjdGlvbkIJCgdwYXlsb2Fk');
|
||||
1197
useragent/lib/proto/user_agent/sdk_client.pb.dart
Normal file
1197
useragent/lib/proto/user_agent/sdk_client.pb.dart
Normal file
File diff suppressed because it is too large
Load Diff
46
useragent/lib/proto/user_agent/sdk_client.pbenum.dart
Normal file
46
useragent/lib/proto/user_agent/sdk_client.pbenum.dart
Normal file
@@ -0,0 +1,46 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from user_agent/sdk_client.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 Error extends $pb.ProtobufEnum {
|
||||
static const Error ERROR_UNSPECIFIED =
|
||||
Error._(0, _omitEnumNames ? '' : 'ERROR_UNSPECIFIED');
|
||||
static const Error ERROR_ALREADY_EXISTS =
|
||||
Error._(1, _omitEnumNames ? '' : 'ERROR_ALREADY_EXISTS');
|
||||
static const Error ERROR_NOT_FOUND =
|
||||
Error._(2, _omitEnumNames ? '' : 'ERROR_NOT_FOUND');
|
||||
static const Error ERROR_HAS_RELATED_DATA =
|
||||
Error._(3, _omitEnumNames ? '' : 'ERROR_HAS_RELATED_DATA');
|
||||
static const Error ERROR_INTERNAL =
|
||||
Error._(4, _omitEnumNames ? '' : 'ERROR_INTERNAL');
|
||||
|
||||
static const $core.List<Error> values = <Error>[
|
||||
ERROR_UNSPECIFIED,
|
||||
ERROR_ALREADY_EXISTS,
|
||||
ERROR_NOT_FOUND,
|
||||
ERROR_HAS_RELATED_DATA,
|
||||
ERROR_INTERNAL,
|
||||
];
|
||||
|
||||
static final $core.List<Error?> _byValue =
|
||||
$pb.ProtobufEnum.$_initByValueList(values, 4);
|
||||
static Error? valueOf($core.int value) =>
|
||||
value < 0 || value >= _byValue.length ? null : _byValue[value];
|
||||
|
||||
const Error._(super.value, super.name);
|
||||
}
|
||||
|
||||
const $core.bool _omitEnumNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_enum_names');
|
||||
438
useragent/lib/proto/user_agent/sdk_client.pbjson.dart
Normal file
438
useragent/lib/proto/user_agent/sdk_client.pbjson.dart
Normal file
@@ -0,0 +1,438 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from user_agent/sdk_client.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
|
||||
// ignore_for_file: unused_import
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
import 'dart:typed_data' as $typed_data;
|
||||
|
||||
@$core.Deprecated('Use errorDescriptor instead')
|
||||
const Error$json = {
|
||||
'1': 'Error',
|
||||
'2': [
|
||||
{'1': 'ERROR_UNSPECIFIED', '2': 0},
|
||||
{'1': 'ERROR_ALREADY_EXISTS', '2': 1},
|
||||
{'1': 'ERROR_NOT_FOUND', '2': 2},
|
||||
{'1': 'ERROR_HAS_RELATED_DATA', '2': 3},
|
||||
{'1': 'ERROR_INTERNAL', '2': 4},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `Error`. Decode as a `google.protobuf.EnumDescriptorProto`.
|
||||
final $typed_data.Uint8List errorDescriptor = $convert.base64Decode(
|
||||
'CgVFcnJvchIVChFFUlJPUl9VTlNQRUNJRklFRBAAEhgKFEVSUk9SX0FMUkVBRFlfRVhJU1RTEA'
|
||||
'ESEwoPRVJST1JfTk9UX0ZPVU5EEAISGgoWRVJST1JfSEFTX1JFTEFURURfREFUQRADEhIKDkVS'
|
||||
'Uk9SX0lOVEVSTkFMEAQ=');
|
||||
|
||||
@$core.Deprecated('Use revokeRequestDescriptor instead')
|
||||
const RevokeRequest$json = {
|
||||
'1': 'RevokeRequest',
|
||||
'2': [
|
||||
{'1': 'client_id', '3': 1, '4': 1, '5': 5, '10': 'clientId'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `RevokeRequest`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List revokeRequestDescriptor = $convert.base64Decode(
|
||||
'Cg1SZXZva2VSZXF1ZXN0EhsKCWNsaWVudF9pZBgBIAEoBVIIY2xpZW50SWQ=');
|
||||
|
||||
@$core.Deprecated('Use entryDescriptor instead')
|
||||
const Entry$json = {
|
||||
'1': 'Entry',
|
||||
'2': [
|
||||
{'1': 'id', '3': 1, '4': 1, '5': 5, '10': 'id'},
|
||||
{'1': 'pubkey', '3': 2, '4': 1, '5': 12, '10': 'pubkey'},
|
||||
{
|
||||
'1': 'info',
|
||||
'3': 3,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.shared.ClientInfo',
|
||||
'10': 'info'
|
||||
},
|
||||
{'1': 'created_at', '3': 4, '4': 1, '5': 5, '10': 'createdAt'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `Entry`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List entryDescriptor = $convert.base64Decode(
|
||||
'CgVFbnRyeRIOCgJpZBgBIAEoBVICaWQSFgoGcHVia2V5GAIgASgMUgZwdWJrZXkSLgoEaW5mbx'
|
||||
'gDIAEoCzIaLmFyYml0ZXIuc2hhcmVkLkNsaWVudEluZm9SBGluZm8SHQoKY3JlYXRlZF9hdBgE'
|
||||
'IAEoBVIJY3JlYXRlZEF0');
|
||||
|
||||
@$core.Deprecated('Use list_Descriptor instead')
|
||||
const List_$json = {
|
||||
'1': 'List',
|
||||
'2': [
|
||||
{
|
||||
'1': 'clients',
|
||||
'3': 1,
|
||||
'4': 3,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.sdk_client.Entry',
|
||||
'10': 'clients'
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `List`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List list_Descriptor = $convert.base64Decode(
|
||||
'CgRMaXN0Ej4KB2NsaWVudHMYASADKAsyJC5hcmJpdGVyLnVzZXJfYWdlbnQuc2RrX2NsaWVudC'
|
||||
'5FbnRyeVIHY2xpZW50cw==');
|
||||
|
||||
@$core.Deprecated('Use revokeResponseDescriptor instead')
|
||||
const RevokeResponse$json = {
|
||||
'1': 'RevokeResponse',
|
||||
'2': [
|
||||
{
|
||||
'1': 'ok',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.google.protobuf.Empty',
|
||||
'9': 0,
|
||||
'10': 'ok'
|
||||
},
|
||||
{
|
||||
'1': 'error',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 14,
|
||||
'6': '.arbiter.user_agent.sdk_client.Error',
|
||||
'9': 0,
|
||||
'10': 'error'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'result'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `RevokeResponse`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List revokeResponseDescriptor = $convert.base64Decode(
|
||||
'Cg5SZXZva2VSZXNwb25zZRIoCgJvaxgBIAEoCzIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eUgAUg'
|
||||
'JvaxI8CgVlcnJvchgCIAEoDjIkLmFyYml0ZXIudXNlcl9hZ2VudC5zZGtfY2xpZW50LkVycm9y'
|
||||
'SABSBWVycm9yQggKBnJlc3VsdA==');
|
||||
|
||||
@$core.Deprecated('Use listResponseDescriptor instead')
|
||||
const ListResponse$json = {
|
||||
'1': 'ListResponse',
|
||||
'2': [
|
||||
{
|
||||
'1': 'clients',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.sdk_client.List',
|
||||
'9': 0,
|
||||
'10': 'clients'
|
||||
},
|
||||
{
|
||||
'1': 'error',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 14,
|
||||
'6': '.arbiter.user_agent.sdk_client.Error',
|
||||
'9': 0,
|
||||
'10': 'error'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'result'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `ListResponse`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List listResponseDescriptor = $convert.base64Decode(
|
||||
'CgxMaXN0UmVzcG9uc2USPwoHY2xpZW50cxgBIAEoCzIjLmFyYml0ZXIudXNlcl9hZ2VudC5zZG'
|
||||
'tfY2xpZW50Lkxpc3RIAFIHY2xpZW50cxI8CgVlcnJvchgCIAEoDjIkLmFyYml0ZXIudXNlcl9h'
|
||||
'Z2VudC5zZGtfY2xpZW50LkVycm9ySABSBWVycm9yQggKBnJlc3VsdA==');
|
||||
|
||||
@$core.Deprecated('Use connectionRequestDescriptor instead')
|
||||
const ConnectionRequest$json = {
|
||||
'1': 'ConnectionRequest',
|
||||
'2': [
|
||||
{'1': 'pubkey', '3': 1, '4': 1, '5': 12, '10': 'pubkey'},
|
||||
{
|
||||
'1': 'info',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.shared.ClientInfo',
|
||||
'10': 'info'
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `ConnectionRequest`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List connectionRequestDescriptor = $convert.base64Decode(
|
||||
'ChFDb25uZWN0aW9uUmVxdWVzdBIWCgZwdWJrZXkYASABKAxSBnB1YmtleRIuCgRpbmZvGAIgAS'
|
||||
'gLMhouYXJiaXRlci5zaGFyZWQuQ2xpZW50SW5mb1IEaW5mbw==');
|
||||
|
||||
@$core.Deprecated('Use connectionResponseDescriptor instead')
|
||||
const ConnectionResponse$json = {
|
||||
'1': 'ConnectionResponse',
|
||||
'2': [
|
||||
{'1': 'approved', '3': 1, '4': 1, '5': 8, '10': 'approved'},
|
||||
{'1': 'pubkey', '3': 2, '4': 1, '5': 12, '10': 'pubkey'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `ConnectionResponse`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List connectionResponseDescriptor = $convert.base64Decode(
|
||||
'ChJDb25uZWN0aW9uUmVzcG9uc2USGgoIYXBwcm92ZWQYASABKAhSCGFwcHJvdmVkEhYKBnB1Ym'
|
||||
'tleRgCIAEoDFIGcHVia2V5');
|
||||
|
||||
@$core.Deprecated('Use connectionCancelDescriptor instead')
|
||||
const ConnectionCancel$json = {
|
||||
'1': 'ConnectionCancel',
|
||||
'2': [
|
||||
{'1': 'pubkey', '3': 1, '4': 1, '5': 12, '10': 'pubkey'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `ConnectionCancel`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List connectionCancelDescriptor = $convert
|
||||
.base64Decode('ChBDb25uZWN0aW9uQ2FuY2VsEhYKBnB1YmtleRgBIAEoDFIGcHVia2V5');
|
||||
|
||||
@$core.Deprecated('Use walletAccessDescriptor instead')
|
||||
const WalletAccess$json = {
|
||||
'1': 'WalletAccess',
|
||||
'2': [
|
||||
{'1': 'wallet_id', '3': 1, '4': 1, '5': 5, '10': 'walletId'},
|
||||
{'1': 'sdk_client_id', '3': 2, '4': 1, '5': 5, '10': 'sdkClientId'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `WalletAccess`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List walletAccessDescriptor = $convert.base64Decode(
|
||||
'CgxXYWxsZXRBY2Nlc3MSGwoJd2FsbGV0X2lkGAEgASgFUgh3YWxsZXRJZBIiCg1zZGtfY2xpZW'
|
||||
'50X2lkGAIgASgFUgtzZGtDbGllbnRJZA==');
|
||||
|
||||
@$core.Deprecated('Use walletAccessEntryDescriptor instead')
|
||||
const WalletAccessEntry$json = {
|
||||
'1': 'WalletAccessEntry',
|
||||
'2': [
|
||||
{'1': 'id', '3': 1, '4': 1, '5': 5, '10': 'id'},
|
||||
{
|
||||
'1': 'access',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.sdk_client.WalletAccess',
|
||||
'10': 'access'
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `WalletAccessEntry`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List walletAccessEntryDescriptor = $convert.base64Decode(
|
||||
'ChFXYWxsZXRBY2Nlc3NFbnRyeRIOCgJpZBgBIAEoBVICaWQSQwoGYWNjZXNzGAIgASgLMisuYX'
|
||||
'JiaXRlci51c2VyX2FnZW50LnNka19jbGllbnQuV2FsbGV0QWNjZXNzUgZhY2Nlc3M=');
|
||||
|
||||
@$core.Deprecated('Use grantWalletAccessDescriptor instead')
|
||||
const GrantWalletAccess$json = {
|
||||
'1': 'GrantWalletAccess',
|
||||
'2': [
|
||||
{
|
||||
'1': 'accesses',
|
||||
'3': 1,
|
||||
'4': 3,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.sdk_client.WalletAccess',
|
||||
'10': 'accesses'
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `GrantWalletAccess`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List grantWalletAccessDescriptor = $convert.base64Decode(
|
||||
'ChFHcmFudFdhbGxldEFjY2VzcxJHCghhY2Nlc3NlcxgBIAMoCzIrLmFyYml0ZXIudXNlcl9hZ2'
|
||||
'VudC5zZGtfY2xpZW50LldhbGxldEFjY2Vzc1IIYWNjZXNzZXM=');
|
||||
|
||||
@$core.Deprecated('Use revokeWalletAccessDescriptor instead')
|
||||
const RevokeWalletAccess$json = {
|
||||
'1': 'RevokeWalletAccess',
|
||||
'2': [
|
||||
{'1': 'accesses', '3': 1, '4': 3, '5': 5, '10': 'accesses'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `RevokeWalletAccess`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List revokeWalletAccessDescriptor =
|
||||
$convert.base64Decode(
|
||||
'ChJSZXZva2VXYWxsZXRBY2Nlc3MSGgoIYWNjZXNzZXMYASADKAVSCGFjY2Vzc2Vz');
|
||||
|
||||
@$core.Deprecated('Use listWalletAccessResponseDescriptor instead')
|
||||
const ListWalletAccessResponse$json = {
|
||||
'1': 'ListWalletAccessResponse',
|
||||
'2': [
|
||||
{
|
||||
'1': 'accesses',
|
||||
'3': 1,
|
||||
'4': 3,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.sdk_client.WalletAccessEntry',
|
||||
'10': 'accesses'
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `ListWalletAccessResponse`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List listWalletAccessResponseDescriptor =
|
||||
$convert.base64Decode(
|
||||
'ChhMaXN0V2FsbGV0QWNjZXNzUmVzcG9uc2USTAoIYWNjZXNzZXMYASADKAsyMC5hcmJpdGVyLn'
|
||||
'VzZXJfYWdlbnQuc2RrX2NsaWVudC5XYWxsZXRBY2Nlc3NFbnRyeVIIYWNjZXNzZXM=');
|
||||
|
||||
@$core.Deprecated('Use requestDescriptor instead')
|
||||
const Request$json = {
|
||||
'1': 'Request',
|
||||
'2': [
|
||||
{
|
||||
'1': 'connection_response',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.sdk_client.ConnectionResponse',
|
||||
'9': 0,
|
||||
'10': 'connectionResponse'
|
||||
},
|
||||
{
|
||||
'1': 'revoke',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.sdk_client.RevokeRequest',
|
||||
'9': 0,
|
||||
'10': 'revoke'
|
||||
},
|
||||
{
|
||||
'1': 'list',
|
||||
'3': 3,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.google.protobuf.Empty',
|
||||
'9': 0,
|
||||
'10': 'list'
|
||||
},
|
||||
{
|
||||
'1': 'grant_wallet_access',
|
||||
'3': 4,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.sdk_client.GrantWalletAccess',
|
||||
'9': 0,
|
||||
'10': 'grantWalletAccess'
|
||||
},
|
||||
{
|
||||
'1': 'revoke_wallet_access',
|
||||
'3': 5,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.sdk_client.RevokeWalletAccess',
|
||||
'9': 0,
|
||||
'10': 'revokeWalletAccess'
|
||||
},
|
||||
{
|
||||
'1': 'list_wallet_access',
|
||||
'3': 6,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.google.protobuf.Empty',
|
||||
'9': 0,
|
||||
'10': 'listWalletAccess'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'payload'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `Request`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List requestDescriptor = $convert.base64Decode(
|
||||
'CgdSZXF1ZXN0EmQKE2Nvbm5lY3Rpb25fcmVzcG9uc2UYASABKAsyMS5hcmJpdGVyLnVzZXJfYW'
|
||||
'dlbnQuc2RrX2NsaWVudC5Db25uZWN0aW9uUmVzcG9uc2VIAFISY29ubmVjdGlvblJlc3BvbnNl'
|
||||
'EkYKBnJldm9rZRgCIAEoCzIsLmFyYml0ZXIudXNlcl9hZ2VudC5zZGtfY2xpZW50LlJldm9rZV'
|
||||
'JlcXVlc3RIAFIGcmV2b2tlEiwKBGxpc3QYAyABKAsyFi5nb29nbGUucHJvdG9idWYuRW1wdHlI'
|
||||
'AFIEbGlzdBJiChNncmFudF93YWxsZXRfYWNjZXNzGAQgASgLMjAuYXJiaXRlci51c2VyX2FnZW'
|
||||
'50LnNka19jbGllbnQuR3JhbnRXYWxsZXRBY2Nlc3NIAFIRZ3JhbnRXYWxsZXRBY2Nlc3MSZQoU'
|
||||
'cmV2b2tlX3dhbGxldF9hY2Nlc3MYBSABKAsyMS5hcmJpdGVyLnVzZXJfYWdlbnQuc2RrX2NsaW'
|
||||
'VudC5SZXZva2VXYWxsZXRBY2Nlc3NIAFIScmV2b2tlV2FsbGV0QWNjZXNzEkYKEmxpc3Rfd2Fs'
|
||||
'bGV0X2FjY2VzcxgGIAEoCzIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eUgAUhBsaXN0V2FsbGV0QW'
|
||||
'NjZXNzQgkKB3BheWxvYWQ=');
|
||||
|
||||
@$core.Deprecated('Use responseDescriptor instead')
|
||||
const Response$json = {
|
||||
'1': 'Response',
|
||||
'2': [
|
||||
{
|
||||
'1': 'connection_request',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.sdk_client.ConnectionRequest',
|
||||
'9': 0,
|
||||
'10': 'connectionRequest'
|
||||
},
|
||||
{
|
||||
'1': 'connection_cancel',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.sdk_client.ConnectionCancel',
|
||||
'9': 0,
|
||||
'10': 'connectionCancel'
|
||||
},
|
||||
{
|
||||
'1': 'revoke',
|
||||
'3': 3,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.sdk_client.RevokeResponse',
|
||||
'9': 0,
|
||||
'10': 'revoke'
|
||||
},
|
||||
{
|
||||
'1': 'list',
|
||||
'3': 4,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.sdk_client.ListResponse',
|
||||
'9': 0,
|
||||
'10': 'list'
|
||||
},
|
||||
{
|
||||
'1': 'list_wallet_access',
|
||||
'3': 5,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.sdk_client.ListWalletAccessResponse',
|
||||
'9': 0,
|
||||
'10': 'listWalletAccess'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'payload'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `Response`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List responseDescriptor = $convert.base64Decode(
|
||||
'CghSZXNwb25zZRJhChJjb25uZWN0aW9uX3JlcXVlc3QYASABKAsyMC5hcmJpdGVyLnVzZXJfYW'
|
||||
'dlbnQuc2RrX2NsaWVudC5Db25uZWN0aW9uUmVxdWVzdEgAUhFjb25uZWN0aW9uUmVxdWVzdBJe'
|
||||
'ChFjb25uZWN0aW9uX2NhbmNlbBgCIAEoCzIvLmFyYml0ZXIudXNlcl9hZ2VudC5zZGtfY2xpZW'
|
||||
'50LkNvbm5lY3Rpb25DYW5jZWxIAFIQY29ubmVjdGlvbkNhbmNlbBJHCgZyZXZva2UYAyABKAsy'
|
||||
'LS5hcmJpdGVyLnVzZXJfYWdlbnQuc2RrX2NsaWVudC5SZXZva2VSZXNwb25zZUgAUgZyZXZva2'
|
||||
'USQQoEbGlzdBgEIAEoCzIrLmFyYml0ZXIudXNlcl9hZ2VudC5zZGtfY2xpZW50Lkxpc3RSZXNw'
|
||||
'b25zZUgAUgRsaXN0EmcKEmxpc3Rfd2FsbGV0X2FjY2VzcxgFIAEoCzI3LmFyYml0ZXIudXNlcl'
|
||||
'9hZ2VudC5zZGtfY2xpZW50Lkxpc3RXYWxsZXRBY2Nlc3NSZXNwb25zZUgAUhBsaXN0V2FsbGV0'
|
||||
'QWNjZXNzQgkKB3BheWxvYWQ=');
|
||||
221
useragent/lib/proto/user_agent/vault/bootstrap.pb.dart
Normal file
221
useragent/lib/proto/user_agent/vault/bootstrap.pb.dart
Normal file
@@ -0,0 +1,221 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from user_agent/vault/bootstrap.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;
|
||||
|
||||
import 'bootstrap.pbenum.dart';
|
||||
|
||||
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
|
||||
|
||||
export 'bootstrap.pbenum.dart';
|
||||
|
||||
class BootstrapEncryptedKey extends $pb.GeneratedMessage {
|
||||
factory BootstrapEncryptedKey({
|
||||
$core.List<$core.int>? nonce,
|
||||
$core.List<$core.int>? ciphertext,
|
||||
$core.List<$core.int>? associatedData,
|
||||
}) {
|
||||
final result = create();
|
||||
if (nonce != null) result.nonce = nonce;
|
||||
if (ciphertext != null) result.ciphertext = ciphertext;
|
||||
if (associatedData != null) result.associatedData = associatedData;
|
||||
return result;
|
||||
}
|
||||
|
||||
BootstrapEncryptedKey._();
|
||||
|
||||
factory BootstrapEncryptedKey.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory BootstrapEncryptedKey.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'BootstrapEncryptedKey',
|
||||
package: const $pb.PackageName(
|
||||
_omitMessageNames ? '' : 'arbiter.user_agent.vault.bootstrap'),
|
||||
createEmptyInstance: create)
|
||||
..a<$core.List<$core.int>>(
|
||||
1, _omitFieldNames ? '' : 'nonce', $pb.PbFieldType.OY)
|
||||
..a<$core.List<$core.int>>(
|
||||
2, _omitFieldNames ? '' : 'ciphertext', $pb.PbFieldType.OY)
|
||||
..a<$core.List<$core.int>>(
|
||||
3, _omitFieldNames ? '' : 'associatedData', $pb.PbFieldType.OY)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
BootstrapEncryptedKey clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
BootstrapEncryptedKey copyWith(
|
||||
void Function(BootstrapEncryptedKey) updates) =>
|
||||
super.copyWith((message) => updates(message as BootstrapEncryptedKey))
|
||||
as BootstrapEncryptedKey;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static BootstrapEncryptedKey create() => BootstrapEncryptedKey._();
|
||||
@$core.override
|
||||
BootstrapEncryptedKey createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static BootstrapEncryptedKey getDefault() => _defaultInstance ??=
|
||||
$pb.GeneratedMessage.$_defaultFor<BootstrapEncryptedKey>(create);
|
||||
static BootstrapEncryptedKey? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$core.List<$core.int> get nonce => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set nonce($core.List<$core.int> value) => $_setBytes(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasNonce() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearNonce() => $_clearField(1);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$core.List<$core.int> get ciphertext => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set ciphertext($core.List<$core.int> value) => $_setBytes(1, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasCiphertext() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearCiphertext() => $_clearField(2);
|
||||
|
||||
@$pb.TagNumber(3)
|
||||
$core.List<$core.int> get associatedData => $_getN(2);
|
||||
@$pb.TagNumber(3)
|
||||
set associatedData($core.List<$core.int> value) => $_setBytes(2, value);
|
||||
@$pb.TagNumber(3)
|
||||
$core.bool hasAssociatedData() => $_has(2);
|
||||
@$pb.TagNumber(3)
|
||||
void clearAssociatedData() => $_clearField(3);
|
||||
}
|
||||
|
||||
class Request extends $pb.GeneratedMessage {
|
||||
factory Request({
|
||||
BootstrapEncryptedKey? encryptedKey,
|
||||
}) {
|
||||
final result = create();
|
||||
if (encryptedKey != null) result.encryptedKey = encryptedKey;
|
||||
return result;
|
||||
}
|
||||
|
||||
Request._();
|
||||
|
||||
factory Request.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory Request.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'Request',
|
||||
package: const $pb.PackageName(
|
||||
_omitMessageNames ? '' : 'arbiter.user_agent.vault.bootstrap'),
|
||||
createEmptyInstance: create)
|
||||
..aOM<BootstrapEncryptedKey>(2, _omitFieldNames ? '' : 'encryptedKey',
|
||||
subBuilder: BootstrapEncryptedKey.create)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Request clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Request copyWith(void Function(Request) updates) =>
|
||||
super.copyWith((message) => updates(message as Request)) as Request;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Request create() => Request._();
|
||||
@$core.override
|
||||
Request createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Request getDefault() =>
|
||||
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Request>(create);
|
||||
static Request? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
BootstrapEncryptedKey get encryptedKey => $_getN(0);
|
||||
@$pb.TagNumber(2)
|
||||
set encryptedKey(BootstrapEncryptedKey value) => $_setField(2, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasEncryptedKey() => $_has(0);
|
||||
@$pb.TagNumber(2)
|
||||
void clearEncryptedKey() => $_clearField(2);
|
||||
@$pb.TagNumber(2)
|
||||
BootstrapEncryptedKey ensureEncryptedKey() => $_ensure(0);
|
||||
}
|
||||
|
||||
class Response extends $pb.GeneratedMessage {
|
||||
factory Response({
|
||||
BootstrapResult? result,
|
||||
}) {
|
||||
final result$ = create();
|
||||
if (result != null) result$.result = result;
|
||||
return result$;
|
||||
}
|
||||
|
||||
Response._();
|
||||
|
||||
factory Response.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory Response.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'Response',
|
||||
package: const $pb.PackageName(
|
||||
_omitMessageNames ? '' : 'arbiter.user_agent.vault.bootstrap'),
|
||||
createEmptyInstance: create)
|
||||
..aE<BootstrapResult>(1, _omitFieldNames ? '' : 'result',
|
||||
enumValues: BootstrapResult.values)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Response clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Response copyWith(void Function(Response) updates) =>
|
||||
super.copyWith((message) => updates(message as Response)) as Response;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Response create() => Response._();
|
||||
@$core.override
|
||||
Response createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Response getDefault() =>
|
||||
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Response>(create);
|
||||
static Response? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
BootstrapResult get result => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set result(BootstrapResult value) => $_setField(1, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasResult() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearResult() => $_clearField(1);
|
||||
}
|
||||
|
||||
const $core.bool _omitFieldNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const $core.bool _omitMessageNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
44
useragent/lib/proto/user_agent/vault/bootstrap.pbenum.dart
Normal file
44
useragent/lib/proto/user_agent/vault/bootstrap.pbenum.dart
Normal file
@@ -0,0 +1,44 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from user_agent/vault/bootstrap.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 BootstrapResult extends $pb.ProtobufEnum {
|
||||
static const BootstrapResult BOOTSTRAP_RESULT_UNSPECIFIED = BootstrapResult._(
|
||||
0, _omitEnumNames ? '' : 'BOOTSTRAP_RESULT_UNSPECIFIED');
|
||||
static const BootstrapResult BOOTSTRAP_RESULT_SUCCESS =
|
||||
BootstrapResult._(1, _omitEnumNames ? '' : 'BOOTSTRAP_RESULT_SUCCESS');
|
||||
static const BootstrapResult BOOTSTRAP_RESULT_ALREADY_BOOTSTRAPPED =
|
||||
BootstrapResult._(
|
||||
2, _omitEnumNames ? '' : 'BOOTSTRAP_RESULT_ALREADY_BOOTSTRAPPED');
|
||||
static const BootstrapResult BOOTSTRAP_RESULT_INVALID_KEY = BootstrapResult._(
|
||||
3, _omitEnumNames ? '' : 'BOOTSTRAP_RESULT_INVALID_KEY');
|
||||
|
||||
static const $core.List<BootstrapResult> values = <BootstrapResult>[
|
||||
BOOTSTRAP_RESULT_UNSPECIFIED,
|
||||
BOOTSTRAP_RESULT_SUCCESS,
|
||||
BOOTSTRAP_RESULT_ALREADY_BOOTSTRAPPED,
|
||||
BOOTSTRAP_RESULT_INVALID_KEY,
|
||||
];
|
||||
|
||||
static final $core.List<BootstrapResult?> _byValue =
|
||||
$pb.ProtobufEnum.$_initByValueList(values, 3);
|
||||
static BootstrapResult? valueOf($core.int value) =>
|
||||
value < 0 || value >= _byValue.length ? null : _byValue[value];
|
||||
|
||||
const BootstrapResult._(super.value, super.name);
|
||||
}
|
||||
|
||||
const $core.bool _omitEnumNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_enum_names');
|
||||
89
useragent/lib/proto/user_agent/vault/bootstrap.pbjson.dart
Normal file
89
useragent/lib/proto/user_agent/vault/bootstrap.pbjson.dart
Normal file
@@ -0,0 +1,89 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from user_agent/vault/bootstrap.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
|
||||
// ignore_for_file: unused_import
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
import 'dart:typed_data' as $typed_data;
|
||||
|
||||
@$core.Deprecated('Use bootstrapResultDescriptor instead')
|
||||
const BootstrapResult$json = {
|
||||
'1': 'BootstrapResult',
|
||||
'2': [
|
||||
{'1': 'BOOTSTRAP_RESULT_UNSPECIFIED', '2': 0},
|
||||
{'1': 'BOOTSTRAP_RESULT_SUCCESS', '2': 1},
|
||||
{'1': 'BOOTSTRAP_RESULT_ALREADY_BOOTSTRAPPED', '2': 2},
|
||||
{'1': 'BOOTSTRAP_RESULT_INVALID_KEY', '2': 3},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `BootstrapResult`. Decode as a `google.protobuf.EnumDescriptorProto`.
|
||||
final $typed_data.Uint8List bootstrapResultDescriptor = $convert.base64Decode(
|
||||
'Cg9Cb290c3RyYXBSZXN1bHQSIAocQk9PVFNUUkFQX1JFU1VMVF9VTlNQRUNJRklFRBAAEhwKGE'
|
||||
'JPT1RTVFJBUF9SRVNVTFRfU1VDQ0VTUxABEikKJUJPT1RTVFJBUF9SRVNVTFRfQUxSRUFEWV9C'
|
||||
'T09UU1RSQVBQRUQQAhIgChxCT09UU1RSQVBfUkVTVUxUX0lOVkFMSURfS0VZEAM=');
|
||||
|
||||
@$core.Deprecated('Use bootstrapEncryptedKeyDescriptor instead')
|
||||
const BootstrapEncryptedKey$json = {
|
||||
'1': 'BootstrapEncryptedKey',
|
||||
'2': [
|
||||
{'1': 'nonce', '3': 1, '4': 1, '5': 12, '10': 'nonce'},
|
||||
{'1': 'ciphertext', '3': 2, '4': 1, '5': 12, '10': 'ciphertext'},
|
||||
{'1': 'associated_data', '3': 3, '4': 1, '5': 12, '10': 'associatedData'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `BootstrapEncryptedKey`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List bootstrapEncryptedKeyDescriptor = $convert.base64Decode(
|
||||
'ChVCb290c3RyYXBFbmNyeXB0ZWRLZXkSFAoFbm9uY2UYASABKAxSBW5vbmNlEh4KCmNpcGhlcn'
|
||||
'RleHQYAiABKAxSCmNpcGhlcnRleHQSJwoPYXNzb2NpYXRlZF9kYXRhGAMgASgMUg5hc3NvY2lh'
|
||||
'dGVkRGF0YQ==');
|
||||
|
||||
@$core.Deprecated('Use requestDescriptor instead')
|
||||
const Request$json = {
|
||||
'1': 'Request',
|
||||
'2': [
|
||||
{
|
||||
'1': 'encrypted_key',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.vault.bootstrap.BootstrapEncryptedKey',
|
||||
'10': 'encryptedKey'
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `Request`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List requestDescriptor = $convert.base64Decode(
|
||||
'CgdSZXF1ZXN0El4KDWVuY3J5cHRlZF9rZXkYAiABKAsyOS5hcmJpdGVyLnVzZXJfYWdlbnQudm'
|
||||
'F1bHQuYm9vdHN0cmFwLkJvb3RzdHJhcEVuY3J5cHRlZEtleVIMZW5jcnlwdGVkS2V5');
|
||||
|
||||
@$core.Deprecated('Use responseDescriptor instead')
|
||||
const Response$json = {
|
||||
'1': 'Response',
|
||||
'2': [
|
||||
{
|
||||
'1': 'result',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 14,
|
||||
'6': '.arbiter.user_agent.vault.bootstrap.BootstrapResult',
|
||||
'10': 'result'
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `Response`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List responseDescriptor = $convert.base64Decode(
|
||||
'CghSZXNwb25zZRJLCgZyZXN1bHQYASABKA4yMy5hcmJpdGVyLnVzZXJfYWdlbnQudmF1bHQuYm'
|
||||
'9vdHN0cmFwLkJvb3RzdHJhcFJlc3VsdFIGcmVzdWx0');
|
||||
392
useragent/lib/proto/user_agent/vault/unseal.pb.dart
Normal file
392
useragent/lib/proto/user_agent/vault/unseal.pb.dart
Normal file
@@ -0,0 +1,392 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from user_agent/vault/unseal.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;
|
||||
|
||||
import 'unseal.pbenum.dart';
|
||||
|
||||
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
|
||||
|
||||
export 'unseal.pbenum.dart';
|
||||
|
||||
class UnsealStart extends $pb.GeneratedMessage {
|
||||
factory UnsealStart({
|
||||
$core.List<$core.int>? clientPubkey,
|
||||
}) {
|
||||
final result = create();
|
||||
if (clientPubkey != null) result.clientPubkey = clientPubkey;
|
||||
return result;
|
||||
}
|
||||
|
||||
UnsealStart._();
|
||||
|
||||
factory UnsealStart.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory UnsealStart.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'UnsealStart',
|
||||
package: const $pb.PackageName(
|
||||
_omitMessageNames ? '' : 'arbiter.user_agent.vault.unseal'),
|
||||
createEmptyInstance: create)
|
||||
..a<$core.List<$core.int>>(
|
||||
1, _omitFieldNames ? '' : 'clientPubkey', $pb.PbFieldType.OY)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
UnsealStart clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
UnsealStart copyWith(void Function(UnsealStart) updates) =>
|
||||
super.copyWith((message) => updates(message as UnsealStart))
|
||||
as UnsealStart;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static UnsealStart create() => UnsealStart._();
|
||||
@$core.override
|
||||
UnsealStart createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static UnsealStart getDefault() => _defaultInstance ??=
|
||||
$pb.GeneratedMessage.$_defaultFor<UnsealStart>(create);
|
||||
static UnsealStart? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$core.List<$core.int> get clientPubkey => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set clientPubkey($core.List<$core.int> value) => $_setBytes(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasClientPubkey() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearClientPubkey() => $_clearField(1);
|
||||
}
|
||||
|
||||
class UnsealStartResponse extends $pb.GeneratedMessage {
|
||||
factory UnsealStartResponse({
|
||||
$core.List<$core.int>? serverPubkey,
|
||||
}) {
|
||||
final result = create();
|
||||
if (serverPubkey != null) result.serverPubkey = serverPubkey;
|
||||
return result;
|
||||
}
|
||||
|
||||
UnsealStartResponse._();
|
||||
|
||||
factory UnsealStartResponse.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory UnsealStartResponse.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'UnsealStartResponse',
|
||||
package: const $pb.PackageName(
|
||||
_omitMessageNames ? '' : 'arbiter.user_agent.vault.unseal'),
|
||||
createEmptyInstance: create)
|
||||
..a<$core.List<$core.int>>(
|
||||
1, _omitFieldNames ? '' : 'serverPubkey', $pb.PbFieldType.OY)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
UnsealStartResponse clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
UnsealStartResponse copyWith(void Function(UnsealStartResponse) updates) =>
|
||||
super.copyWith((message) => updates(message as UnsealStartResponse))
|
||||
as UnsealStartResponse;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static UnsealStartResponse create() => UnsealStartResponse._();
|
||||
@$core.override
|
||||
UnsealStartResponse createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static UnsealStartResponse getDefault() => _defaultInstance ??=
|
||||
$pb.GeneratedMessage.$_defaultFor<UnsealStartResponse>(create);
|
||||
static UnsealStartResponse? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$core.List<$core.int> get serverPubkey => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set serverPubkey($core.List<$core.int> value) => $_setBytes(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasServerPubkey() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearServerPubkey() => $_clearField(1);
|
||||
}
|
||||
|
||||
class UnsealEncryptedKey extends $pb.GeneratedMessage {
|
||||
factory UnsealEncryptedKey({
|
||||
$core.List<$core.int>? nonce,
|
||||
$core.List<$core.int>? ciphertext,
|
||||
$core.List<$core.int>? associatedData,
|
||||
}) {
|
||||
final result = create();
|
||||
if (nonce != null) result.nonce = nonce;
|
||||
if (ciphertext != null) result.ciphertext = ciphertext;
|
||||
if (associatedData != null) result.associatedData = associatedData;
|
||||
return result;
|
||||
}
|
||||
|
||||
UnsealEncryptedKey._();
|
||||
|
||||
factory UnsealEncryptedKey.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory UnsealEncryptedKey.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'UnsealEncryptedKey',
|
||||
package: const $pb.PackageName(
|
||||
_omitMessageNames ? '' : 'arbiter.user_agent.vault.unseal'),
|
||||
createEmptyInstance: create)
|
||||
..a<$core.List<$core.int>>(
|
||||
1, _omitFieldNames ? '' : 'nonce', $pb.PbFieldType.OY)
|
||||
..a<$core.List<$core.int>>(
|
||||
2, _omitFieldNames ? '' : 'ciphertext', $pb.PbFieldType.OY)
|
||||
..a<$core.List<$core.int>>(
|
||||
3, _omitFieldNames ? '' : 'associatedData', $pb.PbFieldType.OY)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
UnsealEncryptedKey clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
UnsealEncryptedKey copyWith(void Function(UnsealEncryptedKey) updates) =>
|
||||
super.copyWith((message) => updates(message as UnsealEncryptedKey))
|
||||
as UnsealEncryptedKey;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static UnsealEncryptedKey create() => UnsealEncryptedKey._();
|
||||
@$core.override
|
||||
UnsealEncryptedKey createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static UnsealEncryptedKey getDefault() => _defaultInstance ??=
|
||||
$pb.GeneratedMessage.$_defaultFor<UnsealEncryptedKey>(create);
|
||||
static UnsealEncryptedKey? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$core.List<$core.int> get nonce => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set nonce($core.List<$core.int> value) => $_setBytes(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasNonce() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearNonce() => $_clearField(1);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$core.List<$core.int> get ciphertext => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set ciphertext($core.List<$core.int> value) => $_setBytes(1, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasCiphertext() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearCiphertext() => $_clearField(2);
|
||||
|
||||
@$pb.TagNumber(3)
|
||||
$core.List<$core.int> get associatedData => $_getN(2);
|
||||
@$pb.TagNumber(3)
|
||||
set associatedData($core.List<$core.int> value) => $_setBytes(2, value);
|
||||
@$pb.TagNumber(3)
|
||||
$core.bool hasAssociatedData() => $_has(2);
|
||||
@$pb.TagNumber(3)
|
||||
void clearAssociatedData() => $_clearField(3);
|
||||
}
|
||||
|
||||
enum Request_Payload { start, encryptedKey, notSet }
|
||||
|
||||
class Request extends $pb.GeneratedMessage {
|
||||
factory Request({
|
||||
UnsealStart? start,
|
||||
UnsealEncryptedKey? encryptedKey,
|
||||
}) {
|
||||
final result = create();
|
||||
if (start != null) result.start = start;
|
||||
if (encryptedKey != null) result.encryptedKey = encryptedKey;
|
||||
return result;
|
||||
}
|
||||
|
||||
Request._();
|
||||
|
||||
factory Request.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory Request.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static const $core.Map<$core.int, Request_Payload> _Request_PayloadByTag = {
|
||||
1: Request_Payload.start,
|
||||
2: Request_Payload.encryptedKey,
|
||||
0: Request_Payload.notSet
|
||||
};
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'Request',
|
||||
package: const $pb.PackageName(
|
||||
_omitMessageNames ? '' : 'arbiter.user_agent.vault.unseal'),
|
||||
createEmptyInstance: create)
|
||||
..oo(0, [1, 2])
|
||||
..aOM<UnsealStart>(1, _omitFieldNames ? '' : 'start',
|
||||
subBuilder: UnsealStart.create)
|
||||
..aOM<UnsealEncryptedKey>(2, _omitFieldNames ? '' : 'encryptedKey',
|
||||
subBuilder: UnsealEncryptedKey.create)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Request clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Request copyWith(void Function(Request) updates) =>
|
||||
super.copyWith((message) => updates(message as Request)) as Request;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Request create() => Request._();
|
||||
@$core.override
|
||||
Request createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Request getDefault() =>
|
||||
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Request>(create);
|
||||
static Request? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
Request_Payload whichPayload() => _Request_PayloadByTag[$_whichOneof(0)]!;
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
void clearPayload() => $_clearField($_whichOneof(0));
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
UnsealStart get start => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set start(UnsealStart value) => $_setField(1, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasStart() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearStart() => $_clearField(1);
|
||||
@$pb.TagNumber(1)
|
||||
UnsealStart ensureStart() => $_ensure(0);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
UnsealEncryptedKey get encryptedKey => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set encryptedKey(UnsealEncryptedKey value) => $_setField(2, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasEncryptedKey() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearEncryptedKey() => $_clearField(2);
|
||||
@$pb.TagNumber(2)
|
||||
UnsealEncryptedKey ensureEncryptedKey() => $_ensure(1);
|
||||
}
|
||||
|
||||
enum Response_Payload { start, result, notSet }
|
||||
|
||||
class Response extends $pb.GeneratedMessage {
|
||||
factory Response({
|
||||
UnsealStartResponse? start,
|
||||
UnsealResult? result,
|
||||
}) {
|
||||
final result$ = create();
|
||||
if (start != null) result$.start = start;
|
||||
if (result != null) result$.result = result;
|
||||
return result$;
|
||||
}
|
||||
|
||||
Response._();
|
||||
|
||||
factory Response.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory Response.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static const $core.Map<$core.int, Response_Payload> _Response_PayloadByTag = {
|
||||
1: Response_Payload.start,
|
||||
2: Response_Payload.result,
|
||||
0: Response_Payload.notSet
|
||||
};
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'Response',
|
||||
package: const $pb.PackageName(
|
||||
_omitMessageNames ? '' : 'arbiter.user_agent.vault.unseal'),
|
||||
createEmptyInstance: create)
|
||||
..oo(0, [1, 2])
|
||||
..aOM<UnsealStartResponse>(1, _omitFieldNames ? '' : 'start',
|
||||
subBuilder: UnsealStartResponse.create)
|
||||
..aE<UnsealResult>(2, _omitFieldNames ? '' : 'result',
|
||||
enumValues: UnsealResult.values)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Response clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Response copyWith(void Function(Response) updates) =>
|
||||
super.copyWith((message) => updates(message as Response)) as Response;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Response create() => Response._();
|
||||
@$core.override
|
||||
Response createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Response getDefault() =>
|
||||
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Response>(create);
|
||||
static Response? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
Response_Payload whichPayload() => _Response_PayloadByTag[$_whichOneof(0)]!;
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
void clearPayload() => $_clearField($_whichOneof(0));
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
UnsealStartResponse get start => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set start(UnsealStartResponse value) => $_setField(1, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasStart() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearStart() => $_clearField(1);
|
||||
@$pb.TagNumber(1)
|
||||
UnsealStartResponse ensureStart() => $_ensure(0);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
UnsealResult get result => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set result(UnsealResult value) => $_setField(2, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasResult() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearResult() => $_clearField(2);
|
||||
}
|
||||
|
||||
const $core.bool _omitFieldNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const $core.bool _omitMessageNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
43
useragent/lib/proto/user_agent/vault/unseal.pbenum.dart
Normal file
43
useragent/lib/proto/user_agent/vault/unseal.pbenum.dart
Normal file
@@ -0,0 +1,43 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from user_agent/vault/unseal.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 UnsealResult extends $pb.ProtobufEnum {
|
||||
static const UnsealResult UNSEAL_RESULT_UNSPECIFIED =
|
||||
UnsealResult._(0, _omitEnumNames ? '' : 'UNSEAL_RESULT_UNSPECIFIED');
|
||||
static const UnsealResult UNSEAL_RESULT_SUCCESS =
|
||||
UnsealResult._(1, _omitEnumNames ? '' : 'UNSEAL_RESULT_SUCCESS');
|
||||
static const UnsealResult UNSEAL_RESULT_INVALID_KEY =
|
||||
UnsealResult._(2, _omitEnumNames ? '' : 'UNSEAL_RESULT_INVALID_KEY');
|
||||
static const UnsealResult UNSEAL_RESULT_UNBOOTSTRAPPED =
|
||||
UnsealResult._(3, _omitEnumNames ? '' : 'UNSEAL_RESULT_UNBOOTSTRAPPED');
|
||||
|
||||
static const $core.List<UnsealResult> values = <UnsealResult>[
|
||||
UNSEAL_RESULT_UNSPECIFIED,
|
||||
UNSEAL_RESULT_SUCCESS,
|
||||
UNSEAL_RESULT_INVALID_KEY,
|
||||
UNSEAL_RESULT_UNBOOTSTRAPPED,
|
||||
];
|
||||
|
||||
static final $core.List<UnsealResult?> _byValue =
|
||||
$pb.ProtobufEnum.$_initByValueList(values, 3);
|
||||
static UnsealResult? valueOf($core.int value) =>
|
||||
value < 0 || value >= _byValue.length ? null : _byValue[value];
|
||||
|
||||
const UnsealResult._(super.value, super.name);
|
||||
}
|
||||
|
||||
const $core.bool _omitEnumNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_enum_names');
|
||||
144
useragent/lib/proto/user_agent/vault/unseal.pbjson.dart
Normal file
144
useragent/lib/proto/user_agent/vault/unseal.pbjson.dart
Normal file
@@ -0,0 +1,144 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from user_agent/vault/unseal.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
|
||||
// ignore_for_file: unused_import
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
import 'dart:typed_data' as $typed_data;
|
||||
|
||||
@$core.Deprecated('Use unsealResultDescriptor instead')
|
||||
const UnsealResult$json = {
|
||||
'1': 'UnsealResult',
|
||||
'2': [
|
||||
{'1': 'UNSEAL_RESULT_UNSPECIFIED', '2': 0},
|
||||
{'1': 'UNSEAL_RESULT_SUCCESS', '2': 1},
|
||||
{'1': 'UNSEAL_RESULT_INVALID_KEY', '2': 2},
|
||||
{'1': 'UNSEAL_RESULT_UNBOOTSTRAPPED', '2': 3},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `UnsealResult`. Decode as a `google.protobuf.EnumDescriptorProto`.
|
||||
final $typed_data.Uint8List unsealResultDescriptor = $convert.base64Decode(
|
||||
'CgxVbnNlYWxSZXN1bHQSHQoZVU5TRUFMX1JFU1VMVF9VTlNQRUNJRklFRBAAEhkKFVVOU0VBTF'
|
||||
'9SRVNVTFRfU1VDQ0VTUxABEh0KGVVOU0VBTF9SRVNVTFRfSU5WQUxJRF9LRVkQAhIgChxVTlNF'
|
||||
'QUxfUkVTVUxUX1VOQk9PVFNUUkFQUEVEEAM=');
|
||||
|
||||
@$core.Deprecated('Use unsealStartDescriptor instead')
|
||||
const UnsealStart$json = {
|
||||
'1': 'UnsealStart',
|
||||
'2': [
|
||||
{'1': 'client_pubkey', '3': 1, '4': 1, '5': 12, '10': 'clientPubkey'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `UnsealStart`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List unsealStartDescriptor = $convert.base64Decode(
|
||||
'CgtVbnNlYWxTdGFydBIjCg1jbGllbnRfcHVia2V5GAEgASgMUgxjbGllbnRQdWJrZXk=');
|
||||
|
||||
@$core.Deprecated('Use unsealStartResponseDescriptor instead')
|
||||
const UnsealStartResponse$json = {
|
||||
'1': 'UnsealStartResponse',
|
||||
'2': [
|
||||
{'1': 'server_pubkey', '3': 1, '4': 1, '5': 12, '10': 'serverPubkey'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `UnsealStartResponse`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List unsealStartResponseDescriptor = $convert.base64Decode(
|
||||
'ChNVbnNlYWxTdGFydFJlc3BvbnNlEiMKDXNlcnZlcl9wdWJrZXkYASABKAxSDHNlcnZlclB1Ym'
|
||||
'tleQ==');
|
||||
|
||||
@$core.Deprecated('Use unsealEncryptedKeyDescriptor instead')
|
||||
const UnsealEncryptedKey$json = {
|
||||
'1': 'UnsealEncryptedKey',
|
||||
'2': [
|
||||
{'1': 'nonce', '3': 1, '4': 1, '5': 12, '10': 'nonce'},
|
||||
{'1': 'ciphertext', '3': 2, '4': 1, '5': 12, '10': 'ciphertext'},
|
||||
{'1': 'associated_data', '3': 3, '4': 1, '5': 12, '10': 'associatedData'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `UnsealEncryptedKey`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List unsealEncryptedKeyDescriptor = $convert.base64Decode(
|
||||
'ChJVbnNlYWxFbmNyeXB0ZWRLZXkSFAoFbm9uY2UYASABKAxSBW5vbmNlEh4KCmNpcGhlcnRleH'
|
||||
'QYAiABKAxSCmNpcGhlcnRleHQSJwoPYXNzb2NpYXRlZF9kYXRhGAMgASgMUg5hc3NvY2lhdGVk'
|
||||
'RGF0YQ==');
|
||||
|
||||
@$core.Deprecated('Use requestDescriptor instead')
|
||||
const Request$json = {
|
||||
'1': 'Request',
|
||||
'2': [
|
||||
{
|
||||
'1': 'start',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.vault.unseal.UnsealStart',
|
||||
'9': 0,
|
||||
'10': 'start'
|
||||
},
|
||||
{
|
||||
'1': 'encrypted_key',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.vault.unseal.UnsealEncryptedKey',
|
||||
'9': 0,
|
||||
'10': 'encryptedKey'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'payload'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `Request`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List requestDescriptor = $convert.base64Decode(
|
||||
'CgdSZXF1ZXN0EkQKBXN0YXJ0GAEgASgLMiwuYXJiaXRlci51c2VyX2FnZW50LnZhdWx0LnVuc2'
|
||||
'VhbC5VbnNlYWxTdGFydEgAUgVzdGFydBJaCg1lbmNyeXB0ZWRfa2V5GAIgASgLMjMuYXJiaXRl'
|
||||
'ci51c2VyX2FnZW50LnZhdWx0LnVuc2VhbC5VbnNlYWxFbmNyeXB0ZWRLZXlIAFIMZW5jcnlwdG'
|
||||
'VkS2V5QgkKB3BheWxvYWQ=');
|
||||
|
||||
@$core.Deprecated('Use responseDescriptor instead')
|
||||
const Response$json = {
|
||||
'1': 'Response',
|
||||
'2': [
|
||||
{
|
||||
'1': 'start',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.vault.unseal.UnsealStartResponse',
|
||||
'9': 0,
|
||||
'10': 'start'
|
||||
},
|
||||
{
|
||||
'1': 'result',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 14,
|
||||
'6': '.arbiter.user_agent.vault.unseal.UnsealResult',
|
||||
'9': 0,
|
||||
'10': 'result'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'payload'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `Response`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List responseDescriptor = $convert.base64Decode(
|
||||
'CghSZXNwb25zZRJMCgVzdGFydBgBIAEoCzI0LmFyYml0ZXIudXNlcl9hZ2VudC52YXVsdC51bn'
|
||||
'NlYWwuVW5zZWFsU3RhcnRSZXNwb25zZUgAUgVzdGFydBJHCgZyZXN1bHQYAiABKA4yLS5hcmJp'
|
||||
'dGVyLnVzZXJfYWdlbnQudmF1bHQudW5zZWFsLlVuc2VhbFJlc3VsdEgAUgZyZXN1bHRCCQoHcG'
|
||||
'F5bG9hZA==');
|
||||
235
useragent/lib/proto/user_agent/vault/vault.pb.dart
Normal file
235
useragent/lib/proto/user_agent/vault/vault.pb.dart
Normal file
@@ -0,0 +1,235 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from user_agent/vault/vault.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;
|
||||
import 'package:protobuf/well_known_types/google/protobuf/empty.pb.dart' as $0;
|
||||
|
||||
import '../../shared/vault.pbenum.dart' as $3;
|
||||
import 'bootstrap.pb.dart' as $2;
|
||||
import 'unseal.pb.dart' as $1;
|
||||
|
||||
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
|
||||
|
||||
enum Request_Payload { queryState, unseal, bootstrap, notSet }
|
||||
|
||||
class Request extends $pb.GeneratedMessage {
|
||||
factory Request({
|
||||
$0.Empty? queryState,
|
||||
$1.Request? unseal,
|
||||
$2.Request? bootstrap,
|
||||
}) {
|
||||
final result = create();
|
||||
if (queryState != null) result.queryState = queryState;
|
||||
if (unseal != null) result.unseal = unseal;
|
||||
if (bootstrap != null) result.bootstrap = bootstrap;
|
||||
return result;
|
||||
}
|
||||
|
||||
Request._();
|
||||
|
||||
factory Request.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory Request.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static const $core.Map<$core.int, Request_Payload> _Request_PayloadByTag = {
|
||||
1: Request_Payload.queryState,
|
||||
2: Request_Payload.unseal,
|
||||
3: Request_Payload.bootstrap,
|
||||
0: Request_Payload.notSet
|
||||
};
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'Request',
|
||||
package: const $pb.PackageName(
|
||||
_omitMessageNames ? '' : 'arbiter.user_agent.vault'),
|
||||
createEmptyInstance: create)
|
||||
..oo(0, [1, 2, 3])
|
||||
..aOM<$0.Empty>(1, _omitFieldNames ? '' : 'queryState',
|
||||
subBuilder: $0.Empty.create)
|
||||
..aOM<$1.Request>(2, _omitFieldNames ? '' : 'unseal',
|
||||
subBuilder: $1.Request.create)
|
||||
..aOM<$2.Request>(3, _omitFieldNames ? '' : 'bootstrap',
|
||||
subBuilder: $2.Request.create)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Request clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Request copyWith(void Function(Request) updates) =>
|
||||
super.copyWith((message) => updates(message as Request)) as Request;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Request create() => Request._();
|
||||
@$core.override
|
||||
Request createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Request getDefault() =>
|
||||
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Request>(create);
|
||||
static Request? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
@$pb.TagNumber(3)
|
||||
Request_Payload whichPayload() => _Request_PayloadByTag[$_whichOneof(0)]!;
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
@$pb.TagNumber(3)
|
||||
void clearPayload() => $_clearField($_whichOneof(0));
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$0.Empty get queryState => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set queryState($0.Empty value) => $_setField(1, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasQueryState() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearQueryState() => $_clearField(1);
|
||||
@$pb.TagNumber(1)
|
||||
$0.Empty ensureQueryState() => $_ensure(0);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$1.Request get unseal => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set unseal($1.Request value) => $_setField(2, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasUnseal() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearUnseal() => $_clearField(2);
|
||||
@$pb.TagNumber(2)
|
||||
$1.Request ensureUnseal() => $_ensure(1);
|
||||
|
||||
@$pb.TagNumber(3)
|
||||
$2.Request get bootstrap => $_getN(2);
|
||||
@$pb.TagNumber(3)
|
||||
set bootstrap($2.Request value) => $_setField(3, value);
|
||||
@$pb.TagNumber(3)
|
||||
$core.bool hasBootstrap() => $_has(2);
|
||||
@$pb.TagNumber(3)
|
||||
void clearBootstrap() => $_clearField(3);
|
||||
@$pb.TagNumber(3)
|
||||
$2.Request ensureBootstrap() => $_ensure(2);
|
||||
}
|
||||
|
||||
enum Response_Payload { state, unseal, bootstrap, notSet }
|
||||
|
||||
class Response extends $pb.GeneratedMessage {
|
||||
factory Response({
|
||||
$3.VaultState? state,
|
||||
$1.Response? unseal,
|
||||
$2.Response? bootstrap,
|
||||
}) {
|
||||
final result = create();
|
||||
if (state != null) result.state = state;
|
||||
if (unseal != null) result.unseal = unseal;
|
||||
if (bootstrap != null) result.bootstrap = bootstrap;
|
||||
return result;
|
||||
}
|
||||
|
||||
Response._();
|
||||
|
||||
factory Response.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory Response.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static const $core.Map<$core.int, Response_Payload> _Response_PayloadByTag = {
|
||||
1: Response_Payload.state,
|
||||
2: Response_Payload.unseal,
|
||||
3: Response_Payload.bootstrap,
|
||||
0: Response_Payload.notSet
|
||||
};
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'Response',
|
||||
package: const $pb.PackageName(
|
||||
_omitMessageNames ? '' : 'arbiter.user_agent.vault'),
|
||||
createEmptyInstance: create)
|
||||
..oo(0, [1, 2, 3])
|
||||
..aE<$3.VaultState>(1, _omitFieldNames ? '' : 'state',
|
||||
enumValues: $3.VaultState.values)
|
||||
..aOM<$1.Response>(2, _omitFieldNames ? '' : 'unseal',
|
||||
subBuilder: $1.Response.create)
|
||||
..aOM<$2.Response>(3, _omitFieldNames ? '' : 'bootstrap',
|
||||
subBuilder: $2.Response.create)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Response clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Response copyWith(void Function(Response) updates) =>
|
||||
super.copyWith((message) => updates(message as Response)) as Response;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Response create() => Response._();
|
||||
@$core.override
|
||||
Response createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Response getDefault() =>
|
||||
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Response>(create);
|
||||
static Response? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
@$pb.TagNumber(3)
|
||||
Response_Payload whichPayload() => _Response_PayloadByTag[$_whichOneof(0)]!;
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
@$pb.TagNumber(3)
|
||||
void clearPayload() => $_clearField($_whichOneof(0));
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$3.VaultState get state => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set state($3.VaultState value) => $_setField(1, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasState() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearState() => $_clearField(1);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$1.Response get unseal => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set unseal($1.Response value) => $_setField(2, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasUnseal() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearUnseal() => $_clearField(2);
|
||||
@$pb.TagNumber(2)
|
||||
$1.Response ensureUnseal() => $_ensure(1);
|
||||
|
||||
@$pb.TagNumber(3)
|
||||
$2.Response get bootstrap => $_getN(2);
|
||||
@$pb.TagNumber(3)
|
||||
set bootstrap($2.Response value) => $_setField(3, value);
|
||||
@$pb.TagNumber(3)
|
||||
$core.bool hasBootstrap() => $_has(2);
|
||||
@$pb.TagNumber(3)
|
||||
void clearBootstrap() => $_clearField(3);
|
||||
@$pb.TagNumber(3)
|
||||
$2.Response ensureBootstrap() => $_ensure(2);
|
||||
}
|
||||
|
||||
const $core.bool _omitFieldNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const $core.bool _omitMessageNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
11
useragent/lib/proto/user_agent/vault/vault.pbenum.dart
Normal file
11
useragent/lib/proto/user_agent/vault/vault.pbenum.dart
Normal file
@@ -0,0 +1,11 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from user_agent/vault/vault.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
|
||||
105
useragent/lib/proto/user_agent/vault/vault.pbjson.dart
Normal file
105
useragent/lib/proto/user_agent/vault/vault.pbjson.dart
Normal file
@@ -0,0 +1,105 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from user_agent/vault/vault.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
|
||||
// ignore_for_file: unused_import
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
import 'dart:typed_data' as $typed_data;
|
||||
|
||||
@$core.Deprecated('Use requestDescriptor instead')
|
||||
const Request$json = {
|
||||
'1': 'Request',
|
||||
'2': [
|
||||
{
|
||||
'1': 'query_state',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.google.protobuf.Empty',
|
||||
'9': 0,
|
||||
'10': 'queryState'
|
||||
},
|
||||
{
|
||||
'1': 'unseal',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.vault.unseal.Request',
|
||||
'9': 0,
|
||||
'10': 'unseal'
|
||||
},
|
||||
{
|
||||
'1': 'bootstrap',
|
||||
'3': 3,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.vault.bootstrap.Request',
|
||||
'9': 0,
|
||||
'10': 'bootstrap'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'payload'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `Request`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List requestDescriptor = $convert.base64Decode(
|
||||
'CgdSZXF1ZXN0EjkKC3F1ZXJ5X3N0YXRlGAEgASgLMhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5SA'
|
||||
'BSCnF1ZXJ5U3RhdGUSQgoGdW5zZWFsGAIgASgLMiguYXJiaXRlci51c2VyX2FnZW50LnZhdWx0'
|
||||
'LnVuc2VhbC5SZXF1ZXN0SABSBnVuc2VhbBJLCglib290c3RyYXAYAyABKAsyKy5hcmJpdGVyLn'
|
||||
'VzZXJfYWdlbnQudmF1bHQuYm9vdHN0cmFwLlJlcXVlc3RIAFIJYm9vdHN0cmFwQgkKB3BheWxv'
|
||||
'YWQ=');
|
||||
|
||||
@$core.Deprecated('Use responseDescriptor instead')
|
||||
const Response$json = {
|
||||
'1': 'Response',
|
||||
'2': [
|
||||
{
|
||||
'1': 'state',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 14,
|
||||
'6': '.arbiter.shared.VaultState',
|
||||
'9': 0,
|
||||
'10': 'state'
|
||||
},
|
||||
{
|
||||
'1': 'unseal',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.vault.unseal.Response',
|
||||
'9': 0,
|
||||
'10': 'unseal'
|
||||
},
|
||||
{
|
||||
'1': 'bootstrap',
|
||||
'3': 3,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.vault.bootstrap.Response',
|
||||
'9': 0,
|
||||
'10': 'bootstrap'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'payload'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `Response`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List responseDescriptor = $convert.base64Decode(
|
||||
'CghSZXNwb25zZRIyCgVzdGF0ZRgBIAEoDjIaLmFyYml0ZXIuc2hhcmVkLlZhdWx0U3RhdGVIAF'
|
||||
'IFc3RhdGUSQwoGdW5zZWFsGAIgASgLMikuYXJiaXRlci51c2VyX2FnZW50LnZhdWx0LnVuc2Vh'
|
||||
'bC5SZXNwb25zZUgAUgZ1bnNlYWwSTAoJYm9vdHN0cmFwGAMgASgLMiwuYXJiaXRlci51c2VyX2'
|
||||
'FnZW50LnZhdWx0LmJvb3RzdHJhcC5SZXNwb25zZUgAUglib290c3RyYXBCCQoHcGF5bG9hZA==');
|
||||
Reference in New Issue
Block a user