atproto blogging
1{
2 "lexicon": 1,
3 "id": "tools.ozone.verification.revokeVerifications",
4 "defs": {
5 "main": {
6 "type": "procedure",
7 "description": "Revoke previously granted verifications in batches of up to 100.",
8 "input": {
9 "encoding": "application/json",
10 "schema": {
11 "type": "object",
12 "required": [
13 "uris"
14 ],
15 "properties": {
16 "revokeReason": {
17 "type": "string",
18 "description": "Reason for revoking the verification. This is optional and can be omitted if not needed.",
19 "maxLength": 1000
20 },
21 "uris": {
22 "type": "array",
23 "description": "Array of verification record uris to revoke",
24 "items": {
25 "type": "string",
26 "description": "The AT-URI of the verification record to revoke.",
27 "format": "at-uri"
28 },
29 "maxLength": 100
30 }
31 }
32 }
33 },
34 "output": {
35 "encoding": "application/json",
36 "schema": {
37 "type": "object",
38 "required": [
39 "revokedVerifications",
40 "failedRevocations"
41 ],
42 "properties": {
43 "failedRevocations": {
44 "type": "array",
45 "description": "List of verification uris that couldn't be revoked, including failure reasons",
46 "items": {
47 "type": "ref",
48 "ref": "#revokeError"
49 }
50 },
51 "revokedVerifications": {
52 "type": "array",
53 "description": "List of verification uris successfully revoked",
54 "items": {
55 "type": "string",
56 "format": "at-uri"
57 }
58 }
59 }
60 }
61 }
62 },
63 "revokeError": {
64 "type": "object",
65 "description": "Error object for failed revocations",
66 "required": [
67 "uri",
68 "error"
69 ],
70 "properties": {
71 "error": {
72 "type": "string",
73 "description": "Description of the error that occurred during revocation."
74 },
75 "uri": {
76 "type": "string",
77 "description": "The AT-URI of the verification record that failed to revoke.",
78 "format": "at-uri"
79 }
80 }
81 }
82 }
83}