This repository has no description
1{
2 "lexicon": 1,
3 "id": "org.tangled.temp.account.completeSignup",
4 "defs": {
5 "main": {
6 "type": "procedure",
7 "description": "Complete signup: provision the PDS account for the chosen username using the verification code from the signup email.",
8 "input": {
9 "encoding": "application/json",
10 "schema": {
11 "type": "object",
12 "required": ["username", "password", "code"],
13 "properties": {
14 "username": {
15 "type": "string",
16 "description": "Desired username; the assigned handle is <username>.<pds domain>."
17 },
18 "password": {
19 "type": "string",
20 "description": "Password for the new account."
21 },
22 "code": {
23 "type": "string",
24 "description": "Verification code from the signup email."
25 }
26 }
27 }
28 },
29 "output": {
30 "encoding": "application/json",
31 "schema": {
32 "type": "object",
33 "required": ["did", "handle"],
34 "properties": {
35 "did": {
36 "type": "string",
37 "format": "did",
38 "description": "DID of the newly provisioned account."
39 },
40 "handle": {
41 "type": "string",
42 "description": "The assigned handle, <username>.<pds domain>."
43 }
44 }
45 }
46 },
47 "errors": [
48 { "name": "SignupDisabled", "description": "Signup is not currently enabled on this service." },
49 { "name": "InvalidUsername", "description": "Username must be 4-63 characters, lowercase letters, digits, or hyphens, and cannot start or end with a hyphen." },
50 { "name": "UsernameUnavailable", "description": "This username is reserved or already taken." },
51 { "name": "InvalidCode", "description": "The verification code is invalid or has expired." }
52 ]
53 }
54 }
55}