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"; } // 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"; } // 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; } // 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; } // SyncRequest is the request type for the Sync RPC method. message SyncRequest { string did = 1; } // SyncResponse is the response type for the Sync RPC method. message SyncResponse { bool success = 1; }