@atcute/bluesky 1.0.13 → 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.
@@ -2236,6 +2236,17 @@ declare module '@atcute/client/lexicons' {
2236
2236
  type Input = undefined;
2237
2237
  type Output = Uint8Array;
2238
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
+ }
2239
2250
  namespace ChatBskyConvoDefs {
2240
2251
  interface ConvoView {
2241
2252
  [Brand.Type]?: 'chat.bsky.convo.defs#convoView';
@@ -2245,7 +2256,7 @@ declare module '@atcute/client/lexicons' {
2245
2256
  rev: string;
2246
2257
  unreadCount: number;
2247
2258
  lastMessage?: Brand.Union<DeletedMessageView | MessageView>;
2248
- opened?: boolean;
2259
+ status?: 'accepted' | 'request' | (string & {});
2249
2260
  }
2250
2261
  interface DeletedMessageView {
2251
2262
  [Brand.Type]?: 'chat.bsky.convo.defs#deletedMessageView';
@@ -2254,6 +2265,11 @@ declare module '@atcute/client/lexicons' {
2254
2265
  sender: MessageViewSender;
2255
2266
  sentAt: string;
2256
2267
  }
2268
+ interface LogAcceptConvo {
2269
+ [Brand.Type]?: 'chat.bsky.convo.defs#logAcceptConvo';
2270
+ convoId: string;
2271
+ rev: string;
2272
+ }
2257
2273
  interface LogBeginConvo {
2258
2274
  [Brand.Type]?: 'chat.bsky.convo.defs#logBeginConvo';
2259
2275
  convoId: string;
@@ -2276,6 +2292,22 @@ declare module '@atcute/client/lexicons' {
2276
2292
  convoId: string;
2277
2293
  rev: string;
2278
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
+ }
2279
2311
  interface MessageInput {
2280
2312
  [Brand.Type]?: 'chat.bsky.convo.defs#messageInput';
2281
2313
  /**
@@ -2331,6 +2363,21 @@ declare module '@atcute/client/lexicons' {
2331
2363
  convo: ChatBskyConvoDefs.ConvoView;
2332
2364
  }
2333
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
+ }
2334
2381
  namespace ChatBskyConvoGetConvoForMembers {
2335
2382
  interface Params {
2336
2383
  /**
@@ -2350,7 +2397,7 @@ declare module '@atcute/client/lexicons' {
2350
2397
  }
2351
2398
  type Input = undefined;
2352
2399
  interface Output {
2353
- 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>[];
2354
2401
  cursor?: string;
2355
2402
  }
2356
2403
  }
@@ -2391,6 +2438,8 @@ declare module '@atcute/client/lexicons' {
2391
2438
  * @default 50
2392
2439
  */
2393
2440
  limit?: number;
2441
+ readState?: 'unread' | (string & {});
2442
+ status?: 'accepted' | 'request' | (string & {});
2394
2443
  }
2395
2444
  type Input = undefined;
2396
2445
  interface Output {
@@ -2721,6 +2770,10 @@ declare module '@atcute/client/lexicons' {
2721
2770
  params: ChatBskyConvoGetConvo.Params;
2722
2771
  output: ChatBskyConvoGetConvo.Output;
2723
2772
  };
2773
+ 'chat.bsky.convo.getConvoAvailability': {
2774
+ params: ChatBskyConvoGetConvoAvailability.Params;
2775
+ output: ChatBskyConvoGetConvoAvailability.Output;
2776
+ };
2724
2777
  'chat.bsky.convo.getConvoForMembers': {
2725
2778
  params: ChatBskyConvoGetConvoForMembers.Params;
2726
2779
  output: ChatBskyConvoGetConvoForMembers.Output;
@@ -2788,6 +2841,10 @@ declare module '@atcute/client/lexicons' {
2788
2841
  'chat.bsky.actor.deleteAccount': {
2789
2842
  output: ChatBskyActorDeleteAccount.Output;
2790
2843
  };
2844
+ 'chat.bsky.convo.acceptConvo': {
2845
+ input: ChatBskyConvoAcceptConvo.Input;
2846
+ output: ChatBskyConvoAcceptConvo.Output;
2847
+ };
2791
2848
  'chat.bsky.convo.deleteMessageForSelf': {
2792
2849
  input: ChatBskyConvoDeleteMessageForSelf.Input;
2793
2850
  output: ChatBskyConvoDeleteMessageForSelf.Output;
package/lib/lexicons.ts CHANGED
@@ -2401,6 +2401,17 @@ declare module '@atcute/client/lexicons' {
2401
2401
  type Output = Uint8Array;
2402
2402
  }
2403
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
+
2404
2415
  namespace ChatBskyConvoDefs {
2405
2416
  interface ConvoView {
2406
2417
  [Brand.Type]?: 'chat.bsky.convo.defs#convoView';
@@ -2410,7 +2421,7 @@ declare module '@atcute/client/lexicons' {
2410
2421
  rev: string;
2411
2422
  unreadCount: number;
2412
2423
  lastMessage?: Brand.Union<DeletedMessageView | MessageView>;
2413
- opened?: boolean;
2424
+ status?: 'accepted' | 'request' | (string & {});
2414
2425
  }
2415
2426
  interface DeletedMessageView {
2416
2427
  [Brand.Type]?: 'chat.bsky.convo.defs#deletedMessageView';
@@ -2419,6 +2430,11 @@ declare module '@atcute/client/lexicons' {
2419
2430
  sender: MessageViewSender;
2420
2431
  sentAt: string;
2421
2432
  }
2433
+ interface LogAcceptConvo {
2434
+ [Brand.Type]?: 'chat.bsky.convo.defs#logAcceptConvo';
2435
+ convoId: string;
2436
+ rev: string;
2437
+ }
2422
2438
  interface LogBeginConvo {
2423
2439
  [Brand.Type]?: 'chat.bsky.convo.defs#logBeginConvo';
2424
2440
  convoId: string;
@@ -2441,6 +2457,22 @@ declare module '@atcute/client/lexicons' {
2441
2457
  convoId: string;
2442
2458
  rev: string;
2443
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
+ }
2444
2476
  interface MessageInput {
2445
2477
  [Brand.Type]?: 'chat.bsky.convo.defs#messageInput';
2446
2478
  /**
@@ -2498,6 +2530,22 @@ declare module '@atcute/client/lexicons' {
2498
2530
  }
2499
2531
  }
2500
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
+
2501
2549
  namespace ChatBskyConvoGetConvoForMembers {
2502
2550
  interface Params {
2503
2551
  /**
@@ -2519,6 +2567,7 @@ declare module '@atcute/client/lexicons' {
2519
2567
  type Input = undefined;
2520
2568
  interface Output {
2521
2569
  logs: Brand.Union<
2570
+ | ChatBskyConvoDefs.LogAcceptConvo
2522
2571
  | ChatBskyConvoDefs.LogBeginConvo
2523
2572
  | ChatBskyConvoDefs.LogCreateMessage
2524
2573
  | ChatBskyConvoDefs.LogDeleteMessage
@@ -2566,6 +2615,8 @@ declare module '@atcute/client/lexicons' {
2566
2615
  * @default 50
2567
2616
  */
2568
2617
  limit?: number;
2618
+ readState?: 'unread' | (string & {});
2619
+ status?: 'accepted' | 'request' | (string & {});
2569
2620
  }
2570
2621
  type Input = undefined;
2571
2622
  interface Output {
@@ -2900,6 +2951,10 @@ declare module '@atcute/client/lexicons' {
2900
2951
  params: ChatBskyConvoGetConvo.Params;
2901
2952
  output: ChatBskyConvoGetConvo.Output;
2902
2953
  };
2954
+ 'chat.bsky.convo.getConvoAvailability': {
2955
+ params: ChatBskyConvoGetConvoAvailability.Params;
2956
+ output: ChatBskyConvoGetConvoAvailability.Output;
2957
+ };
2903
2958
  'chat.bsky.convo.getConvoForMembers': {
2904
2959
  params: ChatBskyConvoGetConvoForMembers.Params;
2905
2960
  output: ChatBskyConvoGetConvoForMembers.Output;
@@ -2968,6 +3023,10 @@ declare module '@atcute/client/lexicons' {
2968
3023
  'chat.bsky.actor.deleteAccount': {
2969
3024
  output: ChatBskyActorDeleteAccount.Output;
2970
3025
  };
3026
+ 'chat.bsky.convo.acceptConvo': {
3027
+ input: ChatBskyConvoAcceptConvo.Input;
3028
+ output: ChatBskyConvoAcceptConvo.Output;
3029
+ };
2971
3030
  'chat.bsky.convo.deleteMessageForSelf': {
2972
3031
  input: ChatBskyConvoDeleteMessageForSelf.Input;
2973
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.13",
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.7",
24
+ "@atcute/client": "^2.0.8",
25
25
  "@atcute/lex-cli": "^1.0.4"
26
26
  },
27
27
  "scripts": {