diff --git a/Sources/Trinsic/AccessManagementService.swift b/Sources/Trinsic/AccessManagementService.swift index e51fc71..d4f9778 100644 --- a/Sources/Trinsic/AccessManagementService.swift +++ b/Sources/Trinsic/AccessManagementService.swift @@ -21,28 +21,26 @@ public class AccessManagementService: ServiceBase { client = Services_Provider_V1_AccessManagementNIOClient(channel: createChannel()) } - // BEGIN Code generated by protoc-gen-trinsic. DO NOT EDIT. - // target: /home/runner/work/sdk-swift/sdk-swift/Sources/Trinsic/AccessManagementService.swift +// BEGIN Code generated by protoc-gen-trinsic. DO NOT EDIT. +// target: /home/runner/work/sdk-swift/sdk-swift/Sources/Trinsic/AccessManagementService.swift @available(*, deprecated, message: "This method is experimental") public func addRoleAssignment(request: Services_Provider_V1_AddRoleAssignmentRequest) throws -> Services_Provider_V1_AddRoleAssignmentResponse { - try client!.AddRoleAssignment(request, callOptions: buildMetadata(request)) + return try client!.AddRoleAssignment(request, callOptions: try buildMetadata(request)) .response .wait() } - @available(*, deprecated, message: "This method is experimental") public func removeRoleAssignment(request: Services_Provider_V1_RemoveRoleAssignmentRequest) throws -> Services_Provider_V1_RemoveRoleAssignmentResponse { - try client!.RemoveRoleAssignment(request, callOptions: buildMetadata(request)) + return try client!.RemoveRoleAssignment(request, callOptions: try buildMetadata(request)) .response .wait() } - @available(*, deprecated, message: "This method is experimental") public func listRoleAssignments(request: Services_Provider_V1_ListRoleAssignmentsRequest) throws -> Services_Provider_V1_ListRoleAssignmentsResponse { - try client!.ListRoleAssignments(request, callOptions: buildMetadata(request)) + return try client!.ListRoleAssignments(request, callOptions: try buildMetadata(request)) .response .wait() } - // END Code generated by protoc-gen-trinsic. DO NOT EDIT. +// END Code generated by protoc-gen-trinsic. DO NOT EDIT. } diff --git a/Sources/Trinsic/CredentialService.swift b/Sources/Trinsic/CredentialService.swift index 983e5be..b8ac39c 100644 --- a/Sources/Trinsic/CredentialService.swift +++ b/Sources/Trinsic/CredentialService.swift @@ -21,61 +21,62 @@ public class CredentialService: ServiceBase { client = Services_Verifiablecredentials_V1_VerifiableCredentialNIOClient(channel: createChannel()) } - // BEGIN Code generated by protoc-gen-trinsic. DO NOT EDIT. - // target: /home/runner/work/sdk-swift/sdk-swift/Sources/Trinsic/CredentialService.swift +// BEGIN Code generated by protoc-gen-trinsic. DO NOT EDIT. +// target: /home/runner/work/sdk-swift/sdk-swift/Sources/Trinsic/CredentialService.swift + public func issueFromTemplate(request: Services_Verifiablecredentials_V1_IssueFromTemplateRequest) throws -> Services_Verifiablecredentials_V1_IssueFromTemplateResponse { - try client!.IssueFromTemplate(request, callOptions: buildMetadata(request)) + return try client!.IssueFromTemplate(request, callOptions: try buildMetadata(request)) .response .wait() } - + public func checkStatus(request: Services_Verifiablecredentials_V1_CheckStatusRequest) throws -> Services_Verifiablecredentials_V1_CheckStatusResponse { - try client!.CheckStatus(request, callOptions: buildMetadata(request)) + return try client!.CheckStatus(request, callOptions: try buildMetadata(request)) .response .wait() } - + public func updateStatus(request: Services_Verifiablecredentials_V1_UpdateStatusRequest) throws -> Services_Verifiablecredentials_V1_UpdateStatusResponse { - try client!.UpdateStatus(request, callOptions: buildMetadata(request)) + return try client!.UpdateStatus(request, callOptions: try buildMetadata(request)) .response .wait() } - + public func createProof(request: Services_Verifiablecredentials_V1_CreateProofRequest) throws -> Services_Verifiablecredentials_V1_CreateProofResponse { - try client!.CreateProof(request, callOptions: buildMetadata(request)) + return try client!.CreateProof(request, callOptions: try buildMetadata(request)) .response .wait() } - + public func verifyProof(request: Services_Verifiablecredentials_V1_VerifyProofRequest) throws -> Services_Verifiablecredentials_V1_VerifyProofResponse { - try client!.VerifyProof(request, callOptions: buildMetadata(request)) + return try client!.VerifyProof(request, callOptions: try buildMetadata(request)) .response .wait() } - + public func send(request: Services_Verifiablecredentials_V1_SendRequest) throws -> Services_Verifiablecredentials_V1_SendResponse { - try client!.Send(request, callOptions: buildMetadata(request)) + return try client!.Send(request, callOptions: try buildMetadata(request)) .response .wait() } - + public func createCredentialOffer(request: Services_Verifiablecredentials_V1_CreateCredentialOfferRequest) throws -> Services_Verifiablecredentials_V1_CreateCredentialOfferResponse { - try client!.CreateCredentialOffer(request, callOptions: buildMetadata(request)) + return try client!.CreateCredentialOffer(request, callOptions: try buildMetadata(request)) .response .wait() } - + public func acceptCredential(request: Services_Verifiablecredentials_V1_AcceptCredentialRequest) throws -> Services_Verifiablecredentials_V1_AcceptCredentialResponse { - try client!.AcceptCredential(request, callOptions: buildMetadata(request)) + return try client!.AcceptCredential(request, callOptions: try buildMetadata(request)) .response .wait() } - + public func rejectCredential(request: Services_Verifiablecredentials_V1_RejectCredentialRequest) throws -> Services_Verifiablecredentials_V1_RejectCredentialResponse { - try client!.RejectCredential(request, callOptions: buildMetadata(request)) + return try client!.RejectCredential(request, callOptions: try buildMetadata(request)) .response .wait() } - // END Code generated by protoc-gen-trinsic. DO NOT EDIT. +// END Code generated by protoc-gen-trinsic. DO NOT EDIT. } diff --git a/Sources/Trinsic/FileManagementService.swift b/Sources/Trinsic/FileManagementService.swift index e8a1fca..7b89ef9 100644 --- a/Sources/Trinsic/FileManagementService.swift +++ b/Sources/Trinsic/FileManagementService.swift @@ -21,42 +21,38 @@ public class FileManagementService: ServiceBase { client = Services_Filemanagement_V1_FileManagementNIOClient(channel: createChannel()) } - // BEGIN Code generated by protoc-gen-trinsic. DO NOT EDIT. - // target: /home/runner/work/sdk-swift/sdk-swift/Sources/Trinsic/FileManagementService.swift +// BEGIN Code generated by protoc-gen-trinsic. DO NOT EDIT. +// target: /home/runner/work/sdk-swift/sdk-swift/Sources/Trinsic/FileManagementService.swift @available(*, deprecated, message: "This method is experimental") public func uploadFile(request: Services_Filemanagement_V1_UploadFileRequest) throws -> Services_Filemanagement_V1_UploadFileResponse { - try client!.UploadFile(request, callOptions: buildMetadata(request)) + return try client!.UploadFile(request, callOptions: try buildMetadata(request)) .response .wait() } - @available(*, deprecated, message: "This method is experimental") public func getFile(request: Services_Filemanagement_V1_GetFileRequest) throws -> Services_Filemanagement_V1_GetFileResponse { - try client!.GetFile(request, callOptions: buildMetadata(request)) + return try client!.GetFile(request, callOptions: try buildMetadata(request)) .response .wait() } - @available(*, deprecated, message: "This method is experimental") public func deleteFile(request: Services_Filemanagement_V1_DeleteFileRequest) throws -> Services_Filemanagement_V1_DeleteFileResponse { - try client!.DeleteFile(request, callOptions: buildMetadata(request)) + return try client!.DeleteFile(request, callOptions: try buildMetadata(request)) .response .wait() } - @available(*, deprecated, message: "This method is experimental") public func listFiles(request: Services_Filemanagement_V1_ListFilesRequest) throws -> Services_Filemanagement_V1_ListFilesResponse { - try client!.ListFiles(request, callOptions: buildMetadata(request)) + return try client!.ListFiles(request, callOptions: try buildMetadata(request)) .response .wait() } - @available(*, deprecated, message: "This method is experimental") public func getStorageStats(request: Services_Filemanagement_V1_GetStorageStatsRequest) throws -> Services_Filemanagement_V1_GetStorageStatsResponse { - try client!.GetStorageStats(request, callOptions: buildMetadata(request)) + return try client!.GetStorageStats(request, callOptions: try buildMetadata(request)) .response .wait() } - // END Code generated by protoc-gen-trinsic. DO NOT EDIT. +// END Code generated by protoc-gen-trinsic. DO NOT EDIT. } diff --git a/Sources/Trinsic/ProviderService.swift b/Sources/Trinsic/ProviderService.swift index 0cc4345..da669f9 100644 --- a/Sources/Trinsic/ProviderService.swift +++ b/Sources/Trinsic/ProviderService.swift @@ -31,25 +31,26 @@ public class ProviderService: ServiceBase { } } - // BEGIN Code generated by protoc-gen-trinsic. DO NOT EDIT. - // target: /home/runner/work/sdk-swift/sdk-swift/Sources/Trinsic/ProviderService.swift +// BEGIN Code generated by protoc-gen-trinsic. DO NOT EDIT. +// target: /home/runner/work/sdk-swift/sdk-swift/Sources/Trinsic/ProviderService.swift + public func getOberonKey(request: Services_Provider_V1_GetOberonKeyRequest) throws -> Services_Provider_V1_GetOberonKeyResponse { - try client!.GetOberonKey(request, callOptions: buildMetadata(nil)) + return try client!.GetOberonKey(request, callOptions: try buildMetadata(nil)) .response .wait() } - + public func upgradeDID(request: Services_Provider_V1_UpgradeDidRequest) throws -> Services_Provider_V1_UpgradeDidResponse { - try client!.UpgradeDID(request, callOptions: buildMetadata(request)) + return try client!.UpgradeDID(request, callOptions: try buildMetadata(request)) .response .wait() } - + public func searchWalletConfigurations(request: Services_Provider_V1_SearchWalletConfigurationsRequest) throws -> Services_Provider_V1_SearchWalletConfigurationResponse { - try client!.SearchWalletConfigurations(request, callOptions: buildMetadata(request)) + return try client!.SearchWalletConfigurations(request, callOptions: try buildMetadata(request)) .response .wait() } - // END Code generated by protoc-gen-trinsic. DO NOT EDIT. +// END Code generated by protoc-gen-trinsic. DO NOT EDIT. } diff --git a/Sources/Trinsic/TemplateService.swift b/Sources/Trinsic/TemplateService.swift index e908cb4..4b5fd77 100644 --- a/Sources/Trinsic/TemplateService.swift +++ b/Sources/Trinsic/TemplateService.swift @@ -39,78 +39,74 @@ public class TemplateService: ServiceBase { .wait() } - // BEGIN Code generated by protoc-gen-trinsic. DO NOT EDIT. - // target: /home/runner/work/sdk-swift/sdk-swift/Sources/Trinsic/TemplateService.swift +// BEGIN Code generated by protoc-gen-trinsic. DO NOT EDIT. +// target: /home/runner/work/sdk-swift/sdk-swift/Sources/Trinsic/TemplateService.swift + public func create(request: Services_Verifiablecredentials_Templates_V1_CreateCredentialTemplateRequest) throws -> Services_Verifiablecredentials_Templates_V1_CreateCredentialTemplateResponse { - try client!.Create(request, callOptions: buildMetadata(request)) + return try client!.Create(request, callOptions: try buildMetadata(request)) .response .wait() } - + public func get(request: Services_Verifiablecredentials_Templates_V1_GetCredentialTemplateRequest) throws -> Services_Verifiablecredentials_Templates_V1_GetCredentialTemplateResponse { - try client!.Get(request, callOptions: buildMetadata(request)) + return try client!.Get(request, callOptions: try buildMetadata(request)) .response .wait() } - + public func update(request: Services_Verifiablecredentials_Templates_V1_UpdateCredentialTemplateRequest) throws -> Services_Verifiablecredentials_Templates_V1_UpdateCredentialTemplateResponse { - try client!.Update(request, callOptions: buildMetadata(request)) + return try client!.Update(request, callOptions: try buildMetadata(request)) .response .wait() } - + public func list(request: Services_Verifiablecredentials_Templates_V1_ListCredentialTemplatesRequest) throws -> Services_Verifiablecredentials_Templates_V1_ListCredentialTemplatesResponse { - try client!.List(request, callOptions: buildMetadata(request)) + return try client!.List(request, callOptions: try buildMetadata(request)) .response .wait() } - + public func search(request: Services_Verifiablecredentials_Templates_V1_SearchCredentialTemplatesRequest) throws -> Services_Verifiablecredentials_Templates_V1_SearchCredentialTemplatesResponse { - try client!.Search(request, callOptions: buildMetadata(request)) + return try client!.Search(request, callOptions: try buildMetadata(request)) .response .wait() } - + public func delete(request: Services_Verifiablecredentials_Templates_V1_DeleteCredentialTemplateRequest) throws -> Services_Verifiablecredentials_Templates_V1_DeleteCredentialTemplateResponse { - try client!.Delete(request, callOptions: buildMetadata(request)) + return try client!.Delete(request, callOptions: try buildMetadata(request)) .response .wait() } - @available(*, deprecated, message: "This method is experimental") public func createVerificationTemplate(request: Services_Verifiablecredentials_Templates_V1_CreateVerificationTemplateRequest) throws -> Services_Verifiablecredentials_Templates_V1_CreateVerificationTemplateResponse { - try client!.CreateVerificationTemplate(request, callOptions: buildMetadata(request)) + return try client!.CreateVerificationTemplate(request, callOptions: try buildMetadata(request)) .response .wait() } - @available(*, deprecated, message: "This method is experimental") public func listVerificationTemplates(request: Services_Verifiablecredentials_Templates_V1_ListVerificationTemplatesRequest) throws -> Services_Verifiablecredentials_Templates_V1_ListVerificationTemplatesResponse { - try client!.ListVerificationTemplates(request, callOptions: buildMetadata(request)) + return try client!.ListVerificationTemplates(request, callOptions: try buildMetadata(request)) .response .wait() } - @available(*, deprecated, message: "This method is experimental") public func getVerificationTemplate(request: Services_Verifiablecredentials_Templates_V1_GetVerificationTemplateRequest) throws -> Services_Verifiablecredentials_Templates_V1_GetVerificationTemplateResponse { - try client!.GetVerificationTemplate(request, callOptions: buildMetadata(request)) + return try client!.GetVerificationTemplate(request, callOptions: try buildMetadata(request)) .response .wait() } - @available(*, deprecated, message: "This method is experimental") public func updateVerificationTemplate(request: Services_Verifiablecredentials_Templates_V1_UpdateVerificationTemplateRequest) throws -> Services_Verifiablecredentials_Templates_V1_UpdateVerificationTemplateResponse { - try client!.UpdateVerificationTemplate(request, callOptions: buildMetadata(request)) + return try client!.UpdateVerificationTemplate(request, callOptions: try buildMetadata(request)) .response .wait() } - @available(*, deprecated, message: "This method is experimental") public func deleteVerificationTemplate(request: Services_Verifiablecredentials_Templates_V1_DeleteVerificationTemplateRequest) throws -> Services_Verifiablecredentials_Templates_V1_DeleteVerificationTemplateResponse { - try client!.DeleteVerificationTemplate(request, callOptions: buildMetadata(request)) + return try client!.DeleteVerificationTemplate(request, callOptions: try buildMetadata(request)) .response .wait() } - // END Code generated by protoc-gen-trinsic. DO NOT EDIT. +// END Code generated by protoc-gen-trinsic. DO NOT EDIT. } diff --git a/Sources/Trinsic/TrustRegistryService.swift b/Sources/Trinsic/TrustRegistryService.swift index ee10ce6..fab160a 100644 --- a/Sources/Trinsic/TrustRegistryService.swift +++ b/Sources/Trinsic/TrustRegistryService.swift @@ -21,37 +21,38 @@ public class TrustRegistryService: ServiceBase { client = Services_Trustregistry_V1_TrustRegistryNIOClient(channel: createChannel()) } - // BEGIN Code generated by protoc-gen-trinsic. DO NOT EDIT. - // target: /home/runner/work/sdk-swift/sdk-swift/Sources/Trinsic/TrustRegistryService.swift +// BEGIN Code generated by protoc-gen-trinsic. DO NOT EDIT. +// target: /home/runner/work/sdk-swift/sdk-swift/Sources/Trinsic/TrustRegistryService.swift + public func registerMember(request: Services_Trustregistry_V1_RegisterMemberRequest) throws -> Services_Trustregistry_V1_RegisterMemberResponse { - try client!.RegisterMember(request, callOptions: buildMetadata(request)) + return try client!.RegisterMember(request, callOptions: try buildMetadata(request)) .response .wait() } - + public func unregisterMember(request: Services_Trustregistry_V1_UnregisterMemberRequest) throws -> Services_Trustregistry_V1_UnregisterMemberResponse { - try client!.UnregisterMember(request, callOptions: buildMetadata(request)) + return try client!.UnregisterMember(request, callOptions: try buildMetadata(request)) .response .wait() } - + public func getMemberAuthorizationStatus(request: Services_Trustregistry_V1_GetMemberAuthorizationStatusRequest) throws -> Services_Trustregistry_V1_GetMemberAuthorizationStatusResponse { - try client!.GetMemberAuthorizationStatus(request, callOptions: buildMetadata(request)) + return try client!.GetMemberAuthorizationStatus(request, callOptions: try buildMetadata(request)) .response .wait() } - + public func listAuthorizedMembers(request: Services_Trustregistry_V1_ListAuthorizedMembersRequest) throws -> Services_Trustregistry_V1_ListAuthorizedMembersResponse { - try client!.ListAuthorizedMembers(request, callOptions: buildMetadata(request)) + return try client!.ListAuthorizedMembers(request, callOptions: try buildMetadata(request)) .response .wait() } - + public func getMember(request: Services_Trustregistry_V1_GetMemberRequest) throws -> Services_Trustregistry_V1_GetMemberResponse { - try client!.GetMember(request, callOptions: buildMetadata(request)) + return try client!.GetMember(request, callOptions: try buildMetadata(request)) .response .wait() } - // END Code generated by protoc-gen-trinsic. DO NOT EDIT. +// END Code generated by protoc-gen-trinsic. DO NOT EDIT. } diff --git a/Sources/Trinsic/WalletService.swift b/Sources/Trinsic/WalletService.swift index 4cadbc5..0d9267a 100644 --- a/Sources/Trinsic/WalletService.swift +++ b/Sources/Trinsic/WalletService.swift @@ -35,127 +35,128 @@ public class WalletService: ServiceBase { .wait() } - // BEGIN Code generated by protoc-gen-trinsic. DO NOT EDIT. - // target: /home/runner/work/sdk-swift/sdk-swift/Sources/Trinsic/WalletService.swift +// BEGIN Code generated by protoc-gen-trinsic. DO NOT EDIT. +// target: /home/runner/work/sdk-swift/sdk-swift/Sources/Trinsic/WalletService.swift + public func getItem(request: Services_Universalwallet_V1_GetItemRequest) throws -> Services_Universalwallet_V1_GetItemResponse { - try client!.GetItem(request, callOptions: buildMetadata(request)) + return try client!.GetItem(request, callOptions: try buildMetadata(request)) .response .wait() } - + public func search(request: Services_Universalwallet_V1_SearchRequest) throws -> Services_Universalwallet_V1_SearchResponse { - try client!.Search(request, callOptions: buildMetadata(request)) + return try client!.Search(request, callOptions: try buildMetadata(request)) .response .wait() } - + public func insertItem(request: Services_Universalwallet_V1_InsertItemRequest) throws -> Services_Universalwallet_V1_InsertItemResponse { - try client!.InsertItem(request, callOptions: buildMetadata(request)) + return try client!.InsertItem(request, callOptions: try buildMetadata(request)) .response .wait() } - + public func updateItem(request: Services_Universalwallet_V1_UpdateItemRequest) throws -> Services_Universalwallet_V1_UpdateItemResponse { - try client!.UpdateItem(request, callOptions: buildMetadata(request)) + return try client!.UpdateItem(request, callOptions: try buildMetadata(request)) .response .wait() } - + public func deleteItem(request: Services_Universalwallet_V1_DeleteItemRequest) throws -> Services_Universalwallet_V1_DeleteItemResponse { - try client!.DeleteItem(request, callOptions: buildMetadata(request)) + return try client!.DeleteItem(request, callOptions: try buildMetadata(request)) .response .wait() } - + public func deleteWallet(request: Services_Universalwallet_V1_DeleteWalletRequest) throws -> Services_Universalwallet_V1_DeleteWalletResponse { - try client!.DeleteWallet(request, callOptions: buildMetadata(request)) + return try client!.DeleteWallet(request, callOptions: try buildMetadata(request)) .response .wait() } - + public func createWallet(request: Services_Universalwallet_V1_CreateWalletRequest) throws -> Services_Universalwallet_V1_CreateWalletResponse { - try client!.CreateWallet(request, callOptions: buildMetadata(request)) + return try client!.CreateWallet(request, callOptions: try buildMetadata(request)) .response .wait() } - + public func getWalletInfo(request: Services_Universalwallet_V1_GetWalletInfoRequest) throws -> Services_Universalwallet_V1_GetWalletInfoResponse { - try client!.GetWalletInfo(request, callOptions: buildMetadata(request)) + return try client!.GetWalletInfo(request, callOptions: try buildMetadata(request)) .response .wait() } - + public func getMyInfo(request: Services_Universalwallet_V1_GetMyInfoRequest) throws -> Services_Universalwallet_V1_GetMyInfoResponse { - try client!.GetMyInfo(request, callOptions: buildMetadata(request)) + return try client!.GetMyInfo(request, callOptions: try buildMetadata(request)) .response .wait() } - + public func getWalletFromExternalIdentity(request: Services_Universalwallet_V1_GetWalletFromExternalIdentityRequest) throws -> Services_Universalwallet_V1_GetWalletFromExternalIdentityResponse { - try client!.GetWalletFromExternalIdentity(request, callOptions: buildMetadata(request)) + return try client!.GetWalletFromExternalIdentity(request, callOptions: try buildMetadata(request)) .response .wait() } - + public func generateAuthToken(request: Services_Universalwallet_V1_GenerateAuthTokenRequest) throws -> Services_Universalwallet_V1_GenerateAuthTokenResponse { - try client!.GenerateAuthToken(request, callOptions: buildMetadata(request)) + return try client!.GenerateAuthToken(request, callOptions: try buildMetadata(request)) .response .wait() } - + public func revokeAuthToken(request: Services_Universalwallet_V1_RevokeAuthTokenRequest) throws -> Services_Universalwallet_V1_RevokeAuthTokenResponse { - try client!.RevokeAuthToken(request, callOptions: buildMetadata(request)) + return try client!.RevokeAuthToken(request, callOptions: try buildMetadata(request)) .response .wait() } - + public func addExternalIdentityInit(request: Services_Universalwallet_V1_AddExternalIdentityInitRequest) throws -> Services_Universalwallet_V1_AddExternalIdentityInitResponse { - try client!.AddExternalIdentityInit(request, callOptions: buildMetadata(request)) + return try client!.AddExternalIdentityInit(request, callOptions: try buildMetadata(request)) .response .wait() } - + public func addExternalIdentityConfirm(request: Services_Universalwallet_V1_AddExternalIdentityConfirmRequest) throws -> Services_Universalwallet_V1_AddExternalIdentityConfirmResponse { - try client!.AddExternalIdentityConfirm(request, callOptions: buildMetadata(request)) + return try client!.AddExternalIdentityConfirm(request, callOptions: try buildMetadata(request)) .response .wait() } - + public func removeExternalIdentity(request: Services_Universalwallet_V1_RemoveExternalIdentityRequest) throws -> Services_Universalwallet_V1_RemoveExternalIdentityResponse { - try client!.RemoveExternalIdentity(request, callOptions: buildMetadata(request)) + return try client!.RemoveExternalIdentity(request, callOptions: try buildMetadata(request)) .response .wait() } - + public func authenticateInit(request: Services_Universalwallet_V1_AuthenticateInitRequest) throws -> Services_Universalwallet_V1_AuthenticateInitResponse { - try client!.AuthenticateInit(request, callOptions: buildMetadata(request)) + return try client!.AuthenticateInit(request, callOptions: try buildMetadata(request)) .response .wait() } - + public func authenticateConfirm(request: Services_Universalwallet_V1_AuthenticateConfirmRequest) throws -> Services_Universalwallet_V1_AuthenticateConfirmResponse { - try client!.AuthenticateConfirm(request, callOptions: buildMetadata(request)) + return try client!.AuthenticateConfirm(request, callOptions: try buildMetadata(request)) .response .wait() } - + public func authenticateResendCode(request: Services_Universalwallet_V1_AuthenticateResendCodeRequest) throws -> Services_Universalwallet_V1_AuthenticateResendCodeResponse { - try client!.AuthenticateResendCode(request, callOptions: buildMetadata(request)) + return try client!.AuthenticateResendCode(request, callOptions: try buildMetadata(request)) .response .wait() } - + public func listWallets(request: Services_Universalwallet_V1_ListWalletsRequest) throws -> Services_Universalwallet_V1_ListWalletsResponse { - try client!.ListWallets(request, callOptions: buildMetadata(request)) + return try client!.ListWallets(request, callOptions: try buildMetadata(request)) .response .wait() } - + public func listByVerificationTemplate(request: Services_Universalwallet_V1_ListByVerificationTemplateRequest) throws -> Services_Universalwallet_V1_ListByVerificationTemplateResponse { - try client!.ListByVerificationTemplate(request, callOptions: buildMetadata(request)) + return try client!.ListByVerificationTemplate(request, callOptions: try buildMetadata(request)) .response .wait() } - // END Code generated by protoc-gen-trinsic. DO NOT EDIT. +// END Code generated by protoc-gen-trinsic. DO NOT EDIT. } diff --git a/proto/services/connect/v1/connect.proto b/proto/services/connect/v1/connect.proto index d533a5e..2babf24 100644 --- a/proto/services/connect/v1/connect.proto +++ b/proto/services/connect/v1/connect.proto @@ -7,6 +7,7 @@ option java_package = "trinsic.services.connect.v1"; option java_multiple_files = true; import "services/common/v1/common.proto"; +import "services/universal-wallet/v1/universal-wallet.proto"; // The type of verification to perform enum VerificationType { @@ -191,6 +192,8 @@ message NormalizedGovernmentIdData { message CreateSessionRequest { // Array of verifications to perform repeated RequestedVerification verifications = 1; + // Debugging information used to help diagnose issues + map debug_information = 2 [json_name = "debugInformation"]; } // A verification to perform in an IDV flow @@ -301,6 +304,27 @@ message ListSessionsResponse { bool more = 3; } +// Request to preemptively check if an identity has a valid reusable credential +message HasValidCredentialRequest { + // The identity used to find a credential + universalwallet.v1.CreateWalletRequest.ExternalIdentity identity = 1; + + // The criteria used to find a valid credential + CredentialRequestData credential_request_data = 2; +} + +// Response to `HasValidCredentialRequest` +message HasValidCredentialResponse { + // Whether the identity has a valid credential + bool has_valid_credential = 1; +} + +message CredentialRequestData { + // The type of verification for which the credential can be used + VerificationType type = 1; + // Name of the IDV issuer +} + // Controls how sessions are ordered in `ListSessions` enum SessionOrdering { // Order sessions according to when they were created @@ -326,4 +350,7 @@ service Connect { // List IDVSessions created by the calling wallet rpc ListSessions(ListSessionsRequest) returns (ListSessionsResponse); + + // Checks if the identity provided in the request has a wallet containing a valid reusable credential + rpc HasValidCredential(HasValidCredentialRequest) returns (HasValidCredentialResponse); }