generated from decentralized-identity/veramo-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.schema.json
51 lines (51 loc) · 1.68 KB
/
plugin.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{
"IDidEthrMetaTransactionPlugin": {
"components": {
"schemas": {
"IAddAttributeArgs": {
"type": "object",
"properties": {
"did": {
"type": "string",
"description": "Decentralized identifier that the attribute should be set for"
},
"attributeName": {
"type": "string",
"description": "Name of the attribute to be set"
},
"attributeValue": {
"type": "string",
"description": "Value of the attribute to be set"
}
},
"required": [
"did",
"attributeName",
"attributeValue"
],
"description": "Arguments needed for {@link IDidEthrMetaTransactionPlugin.addAttribute } \nTo be able to export a plugin schema, your plugin methods should use an `args` parameter of a named type or interface."
},
"IAddAttributeResult": {
"type": "object",
"properties": {
"foobar": {
"type": "string"
}
},
"description": "Result of {@link IDidEthrMetaTransactionPlugin.addAttribute } \nTo be able to export a plugin schema, your plugin return types need to be Promises of a named type or interface."
}
},
"methods": {
"addAttribute": {
"description": "Adds an attribute to a DID via the meta transaction wallet",
"arguments": {
"$ref": "#/components/schemas/IAddAttributeArgs"
},
"returnType": {
"$ref": "#/components/schemas/IAddAttributeResult"
}
}
}
}
}
}