atproto blogging
1{
2 "lexicon": 1,
3 "id": "app.bsky.ageassurance.begin",
4 "defs": {
5 "main": {
6 "type": "procedure",
7 "description": "Initiate Age Assurance for an account.",
8 "input": {
9 "encoding": "application/json",
10 "schema": {
11 "type": "object",
12 "required": [
13 "email",
14 "language",
15 "countryCode"
16 ],
17 "properties": {
18 "countryCode": {
19 "type": "string",
20 "description": "An ISO 3166-1 alpha-2 code of the user's location."
21 },
22 "email": {
23 "type": "string",
24 "description": "The user's email address to receive Age Assurance instructions."
25 },
26 "language": {
27 "type": "string",
28 "description": "The user's preferred language for communication during the Age Assurance process."
29 },
30 "regionCode": {
31 "type": "string",
32 "description": "An optional ISO 3166-2 code of the user's region or state within the country."
33 }
34 }
35 }
36 },
37 "output": {
38 "encoding": "application/json",
39 "schema": {
40 "type": "ref",
41 "ref": "app.bsky.ageassurance.defs#state"
42 }
43 },
44 "errors": [
45 {
46 "name": "InvalidEmail"
47 },
48 {
49 "name": "DidTooLong"
50 },
51 {
52 "name": "InvalidInitiation"
53 },
54 {
55 "name": "RegionNotSupported"
56 }
57 ]
58 }
59 }
60}