-
Notifications
You must be signed in to change notification settings - Fork 396
/
describeServer.json
59 lines (59 loc) · 1.78 KB
/
describeServer.json
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
{
"lexicon": 1,
"id": "com.atproto.server.describeServer",
"defs": {
"main": {
"type": "query",
"description": "Describes the server's account creation requirements and capabilities. Implemented by PDS.",
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["did", "availableUserDomains"],
"properties": {
"inviteCodeRequired": {
"type": "boolean",
"description": "If true, an invite code must be supplied to create an account on this instance."
},
"phoneVerificationRequired": {
"type": "boolean",
"description": "If true, a phone verification token must be supplied to create an account on this instance."
},
"availableUserDomains": {
"type": "array",
"description": "List of domain suffixes that can be used in account handles.",
"items": { "type": "string" }
},
"links": {
"type": "ref",
"description": "URLs of service policy documents.",
"ref": "#links"
},
"contact": {
"type": "ref",
"description": "Contact information",
"ref": "#contact"
},
"did": {
"type": "string",
"format": "did"
}
}
}
}
},
"links": {
"type": "object",
"properties": {
"privacyPolicy": { "type": "string", "format": "uri" },
"termsOfService": { "type": "string", "format": "uri" }
}
},
"contact": {
"type": "object",
"properties": {
"email": { "type": "string" }
}
}
}
}