feat: add support for parent field and resources list in Capability message

This commit is contained in:
Prad Nukala
2024-11-26 20:51:58 -05:00
parent 93770d481a
commit f89260bacd
9 changed files with 838 additions and 199 deletions
+5 -3
View File
@@ -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
+1 -2
View File
@@ -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)