@colibri-social/lexicons 2.17.0 → 2.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/generated/social/colibri/beta/actor/defs.defs.d.ts +8 -0
  3. package/dist/generated/social/colibri/beta/actor/defs.defs.d.ts.map +1 -1
  4. package/dist/generated/social/colibri/beta/actor/defs.defs.js +1 -1
  5. package/dist/generated/social/colibri/beta/actor/defs.defs.js.map +1 -1
  6. package/dist/generated/social/colibri/beta/channel/defs.defs.d.ts +40 -0
  7. package/dist/generated/social/colibri/beta/channel/defs.defs.d.ts.map +1 -1
  8. package/dist/generated/social/colibri/beta/channel/defs.defs.js +3 -0
  9. package/dist/generated/social/colibri/beta/channel/defs.defs.js.map +1 -1
  10. package/dist/generated/social/colibri/beta/channel/listMessages.defs.d.ts +8 -0
  11. package/dist/generated/social/colibri/beta/channel/listMessages.defs.d.ts.map +1 -1
  12. package/dist/generated/social/colibri/beta/channel/listMessages.defs.js +2 -2
  13. package/dist/generated/social/colibri/beta/channel/listMessages.defs.js.map +1 -1
  14. package/dist/generated/social/colibri/beta/channel/listSummaries.d.ts +4 -0
  15. package/dist/generated/social/colibri/beta/channel/listSummaries.d.ts.map +1 -0
  16. package/dist/generated/social/colibri/beta/channel/listSummaries.defs.d.ts +29 -0
  17. package/dist/generated/social/colibri/beta/channel/listSummaries.defs.d.ts.map +1 -0
  18. package/dist/generated/social/colibri/beta/channel/listSummaries.defs.js +15 -0
  19. package/dist/generated/social/colibri/beta/channel/listSummaries.defs.js.map +1 -0
  20. package/dist/generated/social/colibri/beta/channel/listSummaries.js +7 -0
  21. package/dist/generated/social/colibri/beta/channel/listSummaries.js.map +1 -0
  22. package/dist/generated/social/colibri/beta/channel.d.ts +1 -0
  23. package/dist/generated/social/colibri/beta/channel.d.ts.map +1 -1
  24. package/dist/generated/social/colibri/beta/channel.js +1 -0
  25. package/dist/generated/social/colibri/beta/channel.js.map +1 -1
  26. package/dist/generated/social/colibri/beta/emoji/createPack.d.ts +4 -0
  27. package/dist/generated/social/colibri/beta/emoji/createPack.d.ts.map +1 -0
  28. package/dist/generated/social/colibri/beta/emoji/createPack.defs.d.ts +60 -0
  29. package/dist/generated/social/colibri/beta/emoji/createPack.defs.d.ts.map +1 -0
  30. package/dist/generated/social/colibri/beta/emoji/createPack.defs.js +16 -0
  31. package/dist/generated/social/colibri/beta/emoji/createPack.defs.js.map +1 -0
  32. package/dist/generated/social/colibri/beta/emoji/createPack.js +7 -0
  33. package/dist/generated/social/colibri/beta/emoji/createPack.js.map +1 -0
  34. package/dist/generated/social/colibri/beta/emoji/defs.d.ts +3 -0
  35. package/dist/generated/social/colibri/beta/emoji/defs.d.ts.map +1 -0
  36. package/dist/generated/social/colibri/beta/emoji/defs.defs.d.ts +145 -0
  37. package/dist/generated/social/colibri/beta/emoji/defs.defs.d.ts.map +1 -0
  38. package/dist/generated/social/colibri/beta/emoji/defs.defs.js +19 -0
  39. package/dist/generated/social/colibri/beta/emoji/defs.defs.js.map +1 -0
  40. package/dist/generated/social/colibri/beta/emoji/defs.js +6 -0
  41. package/dist/generated/social/colibri/beta/emoji/defs.js.map +1 -0
  42. package/dist/generated/social/colibri/beta/emoji/delete.d.ts +4 -0
  43. package/dist/generated/social/colibri/beta/emoji/delete.d.ts.map +1 -0
  44. package/dist/generated/social/colibri/beta/emoji/delete.defs.d.ts +33 -0
  45. package/dist/generated/social/colibri/beta/emoji/delete.defs.d.ts.map +1 -0
  46. package/dist/generated/social/colibri/beta/emoji/delete.defs.js +15 -0
  47. package/dist/generated/social/colibri/beta/emoji/delete.defs.js.map +1 -0
  48. package/dist/generated/social/colibri/beta/emoji/delete.js +7 -0
  49. package/dist/generated/social/colibri/beta/emoji/delete.js.map +1 -0
  50. package/dist/generated/social/colibri/beta/emoji/deletePack.d.ts +4 -0
  51. package/dist/generated/social/colibri/beta/emoji/deletePack.d.ts.map +1 -0
  52. package/dist/generated/social/colibri/beta/emoji/deletePack.defs.d.ts +33 -0
  53. package/dist/generated/social/colibri/beta/emoji/deletePack.defs.d.ts.map +1 -0
  54. package/dist/generated/social/colibri/beta/emoji/deletePack.defs.js +15 -0
  55. package/dist/generated/social/colibri/beta/emoji/deletePack.defs.js.map +1 -0
  56. package/dist/generated/social/colibri/beta/emoji/deletePack.js +7 -0
  57. package/dist/generated/social/colibri/beta/emoji/deletePack.js.map +1 -0
  58. package/dist/generated/social/colibri/beta/emoji/getCatalog.d.ts +4 -0
  59. package/dist/generated/social/colibri/beta/emoji/getCatalog.d.ts.map +1 -0
  60. package/dist/generated/social/colibri/beta/emoji/getCatalog.defs.d.ts +29 -0
  61. package/dist/generated/social/colibri/beta/emoji/getCatalog.defs.d.ts.map +1 -0
  62. package/dist/generated/social/colibri/beta/emoji/getCatalog.defs.js +15 -0
  63. package/dist/generated/social/colibri/beta/emoji/getCatalog.defs.js.map +1 -0
  64. package/dist/generated/social/colibri/beta/emoji/getCatalog.js +7 -0
  65. package/dist/generated/social/colibri/beta/emoji/getCatalog.js.map +1 -0
  66. package/dist/generated/social/colibri/beta/emoji/rename.d.ts +4 -0
  67. package/dist/generated/social/colibri/beta/emoji/rename.d.ts.map +1 -0
  68. package/dist/generated/social/colibri/beta/emoji/rename.defs.d.ts +46 -0
  69. package/dist/generated/social/colibri/beta/emoji/rename.defs.d.ts.map +1 -0
  70. package/dist/generated/social/colibri/beta/emoji/rename.defs.js +16 -0
  71. package/dist/generated/social/colibri/beta/emoji/rename.defs.js.map +1 -0
  72. package/dist/generated/social/colibri/beta/emoji/rename.js +7 -0
  73. package/dist/generated/social/colibri/beta/emoji/rename.js.map +1 -0
  74. package/dist/generated/social/colibri/beta/emoji/updatePack.d.ts +4 -0
  75. package/dist/generated/social/colibri/beta/emoji/updatePack.d.ts.map +1 -0
  76. package/dist/generated/social/colibri/beta/emoji/updatePack.defs.d.ts +60 -0
  77. package/dist/generated/social/colibri/beta/emoji/updatePack.defs.d.ts.map +1 -0
  78. package/dist/generated/social/colibri/beta/emoji/updatePack.defs.js +16 -0
  79. package/dist/generated/social/colibri/beta/emoji/updatePack.defs.js.map +1 -0
  80. package/dist/generated/social/colibri/beta/emoji/updatePack.js +7 -0
  81. package/dist/generated/social/colibri/beta/emoji/updatePack.js.map +1 -0
  82. package/dist/generated/social/colibri/beta/emoji/upload.d.ts +4 -0
  83. package/dist/generated/social/colibri/beta/emoji/upload.d.ts.map +1 -0
  84. package/dist/generated/social/colibri/beta/emoji/upload.defs.d.ts +54 -0
  85. package/dist/generated/social/colibri/beta/emoji/upload.defs.d.ts.map +1 -0
  86. package/dist/generated/social/colibri/beta/emoji/upload.defs.js +16 -0
  87. package/dist/generated/social/colibri/beta/emoji/upload.defs.js.map +1 -0
  88. package/dist/generated/social/colibri/beta/emoji/upload.js +7 -0
  89. package/dist/generated/social/colibri/beta/emoji/upload.js.map +1 -0
  90. package/dist/generated/social/colibri/beta/emoji.d.ts +9 -0
  91. package/dist/generated/social/colibri/beta/emoji.d.ts.map +1 -0
  92. package/dist/generated/social/colibri/beta/emoji.js +12 -0
  93. package/dist/generated/social/colibri/beta/emoji.js.map +1 -0
  94. package/dist/generated/social/colibri/beta/message.defs.d.ts +8 -0
  95. package/dist/generated/social/colibri/beta/message.defs.d.ts.map +1 -1
  96. package/dist/generated/social/colibri/beta/message.defs.js +1 -1
  97. package/dist/generated/social/colibri/beta/message.defs.js.map +1 -1
  98. package/dist/generated/social/colibri/beta/notification/clear.d.ts +4 -0
  99. package/dist/generated/social/colibri/beta/notification/clear.d.ts.map +1 -0
  100. package/dist/generated/social/colibri/beta/notification/clear.defs.d.ts +37 -0
  101. package/dist/generated/social/colibri/beta/notification/clear.defs.d.ts.map +1 -0
  102. package/dist/generated/social/colibri/beta/notification/clear.defs.js +15 -0
  103. package/dist/generated/social/colibri/beta/notification/clear.defs.js.map +1 -0
  104. package/dist/generated/social/colibri/beta/notification/clear.js +7 -0
  105. package/dist/generated/social/colibri/beta/notification/clear.js.map +1 -0
  106. package/dist/generated/social/colibri/beta/notification/defs.defs.d.ts +4 -0
  107. package/dist/generated/social/colibri/beta/notification/defs.defs.d.ts.map +1 -1
  108. package/dist/generated/social/colibri/beta/notification/defs.defs.js +1 -1
  109. package/dist/generated/social/colibri/beta/notification/defs.defs.js.map +1 -1
  110. package/dist/generated/social/colibri/beta/notification/markReadFromNotification.d.ts +4 -0
  111. package/dist/generated/social/colibri/beta/notification/markReadFromNotification.d.ts.map +1 -0
  112. package/dist/generated/social/colibri/beta/notification/markReadFromNotification.defs.d.ts +27 -0
  113. package/dist/generated/social/colibri/beta/notification/markReadFromNotification.defs.d.ts.map +1 -0
  114. package/dist/generated/social/colibri/beta/notification/markReadFromNotification.defs.js +15 -0
  115. package/dist/generated/social/colibri/beta/notification/markReadFromNotification.defs.js.map +1 -0
  116. package/dist/generated/social/colibri/beta/notification/markReadFromNotification.js +7 -0
  117. package/dist/generated/social/colibri/beta/notification/markReadFromNotification.js.map +1 -0
  118. package/dist/generated/social/colibri/beta/notification.d.ts +2 -0
  119. package/dist/generated/social/colibri/beta/notification.d.ts.map +1 -1
  120. package/dist/generated/social/colibri/beta/notification.js +2 -0
  121. package/dist/generated/social/colibri/beta/notification.js.map +1 -1
  122. package/dist/generated/social/colibri/beta/permissionCommunity.defs.d.ts.map +1 -1
  123. package/dist/generated/social/colibri/beta/permissionCommunity.defs.js +1 -1
  124. package/dist/generated/social/colibri/beta/permissionCommunity.defs.js.map +1 -1
  125. package/dist/generated/social/colibri/beta/permissionMessaging.defs.d.ts.map +1 -1
  126. package/dist/generated/social/colibri/beta/permissionMessaging.defs.js +1 -1
  127. package/dist/generated/social/colibri/beta/permissionMessaging.defs.js.map +1 -1
  128. package/dist/generated/social/colibri/beta/permissionNotification.defs.d.ts.map +1 -1
  129. package/dist/generated/social/colibri/beta/permissionNotification.defs.js +1 -1
  130. package/dist/generated/social/colibri/beta/permissionNotification.defs.js.map +1 -1
  131. package/dist/generated/social/colibri/beta/permissionPush.defs.d.ts.map +1 -1
  132. package/dist/generated/social/colibri/beta/permissionPush.defs.js +1 -1
  133. package/dist/generated/social/colibri/beta/permissionPush.defs.js.map +1 -1
  134. package/dist/generated/social/colibri/beta/server/describeServer.defs.d.ts +2 -2
  135. package/dist/generated/social/colibri/beta/server/describeServer.defs.d.ts.map +1 -1
  136. package/dist/generated/social/colibri/beta/server/describeServer.defs.js.map +1 -1
  137. package/dist/generated/social/colibri/beta/sync/defs.defs.d.ts +41 -0
  138. package/dist/generated/social/colibri/beta/sync/defs.defs.d.ts.map +1 -1
  139. package/dist/generated/social/colibri/beta/sync/defs.defs.js +8 -1
  140. package/dist/generated/social/colibri/beta/sync/defs.defs.js.map +1 -1
  141. package/dist/generated/social/colibri/beta.d.ts +1 -0
  142. package/dist/generated/social/colibri/beta.d.ts.map +1 -1
  143. package/dist/generated/social/colibri/beta.js +1 -0
  144. package/dist/generated/social/colibri/beta.js.map +1 -1
  145. package/lexicons/social/colibri/beta/actor/defs.json +8 -0
  146. package/lexicons/social/colibri/beta/channel/defs.json +45 -0
  147. package/lexicons/social/colibri/beta/channel/listMessages.json +10 -1
  148. package/lexicons/social/colibri/beta/channel/listSummaries.json +52 -0
  149. package/lexicons/social/colibri/beta/emoji/createPack.json +98 -0
  150. package/lexicons/social/colibri/beta/emoji/defs.json +173 -0
  151. package/lexicons/social/colibri/beta/emoji/delete.json +66 -0
  152. package/lexicons/social/colibri/beta/emoji/deletePack.json +66 -0
  153. package/lexicons/social/colibri/beta/emoji/getCatalog.json +41 -0
  154. package/lexicons/social/colibri/beta/emoji/rename.json +87 -0
  155. package/lexicons/social/colibri/beta/emoji/updatePack.json +102 -0
  156. package/lexicons/social/colibri/beta/emoji/upload.json +101 -0
  157. package/lexicons/social/colibri/beta/message.json +10 -0
  158. package/lexicons/social/colibri/beta/notification/clear.json +48 -0
  159. package/lexicons/social/colibri/beta/notification/defs.json +4 -0
  160. package/lexicons/social/colibri/beta/notification/markReadFromNotification.json +41 -0
  161. package/lexicons/social/colibri/beta/permissionCommunity.json +7 -0
  162. package/lexicons/social/colibri/beta/permissionMessaging.json +1 -0
  163. package/lexicons/social/colibri/beta/permissionNotification.json +2 -1
  164. package/lexicons/social/colibri/beta/permissionPush.json +2 -1
  165. package/lexicons/social/colibri/beta/server/describeServer.json +1 -1
  166. package/lexicons/social/colibri/beta/sync/defs.json +43 -0
  167. package/package.json +1 -1
@@ -0,0 +1,173 @@
1
+ {
2
+ "lexicon": 1,
3
+ "id": "social.colibri.beta.emoji.defs",
4
+ "defs": {
5
+ "emojiImage": {
6
+ "type": "object",
7
+ "description": "One stored rendition of an emoji.",
8
+ "required": ["cid", "format", "animated"],
9
+ "properties": {
10
+ "cid": {
11
+ "type": "string",
12
+ "format": "cid",
13
+ "description": "The blob's CID in the owner's repo."
14
+ },
15
+ "format": {
16
+ "type": "string",
17
+ "description": "The image format.",
18
+ "knownValues": ["png", "webp", "gif", "apng", "lottie", "other"]
19
+ },
20
+ "mimeType": {
21
+ "type": "string",
22
+ "description": "The blob's MIME type."
23
+ },
24
+ "size": {
25
+ "type": "integer",
26
+ "minimum": 0,
27
+ "description": "The blob's size in bytes."
28
+ },
29
+ "animated": {
30
+ "type": "boolean",
31
+ "description": "Whether the format is animated."
32
+ },
33
+ "pixels": {
34
+ "type": "integer",
35
+ "minimum": 1,
36
+ "description": "The rendition's longest edge in pixels, when the provider fixes one."
37
+ }
38
+ }
39
+ },
40
+ "emojiView": {
41
+ "type": "object",
42
+ "description": "A custom emoji, normalised from its provider's record.",
43
+ "required": ["uri", "provider", "owner", "name", "images", "createdAt"],
44
+ "properties": {
45
+ "uri": {
46
+ "type": "string",
47
+ "format": "at-uri",
48
+ "description": "The emoji's record URI."
49
+ },
50
+ "cid": {
51
+ "type": "string",
52
+ "format": "cid",
53
+ "description": "The record's CID."
54
+ },
55
+ "provider": {
56
+ "type": "string",
57
+ "description": "The emoji provider whose lexicon the record uses.",
58
+ "knownValues": ["blue.moji"]
59
+ },
60
+ "owner": {
61
+ "type": "string",
62
+ "format": "did",
63
+ "description": "The repo that holds the record and its blobs."
64
+ },
65
+ "name": {
66
+ "type": "string",
67
+ "description": "The name without colons."
68
+ },
69
+ "alt": {
70
+ "type": "string",
71
+ "description": "Alt text for the image."
72
+ },
73
+ "fallback": {
74
+ "type": "string",
75
+ "description": "The text shown where the image cannot render."
76
+ },
77
+ "images": {
78
+ "type": "array",
79
+ "items": {
80
+ "type": "ref",
81
+ "ref": "#emojiImage"
82
+ },
83
+ "description": "Every rendition the record carries."
84
+ },
85
+ "adultOnly": {
86
+ "type": "boolean",
87
+ "description": "Whether the owner marked the emoji as adult content."
88
+ },
89
+ "copyOf": {
90
+ "type": "string",
91
+ "format": "at-uri",
92
+ "description": "The emoji this one was copied from."
93
+ },
94
+ "createdAt": {
95
+ "type": "string",
96
+ "format": "datetime",
97
+ "description": "When the record was created."
98
+ }
99
+ }
100
+ },
101
+ "packView": {
102
+ "type": "object",
103
+ "description": "A named group of custom emoji, normalised from its provider's records.",
104
+ "required": ["uri", "provider", "owner", "name", "emojis", "createdAt"],
105
+ "properties": {
106
+ "uri": {
107
+ "type": "string",
108
+ "format": "at-uri",
109
+ "description": "The pack's record URI."
110
+ },
111
+ "provider": {
112
+ "type": "string",
113
+ "description": "The emoji provider whose lexicon the record uses.",
114
+ "knownValues": ["blue.moji"]
115
+ },
116
+ "owner": {
117
+ "type": "string",
118
+ "format": "did",
119
+ "description": "The repo that holds the pack."
120
+ },
121
+ "name": {
122
+ "type": "string",
123
+ "description": "The pack's name."
124
+ },
125
+ "description": {
126
+ "type": "string",
127
+ "description": "The pack's description."
128
+ },
129
+ "emojis": {
130
+ "type": "array",
131
+ "items": {
132
+ "type": "string",
133
+ "format": "at-uri"
134
+ },
135
+ "description": "The URIs of the emoji in the pack, in the order they were added. Only emoji present in the catalog are listed."
136
+ },
137
+ "createdAt": {
138
+ "type": "string",
139
+ "format": "datetime",
140
+ "description": "When the record was created."
141
+ }
142
+ }
143
+ },
144
+ "catalogView": {
145
+ "type": "object",
146
+ "description": "Every custom emoji and pack in one repo. For a community this is its own emoji. For a user it is the emoji they uploaded or copied.",
147
+ "required": ["owner", "emojis", "packs"],
148
+ "properties": {
149
+ "owner": {
150
+ "type": "string",
151
+ "format": "did",
152
+ "description": "The repo the catalog belongs to."
153
+ },
154
+ "emojis": {
155
+ "type": "array",
156
+ "items": {
157
+ "type": "ref",
158
+ "ref": "#emojiView"
159
+ },
160
+ "description": "Every emoji in the repo."
161
+ },
162
+ "packs": {
163
+ "type": "array",
164
+ "items": {
165
+ "type": "ref",
166
+ "ref": "#packView"
167
+ },
168
+ "description": "Every pack in the repo."
169
+ }
170
+ }
171
+ }
172
+ }
173
+ }
@@ -0,0 +1,66 @@
1
+ {
2
+ "lexicon": 1,
3
+ "id": "social.colibri.beta.emoji.delete",
4
+ "defs": {
5
+ "main": {
6
+ "type": "procedure",
7
+ "description": "Deletes a community's custom emoji and removes it from every pack of the community. Copies other people made stay in their repos.",
8
+ "input": {
9
+ "encoding": "application/json",
10
+ "schema": {
11
+ "type": "object",
12
+ "required": ["community", "emoji"],
13
+ "properties": {
14
+ "community": {
15
+ "type": "string",
16
+ "format": "did",
17
+ "description": "The community that owns the emoji."
18
+ },
19
+ "emoji": {
20
+ "type": "string",
21
+ "format": "at-uri",
22
+ "description": "The emoji's record URI in the community's repo."
23
+ }
24
+ }
25
+ }
26
+ },
27
+ "output": {
28
+ "encoding": "application/json",
29
+ "schema": {
30
+ "type": "object",
31
+ "properties": {}
32
+ }
33
+ },
34
+ "errors": [
35
+ {
36
+ "name": "AuthRequired",
37
+ "description": "The request is missing, malformed, or unverifiable service auth."
38
+ },
39
+ {
40
+ "name": "Forbidden",
41
+ "description": "The caller lacks the community.manage permission."
42
+ },
43
+ {
44
+ "name": "CommunityNotFound",
45
+ "description": "No community exists at the given DID."
46
+ },
47
+ {
48
+ "name": "EmojiNotFound",
49
+ "description": "No emoji of this community exists at the given URI."
50
+ },
51
+ {
52
+ "name": "UnsupportedProvider",
53
+ "description": "The emoji provider is unknown, or it does not support the requested operation."
54
+ },
55
+ {
56
+ "name": "CredentialsUnavailable",
57
+ "description": "The AppView cannot act as the community because its stored credentials are missing or unusable."
58
+ },
59
+ {
60
+ "name": "UpstreamFailure",
61
+ "description": "A PDS call the AppView depends on failed."
62
+ }
63
+ ]
64
+ }
65
+ }
66
+ }
@@ -0,0 +1,66 @@
1
+ {
2
+ "lexicon": 1,
3
+ "id": "social.colibri.beta.emoji.deletePack",
4
+ "defs": {
5
+ "main": {
6
+ "type": "procedure",
7
+ "description": "Deletes a community's pack. The emoji in it stay.",
8
+ "input": {
9
+ "encoding": "application/json",
10
+ "schema": {
11
+ "type": "object",
12
+ "required": ["community", "pack"],
13
+ "properties": {
14
+ "community": {
15
+ "type": "string",
16
+ "format": "did",
17
+ "description": "The community that owns the emoji."
18
+ },
19
+ "pack": {
20
+ "type": "string",
21
+ "format": "at-uri",
22
+ "description": "The pack's record URI in the community's repo."
23
+ }
24
+ }
25
+ }
26
+ },
27
+ "output": {
28
+ "encoding": "application/json",
29
+ "schema": {
30
+ "type": "object",
31
+ "properties": {}
32
+ }
33
+ },
34
+ "errors": [
35
+ {
36
+ "name": "AuthRequired",
37
+ "description": "The request is missing, malformed, or unverifiable service auth."
38
+ },
39
+ {
40
+ "name": "Forbidden",
41
+ "description": "The caller lacks the community.manage permission."
42
+ },
43
+ {
44
+ "name": "CommunityNotFound",
45
+ "description": "No community exists at the given DID."
46
+ },
47
+ {
48
+ "name": "PackNotFound",
49
+ "description": "No pack of this community exists at the given URI."
50
+ },
51
+ {
52
+ "name": "UnsupportedProvider",
53
+ "description": "The emoji provider is unknown, or it does not support the requested operation."
54
+ },
55
+ {
56
+ "name": "CredentialsUnavailable",
57
+ "description": "The AppView cannot act as the community because its stored credentials are missing or unusable."
58
+ },
59
+ {
60
+ "name": "UpstreamFailure",
61
+ "description": "A PDS call the AppView depends on failed."
62
+ }
63
+ ]
64
+ }
65
+ }
66
+ }
@@ -0,0 +1,41 @@
1
+ {
2
+ "lexicon": 1,
3
+ "id": "social.colibri.beta.emoji.getCatalog",
4
+ "defs": {
5
+ "main": {
6
+ "type": "query",
7
+ "description": "Lists the custom emoji and packs in one repo, from every supported emoji provider. Works for communities and users alike, since the records are public.",
8
+ "parameters": {
9
+ "type": "params",
10
+ "required": ["owner"],
11
+ "properties": {
12
+ "owner": {
13
+ "type": "string",
14
+ "format": "did",
15
+ "description": "The community or user whose emoji to list."
16
+ }
17
+ }
18
+ },
19
+ "output": {
20
+ "encoding": "application/json",
21
+ "schema": {
22
+ "type": "object",
23
+ "required": ["catalog"],
24
+ "properties": {
25
+ "catalog": {
26
+ "type": "ref",
27
+ "ref": "social.colibri.beta.emoji.defs#catalogView",
28
+ "description": "The repo's emoji and packs."
29
+ }
30
+ }
31
+ }
32
+ },
33
+ "errors": [
34
+ {
35
+ "name": "UpstreamFailure",
36
+ "description": "A PDS call the AppView depends on failed."
37
+ }
38
+ ]
39
+ }
40
+ }
41
+ }
@@ -0,0 +1,87 @@
1
+ {
2
+ "lexicon": 1,
3
+ "id": "social.colibri.beta.emoji.rename",
4
+ "defs": {
5
+ "main": {
6
+ "type": "procedure",
7
+ "description": "Renames a community's custom emoji. Providers that key records by name move the record to a new key and repoint pack memberships, so the emoji's URI changes.",
8
+ "input": {
9
+ "encoding": "application/json",
10
+ "schema": {
11
+ "type": "object",
12
+ "required": ["community", "emoji", "name"],
13
+ "properties": {
14
+ "community": {
15
+ "type": "string",
16
+ "format": "did",
17
+ "description": "The community that owns the emoji."
18
+ },
19
+ "emoji": {
20
+ "type": "string",
21
+ "format": "at-uri",
22
+ "description": "The emoji's record URI in the community's repo."
23
+ },
24
+ "name": {
25
+ "type": "string",
26
+ "minLength": 2,
27
+ "maxLength": 32,
28
+ "description": "The emoji's name without colons. Lowercase letters, digits and underscores."
29
+ }
30
+ }
31
+ }
32
+ },
33
+ "output": {
34
+ "encoding": "application/json",
35
+ "schema": {
36
+ "type": "object",
37
+ "required": ["emoji"],
38
+ "properties": {
39
+ "emoji": {
40
+ "type": "ref",
41
+ "ref": "social.colibri.beta.emoji.defs#emojiView",
42
+ "description": "The emoji as stored."
43
+ }
44
+ }
45
+ }
46
+ },
47
+ "errors": [
48
+ {
49
+ "name": "AuthRequired",
50
+ "description": "The request is missing, malformed, or unverifiable service auth."
51
+ },
52
+ {
53
+ "name": "Forbidden",
54
+ "description": "The caller lacks the community.manage permission."
55
+ },
56
+ {
57
+ "name": "CommunityNotFound",
58
+ "description": "No community exists at the given DID."
59
+ },
60
+ {
61
+ "name": "EmojiNotFound",
62
+ "description": "No emoji of this community exists at the given URI."
63
+ },
64
+ {
65
+ "name": "InvalidName",
66
+ "description": "The name is not 2 to 32 characters of lowercase letters, digits and underscores."
67
+ },
68
+ {
69
+ "name": "NameTaken",
70
+ "description": "The community already has an emoji with this name."
71
+ },
72
+ {
73
+ "name": "UnsupportedProvider",
74
+ "description": "The emoji provider is unknown, or it does not support the requested operation."
75
+ },
76
+ {
77
+ "name": "CredentialsUnavailable",
78
+ "description": "The AppView cannot act as the community because its stored credentials are missing or unusable."
79
+ },
80
+ {
81
+ "name": "UpstreamFailure",
82
+ "description": "A PDS call the AppView depends on failed."
83
+ }
84
+ ]
85
+ }
86
+ }
87
+ }
@@ -0,0 +1,102 @@
1
+ {
2
+ "lexicon": 1,
3
+ "id": "social.colibri.beta.emoji.updatePack",
4
+ "defs": {
5
+ "main": {
6
+ "type": "procedure",
7
+ "description": "Renames a community's pack or replaces its emoji. Omitted fields stay as they are.",
8
+ "input": {
9
+ "encoding": "application/json",
10
+ "schema": {
11
+ "type": "object",
12
+ "required": ["community", "pack"],
13
+ "properties": {
14
+ "community": {
15
+ "type": "string",
16
+ "format": "did",
17
+ "description": "The community that owns the emoji."
18
+ },
19
+ "pack": {
20
+ "type": "string",
21
+ "format": "at-uri",
22
+ "description": "The pack's record URI in the community's repo."
23
+ },
24
+ "name": {
25
+ "type": "string",
26
+ "minLength": 1,
27
+ "maxLength": 64,
28
+ "description": "The new name."
29
+ },
30
+ "description": {
31
+ "type": "string",
32
+ "maxLength": 3000,
33
+ "maxGraphemes": 300,
34
+ "description": "The new description. An empty string clears it."
35
+ },
36
+ "emojis": {
37
+ "type": "array",
38
+ "maxLength": 500,
39
+ "items": {
40
+ "type": "string",
41
+ "format": "at-uri"
42
+ },
43
+ "description": "The full new list of emoji URIs, in order."
44
+ }
45
+ }
46
+ }
47
+ },
48
+ "output": {
49
+ "encoding": "application/json",
50
+ "schema": {
51
+ "type": "object",
52
+ "required": ["pack"],
53
+ "properties": {
54
+ "pack": {
55
+ "type": "ref",
56
+ "ref": "social.colibri.beta.emoji.defs#packView",
57
+ "description": "The pack as stored."
58
+ }
59
+ }
60
+ }
61
+ },
62
+ "errors": [
63
+ {
64
+ "name": "AuthRequired",
65
+ "description": "The request is missing, malformed, or unverifiable service auth."
66
+ },
67
+ {
68
+ "name": "Forbidden",
69
+ "description": "The caller lacks the community.manage permission."
70
+ },
71
+ {
72
+ "name": "CommunityNotFound",
73
+ "description": "No community exists at the given DID."
74
+ },
75
+ {
76
+ "name": "PackNotFound",
77
+ "description": "No pack of this community exists at the given URI."
78
+ },
79
+ {
80
+ "name": "EmojiNotFound",
81
+ "description": "No emoji of this community exists at the given URI."
82
+ },
83
+ {
84
+ "name": "UnsupportedProvider",
85
+ "description": "The emoji provider is unknown, or it does not support the requested operation."
86
+ },
87
+ {
88
+ "name": "InvalidName",
89
+ "description": "The pack name is empty or longer than 64 characters."
90
+ },
91
+ {
92
+ "name": "CredentialsUnavailable",
93
+ "description": "The AppView cannot act as the community because its stored credentials are missing or unusable."
94
+ },
95
+ {
96
+ "name": "UpstreamFailure",
97
+ "description": "A PDS call the AppView depends on failed."
98
+ }
99
+ ]
100
+ }
101
+ }
102
+ }
@@ -0,0 +1,101 @@
1
+ {
2
+ "lexicon": 1,
3
+ "id": "social.colibri.beta.emoji.upload",
4
+ "defs": {
5
+ "main": {
6
+ "type": "procedure",
7
+ "description": "Adds a custom emoji to a community. The bytes are uploaded to the community's own repo and the AppView writes the provider's record there with the community's credentials.",
8
+ "parameters": {
9
+ "type": "params",
10
+ "required": ["community", "name"],
11
+ "properties": {
12
+ "community": {
13
+ "type": "string",
14
+ "format": "did",
15
+ "description": "The community that owns the emoji."
16
+ },
17
+ "name": {
18
+ "type": "string",
19
+ "minLength": 2,
20
+ "maxLength": 32,
21
+ "description": "The emoji's name without colons. Lowercase letters, digits and underscores."
22
+ },
23
+ "pack": {
24
+ "type": "string",
25
+ "format": "at-uri",
26
+ "description": "A pack of the community to add the emoji to."
27
+ },
28
+ "provider": {
29
+ "type": "string",
30
+ "description": "The emoji provider that writes the records. Defaults to the AppView's default provider.",
31
+ "knownValues": ["blue.moji"]
32
+ }
33
+ }
34
+ },
35
+ "input": {
36
+ "encoding": "image/*",
37
+ "description": "The raw image bytes. The provider sets the size limit and the accepted types, which is 128000 bytes of image/png, image/webp or image/gif for blue.moji. The content type is sniffed rather than trusted."
38
+ },
39
+ "output": {
40
+ "encoding": "application/json",
41
+ "schema": {
42
+ "type": "object",
43
+ "required": ["emoji"],
44
+ "properties": {
45
+ "emoji": {
46
+ "type": "ref",
47
+ "ref": "social.colibri.beta.emoji.defs#emojiView",
48
+ "description": "The emoji as stored."
49
+ }
50
+ }
51
+ }
52
+ },
53
+ "errors": [
54
+ {
55
+ "name": "AuthRequired",
56
+ "description": "The request is missing, malformed, or unverifiable service auth."
57
+ },
58
+ {
59
+ "name": "Forbidden",
60
+ "description": "The caller lacks the community.manage permission."
61
+ },
62
+ {
63
+ "name": "CommunityNotFound",
64
+ "description": "No community exists at the given DID."
65
+ },
66
+ {
67
+ "name": "InvalidName",
68
+ "description": "The name is not 2 to 32 characters of lowercase letters, digits and underscores."
69
+ },
70
+ {
71
+ "name": "NameTaken",
72
+ "description": "The community already has an emoji with this name."
73
+ },
74
+ {
75
+ "name": "PackNotFound",
76
+ "description": "No pack of this community exists at the given URI."
77
+ },
78
+ {
79
+ "name": "UnsupportedProvider",
80
+ "description": "The emoji provider is unknown, or it does not support the requested operation."
81
+ },
82
+ {
83
+ "name": "UnsupportedImage",
84
+ "description": "The bytes are not an image type the provider accepts."
85
+ },
86
+ {
87
+ "name": "ImageTooLarge",
88
+ "description": "The image exceeds the provider's size limit."
89
+ },
90
+ {
91
+ "name": "CredentialsUnavailable",
92
+ "description": "The AppView cannot act as the community because its stored credentials are missing or unusable."
93
+ },
94
+ {
95
+ "name": "UpstreamFailure",
96
+ "description": "A PDS call the AppView depends on failed."
97
+ }
98
+ ]
99
+ }
100
+ }
101
+ }
@@ -121,6 +121,16 @@
121
121
  "maxLength": 256,
122
122
  "description": "The original filename."
123
123
  },
124
+ "width": {
125
+ "type": "integer",
126
+ "minimum": 1,
127
+ "description": "Intrinsic pixel width, when the file is an image or video."
128
+ },
129
+ "height": {
130
+ "type": "integer",
131
+ "minimum": 1,
132
+ "description": "Intrinsic pixel height, when the file is an image or video."
133
+ },
124
134
  "spoiler": {
125
135
  "type": "boolean",
126
136
  "description": "Whether clients hide the file behind a reveal step until the reader chooses to see it."