Monorepo for wisp.place. A static site hosting service built on top of the AT Protocol.
wisp.place
1.8 kB
80 lines
1{
2 "lexicon": 1,
3 "id": "place.wisp.v2.site.getList",
4 "defs": {
5 "main": {
6 "type": "query",
7 "description": "List owned sites and the domains currently mapped to each site.",
8 "output": {
9 "encoding": "application/json",
10 "schema": {
11 "type": "object",
12 "required": ["sites"],
13 "properties": {
14 "sites": {
15 "type": "array",
16 "items": {
17 "type": "ref",
18 "ref": "#siteSummary"
19 }
20 }
21 }
22 }
23 },
24 "errors": [
25 { "name": "AuthenticationRequired" }
26 ]
27 },
28 "siteSummary": {
29 "type": "object",
30 "required": ["siteRkey", "domains"],
31 "properties": {
32 "siteRkey": {
33 "type": "string",
34 "format": "record-key"
35 },
36 "displayName": {
37 "type": "string",
38 "maxLength": 200
39 },
40 "createdAt": {
41 "type": "string",
42 "format": "datetime"
43 },
44 "updatedAt": {
45 "type": "string",
46 "format": "datetime"
47 },
48 "domains": {
49 "type": "array",
50 "items": {
51 "type": "ref",
52 "ref": "#siteDomain"
53 }
54 }
55 }
56 },
57 "siteDomain": {
58 "type": "object",
59 "required": ["domain", "kind", "status", "verified"],
60 "properties": {
61 "domain": {
62 "type": "string",
63 "minLength": 3,
64 "maxLength": 253
65 },
66 "kind": {
67 "type": "string",
68 "enum": ["wisp", "custom"]
69 },
70 "status": {
71 "type": "string",
72 "enum": ["pendingVerification", "verified"]
73 },
74 "verified": {
75 "type": "boolean"
76 }
77 }
78 }
79 }
80}