atproto blogging
at main 144 lines 3.0 kB view raw
1{ 2 "lexicon": 1, 3 "id": "tools.ozone.hosting.getAccountHistory", 4 "defs": { 5 "accountCreated": { 6 "type": "object", 7 "required": [], 8 "properties": { 9 "email": { 10 "type": "string" 11 }, 12 "handle": { 13 "type": "string", 14 "format": "handle" 15 } 16 } 17 }, 18 "emailConfirmed": { 19 "type": "object", 20 "required": [ 21 "email" 22 ], 23 "properties": { 24 "email": { 25 "type": "string" 26 } 27 } 28 }, 29 "emailUpdated": { 30 "type": "object", 31 "required": [ 32 "email" 33 ], 34 "properties": { 35 "email": { 36 "type": "string" 37 } 38 } 39 }, 40 "event": { 41 "type": "object", 42 "required": [ 43 "details", 44 "createdBy", 45 "createdAt" 46 ], 47 "properties": { 48 "createdAt": { 49 "type": "string", 50 "format": "datetime" 51 }, 52 "createdBy": { 53 "type": "string" 54 }, 55 "details": { 56 "type": "union", 57 "refs": [ 58 "#accountCreated", 59 "#emailUpdated", 60 "#emailConfirmed", 61 "#passwordUpdated", 62 "#handleUpdated" 63 ] 64 } 65 } 66 }, 67 "handleUpdated": { 68 "type": "object", 69 "required": [ 70 "handle" 71 ], 72 "properties": { 73 "handle": { 74 "type": "string", 75 "format": "handle" 76 } 77 } 78 }, 79 "main": { 80 "type": "query", 81 "description": "Get account history, e.g. log of updated email addresses or other identity information.", 82 "parameters": { 83 "type": "params", 84 "required": [ 85 "did" 86 ], 87 "properties": { 88 "cursor": { 89 "type": "string" 90 }, 91 "did": { 92 "type": "string", 93 "format": "did" 94 }, 95 "events": { 96 "type": "array", 97 "items": { 98 "type": "string", 99 "knownValues": [ 100 "accountCreated", 101 "emailUpdated", 102 "emailConfirmed", 103 "passwordUpdated", 104 "handleUpdated" 105 ] 106 } 107 }, 108 "limit": { 109 "type": "integer", 110 "default": 50, 111 "minimum": 1, 112 "maximum": 100 113 } 114 } 115 }, 116 "output": { 117 "encoding": "application/json", 118 "schema": { 119 "type": "object", 120 "required": [ 121 "events" 122 ], 123 "properties": { 124 "cursor": { 125 "type": "string" 126 }, 127 "events": { 128 "type": "array", 129 "items": { 130 "type": "ref", 131 "ref": "#event" 132 } 133 } 134 } 135 } 136 } 137 }, 138 "passwordUpdated": { 139 "type": "object", 140 "required": [], 141 "properties": {} 142 } 143 } 144}