atproto blogging
at main 104 lines 2.9 kB view raw
1{ 2 "lexicon": 1, 3 "id": "tools.ozone.verification.grantVerifications", 4 "defs": { 5 "grantError": { 6 "type": "object", 7 "description": "Error object for failed verifications.", 8 "required": [ 9 "error", 10 "subject" 11 ], 12 "properties": { 13 "error": { 14 "type": "string", 15 "description": "Error message describing the reason for failure." 16 }, 17 "subject": { 18 "type": "string", 19 "description": "The did of the subject being verified", 20 "format": "did" 21 } 22 } 23 }, 24 "main": { 25 "type": "procedure", 26 "description": "Grant verifications to multiple subjects. Allows batch processing of up to 100 verifications at once.", 27 "input": { 28 "encoding": "application/json", 29 "schema": { 30 "type": "object", 31 "required": [ 32 "verifications" 33 ], 34 "properties": { 35 "verifications": { 36 "type": "array", 37 "description": "Array of verification requests to process", 38 "items": { 39 "type": "ref", 40 "ref": "#verificationInput" 41 }, 42 "maxLength": 100 43 } 44 } 45 } 46 }, 47 "output": { 48 "encoding": "application/json", 49 "schema": { 50 "type": "object", 51 "required": [ 52 "verifications", 53 "failedVerifications" 54 ], 55 "properties": { 56 "failedVerifications": { 57 "type": "array", 58 "items": { 59 "type": "ref", 60 "ref": "#grantError" 61 } 62 }, 63 "verifications": { 64 "type": "array", 65 "items": { 66 "type": "ref", 67 "ref": "tools.ozone.verification.defs#verificationView" 68 } 69 } 70 } 71 } 72 } 73 }, 74 "verificationInput": { 75 "type": "object", 76 "required": [ 77 "subject", 78 "handle", 79 "displayName" 80 ], 81 "properties": { 82 "createdAt": { 83 "type": "string", 84 "description": "Timestamp for verification record. Defaults to current time when not specified.", 85 "format": "datetime" 86 }, 87 "displayName": { 88 "type": "string", 89 "description": "Display name of the subject the verification applies to at the moment of verifying." 90 }, 91 "handle": { 92 "type": "string", 93 "description": "Handle of the subject the verification applies to at the moment of verifying.", 94 "format": "handle" 95 }, 96 "subject": { 97 "type": "string", 98 "description": "The did of the subject being verified", 99 "format": "did" 100 } 101 } 102 } 103 } 104}