atproto blogging
1{
2 "lexicon": 1,
3 "id": "com.atproto.server.createInviteCodes",
4 "defs": {
5 "accountCodes": {
6 "type": "object",
7 "required": [
8 "account",
9 "codes"
10 ],
11 "properties": {
12 "account": {
13 "type": "string"
14 },
15 "codes": {
16 "type": "array",
17 "items": {
18 "type": "string"
19 }
20 }
21 }
22 },
23 "main": {
24 "type": "procedure",
25 "description": "Create invite codes.",
26 "input": {
27 "encoding": "application/json",
28 "schema": {
29 "type": "object",
30 "required": [
31 "codeCount",
32 "useCount"
33 ],
34 "properties": {
35 "codeCount": {
36 "type": "integer",
37 "default": 1
38 },
39 "forAccounts": {
40 "type": "array",
41 "items": {
42 "type": "string",
43 "format": "did"
44 }
45 },
46 "useCount": {
47 "type": "integer"
48 }
49 }
50 }
51 },
52 "output": {
53 "encoding": "application/json",
54 "schema": {
55 "type": "object",
56 "required": [
57 "codes"
58 ],
59 "properties": {
60 "codes": {
61 "type": "array",
62 "items": {
63 "type": "ref",
64 "ref": "#accountCodes"
65 }
66 }
67 }
68 }
69 }
70 }
71 }
72}