atproto blogging
at main 65 lines 1.6 kB view raw
1{ 2 "lexicon": 1, 3 "id": "tools.ozone.setting.upsertOption", 4 "defs": { 5 "main": { 6 "type": "procedure", 7 "description": "Create or update setting option", 8 "input": { 9 "encoding": "application/json", 10 "schema": { 11 "type": "object", 12 "required": [ 13 "key", 14 "scope", 15 "value" 16 ], 17 "properties": { 18 "description": { 19 "type": "string", 20 "maxLength": 2000 21 }, 22 "key": { 23 "type": "string", 24 "format": "nsid" 25 }, 26 "managerRole": { 27 "type": "string", 28 "knownValues": [ 29 "tools.ozone.team.defs#roleModerator", 30 "tools.ozone.team.defs#roleTriage", 31 "tools.ozone.team.defs#roleVerifier", 32 "tools.ozone.team.defs#roleAdmin" 33 ] 34 }, 35 "scope": { 36 "type": "string", 37 "knownValues": [ 38 "instance", 39 "personal" 40 ] 41 }, 42 "value": { 43 "type": "unknown" 44 } 45 } 46 } 47 }, 48 "output": { 49 "encoding": "application/json", 50 "schema": { 51 "type": "object", 52 "required": [ 53 "option" 54 ], 55 "properties": { 56 "option": { 57 "type": "ref", 58 "ref": "tools.ozone.setting.defs#option" 59 } 60 } 61 } 62 } 63 } 64 } 65}