@colibri-social/lexicons 2.18.0 → 2.20.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.
- package/dist/.tsbuildinfo +1 -1
- package/dist/generated/social/colibri/beta/channel/defs.defs.d.ts +4 -0
- package/dist/generated/social/colibri/beta/channel/defs.defs.d.ts.map +1 -1
- package/dist/generated/social/colibri/beta/channel/defs.defs.js +1 -1
- package/dist/generated/social/colibri/beta/channel/defs.defs.js.map +1 -1
- package/dist/generated/social/colibri/beta/emoji/createPack.d.ts +4 -0
- package/dist/generated/social/colibri/beta/emoji/createPack.d.ts.map +1 -0
- package/dist/generated/social/colibri/beta/emoji/createPack.defs.d.ts +60 -0
- package/dist/generated/social/colibri/beta/emoji/createPack.defs.d.ts.map +1 -0
- package/dist/generated/social/colibri/beta/emoji/createPack.defs.js +16 -0
- package/dist/generated/social/colibri/beta/emoji/createPack.defs.js.map +1 -0
- package/dist/generated/social/colibri/beta/emoji/createPack.js +7 -0
- package/dist/generated/social/colibri/beta/emoji/createPack.js.map +1 -0
- package/dist/generated/social/colibri/beta/emoji/defs.d.ts +3 -0
- package/dist/generated/social/colibri/beta/emoji/defs.d.ts.map +1 -0
- package/dist/generated/social/colibri/beta/emoji/defs.defs.d.ts +225 -0
- package/dist/generated/social/colibri/beta/emoji/defs.defs.d.ts.map +1 -0
- package/dist/generated/social/colibri/beta/emoji/defs.defs.js +28 -0
- package/dist/generated/social/colibri/beta/emoji/defs.defs.js.map +1 -0
- package/dist/generated/social/colibri/beta/emoji/defs.js +6 -0
- package/dist/generated/social/colibri/beta/emoji/defs.js.map +1 -0
- package/dist/generated/social/colibri/beta/emoji/delete.d.ts +4 -0
- package/dist/generated/social/colibri/beta/emoji/delete.d.ts.map +1 -0
- package/dist/generated/social/colibri/beta/emoji/delete.defs.d.ts +33 -0
- package/dist/generated/social/colibri/beta/emoji/delete.defs.d.ts.map +1 -0
- package/dist/generated/social/colibri/beta/emoji/delete.defs.js +15 -0
- package/dist/generated/social/colibri/beta/emoji/delete.defs.js.map +1 -0
- package/dist/generated/social/colibri/beta/emoji/delete.js +7 -0
- package/dist/generated/social/colibri/beta/emoji/delete.js.map +1 -0
- package/dist/generated/social/colibri/beta/emoji/deletePack.d.ts +4 -0
- package/dist/generated/social/colibri/beta/emoji/deletePack.d.ts.map +1 -0
- package/dist/generated/social/colibri/beta/emoji/deletePack.defs.d.ts +33 -0
- package/dist/generated/social/colibri/beta/emoji/deletePack.defs.d.ts.map +1 -0
- package/dist/generated/social/colibri/beta/emoji/deletePack.defs.js +15 -0
- package/dist/generated/social/colibri/beta/emoji/deletePack.defs.js.map +1 -0
- package/dist/generated/social/colibri/beta/emoji/deletePack.js +7 -0
- package/dist/generated/social/colibri/beta/emoji/deletePack.js.map +1 -0
- package/dist/generated/social/colibri/beta/emoji/follow.d.ts +4 -0
- package/dist/generated/social/colibri/beta/emoji/follow.d.ts.map +1 -0
- package/dist/generated/social/colibri/beta/emoji/follow.defs.d.ts +80 -0
- package/dist/generated/social/colibri/beta/emoji/follow.defs.d.ts.map +1 -0
- package/dist/generated/social/colibri/beta/emoji/follow.defs.js +23 -0
- package/dist/generated/social/colibri/beta/emoji/follow.defs.js.map +1 -0
- package/dist/generated/social/colibri/beta/emoji/follow.js +7 -0
- package/dist/generated/social/colibri/beta/emoji/follow.js.map +1 -0
- package/dist/generated/social/colibri/beta/emoji/getCatalog.d.ts +4 -0
- package/dist/generated/social/colibri/beta/emoji/getCatalog.d.ts.map +1 -0
- package/dist/generated/social/colibri/beta/emoji/getCatalog.defs.d.ts +29 -0
- package/dist/generated/social/colibri/beta/emoji/getCatalog.defs.d.ts.map +1 -0
- package/dist/generated/social/colibri/beta/emoji/getCatalog.defs.js +15 -0
- package/dist/generated/social/colibri/beta/emoji/getCatalog.defs.js.map +1 -0
- package/dist/generated/social/colibri/beta/emoji/getCatalog.js +7 -0
- package/dist/generated/social/colibri/beta/emoji/getCatalog.js.map +1 -0
- package/dist/generated/social/colibri/beta/emoji/getLibrary.d.ts +4 -0
- package/dist/generated/social/colibri/beta/emoji/getLibrary.d.ts.map +1 -0
- package/dist/generated/social/colibri/beta/emoji/getLibrary.defs.d.ts +21 -0
- package/dist/generated/social/colibri/beta/emoji/getLibrary.defs.d.ts.map +1 -0
- package/dist/generated/social/colibri/beta/emoji/getLibrary.defs.js +15 -0
- package/dist/generated/social/colibri/beta/emoji/getLibrary.defs.js.map +1 -0
- package/dist/generated/social/colibri/beta/emoji/getLibrary.js +7 -0
- package/dist/generated/social/colibri/beta/emoji/getLibrary.js.map +1 -0
- package/dist/generated/social/colibri/beta/emoji/putFollow.d.ts +4 -0
- package/dist/generated/social/colibri/beta/emoji/putFollow.d.ts.map +1 -0
- package/dist/generated/social/colibri/beta/emoji/putFollow.defs.d.ts +44 -0
- package/dist/generated/social/colibri/beta/emoji/putFollow.defs.d.ts.map +1 -0
- package/dist/generated/social/colibri/beta/emoji/putFollow.defs.js +16 -0
- package/dist/generated/social/colibri/beta/emoji/putFollow.defs.js.map +1 -0
- package/dist/generated/social/colibri/beta/emoji/putFollow.js +7 -0
- package/dist/generated/social/colibri/beta/emoji/putFollow.js.map +1 -0
- package/dist/generated/social/colibri/beta/emoji/rename.d.ts +4 -0
- package/dist/generated/social/colibri/beta/emoji/rename.d.ts.map +1 -0
- package/dist/generated/social/colibri/beta/emoji/rename.defs.d.ts +46 -0
- package/dist/generated/social/colibri/beta/emoji/rename.defs.d.ts.map +1 -0
- package/dist/generated/social/colibri/beta/emoji/rename.defs.js +16 -0
- package/dist/generated/social/colibri/beta/emoji/rename.defs.js.map +1 -0
- package/dist/generated/social/colibri/beta/emoji/rename.js +7 -0
- package/dist/generated/social/colibri/beta/emoji/rename.js.map +1 -0
- package/dist/generated/social/colibri/beta/emoji/updatePack.d.ts +4 -0
- package/dist/generated/social/colibri/beta/emoji/updatePack.d.ts.map +1 -0
- package/dist/generated/social/colibri/beta/emoji/updatePack.defs.d.ts +60 -0
- package/dist/generated/social/colibri/beta/emoji/updatePack.defs.d.ts.map +1 -0
- package/dist/generated/social/colibri/beta/emoji/updatePack.defs.js +16 -0
- package/dist/generated/social/colibri/beta/emoji/updatePack.defs.js.map +1 -0
- package/dist/generated/social/colibri/beta/emoji/updatePack.js +7 -0
- package/dist/generated/social/colibri/beta/emoji/updatePack.js.map +1 -0
- package/dist/generated/social/colibri/beta/emoji/upload.d.ts +4 -0
- package/dist/generated/social/colibri/beta/emoji/upload.d.ts.map +1 -0
- package/dist/generated/social/colibri/beta/emoji/upload.defs.d.ts +54 -0
- package/dist/generated/social/colibri/beta/emoji/upload.defs.d.ts.map +1 -0
- package/dist/generated/social/colibri/beta/emoji/upload.defs.js +16 -0
- package/dist/generated/social/colibri/beta/emoji/upload.defs.js.map +1 -0
- package/dist/generated/social/colibri/beta/emoji/upload.js +7 -0
- package/dist/generated/social/colibri/beta/emoji/upload.js.map +1 -0
- package/dist/generated/social/colibri/beta/emoji.d.ts +12 -0
- package/dist/generated/social/colibri/beta/emoji.d.ts.map +1 -0
- package/dist/generated/social/colibri/beta/emoji.js +15 -0
- package/dist/generated/social/colibri/beta/emoji.js.map +1 -0
- package/dist/generated/social/colibri/beta/permissionAccount.defs.d.ts.map +1 -1
- package/dist/generated/social/colibri/beta/permissionAccount.defs.js +1 -1
- package/dist/generated/social/colibri/beta/permissionAccount.defs.js.map +1 -1
- package/dist/generated/social/colibri/beta/permissionCommunity.defs.d.ts.map +1 -1
- package/dist/generated/social/colibri/beta/permissionCommunity.defs.js +1 -1
- package/dist/generated/social/colibri/beta/permissionCommunity.defs.js.map +1 -1
- package/dist/generated/social/colibri/beta/server/describeServer.defs.d.ts +2 -2
- package/dist/generated/social/colibri/beta/server/describeServer.defs.d.ts.map +1 -1
- package/dist/generated/social/colibri/beta/server/describeServer.defs.js.map +1 -1
- package/dist/generated/social/colibri/beta/sync/defs.defs.d.ts +29 -0
- package/dist/generated/social/colibri/beta/sync/defs.defs.d.ts.map +1 -1
- package/dist/generated/social/colibri/beta/sync/defs.defs.js +7 -0
- package/dist/generated/social/colibri/beta/sync/defs.defs.js.map +1 -1
- package/dist/generated/social/colibri/beta.d.ts +1 -0
- package/dist/generated/social/colibri/beta.d.ts.map +1 -1
- package/dist/generated/social/colibri/beta.js +1 -0
- package/dist/generated/social/colibri/beta.js.map +1 -1
- package/dist/nsids.d.ts +1 -0
- package/dist/nsids.d.ts.map +1 -1
- package/dist/nsids.js +1 -0
- package/dist/nsids.js.map +1 -1
- package/lexicons/social/colibri/beta/channel/defs.json +9 -0
- package/lexicons/social/colibri/beta/emoji/createPack.json +98 -0
- package/lexicons/social/colibri/beta/emoji/defs.json +269 -0
- package/lexicons/social/colibri/beta/emoji/delete.json +66 -0
- package/lexicons/social/colibri/beta/emoji/deletePack.json +66 -0
- package/lexicons/social/colibri/beta/emoji/follow.json +27 -0
- package/lexicons/social/colibri/beta/emoji/getCatalog.json +41 -0
- package/lexicons/social/colibri/beta/emoji/getLibrary.json +30 -0
- package/lexicons/social/colibri/beta/emoji/putFollow.json +73 -0
- package/lexicons/social/colibri/beta/emoji/rename.json +87 -0
- package/lexicons/social/colibri/beta/emoji/updatePack.json +102 -0
- package/lexicons/social/colibri/beta/emoji/upload.json +101 -0
- package/lexicons/social/colibri/beta/permissionAccount.json +5 -2
- package/lexicons/social/colibri/beta/permissionCommunity.json +7 -0
- package/lexicons/social/colibri/beta/server/describeServer.json +1 -1
- package/lexicons/social/colibri/beta/sync/defs.json +29 -0
- package/package.json +1 -1
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"lexicon": 1,
|
|
3
|
+
"id": "social.colibri.beta.emoji.putFollow",
|
|
4
|
+
"defs": {
|
|
5
|
+
"main": {
|
|
6
|
+
"type": "procedure",
|
|
7
|
+
"description": "Pushes one social.colibri.beta.emoji.follow record to the AppView, so it takes effect immediately instead of waiting for a sync notification. The client writes or deletes the record in its own preferences space first, then calls this. The AppView starts tracking the subject's owner and answers with the followed item as the picker shows it.",
|
|
8
|
+
"input": {
|
|
9
|
+
"encoding": "application/json",
|
|
10
|
+
"schema": {
|
|
11
|
+
"type": "object",
|
|
12
|
+
"required": ["rkey"],
|
|
13
|
+
"properties": {
|
|
14
|
+
"rkey": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"format": "record-key",
|
|
17
|
+
"description": "The follow record's key."
|
|
18
|
+
},
|
|
19
|
+
"subject": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"format": "at-uri",
|
|
22
|
+
"description": "The followed pack or emoji. Absent means the record was deleted."
|
|
23
|
+
},
|
|
24
|
+
"createdAt": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"format": "datetime",
|
|
27
|
+
"description": "The record's createdAt. Defaults to the time of the call when subject is present."
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"output": {
|
|
33
|
+
"encoding": "application/json",
|
|
34
|
+
"schema": {
|
|
35
|
+
"type": "object",
|
|
36
|
+
"properties": {
|
|
37
|
+
"follow": {
|
|
38
|
+
"type": "ref",
|
|
39
|
+
"ref": "social.colibri.beta.emoji.defs#followView",
|
|
40
|
+
"description": "The followed item. Absent after an unfollow."
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"errors": [
|
|
46
|
+
{
|
|
47
|
+
"name": "AuthRequired",
|
|
48
|
+
"description": "The request has no valid service auth."
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "EmojiNotFound",
|
|
52
|
+
"description": "The subject is an emoji that does not exist."
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "PackNotFound",
|
|
56
|
+
"description": "The subject is a pack that does not exist."
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "UnsupportedProvider",
|
|
60
|
+
"description": "The subject's collection belongs to no supported emoji provider."
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "OwnEmoji",
|
|
64
|
+
"description": "The subject is in the requesting user's own repo."
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "UpstreamFailure",
|
|
68
|
+
"description": "The subject owner's repo could not be read."
|
|
69
|
+
}
|
|
70
|
+
]
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"main": {
|
|
6
6
|
"type": "permission-set",
|
|
7
7
|
"title": "Your Colibri account",
|
|
8
|
-
"detail": "Read and change your Colibri profile, settings, mutes, notification levels and
|
|
8
|
+
"detail": "Read and change your Colibri profile, settings, mutes, notification levels, read state and the emoji you follow.",
|
|
9
9
|
"permissions": [
|
|
10
10
|
{
|
|
11
11
|
"type": "permission",
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
"social.colibri.beta.actor.mute",
|
|
20
20
|
"social.colibri.beta.actor.settings",
|
|
21
21
|
"social.colibri.beta.actor.spaceNotification",
|
|
22
|
-
"social.colibri.beta.channel.read"
|
|
22
|
+
"social.colibri.beta.channel.read",
|
|
23
|
+
"social.colibri.beta.emoji.follow"
|
|
23
24
|
],
|
|
24
25
|
"action": ["read", "create", "update", "delete"],
|
|
25
26
|
"manage": ["create", "update"]
|
|
@@ -45,6 +46,8 @@
|
|
|
45
46
|
"social.colibri.beta.actor.setStatus",
|
|
46
47
|
"social.colibri.beta.actor.getDeletionStatus",
|
|
47
48
|
"social.colibri.beta.actor.deleteAccount",
|
|
49
|
+
"social.colibri.beta.emoji.getLibrary",
|
|
50
|
+
"social.colibri.beta.emoji.putFollow",
|
|
48
51
|
"social.colibri.beta.server.describeServer",
|
|
49
52
|
"social.colibri.beta.blob.get"
|
|
50
53
|
]
|
|
@@ -105,6 +105,13 @@
|
|
|
105
105
|
"social.colibri.beta.role.update",
|
|
106
106
|
"social.colibri.beta.role.delete",
|
|
107
107
|
"social.colibri.beta.role.putBadgeImage",
|
|
108
|
+
"social.colibri.beta.emoji.getCatalog",
|
|
109
|
+
"social.colibri.beta.emoji.upload",
|
|
110
|
+
"social.colibri.beta.emoji.rename",
|
|
111
|
+
"social.colibri.beta.emoji.delete",
|
|
112
|
+
"social.colibri.beta.emoji.createPack",
|
|
113
|
+
"social.colibri.beta.emoji.updatePack",
|
|
114
|
+
"social.colibri.beta.emoji.deletePack",
|
|
108
115
|
"social.colibri.beta.voice.moderate",
|
|
109
116
|
"social.colibri.beta.thread.delete",
|
|
110
117
|
"social.colibri.beta.thread.repoint",
|
|
@@ -465,6 +465,35 @@
|
|
|
465
465
|
}
|
|
466
466
|
}
|
|
467
467
|
},
|
|
468
|
+
"emojiEvent": {
|
|
469
|
+
"type": "object",
|
|
470
|
+
"description": "A community's custom emoji or packs changed. Sent to the community's subscribers. Carries the whole catalog so clients replace it in one step.",
|
|
471
|
+
"required": ["owner", "catalog"],
|
|
472
|
+
"properties": {
|
|
473
|
+
"owner": {
|
|
474
|
+
"type": "string",
|
|
475
|
+
"format": "did",
|
|
476
|
+
"description": "The community whose catalog changed."
|
|
477
|
+
},
|
|
478
|
+
"catalog": {
|
|
479
|
+
"type": "ref",
|
|
480
|
+
"ref": "social.colibri.beta.emoji.defs#catalogView",
|
|
481
|
+
"description": "The catalog after the change."
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
},
|
|
485
|
+
"emojiLibraryEvent": {
|
|
486
|
+
"type": "object",
|
|
487
|
+
"description": "The user's emoji library changed. Sent to a user's own connections when their own emoji change, a follow is added or removed, or the owner of something they follow changes their emoji. Carries the whole library so clients replace it in one step.",
|
|
488
|
+
"required": ["library"],
|
|
489
|
+
"properties": {
|
|
490
|
+
"library": {
|
|
491
|
+
"type": "ref",
|
|
492
|
+
"ref": "social.colibri.beta.emoji.defs#libraryView",
|
|
493
|
+
"description": "The user's whole library after the change."
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
},
|
|
468
497
|
"labelEvent": {
|
|
469
498
|
"type": "object",
|
|
470
499
|
"description": "A label was applied or retracted on a record in a subscribed space.",
|