appBskyAgeassuranceBegin top-level constant
app.bsky.ageassurance.begin
Implementation
const appBskyAgeassuranceBegin = <String, dynamic>{
"lexicon": 1,
"id": "app.bsky.ageassurance.begin",
"defs": {
"main": {
"type": "procedure",
"description": "Initiate Age Assurance for an account.",
"input": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["email", "language", "countryCode"],
"properties": {
"email": {
"type": "string",
"description":
"The user's email address to receive Age Assurance instructions.",
},
"language": {
"type": "string",
"description":
"The user's preferred language for communication during the Age Assurance process.",
},
"countryCode": {
"type": "string",
"description":
"An ISO 3166-1 alpha-2 code of the user's location.",
},
"regionCode": {
"type": "string",
"description":
"An optional ISO 3166-2 code of the user's region or state within the country.",
},
},
},
},
"output": {
"encoding": "application/json",
"schema": {"type": "ref", "ref": "app.bsky.ageassurance.defs#state"},
},
"errors": [
{"name": "InvalidEmail"},
{"name": "DidTooLong"},
{"name": "InvalidInitiation"},
{"name": "RegionNotSupported"},
],
},
},
};