Skip to content

Commit

Permalink
fix: Front-end off-by-one bug (#3215) * fix: Miscellaneous typo (#163)
Browse files Browse the repository at this point in the history
* Generated code and changes from branch main, commit SHA 695daf56

* Apply automatic changes

---------

Co-authored-by: fundthmcalculus <[email protected]>
Co-authored-by: mewmba <[email protected]>
  • Loading branch information
3 people authored Dec 12, 2023
1 parent 7243d7e commit ea1623a
Show file tree
Hide file tree
Showing 8 changed files with 147 additions and 126 deletions.
14 changes: 6 additions & 8 deletions Sources/Trinsic/AccessManagementService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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.
}
41 changes: 21 additions & 20 deletions Sources/Trinsic/CredentialService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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.
}
20 changes: 8 additions & 12 deletions Sources/Trinsic/FileManagementService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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.
}
17 changes: 9 additions & 8 deletions Sources/Trinsic/ProviderService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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.
}
44 changes: 20 additions & 24 deletions Sources/Trinsic/TemplateService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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.
}
25 changes: 13 additions & 12 deletions Sources/Trinsic/TrustRegistryService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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.
}
Loading

0 comments on commit ea1623a

Please sign in to comment.