* First vouch implementation * Remove unneeded endpoints * wip * ✨ wip * ✨ Process jetstream events through p-queue and add tests * ✅ Add test for cursor update * 🐛 Use utc time to update updatedAt * 🧹 Cleanup * 🔨 Fix pnpm versioning issues * ✨ Replace jetstream lib with manual implementation * ✨ Remove unnecessary 3p dep * ✨ Add e2e test for jetstream * 🚨 Fix import * 🧹 Remove unnecessary property * ✨ Fix dev-env and add profile to verification view in ozone * ✅ Add profile type * ✨ Add backpressure handling to jetstream listener * ✨ Use WebSocketKeepAlive from xrpc-server and replace partysocket * ✨ Add a new verifier role to ozone team meber roles * 📝 Run codegen * 🐛 Fix auth check * 🐛 Fix test failure check * 🚨 Fix json formatting * 🐛 Fix team role check * 🚧 Checking failing test * ✅ Fix tests * ✨ Address review comments * ✨ Add xrpc-server to version * 🚨 Fix linter issue * 🚨 Fix linter issue * ✨ Resolve race condition in cursor update * ✅ Add verification check on profile * 🐛 Fix missing cid in test and firehose cursor * ✨ Fix test * ✨ Add record validation for verification and separate xrpc-server version * ✨ Return error object for failed revocations * ✨ Add re-login on expired session case * 📝 Fix typo --------- Co-authored-by: rafael <rafael@blueskyweb.xyz>
76 lines
2.3 KiB
JSON
76 lines
2.3 KiB
JSON
{
|
|
"lexicon": 1,
|
|
"id": "tools.ozone.verification.revokeVerifications",
|
|
"defs": {
|
|
"main": {
|
|
"type": "procedure",
|
|
"description": "Revoke previously granted verifications in batches of up to 100.",
|
|
"input": {
|
|
"encoding": "application/json",
|
|
"schema": {
|
|
"type": "object",
|
|
"required": ["uris"],
|
|
"properties": {
|
|
"uris": {
|
|
"type": "array",
|
|
"description": "Array of verification record uris to revoke",
|
|
"maxLength": 100,
|
|
"items": {
|
|
"type": "string",
|
|
"description": "The AT-URI of the verification record to revoke.",
|
|
"format": "at-uri"
|
|
}
|
|
},
|
|
"revokeReason": {
|
|
"type": "string",
|
|
"description": "Reason for revoking the verification. This is optional and can be omitted if not needed.",
|
|
"maxLength": 1000
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"output": {
|
|
"encoding": "application/json",
|
|
"schema": {
|
|
"type": "object",
|
|
"required": ["revokedVerifications", "failedRevocations"],
|
|
"properties": {
|
|
"revokedVerifications": {
|
|
"type": "array",
|
|
"description": "List of verification uris successfully revoked",
|
|
"items": {
|
|
"type": "string",
|
|
"format": "at-uri"
|
|
}
|
|
},
|
|
"failedRevocations": {
|
|
"type": "array",
|
|
"description": "List of verification uris that couldn't be revoked, including failure reasons",
|
|
"items": {
|
|
"type": "ref",
|
|
"ref": "#revokeError"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"revokeError": {
|
|
"type": "object",
|
|
"description": "Error object for failed revocations",
|
|
"required": ["uri", "error"],
|
|
"properties": {
|
|
"uri": {
|
|
"type": "string",
|
|
"description": "The AT-URI of the verification record that failed to revoke.",
|
|
"format": "at-uri"
|
|
},
|
|
"error": {
|
|
"type": "string",
|
|
"description": "Description of the error that occurred during revocation."
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|