mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-04 10:21:40 +00:00
feat: add support for parent field and resources list in Capability message
This commit is contained in:
@@ -26,13 +26,15 @@ message Params {
|
||||
// Capability reprensents the available capabilities of a decentralized web node
|
||||
message Capability {
|
||||
string name = 1;
|
||||
string description = 2;
|
||||
string parent = 2;
|
||||
string description = 3;
|
||||
repeated string resources = 4;
|
||||
}
|
||||
|
||||
// Resource reprensents the available resources of a decentralized web node
|
||||
message Resource {
|
||||
string name = 1;
|
||||
string description = 2;
|
||||
string kind = 1;
|
||||
string template = 2;
|
||||
}
|
||||
|
||||
// Schema is the Database Model for Decentralized Web Nodes
|
||||
|
||||
@@ -11,11 +11,10 @@ message Credential {
|
||||
option (cosmos.orm.v1.table) = {
|
||||
id: 1;
|
||||
primary_key: { fields: "id" }
|
||||
index: { id: 1 fields: "type" }
|
||||
};
|
||||
|
||||
bytes id = 1; // The credential ID as a byte array
|
||||
string type = 2; // The credential type (e.g. "public-key")
|
||||
string kind = 2; // The credential type (e.g. "public-key")
|
||||
repeated string transports = 3; // Optional transport hints (usb, nfc, ble, internal)
|
||||
bytes public_key = 4; // The credential's public key
|
||||
string attestation_type = 5; // The attestation type used (e.g. "none", "indirect", etc)
|
||||
|
||||
Reference in New Issue
Block a user