@colibri-social/lexicons 2.9.1 → 2.11.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/actor/defs.defs.d.ts +2 -2
  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 +41 -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 +5 -1
  9. package/dist/generated/social/colibri/beta/channel/defs.defs.js.map +1 -1
  10. package/dist/generated/social/colibri/beta/label.defs.d.ts +2 -2
  11. package/dist/generated/social/colibri/beta/message.defs.d.ts +42 -0
  12. package/dist/generated/social/colibri/beta/message.defs.d.ts.map +1 -1
  13. package/dist/generated/social/colibri/beta/message.defs.js +4 -1
  14. package/dist/generated/social/colibri/beta/message.defs.js.map +1 -1
  15. package/dist/generated/social/colibri/beta/thread/moveMessages.defs.d.ts +1 -1
  16. package/dist/generated/social/colibri/beta/thread/moveMessages.defs.d.ts.map +1 -1
  17. package/dist/generated/social/colibri/beta/thread/moveMessages.defs.js +1 -1
  18. package/dist/generated/social/colibri/beta/thread/moveMessages.defs.js.map +1 -1
  19. package/lexicons/social/colibri/beta/actor/defs.json +7 -4
  20. package/lexicons/social/colibri/beta/channel/defs.json +53 -0
  21. package/lexicons/social/colibri/beta/label.json +2 -2
  22. package/lexicons/social/colibri/beta/message.json +45 -0
  23. package/lexicons/social/colibri/beta/thread/moveMessages.json +2 -2
  24. package/package.json +1 -1
@@ -46,6 +46,11 @@
46
46
  },
47
47
  "description": "Files attached to this message."
48
48
  },
49
+ "forward": {
50
+ "type": "ref",
51
+ "ref": "#forward",
52
+ "description": "Content copied here from another message. Present only on a forwarded message."
53
+ },
49
54
  "suppressedEmbeds": {
50
55
  "type": "array",
51
56
  "items": {
@@ -57,6 +62,46 @@
57
62
  }
58
63
  }
59
64
  },
65
+ "forward": {
66
+ "type": "object",
67
+ "description": "Another message's content, copied and frozen when the forward was made. The copy does not follow later edits, deletions or labels on the message it came from. Never itself nested: forwarding a forwarded message carries this content over and repoints `source` at the message it was forwarded from.",
68
+ "required": ["source", "createdAt", "text"],
69
+ "properties": {
70
+ "source": {
71
+ "type": "ref",
72
+ "ref": "social.colibri.beta.defs#spaceRecordRef",
73
+ "description": "The message this content was copied from."
74
+ },
75
+ "createdAt": {
76
+ "type": "string",
77
+ "format": "datetime",
78
+ "description": "When the message this content came from was sent."
79
+ },
80
+ "text": {
81
+ "type": "string",
82
+ "maxLength": 2048,
83
+ "description": "The copied message body. Empty when the message that was forwarded carried only attachments."
84
+ },
85
+ "facets": {
86
+ "type": "array",
87
+ "items": {
88
+ "type": "ref",
89
+ "ref": "social.colibri.beta.richtext.facet",
90
+ "description": "An annotation."
91
+ },
92
+ "description": "The copied annotations. A mention here does not notify anyone, because the AppView reads only a message's own facets."
93
+ },
94
+ "attachments": {
95
+ "type": "array",
96
+ "items": {
97
+ "type": "ref",
98
+ "ref": "#attachment",
99
+ "description": "A copied file."
100
+ },
101
+ "description": "The copied files, re-uploaded into the forwarding author's own repo so the forward stands on its own."
102
+ }
103
+ }
104
+ },
60
105
  "attachment": {
61
106
  "type": "object",
62
107
  "description": "A file attached to a message.",
@@ -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",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colibri-social/lexicons",
3
- "version": "2.9.1",
3
+ "version": "2.11.0",
4
4
  "description": "Colibri lexicon schemas and the types generated from them",
5
5
  "type": "module",
6
6
  "exports": {