~ knotless Search/
↑↓ move↵ open⇧↵ all results

johnandersen777.bsky.social/atlibs-vouches

Your Tangled vouches as an atlibs module

0
0
main
36 lines · 1.4 KB Raw History
{
	"name": "vouches",
	"description": "Your Tangled vouches (sh.tangled.graph.vouch, keyed by the subject's DID): list anyone's, vouch, unvouch.",
	"session": "vouches",
	"actions": [
		{
			"entry": "list",
			"label": "List",
			"readOnly": true,
			"description": "The vouches an account made (default: you), newest first. Returns {of, vouches: [{subject, kind, reason, createdAt, uri, cid}]}.",
			"fields": [{ "key": "of", "label": "Account DID", "type": "string", "required": false, "description": "Whose vouches (default: yours)." }]
		},
		{
			"entry": "vouch",
			"label": "Vouch",
			"description": "Vouch for an account (a DID or a handle); again replaces it. Returns {subject, uri, cid}.",
			"fields": [
				{ "key": "subject", "label": "DID or handle", "type": "string", "required": true },
				{ "key": "reason", "label": "Reason", "type": "string", "required": false, "description": "At most 300 characters." }
			]
		},
		{
			"entry": "unvouch",
			"label": "Unvouch",
			"description": "Delete your vouch for an account (a DID or a handle). Returns {subject}.",
			"fields": [{ "key": "subject", "label": "DID or handle", "type": "string", "required": true }]
		}
	],
	"calls": [
		"com.atproto.repo.listRecords",
		"com.atproto.repo.putRecord",
		"com.atproto.repo.deleteRecord",
		"com.atproto.identity.resolveHandle"
	],
	"anyRecords": ["sh.tangled.graph.vouch"]
}