@colibri-social/lexicons 2.9.1 → 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.
- package/dist/.tsbuildinfo +1 -1
- package/dist/generated/social/colibri/beta/channel/defs.defs.d.ts +41 -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 +5 -1
- package/dist/generated/social/colibri/beta/channel/defs.defs.js.map +1 -1
- package/dist/generated/social/colibri/beta/label.defs.d.ts +2 -2
- package/dist/generated/social/colibri/beta/message.defs.d.ts +42 -0
- package/dist/generated/social/colibri/beta/message.defs.d.ts.map +1 -1
- package/dist/generated/social/colibri/beta/message.defs.js +4 -1
- package/dist/generated/social/colibri/beta/message.defs.js.map +1 -1
- package/dist/generated/social/colibri/beta/thread/moveMessages.defs.d.ts +1 -1
- package/dist/generated/social/colibri/beta/thread/moveMessages.defs.d.ts.map +1 -1
- package/dist/generated/social/colibri/beta/thread/moveMessages.defs.js +1 -1
- package/dist/generated/social/colibri/beta/thread/moveMessages.defs.js.map +1 -1
- package/lexicons/social/colibri/beta/channel/defs.json +53 -0
- package/lexicons/social/colibri/beta/label.json +2 -2
- package/lexicons/social/colibri/beta/message.json +45 -0
- package/lexicons/social/colibri/beta/thread/moveMessages.json +2 -2
- package/package.json +1 -1
|
@@ -3,6 +3,7 @@ import * as ActorDefs from "../actor/defs.defs.js";
|
|
|
3
3
|
import * as RichtextFacet from "../richtext/facet.defs.js";
|
|
4
4
|
import * as CommunityDefs from "../community/defs.defs.js";
|
|
5
5
|
import * as EmbedDefs from "../embed/defs.defs.js";
|
|
6
|
+
import * as BetaDefs from "../defs.defs.js";
|
|
6
7
|
declare const $nsid = "social.colibri.beta.channel.defs";
|
|
7
8
|
type $nsid = typeof $nsid;
|
|
8
9
|
export { $nsid };
|
|
@@ -57,6 +58,10 @@ type MessageView = {
|
|
|
57
58
|
* Labels from labelers this community honours. `src` says who applied each one. A `hidden` label is enforced by the AppView, which withholds the message rather than serving it, so a message that reaches you carries only labels you are meant to act on for display, such as `spoiler`.
|
|
58
59
|
*/
|
|
59
60
|
"labels": (CommunityDefs.LabelView)[];
|
|
61
|
+
/**
|
|
62
|
+
* Content this message was forwarded from, when it is a forward. Never itself nested.
|
|
63
|
+
*/
|
|
64
|
+
"forward"?: ForwardView;
|
|
60
65
|
/**
|
|
61
66
|
* URLs whose preview the author chose not to show.
|
|
62
67
|
*/
|
|
@@ -74,6 +79,42 @@ export type { MessageView };
|
|
|
74
79
|
/** A message as the AppView serves it, with its author, reactions and labels resolved. */
|
|
75
80
|
declare const messageView: l.TypedObjectSchema<"social.colibri.beta.channel.defs#messageView", l.Validator<MessageView, MessageView>>;
|
|
76
81
|
export { messageView };
|
|
82
|
+
/** The frozen copy a forwarded message carries, with its source resolved as far as this AppView can. Never itself nested, so a forward of a forward reports the message it was forwarded from rather than a chain. */
|
|
83
|
+
type ForwardView = {
|
|
84
|
+
$type?: "social.colibri.beta.channel.defs#forwardView";
|
|
85
|
+
/**
|
|
86
|
+
* The message this content was copied from.
|
|
87
|
+
*/
|
|
88
|
+
"source": BetaDefs.SpaceRecordRef;
|
|
89
|
+
/**
|
|
90
|
+
* Name of the channel or thread the content came from. Absent when this AppView does not know that space.
|
|
91
|
+
*/
|
|
92
|
+
"sourceName"?: string;
|
|
93
|
+
/**
|
|
94
|
+
* The community owning the source space, which is that space's authority. Absent when the source reference cannot be parsed.
|
|
95
|
+
*/
|
|
96
|
+
"sourceCommunity"?: l.DidString;
|
|
97
|
+
/**
|
|
98
|
+
* When the message this content came from was sent.
|
|
99
|
+
*/
|
|
100
|
+
"createdAt": l.DatetimeString;
|
|
101
|
+
/**
|
|
102
|
+
* The copied message body.
|
|
103
|
+
*/
|
|
104
|
+
"text": string;
|
|
105
|
+
/**
|
|
106
|
+
* The copied annotations.
|
|
107
|
+
*/
|
|
108
|
+
"facets"?: (RichtextFacet.Main)[];
|
|
109
|
+
/**
|
|
110
|
+
* The copied files, served from the forwarding author's own repo.
|
|
111
|
+
*/
|
|
112
|
+
"attachments": (AttachmentView)[];
|
|
113
|
+
};
|
|
114
|
+
export type { ForwardView };
|
|
115
|
+
/** The frozen copy a forwarded message carries, with its source resolved as far as this AppView can. Never itself nested, so a forward of a forward reports the message it was forwarded from rather than a chain. */
|
|
116
|
+
declare const forwardView: l.TypedObjectSchema<"social.colibri.beta.channel.defs#forwardView", l.Validator<ForwardView, ForwardView>>;
|
|
117
|
+
export { forwardView };
|
|
77
118
|
/** Stands in for a message the AppView will not serve: deleted by its author, or hidden by a moderator. The two cases are deliberately indistinguishable, so hiding does not leak what was hidden. Render it as an unavailable message. */
|
|
78
119
|
type DeletedMessageView = {
|
|
79
120
|
$type?: "social.colibri.beta.channel.defs#deletedMessageView";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defs.defs.d.ts","sourceRoot":"","sources":["../../../../../../src/generated/social/colibri/beta/channel/defs.defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AACjC,OAAO,KAAK,SAAS,MAAM,uBAAuB,CAAC;AACnD,OAAO,KAAK,aAAa,MAAM,2BAA2B,CAAC;AAC3D,OAAO,KAAK,aAAa,MAAM,2BAA2B,CAAC;AAC3D,OAAO,KAAK,SAAS,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"defs.defs.d.ts","sourceRoot":"","sources":["../../../../../../src/generated/social/colibri/beta/channel/defs.defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AACjC,OAAO,KAAK,SAAS,MAAM,uBAAuB,CAAC;AACnD,OAAO,KAAK,aAAa,MAAM,2BAA2B,CAAC;AAC3D,OAAO,KAAK,aAAa,MAAM,2BAA2B,CAAC;AAC3D,OAAO,KAAK,SAAS,MAAM,uBAAuB,CAAC;AACnD,OAAO,KAAK,QAAQ,MAAM,iBA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AE,YAAY,EAAE,CAAC;AAE7B,wDAAwD;AACxD,QAAA,MAAM,YAAY,+GAAoT,CAAC;AAEvU,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -6,11 +6,15 @@ import * as ActorDefs from "../actor/defs.defs.js";
|
|
|
6
6
|
import * as RichtextFacet from "../richtext/facet.defs.js";
|
|
7
7
|
import * as CommunityDefs from "../community/defs.defs.js";
|
|
8
8
|
import * as EmbedDefs from "../embed/defs.defs.js";
|
|
9
|
+
import * as BetaDefs from "../defs.defs.js";
|
|
9
10
|
const $nsid = "social.colibri.beta.channel.defs";
|
|
10
11
|
export { $nsid };
|
|
11
12
|
/** A message as the AppView serves it, with its author, reactions and labels resolved. */
|
|
12
|
-
const messageView = /*#__PURE__*/ l.typedObject($nsid, "messageView", /*#__PURE__*/ l.object({ "uri": /*#__PURE__*/ l.string({ "format": "at-uri" }), "rkey": /*#__PURE__*/ l.string({ "format": "record-key" }), "channel": /*#__PURE__*/ l.string({ "format": "space-ref" }), "author": /*#__PURE__*/ l.ref((() => ActorDefs.profileView)), "text": /*#__PURE__*/ l.string(), "facets": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.ref((() => RichtextFacet.main)))), "createdAt": /*#__PURE__*/ l.string({ "format": "datetime" }), "updatedAt": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({ "format": "datetime" })), "parent": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.typedUnion([/*#__PURE__*/ l.typedRef((() => messageView)), /*#__PURE__*/ l.typedRef((() => deletedMessageView))], false)), "attachments": /*#__PURE__*/ l.array(/*#__PURE__*/ l.ref((() => attachmentView))), "reactions": /*#__PURE__*/ l.array(/*#__PURE__*/ l.ref((() => reactionView))), "labels": /*#__PURE__*/ l.array(/*#__PURE__*/ l.ref((() => CommunityDefs.labelView))), "suppressedEmbeds": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({ "format": "uri" }))), "embeds": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.ref((() => EmbedDefs.linkEmbed)))), "legacy": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()) }));
|
|
13
|
+
const messageView = /*#__PURE__*/ l.typedObject($nsid, "messageView", /*#__PURE__*/ l.object({ "uri": /*#__PURE__*/ l.string({ "format": "at-uri" }), "rkey": /*#__PURE__*/ l.string({ "format": "record-key" }), "channel": /*#__PURE__*/ l.string({ "format": "space-ref" }), "author": /*#__PURE__*/ l.ref((() => ActorDefs.profileView)), "text": /*#__PURE__*/ l.string(), "facets": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.ref((() => RichtextFacet.main)))), "createdAt": /*#__PURE__*/ l.string({ "format": "datetime" }), "updatedAt": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({ "format": "datetime" })), "parent": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.typedUnion([/*#__PURE__*/ l.typedRef((() => messageView)), /*#__PURE__*/ l.typedRef((() => deletedMessageView))], false)), "attachments": /*#__PURE__*/ l.array(/*#__PURE__*/ l.ref((() => attachmentView))), "reactions": /*#__PURE__*/ l.array(/*#__PURE__*/ l.ref((() => reactionView))), "labels": /*#__PURE__*/ l.array(/*#__PURE__*/ l.ref((() => CommunityDefs.labelView))), "forward": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.ref((() => forwardView))), "suppressedEmbeds": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({ "format": "uri" }))), "embeds": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.ref((() => EmbedDefs.linkEmbed)))), "legacy": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()) }));
|
|
13
14
|
export { messageView };
|
|
15
|
+
/** The frozen copy a forwarded message carries, with its source resolved as far as this AppView can. Never itself nested, so a forward of a forward reports the message it was forwarded from rather than a chain. */
|
|
16
|
+
const forwardView = /*#__PURE__*/ l.typedObject($nsid, "forwardView", /*#__PURE__*/ l.object({ "source": /*#__PURE__*/ l.ref((() => BetaDefs.spaceRecordRef)), "sourceName": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()), "sourceCommunity": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({ "format": "did" })), "createdAt": /*#__PURE__*/ l.string({ "format": "datetime" }), "text": /*#__PURE__*/ l.string(), "facets": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.ref((() => RichtextFacet.main)))), "attachments": /*#__PURE__*/ l.array(/*#__PURE__*/ l.ref((() => attachmentView))) }));
|
|
17
|
+
export { forwardView };
|
|
14
18
|
/** Stands in for a message the AppView will not serve: deleted by its author, or hidden by a moderator. The two cases are deliberately indistinguishable, so hiding does not leak what was hidden. Render it as an unavailable message. */
|
|
15
19
|
const deletedMessageView = /*#__PURE__*/ l.typedObject($nsid, "deletedMessageView", /*#__PURE__*/ l.object({ "uri": /*#__PURE__*/ l.string({ "format": "at-uri" }), "rkey": /*#__PURE__*/ l.string({ "format": "record-key" }), "channel": /*#__PURE__*/ l.string({ "format": "space-ref" }) }));
|
|
16
20
|
export { deletedMessageView };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defs.defs.js","sourceRoot":"","sources":["../../../../../../src/generated/social/colibri/beta/channel/defs.defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AACjC,OAAO,KAAK,SAAS,MAAM,uBAAuB,CAAC;AACnD,OAAO,KAAK,aAAa,MAAM,2BAA2B,CAAC;AAC3D,OAAO,KAAK,aAAa,MAAM,2BAA2B,CAAC;AAC3D,OAAO,KAAK,SAAS,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"defs.defs.js","sourceRoot":"","sources":["../../../../../../src/generated/social/colibri/beta/channel/defs.defs.ts"],"names":[],"mappings":"AAAA;;GA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Main = {
|
|
|
10
10
|
*/
|
|
11
11
|
"subject": Subject;
|
|
12
12
|
/**
|
|
13
|
-
* The label value. `hidden` is enforced: the AppView withholds a hidden record instead of serving it. `moved` is enforced too: the AppView withholds the record from this space and serves it in the space named by `destination` instead,
|
|
13
|
+
* The label value. `hidden` is enforced: the AppView withholds a hidden record instead of serving it. `moved` is enforced too: the AppView withholds the record from this space and serves it in the space named by `destination` instead, at its own record key, so it reads in the order it was written. `spoiler` and `embeds-suppressed` are display hints the AppView passes through for the client to honour.
|
|
14
14
|
*/
|
|
15
15
|
"val": "hidden" | "spoiler" | "embeds-suppressed" | "moved" | l.UnknownString;
|
|
16
16
|
/**
|
|
@@ -22,7 +22,7 @@ type Main = {
|
|
|
22
22
|
*/
|
|
23
23
|
"destination"?: l.SpaceRefString;
|
|
24
24
|
/**
|
|
25
|
-
* Shared by every `moved` label written in one move,
|
|
25
|
+
* Shared by every `moved` label written in one move, which is what groups a move for auditing. It does not affect the order the records read in.
|
|
26
26
|
*/
|
|
27
27
|
"batch"?: l.TidString;
|
|
28
28
|
/**
|
|
@@ -31,6 +31,10 @@ type Main = {
|
|
|
31
31
|
* Files attached to this message.
|
|
32
32
|
*/
|
|
33
33
|
"attachments"?: (Attachment)[];
|
|
34
|
+
/**
|
|
35
|
+
* Content copied here from another message. Present only on a forwarded message.
|
|
36
|
+
*/
|
|
37
|
+
"forward"?: Forward;
|
|
34
38
|
/**
|
|
35
39
|
* URLs from this message's link facets whose preview the author chose not to show. Moderator suppression is a label instead.
|
|
36
40
|
*/
|
|
@@ -55,6 +59,7 @@ export declare const $build: {
|
|
|
55
59
|
updatedAt?: l.DatetimeString;
|
|
56
60
|
parent?: BetaDefs.RecordRef;
|
|
57
61
|
attachments?: (Attachment)[];
|
|
62
|
+
forward?: Forward;
|
|
58
63
|
suppressedEmbeds?: (l.UriString)[];
|
|
59
64
|
};
|
|
60
65
|
(input: Omit<Omit<Main, "$type">, "$type">): {
|
|
@@ -65,6 +70,7 @@ export declare const $build: {
|
|
|
65
70
|
updatedAt?: l.DatetimeString;
|
|
66
71
|
parent?: BetaDefs.RecordRef;
|
|
67
72
|
attachments?: (Attachment)[];
|
|
73
|
+
forward?: Forward;
|
|
68
74
|
suppressedEmbeds?: (l.UriString)[];
|
|
69
75
|
};
|
|
70
76
|
};
|
|
@@ -76,6 +82,7 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
76
82
|
updatedAt?: l.DatetimeString;
|
|
77
83
|
parent?: BetaDefs.RecordRef;
|
|
78
84
|
attachments?: (Attachment)[];
|
|
85
|
+
forward?: Forward;
|
|
79
86
|
suppressedEmbeds?: (l.UriString)[];
|
|
80
87
|
};
|
|
81
88
|
export declare const $check: (input: unknown, options?: l.ValidateOptions) => void;
|
|
@@ -87,6 +94,7 @@ export declare const $cast: <I>(input: I, options?: l.ValidateOptions) => I & {
|
|
|
87
94
|
updatedAt?: l.DatetimeString;
|
|
88
95
|
parent?: BetaDefs.RecordRef;
|
|
89
96
|
attachments?: (Attachment)[];
|
|
97
|
+
forward?: Forward;
|
|
90
98
|
suppressedEmbeds?: (l.UriString)[];
|
|
91
99
|
};
|
|
92
100
|
export declare const $ifMatches: <I>(input: I, options?: l.ValidateOptions) => (I & {
|
|
@@ -97,6 +105,7 @@ export declare const $ifMatches: <I>(input: I, options?: l.ValidateOptions) => (
|
|
|
97
105
|
updatedAt?: l.DatetimeString;
|
|
98
106
|
parent?: BetaDefs.RecordRef;
|
|
99
107
|
attachments?: (Attachment)[];
|
|
108
|
+
forward?: Forward;
|
|
100
109
|
suppressedEmbeds?: (l.UriString)[];
|
|
101
110
|
}) | undefined;
|
|
102
111
|
export declare const $matches: <I>(input: I, options?: l.ValidateOptions) => input is I & {
|
|
@@ -107,6 +116,7 @@ export declare const $matches: <I>(input: I, options?: l.ValidateOptions) => inp
|
|
|
107
116
|
updatedAt?: l.DatetimeString;
|
|
108
117
|
parent?: BetaDefs.RecordRef;
|
|
109
118
|
attachments?: (Attachment)[];
|
|
119
|
+
forward?: Forward;
|
|
110
120
|
suppressedEmbeds?: (l.UriString)[];
|
|
111
121
|
};
|
|
112
122
|
export declare const $parse: (input: unknown, options?: l.ParseOptions) => {
|
|
@@ -117,6 +127,7 @@ export declare const $parse: (input: unknown, options?: l.ParseOptions) => {
|
|
|
117
127
|
updatedAt?: l.DatetimeString;
|
|
118
128
|
parent?: BetaDefs.RecordRef;
|
|
119
129
|
attachments?: (Attachment)[];
|
|
130
|
+
forward?: Forward;
|
|
120
131
|
suppressedEmbeds?: (l.UriString)[];
|
|
121
132
|
};
|
|
122
133
|
export declare const $safeParse: (input: unknown, options?: l.ParseOptions) => l.ValidationResult<{
|
|
@@ -127,6 +138,7 @@ export declare const $safeParse: (input: unknown, options?: l.ParseOptions) => l
|
|
|
127
138
|
updatedAt?: l.DatetimeString;
|
|
128
139
|
parent?: BetaDefs.RecordRef;
|
|
129
140
|
attachments?: (Attachment)[];
|
|
141
|
+
forward?: Forward;
|
|
130
142
|
suppressedEmbeds?: (l.UriString)[];
|
|
131
143
|
}>;
|
|
132
144
|
export declare const $validate: <I>(input: I, options?: l.ValidateOptions) => I & {
|
|
@@ -137,6 +149,7 @@ export declare const $validate: <I>(input: I, options?: l.ValidateOptions) => I
|
|
|
137
149
|
updatedAt?: l.DatetimeString;
|
|
138
150
|
parent?: BetaDefs.RecordRef;
|
|
139
151
|
attachments?: (Attachment)[];
|
|
152
|
+
forward?: Forward;
|
|
140
153
|
suppressedEmbeds?: (l.UriString)[];
|
|
141
154
|
};
|
|
142
155
|
export declare const $safeValidate: <I>(input: I, options?: l.ValidateOptions) => l.ValidationResult<I & {
|
|
@@ -147,8 +160,37 @@ export declare const $safeValidate: <I>(input: I, options?: l.ValidateOptions) =
|
|
|
147
160
|
updatedAt?: l.DatetimeString;
|
|
148
161
|
parent?: BetaDefs.RecordRef;
|
|
149
162
|
attachments?: (Attachment)[];
|
|
163
|
+
forward?: Forward;
|
|
150
164
|
suppressedEmbeds?: (l.UriString)[];
|
|
151
165
|
}>;
|
|
166
|
+
/** 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. */
|
|
167
|
+
type Forward = {
|
|
168
|
+
$type?: "social.colibri.beta.message#forward";
|
|
169
|
+
/**
|
|
170
|
+
* The message this content was copied from.
|
|
171
|
+
*/
|
|
172
|
+
"source": BetaDefs.SpaceRecordRef;
|
|
173
|
+
/**
|
|
174
|
+
* When the message this content came from was sent.
|
|
175
|
+
*/
|
|
176
|
+
"createdAt": l.DatetimeString;
|
|
177
|
+
/**
|
|
178
|
+
* The copied message body. Empty when the message that was forwarded carried only attachments.
|
|
179
|
+
*/
|
|
180
|
+
"text": string;
|
|
181
|
+
/**
|
|
182
|
+
* The copied annotations. A mention here does not notify anyone, because the AppView reads only a message's own facets.
|
|
183
|
+
*/
|
|
184
|
+
"facets"?: (RichtextFacet.Main)[];
|
|
185
|
+
/**
|
|
186
|
+
* The copied files, re-uploaded into the forwarding author's own repo so the forward stands on its own.
|
|
187
|
+
*/
|
|
188
|
+
"attachments"?: (Attachment)[];
|
|
189
|
+
};
|
|
190
|
+
export type { Forward };
|
|
191
|
+
/** 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. */
|
|
192
|
+
declare const forward: l.TypedObjectSchema<"social.colibri.beta.message#forward", l.Validator<Forward, Forward>>;
|
|
193
|
+
export { forward };
|
|
152
194
|
/** A file attached to a message. */
|
|
153
195
|
type Attachment = {
|
|
154
196
|
$type?: "social.colibri.beta.message#attachment";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message.defs.d.ts","sourceRoot":"","sources":["../../../../../src/generated/social/colibri/beta/message.defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AACjC,OAAO,KAAK,aAAa,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C,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,CAAC;IAEjC;;OAEG;IACH,aAAa,CAAC,EAAC,CAAC,UAAU,CAAC,EAAE,CAAA;CAAE,CAAC;AAElC,YAAY,EAAE,OAAO,EAAE,CAAC;AAExB,+SAA+S;AAC/S,QAAA,MAAM,OAAO,2FAAiiB,CAAC;AAE/iB,OAAO,EAAE,OAAO,EAAE,CAAC;AAEnB,oCAAoC;AACpC,KAAK,UAAU,GAAG;IAAE,KAAK,CAAC,EAAE,wCAAwC,CAAC;IAEnE;;OAEG;IACH,MAAM,EAAC,CAAC,CAAC,OAAO,CAAC;IAEjB;;OAEG;IACH,MAAM,CAAC,EAAC,MAAM,CAAA;CAAE,CAAC;AAEnB,YAAY,EAAE,UAAU,EAAE,CAAC;AAE3B,oCAAoC;AACpC,QAAA,MAAM,UAAU,oGAAmM,CAAC;AAEpN,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -7,7 +7,7 @@ import * as BetaDefs from "./defs.defs.js";
|
|
|
7
7
|
const $nsid = "social.colibri.beta.message";
|
|
8
8
|
export { $nsid };
|
|
9
9
|
/** A message in a channel. Lives in the author's own permissioned repo for the channel's space. */
|
|
10
|
-
const main = /*#__PURE__*/ l.record("tid", $nsid, /*#__PURE__*/ l.object({ "text": /*#__PURE__*/ l.string({ "maxLength": 2048 }), "facets": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.ref((() => RichtextFacet.main)))), "createdAt": /*#__PURE__*/ l.string({ "format": "datetime" }), "updatedAt": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({ "format": "datetime" })), "parent": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.ref((() => BetaDefs.recordRef))), "attachments": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.ref((() => attachment)))), "suppressedEmbeds": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({ "format": "uri" }))) }));
|
|
10
|
+
const main = /*#__PURE__*/ l.record("tid", $nsid, /*#__PURE__*/ l.object({ "text": /*#__PURE__*/ l.string({ "maxLength": 2048 }), "facets": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.ref((() => RichtextFacet.main)))), "createdAt": /*#__PURE__*/ l.string({ "format": "datetime" }), "updatedAt": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({ "format": "datetime" })), "parent": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.ref((() => BetaDefs.recordRef))), "attachments": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.ref((() => attachment)))), "forward": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.ref((() => forward))), "suppressedEmbeds": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({ "format": "uri" }))) }));
|
|
11
11
|
export { main };
|
|
12
12
|
const $type = $nsid;
|
|
13
13
|
export { $type };
|
|
@@ -22,6 +22,9 @@ export const $parse = /*#__PURE__*/ main.parse.bind(main);
|
|
|
22
22
|
export const $safeParse = /*#__PURE__*/ main.safeParse.bind(main);
|
|
23
23
|
export const $validate = /*#__PURE__*/ main.validate.bind(main);
|
|
24
24
|
export const $safeValidate = /*#__PURE__*/ main.safeValidate.bind(main);
|
|
25
|
+
/** 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. */
|
|
26
|
+
const forward = /*#__PURE__*/ l.typedObject($nsid, "forward", /*#__PURE__*/ l.object({ "source": /*#__PURE__*/ l.ref((() => BetaDefs.spaceRecordRef)), "createdAt": /*#__PURE__*/ l.string({ "format": "datetime" }), "text": /*#__PURE__*/ l.string({ "maxLength": 2048 }), "facets": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.ref((() => RichtextFacet.main)))), "attachments": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.ref((() => attachment)))) }));
|
|
27
|
+
export { forward };
|
|
25
28
|
/** A file attached to a message. */
|
|
26
29
|
const attachment = /*#__PURE__*/ l.typedObject($nsid, "attachment", /*#__PURE__*/ l.object({ "blob": /*#__PURE__*/ l.blob(), "name": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({ "maxLength": 256 })) }));
|
|
27
30
|
export { attachment };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message.defs.js","sourceRoot":"","sources":["../../../../../src/generated/social/colibri/beta/message.defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AACjC,OAAO,KAAK,aAAa,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,QAAQ,MAAM,gBAAgB,CAAC;AAE3C,MAAM,KAAK,GAAG,6BAA6B,CAAC;AAI5C,OAAO,EAAE,KAAK,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"message.defs.js","sourceRoot":"","sources":["../../../../../src/generated/social/colibri/beta/message.defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AACjC,OAAO,KAAK,aAAa,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,QAAQ,MAAM,gBAAgB,CAAC;AAE3C,MAAM,KAAK,GAAG,6BAA6B,CAAC;AAI5C,OAAO,EAAE,KAAK,EAAE,CAAC;AA+CjB,mGAAmG;AACnG,MAAM,IAAI,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM,CAAc,KAAK,EAAE,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,EAAC,MAAM,EAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,EAAC,WAAW,EAAC,IAAI,EAAC,CAAC,EAAC,QAAQ,EAAC,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC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
|
export type $OutputBody<B = l.BinaryData> = l.InferPayloadBody<typeof $output, B>;
|
|
30
|
-
/** Moves messages
|
|
30
|
+
/** 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. */
|
|
31
31
|
declare const main: l.Procedure<"social.colibri.beta.thread.moveMessages", l.ParamsSchema<{}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
32
32
|
source: l.StringSchema<{
|
|
33
33
|
readonly format: "space-ref";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"moveMessages.defs.d.ts","sourceRoot":"","sources":["../../../../../../src/generated/social/colibri/beta/thread/moveMessages.defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AACjC,OAAO,KAAK,SAAS,MAAM,kBAAkB,CAAC;AAE9C,QAAA,MAAM,KAAK,4CAA4C,CAAC;AAExD,KAAK,KAAK,GAAG,OAAO,KAAK,CAAC;AAE1B,OAAO,EAAE,KAAK,EAAE,CAAC;AAEjB,eAAO,MAAM,OAAO,oBAA2B,CAAC;AAEhD,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,OAAO,CAAC,CAAC;AAEpD,eAAO,MAAM,MAAM;;;;;;;;;;;GAA8W,CAAC;AAElY,MAAM,MAAM,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,YAAY,CAAC,OAAO,MAAM,EAAE,CAAC,CAAC,CAAC;AACxE,MAAM,MAAM,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,gBAAgB,CAAC,OAAO,MAAM,EAAE,CAAC,CAAC,CAAC;AAEhF,eAAO,MAAM,OAAO;;;;;GAAoH,CAAC;AAEzI,MAAM,MAAM,OAAO,CAAC,CAAC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AgB,CAAC,OAAO,OAAO,EAAE,CAAC,CAAC,CAAC;AAElF,ucAAuc;AACvc,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;4HAAuK,CAAC;AAElL,OAAO,EAAE,IAAI,EAAE,CAAC;AAEhB,QAAA,MAAM,IAAI,4CAAQ,CAAC;AAEnB,KAAK,IAAI,GAAG,OAAO,IAAI,CAAC;AAExB,OAAO,EAAE,IAAI,EAAE,CAAC"}
|
|
@@ -8,7 +8,7 @@ export { $nsid };
|
|
|
8
8
|
export const $params = /*#__PURE__*/ l.params();
|
|
9
9
|
export const $input = /*#__PURE__*/ l.jsonPayload({ "source": /*#__PURE__*/ l.string({ "format": "space-ref" }), "destination": /*#__PURE__*/ l.string({ "format": "space-ref" }), "subjects": /*#__PURE__*/ l.array(/*#__PURE__*/ l.ref((() => BetaLabel.subject)), { "minLength": 1, "maxLength": 50 }), "reason": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({ "maxLength": 512 })) });
|
|
10
10
|
export const $output = /*#__PURE__*/ l.jsonPayload({ "batch": /*#__PURE__*/ l.string({ "format": "tid" }), "count": /*#__PURE__*/ l.integer() });
|
|
11
|
-
/** Moves messages
|
|
11
|
+
/** 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. */
|
|
12
12
|
const main = /*#__PURE__*/ l.procedure($nsid, $params, $input, $output, ["AuthRequired", "Forbidden", "SpaceNotFound", "MessageNotFound", "InvalidRequest", "CredentialsUnavailable"]);
|
|
13
13
|
export { main };
|
|
14
14
|
const $lxm = $nsid;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"moveMessages.defs.js","sourceRoot":"","sources":["../../../../../../src/generated/social/colibri/beta/thread/moveMessages.defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAA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WAAW,EAAC,eAAe,EAAC,iBAAiB,EAAC,gBAAgB,EAAC,wBAAwB,CAAC,CAAC,CAAC;AAElL,OAAO,EAAE,IAAI,EAAE,CAAC;AAEhB,MAAM,IAAI,GAAG,KAAK,CAAC;AAInB,OAAO,EAAE,IAAI,EAAE,CAAC"}
|
|
@@ -88,6 +88,11 @@
|
|
|
88
88
|
},
|
|
89
89
|
"description": "Labels from labelers this community honours. `src` says who applied each one. A `hidden` label is enforced by the AppView, which withholds the message rather than serving it, so a message that reaches you carries only labels you are meant to act on for display, such as `spoiler`."
|
|
90
90
|
},
|
|
91
|
+
"forward": {
|
|
92
|
+
"type": "ref",
|
|
93
|
+
"ref": "#forwardView",
|
|
94
|
+
"description": "Content this message was forwarded from, when it is a forward. Never itself nested."
|
|
95
|
+
},
|
|
91
96
|
"suppressedEmbeds": {
|
|
92
97
|
"type": "array",
|
|
93
98
|
"items": {
|
|
@@ -111,6 +116,54 @@
|
|
|
111
116
|
}
|
|
112
117
|
}
|
|
113
118
|
},
|
|
119
|
+
"forwardView": {
|
|
120
|
+
"type": "object",
|
|
121
|
+
"description": "The frozen copy a forwarded message carries, with its source resolved as far as this AppView can. Never itself nested, so a forward of a forward reports the message it was forwarded from rather than a chain.",
|
|
122
|
+
"required": ["source", "createdAt", "text", "attachments"],
|
|
123
|
+
"properties": {
|
|
124
|
+
"source": {
|
|
125
|
+
"type": "ref",
|
|
126
|
+
"ref": "social.colibri.beta.defs#spaceRecordRef",
|
|
127
|
+
"description": "The message this content was copied from."
|
|
128
|
+
},
|
|
129
|
+
"sourceName": {
|
|
130
|
+
"type": "string",
|
|
131
|
+
"description": "Name of the channel or thread the content came from. Absent when this AppView does not know that space."
|
|
132
|
+
},
|
|
133
|
+
"sourceCommunity": {
|
|
134
|
+
"type": "string",
|
|
135
|
+
"format": "did",
|
|
136
|
+
"description": "The community owning the source space, which is that space's authority. Absent when the source reference cannot be parsed."
|
|
137
|
+
},
|
|
138
|
+
"createdAt": {
|
|
139
|
+
"type": "string",
|
|
140
|
+
"format": "datetime",
|
|
141
|
+
"description": "When the message this content came from was sent."
|
|
142
|
+
},
|
|
143
|
+
"text": {
|
|
144
|
+
"type": "string",
|
|
145
|
+
"description": "The copied message body."
|
|
146
|
+
},
|
|
147
|
+
"facets": {
|
|
148
|
+
"type": "array",
|
|
149
|
+
"items": {
|
|
150
|
+
"type": "ref",
|
|
151
|
+
"ref": "social.colibri.beta.richtext.facet",
|
|
152
|
+
"description": "An annotation."
|
|
153
|
+
},
|
|
154
|
+
"description": "The copied annotations."
|
|
155
|
+
},
|
|
156
|
+
"attachments": {
|
|
157
|
+
"type": "array",
|
|
158
|
+
"items": {
|
|
159
|
+
"type": "ref",
|
|
160
|
+
"ref": "#attachmentView",
|
|
161
|
+
"description": "A copied file."
|
|
162
|
+
},
|
|
163
|
+
"description": "The copied files, served from the forwarding author's own repo."
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
},
|
|
114
167
|
"deletedMessageView": {
|
|
115
168
|
"type": "object",
|
|
116
169
|
"description": "Stands in for a message the AppView will not serve: deleted by its author, or hidden by a moderator. The two cases are deliberately indistinguishable, so hiding does not leak what was hidden. Render it as an unavailable message.",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"type": "string",
|
|
20
20
|
"maxLength": 128,
|
|
21
21
|
"knownValues": ["hidden", "spoiler", "embeds-suppressed", "moved"],
|
|
22
|
-
"description": "The label value. `hidden` is enforced: the AppView withholds a hidden record instead of serving it. `moved` is enforced too: the AppView withholds the record from this space and serves it in the space named by `destination` instead,
|
|
22
|
+
"description": "The label value. `hidden` is enforced: the AppView withholds a hidden record instead of serving it. `moved` is enforced too: the AppView withholds the record from this space and serves it in the space named by `destination` instead, at its own record key, so it reads in the order it was written. `spoiler` and `embeds-suppressed` are display hints the AppView passes through for the client to honour."
|
|
23
23
|
},
|
|
24
24
|
"scope": {
|
|
25
25
|
"type": "array",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"batch": {
|
|
38
38
|
"type": "string",
|
|
39
39
|
"format": "tid",
|
|
40
|
-
"description": "Shared by every `moved` label written in one move,
|
|
40
|
+
"description": "Shared by every `moved` label written in one move, which is what groups a move for auditing. It does not affect the order the records read in."
|
|
41
41
|
},
|
|
42
42
|
"neg": {
|
|
43
43
|
"type": "boolean",
|
|
@@ -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
|
|
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
|
|
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",
|