Skip to content

Commit

Permalink
feat: Multi ecosystem lookup in Trinsic Connect (#3011) * Imple (#1576)
Browse files Browse the repository at this point in the history
Co-authored-by: lucasamonrc <[email protected]>
Co-authored-by: mewmba <[email protected]>
  • Loading branch information
3 people authored Nov 16, 2023
1 parent df17bf8 commit 7660016
Show file tree
Hide file tree
Showing 13 changed files with 4,175 additions and 310 deletions.
215 changes: 215 additions & 0 deletions dart/lib/src/proto/services/connect/v1/connect.pb.dart
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ class Verification extends $pb.GeneratedMessage {
$fixnum.Int64? begun,
$fixnum.Int64? updated,
GovernmentIDOptions? governmentIdOptions,
NormalizedGovernmentIdData? normalizedGovernmentIdData,
}) {
final $result = create();
if (id != null) {
Expand All @@ -252,6 +253,9 @@ class Verification extends $pb.GeneratedMessage {
if (governmentIdOptions != null) {
$result.governmentIdOptions = governmentIdOptions;
}
if (normalizedGovernmentIdData != null) {
$result.normalizedGovernmentIdData = normalizedGovernmentIdData;
}
return $result;
}
Verification._() : super();
Expand Down Expand Up @@ -289,6 +293,9 @@ class Verification extends $pb.GeneratedMessage {
defaultOrMaker: $fixnum.Int64.ZERO)
..aOM<GovernmentIDOptions>(8, _omitFieldNames ? '' : 'governmentIdOptions',
subBuilder: GovernmentIDOptions.create)
..aOM<NormalizedGovernmentIdData>(
9, _omitFieldNames ? '' : 'normalizedGovernmentIdData',
subBuilder: NormalizedGovernmentIdData.create)
..hasRequiredFields = false;

@$core.Deprecated('Using this can add significant overhead to your binary. '
Expand Down Expand Up @@ -424,6 +431,214 @@ class Verification extends $pb.GeneratedMessage {
void clearGovernmentIdOptions() => clearField(8);
@$pb.TagNumber(8)
GovernmentIDOptions ensureGovernmentIdOptions() => $_ensure(7);

/// Normalized output for manual parsing and usage for this verification
/// Only set if this Verification is of type `GOVERNMENT_ID` and has succeeded.
@$pb.TagNumber(9)
NormalizedGovernmentIdData get normalizedGovernmentIdData => $_getN(8);
@$pb.TagNumber(9)
set normalizedGovernmentIdData(NormalizedGovernmentIdData v) {
setField(9, v);
}

@$pb.TagNumber(9)
$core.bool hasNormalizedGovernmentIdData() => $_has(8);
@$pb.TagNumber(9)
void clearNormalizedGovernmentIdData() => clearField(9);
@$pb.TagNumber(9)
NormalizedGovernmentIdData ensureNormalizedGovernmentIdData() => $_ensure(8);
}

class NormalizedGovernmentIdData extends $pb.GeneratedMessage {
factory NormalizedGovernmentIdData({
$core.String? idNumber,
$core.String? givenName,
$core.String? familyName,
$core.String? address,
$core.String? dateOfBirth,
$core.String? country,
$core.String? issueDate,
$core.String? 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;
}
NormalizedGovernmentIdData._() : super();
factory NormalizedGovernmentIdData.fromBuffer($core.List<$core.int> i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(i, r);
factory NormalizedGovernmentIdData.fromJson($core.String i,
[$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(i, r);

static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'NormalizedGovernmentIdData',
package:
const $pb.PackageName(_omitMessageNames ? '' : 'services.connect.v1'),
createEmptyInstance: create)
..aOS(1, _omitFieldNames ? '' : 'idNumber')
..aOS(2, _omitFieldNames ? '' : 'givenName')
..aOS(3, _omitFieldNames ? '' : 'familyName')
..aOS(4, _omitFieldNames ? '' : 'address')
..aOS(5, _omitFieldNames ? '' : 'dateOfBirth')
..aOS(6, _omitFieldNames ? '' : 'country')
..aOS(7, _omitFieldNames ? '' : 'issueDate')
..aOS(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')
NormalizedGovernmentIdData clone() =>
NormalizedGovernmentIdData()..mergeFromMessage(this);
@$core.Deprecated('Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
NormalizedGovernmentIdData copyWith(
void Function(NormalizedGovernmentIdData) updates) =>
super.copyWith(
(message) => updates(message as NormalizedGovernmentIdData))
as NormalizedGovernmentIdData;

$pb.BuilderInfo get info_ => _i;

@$core.pragma('dart2js:noInline')
static NormalizedGovernmentIdData create() => NormalizedGovernmentIdData._();
NormalizedGovernmentIdData createEmptyInstance() => create();
static $pb.PbList<NormalizedGovernmentIdData> createRepeated() =>
$pb.PbList<NormalizedGovernmentIdData>();
@$core.pragma('dart2js:noInline')
static NormalizedGovernmentIdData getDefault() => _defaultInstance ??=
$pb.GeneratedMessage.$_defaultFor<NormalizedGovernmentIdData>(create);
static NormalizedGovernmentIdData? _defaultInstance;

/// The ID number of the underlying identity document
@$pb.TagNumber(1)
$core.String get idNumber => $_getSZ(0);
@$pb.TagNumber(1)
set idNumber($core.String v) {
$_setString(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.String get givenName => $_getSZ(1);
@$pb.TagNumber(2)
set givenName($core.String v) {
$_setString(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.String get familyName => $_getSZ(2);
@$pb.TagNumber(3)
set familyName($core.String v) {
$_setString(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.String get address => $_getSZ(3);
@$pb.TagNumber(4)
set address($core.String v) {
$_setString(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.String get dateOfBirth => $_getSZ(4);
@$pb.TagNumber(5)
set dateOfBirth($core.String v) {
$_setString(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.String get country => $_getSZ(5);
@$pb.TagNumber(6)
set country($core.String v) {
$_setString(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.String get issueDate => $_getSZ(6);
@$pb.TagNumber(7)
set issueDate($core.String v) {
$_setString(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.String get expirationDate => $_getSZ(7);
@$pb.TagNumber(8)
set expirationDate($core.String v) {
$_setString(7, v);
}

@$pb.TagNumber(8)
$core.bool hasExpirationDate() => $_has(7);
@$pb.TagNumber(8)
void clearExpirationDate() => clearField(8);
}

/// Request to create an Identity Verification Session
Expand Down
116 changes: 115 additions & 1 deletion dart/lib/src/proto/services/connect/v1/connect.pbjson.dart
Original file line number Diff line number Diff line change
Expand Up @@ -242,10 +242,21 @@ const Verification$json = {
'10': 'governmentIdOptions',
'17': true
},
{
'1': 'normalized_government_id_data',
'3': 9,
'4': 1,
'5': 11,
'6': '.services.connect.v1.NormalizedGovernmentIdData',
'9': 2,
'10': 'normalizedGovernmentIdData',
'17': true
},
],
'8': [
{'1': '_fail_code'},
{'1': '_government_id_options'},
{'1': '_normalized_government_id_data'},
],
};

Expand All @@ -258,7 +269,110 @@ final $typed_data.Uint8List verificationDescriptor = $convert.base64Decode(
'b2RliAEBEhYKBnJldXNlZBgFIAEoCFIGcmV1c2VkEhQKBWJlZ3VuGAYgASgGUgViZWd1bhIYCg'
'd1cGRhdGVkGAcgASgGUgd1cGRhdGVkEmEKFWdvdmVybm1lbnRfaWRfb3B0aW9ucxgIIAEoCzIo'
'LnNlcnZpY2VzLmNvbm5lY3QudjEuR292ZXJubWVudElET3B0aW9uc0gBUhNnb3Zlcm5tZW50SW'
'RPcHRpb25ziAEBQgwKCl9mYWlsX2NvZGVCGAoWX2dvdmVybm1lbnRfaWRfb3B0aW9ucw==');
'RPcHRpb25ziAEBEncKHW5vcm1hbGl6ZWRfZ292ZXJubWVudF9pZF9kYXRhGAkgASgLMi8uc2Vy'
'dmljZXMuY29ubmVjdC52MS5Ob3JtYWxpemVkR292ZXJubWVudElkRGF0YUgCUhpub3JtYWxpem'
'VkR292ZXJubWVudElkRGF0YYgBAUIMCgpfZmFpbF9jb2RlQhgKFl9nb3Zlcm5tZW50X2lkX29w'
'dGlvbnNCIAoeX25vcm1hbGl6ZWRfZ292ZXJubWVudF9pZF9kYXRh');

@$core.Deprecated('Use normalizedGovernmentIdDataDescriptor instead')
const NormalizedGovernmentIdData$json = {
'1': 'NormalizedGovernmentIdData',
'2': [
{
'1': 'id_number',
'3': 1,
'4': 1,
'5': 9,
'9': 0,
'10': 'idNumber',
'17': true
},
{
'1': 'given_name',
'3': 2,
'4': 1,
'5': 9,
'9': 1,
'10': 'givenName',
'17': true
},
{
'1': 'family_name',
'3': 3,
'4': 1,
'5': 9,
'9': 2,
'10': 'familyName',
'17': true
},
{
'1': 'address',
'3': 4,
'4': 1,
'5': 9,
'9': 3,
'10': 'address',
'17': true
},
{
'1': 'date_of_birth',
'3': 5,
'4': 1,
'5': 9,
'9': 4,
'10': 'dateOfBirth',
'17': true
},
{
'1': 'country',
'3': 6,
'4': 1,
'5': 9,
'9': 5,
'10': 'country',
'17': true
},
{
'1': 'issue_date',
'3': 7,
'4': 1,
'5': 9,
'9': 6,
'10': 'issueDate',
'17': true
},
{
'1': 'expiration_date',
'3': 8,
'4': 1,
'5': 9,
'9': 7,
'10': 'expirationDate',
'17': true
},
],
'8': [
{'1': '_id_number'},
{'1': '_given_name'},
{'1': '_family_name'},
{'1': '_address'},
{'1': '_date_of_birth'},
{'1': '_country'},
{'1': '_issue_date'},
{'1': '_expiration_date'},
],
};

/// Descriptor for `NormalizedGovernmentIdData`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List normalizedGovernmentIdDataDescriptor = $convert.base64Decode(
'ChpOb3JtYWxpemVkR292ZXJubWVudElkRGF0YRIgCglpZF9udW1iZXIYASABKAlIAFIIaWROdW'
'1iZXKIAQESIgoKZ2l2ZW5fbmFtZRgCIAEoCUgBUglnaXZlbk5hbWWIAQESJAoLZmFtaWx5X25h'
'bWUYAyABKAlIAlIKZmFtaWx5TmFtZYgBARIdCgdhZGRyZXNzGAQgASgJSANSB2FkZHJlc3OIAQ'
'ESJwoNZGF0ZV9vZl9iaXJ0aBgFIAEoCUgEUgtkYXRlT2ZCaXJ0aIgBARIdCgdjb3VudHJ5GAYg'
'ASgJSAVSB2NvdW50cnmIAQESIgoKaXNzdWVfZGF0ZRgHIAEoCUgGUglpc3N1ZURhdGWIAQESLA'
'oPZXhwaXJhdGlvbl9kYXRlGAggASgJSAdSDmV4cGlyYXRpb25EYXRliAEBQgwKCl9pZF9udW1i'
'ZXJCDQoLX2dpdmVuX25hbWVCDgoMX2ZhbWlseV9uYW1lQgoKCF9hZGRyZXNzQhAKDl9kYXRlX2'
'9mX2JpcnRoQgoKCF9jb3VudHJ5Qg0KC19pc3N1ZV9kYXRlQhIKEF9leHBpcmF0aW9uX2RhdGU=');

@$core.Deprecated('Use createSessionRequestDescriptor instead')
const CreateSessionRequest$json = {
Expand Down
Loading

0 comments on commit 7660016

Please sign in to comment.