From 4581a71fcb9beb8fa73eec68f2303e904dd92a27 Mon Sep 17 00:00:00 2001 From: Henry Holtzman Date: Mon, 20 May 2024 14:27:15 -0700 Subject: [PATCH] updates to t3 API protobufs --- t3/api/proto/t3/admin/v1/api_key_service.proto | 2 ++ t3/api/proto/t3/admin/v1/migration_service.proto | 12 ++++++++++++ t3/api/proto/t3/v1/t3.proto | 4 ++++ 3 files changed, 18 insertions(+) diff --git a/t3/api/proto/t3/admin/v1/api_key_service.proto b/t3/api/proto/t3/admin/v1/api_key_service.proto index f6c07b3f0..956c0aff8 100644 --- a/t3/api/proto/t3/admin/v1/api_key_service.proto +++ b/t3/api/proto/t3/admin/v1/api_key_service.proto @@ -21,6 +21,8 @@ message ApiKey { int64 created_at_epoch = 6; int64 updated_at_epoch = 7; // 0 if never updated int64 deleted_at_epoch = 8; // 0 if key is active + + string key_name = 9; // optional name for the api key } message AddApiKeyRequest { diff --git a/t3/api/proto/t3/admin/v1/migration_service.proto b/t3/api/proto/t3/admin/v1/migration_service.proto index 9706dd3de..a44bd013d 100644 --- a/t3/api/proto/t3/admin/v1/migration_service.proto +++ b/t3/api/proto/t3/admin/v1/migration_service.proto @@ -4,6 +4,7 @@ option java_multiple_files = true; service MigrationService { rpc MigrateBlockTimes(MigrateBlockTimesRequest) returns (MigrateBlockTimesResponse); + rpc MigrateReportedDirection(MigrateReportedDirectionRequest) returns (MigrateReportedDirectionResponse); } message MigrateBlockTimesRequest { @@ -21,3 +22,14 @@ message MigrateBlockTimesResponse { map error_counts = 4; int64 next_offset = 5; } + +message MigrateReportedDirectionRequest { } +message MigrateReportedDirectionResponse { + enum Result { + RESULT_UNSPECIFIED = 0; + RESULT_OK = 1; + } + Result result = 1; + int32 updated_receive = 2; + int32 updated_send = 3; +} diff --git a/t3/api/proto/t3/v1/t3.proto b/t3/api/proto/t3/v1/t3.proto index d65cd0511..0c64de1ef 100644 --- a/t3/api/proto/t3/v1/t3.proto +++ b/t3/api/proto/t3/v1/t3.proto @@ -375,6 +375,7 @@ message TestErrorResponse { } enum KnownInstitution { + // Must update enum file in entities/KnownInstitution.kt KNOWN_INSTITUTION_UNSPECIFIED = 0; KNOWN_INSTITUTION_NONE = 1; KNOWN_INSTITUTION_MIXIN = 2; @@ -384,6 +385,9 @@ enum KnownInstitution { KNOWN_INSTITUTION_XENDBRIDGE = 6; KNOWN_INSTITUTION_FUSPAY = 7; KNOWN_INSTITUTION_MUSSUB = 8; + KNOWN_INSTITUTION_XEDERIF = 9; + KNOWN_INSTITUTION_BITMART = 10; + // Must update enum file in entities/KnownInstitution.kt } enum ReportedDirection {