Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Multi ecosystem lookup in Trinsic Connect (#3011) * Imple #1576

Merged
merged 2 commits into from
Nov 16, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 43 additions & 13 deletions proto/services/connect/v1/connect.proto
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,40 @@ message Verification {
// 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;

// Normalized output for manual parsing and usage for this verification
// Only set if this Verification is of type `GOVERNMENT_ID` and has succeeded.
optional NormalizedGovernmentIdData normalized_government_id_data = 9;
}

message NormalizedGovernmentIdData {
// The ID number of the underlying identity document
optional string id_number = 1 [json_name = "idNumber"];

// Given ("first") name of the document holder
optional string given_name = 2 [json_name = "givenName"];

// Family ("last") name of the document holder
optional string family_name = 3 [json_name = "familyName"];

// Full address of the document holder
optional string address = 4 [json_name = "address"];

// Date of birth of the document holder
optional string date_of_birth = 5 [json_name = "dateOfBirth"];

// ISO3 country code of the document
optional string country = 6 [json_name = "country"];

// Issuance date of the document
optional string issue_date = 7 [json_name = "issueDate"];

// Expiration date date of the document
optional string expiration_date = 8 [json_name = "expirationDate"];
}

// Request to create an Identity Verification Session
Expand All @@ -167,7 +197,7 @@ 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;
Expand All @@ -185,25 +215,25 @@ message GovernmentIDOptions {
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;
}
Expand Down Expand Up @@ -253,7 +283,7 @@ message ListSessionsRequest {
optional int32 page_size = 3;

// The page index of results to return.
// Starts at `1`.
// Starts at `1`.
// Defaults to `1`.
optional int32 page = 4;
}
Expand All @@ -275,10 +305,10 @@ message ListSessionsResponse {
enum SessionOrdering {
// Order sessions according to when they were created
CREATED = 0;

// Order sessions according to when they last changed state
UPDATED = 1;

// Order sessions according to their numerical state
STATE = 2;
}
Expand All @@ -293,7 +323,7 @@ service Connect {

// Get an IDVSession
rpc GetSession(GetSessionRequest) returns (GetSessionResponse);

// List IDVSessions created by the calling wallet
rpc ListSessions(ListSessionsRequest) returns (ListSessionsResponse);
}
Loading