atproto blogging
1{
2 "lexicon": 1,
3 "id": "sh.weaver.collab.getInvites",
4 "defs": {
5 "main": {
6 "type": "query",
7 "description": "Get collaboration invites for an actor (sent, received, or both).",
8 "parameters": {
9 "type": "params",
10 "required": ["actor"],
11 "properties": {
12 "actor": { "type": "string", "format": "at-identifier" },
13 "direction": {
14 "type": "string",
15 "default": "all",
16 "knownValues": ["sent", "received", "all"]
17 },
18 "status": {
19 "type": "string",
20 "default": "all",
21 "knownValues": ["pending", "accepted", "expired", "all"]
22 },
23 "limit": { "type": "integer", "minimum": 1, "maximum": 100, "default": 50 },
24 "cursor": { "type": "string" }
25 }
26 },
27 "output": {
28 "encoding": "application/json",
29 "schema": {
30 "type": "object",
31 "required": ["invites"],
32 "properties": {
33 "invites": {
34 "type": "array",
35 "items": { "type": "ref", "ref": "sh.weaver.collab.defs#inviteView" }
36 },
37 "cursor": { "type": "string" }
38 }
39 }
40 }
41 }
42 }
43}