refactor(proto): scope client and user-agent schemas and extract shared types

This commit is contained in:
hdbg
2026-04-03 19:08:19 +02:00
parent cfe01ba1ad
commit 16f0e67d02
10 changed files with 186 additions and 127 deletions

View File

@@ -3,17 +3,10 @@ syntax = "proto3";
package arbiter.user_agent.vault;
import "google/protobuf/empty.proto";
import "shared/vault.proto";
import "user_agent/vault/bootstrap.proto";
import "user_agent/vault/unseal.proto";
enum VaultState {
VAULT_STATE_UNSPECIFIED = 0;
VAULT_STATE_UNBOOTSTRAPPED = 1;
VAULT_STATE_SEALED = 2;
VAULT_STATE_UNSEALED = 3;
VAULT_STATE_ERROR = 4;
}
message Request {
oneof payload {
google.protobuf.Empty query_state = 1;
@@ -24,7 +17,7 @@ message Request {
message Response {
oneof payload {
VaultState state = 1;
arbiter.shared.VaultState state = 1;
unseal.Response unseal = 2;
bootstrap.Response bootstrap = 3;
}