@colibri-social/lexicons 2.9.0 → 2.10.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 (24) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/generated/social/colibri/beta/channel/defs.defs.d.ts +41 -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 +5 -1
  5. package/dist/generated/social/colibri/beta/channel/defs.defs.js.map +1 -1
  6. package/dist/generated/social/colibri/beta/label.defs.d.ts +2 -2
  7. package/dist/generated/social/colibri/beta/message.defs.d.ts +42 -0
  8. package/dist/generated/social/colibri/beta/message.defs.d.ts.map +1 -1
  9. package/dist/generated/social/colibri/beta/message.defs.js +4 -1
  10. package/dist/generated/social/colibri/beta/message.defs.js.map +1 -1
  11. package/dist/generated/social/colibri/beta/thread/moveMessages.defs.d.ts +1 -1
  12. package/dist/generated/social/colibri/beta/thread/moveMessages.defs.d.ts.map +1 -1
  13. package/dist/generated/social/colibri/beta/thread/moveMessages.defs.js +1 -1
  14. package/dist/generated/social/colibri/beta/thread/moveMessages.defs.js.map +1 -1
  15. package/dist/generated/social/colibri/beta/thread/repoint.defs.d.ts +4 -1
  16. package/dist/generated/social/colibri/beta/thread/repoint.defs.d.ts.map +1 -1
  17. package/dist/generated/social/colibri/beta/thread/repoint.defs.js +3 -2
  18. package/dist/generated/social/colibri/beta/thread/repoint.defs.js.map +1 -1
  19. package/lexicons/social/colibri/beta/channel/defs.json +53 -0
  20. package/lexicons/social/colibri/beta/label.json +2 -2
  21. package/lexicons/social/colibri/beta/message.json +45 -0
  22. package/lexicons/social/colibri/beta/thread/moveMessages.json +2 -2
  23. package/lexicons/social/colibri/beta/thread/repoint.json +8 -3
  24. package/package.json +1 -1
@@ -4,7 +4,7 @@
4
4
  "defs": {
5
5
  "main": {
6
6
  "type": "procedure",
7
- "description": "Moves messages written by other people into another thread or channel. A message lives in its author's own repo and cannot be rewritten by a moderator, so the move is a `moved` label written into the source space for each message. Every label in one call shares a batch key, and the destination serves the moved messages ordered by that batch key and then by the messages' own record keys, which is what keeps a selection in the order it was in. The AppView withholds a moved message from the space it came from. A user moving only their own messages rewrites the records instead and does not call this method.",
7
+ "description": "Moves messages into another thread or channel. A message lives in its author's own repo and cannot be rewritten by a moderator, so the move is a `moved` label written into the source space for each message. The destination serves each moved message at its own record key, so a selection keeps the order it was written in and reads among the destination's own messages by send time. The AppView withholds a moved message from the space it came from.",
8
8
  "input": {
9
9
  "encoding": "application/json",
10
10
  "schema": {
@@ -49,7 +49,7 @@
49
49
  "batch": {
50
50
  "type": "string",
51
51
  "format": "tid",
52
- "description": "The batch key shared by every label this call wrote, which is what orders the moved messages in the destination."
52
+ "description": "The batch key shared by every label this call wrote, which groups the move for auditing."
53
53
  },
54
54
  "count": {
55
55
  "type": "integer",
@@ -4,7 +4,7 @@
4
4
  "defs": {
5
5
  "main": {
6
6
  "type": "procedure",
7
- "description": "Moves a thread to another channel by rewriting the channel its record links to. Who may read the thread follows the new channel. The anchor is left as it was, so the thread's marker leaves the old channel's river while the thread itself still quotes the message it came from.",
7
+ "description": "Moves a thread to another channel by rewriting the channel its record links to, and optionally repoints it at another message. Who may read the thread follows the new channel. Left without an anchor the thread keeps the one it has, so its marker sits wherever that message now lives.",
8
8
  "input": {
9
9
  "encoding": "application/json",
10
10
  "schema": {
@@ -20,6 +20,11 @@
20
20
  "type": "string",
21
21
  "format": "space-ref",
22
22
  "description": "The text channel to move it to."
23
+ },
24
+ "anchor": {
25
+ "type": "ref",
26
+ "ref": "social.colibri.beta.defs#spaceRecordRef",
27
+ "description": "The message the thread should hang under, for a thread whose anchor was moved. It has to sit in the destination channel, and may be a message the AppView has not indexed yet. Absent keeps the anchor as it is."
23
28
  }
24
29
  }
25
30
  }
@@ -45,7 +50,7 @@
45
50
  },
46
51
  {
47
52
  "name": "Forbidden",
48
- "description": "The requesting user lacks the thread.manage permission."
53
+ "description": "The requesting user lacks the thread.manage permission and did not write both the thread's current anchor and the message it is being repointed at."
49
54
  },
50
55
  {
51
56
  "name": "ThreadNotFound",
@@ -57,7 +62,7 @@
57
62
  },
58
63
  {
59
64
  "name": "InvalidRequest",
60
- "description": "The destination channel belongs to another community, is not a text channel, or is the channel the thread is already in."
65
+ "description": "The destination channel belongs to another community, is not a text channel, or is the channel the thread is already in while no new anchor was given."
61
66
  },
62
67
  {
63
68
  "name": "CredentialsUnavailable",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colibri-social/lexicons",
3
- "version": "2.9.0",
3
+ "version": "2.10.0",
4
4
  "description": "Colibri lexicon schemas and the types generated from them",
5
5
  "type": "module",
6
6
  "exports": {