Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User invite codes #757

Merged
merged 15 commits into from
Apr 5, 2023
41 changes: 41 additions & 0 deletions lexicons/com/atproto/server/getUserInviteCodes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"lexicon": 1,
"id": "com.atproto.server.getUserInviteCodes",
"defs": {
"main": {
"type": "query",
"description": "Get all invite codes for a given user",
"parameters": {
"type": "params",
"properties": {
"includeUsed": { "type": "boolean", "default": true }
}
},
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["codes"],
"properties": {
"codes": {
"type": "array",
"items": {
"type": "ref",
"ref": "#invite"
}
}
}
}
}
},
"invite": {
"type": "object",
"requred": ["code", "available", "uses"],
pfrazee marked this conversation as resolved.
Show resolved Hide resolved
"properties": {
"code": { "type": "string" },
"available": { "type": "integer" },
"users": { "type": "integer" }
}
}
}
}