atproto blogging
at main 64 lines 1.5 kB view raw
1{ 2 "lexicon": 1, 3 "id": "com.atproto.server.createAppPassword", 4 "defs": { 5 "appPassword": { 6 "type": "object", 7 "required": [ 8 "name", 9 "password", 10 "createdAt" 11 ], 12 "properties": { 13 "createdAt": { 14 "type": "string", 15 "format": "datetime" 16 }, 17 "name": { 18 "type": "string" 19 }, 20 "password": { 21 "type": "string" 22 }, 23 "privileged": { 24 "type": "boolean" 25 } 26 } 27 }, 28 "main": { 29 "type": "procedure", 30 "description": "Create an App Password.", 31 "input": { 32 "encoding": "application/json", 33 "schema": { 34 "type": "object", 35 "required": [ 36 "name" 37 ], 38 "properties": { 39 "name": { 40 "type": "string", 41 "description": "A short name for the App Password, to help distinguish them." 42 }, 43 "privileged": { 44 "type": "boolean", 45 "description": "If an app password has 'privileged' access to possibly sensitive account state. Meant for use with trusted clients." 46 } 47 } 48 } 49 }, 50 "output": { 51 "encoding": "application/json", 52 "schema": { 53 "type": "ref", 54 "ref": "#appPassword" 55 } 56 }, 57 "errors": [ 58 { 59 "name": "AccountTakedown" 60 } 61 ] 62 } 63 } 64}