@colibri-social/lexicons 2.22.0 → 2.24.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/actor/clientPreferences.defs.d.ts +14 -0
- package/dist/generated/social/colibri/beta/actor/clientPreferences.defs.d.ts.map +1 -1
- package/dist/generated/social/colibri/beta/actor/clientPreferences.defs.js +1 -1
- package/dist/generated/social/colibri/beta/actor/clientPreferences.defs.js.map +1 -1
- package/dist/generated/social/colibri/beta/actor/defs.defs.d.ts +4 -0
- package/dist/generated/social/colibri/beta/actor/defs.defs.d.ts.map +1 -1
- package/dist/generated/social/colibri/beta/actor/defs.defs.js +1 -1
- package/dist/generated/social/colibri/beta/actor/defs.defs.js.map +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/embed/defs.defs.d.ts +236 -0
- package/dist/generated/social/colibri/beta/embed/defs.defs.d.ts.map +1 -1
- package/dist/generated/social/colibri/beta/embed/defs.defs.js +25 -1
- package/dist/generated/social/colibri/beta/embed/defs.defs.js.map +1 -1
- package/dist/generated/social/colibri/beta/reaction.defs.d.ts +15 -0
- package/dist/generated/social/colibri/beta/reaction.defs.d.ts.map +1 -1
- package/dist/generated/social/colibri/beta/reaction.defs.js +2 -1
- package/dist/generated/social/colibri/beta/reaction.defs.js.map +1 -1
- package/dist/generated/social/colibri/beta/sync/defs.defs.d.ts +5 -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 +2 -1
- package/dist/generated/social/colibri/beta/sync/defs.defs.js.map +1 -1
- package/dist/generated/social/colibri/beta/thread/defs.defs.d.ts +25 -1
- package/dist/generated/social/colibri/beta/thread/defs.defs.d.ts.map +1 -1
- package/dist/generated/social/colibri/beta/thread/defs.defs.js +2 -2
- package/dist/generated/social/colibri/beta/thread/defs.defs.js.map +1 -1
- package/dist/generated/social/colibri/beta/thread/update.defs.d.ts +5 -1
- package/dist/generated/social/colibri/beta/thread/update.defs.d.ts.map +1 -1
- package/dist/generated/social/colibri/beta/thread/update.defs.js +2 -2
- package/dist/generated/social/colibri/beta/thread/update.defs.js.map +1 -1
- package/dist/generated/social/colibri/beta/thread.defs.d.ts +28 -0
- package/dist/generated/social/colibri/beta/thread.defs.d.ts.map +1 -1
- package/dist/generated/social/colibri/beta/thread.defs.js +1 -1
- package/dist/generated/social/colibri/beta/thread.defs.js.map +1 -1
- package/lexicons/social/colibri/beta/actor/clientPreferences.json +6 -0
- package/lexicons/social/colibri/beta/actor/defs.json +6 -0
- package/lexicons/social/colibri/beta/channel/defs.json +5 -0
- package/lexicons/social/colibri/beta/embed/defs.json +274 -0
- package/lexicons/social/colibri/beta/reaction.json +5 -0
- package/lexicons/social/colibri/beta/sync/defs.json +5 -0
- package/lexicons/social/colibri/beta/thread/defs.json +30 -1
- package/lexicons/social/colibri/beta/thread/delete.json +1 -1
- package/lexicons/social/colibri/beta/thread/update.json +10 -2
- package/lexicons/social/colibri/beta/thread.json +9 -0
- package/package.json +1 -1
|
@@ -35,6 +35,14 @@ type Main = {
|
|
|
35
35
|
* Members that may read this thread in addition to visibleToRoles.
|
|
36
36
|
*/
|
|
37
37
|
"visibleToMembers"?: (l.DidString)[];
|
|
38
|
+
/**
|
|
39
|
+
* When the thread was closed. Absent on an open thread. A closed thread still accepts messages, and the next one reopens it.
|
|
40
|
+
*/
|
|
41
|
+
"closedAt"?: l.DatetimeString;
|
|
42
|
+
/**
|
|
43
|
+
* Whether only members who may manage threads can write in this thread. Absent means unlocked.
|
|
44
|
+
*/
|
|
45
|
+
"locked"?: boolean;
|
|
38
46
|
/**
|
|
39
47
|
* Who opened this thread on another service. Honoured only when the community itself wrote the record.
|
|
40
48
|
*/
|
|
@@ -60,6 +68,8 @@ export declare const $build: {
|
|
|
60
68
|
createdAt: l.DatetimeString;
|
|
61
69
|
visibleToRoles?: (l.RecordKeyString)[];
|
|
62
70
|
visibleToMembers?: (l.DidString)[];
|
|
71
|
+
closedAt?: l.DatetimeString;
|
|
72
|
+
locked?: boolean;
|
|
63
73
|
bridged?: BridgeDefs.Attribution;
|
|
64
74
|
};
|
|
65
75
|
(input: Omit<Omit<Main, "$type">, "$type">): {
|
|
@@ -71,6 +81,8 @@ export declare const $build: {
|
|
|
71
81
|
createdAt: l.DatetimeString;
|
|
72
82
|
visibleToRoles?: (l.RecordKeyString)[];
|
|
73
83
|
visibleToMembers?: (l.DidString)[];
|
|
84
|
+
closedAt?: l.DatetimeString;
|
|
85
|
+
locked?: boolean;
|
|
74
86
|
bridged?: BridgeDefs.Attribution;
|
|
75
87
|
};
|
|
76
88
|
};
|
|
@@ -83,6 +95,8 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
83
95
|
createdAt: l.DatetimeString;
|
|
84
96
|
visibleToRoles?: (l.RecordKeyString)[];
|
|
85
97
|
visibleToMembers?: (l.DidString)[];
|
|
98
|
+
closedAt?: l.DatetimeString;
|
|
99
|
+
locked?: boolean;
|
|
86
100
|
bridged?: BridgeDefs.Attribution;
|
|
87
101
|
};
|
|
88
102
|
export declare const $check: (input: unknown, options?: l.ValidateOptions) => void;
|
|
@@ -95,6 +109,8 @@ export declare const $cast: <I>(input: I, options?: l.ValidateOptions) => I & {
|
|
|
95
109
|
createdAt: l.DatetimeString;
|
|
96
110
|
visibleToRoles?: (l.RecordKeyString)[];
|
|
97
111
|
visibleToMembers?: (l.DidString)[];
|
|
112
|
+
closedAt?: l.DatetimeString;
|
|
113
|
+
locked?: boolean;
|
|
98
114
|
bridged?: BridgeDefs.Attribution;
|
|
99
115
|
};
|
|
100
116
|
export declare const $ifMatches: <I>(input: I, options?: l.ValidateOptions) => (I & {
|
|
@@ -106,6 +122,8 @@ export declare const $ifMatches: <I>(input: I, options?: l.ValidateOptions) => (
|
|
|
106
122
|
createdAt: l.DatetimeString;
|
|
107
123
|
visibleToRoles?: (l.RecordKeyString)[];
|
|
108
124
|
visibleToMembers?: (l.DidString)[];
|
|
125
|
+
closedAt?: l.DatetimeString;
|
|
126
|
+
locked?: boolean;
|
|
109
127
|
bridged?: BridgeDefs.Attribution;
|
|
110
128
|
}) | undefined;
|
|
111
129
|
export declare const $matches: <I>(input: I, options?: l.ValidateOptions) => input is I & {
|
|
@@ -117,6 +135,8 @@ export declare const $matches: <I>(input: I, options?: l.ValidateOptions) => inp
|
|
|
117
135
|
createdAt: l.DatetimeString;
|
|
118
136
|
visibleToRoles?: (l.RecordKeyString)[];
|
|
119
137
|
visibleToMembers?: (l.DidString)[];
|
|
138
|
+
closedAt?: l.DatetimeString;
|
|
139
|
+
locked?: boolean;
|
|
120
140
|
bridged?: BridgeDefs.Attribution;
|
|
121
141
|
};
|
|
122
142
|
export declare const $parse: (input: unknown, options?: l.ParseOptions) => {
|
|
@@ -128,6 +148,8 @@ export declare const $parse: (input: unknown, options?: l.ParseOptions) => {
|
|
|
128
148
|
createdAt: l.DatetimeString;
|
|
129
149
|
visibleToRoles?: (l.RecordKeyString)[];
|
|
130
150
|
visibleToMembers?: (l.DidString)[];
|
|
151
|
+
closedAt?: l.DatetimeString;
|
|
152
|
+
locked?: boolean;
|
|
131
153
|
bridged?: BridgeDefs.Attribution;
|
|
132
154
|
};
|
|
133
155
|
export declare const $safeParse: (input: unknown, options?: l.ParseOptions) => l.ValidationResult<{
|
|
@@ -139,6 +161,8 @@ export declare const $safeParse: (input: unknown, options?: l.ParseOptions) => l
|
|
|
139
161
|
createdAt: l.DatetimeString;
|
|
140
162
|
visibleToRoles?: (l.RecordKeyString)[];
|
|
141
163
|
visibleToMembers?: (l.DidString)[];
|
|
164
|
+
closedAt?: l.DatetimeString;
|
|
165
|
+
locked?: boolean;
|
|
142
166
|
bridged?: BridgeDefs.Attribution;
|
|
143
167
|
}>;
|
|
144
168
|
export declare const $validate: <I>(input: I, options?: l.ValidateOptions) => I & {
|
|
@@ -150,6 +174,8 @@ export declare const $validate: <I>(input: I, options?: l.ValidateOptions) => I
|
|
|
150
174
|
createdAt: l.DatetimeString;
|
|
151
175
|
visibleToRoles?: (l.RecordKeyString)[];
|
|
152
176
|
visibleToMembers?: (l.DidString)[];
|
|
177
|
+
closedAt?: l.DatetimeString;
|
|
178
|
+
locked?: boolean;
|
|
153
179
|
bridged?: BridgeDefs.Attribution;
|
|
154
180
|
};
|
|
155
181
|
export declare const $safeValidate: <I>(input: I, options?: l.ValidateOptions) => l.ValidationResult<I & {
|
|
@@ -161,6 +187,8 @@ export declare const $safeValidate: <I>(input: I, options?: l.ValidateOptions) =
|
|
|
161
187
|
createdAt: l.DatetimeString;
|
|
162
188
|
visibleToRoles?: (l.RecordKeyString)[];
|
|
163
189
|
visibleToMembers?: (l.DidString)[];
|
|
190
|
+
closedAt?: l.DatetimeString;
|
|
191
|
+
locked?: boolean;
|
|
164
192
|
bridged?: BridgeDefs.Attribution;
|
|
165
193
|
}>;
|
|
166
194
|
//# sourceMappingURL=thread.defs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"thread.defs.d.ts","sourceRoot":"","sources":["../../../../../src/generated/social/colibri/beta/thread.defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AACjC,OAAO,KAAK,QAAQ,MAAM,gBAAgB,CAAC;AAC3C,OAAO,KAAK,UAAU,MAAM,uBAAuB,CAAC;AAEpD,QAAA,MAAM,KAAK,+BAA+B,CAAC;AAE3C,KAAK,KAAK,GAAG,OAAO,KAAK,CAAC;AAE1B,OAAO,EAAE,KAAK,EAAE,CAAC;AAEjB,qKAAqK;AACrK,KAAK,IAAI,GAAG;IAAE,KAAK,EAAE,4BAA4B,CAAC;IAEhD;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B,OAAO;cAKN,UAAU,CAAC,WAAW;EAyBoC,CAAC"}
|
|
@@ -7,7 +7,7 @@ import * as BridgeDefs from "./bridge/defs.defs.js";
|
|
|
7
7
|
const $nsid = "social.colibri.beta.thread";
|
|
8
8
|
export { $nsid };
|
|
9
9
|
/** A thread's configuration, including the link to the channel it belongs to. Lives at key 'self' in the thread's own space and is written only by the community. */
|
|
10
|
-
const main = /*#__PURE__*/ l.record("literal:self", $nsid, /*#__PURE__*/ l.object({ "name": /*#__PURE__*/ l.string({ "minLength": 1, "maxLength": 128 }), "channel": /*#__PURE__*/ l.string({ "format": "space-ref" }), "anchor": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.ref((() => BetaDefs.spaceRecordRef))), "createdBy": /*#__PURE__*/ l.string({ "format": "did" }), "createdAt": /*#__PURE__*/ l.string({ "format": "datetime" }), "visibleToRoles": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({ "format": "record-key" }))), "visibleToMembers": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({ "format": "did" }))), "bridged": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.ref((() => BridgeDefs.attribution))) }));
|
|
10
|
+
const main = /*#__PURE__*/ l.record("literal:self", $nsid, /*#__PURE__*/ l.object({ "name": /*#__PURE__*/ l.string({ "minLength": 1, "maxLength": 128 }), "channel": /*#__PURE__*/ l.string({ "format": "space-ref" }), "anchor": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.ref((() => BetaDefs.spaceRecordRef))), "createdBy": /*#__PURE__*/ l.string({ "format": "did" }), "createdAt": /*#__PURE__*/ l.string({ "format": "datetime" }), "visibleToRoles": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({ "format": "record-key" }))), "visibleToMembers": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.array(/*#__PURE__*/ l.string({ "format": "did" }))), "closedAt": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string({ "format": "datetime" })), "locked": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()), "bridged": /*#__PURE__*/ l.optional(/*#__PURE__*/ l.ref((() => BridgeDefs.attribution))) }));
|
|
11
11
|
export { main };
|
|
12
12
|
const $type = $nsid;
|
|
13
13
|
export { $type };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"thread.defs.js","sourceRoot":"","sources":["../../../../../src/generated/social/colibri/beta/thread.defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AACjC,OAAO,KAAK,QAAQ,MAAM,gBAAgB,CAAC;AAC3C,OAAO,KAAK,UAAU,MAAM,uBAAuB,CAAC;AAEpD,MAAM,KAAK,GAAG,4BAA4B,CAAC;AAI3C,OAAO,EAAE,KAAK,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"thread.defs.js","sourceRoot":"","sources":["../../../../../src/generated/social/colibri/beta/thread.defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AACjC,OAAO,KAAK,QAAQ,MAAM,gBAAgB,CAAC;AAC3C,OAAO,KAAK,UAAU,MAAM,uBAAuB,CAAC;AAEpD,MAAM,KAAK,GAAG,4BAA4B,CAAC;AAI3C,OAAO,EAAE,KAAK,EAAE,CAAC;AAyDjB,qKAAqK;AACrK,MAAM,IAAI,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM,CAAuB,cAAc,EAAE,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,EAAC,MAAM,EAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,EAAC,WAAW,EAAC,CAAC,EAAC,WAAW,EAAC,GAAG,EAAC,CAAC,EAAC,SAAS,EAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,EAAC,QAAQ,EAAC,WAAW,EAAC,CAAC,EAAC,QAAQ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
"inboxPresentation": {
|
|
56
|
+
"type": "string",
|
|
57
|
+
"maxLength": 32,
|
|
58
|
+
"knownValues": ["popover", "modal"],
|
|
59
|
+
"description": "How the inbox opens on desktop. popover anchors it to the inbox button, modal opens it in a large dialog."
|
|
60
|
+
},
|
|
55
61
|
"developerMode": {
|
|
56
62
|
"type": "boolean",
|
|
57
63
|
"description": "Whether the client shows identifiers and links to inspect records."
|
|
@@ -388,6 +388,12 @@
|
|
|
388
388
|
"maxLength": 253,
|
|
389
389
|
"description": "The domain of the client used when blueskyClient is custom."
|
|
390
390
|
},
|
|
391
|
+
"inboxPresentation": {
|
|
392
|
+
"type": "string",
|
|
393
|
+
"maxLength": 32,
|
|
394
|
+
"knownValues": ["popover", "modal"],
|
|
395
|
+
"description": "How the inbox opens on desktop. popover anchors it to the inbox button, modal opens it in a large dialog."
|
|
396
|
+
},
|
|
391
397
|
"developerMode": {
|
|
392
398
|
"type": "boolean",
|
|
393
399
|
"description": "Whether the client shows identifiers and links to inspect records."
|
|
@@ -238,6 +238,11 @@
|
|
|
238
238
|
"type": "string",
|
|
239
239
|
"description": "The emoji or custom shortcode."
|
|
240
240
|
},
|
|
241
|
+
"customEmoji": {
|
|
242
|
+
"type": "ref",
|
|
243
|
+
"ref": "social.colibri.beta.richtext.facet#customEmoji",
|
|
244
|
+
"description": "The emoji record behind a custom shortcode, from the earliest reaction that named one."
|
|
245
|
+
},
|
|
241
246
|
"count": {
|
|
242
247
|
"type": "integer",
|
|
243
248
|
"description": "How many people reacted, including people reacting through a bridge."
|
|
@@ -33,6 +33,45 @@
|
|
|
33
33
|
"type": "ref",
|
|
34
34
|
"ref": "#embedVideo",
|
|
35
35
|
"description": "Playable video."
|
|
36
|
+
},
|
|
37
|
+
"themeColor": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"maxLength": 7,
|
|
40
|
+
"description": "Accent color the page declares, as #rrggbb."
|
|
41
|
+
},
|
|
42
|
+
"layout": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"knownValues": ["summary", "largeImage", "player"],
|
|
45
|
+
"description": "Card layout the page asks for."
|
|
46
|
+
},
|
|
47
|
+
"provider": {
|
|
48
|
+
"type": "ref",
|
|
49
|
+
"ref": "#embedProvider",
|
|
50
|
+
"description": "Service that published the page."
|
|
51
|
+
},
|
|
52
|
+
"author": {
|
|
53
|
+
"type": "ref",
|
|
54
|
+
"ref": "#embedAuthor",
|
|
55
|
+
"description": "Author of the page or post."
|
|
56
|
+
},
|
|
57
|
+
"publishedAt": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"format": "datetime",
|
|
60
|
+
"description": "When the page or post was published."
|
|
61
|
+
},
|
|
62
|
+
"media": {
|
|
63
|
+
"type": "array",
|
|
64
|
+
"maxLength": 4,
|
|
65
|
+
"items": {
|
|
66
|
+
"type": "ref",
|
|
67
|
+
"ref": "#embedMedia"
|
|
68
|
+
},
|
|
69
|
+
"description": "Gallery of images and videos, in page order."
|
|
70
|
+
},
|
|
71
|
+
"post": {
|
|
72
|
+
"type": "ref",
|
|
73
|
+
"ref": "#embedPost",
|
|
74
|
+
"description": "Social post content, present when the link resolves to one."
|
|
36
75
|
}
|
|
37
76
|
}
|
|
38
77
|
},
|
|
@@ -89,6 +128,241 @@
|
|
|
89
128
|
}
|
|
90
129
|
}
|
|
91
130
|
},
|
|
131
|
+
"embedProvider": {
|
|
132
|
+
"type": "object",
|
|
133
|
+
"description": "The service behind a link preview.",
|
|
134
|
+
"required": ["name"],
|
|
135
|
+
"properties": {
|
|
136
|
+
"name": {
|
|
137
|
+
"type": "string",
|
|
138
|
+
"description": "Display name."
|
|
139
|
+
},
|
|
140
|
+
"url": {
|
|
141
|
+
"type": "string",
|
|
142
|
+
"format": "uri",
|
|
143
|
+
"description": "Home page."
|
|
144
|
+
},
|
|
145
|
+
"icon": {
|
|
146
|
+
"type": "string",
|
|
147
|
+
"format": "uri",
|
|
148
|
+
"description": "Icon URL served by this AppView's image proxy."
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
"embedAuthor": {
|
|
153
|
+
"type": "object",
|
|
154
|
+
"description": "The author of a link preview.",
|
|
155
|
+
"required": ["name"],
|
|
156
|
+
"properties": {
|
|
157
|
+
"name": {
|
|
158
|
+
"type": "string",
|
|
159
|
+
"description": "Display name."
|
|
160
|
+
},
|
|
161
|
+
"handle": {
|
|
162
|
+
"type": "string",
|
|
163
|
+
"description": "Account handle, without a leading @."
|
|
164
|
+
},
|
|
165
|
+
"url": {
|
|
166
|
+
"type": "string",
|
|
167
|
+
"format": "uri",
|
|
168
|
+
"description": "Profile or post URL."
|
|
169
|
+
},
|
|
170
|
+
"avatar": {
|
|
171
|
+
"type": "string",
|
|
172
|
+
"format": "uri",
|
|
173
|
+
"description": "Avatar URL served by this AppView's image proxy."
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
"embedMedia": {
|
|
178
|
+
"type": "object",
|
|
179
|
+
"description": "One gallery item.",
|
|
180
|
+
"required": ["kind", "url"],
|
|
181
|
+
"properties": {
|
|
182
|
+
"kind": {
|
|
183
|
+
"type": "string",
|
|
184
|
+
"knownValues": ["image", "video", "gifv"],
|
|
185
|
+
"description": "Media kind. gifv is a silent looping video."
|
|
186
|
+
},
|
|
187
|
+
"url": {
|
|
188
|
+
"type": "string",
|
|
189
|
+
"format": "uri",
|
|
190
|
+
"description": "URL served by this AppView's image or video proxy."
|
|
191
|
+
},
|
|
192
|
+
"previewUrl": {
|
|
193
|
+
"type": "string",
|
|
194
|
+
"format": "uri",
|
|
195
|
+
"description": "Poster image for a video, served by this AppView's image proxy."
|
|
196
|
+
},
|
|
197
|
+
"mimeType": {
|
|
198
|
+
"type": "string",
|
|
199
|
+
"description": "Content type of a video.",
|
|
200
|
+
"knownValues": ["video/mp4", "video/webm"]
|
|
201
|
+
},
|
|
202
|
+
"width": {
|
|
203
|
+
"type": "integer",
|
|
204
|
+
"description": "Intrinsic pixel width."
|
|
205
|
+
},
|
|
206
|
+
"height": {
|
|
207
|
+
"type": "integer",
|
|
208
|
+
"description": "Intrinsic pixel height."
|
|
209
|
+
},
|
|
210
|
+
"alt": {
|
|
211
|
+
"type": "string",
|
|
212
|
+
"description": "Alternative text."
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
"embedPost": {
|
|
217
|
+
"type": "object",
|
|
218
|
+
"description": "Content of a social post.",
|
|
219
|
+
"required": ["body"],
|
|
220
|
+
"properties": {
|
|
221
|
+
"body": {
|
|
222
|
+
"type": "array",
|
|
223
|
+
"items": {
|
|
224
|
+
"type": "ref",
|
|
225
|
+
"ref": "#richBlock"
|
|
226
|
+
},
|
|
227
|
+
"description": "Formatted post text."
|
|
228
|
+
},
|
|
229
|
+
"sensitive": {
|
|
230
|
+
"type": "boolean",
|
|
231
|
+
"description": "Whether the author marked the post as sensitive."
|
|
232
|
+
},
|
|
233
|
+
"contentWarning": {
|
|
234
|
+
"type": "string",
|
|
235
|
+
"description": "Content warning text."
|
|
236
|
+
},
|
|
237
|
+
"stats": {
|
|
238
|
+
"type": "ref",
|
|
239
|
+
"ref": "#embedStats",
|
|
240
|
+
"description": "Engagement counts."
|
|
241
|
+
},
|
|
242
|
+
"quote": {
|
|
243
|
+
"type": "ref",
|
|
244
|
+
"ref": "#embedQuote",
|
|
245
|
+
"description": "The post this post quotes."
|
|
246
|
+
},
|
|
247
|
+
"translatedFrom": {
|
|
248
|
+
"type": "string",
|
|
249
|
+
"description": "Source language code when body holds a translation."
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
"embedStats": {
|
|
254
|
+
"type": "object",
|
|
255
|
+
"description": "Engagement counts on a post.",
|
|
256
|
+
"properties": {
|
|
257
|
+
"replies": {
|
|
258
|
+
"type": "integer",
|
|
259
|
+
"minimum": 0,
|
|
260
|
+
"description": "Reply count."
|
|
261
|
+
},
|
|
262
|
+
"reposts": {
|
|
263
|
+
"type": "integer",
|
|
264
|
+
"minimum": 0,
|
|
265
|
+
"description": "Repost count."
|
|
266
|
+
},
|
|
267
|
+
"likes": {
|
|
268
|
+
"type": "integer",
|
|
269
|
+
"minimum": 0,
|
|
270
|
+
"description": "Like count."
|
|
271
|
+
},
|
|
272
|
+
"views": {
|
|
273
|
+
"type": "integer",
|
|
274
|
+
"minimum": 0,
|
|
275
|
+
"description": "View count."
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
"embedQuote": {
|
|
280
|
+
"type": "object",
|
|
281
|
+
"description": "A quoted post.",
|
|
282
|
+
"required": ["uri", "author", "body"],
|
|
283
|
+
"properties": {
|
|
284
|
+
"uri": {
|
|
285
|
+
"type": "string",
|
|
286
|
+
"format": "uri",
|
|
287
|
+
"description": "URL of the quoted post."
|
|
288
|
+
},
|
|
289
|
+
"author": {
|
|
290
|
+
"type": "ref",
|
|
291
|
+
"ref": "#embedAuthor",
|
|
292
|
+
"description": "Author of the quoted post."
|
|
293
|
+
},
|
|
294
|
+
"body": {
|
|
295
|
+
"type": "array",
|
|
296
|
+
"items": {
|
|
297
|
+
"type": "ref",
|
|
298
|
+
"ref": "#richBlock"
|
|
299
|
+
},
|
|
300
|
+
"description": "Formatted text of the quoted post."
|
|
301
|
+
},
|
|
302
|
+
"media": {
|
|
303
|
+
"type": "array",
|
|
304
|
+
"maxLength": 4,
|
|
305
|
+
"items": {
|
|
306
|
+
"type": "ref",
|
|
307
|
+
"ref": "#embedMedia"
|
|
308
|
+
},
|
|
309
|
+
"description": "Media on the quoted post."
|
|
310
|
+
},
|
|
311
|
+
"publishedAt": {
|
|
312
|
+
"type": "string",
|
|
313
|
+
"format": "datetime",
|
|
314
|
+
"description": "When the quoted post was published."
|
|
315
|
+
},
|
|
316
|
+
"translatedFrom": {
|
|
317
|
+
"type": "string",
|
|
318
|
+
"description": "Source language code when body holds a translation."
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
"richBlock": {
|
|
323
|
+
"type": "object",
|
|
324
|
+
"description": "A block of formatted text.",
|
|
325
|
+
"required": ["kind", "spans"],
|
|
326
|
+
"properties": {
|
|
327
|
+
"kind": {
|
|
328
|
+
"type": "string",
|
|
329
|
+
"knownValues": ["paragraph", "quote"],
|
|
330
|
+
"description": "Block kind."
|
|
331
|
+
},
|
|
332
|
+
"spans": {
|
|
333
|
+
"type": "array",
|
|
334
|
+
"items": {
|
|
335
|
+
"type": "ref",
|
|
336
|
+
"ref": "#richSpan"
|
|
337
|
+
},
|
|
338
|
+
"description": "Inline runs. A newline in text is a line break."
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
},
|
|
342
|
+
"richSpan": {
|
|
343
|
+
"type": "object",
|
|
344
|
+
"description": "An inline run of formatted text.",
|
|
345
|
+
"required": ["text"],
|
|
346
|
+
"properties": {
|
|
347
|
+
"text": {
|
|
348
|
+
"type": "string",
|
|
349
|
+
"description": "Plain text."
|
|
350
|
+
},
|
|
351
|
+
"bold": {
|
|
352
|
+
"type": "boolean",
|
|
353
|
+
"description": "Bold."
|
|
354
|
+
},
|
|
355
|
+
"italic": {
|
|
356
|
+
"type": "boolean",
|
|
357
|
+
"description": "Italic."
|
|
358
|
+
},
|
|
359
|
+
"href": {
|
|
360
|
+
"type": "string",
|
|
361
|
+
"format": "uri",
|
|
362
|
+
"description": "Link target."
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
},
|
|
92
366
|
"gifView": {
|
|
93
367
|
"type": "object",
|
|
94
368
|
"description": "A GIF from the picker.",
|
|
@@ -20,6 +20,11 @@
|
|
|
20
20
|
"ref": "social.colibri.beta.defs#recordRef",
|
|
21
21
|
"description": "The message being reacted to."
|
|
22
22
|
},
|
|
23
|
+
"customEmoji": {
|
|
24
|
+
"type": "ref",
|
|
25
|
+
"ref": "social.colibri.beta.richtext.facet#customEmoji",
|
|
26
|
+
"description": "The emoji record behind a custom shortcode, so viewers who don't have the emoji can still show it."
|
|
27
|
+
},
|
|
23
28
|
"bridged": {
|
|
24
29
|
"type": "ref",
|
|
25
30
|
"ref": "social.colibri.beta.bridge.defs#attribution",
|
|
@@ -238,6 +238,11 @@
|
|
|
238
238
|
"type": "string",
|
|
239
239
|
"description": "The emoji or custom shortcode."
|
|
240
240
|
},
|
|
241
|
+
"customEmoji": {
|
|
242
|
+
"type": "ref",
|
|
243
|
+
"ref": "social.colibri.beta.richtext.facet#customEmoji",
|
|
244
|
+
"description": "The emoji record behind a custom shortcode."
|
|
245
|
+
},
|
|
241
246
|
"actor": {
|
|
242
247
|
"type": "string",
|
|
243
248
|
"format": "did",
|
|
@@ -104,6 +104,15 @@
|
|
|
104
104
|
},
|
|
105
105
|
"description": "Members that may read this thread beyond visibleToRoles."
|
|
106
106
|
},
|
|
107
|
+
"closedAt": {
|
|
108
|
+
"type": "string",
|
|
109
|
+
"format": "datetime",
|
|
110
|
+
"description": "When the thread was closed. Absent on an open thread."
|
|
111
|
+
},
|
|
112
|
+
"locked": {
|
|
113
|
+
"type": "boolean",
|
|
114
|
+
"description": "Whether only members who may manage threads can write in this thread."
|
|
115
|
+
},
|
|
107
116
|
"viewer": {
|
|
108
117
|
"type": "ref",
|
|
109
118
|
"ref": "#threadViewerState",
|
|
@@ -118,6 +127,10 @@
|
|
|
118
127
|
"canRead",
|
|
119
128
|
"canPost",
|
|
120
129
|
"canManage",
|
|
130
|
+
"canEdit",
|
|
131
|
+
"canClose",
|
|
132
|
+
"canDelete",
|
|
133
|
+
"canLock",
|
|
121
134
|
"following",
|
|
122
135
|
"muted",
|
|
123
136
|
"hasUnread",
|
|
@@ -134,7 +147,23 @@
|
|
|
134
147
|
},
|
|
135
148
|
"canManage": {
|
|
136
149
|
"type": "boolean",
|
|
137
|
-
"description": "Whether the user may rename, move or delete
|
|
150
|
+
"description": "Whether the user moderates threads in this community, and so may rename, close, lock, move or delete any thread."
|
|
151
|
+
},
|
|
152
|
+
"canEdit": {
|
|
153
|
+
"type": "boolean",
|
|
154
|
+
"description": "Whether the user may rename this thread."
|
|
155
|
+
},
|
|
156
|
+
"canClose": {
|
|
157
|
+
"type": "boolean",
|
|
158
|
+
"description": "Whether the user may close or reopen this thread."
|
|
159
|
+
},
|
|
160
|
+
"canDelete": {
|
|
161
|
+
"type": "boolean",
|
|
162
|
+
"description": "Whether the user may delete this thread."
|
|
163
|
+
},
|
|
164
|
+
"canLock": {
|
|
165
|
+
"type": "boolean",
|
|
166
|
+
"description": "Whether the user may lock or unlock this thread."
|
|
138
167
|
},
|
|
139
168
|
"following": {
|
|
140
169
|
"type": "boolean",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
35
|
"name": "Forbidden",
|
|
36
|
-
"description": "The requesting user lacks the thread.manage permission."
|
|
36
|
+
"description": "The requesting user lacks the thread.manage permission and is not the user who opened the thread."
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
"name": "ThreadNotFound",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"defs": {
|
|
5
5
|
"main": {
|
|
6
6
|
"type": "procedure",
|
|
7
|
-
"description": "Renames a thread or changes who may read it. An absent field leaves the current value unchanged.",
|
|
7
|
+
"description": "Renames, closes, reopens or locks a thread, or changes who may read it. An absent field leaves the current value unchanged.",
|
|
8
8
|
"input": {
|
|
9
9
|
"encoding": "application/json",
|
|
10
10
|
"schema": {
|
|
@@ -39,6 +39,14 @@
|
|
|
39
39
|
"description": "A member."
|
|
40
40
|
},
|
|
41
41
|
"description": "Members that may read this thread beyond visibleToRoles."
|
|
42
|
+
},
|
|
43
|
+
"closed": {
|
|
44
|
+
"type": "boolean",
|
|
45
|
+
"description": "Closes the thread when true and reopens it when false. Absent leaves the current value unchanged."
|
|
46
|
+
},
|
|
47
|
+
"locked": {
|
|
48
|
+
"type": "boolean",
|
|
49
|
+
"description": "Locks the thread when true and unlocks it when false. Absent leaves the current value unchanged."
|
|
42
50
|
}
|
|
43
51
|
}
|
|
44
52
|
}
|
|
@@ -64,7 +72,7 @@
|
|
|
64
72
|
},
|
|
65
73
|
{
|
|
66
74
|
"name": "Forbidden",
|
|
67
|
-
"description": "The requesting user lacks the thread.manage permission
|
|
75
|
+
"description": "The requesting user lacks the thread.manage permission and is not the user who opened the thread renaming, closing or reopening it. Changing visibility or locking always needs thread.manage, and the user who opened a locked thread can't close or reopen it."
|
|
68
76
|
},
|
|
69
77
|
{
|
|
70
78
|
"name": "ThreadNotFound",
|
|
@@ -54,6 +54,15 @@
|
|
|
54
54
|
},
|
|
55
55
|
"description": "Members that may read this thread in addition to visibleToRoles."
|
|
56
56
|
},
|
|
57
|
+
"closedAt": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"format": "datetime",
|
|
60
|
+
"description": "When the thread was closed. Absent on an open thread. A closed thread still accepts messages, and the next one reopens it."
|
|
61
|
+
},
|
|
62
|
+
"locked": {
|
|
63
|
+
"type": "boolean",
|
|
64
|
+
"description": "Whether only members who may manage threads can write in this thread. Absent means unlocked."
|
|
65
|
+
},
|
|
57
66
|
"bridged": {
|
|
58
67
|
"type": "ref",
|
|
59
68
|
"ref": "social.colibri.beta.bridge.defs#attribution",
|