2024-07-05 22:20:13 -04:00
|
|
|
syntax = "proto3";
|
|
|
|
|
package did.v1;
|
|
|
|
|
|
|
|
|
|
import "did/v1/genesis.proto";
|
2024-09-05 01:24:57 -04:00
|
|
|
import "google/api/annotations.proto";
|
2024-07-05 22:20:13 -04:00
|
|
|
|
2024-09-05 01:24:57 -04:00
|
|
|
option go_package = "github.com/onsonr/sonr/x/did/types";
|
2024-07-05 22:20:13 -04:00
|
|
|
|
|
|
|
|
// Query provides defines the gRPC querier service.
|
|
|
|
|
service Query {
|
2024-09-05 01:24:57 -04:00
|
|
|
// Params queries all parameters of the module.
|
2024-09-14 12:47:25 -04:00
|
|
|
rpc Params(QueryRequest) returns (QueryParamsResponse) {
|
|
|
|
|
option (google.api.http).get = "/params";
|
|
|
|
|
}
|
|
|
|
|
|
2024-09-05 01:24:57 -04:00
|
|
|
// Resolve queries the DID document by its id.
|
2024-09-14 14:46:09 -04:00
|
|
|
rpc Resolve(QueryRequest) returns (QueryResolveResponse) {
|
2024-09-05 01:24:57 -04:00
|
|
|
option (google.api.http).get = "/did/{did}";
|
|
|
|
|
}
|
2024-07-05 22:20:13 -04:00
|
|
|
}
|
|
|
|
|
|
2024-09-05 01:24:57 -04:00
|
|
|
// Queryequest is the request type for the Query/Params RPC method.
|
|
|
|
|
message QueryRequest {
|
|
|
|
|
string did = 1;
|
|
|
|
|
string origin = 2;
|
2024-09-14 12:47:25 -04:00
|
|
|
string key = 3;
|
|
|
|
|
string asset = 4;
|
2024-07-05 22:20:13 -04:00
|
|
|
}
|
|
|
|
|
|
2024-09-14 12:47:25 -04:00
|
|
|
// QueryParamsResponse is the response type for the Query/Params RPC method.
|
|
|
|
|
message QueryParamsResponse {
|
2024-09-14 14:46:09 -04:00
|
|
|
// params defines the parameters of the module.
|
2024-09-14 12:47:25 -04:00
|
|
|
Params params = 1;
|
|
|
|
|
}
|
|
|
|
|
|
2024-09-19 02:04:22 -04:00
|
|
|
// QueryResolveResponse is the response type for the Query/Resolve RPC method.
|
|
|
|
|
message QueryResolveResponse {
|
|
|
|
|
// document is the DID document
|
|
|
|
|
Document document = 1;
|
|
|
|
|
}
|