atproto blogging
1{
2 "lexicon": 1,
3 "id": "tools.ozone.set.querySets",
4 "defs": {
5 "main": {
6 "type": "query",
7 "description": "Query available sets",
8 "parameters": {
9 "type": "params",
10 "properties": {
11 "cursor": {
12 "type": "string"
13 },
14 "limit": {
15 "type": "integer",
16 "default": 50,
17 "minimum": 1,
18 "maximum": 100
19 },
20 "namePrefix": {
21 "type": "string"
22 },
23 "sortBy": {
24 "type": "string",
25 "default": "name",
26 "enum": [
27 "name",
28 "createdAt",
29 "updatedAt"
30 ]
31 },
32 "sortDirection": {
33 "type": "string",
34 "description": "Defaults to ascending order of name field.",
35 "default": "asc",
36 "enum": [
37 "asc",
38 "desc"
39 ]
40 }
41 }
42 },
43 "output": {
44 "encoding": "application/json",
45 "schema": {
46 "type": "object",
47 "required": [
48 "sets"
49 ],
50 "properties": {
51 "cursor": {
52 "type": "string"
53 },
54 "sets": {
55 "type": "array",
56 "items": {
57 "type": "ref",
58 "ref": "tools.ozone.set.defs#setView"
59 }
60 }
61 }
62 }
63 }
64 }
65 }
66}