2024-09-25 19:45:28 -04:00
|
|
|
syntax = "proto3";
|
|
|
|
package vault.v1;
|
|
|
|
|
|
|
|
import "google/api/annotations.proto";
|
|
|
|
import "vault/v1/genesis.proto";
|
|
|
|
|
|
|
|
option go_package = "github.com/onsonr/sonr/x/vault/types";
|
|
|
|
|
|
|
|
// Query provides defines the gRPC querier service.
|
|
|
|
service Query {
|
|
|
|
// Params queries all parameters of the module.
|
|
|
|
rpc Params(QueryParamsRequest) returns (QueryParamsResponse) {
|
|
|
|
option (google.api.http).get = "/vault/v1/params";
|
|
|
|
}
|
|
|
|
|
2024-10-07 21:22:56 -04:00
|
|
|
// Schema queries the DID document by its id. And returns the required PKL
|
|
|
|
// information
|
|
|
|
rpc Schema(QuerySchemaRequest) returns (QuerySchemaResponse) {
|
|
|
|
option (google.api.http).get = "/vault/v1/schema";
|
|
|
|
}
|
|
|
|
|
2024-09-25 19:45:28 -04:00
|
|
|
// Sync queries the DID document by its id. And returns the required PKL
|
|
|
|
// information
|
|
|
|
rpc Sync(SyncRequest) returns (SyncResponse) {
|
|
|
|
option (google.api.http).post = "/vault/v1/sync";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// QueryParamsRequest is the request type for the Query/Params RPC method.
|
|
|
|
message QueryParamsRequest {}
|
|
|
|
|
|
|
|
// QueryParamsResponse is the response type for the Query/Params RPC method.
|
|
|
|
message QueryParamsResponse {
|
|
|
|
// params defines the parameters of the module.
|
|
|
|
Params params = 1;
|
|
|
|
}
|
2024-10-07 21:22:56 -04:00
|
|
|
// QuerySchemaRequest is the request type for the Query/Schema RPC method.
|
|
|
|
message QuerySchemaRequest {}
|
|
|
|
|
|
|
|
// QuerySchemaResponse is the response type for the Query/Schema RPC method.
|
|
|
|
message QuerySchemaResponse {
|
|
|
|
// Schema is the DID document.
|
|
|
|
Schema schema = 1;
|
|
|
|
}
|
|
|
|
|
2024-09-25 19:45:28 -04:00
|
|
|
// SyncRequest is the request type for the Sync RPC method.
|
2024-10-08 16:43:59 -04:00
|
|
|
message SyncRequest { string did = 1; }
|
2024-09-25 19:45:28 -04:00
|
|
|
|
|
|
|
// SyncResponse is the response type for the Sync RPC method.
|
2024-10-08 16:43:59 -04:00
|
|
|
message SyncResponse { bool success = 1; }
|