Monorepo for wisp.place. A static site hosting service built on top of the AT Protocol.
wisp.place
1.7 kB
64 lines
1{
2 "lexicon": 1,
3 "id": "place.wisp.v2.domain.addSite",
4 "defs": {
5 "main": {
6 "type": "procedure",
7 "description": "Map an owned domain to one owned site record.",
8 "input": {
9 "encoding": "application/json",
10 "schema": {
11 "type": "object",
12 "required": ["domain", "siteRkey"],
13 "properties": {
14 "domain": {
15 "type": "string",
16 "description": "Fully-qualified domain to map.",
17 "minLength": 3,
18 "maxLength": 253
19 },
20 "siteRkey": {
21 "type": "string",
22 "format": "record-key",
23 "description": "Owned place.wisp.fs record key to map this domain to."
24 }
25 }
26 }
27 },
28 "output": {
29 "encoding": "application/json",
30 "schema": {
31 "type": "object",
32 "required": ["domain", "kind", "status", "siteRkey", "mapped"],
33 "properties": {
34 "domain": {
35 "type": "string"
36 },
37 "kind": {
38 "type": "string",
39 "enum": ["wisp", "custom"]
40 },
41 "status": {
42 "type": "string",
43 "enum": ["pendingVerification", "verified"]
44 },
45 "siteRkey": {
46 "type": "string",
47 "format": "record-key"
48 },
49 "mapped": {
50 "type": "boolean",
51 "const": true
52 }
53 }
54 }
55 },
56 "errors": [
57 { "name": "AuthenticationRequired" },
58 { "name": "InvalidDomain" },
59 { "name": "InvalidRequest" },
60 { "name": "NotFound" }
61 ]
62 }
63 }
64}