Skip to content

Commit

Permalink
Generated code and changes from branch main, commit SHA 30d8af17 (#164)
Browse files Browse the repository at this point in the history
Co-authored-by: fundthmcalculus <[email protected]>
  • Loading branch information
mewmba and fundthmcalculus authored Jan 26, 2024
1 parent ea1623a commit da7bbe2
Show file tree
Hide file tree
Showing 8 changed files with 726 additions and 51 deletions.
37 changes: 32 additions & 5 deletions proto/services/connect/v1/connect.proto
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ option java_multiple_files = true;
import "services/common/v1/common.proto";
import "services/universal-wallet/v1/universal-wallet.proto";

import "services/google/api/annotations.proto";

// The type of verification to perform
enum VerificationType {
// Government-issued ID (driver's license, passport, etc)
Expand Down Expand Up @@ -340,17 +342,42 @@ enum SessionOrdering {
// The Connect service provides access to Trinsic Connect, a reusable identity verification service.
service Connect {
// Create an IDVSession
rpc CreateSession(CreateSessionRequest) returns (CreateSessionResponse);
rpc CreateSession(CreateSessionRequest) returns (CreateSessionResponse) {
option (google.api.http) = {
post: "/v1/connect/createsession"
body: "*"
};
}

// Cancel an IDVSession
rpc CancelSession(CancelSessionRequest) returns (CancelSessionResponse);
rpc CancelSession(CancelSessionRequest) returns (CancelSessionResponse) {
option (google.api.http) = {
post: "/v1/connect/cancelsession"
body: "*"
};
}

// Get an IDVSession
rpc GetSession(GetSessionRequest) returns (GetSessionResponse);
rpc GetSession(GetSessionRequest) returns (GetSessionResponse) {
option (google.api.http) = {
post: "/v1/connect/getsession"
body: "*"
};
}

// List IDVSessions created by the calling wallet
rpc ListSessions(ListSessionsRequest) returns (ListSessionsResponse);
rpc ListSessions(ListSessionsRequest) returns (ListSessionsResponse) {
option (google.api.http) = {
post: "/v1/connect/listsessions"
body: "*"
};
}

// Checks if the identity provided in the request has a wallet containing a valid reusable credential
rpc HasValidCredential(HasValidCredentialRequest) returns (HasValidCredentialResponse);
rpc HasValidCredential(HasValidCredentialRequest) returns (HasValidCredentialResponse) {
option (google.api.http) = {
post: "/v1/connect/hasvalidcredential"
body: "*"
};
}
}
31 changes: 31 additions & 0 deletions proto/services/google/api/annotations.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// Copyright (c) 2015, Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

syntax = "proto3";

package google.api;

import "services/google/api/http.proto";
import "google/protobuf/descriptor.proto";

option go_package = "google.golang.org/genproto/googleapis/api/annotations;annotations";
option java_multiple_files = true;
option java_outer_classname = "AnnotationsProto";
option java_package = "com.google.api";
option objc_class_prefix = "GAPI";

extend google.protobuf.MethodOptions {
// See `HttpRule`.
HttpRule http = 72295728;
}
Loading

0 comments on commit da7bbe2

Please sign in to comment.