Skip to content

Commit 865869a

Browse files
committed
chore: pull bluesky lexicons
1 parent 23c0ac4 commit 865869a

File tree

5 files changed

+53
-5
lines changed

5 files changed

+53
-5
lines changed

lexicons/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
https://github.com/bluesky-social/atproto/tree/6e382f67aa73532efadfea80ff96a27b526cb178/lexicons
1+
https://github.com/bluesky-social/atproto/tree/44f81f2eb9229e21aec4472b3a05e855396dbec5/lexicons
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"lexicon": 1,
3+
"id": "chat.bsky.convo.updateAllRead",
4+
"defs": {
5+
"main": {
6+
"type": "procedure",
7+
"input": {
8+
"encoding": "application/json",
9+
"schema": {
10+
"type": "object",
11+
"properties": {
12+
"status": {
13+
"type": "string",
14+
"knownValues": ["request", "accepted"]
15+
}
16+
}
17+
}
18+
},
19+
"output": {
20+
"encoding": "application/json",
21+
"schema": {
22+
"type": "object",
23+
"required": ["updatedCount"],
24+
"properties": {
25+
"updatedCount": {
26+
"description": "The count of updated convos.",
27+
"type": "integer"
28+
}
29+
}
30+
}
31+
}
32+
}
33+
}
34+
}

lexicons/tools/ozone/moderation/defs.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,7 @@
310310
},
311311
"modEventComment": {
312312
"type": "object",
313-
"description": "Add a comment to a subject",
314-
"required": ["comment"],
313+
"description": "Add a comment to a subject. An empty comment will clear any previously set sticky comment.",
315314
"properties": {
316315
"comment": {
317316
"type": "string"

packages/definitions/bluesky/lib/lexicons.ts

+15
Original file line numberDiff line numberDiff line change
@@ -2670,6 +2670,17 @@ declare module '@atcute/client/lexicons' {
26702670
}
26712671
}
26722672

2673+
namespace ChatBskyConvoUpdateAllRead {
2674+
interface Params {}
2675+
interface Input {
2676+
status?: 'accepted' | 'request' | (string & {});
2677+
}
2678+
interface Output {
2679+
/** The count of updated convos. */
2680+
updatedCount: number;
2681+
}
2682+
}
2683+
26732684
namespace ChatBskyConvoUpdateRead {
26742685
interface Params {}
26752686
interface Input {
@@ -3051,6 +3062,10 @@ declare module '@atcute/client/lexicons' {
30513062
input: ChatBskyConvoUnmuteConvo.Input;
30523063
output: ChatBskyConvoUnmuteConvo.Output;
30533064
};
3065+
'chat.bsky.convo.updateAllRead': {
3066+
input: ChatBskyConvoUpdateAllRead.Input;
3067+
output: ChatBskyConvoUpdateAllRead.Output;
3068+
};
30543069
'chat.bsky.convo.updateRead': {
30553070
input: ChatBskyConvoUpdateRead.Input;
30563071
output: ChatBskyConvoUpdateRead.Output;

packages/definitions/ozone/lib/lexicons.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,10 @@ declare module '@atcute/client/lexicons' {
170170
acknowledgeAccountSubjects?: boolean;
171171
comment?: string;
172172
}
173-
/** Add a comment to a subject */
173+
/** Add a comment to a subject. An empty comment will clear any previously set sticky comment. */
174174
interface ModEventComment {
175175
[Brand.Type]?: 'tools.ozone.moderation.defs#modEventComment';
176-
comment: string;
176+
comment?: string;
177177
/** Make the comment persistent on the subject */
178178
sticky?: boolean;
179179
}

0 commit comments

Comments
 (0)