@colibri-social/lexicons 2.19.0 → 2.21.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 (73) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/generated/social/colibri/beta/channel/defs.defs.d.ts +4 -0
  3. package/dist/generated/social/colibri/beta/channel/defs.defs.d.ts.map +1 -1
  4. package/dist/generated/social/colibri/beta/channel/defs.defs.js +1 -1
  5. package/dist/generated/social/colibri/beta/channel/defs.defs.js.map +1 -1
  6. package/dist/generated/social/colibri/beta/emoji/defs.defs.d.ts +86 -6
  7. package/dist/generated/social/colibri/beta/emoji/defs.defs.d.ts.map +1 -1
  8. package/dist/generated/social/colibri/beta/emoji/defs.defs.js +11 -2
  9. package/dist/generated/social/colibri/beta/emoji/defs.defs.js.map +1 -1
  10. package/dist/generated/social/colibri/beta/emoji/follow.d.ts +4 -0
  11. package/dist/generated/social/colibri/beta/emoji/follow.d.ts.map +1 -0
  12. package/dist/generated/social/colibri/beta/emoji/follow.defs.d.ts +80 -0
  13. package/dist/generated/social/colibri/beta/emoji/follow.defs.d.ts.map +1 -0
  14. package/dist/generated/social/colibri/beta/emoji/follow.defs.js +23 -0
  15. package/dist/generated/social/colibri/beta/emoji/follow.defs.js.map +1 -0
  16. package/dist/generated/social/colibri/beta/emoji/follow.js +7 -0
  17. package/dist/generated/social/colibri/beta/emoji/follow.js.map +1 -0
  18. package/dist/generated/social/colibri/beta/emoji/getLibrary.d.ts +4 -0
  19. package/dist/generated/social/colibri/beta/emoji/getLibrary.d.ts.map +1 -0
  20. package/dist/generated/social/colibri/beta/emoji/getLibrary.defs.d.ts +21 -0
  21. package/dist/generated/social/colibri/beta/emoji/getLibrary.defs.d.ts.map +1 -0
  22. package/dist/generated/social/colibri/beta/emoji/getLibrary.defs.js +15 -0
  23. package/dist/generated/social/colibri/beta/emoji/getLibrary.defs.js.map +1 -0
  24. package/dist/generated/social/colibri/beta/emoji/getLibrary.js +7 -0
  25. package/dist/generated/social/colibri/beta/emoji/getLibrary.js.map +1 -0
  26. package/dist/generated/social/colibri/beta/emoji/putFollow.d.ts +4 -0
  27. package/dist/generated/social/colibri/beta/emoji/putFollow.d.ts.map +1 -0
  28. package/dist/generated/social/colibri/beta/emoji/putFollow.defs.d.ts +44 -0
  29. package/dist/generated/social/colibri/beta/emoji/putFollow.defs.d.ts.map +1 -0
  30. package/dist/generated/social/colibri/beta/emoji/putFollow.defs.js +16 -0
  31. package/dist/generated/social/colibri/beta/emoji/putFollow.defs.js.map +1 -0
  32. package/dist/generated/social/colibri/beta/emoji/putFollow.js +7 -0
  33. package/dist/generated/social/colibri/beta/emoji/putFollow.js.map +1 -0
  34. package/dist/generated/social/colibri/beta/emoji.d.ts +3 -0
  35. package/dist/generated/social/colibri/beta/emoji.d.ts.map +1 -1
  36. package/dist/generated/social/colibri/beta/emoji.js +3 -0
  37. package/dist/generated/social/colibri/beta/emoji.js.map +1 -1
  38. package/dist/generated/social/colibri/beta/permissionAccount.defs.d.ts.map +1 -1
  39. package/dist/generated/social/colibri/beta/permissionAccount.defs.js +1 -1
  40. package/dist/generated/social/colibri/beta/permissionAccount.defs.js.map +1 -1
  41. package/dist/generated/social/colibri/beta/permissionMessaging.defs.d.ts.map +1 -1
  42. package/dist/generated/social/colibri/beta/permissionMessaging.defs.js +1 -1
  43. package/dist/generated/social/colibri/beta/permissionMessaging.defs.js.map +1 -1
  44. package/dist/generated/social/colibri/beta/sync/defs.defs.d.ts +15 -3
  45. package/dist/generated/social/colibri/beta/sync/defs.defs.d.ts.map +1 -1
  46. package/dist/generated/social/colibri/beta/sync/defs.defs.js +4 -1
  47. package/dist/generated/social/colibri/beta/sync/defs.defs.js.map +1 -1
  48. package/dist/generated/social/colibri/beta/thread/listMembers.d.ts +4 -0
  49. package/dist/generated/social/colibri/beta/thread/listMembers.d.ts.map +1 -0
  50. package/dist/generated/social/colibri/beta/thread/listMembers.defs.d.ts +32 -0
  51. package/dist/generated/social/colibri/beta/thread/listMembers.defs.d.ts.map +1 -0
  52. package/dist/generated/social/colibri/beta/thread/listMembers.defs.js +14 -0
  53. package/dist/generated/social/colibri/beta/thread/listMembers.defs.js.map +1 -0
  54. package/dist/generated/social/colibri/beta/thread/listMembers.js +7 -0
  55. package/dist/generated/social/colibri/beta/thread/listMembers.js.map +1 -0
  56. package/dist/generated/social/colibri/beta/thread.d.ts +1 -0
  57. package/dist/generated/social/colibri/beta/thread.d.ts.map +1 -1
  58. package/dist/generated/social/colibri/beta/thread.js +1 -0
  59. package/dist/generated/social/colibri/beta/thread.js.map +1 -1
  60. package/dist/nsids.d.ts +1 -0
  61. package/dist/nsids.d.ts.map +1 -1
  62. package/dist/nsids.js +1 -0
  63. package/dist/nsids.js.map +1 -1
  64. package/lexicons/social/colibri/beta/channel/defs.json +9 -0
  65. package/lexicons/social/colibri/beta/emoji/defs.json +102 -6
  66. package/lexicons/social/colibri/beta/emoji/follow.json +27 -0
  67. package/lexicons/social/colibri/beta/emoji/getLibrary.json +30 -0
  68. package/lexicons/social/colibri/beta/emoji/putFollow.json +73 -0
  69. package/lexicons/social/colibri/beta/permissionAccount.json +5 -2
  70. package/lexicons/social/colibri/beta/permissionMessaging.json +1 -0
  71. package/lexicons/social/colibri/beta/sync/defs.json +14 -2
  72. package/lexicons/social/colibri/beta/thread/listMembers.json +53 -0
  73. package/package.json +1 -1
@@ -0,0 +1,30 @@
1
+ {
2
+ "lexicon": 1,
3
+ "id": "social.colibri.beta.emoji.getLibrary",
4
+ "defs": {
5
+ "main": {
6
+ "type": "query",
7
+ "description": "Gets the requesting user's emoji library: the emoji and packs they uploaded, plus everything they follow, hydrated with images.",
8
+ "output": {
9
+ "encoding": "application/json",
10
+ "schema": {
11
+ "type": "object",
12
+ "required": ["library"],
13
+ "properties": {
14
+ "library": {
15
+ "type": "ref",
16
+ "ref": "social.colibri.beta.emoji.defs#libraryView",
17
+ "description": "The user's library."
18
+ }
19
+ }
20
+ }
21
+ },
22
+ "errors": [
23
+ {
24
+ "name": "AuthRequired",
25
+ "description": "The request has no valid service auth."
26
+ }
27
+ ]
28
+ }
29
+ }
30
+ }
@@ -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
+ }
@@ -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 read state.",
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
  ]
@@ -83,6 +83,7 @@
83
83
  "social.colibri.beta.thread.create",
84
84
  "social.colibri.beta.thread.update",
85
85
  "social.colibri.beta.thread.getThread",
86
+ "social.colibri.beta.thread.listMembers",
86
87
  "social.colibri.beta.thread.listThreads"
87
88
  ]
88
89
  },
@@ -467,13 +467,13 @@
467
467
  },
468
468
  "emojiEvent": {
469
469
  "type": "object",
470
- "description": "A repo's custom emoji or packs changed. Sent to a community's subscribers for its own emoji, and to a user's own connections for theirs. Carries the whole catalog so clients replace it in one step.",
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
471
  "required": ["owner", "catalog"],
472
472
  "properties": {
473
473
  "owner": {
474
474
  "type": "string",
475
475
  "format": "did",
476
- "description": "The community or user whose catalog changed."
476
+ "description": "The community whose catalog changed."
477
477
  },
478
478
  "catalog": {
479
479
  "type": "ref",
@@ -482,6 +482,18 @@
482
482
  }
483
483
  }
484
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
+ },
485
497
  "labelEvent": {
486
498
  "type": "object",
487
499
  "description": "A label was applied or retracted on a record in a subscribed space.",
@@ -0,0 +1,53 @@
1
+ {
2
+ "lexicon": 1,
3
+ "id": "social.colibri.beta.thread.listMembers",
4
+ "defs": {
5
+ "main": {
6
+ "type": "query",
7
+ "description": "Lists who belongs to a thread: the author of the message it was opened from, everyone who has posted in it, everyone mentioned in it directly or through a role, and everyone who follows it. Only current members who may read the thread are listed.",
8
+ "parameters": {
9
+ "type": "params",
10
+ "required": ["thread"],
11
+ "properties": {
12
+ "thread": {
13
+ "type": "string",
14
+ "format": "space-ref",
15
+ "description": "The thread to list members of."
16
+ }
17
+ }
18
+ },
19
+ "output": {
20
+ "encoding": "application/json",
21
+ "schema": {
22
+ "type": "object",
23
+ "required": ["members"],
24
+ "properties": {
25
+ "members": {
26
+ "type": "array",
27
+ "items": {
28
+ "type": "string",
29
+ "format": "did",
30
+ "description": "A member of the thread."
31
+ },
32
+ "description": "The thread's members: the anchor author first, then posters by most recent activity, then everyone else."
33
+ }
34
+ }
35
+ }
36
+ },
37
+ "errors": [
38
+ {
39
+ "name": "AuthRequired",
40
+ "description": "The request has no valid service auth."
41
+ },
42
+ {
43
+ "name": "Forbidden",
44
+ "description": "The requesting user may not read this thread."
45
+ },
46
+ {
47
+ "name": "ThreadNotFound",
48
+ "description": "No thread matches the given space reference."
49
+ }
50
+ ]
51
+ }
52
+ }
53
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colibri-social/lexicons",
3
- "version": "2.19.0",
3
+ "version": "2.21.0",
4
4
  "description": "Colibri lexicon schemas and the types generated from them",
5
5
  "type": "module",
6
6
  "exports": {