full diff

at.happyproto.server.addDomain

happyproto.at +12 −0
From
bafyreicwdv3bpl5pw3gaxfft34zdqlk2u4sg5c43vld6qlg4xhfiv3vsn4 indexed 2026-10-28 22:19 UTC View this version
To
bafyreigirsm7ugcb4o34zo6bsskngo65ignqfv52ohi5ng7qjl53fpypmu indexed 2026-10-29 15:52 UTC View this version

Compatibility

backward compatible No changes detected.

Changes

11{
22 "$type": "com.atproto.lexicon.schema",
33 "defs": {
44 "altRecord": {
55 "properties": {
66 "type": {
77 "description": "A.",
88 "type": "string"
99 },
1010 "value": {
1111 "description": "The instance host's public IPv4.",
1212 "type": "string"
1313 }
1414 },
1515 "required": [
1616 "type",
1717 "value"
1818 ],
1919 "type": "object"
2020 },
2121 "checks": {
2222 "properties": {
2323 "checkedAt": {
2424 "description": "When the check ran.",
2525 "type": "string"
2626 },
2727 "ownership": {
2828 "description": "Whether the TXT record carries this claim's token.",
2929 "knownValues": [
3030 "ok",
3131 "missing",
3232 "error"
3333 ],
3434 "type": "string"
3535 },
3636 "pointing": {
3737 "description": "Whether the hostname resolves to the instance's host. Absent when the check didn't get that far, such as when the TXT record was missing.",
3838 "knownValues": [
3939 "ok",
4040 "elsewhere",
4141 "error"
4242 ],
4343 "type": "string"
4444 }
4545 },
4646 "required": [
4747 "ownership",
4848 "checkedAt"
4949 ],
5050 "type": "object"
5151 },
5252 "domain": {
5353 "description": "A custom domain on one of the caller's instances.",
5454 "properties": {
5555 "checks": {
5656 "description": "The latest DNS check. Absent until the first check has run.",
5757 "ref": "#checks",
5858 "type": "ref"
5959 },
6060 "createdAt": {
6161 "description": "When the domain was added.",
6262 "type": "string"
6363 },
6464 "expiresAt": {
6565 "description": "When a pending claim expires if it is never verified. Absent once verified.",
6666 "type": "string"
6767 },
6868 "hostname": {
6969 "description": "The hostname, lowercase, internationalized names in punycode.",
7070 "type": "string"
7171 },
7272 "id": {
7373 "description": "The domain's UUID.",
7474 "type": "string"
7575 },
7676 "lapsesAt": {
7777 "description": "When HappyProto stops serving the domain if its TXT record stays missing. Absent while the record is present.",
7878 "type": "string"
7979 },
8080 "primary": {
8181 "description": "Whether this is the instance's primary domain, the one its PUBLIC_URL follows.",
8282 "type": "boolean"
8383 },
8484 "records": {
8585 "description": "The DNS records the customer publishes: the TXT that proves ownership, then the CNAME that points the hostname at the instance.",
8686 "items": {
8787 "ref": "#record",
8888 "type": "ref"
8989 },
9090 "type": "array"
9191 },
9292 "serving": {
9393 "description": "Whether the domain actually works: off until it is verified, issuing while its certificate is ordered, live once it serves over HTTPS.",
9494 "knownValues": [
9595 "routing",
9696 "issuing",
9797 "live",
9898 "failed",
9999 "off"
100100 ],
101101 "type": "string"
102102 },
103103 "state": {
104104 "description": "pending: waiting for the DNS records. verified: proven and served. lapsed: the TXT record went missing, and HappyProto stopped serving it; it recovers if the record comes back before expiresAt.",
105105 "knownValues": [
106106 "pending",
107107 "verified",
108108 "lapsed"
109109 ],
110110 "type": "string"
111111 },
112112 "verifiedAt": {
113113 "description": "When the domain was first verified.",
114114 "type": "string"
115115 }
116116 },
117117 "required": [
118118 "id",
119119 "hostname",
120120 "state",
121121 "primary",
122122 "records",
123123 "serving",
124124 "createdAt"
125125 ],
126126 "type": "object"
127127 },
128128 "main": {
129129 "description": "Add a custom domain to one of the caller's instances. It starts pending, with the DNS records to publish. Customers only.",
130130 "errors": [
131131 {
132132 "description": "This endpoint requires an authenticated caller.",
133133 "name": "AuthRequired"
134134 },
135135 {
136136 "description": "The caller is not a HappyProto customer, or the provisioner refused them.",
137137 "name": "Forbidden"
138138 },
139139 {
140140 "description": "instanceId or idempotencyKey is not a UUID, or hostname is missing or too long.",
141141 "name": "InvalidRequest"
142142 },
143143 {
144144 "description": "No such instance or domain, or it is not the caller's. The cases are indistinguishable.",
145145 "name": "NotFound"
146146 },
147147 {
148148 "description": "Custom domains are not switched on yet.",
149149 "name": "NotAvailable"
150150 },
151151 {
152152 "description": "Passed through from the provisioner.",
153153 "name": "InvalidSlug"
154154 },
155155 {
156156 "description": "Passed through from the provisioner.",
157157 "name": "SlugTaken"
158158 },
159159 {
160160 "description": "Passed through from the provisioner.",
161161 "name": "NotEntitled"
162162 },
163163 {
164164 "description": "Passed through from the provisioner.",
165165 "name": "InstanceLimit"
166166 },
167167 {
168168 "description": "Passed through from the provisioner.",
169169 "name": "NoCapacity"
170170 },
171171 {
172172 "description": "Passed through from the provisioner: the instance is already changing, or a request with this idempotencyKey is still running.",
173173 "name": "OperationInProgress"
174174 },
175175 {
176176 "description": "The hostname is not a valid public hostname: no scheme, port, path, wildcard or IP address.",
177177 "name": "InvalidHostname"
178178 },
179179 {
180180 "description": "The hostname is HappyProto's own, or under one of its domains.",
181181 "name": "PlatformHostname"
182182 },
183183 {
184184 "description": "The instance already has this hostname.",
185185 "name": "DomainExists"
186186 },
187187 {
188188 "description": "The instance already has as many custom domains as it may.",
189189 "name": "DomainLimit"
190190 },
191191 {
192192 "description": "Passed through from the provisioner.",
193193 "name": "TooSoon"
194194 },
195195 {
196196 "description": "Passed through from the provisioner.",
197197 "name": "DomainIsPrimary"
198198 },
199199 {
200 "description": "Passed through from the provisioner.",
201 "name": "NotVerified"
202 },
203 {
204 "description": "Passed through from the provisioner.",
205 "name": "CertificateNotReady"
206 },
207 {
208 "description": "Passed through from the provisioner.",
209 "name": "VersionTooOld"
210 },
211 {
200212 "description": "The provisioner is unreachable, not configured, or answered with an error it does not explain to callers, or the job could not be started.",
201213 "name": "Upstream"
202214 }
203215 ],
204216 "input": {
205217 "encoding": "application/json",
206218 "schema": {
207219 "properties": {
208220 "hostname": {
209221 "description": "The hostname, such as app.example.com. No scheme, port or path.",
210222 "type": "string"
211223 },
212224 "idempotencyKey": {
213225 "description": "A UUID the client generates once per intended change and resends on every retry of it, so a retry gets the original reply instead of acting twice.",
214226 "type": "string"
215227 },
216228 "instanceId": {
217229 "description": "The instance's UUID.",
218230 "type": "string"
219231 }
220232 },
221233 "required": [
222234 "instanceId",
223235 "hostname",
224236 "idempotencyKey"
225237 ],
226238 "type": "object"
227239 }
228240 },
229241 "output": {
230242 "encoding": "application/json",
231243 "schema": {
232244 "properties": {
233245 "domain": {
234246 "ref": "#domain",
235247 "type": "ref"
236248 }
237249 },
238250 "required": [
239251 "domain"
240252 ],
241253 "type": "object"
242254 }
243255 },
244256 "type": "procedure"
245257 },
246258 "record": {
247259 "properties": {
248260 "alt": {
249261 "description": "For an apex name, which cannot hold a CNAME: the A record to publish instead. Absent when the instance's host has no public IPv4.",
250262 "ref": "#altRecord",
251263 "type": "ref"
252264 },
253265 "name": {
254266 "description": "The record's name.",
255267 "type": "string"
256268 },
257269 "type": {
258270 "description": "TXT or CNAME.",
259271 "type": "string"
260272 },
261273 "value": {
262274 "description": "The record's value.",
263275 "type": "string"
264276 }
265277 },
266278 "required": [
267279 "type",
268280 "name",
269281 "value"
270282 ],
271283 "type": "object"
272284 }
273285 },
274286 "id": "at.happyproto.server.addDomain",
275287 "lexicon": 1
276288}

Compare other versions