diff --git a/dart/lib/src/proto/services/connect/v1/connect.pb.dart b/dart/lib/src/proto/services/connect/v1/connect.pb.dart index 476500e9f..50964ddc3 100644 --- a/dart/lib/src/proto/services/connect/v1/connect.pb.dart +++ b/dart/lib/src/proto/services/connect/v1/connect.pb.dart @@ -225,6 +225,7 @@ class Verification extends $pb.GeneratedMessage { $core.bool? reused, $fixnum.Int64? begun, $fixnum.Int64? updated, + GovernmentIDOptions? governmentIdOptions, }) { final $result = create(); if (id != null) { @@ -248,6 +249,9 @@ class Verification extends $pb.GeneratedMessage { if (updated != null) { $result.updated = updated; } + if (governmentIdOptions != null) { + $result.governmentIdOptions = governmentIdOptions; + } return $result; } Verification._() : super(); @@ -283,6 +287,8 @@ class Verification extends $pb.GeneratedMessage { defaultOrMaker: $fixnum.Int64.ZERO) ..a<$fixnum.Int64>(7, _omitFieldNames ? '' : 'updated', $pb.PbFieldType.OF6, defaultOrMaker: $fixnum.Int64.ZERO) + ..aOM(8, _omitFieldNames ? '' : 'governmentIdOptions', + subBuilder: GovernmentIDOptions.create) ..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' @@ -389,7 +395,8 @@ class Verification extends $pb.GeneratedMessage { @$pb.TagNumber(6) void clearBegun() => clearField(6); - /// The unix timestamp, in seconds, when this verification last changed state -- o + /// The unix timestamp, in seconds, when this verification last changed state -- or `0` if it has not yet + /// begun. @$pb.TagNumber(7) $fixnum.Int64 get updated => $_getI64(6); @$pb.TagNumber(7) @@ -401,6 +408,22 @@ class Verification extends $pb.GeneratedMessage { $core.bool hasUpdated() => $_has(6); @$pb.TagNumber(7) void clearUpdated() => clearField(7); + + /// The Government ID options for this Verification. + /// Only set if this Verification is of type `GOVERNMENT_ID`. + @$pb.TagNumber(8) + GovernmentIDOptions get governmentIdOptions => $_getN(7); + @$pb.TagNumber(8) + set governmentIdOptions(GovernmentIDOptions v) { + setField(8, v); + } + + @$pb.TagNumber(8) + $core.bool hasGovernmentIdOptions() => $_has(7); + @$pb.TagNumber(8) + void clearGovernmentIdOptions() => clearField(8); + @$pb.TagNumber(8) + GovernmentIDOptions ensureGovernmentIdOptions() => $_ensure(7); } /// Request to create an Identity Verification Session @@ -461,15 +484,21 @@ class CreateSessionRequest extends $pb.GeneratedMessage { $core.List get verifications => $_getList(0); } +enum RequestedVerification_Options { governmentIdOptions, notSet } + /// A verification to perform in an IDV flow class RequestedVerification extends $pb.GeneratedMessage { factory RequestedVerification({ VerificationType? type, + GovernmentIDOptions? governmentIdOptions, }) { final $result = create(); if (type != null) { $result.type = type; } + if (governmentIdOptions != null) { + $result.governmentIdOptions = governmentIdOptions; + } return $result; } RequestedVerification._() : super(); @@ -480,15 +509,23 @@ class RequestedVerification extends $pb.GeneratedMessage { [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + static const $core.Map<$core.int, RequestedVerification_Options> + _RequestedVerification_OptionsByTag = { + 2: RequestedVerification_Options.governmentIdOptions, + 0: RequestedVerification_Options.notSet + }; static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'RequestedVerification', package: const $pb.PackageName(_omitMessageNames ? '' : 'services.connect.v1'), createEmptyInstance: create) + ..oo(0, [2]) ..e(1, _omitFieldNames ? '' : 'type', $pb.PbFieldType.OE, defaultOrMaker: VerificationType.GOVERNMENT_ID, valueOf: VerificationType.valueOf, enumValues: VerificationType.values) + ..aOM(2, _omitFieldNames ? '' : 'governmentIdOptions', + subBuilder: GovernmentIDOptions.create) ..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' @@ -516,6 +553,10 @@ class RequestedVerification extends $pb.GeneratedMessage { $pb.GeneratedMessage.$_defaultFor(create); static RequestedVerification? _defaultInstance; + RequestedVerification_Options whichOptions() => + _RequestedVerification_OptionsByTag[$_whichOneof(0)]!; + void clearOptions() => clearField($_whichOneof(0)); + /// The type of verification to perform @$pb.TagNumber(1) VerificationType get type => $_getN(0); @@ -528,6 +569,279 @@ class RequestedVerification extends $pb.GeneratedMessage { $core.bool hasType() => $_has(0); @$pb.TagNumber(1) void clearType() => clearField(1); + + /// Options for a Verification of type `GOVERNMENT_ID` + @$pb.TagNumber(2) + GovernmentIDOptions get governmentIdOptions => $_getN(1); + @$pb.TagNumber(2) + set governmentIdOptions(GovernmentIDOptions v) { + setField(2, v); + } + + @$pb.TagNumber(2) + $core.bool hasGovernmentIdOptions() => $_has(1); + @$pb.TagNumber(2) + void clearGovernmentIdOptions() => clearField(2); + @$pb.TagNumber(2) + GovernmentIDOptions ensureGovernmentIdOptions() => $_ensure(1); +} + +/// Options for a Verification of type `GOVERNMENT_ID` +class GovernmentIDOptions extends $pb.GeneratedMessage { + factory GovernmentIDOptions({ + GovernmentIDFields? fields, + }) { + final $result = create(); + if (fields != null) { + $result.fields = fields; + } + return $result; + } + GovernmentIDOptions._() : super(); + factory GovernmentIDOptions.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory GovernmentIDOptions.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GovernmentIDOptions', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'services.connect.v1'), + createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'fields', + subBuilder: GovernmentIDFields.create) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + GovernmentIDOptions clone() => GovernmentIDOptions()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GovernmentIDOptions copyWith(void Function(GovernmentIDOptions) updates) => + super.copyWith((message) => updates(message as GovernmentIDOptions)) + as GovernmentIDOptions; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static GovernmentIDOptions create() => GovernmentIDOptions._(); + GovernmentIDOptions createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static GovernmentIDOptions getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static GovernmentIDOptions? _defaultInstance; + + /// The fields to retrieve from the Government ID. + /// If this object is not set, all fields will be retrieved. + @$pb.TagNumber(1) + GovernmentIDFields get fields => $_getN(0); + @$pb.TagNumber(1) + set fields(GovernmentIDFields v) { + setField(1, v); + } + + @$pb.TagNumber(1) + $core.bool hasFields() => $_has(0); + @$pb.TagNumber(1) + void clearFields() => clearField(1); + @$pb.TagNumber(1) + GovernmentIDFields ensureFields() => $_ensure(0); +} + +/// Selection of fields to retrieve from a Government ID. All fields default to `false` unless explicitly set to `true`. +class GovernmentIDFields extends $pb.GeneratedMessage { + factory GovernmentIDFields({ + $core.bool? idNumber, + $core.bool? givenName, + $core.bool? familyName, + $core.bool? address, + $core.bool? dateOfBirth, + $core.bool? country, + $core.bool? issueDate, + $core.bool? expirationDate, + }) { + final $result = create(); + if (idNumber != null) { + $result.idNumber = idNumber; + } + if (givenName != null) { + $result.givenName = givenName; + } + if (familyName != null) { + $result.familyName = familyName; + } + if (address != null) { + $result.address = address; + } + if (dateOfBirth != null) { + $result.dateOfBirth = dateOfBirth; + } + if (country != null) { + $result.country = country; + } + if (issueDate != null) { + $result.issueDate = issueDate; + } + if (expirationDate != null) { + $result.expirationDate = expirationDate; + } + return $result; + } + GovernmentIDFields._() : super(); + factory GovernmentIDFields.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory GovernmentIDFields.fromJson($core.String i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GovernmentIDFields', + package: + const $pb.PackageName(_omitMessageNames ? '' : 'services.connect.v1'), + createEmptyInstance: create) + ..aOB(1, _omitFieldNames ? '' : 'idNumber') + ..aOB(2, _omitFieldNames ? '' : 'givenName') + ..aOB(3, _omitFieldNames ? '' : 'familyName') + ..aOB(4, _omitFieldNames ? '' : 'address') + ..aOB(5, _omitFieldNames ? '' : 'dateOfBirth') + ..aOB(6, _omitFieldNames ? '' : 'country') + ..aOB(7, _omitFieldNames ? '' : 'issueDate') + ..aOB(8, _omitFieldNames ? '' : 'expirationDate') + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + GovernmentIDFields clone() => GovernmentIDFields()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GovernmentIDFields copyWith(void Function(GovernmentIDFields) updates) => + super.copyWith((message) => updates(message as GovernmentIDFields)) + as GovernmentIDFields; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static GovernmentIDFields create() => GovernmentIDFields._(); + GovernmentIDFields createEmptyInstance() => create(); + static $pb.PbList createRepeated() => + $pb.PbList(); + @$core.pragma('dart2js:noInline') + static GovernmentIDFields getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static GovernmentIDFields? _defaultInstance; + + /// ID number of the underlying identity document + @$pb.TagNumber(1) + $core.bool get idNumber => $_getBF(0); + @$pb.TagNumber(1) + set idNumber($core.bool v) { + $_setBool(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasIdNumber() => $_has(0); + @$pb.TagNumber(1) + void clearIdNumber() => clearField(1); + + /// Given ("first") name of the document holder + @$pb.TagNumber(2) + $core.bool get givenName => $_getBF(1); + @$pb.TagNumber(2) + set givenName($core.bool v) { + $_setBool(1, v); + } + + @$pb.TagNumber(2) + $core.bool hasGivenName() => $_has(1); + @$pb.TagNumber(2) + void clearGivenName() => clearField(2); + + /// Family ("last") name of the document holder + @$pb.TagNumber(3) + $core.bool get familyName => $_getBF(2); + @$pb.TagNumber(3) + set familyName($core.bool v) { + $_setBool(2, v); + } + + @$pb.TagNumber(3) + $core.bool hasFamilyName() => $_has(2); + @$pb.TagNumber(3) + void clearFamilyName() => clearField(3); + + /// Full address of the document holder + @$pb.TagNumber(4) + $core.bool get address => $_getBF(3); + @$pb.TagNumber(4) + set address($core.bool v) { + $_setBool(3, v); + } + + @$pb.TagNumber(4) + $core.bool hasAddress() => $_has(3); + @$pb.TagNumber(4) + void clearAddress() => clearField(4); + + /// Date of birth of the document holder + @$pb.TagNumber(5) + $core.bool get dateOfBirth => $_getBF(4); + @$pb.TagNumber(5) + set dateOfBirth($core.bool v) { + $_setBool(4, v); + } + + @$pb.TagNumber(5) + $core.bool hasDateOfBirth() => $_has(4); + @$pb.TagNumber(5) + void clearDateOfBirth() => clearField(5); + + /// ISO3 country code of the document + @$pb.TagNumber(6) + $core.bool get country => $_getBF(5); + @$pb.TagNumber(6) + set country($core.bool v) { + $_setBool(5, v); + } + + @$pb.TagNumber(6) + $core.bool hasCountry() => $_has(5); + @$pb.TagNumber(6) + void clearCountry() => clearField(6); + + /// Issuance date of the document + @$pb.TagNumber(7) + $core.bool get issueDate => $_getBF(6); + @$pb.TagNumber(7) + set issueDate($core.bool v) { + $_setBool(6, v); + } + + @$pb.TagNumber(7) + $core.bool hasIssueDate() => $_has(6); + @$pb.TagNumber(7) + void clearIssueDate() => clearField(7); + + /// Expiration date date of the document + @$pb.TagNumber(8) + $core.bool get expirationDate => $_getBF(7); + @$pb.TagNumber(8) + set expirationDate($core.bool v) { + $_setBool(7, v); + } + + @$pb.TagNumber(8) + $core.bool hasExpirationDate() => $_has(7); + @$pb.TagNumber(8) + void clearExpirationDate() => clearField(8); } /// Response to `CreateIDVSessionRequest` diff --git a/dart/lib/src/proto/services/connect/v1/connect.pbgrpc.dart b/dart/lib/src/proto/services/connect/v1/connect.pbgrpc.dart index c483acfc0..c4c5b6f6e 100644 --- a/dart/lib/src/proto/services/connect/v1/connect.pbgrpc.dart +++ b/dart/lib/src/proto/services/connect/v1/connect.pbgrpc.dart @@ -15,62 +15,62 @@ import 'dart:core' as $core; import 'package:grpc/service_api.dart' as $grpc; import 'package:protobuf/protobuf.dart' as $pb; -import 'connect.pb.dart' as $5; +import 'connect.pb.dart' as $3; export 'connect.pb.dart'; @$pb.GrpcServiceName('services.connect.v1.Connect') class ConnectClient extends $grpc.Client { static final _$createSession = - $grpc.ClientMethod<$5.CreateSessionRequest, $5.CreateSessionResponse>( + $grpc.ClientMethod<$3.CreateSessionRequest, $3.CreateSessionResponse>( '/services.connect.v1.Connect/CreateSession', - ($5.CreateSessionRequest value) => value.writeToBuffer(), + ($3.CreateSessionRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $5.CreateSessionResponse.fromBuffer(value)); + $3.CreateSessionResponse.fromBuffer(value)); static final _$cancelSession = - $grpc.ClientMethod<$5.CancelSessionRequest, $5.CancelSessionResponse>( + $grpc.ClientMethod<$3.CancelSessionRequest, $3.CancelSessionResponse>( '/services.connect.v1.Connect/CancelSession', - ($5.CancelSessionRequest value) => value.writeToBuffer(), + ($3.CancelSessionRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $5.CancelSessionResponse.fromBuffer(value)); + $3.CancelSessionResponse.fromBuffer(value)); static final _$getSession = - $grpc.ClientMethod<$5.GetSessionRequest, $5.GetSessionResponse>( + $grpc.ClientMethod<$3.GetSessionRequest, $3.GetSessionResponse>( '/services.connect.v1.Connect/GetSession', - ($5.GetSessionRequest value) => value.writeToBuffer(), + ($3.GetSessionRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $5.GetSessionResponse.fromBuffer(value)); + $3.GetSessionResponse.fromBuffer(value)); static final _$listSessions = - $grpc.ClientMethod<$5.ListSessionsRequest, $5.ListSessionsResponse>( + $grpc.ClientMethod<$3.ListSessionsRequest, $3.ListSessionsResponse>( '/services.connect.v1.Connect/ListSessions', - ($5.ListSessionsRequest value) => value.writeToBuffer(), + ($3.ListSessionsRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $5.ListSessionsResponse.fromBuffer(value)); + $3.ListSessionsResponse.fromBuffer(value)); ConnectClient($grpc.ClientChannel channel, {$grpc.CallOptions? options, $core.Iterable<$grpc.ClientInterceptor>? interceptors}) : super(channel, options: options, interceptors: interceptors); - $grpc.ResponseFuture<$5.CreateSessionResponse> createSession( - $5.CreateSessionRequest request, + $grpc.ResponseFuture<$3.CreateSessionResponse> createSession( + $3.CreateSessionRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$createSession, request, options: options); } - $grpc.ResponseFuture<$5.CancelSessionResponse> cancelSession( - $5.CancelSessionRequest request, + $grpc.ResponseFuture<$3.CancelSessionResponse> cancelSession( + $3.CancelSessionRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$cancelSession, request, options: options); } - $grpc.ResponseFuture<$5.GetSessionResponse> getSession( - $5.GetSessionRequest request, + $grpc.ResponseFuture<$3.GetSessionResponse> getSession( + $3.GetSessionRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getSession, request, options: options); } - $grpc.ResponseFuture<$5.ListSessionsResponse> listSessions( - $5.ListSessionsRequest request, + $grpc.ResponseFuture<$3.ListSessionsResponse> listSessions( + $3.ListSessionsRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$listSessions, request, options: options); } @@ -82,70 +82,70 @@ abstract class ConnectServiceBase extends $grpc.Service { ConnectServiceBase() { $addMethod( - $grpc.ServiceMethod<$5.CreateSessionRequest, $5.CreateSessionResponse>( + $grpc.ServiceMethod<$3.CreateSessionRequest, $3.CreateSessionResponse>( 'CreateSession', createSession_Pre, false, false, ($core.List<$core.int> value) => - $5.CreateSessionRequest.fromBuffer(value), - ($5.CreateSessionResponse value) => value.writeToBuffer())); + $3.CreateSessionRequest.fromBuffer(value), + ($3.CreateSessionResponse value) => value.writeToBuffer())); $addMethod( - $grpc.ServiceMethod<$5.CancelSessionRequest, $5.CancelSessionResponse>( + $grpc.ServiceMethod<$3.CancelSessionRequest, $3.CancelSessionResponse>( 'CancelSession', cancelSession_Pre, false, false, ($core.List<$core.int> value) => - $5.CancelSessionRequest.fromBuffer(value), - ($5.CancelSessionResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$5.GetSessionRequest, $5.GetSessionResponse>( + $3.CancelSessionRequest.fromBuffer(value), + ($3.CancelSessionResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$3.GetSessionRequest, $3.GetSessionResponse>( 'GetSession', getSession_Pre, false, false, - ($core.List<$core.int> value) => $5.GetSessionRequest.fromBuffer(value), - ($5.GetSessionResponse value) => value.writeToBuffer())); + ($core.List<$core.int> value) => $3.GetSessionRequest.fromBuffer(value), + ($3.GetSessionResponse value) => value.writeToBuffer())); $addMethod( - $grpc.ServiceMethod<$5.ListSessionsRequest, $5.ListSessionsResponse>( + $grpc.ServiceMethod<$3.ListSessionsRequest, $3.ListSessionsResponse>( 'ListSessions', listSessions_Pre, false, false, ($core.List<$core.int> value) => - $5.ListSessionsRequest.fromBuffer(value), - ($5.ListSessionsResponse value) => value.writeToBuffer())); + $3.ListSessionsRequest.fromBuffer(value), + ($3.ListSessionsResponse value) => value.writeToBuffer())); } - $async.Future<$5.CreateSessionResponse> createSession_Pre( + $async.Future<$3.CreateSessionResponse> createSession_Pre( $grpc.ServiceCall call, - $async.Future<$5.CreateSessionRequest> request) async { + $async.Future<$3.CreateSessionRequest> request) async { return createSession(call, await request); } - $async.Future<$5.CancelSessionResponse> cancelSession_Pre( + $async.Future<$3.CancelSessionResponse> cancelSession_Pre( $grpc.ServiceCall call, - $async.Future<$5.CancelSessionRequest> request) async { + $async.Future<$3.CancelSessionRequest> request) async { return cancelSession(call, await request); } - $async.Future<$5.GetSessionResponse> getSession_Pre($grpc.ServiceCall call, - $async.Future<$5.GetSessionRequest> request) async { + $async.Future<$3.GetSessionResponse> getSession_Pre($grpc.ServiceCall call, + $async.Future<$3.GetSessionRequest> request) async { return getSession(call, await request); } - $async.Future<$5.ListSessionsResponse> listSessions_Pre( + $async.Future<$3.ListSessionsResponse> listSessions_Pre( $grpc.ServiceCall call, - $async.Future<$5.ListSessionsRequest> request) async { + $async.Future<$3.ListSessionsRequest> request) async { return listSessions(call, await request); } - $async.Future<$5.CreateSessionResponse> createSession( - $grpc.ServiceCall call, $5.CreateSessionRequest request); - $async.Future<$5.CancelSessionResponse> cancelSession( - $grpc.ServiceCall call, $5.CancelSessionRequest request); - $async.Future<$5.GetSessionResponse> getSession( - $grpc.ServiceCall call, $5.GetSessionRequest request); - $async.Future<$5.ListSessionsResponse> listSessions( - $grpc.ServiceCall call, $5.ListSessionsRequest request); + $async.Future<$3.CreateSessionResponse> createSession( + $grpc.ServiceCall call, $3.CreateSessionRequest request); + $async.Future<$3.CancelSessionResponse> cancelSession( + $grpc.ServiceCall call, $3.CancelSessionRequest request); + $async.Future<$3.GetSessionResponse> getSession( + $grpc.ServiceCall call, $3.GetSessionRequest request); + $async.Future<$3.ListSessionsResponse> listSessions( + $grpc.ServiceCall call, $3.ListSessionsRequest request); } diff --git a/dart/lib/src/proto/services/connect/v1/connect.pbjson.dart b/dart/lib/src/proto/services/connect/v1/connect.pbjson.dart index ac950ec01..9fe6107b9 100644 --- a/dart/lib/src/proto/services/connect/v1/connect.pbjson.dart +++ b/dart/lib/src/proto/services/connect/v1/connect.pbjson.dart @@ -232,9 +232,20 @@ const Verification$json = { {'1': 'reused', '3': 5, '4': 1, '5': 8, '10': 'reused'}, {'1': 'begun', '3': 6, '4': 1, '5': 6, '10': 'begun'}, {'1': 'updated', '3': 7, '4': 1, '5': 6, '10': 'updated'}, + { + '1': 'government_id_options', + '3': 8, + '4': 1, + '5': 11, + '6': '.services.connect.v1.GovernmentIDOptions', + '9': 1, + '10': 'governmentIdOptions', + '17': true + }, ], '8': [ {'1': '_fail_code'}, + {'1': '_government_id_options'}, ], }; @@ -245,7 +256,9 @@ final $typed_data.Uint8List verificationDescriptor = $convert.base64Decode( 'aWNlcy5jb25uZWN0LnYxLlZlcmlmaWNhdGlvblN0YXRlUgVzdGF0ZRJLCglmYWlsX2NvZGUYBC' 'ABKA4yKS5zZXJ2aWNlcy5jb25uZWN0LnYxLlZlcmlmaWNhdGlvbkZhaWxDb2RlSABSCGZhaWxD' 'b2RliAEBEhYKBnJldXNlZBgFIAEoCFIGcmV1c2VkEhQKBWJlZ3VuGAYgASgGUgViZWd1bhIYCg' - 'd1cGRhdGVkGAcgASgGUgd1cGRhdGVkQgwKCl9mYWlsX2NvZGU='); + 'd1cGRhdGVkGAcgASgGUgd1cGRhdGVkEmEKFWdvdmVybm1lbnRfaWRfb3B0aW9ucxgIIAEoCzIo' + 'LnNlcnZpY2VzLmNvbm5lY3QudjEuR292ZXJubWVudElET3B0aW9uc0gBUhNnb3Zlcm5tZW50SW' + 'RPcHRpb25ziAEBQgwKCl9mYWlsX2NvZGVCGAoWX2dvdmVybm1lbnRfaWRfb3B0aW9ucw=='); @$core.Deprecated('Use createSessionRequestDescriptor instead') const CreateSessionRequest$json = { @@ -279,13 +292,70 @@ const RequestedVerification$json = { '6': '.services.connect.v1.VerificationType', '10': 'type' }, + { + '1': 'government_id_options', + '3': 2, + '4': 1, + '5': 11, + '6': '.services.connect.v1.GovernmentIDOptions', + '9': 0, + '10': 'governmentIdOptions' + }, + ], + '8': [ + {'1': 'options'}, ], }; /// Descriptor for `RequestedVerification`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List requestedVerificationDescriptor = $convert.base64Decode( 'ChVSZXF1ZXN0ZWRWZXJpZmljYXRpb24SOQoEdHlwZRgBIAEoDjIlLnNlcnZpY2VzLmNvbm5lY3' - 'QudjEuVmVyaWZpY2F0aW9uVHlwZVIEdHlwZQ=='); + 'QudjEuVmVyaWZpY2F0aW9uVHlwZVIEdHlwZRJeChVnb3Zlcm5tZW50X2lkX29wdGlvbnMYAiAB' + 'KAsyKC5zZXJ2aWNlcy5jb25uZWN0LnYxLkdvdmVybm1lbnRJRE9wdGlvbnNIAFITZ292ZXJubW' + 'VudElkT3B0aW9uc0IJCgdvcHRpb25z'); + +@$core.Deprecated('Use governmentIDOptionsDescriptor instead') +const GovernmentIDOptions$json = { + '1': 'GovernmentIDOptions', + '2': [ + { + '1': 'fields', + '3': 1, + '4': 1, + '5': 11, + '6': '.services.connect.v1.GovernmentIDFields', + '10': 'fields' + }, + ], +}; + +/// Descriptor for `GovernmentIDOptions`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List governmentIDOptionsDescriptor = $convert.base64Decode( + 'ChNHb3Zlcm5tZW50SURPcHRpb25zEj8KBmZpZWxkcxgBIAEoCzInLnNlcnZpY2VzLmNvbm5lY3' + 'QudjEuR292ZXJubWVudElERmllbGRzUgZmaWVsZHM='); + +@$core.Deprecated('Use governmentIDFieldsDescriptor instead') +const GovernmentIDFields$json = { + '1': 'GovernmentIDFields', + '2': [ + {'1': 'id_number', '3': 1, '4': 1, '5': 8, '10': 'idNumber'}, + {'1': 'given_name', '3': 2, '4': 1, '5': 8, '10': 'givenName'}, + {'1': 'family_name', '3': 3, '4': 1, '5': 8, '10': 'familyName'}, + {'1': 'address', '3': 4, '4': 1, '5': 8, '10': 'address'}, + {'1': 'date_of_birth', '3': 5, '4': 1, '5': 8, '10': 'dateOfBirth'}, + {'1': 'country', '3': 6, '4': 1, '5': 8, '10': 'country'}, + {'1': 'issue_date', '3': 7, '4': 1, '5': 8, '10': 'issueDate'}, + {'1': 'expiration_date', '3': 8, '4': 1, '5': 8, '10': 'expirationDate'}, + ], +}; + +/// Descriptor for `GovernmentIDFields`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List governmentIDFieldsDescriptor = $convert.base64Decode( + 'ChJHb3Zlcm5tZW50SURGaWVsZHMSGwoJaWRfbnVtYmVyGAEgASgIUghpZE51bWJlchIdCgpnaX' + 'Zlbl9uYW1lGAIgASgIUglnaXZlbk5hbWUSHwoLZmFtaWx5X25hbWUYAyABKAhSCmZhbWlseU5h' + 'bWUSGAoHYWRkcmVzcxgEIAEoCFIHYWRkcmVzcxIiCg1kYXRlX29mX2JpcnRoGAUgASgIUgtkYX' + 'RlT2ZCaXJ0aBIYCgdjb3VudHJ5GAYgASgIUgdjb3VudHJ5Eh0KCmlzc3VlX2RhdGUYByABKAhS' + 'CWlzc3VlRGF0ZRInCg9leHBpcmF0aW9uX2RhdGUYCCABKAhSDmV4cGlyYXRpb25EYXRl'); @$core.Deprecated('Use createSessionResponseDescriptor instead') const CreateSessionResponse$json = { diff --git a/dart/lib/src/proto/services/file-management/v1/file-management.pbgrpc.dart b/dart/lib/src/proto/services/file-management/v1/file-management.pbgrpc.dart index dff665637..88707773b 100644 --- a/dart/lib/src/proto/services/file-management/v1/file-management.pbgrpc.dart +++ b/dart/lib/src/proto/services/file-management/v1/file-management.pbgrpc.dart @@ -15,73 +15,73 @@ import 'dart:core' as $core; import 'package:grpc/service_api.dart' as $grpc; import 'package:protobuf/protobuf.dart' as $pb; -import 'file-management.pb.dart' as $6; +import 'file-management.pb.dart' as $0; export 'file-management.pb.dart'; @$pb.GrpcServiceName('services.filemanagement.v1.FileManagement') class FileManagementClient extends $grpc.Client { static final _$uploadFile = - $grpc.ClientMethod<$6.UploadFileRequest, $6.UploadFileResponse>( + $grpc.ClientMethod<$0.UploadFileRequest, $0.UploadFileResponse>( '/services.filemanagement.v1.FileManagement/UploadFile', - ($6.UploadFileRequest value) => value.writeToBuffer(), + ($0.UploadFileRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $6.UploadFileResponse.fromBuffer(value)); + $0.UploadFileResponse.fromBuffer(value)); static final _$getFile = - $grpc.ClientMethod<$6.GetFileRequest, $6.GetFileResponse>( + $grpc.ClientMethod<$0.GetFileRequest, $0.GetFileResponse>( '/services.filemanagement.v1.FileManagement/GetFile', - ($6.GetFileRequest value) => value.writeToBuffer(), + ($0.GetFileRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $6.GetFileResponse.fromBuffer(value)); + $0.GetFileResponse.fromBuffer(value)); static final _$deleteFile = - $grpc.ClientMethod<$6.DeleteFileRequest, $6.DeleteFileResponse>( + $grpc.ClientMethod<$0.DeleteFileRequest, $0.DeleteFileResponse>( '/services.filemanagement.v1.FileManagement/DeleteFile', - ($6.DeleteFileRequest value) => value.writeToBuffer(), + ($0.DeleteFileRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $6.DeleteFileResponse.fromBuffer(value)); + $0.DeleteFileResponse.fromBuffer(value)); static final _$listFiles = - $grpc.ClientMethod<$6.ListFilesRequest, $6.ListFilesResponse>( + $grpc.ClientMethod<$0.ListFilesRequest, $0.ListFilesResponse>( '/services.filemanagement.v1.FileManagement/ListFiles', - ($6.ListFilesRequest value) => value.writeToBuffer(), + ($0.ListFilesRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $6.ListFilesResponse.fromBuffer(value)); + $0.ListFilesResponse.fromBuffer(value)); static final _$getStorageStats = - $grpc.ClientMethod<$6.GetStorageStatsRequest, $6.GetStorageStatsResponse>( + $grpc.ClientMethod<$0.GetStorageStatsRequest, $0.GetStorageStatsResponse>( '/services.filemanagement.v1.FileManagement/GetStorageStats', - ($6.GetStorageStatsRequest value) => value.writeToBuffer(), + ($0.GetStorageStatsRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $6.GetStorageStatsResponse.fromBuffer(value)); + $0.GetStorageStatsResponse.fromBuffer(value)); FileManagementClient($grpc.ClientChannel channel, {$grpc.CallOptions? options, $core.Iterable<$grpc.ClientInterceptor>? interceptors}) : super(channel, options: options, interceptors: interceptors); - $grpc.ResponseFuture<$6.UploadFileResponse> uploadFile( - $6.UploadFileRequest request, + $grpc.ResponseFuture<$0.UploadFileResponse> uploadFile( + $0.UploadFileRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$uploadFile, request, options: options); } - $grpc.ResponseFuture<$6.GetFileResponse> getFile($6.GetFileRequest request, + $grpc.ResponseFuture<$0.GetFileResponse> getFile($0.GetFileRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getFile, request, options: options); } - $grpc.ResponseFuture<$6.DeleteFileResponse> deleteFile( - $6.DeleteFileRequest request, + $grpc.ResponseFuture<$0.DeleteFileResponse> deleteFile( + $0.DeleteFileRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$deleteFile, request, options: options); } - $grpc.ResponseFuture<$6.ListFilesResponse> listFiles( - $6.ListFilesRequest request, + $grpc.ResponseFuture<$0.ListFilesResponse> listFiles( + $0.ListFilesRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$listFiles, request, options: options); } - $grpc.ResponseFuture<$6.GetStorageStatsResponse> getStorageStats( - $6.GetStorageStatsRequest request, + $grpc.ResponseFuture<$0.GetStorageStatsResponse> getStorageStats( + $0.GetStorageStatsRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getStorageStats, request, options: options); } @@ -92,79 +92,79 @@ abstract class FileManagementServiceBase extends $grpc.Service { $core.String get $name => 'services.filemanagement.v1.FileManagement'; FileManagementServiceBase() { - $addMethod($grpc.ServiceMethod<$6.UploadFileRequest, $6.UploadFileResponse>( + $addMethod($grpc.ServiceMethod<$0.UploadFileRequest, $0.UploadFileResponse>( 'UploadFile', uploadFile_Pre, false, false, - ($core.List<$core.int> value) => $6.UploadFileRequest.fromBuffer(value), - ($6.UploadFileResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$6.GetFileRequest, $6.GetFileResponse>( + ($core.List<$core.int> value) => $0.UploadFileRequest.fromBuffer(value), + ($0.UploadFileResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$0.GetFileRequest, $0.GetFileResponse>( 'GetFile', getFile_Pre, false, false, - ($core.List<$core.int> value) => $6.GetFileRequest.fromBuffer(value), - ($6.GetFileResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$6.DeleteFileRequest, $6.DeleteFileResponse>( + ($core.List<$core.int> value) => $0.GetFileRequest.fromBuffer(value), + ($0.GetFileResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$0.DeleteFileRequest, $0.DeleteFileResponse>( 'DeleteFile', deleteFile_Pre, false, false, - ($core.List<$core.int> value) => $6.DeleteFileRequest.fromBuffer(value), - ($6.DeleteFileResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$6.ListFilesRequest, $6.ListFilesResponse>( + ($core.List<$core.int> value) => $0.DeleteFileRequest.fromBuffer(value), + ($0.DeleteFileResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$0.ListFilesRequest, $0.ListFilesResponse>( 'ListFiles', listFiles_Pre, false, false, - ($core.List<$core.int> value) => $6.ListFilesRequest.fromBuffer(value), - ($6.ListFilesResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$6.GetStorageStatsRequest, - $6.GetStorageStatsResponse>( + ($core.List<$core.int> value) => $0.ListFilesRequest.fromBuffer(value), + ($0.ListFilesResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$0.GetStorageStatsRequest, + $0.GetStorageStatsResponse>( 'GetStorageStats', getStorageStats_Pre, false, false, ($core.List<$core.int> value) => - $6.GetStorageStatsRequest.fromBuffer(value), - ($6.GetStorageStatsResponse value) => value.writeToBuffer())); + $0.GetStorageStatsRequest.fromBuffer(value), + ($0.GetStorageStatsResponse value) => value.writeToBuffer())); } - $async.Future<$6.UploadFileResponse> uploadFile_Pre($grpc.ServiceCall call, - $async.Future<$6.UploadFileRequest> request) async { + $async.Future<$0.UploadFileResponse> uploadFile_Pre($grpc.ServiceCall call, + $async.Future<$0.UploadFileRequest> request) async { return uploadFile(call, await request); } - $async.Future<$6.GetFileResponse> getFile_Pre( - $grpc.ServiceCall call, $async.Future<$6.GetFileRequest> request) async { + $async.Future<$0.GetFileResponse> getFile_Pre( + $grpc.ServiceCall call, $async.Future<$0.GetFileRequest> request) async { return getFile(call, await request); } - $async.Future<$6.DeleteFileResponse> deleteFile_Pre($grpc.ServiceCall call, - $async.Future<$6.DeleteFileRequest> request) async { + $async.Future<$0.DeleteFileResponse> deleteFile_Pre($grpc.ServiceCall call, + $async.Future<$0.DeleteFileRequest> request) async { return deleteFile(call, await request); } - $async.Future<$6.ListFilesResponse> listFiles_Pre($grpc.ServiceCall call, - $async.Future<$6.ListFilesRequest> request) async { + $async.Future<$0.ListFilesResponse> listFiles_Pre($grpc.ServiceCall call, + $async.Future<$0.ListFilesRequest> request) async { return listFiles(call, await request); } - $async.Future<$6.GetStorageStatsResponse> getStorageStats_Pre( + $async.Future<$0.GetStorageStatsResponse> getStorageStats_Pre( $grpc.ServiceCall call, - $async.Future<$6.GetStorageStatsRequest> request) async { + $async.Future<$0.GetStorageStatsRequest> request) async { return getStorageStats(call, await request); } - $async.Future<$6.UploadFileResponse> uploadFile( - $grpc.ServiceCall call, $6.UploadFileRequest request); - $async.Future<$6.GetFileResponse> getFile( - $grpc.ServiceCall call, $6.GetFileRequest request); - $async.Future<$6.DeleteFileResponse> deleteFile( - $grpc.ServiceCall call, $6.DeleteFileRequest request); - $async.Future<$6.ListFilesResponse> listFiles( - $grpc.ServiceCall call, $6.ListFilesRequest request); - $async.Future<$6.GetStorageStatsResponse> getStorageStats( - $grpc.ServiceCall call, $6.GetStorageStatsRequest request); + $async.Future<$0.UploadFileResponse> uploadFile( + $grpc.ServiceCall call, $0.UploadFileRequest request); + $async.Future<$0.GetFileResponse> getFile( + $grpc.ServiceCall call, $0.GetFileRequest request); + $async.Future<$0.DeleteFileResponse> deleteFile( + $grpc.ServiceCall call, $0.DeleteFileRequest request); + $async.Future<$0.ListFilesResponse> listFiles( + $grpc.ServiceCall call, $0.ListFilesRequest request); + $async.Future<$0.GetStorageStatsResponse> getStorageStats( + $grpc.ServiceCall call, $0.GetStorageStatsRequest request); } diff --git a/dart/lib/src/proto/services/trust-registry/v1/trust-registry.pbgrpc.dart b/dart/lib/src/proto/services/trust-registry/v1/trust-registry.pbgrpc.dart index e1ab69e31..7d87b21a4 100644 --- a/dart/lib/src/proto/services/trust-registry/v1/trust-registry.pbgrpc.dart +++ b/dart/lib/src/proto/services/trust-registry/v1/trust-registry.pbgrpc.dart @@ -15,77 +15,77 @@ import 'dart:core' as $core; import 'package:grpc/service_api.dart' as $grpc; import 'package:protobuf/protobuf.dart' as $pb; -import 'trust-registry.pb.dart' as $0; +import 'trust-registry.pb.dart' as $4; export 'trust-registry.pb.dart'; @$pb.GrpcServiceName('services.trustregistry.v1.TrustRegistry') class TrustRegistryClient extends $grpc.Client { static final _$registerMember = - $grpc.ClientMethod<$0.RegisterMemberRequest, $0.RegisterMemberResponse>( + $grpc.ClientMethod<$4.RegisterMemberRequest, $4.RegisterMemberResponse>( '/services.trustregistry.v1.TrustRegistry/RegisterMember', - ($0.RegisterMemberRequest value) => value.writeToBuffer(), + ($4.RegisterMemberRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $0.RegisterMemberResponse.fromBuffer(value)); + $4.RegisterMemberResponse.fromBuffer(value)); static final _$unregisterMember = $grpc.ClientMethod< - $0.UnregisterMemberRequest, $0.UnregisterMemberResponse>( + $4.UnregisterMemberRequest, $4.UnregisterMemberResponse>( '/services.trustregistry.v1.TrustRegistry/UnregisterMember', - ($0.UnregisterMemberRequest value) => value.writeToBuffer(), + ($4.UnregisterMemberRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $0.UnregisterMemberResponse.fromBuffer(value)); + $4.UnregisterMemberResponse.fromBuffer(value)); static final _$getMemberAuthorizationStatus = $grpc.ClientMethod< - $0.GetMemberAuthorizationStatusRequest, - $0.GetMemberAuthorizationStatusResponse>( + $4.GetMemberAuthorizationStatusRequest, + $4.GetMemberAuthorizationStatusResponse>( '/services.trustregistry.v1.TrustRegistry/GetMemberAuthorizationStatus', - ($0.GetMemberAuthorizationStatusRequest value) => value.writeToBuffer(), + ($4.GetMemberAuthorizationStatusRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $0.GetMemberAuthorizationStatusResponse.fromBuffer(value)); + $4.GetMemberAuthorizationStatusResponse.fromBuffer(value)); static final _$listAuthorizedMembers = $grpc.ClientMethod< - $0.ListAuthorizedMembersRequest, $0.ListAuthorizedMembersResponse>( + $4.ListAuthorizedMembersRequest, $4.ListAuthorizedMembersResponse>( '/services.trustregistry.v1.TrustRegistry/ListAuthorizedMembers', - ($0.ListAuthorizedMembersRequest value) => value.writeToBuffer(), + ($4.ListAuthorizedMembersRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $0.ListAuthorizedMembersResponse.fromBuffer(value)); + $4.ListAuthorizedMembersResponse.fromBuffer(value)); static final _$getMember = - $grpc.ClientMethod<$0.GetMemberRequest, $0.GetMemberResponse>( + $grpc.ClientMethod<$4.GetMemberRequest, $4.GetMemberResponse>( '/services.trustregistry.v1.TrustRegistry/GetMember', - ($0.GetMemberRequest value) => value.writeToBuffer(), + ($4.GetMemberRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $0.GetMemberResponse.fromBuffer(value)); + $4.GetMemberResponse.fromBuffer(value)); TrustRegistryClient($grpc.ClientChannel channel, {$grpc.CallOptions? options, $core.Iterable<$grpc.ClientInterceptor>? interceptors}) : super(channel, options: options, interceptors: interceptors); - $grpc.ResponseFuture<$0.RegisterMemberResponse> registerMember( - $0.RegisterMemberRequest request, + $grpc.ResponseFuture<$4.RegisterMemberResponse> registerMember( + $4.RegisterMemberRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$registerMember, request, options: options); } - $grpc.ResponseFuture<$0.UnregisterMemberResponse> unregisterMember( - $0.UnregisterMemberRequest request, + $grpc.ResponseFuture<$4.UnregisterMemberResponse> unregisterMember( + $4.UnregisterMemberRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$unregisterMember, request, options: options); } - $grpc.ResponseFuture<$0.GetMemberAuthorizationStatusResponse> + $grpc.ResponseFuture<$4.GetMemberAuthorizationStatusResponse> getMemberAuthorizationStatus( - $0.GetMemberAuthorizationStatusRequest request, + $4.GetMemberAuthorizationStatusRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getMemberAuthorizationStatus, request, options: options); } - $grpc.ResponseFuture<$0.ListAuthorizedMembersResponse> listAuthorizedMembers( - $0.ListAuthorizedMembersRequest request, + $grpc.ResponseFuture<$4.ListAuthorizedMembersResponse> listAuthorizedMembers( + $4.ListAuthorizedMembersRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$listAuthorizedMembers, request, options: options); } - $grpc.ResponseFuture<$0.GetMemberResponse> getMember( - $0.GetMemberRequest request, + $grpc.ResponseFuture<$4.GetMemberResponse> getMember( + $4.GetMemberRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getMember, request, options: options); } @@ -96,90 +96,90 @@ abstract class TrustRegistryServiceBase extends $grpc.Service { $core.String get $name => 'services.trustregistry.v1.TrustRegistry'; TrustRegistryServiceBase() { - $addMethod($grpc.ServiceMethod<$0.RegisterMemberRequest, - $0.RegisterMemberResponse>( + $addMethod($grpc.ServiceMethod<$4.RegisterMemberRequest, + $4.RegisterMemberResponse>( 'RegisterMember', registerMember_Pre, false, false, ($core.List<$core.int> value) => - $0.RegisterMemberRequest.fromBuffer(value), - ($0.RegisterMemberResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.UnregisterMemberRequest, - $0.UnregisterMemberResponse>( + $4.RegisterMemberRequest.fromBuffer(value), + ($4.RegisterMemberResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$4.UnregisterMemberRequest, + $4.UnregisterMemberResponse>( 'UnregisterMember', unregisterMember_Pre, false, false, ($core.List<$core.int> value) => - $0.UnregisterMemberRequest.fromBuffer(value), - ($0.UnregisterMemberResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.GetMemberAuthorizationStatusRequest, - $0.GetMemberAuthorizationStatusResponse>( + $4.UnregisterMemberRequest.fromBuffer(value), + ($4.UnregisterMemberResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$4.GetMemberAuthorizationStatusRequest, + $4.GetMemberAuthorizationStatusResponse>( 'GetMemberAuthorizationStatus', getMemberAuthorizationStatus_Pre, false, false, ($core.List<$core.int> value) => - $0.GetMemberAuthorizationStatusRequest.fromBuffer(value), - ($0.GetMemberAuthorizationStatusResponse value) => + $4.GetMemberAuthorizationStatusRequest.fromBuffer(value), + ($4.GetMemberAuthorizationStatusResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.ListAuthorizedMembersRequest, - $0.ListAuthorizedMembersResponse>( + $addMethod($grpc.ServiceMethod<$4.ListAuthorizedMembersRequest, + $4.ListAuthorizedMembersResponse>( 'ListAuthorizedMembers', listAuthorizedMembers_Pre, false, false, ($core.List<$core.int> value) => - $0.ListAuthorizedMembersRequest.fromBuffer(value), - ($0.ListAuthorizedMembersResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.GetMemberRequest, $0.GetMemberResponse>( + $4.ListAuthorizedMembersRequest.fromBuffer(value), + ($4.ListAuthorizedMembersResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$4.GetMemberRequest, $4.GetMemberResponse>( 'GetMember', getMember_Pre, false, false, - ($core.List<$core.int> value) => $0.GetMemberRequest.fromBuffer(value), - ($0.GetMemberResponse value) => value.writeToBuffer())); + ($core.List<$core.int> value) => $4.GetMemberRequest.fromBuffer(value), + ($4.GetMemberResponse value) => value.writeToBuffer())); } - $async.Future<$0.RegisterMemberResponse> registerMember_Pre( + $async.Future<$4.RegisterMemberResponse> registerMember_Pre( $grpc.ServiceCall call, - $async.Future<$0.RegisterMemberRequest> request) async { + $async.Future<$4.RegisterMemberRequest> request) async { return registerMember(call, await request); } - $async.Future<$0.UnregisterMemberResponse> unregisterMember_Pre( + $async.Future<$4.UnregisterMemberResponse> unregisterMember_Pre( $grpc.ServiceCall call, - $async.Future<$0.UnregisterMemberRequest> request) async { + $async.Future<$4.UnregisterMemberRequest> request) async { return unregisterMember(call, await request); } - $async.Future<$0.GetMemberAuthorizationStatusResponse> + $async.Future<$4.GetMemberAuthorizationStatusResponse> getMemberAuthorizationStatus_Pre($grpc.ServiceCall call, - $async.Future<$0.GetMemberAuthorizationStatusRequest> request) async { + $async.Future<$4.GetMemberAuthorizationStatusRequest> request) async { return getMemberAuthorizationStatus(call, await request); } - $async.Future<$0.ListAuthorizedMembersResponse> listAuthorizedMembers_Pre( + $async.Future<$4.ListAuthorizedMembersResponse> listAuthorizedMembers_Pre( $grpc.ServiceCall call, - $async.Future<$0.ListAuthorizedMembersRequest> request) async { + $async.Future<$4.ListAuthorizedMembersRequest> request) async { return listAuthorizedMembers(call, await request); } - $async.Future<$0.GetMemberResponse> getMember_Pre($grpc.ServiceCall call, - $async.Future<$0.GetMemberRequest> request) async { + $async.Future<$4.GetMemberResponse> getMember_Pre($grpc.ServiceCall call, + $async.Future<$4.GetMemberRequest> request) async { return getMember(call, await request); } - $async.Future<$0.RegisterMemberResponse> registerMember( - $grpc.ServiceCall call, $0.RegisterMemberRequest request); - $async.Future<$0.UnregisterMemberResponse> unregisterMember( - $grpc.ServiceCall call, $0.UnregisterMemberRequest request); - $async.Future<$0.GetMemberAuthorizationStatusResponse> + $async.Future<$4.RegisterMemberResponse> registerMember( + $grpc.ServiceCall call, $4.RegisterMemberRequest request); + $async.Future<$4.UnregisterMemberResponse> unregisterMember( + $grpc.ServiceCall call, $4.UnregisterMemberRequest request); + $async.Future<$4.GetMemberAuthorizationStatusResponse> getMemberAuthorizationStatus($grpc.ServiceCall call, - $0.GetMemberAuthorizationStatusRequest request); - $async.Future<$0.ListAuthorizedMembersResponse> listAuthorizedMembers( - $grpc.ServiceCall call, $0.ListAuthorizedMembersRequest request); - $async.Future<$0.GetMemberResponse> getMember( - $grpc.ServiceCall call, $0.GetMemberRequest request); + $4.GetMemberAuthorizationStatusRequest request); + $async.Future<$4.ListAuthorizedMembersResponse> listAuthorizedMembers( + $grpc.ServiceCall call, $4.ListAuthorizedMembersRequest request); + $async.Future<$4.GetMemberResponse> getMember( + $grpc.ServiceCall call, $4.GetMemberRequest request); } diff --git a/dart/lib/src/proto/services/universal-wallet/v1/universal-wallet.pbgrpc.dart b/dart/lib/src/proto/services/universal-wallet/v1/universal-wallet.pbgrpc.dart index 9f5288c00..b6712e337 100644 --- a/dart/lib/src/proto/services/universal-wallet/v1/universal-wallet.pbgrpc.dart +++ b/dart/lib/src/proto/services/universal-wallet/v1/universal-wallet.pbgrpc.dart @@ -15,261 +15,261 @@ import 'dart:core' as $core; import 'package:grpc/service_api.dart' as $grpc; import 'package:protobuf/protobuf.dart' as $pb; -import 'universal-wallet.pb.dart' as $7; +import 'universal-wallet.pb.dart' as $5; export 'universal-wallet.pb.dart'; @$pb.GrpcServiceName('services.universalwallet.v1.UniversalWallet') class UniversalWalletClient extends $grpc.Client { static final _$getItem = - $grpc.ClientMethod<$7.GetItemRequest, $7.GetItemResponse>( + $grpc.ClientMethod<$5.GetItemRequest, $5.GetItemResponse>( '/services.universalwallet.v1.UniversalWallet/GetItem', - ($7.GetItemRequest value) => value.writeToBuffer(), + ($5.GetItemRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $7.GetItemResponse.fromBuffer(value)); + $5.GetItemResponse.fromBuffer(value)); static final _$search = - $grpc.ClientMethod<$7.SearchRequest, $7.SearchResponse>( + $grpc.ClientMethod<$5.SearchRequest, $5.SearchResponse>( '/services.universalwallet.v1.UniversalWallet/Search', - ($7.SearchRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $7.SearchResponse.fromBuffer(value)); + ($5.SearchRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $5.SearchResponse.fromBuffer(value)); static final _$insertItem = - $grpc.ClientMethod<$7.InsertItemRequest, $7.InsertItemResponse>( + $grpc.ClientMethod<$5.InsertItemRequest, $5.InsertItemResponse>( '/services.universalwallet.v1.UniversalWallet/InsertItem', - ($7.InsertItemRequest value) => value.writeToBuffer(), + ($5.InsertItemRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $7.InsertItemResponse.fromBuffer(value)); + $5.InsertItemResponse.fromBuffer(value)); static final _$updateItem = - $grpc.ClientMethod<$7.UpdateItemRequest, $7.UpdateItemResponse>( + $grpc.ClientMethod<$5.UpdateItemRequest, $5.UpdateItemResponse>( '/services.universalwallet.v1.UniversalWallet/UpdateItem', - ($7.UpdateItemRequest value) => value.writeToBuffer(), + ($5.UpdateItemRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $7.UpdateItemResponse.fromBuffer(value)); + $5.UpdateItemResponse.fromBuffer(value)); static final _$deleteItem = - $grpc.ClientMethod<$7.DeleteItemRequest, $7.DeleteItemResponse>( + $grpc.ClientMethod<$5.DeleteItemRequest, $5.DeleteItemResponse>( '/services.universalwallet.v1.UniversalWallet/DeleteItem', - ($7.DeleteItemRequest value) => value.writeToBuffer(), + ($5.DeleteItemRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $7.DeleteItemResponse.fromBuffer(value)); + $5.DeleteItemResponse.fromBuffer(value)); static final _$deleteWallet = - $grpc.ClientMethod<$7.DeleteWalletRequest, $7.DeleteWalletResponse>( + $grpc.ClientMethod<$5.DeleteWalletRequest, $5.DeleteWalletResponse>( '/services.universalwallet.v1.UniversalWallet/DeleteWallet', - ($7.DeleteWalletRequest value) => value.writeToBuffer(), + ($5.DeleteWalletRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $7.DeleteWalletResponse.fromBuffer(value)); + $5.DeleteWalletResponse.fromBuffer(value)); static final _$createWallet = - $grpc.ClientMethod<$7.CreateWalletRequest, $7.CreateWalletResponse>( + $grpc.ClientMethod<$5.CreateWalletRequest, $5.CreateWalletResponse>( '/services.universalwallet.v1.UniversalWallet/CreateWallet', - ($7.CreateWalletRequest value) => value.writeToBuffer(), + ($5.CreateWalletRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $7.CreateWalletResponse.fromBuffer(value)); + $5.CreateWalletResponse.fromBuffer(value)); static final _$getWalletInfo = - $grpc.ClientMethod<$7.GetWalletInfoRequest, $7.GetWalletInfoResponse>( + $grpc.ClientMethod<$5.GetWalletInfoRequest, $5.GetWalletInfoResponse>( '/services.universalwallet.v1.UniversalWallet/GetWalletInfo', - ($7.GetWalletInfoRequest value) => value.writeToBuffer(), + ($5.GetWalletInfoRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $7.GetWalletInfoResponse.fromBuffer(value)); + $5.GetWalletInfoResponse.fromBuffer(value)); static final _$getMyInfo = - $grpc.ClientMethod<$7.GetMyInfoRequest, $7.GetMyInfoResponse>( + $grpc.ClientMethod<$5.GetMyInfoRequest, $5.GetMyInfoResponse>( '/services.universalwallet.v1.UniversalWallet/GetMyInfo', - ($7.GetMyInfoRequest value) => value.writeToBuffer(), + ($5.GetMyInfoRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $7.GetMyInfoResponse.fromBuffer(value)); + $5.GetMyInfoResponse.fromBuffer(value)); static final _$getWalletFromExternalIdentity = $grpc.ClientMethod< - $7.GetWalletFromExternalIdentityRequest, - $7.GetWalletFromExternalIdentityResponse>( + $5.GetWalletFromExternalIdentityRequest, + $5.GetWalletFromExternalIdentityResponse>( '/services.universalwallet.v1.UniversalWallet/GetWalletFromExternalIdentity', - ($7.GetWalletFromExternalIdentityRequest value) => value.writeToBuffer(), + ($5.GetWalletFromExternalIdentityRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $7.GetWalletFromExternalIdentityResponse.fromBuffer(value)); + $5.GetWalletFromExternalIdentityResponse.fromBuffer(value)); static final _$generateAuthToken = $grpc.ClientMethod< - $7.GenerateAuthTokenRequest, $7.GenerateAuthTokenResponse>( + $5.GenerateAuthTokenRequest, $5.GenerateAuthTokenResponse>( '/services.universalwallet.v1.UniversalWallet/GenerateAuthToken', - ($7.GenerateAuthTokenRequest value) => value.writeToBuffer(), + ($5.GenerateAuthTokenRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $7.GenerateAuthTokenResponse.fromBuffer(value)); + $5.GenerateAuthTokenResponse.fromBuffer(value)); static final _$revokeAuthToken = - $grpc.ClientMethod<$7.RevokeAuthTokenRequest, $7.RevokeAuthTokenResponse>( + $grpc.ClientMethod<$5.RevokeAuthTokenRequest, $5.RevokeAuthTokenResponse>( '/services.universalwallet.v1.UniversalWallet/RevokeAuthToken', - ($7.RevokeAuthTokenRequest value) => value.writeToBuffer(), + ($5.RevokeAuthTokenRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $7.RevokeAuthTokenResponse.fromBuffer(value)); + $5.RevokeAuthTokenResponse.fromBuffer(value)); static final _$addExternalIdentityInit = $grpc.ClientMethod< - $7.AddExternalIdentityInitRequest, - $7.AddExternalIdentityInitResponse>( + $5.AddExternalIdentityInitRequest, + $5.AddExternalIdentityInitResponse>( '/services.universalwallet.v1.UniversalWallet/AddExternalIdentityInit', - ($7.AddExternalIdentityInitRequest value) => value.writeToBuffer(), + ($5.AddExternalIdentityInitRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $7.AddExternalIdentityInitResponse.fromBuffer(value)); + $5.AddExternalIdentityInitResponse.fromBuffer(value)); static final _$addExternalIdentityConfirm = $grpc.ClientMethod< - $7.AddExternalIdentityConfirmRequest, - $7.AddExternalIdentityConfirmResponse>( + $5.AddExternalIdentityConfirmRequest, + $5.AddExternalIdentityConfirmResponse>( '/services.universalwallet.v1.UniversalWallet/AddExternalIdentityConfirm', - ($7.AddExternalIdentityConfirmRequest value) => value.writeToBuffer(), + ($5.AddExternalIdentityConfirmRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $7.AddExternalIdentityConfirmResponse.fromBuffer(value)); + $5.AddExternalIdentityConfirmResponse.fromBuffer(value)); static final _$removeExternalIdentity = $grpc.ClientMethod< - $7.RemoveExternalIdentityRequest, $7.RemoveExternalIdentityResponse>( + $5.RemoveExternalIdentityRequest, $5.RemoveExternalIdentityResponse>( '/services.universalwallet.v1.UniversalWallet/RemoveExternalIdentity', - ($7.RemoveExternalIdentityRequest value) => value.writeToBuffer(), + ($5.RemoveExternalIdentityRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $7.RemoveExternalIdentityResponse.fromBuffer(value)); + $5.RemoveExternalIdentityResponse.fromBuffer(value)); static final _$authenticateInit = $grpc.ClientMethod< - $7.AuthenticateInitRequest, $7.AuthenticateInitResponse>( + $5.AuthenticateInitRequest, $5.AuthenticateInitResponse>( '/services.universalwallet.v1.UniversalWallet/AuthenticateInit', - ($7.AuthenticateInitRequest value) => value.writeToBuffer(), + ($5.AuthenticateInitRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $7.AuthenticateInitResponse.fromBuffer(value)); + $5.AuthenticateInitResponse.fromBuffer(value)); static final _$authenticateConfirm = $grpc.ClientMethod< - $7.AuthenticateConfirmRequest, $7.AuthenticateConfirmResponse>( + $5.AuthenticateConfirmRequest, $5.AuthenticateConfirmResponse>( '/services.universalwallet.v1.UniversalWallet/AuthenticateConfirm', - ($7.AuthenticateConfirmRequest value) => value.writeToBuffer(), + ($5.AuthenticateConfirmRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $7.AuthenticateConfirmResponse.fromBuffer(value)); + $5.AuthenticateConfirmResponse.fromBuffer(value)); static final _$authenticateResendCode = $grpc.ClientMethod< - $7.AuthenticateResendCodeRequest, $7.AuthenticateResendCodeResponse>( + $5.AuthenticateResendCodeRequest, $5.AuthenticateResendCodeResponse>( '/services.universalwallet.v1.UniversalWallet/AuthenticateResendCode', - ($7.AuthenticateResendCodeRequest value) => value.writeToBuffer(), + ($5.AuthenticateResendCodeRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $7.AuthenticateResendCodeResponse.fromBuffer(value)); + $5.AuthenticateResendCodeResponse.fromBuffer(value)); static final _$listWallets = - $grpc.ClientMethod<$7.ListWalletsRequest, $7.ListWalletsResponse>( + $grpc.ClientMethod<$5.ListWalletsRequest, $5.ListWalletsResponse>( '/services.universalwallet.v1.UniversalWallet/ListWallets', - ($7.ListWalletsRequest value) => value.writeToBuffer(), + ($5.ListWalletsRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $7.ListWalletsResponse.fromBuffer(value)); + $5.ListWalletsResponse.fromBuffer(value)); static final _$listByVerificationTemplate = $grpc.ClientMethod< - $7.ListByVerificationTemplateRequest, - $7.ListByVerificationTemplateResponse>( + $5.ListByVerificationTemplateRequest, + $5.ListByVerificationTemplateResponse>( '/services.universalwallet.v1.UniversalWallet/ListByVerificationTemplate', - ($7.ListByVerificationTemplateRequest value) => value.writeToBuffer(), + ($5.ListByVerificationTemplateRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $7.ListByVerificationTemplateResponse.fromBuffer(value)); + $5.ListByVerificationTemplateResponse.fromBuffer(value)); UniversalWalletClient($grpc.ClientChannel channel, {$grpc.CallOptions? options, $core.Iterable<$grpc.ClientInterceptor>? interceptors}) : super(channel, options: options, interceptors: interceptors); - $grpc.ResponseFuture<$7.GetItemResponse> getItem($7.GetItemRequest request, + $grpc.ResponseFuture<$5.GetItemResponse> getItem($5.GetItemRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getItem, request, options: options); } - $grpc.ResponseFuture<$7.SearchResponse> search($7.SearchRequest request, + $grpc.ResponseFuture<$5.SearchResponse> search($5.SearchRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$search, request, options: options); } - $grpc.ResponseFuture<$7.InsertItemResponse> insertItem( - $7.InsertItemRequest request, + $grpc.ResponseFuture<$5.InsertItemResponse> insertItem( + $5.InsertItemRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$insertItem, request, options: options); } - $grpc.ResponseFuture<$7.UpdateItemResponse> updateItem( - $7.UpdateItemRequest request, + $grpc.ResponseFuture<$5.UpdateItemResponse> updateItem( + $5.UpdateItemRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$updateItem, request, options: options); } - $grpc.ResponseFuture<$7.DeleteItemResponse> deleteItem( - $7.DeleteItemRequest request, + $grpc.ResponseFuture<$5.DeleteItemResponse> deleteItem( + $5.DeleteItemRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$deleteItem, request, options: options); } - $grpc.ResponseFuture<$7.DeleteWalletResponse> deleteWallet( - $7.DeleteWalletRequest request, + $grpc.ResponseFuture<$5.DeleteWalletResponse> deleteWallet( + $5.DeleteWalletRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$deleteWallet, request, options: options); } - $grpc.ResponseFuture<$7.CreateWalletResponse> createWallet( - $7.CreateWalletRequest request, + $grpc.ResponseFuture<$5.CreateWalletResponse> createWallet( + $5.CreateWalletRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$createWallet, request, options: options); } - $grpc.ResponseFuture<$7.GetWalletInfoResponse> getWalletInfo( - $7.GetWalletInfoRequest request, + $grpc.ResponseFuture<$5.GetWalletInfoResponse> getWalletInfo( + $5.GetWalletInfoRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getWalletInfo, request, options: options); } - $grpc.ResponseFuture<$7.GetMyInfoResponse> getMyInfo( - $7.GetMyInfoRequest request, + $grpc.ResponseFuture<$5.GetMyInfoResponse> getMyInfo( + $5.GetMyInfoRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getMyInfo, request, options: options); } - $grpc.ResponseFuture<$7.GetWalletFromExternalIdentityResponse> + $grpc.ResponseFuture<$5.GetWalletFromExternalIdentityResponse> getWalletFromExternalIdentity( - $7.GetWalletFromExternalIdentityRequest request, + $5.GetWalletFromExternalIdentityRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getWalletFromExternalIdentity, request, options: options); } - $grpc.ResponseFuture<$7.GenerateAuthTokenResponse> generateAuthToken( - $7.GenerateAuthTokenRequest request, + $grpc.ResponseFuture<$5.GenerateAuthTokenResponse> generateAuthToken( + $5.GenerateAuthTokenRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$generateAuthToken, request, options: options); } - $grpc.ResponseFuture<$7.RevokeAuthTokenResponse> revokeAuthToken( - $7.RevokeAuthTokenRequest request, + $grpc.ResponseFuture<$5.RevokeAuthTokenResponse> revokeAuthToken( + $5.RevokeAuthTokenRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$revokeAuthToken, request, options: options); } - $grpc.ResponseFuture<$7.AddExternalIdentityInitResponse> - addExternalIdentityInit($7.AddExternalIdentityInitRequest request, + $grpc.ResponseFuture<$5.AddExternalIdentityInitResponse> + addExternalIdentityInit($5.AddExternalIdentityInitRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$addExternalIdentityInit, request, options: options); } - $grpc.ResponseFuture<$7.AddExternalIdentityConfirmResponse> - addExternalIdentityConfirm($7.AddExternalIdentityConfirmRequest request, + $grpc.ResponseFuture<$5.AddExternalIdentityConfirmResponse> + addExternalIdentityConfirm($5.AddExternalIdentityConfirmRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$addExternalIdentityConfirm, request, options: options); } - $grpc.ResponseFuture<$7.RemoveExternalIdentityResponse> - removeExternalIdentity($7.RemoveExternalIdentityRequest request, + $grpc.ResponseFuture<$5.RemoveExternalIdentityResponse> + removeExternalIdentity($5.RemoveExternalIdentityRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$removeExternalIdentity, request, options: options); } - $grpc.ResponseFuture<$7.AuthenticateInitResponse> authenticateInit( - $7.AuthenticateInitRequest request, + $grpc.ResponseFuture<$5.AuthenticateInitResponse> authenticateInit( + $5.AuthenticateInitRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$authenticateInit, request, options: options); } - $grpc.ResponseFuture<$7.AuthenticateConfirmResponse> authenticateConfirm( - $7.AuthenticateConfirmRequest request, + $grpc.ResponseFuture<$5.AuthenticateConfirmResponse> authenticateConfirm( + $5.AuthenticateConfirmRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$authenticateConfirm, request, options: options); } - $grpc.ResponseFuture<$7.AuthenticateResendCodeResponse> - authenticateResendCode($7.AuthenticateResendCodeRequest request, + $grpc.ResponseFuture<$5.AuthenticateResendCodeResponse> + authenticateResendCode($5.AuthenticateResendCodeRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$authenticateResendCode, request, options: options); } - $grpc.ResponseFuture<$7.ListWalletsResponse> listWallets( - $7.ListWalletsRequest request, + $grpc.ResponseFuture<$5.ListWalletsResponse> listWallets( + $5.ListWalletsRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$listWallets, request, options: options); } - $grpc.ResponseFuture<$7.ListByVerificationTemplateResponse> - listByVerificationTemplate($7.ListByVerificationTemplateRequest request, + $grpc.ResponseFuture<$5.ListByVerificationTemplateResponse> + listByVerificationTemplate($5.ListByVerificationTemplateRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$listByVerificationTemplate, request, options: options); @@ -281,335 +281,335 @@ abstract class UniversalWalletServiceBase extends $grpc.Service { $core.String get $name => 'services.universalwallet.v1.UniversalWallet'; UniversalWalletServiceBase() { - $addMethod($grpc.ServiceMethod<$7.GetItemRequest, $7.GetItemResponse>( + $addMethod($grpc.ServiceMethod<$5.GetItemRequest, $5.GetItemResponse>( 'GetItem', getItem_Pre, false, false, - ($core.List<$core.int> value) => $7.GetItemRequest.fromBuffer(value), - ($7.GetItemResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$7.SearchRequest, $7.SearchResponse>( + ($core.List<$core.int> value) => $5.GetItemRequest.fromBuffer(value), + ($5.GetItemResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$5.SearchRequest, $5.SearchResponse>( 'Search', search_Pre, false, false, - ($core.List<$core.int> value) => $7.SearchRequest.fromBuffer(value), - ($7.SearchResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$7.InsertItemRequest, $7.InsertItemResponse>( + ($core.List<$core.int> value) => $5.SearchRequest.fromBuffer(value), + ($5.SearchResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$5.InsertItemRequest, $5.InsertItemResponse>( 'InsertItem', insertItem_Pre, false, false, - ($core.List<$core.int> value) => $7.InsertItemRequest.fromBuffer(value), - ($7.InsertItemResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$7.UpdateItemRequest, $7.UpdateItemResponse>( + ($core.List<$core.int> value) => $5.InsertItemRequest.fromBuffer(value), + ($5.InsertItemResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$5.UpdateItemRequest, $5.UpdateItemResponse>( 'UpdateItem', updateItem_Pre, false, false, - ($core.List<$core.int> value) => $7.UpdateItemRequest.fromBuffer(value), - ($7.UpdateItemResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$7.DeleteItemRequest, $7.DeleteItemResponse>( + ($core.List<$core.int> value) => $5.UpdateItemRequest.fromBuffer(value), + ($5.UpdateItemResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$5.DeleteItemRequest, $5.DeleteItemResponse>( 'DeleteItem', deleteItem_Pre, false, false, - ($core.List<$core.int> value) => $7.DeleteItemRequest.fromBuffer(value), - ($7.DeleteItemResponse value) => value.writeToBuffer())); + ($core.List<$core.int> value) => $5.DeleteItemRequest.fromBuffer(value), + ($5.DeleteItemResponse value) => value.writeToBuffer())); $addMethod( - $grpc.ServiceMethod<$7.DeleteWalletRequest, $7.DeleteWalletResponse>( + $grpc.ServiceMethod<$5.DeleteWalletRequest, $5.DeleteWalletResponse>( 'DeleteWallet', deleteWallet_Pre, false, false, ($core.List<$core.int> value) => - $7.DeleteWalletRequest.fromBuffer(value), - ($7.DeleteWalletResponse value) => value.writeToBuffer())); + $5.DeleteWalletRequest.fromBuffer(value), + ($5.DeleteWalletResponse value) => value.writeToBuffer())); $addMethod( - $grpc.ServiceMethod<$7.CreateWalletRequest, $7.CreateWalletResponse>( + $grpc.ServiceMethod<$5.CreateWalletRequest, $5.CreateWalletResponse>( 'CreateWallet', createWallet_Pre, false, false, ($core.List<$core.int> value) => - $7.CreateWalletRequest.fromBuffer(value), - ($7.CreateWalletResponse value) => value.writeToBuffer())); + $5.CreateWalletRequest.fromBuffer(value), + ($5.CreateWalletResponse value) => value.writeToBuffer())); $addMethod( - $grpc.ServiceMethod<$7.GetWalletInfoRequest, $7.GetWalletInfoResponse>( + $grpc.ServiceMethod<$5.GetWalletInfoRequest, $5.GetWalletInfoResponse>( 'GetWalletInfo', getWalletInfo_Pre, false, false, ($core.List<$core.int> value) => - $7.GetWalletInfoRequest.fromBuffer(value), - ($7.GetWalletInfoResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$7.GetMyInfoRequest, $7.GetMyInfoResponse>( + $5.GetWalletInfoRequest.fromBuffer(value), + ($5.GetWalletInfoResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$5.GetMyInfoRequest, $5.GetMyInfoResponse>( 'GetMyInfo', getMyInfo_Pre, false, false, - ($core.List<$core.int> value) => $7.GetMyInfoRequest.fromBuffer(value), - ($7.GetMyInfoResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$7.GetWalletFromExternalIdentityRequest, - $7.GetWalletFromExternalIdentityResponse>( + ($core.List<$core.int> value) => $5.GetMyInfoRequest.fromBuffer(value), + ($5.GetMyInfoResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$5.GetWalletFromExternalIdentityRequest, + $5.GetWalletFromExternalIdentityResponse>( 'GetWalletFromExternalIdentity', getWalletFromExternalIdentity_Pre, false, false, ($core.List<$core.int> value) => - $7.GetWalletFromExternalIdentityRequest.fromBuffer(value), - ($7.GetWalletFromExternalIdentityResponse value) => + $5.GetWalletFromExternalIdentityRequest.fromBuffer(value), + ($5.GetWalletFromExternalIdentityResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$7.GenerateAuthTokenRequest, - $7.GenerateAuthTokenResponse>( + $addMethod($grpc.ServiceMethod<$5.GenerateAuthTokenRequest, + $5.GenerateAuthTokenResponse>( 'GenerateAuthToken', generateAuthToken_Pre, false, false, ($core.List<$core.int> value) => - $7.GenerateAuthTokenRequest.fromBuffer(value), - ($7.GenerateAuthTokenResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$7.RevokeAuthTokenRequest, - $7.RevokeAuthTokenResponse>( + $5.GenerateAuthTokenRequest.fromBuffer(value), + ($5.GenerateAuthTokenResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$5.RevokeAuthTokenRequest, + $5.RevokeAuthTokenResponse>( 'RevokeAuthToken', revokeAuthToken_Pre, false, false, ($core.List<$core.int> value) => - $7.RevokeAuthTokenRequest.fromBuffer(value), - ($7.RevokeAuthTokenResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$7.AddExternalIdentityInitRequest, - $7.AddExternalIdentityInitResponse>( + $5.RevokeAuthTokenRequest.fromBuffer(value), + ($5.RevokeAuthTokenResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$5.AddExternalIdentityInitRequest, + $5.AddExternalIdentityInitResponse>( 'AddExternalIdentityInit', addExternalIdentityInit_Pre, false, false, ($core.List<$core.int> value) => - $7.AddExternalIdentityInitRequest.fromBuffer(value), - ($7.AddExternalIdentityInitResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$7.AddExternalIdentityConfirmRequest, - $7.AddExternalIdentityConfirmResponse>( + $5.AddExternalIdentityInitRequest.fromBuffer(value), + ($5.AddExternalIdentityInitResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$5.AddExternalIdentityConfirmRequest, + $5.AddExternalIdentityConfirmResponse>( 'AddExternalIdentityConfirm', addExternalIdentityConfirm_Pre, false, false, ($core.List<$core.int> value) => - $7.AddExternalIdentityConfirmRequest.fromBuffer(value), - ($7.AddExternalIdentityConfirmResponse value) => + $5.AddExternalIdentityConfirmRequest.fromBuffer(value), + ($5.AddExternalIdentityConfirmResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$7.RemoveExternalIdentityRequest, - $7.RemoveExternalIdentityResponse>( + $addMethod($grpc.ServiceMethod<$5.RemoveExternalIdentityRequest, + $5.RemoveExternalIdentityResponse>( 'RemoveExternalIdentity', removeExternalIdentity_Pre, false, false, ($core.List<$core.int> value) => - $7.RemoveExternalIdentityRequest.fromBuffer(value), - ($7.RemoveExternalIdentityResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$7.AuthenticateInitRequest, - $7.AuthenticateInitResponse>( + $5.RemoveExternalIdentityRequest.fromBuffer(value), + ($5.RemoveExternalIdentityResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$5.AuthenticateInitRequest, + $5.AuthenticateInitResponse>( 'AuthenticateInit', authenticateInit_Pre, false, false, ($core.List<$core.int> value) => - $7.AuthenticateInitRequest.fromBuffer(value), - ($7.AuthenticateInitResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$7.AuthenticateConfirmRequest, - $7.AuthenticateConfirmResponse>( + $5.AuthenticateInitRequest.fromBuffer(value), + ($5.AuthenticateInitResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$5.AuthenticateConfirmRequest, + $5.AuthenticateConfirmResponse>( 'AuthenticateConfirm', authenticateConfirm_Pre, false, false, ($core.List<$core.int> value) => - $7.AuthenticateConfirmRequest.fromBuffer(value), - ($7.AuthenticateConfirmResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$7.AuthenticateResendCodeRequest, - $7.AuthenticateResendCodeResponse>( + $5.AuthenticateConfirmRequest.fromBuffer(value), + ($5.AuthenticateConfirmResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$5.AuthenticateResendCodeRequest, + $5.AuthenticateResendCodeResponse>( 'AuthenticateResendCode', authenticateResendCode_Pre, false, false, ($core.List<$core.int> value) => - $7.AuthenticateResendCodeRequest.fromBuffer(value), - ($7.AuthenticateResendCodeResponse value) => value.writeToBuffer())); + $5.AuthenticateResendCodeRequest.fromBuffer(value), + ($5.AuthenticateResendCodeResponse value) => value.writeToBuffer())); $addMethod( - $grpc.ServiceMethod<$7.ListWalletsRequest, $7.ListWalletsResponse>( + $grpc.ServiceMethod<$5.ListWalletsRequest, $5.ListWalletsResponse>( 'ListWallets', listWallets_Pre, false, false, ($core.List<$core.int> value) => - $7.ListWalletsRequest.fromBuffer(value), - ($7.ListWalletsResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$7.ListByVerificationTemplateRequest, - $7.ListByVerificationTemplateResponse>( + $5.ListWalletsRequest.fromBuffer(value), + ($5.ListWalletsResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$5.ListByVerificationTemplateRequest, + $5.ListByVerificationTemplateResponse>( 'ListByVerificationTemplate', listByVerificationTemplate_Pre, false, false, ($core.List<$core.int> value) => - $7.ListByVerificationTemplateRequest.fromBuffer(value), - ($7.ListByVerificationTemplateResponse value) => + $5.ListByVerificationTemplateRequest.fromBuffer(value), + ($5.ListByVerificationTemplateResponse value) => value.writeToBuffer())); } - $async.Future<$7.GetItemResponse> getItem_Pre( - $grpc.ServiceCall call, $async.Future<$7.GetItemRequest> request) async { + $async.Future<$5.GetItemResponse> getItem_Pre( + $grpc.ServiceCall call, $async.Future<$5.GetItemRequest> request) async { return getItem(call, await request); } - $async.Future<$7.SearchResponse> search_Pre( - $grpc.ServiceCall call, $async.Future<$7.SearchRequest> request) async { + $async.Future<$5.SearchResponse> search_Pre( + $grpc.ServiceCall call, $async.Future<$5.SearchRequest> request) async { return search(call, await request); } - $async.Future<$7.InsertItemResponse> insertItem_Pre($grpc.ServiceCall call, - $async.Future<$7.InsertItemRequest> request) async { + $async.Future<$5.InsertItemResponse> insertItem_Pre($grpc.ServiceCall call, + $async.Future<$5.InsertItemRequest> request) async { return insertItem(call, await request); } - $async.Future<$7.UpdateItemResponse> updateItem_Pre($grpc.ServiceCall call, - $async.Future<$7.UpdateItemRequest> request) async { + $async.Future<$5.UpdateItemResponse> updateItem_Pre($grpc.ServiceCall call, + $async.Future<$5.UpdateItemRequest> request) async { return updateItem(call, await request); } - $async.Future<$7.DeleteItemResponse> deleteItem_Pre($grpc.ServiceCall call, - $async.Future<$7.DeleteItemRequest> request) async { + $async.Future<$5.DeleteItemResponse> deleteItem_Pre($grpc.ServiceCall call, + $async.Future<$5.DeleteItemRequest> request) async { return deleteItem(call, await request); } - $async.Future<$7.DeleteWalletResponse> deleteWallet_Pre( + $async.Future<$5.DeleteWalletResponse> deleteWallet_Pre( $grpc.ServiceCall call, - $async.Future<$7.DeleteWalletRequest> request) async { + $async.Future<$5.DeleteWalletRequest> request) async { return deleteWallet(call, await request); } - $async.Future<$7.CreateWalletResponse> createWallet_Pre( + $async.Future<$5.CreateWalletResponse> createWallet_Pre( $grpc.ServiceCall call, - $async.Future<$7.CreateWalletRequest> request) async { + $async.Future<$5.CreateWalletRequest> request) async { return createWallet(call, await request); } - $async.Future<$7.GetWalletInfoResponse> getWalletInfo_Pre( + $async.Future<$5.GetWalletInfoResponse> getWalletInfo_Pre( $grpc.ServiceCall call, - $async.Future<$7.GetWalletInfoRequest> request) async { + $async.Future<$5.GetWalletInfoRequest> request) async { return getWalletInfo(call, await request); } - $async.Future<$7.GetMyInfoResponse> getMyInfo_Pre($grpc.ServiceCall call, - $async.Future<$7.GetMyInfoRequest> request) async { + $async.Future<$5.GetMyInfoResponse> getMyInfo_Pre($grpc.ServiceCall call, + $async.Future<$5.GetMyInfoRequest> request) async { return getMyInfo(call, await request); } - $async.Future<$7.GetWalletFromExternalIdentityResponse> + $async.Future<$5.GetWalletFromExternalIdentityResponse> getWalletFromExternalIdentity_Pre( $grpc.ServiceCall call, - $async.Future<$7.GetWalletFromExternalIdentityRequest> + $async.Future<$5.GetWalletFromExternalIdentityRequest> request) async { return getWalletFromExternalIdentity(call, await request); } - $async.Future<$7.GenerateAuthTokenResponse> generateAuthToken_Pre( + $async.Future<$5.GenerateAuthTokenResponse> generateAuthToken_Pre( $grpc.ServiceCall call, - $async.Future<$7.GenerateAuthTokenRequest> request) async { + $async.Future<$5.GenerateAuthTokenRequest> request) async { return generateAuthToken(call, await request); } - $async.Future<$7.RevokeAuthTokenResponse> revokeAuthToken_Pre( + $async.Future<$5.RevokeAuthTokenResponse> revokeAuthToken_Pre( $grpc.ServiceCall call, - $async.Future<$7.RevokeAuthTokenRequest> request) async { + $async.Future<$5.RevokeAuthTokenRequest> request) async { return revokeAuthToken(call, await request); } - $async.Future<$7.AddExternalIdentityInitResponse> addExternalIdentityInit_Pre( + $async.Future<$5.AddExternalIdentityInitResponse> addExternalIdentityInit_Pre( $grpc.ServiceCall call, - $async.Future<$7.AddExternalIdentityInitRequest> request) async { + $async.Future<$5.AddExternalIdentityInitRequest> request) async { return addExternalIdentityInit(call, await request); } - $async.Future<$7.AddExternalIdentityConfirmResponse> + $async.Future<$5.AddExternalIdentityConfirmResponse> addExternalIdentityConfirm_Pre($grpc.ServiceCall call, - $async.Future<$7.AddExternalIdentityConfirmRequest> request) async { + $async.Future<$5.AddExternalIdentityConfirmRequest> request) async { return addExternalIdentityConfirm(call, await request); } - $async.Future<$7.RemoveExternalIdentityResponse> removeExternalIdentity_Pre( + $async.Future<$5.RemoveExternalIdentityResponse> removeExternalIdentity_Pre( $grpc.ServiceCall call, - $async.Future<$7.RemoveExternalIdentityRequest> request) async { + $async.Future<$5.RemoveExternalIdentityRequest> request) async { return removeExternalIdentity(call, await request); } - $async.Future<$7.AuthenticateInitResponse> authenticateInit_Pre( + $async.Future<$5.AuthenticateInitResponse> authenticateInit_Pre( $grpc.ServiceCall call, - $async.Future<$7.AuthenticateInitRequest> request) async { + $async.Future<$5.AuthenticateInitRequest> request) async { return authenticateInit(call, await request); } - $async.Future<$7.AuthenticateConfirmResponse> authenticateConfirm_Pre( + $async.Future<$5.AuthenticateConfirmResponse> authenticateConfirm_Pre( $grpc.ServiceCall call, - $async.Future<$7.AuthenticateConfirmRequest> request) async { + $async.Future<$5.AuthenticateConfirmRequest> request) async { return authenticateConfirm(call, await request); } - $async.Future<$7.AuthenticateResendCodeResponse> authenticateResendCode_Pre( + $async.Future<$5.AuthenticateResendCodeResponse> authenticateResendCode_Pre( $grpc.ServiceCall call, - $async.Future<$7.AuthenticateResendCodeRequest> request) async { + $async.Future<$5.AuthenticateResendCodeRequest> request) async { return authenticateResendCode(call, await request); } - $async.Future<$7.ListWalletsResponse> listWallets_Pre($grpc.ServiceCall call, - $async.Future<$7.ListWalletsRequest> request) async { + $async.Future<$5.ListWalletsResponse> listWallets_Pre($grpc.ServiceCall call, + $async.Future<$5.ListWalletsRequest> request) async { return listWallets(call, await request); } - $async.Future<$7.ListByVerificationTemplateResponse> + $async.Future<$5.ListByVerificationTemplateResponse> listByVerificationTemplate_Pre($grpc.ServiceCall call, - $async.Future<$7.ListByVerificationTemplateRequest> request) async { + $async.Future<$5.ListByVerificationTemplateRequest> request) async { return listByVerificationTemplate(call, await request); } - $async.Future<$7.GetItemResponse> getItem( - $grpc.ServiceCall call, $7.GetItemRequest request); - $async.Future<$7.SearchResponse> search( - $grpc.ServiceCall call, $7.SearchRequest request); - $async.Future<$7.InsertItemResponse> insertItem( - $grpc.ServiceCall call, $7.InsertItemRequest request); - $async.Future<$7.UpdateItemResponse> updateItem( - $grpc.ServiceCall call, $7.UpdateItemRequest request); - $async.Future<$7.DeleteItemResponse> deleteItem( - $grpc.ServiceCall call, $7.DeleteItemRequest request); - $async.Future<$7.DeleteWalletResponse> deleteWallet( - $grpc.ServiceCall call, $7.DeleteWalletRequest request); - $async.Future<$7.CreateWalletResponse> createWallet( - $grpc.ServiceCall call, $7.CreateWalletRequest request); - $async.Future<$7.GetWalletInfoResponse> getWalletInfo( - $grpc.ServiceCall call, $7.GetWalletInfoRequest request); - $async.Future<$7.GetMyInfoResponse> getMyInfo( - $grpc.ServiceCall call, $7.GetMyInfoRequest request); - $async.Future<$7.GetWalletFromExternalIdentityResponse> + $async.Future<$5.GetItemResponse> getItem( + $grpc.ServiceCall call, $5.GetItemRequest request); + $async.Future<$5.SearchResponse> search( + $grpc.ServiceCall call, $5.SearchRequest request); + $async.Future<$5.InsertItemResponse> insertItem( + $grpc.ServiceCall call, $5.InsertItemRequest request); + $async.Future<$5.UpdateItemResponse> updateItem( + $grpc.ServiceCall call, $5.UpdateItemRequest request); + $async.Future<$5.DeleteItemResponse> deleteItem( + $grpc.ServiceCall call, $5.DeleteItemRequest request); + $async.Future<$5.DeleteWalletResponse> deleteWallet( + $grpc.ServiceCall call, $5.DeleteWalletRequest request); + $async.Future<$5.CreateWalletResponse> createWallet( + $grpc.ServiceCall call, $5.CreateWalletRequest request); + $async.Future<$5.GetWalletInfoResponse> getWalletInfo( + $grpc.ServiceCall call, $5.GetWalletInfoRequest request); + $async.Future<$5.GetMyInfoResponse> getMyInfo( + $grpc.ServiceCall call, $5.GetMyInfoRequest request); + $async.Future<$5.GetWalletFromExternalIdentityResponse> getWalletFromExternalIdentity($grpc.ServiceCall call, - $7.GetWalletFromExternalIdentityRequest request); - $async.Future<$7.GenerateAuthTokenResponse> generateAuthToken( - $grpc.ServiceCall call, $7.GenerateAuthTokenRequest request); - $async.Future<$7.RevokeAuthTokenResponse> revokeAuthToken( - $grpc.ServiceCall call, $7.RevokeAuthTokenRequest request); - $async.Future<$7.AddExternalIdentityInitResponse> addExternalIdentityInit( - $grpc.ServiceCall call, $7.AddExternalIdentityInitRequest request); - $async.Future<$7.AddExternalIdentityConfirmResponse> + $5.GetWalletFromExternalIdentityRequest request); + $async.Future<$5.GenerateAuthTokenResponse> generateAuthToken( + $grpc.ServiceCall call, $5.GenerateAuthTokenRequest request); + $async.Future<$5.RevokeAuthTokenResponse> revokeAuthToken( + $grpc.ServiceCall call, $5.RevokeAuthTokenRequest request); + $async.Future<$5.AddExternalIdentityInitResponse> addExternalIdentityInit( + $grpc.ServiceCall call, $5.AddExternalIdentityInitRequest request); + $async.Future<$5.AddExternalIdentityConfirmResponse> addExternalIdentityConfirm( - $grpc.ServiceCall call, $7.AddExternalIdentityConfirmRequest request); - $async.Future<$7.RemoveExternalIdentityResponse> removeExternalIdentity( - $grpc.ServiceCall call, $7.RemoveExternalIdentityRequest request); - $async.Future<$7.AuthenticateInitResponse> authenticateInit( - $grpc.ServiceCall call, $7.AuthenticateInitRequest request); - $async.Future<$7.AuthenticateConfirmResponse> authenticateConfirm( - $grpc.ServiceCall call, $7.AuthenticateConfirmRequest request); - $async.Future<$7.AuthenticateResendCodeResponse> authenticateResendCode( - $grpc.ServiceCall call, $7.AuthenticateResendCodeRequest request); - $async.Future<$7.ListWalletsResponse> listWallets( - $grpc.ServiceCall call, $7.ListWalletsRequest request); - $async.Future<$7.ListByVerificationTemplateResponse> + $grpc.ServiceCall call, $5.AddExternalIdentityConfirmRequest request); + $async.Future<$5.RemoveExternalIdentityResponse> removeExternalIdentity( + $grpc.ServiceCall call, $5.RemoveExternalIdentityRequest request); + $async.Future<$5.AuthenticateInitResponse> authenticateInit( + $grpc.ServiceCall call, $5.AuthenticateInitRequest request); + $async.Future<$5.AuthenticateConfirmResponse> authenticateConfirm( + $grpc.ServiceCall call, $5.AuthenticateConfirmRequest request); + $async.Future<$5.AuthenticateResendCodeResponse> authenticateResendCode( + $grpc.ServiceCall call, $5.AuthenticateResendCodeRequest request); + $async.Future<$5.ListWalletsResponse> listWallets( + $grpc.ServiceCall call, $5.ListWalletsRequest request); + $async.Future<$5.ListByVerificationTemplateResponse> listByVerificationTemplate( - $grpc.ServiceCall call, $7.ListByVerificationTemplateRequest request); + $grpc.ServiceCall call, $5.ListByVerificationTemplateRequest request); } diff --git a/dart/lib/src/proto/services/verifiable-credentials/templates/v1/templates.pbgrpc.dart b/dart/lib/src/proto/services/verifiable-credentials/templates/v1/templates.pbgrpc.dart index 410d0e5a2..8f1a1a44f 100644 --- a/dart/lib/src/proto/services/verifiable-credentials/templates/v1/templates.pbgrpc.dart +++ b/dart/lib/src/proto/services/verifiable-credentials/templates/v1/templates.pbgrpc.dart @@ -15,157 +15,157 @@ import 'dart:core' as $core; import 'package:grpc/service_api.dart' as $grpc; import 'package:protobuf/protobuf.dart' as $pb; -import 'templates.pb.dart' as $3; +import 'templates.pb.dart' as $6; export 'templates.pb.dart'; @$pb.GrpcServiceName( 'services.verifiablecredentials.templates.v1.CredentialTemplates') class CredentialTemplatesClient extends $grpc.Client { - static final _$create = $grpc.ClientMethod<$3.CreateCredentialTemplateRequest, - $3.CreateCredentialTemplateResponse>( + static final _$create = $grpc.ClientMethod<$6.CreateCredentialTemplateRequest, + $6.CreateCredentialTemplateResponse>( '/services.verifiablecredentials.templates.v1.CredentialTemplates/Create', - ($3.CreateCredentialTemplateRequest value) => value.writeToBuffer(), + ($6.CreateCredentialTemplateRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $3.CreateCredentialTemplateResponse.fromBuffer(value)); - static final _$get = $grpc.ClientMethod<$3.GetCredentialTemplateRequest, - $3.GetCredentialTemplateResponse>( + $6.CreateCredentialTemplateResponse.fromBuffer(value)); + static final _$get = $grpc.ClientMethod<$6.GetCredentialTemplateRequest, + $6.GetCredentialTemplateResponse>( '/services.verifiablecredentials.templates.v1.CredentialTemplates/Get', - ($3.GetCredentialTemplateRequest value) => value.writeToBuffer(), + ($6.GetCredentialTemplateRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $3.GetCredentialTemplateResponse.fromBuffer(value)); - static final _$update = $grpc.ClientMethod<$3.UpdateCredentialTemplateRequest, - $3.UpdateCredentialTemplateResponse>( + $6.GetCredentialTemplateResponse.fromBuffer(value)); + static final _$update = $grpc.ClientMethod<$6.UpdateCredentialTemplateRequest, + $6.UpdateCredentialTemplateResponse>( '/services.verifiablecredentials.templates.v1.CredentialTemplates/Update', - ($3.UpdateCredentialTemplateRequest value) => value.writeToBuffer(), + ($6.UpdateCredentialTemplateRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $3.UpdateCredentialTemplateResponse.fromBuffer(value)); - static final _$list = $grpc.ClientMethod<$3.ListCredentialTemplatesRequest, - $3.ListCredentialTemplatesResponse>( + $6.UpdateCredentialTemplateResponse.fromBuffer(value)); + static final _$list = $grpc.ClientMethod<$6.ListCredentialTemplatesRequest, + $6.ListCredentialTemplatesResponse>( '/services.verifiablecredentials.templates.v1.CredentialTemplates/List', - ($3.ListCredentialTemplatesRequest value) => value.writeToBuffer(), + ($6.ListCredentialTemplatesRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $3.ListCredentialTemplatesResponse.fromBuffer(value)); + $6.ListCredentialTemplatesResponse.fromBuffer(value)); static final _$search = $grpc.ClientMethod< - $3.SearchCredentialTemplatesRequest, - $3.SearchCredentialTemplatesResponse>( + $6.SearchCredentialTemplatesRequest, + $6.SearchCredentialTemplatesResponse>( '/services.verifiablecredentials.templates.v1.CredentialTemplates/Search', - ($3.SearchCredentialTemplatesRequest value) => value.writeToBuffer(), + ($6.SearchCredentialTemplatesRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $3.SearchCredentialTemplatesResponse.fromBuffer(value)); - static final _$delete = $grpc.ClientMethod<$3.DeleteCredentialTemplateRequest, - $3.DeleteCredentialTemplateResponse>( + $6.SearchCredentialTemplatesResponse.fromBuffer(value)); + static final _$delete = $grpc.ClientMethod<$6.DeleteCredentialTemplateRequest, + $6.DeleteCredentialTemplateResponse>( '/services.verifiablecredentials.templates.v1.CredentialTemplates/Delete', - ($3.DeleteCredentialTemplateRequest value) => value.writeToBuffer(), + ($6.DeleteCredentialTemplateRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $3.DeleteCredentialTemplateResponse.fromBuffer(value)); + $6.DeleteCredentialTemplateResponse.fromBuffer(value)); static final _$createVerificationTemplate = $grpc.ClientMethod< - $3.CreateVerificationTemplateRequest, - $3.CreateVerificationTemplateResponse>( + $6.CreateVerificationTemplateRequest, + $6.CreateVerificationTemplateResponse>( '/services.verifiablecredentials.templates.v1.CredentialTemplates/CreateVerificationTemplate', - ($3.CreateVerificationTemplateRequest value) => value.writeToBuffer(), + ($6.CreateVerificationTemplateRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $3.CreateVerificationTemplateResponse.fromBuffer(value)); + $6.CreateVerificationTemplateResponse.fromBuffer(value)); static final _$listVerificationTemplates = $grpc.ClientMethod< - $3.ListVerificationTemplatesRequest, - $3.ListVerificationTemplatesResponse>( + $6.ListVerificationTemplatesRequest, + $6.ListVerificationTemplatesResponse>( '/services.verifiablecredentials.templates.v1.CredentialTemplates/ListVerificationTemplates', - ($3.ListVerificationTemplatesRequest value) => value.writeToBuffer(), + ($6.ListVerificationTemplatesRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $3.ListVerificationTemplatesResponse.fromBuffer(value)); + $6.ListVerificationTemplatesResponse.fromBuffer(value)); static final _$getVerificationTemplate = $grpc.ClientMethod< - $3.GetVerificationTemplateRequest, - $3.GetVerificationTemplateResponse>( + $6.GetVerificationTemplateRequest, + $6.GetVerificationTemplateResponse>( '/services.verifiablecredentials.templates.v1.CredentialTemplates/GetVerificationTemplate', - ($3.GetVerificationTemplateRequest value) => value.writeToBuffer(), + ($6.GetVerificationTemplateRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $3.GetVerificationTemplateResponse.fromBuffer(value)); + $6.GetVerificationTemplateResponse.fromBuffer(value)); static final _$updateVerificationTemplate = $grpc.ClientMethod< - $3.UpdateVerificationTemplateRequest, - $3.UpdateVerificationTemplateResponse>( + $6.UpdateVerificationTemplateRequest, + $6.UpdateVerificationTemplateResponse>( '/services.verifiablecredentials.templates.v1.CredentialTemplates/UpdateVerificationTemplate', - ($3.UpdateVerificationTemplateRequest value) => value.writeToBuffer(), + ($6.UpdateVerificationTemplateRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $3.UpdateVerificationTemplateResponse.fromBuffer(value)); + $6.UpdateVerificationTemplateResponse.fromBuffer(value)); static final _$deleteVerificationTemplate = $grpc.ClientMethod< - $3.DeleteVerificationTemplateRequest, - $3.DeleteVerificationTemplateResponse>( + $6.DeleteVerificationTemplateRequest, + $6.DeleteVerificationTemplateResponse>( '/services.verifiablecredentials.templates.v1.CredentialTemplates/DeleteVerificationTemplate', - ($3.DeleteVerificationTemplateRequest value) => value.writeToBuffer(), + ($6.DeleteVerificationTemplateRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $3.DeleteVerificationTemplateResponse.fromBuffer(value)); + $6.DeleteVerificationTemplateResponse.fromBuffer(value)); CredentialTemplatesClient($grpc.ClientChannel channel, {$grpc.CallOptions? options, $core.Iterable<$grpc.ClientInterceptor>? interceptors}) : super(channel, options: options, interceptors: interceptors); - $grpc.ResponseFuture<$3.CreateCredentialTemplateResponse> create( - $3.CreateCredentialTemplateRequest request, + $grpc.ResponseFuture<$6.CreateCredentialTemplateResponse> create( + $6.CreateCredentialTemplateRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$create, request, options: options); } - $grpc.ResponseFuture<$3.GetCredentialTemplateResponse> get( - $3.GetCredentialTemplateRequest request, + $grpc.ResponseFuture<$6.GetCredentialTemplateResponse> get( + $6.GetCredentialTemplateRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$get, request, options: options); } - $grpc.ResponseFuture<$3.UpdateCredentialTemplateResponse> update( - $3.UpdateCredentialTemplateRequest request, + $grpc.ResponseFuture<$6.UpdateCredentialTemplateResponse> update( + $6.UpdateCredentialTemplateRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$update, request, options: options); } - $grpc.ResponseFuture<$3.ListCredentialTemplatesResponse> list( - $3.ListCredentialTemplatesRequest request, + $grpc.ResponseFuture<$6.ListCredentialTemplatesResponse> list( + $6.ListCredentialTemplatesRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$list, request, options: options); } - $grpc.ResponseFuture<$3.SearchCredentialTemplatesResponse> search( - $3.SearchCredentialTemplatesRequest request, + $grpc.ResponseFuture<$6.SearchCredentialTemplatesResponse> search( + $6.SearchCredentialTemplatesRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$search, request, options: options); } - $grpc.ResponseFuture<$3.DeleteCredentialTemplateResponse> delete( - $3.DeleteCredentialTemplateRequest request, + $grpc.ResponseFuture<$6.DeleteCredentialTemplateResponse> delete( + $6.DeleteCredentialTemplateRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$delete, request, options: options); } - $grpc.ResponseFuture<$3.CreateVerificationTemplateResponse> - createVerificationTemplate($3.CreateVerificationTemplateRequest request, + $grpc.ResponseFuture<$6.CreateVerificationTemplateResponse> + createVerificationTemplate($6.CreateVerificationTemplateRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$createVerificationTemplate, request, options: options); } - $grpc.ResponseFuture<$3.ListVerificationTemplatesResponse> - listVerificationTemplates($3.ListVerificationTemplatesRequest request, + $grpc.ResponseFuture<$6.ListVerificationTemplatesResponse> + listVerificationTemplates($6.ListVerificationTemplatesRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$listVerificationTemplates, request, options: options); } - $grpc.ResponseFuture<$3.GetVerificationTemplateResponse> - getVerificationTemplate($3.GetVerificationTemplateRequest request, + $grpc.ResponseFuture<$6.GetVerificationTemplateResponse> + getVerificationTemplate($6.GetVerificationTemplateRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getVerificationTemplate, request, options: options); } - $grpc.ResponseFuture<$3.UpdateVerificationTemplateResponse> - updateVerificationTemplate($3.UpdateVerificationTemplateRequest request, + $grpc.ResponseFuture<$6.UpdateVerificationTemplateResponse> + updateVerificationTemplate($6.UpdateVerificationTemplateRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$updateVerificationTemplate, request, options: options); } - $grpc.ResponseFuture<$3.DeleteVerificationTemplateResponse> - deleteVerificationTemplate($3.DeleteVerificationTemplateRequest request, + $grpc.ResponseFuture<$6.DeleteVerificationTemplateResponse> + deleteVerificationTemplate($6.DeleteVerificationTemplateRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$deleteVerificationTemplate, request, options: options); @@ -179,199 +179,199 @@ abstract class CredentialTemplatesServiceBase extends $grpc.Service { 'services.verifiablecredentials.templates.v1.CredentialTemplates'; CredentialTemplatesServiceBase() { - $addMethod($grpc.ServiceMethod<$3.CreateCredentialTemplateRequest, - $3.CreateCredentialTemplateResponse>( + $addMethod($grpc.ServiceMethod<$6.CreateCredentialTemplateRequest, + $6.CreateCredentialTemplateResponse>( 'Create', create_Pre, false, false, ($core.List<$core.int> value) => - $3.CreateCredentialTemplateRequest.fromBuffer(value), - ($3.CreateCredentialTemplateResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$3.GetCredentialTemplateRequest, - $3.GetCredentialTemplateResponse>( + $6.CreateCredentialTemplateRequest.fromBuffer(value), + ($6.CreateCredentialTemplateResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$6.GetCredentialTemplateRequest, + $6.GetCredentialTemplateResponse>( 'Get', get_Pre, false, false, ($core.List<$core.int> value) => - $3.GetCredentialTemplateRequest.fromBuffer(value), - ($3.GetCredentialTemplateResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$3.UpdateCredentialTemplateRequest, - $3.UpdateCredentialTemplateResponse>( + $6.GetCredentialTemplateRequest.fromBuffer(value), + ($6.GetCredentialTemplateResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$6.UpdateCredentialTemplateRequest, + $6.UpdateCredentialTemplateResponse>( 'Update', update_Pre, false, false, ($core.List<$core.int> value) => - $3.UpdateCredentialTemplateRequest.fromBuffer(value), - ($3.UpdateCredentialTemplateResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$3.ListCredentialTemplatesRequest, - $3.ListCredentialTemplatesResponse>( + $6.UpdateCredentialTemplateRequest.fromBuffer(value), + ($6.UpdateCredentialTemplateResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$6.ListCredentialTemplatesRequest, + $6.ListCredentialTemplatesResponse>( 'List', list_Pre, false, false, ($core.List<$core.int> value) => - $3.ListCredentialTemplatesRequest.fromBuffer(value), - ($3.ListCredentialTemplatesResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$3.SearchCredentialTemplatesRequest, - $3.SearchCredentialTemplatesResponse>( + $6.ListCredentialTemplatesRequest.fromBuffer(value), + ($6.ListCredentialTemplatesResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$6.SearchCredentialTemplatesRequest, + $6.SearchCredentialTemplatesResponse>( 'Search', search_Pre, false, false, ($core.List<$core.int> value) => - $3.SearchCredentialTemplatesRequest.fromBuffer(value), - ($3.SearchCredentialTemplatesResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$3.DeleteCredentialTemplateRequest, - $3.DeleteCredentialTemplateResponse>( + $6.SearchCredentialTemplatesRequest.fromBuffer(value), + ($6.SearchCredentialTemplatesResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$6.DeleteCredentialTemplateRequest, + $6.DeleteCredentialTemplateResponse>( 'Delete', delete_Pre, false, false, ($core.List<$core.int> value) => - $3.DeleteCredentialTemplateRequest.fromBuffer(value), - ($3.DeleteCredentialTemplateResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$3.CreateVerificationTemplateRequest, - $3.CreateVerificationTemplateResponse>( + $6.DeleteCredentialTemplateRequest.fromBuffer(value), + ($6.DeleteCredentialTemplateResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$6.CreateVerificationTemplateRequest, + $6.CreateVerificationTemplateResponse>( 'CreateVerificationTemplate', createVerificationTemplate_Pre, false, false, ($core.List<$core.int> value) => - $3.CreateVerificationTemplateRequest.fromBuffer(value), - ($3.CreateVerificationTemplateResponse value) => + $6.CreateVerificationTemplateRequest.fromBuffer(value), + ($6.CreateVerificationTemplateResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$3.ListVerificationTemplatesRequest, - $3.ListVerificationTemplatesResponse>( + $addMethod($grpc.ServiceMethod<$6.ListVerificationTemplatesRequest, + $6.ListVerificationTemplatesResponse>( 'ListVerificationTemplates', listVerificationTemplates_Pre, false, false, ($core.List<$core.int> value) => - $3.ListVerificationTemplatesRequest.fromBuffer(value), - ($3.ListVerificationTemplatesResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$3.GetVerificationTemplateRequest, - $3.GetVerificationTemplateResponse>( + $6.ListVerificationTemplatesRequest.fromBuffer(value), + ($6.ListVerificationTemplatesResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$6.GetVerificationTemplateRequest, + $6.GetVerificationTemplateResponse>( 'GetVerificationTemplate', getVerificationTemplate_Pre, false, false, ($core.List<$core.int> value) => - $3.GetVerificationTemplateRequest.fromBuffer(value), - ($3.GetVerificationTemplateResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$3.UpdateVerificationTemplateRequest, - $3.UpdateVerificationTemplateResponse>( + $6.GetVerificationTemplateRequest.fromBuffer(value), + ($6.GetVerificationTemplateResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$6.UpdateVerificationTemplateRequest, + $6.UpdateVerificationTemplateResponse>( 'UpdateVerificationTemplate', updateVerificationTemplate_Pre, false, false, ($core.List<$core.int> value) => - $3.UpdateVerificationTemplateRequest.fromBuffer(value), - ($3.UpdateVerificationTemplateResponse value) => + $6.UpdateVerificationTemplateRequest.fromBuffer(value), + ($6.UpdateVerificationTemplateResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$3.DeleteVerificationTemplateRequest, - $3.DeleteVerificationTemplateResponse>( + $addMethod($grpc.ServiceMethod<$6.DeleteVerificationTemplateRequest, + $6.DeleteVerificationTemplateResponse>( 'DeleteVerificationTemplate', deleteVerificationTemplate_Pre, false, false, ($core.List<$core.int> value) => - $3.DeleteVerificationTemplateRequest.fromBuffer(value), - ($3.DeleteVerificationTemplateResponse value) => + $6.DeleteVerificationTemplateRequest.fromBuffer(value), + ($6.DeleteVerificationTemplateResponse value) => value.writeToBuffer())); } - $async.Future<$3.CreateCredentialTemplateResponse> create_Pre( + $async.Future<$6.CreateCredentialTemplateResponse> create_Pre( $grpc.ServiceCall call, - $async.Future<$3.CreateCredentialTemplateRequest> request) async { + $async.Future<$6.CreateCredentialTemplateRequest> request) async { return create(call, await request); } - $async.Future<$3.GetCredentialTemplateResponse> get_Pre( + $async.Future<$6.GetCredentialTemplateResponse> get_Pre( $grpc.ServiceCall call, - $async.Future<$3.GetCredentialTemplateRequest> request) async { + $async.Future<$6.GetCredentialTemplateRequest> request) async { return get(call, await request); } - $async.Future<$3.UpdateCredentialTemplateResponse> update_Pre( + $async.Future<$6.UpdateCredentialTemplateResponse> update_Pre( $grpc.ServiceCall call, - $async.Future<$3.UpdateCredentialTemplateRequest> request) async { + $async.Future<$6.UpdateCredentialTemplateRequest> request) async { return update(call, await request); } - $async.Future<$3.ListCredentialTemplatesResponse> list_Pre( + $async.Future<$6.ListCredentialTemplatesResponse> list_Pre( $grpc.ServiceCall call, - $async.Future<$3.ListCredentialTemplatesRequest> request) async { + $async.Future<$6.ListCredentialTemplatesRequest> request) async { return list(call, await request); } - $async.Future<$3.SearchCredentialTemplatesResponse> search_Pre( + $async.Future<$6.SearchCredentialTemplatesResponse> search_Pre( $grpc.ServiceCall call, - $async.Future<$3.SearchCredentialTemplatesRequest> request) async { + $async.Future<$6.SearchCredentialTemplatesRequest> request) async { return search(call, await request); } - $async.Future<$3.DeleteCredentialTemplateResponse> delete_Pre( + $async.Future<$6.DeleteCredentialTemplateResponse> delete_Pre( $grpc.ServiceCall call, - $async.Future<$3.DeleteCredentialTemplateRequest> request) async { + $async.Future<$6.DeleteCredentialTemplateRequest> request) async { return delete(call, await request); } - $async.Future<$3.CreateVerificationTemplateResponse> + $async.Future<$6.CreateVerificationTemplateResponse> createVerificationTemplate_Pre($grpc.ServiceCall call, - $async.Future<$3.CreateVerificationTemplateRequest> request) async { + $async.Future<$6.CreateVerificationTemplateRequest> request) async { return createVerificationTemplate(call, await request); } - $async.Future<$3.ListVerificationTemplatesResponse> + $async.Future<$6.ListVerificationTemplatesResponse> listVerificationTemplates_Pre($grpc.ServiceCall call, - $async.Future<$3.ListVerificationTemplatesRequest> request) async { + $async.Future<$6.ListVerificationTemplatesRequest> request) async { return listVerificationTemplates(call, await request); } - $async.Future<$3.GetVerificationTemplateResponse> getVerificationTemplate_Pre( + $async.Future<$6.GetVerificationTemplateResponse> getVerificationTemplate_Pre( $grpc.ServiceCall call, - $async.Future<$3.GetVerificationTemplateRequest> request) async { + $async.Future<$6.GetVerificationTemplateRequest> request) async { return getVerificationTemplate(call, await request); } - $async.Future<$3.UpdateVerificationTemplateResponse> + $async.Future<$6.UpdateVerificationTemplateResponse> updateVerificationTemplate_Pre($grpc.ServiceCall call, - $async.Future<$3.UpdateVerificationTemplateRequest> request) async { + $async.Future<$6.UpdateVerificationTemplateRequest> request) async { return updateVerificationTemplate(call, await request); } - $async.Future<$3.DeleteVerificationTemplateResponse> + $async.Future<$6.DeleteVerificationTemplateResponse> deleteVerificationTemplate_Pre($grpc.ServiceCall call, - $async.Future<$3.DeleteVerificationTemplateRequest> request) async { + $async.Future<$6.DeleteVerificationTemplateRequest> request) async { return deleteVerificationTemplate(call, await request); } - $async.Future<$3.CreateCredentialTemplateResponse> create( - $grpc.ServiceCall call, $3.CreateCredentialTemplateRequest request); - $async.Future<$3.GetCredentialTemplateResponse> get( - $grpc.ServiceCall call, $3.GetCredentialTemplateRequest request); - $async.Future<$3.UpdateCredentialTemplateResponse> update( - $grpc.ServiceCall call, $3.UpdateCredentialTemplateRequest request); - $async.Future<$3.ListCredentialTemplatesResponse> list( - $grpc.ServiceCall call, $3.ListCredentialTemplatesRequest request); - $async.Future<$3.SearchCredentialTemplatesResponse> search( - $grpc.ServiceCall call, $3.SearchCredentialTemplatesRequest request); - $async.Future<$3.DeleteCredentialTemplateResponse> delete( - $grpc.ServiceCall call, $3.DeleteCredentialTemplateRequest request); - $async.Future<$3.CreateVerificationTemplateResponse> + $async.Future<$6.CreateCredentialTemplateResponse> create( + $grpc.ServiceCall call, $6.CreateCredentialTemplateRequest request); + $async.Future<$6.GetCredentialTemplateResponse> get( + $grpc.ServiceCall call, $6.GetCredentialTemplateRequest request); + $async.Future<$6.UpdateCredentialTemplateResponse> update( + $grpc.ServiceCall call, $6.UpdateCredentialTemplateRequest request); + $async.Future<$6.ListCredentialTemplatesResponse> list( + $grpc.ServiceCall call, $6.ListCredentialTemplatesRequest request); + $async.Future<$6.SearchCredentialTemplatesResponse> search( + $grpc.ServiceCall call, $6.SearchCredentialTemplatesRequest request); + $async.Future<$6.DeleteCredentialTemplateResponse> delete( + $grpc.ServiceCall call, $6.DeleteCredentialTemplateRequest request); + $async.Future<$6.CreateVerificationTemplateResponse> createVerificationTemplate( - $grpc.ServiceCall call, $3.CreateVerificationTemplateRequest request); - $async.Future<$3.ListVerificationTemplatesResponse> listVerificationTemplates( - $grpc.ServiceCall call, $3.ListVerificationTemplatesRequest request); - $async.Future<$3.GetVerificationTemplateResponse> getVerificationTemplate( - $grpc.ServiceCall call, $3.GetVerificationTemplateRequest request); - $async.Future<$3.UpdateVerificationTemplateResponse> + $grpc.ServiceCall call, $6.CreateVerificationTemplateRequest request); + $async.Future<$6.ListVerificationTemplatesResponse> listVerificationTemplates( + $grpc.ServiceCall call, $6.ListVerificationTemplatesRequest request); + $async.Future<$6.GetVerificationTemplateResponse> getVerificationTemplate( + $grpc.ServiceCall call, $6.GetVerificationTemplateRequest request); + $async.Future<$6.UpdateVerificationTemplateResponse> updateVerificationTemplate( - $grpc.ServiceCall call, $3.UpdateVerificationTemplateRequest request); - $async.Future<$3.DeleteVerificationTemplateResponse> + $grpc.ServiceCall call, $6.UpdateVerificationTemplateRequest request); + $async.Future<$6.DeleteVerificationTemplateResponse> deleteVerificationTemplate( - $grpc.ServiceCall call, $3.DeleteVerificationTemplateRequest request); + $grpc.ServiceCall call, $6.DeleteVerificationTemplateRequest request); } diff --git a/dart/lib/src/proto/services/verifiable-credentials/v1/verifiable-credentials.pbgrpc.dart b/dart/lib/src/proto/services/verifiable-credentials/v1/verifiable-credentials.pbgrpc.dart index 3f0975081..9726b4e18 100644 --- a/dart/lib/src/proto/services/verifiable-credentials/v1/verifiable-credentials.pbgrpc.dart +++ b/dart/lib/src/proto/services/verifiable-credentials/v1/verifiable-credentials.pbgrpc.dart @@ -15,119 +15,119 @@ import 'dart:core' as $core; import 'package:grpc/service_api.dart' as $grpc; import 'package:protobuf/protobuf.dart' as $pb; -import 'verifiable-credentials.pb.dart' as $4; +import 'verifiable-credentials.pb.dart' as $7; export 'verifiable-credentials.pb.dart'; @$pb.GrpcServiceName('services.verifiablecredentials.v1.VerifiableCredential') class VerifiableCredentialClient extends $grpc.Client { static final _$issueFromTemplate = $grpc.ClientMethod< - $4.IssueFromTemplateRequest, $4.IssueFromTemplateResponse>( + $7.IssueFromTemplateRequest, $7.IssueFromTemplateResponse>( '/services.verifiablecredentials.v1.VerifiableCredential/IssueFromTemplate', - ($4.IssueFromTemplateRequest value) => value.writeToBuffer(), + ($7.IssueFromTemplateRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $4.IssueFromTemplateResponse.fromBuffer(value)); + $7.IssueFromTemplateResponse.fromBuffer(value)); static final _$checkStatus = - $grpc.ClientMethod<$4.CheckStatusRequest, $4.CheckStatusResponse>( + $grpc.ClientMethod<$7.CheckStatusRequest, $7.CheckStatusResponse>( '/services.verifiablecredentials.v1.VerifiableCredential/CheckStatus', - ($4.CheckStatusRequest value) => value.writeToBuffer(), + ($7.CheckStatusRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $4.CheckStatusResponse.fromBuffer(value)); - static final _$updateStatus = $grpc.ClientMethod<$4.UpdateStatusRequest, - $4.UpdateStatusResponse>( + $7.CheckStatusResponse.fromBuffer(value)); + static final _$updateStatus = $grpc.ClientMethod<$7.UpdateStatusRequest, + $7.UpdateStatusResponse>( '/services.verifiablecredentials.v1.VerifiableCredential/UpdateStatus', - ($4.UpdateStatusRequest value) => value.writeToBuffer(), + ($7.UpdateStatusRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $4.UpdateStatusResponse.fromBuffer(value)); + $7.UpdateStatusResponse.fromBuffer(value)); static final _$createProof = - $grpc.ClientMethod<$4.CreateProofRequest, $4.CreateProofResponse>( + $grpc.ClientMethod<$7.CreateProofRequest, $7.CreateProofResponse>( '/services.verifiablecredentials.v1.VerifiableCredential/CreateProof', - ($4.CreateProofRequest value) => value.writeToBuffer(), + ($7.CreateProofRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $4.CreateProofResponse.fromBuffer(value)); + $7.CreateProofResponse.fromBuffer(value)); static final _$verifyProof = - $grpc.ClientMethod<$4.VerifyProofRequest, $4.VerifyProofResponse>( + $grpc.ClientMethod<$7.VerifyProofRequest, $7.VerifyProofResponse>( '/services.verifiablecredentials.v1.VerifiableCredential/VerifyProof', - ($4.VerifyProofRequest value) => value.writeToBuffer(), + ($7.VerifyProofRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $4.VerifyProofResponse.fromBuffer(value)); - static final _$send = $grpc.ClientMethod<$4.SendRequest, $4.SendResponse>( + $7.VerifyProofResponse.fromBuffer(value)); + static final _$send = $grpc.ClientMethod<$7.SendRequest, $7.SendResponse>( '/services.verifiablecredentials.v1.VerifiableCredential/Send', - ($4.SendRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $4.SendResponse.fromBuffer(value)); + ($7.SendRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $7.SendResponse.fromBuffer(value)); static final _$createCredentialOffer = $grpc.ClientMethod< - $4.CreateCredentialOfferRequest, $4.CreateCredentialOfferResponse>( + $7.CreateCredentialOfferRequest, $7.CreateCredentialOfferResponse>( '/services.verifiablecredentials.v1.VerifiableCredential/CreateCredentialOffer', - ($4.CreateCredentialOfferRequest value) => value.writeToBuffer(), + ($7.CreateCredentialOfferRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $4.CreateCredentialOfferResponse.fromBuffer(value)); + $7.CreateCredentialOfferResponse.fromBuffer(value)); static final _$acceptCredential = $grpc.ClientMethod< - $4.AcceptCredentialRequest, $4.AcceptCredentialResponse>( + $7.AcceptCredentialRequest, $7.AcceptCredentialResponse>( '/services.verifiablecredentials.v1.VerifiableCredential/AcceptCredential', - ($4.AcceptCredentialRequest value) => value.writeToBuffer(), + ($7.AcceptCredentialRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $4.AcceptCredentialResponse.fromBuffer(value)); + $7.AcceptCredentialResponse.fromBuffer(value)); static final _$rejectCredential = $grpc.ClientMethod< - $4.RejectCredentialRequest, $4.RejectCredentialResponse>( + $7.RejectCredentialRequest, $7.RejectCredentialResponse>( '/services.verifiablecredentials.v1.VerifiableCredential/RejectCredential', - ($4.RejectCredentialRequest value) => value.writeToBuffer(), + ($7.RejectCredentialRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $4.RejectCredentialResponse.fromBuffer(value)); + $7.RejectCredentialResponse.fromBuffer(value)); VerifiableCredentialClient($grpc.ClientChannel channel, {$grpc.CallOptions? options, $core.Iterable<$grpc.ClientInterceptor>? interceptors}) : super(channel, options: options, interceptors: interceptors); - $grpc.ResponseFuture<$4.IssueFromTemplateResponse> issueFromTemplate( - $4.IssueFromTemplateRequest request, + $grpc.ResponseFuture<$7.IssueFromTemplateResponse> issueFromTemplate( + $7.IssueFromTemplateRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$issueFromTemplate, request, options: options); } - $grpc.ResponseFuture<$4.CheckStatusResponse> checkStatus( - $4.CheckStatusRequest request, + $grpc.ResponseFuture<$7.CheckStatusResponse> checkStatus( + $7.CheckStatusRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$checkStatus, request, options: options); } - $grpc.ResponseFuture<$4.UpdateStatusResponse> updateStatus( - $4.UpdateStatusRequest request, + $grpc.ResponseFuture<$7.UpdateStatusResponse> updateStatus( + $7.UpdateStatusRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$updateStatus, request, options: options); } - $grpc.ResponseFuture<$4.CreateProofResponse> createProof( - $4.CreateProofRequest request, + $grpc.ResponseFuture<$7.CreateProofResponse> createProof( + $7.CreateProofRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$createProof, request, options: options); } - $grpc.ResponseFuture<$4.VerifyProofResponse> verifyProof( - $4.VerifyProofRequest request, + $grpc.ResponseFuture<$7.VerifyProofResponse> verifyProof( + $7.VerifyProofRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$verifyProof, request, options: options); } - $grpc.ResponseFuture<$4.SendResponse> send($4.SendRequest request, + $grpc.ResponseFuture<$7.SendResponse> send($7.SendRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$send, request, options: options); } - $grpc.ResponseFuture<$4.CreateCredentialOfferResponse> createCredentialOffer( - $4.CreateCredentialOfferRequest request, + $grpc.ResponseFuture<$7.CreateCredentialOfferResponse> createCredentialOffer( + $7.CreateCredentialOfferRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$createCredentialOffer, request, options: options); } - $grpc.ResponseFuture<$4.AcceptCredentialResponse> acceptCredential( - $4.AcceptCredentialRequest request, + $grpc.ResponseFuture<$7.AcceptCredentialResponse> acceptCredential( + $7.AcceptCredentialRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$acceptCredential, request, options: options); } - $grpc.ResponseFuture<$4.RejectCredentialResponse> rejectCredential( - $4.RejectCredentialRequest request, + $grpc.ResponseFuture<$7.RejectCredentialResponse> rejectCredential( + $7.RejectCredentialRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$rejectCredential, request, options: options); } @@ -139,153 +139,153 @@ abstract class VerifiableCredentialServiceBase extends $grpc.Service { 'services.verifiablecredentials.v1.VerifiableCredential'; VerifiableCredentialServiceBase() { - $addMethod($grpc.ServiceMethod<$4.IssueFromTemplateRequest, - $4.IssueFromTemplateResponse>( + $addMethod($grpc.ServiceMethod<$7.IssueFromTemplateRequest, + $7.IssueFromTemplateResponse>( 'IssueFromTemplate', issueFromTemplate_Pre, false, false, ($core.List<$core.int> value) => - $4.IssueFromTemplateRequest.fromBuffer(value), - ($4.IssueFromTemplateResponse value) => value.writeToBuffer())); + $7.IssueFromTemplateRequest.fromBuffer(value), + ($7.IssueFromTemplateResponse value) => value.writeToBuffer())); $addMethod( - $grpc.ServiceMethod<$4.CheckStatusRequest, $4.CheckStatusResponse>( + $grpc.ServiceMethod<$7.CheckStatusRequest, $7.CheckStatusResponse>( 'CheckStatus', checkStatus_Pre, false, false, ($core.List<$core.int> value) => - $4.CheckStatusRequest.fromBuffer(value), - ($4.CheckStatusResponse value) => value.writeToBuffer())); + $7.CheckStatusRequest.fromBuffer(value), + ($7.CheckStatusResponse value) => value.writeToBuffer())); $addMethod( - $grpc.ServiceMethod<$4.UpdateStatusRequest, $4.UpdateStatusResponse>( + $grpc.ServiceMethod<$7.UpdateStatusRequest, $7.UpdateStatusResponse>( 'UpdateStatus', updateStatus_Pre, false, false, ($core.List<$core.int> value) => - $4.UpdateStatusRequest.fromBuffer(value), - ($4.UpdateStatusResponse value) => value.writeToBuffer())); + $7.UpdateStatusRequest.fromBuffer(value), + ($7.UpdateStatusResponse value) => value.writeToBuffer())); $addMethod( - $grpc.ServiceMethod<$4.CreateProofRequest, $4.CreateProofResponse>( + $grpc.ServiceMethod<$7.CreateProofRequest, $7.CreateProofResponse>( 'CreateProof', createProof_Pre, false, false, ($core.List<$core.int> value) => - $4.CreateProofRequest.fromBuffer(value), - ($4.CreateProofResponse value) => value.writeToBuffer())); + $7.CreateProofRequest.fromBuffer(value), + ($7.CreateProofResponse value) => value.writeToBuffer())); $addMethod( - $grpc.ServiceMethod<$4.VerifyProofRequest, $4.VerifyProofResponse>( + $grpc.ServiceMethod<$7.VerifyProofRequest, $7.VerifyProofResponse>( 'VerifyProof', verifyProof_Pre, false, false, ($core.List<$core.int> value) => - $4.VerifyProofRequest.fromBuffer(value), - ($4.VerifyProofResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$4.SendRequest, $4.SendResponse>( + $7.VerifyProofRequest.fromBuffer(value), + ($7.VerifyProofResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$7.SendRequest, $7.SendResponse>( 'Send', send_Pre, false, false, - ($core.List<$core.int> value) => $4.SendRequest.fromBuffer(value), - ($4.SendResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$4.CreateCredentialOfferRequest, - $4.CreateCredentialOfferResponse>( + ($core.List<$core.int> value) => $7.SendRequest.fromBuffer(value), + ($7.SendResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$7.CreateCredentialOfferRequest, + $7.CreateCredentialOfferResponse>( 'CreateCredentialOffer', createCredentialOffer_Pre, false, false, ($core.List<$core.int> value) => - $4.CreateCredentialOfferRequest.fromBuffer(value), - ($4.CreateCredentialOfferResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$4.AcceptCredentialRequest, - $4.AcceptCredentialResponse>( + $7.CreateCredentialOfferRequest.fromBuffer(value), + ($7.CreateCredentialOfferResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$7.AcceptCredentialRequest, + $7.AcceptCredentialResponse>( 'AcceptCredential', acceptCredential_Pre, false, false, ($core.List<$core.int> value) => - $4.AcceptCredentialRequest.fromBuffer(value), - ($4.AcceptCredentialResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$4.RejectCredentialRequest, - $4.RejectCredentialResponse>( + $7.AcceptCredentialRequest.fromBuffer(value), + ($7.AcceptCredentialResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$7.RejectCredentialRequest, + $7.RejectCredentialResponse>( 'RejectCredential', rejectCredential_Pre, false, false, ($core.List<$core.int> value) => - $4.RejectCredentialRequest.fromBuffer(value), - ($4.RejectCredentialResponse value) => value.writeToBuffer())); + $7.RejectCredentialRequest.fromBuffer(value), + ($7.RejectCredentialResponse value) => value.writeToBuffer())); } - $async.Future<$4.IssueFromTemplateResponse> issueFromTemplate_Pre( + $async.Future<$7.IssueFromTemplateResponse> issueFromTemplate_Pre( $grpc.ServiceCall call, - $async.Future<$4.IssueFromTemplateRequest> request) async { + $async.Future<$7.IssueFromTemplateRequest> request) async { return issueFromTemplate(call, await request); } - $async.Future<$4.CheckStatusResponse> checkStatus_Pre($grpc.ServiceCall call, - $async.Future<$4.CheckStatusRequest> request) async { + $async.Future<$7.CheckStatusResponse> checkStatus_Pre($grpc.ServiceCall call, + $async.Future<$7.CheckStatusRequest> request) async { return checkStatus(call, await request); } - $async.Future<$4.UpdateStatusResponse> updateStatus_Pre( + $async.Future<$7.UpdateStatusResponse> updateStatus_Pre( $grpc.ServiceCall call, - $async.Future<$4.UpdateStatusRequest> request) async { + $async.Future<$7.UpdateStatusRequest> request) async { return updateStatus(call, await request); } - $async.Future<$4.CreateProofResponse> createProof_Pre($grpc.ServiceCall call, - $async.Future<$4.CreateProofRequest> request) async { + $async.Future<$7.CreateProofResponse> createProof_Pre($grpc.ServiceCall call, + $async.Future<$7.CreateProofRequest> request) async { return createProof(call, await request); } - $async.Future<$4.VerifyProofResponse> verifyProof_Pre($grpc.ServiceCall call, - $async.Future<$4.VerifyProofRequest> request) async { + $async.Future<$7.VerifyProofResponse> verifyProof_Pre($grpc.ServiceCall call, + $async.Future<$7.VerifyProofRequest> request) async { return verifyProof(call, await request); } - $async.Future<$4.SendResponse> send_Pre( - $grpc.ServiceCall call, $async.Future<$4.SendRequest> request) async { + $async.Future<$7.SendResponse> send_Pre( + $grpc.ServiceCall call, $async.Future<$7.SendRequest> request) async { return send(call, await request); } - $async.Future<$4.CreateCredentialOfferResponse> createCredentialOffer_Pre( + $async.Future<$7.CreateCredentialOfferResponse> createCredentialOffer_Pre( $grpc.ServiceCall call, - $async.Future<$4.CreateCredentialOfferRequest> request) async { + $async.Future<$7.CreateCredentialOfferRequest> request) async { return createCredentialOffer(call, await request); } - $async.Future<$4.AcceptCredentialResponse> acceptCredential_Pre( + $async.Future<$7.AcceptCredentialResponse> acceptCredential_Pre( $grpc.ServiceCall call, - $async.Future<$4.AcceptCredentialRequest> request) async { + $async.Future<$7.AcceptCredentialRequest> request) async { return acceptCredential(call, await request); } - $async.Future<$4.RejectCredentialResponse> rejectCredential_Pre( + $async.Future<$7.RejectCredentialResponse> rejectCredential_Pre( $grpc.ServiceCall call, - $async.Future<$4.RejectCredentialRequest> request) async { + $async.Future<$7.RejectCredentialRequest> request) async { return rejectCredential(call, await request); } - $async.Future<$4.IssueFromTemplateResponse> issueFromTemplate( - $grpc.ServiceCall call, $4.IssueFromTemplateRequest request); - $async.Future<$4.CheckStatusResponse> checkStatus( - $grpc.ServiceCall call, $4.CheckStatusRequest request); - $async.Future<$4.UpdateStatusResponse> updateStatus( - $grpc.ServiceCall call, $4.UpdateStatusRequest request); - $async.Future<$4.CreateProofResponse> createProof( - $grpc.ServiceCall call, $4.CreateProofRequest request); - $async.Future<$4.VerifyProofResponse> verifyProof( - $grpc.ServiceCall call, $4.VerifyProofRequest request); - $async.Future<$4.SendResponse> send( - $grpc.ServiceCall call, $4.SendRequest request); - $async.Future<$4.CreateCredentialOfferResponse> createCredentialOffer( - $grpc.ServiceCall call, $4.CreateCredentialOfferRequest request); - $async.Future<$4.AcceptCredentialResponse> acceptCredential( - $grpc.ServiceCall call, $4.AcceptCredentialRequest request); - $async.Future<$4.RejectCredentialResponse> rejectCredential( - $grpc.ServiceCall call, $4.RejectCredentialRequest request); + $async.Future<$7.IssueFromTemplateResponse> issueFromTemplate( + $grpc.ServiceCall call, $7.IssueFromTemplateRequest request); + $async.Future<$7.CheckStatusResponse> checkStatus( + $grpc.ServiceCall call, $7.CheckStatusRequest request); + $async.Future<$7.UpdateStatusResponse> updateStatus( + $grpc.ServiceCall call, $7.UpdateStatusRequest request); + $async.Future<$7.CreateProofResponse> createProof( + $grpc.ServiceCall call, $7.CreateProofRequest request); + $async.Future<$7.VerifyProofResponse> verifyProof( + $grpc.ServiceCall call, $7.VerifyProofRequest request); + $async.Future<$7.SendResponse> send( + $grpc.ServiceCall call, $7.SendRequest request); + $async.Future<$7.CreateCredentialOfferResponse> createCredentialOffer( + $grpc.ServiceCall call, $7.CreateCredentialOfferRequest request); + $async.Future<$7.AcceptCredentialResponse> acceptCredential( + $grpc.ServiceCall call, $7.AcceptCredentialRequest request); + $async.Future<$7.RejectCredentialResponse> rejectCredential( + $grpc.ServiceCall call, $7.RejectCredentialRequest request); } diff --git a/docs/_static/proto.json b/docs/_static/proto.json index 8925d1cfd..649562b9f 100644 --- a/docs/_static/proto.json +++ b/docs/_static/proto.json @@ -396,6 +396,72 @@ "file": "services/connect/v1/connect.proto", "parent": "services.connect.v1.GetSessionResponse" }, + "services.connect.v1.GovernmentIDFields": { + "type": "message", + "collection": "messages", + "file": "services/connect/v1/connect.proto", + "parent": "" + }, + "services.connect.v1.GovernmentIDFields.address": { + "type": "field", + "collection": "fields", + "file": "services/connect/v1/connect.proto", + "parent": "services.connect.v1.GovernmentIDFields" + }, + "services.connect.v1.GovernmentIDFields.country": { + "type": "field", + "collection": "fields", + "file": "services/connect/v1/connect.proto", + "parent": "services.connect.v1.GovernmentIDFields" + }, + "services.connect.v1.GovernmentIDFields.date_of_birth": { + "type": "field", + "collection": "fields", + "file": "services/connect/v1/connect.proto", + "parent": "services.connect.v1.GovernmentIDFields" + }, + "services.connect.v1.GovernmentIDFields.expiration_date": { + "type": "field", + "collection": "fields", + "file": "services/connect/v1/connect.proto", + "parent": "services.connect.v1.GovernmentIDFields" + }, + "services.connect.v1.GovernmentIDFields.family_name": { + "type": "field", + "collection": "fields", + "file": "services/connect/v1/connect.proto", + "parent": "services.connect.v1.GovernmentIDFields" + }, + "services.connect.v1.GovernmentIDFields.given_name": { + "type": "field", + "collection": "fields", + "file": "services/connect/v1/connect.proto", + "parent": "services.connect.v1.GovernmentIDFields" + }, + "services.connect.v1.GovernmentIDFields.id_number": { + "type": "field", + "collection": "fields", + "file": "services/connect/v1/connect.proto", + "parent": "services.connect.v1.GovernmentIDFields" + }, + "services.connect.v1.GovernmentIDFields.issue_date": { + "type": "field", + "collection": "fields", + "file": "services/connect/v1/connect.proto", + "parent": "services.connect.v1.GovernmentIDFields" + }, + "services.connect.v1.GovernmentIDOptions": { + "type": "message", + "collection": "messages", + "file": "services/connect/v1/connect.proto", + "parent": "" + }, + "services.connect.v1.GovernmentIDOptions.fields": { + "type": "field", + "collection": "fields", + "file": "services/connect/v1/connect.proto", + "parent": "services.connect.v1.GovernmentIDOptions" + }, "services.connect.v1.IDVSession": { "type": "message", "collection": "messages", @@ -570,6 +636,12 @@ "file": "services/connect/v1/connect.proto", "parent": "" }, + "services.connect.v1.RequestedVerification.government_id_options": { + "type": "field", + "collection": "fields", + "file": "services/connect/v1/connect.proto", + "parent": "services.connect.v1.RequestedVerification" + }, "services.connect.v1.RequestedVerification.type": { "type": "field", "collection": "fields", @@ -666,6 +738,12 @@ "file": "services/connect/v1/connect.proto", "parent": "services.connect.v1.Verification" }, + "services.connect.v1.Verification.government_id_options": { + "type": "field", + "collection": "fields", + "file": "services/connect/v1/connect.proto", + "parent": "services.connect.v1.Verification" + }, "services.connect.v1.Verification.id": { "type": "field", "collection": "fields", @@ -4379,6 +4457,8 @@ "services.connect.v1.Verification", "services.connect.v1.CreateSessionRequest", "services.connect.v1.RequestedVerification", + "services.connect.v1.GovernmentIDOptions", + "services.connect.v1.GovernmentIDFields", "services.connect.v1.CreateSessionResponse", "services.connect.v1.CancelSessionRequest", "services.connect.v1.CancelSessionResponse", @@ -4405,8 +4485,19 @@ "services.connect.v1.Verification.reused", "services.connect.v1.Verification.begun", "services.connect.v1.Verification.updated", + "services.connect.v1.Verification.government_id_options", "services.connect.v1.CreateSessionRequest.verifications", "services.connect.v1.RequestedVerification.type", + "services.connect.v1.RequestedVerification.government_id_options", + "services.connect.v1.GovernmentIDOptions.fields", + "services.connect.v1.GovernmentIDFields.id_number", + "services.connect.v1.GovernmentIDFields.given_name", + "services.connect.v1.GovernmentIDFields.family_name", + "services.connect.v1.GovernmentIDFields.address", + "services.connect.v1.GovernmentIDFields.date_of_birth", + "services.connect.v1.GovernmentIDFields.country", + "services.connect.v1.GovernmentIDFields.issue_date", + "services.connect.v1.GovernmentIDFields.expiration_date", "services.connect.v1.CreateSessionResponse.session", "services.connect.v1.CancelSessionRequest.idv_session_id", "services.connect.v1.CancelSessionResponse.session", @@ -5919,6 +6010,33 @@ "messages": [], "enums": [] }, + "services.connect.v1.GovernmentIDFields": { + "name": "GovernmentIDFields", + "full_name": "services.connect.v1.GovernmentIDFields", + "description": "Selection of fields to retrieve from a Government ID. All fields default to `false` unless explicitly set to `true`.", + "fields": [ + "services.connect.v1.GovernmentIDFields.id_number", + "services.connect.v1.GovernmentIDFields.given_name", + "services.connect.v1.GovernmentIDFields.family_name", + "services.connect.v1.GovernmentIDFields.address", + "services.connect.v1.GovernmentIDFields.date_of_birth", + "services.connect.v1.GovernmentIDFields.country", + "services.connect.v1.GovernmentIDFields.issue_date", + "services.connect.v1.GovernmentIDFields.expiration_date" + ], + "messages": [], + "enums": [] + }, + "services.connect.v1.GovernmentIDOptions": { + "name": "GovernmentIDOptions", + "full_name": "services.connect.v1.GovernmentIDOptions", + "description": "Options for a Verification of type `GOVERNMENT_ID`", + "fields": [ + "services.connect.v1.GovernmentIDOptions.fields" + ], + "messages": [], + "enums": [] + }, "services.connect.v1.IDVSession": { "name": "IDVSession", "full_name": "services.connect.v1.IDVSession", @@ -5980,7 +6098,8 @@ "full_name": "services.connect.v1.RequestedVerification", "description": "A verification to perform in an IDV flow", "fields": [ - "services.connect.v1.RequestedVerification.type" + "services.connect.v1.RequestedVerification.type", + "services.connect.v1.RequestedVerification.government_id_options" ], "messages": [], "enums": [] @@ -5996,7 +6115,8 @@ "services.connect.v1.Verification.fail_code", "services.connect.v1.Verification.reused", "services.connect.v1.Verification.begun", - "services.connect.v1.Verification.updated" + "services.connect.v1.Verification.updated", + "services.connect.v1.Verification.government_id_options" ], "messages": [], "enums": [] @@ -7932,6 +8052,78 @@ "full_type": "services.connect.v1.IDVSession", "description": "The IDVSession" }, + "services.connect.v1.GovernmentIDFields.address": { + "name": "address", + "full_name": "services.connect.v1.GovernmentIDFields.address", + "label": "LABEL_OPTIONAL", + "type": "bool", + "full_type": "bool", + "description": "Full address of the document holder" + }, + "services.connect.v1.GovernmentIDFields.country": { + "name": "country", + "full_name": "services.connect.v1.GovernmentIDFields.country", + "label": "LABEL_OPTIONAL", + "type": "bool", + "full_type": "bool", + "description": "ISO3 country code of the document" + }, + "services.connect.v1.GovernmentIDFields.date_of_birth": { + "name": "date_of_birth", + "full_name": "services.connect.v1.GovernmentIDFields.date_of_birth", + "label": "LABEL_OPTIONAL", + "type": "bool", + "full_type": "bool", + "description": "Date of birth of the document holder" + }, + "services.connect.v1.GovernmentIDFields.expiration_date": { + "name": "expiration_date", + "full_name": "services.connect.v1.GovernmentIDFields.expiration_date", + "label": "LABEL_OPTIONAL", + "type": "bool", + "full_type": "bool", + "description": "Expiration date date of the document" + }, + "services.connect.v1.GovernmentIDFields.family_name": { + "name": "family_name", + "full_name": "services.connect.v1.GovernmentIDFields.family_name", + "label": "LABEL_OPTIONAL", + "type": "bool", + "full_type": "bool", + "description": "Family (\"last\") name of the document holder" + }, + "services.connect.v1.GovernmentIDFields.given_name": { + "name": "given_name", + "full_name": "services.connect.v1.GovernmentIDFields.given_name", + "label": "LABEL_OPTIONAL", + "type": "bool", + "full_type": "bool", + "description": "Given (\"first\") name of the document holder" + }, + "services.connect.v1.GovernmentIDFields.id_number": { + "name": "id_number", + "full_name": "services.connect.v1.GovernmentIDFields.id_number", + "label": "LABEL_OPTIONAL", + "type": "bool", + "full_type": "bool", + "description": "ID number of the underlying identity document" + }, + "services.connect.v1.GovernmentIDFields.issue_date": { + "name": "issue_date", + "full_name": "services.connect.v1.GovernmentIDFields.issue_date", + "label": "LABEL_OPTIONAL", + "type": "bool", + "full_type": "bool", + "description": "Issuance date of the document" + }, + "services.connect.v1.GovernmentIDOptions.fields": { + "name": "fields", + "full_name": "services.connect.v1.GovernmentIDOptions.fields", + "label": "LABEL_OPTIONAL", + "type": "GovernmentIDFields", + "full_type": "services.connect.v1.GovernmentIDFields", + "description": "The fields to retrieve from the Government ID.\nIf this object is not set, all fields will be retrieved." + }, "services.connect.v1.IDVSession.VerificationsEntry.key": { "name": "key", "full_name": "services.connect.v1.IDVSession.VerificationsEntry.key", @@ -8068,6 +8260,14 @@ "full_type": "int32", "description": "The total number of sessions you've created" }, + "services.connect.v1.RequestedVerification.government_id_options": { + "name": "government_id_options", + "full_name": "services.connect.v1.RequestedVerification.government_id_options", + "label": "LABEL_OPTIONAL", + "type": "GovernmentIDOptions", + "full_type": "services.connect.v1.GovernmentIDOptions", + "description": "Options for a Verification of type `GOVERNMENT_ID`" + }, "services.connect.v1.RequestedVerification.type": { "name": "type", "full_name": "services.connect.v1.RequestedVerification.type", @@ -8092,6 +8292,14 @@ "full_type": "services.connect.v1.VerificationFailCode", "description": "The reason for the Verification's failure.\nOnly set if `state` is `VERIFICATION_FAILED`." }, + "services.connect.v1.Verification.government_id_options": { + "name": "government_id_options", + "full_name": "services.connect.v1.Verification.government_id_options", + "label": "LABEL_OPTIONAL", + "type": "GovernmentIDOptions", + "full_type": "services.connect.v1.GovernmentIDOptions", + "description": "The Government ID options for this Verification.\nOnly set if this Verification is of type `GOVERNMENT_ID`." + }, "services.connect.v1.Verification.id": { "name": "id", "full_name": "services.connect.v1.Verification.id", @@ -8130,7 +8338,7 @@ "label": "LABEL_OPTIONAL", "type": "fixed64", "full_type": "fixed64", - "description": "The unix timestamp, in seconds, when this verification last changed state -- o" + "description": "The unix timestamp, in seconds, when this verification last changed state -- or `0` if it has not yet\nbegun." }, "services.filemanagement.v1.DeleteFileRequest.id": { "name": "id", diff --git a/docs/reference/proto/index.md b/docs/reference/proto/index.md index 3d639ccd0..d177470cb 100644 --- a/docs/reference/proto/index.md +++ b/docs/reference/proto/index.md @@ -8,338 +8,339 @@ This page documents the Protobuf Services and Messages which compose the Trinsic - +

Top

-## services/account/v1/account.proto +## sdk/options/v1/options.proto - + -### AccountDetails -Account registration details +### TrinsicOptions +Configuration for Trinsic SDK Services | Field | Type | Description | | ----- | ---- | ----------- | -| name | [string](/reference/proto#string) | Account name | -| email | [string](/reference/proto#string) | **Deprecated.** Email address of account. | -| sms | [string](/reference/proto#string) | **Deprecated.** SMS number including country code | - - - +| server_endpoint | [string](/reference/proto#string) | Trinsic API endpoint. Defaults to `prod.trinsic.cloud` | +| server_port | [int32](/reference/proto#int32) | Trinsic API port; defaults to `443` | +| server_use_tls | [bool](/reference/proto#bool) | Whether TLS is enabled between SDK and Trinsic API; defaults to `true` | +| auth_token | [string](/reference/proto#string) | Authentication token for SDK calls; defaults to empty string (unauthenticated) +Default ecosystem ID to use for various SDK calls; defaults to `default` string default_ecosystem = 5; | - -### AccountProfile -Device profile containing sensitive authentication data. -This information should be stored securely -| Field | Type | Description | -| ----- | ---- | ----------- | -| profile_type | [string](/reference/proto#string) | The type of profile, used to differentiate between protocol schemes or versions | -| auth_data | [bytes](/reference/proto#bytes) | Auth data containg information about the current device access | -| auth_token | [bytes](/reference/proto#bytes) | Secure token issued by server used to generate zero-knowledge proofs | -| protection | [TokenProtection](/reference/proto#services-account-v1-TokenProtection) | Token security information about the token. If token protection is enabled, implementations must supply protection secret before using the token for authentication. | + + + + +

Top

- +## services/file-management/v1/file-management.proto -### TokenProtection -Token protection info -| Field | Type | Description | -| ----- | ---- | ----------- | -| enabled | [bool](/reference/proto#bool) | Indicates if token is protected using a PIN, security code, HSM secret, etc. | -| method | [ConfirmationMethod](/reference/proto#services-account-v1-ConfirmationMethod) | The method used to protect the token | + +### Service - FileManagement +| Method Name | Request Type | Response Type | Description | +| ----------- | ------------ | ------------- | ------------| +| UploadFile | [UploadFileRequest](/reference/proto#services-filemanagement-v1-UploadFileRequest) | [UploadFileResponse](/reference/proto#services-filemanagement-v1-UploadFileResponse) | Upload a file to Trinsic's CDN | +| GetFile | [GetFileRequest](/reference/proto#services-filemanagement-v1-GetFileRequest) | [GetFileResponse](/reference/proto#services-filemanagement-v1-GetFileResponse) | Fetch information about a file by its ID | +| DeleteFile | [DeleteFileRequest](/reference/proto#services-filemanagement-v1-DeleteFileRequest) | [DeleteFileResponse](/reference/proto#services-filemanagement-v1-DeleteFileResponse) | Delete a file by its ID | +| ListFiles | [ListFilesRequest](/reference/proto#services-filemanagement-v1-ListFilesRequest) | [ListFilesResponse](/reference/proto#services-filemanagement-v1-ListFilesResponse) | List files the calling account has uploaded | +| GetStorageStats | [GetStorageStatsRequest](/reference/proto#services-filemanagement-v1-GetStorageStatsRequest) | [GetStorageStatsResponse](/reference/proto#services-filemanagement-v1-GetStorageStatsResponse) | Get statistics about files uploaded by the calling account | + - + -### WalletAuthToken -Information about authentication tokens for a wallet +### DeleteFileRequest +Request to delete a file from Trinsic's CDN by ID | Field | Type | Description | | ----- | ---- | ----------- | -| id | [string](/reference/proto#string) | Unique identifier for the token. This field will match the `DeviceId` in the WalletAuthData | -| description | [string](/reference/proto#string) | Device name/description | -| date_created | [string](/reference/proto#string) | Date when the token was created in ISO 8601 format | - - - - +| id | [string](/reference/proto#string) | ID of file to delete | - - -### ConfirmationMethod -Confirmation method type for two-factor workflows -| Name | Number | Description | -| ---- | ------ | ----------- | -| None | 0 | No confirmation required | -| Email | 1 | Email confirmation required | -| Sms | 2 | SMS confirmation required | -| ConnectedDevice | 3 | Confirmation from a connected device is required | -| Other | 10 | Third-party method of confirmation is required | + - +### DeleteFileResponse +Response to `DeleteFileRequest`. Empty payload. - - -

Top

-## services/trust-registry/v1/trust-registry.proto + +### File +Contains information about a file stored in Trinsic's CDN - -### Service - TrustRegistry +| Field | Type | Description | +| ----- | ---- | ----------- | +| id | [string](/reference/proto#string) | ID of file, generated randomly by Trinsic on upload | +| uploader_id | [string](/reference/proto#string) | Wallet ID of uploader | +| size | [uint32](/reference/proto#uint32) | Size, in bytes, of file | +| mime_type | [string](/reference/proto#string) | Uploader-provided MIME type of file | +| uploaded | [string](/reference/proto#string) | ISO 8601 timestamp of when file was uploaded to Trinsic | +| url | [string](/reference/proto#string) | CDN URL of file | -| Method Name | Request Type | Response Type | Description | -| ----------- | ------------ | ------------- | ------------| -| RegisterMember | [RegisterMemberRequest](/reference/proto#services-trustregistry-v1-RegisterMemberRequest) | [RegisterMemberResponse](/reference/proto#services-trustregistry-v1-RegisterMemberResponse) | Register an authoritative issuer for a credential schema | -| UnregisterMember | [UnregisterMemberRequest](/reference/proto#services-trustregistry-v1-UnregisterMemberRequest) | [UnregisterMemberResponse](/reference/proto#services-trustregistry-v1-UnregisterMemberResponse) | Removes an authoritative issuer for a credential schema from the trust registry | -| GetMemberAuthorizationStatus | [GetMemberAuthorizationStatusRequest](/reference/proto#services-trustregistry-v1-GetMemberAuthorizationStatusRequest) | [GetMemberAuthorizationStatusResponse](/reference/proto#services-trustregistry-v1-GetMemberAuthorizationStatusResponse) | Fetch the status of a member for a given credential schema in a trust registry | -| ListAuthorizedMembers | [ListAuthorizedMembersRequest](/reference/proto#services-trustregistry-v1-ListAuthorizedMembersRequest) | [ListAuthorizedMembersResponse](/reference/proto#services-trustregistry-v1-ListAuthorizedMembersResponse) | Fetch the ecosystem's authorized issuers and the respective templates against which it can issue | -| GetMember | [GetMemberRequest](/reference/proto#services-trustregistry-v1-GetMemberRequest) | [GetMemberResponse](/reference/proto#services-trustregistry-v1-GetMemberResponse) | Get member for a given did in a trust registry | - - -### AuthorizedMember + +### GetFileRequest +Request to fetch information about a stored file | Field | Type | Description | | ----- | ---- | ----------- | -| did | [string](/reference/proto#string) | | -| authorized_member_schemas | [AuthorizedMemberSchema](/reference/proto#services-trustregistry-v1-AuthorizedMemberSchema)[] | | - +| id | [string](/reference/proto#string) | ID of file to fetch | - -### AuthorizedMemberSchema + +### GetFileResponse +Response to `GetFileRequest` | Field | Type | Description | | ----- | ---- | ----------- | -| schema_uri | [string](/reference/proto#string) | | -| status | [string](/reference/proto#string) | | -| status_details | [string](/reference/proto#string) | | -| valid_from | [uint64](/reference/proto#uint64) | | -| valid_until | [uint64](/reference/proto#uint64) | | - - +| file | [File](/reference/proto#services-filemanagement-v1-File) | File specified by `id` parameter of `GetFileRequest`. | - -### GetMemberAuthorizationStatusRequest -Request to fetch member status in Trust Registry for a specific credential schema. + -| Field | Type | Description | -| ----- | ---- | ----------- | -| did_uri | [string](/reference/proto#string) | DID URI of member | -| schema_uri | [string](/reference/proto#string) | URI of credential schema associated with member | +### GetStorageStatsRequest +Request to get statistics about files uploaded by this account - + -### GetMemberAuthorizationStatusResponse -Response to `GetMemberAuthorizationStatusRequest` +### GetStorageStatsResponse +Response to `GetStorageStatsRequest` | Field | Type | Description | | ----- | ---- | ----------- | -| status | [RegistrationStatus](/reference/proto#services-trustregistry-v1-RegistrationStatus) | Status of member for given credential schema | +| stats | [StorageStats](/reference/proto#services-filemanagement-v1-StorageStats) | Statistics about files uploaded by the calling account | - + -### GetMemberRequest -Request to get a member of the Trust Registry +### ListFilesRequest +Request to list files | Field | Type | Description | | ----- | ---- | ----------- | -| did_uri | [string](/reference/proto#string) | DID URI of member to get | -| wallet_id | [string](/reference/proto#string) | Trinsic Wallet ID of member to get | -| email | [string](/reference/proto#string) | Email address of member to get. Must be associated with an existing Trinsic account. | +| query | [string](/reference/proto#string) | Query to search with. If not specified, will return the most recent 100 files. | +| continuation_token | [string](/reference/proto#string) | Token provided by previous `ListFilesRequest` if more data is available for query | - + -### GetMemberResponse -Response to `GetMemberAuthorizationStatusRequest` +### ListFilesResponse +Response to `ListFilesRequest` | Field | Type | Description | | ----- | ---- | ----------- | -| authorized_member | [AuthorizedMember](/reference/proto#services-trustregistry-v1-AuthorizedMember) | Member for given did in given framework | - +| files | [File](/reference/proto#services-filemanagement-v1-File)[] | Files found by query | +| has_more_results | [bool](/reference/proto#bool) | Whether more results are available for this query via `continuation_token` | +| continuation_token | [string](/reference/proto#string) | Token to fetch next set of results via `ListFilesRequest` | - -### ListAuthorizedMembersRequest + +### StorageStats +Represents aggregate statistics of all files uploaded by a single issuer | Field | Type | Description | | ----- | ---- | ----------- | -| schema_uri | [string](/reference/proto#string) | id of schema that needs to be checked | -| continuation_token | [string](/reference/proto#string) | Token to fetch next set of results, from previous `ListAuthorizedMembersResponse` | +| num_files | [uint32](/reference/proto#uint32) | Number of files uploaded by this account | +| total_size | [uint64](/reference/proto#uint64) | Sum total size of all files, in bytes | - + -### ListAuthorizedMembersResponse -Response to `ListAuthorizedMembersRequest` +### UploadFileRequest +Request to upload a file to Trinsic's CDN | Field | Type | Description | | ----- | ---- | ----------- | -| authorized_members | [AuthorizedMember](/reference/proto#services-trustregistry-v1-AuthorizedMember)[] | JSON string containing array of resultant objects | -| has_more_results | [bool](/reference/proto#bool) | Whether more data is available to fetch for query | -| continuation_token | [string](/reference/proto#string) | Token to fetch next set of results via `ListAuthorizedMembersRequest` | +| contents | [bytes](/reference/proto#bytes) | Raw content of file | +| mime_type | [string](/reference/proto#string) | MIME type describing file contents | - + -### RegisterMemberRequest -Request to register a member as a valid issuer of a specific credential schema. -Only one of `did_uri`, `wallet_id`, or `email` may be specified. +### UploadFileResponse +Response to `UploadFileRequest` | Field | Type | Description | | ----- | ---- | ----------- | -| did_uri | [string](/reference/proto#string) | DID URI of member to register | -| wallet_id | [string](/reference/proto#string) | Trinsic Wallet ID of member to register | -| email | [string](/reference/proto#string) | Email address of member to register. Must be associated with an existing Trinsic account. | -| schema_uri | [string](/reference/proto#string) | URI of credential schema to register member as authorized issuer of | -| valid_from_utc | [uint64](/reference/proto#uint64) | Unix Timestamp member is valid from. Member will not be considered valid before this timestamp. | -| valid_until_utc | [uint64](/reference/proto#uint64) | Unix Timestamp member is valid until. Member will not be considered valid after this timestamp. | +| uploaded_file | [File](/reference/proto#services-filemanagement-v1-File) | Information about newly-uploaded file | + - + -### RegisterMemberResponse -Response to `RegisterMemberRequest` + + +

Top

+## services/common/v1/common.proto - + -### UnregisterMemberRequest -Request to unregister a member as a valid issuer of a specific credential schema. -Only one of `did_uri`, `wallet_id`, or `email` may be specified. -The URI of the credential schema must be specified. + + + +### Nonce +Nonce used to generate an oberon proof | Field | Type | Description | | ----- | ---- | ----------- | -| did_uri | [string](/reference/proto#string) | DID URI of member to unregister | -| wallet_id | [string](/reference/proto#string) | Trinsic Wallet ID of member to unregister | -| email | [string](/reference/proto#string) | Email address of member to unregister. Must be associated with an existing Trinsic account. | -| schema_uri | [string](/reference/proto#string) | URI of credential schema to unregister member as authorized issuer of | +| timestamp | [int64](/reference/proto#int64) | UTC unix millisecond timestamp the request was made | +| request_hash | [bytes](/reference/proto#bytes) | blake3256 hash of the request body | - + -### UnregisterMemberResponse -Response to `UnregisterMemberRequest` +### TrinsicClientOptions +| Field | Type | Description | +| ----- | ---- | ----------- | +| server_endpoint | [string](/reference/proto#string) | Trinsic API endpoint. Defaults to `prod.trinsic.cloud` | +| server_port | [int32](/reference/proto#int32) | Trinsic API port; defaults to `443` | +| server_use_tls | [bool](/reference/proto#bool) | Whether TLS is enabled between SDK and Trinsic API; defaults to `true` | +| auth_token | [string](/reference/proto#string) | Authentication token for SDK calls; defaults to empty string (unauthenticated) | - - -### RegistrationStatus + -| Name | Number | Description | -| ---- | ------ | ----------- | -| CURRENT | 0 | Member is currently authorized, as of the time of the query | -| EXPIRED | 1 | Member's authorization has expired | -| TERMINATED | 2 | Member has voluntarily ceased Issuer role under the specific EGF | -| REVOKED | 3 | Member authority under specific EGF was terminated by the governing authority | -| NOT_FOUND | 10 | Member is not associated with given credential schema in the EGF | + +### OrderDirection +The direction to order results - +| Name | Number | Description | +| ---- | ------ | ----------- | +| ASCENDING | 0 | | +| DESCENDING | 1 | | + + + + + +### ResponseStatus + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| SUCCESS | 0 | | +| WALLET_ACCESS_DENIED | 10 | | +| WALLET_EXISTS | 11 | | +| ITEM_NOT_FOUND | 20 | | +| SERIALIZATION_ERROR | 200 | | +| UNKNOWN_ERROR | 100 | | + + + + + +### SupportedDidMethod +Enum of all supported DID Methods +https://docs.godiddy.com/en/supported-methods + +| Name | Number | Description | +| ---- | ------ | ----------- | +| KEY | 0 | The did:key method -- all wallets use this by default | +| ION | 1 | The did:ion method -- Sidetree implementation on top of Bitcoin by Microsoft | +| INDY | 2 | The did:sov method -- Hyperledger Indy based by Sovrin Foundation | + + + @@ -804,742 +805,749 @@ An external identity (email address, phone number, etc.) associated with a walle - +

Top

-## services/verifiable-credentials/templates/v1/templates.proto - +## services/connect/v1/connect.proto - -### Service - CredentialTemplates + +### Service - Connect +The Connect service provides access to Trinsic Connect, a reusable identity verification service. | Method Name | Request Type | Response Type | Description | | ----------- | ------------ | ------------- | ------------| -| Create | [CreateCredentialTemplateRequest](/reference/proto#services-verifiablecredentials-templates-v1-CreateCredentialTemplateRequest) | [CreateCredentialTemplateResponse](/reference/proto#services-verifiablecredentials-templates-v1-CreateCredentialTemplateResponse) | Create a credential template in the current ecosystem | -| Get | [GetCredentialTemplateRequest](/reference/proto#services-verifiablecredentials-templates-v1-GetCredentialTemplateRequest) | [GetCredentialTemplateResponse](/reference/proto#services-verifiablecredentials-templates-v1-GetCredentialTemplateResponse) | Fetch a credential template by ID | -| Update | [UpdateCredentialTemplateRequest](/reference/proto#services-verifiablecredentials-templates-v1-UpdateCredentialTemplateRequest) | [UpdateCredentialTemplateResponse](/reference/proto#services-verifiablecredentials-templates-v1-UpdateCredentialTemplateResponse) | Update metadata of a template | -| List | [ListCredentialTemplatesRequest](/reference/proto#services-verifiablecredentials-templates-v1-ListCredentialTemplatesRequest) | [ListCredentialTemplatesResponse](/reference/proto#services-verifiablecredentials-templates-v1-ListCredentialTemplatesResponse) | Search credential templates using SQL, returning strongly-typed template data | -| Search | [SearchCredentialTemplatesRequest](/reference/proto#services-verifiablecredentials-templates-v1-SearchCredentialTemplatesRequest) | [SearchCredentialTemplatesResponse](/reference/proto#services-verifiablecredentials-templates-v1-SearchCredentialTemplatesResponse) | Search credential templates using SQL, returning raw JSON data | -| Delete | [DeleteCredentialTemplateRequest](/reference/proto#services-verifiablecredentials-templates-v1-DeleteCredentialTemplateRequest) | [DeleteCredentialTemplateResponse](/reference/proto#services-verifiablecredentials-templates-v1-DeleteCredentialTemplateResponse) | Delete a credential template from the current ecosystem by ID | -| CreateVerificationTemplate | [CreateVerificationTemplateRequest](/reference/proto#services-verifiablecredentials-templates-v1-CreateVerificationTemplateRequest) | [CreateVerificationTemplateResponse](/reference/proto#services-verifiablecredentials-templates-v1-CreateVerificationTemplateResponse) | Create/update verification templates | -| ListVerificationTemplates | [ListVerificationTemplatesRequest](/reference/proto#services-verifiablecredentials-templates-v1-ListVerificationTemplatesRequest) | [ListVerificationTemplatesResponse](/reference/proto#services-verifiablecredentials-templates-v1-ListVerificationTemplatesResponse) | | -| GetVerificationTemplate | [GetVerificationTemplateRequest](/reference/proto#services-verifiablecredentials-templates-v1-GetVerificationTemplateRequest) | [GetVerificationTemplateResponse](/reference/proto#services-verifiablecredentials-templates-v1-GetVerificationTemplateResponse) | | -| UpdateVerificationTemplate | [UpdateVerificationTemplateRequest](/reference/proto#services-verifiablecredentials-templates-v1-UpdateVerificationTemplateRequest) | [UpdateVerificationTemplateResponse](/reference/proto#services-verifiablecredentials-templates-v1-UpdateVerificationTemplateResponse) | | -| DeleteVerificationTemplate | [DeleteVerificationTemplateRequest](/reference/proto#services-verifiablecredentials-templates-v1-DeleteVerificationTemplateRequest) | [DeleteVerificationTemplateResponse](/reference/proto#services-verifiablecredentials-templates-v1-DeleteVerificationTemplateResponse) | | +| CreateSession | [CreateSessionRequest](/reference/proto#services-connect-v1-CreateSessionRequest) | [CreateSessionResponse](/reference/proto#services-connect-v1-CreateSessionResponse) | Create an IDVSession | +| CancelSession | [CancelSessionRequest](/reference/proto#services-connect-v1-CancelSessionRequest) | [CancelSessionResponse](/reference/proto#services-connect-v1-CancelSessionResponse) | Cancel an IDVSession | +| GetSession | [GetSessionRequest](/reference/proto#services-connect-v1-GetSessionRequest) | [GetSessionResponse](/reference/proto#services-connect-v1-GetSessionResponse) | Get an IDVSession | +| ListSessions | [ListSessionsRequest](/reference/proto#services-connect-v1-ListSessionsRequest) | [ListSessionsResponse](/reference/proto#services-connect-v1-ListSessionsResponse) | List IDVSessions created by the calling wallet | - + -### AppleWalletOptions -Configuration options for Apple Wallet when +### CancelSessionRequest +Request to cancel an Identity Verification Session | Field | Type | Description | | ----- | ---- | ----------- | -| background_color | [string](/reference/proto#string) | Background color, in hex format, of credential when stored in an Apple Wallet. | -| foreground_color | [string](/reference/proto#string) | Foreground color, in hex format, of credential when stored in an Apple Wallet. | -| label_color | [string](/reference/proto#string) | Label color, in hex format, of credential when stored in an Apple Wallet. | -| primary_field | [string](/reference/proto#string) | The ID of the template field which should be used as the primary field of a credential. | -| secondary_fields | [string](/reference/proto#string)[] | The secondary fields of the credential. This is a mapping between the order of a secondary field (0 or 1) and the field name. | -| auxiliary_fields | [string](/reference/proto#string)[] | The auxiliary fields of the credential. This is a mapping between the order of an auxiliary field (0 or 1) and the field name. | +| idv_session_id | [string](/reference/proto#string) | The ID of the IDVSession to cancel | - + -### CreateCredentialTemplateRequest -Request to create a new template +### CancelSessionResponse +Response to `CancelIDVSessionRequest` | Field | Type | Description | | ----- | ---- | ----------- | -| name | [string](/reference/proto#string) | Name of new template. Must be a unique identifier within its ecosystem. | -| fields | [CreateCredentialTemplateRequest.FieldsEntry](/reference/proto#services-verifiablecredentials-templates-v1-CreateCredentialTemplateRequest-FieldsEntry)[] | Fields which compose the template | -| allow_additional_fields | [bool](/reference/proto#bool) | Whether credentials may be issued against this template which have fields not specified in `fields` | -| title | [string](/reference/proto#string) | Human-readable name of template | -| description | [string](/reference/proto#string) | Human-readable description of template | -| field_ordering | [CreateCredentialTemplateRequest.FieldOrderingEntry](/reference/proto#services-verifiablecredentials-templates-v1-CreateCredentialTemplateRequest-FieldOrderingEntry)[] | Optional map describing how to order and categorize the fields within the template. The key of this map is the field `name`. If not provided, this will be auto-generated. | -| apple_wallet_options | [AppleWalletOptions](/reference/proto#services-verifiablecredentials-templates-v1-AppleWalletOptions) | Options for rendering the template in Apple Wallet | - +| session | [IDVSession](/reference/proto#services-connect-v1-IDVSession) | The IDVSession in its current state after cancellation | - -### CreateCredentialTemplateRequest.FieldOrderingEntry + +### CreateSessionRequest +Request to create an Identity Verification Session | Field | Type | Description | | ----- | ---- | ----------- | -| key | [string](/reference/proto#string) | | -| value | [FieldOrdering](/reference/proto#services-verifiablecredentials-templates-v1-FieldOrdering) | | - +| verifications | [RequestedVerification](/reference/proto#services-connect-v1-RequestedVerification)[] | Array of verifications to perform | - -### CreateCredentialTemplateRequest.FieldsEntry + +### CreateSessionResponse +Response to `CreateIDVSessionRequest` | Field | Type | Description | | ----- | ---- | ----------- | -| key | [string](/reference/proto#string) | | -| value | [TemplateField](/reference/proto#services-verifiablecredentials-templates-v1-TemplateField) | | +| session | [IDVSession](/reference/proto#services-connect-v1-IDVSession) | The created IDVSession | - + -### CreateCredentialTemplateResponse -Response to `CreateCredentialTemplateRequest` +### GetSessionRequest +Request to get an IDVSession | Field | Type | Description | | ----- | ---- | ----------- | -| data | [TemplateData](/reference/proto#services-verifiablecredentials-templates-v1-TemplateData) | Created template | - +| idv_session_id | [string](/reference/proto#string) | The ID of the IDVSession to get | - -### CreateVerificationTemplateRequest + +### GetSessionResponse +Response to `GetIDVSessionRequest` | Field | Type | Description | | ----- | ---- | ----------- | -| name | [string](/reference/proto#string) | Name of new template. Must be a unique identifier within its ecosystem. | -| fields | [CreateVerificationTemplateRequest.FieldsEntry](/reference/proto#services-verifiablecredentials-templates-v1-CreateVerificationTemplateRequest-FieldsEntry)[] | Fields which will be required in the verification proof template - -TODO - Add support for predicate types - currently only equality. | -| credential_template_id | [string](/reference/proto#string) | Source credential template, used for verifying that the specified `fields` are present in the credential template | -| title | [string](/reference/proto#string) | Human-readable name of template | -| description | [string](/reference/proto#string) | Human-readable description of template | - +| session | [IDVSession](/reference/proto#services-connect-v1-IDVSession) | The IDVSession | - -### CreateVerificationTemplateRequest.FieldsEntry + +### GovernmentIDFields +Selection of fields to retrieve from a Government ID. All fields default to `false` unless explicitly set to `true`. | Field | Type | Description | | ----- | ---- | ----------- | -| key | [string](/reference/proto#string) | | -| value | [VerificationTemplateField](/reference/proto#services-verifiablecredentials-templates-v1-VerificationTemplateField) | | +| id_number | [bool](/reference/proto#bool) | ID number of the underlying identity document | +| given_name | [bool](/reference/proto#bool) | Given ("first") name of the document holder | +| family_name | [bool](/reference/proto#bool) | Family ("last") name of the document holder | +| address | [bool](/reference/proto#bool) | Full address of the document holder | +| date_of_birth | [bool](/reference/proto#bool) | Date of birth of the document holder | +| country | [bool](/reference/proto#bool) | ISO3 country code of the document | +| issue_date | [bool](/reference/proto#bool) | Issuance date of the document | +| expiration_date | [bool](/reference/proto#bool) | Expiration date date of the document | - - -### CreateVerificationTemplateResponse + +### GovernmentIDOptions +Options for a Verification of type `GOVERNMENT_ID` | Field | Type | Description | | ----- | ---- | ----------- | -| data | [VerificationTemplateData](/reference/proto#services-verifiablecredentials-templates-v1-VerificationTemplateData) | | +| fields | [GovernmentIDFields](/reference/proto#services-connect-v1-GovernmentIDFields) | The fields to retrieve from the Government ID. If this object is not set, all fields will be retrieved. | - + -### DeleteCredentialTemplateRequest -Request to delete a template by ID +### IDVSession +An Identity Verification Session | Field | Type | Description | | ----- | ---- | ----------- | -| id | [string](/reference/proto#string) | ID of template to delete | - - - - - - - - -### DeleteCredentialTemplateResponse -Response to `DeleteCredentialTemplateRequest` +| id | [string](/reference/proto#string) | The ID of the IDVSession. | +| client_token | [string](/reference/proto#string) | The Client Token for this IDVSession. This should be passed to your frontend to initiate the IDV flow using Trinsic's Web SDK. | +| state | [IDVSessionState](/reference/proto#services-connect-v1-IDVSessionState) | State of the IDVSession | +| verifications | [IDVSession.VerificationsEntry](/reference/proto#services-connect-v1-IDVSession-VerificationsEntry)[] | The actual Verifications to perform in this IDV flow | +| fail_code | [SessionFailCode](/reference/proto#services-connect-v1-SessionFailCode) | The reason for the IDVSession's failure. Only set if `state` is `IDV_FAILED`. | +| result_vp | [string](/reference/proto#string) | The resultant signed VP combining the results of all verifications | +| created | [fixed64](/reference/proto#fixed64) | The unix timestamp, in seconds, that this IDVSession was created | +| updated | [fixed64](/reference/proto#fixed64) | The unix timestamp, in seconds, that this IDVSession's `state` was last updated | - + -### DeleteVerificationTemplateRequest +### IDVSession.VerificationsEntry | Field | Type | Description | | ----- | ---- | ----------- | -| verification_template_id | [string](/reference/proto#string) | | - - - - - - - - -### DeleteVerificationTemplateResponse -This space intentionally left blank +| key | [string](/reference/proto#string) | | +| value | [Verification](/reference/proto#services-connect-v1-Verification) | | - + -### FieldOrdering -Ordering information for a template field +### ListSessionsRequest +Request to list all IDVSessions you've created | Field | Type | Description | | ----- | ---- | ----------- | -| order | [int32](/reference/proto#int32) | The order of the field; must be unique within the Template. Fields are sorted by order ascending when displaying a credential. Field orders must be contiguous from `0` to the number of fields minus 1. | -| section | [string](/reference/proto#string) | The human-readable name of the section this field appears in; used to group together fields when displaying a credential. Sections must be contiguous with respect to `order`. | +| order_by | [SessionOrdering](/reference/proto#services-connect-v1-SessionOrdering) | The field by which sessions should be sorted. Defaults to `CREATED`. | +| order_direction | [services.common.v1.OrderDirection](/reference/proto#services-common-v1-OrderDirection) | The order in which sessions should be sorted. Defaults to `ASCENDING`. | +| page_size | [int32](/reference/proto#int32) | The number of results to return per page. Must be between `1` and `10`, inclusive. Defaults to `10`. | +| page | [int32](/reference/proto#int32) | The page index of results to return. Starts at `1`. Defaults to `1`. | - + -### GetCredentialTemplateRequest -Request to fetch a template by ID +### ListSessionsResponse +Response to `ListIDVSessionsRequest` | Field | Type | Description | | ----- | ---- | ----------- | -| id | [string](/reference/proto#string) | ID of template to fetch | +| sessions | [IDVSession](/reference/proto#services-connect-v1-IDVSession)[] | The sessions you've created | +| total | [int32](/reference/proto#int32) | The total number of sessions you've created | +| more | [bool](/reference/proto#bool) | If `true`, this is not the last page of results. If `false`, this is the last page of results. | - + -### GetCredentialTemplateResponse -Response to `GetCredentialTemplateRequest` +### RequestedVerification +A verification to perform in an IDV flow | Field | Type | Description | | ----- | ---- | ----------- | -| template | [TemplateData](/reference/proto#services-verifiablecredentials-templates-v1-TemplateData) | Template fetched by ID | +| type | [VerificationType](/reference/proto#services-connect-v1-VerificationType) | The type of verification to perform | +| government_id_options | [GovernmentIDOptions](/reference/proto#services-connect-v1-GovernmentIDOptions) | Options for a Verification of type `GOVERNMENT_ID` | - + -### GetVerificationTemplateRequest -Request to fetch a template by ID +### Verification +A Verification that is part of an IDVSession | Field | Type | Description | | ----- | ---- | ----------- | -| id | [string](/reference/proto#string) | ID of template to fetch | +| id | [string](/reference/proto#string) | The ID of the verification | +| type | [VerificationType](/reference/proto#services-connect-v1-VerificationType) | The type of verification (driver's license, passport, proof of address, etc) | +| state | [VerificationState](/reference/proto#services-connect-v1-VerificationState) | The state of the verification | +| fail_code | [VerificationFailCode](/reference/proto#services-connect-v1-VerificationFailCode) | The reason for the Verification's failure. Only set if `state` is `VERIFICATION_FAILED`. | +| reused | [bool](/reference/proto#bool) | Whether this was a reused (true) or fresh (false) verification. If `state` is not `VERIFICATION_SUCCESS`, this field is `false` and does not convey useful information. | +| begun | [fixed64](/reference/proto#fixed64) | The unix timestamp, in seconds, when this verification was begun by the user -- or `0` if not yet begun. | +| updated | [fixed64](/reference/proto#fixed64) | The unix timestamp, in seconds, when this verification last changed state -- or `0` if it has not yet begun. | +| government_id_options | [GovernmentIDOptions](/reference/proto#services-connect-v1-GovernmentIDOptions) | The Government ID options for this Verification. Only set if this Verification is of type `GOVERNMENT_ID`. | + - -### GetVerificationTemplateResponse -Response to `GetCredentialTemplateRequest` + +### IDVSessionState +The states a VerificationSession can be in -| Field | Type | Description | -| ----- | ---- | ----------- | -| template | [VerificationTemplateData](/reference/proto#services-verifiablecredentials-templates-v1-VerificationTemplateData) | Template fetched by ID | +| Name | Number | Description | +| ---- | ------ | ----------- | +| IDV_CREATED | 0 | Session has been created, but not yet shown to user | +| IDV_INITIATED | 1 | Session has been shown to user (iframe / popup opened), but user has not yet logged in. | +| IDV_AUTHENTICATING | 2 | User has entered their phone number, but not yet authenticated with the code sent via SMS | +| IDV_IN_PROGRESS | 3 | User has been authenticated and is performing identity verification | +| IDV_SUCCESS | 4 | Session was completed successfully and IDV data is available to RP | +| IDV_FAILED | 5 | The session failed; reason is present in `fail_code`. | + +### SessionFailCode +The specific reason an IDVSession is in the `Failed` state +| Name | Number | Description | +| ---- | ------ | ----------- | +| SESSION_FAIL_NONE | 0 | The Session is not in a failure state. | +| SESSION_FAIL_INTERNAL | 1 | An internal Trinsic error caused this session to fail | +| SESSION_FAIL_VERIFICATION_FAILED | 2 | The session failed because one or more of the verifications failed. The reason for the failure is present in the `fail_reason` field of the relevant `Verification` object(s). | +| SESSION_FAIL_AUTHENTICATION | 3 | The session failed because the user failed to authenticate with their phone number too many times. | +| SESSION_FAIL_EXPIRED | 4 | The session expired | +| SESSION_FAIL_USER_CANCELED | 5 | The user canceled / rejected the session | +| SESSION_FAIL_RP_CANCELED | 6 | The RP canceled the session | - -### ListCredentialTemplatesRequest -Request to list templates using a SQL query + -| Field | Type | Description | -| ----- | ---- | ----------- | -| query | [string](/reference/proto#string) | SQL query to execute. Example: `SELECT * FROM c WHERE c.name = 'Diploma'` | -| continuation_token | [string](/reference/proto#string) | Token provided by previous `ListCredentialTemplatesResponse` if more data is available for query | +### SessionOrdering +Controls how sessions are ordered in `ListSessions` +| Name | Number | Description | +| ---- | ------ | ----------- | +| CREATED | 0 | Order sessions according to when they were created | +| UPDATED | 1 | Order sessions according to when they last changed state | +| STATE | 2 | Order sessions according to their numerical state | + +### VerificationFailCode +The specific reason a Verification is in the `Failed` state - +| Name | Number | Description | +| ---- | ------ | ----------- | +| VERIFICATION_FAIL_NONE | 0 | The verification is not in a failure state | +| VERIFICATION_FAIL_INTERNAL | 1 | An internal Trinsic error caused this verification to fail | +| VERIFICATION_FAIL_INVALID_IMAGE | 2 | The image(s) provided for this verification were either too low-quality, not of the correct type, or otherwise unable to be processed. This failure reason is non-terminal; the user is able to retry the verification. | +| VERIFICATION_FAIL_INAUTHENTIC | 3 | The identity data/images provided are suspected to be inauthentic, fraudulent, or forged. | +| VERIFICATION_FAIL_UNSUPPORTED_DOCUMENT | 4 | The document provided is either of an unsupported type, or from an unsupported country. | -### ListCredentialTemplatesResponse -Response to `ListCredentialTemplatesRequest` -| Field | Type | Description | -| ----- | ---- | ----------- | -| templates | [TemplateData](/reference/proto#services-verifiablecredentials-templates-v1-TemplateData)[] | Templates found by query | -| has_more_results | [bool](/reference/proto#bool) | Whether more results are available for this query via `continuation_token` | -| continuation_token | [string](/reference/proto#string) | Token to fetch next set of results via `ListCredentialTemplatesRequest` | + + +### VerificationState +The states an individual Verification can be in +| Name | Number | Description | +| ---- | ------ | ----------- | +| VERIFICATION_PENDING | 0 | This verification has not yet been performed in the flow | +| VERIFICATION_PENDING_REUSE | 1 | This verification has been started by the user, and can be reused from a previous verification, but the user has not yet decided whether to reuse it. | +| VERIFICATION_STARTED | 2 | This verification has been started by the user, but not yet completed | +| VERIFICATION_SUCCESS | 3 | This verification has been successfully completed | +| VERIFICATION_FAILED | 4 | This verification has failed | + +### VerificationType +The type of verification to perform - +| Name | Number | Description | +| ---- | ------ | ----------- | +| GOVERNMENT_ID | 0 | Government-issued ID (driver's license, passport, etc) | -### ListVerificationTemplatesRequest -Request to list templates using a SQL query + -| Field | Type | Description | -| ----- | ---- | ----------- | -| query | [string](/reference/proto#string) | SQL query to execute. Example: `SELECT * FROM c WHERE c.name = 'Diploma'` | -| continuation_token | [string](/reference/proto#string) | Token provided by previous `ListCredentialTemplatesResponse` if more data is available for query | + + +

Top

+## services/account/v1/account.proto - + -### ListVerificationTemplatesResponse + + +### AccountDetails +Account registration details | Field | Type | Description | | ----- | ---- | ----------- | -| templates | [VerificationTemplateData](/reference/proto#services-verifiablecredentials-templates-v1-VerificationTemplateData)[] | Templates found by query | -| has_more_results | [bool](/reference/proto#bool) | Whether more results are available for this query via `continuation_token` | -| continuation_token | [string](/reference/proto#string) | Token to fetch next set of results via `ListVerificationTemplatesRequest` | +| name | [string](/reference/proto#string) | Account name | +| email | [string](/reference/proto#string) | **Deprecated.** Email address of account. | +| sms | [string](/reference/proto#string) | **Deprecated.** SMS number including country code | - + -### SearchCredentialTemplatesRequest -Request to search templates using a SQL query +### AccountProfile +Device profile containing sensitive authentication data. +This information should be stored securely | Field | Type | Description | | ----- | ---- | ----------- | -| query | [string](/reference/proto#string) | SQL query to execute. Example: `SELECT * FROM c WHERE c.name = 'Diploma'` | -| continuation_token | [string](/reference/proto#string) | Token provided by previous `SearchCredentialTemplatesResponse` if more data is available for query | +| profile_type | [string](/reference/proto#string) | The type of profile, used to differentiate between protocol schemes or versions | +| auth_data | [bytes](/reference/proto#bytes) | Auth data containg information about the current device access | +| auth_token | [bytes](/reference/proto#bytes) | Secure token issued by server used to generate zero-knowledge proofs | +| protection | [TokenProtection](/reference/proto#services-account-v1-TokenProtection) | Token security information about the token. If token protection is enabled, implementations must supply protection secret before using the token for authentication. | - + -### SearchCredentialTemplatesResponse -Response to `SearchCredentialTemplatesRequest` +### TokenProtection +Token protection info | Field | Type | Description | | ----- | ---- | ----------- | -| items_json | [string](/reference/proto#string) | Raw JSON data returned from query | -| has_more_results | [bool](/reference/proto#bool) | Whether more results are available for this query via `continuation_token` | -| continuation_token | [string](/reference/proto#string) | Token to fetch next set of results via `SearchCredentialTemplatesRequest` | +| enabled | [bool](/reference/proto#bool) | Indicates if token is protected using a PIN, security code, HSM secret, etc. | +| method | [ConfirmationMethod](/reference/proto#services-account-v1-ConfirmationMethod) | The method used to protect the token | - + -### TemplateData -Credential Template +### WalletAuthToken +Information about authentication tokens for a wallet | Field | Type | Description | | ----- | ---- | ----------- | -| id | [string](/reference/proto#string) | Template ID | -| name | [string](/reference/proto#string) | Template name | -| version | [int32](/reference/proto#int32) | Template version number | -| fields | [TemplateData.FieldsEntry](/reference/proto#services-verifiablecredentials-templates-v1-TemplateData-FieldsEntry)[] | Fields defined for the template | -| allow_additional_fields | [bool](/reference/proto#bool) | Whether credentials issued against this template may contain fields not defined by template | -| schema_uri | [string](/reference/proto#string) | URI pointing to template JSON schema document | -| ecosystem_id | [string](/reference/proto#string) | ID of ecosystem in which template resides | -| type | [string](/reference/proto#string) | Template type (`VerifiableCredential`) | -| created_by | [string](/reference/proto#string) | ID of template creator | -| date_created | [string](/reference/proto#string) | Date when template was created as ISO 8601 utc string | -| title | [string](/reference/proto#string) | Human-readable template title | -| description | [string](/reference/proto#string) | Human-readable template description | -| field_ordering | [TemplateData.FieldOrderingEntry](/reference/proto#services-verifiablecredentials-templates-v1-TemplateData-FieldOrderingEntry)[] | Map describing how to order and categorize the fields within the template. The key of this map is the field `name`. | -| apple_wallet_options | [AppleWalletOptions](/reference/proto#services-verifiablecredentials-templates-v1-AppleWalletOptions) | Options for rendering the template in Apple Wallet | +| id | [string](/reference/proto#string) | Unique identifier for the token. This field will match the `DeviceId` in the WalletAuthData | +| description | [string](/reference/proto#string) | Device name/description | +| date_created | [string](/reference/proto#string) | Date when the token was created in ISO 8601 format | + + - + -### TemplateData.FieldOrderingEntry +### ConfirmationMethod +Confirmation method type for two-factor workflows + +| Name | Number | Description | +| ---- | ------ | ----------- | +| None | 0 | No confirmation required | +| Email | 1 | Email confirmation required | +| Sms | 2 | SMS confirmation required | +| ConnectedDevice | 3 | Confirmation from a connected device is required | +| Other | 10 | Third-party method of confirmation is required | + -| Field | Type | Description | -| ----- | ---- | ----------- | -| key | [string](/reference/proto#string) | | -| value | [FieldOrdering](/reference/proto#services-verifiablecredentials-templates-v1-FieldOrdering) | | + + +

Top

+## services/options/field-options.proto - + -### TemplateData.FieldsEntry + + + +### AnnotationOption | Field | Type | Description | | ----- | ---- | ----------- | -| key | [string](/reference/proto#string) | | -| value | [TemplateField](/reference/proto#services-verifiablecredentials-templates-v1-TemplateField) | | +| active | [bool](/reference/proto#bool) | Is this annotation active | +| message | [string](/reference/proto#string) | Custom annotation message to provide | - + + +### SdkTemplateOption -### TemplateField -A field defined in a template | Field | Type | Description | | ----- | ---- | ----------- | -| title | [string](/reference/proto#string) | Human-readable name of the field | -| description | [string](/reference/proto#string) | Human-readable description of the field | -| optional | [bool](/reference/proto#bool) | Whether this field may be omitted when a credential is issued against the template | -| type | [FieldType](/reference/proto#services-verifiablecredentials-templates-v1-FieldType) | The type of the field | -| uri_data | [UriFieldData](/reference/proto#services-verifiablecredentials-templates-v1-UriFieldData) | How to deal with this URI field when rendering credential. Only use if `type` is `URI`. | - +| anonymous | [bool](/reference/proto#bool) | Whether the service endpoint allows anonymous (no auth token necessary) authentication This is used by the `protoc-gen-trinsic-sdk` plugin for metadata. | +| ignore | [bool](/reference/proto#bool) | Whether the SDK template generator should ignore this method. This method will be wrapped manually. | +| no_arguments | [bool](/reference/proto#bool) | Whether the SDK template generator should generate this method without arguments, eg ProviderService.GetEcosystemInfo() where the request object is empty | +| experimental | [AnnotationOption](/reference/proto#services-options-AnnotationOption) | This endpoint is experimental. Consider it in beta, so documentation may be incomplete or incorrect. | +| deprecated | [AnnotationOption](/reference/proto#services-options-AnnotationOption) | This endpoint is deprecated. It will be removed in the future. | - + -### TemplateFieldPatch -A patch to apply to an existing template field + -| Field | Type | Description | -| ----- | ---- | ----------- | -| title | [string](/reference/proto#string) | Human-readable name of the field | -| description | [string](/reference/proto#string) | Human-readable description of the field | -| uri_data | [UriFieldData](/reference/proto#services-verifiablecredentials-templates-v1-UriFieldData) | How to deal with this URI field when rendering credential. Only use if `type` is `URI`. | + +### File-level Extensions +| Extension | Type | Base | Number | Description | +| --------- | ---- | ---- | ------ | ----------- | +| optional | bool | .google.protobuf.FieldOptions | 60000 | Whether field is optional in Trinsic's backend. This is not the same as an `optional` protobuf label; it only impacts documentation generation for the field. | +| sdk_template_option | SdkTemplateOption | .google.protobuf.MethodOptions | 60001 | | + + +

Top

- +## services/trust-registry/v1/trust-registry.proto -### UpdateCredentialTemplateRequest -Request to update display information for a template -| Field | Type | Description | -| ----- | ---- | ----------- | -| id | [string](/reference/proto#string) | ID of Template to update | -| title | [string](/reference/proto#string) | New human-readable title of Template | -| description | [string](/reference/proto#string) | New human-readable description of Template | -| fields | [UpdateCredentialTemplateRequest.FieldsEntry](/reference/proto#services-verifiablecredentials-templates-v1-UpdateCredentialTemplateRequest-FieldsEntry)[] | Fields to update within the Template | -| field_ordering | [UpdateCredentialTemplateRequest.FieldOrderingEntry](/reference/proto#services-verifiablecredentials-templates-v1-UpdateCredentialTemplateRequest-FieldOrderingEntry)[] | New field ordering options. See documentation for template creation for usage information. | -| apple_wallet_options | [AppleWalletOptions](/reference/proto#services-verifiablecredentials-templates-v1-AppleWalletOptions) | New Apple Wallet configuration | + +### Service - TrustRegistry +| Method Name | Request Type | Response Type | Description | +| ----------- | ------------ | ------------- | ------------| +| RegisterMember | [RegisterMemberRequest](/reference/proto#services-trustregistry-v1-RegisterMemberRequest) | [RegisterMemberResponse](/reference/proto#services-trustregistry-v1-RegisterMemberResponse) | Register an authoritative issuer for a credential schema | +| UnregisterMember | [UnregisterMemberRequest](/reference/proto#services-trustregistry-v1-UnregisterMemberRequest) | [UnregisterMemberResponse](/reference/proto#services-trustregistry-v1-UnregisterMemberResponse) | Removes an authoritative issuer for a credential schema from the trust registry | +| GetMemberAuthorizationStatus | [GetMemberAuthorizationStatusRequest](/reference/proto#services-trustregistry-v1-GetMemberAuthorizationStatusRequest) | [GetMemberAuthorizationStatusResponse](/reference/proto#services-trustregistry-v1-GetMemberAuthorizationStatusResponse) | Fetch the status of a member for a given credential schema in a trust registry | +| ListAuthorizedMembers | [ListAuthorizedMembersRequest](/reference/proto#services-trustregistry-v1-ListAuthorizedMembersRequest) | [ListAuthorizedMembersResponse](/reference/proto#services-trustregistry-v1-ListAuthorizedMembersResponse) | Fetch the ecosystem's authorized issuers and the respective templates against which it can issue | +| GetMember | [GetMemberRequest](/reference/proto#services-trustregistry-v1-GetMemberRequest) | [GetMemberResponse](/reference/proto#services-trustregistry-v1-GetMemberResponse) | Get member for a given did in a trust registry | + - + -### UpdateCredentialTemplateRequest.FieldOrderingEntry +### AuthorizedMember | Field | Type | Description | | ----- | ---- | ----------- | -| key | [string](/reference/proto#string) | | -| value | [FieldOrdering](/reference/proto#services-verifiablecredentials-templates-v1-FieldOrdering) | | +| did | [string](/reference/proto#string) | | +| authorized_member_schemas | [AuthorizedMemberSchema](/reference/proto#services-trustregistry-v1-AuthorizedMemberSchema)[] | | - + -### UpdateCredentialTemplateRequest.FieldsEntry +### AuthorizedMemberSchema | Field | Type | Description | | ----- | ---- | ----------- | -| key | [string](/reference/proto#string) | | -| value | [TemplateFieldPatch](/reference/proto#services-verifiablecredentials-templates-v1-TemplateFieldPatch) | | +| schema_uri | [string](/reference/proto#string) | | +| status | [string](/reference/proto#string) | | +| status_details | [string](/reference/proto#string) | | +| valid_from | [uint64](/reference/proto#uint64) | | +| valid_until | [uint64](/reference/proto#uint64) | | - + -### UpdateCredentialTemplateResponse -Response to `UpdateCredentialTemplateRequest` +### GetMemberAuthorizationStatusRequest +Request to fetch member status in Trust Registry for a specific credential schema. | Field | Type | Description | | ----- | ---- | ----------- | -| updated_template | [TemplateData](/reference/proto#services-verifiablecredentials-templates-v1-TemplateData) | The Template after the update has been applied | - +| did_uri | [string](/reference/proto#string) | DID URI of member | +| schema_uri | [string](/reference/proto#string) | URI of credential schema associated with member | - -### UpdateVerificationTemplateRequest + +### GetMemberAuthorizationStatusResponse +Response to `GetMemberAuthorizationStatusRequest` | Field | Type | Description | | ----- | ---- | ----------- | -| id | [string](/reference/proto#string) | ID of Template to update | -| title | [string](/reference/proto#string) | New human-readable title of Template | -| description | [string](/reference/proto#string) | New human-readable description of Template | -| fields | [UpdateVerificationTemplateRequest.FieldsEntry](/reference/proto#services-verifiablecredentials-templates-v1-UpdateVerificationTemplateRequest-FieldsEntry)[] | Fields to update within the Template | +| status | [RegistrationStatus](/reference/proto#services-trustregistry-v1-RegistrationStatus) | Status of member for given credential schema | - - -### UpdateVerificationTemplateRequest.FieldsEntry + +### GetMemberRequest +Request to get a member of the Trust Registry | Field | Type | Description | | ----- | ---- | ----------- | -| key | [string](/reference/proto#string) | | -| value | [VerificationTemplateFieldPatch](/reference/proto#services-verifiablecredentials-templates-v1-VerificationTemplateFieldPatch) | | - +| did_uri | [string](/reference/proto#string) | DID URI of member to get | +| wallet_id | [string](/reference/proto#string) | Trinsic Wallet ID of member to get | +| email | [string](/reference/proto#string) | Email address of member to get. Must be associated with an existing Trinsic account. | - -### UpdateVerificationTemplateResponse + +### GetMemberResponse +Response to `GetMemberAuthorizationStatusRequest` | Field | Type | Description | | ----- | ---- | ----------- | -| template | [VerificationTemplateData](/reference/proto#services-verifiablecredentials-templates-v1-VerificationTemplateData) | | +| authorized_member | [AuthorizedMember](/reference/proto#services-trustregistry-v1-AuthorizedMember) | Member for given did in given framework | - + + +### ListAuthorizedMembersRequest -### UriFieldData -Data pertaining to a URI Field | Field | Type | Description | | ----- | ---- | ----------- | -| mime_type | [string](/reference/proto#string) | Expected MIME Type of content pointed to by URI. Can be generic (eg, "image/") or specific ("image/png"). Defaults to "application/octet-stream". | -| render_method | [UriRenderMethod](/reference/proto#services-verifiablecredentials-templates-v1-UriRenderMethod) | How to display the URI value when rendering a credential. | +| schema_uri | [string](/reference/proto#string) | id of schema that needs to be checked | +| continuation_token | [string](/reference/proto#string) | Token to fetch next set of results, from previous `ListAuthorizedMembersResponse` | - + -### VerificationTemplateData -Verification Template +### ListAuthorizedMembersResponse +Response to `ListAuthorizedMembersRequest` | Field | Type | Description | | ----- | ---- | ----------- | -| id | [string](/reference/proto#string) | Template ID | -| name | [string](/reference/proto#string) | Template name | -| version | [int32](/reference/proto#int32) | Template version number | -| fields | [VerificationTemplateData.FieldsEntry](/reference/proto#services-verifiablecredentials-templates-v1-VerificationTemplateData-FieldsEntry)[] | Fields defined for the template | -| credential_template_id | [string](/reference/proto#string) | Source credential template, used for verifying that the specified `fields` are present in the credential template | -| ecosystem_id | [string](/reference/proto#string) | ID of ecosystem in which template resides | -| type | [string](/reference/proto#string) | Template type (`VerificationTemplate`) | -| created_by | [string](/reference/proto#string) | ID of template creator | -| date_created | [string](/reference/proto#string) | Date when template was created as ISO 8601 utc string | -| title | [string](/reference/proto#string) | Human-readable template title | -| description | [string](/reference/proto#string) | Human-readable template description | - +| authorized_members | [AuthorizedMember](/reference/proto#services-trustregistry-v1-AuthorizedMember)[] | JSON string containing array of resultant objects | +| has_more_results | [bool](/reference/proto#bool) | Whether more data is available to fetch for query | +| continuation_token | [string](/reference/proto#string) | Token to fetch next set of results via `ListAuthorizedMembersRequest` | - -### VerificationTemplateData.FieldsEntry + +### RegisterMemberRequest +Request to register a member as a valid issuer of a specific credential schema. +Only one of `did_uri`, `wallet_id`, or `email` may be specified. | Field | Type | Description | | ----- | ---- | ----------- | -| key | [string](/reference/proto#string) | | -| value | [VerificationTemplateField](/reference/proto#services-verifiablecredentials-templates-v1-VerificationTemplateField) | | - - - +| did_uri | [string](/reference/proto#string) | DID URI of member to register | +| wallet_id | [string](/reference/proto#string) | Trinsic Wallet ID of member to register | +| email | [string](/reference/proto#string) | Email address of member to register. Must be associated with an existing Trinsic account. | +| schema_uri | [string](/reference/proto#string) | URI of credential schema to register member as authorized issuer of | +| valid_from_utc | [uint64](/reference/proto#uint64) | Unix Timestamp member is valid from. Member will not be considered valid before this timestamp. | +| valid_until_utc | [uint64](/reference/proto#uint64) | Unix Timestamp member is valid until. Member will not be considered valid after this timestamp. | - -### VerificationTemplateField -A field defined in a template -| Field | Type | Description | -| ----- | ---- | ----------- | -| field_share_type | [VerificationShareType](/reference/proto#services-verifiablecredentials-templates-v1-VerificationShareType) | Whether this field may be omitted on proof creation | -| usage_policy | [string](/reference/proto#string) | User-facing explanation of what is done with this data + -TODO - Future work supporting proof conditionals/ranges/etc | +### RegisterMemberResponse +Response to `RegisterMemberRequest` - + -### VerificationTemplateFieldPatch -A patch to apply to an existing template field +### UnregisterMemberRequest +Request to unregister a member as a valid issuer of a specific credential schema. +Only one of `did_uri`, `wallet_id`, or `email` may be specified. +The URI of the credential schema must be specified. | Field | Type | Description | | ----- | ---- | ----------- | -| field_share_type | [VerificationShareType](/reference/proto#services-verifiablecredentials-templates-v1-VerificationShareType) | Human-readable name of the field | -| usage_policy | [string](/reference/proto#string) | User-facing explanation of what is done with this data | - - - +| did_uri | [string](/reference/proto#string) | DID URI of member to unregister | +| wallet_id | [string](/reference/proto#string) | Trinsic Wallet ID of member to unregister | +| email | [string](/reference/proto#string) | Email address of member to unregister. Must be associated with an existing Trinsic account. | +| schema_uri | [string](/reference/proto#string) | URI of credential schema to unregister member as authorized issuer of | - - -### FieldType -Valid types for credential fields -| Name | Number | Description | -| ---- | ------ | ----------- | -| STRING | 0 | | -| NUMBER | 1 | | -| BOOL | 2 | | -| DATETIME | 4 | | -| URI | 5 | | + +### UnregisterMemberResponse +Response to `UnregisterMemberRequest` - -### UriRenderMethod -How to display a URI value when rendering a credential. -| Name | Number | Description | -| ---- | ------ | ----------- | -| TEXT | 0 | Display URI as text | -| LINK | 1 | Display URI as a clickable link | -| INLINE_IMAGE | 2 | Display URI as an inline image. Only takes effect if the template field's MIME Type is an image type. | + - + -### VerificationShareType +### RegistrationStatus | Name | Number | Description | | ---- | ------ | ----------- | -| OPTIONAL | 0 | | -| REQUIRED | 1 | | +| CURRENT | 0 | Member is currently authorized, as of the time of the query | +| EXPIRED | 1 | Member's authorization has expired | +| TERMINATED | 2 | Member has voluntarily ceased Issuer role under the specific EGF | +| REVOKED | 3 | Member authority under specific EGF was terminated by the governing authority | +| NOT_FOUND | 10 | Member is not associated with given credential schema in the EGF | @@ -1548,658 +1556,637 @@ How to display a URI value when rendering a credential. - +

Top

-## services/verifiable-credentials/v1/verifiable-credentials.proto - +## services/universal-wallet/v1/universal-wallet.proto - -### Service - VerifiableCredential + +### Service - UniversalWallet +Service for managing wallets | Method Name | Request Type | Response Type | Description | | ----------- | ------------ | ------------- | ------------| -| IssueFromTemplate | [IssueFromTemplateRequest](/reference/proto#services-verifiablecredentials-v1-IssueFromTemplateRequest) | [IssueFromTemplateResponse](/reference/proto#services-verifiablecredentials-v1-IssueFromTemplateResponse) | Sign and issue a verifiable credential from a pre-defined template. This process will also add schema validation and revocation registry values to the credential. | -| CheckStatus | [CheckStatusRequest](/reference/proto#services-verifiablecredentials-v1-CheckStatusRequest) | [CheckStatusResponse](/reference/proto#services-verifiablecredentials-v1-CheckStatusResponse) | Check credential status in the revocation registry | -| UpdateStatus | [UpdateStatusRequest](/reference/proto#services-verifiablecredentials-v1-UpdateStatusRequest) | [UpdateStatusResponse](/reference/proto#services-verifiablecredentials-v1-UpdateStatusResponse) | Update credential status by setting the revocation value | -| CreateProof | [CreateProofRequest](/reference/proto#services-verifiablecredentials-v1-CreateProofRequest) | [CreateProofResponse](/reference/proto#services-verifiablecredentials-v1-CreateProofResponse) | Create a proof from a signed document that is a valid verifiable credential and contains a signature from which a proof can be derived. | -| VerifyProof | [VerifyProofRequest](/reference/proto#services-verifiablecredentials-v1-VerifyProofRequest) | [VerifyProofResponse](/reference/proto#services-verifiablecredentials-v1-VerifyProofResponse) | Verifies a proof by checking the signature value, and if possible schema validation, revocation status, and issuer status against a trust registry | -| Send | [SendRequest](/reference/proto#services-verifiablecredentials-v1-SendRequest) | [SendResponse](/reference/proto#services-verifiablecredentials-v1-SendResponse) | Sends a document directly to a user's email within the given ecosystem | -| CreateCredentialOffer | [CreateCredentialOfferRequest](/reference/proto#services-verifiablecredentials-v1-CreateCredentialOfferRequest) | [CreateCredentialOfferResponse](/reference/proto#services-verifiablecredentials-v1-CreateCredentialOfferResponse) | Create credential offer | -| AcceptCredential | [AcceptCredentialRequest](/reference/proto#services-verifiablecredentials-v1-AcceptCredentialRequest) | [AcceptCredentialResponse](/reference/proto#services-verifiablecredentials-v1-AcceptCredentialResponse) | Accept an offer to exchange a credential | -| RejectCredential | [RejectCredentialRequest](/reference/proto#services-verifiablecredentials-v1-RejectCredentialRequest) | [RejectCredentialResponse](/reference/proto#services-verifiablecredentials-v1-RejectCredentialResponse) | Reject an offer to exchange a credential | +| GetItem | [GetItemRequest](/reference/proto#services-universalwallet-v1-GetItemRequest) | [GetItemResponse](/reference/proto#services-universalwallet-v1-GetItemResponse) | Retrieve an item from the wallet with a given item identifier | +| Search | [SearchRequest](/reference/proto#services-universalwallet-v1-SearchRequest) | [SearchResponse](/reference/proto#services-universalwallet-v1-SearchResponse) | Search the wallet using a SQL syntax | +| InsertItem | [InsertItemRequest](/reference/proto#services-universalwallet-v1-InsertItemRequest) | [InsertItemResponse](/reference/proto#services-universalwallet-v1-InsertItemResponse) | Insert an item into the wallet | +| UpdateItem | [UpdateItemRequest](/reference/proto#services-universalwallet-v1-UpdateItemRequest) | [UpdateItemResponse](/reference/proto#services-universalwallet-v1-UpdateItemResponse) | Update an item in the wallet | +| DeleteItem | [DeleteItemRequest](/reference/proto#services-universalwallet-v1-DeleteItemRequest) | [DeleteItemResponse](/reference/proto#services-universalwallet-v1-DeleteItemResponse) | Delete an item from the wallet permanently | +| DeleteWallet | [DeleteWalletRequest](/reference/proto#services-universalwallet-v1-DeleteWalletRequest) | [DeleteWalletResponse](/reference/proto#services-universalwallet-v1-DeleteWalletResponse) | Delete a wallet and its credentials | +| CreateWallet | [CreateWalletRequest](/reference/proto#services-universalwallet-v1-CreateWalletRequest) | [CreateWalletResponse](/reference/proto#services-universalwallet-v1-CreateWalletResponse) | Create a new wallet and generate an auth token for access | +| GetWalletInfo | [GetWalletInfoRequest](/reference/proto#services-universalwallet-v1-GetWalletInfoRequest) | [GetWalletInfoResponse](/reference/proto#services-universalwallet-v1-GetWalletInfoResponse) | Retrieve wallet details and configuration | +| GetMyInfo | [GetMyInfoRequest](/reference/proto#services-universalwallet-v1-GetMyInfoRequest) | [GetMyInfoResponse](/reference/proto#services-universalwallet-v1-GetMyInfoResponse) | Retrieve wallet details and configuration about the currently authenticated wallet | +| GetWalletFromExternalIdentity | [GetWalletFromExternalIdentityRequest](/reference/proto#services-universalwallet-v1-GetWalletFromExternalIdentityRequest) | [GetWalletFromExternalIdentityResponse](/reference/proto#services-universalwallet-v1-GetWalletFromExternalIdentityResponse) | Retrieve information from an ecosystem wallet by searching for its external identity (email or phone) | +| GenerateAuthToken | [GenerateAuthTokenRequest](/reference/proto#services-universalwallet-v1-GenerateAuthTokenRequest) | [GenerateAuthTokenResponse](/reference/proto#services-universalwallet-v1-GenerateAuthTokenResponse) | Generate new token for a given wallet and add it to the collection of known auth tokens. This endpoint requires authentication and will return a new token ID and auth token. Use this endpoint if you want to authorize another device, without having to share your existing auth token. | +| RevokeAuthToken | [RevokeAuthTokenRequest](/reference/proto#services-universalwallet-v1-RevokeAuthTokenRequest) | [RevokeAuthTokenResponse](/reference/proto#services-universalwallet-v1-RevokeAuthTokenResponse) | Revokes a previously issued auth token and updates the collection of known auth tokens. This endpoint requires authentication. | +| AddExternalIdentityInit | [AddExternalIdentityInitRequest](/reference/proto#services-universalwallet-v1-AddExternalIdentityInitRequest) | [AddExternalIdentityInitResponse](/reference/proto#services-universalwallet-v1-AddExternalIdentityInitResponse) | Add new external identity to the current wallet, such as email, sms, ethereum address, etc. This identity ownership must be confirmed using `AddIdentityConfirm` via OTP, signature, etc. | +| AddExternalIdentityConfirm | [AddExternalIdentityConfirmRequest](/reference/proto#services-universalwallet-v1-AddExternalIdentityConfirmRequest) | [AddExternalIdentityConfirmResponse](/reference/proto#services-universalwallet-v1-AddExternalIdentityConfirmResponse) | Confirm identity added to the current wallet using `AddExternalIdentityInit` | +| RemoveExternalIdentity | [RemoveExternalIdentityRequest](/reference/proto#services-universalwallet-v1-RemoveExternalIdentityRequest) | [RemoveExternalIdentityResponse](/reference/proto#services-universalwallet-v1-RemoveExternalIdentityResponse) | Remove an external identity from the current wallet | +| AuthenticateInit | [AuthenticateInitRequest](/reference/proto#services-universalwallet-v1-AuthenticateInitRequest) | [AuthenticateInitResponse](/reference/proto#services-universalwallet-v1-AuthenticateInitResponse) | Sign-in to an already existing wallet, using an identity added that was previously registered This endpoint does not require authentication, and will return a challenge to be signed or verified | +| AuthenticateConfirm | [AuthenticateConfirmRequest](/reference/proto#services-universalwallet-v1-AuthenticateConfirmRequest) | [AuthenticateConfirmResponse](/reference/proto#services-universalwallet-v1-AuthenticateConfirmResponse) | Confirm sign-in to an already existing wallet and return authentication token | +| AuthenticateResendCode | [AuthenticateResendCodeRequest](/reference/proto#services-universalwallet-v1-AuthenticateResendCodeRequest) | [AuthenticateResendCodeResponse](/reference/proto#services-universalwallet-v1-AuthenticateResendCodeResponse) | Resend previous authentication code | +| ListWallets | [ListWalletsRequest](/reference/proto#services-universalwallet-v1-ListWalletsRequest) | [ListWalletsResponse](/reference/proto#services-universalwallet-v1-ListWalletsResponse) | List all wallets in the ecosystem | +| ListByVerificationTemplate | [ListByVerificationTemplateRequest](/reference/proto#services-universalwallet-v1-ListByVerificationTemplateRequest) | [ListByVerificationTemplateResponse](/reference/proto#services-universalwallet-v1-ListByVerificationTemplateResponse) | List credentials which match a given verification template | - + -### AcceptCredentialRequest +### AddExternalIdentityConfirmRequest | Field | Type | Description | | ----- | ---- | ----------- | -| document_json | [string](/reference/proto#string) | The JSON document that contains the credential offer | -| item_id | [string](/reference/proto#string) | The ID of the credential offer (Parameter ID inside the JSON document) | - +| challenge | [string](/reference/proto#string) | The challenge received from the `AddExternalIdentityInit` endpoint | +| response | [string](/reference/proto#string) | The response to the challenge. If using Email or Phone, this is the OTP code sent to the user's email or phone | - -### AcceptCredentialResponse + +### AddExternalIdentityConfirmResponse -| Field | Type | Description | -| ----- | ---- | ----------- | -| item_id | [string](/reference/proto#string) | The ID of the item in the wallet that contains the issued credential | -| document_json | [string](/reference/proto#string) | The JSON document that contains the issued credential. This item is already stored in the wallet. | + - +### AddExternalIdentityInitRequest -### CheckStatusRequest -Request to check a credential's revocation status | Field | Type | Description | | ----- | ---- | ----------- | -| credential_status_id | [string](/reference/proto#string) | Credential Status ID to check. This is not the same as the credential's ID. | +| identity | [string](/reference/proto#string) | The user identity to add to the wallet This can be an email address or phone number (formatted as +[country code][phone number]) | +| provider | [services.provider.v1.IdentityProvider](/reference/proto#services-provider-v1-IdentityProvider) | The type of identity provider, like EMAIL or PHONE | - + + +### AddExternalIdentityInitResponse -### CheckStatusResponse -Response to `CheckStatusRequest` | Field | Type | Description | | ----- | ---- | ----------- | -| revoked | [bool](/reference/proto#bool) | The credential's revocation status | +| challenge | [string](/reference/proto#string) | Challenge or reference to the challenge to be used in the `AddExternalIdentityConfirm` endpoint | - + -### CreateCredentialOfferRequest +### AuthenticateConfirmRequest | Field | Type | Description | | ----- | ---- | ----------- | -| template_id | [string](/reference/proto#string) | ID of template to use | -| values_json | [string](/reference/proto#string) | JSON document string with keys corresponding to the fields of the template referenced by `template_id` | -| holder_binding | [bool](/reference/proto#bool) | If true, the credential will be issued with holder binding by specifying the holder DID in the credential subject | -| include_governance | [bool](/reference/proto#bool) | If true, the issued credential will contain an attestation of the issuer's membership in the ecosystem's Trust Registry. | -| generate_share_url | [bool](/reference/proto#bool) | If true, a short URL link will be generated that can be used to share the credential offer with the holder. This link will point to the credential offer in the wallet app. | -| signature_type | [SignatureType](/reference/proto#services-verifiablecredentials-v1-SignatureType) | The type of signature to use when signing the credential. Defaults to `EXPERIMENTAL`. | +| challenge | [string](/reference/proto#string) | The challenge received from the `AcquireAuthTokenInit` endpoint | +| response | [string](/reference/proto#string) | The response to the challenge. If using Email or Phone, this is the OTP code sent to the user's email or phone | - + -### CreateCredentialOfferResponse +### AuthenticateConfirmResponse | Field | Type | Description | | ----- | ---- | ----------- | -| document_json | [string](/reference/proto#string) | The JSON document that contains the credential offer | -| share_url | [string](/reference/proto#string) | If requested, a URL that can be used to share the credential offer with the holder. This is a short URL that can be used in a QR code and will redirect the holder to the credential offer using the wallet app. | +| auth_token | [string](/reference/proto#string) | Auth token for the wallet | - + + +### AuthenticateInitRequest -### CreateProofRequest -Request to create a proof for a Verifiable Credential using public key tied to caller. -Either `item_id`, or `document_json` may be provided, not both. | Field | Type | Description | | ----- | ---- | ----------- | -| reveal_document_json | [string](/reference/proto#string) | A valid JSON-LD frame describing which fields should be revealed in the generated proof. If unspecified, all fields in the document will be revealed | -| reveal_template | [RevealTemplateAttributes](/reference/proto#services-verifiablecredentials-v1-RevealTemplateAttributes) | Information about what sections of the document to reveal | -| verification_template_id | [string](/reference/proto#string) | Id of verification template with which to construct the JSON-LD proof document | -| item_id | [string](/reference/proto#string) | ID of wallet item stored in a Trinsic cloud wallet | -| document_json | [string](/reference/proto#string) | A valid JSON-LD Verifiable Credential document string with an unbound signature. The proof will be derived from this document directly. The document will not be stored in the wallet. | -| use_verifiable_presentation | [bool](/reference/proto#bool) | Wrap the output in a verifiable presentation. If the credential used in the proof is bound to the holder DID, the output will always use a verifiable presentation and this field will be ignored. | -| nonce | [bytes](/reference/proto#bytes) | Nonce value used to derive the proof. If not specified, a random nonce will be generated. This value may be represented in base64 format in the proof model. | +| identity | [string](/reference/proto#string) | Identity to add to the wallet | +| provider | [services.provider.v1.IdentityProvider](/reference/proto#services-provider-v1-IdentityProvider) | Identity provider | +| ecosystem_id | [string](/reference/proto#string) | Ecosystem ID to which the wallet belongs | - + + +### AuthenticateInitResponse -### CreateProofResponse -Response to `CreateProofRequest` | Field | Type | Description | | ----- | ---- | ----------- | -| proof_document_json | [string](/reference/proto#string) | Valid JSON-LD proof for the specified credential | +| challenge | [string](/reference/proto#string) | The challenge received from the `AcquireAuthTokenInit` endpoint Pass this challenge back to the `AcquireAuthTokenConfirm` endpoint | - + + +### AuthenticateResendCodeRequest -### IssueFromTemplateRequest -Request to create and sign a JSON-LD Verifiable Credential from a template using public key tied to caller | Field | Type | Description | | ----- | ---- | ----------- | -| template_id | [string](/reference/proto#string) | ID of template to use | -| values_json | [string](/reference/proto#string) | JSON document string with keys corresponding to the fields of the template referenced by `template_id` | -| save_copy | [bool](/reference/proto#bool) | Save a copy of the issued credential to this user's wallet. This copy will only contain the credential data, but not the secret proof value. Issuers may use this data to keep track of the details for revocation status. | -| expiration_date | [string](/reference/proto#string) | The ISO8601 expiration UTC date of the credential. This is a reserved field in the VC specification. If specified, the issued credential will contain an expiration date. https://www.w3.org/TR/vc-data-model/#expiration | -| include_governance | [bool](/reference/proto#bool) | If true, the issued credential will contain an attestation of the issuer's membership in the ecosystem's Trust Registry. | -| signature_type | [SignatureType](/reference/proto#services-verifiablecredentials-v1-SignatureType) | The type of signature to use when signing the credential. Defaults to `EXPERIMENTAL`. | +| challenge | [string](/reference/proto#string) | Challenge for the code you want resent. | - + -### IssueFromTemplateResponse -Response to `IssueFromTemplateRequest` +### AuthenticateResendCodeResponse -| Field | Type | Description | -| ----- | ---- | ----------- | -| document_json | [string](/reference/proto#string) | Verifiable Credential document, in JSON-LD form, constructed from the specified template and values; signed with public key tied to caller of `IssueFromTemplateRequest` | - - + -### RejectCredentialRequest +### CreateWalletRequest | Field | Type | Description | | ----- | ---- | ----------- | -| document_json | [string](/reference/proto#string) | The JSON document that contains the credential offer | -| item_id | [string](/reference/proto#string) | The ID of the credential offer (Parameter ID inside the JSON document) | +| ecosystem_id | [string](/reference/proto#string) | Ecosystem ID of the wallet to create | +| description | [string](/reference/proto#string) | Wallet name or description. Use this field to add vendor specific information about this wallet, such as email, phone, internal ID, or anything you'd like to associate with this wallet. This field is searchable. | +| identity | [CreateWalletRequest.ExternalIdentity](/reference/proto#services-universalwallet-v1-CreateWalletRequest-ExternalIdentity) | Optional identity to add to the wallet (email or sms). Use this field when inviting participants into an ecosystem. If this field is set, an auth token will not be sent in the response. | - + + +### CreateWalletRequest.ExternalIdentity + -### RejectCredentialResponse +| Field | Type | Description | +| ----- | ---- | ----------- | +| identity | [string](/reference/proto#string) | The user identity to add to the wallet This can be an email address or phone number (formatted as +[country code][phone number]) | +| provider | [services.provider.v1.IdentityProvider](/reference/proto#services-provider-v1-IdentityProvider) | The type of identity provider, like EMAIL or PHONE | - + -### RevealTemplateAttributes +### CreateWalletResponse | Field | Type | Description | | ----- | ---- | ----------- | -| template_attributes | [string](/reference/proto#string)[] | A list of document attributes to reveal. If unset, all attributes will be returned. | +| auth_token | [string](/reference/proto#string) | Auth token for the newly created wallet | +| token_id | [string](/reference/proto#string) | Token ID of the newly generated token | +| wallet | [services.provider.v1.WalletConfiguration](/reference/proto#services-provider-v1-WalletConfiguration) | Wallet configuration | - + -### SendRequest -Request to send a document to another user's wallet +### DeleteItemRequest +Request to delete an item in a wallet | Field | Type | Description | | ----- | ---- | ----------- | -| email | [string](/reference/proto#string) | Email address of user to whom you'll send the item | -| wallet_id | [string](/reference/proto#string) | Wallet ID of the recipient within the ecosystem | -| did_uri | [string](/reference/proto#string) | DID URI of the recipient | -| phone_number | [string](/reference/proto#string) | SMS of user to whom you'll send the item | -| send_notification | [bool](/reference/proto#bool) | Send email notification that credential has been sent to a wallet | -| document_json | [string](/reference/proto#string) | JSON document to send to recipient | +| item_id | [string](/reference/proto#string) | ID of item to delete | - + -### SendResponse -Response to `SendRequest` +### DeleteItemResponse +Response to `DeleteItemRequest` - + -### UpdateStatusRequest -Request to update a credential's revocation status +### DeleteWalletRequest +Request to delete a wallet | Field | Type | Description | | ----- | ---- | ----------- | -| credential_status_id | [string](/reference/proto#string) | Credential Status ID to update. This is not the same as the credential's ID. | -| revoked | [bool](/reference/proto#bool) | New revocation status of credential | +| email | [string](/reference/proto#string) | Email address of account to delete. Mutually exclusive with `walletId` and `didUri`. | +| wallet_id | [string](/reference/proto#string) | Wallet ID of account to delete. Mutually exclusive with `email` and `didUri`. | +| did_uri | [string](/reference/proto#string) | DID URI of the account to delete. Mutually exclusive with `email` and `walletId`. | - + -### UpdateStatusResponse -Response to `UpdateStatusRequest` +### DeleteWalletResponse +Response to `DeleteWalletRequest`. Empty payload. - + + +### GenerateAuthTokenRequest -### ValidationMessage -Result of a validation check on a proof | Field | Type | Description | | ----- | ---- | ----------- | -| is_valid | [bool](/reference/proto#bool) | Whether this validation check passed | -| messages | [string](/reference/proto#string)[] | If validation failed, contains messages explaining why | +| wallet_id | [string](/reference/proto#string) | | +| token_description | [string](/reference/proto#string) | | - + + +### GenerateAuthTokenResponse -### VerifyProofRequest -Request to verify a proof | Field | Type | Description | | ----- | ---- | ----------- | -| proof_document_json | [string](/reference/proto#string) | JSON-LD proof document string to verify | +| token_id | [string](/reference/proto#string) | | +| auth_token | [string](/reference/proto#string) | | - + -### VerifyProofResponse -Response to `VerifyProofRequest` +### GetItemRequest +Request to fetch an item from wallet | Field | Type | Description | | ----- | ---- | ----------- | -| is_valid | [bool](/reference/proto#bool) | Whether all validations in `validation_results` passed | -| validation_results | [VerifyProofResponse.ValidationResultsEntry](/reference/proto#services-verifiablecredentials-v1-VerifyProofResponse-ValidationResultsEntry)[] | Results of each validation check performed, such as schema conformance, revocation status, signature, etc. Detailed results are provided for failed validations. | +| item_id | [string](/reference/proto#string) | ID of item in wallet | - - -### VerifyProofResponse.ValidationResultsEntry + +### GetItemResponse +Response to `GetItemRequest` | Field | Type | Description | | ----- | ---- | ----------- | -| key | [string](/reference/proto#string) | | -| value | [ValidationMessage](/reference/proto#services-verifiablecredentials-v1-ValidationMessage) | | +| item_json | [string](/reference/proto#string) | Item data as a JSON string | +| item_type | [string](/reference/proto#string) | Type of item specified when item was inserted into wallet | - + - +### GetMyInfoRequest +Request to retrieve wallet information about the currently authenticated wallet -### SignatureType -| Name | Number | Description | -| ---- | ------ | ----------- | -| UNSPECIFIED | 0 | The signature type is not specified. The experimental signature type will be used. | -| STANDARD | 1 | The signature type uses EdDSA with the Ed25519 curve (NIST compliant). This type of signature does not support selective disclosure of attributes. | -| EXPERIMENTAL | 2 | The signature type uses BBS signatures with BLS12-381 curve (experimental). This type of signature allows for selective disclosure of attributes. | - - + +### GetMyInfoResponse +Response to `GetMyInfoRequest` - -

Top

+| Field | Type | Description | +| ----- | ---- | ----------- | +| wallet | [services.provider.v1.WalletConfiguration](/reference/proto#services-provider-v1-WalletConfiguration) | Wallet configuration | -## services/options/field-options.proto - - -### AnnotationOption + + +### GetWalletFromExternalIdentityRequest | Field | Type | Description | | ----- | ---- | ----------- | -| active | [bool](/reference/proto#bool) | Is this annotation active | -| message | [string](/reference/proto#string) | Custom annotation message to provide | - +| identity | [services.provider.v1.WalletExternalIdentity](/reference/proto#services-provider-v1-WalletExternalIdentity) | | - -### SdkTemplateOption + +### GetWalletFromExternalIdentityResponse +Response to `GetWalletFromExternalIdentityRequest` | Field | Type | Description | | ----- | ---- | ----------- | -| anonymous | [bool](/reference/proto#bool) | Whether the service endpoint allows anonymous (no auth token necessary) authentication This is used by the `protoc-gen-trinsic-sdk` plugin for metadata. | -| ignore | [bool](/reference/proto#bool) | Whether the SDK template generator should ignore this method. This method will be wrapped manually. | -| no_arguments | [bool](/reference/proto#bool) | Whether the SDK template generator should generate this method without arguments, eg ProviderService.GetEcosystemInfo() where the request object is empty | -| experimental | [AnnotationOption](/reference/proto#services-options-AnnotationOption) | This endpoint is experimental. Consider it in beta, so documentation may be incomplete or incorrect. | -| deprecated | [AnnotationOption](/reference/proto#services-options-AnnotationOption) | This endpoint is deprecated. It will be removed in the future. | +| wallet | [services.provider.v1.WalletConfiguration](/reference/proto#services-provider-v1-WalletConfiguration) | Wallet configuration | - - + +### GetWalletInfoRequest +Request to retrieve wallet information about a given wallet identified by its wallet ID - -### File-level Extensions -| Extension | Type | Base | Number | Description | -| --------- | ---- | ---- | ------ | ----------- | -| optional | bool | .google.protobuf.FieldOptions | 60000 | Whether field is optional in Trinsic's backend. This is not the same as an `optional` protobuf label; it only impacts documentation generation for the field. | -| sdk_template_option | SdkTemplateOption | .google.protobuf.MethodOptions | 60001 | | +| Field | Type | Description | +| ----- | ---- | ----------- | +| wallet_id | [string](/reference/proto#string) | Wallet ID of the wallet to retrieve | - - -

Top

-## services/connect/v1/connect.proto + +### GetWalletInfoResponse +Response to `GetWalletInfoRequest` - -### Service - Connect -The Connect service provides access to Trinsic Connect, a reusable identity verification service. +| Field | Type | Description | +| ----- | ---- | ----------- | +| wallet | [services.provider.v1.WalletConfiguration](/reference/proto#services-provider-v1-WalletConfiguration) | Wallet configuration | -| Method Name | Request Type | Response Type | Description | -| ----------- | ------------ | ------------- | ------------| -| CreateSession | [CreateSessionRequest](/reference/proto#services-connect-v1-CreateSessionRequest) | [CreateSessionResponse](/reference/proto#services-connect-v1-CreateSessionResponse) | Create an IDVSession | -| CancelSession | [CancelSessionRequest](/reference/proto#services-connect-v1-CancelSessionRequest) | [CancelSessionResponse](/reference/proto#services-connect-v1-CancelSessionResponse) | Cancel an IDVSession | -| GetSession | [GetSessionRequest](/reference/proto#services-connect-v1-GetSessionRequest) | [GetSessionResponse](/reference/proto#services-connect-v1-GetSessionResponse) | Get an IDVSession | -| ListSessions | [ListSessionsRequest](/reference/proto#services-connect-v1-ListSessionsRequest) | [ListSessionsResponse](/reference/proto#services-connect-v1-ListSessionsResponse) | List IDVSessions created by the calling wallet | - - -### CancelSessionRequest -Request to cancel an Identity Verification Session + + + +### InsertItemRequest +Request to insert a JSON document into a wallet | Field | Type | Description | | ----- | ---- | ----------- | -| idv_session_id | [string](/reference/proto#string) | The ID of the IDVSession to cancel | +| item_json | [string](/reference/proto#string) | Document to insert; must be stringified JSON | +| item_type | [string](/reference/proto#string) | Item type (ex. "VerifiableCredential") | - + -### CancelSessionResponse -Response to `CancelIDVSessionRequest` +### InsertItemResponse +Response to `InsertItemRequest` | Field | Type | Description | | ----- | ---- | ----------- | -| session | [IDVSession](/reference/proto#services-connect-v1-IDVSession) | The IDVSession in its current state after cancellation | +| item_id | [string](/reference/proto#string) | ID of item inserted into wallet | - + -### CreateSessionRequest -Request to create an Identity Verification Session +### ListByVerificationTemplateRequest +Request to list templates by | Field | Type | Description | | ----- | ---- | ----------- | -| verifications | [RequestedVerification](/reference/proto#services-connect-v1-RequestedVerification)[] | Array of verifications to perform | +| verification_template_id | [string](/reference/proto#string) | ID of verification template to list matching credentials | +| continuation_token | [string](/reference/proto#string) | Token provided by previous `ListCredentialTemplatesResponse` if more data is available for query | - + -### CreateSessionResponse -Response to `CreateIDVSessionRequest` +### ListByVerificationTemplateResponse +Response to `ListByVerificationTemplateRequest` | Field | Type | Description | | ----- | ---- | ----------- | -| session | [IDVSession](/reference/proto#services-connect-v1-IDVSession) | The created IDVSession | +| items | [string](/reference/proto#string)[] | Array of query results, as JSON strings | +| has_more_results | [bool](/reference/proto#bool) | Whether more results are available for this query via `continuation_token` | +| continuation_token | [string](/reference/proto#string) | Token to fetch next set of results via `ListByVerificationTemplateRequest` | - + + +### ListWalletsRequest -### GetSessionRequest -Request to get an IDVSession | Field | Type | Description | | ----- | ---- | ----------- | -| idv_session_id | [string](/reference/proto#string) | The ID of the IDVSession to get | +| filter | [string](/reference/proto#string) | | - + + +### ListWalletsResponse -### GetSessionResponse -Response to `GetIDVSessionRequest` | Field | Type | Description | | ----- | ---- | ----------- | -| session | [IDVSession](/reference/proto#services-connect-v1-IDVSession) | The IDVSession | +| wallets | [services.provider.v1.WalletConfiguration](/reference/proto#services-provider-v1-WalletConfiguration)[] | | - + + +### RemoveExternalIdentityRequest -### IDVSession -An Identity Verification Session | Field | Type | Description | | ----- | ---- | ----------- | -| id | [string](/reference/proto#string) | The ID of the IDVSession. | -| client_token | [string](/reference/proto#string) | The Client Token for this IDVSession. This should be passed to your frontend to initiate the IDV flow using Trinsic's Web SDK. | -| state | [IDVSessionState](/reference/proto#services-connect-v1-IDVSessionState) | State of the IDVSession | -| verifications | [IDVSession.VerificationsEntry](/reference/proto#services-connect-v1-IDVSession-VerificationsEntry)[] | The actual Verifications to perform in this IDV flow | -| fail_code | [SessionFailCode](/reference/proto#services-connect-v1-SessionFailCode) | The reason for the IDVSession's failure. Only set if `state` is `IDV_FAILED`. | -| result_vp | [string](/reference/proto#string) | The resultant signed VP combining the results of all verifications | -| created | [fixed64](/reference/proto#fixed64) | The unix timestamp, in seconds, that this IDVSession was created | -| updated | [fixed64](/reference/proto#fixed64) | The unix timestamp, in seconds, that this IDVSession's `state` was last updated | +| identity | [string](/reference/proto#string) | The user identity to remove from the wallet This can be an email address or phone number (formatted as +[country code][phone number]) | - + -### IDVSession.VerificationsEntry +### RemoveExternalIdentityResponse + + + + + + + + +### RevokeAuthTokenRequest +Request to revoke a previously issued auth token | Field | Type | Description | | ----- | ---- | ----------- | -| key | [string](/reference/proto#string) | | -| value | [Verification](/reference/proto#services-connect-v1-Verification) | | +| wallet_id | [string](/reference/proto#string) | Wallet ID of the wallet to from which to revoke the token | +| token_id | [string](/reference/proto#string) | Token ID of the token to revoke | - + -### ListSessionsRequest -Request to list all IDVSessions you've created +### RevokeAuthTokenResponse -| Field | Type | Description | -| ----- | ---- | ----------- | -| order_by | [SessionOrdering](/reference/proto#services-connect-v1-SessionOrdering) | The field by which sessions should be sorted. Defaults to `CREATED`. | -| order_direction | [services.common.v1.OrderDirection](/reference/proto#services-common-v1-OrderDirection) | The order in which sessions should be sorted. Defaults to `ASCENDING`. | -| page_size | [int32](/reference/proto#int32) | The number of results to return per page. Must be between `1` and `10`, inclusive. Defaults to `10`. | -| page | [int32](/reference/proto#int32) | The page index of results to return. Starts at `1`. Defaults to `1`. | + - - -### ListSessionsResponse -Response to `ListIDVSessionsRequest` +### SearchRequest +Request to search items in wallet | Field | Type | Description | | ----- | ---- | ----------- | -| sessions | [IDVSession](/reference/proto#services-connect-v1-IDVSession)[] | The sessions you've created | -| total | [int32](/reference/proto#int32) | The total number of sessions you've created | -| more | [bool](/reference/proto#bool) | If `true`, this is not the last page of results. If `false`, this is the last page of results. | +| query | [string](/reference/proto#string) | SQL Query to execute against items in wallet | +| continuation_token | [string](/reference/proto#string) | Token provided by previous `SearchResponse` if more data is available for query | - + -### RequestedVerification -A verification to perform in an IDV flow +### SearchResponse +Response to `SearchRequest` | Field | Type | Description | | ----- | ---- | ----------- | -| type | [VerificationType](/reference/proto#services-connect-v1-VerificationType) | The type of verification to perform | +| items | [string](/reference/proto#string)[] | Array of query results, as JSON strings | +| has_more_results | [bool](/reference/proto#bool) | Whether more results are available for this query via `continuation_token` | +| continuation_token | [string](/reference/proto#string) | Token to fetch next set of results via `SearchRequest` | - + -### Verification -A Verification that is part of an IDVSession +### UpdateItemRequest +Request to update item in wallet | Field | Type | Description | | ----- | ---- | ----------- | -| id | [string](/reference/proto#string) | The ID of the verification | -| type | [VerificationType](/reference/proto#services-connect-v1-VerificationType) | The type of verification (driver's license, passport, proof of address, etc) | -| state | [VerificationState](/reference/proto#services-connect-v1-VerificationState) | The state of the verification | -| fail_code | [VerificationFailCode](/reference/proto#services-connect-v1-VerificationFailCode) | The reason for the Verification's failure. Only set if `state` is `VERIFICATION_FAILED`. | -| reused | [bool](/reference/proto#bool) | Whether this was a reused (true) or fresh (false) verification. If `state` is not `VERIFICATION_SUCCESS`, this field is `false` and does not convey useful information. | -| begun | [fixed64](/reference/proto#fixed64) | The unix timestamp, in seconds, when this verification was begun by the user -- or `0` if not yet begun. | -| updated | [fixed64](/reference/proto#fixed64) | The unix timestamp, in seconds, when this verification last changed state -- o | +| item_id | [string](/reference/proto#string) | ID of item in wallet | +| item_type | [string](/reference/proto#string) | Item type (ex. "VerifiableCredential") | + + + + + + + + +### UpdateItemResponse +Response to `UpdateItemRequest` @@ -2207,1068 +2194,1107 @@ A Verification that is part of an IDVSession + - + -### IDVSessionState -The states a VerificationSession can be in -| Name | Number | Description | -| ---- | ------ | ----------- | -| IDV_CREATED | 0 | Session has been created, but not yet shown to user | -| IDV_INITIATED | 1 | Session has been shown to user (iframe / popup opened), but user has not yet logged in. | -| IDV_AUTHENTICATING | 2 | User has entered their phone number, but not yet authenticated with the code sent via SMS | -| IDV_IN_PROGRESS | 3 | User has been authenticated and is performing identity verification | -| IDV_SUCCESS | 4 | Session was completed successfully and IDV data is available to RP | -| IDV_FAILED | 5 | The session failed; reason is present in `fail_code`. | + +

Top

+## services/verifiable-credentials/templates/v1/templates.proto - -### SessionFailCode -The specific reason an IDVSession is in the `Failed` state -| Name | Number | Description | -| ---- | ------ | ----------- | -| SESSION_FAIL_NONE | 0 | The Session is not in a failure state. | -| SESSION_FAIL_INTERNAL | 1 | An internal Trinsic error caused this session to fail | -| SESSION_FAIL_VERIFICATION_FAILED | 2 | The session failed because one or more of the verifications failed. The reason for the failure is present in the `fail_reason` field of the relevant `Verification` object(s). | -| SESSION_FAIL_AUTHENTICATION | 3 | The session failed because the user failed to authenticate with their phone number too many times. | -| SESSION_FAIL_EXPIRED | 4 | The session expired | -| SESSION_FAIL_USER_CANCELED | 5 | The user canceled / rejected the session | -| SESSION_FAIL_RP_CANCELED | 6 | The RP canceled the session | + +### Service - CredentialTemplates - +| Method Name | Request Type | Response Type | Description | +| ----------- | ------------ | ------------- | ------------| +| Create | [CreateCredentialTemplateRequest](/reference/proto#services-verifiablecredentials-templates-v1-CreateCredentialTemplateRequest) | [CreateCredentialTemplateResponse](/reference/proto#services-verifiablecredentials-templates-v1-CreateCredentialTemplateResponse) | Create a credential template in the current ecosystem | +| Get | [GetCredentialTemplateRequest](/reference/proto#services-verifiablecredentials-templates-v1-GetCredentialTemplateRequest) | [GetCredentialTemplateResponse](/reference/proto#services-verifiablecredentials-templates-v1-GetCredentialTemplateResponse) | Fetch a credential template by ID | +| Update | [UpdateCredentialTemplateRequest](/reference/proto#services-verifiablecredentials-templates-v1-UpdateCredentialTemplateRequest) | [UpdateCredentialTemplateResponse](/reference/proto#services-verifiablecredentials-templates-v1-UpdateCredentialTemplateResponse) | Update metadata of a template | +| List | [ListCredentialTemplatesRequest](/reference/proto#services-verifiablecredentials-templates-v1-ListCredentialTemplatesRequest) | [ListCredentialTemplatesResponse](/reference/proto#services-verifiablecredentials-templates-v1-ListCredentialTemplatesResponse) | Search credential templates using SQL, returning strongly-typed template data | +| Search | [SearchCredentialTemplatesRequest](/reference/proto#services-verifiablecredentials-templates-v1-SearchCredentialTemplatesRequest) | [SearchCredentialTemplatesResponse](/reference/proto#services-verifiablecredentials-templates-v1-SearchCredentialTemplatesResponse) | Search credential templates using SQL, returning raw JSON data | +| Delete | [DeleteCredentialTemplateRequest](/reference/proto#services-verifiablecredentials-templates-v1-DeleteCredentialTemplateRequest) | [DeleteCredentialTemplateResponse](/reference/proto#services-verifiablecredentials-templates-v1-DeleteCredentialTemplateResponse) | Delete a credential template from the current ecosystem by ID | +| CreateVerificationTemplate | [CreateVerificationTemplateRequest](/reference/proto#services-verifiablecredentials-templates-v1-CreateVerificationTemplateRequest) | [CreateVerificationTemplateResponse](/reference/proto#services-verifiablecredentials-templates-v1-CreateVerificationTemplateResponse) | Create/update verification templates | +| ListVerificationTemplates | [ListVerificationTemplatesRequest](/reference/proto#services-verifiablecredentials-templates-v1-ListVerificationTemplatesRequest) | [ListVerificationTemplatesResponse](/reference/proto#services-verifiablecredentials-templates-v1-ListVerificationTemplatesResponse) | | +| GetVerificationTemplate | [GetVerificationTemplateRequest](/reference/proto#services-verifiablecredentials-templates-v1-GetVerificationTemplateRequest) | [GetVerificationTemplateResponse](/reference/proto#services-verifiablecredentials-templates-v1-GetVerificationTemplateResponse) | | +| UpdateVerificationTemplate | [UpdateVerificationTemplateRequest](/reference/proto#services-verifiablecredentials-templates-v1-UpdateVerificationTemplateRequest) | [UpdateVerificationTemplateResponse](/reference/proto#services-verifiablecredentials-templates-v1-UpdateVerificationTemplateResponse) | | +| DeleteVerificationTemplate | [DeleteVerificationTemplateRequest](/reference/proto#services-verifiablecredentials-templates-v1-DeleteVerificationTemplateRequest) | [DeleteVerificationTemplateResponse](/reference/proto#services-verifiablecredentials-templates-v1-DeleteVerificationTemplateResponse) | | -### SessionOrdering -Controls how sessions are ordered in `ListSessions` + -| Name | Number | Description | -| ---- | ------ | ----------- | -| CREATED | 0 | Order sessions according to when they were created | -| UPDATED | 1 | Order sessions according to when they last changed state | -| STATE | 2 | Order sessions according to their numerical state | + +### AppleWalletOptions +Configuration options for Apple Wallet when - -### VerificationFailCode -The specific reason a Verification is in the `Failed` state +| Field | Type | Description | +| ----- | ---- | ----------- | +| background_color | [string](/reference/proto#string) | Background color, in hex format, of credential when stored in an Apple Wallet. | +| foreground_color | [string](/reference/proto#string) | Foreground color, in hex format, of credential when stored in an Apple Wallet. | +| label_color | [string](/reference/proto#string) | Label color, in hex format, of credential when stored in an Apple Wallet. | +| primary_field | [string](/reference/proto#string) | The ID of the template field which should be used as the primary field of a credential. | +| secondary_fields | [string](/reference/proto#string)[] | The secondary fields of the credential. This is a mapping between the order of a secondary field (0 or 1) and the field name. | +| auxiliary_fields | [string](/reference/proto#string)[] | The auxiliary fields of the credential. This is a mapping between the order of an auxiliary field (0 or 1) and the field name. | -| Name | Number | Description | -| ---- | ------ | ----------- | -| VERIFICATION_FAIL_NONE | 0 | The verification is not in a failure state | -| VERIFICATION_FAIL_INTERNAL | 1 | An internal Trinsic error caused this verification to fail | -| VERIFICATION_FAIL_INVALID_IMAGE | 2 | The image(s) provided for this verification were either too low-quality, not of the correct type, or otherwise unable to be processed. This failure reason is non-terminal; the user is able to retry the verification. | -| VERIFICATION_FAIL_INAUTHENTIC | 3 | The identity data/images provided are suspected to be inauthentic, fraudulent, or forged. | -| VERIFICATION_FAIL_UNSUPPORTED_DOCUMENT | 4 | The document provided is either of an unsupported type, or from an unsupported country. | - -### VerificationState -The states an individual Verification can be in -| Name | Number | Description | -| ---- | ------ | ----------- | -| VERIFICATION_PENDING | 0 | This verification has not yet been performed in the flow | -| VERIFICATION_PENDING_REUSE | 1 | This verification has been started by the user, and can be reused from a previous verification, but the user has not yet decided whether to reuse it. | -| VERIFICATION_STARTED | 2 | This verification has been started by the user, but not yet completed | -| VERIFICATION_SUCCESS | 3 | This verification has been successfully completed | -| VERIFICATION_FAILED | 4 | This verification has failed | + +### CreateCredentialTemplateRequest +Request to create a new template - +| Field | Type | Description | +| ----- | ---- | ----------- | +| name | [string](/reference/proto#string) | Name of new template. Must be a unique identifier within its ecosystem. | +| fields | [CreateCredentialTemplateRequest.FieldsEntry](/reference/proto#services-verifiablecredentials-templates-v1-CreateCredentialTemplateRequest-FieldsEntry)[] | Fields which compose the template | +| allow_additional_fields | [bool](/reference/proto#bool) | Whether credentials may be issued against this template which have fields not specified in `fields` | +| title | [string](/reference/proto#string) | Human-readable name of template | +| description | [string](/reference/proto#string) | Human-readable description of template | +| field_ordering | [CreateCredentialTemplateRequest.FieldOrderingEntry](/reference/proto#services-verifiablecredentials-templates-v1-CreateCredentialTemplateRequest-FieldOrderingEntry)[] | Optional map describing how to order and categorize the fields within the template. The key of this map is the field `name`. If not provided, this will be auto-generated. | +| apple_wallet_options | [AppleWalletOptions](/reference/proto#services-verifiablecredentials-templates-v1-AppleWalletOptions) | Options for rendering the template in Apple Wallet | -### VerificationType -The type of verification to perform -| Name | Number | Description | -| ---- | ------ | ----------- | -| GOVERNMENT_ID | 0 | Government-issued ID (driver's license, passport, etc) | - - + + + +### CreateCredentialTemplateRequest.FieldOrderingEntry + + + +| Field | Type | Description | +| ----- | ---- | ----------- | +| key | [string](/reference/proto#string) | | +| value | [FieldOrdering](/reference/proto#services-verifiablecredentials-templates-v1-FieldOrdering) | | + + + - -

Top

+ -## services/file-management/v1/file-management.proto +### CreateCredentialTemplateRequest.FieldsEntry - +| Field | Type | Description | +| ----- | ---- | ----------- | +| key | [string](/reference/proto#string) | | +| value | [TemplateField](/reference/proto#services-verifiablecredentials-templates-v1-TemplateField) | | -### Service - FileManagement -| Method Name | Request Type | Response Type | Description | -| ----------- | ------------ | ------------- | ------------| -| UploadFile | [UploadFileRequest](/reference/proto#services-filemanagement-v1-UploadFileRequest) | [UploadFileResponse](/reference/proto#services-filemanagement-v1-UploadFileResponse) | Upload a file to Trinsic's CDN | -| GetFile | [GetFileRequest](/reference/proto#services-filemanagement-v1-GetFileRequest) | [GetFileResponse](/reference/proto#services-filemanagement-v1-GetFileResponse) | Fetch information about a file by its ID | -| DeleteFile | [DeleteFileRequest](/reference/proto#services-filemanagement-v1-DeleteFileRequest) | [DeleteFileResponse](/reference/proto#services-filemanagement-v1-DeleteFileResponse) | Delete a file by its ID | -| ListFiles | [ListFilesRequest](/reference/proto#services-filemanagement-v1-ListFilesRequest) | [ListFilesResponse](/reference/proto#services-filemanagement-v1-ListFilesResponse) | List files the calling account has uploaded | -| GetStorageStats | [GetStorageStatsRequest](/reference/proto#services-filemanagement-v1-GetStorageStatsRequest) | [GetStorageStatsResponse](/reference/proto#services-filemanagement-v1-GetStorageStatsResponse) | Get statistics about files uploaded by the calling account | - - + -### DeleteFileRequest -Request to delete a file from Trinsic's CDN by ID +### CreateCredentialTemplateResponse +Response to `CreateCredentialTemplateRequest` | Field | Type | Description | | ----- | ---- | ----------- | -| id | [string](/reference/proto#string) | ID of file to delete | +| data | [TemplateData](/reference/proto#services-verifiablecredentials-templates-v1-TemplateData) | Created template | - + -### DeleteFileResponse -Response to `DeleteFileRequest`. Empty payload. +### CreateVerificationTemplateRequest + + + +| Field | Type | Description | +| ----- | ---- | ----------- | +| name | [string](/reference/proto#string) | Name of new template. Must be a unique identifier within its ecosystem. | +| fields | [CreateVerificationTemplateRequest.FieldsEntry](/reference/proto#services-verifiablecredentials-templates-v1-CreateVerificationTemplateRequest-FieldsEntry)[] | Fields which will be required in the verification proof template +TODO - Add support for predicate types - currently only equality. | +| credential_template_id | [string](/reference/proto#string) | Source credential template, used for verifying that the specified `fields` are present in the credential template | +| title | [string](/reference/proto#string) | Human-readable name of template | +| description | [string](/reference/proto#string) | Human-readable description of template | - -### File -Contains information about a file stored in Trinsic's CDN + + +### CreateVerificationTemplateRequest.FieldsEntry + | Field | Type | Description | | ----- | ---- | ----------- | -| id | [string](/reference/proto#string) | ID of file, generated randomly by Trinsic on upload | -| uploader_id | [string](/reference/proto#string) | Wallet ID of uploader | -| size | [uint32](/reference/proto#uint32) | Size, in bytes, of file | -| mime_type | [string](/reference/proto#string) | Uploader-provided MIME type of file | -| uploaded | [string](/reference/proto#string) | ISO 8601 timestamp of when file was uploaded to Trinsic | -| url | [string](/reference/proto#string) | CDN URL of file | +| key | [string](/reference/proto#string) | | +| value | [VerificationTemplateField](/reference/proto#services-verifiablecredentials-templates-v1-VerificationTemplateField) | | - + + +### CreateVerificationTemplateResponse -### GetFileRequest -Request to fetch information about a stored file | Field | Type | Description | | ----- | ---- | ----------- | -| id | [string](/reference/proto#string) | ID of file to fetch | +| data | [VerificationTemplateData](/reference/proto#services-verifiablecredentials-templates-v1-VerificationTemplateData) | | - + -### GetFileResponse -Response to `GetFileRequest` +### DeleteCredentialTemplateRequest +Request to delete a template by ID | Field | Type | Description | | ----- | ---- | ----------- | -| file | [File](/reference/proto#services-filemanagement-v1-File) | File specified by `id` parameter of `GetFileRequest`. | +| id | [string](/reference/proto#string) | ID of template to delete | - + -### GetStorageStatsRequest -Request to get statistics about files uploaded by this account +### DeleteCredentialTemplateResponse +Response to `DeleteCredentialTemplateRequest` - + + +### DeleteVerificationTemplateRequest -### GetStorageStatsResponse -Response to `GetStorageStatsRequest` | Field | Type | Description | | ----- | ---- | ----------- | -| stats | [StorageStats](/reference/proto#services-filemanagement-v1-StorageStats) | Statistics about files uploaded by the calling account | +| verification_template_id | [string](/reference/proto#string) | | - + + +### DeleteVerificationTemplateResponse +This space intentionally left blank -### ListFilesRequest -Request to list files + + + + + + + +### FieldOrdering +Ordering information for a template field | Field | Type | Description | | ----- | ---- | ----------- | -| query | [string](/reference/proto#string) | Query to search with. If not specified, will return the most recent 100 files. | -| continuation_token | [string](/reference/proto#string) | Token provided by previous `ListFilesRequest` if more data is available for query | +| order | [int32](/reference/proto#int32) | The order of the field; must be unique within the Template. Fields are sorted by order ascending when displaying a credential. Field orders must be contiguous from `0` to the number of fields minus 1. | +| section | [string](/reference/proto#string) | The human-readable name of the section this field appears in; used to group together fields when displaying a credential. Sections must be contiguous with respect to `order`. | - + -### ListFilesResponse -Response to `ListFilesRequest` +### GetCredentialTemplateRequest +Request to fetch a template by ID | Field | Type | Description | | ----- | ---- | ----------- | -| files | [File](/reference/proto#services-filemanagement-v1-File)[] | Files found by query | -| has_more_results | [bool](/reference/proto#bool) | Whether more results are available for this query via `continuation_token` | -| continuation_token | [string](/reference/proto#string) | Token to fetch next set of results via `ListFilesRequest` | +| id | [string](/reference/proto#string) | ID of template to fetch | - + -### StorageStats -Represents aggregate statistics of all files uploaded by a single issuer +### GetCredentialTemplateResponse +Response to `GetCredentialTemplateRequest` | Field | Type | Description | | ----- | ---- | ----------- | -| num_files | [uint32](/reference/proto#uint32) | Number of files uploaded by this account | -| total_size | [uint64](/reference/proto#uint64) | Sum total size of all files, in bytes | +| template | [TemplateData](/reference/proto#services-verifiablecredentials-templates-v1-TemplateData) | Template fetched by ID | - + -### UploadFileRequest -Request to upload a file to Trinsic's CDN +### GetVerificationTemplateRequest +Request to fetch a template by ID | Field | Type | Description | | ----- | ---- | ----------- | -| contents | [bytes](/reference/proto#bytes) | Raw content of file | -| mime_type | [string](/reference/proto#string) | MIME type describing file contents | +| id | [string](/reference/proto#string) | ID of template to fetch | - + -### UploadFileResponse -Response to `UploadFileRequest` +### GetVerificationTemplateResponse +Response to `GetCredentialTemplateRequest` | Field | Type | Description | | ----- | ---- | ----------- | -| uploaded_file | [File](/reference/proto#services-filemanagement-v1-File) | Information about newly-uploaded file | +| template | [VerificationTemplateData](/reference/proto#services-verifiablecredentials-templates-v1-VerificationTemplateData) | Template fetched by ID | - - + - +### ListCredentialTemplatesRequest +Request to list templates using a SQL query +| Field | Type | Description | +| ----- | ---- | ----------- | +| query | [string](/reference/proto#string) | SQL query to execute. Example: `SELECT * FROM c WHERE c.name = 'Diploma'` | +| continuation_token | [string](/reference/proto#string) | Token provided by previous `ListCredentialTemplatesResponse` if more data is available for query | - -

Top

-## services/universal-wallet/v1/universal-wallet.proto - -### Service - UniversalWallet -Service for managing wallets + -| Method Name | Request Type | Response Type | Description | -| ----------- | ------------ | ------------- | ------------| -| GetItem | [GetItemRequest](/reference/proto#services-universalwallet-v1-GetItemRequest) | [GetItemResponse](/reference/proto#services-universalwallet-v1-GetItemResponse) | Retrieve an item from the wallet with a given item identifier | -| Search | [SearchRequest](/reference/proto#services-universalwallet-v1-SearchRequest) | [SearchResponse](/reference/proto#services-universalwallet-v1-SearchResponse) | Search the wallet using a SQL syntax | -| InsertItem | [InsertItemRequest](/reference/proto#services-universalwallet-v1-InsertItemRequest) | [InsertItemResponse](/reference/proto#services-universalwallet-v1-InsertItemResponse) | Insert an item into the wallet | -| UpdateItem | [UpdateItemRequest](/reference/proto#services-universalwallet-v1-UpdateItemRequest) | [UpdateItemResponse](/reference/proto#services-universalwallet-v1-UpdateItemResponse) | Update an item in the wallet | -| DeleteItem | [DeleteItemRequest](/reference/proto#services-universalwallet-v1-DeleteItemRequest) | [DeleteItemResponse](/reference/proto#services-universalwallet-v1-DeleteItemResponse) | Delete an item from the wallet permanently | -| DeleteWallet | [DeleteWalletRequest](/reference/proto#services-universalwallet-v1-DeleteWalletRequest) | [DeleteWalletResponse](/reference/proto#services-universalwallet-v1-DeleteWalletResponse) | Delete a wallet and its credentials | -| CreateWallet | [CreateWalletRequest](/reference/proto#services-universalwallet-v1-CreateWalletRequest) | [CreateWalletResponse](/reference/proto#services-universalwallet-v1-CreateWalletResponse) | Create a new wallet and generate an auth token for access | -| GetWalletInfo | [GetWalletInfoRequest](/reference/proto#services-universalwallet-v1-GetWalletInfoRequest) | [GetWalletInfoResponse](/reference/proto#services-universalwallet-v1-GetWalletInfoResponse) | Retrieve wallet details and configuration | -| GetMyInfo | [GetMyInfoRequest](/reference/proto#services-universalwallet-v1-GetMyInfoRequest) | [GetMyInfoResponse](/reference/proto#services-universalwallet-v1-GetMyInfoResponse) | Retrieve wallet details and configuration about the currently authenticated wallet | -| GetWalletFromExternalIdentity | [GetWalletFromExternalIdentityRequest](/reference/proto#services-universalwallet-v1-GetWalletFromExternalIdentityRequest) | [GetWalletFromExternalIdentityResponse](/reference/proto#services-universalwallet-v1-GetWalletFromExternalIdentityResponse) | Retrieve information from an ecosystem wallet by searching for its external identity (email or phone) | -| GenerateAuthToken | [GenerateAuthTokenRequest](/reference/proto#services-universalwallet-v1-GenerateAuthTokenRequest) | [GenerateAuthTokenResponse](/reference/proto#services-universalwallet-v1-GenerateAuthTokenResponse) | Generate new token for a given wallet and add it to the collection of known auth tokens. This endpoint requires authentication and will return a new token ID and auth token. Use this endpoint if you want to authorize another device, without having to share your existing auth token. | -| RevokeAuthToken | [RevokeAuthTokenRequest](/reference/proto#services-universalwallet-v1-RevokeAuthTokenRequest) | [RevokeAuthTokenResponse](/reference/proto#services-universalwallet-v1-RevokeAuthTokenResponse) | Revokes a previously issued auth token and updates the collection of known auth tokens. This endpoint requires authentication. | -| AddExternalIdentityInit | [AddExternalIdentityInitRequest](/reference/proto#services-universalwallet-v1-AddExternalIdentityInitRequest) | [AddExternalIdentityInitResponse](/reference/proto#services-universalwallet-v1-AddExternalIdentityInitResponse) | Add new external identity to the current wallet, such as email, sms, ethereum address, etc. This identity ownership must be confirmed using `AddIdentityConfirm` via OTP, signature, etc. | -| AddExternalIdentityConfirm | [AddExternalIdentityConfirmRequest](/reference/proto#services-universalwallet-v1-AddExternalIdentityConfirmRequest) | [AddExternalIdentityConfirmResponse](/reference/proto#services-universalwallet-v1-AddExternalIdentityConfirmResponse) | Confirm identity added to the current wallet using `AddExternalIdentityInit` | -| RemoveExternalIdentity | [RemoveExternalIdentityRequest](/reference/proto#services-universalwallet-v1-RemoveExternalIdentityRequest) | [RemoveExternalIdentityResponse](/reference/proto#services-universalwallet-v1-RemoveExternalIdentityResponse) | Remove an external identity from the current wallet | -| AuthenticateInit | [AuthenticateInitRequest](/reference/proto#services-universalwallet-v1-AuthenticateInitRequest) | [AuthenticateInitResponse](/reference/proto#services-universalwallet-v1-AuthenticateInitResponse) | Sign-in to an already existing wallet, using an identity added that was previously registered This endpoint does not require authentication, and will return a challenge to be signed or verified | -| AuthenticateConfirm | [AuthenticateConfirmRequest](/reference/proto#services-universalwallet-v1-AuthenticateConfirmRequest) | [AuthenticateConfirmResponse](/reference/proto#services-universalwallet-v1-AuthenticateConfirmResponse) | Confirm sign-in to an already existing wallet and return authentication token | -| AuthenticateResendCode | [AuthenticateResendCodeRequest](/reference/proto#services-universalwallet-v1-AuthenticateResendCodeRequest) | [AuthenticateResendCodeResponse](/reference/proto#services-universalwallet-v1-AuthenticateResendCodeResponse) | Resend previous authentication code | -| ListWallets | [ListWalletsRequest](/reference/proto#services-universalwallet-v1-ListWalletsRequest) | [ListWalletsResponse](/reference/proto#services-universalwallet-v1-ListWalletsResponse) | List all wallets in the ecosystem | -| ListByVerificationTemplate | [ListByVerificationTemplateRequest](/reference/proto#services-universalwallet-v1-ListByVerificationTemplateRequest) | [ListByVerificationTemplateResponse](/reference/proto#services-universalwallet-v1-ListByVerificationTemplateResponse) | List credentials which match a given verification template | +### ListCredentialTemplatesResponse +Response to `ListCredentialTemplatesRequest` + + +| Field | Type | Description | +| ----- | ---- | ----------- | +| templates | [TemplateData](/reference/proto#services-verifiablecredentials-templates-v1-TemplateData)[] | Templates found by query | +| has_more_results | [bool](/reference/proto#bool) | Whether more results are available for this query via `continuation_token` | +| continuation_token | [string](/reference/proto#string) | Token to fetch next set of results via `ListCredentialTemplatesRequest` | - - -### AddExternalIdentityConfirmRequest + + +### ListVerificationTemplatesRequest +Request to list templates using a SQL query + | Field | Type | Description | | ----- | ---- | ----------- | -| challenge | [string](/reference/proto#string) | The challenge received from the `AddExternalIdentityInit` endpoint | -| response | [string](/reference/proto#string) | The response to the challenge. If using Email or Phone, this is the OTP code sent to the user's email or phone | +| query | [string](/reference/proto#string) | SQL query to execute. Example: `SELECT * FROM c WHERE c.name = 'Diploma'` | +| continuation_token | [string](/reference/proto#string) | Token provided by previous `ListCredentialTemplatesResponse` if more data is available for query | - + -### AddExternalIdentityConfirmResponse +### ListVerificationTemplatesResponse +| Field | Type | Description | +| ----- | ---- | ----------- | +| templates | [VerificationTemplateData](/reference/proto#services-verifiablecredentials-templates-v1-VerificationTemplateData)[] | Templates found by query | +| has_more_results | [bool](/reference/proto#bool) | Whether more results are available for this query via `continuation_token` | +| continuation_token | [string](/reference/proto#string) | Token to fetch next set of results via `ListVerificationTemplatesRequest` | - -### AddExternalIdentityInitRequest + + +### SearchCredentialTemplatesRequest +Request to search templates using a SQL query | Field | Type | Description | | ----- | ---- | ----------- | -| identity | [string](/reference/proto#string) | The user identity to add to the wallet This can be an email address or phone number (formatted as +[country code][phone number]) | -| provider | [services.provider.v1.IdentityProvider](/reference/proto#services-provider-v1-IdentityProvider) | The type of identity provider, like EMAIL or PHONE | - +| query | [string](/reference/proto#string) | SQL query to execute. Example: `SELECT * FROM c WHERE c.name = 'Diploma'` | +| continuation_token | [string](/reference/proto#string) | Token provided by previous `SearchCredentialTemplatesResponse` if more data is available for query | - -### AddExternalIdentityInitResponse + +### SearchCredentialTemplatesResponse +Response to `SearchCredentialTemplatesRequest` | Field | Type | Description | | ----- | ---- | ----------- | -| challenge | [string](/reference/proto#string) | Challenge or reference to the challenge to be used in the `AddExternalIdentityConfirm` endpoint | - +| items_json | [string](/reference/proto#string) | Raw JSON data returned from query | +| has_more_results | [bool](/reference/proto#bool) | Whether more results are available for this query via `continuation_token` | +| continuation_token | [string](/reference/proto#string) | Token to fetch next set of results via `SearchCredentialTemplatesRequest` | - -### AuthenticateConfirmRequest + +### TemplateData +Credential Template | Field | Type | Description | | ----- | ---- | ----------- | -| challenge | [string](/reference/proto#string) | The challenge received from the `AcquireAuthTokenInit` endpoint | -| response | [string](/reference/proto#string) | The response to the challenge. If using Email or Phone, this is the OTP code sent to the user's email or phone | +| id | [string](/reference/proto#string) | Template ID | +| name | [string](/reference/proto#string) | Template name | +| version | [int32](/reference/proto#int32) | Template version number | +| fields | [TemplateData.FieldsEntry](/reference/proto#services-verifiablecredentials-templates-v1-TemplateData-FieldsEntry)[] | Fields defined for the template | +| allow_additional_fields | [bool](/reference/proto#bool) | Whether credentials issued against this template may contain fields not defined by template | +| schema_uri | [string](/reference/proto#string) | URI pointing to template JSON schema document | +| ecosystem_id | [string](/reference/proto#string) | ID of ecosystem in which template resides | +| type | [string](/reference/proto#string) | Template type (`VerifiableCredential`) | +| created_by | [string](/reference/proto#string) | ID of template creator | +| date_created | [string](/reference/proto#string) | Date when template was created as ISO 8601 utc string | +| title | [string](/reference/proto#string) | Human-readable template title | +| description | [string](/reference/proto#string) | Human-readable template description | +| field_ordering | [TemplateData.FieldOrderingEntry](/reference/proto#services-verifiablecredentials-templates-v1-TemplateData-FieldOrderingEntry)[] | Map describing how to order and categorize the fields within the template. The key of this map is the field `name`. | +| apple_wallet_options | [AppleWalletOptions](/reference/proto#services-verifiablecredentials-templates-v1-AppleWalletOptions) | Options for rendering the template in Apple Wallet | - + -### AuthenticateConfirmResponse +### TemplateData.FieldOrderingEntry | Field | Type | Description | | ----- | ---- | ----------- | -| auth_token | [string](/reference/proto#string) | Auth token for the wallet | +| key | [string](/reference/proto#string) | | +| value | [FieldOrdering](/reference/proto#services-verifiablecredentials-templates-v1-FieldOrdering) | | - + -### AuthenticateInitRequest +### TemplateData.FieldsEntry | Field | Type | Description | | ----- | ---- | ----------- | -| identity | [string](/reference/proto#string) | Identity to add to the wallet | -| provider | [services.provider.v1.IdentityProvider](/reference/proto#services-provider-v1-IdentityProvider) | Identity provider | -| ecosystem_id | [string](/reference/proto#string) | Ecosystem ID to which the wallet belongs | - +| key | [string](/reference/proto#string) | | +| value | [TemplateField](/reference/proto#services-verifiablecredentials-templates-v1-TemplateField) | | - -### AuthenticateInitResponse + +### TemplateField +A field defined in a template | Field | Type | Description | | ----- | ---- | ----------- | -| challenge | [string](/reference/proto#string) | The challenge received from the `AcquireAuthTokenInit` endpoint Pass this challenge back to the `AcquireAuthTokenConfirm` endpoint | - +| title | [string](/reference/proto#string) | Human-readable name of the field | +| description | [string](/reference/proto#string) | Human-readable description of the field | +| optional | [bool](/reference/proto#bool) | Whether this field may be omitted when a credential is issued against the template | +| type | [FieldType](/reference/proto#services-verifiablecredentials-templates-v1-FieldType) | The type of the field | +| uri_data | [UriFieldData](/reference/proto#services-verifiablecredentials-templates-v1-UriFieldData) | How to deal with this URI field when rendering credential. Only use if `type` is `URI`. | - -### AuthenticateResendCodeRequest + +### TemplateFieldPatch +A patch to apply to an existing template field | Field | Type | Description | | ----- | ---- | ----------- | -| challenge | [string](/reference/proto#string) | Challenge for the code you want resent. | - - - - - - - - -### AuthenticateResendCodeResponse - - +| title | [string](/reference/proto#string) | Human-readable name of the field | +| description | [string](/reference/proto#string) | Human-readable description of the field | +| uri_data | [UriFieldData](/reference/proto#services-verifiablecredentials-templates-v1-UriFieldData) | How to deal with this URI field when rendering credential. Only use if `type` is `URI`. | - -### CreateWalletRequest + +### UpdateCredentialTemplateRequest +Request to update display information for a template | Field | Type | Description | | ----- | ---- | ----------- | -| ecosystem_id | [string](/reference/proto#string) | Ecosystem ID of the wallet to create | -| description | [string](/reference/proto#string) | Wallet name or description. Use this field to add vendor specific information about this wallet, such as email, phone, internal ID, or anything you'd like to associate with this wallet. This field is searchable. | -| identity | [CreateWalletRequest.ExternalIdentity](/reference/proto#services-universalwallet-v1-CreateWalletRequest-ExternalIdentity) | Optional identity to add to the wallet (email or sms). Use this field when inviting participants into an ecosystem. If this field is set, an auth token will not be sent in the response. | +| id | [string](/reference/proto#string) | ID of Template to update | +| title | [string](/reference/proto#string) | New human-readable title of Template | +| description | [string](/reference/proto#string) | New human-readable description of Template | +| fields | [UpdateCredentialTemplateRequest.FieldsEntry](/reference/proto#services-verifiablecredentials-templates-v1-UpdateCredentialTemplateRequest-FieldsEntry)[] | Fields to update within the Template | +| field_ordering | [UpdateCredentialTemplateRequest.FieldOrderingEntry](/reference/proto#services-verifiablecredentials-templates-v1-UpdateCredentialTemplateRequest-FieldOrderingEntry)[] | New field ordering options. See documentation for template creation for usage information. | +| apple_wallet_options | [AppleWalletOptions](/reference/proto#services-verifiablecredentials-templates-v1-AppleWalletOptions) | New Apple Wallet configuration | - + -### CreateWalletRequest.ExternalIdentity +### UpdateCredentialTemplateRequest.FieldOrderingEntry | Field | Type | Description | | ----- | ---- | ----------- | -| identity | [string](/reference/proto#string) | The user identity to add to the wallet This can be an email address or phone number (formatted as +[country code][phone number]) | -| provider | [services.provider.v1.IdentityProvider](/reference/proto#services-provider-v1-IdentityProvider) | The type of identity provider, like EMAIL or PHONE | +| key | [string](/reference/proto#string) | | +| value | [FieldOrdering](/reference/proto#services-verifiablecredentials-templates-v1-FieldOrdering) | | - + -### CreateWalletResponse +### UpdateCredentialTemplateRequest.FieldsEntry | Field | Type | Description | | ----- | ---- | ----------- | -| auth_token | [string](/reference/proto#string) | Auth token for the newly created wallet | -| token_id | [string](/reference/proto#string) | Token ID of the newly generated token | -| wallet | [services.provider.v1.WalletConfiguration](/reference/proto#services-provider-v1-WalletConfiguration) | Wallet configuration | +| key | [string](/reference/proto#string) | | +| value | [TemplateFieldPatch](/reference/proto#services-verifiablecredentials-templates-v1-TemplateFieldPatch) | | - + -### DeleteItemRequest -Request to delete an item in a wallet +### UpdateCredentialTemplateResponse +Response to `UpdateCredentialTemplateRequest` | Field | Type | Description | | ----- | ---- | ----------- | -| item_id | [string](/reference/proto#string) | ID of item to delete | - - - - - - - +| updated_template | [TemplateData](/reference/proto#services-verifiablecredentials-templates-v1-TemplateData) | The Template after the update has been applied | -### DeleteItemResponse -Response to `DeleteItemRequest` + - +### UpdateVerificationTemplateRequest -### DeleteWalletRequest -Request to delete a wallet | Field | Type | Description | | ----- | ---- | ----------- | -| email | [string](/reference/proto#string) | Email address of account to delete. Mutually exclusive with `walletId` and `didUri`. | -| wallet_id | [string](/reference/proto#string) | Wallet ID of account to delete. Mutually exclusive with `email` and `didUri`. | -| did_uri | [string](/reference/proto#string) | DID URI of the account to delete. Mutually exclusive with `email` and `walletId`. | - - - - - - - - -### DeleteWalletResponse -Response to `DeleteWalletRequest`. Empty payload. +| id | [string](/reference/proto#string) | ID of Template to update | +| title | [string](/reference/proto#string) | New human-readable title of Template | +| description | [string](/reference/proto#string) | New human-readable description of Template | +| fields | [UpdateVerificationTemplateRequest.FieldsEntry](/reference/proto#services-verifiablecredentials-templates-v1-UpdateVerificationTemplateRequest-FieldsEntry)[] | Fields to update within the Template | - + -### GenerateAuthTokenRequest +### UpdateVerificationTemplateRequest.FieldsEntry | Field | Type | Description | | ----- | ---- | ----------- | -| wallet_id | [string](/reference/proto#string) | | -| token_description | [string](/reference/proto#string) | | +| key | [string](/reference/proto#string) | | +| value | [VerificationTemplateFieldPatch](/reference/proto#services-verifiablecredentials-templates-v1-VerificationTemplateFieldPatch) | | - + -### GenerateAuthTokenResponse +### UpdateVerificationTemplateResponse | Field | Type | Description | | ----- | ---- | ----------- | -| token_id | [string](/reference/proto#string) | | -| auth_token | [string](/reference/proto#string) | | +| template | [VerificationTemplateData](/reference/proto#services-verifiablecredentials-templates-v1-VerificationTemplateData) | | - + -### GetItemRequest -Request to fetch an item from wallet +### UriFieldData +Data pertaining to a URI Field | Field | Type | Description | | ----- | ---- | ----------- | -| item_id | [string](/reference/proto#string) | ID of item in wallet | +| mime_type | [string](/reference/proto#string) | Expected MIME Type of content pointed to by URI. Can be generic (eg, "image/") or specific ("image/png"). Defaults to "application/octet-stream". | +| render_method | [UriRenderMethod](/reference/proto#services-verifiablecredentials-templates-v1-UriRenderMethod) | How to display the URI value when rendering a credential. | - + -### GetItemResponse -Response to `GetItemRequest` +### VerificationTemplateData +Verification Template | Field | Type | Description | | ----- | ---- | ----------- | -| item_json | [string](/reference/proto#string) | Item data as a JSON string | -| item_type | [string](/reference/proto#string) | Type of item specified when item was inserted into wallet | +| id | [string](/reference/proto#string) | Template ID | +| name | [string](/reference/proto#string) | Template name | +| version | [int32](/reference/proto#int32) | Template version number | +| fields | [VerificationTemplateData.FieldsEntry](/reference/proto#services-verifiablecredentials-templates-v1-VerificationTemplateData-FieldsEntry)[] | Fields defined for the template | +| credential_template_id | [string](/reference/proto#string) | Source credential template, used for verifying that the specified `fields` are present in the credential template | +| ecosystem_id | [string](/reference/proto#string) | ID of ecosystem in which template resides | +| type | [string](/reference/proto#string) | Template type (`VerificationTemplate`) | +| created_by | [string](/reference/proto#string) | ID of template creator | +| date_created | [string](/reference/proto#string) | Date when template was created as ISO 8601 utc string | +| title | [string](/reference/proto#string) | Human-readable template title | +| description | [string](/reference/proto#string) | Human-readable template description | - + + +### VerificationTemplateData.FieldsEntry -### GetMyInfoRequest -Request to retrieve wallet information about the currently authenticated wallet +| Field | Type | Description | +| ----- | ---- | ----------- | +| key | [string](/reference/proto#string) | | +| value | [VerificationTemplateField](/reference/proto#services-verifiablecredentials-templates-v1-VerificationTemplateField) | | - -### GetMyInfoResponse -Response to `GetMyInfoRequest` + + + +### VerificationTemplateField +A field defined in a template | Field | Type | Description | | ----- | ---- | ----------- | -| wallet | [services.provider.v1.WalletConfiguration](/reference/proto#services-provider-v1-WalletConfiguration) | Wallet configuration | +| field_share_type | [VerificationShareType](/reference/proto#services-verifiablecredentials-templates-v1-VerificationShareType) | Whether this field may be omitted on proof creation | +| usage_policy | [string](/reference/proto#string) | User-facing explanation of what is done with this data +TODO - Future work supporting proof conditionals/ranges/etc | - -### GetWalletFromExternalIdentityRequest + +### VerificationTemplateFieldPatch +A patch to apply to an existing template field | Field | Type | Description | | ----- | ---- | ----------- | -| identity | [services.provider.v1.WalletExternalIdentity](/reference/proto#services-provider-v1-WalletExternalIdentity) | | +| field_share_type | [VerificationShareType](/reference/proto#services-verifiablecredentials-templates-v1-VerificationShareType) | Human-readable name of the field | +| usage_policy | [string](/reference/proto#string) | User-facing explanation of what is done with this data | + - -### GetWalletFromExternalIdentityResponse -Response to `GetWalletFromExternalIdentityRequest` + +### FieldType +Valid types for credential fields -| Field | Type | Description | -| ----- | ---- | ----------- | -| wallet | [services.provider.v1.WalletConfiguration](/reference/proto#services-provider-v1-WalletConfiguration) | Wallet configuration | +| Name | Number | Description | +| ---- | ------ | ----------- | +| STRING | 0 | | +| NUMBER | 1 | | +| BOOL | 2 | | +| DATETIME | 4 | | +| URI | 5 | | + +### UriRenderMethod +How to display a URI value when rendering a credential. +| Name | Number | Description | +| ---- | ------ | ----------- | +| TEXT | 0 | Display URI as text | +| LINK | 1 | Display URI as a clickable link | +| INLINE_IMAGE | 2 | Display URI as an inline image. Only takes effect if the template field's MIME Type is an image type. | - -### GetWalletInfoRequest -Request to retrieve wallet information about a given wallet identified by its wallet ID + -| Field | Type | Description | -| ----- | ---- | ----------- | -| wallet_id | [string](/reference/proto#string) | Wallet ID of the wallet to retrieve | +### VerificationShareType +| Name | Number | Description | +| ---- | ------ | ----------- | +| OPTIONAL | 0 | | +| REQUIRED | 1 | | + + - -### GetWalletInfoResponse -Response to `GetWalletInfoRequest` + +

Top

-| Field | Type | Description | -| ----- | ---- | ----------- | -| wallet | [services.provider.v1.WalletConfiguration](/reference/proto#services-provider-v1-WalletConfiguration) | Wallet configuration | +## services/verifiable-credentials/v1/verifiable-credentials.proto + + +### Service - VerifiableCredential + + +| Method Name | Request Type | Response Type | Description | +| ----------- | ------------ | ------------- | ------------| +| IssueFromTemplate | [IssueFromTemplateRequest](/reference/proto#services-verifiablecredentials-v1-IssueFromTemplateRequest) | [IssueFromTemplateResponse](/reference/proto#services-verifiablecredentials-v1-IssueFromTemplateResponse) | Sign and issue a verifiable credential from a pre-defined template. This process will also add schema validation and revocation registry values to the credential. | +| CheckStatus | [CheckStatusRequest](/reference/proto#services-verifiablecredentials-v1-CheckStatusRequest) | [CheckStatusResponse](/reference/proto#services-verifiablecredentials-v1-CheckStatusResponse) | Check credential status in the revocation registry | +| UpdateStatus | [UpdateStatusRequest](/reference/proto#services-verifiablecredentials-v1-UpdateStatusRequest) | [UpdateStatusResponse](/reference/proto#services-verifiablecredentials-v1-UpdateStatusResponse) | Update credential status by setting the revocation value | +| CreateProof | [CreateProofRequest](/reference/proto#services-verifiablecredentials-v1-CreateProofRequest) | [CreateProofResponse](/reference/proto#services-verifiablecredentials-v1-CreateProofResponse) | Create a proof from a signed document that is a valid verifiable credential and contains a signature from which a proof can be derived. | +| VerifyProof | [VerifyProofRequest](/reference/proto#services-verifiablecredentials-v1-VerifyProofRequest) | [VerifyProofResponse](/reference/proto#services-verifiablecredentials-v1-VerifyProofResponse) | Verifies a proof by checking the signature value, and if possible schema validation, revocation status, and issuer status against a trust registry | +| Send | [SendRequest](/reference/proto#services-verifiablecredentials-v1-SendRequest) | [SendResponse](/reference/proto#services-verifiablecredentials-v1-SendResponse) | Sends a document directly to a user's email within the given ecosystem | +| CreateCredentialOffer | [CreateCredentialOfferRequest](/reference/proto#services-verifiablecredentials-v1-CreateCredentialOfferRequest) | [CreateCredentialOfferResponse](/reference/proto#services-verifiablecredentials-v1-CreateCredentialOfferResponse) | Create credential offer | +| AcceptCredential | [AcceptCredentialRequest](/reference/proto#services-verifiablecredentials-v1-AcceptCredentialRequest) | [AcceptCredentialResponse](/reference/proto#services-verifiablecredentials-v1-AcceptCredentialResponse) | Accept an offer to exchange a credential | +| RejectCredential | [RejectCredentialRequest](/reference/proto#services-verifiablecredentials-v1-RejectCredentialRequest) | [RejectCredentialResponse](/reference/proto#services-verifiablecredentials-v1-RejectCredentialResponse) | Reject an offer to exchange a credential | + + + - +### AcceptCredentialRequest -### InsertItemRequest -Request to insert a JSON document into a wallet | Field | Type | Description | | ----- | ---- | ----------- | -| item_json | [string](/reference/proto#string) | Document to insert; must be stringified JSON | -| item_type | [string](/reference/proto#string) | Item type (ex. "VerifiableCredential") | +| document_json | [string](/reference/proto#string) | The JSON document that contains the credential offer | +| item_id | [string](/reference/proto#string) | The ID of the credential offer (Parameter ID inside the JSON document) | - + + +### AcceptCredentialResponse -### InsertItemResponse -Response to `InsertItemRequest` | Field | Type | Description | | ----- | ---- | ----------- | -| item_id | [string](/reference/proto#string) | ID of item inserted into wallet | +| item_id | [string](/reference/proto#string) | The ID of the item in the wallet that contains the issued credential | +| document_json | [string](/reference/proto#string) | The JSON document that contains the issued credential. This item is already stored in the wallet. | - + -### ListByVerificationTemplateRequest -Request to list templates by +### CheckStatusRequest +Request to check a credential's revocation status | Field | Type | Description | | ----- | ---- | ----------- | -| verification_template_id | [string](/reference/proto#string) | ID of verification template to list matching credentials | -| continuation_token | [string](/reference/proto#string) | Token provided by previous `ListCredentialTemplatesResponse` if more data is available for query | +| credential_status_id | [string](/reference/proto#string) | Credential Status ID to check. This is not the same as the credential's ID. | - + -### ListByVerificationTemplateResponse -Response to `ListByVerificationTemplateRequest` +### CheckStatusResponse +Response to `CheckStatusRequest` | Field | Type | Description | | ----- | ---- | ----------- | -| items | [string](/reference/proto#string)[] | Array of query results, as JSON strings | -| has_more_results | [bool](/reference/proto#bool) | Whether more results are available for this query via `continuation_token` | -| continuation_token | [string](/reference/proto#string) | Token to fetch next set of results via `ListByVerificationTemplateRequest` | +| revoked | [bool](/reference/proto#bool) | The credential's revocation status | - + -### ListWalletsRequest +### CreateCredentialOfferRequest | Field | Type | Description | | ----- | ---- | ----------- | -| filter | [string](/reference/proto#string) | | +| template_id | [string](/reference/proto#string) | ID of template to use | +| values_json | [string](/reference/proto#string) | JSON document string with keys corresponding to the fields of the template referenced by `template_id` | +| holder_binding | [bool](/reference/proto#bool) | If true, the credential will be issued with holder binding by specifying the holder DID in the credential subject | +| include_governance | [bool](/reference/proto#bool) | If true, the issued credential will contain an attestation of the issuer's membership in the ecosystem's Trust Registry. | +| generate_share_url | [bool](/reference/proto#bool) | If true, a short URL link will be generated that can be used to share the credential offer with the holder. This link will point to the credential offer in the wallet app. | +| signature_type | [SignatureType](/reference/proto#services-verifiablecredentials-v1-SignatureType) | The type of signature to use when signing the credential. Defaults to `EXPERIMENTAL`. | - + -### ListWalletsResponse +### CreateCredentialOfferResponse | Field | Type | Description | | ----- | ---- | ----------- | -| wallets | [services.provider.v1.WalletConfiguration](/reference/proto#services-provider-v1-WalletConfiguration)[] | | - +| document_json | [string](/reference/proto#string) | The JSON document that contains the credential offer | +| share_url | [string](/reference/proto#string) | If requested, a URL that can be used to share the credential offer with the holder. This is a short URL that can be used in a QR code and will redirect the holder to the credential offer using the wallet app. | - -### RemoveExternalIdentityRequest + +### CreateProofRequest +Request to create a proof for a Verifiable Credential using public key tied to caller. +Either `item_id`, or `document_json` may be provided, not both. | Field | Type | Description | | ----- | ---- | ----------- | -| identity | [string](/reference/proto#string) | The user identity to remove from the wallet This can be an email address or phone number (formatted as +[country code][phone number]) | +| reveal_document_json | [string](/reference/proto#string) | A valid JSON-LD frame describing which fields should be revealed in the generated proof. If unspecified, all fields in the document will be revealed | +| reveal_template | [RevealTemplateAttributes](/reference/proto#services-verifiablecredentials-v1-RevealTemplateAttributes) | Information about what sections of the document to reveal | +| verification_template_id | [string](/reference/proto#string) | Id of verification template with which to construct the JSON-LD proof document | +| item_id | [string](/reference/proto#string) | ID of wallet item stored in a Trinsic cloud wallet | +| document_json | [string](/reference/proto#string) | A valid JSON-LD Verifiable Credential document string with an unbound signature. The proof will be derived from this document directly. The document will not be stored in the wallet. | +| use_verifiable_presentation | [bool](/reference/proto#bool) | Wrap the output in a verifiable presentation. If the credential used in the proof is bound to the holder DID, the output will always use a verifiable presentation and this field will be ignored. | +| nonce | [bytes](/reference/proto#bytes) | Nonce value used to derive the proof. If not specified, a random nonce will be generated. This value may be represented in base64 format in the proof model. | - + + +### CreateProofResponse +Response to `CreateProofRequest` -### RemoveExternalIdentityResponse +| Field | Type | Description | +| ----- | ---- | ----------- | +| proof_document_json | [string](/reference/proto#string) | Valid JSON-LD proof for the specified credential | - + -### RevokeAuthTokenRequest -Request to revoke a previously issued auth token +### IssueFromTemplateRequest +Request to create and sign a JSON-LD Verifiable Credential from a template using public key tied to caller | Field | Type | Description | | ----- | ---- | ----------- | -| wallet_id | [string](/reference/proto#string) | Wallet ID of the wallet to from which to revoke the token | -| token_id | [string](/reference/proto#string) | Token ID of the token to revoke | +| template_id | [string](/reference/proto#string) | ID of template to use | +| values_json | [string](/reference/proto#string) | JSON document string with keys corresponding to the fields of the template referenced by `template_id` | +| save_copy | [bool](/reference/proto#bool) | Save a copy of the issued credential to this user's wallet. This copy will only contain the credential data, but not the secret proof value. Issuers may use this data to keep track of the details for revocation status. | +| expiration_date | [string](/reference/proto#string) | The ISO8601 expiration UTC date of the credential. This is a reserved field in the VC specification. If specified, the issued credential will contain an expiration date. https://www.w3.org/TR/vc-data-model/#expiration | +| include_governance | [bool](/reference/proto#bool) | If true, the issued credential will contain an attestation of the issuer's membership in the ecosystem's Trust Registry. | +| signature_type | [SignatureType](/reference/proto#services-verifiablecredentials-v1-SignatureType) | The type of signature to use when signing the credential. Defaults to `EXPERIMENTAL`. | - + -### RevokeAuthTokenResponse +### IssueFromTemplateResponse +Response to `IssueFromTemplateRequest` +| Field | Type | Description | +| ----- | ---- | ----------- | +| document_json | [string](/reference/proto#string) | Verifiable Credential document, in JSON-LD form, constructed from the specified template and values; signed with public key tied to caller of `IssueFromTemplateRequest` | - -### SearchRequest -Request to search items in wallet + + +### RejectCredentialRequest + | Field | Type | Description | | ----- | ---- | ----------- | -| query | [string](/reference/proto#string) | SQL Query to execute against items in wallet | -| continuation_token | [string](/reference/proto#string) | Token provided by previous `SearchResponse` if more data is available for query | +| document_json | [string](/reference/proto#string) | The JSON document that contains the credential offer | +| item_id | [string](/reference/proto#string) | The ID of the credential offer (Parameter ID inside the JSON document) | - + -### SearchResponse -Response to `SearchRequest` +### RejectCredentialResponse -| Field | Type | Description | -| ----- | ---- | ----------- | -| items | [string](/reference/proto#string)[] | Array of query results, as JSON strings | -| has_more_results | [bool](/reference/proto#bool) | Whether more results are available for this query via `continuation_token` | -| continuation_token | [string](/reference/proto#string) | Token to fetch next set of results via `SearchRequest` | + - +### RevealTemplateAttributes -### UpdateItemRequest -Request to update item in wallet | Field | Type | Description | | ----- | ---- | ----------- | -| item_id | [string](/reference/proto#string) | ID of item in wallet | -| item_type | [string](/reference/proto#string) | Item type (ex. "VerifiableCredential") | +| template_attributes | [string](/reference/proto#string)[] | A list of document attributes to reveal. If unset, all attributes will be returned. | - + -### UpdateItemResponse -Response to `UpdateItemRequest` +### SendRequest +Request to send a document to another user's wallet +| Field | Type | Description | +| ----- | ---- | ----------- | +| email | [string](/reference/proto#string) | Email address of user to whom you'll send the item | +| wallet_id | [string](/reference/proto#string) | Wallet ID of the recipient within the ecosystem | +| did_uri | [string](/reference/proto#string) | DID URI of the recipient | +| phone_number | [string](/reference/proto#string) | SMS of user to whom you'll send the item | +| send_notification | [bool](/reference/proto#bool) | Send email notification that credential has been sent to a wallet | +| document_json | [string](/reference/proto#string) | JSON document to send to recipient | - - - + +### SendResponse +Response to `SendRequest` - -

Top

-## services/common/v1/common.proto - - + -### Nonce -Nonce used to generate an oberon proof +### UpdateStatusRequest +Request to update a credential's revocation status | Field | Type | Description | | ----- | ---- | ----------- | -| timestamp | [int64](/reference/proto#int64) | UTC unix millisecond timestamp the request was made | -| request_hash | [bytes](/reference/proto#bytes) | blake3256 hash of the request body | +| credential_status_id | [string](/reference/proto#string) | Credential Status ID to update. This is not the same as the credential's ID. | +| revoked | [bool](/reference/proto#bool) | New revocation status of credential | - + -### TrinsicClientOptions +### UpdateStatusResponse +Response to `UpdateStatusRequest` -| Field | Type | Description | -| ----- | ---- | ----------- | -| server_endpoint | [string](/reference/proto#string) | Trinsic API endpoint. Defaults to `prod.trinsic.cloud` | -| server_port | [int32](/reference/proto#int32) | Trinsic API port; defaults to `443` | -| server_use_tls | [bool](/reference/proto#bool) | Whether TLS is enabled between SDK and Trinsic API; defaults to `true` | -| auth_token | [string](/reference/proto#string) | Authentication token for SDK calls; defaults to empty string (unauthenticated) | + +### ValidationMessage +Result of a validation check on a proof - +| Field | Type | Description | +| ----- | ---- | ----------- | +| is_valid | [bool](/reference/proto#bool) | Whether this validation check passed | +| messages | [string](/reference/proto#string)[] | If validation failed, contains messages explaining why | - -### OrderDirection -The direction to order results -| Name | Number | Description | -| ---- | ------ | ----------- | -| ASCENDING | 0 | | -| DESCENDING | 1 | | - + -### ResponseStatus +### VerifyProofRequest +Request to verify a proof -| Name | Number | Description | -| ---- | ------ | ----------- | -| SUCCESS | 0 | | -| WALLET_ACCESS_DENIED | 10 | | -| WALLET_EXISTS | 11 | | -| ITEM_NOT_FOUND | 20 | | -| SERIALIZATION_ERROR | 200 | | -| UNKNOWN_ERROR | 100 | | +| Field | Type | Description | +| ----- | ---- | ----------- | +| proof_document_json | [string](/reference/proto#string) | JSON-LD proof document string to verify | - -### SupportedDidMethod -Enum of all supported DID Methods -https://docs.godiddy.com/en/supported-methods -| Name | Number | Description | -| ---- | ------ | ----------- | -| KEY | 0 | The did:key method -- all wallets use this by default | -| ION | 1 | The did:ion method -- Sidetree implementation on top of Bitcoin by Microsoft | -| INDY | 2 | The did:sov method -- Hyperledger Indy based by Sovrin Foundation | + - +### VerifyProofResponse +Response to `VerifyProofRequest` - +| Field | Type | Description | +| ----- | ---- | ----------- | +| is_valid | [bool](/reference/proto#bool) | Whether all validations in `validation_results` passed | +| validation_results | [VerifyProofResponse.ValidationResultsEntry](/reference/proto#services-verifiablecredentials-v1-VerifyProofResponse-ValidationResultsEntry)[] | Results of each validation check performed, such as schema conformance, revocation status, signature, etc. Detailed results are provided for failed validations. | - -

Top

-## sdk/options/v1/options.proto - + - +### VerifyProofResponse.ValidationResultsEntry -### TrinsicOptions -Configuration for Trinsic SDK Services | Field | Type | Description | | ----- | ---- | ----------- | -| server_endpoint | [string](/reference/proto#string) | Trinsic API endpoint. Defaults to `prod.trinsic.cloud` | -| server_port | [int32](/reference/proto#int32) | Trinsic API port; defaults to `443` | -| server_use_tls | [bool](/reference/proto#bool) | Whether TLS is enabled between SDK and Trinsic API; defaults to `true` | -| auth_token | [string](/reference/proto#string) | Authentication token for SDK calls; defaults to empty string (unauthenticated) - -Default ecosystem ID to use for various SDK calls; defaults to `default` string default_ecosystem = 5; | +| key | [string](/reference/proto#string) | | +| value | [ValidationMessage](/reference/proto#services-verifiablecredentials-v1-ValidationMessage) | | @@ -3276,6 +3302,19 @@ Default ecosystem ID to use for various SDK calls; defaults to `default` string + + + +### SignatureType + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| UNSPECIFIED | 0 | The signature type is not specified. The experimental signature type will be used. | +| STANDARD | 1 | The signature type uses EdDSA with the Ed25519 curve (NIST compliant). This type of signature does not support selective disclosure of attributes. | +| EXPERIMENTAL | 2 | The signature type uses BBS signatures with BLS12-381 curve (experimental). This type of signature allows for selective disclosure of attributes. | + + diff --git a/go/proto/services/connect/v1/connect/connect.pb.go b/go/proto/services/connect/v1/connect/connect.pb.go index 3834cfe08..7acf649ad 100644 --- a/go/proto/services/connect/v1/connect/connect.pb.go +++ b/go/proto/services/connect/v1/connect/connect.pb.go @@ -515,8 +515,12 @@ type Verification struct { // The unix timestamp, in seconds, when this verification was begun // by the user -- or `0` if not yet begun. Begun uint64 `protobuf:"fixed64,6,opt,name=begun,proto3" json:"begun,omitempty"` - // The unix timestamp, in seconds, when this verification last changed state -- o + // The unix timestamp, in seconds, when this verification last changed state -- or `0` if it has not yet + // begun. Updated uint64 `protobuf:"fixed64,7,opt,name=updated,proto3" json:"updated,omitempty"` + // The Government ID options for this Verification. + // Only set if this Verification is of type `GOVERNMENT_ID`. + GovernmentIdOptions *GovernmentIDOptions `protobuf:"bytes,8,opt,name=government_id_options,json=governmentIdOptions,proto3,oneof" json:"government_id_options,omitempty"` } func (x *Verification) Reset() { @@ -600,6 +604,13 @@ func (x *Verification) GetUpdated() uint64 { return 0 } +func (x *Verification) GetGovernmentIdOptions() *GovernmentIDOptions { + if x != nil { + return x.GovernmentIdOptions + } + return nil +} + // Request to create an Identity Verification Session type CreateSessionRequest struct { state protoimpl.MessageState @@ -657,6 +668,10 @@ type RequestedVerification struct { // The type of verification to perform Type VerificationType `protobuf:"varint,1,opt,name=type,proto3,enum=services.connect.v1.VerificationType" json:"type,omitempty"` + // Types that are assignable to Options: + // + // *RequestedVerification_GovernmentIdOptions + Options isRequestedVerification_Options `protobuf_oneof:"options"` } func (x *RequestedVerification) Reset() { @@ -698,6 +713,193 @@ func (x *RequestedVerification) GetType() VerificationType { return VerificationType_GOVERNMENT_ID } +func (m *RequestedVerification) GetOptions() isRequestedVerification_Options { + if m != nil { + return m.Options + } + return nil +} + +func (x *RequestedVerification) GetGovernmentIdOptions() *GovernmentIDOptions { + if x, ok := x.GetOptions().(*RequestedVerification_GovernmentIdOptions); ok { + return x.GovernmentIdOptions + } + return nil +} + +type isRequestedVerification_Options interface { + isRequestedVerification_Options() +} + +type RequestedVerification_GovernmentIdOptions struct { + // Options for a Verification of type `GOVERNMENT_ID` + GovernmentIdOptions *GovernmentIDOptions `protobuf:"bytes,2,opt,name=government_id_options,json=governmentIdOptions,proto3,oneof"` +} + +func (*RequestedVerification_GovernmentIdOptions) isRequestedVerification_Options() {} + +// Options for a Verification of type `GOVERNMENT_ID` +type GovernmentIDOptions struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The fields to retrieve from the Government ID. + // If this object is not set, all fields will be retrieved. + Fields *GovernmentIDFields `protobuf:"bytes,1,opt,name=fields,proto3" json:"fields,omitempty"` +} + +func (x *GovernmentIDOptions) Reset() { + *x = GovernmentIDOptions{} + if protoimpl.UnsafeEnabled { + mi := &file_services_connect_v1_connect_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GovernmentIDOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GovernmentIDOptions) ProtoMessage() {} + +func (x *GovernmentIDOptions) ProtoReflect() protoreflect.Message { + mi := &file_services_connect_v1_connect_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GovernmentIDOptions.ProtoReflect.Descriptor instead. +func (*GovernmentIDOptions) Descriptor() ([]byte, []int) { + return file_services_connect_v1_connect_proto_rawDescGZIP(), []int{4} +} + +func (x *GovernmentIDOptions) GetFields() *GovernmentIDFields { + if x != nil { + return x.Fields + } + return nil +} + +// Selection of fields to retrieve from a Government ID. All fields default to `false` unless explicitly set to `true`. +type GovernmentIDFields struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // ID number of the underlying identity document + IdNumber bool `protobuf:"varint,1,opt,name=id_number,json=idNumber,proto3" json:"id_number,omitempty"` + // Given ("first") name of the document holder + GivenName bool `protobuf:"varint,2,opt,name=given_name,json=givenName,proto3" json:"given_name,omitempty"` + // Family ("last") name of the document holder + FamilyName bool `protobuf:"varint,3,opt,name=family_name,json=familyName,proto3" json:"family_name,omitempty"` + // Full address of the document holder + Address bool `protobuf:"varint,4,opt,name=address,proto3" json:"address,omitempty"` + // Date of birth of the document holder + DateOfBirth bool `protobuf:"varint,5,opt,name=date_of_birth,json=dateOfBirth,proto3" json:"date_of_birth,omitempty"` + // ISO3 country code of the document + Country bool `protobuf:"varint,6,opt,name=country,proto3" json:"country,omitempty"` + // Issuance date of the document + IssueDate bool `protobuf:"varint,7,opt,name=issue_date,json=issueDate,proto3" json:"issue_date,omitempty"` + // Expiration date date of the document + ExpirationDate bool `protobuf:"varint,8,opt,name=expiration_date,json=expirationDate,proto3" json:"expiration_date,omitempty"` +} + +func (x *GovernmentIDFields) Reset() { + *x = GovernmentIDFields{} + if protoimpl.UnsafeEnabled { + mi := &file_services_connect_v1_connect_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GovernmentIDFields) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GovernmentIDFields) ProtoMessage() {} + +func (x *GovernmentIDFields) ProtoReflect() protoreflect.Message { + mi := &file_services_connect_v1_connect_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GovernmentIDFields.ProtoReflect.Descriptor instead. +func (*GovernmentIDFields) Descriptor() ([]byte, []int) { + return file_services_connect_v1_connect_proto_rawDescGZIP(), []int{5} +} + +func (x *GovernmentIDFields) GetIdNumber() bool { + if x != nil { + return x.IdNumber + } + return false +} + +func (x *GovernmentIDFields) GetGivenName() bool { + if x != nil { + return x.GivenName + } + return false +} + +func (x *GovernmentIDFields) GetFamilyName() bool { + if x != nil { + return x.FamilyName + } + return false +} + +func (x *GovernmentIDFields) GetAddress() bool { + if x != nil { + return x.Address + } + return false +} + +func (x *GovernmentIDFields) GetDateOfBirth() bool { + if x != nil { + return x.DateOfBirth + } + return false +} + +func (x *GovernmentIDFields) GetCountry() bool { + if x != nil { + return x.Country + } + return false +} + +func (x *GovernmentIDFields) GetIssueDate() bool { + if x != nil { + return x.IssueDate + } + return false +} + +func (x *GovernmentIDFields) GetExpirationDate() bool { + if x != nil { + return x.ExpirationDate + } + return false +} + // Response to `CreateIDVSessionRequest` type CreateSessionResponse struct { state protoimpl.MessageState @@ -711,7 +913,7 @@ type CreateSessionResponse struct { func (x *CreateSessionResponse) Reset() { *x = CreateSessionResponse{} if protoimpl.UnsafeEnabled { - mi := &file_services_connect_v1_connect_proto_msgTypes[4] + mi := &file_services_connect_v1_connect_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -724,7 +926,7 @@ func (x *CreateSessionResponse) String() string { func (*CreateSessionResponse) ProtoMessage() {} func (x *CreateSessionResponse) ProtoReflect() protoreflect.Message { - mi := &file_services_connect_v1_connect_proto_msgTypes[4] + mi := &file_services_connect_v1_connect_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -737,7 +939,7 @@ func (x *CreateSessionResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateSessionResponse.ProtoReflect.Descriptor instead. func (*CreateSessionResponse) Descriptor() ([]byte, []int) { - return file_services_connect_v1_connect_proto_rawDescGZIP(), []int{4} + return file_services_connect_v1_connect_proto_rawDescGZIP(), []int{6} } func (x *CreateSessionResponse) GetSession() *IDVSession { @@ -760,7 +962,7 @@ type CancelSessionRequest struct { func (x *CancelSessionRequest) Reset() { *x = CancelSessionRequest{} if protoimpl.UnsafeEnabled { - mi := &file_services_connect_v1_connect_proto_msgTypes[5] + mi := &file_services_connect_v1_connect_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -773,7 +975,7 @@ func (x *CancelSessionRequest) String() string { func (*CancelSessionRequest) ProtoMessage() {} func (x *CancelSessionRequest) ProtoReflect() protoreflect.Message { - mi := &file_services_connect_v1_connect_proto_msgTypes[5] + mi := &file_services_connect_v1_connect_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -786,7 +988,7 @@ func (x *CancelSessionRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use CancelSessionRequest.ProtoReflect.Descriptor instead. func (*CancelSessionRequest) Descriptor() ([]byte, []int) { - return file_services_connect_v1_connect_proto_rawDescGZIP(), []int{5} + return file_services_connect_v1_connect_proto_rawDescGZIP(), []int{7} } func (x *CancelSessionRequest) GetIdvSessionId() string { @@ -809,7 +1011,7 @@ type CancelSessionResponse struct { func (x *CancelSessionResponse) Reset() { *x = CancelSessionResponse{} if protoimpl.UnsafeEnabled { - mi := &file_services_connect_v1_connect_proto_msgTypes[6] + mi := &file_services_connect_v1_connect_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -822,7 +1024,7 @@ func (x *CancelSessionResponse) String() string { func (*CancelSessionResponse) ProtoMessage() {} func (x *CancelSessionResponse) ProtoReflect() protoreflect.Message { - mi := &file_services_connect_v1_connect_proto_msgTypes[6] + mi := &file_services_connect_v1_connect_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -835,7 +1037,7 @@ func (x *CancelSessionResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use CancelSessionResponse.ProtoReflect.Descriptor instead. func (*CancelSessionResponse) Descriptor() ([]byte, []int) { - return file_services_connect_v1_connect_proto_rawDescGZIP(), []int{6} + return file_services_connect_v1_connect_proto_rawDescGZIP(), []int{8} } func (x *CancelSessionResponse) GetSession() *IDVSession { @@ -858,7 +1060,7 @@ type GetSessionRequest struct { func (x *GetSessionRequest) Reset() { *x = GetSessionRequest{} if protoimpl.UnsafeEnabled { - mi := &file_services_connect_v1_connect_proto_msgTypes[7] + mi := &file_services_connect_v1_connect_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -871,7 +1073,7 @@ func (x *GetSessionRequest) String() string { func (*GetSessionRequest) ProtoMessage() {} func (x *GetSessionRequest) ProtoReflect() protoreflect.Message { - mi := &file_services_connect_v1_connect_proto_msgTypes[7] + mi := &file_services_connect_v1_connect_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -884,7 +1086,7 @@ func (x *GetSessionRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetSessionRequest.ProtoReflect.Descriptor instead. func (*GetSessionRequest) Descriptor() ([]byte, []int) { - return file_services_connect_v1_connect_proto_rawDescGZIP(), []int{7} + return file_services_connect_v1_connect_proto_rawDescGZIP(), []int{9} } func (x *GetSessionRequest) GetIdvSessionId() string { @@ -907,7 +1109,7 @@ type GetSessionResponse struct { func (x *GetSessionResponse) Reset() { *x = GetSessionResponse{} if protoimpl.UnsafeEnabled { - mi := &file_services_connect_v1_connect_proto_msgTypes[8] + mi := &file_services_connect_v1_connect_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -920,7 +1122,7 @@ func (x *GetSessionResponse) String() string { func (*GetSessionResponse) ProtoMessage() {} func (x *GetSessionResponse) ProtoReflect() protoreflect.Message { - mi := &file_services_connect_v1_connect_proto_msgTypes[8] + mi := &file_services_connect_v1_connect_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -933,7 +1135,7 @@ func (x *GetSessionResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetSessionResponse.ProtoReflect.Descriptor instead. func (*GetSessionResponse) Descriptor() ([]byte, []int) { - return file_services_connect_v1_connect_proto_rawDescGZIP(), []int{8} + return file_services_connect_v1_connect_proto_rawDescGZIP(), []int{10} } func (x *GetSessionResponse) GetSession() *IDVSession { @@ -966,7 +1168,7 @@ type ListSessionsRequest struct { func (x *ListSessionsRequest) Reset() { *x = ListSessionsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_services_connect_v1_connect_proto_msgTypes[9] + mi := &file_services_connect_v1_connect_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -979,7 +1181,7 @@ func (x *ListSessionsRequest) String() string { func (*ListSessionsRequest) ProtoMessage() {} func (x *ListSessionsRequest) ProtoReflect() protoreflect.Message { - mi := &file_services_connect_v1_connect_proto_msgTypes[9] + mi := &file_services_connect_v1_connect_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -992,7 +1194,7 @@ func (x *ListSessionsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListSessionsRequest.ProtoReflect.Descriptor instead. func (*ListSessionsRequest) Descriptor() ([]byte, []int) { - return file_services_connect_v1_connect_proto_rawDescGZIP(), []int{9} + return file_services_connect_v1_connect_proto_rawDescGZIP(), []int{11} } func (x *ListSessionsRequest) GetOrderBy() SessionOrdering { @@ -1041,7 +1243,7 @@ type ListSessionsResponse struct { func (x *ListSessionsResponse) Reset() { *x = ListSessionsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_services_connect_v1_connect_proto_msgTypes[10] + mi := &file_services_connect_v1_connect_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1054,7 +1256,7 @@ func (x *ListSessionsResponse) String() string { func (*ListSessionsResponse) ProtoMessage() {} func (x *ListSessionsResponse) ProtoReflect() protoreflect.Message { - mi := &file_services_connect_v1_connect_proto_msgTypes[10] + mi := &file_services_connect_v1_connect_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1067,7 +1269,7 @@ func (x *ListSessionsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListSessionsResponse.ProtoReflect.Descriptor instead. func (*ListSessionsResponse) Descriptor() ([]byte, []int) { - return file_services_connect_v1_connect_proto_rawDescGZIP(), []int{10} + return file_services_connect_v1_connect_proto_rawDescGZIP(), []int{12} } func (x *ListSessionsResponse) GetSessions() []*IDVSession { @@ -1131,7 +1333,7 @@ var file_services_connect_v1_connect_proto_rawDesc = []byte{ 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x5f, 0x76, 0x70, - 0x22, 0xba, 0x02, 0x0a, 0x0c, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x22, 0xb7, 0x03, 0x0a, 0x0c, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x39, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, @@ -1149,150 +1351,187 @@ var file_services_connect_v1_connect_proto_rawDesc = []byte{ 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x72, 0x65, 0x75, 0x73, 0x65, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x65, 0x67, 0x75, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x06, 0x52, 0x05, 0x62, 0x65, 0x67, 0x75, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, - 0x18, 0x07, 0x20, 0x01, 0x28, 0x06, 0x52, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x42, - 0x0c, 0x0a, 0x0a, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x22, 0x68, 0x0a, - 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x50, 0x0a, 0x0d, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x73, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, - 0x76, 0x31, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x56, 0x65, 0x72, 0x69, - 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0d, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x52, 0x0a, 0x15, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x65, 0x64, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x12, 0x39, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25, + 0x18, 0x07, 0x20, 0x01, 0x28, 0x06, 0x52, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x12, + 0x61, 0x0a, 0x15, 0x67, 0x6f, 0x76, 0x65, 0x72, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, + 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, - 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x52, 0x0a, 0x15, 0x43, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x07, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, - 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x44, 0x56, 0x53, - 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x22, - 0x3c, 0x0a, 0x14, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x24, 0x0a, 0x0e, 0x69, 0x64, 0x76, 0x5f, 0x73, - 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0c, 0x69, 0x64, 0x76, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x52, 0x0a, - 0x15, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x07, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x73, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x44, - 0x56, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x22, 0x39, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x24, 0x0a, 0x0e, 0x69, 0x64, 0x76, 0x5f, 0x73, 0x65, - 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, - 0x69, 0x64, 0x76, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x4f, 0x0a, 0x12, - 0x47, 0x65, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x39, 0x0a, 0x07, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x63, - 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x44, 0x56, 0x53, 0x65, 0x73, - 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xf5, 0x01, - 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3f, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62, - 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x73, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, - 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x6f, - 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x12, 0x4b, 0x0a, 0x0f, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, - 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x22, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, - 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x52, 0x0e, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x12, 0x20, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, - 0x7a, 0x65, 0x88, 0x01, 0x01, 0x12, 0x17, 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x05, 0x48, 0x01, 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, 0x88, 0x01, 0x01, 0x42, 0x0c, - 0x0a, 0x0a, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x42, 0x07, 0x0a, 0x05, - 0x5f, 0x70, 0x61, 0x67, 0x65, 0x22, 0x7d, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x73, - 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a, - 0x08, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x1f, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, - 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x44, 0x56, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, - 0x52, 0x08, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, - 0x74, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, - 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x6f, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, - 0x6d, 0x6f, 0x72, 0x65, 0x2a, 0x25, 0x0a, 0x10, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x11, 0x0a, 0x0d, 0x47, 0x4f, 0x56, 0x45, - 0x52, 0x4e, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x49, 0x44, 0x10, 0x00, 0x2a, 0x83, 0x01, 0x0a, 0x0f, - 0x49, 0x44, 0x56, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, - 0x0f, 0x0a, 0x0b, 0x49, 0x44, 0x56, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x44, 0x10, 0x00, - 0x12, 0x11, 0x0a, 0x0d, 0x49, 0x44, 0x56, 0x5f, 0x49, 0x4e, 0x49, 0x54, 0x49, 0x41, 0x54, 0x45, - 0x44, 0x10, 0x01, 0x12, 0x16, 0x0a, 0x12, 0x49, 0x44, 0x56, 0x5f, 0x41, 0x55, 0x54, 0x48, 0x45, - 0x4e, 0x54, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x13, 0x0a, 0x0f, 0x49, - 0x44, 0x56, 0x5f, 0x49, 0x4e, 0x5f, 0x50, 0x52, 0x4f, 0x47, 0x52, 0x45, 0x53, 0x53, 0x10, 0x03, - 0x12, 0x0f, 0x0a, 0x0b, 0x49, 0x44, 0x56, 0x5f, 0x53, 0x55, 0x43, 0x43, 0x45, 0x53, 0x53, 0x10, - 0x04, 0x12, 0x0e, 0x0a, 0x0a, 0x49, 0x44, 0x56, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, - 0x05, 0x2a, 0x9a, 0x01, 0x0a, 0x11, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, 0x14, 0x56, 0x45, 0x52, 0x49, 0x46, - 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, - 0x00, 0x12, 0x1e, 0x0a, 0x1a, 0x56, 0x45, 0x52, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, - 0x4e, 0x5f, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x5f, 0x52, 0x45, 0x55, 0x53, 0x45, 0x10, - 0x01, 0x12, 0x18, 0x0a, 0x14, 0x56, 0x45, 0x52, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, - 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x52, 0x54, 0x45, 0x44, 0x10, 0x02, 0x12, 0x18, 0x0a, 0x14, 0x56, - 0x45, 0x52, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x55, 0x43, 0x43, - 0x45, 0x53, 0x53, 0x10, 0x03, 0x12, 0x17, 0x0a, 0x13, 0x56, 0x45, 0x52, 0x49, 0x46, 0x49, 0x43, - 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x04, 0x2a, 0xe2, - 0x01, 0x0a, 0x0f, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x46, 0x61, 0x69, 0x6c, 0x43, 0x6f, - 0x64, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x45, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x41, - 0x49, 0x4c, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x53, 0x45, 0x53, - 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x5f, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x4e, - 0x41, 0x4c, 0x10, 0x01, 0x12, 0x24, 0x0a, 0x20, 0x53, 0x45, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, - 0x46, 0x41, 0x49, 0x4c, 0x5f, 0x56, 0x45, 0x52, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, - 0x4e, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x02, 0x12, 0x1f, 0x0a, 0x1b, 0x53, 0x45, - 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x5f, 0x41, 0x55, 0x54, 0x48, 0x45, - 0x4e, 0x54, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x03, 0x12, 0x18, 0x0a, 0x14, 0x53, - 0x45, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x5f, 0x45, 0x58, 0x50, 0x49, - 0x52, 0x45, 0x44, 0x10, 0x04, 0x12, 0x1e, 0x0a, 0x1a, 0x53, 0x45, 0x53, 0x53, 0x49, 0x4f, 0x4e, - 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x5f, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x43, 0x41, 0x4e, 0x43, 0x45, - 0x4c, 0x45, 0x44, 0x10, 0x05, 0x12, 0x1c, 0x0a, 0x18, 0x53, 0x45, 0x53, 0x53, 0x49, 0x4f, 0x4e, - 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x5f, 0x52, 0x50, 0x5f, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x45, - 0x44, 0x10, 0x06, 0x2a, 0xc6, 0x01, 0x0a, 0x14, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x61, 0x69, 0x6c, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1a, 0x0a, 0x16, - 0x56, 0x45, 0x52, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x41, 0x49, - 0x4c, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x1e, 0x0a, 0x1a, 0x56, 0x45, 0x52, 0x49, - 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x5f, 0x49, 0x4e, - 0x54, 0x45, 0x52, 0x4e, 0x41, 0x4c, 0x10, 0x01, 0x12, 0x23, 0x0a, 0x1f, 0x56, 0x45, 0x52, 0x49, - 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x5f, 0x49, 0x4e, - 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x49, 0x4d, 0x41, 0x47, 0x45, 0x10, 0x02, 0x12, 0x21, 0x0a, - 0x1d, 0x56, 0x45, 0x52, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x41, - 0x49, 0x4c, 0x5f, 0x49, 0x4e, 0x41, 0x55, 0x54, 0x48, 0x45, 0x4e, 0x54, 0x49, 0x43, 0x10, 0x03, - 0x12, 0x2a, 0x0a, 0x26, 0x56, 0x45, 0x52, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, - 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x5f, 0x55, 0x4e, 0x53, 0x55, 0x50, 0x50, 0x4f, 0x52, 0x54, 0x45, - 0x44, 0x5f, 0x44, 0x4f, 0x43, 0x55, 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x04, 0x2a, 0x36, 0x0a, 0x0f, - 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x12, - 0x0b, 0x0a, 0x07, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, - 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x44, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x53, 0x54, 0x41, - 0x54, 0x45, 0x10, 0x02, 0x32, 0x9d, 0x03, 0x0a, 0x07, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, - 0x12, 0x66, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x12, 0x29, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x63, 0x6f, 0x6e, - 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x65, - 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x73, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, - 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x66, 0x0a, 0x0d, 0x43, 0x61, 0x6e, 0x63, - 0x65, 0x6c, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x2e, 0x73, 0x65, 0x72, 0x76, + 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x6f, 0x76, 0x65, 0x72, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x49, + 0x44, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x48, 0x01, 0x52, 0x13, 0x67, 0x6f, 0x76, 0x65, + 0x72, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x88, + 0x01, 0x01, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x5f, 0x63, 0x6f, 0x64, 0x65, + 0x42, 0x18, 0x0a, 0x16, 0x5f, 0x67, 0x6f, 0x76, 0x65, 0x72, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x5f, + 0x69, 0x64, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x68, 0x0a, 0x14, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x50, 0x0a, 0x0d, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, - 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, - 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x61, 0x6e, 0x63, 0x65, - 0x6c, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x5d, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x26, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0d, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x22, 0xbd, 0x01, 0x0a, 0x15, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x65, 0x64, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x39, + 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25, 0x2e, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, + 0x76, 0x31, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, + 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x5e, 0x0a, 0x15, 0x67, 0x6f, 0x76, + 0x65, 0x72, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x73, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x47, + 0x6f, 0x76, 0x65, 0x72, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x44, 0x4f, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x48, 0x00, 0x52, 0x13, 0x67, 0x6f, 0x76, 0x65, 0x72, 0x6e, 0x6d, 0x65, 0x6e, 0x74, + 0x49, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x09, 0x0a, 0x07, 0x6f, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x56, 0x0a, 0x13, 0x47, 0x6f, 0x76, 0x65, 0x72, 0x6e, 0x6d, 0x65, + 0x6e, 0x74, 0x49, 0x44, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x3f, 0x0a, 0x06, 0x66, + 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x73, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x76, + 0x31, 0x2e, 0x47, 0x6f, 0x76, 0x65, 0x72, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x44, 0x46, 0x69, + 0x65, 0x6c, 0x64, 0x73, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x22, 0x91, 0x02, 0x0a, + 0x12, 0x47, 0x6f, 0x76, 0x65, 0x72, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x44, 0x46, 0x69, 0x65, + 0x6c, 0x64, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x64, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x69, 0x64, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, + 0x12, 0x1d, 0x0a, 0x0a, 0x67, 0x69, 0x76, 0x65, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x67, 0x69, 0x76, 0x65, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, + 0x1f, 0x0a, 0x0b, 0x66, 0x61, 0x6d, 0x69, 0x6c, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x66, 0x61, 0x6d, 0x69, 0x6c, 0x79, 0x4e, 0x61, 0x6d, 0x65, + 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x22, 0x0a, 0x0d, 0x64, 0x61, + 0x74, 0x65, 0x5f, 0x6f, 0x66, 0x5f, 0x62, 0x69, 0x72, 0x74, 0x68, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x0b, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x66, 0x42, 0x69, 0x72, 0x74, 0x68, 0x12, 0x18, + 0x0a, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x73, 0x73, 0x75, + 0x65, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x69, 0x73, + 0x73, 0x75, 0x65, 0x44, 0x61, 0x74, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x65, 0x78, 0x70, 0x69, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x0e, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x65, + 0x22, 0x52, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, + 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x07, 0x73, 0x65, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x73, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, + 0x2e, 0x49, 0x44, 0x56, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x73, 0x65, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x3c, 0x0a, 0x14, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x53, 0x65, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x24, 0x0a, 0x0e, + 0x69, 0x64, 0x76, 0x5f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x69, 0x64, 0x76, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, + 0x49, 0x64, 0x22, 0x52, 0x0a, 0x15, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x53, 0x65, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x07, 0x73, + 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, + 0x76, 0x31, 0x2e, 0x49, 0x44, 0x56, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x73, + 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x39, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x53, 0x65, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x24, 0x0a, 0x0e, 0x69, + 0x64, 0x76, 0x5f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0c, 0x69, 0x64, 0x76, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, + 0x64, 0x22, 0x4f, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x07, 0x73, 0x65, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x73, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x49, + 0x44, 0x56, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x73, 0x65, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x22, 0xf5, 0x01, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3f, 0x0a, 0x08, 0x6f, 0x72, + 0x64, 0x65, 0x72, 0x5f, 0x62, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, + 0x76, 0x31, 0x2e, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x69, + 0x6e, 0x67, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x12, 0x4b, 0x0a, 0x0f, 0x6f, + 0x72, 0x64, 0x65, 0x72, 0x5f, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, + 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x44, + 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0e, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x44, + 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x20, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, + 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x08, 0x70, + 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x88, 0x01, 0x01, 0x12, 0x17, 0x0a, 0x04, 0x70, 0x61, + 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x48, 0x01, 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, + 0x88, 0x01, 0x01, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, + 0x65, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x22, 0x7d, 0x0a, 0x14, 0x4c, 0x69, + 0x73, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x08, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, + 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x44, 0x56, 0x53, 0x65, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, + 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, + 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x6f, 0x72, 0x65, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x04, 0x6d, 0x6f, 0x72, 0x65, 0x2a, 0x25, 0x0a, 0x10, 0x56, 0x65, 0x72, + 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x11, 0x0a, + 0x0d, 0x47, 0x4f, 0x56, 0x45, 0x52, 0x4e, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x49, 0x44, 0x10, 0x00, + 0x2a, 0x83, 0x01, 0x0a, 0x0f, 0x49, 0x44, 0x56, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x53, + 0x74, 0x61, 0x74, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x49, 0x44, 0x56, 0x5f, 0x43, 0x52, 0x45, 0x41, + 0x54, 0x45, 0x44, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x49, 0x44, 0x56, 0x5f, 0x49, 0x4e, 0x49, + 0x54, 0x49, 0x41, 0x54, 0x45, 0x44, 0x10, 0x01, 0x12, 0x16, 0x0a, 0x12, 0x49, 0x44, 0x56, 0x5f, + 0x41, 0x55, 0x54, 0x48, 0x45, 0x4e, 0x54, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4e, 0x47, 0x10, 0x02, + 0x12, 0x13, 0x0a, 0x0f, 0x49, 0x44, 0x56, 0x5f, 0x49, 0x4e, 0x5f, 0x50, 0x52, 0x4f, 0x47, 0x52, + 0x45, 0x53, 0x53, 0x10, 0x03, 0x12, 0x0f, 0x0a, 0x0b, 0x49, 0x44, 0x56, 0x5f, 0x53, 0x55, 0x43, + 0x43, 0x45, 0x53, 0x53, 0x10, 0x04, 0x12, 0x0e, 0x0a, 0x0a, 0x49, 0x44, 0x56, 0x5f, 0x46, 0x41, + 0x49, 0x4c, 0x45, 0x44, 0x10, 0x05, 0x2a, 0x9a, 0x01, 0x0a, 0x11, 0x56, 0x65, 0x72, 0x69, 0x66, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, 0x14, + 0x56, 0x45, 0x52, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x50, 0x45, 0x4e, + 0x44, 0x49, 0x4e, 0x47, 0x10, 0x00, 0x12, 0x1e, 0x0a, 0x1a, 0x56, 0x45, 0x52, 0x49, 0x46, 0x49, + 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x5f, 0x52, + 0x45, 0x55, 0x53, 0x45, 0x10, 0x01, 0x12, 0x18, 0x0a, 0x14, 0x56, 0x45, 0x52, 0x49, 0x46, 0x49, + 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x52, 0x54, 0x45, 0x44, 0x10, 0x02, + 0x12, 0x18, 0x0a, 0x14, 0x56, 0x45, 0x52, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, + 0x5f, 0x53, 0x55, 0x43, 0x43, 0x45, 0x53, 0x53, 0x10, 0x03, 0x12, 0x17, 0x0a, 0x13, 0x56, 0x45, + 0x52, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, + 0x44, 0x10, 0x04, 0x2a, 0xe2, 0x01, 0x0a, 0x0f, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x46, + 0x61, 0x69, 0x6c, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x45, 0x53, 0x53, 0x49, + 0x4f, 0x4e, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x19, + 0x0a, 0x15, 0x53, 0x45, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x5f, 0x49, + 0x4e, 0x54, 0x45, 0x52, 0x4e, 0x41, 0x4c, 0x10, 0x01, 0x12, 0x24, 0x0a, 0x20, 0x53, 0x45, 0x53, + 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x5f, 0x56, 0x45, 0x52, 0x49, 0x46, 0x49, + 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x02, 0x12, + 0x1f, 0x0a, 0x1b, 0x53, 0x45, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x5f, + 0x41, 0x55, 0x54, 0x48, 0x45, 0x4e, 0x54, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x03, + 0x12, 0x18, 0x0a, 0x14, 0x53, 0x45, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x41, 0x49, 0x4c, + 0x5f, 0x45, 0x58, 0x50, 0x49, 0x52, 0x45, 0x44, 0x10, 0x04, 0x12, 0x1e, 0x0a, 0x1a, 0x53, 0x45, + 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x5f, 0x55, 0x53, 0x45, 0x52, 0x5f, + 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x45, 0x44, 0x10, 0x05, 0x12, 0x1c, 0x0a, 0x18, 0x53, 0x45, + 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x5f, 0x52, 0x50, 0x5f, 0x43, 0x41, + 0x4e, 0x43, 0x45, 0x4c, 0x45, 0x44, 0x10, 0x06, 0x2a, 0xc6, 0x01, 0x0a, 0x14, 0x56, 0x65, 0x72, + 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x61, 0x69, 0x6c, 0x43, 0x6f, 0x64, + 0x65, 0x12, 0x1a, 0x0a, 0x16, 0x56, 0x45, 0x52, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, + 0x4e, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x1e, 0x0a, + 0x1a, 0x56, 0x45, 0x52, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x41, + 0x49, 0x4c, 0x5f, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x4e, 0x41, 0x4c, 0x10, 0x01, 0x12, 0x23, 0x0a, + 0x1f, 0x56, 0x45, 0x52, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x41, + 0x49, 0x4c, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x49, 0x4d, 0x41, 0x47, 0x45, + 0x10, 0x02, 0x12, 0x21, 0x0a, 0x1d, 0x56, 0x45, 0x52, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, + 0x4f, 0x4e, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x5f, 0x49, 0x4e, 0x41, 0x55, 0x54, 0x48, 0x45, 0x4e, + 0x54, 0x49, 0x43, 0x10, 0x03, 0x12, 0x2a, 0x0a, 0x26, 0x56, 0x45, 0x52, 0x49, 0x46, 0x49, 0x43, + 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x5f, 0x55, 0x4e, 0x53, 0x55, 0x50, + 0x50, 0x4f, 0x52, 0x54, 0x45, 0x44, 0x5f, 0x44, 0x4f, 0x43, 0x55, 0x4d, 0x45, 0x4e, 0x54, 0x10, + 0x04, 0x2a, 0x36, 0x0a, 0x0f, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x4f, 0x72, 0x64, 0x65, + 0x72, 0x69, 0x6e, 0x67, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x44, 0x10, + 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x44, 0x10, 0x01, 0x12, 0x09, + 0x0a, 0x05, 0x53, 0x54, 0x41, 0x54, 0x45, 0x10, 0x02, 0x32, 0x9d, 0x03, 0x0a, 0x07, 0x43, 0x6f, + 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x12, 0x66, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, + 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x73, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x2a, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x63, 0x6f, 0x6e, + 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x65, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x66, 0x0a, + 0x0d, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, - 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x73, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, - 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x63, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, - 0x28, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, - 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x73, 0x65, 0x72, 0x76, + 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x53, 0x65, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, - 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x5a, 0x0a, 0x1b, 0x74, 0x72, 0x69, 0x6e, 0x73, 0x69, 0x63, 0x2e, - 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, - 0x2e, 0x76, 0x31, 0x50, 0x01, 0x5a, 0x1b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2f, - 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, - 0x63, 0x74, 0xaa, 0x02, 0x1b, 0x54, 0x72, 0x69, 0x6e, 0x73, 0x69, 0x63, 0x2e, 0x53, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x56, 0x31, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5d, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x53, 0x65, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x12, 0x26, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x63, + 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x65, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x73, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x76, + 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x63, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x28, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, + 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, + 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, + 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, + 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x5a, 0x0a, 0x1b, 0x74, 0x72, 0x69, + 0x6e, 0x73, 0x69, 0x63, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x63, 0x6f, + 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x50, 0x01, 0x5a, 0x1b, 0x73, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x73, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2f, 0x76, 0x31, 0x2f, + 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0xaa, 0x02, 0x1b, 0x54, 0x72, 0x69, 0x6e, 0x73, 0x69, + 0x63, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, + 0x63, 0x74, 0x2e, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1308,7 +1547,7 @@ func file_services_connect_v1_connect_proto_rawDescGZIP() []byte { } var file_services_connect_v1_connect_proto_enumTypes = make([]protoimpl.EnumInfo, 6) -var file_services_connect_v1_connect_proto_msgTypes = make([]protoimpl.MessageInfo, 12) +var file_services_connect_v1_connect_proto_msgTypes = make([]protoimpl.MessageInfo, 14) var file_services_connect_v1_connect_proto_goTypes = []interface{}{ (VerificationType)(0), // 0: services.connect.v1.VerificationType (IDVSessionState)(0), // 1: services.connect.v1.IDVSessionState @@ -1320,45 +1559,50 @@ var file_services_connect_v1_connect_proto_goTypes = []interface{}{ (*Verification)(nil), // 7: services.connect.v1.Verification (*CreateSessionRequest)(nil), // 8: services.connect.v1.CreateSessionRequest (*RequestedVerification)(nil), // 9: services.connect.v1.RequestedVerification - (*CreateSessionResponse)(nil), // 10: services.connect.v1.CreateSessionResponse - (*CancelSessionRequest)(nil), // 11: services.connect.v1.CancelSessionRequest - (*CancelSessionResponse)(nil), // 12: services.connect.v1.CancelSessionResponse - (*GetSessionRequest)(nil), // 13: services.connect.v1.GetSessionRequest - (*GetSessionResponse)(nil), // 14: services.connect.v1.GetSessionResponse - (*ListSessionsRequest)(nil), // 15: services.connect.v1.ListSessionsRequest - (*ListSessionsResponse)(nil), // 16: services.connect.v1.ListSessionsResponse - nil, // 17: services.connect.v1.IDVSession.VerificationsEntry - (common.OrderDirection)(0), // 18: services.common.v1.OrderDirection + (*GovernmentIDOptions)(nil), // 10: services.connect.v1.GovernmentIDOptions + (*GovernmentIDFields)(nil), // 11: services.connect.v1.GovernmentIDFields + (*CreateSessionResponse)(nil), // 12: services.connect.v1.CreateSessionResponse + (*CancelSessionRequest)(nil), // 13: services.connect.v1.CancelSessionRequest + (*CancelSessionResponse)(nil), // 14: services.connect.v1.CancelSessionResponse + (*GetSessionRequest)(nil), // 15: services.connect.v1.GetSessionRequest + (*GetSessionResponse)(nil), // 16: services.connect.v1.GetSessionResponse + (*ListSessionsRequest)(nil), // 17: services.connect.v1.ListSessionsRequest + (*ListSessionsResponse)(nil), // 18: services.connect.v1.ListSessionsResponse + nil, // 19: services.connect.v1.IDVSession.VerificationsEntry + (common.OrderDirection)(0), // 20: services.common.v1.OrderDirection } var file_services_connect_v1_connect_proto_depIdxs = []int32{ 1, // 0: services.connect.v1.IDVSession.state:type_name -> services.connect.v1.IDVSessionState - 17, // 1: services.connect.v1.IDVSession.verifications:type_name -> services.connect.v1.IDVSession.VerificationsEntry + 19, // 1: services.connect.v1.IDVSession.verifications:type_name -> services.connect.v1.IDVSession.VerificationsEntry 3, // 2: services.connect.v1.IDVSession.fail_code:type_name -> services.connect.v1.SessionFailCode 0, // 3: services.connect.v1.Verification.type:type_name -> services.connect.v1.VerificationType 2, // 4: services.connect.v1.Verification.state:type_name -> services.connect.v1.VerificationState 4, // 5: services.connect.v1.Verification.fail_code:type_name -> services.connect.v1.VerificationFailCode - 9, // 6: services.connect.v1.CreateSessionRequest.verifications:type_name -> services.connect.v1.RequestedVerification - 0, // 7: services.connect.v1.RequestedVerification.type:type_name -> services.connect.v1.VerificationType - 6, // 8: services.connect.v1.CreateSessionResponse.session:type_name -> services.connect.v1.IDVSession - 6, // 9: services.connect.v1.CancelSessionResponse.session:type_name -> services.connect.v1.IDVSession - 6, // 10: services.connect.v1.GetSessionResponse.session:type_name -> services.connect.v1.IDVSession - 5, // 11: services.connect.v1.ListSessionsRequest.order_by:type_name -> services.connect.v1.SessionOrdering - 18, // 12: services.connect.v1.ListSessionsRequest.order_direction:type_name -> services.common.v1.OrderDirection - 6, // 13: services.connect.v1.ListSessionsResponse.sessions:type_name -> services.connect.v1.IDVSession - 7, // 14: services.connect.v1.IDVSession.VerificationsEntry.value:type_name -> services.connect.v1.Verification - 8, // 15: services.connect.v1.Connect.CreateSession:input_type -> services.connect.v1.CreateSessionRequest - 11, // 16: services.connect.v1.Connect.CancelSession:input_type -> services.connect.v1.CancelSessionRequest - 13, // 17: services.connect.v1.Connect.GetSession:input_type -> services.connect.v1.GetSessionRequest - 15, // 18: services.connect.v1.Connect.ListSessions:input_type -> services.connect.v1.ListSessionsRequest - 10, // 19: services.connect.v1.Connect.CreateSession:output_type -> services.connect.v1.CreateSessionResponse - 12, // 20: services.connect.v1.Connect.CancelSession:output_type -> services.connect.v1.CancelSessionResponse - 14, // 21: services.connect.v1.Connect.GetSession:output_type -> services.connect.v1.GetSessionResponse - 16, // 22: services.connect.v1.Connect.ListSessions:output_type -> services.connect.v1.ListSessionsResponse - 19, // [19:23] is the sub-list for method output_type - 15, // [15:19] is the sub-list for method input_type - 15, // [15:15] is the sub-list for extension type_name - 15, // [15:15] is the sub-list for extension extendee - 0, // [0:15] is the sub-list for field type_name + 10, // 6: services.connect.v1.Verification.government_id_options:type_name -> services.connect.v1.GovernmentIDOptions + 9, // 7: services.connect.v1.CreateSessionRequest.verifications:type_name -> services.connect.v1.RequestedVerification + 0, // 8: services.connect.v1.RequestedVerification.type:type_name -> services.connect.v1.VerificationType + 10, // 9: services.connect.v1.RequestedVerification.government_id_options:type_name -> services.connect.v1.GovernmentIDOptions + 11, // 10: services.connect.v1.GovernmentIDOptions.fields:type_name -> services.connect.v1.GovernmentIDFields + 6, // 11: services.connect.v1.CreateSessionResponse.session:type_name -> services.connect.v1.IDVSession + 6, // 12: services.connect.v1.CancelSessionResponse.session:type_name -> services.connect.v1.IDVSession + 6, // 13: services.connect.v1.GetSessionResponse.session:type_name -> services.connect.v1.IDVSession + 5, // 14: services.connect.v1.ListSessionsRequest.order_by:type_name -> services.connect.v1.SessionOrdering + 20, // 15: services.connect.v1.ListSessionsRequest.order_direction:type_name -> services.common.v1.OrderDirection + 6, // 16: services.connect.v1.ListSessionsResponse.sessions:type_name -> services.connect.v1.IDVSession + 7, // 17: services.connect.v1.IDVSession.VerificationsEntry.value:type_name -> services.connect.v1.Verification + 8, // 18: services.connect.v1.Connect.CreateSession:input_type -> services.connect.v1.CreateSessionRequest + 13, // 19: services.connect.v1.Connect.CancelSession:input_type -> services.connect.v1.CancelSessionRequest + 15, // 20: services.connect.v1.Connect.GetSession:input_type -> services.connect.v1.GetSessionRequest + 17, // 21: services.connect.v1.Connect.ListSessions:input_type -> services.connect.v1.ListSessionsRequest + 12, // 22: services.connect.v1.Connect.CreateSession:output_type -> services.connect.v1.CreateSessionResponse + 14, // 23: services.connect.v1.Connect.CancelSession:output_type -> services.connect.v1.CancelSessionResponse + 16, // 24: services.connect.v1.Connect.GetSession:output_type -> services.connect.v1.GetSessionResponse + 18, // 25: services.connect.v1.Connect.ListSessions:output_type -> services.connect.v1.ListSessionsResponse + 22, // [22:26] is the sub-list for method output_type + 18, // [18:22] is the sub-list for method input_type + 18, // [18:18] is the sub-list for extension type_name + 18, // [18:18] is the sub-list for extension extendee + 0, // [0:18] is the sub-list for field type_name } func init() { file_services_connect_v1_connect_proto_init() } @@ -1416,7 +1660,7 @@ func file_services_connect_v1_connect_proto_init() { } } file_services_connect_v1_connect_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateSessionResponse); i { + switch v := v.(*GovernmentIDOptions); i { case 0: return &v.state case 1: @@ -1428,7 +1672,7 @@ func file_services_connect_v1_connect_proto_init() { } } file_services_connect_v1_connect_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CancelSessionRequest); i { + switch v := v.(*GovernmentIDFields); i { case 0: return &v.state case 1: @@ -1440,7 +1684,7 @@ func file_services_connect_v1_connect_proto_init() { } } file_services_connect_v1_connect_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CancelSessionResponse); i { + switch v := v.(*CreateSessionResponse); i { case 0: return &v.state case 1: @@ -1452,7 +1696,7 @@ func file_services_connect_v1_connect_proto_init() { } } file_services_connect_v1_connect_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetSessionRequest); i { + switch v := v.(*CancelSessionRequest); i { case 0: return &v.state case 1: @@ -1464,7 +1708,7 @@ func file_services_connect_v1_connect_proto_init() { } } file_services_connect_v1_connect_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetSessionResponse); i { + switch v := v.(*CancelSessionResponse); i { case 0: return &v.state case 1: @@ -1476,7 +1720,7 @@ func file_services_connect_v1_connect_proto_init() { } } file_services_connect_v1_connect_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListSessionsRequest); i { + switch v := v.(*GetSessionRequest); i { case 0: return &v.state case 1: @@ -1488,6 +1732,30 @@ func file_services_connect_v1_connect_proto_init() { } } file_services_connect_v1_connect_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetSessionResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_services_connect_v1_connect_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListSessionsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_services_connect_v1_connect_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListSessionsResponse); i { case 0: return &v.state @@ -1502,14 +1770,17 @@ func file_services_connect_v1_connect_proto_init() { } file_services_connect_v1_connect_proto_msgTypes[0].OneofWrappers = []interface{}{} file_services_connect_v1_connect_proto_msgTypes[1].OneofWrappers = []interface{}{} - file_services_connect_v1_connect_proto_msgTypes[9].OneofWrappers = []interface{}{} + file_services_connect_v1_connect_proto_msgTypes[3].OneofWrappers = []interface{}{ + (*RequestedVerification_GovernmentIdOptions)(nil), + } + file_services_connect_v1_connect_proto_msgTypes[11].OneofWrappers = []interface{}{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_services_connect_v1_connect_proto_rawDesc, NumEnums: 6, - NumMessages: 12, + NumMessages: 14, NumExtensions: 0, NumServices: 1, }, diff --git a/java/src/main/java/trinsic/services/ServiceBase.java b/java/src/main/java/trinsic/services/ServiceBase.java index fa5eea1ee..acd823b28 100644 --- a/java/src/main/java/trinsic/services/ServiceBase.java +++ b/java/src/main/java/trinsic/services/ServiceBase.java @@ -1,21 +1,20 @@ package trinsic.services; +import static trinsic.TrinsicUtilities.getSdkVersion; +import static trinsic.TrinsicUtilities.getTrinsicTrinsicOptions; + import com.google.protobuf.InvalidProtocolBufferException; import com.google.protobuf.Message; import io.grpc.Channel; import io.grpc.ManagedChannel; import io.grpc.Metadata; import io.grpc.stub.MetadataUtils; +import java.util.Base64; +import java.util.concurrent.TimeUnit; import trinsic.TrinsicUtilities; import trinsic.sdk.options.v1.Options; import trinsic.services.account.v1.AccountProfile; -import java.util.Base64; -import java.util.concurrent.TimeUnit; - -import static trinsic.TrinsicUtilities.getSdkVersion; -import static trinsic.TrinsicUtilities.getTrinsicTrinsicOptions; - public abstract class ServiceBase { private final Channel channel; private Options.TrinsicOptions.Builder options; @@ -64,8 +63,8 @@ public void setAuthToken(String base64ProfileToken) { } public void setAuthToken(AccountProfile profile) { - var token = Base64.getUrlEncoder().encodeToString(profile.toByteArray()); - this.setAuthToken(token); + var token = Base64.getUrlEncoder().encodeToString(profile.toByteArray()); + this.setAuthToken(token); } public Options.TrinsicOptions.Builder getOptionsBuilder() { diff --git a/java/src/main/java/trinsic/services/connect/v1/ConnectOuterClass.java b/java/src/main/java/trinsic/services/connect/v1/ConnectOuterClass.java index 925727348..f4c12704a 100644 --- a/java/src/main/java/trinsic/services/connect/v1/ConnectOuterClass.java +++ b/java/src/main/java/trinsic/services/connect/v1/ConnectOuterClass.java @@ -32,6 +32,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_services_connect_v1_RequestedVerification_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_services_connect_v1_RequestedVerification_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_services_connect_v1_GovernmentIDOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_services_connect_v1_GovernmentIDOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_services_connect_v1_GovernmentIDFields_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_services_connect_v1_GovernmentIDFields_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_services_connect_v1_CreateSessionResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -87,7 +95,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003key\030\001 \001(\t\0220\n" + "\005value\030\002 \001(\0132!.services.connect.v1.Verification:\0028\001B\014\n\n" + "_fail_codeB\014\n\n" - + "_result_vp\"\207\002\n" + + "_result_vp\"\357\002\n" + "\014Verification\022\n\n" + "\002id\030\001 \001(\t\0223\n" + "\004type\030\002 \001(\0162%.services.connect.v1.VerificationType\0225\n" @@ -96,12 +104,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0162).services.connect.v1.VerificationFailCodeH\000\210\001\001\022\016\n" + "\006reused\030\005 \001(\010\022\r\n" + "\005begun\030\006 \001(\006\022\017\n" - + "\007updated\030\007 \001(\006B\014\n\n" - + "_fail_code\"Y\n" + + "\007updated\030\007 \001(\006\022L\n" + + "\025government_id_options\030\010" + + " \001(\0132(.services.connect.v1.GovernmentIDOptionsH\001\210\001\001B\014\n\n" + + "_fail_codeB\030\n" + + "\026_government_id_options\"Y\n" + "\024CreateSessionRequest\022A\n\r" - + "verifications\030\001 \003(\0132*.services.connect.v1.RequestedVerification\"L\n" + + "verifications\030\001 \003(\013" + + "2*.services.connect.v1.RequestedVerification\"\242\001\n" + "\025RequestedVerification\0223\n" - + "\004type\030\001 \001(\0162%.services.connect.v1.VerificationType\"I\n" + + "\004type\030\001 \001(\0162%.services.connect.v1.VerificationType\022I\n" + + "\025government_id_options\030\002" + + " \001(\0132(.services.connect.v1.GovernmentIDOptionsH\000B\t\n" + + "\007options\"N\n" + + "\023GovernmentIDOptions\0227\n" + + "\006fields\030\001 \001(\0132\'.services.connect.v1.GovernmentIDFields\"\266\001\n" + + "\022GovernmentIDFields\022\021\n" + + "\tid_number\030\001 \001(\010\022\022\n\n" + + "given_name\030\002 \001(\010\022\023\n" + + "\013family_name\030\003 \001(\010\022\017\n" + + "\007address\030\004 \001(\010\022\025\n\r" + + "date_of_birth\030\005 \001(\010\022\017\n" + + "\007country\030\006 \001(\010\022\022\n\n" + + "issue_date\030\007 \001(\010\022\027\n" + + "\017expiration_date\030\010 \001(\010\"I\n" + "\025CreateSessionResponse\0220\n" + "\007session\030\001 \001(\0132\037.services.connect.v1.IDVSession\".\n" + "\024CancelSessionRequest\022\026\n" @@ -116,8 +142,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010order_by\030\001 \001(\0162$.services.connect.v1.SessionOrdering\022;\n" + "\017order_direction\030\002 \001(\0162\".services.common.v1.OrderDirection\022\026\n" + "\tpage_size\030\003 \001(\005H\000\210\001\001\022\021\n" - + "\004page\030\004 \001(\005H\001\210\001\001B\014\n" - + "\n" + + "\004page\030\004 \001(\005H\001\210\001\001B\014\n\n" + "_page_sizeB\007\n" + "\005_page\"f\n" + "\024ListSessionsResponse\0221\n" @@ -158,16 +183,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007UPDATED\020\001\022\t\n" + "\005STATE\020\0022\235\003\n" + "\007Connect\022f\n\r" - + "CreateSession\022).services.connect.v1.CreateSe" - + "ssionRequest\032*.services.connect.v1.CreateSessionResponse\022f\n\r" - + "CancelSession\022).services.connect.v1.CancelSessionRequest\032*.s" - + "ervices.connect.v1.CancelSessionResponse\022]\n\n" - + "GetSession\022&.services.connect.v1.Get" - + "SessionRequest\032\'.services.connect.v1.GetSessionResponse\022c\n" - + "\014ListSessions\022(.servic" - + "es.connect.v1.ListSessionsRequest\032).services.connect.v1.ListSessionsResponseBZ\n" - + "\033trinsic.services.connect.v1P\001Z\033services/" - + "connect/v1/connect\252\002\033Trinsic.Services.Connect.V1b\006proto3" + + "CreateSession\022).services.con" + + "nect.v1.CreateSessionRequest\032*.services.connect.v1.CreateSessionResponse\022f\n\r" + + "CancelSession\022).services.connect.v1.CancelSe" + + "ssionRequest\032*.services.connect.v1.CancelSessionResponse\022]\n\n" + + "GetSession\022&.service" + + "s.connect.v1.GetSessionRequest\032\'.services.connect.v1.GetSessionResponse\022c\n" + + "\014ListSessions\022(.services.connect.v1.ListSessio" + + "nsRequest\032).services.connect.v1.ListSessionsResponseBZ\n" + + "\033trinsic.services.connect.v1P\001Z\033services/connect/v1/connect\252\002\033Tri" + + "nsic.Services.Connect.V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -206,7 +231,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_services_connect_v1_Verification_descriptor, new java.lang.String[] { - "Id", "Type", "State", "FailCode", "Reused", "Begun", "Updated", "FailCode", + "Id", + "Type", + "State", + "FailCode", + "Reused", + "Begun", + "Updated", + "GovernmentIdOptions", + "FailCode", + "GovernmentIdOptions", }); internal_static_services_connect_v1_CreateSessionRequest_descriptor = getDescriptor().getMessageTypes().get(2); @@ -222,10 +256,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_services_connect_v1_RequestedVerification_descriptor, new java.lang.String[] { - "Type", + "Type", "GovernmentIdOptions", "Options", }); - internal_static_services_connect_v1_CreateSessionResponse_descriptor = + internal_static_services_connect_v1_GovernmentIDOptions_descriptor = getDescriptor().getMessageTypes().get(4); + internal_static_services_connect_v1_GovernmentIDOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_services_connect_v1_GovernmentIDOptions_descriptor, + new java.lang.String[] { + "Fields", + }); + internal_static_services_connect_v1_GovernmentIDFields_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_services_connect_v1_GovernmentIDFields_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_services_connect_v1_GovernmentIDFields_descriptor, + new java.lang.String[] { + "IdNumber", + "GivenName", + "FamilyName", + "Address", + "DateOfBirth", + "Country", + "IssueDate", + "ExpirationDate", + }); + internal_static_services_connect_v1_CreateSessionResponse_descriptor = + getDescriptor().getMessageTypes().get(6); internal_static_services_connect_v1_CreateSessionResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_services_connect_v1_CreateSessionResponse_descriptor, @@ -233,7 +290,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Session", }); internal_static_services_connect_v1_CancelSessionRequest_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(7); internal_static_services_connect_v1_CancelSessionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_services_connect_v1_CancelSessionRequest_descriptor, @@ -241,7 +298,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IdvSessionId", }); internal_static_services_connect_v1_CancelSessionResponse_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(8); internal_static_services_connect_v1_CancelSessionResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_services_connect_v1_CancelSessionResponse_descriptor, @@ -249,7 +306,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Session", }); internal_static_services_connect_v1_GetSessionRequest_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(9); internal_static_services_connect_v1_GetSessionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_services_connect_v1_GetSessionRequest_descriptor, @@ -257,7 +314,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IdvSessionId", }); internal_static_services_connect_v1_GetSessionResponse_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(10); internal_static_services_connect_v1_GetSessionResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_services_connect_v1_GetSessionResponse_descriptor, @@ -265,7 +322,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Session", }); internal_static_services_connect_v1_ListSessionsRequest_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(11); internal_static_services_connect_v1_ListSessionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_services_connect_v1_ListSessionsRequest_descriptor, @@ -273,7 +330,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OrderBy", "OrderDirection", "PageSize", "Page", "PageSize", "Page", }); internal_static_services_connect_v1_ListSessionsResponse_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(12); internal_static_services_connect_v1_ListSessionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_services_connect_v1_ListSessionsResponse_descriptor, diff --git a/java/src/main/java/trinsic/services/connect/v1/GovernmentIDFields.java b/java/src/main/java/trinsic/services/connect/v1/GovernmentIDFields.java new file mode 100644 index 000000000..2aa3db131 --- /dev/null +++ b/java/src/main/java/trinsic/services/connect/v1/GovernmentIDFields.java @@ -0,0 +1,1148 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: services/connect/v1/connect.proto + +package trinsic.services.connect.v1; + +/** + * + * + *
+ * Selection of fields to retrieve from a Government ID. All fields default to `false` unless explicitly set to `true`.
+ * 
+ * + * Protobuf type {@code services.connect.v1.GovernmentIDFields} + */ +public final class GovernmentIDFields extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:services.connect.v1.GovernmentIDFields) + GovernmentIDFieldsOrBuilder { + private static final long serialVersionUID = 0L; + // Use GovernmentIDFields.newBuilder() to construct. + private GovernmentIDFields(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GovernmentIDFields() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GovernmentIDFields(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return trinsic.services.connect.v1.ConnectOuterClass + .internal_static_services_connect_v1_GovernmentIDFields_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return trinsic.services.connect.v1.ConnectOuterClass + .internal_static_services_connect_v1_GovernmentIDFields_fieldAccessorTable + .ensureFieldAccessorsInitialized( + trinsic.services.connect.v1.GovernmentIDFields.class, + trinsic.services.connect.v1.GovernmentIDFields.Builder.class); + } + + public static final int ID_NUMBER_FIELD_NUMBER = 1; + private boolean idNumber_; + /** + * + * + *
+   * ID number of the underlying identity document
+   * 
+ * + * bool id_number = 1; + * + * @return The idNumber. + */ + @java.lang.Override + public boolean getIdNumber() { + return idNumber_; + } + + public static final int GIVEN_NAME_FIELD_NUMBER = 2; + private boolean givenName_; + /** + * + * + *
+   * Given ("first") name of the document holder
+   * 
+ * + * bool given_name = 2; + * + * @return The givenName. + */ + @java.lang.Override + public boolean getGivenName() { + return givenName_; + } + + public static final int FAMILY_NAME_FIELD_NUMBER = 3; + private boolean familyName_; + /** + * + * + *
+   * Family ("last") name of the document holder
+   * 
+ * + * bool family_name = 3; + * + * @return The familyName. + */ + @java.lang.Override + public boolean getFamilyName() { + return familyName_; + } + + public static final int ADDRESS_FIELD_NUMBER = 4; + private boolean address_; + /** + * + * + *
+   * Full address of the document holder
+   * 
+ * + * bool address = 4; + * + * @return The address. + */ + @java.lang.Override + public boolean getAddress() { + return address_; + } + + public static final int DATE_OF_BIRTH_FIELD_NUMBER = 5; + private boolean dateOfBirth_; + /** + * + * + *
+   * Date of birth of the document holder
+   * 
+ * + * bool date_of_birth = 5; + * + * @return The dateOfBirth. + */ + @java.lang.Override + public boolean getDateOfBirth() { + return dateOfBirth_; + } + + public static final int COUNTRY_FIELD_NUMBER = 6; + private boolean country_; + /** + * + * + *
+   * ISO3 country code of the document
+   * 
+ * + * bool country = 6; + * + * @return The country. + */ + @java.lang.Override + public boolean getCountry() { + return country_; + } + + public static final int ISSUE_DATE_FIELD_NUMBER = 7; + private boolean issueDate_; + /** + * + * + *
+   * Issuance date of the document
+   * 
+ * + * bool issue_date = 7; + * + * @return The issueDate. + */ + @java.lang.Override + public boolean getIssueDate() { + return issueDate_; + } + + public static final int EXPIRATION_DATE_FIELD_NUMBER = 8; + private boolean expirationDate_; + /** + * + * + *
+   * Expiration date date of the document
+   * 
+ * + * bool expiration_date = 8; + * + * @return The expirationDate. + */ + @java.lang.Override + public boolean getExpirationDate() { + return expirationDate_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (idNumber_ != false) { + output.writeBool(1, idNumber_); + } + if (givenName_ != false) { + output.writeBool(2, givenName_); + } + if (familyName_ != false) { + output.writeBool(3, familyName_); + } + if (address_ != false) { + output.writeBool(4, address_); + } + if (dateOfBirth_ != false) { + output.writeBool(5, dateOfBirth_); + } + if (country_ != false) { + output.writeBool(6, country_); + } + if (issueDate_ != false) { + output.writeBool(7, issueDate_); + } + if (expirationDate_ != false) { + output.writeBool(8, expirationDate_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (idNumber_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, idNumber_); + } + if (givenName_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, givenName_); + } + if (familyName_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, familyName_); + } + if (address_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, address_); + } + if (dateOfBirth_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, dateOfBirth_); + } + if (country_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, country_); + } + if (issueDate_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, issueDate_); + } + if (expirationDate_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, expirationDate_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof trinsic.services.connect.v1.GovernmentIDFields)) { + return super.equals(obj); + } + trinsic.services.connect.v1.GovernmentIDFields other = + (trinsic.services.connect.v1.GovernmentIDFields) obj; + + if (getIdNumber() != other.getIdNumber()) return false; + if (getGivenName() != other.getGivenName()) return false; + if (getFamilyName() != other.getFamilyName()) return false; + if (getAddress() != other.getAddress()) return false; + if (getDateOfBirth() != other.getDateOfBirth()) return false; + if (getCountry() != other.getCountry()) return false; + if (getIssueDate() != other.getIssueDate()) return false; + if (getExpirationDate() != other.getExpirationDate()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIdNumber()); + hash = (37 * hash) + GIVEN_NAME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getGivenName()); + hash = (37 * hash) + FAMILY_NAME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFamilyName()); + hash = (37 * hash) + ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAddress()); + hash = (37 * hash) + DATE_OF_BIRTH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDateOfBirth()); + hash = (37 * hash) + COUNTRY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCountry()); + hash = (37 * hash) + ISSUE_DATE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIssueDate()); + hash = (37 * hash) + EXPIRATION_DATE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getExpirationDate()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static trinsic.services.connect.v1.GovernmentIDFields parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static trinsic.services.connect.v1.GovernmentIDFields parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static trinsic.services.connect.v1.GovernmentIDFields parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static trinsic.services.connect.v1.GovernmentIDFields parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static trinsic.services.connect.v1.GovernmentIDFields parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static trinsic.services.connect.v1.GovernmentIDFields parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static trinsic.services.connect.v1.GovernmentIDFields parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static trinsic.services.connect.v1.GovernmentIDFields parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static trinsic.services.connect.v1.GovernmentIDFields parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static trinsic.services.connect.v1.GovernmentIDFields parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static trinsic.services.connect.v1.GovernmentIDFields parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static trinsic.services.connect.v1.GovernmentIDFields parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(trinsic.services.connect.v1.GovernmentIDFields prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Selection of fields to retrieve from a Government ID. All fields default to `false` unless explicitly set to `true`.
+   * 
+ * + * Protobuf type {@code services.connect.v1.GovernmentIDFields} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:services.connect.v1.GovernmentIDFields) + trinsic.services.connect.v1.GovernmentIDFieldsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return trinsic.services.connect.v1.ConnectOuterClass + .internal_static_services_connect_v1_GovernmentIDFields_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return trinsic.services.connect.v1.ConnectOuterClass + .internal_static_services_connect_v1_GovernmentIDFields_fieldAccessorTable + .ensureFieldAccessorsInitialized( + trinsic.services.connect.v1.GovernmentIDFields.class, + trinsic.services.connect.v1.GovernmentIDFields.Builder.class); + } + + // Construct using trinsic.services.connect.v1.GovernmentIDFields.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + idNumber_ = false; + + givenName_ = false; + + familyName_ = false; + + address_ = false; + + dateOfBirth_ = false; + + country_ = false; + + issueDate_ = false; + + expirationDate_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return trinsic.services.connect.v1.ConnectOuterClass + .internal_static_services_connect_v1_GovernmentIDFields_descriptor; + } + + @java.lang.Override + public trinsic.services.connect.v1.GovernmentIDFields getDefaultInstanceForType() { + return trinsic.services.connect.v1.GovernmentIDFields.getDefaultInstance(); + } + + @java.lang.Override + public trinsic.services.connect.v1.GovernmentIDFields build() { + trinsic.services.connect.v1.GovernmentIDFields result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public trinsic.services.connect.v1.GovernmentIDFields buildPartial() { + trinsic.services.connect.v1.GovernmentIDFields result = + new trinsic.services.connect.v1.GovernmentIDFields(this); + result.idNumber_ = idNumber_; + result.givenName_ = givenName_; + result.familyName_ = familyName_; + result.address_ = address_; + result.dateOfBirth_ = dateOfBirth_; + result.country_ = country_; + result.issueDate_ = issueDate_; + result.expirationDate_ = expirationDate_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof trinsic.services.connect.v1.GovernmentIDFields) { + return mergeFrom((trinsic.services.connect.v1.GovernmentIDFields) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(trinsic.services.connect.v1.GovernmentIDFields other) { + if (other == trinsic.services.connect.v1.GovernmentIDFields.getDefaultInstance()) return this; + if (other.getIdNumber() != false) { + setIdNumber(other.getIdNumber()); + } + if (other.getGivenName() != false) { + setGivenName(other.getGivenName()); + } + if (other.getFamilyName() != false) { + setFamilyName(other.getFamilyName()); + } + if (other.getAddress() != false) { + setAddress(other.getAddress()); + } + if (other.getDateOfBirth() != false) { + setDateOfBirth(other.getDateOfBirth()); + } + if (other.getCountry() != false) { + setCountry(other.getCountry()); + } + if (other.getIssueDate() != false) { + setIssueDate(other.getIssueDate()); + } + if (other.getExpirationDate() != false) { + setExpirationDate(other.getExpirationDate()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + idNumber_ = input.readBool(); + + break; + } // case 8 + case 16: + { + givenName_ = input.readBool(); + + break; + } // case 16 + case 24: + { + familyName_ = input.readBool(); + + break; + } // case 24 + case 32: + { + address_ = input.readBool(); + + break; + } // case 32 + case 40: + { + dateOfBirth_ = input.readBool(); + + break; + } // case 40 + case 48: + { + country_ = input.readBool(); + + break; + } // case 48 + case 56: + { + issueDate_ = input.readBool(); + + break; + } // case 56 + case 64: + { + expirationDate_ = input.readBool(); + + break; + } // case 64 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private boolean idNumber_; + /** + * + * + *
+     * ID number of the underlying identity document
+     * 
+ * + * bool id_number = 1; + * + * @return The idNumber. + */ + @java.lang.Override + public boolean getIdNumber() { + return idNumber_; + } + /** + * + * + *
+     * ID number of the underlying identity document
+     * 
+ * + * bool id_number = 1; + * + * @param value The idNumber to set. + * @return This builder for chaining. + */ + public Builder setIdNumber(boolean value) { + + idNumber_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * ID number of the underlying identity document
+     * 
+ * + * bool id_number = 1; + * + * @return This builder for chaining. + */ + public Builder clearIdNumber() { + + idNumber_ = false; + onChanged(); + return this; + } + + private boolean givenName_; + /** + * + * + *
+     * Given ("first") name of the document holder
+     * 
+ * + * bool given_name = 2; + * + * @return The givenName. + */ + @java.lang.Override + public boolean getGivenName() { + return givenName_; + } + /** + * + * + *
+     * Given ("first") name of the document holder
+     * 
+ * + * bool given_name = 2; + * + * @param value The givenName to set. + * @return This builder for chaining. + */ + public Builder setGivenName(boolean value) { + + givenName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Given ("first") name of the document holder
+     * 
+ * + * bool given_name = 2; + * + * @return This builder for chaining. + */ + public Builder clearGivenName() { + + givenName_ = false; + onChanged(); + return this; + } + + private boolean familyName_; + /** + * + * + *
+     * Family ("last") name of the document holder
+     * 
+ * + * bool family_name = 3; + * + * @return The familyName. + */ + @java.lang.Override + public boolean getFamilyName() { + return familyName_; + } + /** + * + * + *
+     * Family ("last") name of the document holder
+     * 
+ * + * bool family_name = 3; + * + * @param value The familyName to set. + * @return This builder for chaining. + */ + public Builder setFamilyName(boolean value) { + + familyName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Family ("last") name of the document holder
+     * 
+ * + * bool family_name = 3; + * + * @return This builder for chaining. + */ + public Builder clearFamilyName() { + + familyName_ = false; + onChanged(); + return this; + } + + private boolean address_; + /** + * + * + *
+     * Full address of the document holder
+     * 
+ * + * bool address = 4; + * + * @return The address. + */ + @java.lang.Override + public boolean getAddress() { + return address_; + } + /** + * + * + *
+     * Full address of the document holder
+     * 
+ * + * bool address = 4; + * + * @param value The address to set. + * @return This builder for chaining. + */ + public Builder setAddress(boolean value) { + + address_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Full address of the document holder
+     * 
+ * + * bool address = 4; + * + * @return This builder for chaining. + */ + public Builder clearAddress() { + + address_ = false; + onChanged(); + return this; + } + + private boolean dateOfBirth_; + /** + * + * + *
+     * Date of birth of the document holder
+     * 
+ * + * bool date_of_birth = 5; + * + * @return The dateOfBirth. + */ + @java.lang.Override + public boolean getDateOfBirth() { + return dateOfBirth_; + } + /** + * + * + *
+     * Date of birth of the document holder
+     * 
+ * + * bool date_of_birth = 5; + * + * @param value The dateOfBirth to set. + * @return This builder for chaining. + */ + public Builder setDateOfBirth(boolean value) { + + dateOfBirth_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Date of birth of the document holder
+     * 
+ * + * bool date_of_birth = 5; + * + * @return This builder for chaining. + */ + public Builder clearDateOfBirth() { + + dateOfBirth_ = false; + onChanged(); + return this; + } + + private boolean country_; + /** + * + * + *
+     * ISO3 country code of the document
+     * 
+ * + * bool country = 6; + * + * @return The country. + */ + @java.lang.Override + public boolean getCountry() { + return country_; + } + /** + * + * + *
+     * ISO3 country code of the document
+     * 
+ * + * bool country = 6; + * + * @param value The country to set. + * @return This builder for chaining. + */ + public Builder setCountry(boolean value) { + + country_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * ISO3 country code of the document
+     * 
+ * + * bool country = 6; + * + * @return This builder for chaining. + */ + public Builder clearCountry() { + + country_ = false; + onChanged(); + return this; + } + + private boolean issueDate_; + /** + * + * + *
+     * Issuance date of the document
+     * 
+ * + * bool issue_date = 7; + * + * @return The issueDate. + */ + @java.lang.Override + public boolean getIssueDate() { + return issueDate_; + } + /** + * + * + *
+     * Issuance date of the document
+     * 
+ * + * bool issue_date = 7; + * + * @param value The issueDate to set. + * @return This builder for chaining. + */ + public Builder setIssueDate(boolean value) { + + issueDate_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Issuance date of the document
+     * 
+ * + * bool issue_date = 7; + * + * @return This builder for chaining. + */ + public Builder clearIssueDate() { + + issueDate_ = false; + onChanged(); + return this; + } + + private boolean expirationDate_; + /** + * + * + *
+     * Expiration date date of the document
+     * 
+ * + * bool expiration_date = 8; + * + * @return The expirationDate. + */ + @java.lang.Override + public boolean getExpirationDate() { + return expirationDate_; + } + /** + * + * + *
+     * Expiration date date of the document
+     * 
+ * + * bool expiration_date = 8; + * + * @param value The expirationDate to set. + * @return This builder for chaining. + */ + public Builder setExpirationDate(boolean value) { + + expirationDate_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Expiration date date of the document
+     * 
+ * + * bool expiration_date = 8; + * + * @return This builder for chaining. + */ + public Builder clearExpirationDate() { + + expirationDate_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:services.connect.v1.GovernmentIDFields) + } + + // @@protoc_insertion_point(class_scope:services.connect.v1.GovernmentIDFields) + private static final trinsic.services.connect.v1.GovernmentIDFields DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new trinsic.services.connect.v1.GovernmentIDFields(); + } + + public static trinsic.services.connect.v1.GovernmentIDFields getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GovernmentIDFields parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public trinsic.services.connect.v1.GovernmentIDFields getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java/src/main/java/trinsic/services/connect/v1/GovernmentIDFieldsOrBuilder.java b/java/src/main/java/trinsic/services/connect/v1/GovernmentIDFieldsOrBuilder.java new file mode 100644 index 000000000..432caa352 --- /dev/null +++ b/java/src/main/java/trinsic/services/connect/v1/GovernmentIDFieldsOrBuilder.java @@ -0,0 +1,114 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: services/connect/v1/connect.proto + +package trinsic.services.connect.v1; + +public interface GovernmentIDFieldsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:services.connect.v1.GovernmentIDFields) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * ID number of the underlying identity document
+   * 
+ * + * bool id_number = 1; + * + * @return The idNumber. + */ + boolean getIdNumber(); + + /** + * + * + *
+   * Given ("first") name of the document holder
+   * 
+ * + * bool given_name = 2; + * + * @return The givenName. + */ + boolean getGivenName(); + + /** + * + * + *
+   * Family ("last") name of the document holder
+   * 
+ * + * bool family_name = 3; + * + * @return The familyName. + */ + boolean getFamilyName(); + + /** + * + * + *
+   * Full address of the document holder
+   * 
+ * + * bool address = 4; + * + * @return The address. + */ + boolean getAddress(); + + /** + * + * + *
+   * Date of birth of the document holder
+   * 
+ * + * bool date_of_birth = 5; + * + * @return The dateOfBirth. + */ + boolean getDateOfBirth(); + + /** + * + * + *
+   * ISO3 country code of the document
+   * 
+ * + * bool country = 6; + * + * @return The country. + */ + boolean getCountry(); + + /** + * + * + *
+   * Issuance date of the document
+   * 
+ * + * bool issue_date = 7; + * + * @return The issueDate. + */ + boolean getIssueDate(); + + /** + * + * + *
+   * Expiration date date of the document
+   * 
+ * + * bool expiration_date = 8; + * + * @return The expirationDate. + */ + boolean getExpirationDate(); +} diff --git a/java/src/main/java/trinsic/services/connect/v1/GovernmentIDOptions.java b/java/src/main/java/trinsic/services/connect/v1/GovernmentIDOptions.java new file mode 100644 index 000000000..c102c93f5 --- /dev/null +++ b/java/src/main/java/trinsic/services/connect/v1/GovernmentIDOptions.java @@ -0,0 +1,701 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: services/connect/v1/connect.proto + +package trinsic.services.connect.v1; + +/** + * + * + *
+ * Options for a Verification of type `GOVERNMENT_ID`
+ * 
+ * + * Protobuf type {@code services.connect.v1.GovernmentIDOptions} + */ +public final class GovernmentIDOptions extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:services.connect.v1.GovernmentIDOptions) + GovernmentIDOptionsOrBuilder { + private static final long serialVersionUID = 0L; + // Use GovernmentIDOptions.newBuilder() to construct. + private GovernmentIDOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GovernmentIDOptions() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GovernmentIDOptions(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return trinsic.services.connect.v1.ConnectOuterClass + .internal_static_services_connect_v1_GovernmentIDOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return trinsic.services.connect.v1.ConnectOuterClass + .internal_static_services_connect_v1_GovernmentIDOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + trinsic.services.connect.v1.GovernmentIDOptions.class, + trinsic.services.connect.v1.GovernmentIDOptions.Builder.class); + } + + public static final int FIELDS_FIELD_NUMBER = 1; + private trinsic.services.connect.v1.GovernmentIDFields fields_; + /** + * + * + *
+   * The fields to retrieve from the Government ID.
+   * If this object is not set, all fields will be retrieved.
+   * 
+ * + * .services.connect.v1.GovernmentIDFields fields = 1; + * + * @return Whether the fields field is set. + */ + @java.lang.Override + public boolean hasFields() { + return fields_ != null; + } + /** + * + * + *
+   * The fields to retrieve from the Government ID.
+   * If this object is not set, all fields will be retrieved.
+   * 
+ * + * .services.connect.v1.GovernmentIDFields fields = 1; + * + * @return The fields. + */ + @java.lang.Override + public trinsic.services.connect.v1.GovernmentIDFields getFields() { + return fields_ == null + ? trinsic.services.connect.v1.GovernmentIDFields.getDefaultInstance() + : fields_; + } + /** + * + * + *
+   * The fields to retrieve from the Government ID.
+   * If this object is not set, all fields will be retrieved.
+   * 
+ * + * .services.connect.v1.GovernmentIDFields fields = 1; + */ + @java.lang.Override + public trinsic.services.connect.v1.GovernmentIDFieldsOrBuilder getFieldsOrBuilder() { + return getFields(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (fields_ != null) { + output.writeMessage(1, getFields()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (fields_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFields()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof trinsic.services.connect.v1.GovernmentIDOptions)) { + return super.equals(obj); + } + trinsic.services.connect.v1.GovernmentIDOptions other = + (trinsic.services.connect.v1.GovernmentIDOptions) obj; + + if (hasFields() != other.hasFields()) return false; + if (hasFields()) { + if (!getFields().equals(other.getFields())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasFields()) { + hash = (37 * hash) + FIELDS_FIELD_NUMBER; + hash = (53 * hash) + getFields().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static trinsic.services.connect.v1.GovernmentIDOptions parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static trinsic.services.connect.v1.GovernmentIDOptions parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static trinsic.services.connect.v1.GovernmentIDOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static trinsic.services.connect.v1.GovernmentIDOptions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static trinsic.services.connect.v1.GovernmentIDOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static trinsic.services.connect.v1.GovernmentIDOptions parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static trinsic.services.connect.v1.GovernmentIDOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static trinsic.services.connect.v1.GovernmentIDOptions parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static trinsic.services.connect.v1.GovernmentIDOptions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static trinsic.services.connect.v1.GovernmentIDOptions parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static trinsic.services.connect.v1.GovernmentIDOptions parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static trinsic.services.connect.v1.GovernmentIDOptions parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(trinsic.services.connect.v1.GovernmentIDOptions prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Options for a Verification of type `GOVERNMENT_ID`
+   * 
+ * + * Protobuf type {@code services.connect.v1.GovernmentIDOptions} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:services.connect.v1.GovernmentIDOptions) + trinsic.services.connect.v1.GovernmentIDOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return trinsic.services.connect.v1.ConnectOuterClass + .internal_static_services_connect_v1_GovernmentIDOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return trinsic.services.connect.v1.ConnectOuterClass + .internal_static_services_connect_v1_GovernmentIDOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + trinsic.services.connect.v1.GovernmentIDOptions.class, + trinsic.services.connect.v1.GovernmentIDOptions.Builder.class); + } + + // Construct using trinsic.services.connect.v1.GovernmentIDOptions.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (fieldsBuilder_ == null) { + fields_ = null; + } else { + fields_ = null; + fieldsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return trinsic.services.connect.v1.ConnectOuterClass + .internal_static_services_connect_v1_GovernmentIDOptions_descriptor; + } + + @java.lang.Override + public trinsic.services.connect.v1.GovernmentIDOptions getDefaultInstanceForType() { + return trinsic.services.connect.v1.GovernmentIDOptions.getDefaultInstance(); + } + + @java.lang.Override + public trinsic.services.connect.v1.GovernmentIDOptions build() { + trinsic.services.connect.v1.GovernmentIDOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public trinsic.services.connect.v1.GovernmentIDOptions buildPartial() { + trinsic.services.connect.v1.GovernmentIDOptions result = + new trinsic.services.connect.v1.GovernmentIDOptions(this); + if (fieldsBuilder_ == null) { + result.fields_ = fields_; + } else { + result.fields_ = fieldsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof trinsic.services.connect.v1.GovernmentIDOptions) { + return mergeFrom((trinsic.services.connect.v1.GovernmentIDOptions) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(trinsic.services.connect.v1.GovernmentIDOptions other) { + if (other == trinsic.services.connect.v1.GovernmentIDOptions.getDefaultInstance()) + return this; + if (other.hasFields()) { + mergeFields(other.getFields()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getFieldsFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private trinsic.services.connect.v1.GovernmentIDFields fields_; + private com.google.protobuf.SingleFieldBuilderV3< + trinsic.services.connect.v1.GovernmentIDFields, + trinsic.services.connect.v1.GovernmentIDFields.Builder, + trinsic.services.connect.v1.GovernmentIDFieldsOrBuilder> + fieldsBuilder_; + /** + * + * + *
+     * The fields to retrieve from the Government ID.
+     * If this object is not set, all fields will be retrieved.
+     * 
+ * + * .services.connect.v1.GovernmentIDFields fields = 1; + * + * @return Whether the fields field is set. + */ + public boolean hasFields() { + return fieldsBuilder_ != null || fields_ != null; + } + /** + * + * + *
+     * The fields to retrieve from the Government ID.
+     * If this object is not set, all fields will be retrieved.
+     * 
+ * + * .services.connect.v1.GovernmentIDFields fields = 1; + * + * @return The fields. + */ + public trinsic.services.connect.v1.GovernmentIDFields getFields() { + if (fieldsBuilder_ == null) { + return fields_ == null + ? trinsic.services.connect.v1.GovernmentIDFields.getDefaultInstance() + : fields_; + } else { + return fieldsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The fields to retrieve from the Government ID.
+     * If this object is not set, all fields will be retrieved.
+     * 
+ * + * .services.connect.v1.GovernmentIDFields fields = 1; + */ + public Builder setFields(trinsic.services.connect.v1.GovernmentIDFields value) { + if (fieldsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fields_ = value; + onChanged(); + } else { + fieldsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The fields to retrieve from the Government ID.
+     * If this object is not set, all fields will be retrieved.
+     * 
+ * + * .services.connect.v1.GovernmentIDFields fields = 1; + */ + public Builder setFields( + trinsic.services.connect.v1.GovernmentIDFields.Builder builderForValue) { + if (fieldsBuilder_ == null) { + fields_ = builderForValue.build(); + onChanged(); + } else { + fieldsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The fields to retrieve from the Government ID.
+     * If this object is not set, all fields will be retrieved.
+     * 
+ * + * .services.connect.v1.GovernmentIDFields fields = 1; + */ + public Builder mergeFields(trinsic.services.connect.v1.GovernmentIDFields value) { + if (fieldsBuilder_ == null) { + if (fields_ != null) { + fields_ = + trinsic.services.connect.v1.GovernmentIDFields.newBuilder(fields_) + .mergeFrom(value) + .buildPartial(); + } else { + fields_ = value; + } + onChanged(); + } else { + fieldsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The fields to retrieve from the Government ID.
+     * If this object is not set, all fields will be retrieved.
+     * 
+ * + * .services.connect.v1.GovernmentIDFields fields = 1; + */ + public Builder clearFields() { + if (fieldsBuilder_ == null) { + fields_ = null; + onChanged(); + } else { + fields_ = null; + fieldsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The fields to retrieve from the Government ID.
+     * If this object is not set, all fields will be retrieved.
+     * 
+ * + * .services.connect.v1.GovernmentIDFields fields = 1; + */ + public trinsic.services.connect.v1.GovernmentIDFields.Builder getFieldsBuilder() { + + onChanged(); + return getFieldsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The fields to retrieve from the Government ID.
+     * If this object is not set, all fields will be retrieved.
+     * 
+ * + * .services.connect.v1.GovernmentIDFields fields = 1; + */ + public trinsic.services.connect.v1.GovernmentIDFieldsOrBuilder getFieldsOrBuilder() { + if (fieldsBuilder_ != null) { + return fieldsBuilder_.getMessageOrBuilder(); + } else { + return fields_ == null + ? trinsic.services.connect.v1.GovernmentIDFields.getDefaultInstance() + : fields_; + } + } + /** + * + * + *
+     * The fields to retrieve from the Government ID.
+     * If this object is not set, all fields will be retrieved.
+     * 
+ * + * .services.connect.v1.GovernmentIDFields fields = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + trinsic.services.connect.v1.GovernmentIDFields, + trinsic.services.connect.v1.GovernmentIDFields.Builder, + trinsic.services.connect.v1.GovernmentIDFieldsOrBuilder> + getFieldsFieldBuilder() { + if (fieldsBuilder_ == null) { + fieldsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + trinsic.services.connect.v1.GovernmentIDFields, + trinsic.services.connect.v1.GovernmentIDFields.Builder, + trinsic.services.connect.v1.GovernmentIDFieldsOrBuilder>( + getFields(), getParentForChildren(), isClean()); + fields_ = null; + } + return fieldsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:services.connect.v1.GovernmentIDOptions) + } + + // @@protoc_insertion_point(class_scope:services.connect.v1.GovernmentIDOptions) + private static final trinsic.services.connect.v1.GovernmentIDOptions DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new trinsic.services.connect.v1.GovernmentIDOptions(); + } + + public static trinsic.services.connect.v1.GovernmentIDOptions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GovernmentIDOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public trinsic.services.connect.v1.GovernmentIDOptions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java/src/main/java/trinsic/services/connect/v1/GovernmentIDOptionsOrBuilder.java b/java/src/main/java/trinsic/services/connect/v1/GovernmentIDOptionsOrBuilder.java new file mode 100644 index 000000000..7442aa5a8 --- /dev/null +++ b/java/src/main/java/trinsic/services/connect/v1/GovernmentIDOptionsOrBuilder.java @@ -0,0 +1,48 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: services/connect/v1/connect.proto + +package trinsic.services.connect.v1; + +public interface GovernmentIDOptionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:services.connect.v1.GovernmentIDOptions) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The fields to retrieve from the Government ID.
+   * If this object is not set, all fields will be retrieved.
+   * 
+ * + * .services.connect.v1.GovernmentIDFields fields = 1; + * + * @return Whether the fields field is set. + */ + boolean hasFields(); + /** + * + * + *
+   * The fields to retrieve from the Government ID.
+   * If this object is not set, all fields will be retrieved.
+   * 
+ * + * .services.connect.v1.GovernmentIDFields fields = 1; + * + * @return The fields. + */ + trinsic.services.connect.v1.GovernmentIDFields getFields(); + /** + * + * + *
+   * The fields to retrieve from the Government ID.
+   * If this object is not set, all fields will be retrieved.
+   * 
+ * + * .services.connect.v1.GovernmentIDFields fields = 1; + */ + trinsic.services.connect.v1.GovernmentIDFieldsOrBuilder getFieldsOrBuilder(); +} diff --git a/java/src/main/java/trinsic/services/connect/v1/RequestedVerification.java b/java/src/main/java/trinsic/services/connect/v1/RequestedVerification.java index d92210fef..245615de4 100644 --- a/java/src/main/java/trinsic/services/connect/v1/RequestedVerification.java +++ b/java/src/main/java/trinsic/services/connect/v1/RequestedVerification.java @@ -52,6 +52,50 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { trinsic.services.connect.v1.RequestedVerification.Builder.class); } + private int optionsCase_ = 0; + private java.lang.Object options_; + + public enum OptionsCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + GOVERNMENT_ID_OPTIONS(2), + OPTIONS_NOT_SET(0); + private final int value; + + private OptionsCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OptionsCase valueOf(int value) { + return forNumber(value); + } + + public static OptionsCase forNumber(int value) { + switch (value) { + case 2: + return GOVERNMENT_ID_OPTIONS; + case 0: + return OPTIONS_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public OptionsCase getOptionsCase() { + return OptionsCase.forNumber(optionsCase_); + } + public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** @@ -88,6 +132,58 @@ public trinsic.services.connect.v1.VerificationType getType() { return result == null ? trinsic.services.connect.v1.VerificationType.UNRECOGNIZED : result; } + public static final int GOVERNMENT_ID_OPTIONS_FIELD_NUMBER = 2; + /** + * + * + *
+   * Options for a Verification of type `GOVERNMENT_ID`
+   * 
+ * + * .services.connect.v1.GovernmentIDOptions government_id_options = 2; + * + * @return Whether the governmentIdOptions field is set. + */ + @java.lang.Override + public boolean hasGovernmentIdOptions() { + return optionsCase_ == 2; + } + /** + * + * + *
+   * Options for a Verification of type `GOVERNMENT_ID`
+   * 
+ * + * .services.connect.v1.GovernmentIDOptions government_id_options = 2; + * + * @return The governmentIdOptions. + */ + @java.lang.Override + public trinsic.services.connect.v1.GovernmentIDOptions getGovernmentIdOptions() { + if (optionsCase_ == 2) { + return (trinsic.services.connect.v1.GovernmentIDOptions) options_; + } + return trinsic.services.connect.v1.GovernmentIDOptions.getDefaultInstance(); + } + /** + * + * + *
+   * Options for a Verification of type `GOVERNMENT_ID`
+   * 
+ * + * .services.connect.v1.GovernmentIDOptions government_id_options = 2; + */ + @java.lang.Override + public trinsic.services.connect.v1.GovernmentIDOptionsOrBuilder + getGovernmentIdOptionsOrBuilder() { + if (optionsCase_ == 2) { + return (trinsic.services.connect.v1.GovernmentIDOptions) options_; + } + return trinsic.services.connect.v1.GovernmentIDOptions.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -105,6 +201,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (type_ != trinsic.services.connect.v1.VerificationType.GOVERNMENT_ID.getNumber()) { output.writeEnum(1, type_); } + if (optionsCase_ == 2) { + output.writeMessage(2, (trinsic.services.connect.v1.GovernmentIDOptions) options_); + } getUnknownFields().writeTo(output); } @@ -117,6 +216,11 @@ public int getSerializedSize() { if (type_ != trinsic.services.connect.v1.VerificationType.GOVERNMENT_ID.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); } + if (optionsCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (trinsic.services.connect.v1.GovernmentIDOptions) options_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -134,6 +238,14 @@ public boolean equals(final java.lang.Object obj) { (trinsic.services.connect.v1.RequestedVerification) obj; if (type_ != other.type_) return false; + if (!getOptionsCase().equals(other.getOptionsCase())) return false; + switch (optionsCase_) { + case 2: + if (!getGovernmentIdOptions().equals(other.getGovernmentIdOptions())) return false; + break; + case 0: + default: + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -147,6 +259,14 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; + switch (optionsCase_) { + case 2: + hash = (37 * hash) + GOVERNMENT_ID_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getGovernmentIdOptions().hashCode(); + break; + case 0: + default: + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -287,6 +407,11 @@ public Builder clear() { super.clear(); type_ = 0; + if (governmentIdOptionsBuilder_ != null) { + governmentIdOptionsBuilder_.clear(); + } + optionsCase_ = 0; + options_ = null; return this; } @@ -315,6 +440,14 @@ public trinsic.services.connect.v1.RequestedVerification buildPartial() { trinsic.services.connect.v1.RequestedVerification result = new trinsic.services.connect.v1.RequestedVerification(this); result.type_ = type_; + if (optionsCase_ == 2) { + if (governmentIdOptionsBuilder_ == null) { + result.options_ = options_; + } else { + result.options_ = governmentIdOptionsBuilder_.build(); + } + } + result.optionsCase_ = optionsCase_; onBuilt(); return result; } @@ -368,6 +501,17 @@ public Builder mergeFrom(trinsic.services.connect.v1.RequestedVerification other if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } + switch (other.getOptionsCase()) { + case GOVERNMENT_ID_OPTIONS: + { + mergeGovernmentIdOptions(other.getGovernmentIdOptions()); + break; + } + case OPTIONS_NOT_SET: + { + break; + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -400,6 +544,13 @@ public Builder mergeFrom( break; } // case 8 + case 18: + { + input.readMessage( + getGovernmentIdOptionsFieldBuilder().getBuilder(), extensionRegistry); + optionsCase_ = 2; + break; + } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -417,6 +568,20 @@ public Builder mergeFrom( return this; } + private int optionsCase_ = 0; + private java.lang.Object options_; + + public OptionsCase getOptionsCase() { + return OptionsCase.forNumber(optionsCase_); + } + + public Builder clearOptions() { + optionsCase_ = 0; + options_ = null; + onChanged(); + return this; + } + private int type_ = 0; /** * @@ -508,6 +673,217 @@ public Builder clearType() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< + trinsic.services.connect.v1.GovernmentIDOptions, + trinsic.services.connect.v1.GovernmentIDOptions.Builder, + trinsic.services.connect.v1.GovernmentIDOptionsOrBuilder> + governmentIdOptionsBuilder_; + /** + * + * + *
+     * Options for a Verification of type `GOVERNMENT_ID`
+     * 
+ * + * .services.connect.v1.GovernmentIDOptions government_id_options = 2; + * + * @return Whether the governmentIdOptions field is set. + */ + @java.lang.Override + public boolean hasGovernmentIdOptions() { + return optionsCase_ == 2; + } + /** + * + * + *
+     * Options for a Verification of type `GOVERNMENT_ID`
+     * 
+ * + * .services.connect.v1.GovernmentIDOptions government_id_options = 2; + * + * @return The governmentIdOptions. + */ + @java.lang.Override + public trinsic.services.connect.v1.GovernmentIDOptions getGovernmentIdOptions() { + if (governmentIdOptionsBuilder_ == null) { + if (optionsCase_ == 2) { + return (trinsic.services.connect.v1.GovernmentIDOptions) options_; + } + return trinsic.services.connect.v1.GovernmentIDOptions.getDefaultInstance(); + } else { + if (optionsCase_ == 2) { + return governmentIdOptionsBuilder_.getMessage(); + } + return trinsic.services.connect.v1.GovernmentIDOptions.getDefaultInstance(); + } + } + /** + * + * + *
+     * Options for a Verification of type `GOVERNMENT_ID`
+     * 
+ * + * .services.connect.v1.GovernmentIDOptions government_id_options = 2; + */ + public Builder setGovernmentIdOptions(trinsic.services.connect.v1.GovernmentIDOptions value) { + if (governmentIdOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + options_ = value; + onChanged(); + } else { + governmentIdOptionsBuilder_.setMessage(value); + } + optionsCase_ = 2; + return this; + } + /** + * + * + *
+     * Options for a Verification of type `GOVERNMENT_ID`
+     * 
+ * + * .services.connect.v1.GovernmentIDOptions government_id_options = 2; + */ + public Builder setGovernmentIdOptions( + trinsic.services.connect.v1.GovernmentIDOptions.Builder builderForValue) { + if (governmentIdOptionsBuilder_ == null) { + options_ = builderForValue.build(); + onChanged(); + } else { + governmentIdOptionsBuilder_.setMessage(builderForValue.build()); + } + optionsCase_ = 2; + return this; + } + /** + * + * + *
+     * Options for a Verification of type `GOVERNMENT_ID`
+     * 
+ * + * .services.connect.v1.GovernmentIDOptions government_id_options = 2; + */ + public Builder mergeGovernmentIdOptions(trinsic.services.connect.v1.GovernmentIDOptions value) { + if (governmentIdOptionsBuilder_ == null) { + if (optionsCase_ == 2 + && options_ != trinsic.services.connect.v1.GovernmentIDOptions.getDefaultInstance()) { + options_ = + trinsic.services.connect.v1.GovernmentIDOptions.newBuilder( + (trinsic.services.connect.v1.GovernmentIDOptions) options_) + .mergeFrom(value) + .buildPartial(); + } else { + options_ = value; + } + onChanged(); + } else { + if (optionsCase_ == 2) { + governmentIdOptionsBuilder_.mergeFrom(value); + } else { + governmentIdOptionsBuilder_.setMessage(value); + } + } + optionsCase_ = 2; + return this; + } + /** + * + * + *
+     * Options for a Verification of type `GOVERNMENT_ID`
+     * 
+ * + * .services.connect.v1.GovernmentIDOptions government_id_options = 2; + */ + public Builder clearGovernmentIdOptions() { + if (governmentIdOptionsBuilder_ == null) { + if (optionsCase_ == 2) { + optionsCase_ = 0; + options_ = null; + onChanged(); + } + } else { + if (optionsCase_ == 2) { + optionsCase_ = 0; + options_ = null; + } + governmentIdOptionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Options for a Verification of type `GOVERNMENT_ID`
+     * 
+ * + * .services.connect.v1.GovernmentIDOptions government_id_options = 2; + */ + public trinsic.services.connect.v1.GovernmentIDOptions.Builder getGovernmentIdOptionsBuilder() { + return getGovernmentIdOptionsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Options for a Verification of type `GOVERNMENT_ID`
+     * 
+ * + * .services.connect.v1.GovernmentIDOptions government_id_options = 2; + */ + @java.lang.Override + public trinsic.services.connect.v1.GovernmentIDOptionsOrBuilder + getGovernmentIdOptionsOrBuilder() { + if ((optionsCase_ == 2) && (governmentIdOptionsBuilder_ != null)) { + return governmentIdOptionsBuilder_.getMessageOrBuilder(); + } else { + if (optionsCase_ == 2) { + return (trinsic.services.connect.v1.GovernmentIDOptions) options_; + } + return trinsic.services.connect.v1.GovernmentIDOptions.getDefaultInstance(); + } + } + /** + * + * + *
+     * Options for a Verification of type `GOVERNMENT_ID`
+     * 
+ * + * .services.connect.v1.GovernmentIDOptions government_id_options = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + trinsic.services.connect.v1.GovernmentIDOptions, + trinsic.services.connect.v1.GovernmentIDOptions.Builder, + trinsic.services.connect.v1.GovernmentIDOptionsOrBuilder> + getGovernmentIdOptionsFieldBuilder() { + if (governmentIdOptionsBuilder_ == null) { + if (!(optionsCase_ == 2)) { + options_ = trinsic.services.connect.v1.GovernmentIDOptions.getDefaultInstance(); + } + governmentIdOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + trinsic.services.connect.v1.GovernmentIDOptions, + trinsic.services.connect.v1.GovernmentIDOptions.Builder, + trinsic.services.connect.v1.GovernmentIDOptionsOrBuilder>( + (trinsic.services.connect.v1.GovernmentIDOptions) options_, + getParentForChildren(), + isClean()); + options_ = null; + } + optionsCase_ = 2; + onChanged(); + ; + return governmentIdOptionsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java/src/main/java/trinsic/services/connect/v1/RequestedVerificationOrBuilder.java b/java/src/main/java/trinsic/services/connect/v1/RequestedVerificationOrBuilder.java index 79531e507..7e2901772 100644 --- a/java/src/main/java/trinsic/services/connect/v1/RequestedVerificationOrBuilder.java +++ b/java/src/main/java/trinsic/services/connect/v1/RequestedVerificationOrBuilder.java @@ -32,4 +32,41 @@ public interface RequestedVerificationOrBuilder * @return The type. */ trinsic.services.connect.v1.VerificationType getType(); + + /** + * + * + *
+   * Options for a Verification of type `GOVERNMENT_ID`
+   * 
+ * + * .services.connect.v1.GovernmentIDOptions government_id_options = 2; + * + * @return Whether the governmentIdOptions field is set. + */ + boolean hasGovernmentIdOptions(); + /** + * + * + *
+   * Options for a Verification of type `GOVERNMENT_ID`
+   * 
+ * + * .services.connect.v1.GovernmentIDOptions government_id_options = 2; + * + * @return The governmentIdOptions. + */ + trinsic.services.connect.v1.GovernmentIDOptions getGovernmentIdOptions(); + /** + * + * + *
+   * Options for a Verification of type `GOVERNMENT_ID`
+   * 
+ * + * .services.connect.v1.GovernmentIDOptions government_id_options = 2; + */ + trinsic.services.connect.v1.GovernmentIDOptionsOrBuilder getGovernmentIdOptionsOrBuilder(); + + public trinsic.services.connect.v1.RequestedVerification.OptionsCase getOptionsCase(); } diff --git a/java/src/main/java/trinsic/services/connect/v1/Verification.java b/java/src/main/java/trinsic/services/connect/v1/Verification.java index d7ba3422f..dfececbb3 100644 --- a/java/src/main/java/trinsic/services/connect/v1/Verification.java +++ b/java/src/main/java/trinsic/services/connect/v1/Verification.java @@ -275,7 +275,8 @@ public long getBegun() { * * *
-   * The unix timestamp, in seconds, when this verification last changed state -- o
+   * The unix timestamp, in seconds, when this verification last changed state -- or `0` if it has not yet
+   * begun.
    * 
* * fixed64 updated = 7; @@ -287,6 +288,60 @@ public long getUpdated() { return updated_; } + public static final int GOVERNMENT_ID_OPTIONS_FIELD_NUMBER = 8; + private trinsic.services.connect.v1.GovernmentIDOptions governmentIdOptions_; + /** + * + * + *
+   * The Government ID options for this Verification.
+   * Only set if this Verification is of type `GOVERNMENT_ID`.
+   * 
+ * + * optional .services.connect.v1.GovernmentIDOptions government_id_options = 8; + * + * @return Whether the governmentIdOptions field is set. + */ + @java.lang.Override + public boolean hasGovernmentIdOptions() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * The Government ID options for this Verification.
+   * Only set if this Verification is of type `GOVERNMENT_ID`.
+   * 
+ * + * optional .services.connect.v1.GovernmentIDOptions government_id_options = 8; + * + * @return The governmentIdOptions. + */ + @java.lang.Override + public trinsic.services.connect.v1.GovernmentIDOptions getGovernmentIdOptions() { + return governmentIdOptions_ == null + ? trinsic.services.connect.v1.GovernmentIDOptions.getDefaultInstance() + : governmentIdOptions_; + } + /** + * + * + *
+   * The Government ID options for this Verification.
+   * Only set if this Verification is of type `GOVERNMENT_ID`.
+   * 
+ * + * optional .services.connect.v1.GovernmentIDOptions government_id_options = 8; + */ + @java.lang.Override + public trinsic.services.connect.v1.GovernmentIDOptionsOrBuilder + getGovernmentIdOptionsOrBuilder() { + return governmentIdOptions_ == null + ? trinsic.services.connect.v1.GovernmentIDOptions.getDefaultInstance() + : governmentIdOptions_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -322,6 +377,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updated_ != 0L) { output.writeFixed64(7, updated_); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(8, getGovernmentIdOptions()); + } getUnknownFields().writeTo(output); } @@ -352,6 +410,9 @@ public int getSerializedSize() { if (updated_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeFixed64Size(7, updated_); } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getGovernmentIdOptions()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -377,6 +438,10 @@ public boolean equals(final java.lang.Object obj) { if (getReused() != other.getReused()) return false; if (getBegun() != other.getBegun()) return false; if (getUpdated() != other.getUpdated()) return false; + if (hasGovernmentIdOptions() != other.hasGovernmentIdOptions()) return false; + if (hasGovernmentIdOptions()) { + if (!getGovernmentIdOptions().equals(other.getGovernmentIdOptions())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -404,6 +469,10 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBegun()); hash = (37 * hash) + UPDATED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUpdated()); + if (hasGovernmentIdOptions()) { + hash = (37 * hash) + GOVERNMENT_ID_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getGovernmentIdOptions().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -533,10 +602,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using trinsic.services.connect.v1.Verification.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getGovernmentIdOptionsFieldBuilder(); + } } @java.lang.Override @@ -556,6 +634,12 @@ public Builder clear() { updated_ = 0L; + if (governmentIdOptionsBuilder_ == null) { + governmentIdOptions_ = null; + } else { + governmentIdOptionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -595,6 +679,14 @@ public trinsic.services.connect.v1.Verification buildPartial() { result.reused_ = reused_; result.begun_ = begun_; result.updated_ = updated_; + if (((from_bitField0_ & 0x00000002) != 0)) { + if (governmentIdOptionsBuilder_ == null) { + result.governmentIdOptions_ = governmentIdOptions_; + } else { + result.governmentIdOptions_ = governmentIdOptionsBuilder_.build(); + } + to_bitField0_ |= 0x00000002; + } result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -667,6 +759,9 @@ public Builder mergeFrom(trinsic.services.connect.v1.Verification other) { if (other.getUpdated() != 0L) { setUpdated(other.getUpdated()); } + if (other.hasGovernmentIdOptions()) { + mergeGovernmentIdOptions(other.getGovernmentIdOptions()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -735,6 +830,13 @@ public Builder mergeFrom( break; } // case 57 + case 66: + { + input.readMessage( + getGovernmentIdOptionsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1271,7 +1373,8 @@ public Builder clearBegun() { * * *
-     * The unix timestamp, in seconds, when this verification last changed state -- o
+     * The unix timestamp, in seconds, when this verification last changed state -- or `0` if it has not yet
+     * begun.
      * 
* * fixed64 updated = 7; @@ -1286,7 +1389,8 @@ public long getUpdated() { * * *
-     * The unix timestamp, in seconds, when this verification last changed state -- o
+     * The unix timestamp, in seconds, when this verification last changed state -- or `0` if it has not yet
+     * begun.
      * 
* * fixed64 updated = 7; @@ -1304,7 +1408,8 @@ public Builder setUpdated(long value) { * * *
-     * The unix timestamp, in seconds, when this verification last changed state -- o
+     * The unix timestamp, in seconds, when this verification last changed state -- or `0` if it has not yet
+     * begun.
      * 
* * fixed64 updated = 7; @@ -1318,6 +1423,204 @@ public Builder clearUpdated() { return this; } + private trinsic.services.connect.v1.GovernmentIDOptions governmentIdOptions_; + private com.google.protobuf.SingleFieldBuilderV3< + trinsic.services.connect.v1.GovernmentIDOptions, + trinsic.services.connect.v1.GovernmentIDOptions.Builder, + trinsic.services.connect.v1.GovernmentIDOptionsOrBuilder> + governmentIdOptionsBuilder_; + /** + * + * + *
+     * The Government ID options for this Verification.
+     * Only set if this Verification is of type `GOVERNMENT_ID`.
+     * 
+ * + * optional .services.connect.v1.GovernmentIDOptions government_id_options = 8; + * + * @return Whether the governmentIdOptions field is set. + */ + public boolean hasGovernmentIdOptions() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * The Government ID options for this Verification.
+     * Only set if this Verification is of type `GOVERNMENT_ID`.
+     * 
+ * + * optional .services.connect.v1.GovernmentIDOptions government_id_options = 8; + * + * @return The governmentIdOptions. + */ + public trinsic.services.connect.v1.GovernmentIDOptions getGovernmentIdOptions() { + if (governmentIdOptionsBuilder_ == null) { + return governmentIdOptions_ == null + ? trinsic.services.connect.v1.GovernmentIDOptions.getDefaultInstance() + : governmentIdOptions_; + } else { + return governmentIdOptionsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The Government ID options for this Verification.
+     * Only set if this Verification is of type `GOVERNMENT_ID`.
+     * 
+ * + * optional .services.connect.v1.GovernmentIDOptions government_id_options = 8; + */ + public Builder setGovernmentIdOptions(trinsic.services.connect.v1.GovernmentIDOptions value) { + if (governmentIdOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + governmentIdOptions_ = value; + onChanged(); + } else { + governmentIdOptionsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + * + * + *
+     * The Government ID options for this Verification.
+     * Only set if this Verification is of type `GOVERNMENT_ID`.
+     * 
+ * + * optional .services.connect.v1.GovernmentIDOptions government_id_options = 8; + */ + public Builder setGovernmentIdOptions( + trinsic.services.connect.v1.GovernmentIDOptions.Builder builderForValue) { + if (governmentIdOptionsBuilder_ == null) { + governmentIdOptions_ = builderForValue.build(); + onChanged(); + } else { + governmentIdOptionsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + return this; + } + /** + * + * + *
+     * The Government ID options for this Verification.
+     * Only set if this Verification is of type `GOVERNMENT_ID`.
+     * 
+ * + * optional .services.connect.v1.GovernmentIDOptions government_id_options = 8; + */ + public Builder mergeGovernmentIdOptions(trinsic.services.connect.v1.GovernmentIDOptions value) { + if (governmentIdOptionsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && governmentIdOptions_ != null + && governmentIdOptions_ + != trinsic.services.connect.v1.GovernmentIDOptions.getDefaultInstance()) { + governmentIdOptions_ = + trinsic.services.connect.v1.GovernmentIDOptions.newBuilder(governmentIdOptions_) + .mergeFrom(value) + .buildPartial(); + } else { + governmentIdOptions_ = value; + } + onChanged(); + } else { + governmentIdOptionsBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + * + * + *
+     * The Government ID options for this Verification.
+     * Only set if this Verification is of type `GOVERNMENT_ID`.
+     * 
+ * + * optional .services.connect.v1.GovernmentIDOptions government_id_options = 8; + */ + public Builder clearGovernmentIdOptions() { + if (governmentIdOptionsBuilder_ == null) { + governmentIdOptions_ = null; + onChanged(); + } else { + governmentIdOptionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + /** + * + * + *
+     * The Government ID options for this Verification.
+     * Only set if this Verification is of type `GOVERNMENT_ID`.
+     * 
+ * + * optional .services.connect.v1.GovernmentIDOptions government_id_options = 8; + */ + public trinsic.services.connect.v1.GovernmentIDOptions.Builder getGovernmentIdOptionsBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getGovernmentIdOptionsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The Government ID options for this Verification.
+     * Only set if this Verification is of type `GOVERNMENT_ID`.
+     * 
+ * + * optional .services.connect.v1.GovernmentIDOptions government_id_options = 8; + */ + public trinsic.services.connect.v1.GovernmentIDOptionsOrBuilder + getGovernmentIdOptionsOrBuilder() { + if (governmentIdOptionsBuilder_ != null) { + return governmentIdOptionsBuilder_.getMessageOrBuilder(); + } else { + return governmentIdOptions_ == null + ? trinsic.services.connect.v1.GovernmentIDOptions.getDefaultInstance() + : governmentIdOptions_; + } + } + /** + * + * + *
+     * The Government ID options for this Verification.
+     * Only set if this Verification is of type `GOVERNMENT_ID`.
+     * 
+ * + * optional .services.connect.v1.GovernmentIDOptions government_id_options = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + trinsic.services.connect.v1.GovernmentIDOptions, + trinsic.services.connect.v1.GovernmentIDOptions.Builder, + trinsic.services.connect.v1.GovernmentIDOptionsOrBuilder> + getGovernmentIdOptionsFieldBuilder() { + if (governmentIdOptionsBuilder_ == null) { + governmentIdOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + trinsic.services.connect.v1.GovernmentIDOptions, + trinsic.services.connect.v1.GovernmentIDOptions.Builder, + trinsic.services.connect.v1.GovernmentIDOptionsOrBuilder>( + getGovernmentIdOptions(), getParentForChildren(), isClean()); + governmentIdOptions_ = null; + } + return governmentIdOptionsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java/src/main/java/trinsic/services/connect/v1/VerificationOrBuilder.java b/java/src/main/java/trinsic/services/connect/v1/VerificationOrBuilder.java index 8436f3956..4b2592e0d 100644 --- a/java/src/main/java/trinsic/services/connect/v1/VerificationOrBuilder.java +++ b/java/src/main/java/trinsic/services/connect/v1/VerificationOrBuilder.java @@ -155,7 +155,8 @@ public interface VerificationOrBuilder * * *
-   * The unix timestamp, in seconds, when this verification last changed state -- o
+   * The unix timestamp, in seconds, when this verification last changed state -- or `0` if it has not yet
+   * begun.
    * 
* * fixed64 updated = 7; @@ -163,4 +164,42 @@ public interface VerificationOrBuilder * @return The updated. */ long getUpdated(); + + /** + * + * + *
+   * The Government ID options for this Verification.
+   * Only set if this Verification is of type `GOVERNMENT_ID`.
+   * 
+ * + * optional .services.connect.v1.GovernmentIDOptions government_id_options = 8; + * + * @return Whether the governmentIdOptions field is set. + */ + boolean hasGovernmentIdOptions(); + /** + * + * + *
+   * The Government ID options for this Verification.
+   * Only set if this Verification is of type `GOVERNMENT_ID`.
+   * 
+ * + * optional .services.connect.v1.GovernmentIDOptions government_id_options = 8; + * + * @return The governmentIdOptions. + */ + trinsic.services.connect.v1.GovernmentIDOptions getGovernmentIdOptions(); + /** + * + * + *
+   * The Government ID options for this Verification.
+   * Only set if this Verification is of type `GOVERNMENT_ID`.
+   * 
+ * + * optional .services.connect.v1.GovernmentIDOptions government_id_options = 8; + */ + trinsic.services.connect.v1.GovernmentIDOptionsOrBuilder getGovernmentIdOptionsOrBuilder(); } diff --git a/java/src/test/java/trinsic/WalletsDemo.java b/java/src/test/java/trinsic/WalletsDemo.java index 6fe15e0ad..433c563da 100644 --- a/java/src/test/java/trinsic/WalletsDemo.java +++ b/java/src/test/java/trinsic/WalletsDemo.java @@ -1,15 +1,14 @@ package trinsic; +import io.grpc.StatusRuntimeException; import java.io.IOException; import java.util.concurrent.ExecutionException; - -import io.grpc.StatusRuntimeException; import org.junit.jupiter.api.Assertions; import trinsic.services.TrinsicService; import trinsic.services.provider.v1.CreateEcosystemRequest; -import trinsic.services.universalwallet.v1.*; -import trinsic.services.provider.v1.WalletExternalIdentity; import trinsic.services.provider.v1.IdentityProvider; +import trinsic.services.provider.v1.WalletExternalIdentity; +import trinsic.services.universalwallet.v1.*; public class WalletsDemo { public static void main(String[] args) @@ -56,29 +55,36 @@ public static void run() throws IOException, ExecutionException, InterruptedExce trinsic.setAuthToken(ecosystemResponse.getProfile()); // getWalletInfo() { - var getWalletInfoResponse = trinsic.wallet().getWalletInfo( - GetWalletInfoRequest.newBuilder().setWalletId(walletId).build() - ).get(); - // } - - try { - // getWalletFromExternalIdentity() { - var getWalletFromExternalIdentityResponse = trinsic.wallet().getWalletFromExternalIdentity( - GetWalletFromExternalIdentityRequest.newBuilder().setIdentity( - WalletExternalIdentity.newBuilder() - .setId("test@trinsic.id") - .setProvider(IdentityProvider.Email) - .build()).build() - ).get(); - // } - } catch (ExecutionException ee) { - if (ee.getCause() instanceof StatusRuntimeException) { - // This is expected - } else { - throw ee; - } + var getWalletInfoResponse = + trinsic + .wallet() + .getWalletInfo(GetWalletInfoRequest.newBuilder().setWalletId(walletId).build()) + .get(); + // } + + try { + // getWalletFromExternalIdentity() { + var getWalletFromExternalIdentityResponse = + trinsic + .wallet() + .getWalletFromExternalIdentity( + GetWalletFromExternalIdentityRequest.newBuilder() + .setIdentity( + WalletExternalIdentity.newBuilder() + .setId("test@trinsic.id") + .setProvider(IdentityProvider.Email) + .build()) + .build()) + .get(); + // } + } catch (ExecutionException ee) { + if (ee.getCause() instanceof StatusRuntimeException) { + // This is expected + } else { + throw ee; } - trinsic.setAuthToken(account.getAuthToken()); + } + trinsic.setAuthToken(account.getAuthToken()); // Abuse scope to allow redeclaration of walletItems for docs injection niceness { // searchWalletBasic() { diff --git a/proto/services/connect/v1/connect.proto b/proto/services/connect/v1/connect.proto index eabd84e49..b0406ef70 100644 --- a/proto/services/connect/v1/connect.proto +++ b/proto/services/connect/v1/connect.proto @@ -148,8 +148,13 @@ message Verification { // by the user -- or `0` if not yet begun. fixed64 begun = 6; - // The unix timestamp, in seconds, when this verification last changed state -- o + // The unix timestamp, in seconds, when this verification last changed state -- or `0` if it has not yet + // begun. fixed64 updated = 7; + + // The Government ID options for this Verification. + // Only set if this Verification is of type `GOVERNMENT_ID`. + optional GovernmentIDOptions government_id_options = 8; } // Request to create an Identity Verification Session @@ -162,6 +167,45 @@ message CreateSessionRequest { message RequestedVerification { // The type of verification to perform VerificationType type = 1; + + oneof options { + // Options for a Verification of type `GOVERNMENT_ID` + GovernmentIDOptions government_id_options = 2; + } +} + +// Options for a Verification of type `GOVERNMENT_ID` +message GovernmentIDOptions { + // The fields to retrieve from the Government ID. + // If this object is not set, all fields will be retrieved. + GovernmentIDFields fields = 1; +} + +// Selection of fields to retrieve from a Government ID. All fields default to `false` unless explicitly set to `true`. +message GovernmentIDFields { + // ID number of the underlying identity document + bool id_number = 1; + + // Given ("first") name of the document holder + bool given_name = 2; + + // Family ("last") name of the document holder + bool family_name = 3; + + // Full address of the document holder + bool address = 4; + + // Date of birth of the document holder + bool date_of_birth = 5; + + // ISO3 country code of the document + bool country = 6; + + // Issuance date of the document + bool issue_date = 7; + + // Expiration date date of the document + bool expiration_date = 8; } // Response to `CreateIDVSessionRequest` diff --git a/python/trinsic/proto/services/connect/v1/__init__.py b/python/trinsic/proto/services/connect/v1/__init__.py index 20ebf2f52..2bde10732 100644 --- a/python/trinsic/proto/services/connect/v1/__init__.py +++ b/python/trinsic/proto/services/connect/v1/__init__.py @@ -239,7 +239,15 @@ class Verification(betterproto.Message): updated: int = betterproto.fixed64_field(7) """ The unix timestamp, in seconds, when this verification last changed state - -- o + -- or `0` if it has not yet begun. + """ + + government_id_options: Optional["GovernmentIdOptions"] = betterproto.message_field( + 8, optional=True, group="_government_id_options" + ) + """ + The Government ID options for this Verification. Only set if this + Verification is of type `GOVERNMENT_ID`. """ @@ -258,6 +266,54 @@ class RequestedVerification(betterproto.Message): type: "VerificationType" = betterproto.enum_field(1) """The type of verification to perform""" + government_id_options: "GovernmentIdOptions" = betterproto.message_field( + 2, group="options" + ) + """Options for a Verification of type `GOVERNMENT_ID`""" + + +@dataclass(eq=False, repr=False) +class GovernmentIdOptions(betterproto.Message): + """Options for a Verification of type `GOVERNMENT_ID`""" + + fields: "GovernmentIdFields" = betterproto.message_field(1) + """ + The fields to retrieve from the Government ID. If this object is not set, + all fields will be retrieved. + """ + + +@dataclass(eq=False, repr=False) +class GovernmentIdFields(betterproto.Message): + """ + Selection of fields to retrieve from a Government ID. All fields default to + `false` unless explicitly set to `true`. + """ + + id_number: bool = betterproto.bool_field(1) + """ID number of the underlying identity document""" + + given_name: bool = betterproto.bool_field(2) + """Given ("first") name of the document holder""" + + family_name: bool = betterproto.bool_field(3) + """Family ("last") name of the document holder""" + + address: bool = betterproto.bool_field(4) + """Full address of the document holder""" + + date_of_birth: bool = betterproto.bool_field(5) + """Date of birth of the document holder""" + + country: bool = betterproto.bool_field(6) + """ISO3 country code of the document""" + + issue_date: bool = betterproto.bool_field(7) + """Issuance date of the document""" + + expiration_date: bool = betterproto.bool_field(8) + """Expiration date date of the document""" + @dataclass(eq=False, repr=False) class CreateSessionResponse(betterproto.Message): diff --git a/web/src/WalletService.ts b/web/src/WalletService.ts index 251170c49..ac8554dbc 100644 --- a/web/src/WalletService.ts +++ b/web/src/WalletService.ts @@ -25,61 +25,61 @@ export class WalletService extends ServiceBase { ): Promise { return this.search(request); } - // BEGIN Code generated by protoc-gen-trinsic. DO NOT EDIT. - // target: /home/runner/work/sdk/sdk/web/src/WalletService.ts +// BEGIN Code generated by protoc-gen-trinsic. DO NOT EDIT. +// target: /home/runner/work/sdk/sdk/web/src/WalletService.ts /** Retrieve an item from the wallet with a given item identifier */ public async getItem(request: proto.GetItemRequest): Promise { - + return this.client.getItem(request, { metadata: await this.buildMetadata(proto.GetItemRequest.encode(request).finish()) }); } /** Search the wallet using a SQL syntax */ public async search(request: proto.SearchRequest): Promise { - + return this.client.search(request, { metadata: await this.buildMetadata(proto.SearchRequest.encode(request).finish()) }); } /** Insert an item into the wallet */ public async insertItem(request: proto.InsertItemRequest): Promise { - + return this.client.insertItem(request, { metadata: await this.buildMetadata(proto.InsertItemRequest.encode(request).finish()) }); } /** Update an item in the wallet */ public async updateItem(request: proto.UpdateItemRequest): Promise { - + return this.client.updateItem(request, { metadata: await this.buildMetadata(proto.UpdateItemRequest.encode(request).finish()) }); } /** Delete an item from the wallet permanently */ public async deleteItem(request: proto.DeleteItemRequest): Promise { - + return this.client.deleteItem(request, { metadata: await this.buildMetadata(proto.DeleteItemRequest.encode(request).finish()) }); } /** Delete a wallet and its credentials */ public async deleteWallet(request: proto.DeleteWalletRequest): Promise { - + return this.client.deleteWallet(request, { metadata: await this.buildMetadata(proto.DeleteWalletRequest.encode(request).finish()) }); } /** Create a new wallet and generate an auth token for access */ public async createWallet(request: proto.CreateWalletRequest): Promise { - + return this.client.createWallet(request, { metadata: await this.buildMetadata(proto.CreateWalletRequest.encode(request).finish()) }); } /** Retrieve wallet details and configuration */ public async getWalletInfo(request: proto.GetWalletInfoRequest): Promise { - + return this.client.getWalletInfo(request, { metadata: await this.buildMetadata(proto.GetWalletInfoRequest.encode(request).finish()) }); @@ -93,7 +93,7 @@ export class WalletService extends ServiceBase { } /** Retrieve information from an ecosystem wallet by searching for its external identity (email or phone) */ public async getWalletFromExternalIdentity(request: proto.GetWalletFromExternalIdentityRequest): Promise { - + return this.client.getWalletFromExternalIdentity(request, { metadata: await this.buildMetadata(proto.GetWalletFromExternalIdentityRequest.encode(request).finish()) }); @@ -103,7 +103,7 @@ export class WalletService extends ServiceBase { * Use this endpoint if you want to authorize another device, without having to share your * existing auth token. */ public async generateAuthToken(request: proto.GenerateAuthTokenRequest): Promise { - + return this.client.generateAuthToken(request, { metadata: await this.buildMetadata(proto.GenerateAuthTokenRequest.encode(request).finish()) }); @@ -111,7 +111,7 @@ export class WalletService extends ServiceBase { /** Revokes a previously issued auth token and updates the collection of known auth tokens. * This endpoint requires authentication. */ public async revokeAuthToken(request: proto.RevokeAuthTokenRequest): Promise { - + return this.client.revokeAuthToken(request, { metadata: await this.buildMetadata(proto.RevokeAuthTokenRequest.encode(request).finish()) }); @@ -119,21 +119,21 @@ export class WalletService extends ServiceBase { /** Add new external identity to the current wallet, such as email, sms, ethereum address, etc. * This identity ownership must be confirmed using `AddIdentityConfirm` via OTP, signature, etc. */ public async addExternalIdentityInit(request: proto.AddExternalIdentityInitRequest): Promise { - + return this.client.addExternalIdentityInit(request, { metadata: await this.buildMetadata(proto.AddExternalIdentityInitRequest.encode(request).finish()) }); } /** Confirm identity added to the current wallet using `AddExternalIdentityInit` */ public async addExternalIdentityConfirm(request: proto.AddExternalIdentityConfirmRequest): Promise { - + return this.client.addExternalIdentityConfirm(request, { metadata: await this.buildMetadata(proto.AddExternalIdentityConfirmRequest.encode(request).finish()) }); } /** Remove an external identity from the current wallet */ public async removeExternalIdentity(request: proto.RemoveExternalIdentityRequest): Promise { - + return this.client.removeExternalIdentity(request, { metadata: await this.buildMetadata(proto.RemoveExternalIdentityRequest.encode(request).finish()) }); @@ -141,38 +141,38 @@ export class WalletService extends ServiceBase { /** Sign-in to an already existing wallet, using an identity added that was previously registered * This endpoint does not require authentication, and will return a challenge to be signed or verified */ public async authenticateInit(request: proto.AuthenticateInitRequest): Promise { - + return this.client.authenticateInit(request, { metadata: await this.buildMetadata(proto.AuthenticateInitRequest.encode(request).finish()) }); } /** Confirm sign-in to an already existing wallet and return authentication token */ public async authenticateConfirm(request: proto.AuthenticateConfirmRequest): Promise { - + return this.client.authenticateConfirm(request, { metadata: await this.buildMetadata(proto.AuthenticateConfirmRequest.encode(request).finish()) }); } /** Resend previous authentication code */ public async authenticateResendCode(request: proto.AuthenticateResendCodeRequest): Promise { - + return this.client.authenticateResendCode(request, { metadata: await this.buildMetadata(proto.AuthenticateResendCodeRequest.encode(request).finish()) }); } /** List all wallets in the ecosystem */ public async listWallets(request: proto.ListWalletsRequest): Promise { - + return this.client.listWallets(request, { metadata: await this.buildMetadata(proto.ListWalletsRequest.encode(request).finish()) }); } /** List credentials which match a given verification template */ public async listByVerificationTemplate(request: proto.ListByVerificationTemplateRequest): Promise { - + return this.client.listByVerificationTemplate(request, { metadata: await this.buildMetadata(proto.ListByVerificationTemplateRequest.encode(request).finish()) }); } - // END Code generated by protoc-gen-trinsic. DO NOT EDIT. +// END Code generated by protoc-gen-trinsic. DO NOT EDIT. } diff --git a/web/src/proto/google/protobuf/descriptor.ts b/web/src/proto/google/protobuf/descriptor.ts index ee1ea80b1..a960cf417 100644 --- a/web/src/proto/google/protobuf/descriptor.ts +++ b/web/src/proto/google/protobuf/descriptor.ts @@ -54,15 +54,9 @@ export interface FileDescriptorProto { | undefined; /** * The syntax of the proto file. - * The supported values are "proto2", "proto3", and "editions". - * - * If `edition` is present, this value must be "editions". + * The supported values are "proto2" and "proto3". */ - syntax?: - | string - | undefined; - /** The edition of the proto file, which is an opaque string. */ - edition?: string | undefined; + syntax?: string | undefined; } /** Describes a message type. */ @@ -111,97 +105,7 @@ export interface DescriptorProto_ReservedRange { export interface ExtensionRangeOptions { /** The parser stores options it doesn't recognize here. See above. */ - uninterpretedOption?: - | UninterpretedOption[] - | undefined; - /** - * For external users: DO NOT USE. We are in the process of open sourcing - * extension declaration and executing internal cleanups before it can be - * used externally. - */ - declaration?: - | ExtensionRangeOptions_Declaration[] - | undefined; - /** Any features defined in the specific edition. */ - features?: - | FeatureSet - | undefined; - /** - * The verification state of the range. - * TODO(b/278783756): flip the default to DECLARATION once all empty ranges - * are marked as UNVERIFIED. - */ - verification?: ExtensionRangeOptions_VerificationState | undefined; -} - -/** The verification state of the extension range. */ -export enum ExtensionRangeOptions_VerificationState { - /** DECLARATION - All the extensions of the range must be declared. */ - DECLARATION = 0, - UNVERIFIED = 1, - UNRECOGNIZED = -1, -} - -export function extensionRangeOptions_VerificationStateFromJSON(object: any): ExtensionRangeOptions_VerificationState { - switch (object) { - case 0: - case "DECLARATION": - return ExtensionRangeOptions_VerificationState.DECLARATION; - case 1: - case "UNVERIFIED": - return ExtensionRangeOptions_VerificationState.UNVERIFIED; - case -1: - case "UNRECOGNIZED": - default: - return ExtensionRangeOptions_VerificationState.UNRECOGNIZED; - } -} - -export function extensionRangeOptions_VerificationStateToJSON(object: ExtensionRangeOptions_VerificationState): string { - switch (object) { - case ExtensionRangeOptions_VerificationState.DECLARATION: - return "DECLARATION"; - case ExtensionRangeOptions_VerificationState.UNVERIFIED: - return "UNVERIFIED"; - case ExtensionRangeOptions_VerificationState.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} - -export interface ExtensionRangeOptions_Declaration { - /** The extension number declared within the extension range. */ - number?: - | number - | undefined; - /** - * The fully-qualified name of the extension field. There must be a leading - * dot in front of the full name. - */ - fullName?: - | string - | undefined; - /** - * The fully-qualified type name of the extension field. Unlike - * Metadata.type, Declaration.type must have a leading dot for messages - * and enums. - */ - type?: - | string - | undefined; - /** - * If true, indicates that the number is reserved in the extension range, - * and any extension field with the number will fail to compile. Set this - * when a declared extension field is deleted. - */ - reserved?: - | boolean - | undefined; - /** - * If true, indicates that the extension must be defined as repeated. - * Otherwise the extension must be defined as optional. - */ - repeated?: boolean | undefined; + uninterpretedOption?: UninterpretedOption[] | undefined; } /** Describes a field within a message. */ @@ -705,10 +609,6 @@ export interface FileOptions { rubyPackage?: | string | undefined; - /** Any features defined in the specific edition. */ - features?: - | FeatureSet - | undefined; /** * The parser stores options it doesn't recognize here. * See the documentation for the "Options" section above. @@ -801,10 +701,6 @@ export interface MessageOptions { | boolean | undefined; /** - * NOTE: Do not set the option in .proto files. Always use the maps syntax - * instead. The option should only be implicitly set by the proto compiler - * parser. - * * Whether the message is an automatically generated map entry type for the * maps field. * @@ -822,31 +718,14 @@ export interface MessageOptions { * use a native map in the target language to hold the keys and values. * The reflection APIs in such implementations still need to work as * if the field is a repeated message field. - */ - mapEntry?: - | boolean - | undefined; - /** - * Enable the legacy handling of JSON field name conflicts. This lowercases - * and strips underscored from the fields before comparison in proto3 only. - * The new behavior takes `json_name` into account and applies to proto2 as - * well. * - * This should only be used as a temporary measure against broken builds due - * to the change in behavior for JSON field name conflicts. - * - * TODO(b/261750190) This is legacy behavior we plan to remove once downstream - * teams have had time to migrate. - * - * @deprecated + * NOTE: Do not set the option in .proto files. Always use the maps syntax + * instead. The option should only be implicitly set by the proto compiler + * parser. */ - deprecatedLegacyJsonFieldConflicts?: + mapEntry?: | boolean | undefined; - /** Any features defined in the specific edition. */ - features?: - | FeatureSet - | undefined; /** The parser stores options it doesn't recognize here. See above. */ uninterpretedOption?: UninterpretedOption[] | undefined; } @@ -855,10 +734,8 @@ export interface FieldOptions { /** * The ctype option instructs the C++ code generator to use a different * representation of the field than it normally would. See the specific - * options below. This option is only implemented to support use of - * [ctype=CORD] and [ctype=STRING] (the default) on non-repeated fields of - * type "bytes" in the open source release -- sorry, we'll try to include - * other types in a future version! + * options below. This option is not yet implemented in the open source + * release -- sorry, we'll try to include it in a future version! */ ctype?: | FieldOptions_CType @@ -918,8 +795,11 @@ export interface FieldOptions { * check its required fields, regardless of whether or not the message has * been parsed. * - * As of May 2022, lazy verifies the contents of the byte stream during - * parsing. An invalid byte stream will cause the overall parsing to fail. + * As of 2021, lazy does no correctness checks on the byte stream during + * parsing. This may lead to crashes if and when an invalid byte stream is + * finally parsed upon access. + * + * TODO(b/211906113): Enable validation on lazy fields. */ lazy?: | boolean @@ -945,20 +825,6 @@ export interface FieldOptions { weak?: | boolean | undefined; - /** - * Indicate that the field value should not be printed out when using debug - * formats, e.g. when the field contains sensitive credentials. - */ - debugRedact?: boolean | undefined; - retention?: FieldOptions_OptionRetention | undefined; - targets?: FieldOptions_OptionTargetType[] | undefined; - editionDefaults?: - | FieldOptions_EditionDefault[] - | undefined; - /** Any features defined in the specific edition. */ - features?: - | FeatureSet - | undefined; /** The parser stores options it doesn't recognize here. See above. */ uninterpretedOption?: UninterpretedOption[] | undefined; } @@ -966,14 +832,6 @@ export interface FieldOptions { export enum FieldOptions_CType { /** STRING - Default mode. */ STRING = 0, - /** - * CORD - The option [ctype=CORD] may be applied to a non-repeated field of type - * "bytes". It indicates that in C++, the data should be stored in a Cord - * instead of a string. For very large strings, this may reduce memory - * fragmentation. It may also allow better performance when parsing from a - * Cord, or when parsing with aliasing enabled, as the parsed Cord may then - * alias the original buffer. - */ CORD = 1, STRING_PIECE = 2, UNRECOGNIZED = -1, @@ -1053,150 +911,7 @@ export function fieldOptions_JSTypeToJSON(object: FieldOptions_JSType): string { } } -/** - * If set to RETENTION_SOURCE, the option will be omitted from the binary. - * Note: as of January 2023, support for this is in progress and does not yet - * have an effect (b/264593489). - */ -export enum FieldOptions_OptionRetention { - RETENTION_UNKNOWN = 0, - RETENTION_RUNTIME = 1, - RETENTION_SOURCE = 2, - UNRECOGNIZED = -1, -} - -export function fieldOptions_OptionRetentionFromJSON(object: any): FieldOptions_OptionRetention { - switch (object) { - case 0: - case "RETENTION_UNKNOWN": - return FieldOptions_OptionRetention.RETENTION_UNKNOWN; - case 1: - case "RETENTION_RUNTIME": - return FieldOptions_OptionRetention.RETENTION_RUNTIME; - case 2: - case "RETENTION_SOURCE": - return FieldOptions_OptionRetention.RETENTION_SOURCE; - case -1: - case "UNRECOGNIZED": - default: - return FieldOptions_OptionRetention.UNRECOGNIZED; - } -} - -export function fieldOptions_OptionRetentionToJSON(object: FieldOptions_OptionRetention): string { - switch (object) { - case FieldOptions_OptionRetention.RETENTION_UNKNOWN: - return "RETENTION_UNKNOWN"; - case FieldOptions_OptionRetention.RETENTION_RUNTIME: - return "RETENTION_RUNTIME"; - case FieldOptions_OptionRetention.RETENTION_SOURCE: - return "RETENTION_SOURCE"; - case FieldOptions_OptionRetention.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} - -/** - * This indicates the types of entities that the field may apply to when used - * as an option. If it is unset, then the field may be freely used as an - * option on any kind of entity. Note: as of January 2023, support for this is - * in progress and does not yet have an effect (b/264593489). - */ -export enum FieldOptions_OptionTargetType { - TARGET_TYPE_UNKNOWN = 0, - TARGET_TYPE_FILE = 1, - TARGET_TYPE_EXTENSION_RANGE = 2, - TARGET_TYPE_MESSAGE = 3, - TARGET_TYPE_FIELD = 4, - TARGET_TYPE_ONEOF = 5, - TARGET_TYPE_ENUM = 6, - TARGET_TYPE_ENUM_ENTRY = 7, - TARGET_TYPE_SERVICE = 8, - TARGET_TYPE_METHOD = 9, - UNRECOGNIZED = -1, -} - -export function fieldOptions_OptionTargetTypeFromJSON(object: any): FieldOptions_OptionTargetType { - switch (object) { - case 0: - case "TARGET_TYPE_UNKNOWN": - return FieldOptions_OptionTargetType.TARGET_TYPE_UNKNOWN; - case 1: - case "TARGET_TYPE_FILE": - return FieldOptions_OptionTargetType.TARGET_TYPE_FILE; - case 2: - case "TARGET_TYPE_EXTENSION_RANGE": - return FieldOptions_OptionTargetType.TARGET_TYPE_EXTENSION_RANGE; - case 3: - case "TARGET_TYPE_MESSAGE": - return FieldOptions_OptionTargetType.TARGET_TYPE_MESSAGE; - case 4: - case "TARGET_TYPE_FIELD": - return FieldOptions_OptionTargetType.TARGET_TYPE_FIELD; - case 5: - case "TARGET_TYPE_ONEOF": - return FieldOptions_OptionTargetType.TARGET_TYPE_ONEOF; - case 6: - case "TARGET_TYPE_ENUM": - return FieldOptions_OptionTargetType.TARGET_TYPE_ENUM; - case 7: - case "TARGET_TYPE_ENUM_ENTRY": - return FieldOptions_OptionTargetType.TARGET_TYPE_ENUM_ENTRY; - case 8: - case "TARGET_TYPE_SERVICE": - return FieldOptions_OptionTargetType.TARGET_TYPE_SERVICE; - case 9: - case "TARGET_TYPE_METHOD": - return FieldOptions_OptionTargetType.TARGET_TYPE_METHOD; - case -1: - case "UNRECOGNIZED": - default: - return FieldOptions_OptionTargetType.UNRECOGNIZED; - } -} - -export function fieldOptions_OptionTargetTypeToJSON(object: FieldOptions_OptionTargetType): string { - switch (object) { - case FieldOptions_OptionTargetType.TARGET_TYPE_UNKNOWN: - return "TARGET_TYPE_UNKNOWN"; - case FieldOptions_OptionTargetType.TARGET_TYPE_FILE: - return "TARGET_TYPE_FILE"; - case FieldOptions_OptionTargetType.TARGET_TYPE_EXTENSION_RANGE: - return "TARGET_TYPE_EXTENSION_RANGE"; - case FieldOptions_OptionTargetType.TARGET_TYPE_MESSAGE: - return "TARGET_TYPE_MESSAGE"; - case FieldOptions_OptionTargetType.TARGET_TYPE_FIELD: - return "TARGET_TYPE_FIELD"; - case FieldOptions_OptionTargetType.TARGET_TYPE_ONEOF: - return "TARGET_TYPE_ONEOF"; - case FieldOptions_OptionTargetType.TARGET_TYPE_ENUM: - return "TARGET_TYPE_ENUM"; - case FieldOptions_OptionTargetType.TARGET_TYPE_ENUM_ENTRY: - return "TARGET_TYPE_ENUM_ENTRY"; - case FieldOptions_OptionTargetType.TARGET_TYPE_SERVICE: - return "TARGET_TYPE_SERVICE"; - case FieldOptions_OptionTargetType.TARGET_TYPE_METHOD: - return "TARGET_TYPE_METHOD"; - case FieldOptions_OptionTargetType.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} - -export interface FieldOptions_EditionDefault { - edition?: - | string - | undefined; - /** Textproto value. */ - value?: string | undefined; -} - export interface OneofOptions { - /** Any features defined in the specific edition. */ - features?: - | FeatureSet - | undefined; /** The parser stores options it doesn't recognize here. See above. */ uninterpretedOption?: UninterpretedOption[] | undefined; } @@ -1218,23 +933,6 @@ export interface EnumOptions { deprecated?: | boolean | undefined; - /** - * Enable the legacy handling of JSON field name conflicts. This lowercases - * and strips underscored from the fields before comparison in proto3 only. - * The new behavior takes `json_name` into account and applies to proto2 as - * well. - * TODO(b/261750190) Remove this legacy behavior once downstream teams have - * had time to migrate. - * - * @deprecated - */ - deprecatedLegacyJsonFieldConflicts?: - | boolean - | undefined; - /** Any features defined in the specific edition. */ - features?: - | FeatureSet - | undefined; /** The parser stores options it doesn't recognize here. See above. */ uninterpretedOption?: UninterpretedOption[] | undefined; } @@ -1249,27 +947,11 @@ export interface EnumValueOptions { deprecated?: | boolean | undefined; - /** Any features defined in the specific edition. */ - features?: - | FeatureSet - | undefined; - /** - * Indicate that fields annotated with this enum value should not be printed - * out when using debug formats, e.g. when the field contains sensitive - * credentials. - */ - debugRedact?: - | boolean - | undefined; /** The parser stores options it doesn't recognize here. See above. */ uninterpretedOption?: UninterpretedOption[] | undefined; } export interface ServiceOptions { - /** Any features defined in the specific edition. */ - features?: - | FeatureSet - | undefined; /** * Is this service deprecated? * Depending on the target platform, this can emit Deprecated annotations @@ -1294,10 +976,6 @@ export interface MethodOptions { idempotencyLevel?: | MethodOptions_IdempotencyLevel | undefined; - /** Any features defined in the specific edition. */ - features?: - | FeatureSet - | undefined; /** The parser stores options it doesn't recognize here. See above. */ uninterpretedOption?: UninterpretedOption[] | undefined; } @@ -1376,278 +1054,14 @@ export interface UninterpretedOption { * The name of the uninterpreted option. Each string represents a segment in * a dot-separated name. is_extension is true iff a segment represents an * extension (denoted with parentheses in options specs in .proto files). - * E.g.,{ ["foo", false], ["bar.baz", true], ["moo", false] } represents - * "foo.(bar.baz).moo". + * E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents + * "foo.(bar.baz).qux". */ export interface UninterpretedOption_NamePart { namePart?: string | undefined; isExtension?: boolean | undefined; } -/** - * TODO(b/274655146) Enums in C++ gencode (and potentially other languages) are - * not well scoped. This means that each of the feature enums below can clash - * with each other. The short names we've chosen maximize call-site - * readability, but leave us very open to this scenario. A future feature will - * be designed and implemented to handle this, hopefully before we ever hit a - * conflict here. - */ -export interface FeatureSet { - fieldPresence?: FeatureSet_FieldPresence | undefined; - enumType?: FeatureSet_EnumType | undefined; - repeatedFieldEncoding?: FeatureSet_RepeatedFieldEncoding | undefined; - stringFieldValidation?: FeatureSet_StringFieldValidation | undefined; - messageEncoding?: FeatureSet_MessageEncoding | undefined; - jsonFormat?: FeatureSet_JsonFormat | undefined; - rawFeatures?: FeatureSet | undefined; -} - -export enum FeatureSet_FieldPresence { - FIELD_PRESENCE_UNKNOWN = 0, - EXPLICIT = 1, - IMPLICIT = 2, - LEGACY_REQUIRED = 3, - UNRECOGNIZED = -1, -} - -export function featureSet_FieldPresenceFromJSON(object: any): FeatureSet_FieldPresence { - switch (object) { - case 0: - case "FIELD_PRESENCE_UNKNOWN": - return FeatureSet_FieldPresence.FIELD_PRESENCE_UNKNOWN; - case 1: - case "EXPLICIT": - return FeatureSet_FieldPresence.EXPLICIT; - case 2: - case "IMPLICIT": - return FeatureSet_FieldPresence.IMPLICIT; - case 3: - case "LEGACY_REQUIRED": - return FeatureSet_FieldPresence.LEGACY_REQUIRED; - case -1: - case "UNRECOGNIZED": - default: - return FeatureSet_FieldPresence.UNRECOGNIZED; - } -} - -export function featureSet_FieldPresenceToJSON(object: FeatureSet_FieldPresence): string { - switch (object) { - case FeatureSet_FieldPresence.FIELD_PRESENCE_UNKNOWN: - return "FIELD_PRESENCE_UNKNOWN"; - case FeatureSet_FieldPresence.EXPLICIT: - return "EXPLICIT"; - case FeatureSet_FieldPresence.IMPLICIT: - return "IMPLICIT"; - case FeatureSet_FieldPresence.LEGACY_REQUIRED: - return "LEGACY_REQUIRED"; - case FeatureSet_FieldPresence.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} - -export enum FeatureSet_EnumType { - ENUM_TYPE_UNKNOWN = 0, - OPEN = 1, - CLOSED = 2, - UNRECOGNIZED = -1, -} - -export function featureSet_EnumTypeFromJSON(object: any): FeatureSet_EnumType { - switch (object) { - case 0: - case "ENUM_TYPE_UNKNOWN": - return FeatureSet_EnumType.ENUM_TYPE_UNKNOWN; - case 1: - case "OPEN": - return FeatureSet_EnumType.OPEN; - case 2: - case "CLOSED": - return FeatureSet_EnumType.CLOSED; - case -1: - case "UNRECOGNIZED": - default: - return FeatureSet_EnumType.UNRECOGNIZED; - } -} - -export function featureSet_EnumTypeToJSON(object: FeatureSet_EnumType): string { - switch (object) { - case FeatureSet_EnumType.ENUM_TYPE_UNKNOWN: - return "ENUM_TYPE_UNKNOWN"; - case FeatureSet_EnumType.OPEN: - return "OPEN"; - case FeatureSet_EnumType.CLOSED: - return "CLOSED"; - case FeatureSet_EnumType.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} - -export enum FeatureSet_RepeatedFieldEncoding { - REPEATED_FIELD_ENCODING_UNKNOWN = 0, - PACKED = 1, - EXPANDED = 2, - UNRECOGNIZED = -1, -} - -export function featureSet_RepeatedFieldEncodingFromJSON(object: any): FeatureSet_RepeatedFieldEncoding { - switch (object) { - case 0: - case "REPEATED_FIELD_ENCODING_UNKNOWN": - return FeatureSet_RepeatedFieldEncoding.REPEATED_FIELD_ENCODING_UNKNOWN; - case 1: - case "PACKED": - return FeatureSet_RepeatedFieldEncoding.PACKED; - case 2: - case "EXPANDED": - return FeatureSet_RepeatedFieldEncoding.EXPANDED; - case -1: - case "UNRECOGNIZED": - default: - return FeatureSet_RepeatedFieldEncoding.UNRECOGNIZED; - } -} - -export function featureSet_RepeatedFieldEncodingToJSON(object: FeatureSet_RepeatedFieldEncoding): string { - switch (object) { - case FeatureSet_RepeatedFieldEncoding.REPEATED_FIELD_ENCODING_UNKNOWN: - return "REPEATED_FIELD_ENCODING_UNKNOWN"; - case FeatureSet_RepeatedFieldEncoding.PACKED: - return "PACKED"; - case FeatureSet_RepeatedFieldEncoding.EXPANDED: - return "EXPANDED"; - case FeatureSet_RepeatedFieldEncoding.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} - -export enum FeatureSet_StringFieldValidation { - STRING_FIELD_VALIDATION_UNKNOWN = 0, - MANDATORY = 1, - HINT = 2, - NONE = 3, - UNRECOGNIZED = -1, -} - -export function featureSet_StringFieldValidationFromJSON(object: any): FeatureSet_StringFieldValidation { - switch (object) { - case 0: - case "STRING_FIELD_VALIDATION_UNKNOWN": - return FeatureSet_StringFieldValidation.STRING_FIELD_VALIDATION_UNKNOWN; - case 1: - case "MANDATORY": - return FeatureSet_StringFieldValidation.MANDATORY; - case 2: - case "HINT": - return FeatureSet_StringFieldValidation.HINT; - case 3: - case "NONE": - return FeatureSet_StringFieldValidation.NONE; - case -1: - case "UNRECOGNIZED": - default: - return FeatureSet_StringFieldValidation.UNRECOGNIZED; - } -} - -export function featureSet_StringFieldValidationToJSON(object: FeatureSet_StringFieldValidation): string { - switch (object) { - case FeatureSet_StringFieldValidation.STRING_FIELD_VALIDATION_UNKNOWN: - return "STRING_FIELD_VALIDATION_UNKNOWN"; - case FeatureSet_StringFieldValidation.MANDATORY: - return "MANDATORY"; - case FeatureSet_StringFieldValidation.HINT: - return "HINT"; - case FeatureSet_StringFieldValidation.NONE: - return "NONE"; - case FeatureSet_StringFieldValidation.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} - -export enum FeatureSet_MessageEncoding { - MESSAGE_ENCODING_UNKNOWN = 0, - LENGTH_PREFIXED = 1, - DELIMITED = 2, - UNRECOGNIZED = -1, -} - -export function featureSet_MessageEncodingFromJSON(object: any): FeatureSet_MessageEncoding { - switch (object) { - case 0: - case "MESSAGE_ENCODING_UNKNOWN": - return FeatureSet_MessageEncoding.MESSAGE_ENCODING_UNKNOWN; - case 1: - case "LENGTH_PREFIXED": - return FeatureSet_MessageEncoding.LENGTH_PREFIXED; - case 2: - case "DELIMITED": - return FeatureSet_MessageEncoding.DELIMITED; - case -1: - case "UNRECOGNIZED": - default: - return FeatureSet_MessageEncoding.UNRECOGNIZED; - } -} - -export function featureSet_MessageEncodingToJSON(object: FeatureSet_MessageEncoding): string { - switch (object) { - case FeatureSet_MessageEncoding.MESSAGE_ENCODING_UNKNOWN: - return "MESSAGE_ENCODING_UNKNOWN"; - case FeatureSet_MessageEncoding.LENGTH_PREFIXED: - return "LENGTH_PREFIXED"; - case FeatureSet_MessageEncoding.DELIMITED: - return "DELIMITED"; - case FeatureSet_MessageEncoding.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} - -export enum FeatureSet_JsonFormat { - JSON_FORMAT_UNKNOWN = 0, - ALLOW = 1, - LEGACY_BEST_EFFORT = 2, - UNRECOGNIZED = -1, -} - -export function featureSet_JsonFormatFromJSON(object: any): FeatureSet_JsonFormat { - switch (object) { - case 0: - case "JSON_FORMAT_UNKNOWN": - return FeatureSet_JsonFormat.JSON_FORMAT_UNKNOWN; - case 1: - case "ALLOW": - return FeatureSet_JsonFormat.ALLOW; - case 2: - case "LEGACY_BEST_EFFORT": - return FeatureSet_JsonFormat.LEGACY_BEST_EFFORT; - case -1: - case "UNRECOGNIZED": - default: - return FeatureSet_JsonFormat.UNRECOGNIZED; - } -} - -export function featureSet_JsonFormatToJSON(object: FeatureSet_JsonFormat): string { - switch (object) { - case FeatureSet_JsonFormat.JSON_FORMAT_UNKNOWN: - return "JSON_FORMAT_UNKNOWN"; - case FeatureSet_JsonFormat.ALLOW: - return "ALLOW"; - case FeatureSet_JsonFormat.LEGACY_BEST_EFFORT: - return "LEGACY_BEST_EFFORT"; - case FeatureSet_JsonFormat.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } -} - /** * Encapsulates information about the original source file from which a * FileDescriptorProto was generated. @@ -1768,13 +1182,13 @@ export interface SourceCodeInfo_Location { * // Comment attached to baz. * // Another line attached to baz. * - * // Comment attached to moo. + * // Comment attached to qux. * // - * // Another line attached to moo. - * optional double moo = 4; + * // Another line attached to qux. + * optional double qux = 4; * * // Detached comment for corge. This is not leading or trailing comments - * // to moo or corge because there are blank lines separating it from + * // to qux or corge because there are blank lines separating it from * // both. * * // Detached comment for corge paragraph 2. @@ -1828,57 +1242,10 @@ export interface GeneratedCodeInfo_Annotation { | undefined; /** * Identifies the ending offset in bytes in the generated code that - * relates to the identified object. The end offset should be one past + * relates to the identified offset. The end offset should be one past * the last relevant byte (so the length of the text = end - begin). */ end?: number | undefined; - semantic?: GeneratedCodeInfo_Annotation_Semantic | undefined; -} - -/** - * Represents the identified object's effect on the element in the original - * .proto file. - */ -export enum GeneratedCodeInfo_Annotation_Semantic { - /** NONE - There is no effect or the effect is indescribable. */ - NONE = 0, - /** SET - The element is set or otherwise mutated. */ - SET = 1, - /** ALIAS - An alias to the element is returned. */ - ALIAS = 2, - UNRECOGNIZED = -1, -} - -export function generatedCodeInfo_Annotation_SemanticFromJSON(object: any): GeneratedCodeInfo_Annotation_Semantic { - switch (object) { - case 0: - case "NONE": - return GeneratedCodeInfo_Annotation_Semantic.NONE; - case 1: - case "SET": - return GeneratedCodeInfo_Annotation_Semantic.SET; - case 2: - case "ALIAS": - return GeneratedCodeInfo_Annotation_Semantic.ALIAS; - case -1: - case "UNRECOGNIZED": - default: - return GeneratedCodeInfo_Annotation_Semantic.UNRECOGNIZED; - } -} - -export function generatedCodeInfo_Annotation_SemanticToJSON(object: GeneratedCodeInfo_Annotation_Semantic): string { - switch (object) { - case GeneratedCodeInfo_Annotation_Semantic.NONE: - return "NONE"; - case GeneratedCodeInfo_Annotation_Semantic.SET: - return "SET"; - case GeneratedCodeInfo_Annotation_Semantic.ALIAS: - return "ALIAS"; - case GeneratedCodeInfo_Annotation_Semantic.UNRECOGNIZED: - default: - return "UNRECOGNIZED"; - } } function createBaseFileDescriptorSet(): FileDescriptorSet { @@ -1954,7 +1321,6 @@ function createBaseFileDescriptorProto(): FileDescriptorProto { options: undefined, sourceCodeInfo: undefined, syntax: "", - edition: "", }; } @@ -2014,9 +1380,6 @@ export const FileDescriptorProto = { if (message.syntax !== undefined && message.syntax !== "") { writer.uint32(98).string(message.syntax); } - if (message.edition !== undefined && message.edition !== "") { - writer.uint32(106).string(message.edition); - } return writer; }, @@ -2131,13 +1494,6 @@ export const FileDescriptorProto = { message.syntax = reader.string(); continue; - case 13: - if (tag !== 106) { - break; - } - - message.edition = reader.string(); - continue; } if ((tag & 7) === 4 || tag === 0) { break; @@ -2167,7 +1523,6 @@ export const FileDescriptorProto = { options: isSet(object.options) ? FileOptions.fromJSON(object.options) : undefined, sourceCodeInfo: isSet(object.sourceCodeInfo) ? SourceCodeInfo.fromJSON(object.sourceCodeInfo) : undefined, syntax: isSet(object.syntax) ? String(object.syntax) : "", - edition: isSet(object.edition) ? String(object.edition) : "", }; }, @@ -2209,9 +1564,6 @@ export const FileDescriptorProto = { if (message.syntax !== undefined && message.syntax !== "") { obj.syntax = message.syntax; } - if (message.edition !== undefined && message.edition !== "") { - obj.edition = message.edition; - } return obj; }, @@ -2236,7 +1588,6 @@ export const FileDescriptorProto = { ? SourceCodeInfo.fromPartial(object.sourceCodeInfo) : undefined; message.syntax = object.syntax ?? ""; - message.edition = object.edition ?? ""; return message; }, }; @@ -2637,7 +1988,7 @@ export const DescriptorProto_ReservedRange = { }; function createBaseExtensionRangeOptions(): ExtensionRangeOptions { - return { uninterpretedOption: [], declaration: [], features: undefined, verification: 0 }; + return { uninterpretedOption: [] }; } export const ExtensionRangeOptions = { @@ -2647,17 +1998,6 @@ export const ExtensionRangeOptions = { UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim(); } } - if (message.declaration !== undefined && message.declaration.length !== 0) { - for (const v of message.declaration) { - ExtensionRangeOptions_Declaration.encode(v!, writer.uint32(18).fork()).ldelim(); - } - } - if (message.features !== undefined) { - FeatureSet.encode(message.features, writer.uint32(402).fork()).ldelim(); - } - if (message.verification !== undefined && message.verification !== 0) { - writer.uint32(24).int32(message.verification); - } return writer; }, @@ -2675,27 +2015,6 @@ export const ExtensionRangeOptions = { message.uninterpretedOption!.push(UninterpretedOption.decode(reader, reader.uint32())); continue; - case 2: - if (tag !== 18) { - break; - } - - message.declaration!.push(ExtensionRangeOptions_Declaration.decode(reader, reader.uint32())); - continue; - case 50: - if (tag !== 402) { - break; - } - - message.features = FeatureSet.decode(reader, reader.uint32()); - continue; - case 3: - if (tag !== 24) { - break; - } - - message.verification = reader.int32() as any; - continue; } if ((tag & 7) === 4 || tag === 0) { break; @@ -2710,13 +2029,6 @@ export const ExtensionRangeOptions = { uninterpretedOption: Array.isArray(object?.uninterpretedOption) ? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)) : [], - declaration: Array.isArray(object?.declaration) - ? object.declaration.map((e: any) => ExtensionRangeOptions_Declaration.fromJSON(e)) - : [], - features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined, - verification: isSet(object.verification) - ? extensionRangeOptions_VerificationStateFromJSON(object.verification) - : 0, }; }, @@ -2725,15 +2037,6 @@ export const ExtensionRangeOptions = { if (message.uninterpretedOption?.length) { obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e)); } - if (message.declaration?.length) { - obj.declaration = message.declaration.map((e) => ExtensionRangeOptions_Declaration.toJSON(e)); - } - if (message.features !== undefined) { - obj.features = FeatureSet.toJSON(message.features); - } - if (message.verification !== undefined && message.verification !== 0) { - obj.verification = extensionRangeOptions_VerificationStateToJSON(message.verification); - } return obj; }, @@ -2743,130 +2046,6 @@ export const ExtensionRangeOptions = { fromPartial(object: DeepPartial): ExtensionRangeOptions { const message = createBaseExtensionRangeOptions(); message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || []; - message.declaration = object.declaration?.map((e) => ExtensionRangeOptions_Declaration.fromPartial(e)) || []; - message.features = (object.features !== undefined && object.features !== null) - ? FeatureSet.fromPartial(object.features) - : undefined; - message.verification = object.verification ?? 0; - return message; - }, -}; - -function createBaseExtensionRangeOptions_Declaration(): ExtensionRangeOptions_Declaration { - return { number: 0, fullName: "", type: "", reserved: false, repeated: false }; -} - -export const ExtensionRangeOptions_Declaration = { - encode(message: ExtensionRangeOptions_Declaration, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.number !== undefined && message.number !== 0) { - writer.uint32(8).int32(message.number); - } - if (message.fullName !== undefined && message.fullName !== "") { - writer.uint32(18).string(message.fullName); - } - if (message.type !== undefined && message.type !== "") { - writer.uint32(26).string(message.type); - } - if (message.reserved === true) { - writer.uint32(40).bool(message.reserved); - } - if (message.repeated === true) { - writer.uint32(48).bool(message.repeated); - } - return writer; - }, - - decode(input: _m0.Reader | Uint8Array, length?: number): ExtensionRangeOptions_Declaration { - const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseExtensionRangeOptions_Declaration(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (tag !== 8) { - break; - } - - message.number = reader.int32(); - continue; - case 2: - if (tag !== 18) { - break; - } - - message.fullName = reader.string(); - continue; - case 3: - if (tag !== 26) { - break; - } - - message.type = reader.string(); - continue; - case 5: - if (tag !== 40) { - break; - } - - message.reserved = reader.bool(); - continue; - case 6: - if (tag !== 48) { - break; - } - - message.repeated = reader.bool(); - continue; - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skipType(tag & 7); - } - return message; - }, - - fromJSON(object: any): ExtensionRangeOptions_Declaration { - return { - number: isSet(object.number) ? Number(object.number) : 0, - fullName: isSet(object.fullName) ? String(object.fullName) : "", - type: isSet(object.type) ? String(object.type) : "", - reserved: isSet(object.reserved) ? Boolean(object.reserved) : false, - repeated: isSet(object.repeated) ? Boolean(object.repeated) : false, - }; - }, - - toJSON(message: ExtensionRangeOptions_Declaration): unknown { - const obj: any = {}; - if (message.number !== undefined && message.number !== 0) { - obj.number = Math.round(message.number); - } - if (message.fullName !== undefined && message.fullName !== "") { - obj.fullName = message.fullName; - } - if (message.type !== undefined && message.type !== "") { - obj.type = message.type; - } - if (message.reserved === true) { - obj.reserved = message.reserved; - } - if (message.repeated === true) { - obj.repeated = message.repeated; - } - return obj; - }, - - create(base?: DeepPartial): ExtensionRangeOptions_Declaration { - return ExtensionRangeOptions_Declaration.fromPartial(base ?? {}); - }, - fromPartial(object: DeepPartial): ExtensionRangeOptions_Declaration { - const message = createBaseExtensionRangeOptions_Declaration(); - message.number = object.number ?? 0; - message.fullName = object.fullName ?? ""; - message.type = object.type ?? ""; - message.reserved = object.reserved ?? false; - message.repeated = object.repeated ?? false; return message; }, }; @@ -3720,7 +2899,6 @@ function createBaseFileOptions(): FileOptions { phpNamespace: "", phpMetadataNamespace: "", rubyPackage: "", - features: undefined, uninterpretedOption: [], }; } @@ -3787,9 +2965,6 @@ export const FileOptions = { if (message.rubyPackage !== undefined && message.rubyPackage !== "") { writer.uint32(362).string(message.rubyPackage); } - if (message.features !== undefined) { - FeatureSet.encode(message.features, writer.uint32(402).fork()).ldelim(); - } if (message.uninterpretedOption !== undefined && message.uninterpretedOption.length !== 0) { for (const v of message.uninterpretedOption) { UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim(); @@ -3945,13 +3120,6 @@ export const FileOptions = { message.rubyPackage = reader.string(); continue; - case 50: - if (tag !== 402) { - break; - } - - message.features = FeatureSet.decode(reader, reader.uint32()); - continue; case 999: if (tag !== 7994) { break; @@ -3992,7 +3160,6 @@ export const FileOptions = { phpNamespace: isSet(object.phpNamespace) ? String(object.phpNamespace) : "", phpMetadataNamespace: isSet(object.phpMetadataNamespace) ? String(object.phpMetadataNamespace) : "", rubyPackage: isSet(object.rubyPackage) ? String(object.rubyPackage) : "", - features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined, uninterpretedOption: Array.isArray(object?.uninterpretedOption) ? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)) : [], @@ -4061,9 +3228,6 @@ export const FileOptions = { if (message.rubyPackage !== undefined && message.rubyPackage !== "") { obj.rubyPackage = message.rubyPackage; } - if (message.features !== undefined) { - obj.features = FeatureSet.toJSON(message.features); - } if (message.uninterpretedOption?.length) { obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e)); } @@ -4095,9 +3259,6 @@ export const FileOptions = { message.phpNamespace = object.phpNamespace ?? ""; message.phpMetadataNamespace = object.phpMetadataNamespace ?? ""; message.rubyPackage = object.rubyPackage ?? ""; - message.features = (object.features !== undefined && object.features !== null) - ? FeatureSet.fromPartial(object.features) - : undefined; message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || []; return message; }, @@ -4109,8 +3270,6 @@ function createBaseMessageOptions(): MessageOptions { noStandardDescriptorAccessor: false, deprecated: false, mapEntry: false, - deprecatedLegacyJsonFieldConflicts: false, - features: undefined, uninterpretedOption: [], }; } @@ -4129,12 +3288,6 @@ export const MessageOptions = { if (message.mapEntry === true) { writer.uint32(56).bool(message.mapEntry); } - if (message.deprecatedLegacyJsonFieldConflicts === true) { - writer.uint32(88).bool(message.deprecatedLegacyJsonFieldConflicts); - } - if (message.features !== undefined) { - FeatureSet.encode(message.features, writer.uint32(98).fork()).ldelim(); - } if (message.uninterpretedOption !== undefined && message.uninterpretedOption.length !== 0) { for (const v of message.uninterpretedOption) { UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim(); @@ -4178,20 +3331,6 @@ export const MessageOptions = { message.mapEntry = reader.bool(); continue; - case 11: - if (tag !== 88) { - break; - } - - message.deprecatedLegacyJsonFieldConflicts = reader.bool(); - continue; - case 12: - if (tag !== 98) { - break; - } - - message.features = FeatureSet.decode(reader, reader.uint32()); - continue; case 999: if (tag !== 7994) { break; @@ -4216,10 +3355,6 @@ export const MessageOptions = { : false, deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false, mapEntry: isSet(object.mapEntry) ? Boolean(object.mapEntry) : false, - deprecatedLegacyJsonFieldConflicts: isSet(object.deprecatedLegacyJsonFieldConflicts) - ? Boolean(object.deprecatedLegacyJsonFieldConflicts) - : false, - features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined, uninterpretedOption: Array.isArray(object?.uninterpretedOption) ? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)) : [], @@ -4240,12 +3375,6 @@ export const MessageOptions = { if (message.mapEntry === true) { obj.mapEntry = message.mapEntry; } - if (message.deprecatedLegacyJsonFieldConflicts === true) { - obj.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts; - } - if (message.features !== undefined) { - obj.features = FeatureSet.toJSON(message.features); - } if (message.uninterpretedOption?.length) { obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e)); } @@ -4261,10 +3390,6 @@ export const MessageOptions = { message.noStandardDescriptorAccessor = object.noStandardDescriptorAccessor ?? false; message.deprecated = object.deprecated ?? false; message.mapEntry = object.mapEntry ?? false; - message.deprecatedLegacyJsonFieldConflicts = object.deprecatedLegacyJsonFieldConflicts ?? false; - message.features = (object.features !== undefined && object.features !== null) - ? FeatureSet.fromPartial(object.features) - : undefined; message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || []; return message; }, @@ -4279,11 +3404,6 @@ function createBaseFieldOptions(): FieldOptions { unverifiedLazy: false, deprecated: false, weak: false, - debugRedact: false, - retention: 0, - targets: [], - editionDefaults: [], - features: undefined, uninterpretedOption: [], }; } @@ -4306,31 +3426,10 @@ export const FieldOptions = { writer.uint32(120).bool(message.unverifiedLazy); } if (message.deprecated === true) { - writer.uint32(24).bool(message.deprecated); - } - if (message.weak === true) { - writer.uint32(80).bool(message.weak); - } - if (message.debugRedact === true) { - writer.uint32(128).bool(message.debugRedact); - } - if (message.retention !== undefined && message.retention !== 0) { - writer.uint32(136).int32(message.retention); - } - if (message.targets !== undefined && message.targets.length !== 0) { - writer.uint32(154).fork(); - for (const v of message.targets) { - writer.int32(v); - } - writer.ldelim(); - } - if (message.editionDefaults !== undefined && message.editionDefaults.length !== 0) { - for (const v of message.editionDefaults) { - FieldOptions_EditionDefault.encode(v!, writer.uint32(162).fork()).ldelim(); - } + writer.uint32(24).bool(message.deprecated); } - if (message.features !== undefined) { - FeatureSet.encode(message.features, writer.uint32(170).fork()).ldelim(); + if (message.weak === true) { + writer.uint32(80).bool(message.weak); } if (message.uninterpretedOption !== undefined && message.uninterpretedOption.length !== 0) { for (const v of message.uninterpretedOption) { @@ -4396,51 +3495,6 @@ export const FieldOptions = { message.weak = reader.bool(); continue; - case 16: - if (tag !== 128) { - break; - } - - message.debugRedact = reader.bool(); - continue; - case 17: - if (tag !== 136) { - break; - } - - message.retention = reader.int32() as any; - continue; - case 19: - if (tag === 152) { - message.targets!.push(reader.int32() as any); - - continue; - } - - if (tag === 154) { - const end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) { - message.targets!.push(reader.int32() as any); - } - - continue; - } - - break; - case 20: - if (tag !== 162) { - break; - } - - message.editionDefaults!.push(FieldOptions_EditionDefault.decode(reader, reader.uint32())); - continue; - case 21: - if (tag !== 170) { - break; - } - - message.features = FeatureSet.decode(reader, reader.uint32()); - continue; case 999: if (tag !== 7994) { break; @@ -4466,15 +3520,6 @@ export const FieldOptions = { unverifiedLazy: isSet(object.unverifiedLazy) ? Boolean(object.unverifiedLazy) : false, deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false, weak: isSet(object.weak) ? Boolean(object.weak) : false, - debugRedact: isSet(object.debugRedact) ? Boolean(object.debugRedact) : false, - retention: isSet(object.retention) ? fieldOptions_OptionRetentionFromJSON(object.retention) : 0, - targets: Array.isArray(object?.targets) - ? object.targets.map((e: any) => fieldOptions_OptionTargetTypeFromJSON(e)) - : [], - editionDefaults: Array.isArray(object?.editionDefaults) - ? object.editionDefaults.map((e: any) => FieldOptions_EditionDefault.fromJSON(e)) - : [], - features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined, uninterpretedOption: Array.isArray(object?.uninterpretedOption) ? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)) : [], @@ -4504,21 +3549,6 @@ export const FieldOptions = { if (message.weak === true) { obj.weak = message.weak; } - if (message.debugRedact === true) { - obj.debugRedact = message.debugRedact; - } - if (message.retention !== undefined && message.retention !== 0) { - obj.retention = fieldOptions_OptionRetentionToJSON(message.retention); - } - if (message.targets?.length) { - obj.targets = message.targets.map((e) => fieldOptions_OptionTargetTypeToJSON(e)); - } - if (message.editionDefaults?.length) { - obj.editionDefaults = message.editionDefaults.map((e) => FieldOptions_EditionDefault.toJSON(e)); - } - if (message.features !== undefined) { - obj.features = FeatureSet.toJSON(message.features); - } if (message.uninterpretedOption?.length) { obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e)); } @@ -4537,101 +3567,17 @@ export const FieldOptions = { message.unverifiedLazy = object.unverifiedLazy ?? false; message.deprecated = object.deprecated ?? false; message.weak = object.weak ?? false; - message.debugRedact = object.debugRedact ?? false; - message.retention = object.retention ?? 0; - message.targets = object.targets?.map((e) => e) || []; - message.editionDefaults = object.editionDefaults?.map((e) => FieldOptions_EditionDefault.fromPartial(e)) || []; - message.features = (object.features !== undefined && object.features !== null) - ? FeatureSet.fromPartial(object.features) - : undefined; message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || []; return message; }, }; -function createBaseFieldOptions_EditionDefault(): FieldOptions_EditionDefault { - return { edition: "", value: "" }; -} - -export const FieldOptions_EditionDefault = { - encode(message: FieldOptions_EditionDefault, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.edition !== undefined && message.edition !== "") { - writer.uint32(10).string(message.edition); - } - if (message.value !== undefined && message.value !== "") { - writer.uint32(18).string(message.value); - } - return writer; - }, - - decode(input: _m0.Reader | Uint8Array, length?: number): FieldOptions_EditionDefault { - const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseFieldOptions_EditionDefault(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (tag !== 10) { - break; - } - - message.edition = reader.string(); - continue; - case 2: - if (tag !== 18) { - break; - } - - message.value = reader.string(); - continue; - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skipType(tag & 7); - } - return message; - }, - - fromJSON(object: any): FieldOptions_EditionDefault { - return { - edition: isSet(object.edition) ? String(object.edition) : "", - value: isSet(object.value) ? String(object.value) : "", - }; - }, - - toJSON(message: FieldOptions_EditionDefault): unknown { - const obj: any = {}; - if (message.edition !== undefined && message.edition !== "") { - obj.edition = message.edition; - } - if (message.value !== undefined && message.value !== "") { - obj.value = message.value; - } - return obj; - }, - - create(base?: DeepPartial): FieldOptions_EditionDefault { - return FieldOptions_EditionDefault.fromPartial(base ?? {}); - }, - fromPartial(object: DeepPartial): FieldOptions_EditionDefault { - const message = createBaseFieldOptions_EditionDefault(); - message.edition = object.edition ?? ""; - message.value = object.value ?? ""; - return message; - }, -}; - function createBaseOneofOptions(): OneofOptions { - return { features: undefined, uninterpretedOption: [] }; + return { uninterpretedOption: [] }; } export const OneofOptions = { encode(message: OneofOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.features !== undefined) { - FeatureSet.encode(message.features, writer.uint32(10).fork()).ldelim(); - } if (message.uninterpretedOption !== undefined && message.uninterpretedOption.length !== 0) { for (const v of message.uninterpretedOption) { UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim(); @@ -4647,13 +3593,6 @@ export const OneofOptions = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (tag !== 10) { - break; - } - - message.features = FeatureSet.decode(reader, reader.uint32()); - continue; case 999: if (tag !== 7994) { break; @@ -4672,7 +3611,6 @@ export const OneofOptions = { fromJSON(object: any): OneofOptions { return { - features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined, uninterpretedOption: Array.isArray(object?.uninterpretedOption) ? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)) : [], @@ -4681,9 +3619,6 @@ export const OneofOptions = { toJSON(message: OneofOptions): unknown { const obj: any = {}; - if (message.features !== undefined) { - obj.features = FeatureSet.toJSON(message.features); - } if (message.uninterpretedOption?.length) { obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e)); } @@ -4695,22 +3630,13 @@ export const OneofOptions = { }, fromPartial(object: DeepPartial): OneofOptions { const message = createBaseOneofOptions(); - message.features = (object.features !== undefined && object.features !== null) - ? FeatureSet.fromPartial(object.features) - : undefined; message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || []; return message; }, }; function createBaseEnumOptions(): EnumOptions { - return { - allowAlias: false, - deprecated: false, - deprecatedLegacyJsonFieldConflicts: false, - features: undefined, - uninterpretedOption: [], - }; + return { allowAlias: false, deprecated: false, uninterpretedOption: [] }; } export const EnumOptions = { @@ -4721,12 +3647,6 @@ export const EnumOptions = { if (message.deprecated === true) { writer.uint32(24).bool(message.deprecated); } - if (message.deprecatedLegacyJsonFieldConflicts === true) { - writer.uint32(48).bool(message.deprecatedLegacyJsonFieldConflicts); - } - if (message.features !== undefined) { - FeatureSet.encode(message.features, writer.uint32(58).fork()).ldelim(); - } if (message.uninterpretedOption !== undefined && message.uninterpretedOption.length !== 0) { for (const v of message.uninterpretedOption) { UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim(); @@ -4756,20 +3676,6 @@ export const EnumOptions = { message.deprecated = reader.bool(); continue; - case 6: - if (tag !== 48) { - break; - } - - message.deprecatedLegacyJsonFieldConflicts = reader.bool(); - continue; - case 7: - if (tag !== 58) { - break; - } - - message.features = FeatureSet.decode(reader, reader.uint32()); - continue; case 999: if (tag !== 7994) { break; @@ -4790,10 +3696,6 @@ export const EnumOptions = { return { allowAlias: isSet(object.allowAlias) ? Boolean(object.allowAlias) : false, deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false, - deprecatedLegacyJsonFieldConflicts: isSet(object.deprecatedLegacyJsonFieldConflicts) - ? Boolean(object.deprecatedLegacyJsonFieldConflicts) - : false, - features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined, uninterpretedOption: Array.isArray(object?.uninterpretedOption) ? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)) : [], @@ -4808,12 +3710,6 @@ export const EnumOptions = { if (message.deprecated === true) { obj.deprecated = message.deprecated; } - if (message.deprecatedLegacyJsonFieldConflicts === true) { - obj.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts; - } - if (message.features !== undefined) { - obj.features = FeatureSet.toJSON(message.features); - } if (message.uninterpretedOption?.length) { obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e)); } @@ -4827,17 +3723,13 @@ export const EnumOptions = { const message = createBaseEnumOptions(); message.allowAlias = object.allowAlias ?? false; message.deprecated = object.deprecated ?? false; - message.deprecatedLegacyJsonFieldConflicts = object.deprecatedLegacyJsonFieldConflicts ?? false; - message.features = (object.features !== undefined && object.features !== null) - ? FeatureSet.fromPartial(object.features) - : undefined; message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || []; return message; }, }; function createBaseEnumValueOptions(): EnumValueOptions { - return { deprecated: false, features: undefined, debugRedact: false, uninterpretedOption: [] }; + return { deprecated: false, uninterpretedOption: [] }; } export const EnumValueOptions = { @@ -4845,12 +3737,6 @@ export const EnumValueOptions = { if (message.deprecated === true) { writer.uint32(8).bool(message.deprecated); } - if (message.features !== undefined) { - FeatureSet.encode(message.features, writer.uint32(18).fork()).ldelim(); - } - if (message.debugRedact === true) { - writer.uint32(24).bool(message.debugRedact); - } if (message.uninterpretedOption !== undefined && message.uninterpretedOption.length !== 0) { for (const v of message.uninterpretedOption) { UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim(); @@ -4873,20 +3759,6 @@ export const EnumValueOptions = { message.deprecated = reader.bool(); continue; - case 2: - if (tag !== 18) { - break; - } - - message.features = FeatureSet.decode(reader, reader.uint32()); - continue; - case 3: - if (tag !== 24) { - break; - } - - message.debugRedact = reader.bool(); - continue; case 999: if (tag !== 7994) { break; @@ -4906,8 +3778,6 @@ export const EnumValueOptions = { fromJSON(object: any): EnumValueOptions { return { deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false, - features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined, - debugRedact: isSet(object.debugRedact) ? Boolean(object.debugRedact) : false, uninterpretedOption: Array.isArray(object?.uninterpretedOption) ? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)) : [], @@ -4919,12 +3789,6 @@ export const EnumValueOptions = { if (message.deprecated === true) { obj.deprecated = message.deprecated; } - if (message.features !== undefined) { - obj.features = FeatureSet.toJSON(message.features); - } - if (message.debugRedact === true) { - obj.debugRedact = message.debugRedact; - } if (message.uninterpretedOption?.length) { obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e)); } @@ -4937,24 +3801,17 @@ export const EnumValueOptions = { fromPartial(object: DeepPartial): EnumValueOptions { const message = createBaseEnumValueOptions(); message.deprecated = object.deprecated ?? false; - message.features = (object.features !== undefined && object.features !== null) - ? FeatureSet.fromPartial(object.features) - : undefined; - message.debugRedact = object.debugRedact ?? false; message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || []; return message; }, }; function createBaseServiceOptions(): ServiceOptions { - return { features: undefined, deprecated: false, uninterpretedOption: [] }; + return { deprecated: false, uninterpretedOption: [] }; } export const ServiceOptions = { encode(message: ServiceOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.features !== undefined) { - FeatureSet.encode(message.features, writer.uint32(274).fork()).ldelim(); - } if (message.deprecated === true) { writer.uint32(264).bool(message.deprecated); } @@ -4973,13 +3830,6 @@ export const ServiceOptions = { while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { - case 34: - if (tag !== 274) { - break; - } - - message.features = FeatureSet.decode(reader, reader.uint32()); - continue; case 33: if (tag !== 264) { break; @@ -5005,7 +3855,6 @@ export const ServiceOptions = { fromJSON(object: any): ServiceOptions { return { - features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined, deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false, uninterpretedOption: Array.isArray(object?.uninterpretedOption) ? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)) @@ -5015,9 +3864,6 @@ export const ServiceOptions = { toJSON(message: ServiceOptions): unknown { const obj: any = {}; - if (message.features !== undefined) { - obj.features = FeatureSet.toJSON(message.features); - } if (message.deprecated === true) { obj.deprecated = message.deprecated; } @@ -5032,9 +3878,6 @@ export const ServiceOptions = { }, fromPartial(object: DeepPartial): ServiceOptions { const message = createBaseServiceOptions(); - message.features = (object.features !== undefined && object.features !== null) - ? FeatureSet.fromPartial(object.features) - : undefined; message.deprecated = object.deprecated ?? false; message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || []; return message; @@ -5042,7 +3885,7 @@ export const ServiceOptions = { }; function createBaseMethodOptions(): MethodOptions { - return { deprecated: false, idempotencyLevel: 0, features: undefined, uninterpretedOption: [] }; + return { deprecated: false, idempotencyLevel: 0, uninterpretedOption: [] }; } export const MethodOptions = { @@ -5053,9 +3896,6 @@ export const MethodOptions = { if (message.idempotencyLevel !== undefined && message.idempotencyLevel !== 0) { writer.uint32(272).int32(message.idempotencyLevel); } - if (message.features !== undefined) { - FeatureSet.encode(message.features, writer.uint32(282).fork()).ldelim(); - } if (message.uninterpretedOption !== undefined && message.uninterpretedOption.length !== 0) { for (const v of message.uninterpretedOption) { UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim(); @@ -5085,13 +3925,6 @@ export const MethodOptions = { message.idempotencyLevel = reader.int32() as any; continue; - case 35: - if (tag !== 282) { - break; - } - - message.features = FeatureSet.decode(reader, reader.uint32()); - continue; case 999: if (tag !== 7994) { break; @@ -5114,7 +3947,6 @@ export const MethodOptions = { idempotencyLevel: isSet(object.idempotencyLevel) ? methodOptions_IdempotencyLevelFromJSON(object.idempotencyLevel) : 0, - features: isSet(object.features) ? FeatureSet.fromJSON(object.features) : undefined, uninterpretedOption: Array.isArray(object?.uninterpretedOption) ? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)) : [], @@ -5129,9 +3961,6 @@ export const MethodOptions = { if (message.idempotencyLevel !== undefined && message.idempotencyLevel !== 0) { obj.idempotencyLevel = methodOptions_IdempotencyLevelToJSON(message.idempotencyLevel); } - if (message.features !== undefined) { - obj.features = FeatureSet.toJSON(message.features); - } if (message.uninterpretedOption?.length) { obj.uninterpretedOption = message.uninterpretedOption.map((e) => UninterpretedOption.toJSON(e)); } @@ -5145,9 +3974,6 @@ export const MethodOptions = { const message = createBaseMethodOptions(); message.deprecated = object.deprecated ?? false; message.idempotencyLevel = object.idempotencyLevel ?? 0; - message.features = (object.features !== undefined && object.features !== null) - ? FeatureSet.fromPartial(object.features) - : undefined; message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || []; return message; }, @@ -5386,169 +4212,6 @@ export const UninterpretedOption_NamePart = { }, }; -function createBaseFeatureSet(): FeatureSet { - return { - fieldPresence: 0, - enumType: 0, - repeatedFieldEncoding: 0, - stringFieldValidation: 0, - messageEncoding: 0, - jsonFormat: 0, - rawFeatures: undefined, - }; -} - -export const FeatureSet = { - encode(message: FeatureSet, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { - if (message.fieldPresence !== undefined && message.fieldPresence !== 0) { - writer.uint32(8).int32(message.fieldPresence); - } - if (message.enumType !== undefined && message.enumType !== 0) { - writer.uint32(16).int32(message.enumType); - } - if (message.repeatedFieldEncoding !== undefined && message.repeatedFieldEncoding !== 0) { - writer.uint32(24).int32(message.repeatedFieldEncoding); - } - if (message.stringFieldValidation !== undefined && message.stringFieldValidation !== 0) { - writer.uint32(32).int32(message.stringFieldValidation); - } - if (message.messageEncoding !== undefined && message.messageEncoding !== 0) { - writer.uint32(40).int32(message.messageEncoding); - } - if (message.jsonFormat !== undefined && message.jsonFormat !== 0) { - writer.uint32(48).int32(message.jsonFormat); - } - if (message.rawFeatures !== undefined) { - FeatureSet.encode(message.rawFeatures, writer.uint32(7994).fork()).ldelim(); - } - return writer; - }, - - decode(input: _m0.Reader | Uint8Array, length?: number): FeatureSet { - const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); - let end = length === undefined ? reader.len : reader.pos + length; - const message = createBaseFeatureSet(); - while (reader.pos < end) { - const tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (tag !== 8) { - break; - } - - message.fieldPresence = reader.int32() as any; - continue; - case 2: - if (tag !== 16) { - break; - } - - message.enumType = reader.int32() as any; - continue; - case 3: - if (tag !== 24) { - break; - } - - message.repeatedFieldEncoding = reader.int32() as any; - continue; - case 4: - if (tag !== 32) { - break; - } - - message.stringFieldValidation = reader.int32() as any; - continue; - case 5: - if (tag !== 40) { - break; - } - - message.messageEncoding = reader.int32() as any; - continue; - case 6: - if (tag !== 48) { - break; - } - - message.jsonFormat = reader.int32() as any; - continue; - case 999: - if (tag !== 7994) { - break; - } - - message.rawFeatures = FeatureSet.decode(reader, reader.uint32()); - continue; - } - if ((tag & 7) === 4 || tag === 0) { - break; - } - reader.skipType(tag & 7); - } - return message; - }, - - fromJSON(object: any): FeatureSet { - return { - fieldPresence: isSet(object.fieldPresence) ? featureSet_FieldPresenceFromJSON(object.fieldPresence) : 0, - enumType: isSet(object.enumType) ? featureSet_EnumTypeFromJSON(object.enumType) : 0, - repeatedFieldEncoding: isSet(object.repeatedFieldEncoding) - ? featureSet_RepeatedFieldEncodingFromJSON(object.repeatedFieldEncoding) - : 0, - stringFieldValidation: isSet(object.stringFieldValidation) - ? featureSet_StringFieldValidationFromJSON(object.stringFieldValidation) - : 0, - messageEncoding: isSet(object.messageEncoding) ? featureSet_MessageEncodingFromJSON(object.messageEncoding) : 0, - jsonFormat: isSet(object.jsonFormat) ? featureSet_JsonFormatFromJSON(object.jsonFormat) : 0, - rawFeatures: isSet(object.rawFeatures) ? FeatureSet.fromJSON(object.rawFeatures) : undefined, - }; - }, - - toJSON(message: FeatureSet): unknown { - const obj: any = {}; - if (message.fieldPresence !== undefined && message.fieldPresence !== 0) { - obj.fieldPresence = featureSet_FieldPresenceToJSON(message.fieldPresence); - } - if (message.enumType !== undefined && message.enumType !== 0) { - obj.enumType = featureSet_EnumTypeToJSON(message.enumType); - } - if (message.repeatedFieldEncoding !== undefined && message.repeatedFieldEncoding !== 0) { - obj.repeatedFieldEncoding = featureSet_RepeatedFieldEncodingToJSON(message.repeatedFieldEncoding); - } - if (message.stringFieldValidation !== undefined && message.stringFieldValidation !== 0) { - obj.stringFieldValidation = featureSet_StringFieldValidationToJSON(message.stringFieldValidation); - } - if (message.messageEncoding !== undefined && message.messageEncoding !== 0) { - obj.messageEncoding = featureSet_MessageEncodingToJSON(message.messageEncoding); - } - if (message.jsonFormat !== undefined && message.jsonFormat !== 0) { - obj.jsonFormat = featureSet_JsonFormatToJSON(message.jsonFormat); - } - if (message.rawFeatures !== undefined) { - obj.rawFeatures = FeatureSet.toJSON(message.rawFeatures); - } - return obj; - }, - - create(base?: DeepPartial): FeatureSet { - return FeatureSet.fromPartial(base ?? {}); - }, - fromPartial(object: DeepPartial): FeatureSet { - const message = createBaseFeatureSet(); - message.fieldPresence = object.fieldPresence ?? 0; - message.enumType = object.enumType ?? 0; - message.repeatedFieldEncoding = object.repeatedFieldEncoding ?? 0; - message.stringFieldValidation = object.stringFieldValidation ?? 0; - message.messageEncoding = object.messageEncoding ?? 0; - message.jsonFormat = object.jsonFormat ?? 0; - message.rawFeatures = (object.rawFeatures !== undefined && object.rawFeatures !== null) - ? FeatureSet.fromPartial(object.rawFeatures) - : undefined; - return message; - }, -}; - function createBaseSourceCodeInfo(): SourceCodeInfo { return { location: [] }; } @@ -5827,7 +4490,7 @@ export const GeneratedCodeInfo = { }; function createBaseGeneratedCodeInfo_Annotation(): GeneratedCodeInfo_Annotation { - return { path: [], sourceFile: "", begin: 0, end: 0, semantic: 0 }; + return { path: [], sourceFile: "", begin: 0, end: 0 }; } export const GeneratedCodeInfo_Annotation = { @@ -5848,9 +4511,6 @@ export const GeneratedCodeInfo_Annotation = { if (message.end !== undefined && message.end !== 0) { writer.uint32(32).int32(message.end); } - if (message.semantic !== undefined && message.semantic !== 0) { - writer.uint32(40).int32(message.semantic); - } return writer; }, @@ -5899,13 +4559,6 @@ export const GeneratedCodeInfo_Annotation = { message.end = reader.int32(); continue; - case 5: - if (tag !== 40) { - break; - } - - message.semantic = reader.int32() as any; - continue; } if ((tag & 7) === 4 || tag === 0) { break; @@ -5921,7 +4574,6 @@ export const GeneratedCodeInfo_Annotation = { sourceFile: isSet(object.sourceFile) ? String(object.sourceFile) : "", begin: isSet(object.begin) ? Number(object.begin) : 0, end: isSet(object.end) ? Number(object.end) : 0, - semantic: isSet(object.semantic) ? generatedCodeInfo_Annotation_SemanticFromJSON(object.semantic) : 0, }; }, @@ -5939,9 +4591,6 @@ export const GeneratedCodeInfo_Annotation = { if (message.end !== undefined && message.end !== 0) { obj.end = Math.round(message.end); } - if (message.semantic !== undefined && message.semantic !== 0) { - obj.semantic = generatedCodeInfo_Annotation_SemanticToJSON(message.semantic); - } return obj; }, @@ -5954,7 +4603,6 @@ export const GeneratedCodeInfo_Annotation = { message.sourceFile = object.sourceFile ?? ""; message.begin = object.begin ?? 0; message.end = object.end ?? 0; - message.semantic = object.semantic ?? 0; return message; }, }; diff --git a/web/src/proto/services/connect/v1/connect.ts b/web/src/proto/services/connect/v1/connect.ts index fdc83ac50..93b4af737 100644 --- a/web/src/proto/services/connect/v1/connect.ts +++ b/web/src/proto/services/connect/v1/connect.ts @@ -417,8 +417,18 @@ export interface Verification { begun?: | number | undefined; - /** The unix timestamp, in seconds, when this verification last changed state -- o */ - updated?: number | undefined; + /** + * The unix timestamp, in seconds, when this verification last changed state -- or `0` if it has not yet + * begun. + */ + updated?: + | number + | undefined; + /** + * The Government ID options for this Verification. + * Only set if this Verification is of type `GOVERNMENT_ID`. + */ + governmentIdOptions?: GovernmentIDOptions | undefined; } /** Request to create an Identity Verification Session */ @@ -430,7 +440,54 @@ export interface CreateSessionRequest { /** A verification to perform in an IDV flow */ export interface RequestedVerification { /** The type of verification to perform */ - type?: VerificationType | undefined; + type?: + | VerificationType + | undefined; + /** Options for a Verification of type `GOVERNMENT_ID` */ + governmentIdOptions?: GovernmentIDOptions | undefined; +} + +/** Options for a Verification of type `GOVERNMENT_ID` */ +export interface GovernmentIDOptions { + /** + * The fields to retrieve from the Government ID. + * If this object is not set, all fields will be retrieved. + */ + fields?: GovernmentIDFields | undefined; +} + +/** Selection of fields to retrieve from a Government ID. All fields default to `false` unless explicitly set to `true`. */ +export interface GovernmentIDFields { + /** ID number of the underlying identity document */ + idNumber?: + | boolean + | undefined; + /** Given ("first") name of the document holder */ + givenName?: + | boolean + | undefined; + /** Family ("last") name of the document holder */ + familyName?: + | boolean + | undefined; + /** Full address of the document holder */ + address?: + | boolean + | undefined; + /** Date of birth of the document holder */ + dateOfBirth?: + | boolean + | undefined; + /** ISO3 country code of the document */ + country?: + | boolean + | undefined; + /** Issuance date of the document */ + issueDate?: + | boolean + | undefined; + /** Expiration date date of the document */ + expirationDate?: boolean | undefined; } /** Response to `CreateIDVSessionRequest` */ @@ -778,7 +835,16 @@ export const IDVSession_VerificationsEntry = { }; function createBaseVerification(): Verification { - return { id: "", type: 0, state: 0, failCode: undefined, reused: false, begun: 0, updated: 0 }; + return { + id: "", + type: 0, + state: 0, + failCode: undefined, + reused: false, + begun: 0, + updated: 0, + governmentIdOptions: undefined, + }; } export const Verification = { @@ -804,6 +870,9 @@ export const Verification = { if (message.updated !== undefined && message.updated !== 0) { writer.uint32(57).fixed64(message.updated); } + if (message.governmentIdOptions !== undefined) { + GovernmentIDOptions.encode(message.governmentIdOptions, writer.uint32(66).fork()).ldelim(); + } return writer; }, @@ -863,6 +932,13 @@ export const Verification = { message.updated = longToNumber(reader.fixed64() as Long); continue; + case 8: + if (tag !== 66) { + break; + } + + message.governmentIdOptions = GovernmentIDOptions.decode(reader, reader.uint32()); + continue; } if ((tag & 7) === 4 || tag === 0) { break; @@ -881,6 +957,9 @@ export const Verification = { reused: isSet(object.reused) ? Boolean(object.reused) : false, begun: isSet(object.begun) ? Number(object.begun) : 0, updated: isSet(object.updated) ? Number(object.updated) : 0, + governmentIdOptions: isSet(object.governmentIdOptions) + ? GovernmentIDOptions.fromJSON(object.governmentIdOptions) + : undefined, }; }, @@ -907,6 +986,9 @@ export const Verification = { if (message.updated !== undefined && message.updated !== 0) { obj.updated = Math.round(message.updated); } + if (message.governmentIdOptions !== undefined) { + obj.governmentIdOptions = GovernmentIDOptions.toJSON(message.governmentIdOptions); + } return obj; }, @@ -922,6 +1004,9 @@ export const Verification = { message.reused = object.reused ?? false; message.begun = object.begun ?? 0; message.updated = object.updated ?? 0; + message.governmentIdOptions = (object.governmentIdOptions !== undefined && object.governmentIdOptions !== null) + ? GovernmentIDOptions.fromPartial(object.governmentIdOptions) + : undefined; return message; }, }; @@ -990,7 +1075,7 @@ export const CreateSessionRequest = { }; function createBaseRequestedVerification(): RequestedVerification { - return { type: 0 }; + return { type: 0, governmentIdOptions: undefined }; } export const RequestedVerification = { @@ -998,6 +1083,9 @@ export const RequestedVerification = { if (message.type !== undefined && message.type !== 0) { writer.uint32(8).int32(message.type); } + if (message.governmentIdOptions !== undefined) { + GovernmentIDOptions.encode(message.governmentIdOptions, writer.uint32(18).fork()).ldelim(); + } return writer; }, @@ -1015,6 +1103,13 @@ export const RequestedVerification = { message.type = reader.int32() as any; continue; + case 2: + if (tag !== 18) { + break; + } + + message.governmentIdOptions = GovernmentIDOptions.decode(reader, reader.uint32()); + continue; } if ((tag & 7) === 4 || tag === 0) { break; @@ -1025,7 +1120,12 @@ export const RequestedVerification = { }, fromJSON(object: any): RequestedVerification { - return { type: isSet(object.type) ? verificationTypeFromJSON(object.type) : 0 }; + return { + type: isSet(object.type) ? verificationTypeFromJSON(object.type) : 0, + governmentIdOptions: isSet(object.governmentIdOptions) + ? GovernmentIDOptions.fromJSON(object.governmentIdOptions) + : undefined, + }; }, toJSON(message: RequestedVerification): unknown { @@ -1033,6 +1133,9 @@ export const RequestedVerification = { if (message.type !== undefined && message.type !== 0) { obj.type = verificationTypeToJSON(message.type); } + if (message.governmentIdOptions !== undefined) { + obj.governmentIdOptions = GovernmentIDOptions.toJSON(message.governmentIdOptions); + } return obj; }, @@ -1042,6 +1145,241 @@ export const RequestedVerification = { fromPartial(object: DeepPartial): RequestedVerification { const message = createBaseRequestedVerification(); message.type = object.type ?? 0; + message.governmentIdOptions = (object.governmentIdOptions !== undefined && object.governmentIdOptions !== null) + ? GovernmentIDOptions.fromPartial(object.governmentIdOptions) + : undefined; + return message; + }, +}; + +function createBaseGovernmentIDOptions(): GovernmentIDOptions { + return { fields: undefined }; +} + +export const GovernmentIDOptions = { + encode(message: GovernmentIDOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + if (message.fields !== undefined) { + GovernmentIDFields.encode(message.fields, writer.uint32(10).fork()).ldelim(); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): GovernmentIDOptions { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGovernmentIDOptions(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 10) { + break; + } + + message.fields = GovernmentIDFields.decode(reader, reader.uint32()); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): GovernmentIDOptions { + return { fields: isSet(object.fields) ? GovernmentIDFields.fromJSON(object.fields) : undefined }; + }, + + toJSON(message: GovernmentIDOptions): unknown { + const obj: any = {}; + if (message.fields !== undefined) { + obj.fields = GovernmentIDFields.toJSON(message.fields); + } + return obj; + }, + + create(base?: DeepPartial): GovernmentIDOptions { + return GovernmentIDOptions.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): GovernmentIDOptions { + const message = createBaseGovernmentIDOptions(); + message.fields = (object.fields !== undefined && object.fields !== null) + ? GovernmentIDFields.fromPartial(object.fields) + : undefined; + return message; + }, +}; + +function createBaseGovernmentIDFields(): GovernmentIDFields { + return { + idNumber: false, + givenName: false, + familyName: false, + address: false, + dateOfBirth: false, + country: false, + issueDate: false, + expirationDate: false, + }; +} + +export const GovernmentIDFields = { + encode(message: GovernmentIDFields, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + if (message.idNumber === true) { + writer.uint32(8).bool(message.idNumber); + } + if (message.givenName === true) { + writer.uint32(16).bool(message.givenName); + } + if (message.familyName === true) { + writer.uint32(24).bool(message.familyName); + } + if (message.address === true) { + writer.uint32(32).bool(message.address); + } + if (message.dateOfBirth === true) { + writer.uint32(40).bool(message.dateOfBirth); + } + if (message.country === true) { + writer.uint32(48).bool(message.country); + } + if (message.issueDate === true) { + writer.uint32(56).bool(message.issueDate); + } + if (message.expirationDate === true) { + writer.uint32(64).bool(message.expirationDate); + } + return writer; + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): GovernmentIDFields { + const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input); + let end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGovernmentIDFields(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (tag !== 8) { + break; + } + + message.idNumber = reader.bool(); + continue; + case 2: + if (tag !== 16) { + break; + } + + message.givenName = reader.bool(); + continue; + case 3: + if (tag !== 24) { + break; + } + + message.familyName = reader.bool(); + continue; + case 4: + if (tag !== 32) { + break; + } + + message.address = reader.bool(); + continue; + case 5: + if (tag !== 40) { + break; + } + + message.dateOfBirth = reader.bool(); + continue; + case 6: + if (tag !== 48) { + break; + } + + message.country = reader.bool(); + continue; + case 7: + if (tag !== 56) { + break; + } + + message.issueDate = reader.bool(); + continue; + case 8: + if (tag !== 64) { + break; + } + + message.expirationDate = reader.bool(); + continue; + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skipType(tag & 7); + } + return message; + }, + + fromJSON(object: any): GovernmentIDFields { + return { + idNumber: isSet(object.idNumber) ? Boolean(object.idNumber) : false, + givenName: isSet(object.givenName) ? Boolean(object.givenName) : false, + familyName: isSet(object.familyName) ? Boolean(object.familyName) : false, + address: isSet(object.address) ? Boolean(object.address) : false, + dateOfBirth: isSet(object.dateOfBirth) ? Boolean(object.dateOfBirth) : false, + country: isSet(object.country) ? Boolean(object.country) : false, + issueDate: isSet(object.issueDate) ? Boolean(object.issueDate) : false, + expirationDate: isSet(object.expirationDate) ? Boolean(object.expirationDate) : false, + }; + }, + + toJSON(message: GovernmentIDFields): unknown { + const obj: any = {}; + if (message.idNumber === true) { + obj.idNumber = message.idNumber; + } + if (message.givenName === true) { + obj.givenName = message.givenName; + } + if (message.familyName === true) { + obj.familyName = message.familyName; + } + if (message.address === true) { + obj.address = message.address; + } + if (message.dateOfBirth === true) { + obj.dateOfBirth = message.dateOfBirth; + } + if (message.country === true) { + obj.country = message.country; + } + if (message.issueDate === true) { + obj.issueDate = message.issueDate; + } + if (message.expirationDate === true) { + obj.expirationDate = message.expirationDate; + } + return obj; + }, + + create(base?: DeepPartial): GovernmentIDFields { + return GovernmentIDFields.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): GovernmentIDFields { + const message = createBaseGovernmentIDFields(); + message.idNumber = object.idNumber ?? false; + message.givenName = object.givenName ?? false; + message.familyName = object.familyName ?? false; + message.address = object.address ?? false; + message.dateOfBirth = object.dateOfBirth ?? false; + message.country = object.country ?? false; + message.issueDate = object.issueDate ?? false; + message.expirationDate = object.expirationDate ?? false; return message; }, }; diff --git a/web/src/proto/services/file-management/v1/file-management.ts b/web/src/proto/services/file-management/v1/file-management.ts index 0da37aa9f..299ce4033 100644 --- a/web/src/proto/services/file-management/v1/file-management.ts +++ b/web/src/proto/services/file-management/v1/file-management.ts @@ -983,7 +983,7 @@ export const FileManagementDefinition = { requestStream: false, responseType: GetStorageStatsResponse, responseStream: false, - options: { _unknownFields: { 480010: [new Uint8Array([6, 24, 1, 34, 2, 8, 1])] } }, + options: { _unknownFields: { 480010: [new Uint8Array([4, 34, 2, 8, 1]), new Uint8Array([2, 24, 1])] } }, }, }, } as const; diff --git a/web/src/proto/services/provider/v1/access-management.ts b/web/src/proto/services/provider/v1/access-management.ts index 8f9fdf239..f798ca8d9 100644 --- a/web/src/proto/services/provider/v1/access-management.ts +++ b/web/src/proto/services/provider/v1/access-management.ts @@ -684,7 +684,7 @@ export const AccessManagementDefinition = { requestStream: false, responseType: ListAvailableRolesResponse, responseStream: false, - options: { _unknownFields: { 480010: [new Uint8Array([6, 16, 1, 34, 2, 8, 1])] } }, + options: { _unknownFields: { 480010: [new Uint8Array([4, 34, 2, 8, 1]), new Uint8Array([2, 16, 1])] } }, }, }, } as const;