1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
{
"lexicon": 1,
"id": "place.wisp.v2.domains",
"defs": {
"main": {
"type": "record",
"description": "Domain registration metadata for wisp.place subdomains and custom domains.",
"key": "any",
"record": {
"type": "object",
"required": ["domain", "registration", "createdAt", "updatedAt"],
"properties": {
"domain": {
"type": "string",
"description": "Lowercase FQDN for this registration (for example, alice.wisp.place or example.com).",
"minLength": 3,
"maxLength": 253
},
"registration": {
"type": "union",
"refs": ["#wispRegistration", "#customRegistration"]
},
"siteRkey": {
"type": "string",
"format": "record-key",
"description": "Optional place.wisp.fs record key currently mapped to this domain."
},
"createdAt": {
"type": "string",
"format": "datetime"
},
"updatedAt": {
"type": "string",
"format": "datetime"
}
}
}
},
"wispRegistration": {
"type": "object",
"description": "Registration for a first-party subdomain under the wisp.place base host.",
"required": ["kind", "handle"],
"properties": {
"kind": {
"type": "string",
"const": "wisp"
},
"handle": {
"type": "string",
"description": "Subdomain label only (for example, alice).",
"minLength": 3,
"maxLength": 63
}
}
},
"customRegistration": {
"type": "object",
"description": "Registration metadata for a custom domain.",
"required": ["kind", "challengeId", "verification"],
"properties": {
"kind": {
"type": "string",
"const": "custom"
},
"challengeId": {
"type": "string",
"description": "Challenge identifier used to derive DNS setup instructions.",
"minLength": 8,
"maxLength": 64
},
"verification": {
"type": "ref",
"ref": "#verification"
}
}
},
"verification": {
"type": "object",
"description": "Latest verification state for a custom domain.",
"required": ["status", "method"],
"properties": {
"status": {
"type": "string",
"enum": ["pending", "verified", "failed"]
},
"method": {
"type": "string",
"enum": ["txt-did-v1"]
},
"lastCheckedAt": {
"type": "string",
"format": "datetime"
},
"verifiedAt": {
"type": "string",
"format": "datetime"
},
"lastError": {
"type": "string",
"maxLength": 1000
}
}
}
}
}