Skip to content

Commit

Permalink
updates to t3 API protobufs (#987)
Browse files Browse the repository at this point in the history
  • Loading branch information
holtzman authored May 29, 2024
1 parent 68cbb8f commit 81af297
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions t3/api/proto/t3/admin/v1/api_key_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
12 changes: 12 additions & 0 deletions t3/api/proto/t3/admin/v1/migration_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ option java_multiple_files = true;

service MigrationService {
rpc MigrateBlockTimes(MigrateBlockTimesRequest) returns (MigrateBlockTimesResponse);
rpc MigrateReportedDirection(MigrateReportedDirectionRequest) returns (MigrateReportedDirectionResponse);
}

message MigrateBlockTimesRequest {
Expand All @@ -21,3 +22,14 @@ message MigrateBlockTimesResponse {
map<string, int32> 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;
}
4 changes: 4 additions & 0 deletions t3/api/proto/t3/v1/t3.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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 {
Expand Down

0 comments on commit 81af297

Please sign in to comment.