@atcute/bluesky 1.0.12 → 1.0.14
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/lexicons.d.ts +94 -7
- package/lib/lexicons.ts +100 -4
- package/package.json +2 -2
package/dist/lexicons.d.ts
CHANGED
|
@@ -141,7 +141,21 @@ declare module '@atcute/client/lexicons' {
|
|
|
141
141
|
/** The birth date of account owner. */
|
|
142
142
|
birthDate?: string;
|
|
143
143
|
}
|
|
144
|
-
|
|
144
|
+
/** Default post interaction settings for the account. These values should be applied as default values when creating new posts. These refs should mirror the threadgate and postgate records exactly. */
|
|
145
|
+
interface PostInteractionSettingsPref {
|
|
146
|
+
[Brand.Type]?: 'app.bsky.actor.defs#postInteractionSettingsPref';
|
|
147
|
+
/**
|
|
148
|
+
* Matches postgate record. List of rules defining who can embed this users posts. If value is an empty array or is undefined, no particular rules apply and anyone can embed. \
|
|
149
|
+
* Maximum array length: 5
|
|
150
|
+
*/
|
|
151
|
+
postgateEmbeddingRules?: Brand.Union<AppBskyFeedPostgate.DisableRule>[];
|
|
152
|
+
/**
|
|
153
|
+
* Matches threadgate record. List of rules defining who can reply to this users posts. If value is an empty array, no one can reply. If value is undefined, anyone can reply. \
|
|
154
|
+
* Maximum array length: 5
|
|
155
|
+
*/
|
|
156
|
+
threadgateAllowRules?: Brand.Union<AppBskyFeedThreadgate.FollowerRule | AppBskyFeedThreadgate.FollowingRule | AppBskyFeedThreadgate.ListRule | AppBskyFeedThreadgate.MentionRule>[];
|
|
157
|
+
}
|
|
158
|
+
type Preferences = Brand.Union<AdultContentPref | BskyAppStatePref | ContentLabelPref | FeedViewPref | HiddenPostsPref | InterestsPref | LabelersPref | MutedWordsPref | PersonalDetailsPref | PostInteractionSettingsPref | SavedFeedsPref | SavedFeedsPrefV2 | ThreadViewPref>[];
|
|
145
159
|
interface ProfileAssociated {
|
|
146
160
|
[Brand.Type]?: 'app.bsky.actor.defs#profileAssociated';
|
|
147
161
|
chat?: ProfileAssociatedChat;
|
|
@@ -656,6 +670,11 @@ declare module '@atcute/client/lexicons' {
|
|
|
656
670
|
[Brand.Type]?: 'app.bsky.feed.defs#skeletonReasonRepost';
|
|
657
671
|
repost: At.Uri;
|
|
658
672
|
}
|
|
673
|
+
/** Metadata about this post within the context of the thread it is in. */
|
|
674
|
+
interface ThreadContext {
|
|
675
|
+
[Brand.Type]?: 'app.bsky.feed.defs#threadContext';
|
|
676
|
+
rootAuthorLike?: At.Uri;
|
|
677
|
+
}
|
|
659
678
|
interface ThreadgateView {
|
|
660
679
|
[Brand.Type]?: 'app.bsky.feed.defs#threadgateView';
|
|
661
680
|
cid?: At.CID;
|
|
@@ -668,6 +687,7 @@ declare module '@atcute/client/lexicons' {
|
|
|
668
687
|
post: PostView;
|
|
669
688
|
parent?: Brand.Union<BlockedPost | NotFoundPost | ThreadViewPost>;
|
|
670
689
|
replies?: Brand.Union<BlockedPost | NotFoundPost | ThreadViewPost>[];
|
|
690
|
+
threadContext?: ThreadContext;
|
|
671
691
|
}
|
|
672
692
|
/** Metadata about the requesting account's relationship with the subject content. Only has meaningful content for authed requests. */
|
|
673
693
|
interface ViewerState {
|
|
@@ -774,7 +794,7 @@ declare module '@atcute/client/lexicons' {
|
|
|
774
794
|
* Combinations of post/repost types to include in response.
|
|
775
795
|
* @default "posts_with_replies"
|
|
776
796
|
*/
|
|
777
|
-
filter?: 'posts_and_author_threads' | 'posts_no_replies' | 'posts_with_media' | 'posts_with_replies' | (string & {});
|
|
797
|
+
filter?: 'posts_and_author_threads' | 'posts_no_replies' | 'posts_with_media' | 'posts_with_replies' | 'posts_with_video' | (string & {});
|
|
778
798
|
/** @default false */
|
|
779
799
|
includePins?: boolean;
|
|
780
800
|
/**
|
|
@@ -1122,7 +1142,10 @@ declare module '@atcute/client/lexicons' {
|
|
|
1122
1142
|
* Maximum array length: 50
|
|
1123
1143
|
*/
|
|
1124
1144
|
detachedEmbeddingUris?: At.Uri[];
|
|
1125
|
-
/**
|
|
1145
|
+
/**
|
|
1146
|
+
* List of rules defining who can embed this post. If value is an empty array or is undefined, no particular rules apply and anyone can embed. \
|
|
1147
|
+
* Maximum array length: 5
|
|
1148
|
+
*/
|
|
1126
1149
|
embeddingRules?: Brand.Union<DisableRule>[];
|
|
1127
1150
|
}
|
|
1128
1151
|
/** Disables embedding of this post. */
|
|
@@ -1205,14 +1228,21 @@ declare module '@atcute/client/lexicons' {
|
|
|
1205
1228
|
createdAt: string;
|
|
1206
1229
|
/** Reference (AT-URI) to the post record. */
|
|
1207
1230
|
post: At.Uri;
|
|
1208
|
-
/**
|
|
1209
|
-
|
|
1231
|
+
/**
|
|
1232
|
+
* List of rules defining who can reply to this post. If value is an empty array, no one can reply. If value is undefined, anyone can reply. \
|
|
1233
|
+
* Maximum array length: 5
|
|
1234
|
+
*/
|
|
1235
|
+
allow?: Brand.Union<FollowerRule | FollowingRule | ListRule | MentionRule>[];
|
|
1210
1236
|
/**
|
|
1211
1237
|
* List of hidden reply URIs. \
|
|
1212
1238
|
* Maximum array length: 50
|
|
1213
1239
|
*/
|
|
1214
1240
|
hiddenReplies?: At.Uri[];
|
|
1215
1241
|
}
|
|
1242
|
+
/** Allow replies from actors who follow you. */
|
|
1243
|
+
interface FollowerRule {
|
|
1244
|
+
[Brand.Type]?: 'app.bsky.feed.threadgate#followerRule';
|
|
1245
|
+
}
|
|
1216
1246
|
/** Allow replies from actors you follow. */
|
|
1217
1247
|
interface FollowingRule {
|
|
1218
1248
|
[Brand.Type]?: 'app.bsky.feed.threadgate#followingRule';
|
|
@@ -2206,6 +2236,17 @@ declare module '@atcute/client/lexicons' {
|
|
|
2206
2236
|
type Input = undefined;
|
|
2207
2237
|
type Output = Uint8Array;
|
|
2208
2238
|
}
|
|
2239
|
+
namespace ChatBskyConvoAcceptConvo {
|
|
2240
|
+
interface Params {
|
|
2241
|
+
}
|
|
2242
|
+
interface Input {
|
|
2243
|
+
convoId: string;
|
|
2244
|
+
}
|
|
2245
|
+
interface Output {
|
|
2246
|
+
/** Rev when the convo was accepted. If not present, the convo was already accepted. */
|
|
2247
|
+
rev?: string;
|
|
2248
|
+
}
|
|
2249
|
+
}
|
|
2209
2250
|
namespace ChatBskyConvoDefs {
|
|
2210
2251
|
interface ConvoView {
|
|
2211
2252
|
[Brand.Type]?: 'chat.bsky.convo.defs#convoView';
|
|
@@ -2215,7 +2256,7 @@ declare module '@atcute/client/lexicons' {
|
|
|
2215
2256
|
rev: string;
|
|
2216
2257
|
unreadCount: number;
|
|
2217
2258
|
lastMessage?: Brand.Union<DeletedMessageView | MessageView>;
|
|
2218
|
-
|
|
2259
|
+
status?: 'accepted' | 'request' | (string & {});
|
|
2219
2260
|
}
|
|
2220
2261
|
interface DeletedMessageView {
|
|
2221
2262
|
[Brand.Type]?: 'chat.bsky.convo.defs#deletedMessageView';
|
|
@@ -2224,6 +2265,11 @@ declare module '@atcute/client/lexicons' {
|
|
|
2224
2265
|
sender: MessageViewSender;
|
|
2225
2266
|
sentAt: string;
|
|
2226
2267
|
}
|
|
2268
|
+
interface LogAcceptConvo {
|
|
2269
|
+
[Brand.Type]?: 'chat.bsky.convo.defs#logAcceptConvo';
|
|
2270
|
+
convoId: string;
|
|
2271
|
+
rev: string;
|
|
2272
|
+
}
|
|
2227
2273
|
interface LogBeginConvo {
|
|
2228
2274
|
[Brand.Type]?: 'chat.bsky.convo.defs#logBeginConvo';
|
|
2229
2275
|
convoId: string;
|
|
@@ -2246,6 +2292,22 @@ declare module '@atcute/client/lexicons' {
|
|
|
2246
2292
|
convoId: string;
|
|
2247
2293
|
rev: string;
|
|
2248
2294
|
}
|
|
2295
|
+
interface LogMuteConvo {
|
|
2296
|
+
[Brand.Type]?: 'chat.bsky.convo.defs#logMuteConvo';
|
|
2297
|
+
convoId: string;
|
|
2298
|
+
rev: string;
|
|
2299
|
+
}
|
|
2300
|
+
interface LogReadMessage {
|
|
2301
|
+
[Brand.Type]?: 'chat.bsky.convo.defs#logReadMessage';
|
|
2302
|
+
convoId: string;
|
|
2303
|
+
message: Brand.Union<DeletedMessageView | MessageView>;
|
|
2304
|
+
rev: string;
|
|
2305
|
+
}
|
|
2306
|
+
interface LogUnmuteConvo {
|
|
2307
|
+
[Brand.Type]?: 'chat.bsky.convo.defs#logUnmuteConvo';
|
|
2308
|
+
convoId: string;
|
|
2309
|
+
rev: string;
|
|
2310
|
+
}
|
|
2249
2311
|
interface MessageInput {
|
|
2250
2312
|
[Brand.Type]?: 'chat.bsky.convo.defs#messageInput';
|
|
2251
2313
|
/**
|
|
@@ -2301,6 +2363,21 @@ declare module '@atcute/client/lexicons' {
|
|
|
2301
2363
|
convo: ChatBskyConvoDefs.ConvoView;
|
|
2302
2364
|
}
|
|
2303
2365
|
}
|
|
2366
|
+
/** Get whether the requester and the other members can chat. If an existing convo is found for these members, it is returned. */
|
|
2367
|
+
namespace ChatBskyConvoGetConvoAvailability {
|
|
2368
|
+
interface Params {
|
|
2369
|
+
/**
|
|
2370
|
+
* Minimum array length: 1 \
|
|
2371
|
+
* Maximum array length: 10
|
|
2372
|
+
*/
|
|
2373
|
+
members: At.DID[];
|
|
2374
|
+
}
|
|
2375
|
+
type Input = undefined;
|
|
2376
|
+
interface Output {
|
|
2377
|
+
canChat: boolean;
|
|
2378
|
+
convo?: ChatBskyConvoDefs.ConvoView;
|
|
2379
|
+
}
|
|
2380
|
+
}
|
|
2304
2381
|
namespace ChatBskyConvoGetConvoForMembers {
|
|
2305
2382
|
interface Params {
|
|
2306
2383
|
/**
|
|
@@ -2320,7 +2397,7 @@ declare module '@atcute/client/lexicons' {
|
|
|
2320
2397
|
}
|
|
2321
2398
|
type Input = undefined;
|
|
2322
2399
|
interface Output {
|
|
2323
|
-
logs: Brand.Union<ChatBskyConvoDefs.LogBeginConvo | ChatBskyConvoDefs.LogCreateMessage | ChatBskyConvoDefs.LogDeleteMessage | ChatBskyConvoDefs.LogLeaveConvo>[];
|
|
2400
|
+
logs: Brand.Union<ChatBskyConvoDefs.LogAcceptConvo | ChatBskyConvoDefs.LogBeginConvo | ChatBskyConvoDefs.LogCreateMessage | ChatBskyConvoDefs.LogDeleteMessage | ChatBskyConvoDefs.LogLeaveConvo>[];
|
|
2324
2401
|
cursor?: string;
|
|
2325
2402
|
}
|
|
2326
2403
|
}
|
|
@@ -2361,6 +2438,8 @@ declare module '@atcute/client/lexicons' {
|
|
|
2361
2438
|
* @default 50
|
|
2362
2439
|
*/
|
|
2363
2440
|
limit?: number;
|
|
2441
|
+
readState?: 'unread' | (string & {});
|
|
2442
|
+
status?: 'accepted' | 'request' | (string & {});
|
|
2364
2443
|
}
|
|
2365
2444
|
type Input = undefined;
|
|
2366
2445
|
interface Output {
|
|
@@ -2691,6 +2770,10 @@ declare module '@atcute/client/lexicons' {
|
|
|
2691
2770
|
params: ChatBskyConvoGetConvo.Params;
|
|
2692
2771
|
output: ChatBskyConvoGetConvo.Output;
|
|
2693
2772
|
};
|
|
2773
|
+
'chat.bsky.convo.getConvoAvailability': {
|
|
2774
|
+
params: ChatBskyConvoGetConvoAvailability.Params;
|
|
2775
|
+
output: ChatBskyConvoGetConvoAvailability.Output;
|
|
2776
|
+
};
|
|
2694
2777
|
'chat.bsky.convo.getConvoForMembers': {
|
|
2695
2778
|
params: ChatBskyConvoGetConvoForMembers.Params;
|
|
2696
2779
|
output: ChatBskyConvoGetConvoForMembers.Output;
|
|
@@ -2758,6 +2841,10 @@ declare module '@atcute/client/lexicons' {
|
|
|
2758
2841
|
'chat.bsky.actor.deleteAccount': {
|
|
2759
2842
|
output: ChatBskyActorDeleteAccount.Output;
|
|
2760
2843
|
};
|
|
2844
|
+
'chat.bsky.convo.acceptConvo': {
|
|
2845
|
+
input: ChatBskyConvoAcceptConvo.Input;
|
|
2846
|
+
output: ChatBskyConvoAcceptConvo.Output;
|
|
2847
|
+
};
|
|
2761
2848
|
'chat.bsky.convo.deleteMessageForSelf': {
|
|
2762
2849
|
input: ChatBskyConvoDeleteMessageForSelf.Input;
|
|
2763
2850
|
output: ChatBskyConvoDeleteMessageForSelf.Output;
|
package/lib/lexicons.ts
CHANGED
|
@@ -146,6 +146,25 @@ declare module '@atcute/client/lexicons' {
|
|
|
146
146
|
/** The birth date of account owner. */
|
|
147
147
|
birthDate?: string;
|
|
148
148
|
}
|
|
149
|
+
/** Default post interaction settings for the account. These values should be applied as default values when creating new posts. These refs should mirror the threadgate and postgate records exactly. */
|
|
150
|
+
interface PostInteractionSettingsPref {
|
|
151
|
+
[Brand.Type]?: 'app.bsky.actor.defs#postInteractionSettingsPref';
|
|
152
|
+
/**
|
|
153
|
+
* Matches postgate record. List of rules defining who can embed this users posts. If value is an empty array or is undefined, no particular rules apply and anyone can embed. \
|
|
154
|
+
* Maximum array length: 5
|
|
155
|
+
*/
|
|
156
|
+
postgateEmbeddingRules?: Brand.Union<AppBskyFeedPostgate.DisableRule>[];
|
|
157
|
+
/**
|
|
158
|
+
* Matches threadgate record. List of rules defining who can reply to this users posts. If value is an empty array, no one can reply. If value is undefined, anyone can reply. \
|
|
159
|
+
* Maximum array length: 5
|
|
160
|
+
*/
|
|
161
|
+
threadgateAllowRules?: Brand.Union<
|
|
162
|
+
| AppBskyFeedThreadgate.FollowerRule
|
|
163
|
+
| AppBskyFeedThreadgate.FollowingRule
|
|
164
|
+
| AppBskyFeedThreadgate.ListRule
|
|
165
|
+
| AppBskyFeedThreadgate.MentionRule
|
|
166
|
+
>[];
|
|
167
|
+
}
|
|
149
168
|
type Preferences = Brand.Union<
|
|
150
169
|
| AdultContentPref
|
|
151
170
|
| BskyAppStatePref
|
|
@@ -156,6 +175,7 @@ declare module '@atcute/client/lexicons' {
|
|
|
156
175
|
| LabelersPref
|
|
157
176
|
| MutedWordsPref
|
|
158
177
|
| PersonalDetailsPref
|
|
178
|
+
| PostInteractionSettingsPref
|
|
159
179
|
| SavedFeedsPref
|
|
160
180
|
| SavedFeedsPrefV2
|
|
161
181
|
| ThreadViewPref
|
|
@@ -725,6 +745,11 @@ declare module '@atcute/client/lexicons' {
|
|
|
725
745
|
[Brand.Type]?: 'app.bsky.feed.defs#skeletonReasonRepost';
|
|
726
746
|
repost: At.Uri;
|
|
727
747
|
}
|
|
748
|
+
/** Metadata about this post within the context of the thread it is in. */
|
|
749
|
+
interface ThreadContext {
|
|
750
|
+
[Brand.Type]?: 'app.bsky.feed.defs#threadContext';
|
|
751
|
+
rootAuthorLike?: At.Uri;
|
|
752
|
+
}
|
|
728
753
|
interface ThreadgateView {
|
|
729
754
|
[Brand.Type]?: 'app.bsky.feed.defs#threadgateView';
|
|
730
755
|
cid?: At.CID;
|
|
@@ -737,6 +762,7 @@ declare module '@atcute/client/lexicons' {
|
|
|
737
762
|
post: PostView;
|
|
738
763
|
parent?: Brand.Union<BlockedPost | NotFoundPost | ThreadViewPost>;
|
|
739
764
|
replies?: Brand.Union<BlockedPost | NotFoundPost | ThreadViewPost>[];
|
|
765
|
+
threadContext?: ThreadContext;
|
|
740
766
|
}
|
|
741
767
|
/** Metadata about the requesting account's relationship with the subject content. Only has meaningful content for authed requests. */
|
|
742
768
|
interface ViewerState {
|
|
@@ -855,6 +881,7 @@ declare module '@atcute/client/lexicons' {
|
|
|
855
881
|
| 'posts_no_replies'
|
|
856
882
|
| 'posts_with_media'
|
|
857
883
|
| 'posts_with_replies'
|
|
884
|
+
| 'posts_with_video'
|
|
858
885
|
| (string & {});
|
|
859
886
|
/** @default false */
|
|
860
887
|
includePins?: boolean;
|
|
@@ -1226,7 +1253,10 @@ declare module '@atcute/client/lexicons' {
|
|
|
1226
1253
|
* Maximum array length: 50
|
|
1227
1254
|
*/
|
|
1228
1255
|
detachedEmbeddingUris?: At.Uri[];
|
|
1229
|
-
/**
|
|
1256
|
+
/**
|
|
1257
|
+
* List of rules defining who can embed this post. If value is an empty array or is undefined, no particular rules apply and anyone can embed. \
|
|
1258
|
+
* Maximum array length: 5
|
|
1259
|
+
*/
|
|
1230
1260
|
embeddingRules?: Brand.Union<DisableRule>[];
|
|
1231
1261
|
}
|
|
1232
1262
|
/** Disables embedding of this post. */
|
|
@@ -1311,14 +1341,21 @@ declare module '@atcute/client/lexicons' {
|
|
|
1311
1341
|
createdAt: string;
|
|
1312
1342
|
/** Reference (AT-URI) to the post record. */
|
|
1313
1343
|
post: At.Uri;
|
|
1314
|
-
/**
|
|
1315
|
-
|
|
1344
|
+
/**
|
|
1345
|
+
* List of rules defining who can reply to this post. If value is an empty array, no one can reply. If value is undefined, anyone can reply. \
|
|
1346
|
+
* Maximum array length: 5
|
|
1347
|
+
*/
|
|
1348
|
+
allow?: Brand.Union<FollowerRule | FollowingRule | ListRule | MentionRule>[];
|
|
1316
1349
|
/**
|
|
1317
1350
|
* List of hidden reply URIs. \
|
|
1318
1351
|
* Maximum array length: 50
|
|
1319
1352
|
*/
|
|
1320
1353
|
hiddenReplies?: At.Uri[];
|
|
1321
1354
|
}
|
|
1355
|
+
/** Allow replies from actors who follow you. */
|
|
1356
|
+
interface FollowerRule {
|
|
1357
|
+
[Brand.Type]?: 'app.bsky.feed.threadgate#followerRule';
|
|
1358
|
+
}
|
|
1322
1359
|
/** Allow replies from actors you follow. */
|
|
1323
1360
|
interface FollowingRule {
|
|
1324
1361
|
[Brand.Type]?: 'app.bsky.feed.threadgate#followingRule';
|
|
@@ -2364,6 +2401,17 @@ declare module '@atcute/client/lexicons' {
|
|
|
2364
2401
|
type Output = Uint8Array;
|
|
2365
2402
|
}
|
|
2366
2403
|
|
|
2404
|
+
namespace ChatBskyConvoAcceptConvo {
|
|
2405
|
+
interface Params {}
|
|
2406
|
+
interface Input {
|
|
2407
|
+
convoId: string;
|
|
2408
|
+
}
|
|
2409
|
+
interface Output {
|
|
2410
|
+
/** Rev when the convo was accepted. If not present, the convo was already accepted. */
|
|
2411
|
+
rev?: string;
|
|
2412
|
+
}
|
|
2413
|
+
}
|
|
2414
|
+
|
|
2367
2415
|
namespace ChatBskyConvoDefs {
|
|
2368
2416
|
interface ConvoView {
|
|
2369
2417
|
[Brand.Type]?: 'chat.bsky.convo.defs#convoView';
|
|
@@ -2373,7 +2421,7 @@ declare module '@atcute/client/lexicons' {
|
|
|
2373
2421
|
rev: string;
|
|
2374
2422
|
unreadCount: number;
|
|
2375
2423
|
lastMessage?: Brand.Union<DeletedMessageView | MessageView>;
|
|
2376
|
-
|
|
2424
|
+
status?: 'accepted' | 'request' | (string & {});
|
|
2377
2425
|
}
|
|
2378
2426
|
interface DeletedMessageView {
|
|
2379
2427
|
[Brand.Type]?: 'chat.bsky.convo.defs#deletedMessageView';
|
|
@@ -2382,6 +2430,11 @@ declare module '@atcute/client/lexicons' {
|
|
|
2382
2430
|
sender: MessageViewSender;
|
|
2383
2431
|
sentAt: string;
|
|
2384
2432
|
}
|
|
2433
|
+
interface LogAcceptConvo {
|
|
2434
|
+
[Brand.Type]?: 'chat.bsky.convo.defs#logAcceptConvo';
|
|
2435
|
+
convoId: string;
|
|
2436
|
+
rev: string;
|
|
2437
|
+
}
|
|
2385
2438
|
interface LogBeginConvo {
|
|
2386
2439
|
[Brand.Type]?: 'chat.bsky.convo.defs#logBeginConvo';
|
|
2387
2440
|
convoId: string;
|
|
@@ -2404,6 +2457,22 @@ declare module '@atcute/client/lexicons' {
|
|
|
2404
2457
|
convoId: string;
|
|
2405
2458
|
rev: string;
|
|
2406
2459
|
}
|
|
2460
|
+
interface LogMuteConvo {
|
|
2461
|
+
[Brand.Type]?: 'chat.bsky.convo.defs#logMuteConvo';
|
|
2462
|
+
convoId: string;
|
|
2463
|
+
rev: string;
|
|
2464
|
+
}
|
|
2465
|
+
interface LogReadMessage {
|
|
2466
|
+
[Brand.Type]?: 'chat.bsky.convo.defs#logReadMessage';
|
|
2467
|
+
convoId: string;
|
|
2468
|
+
message: Brand.Union<DeletedMessageView | MessageView>;
|
|
2469
|
+
rev: string;
|
|
2470
|
+
}
|
|
2471
|
+
interface LogUnmuteConvo {
|
|
2472
|
+
[Brand.Type]?: 'chat.bsky.convo.defs#logUnmuteConvo';
|
|
2473
|
+
convoId: string;
|
|
2474
|
+
rev: string;
|
|
2475
|
+
}
|
|
2407
2476
|
interface MessageInput {
|
|
2408
2477
|
[Brand.Type]?: 'chat.bsky.convo.defs#messageInput';
|
|
2409
2478
|
/**
|
|
@@ -2461,6 +2530,22 @@ declare module '@atcute/client/lexicons' {
|
|
|
2461
2530
|
}
|
|
2462
2531
|
}
|
|
2463
2532
|
|
|
2533
|
+
/** Get whether the requester and the other members can chat. If an existing convo is found for these members, it is returned. */
|
|
2534
|
+
namespace ChatBskyConvoGetConvoAvailability {
|
|
2535
|
+
interface Params {
|
|
2536
|
+
/**
|
|
2537
|
+
* Minimum array length: 1 \
|
|
2538
|
+
* Maximum array length: 10
|
|
2539
|
+
*/
|
|
2540
|
+
members: At.DID[];
|
|
2541
|
+
}
|
|
2542
|
+
type Input = undefined;
|
|
2543
|
+
interface Output {
|
|
2544
|
+
canChat: boolean;
|
|
2545
|
+
convo?: ChatBskyConvoDefs.ConvoView;
|
|
2546
|
+
}
|
|
2547
|
+
}
|
|
2548
|
+
|
|
2464
2549
|
namespace ChatBskyConvoGetConvoForMembers {
|
|
2465
2550
|
interface Params {
|
|
2466
2551
|
/**
|
|
@@ -2482,6 +2567,7 @@ declare module '@atcute/client/lexicons' {
|
|
|
2482
2567
|
type Input = undefined;
|
|
2483
2568
|
interface Output {
|
|
2484
2569
|
logs: Brand.Union<
|
|
2570
|
+
| ChatBskyConvoDefs.LogAcceptConvo
|
|
2485
2571
|
| ChatBskyConvoDefs.LogBeginConvo
|
|
2486
2572
|
| ChatBskyConvoDefs.LogCreateMessage
|
|
2487
2573
|
| ChatBskyConvoDefs.LogDeleteMessage
|
|
@@ -2529,6 +2615,8 @@ declare module '@atcute/client/lexicons' {
|
|
|
2529
2615
|
* @default 50
|
|
2530
2616
|
*/
|
|
2531
2617
|
limit?: number;
|
|
2618
|
+
readState?: 'unread' | (string & {});
|
|
2619
|
+
status?: 'accepted' | 'request' | (string & {});
|
|
2532
2620
|
}
|
|
2533
2621
|
type Input = undefined;
|
|
2534
2622
|
interface Output {
|
|
@@ -2863,6 +2951,10 @@ declare module '@atcute/client/lexicons' {
|
|
|
2863
2951
|
params: ChatBskyConvoGetConvo.Params;
|
|
2864
2952
|
output: ChatBskyConvoGetConvo.Output;
|
|
2865
2953
|
};
|
|
2954
|
+
'chat.bsky.convo.getConvoAvailability': {
|
|
2955
|
+
params: ChatBskyConvoGetConvoAvailability.Params;
|
|
2956
|
+
output: ChatBskyConvoGetConvoAvailability.Output;
|
|
2957
|
+
};
|
|
2866
2958
|
'chat.bsky.convo.getConvoForMembers': {
|
|
2867
2959
|
params: ChatBskyConvoGetConvoForMembers.Params;
|
|
2868
2960
|
output: ChatBskyConvoGetConvoForMembers.Output;
|
|
@@ -2931,6 +3023,10 @@ declare module '@atcute/client/lexicons' {
|
|
|
2931
3023
|
'chat.bsky.actor.deleteAccount': {
|
|
2932
3024
|
output: ChatBskyActorDeleteAccount.Output;
|
|
2933
3025
|
};
|
|
3026
|
+
'chat.bsky.convo.acceptConvo': {
|
|
3027
|
+
input: ChatBskyConvoAcceptConvo.Input;
|
|
3028
|
+
output: ChatBskyConvoAcceptConvo.Output;
|
|
3029
|
+
};
|
|
2934
3030
|
'chat.bsky.convo.deleteMessageForSelf': {
|
|
2935
3031
|
input: ChatBskyConvoDeleteMessageForSelf.Input;
|
|
2936
3032
|
output: ChatBskyConvoDeleteMessageForSelf.Output;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@atcute/bluesky",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.14",
|
|
5
5
|
"description": "Bluesky type definitions for atcute",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@atcute/client": "^1.0.0 || ^2.0.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@atcute/client": "^2.0.
|
|
24
|
+
"@atcute/client": "^2.0.8",
|
|
25
25
|
"@atcute/lex-cli": "^1.0.4"
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|