@atcute/bluesky 1.0.13 → 1.0.15

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.
@@ -515,6 +515,7 @@ declare module '@atcute/client/lexicons' {
515
515
  namespace AppBskyEmbedVideo {
516
516
  interface Main {
517
517
  [Brand.Type]?: 'app.bsky.embed.video';
518
+ /** The mp4 video file. May be up to 100mb, formerly limited to 50mb. */
518
519
  video: At.Blob;
519
520
  /**
520
521
  * Alt text description of the video, for accessibility. \
@@ -1793,6 +1794,12 @@ declare module '@atcute/client/lexicons' {
1793
1794
  labels?: ComAtprotoLabelDefs.Label[];
1794
1795
  /** Minimum: 0 */
1795
1796
  likeCount?: number;
1797
+ /** The set of report reason 'codes' which are in-scope for this service to review and action. These usually align to policy categories. If not defined (distinct from empty array), all reason types are allowed. */
1798
+ reasonTypes?: ComAtprotoModerationDefs.ReasonType[];
1799
+ /** Set of record types (collection NSIDs) which can be reported to this service. If not defined (distinct from empty array), default is any record type. */
1800
+ subjectCollections?: string[];
1801
+ /** The set of subject types (account, record, etc) this service accepts reports on. */
1802
+ subjectTypes?: ComAtprotoModerationDefs.SubjectType[];
1796
1803
  viewer?: LabelerViewerState;
1797
1804
  }
1798
1805
  interface LabelerViewerState {
@@ -1819,6 +1826,12 @@ declare module '@atcute/client/lexicons' {
1819
1826
  createdAt: string;
1820
1827
  policies: AppBskyLabelerDefs.LabelerPolicies;
1821
1828
  labels?: Brand.Union<ComAtprotoLabelDefs.SelfLabels>;
1829
+ /** The set of report reason 'codes' which are in-scope for this service to review and action. These usually align to policy categories. If not defined (distinct from empty array), all reason types are allowed. */
1830
+ reasonTypes?: ComAtprotoModerationDefs.ReasonType[];
1831
+ /** Set of record types (collection NSIDs) which can be reported to this service. If not defined (distinct from empty array), default is any record type. */
1832
+ subjectCollections?: string[];
1833
+ /** The set of subject types (account, record, etc) this service accepts reports on. */
1834
+ subjectTypes?: ComAtprotoModerationDefs.SubjectType[];
1822
1835
  }
1823
1836
  }
1824
1837
  /** Count the number of unread notifications for the requesting account. Requires auth. */
@@ -2236,6 +2249,17 @@ declare module '@atcute/client/lexicons' {
2236
2249
  type Input = undefined;
2237
2250
  type Output = Uint8Array;
2238
2251
  }
2252
+ namespace ChatBskyConvoAcceptConvo {
2253
+ interface Params {
2254
+ }
2255
+ interface Input {
2256
+ convoId: string;
2257
+ }
2258
+ interface Output {
2259
+ /** Rev when the convo was accepted. If not present, the convo was already accepted. */
2260
+ rev?: string;
2261
+ }
2262
+ }
2239
2263
  namespace ChatBskyConvoDefs {
2240
2264
  interface ConvoView {
2241
2265
  [Brand.Type]?: 'chat.bsky.convo.defs#convoView';
@@ -2245,7 +2269,7 @@ declare module '@atcute/client/lexicons' {
2245
2269
  rev: string;
2246
2270
  unreadCount: number;
2247
2271
  lastMessage?: Brand.Union<DeletedMessageView | MessageView>;
2248
- opened?: boolean;
2272
+ status?: 'accepted' | 'request' | (string & {});
2249
2273
  }
2250
2274
  interface DeletedMessageView {
2251
2275
  [Brand.Type]?: 'chat.bsky.convo.defs#deletedMessageView';
@@ -2254,6 +2278,11 @@ declare module '@atcute/client/lexicons' {
2254
2278
  sender: MessageViewSender;
2255
2279
  sentAt: string;
2256
2280
  }
2281
+ interface LogAcceptConvo {
2282
+ [Brand.Type]?: 'chat.bsky.convo.defs#logAcceptConvo';
2283
+ convoId: string;
2284
+ rev: string;
2285
+ }
2257
2286
  interface LogBeginConvo {
2258
2287
  [Brand.Type]?: 'chat.bsky.convo.defs#logBeginConvo';
2259
2288
  convoId: string;
@@ -2276,6 +2305,22 @@ declare module '@atcute/client/lexicons' {
2276
2305
  convoId: string;
2277
2306
  rev: string;
2278
2307
  }
2308
+ interface LogMuteConvo {
2309
+ [Brand.Type]?: 'chat.bsky.convo.defs#logMuteConvo';
2310
+ convoId: string;
2311
+ rev: string;
2312
+ }
2313
+ interface LogReadMessage {
2314
+ [Brand.Type]?: 'chat.bsky.convo.defs#logReadMessage';
2315
+ convoId: string;
2316
+ message: Brand.Union<DeletedMessageView | MessageView>;
2317
+ rev: string;
2318
+ }
2319
+ interface LogUnmuteConvo {
2320
+ [Brand.Type]?: 'chat.bsky.convo.defs#logUnmuteConvo';
2321
+ convoId: string;
2322
+ rev: string;
2323
+ }
2279
2324
  interface MessageInput {
2280
2325
  [Brand.Type]?: 'chat.bsky.convo.defs#messageInput';
2281
2326
  /**
@@ -2331,6 +2376,21 @@ declare module '@atcute/client/lexicons' {
2331
2376
  convo: ChatBskyConvoDefs.ConvoView;
2332
2377
  }
2333
2378
  }
2379
+ /** Get whether the requester and the other members can chat. If an existing convo is found for these members, it is returned. */
2380
+ namespace ChatBskyConvoGetConvoAvailability {
2381
+ interface Params {
2382
+ /**
2383
+ * Minimum array length: 1 \
2384
+ * Maximum array length: 10
2385
+ */
2386
+ members: At.DID[];
2387
+ }
2388
+ type Input = undefined;
2389
+ interface Output {
2390
+ canChat: boolean;
2391
+ convo?: ChatBskyConvoDefs.ConvoView;
2392
+ }
2393
+ }
2334
2394
  namespace ChatBskyConvoGetConvoForMembers {
2335
2395
  interface Params {
2336
2396
  /**
@@ -2350,7 +2410,7 @@ declare module '@atcute/client/lexicons' {
2350
2410
  }
2351
2411
  type Input = undefined;
2352
2412
  interface Output {
2353
- logs: Brand.Union<ChatBskyConvoDefs.LogBeginConvo | ChatBskyConvoDefs.LogCreateMessage | ChatBskyConvoDefs.LogDeleteMessage | ChatBskyConvoDefs.LogLeaveConvo>[];
2413
+ logs: Brand.Union<ChatBskyConvoDefs.LogAcceptConvo | ChatBskyConvoDefs.LogBeginConvo | ChatBskyConvoDefs.LogCreateMessage | ChatBskyConvoDefs.LogDeleteMessage | ChatBskyConvoDefs.LogLeaveConvo>[];
2354
2414
  cursor?: string;
2355
2415
  }
2356
2416
  }
@@ -2391,6 +2451,8 @@ declare module '@atcute/client/lexicons' {
2391
2451
  * @default 50
2392
2452
  */
2393
2453
  limit?: number;
2454
+ readState?: 'unread' | (string & {});
2455
+ status?: 'accepted' | 'request' | (string & {});
2394
2456
  }
2395
2457
  type Input = undefined;
2396
2458
  interface Output {
@@ -2443,6 +2505,17 @@ declare module '@atcute/client/lexicons' {
2443
2505
  convo: ChatBskyConvoDefs.ConvoView;
2444
2506
  }
2445
2507
  }
2508
+ namespace ChatBskyConvoUpdateAllRead {
2509
+ interface Params {
2510
+ }
2511
+ interface Input {
2512
+ status?: 'accepted' | 'request' | (string & {});
2513
+ }
2514
+ interface Output {
2515
+ /** The count of updated convos. */
2516
+ updatedCount: number;
2517
+ }
2518
+ }
2446
2519
  namespace ChatBskyConvoUpdateRead {
2447
2520
  interface Params {
2448
2521
  }
@@ -2721,6 +2794,10 @@ declare module '@atcute/client/lexicons' {
2721
2794
  params: ChatBskyConvoGetConvo.Params;
2722
2795
  output: ChatBskyConvoGetConvo.Output;
2723
2796
  };
2797
+ 'chat.bsky.convo.getConvoAvailability': {
2798
+ params: ChatBskyConvoGetConvoAvailability.Params;
2799
+ output: ChatBskyConvoGetConvoAvailability.Output;
2800
+ };
2724
2801
  'chat.bsky.convo.getConvoForMembers': {
2725
2802
  params: ChatBskyConvoGetConvoForMembers.Params;
2726
2803
  output: ChatBskyConvoGetConvoForMembers.Output;
@@ -2788,6 +2865,10 @@ declare module '@atcute/client/lexicons' {
2788
2865
  'chat.bsky.actor.deleteAccount': {
2789
2866
  output: ChatBskyActorDeleteAccount.Output;
2790
2867
  };
2868
+ 'chat.bsky.convo.acceptConvo': {
2869
+ input: ChatBskyConvoAcceptConvo.Input;
2870
+ output: ChatBskyConvoAcceptConvo.Output;
2871
+ };
2791
2872
  'chat.bsky.convo.deleteMessageForSelf': {
2792
2873
  input: ChatBskyConvoDeleteMessageForSelf.Input;
2793
2874
  output: ChatBskyConvoDeleteMessageForSelf.Output;
@@ -2812,6 +2893,10 @@ declare module '@atcute/client/lexicons' {
2812
2893
  input: ChatBskyConvoUnmuteConvo.Input;
2813
2894
  output: ChatBskyConvoUnmuteConvo.Output;
2814
2895
  };
2896
+ 'chat.bsky.convo.updateAllRead': {
2897
+ input: ChatBskyConvoUpdateAllRead.Input;
2898
+ output: ChatBskyConvoUpdateAllRead.Output;
2899
+ };
2815
2900
  'chat.bsky.convo.updateRead': {
2816
2901
  input: ChatBskyConvoUpdateRead.Input;
2817
2902
  output: ChatBskyConvoUpdateRead.Output;
package/lib/lexicons.ts CHANGED
@@ -567,6 +567,7 @@ declare module '@atcute/client/lexicons' {
567
567
  namespace AppBskyEmbedVideo {
568
568
  interface Main {
569
569
  [Brand.Type]?: 'app.bsky.embed.video';
570
+ /** The mp4 video file. May be up to 100mb, formerly limited to 50mb. */
570
571
  video: At.Blob;
571
572
  /**
572
573
  * Alt text description of the video, for accessibility. \
@@ -1933,6 +1934,12 @@ declare module '@atcute/client/lexicons' {
1933
1934
  labels?: ComAtprotoLabelDefs.Label[];
1934
1935
  /** Minimum: 0 */
1935
1936
  likeCount?: number;
1937
+ /** The set of report reason 'codes' which are in-scope for this service to review and action. These usually align to policy categories. If not defined (distinct from empty array), all reason types are allowed. */
1938
+ reasonTypes?: ComAtprotoModerationDefs.ReasonType[];
1939
+ /** Set of record types (collection NSIDs) which can be reported to this service. If not defined (distinct from empty array), default is any record type. */
1940
+ subjectCollections?: string[];
1941
+ /** The set of subject types (account, record, etc) this service accepts reports on. */
1942
+ subjectTypes?: ComAtprotoModerationDefs.SubjectType[];
1936
1943
  viewer?: LabelerViewerState;
1937
1944
  }
1938
1945
  interface LabelerViewerState {
@@ -1961,6 +1968,12 @@ declare module '@atcute/client/lexicons' {
1961
1968
  createdAt: string;
1962
1969
  policies: AppBskyLabelerDefs.LabelerPolicies;
1963
1970
  labels?: Brand.Union<ComAtprotoLabelDefs.SelfLabels>;
1971
+ /** The set of report reason 'codes' which are in-scope for this service to review and action. These usually align to policy categories. If not defined (distinct from empty array), all reason types are allowed. */
1972
+ reasonTypes?: ComAtprotoModerationDefs.ReasonType[];
1973
+ /** Set of record types (collection NSIDs) which can be reported to this service. If not defined (distinct from empty array), default is any record type. */
1974
+ subjectCollections?: string[];
1975
+ /** The set of subject types (account, record, etc) this service accepts reports on. */
1976
+ subjectTypes?: ComAtprotoModerationDefs.SubjectType[];
1964
1977
  }
1965
1978
  }
1966
1979
 
@@ -2401,6 +2414,17 @@ declare module '@atcute/client/lexicons' {
2401
2414
  type Output = Uint8Array;
2402
2415
  }
2403
2416
 
2417
+ namespace ChatBskyConvoAcceptConvo {
2418
+ interface Params {}
2419
+ interface Input {
2420
+ convoId: string;
2421
+ }
2422
+ interface Output {
2423
+ /** Rev when the convo was accepted. If not present, the convo was already accepted. */
2424
+ rev?: string;
2425
+ }
2426
+ }
2427
+
2404
2428
  namespace ChatBskyConvoDefs {
2405
2429
  interface ConvoView {
2406
2430
  [Brand.Type]?: 'chat.bsky.convo.defs#convoView';
@@ -2410,7 +2434,7 @@ declare module '@atcute/client/lexicons' {
2410
2434
  rev: string;
2411
2435
  unreadCount: number;
2412
2436
  lastMessage?: Brand.Union<DeletedMessageView | MessageView>;
2413
- opened?: boolean;
2437
+ status?: 'accepted' | 'request' | (string & {});
2414
2438
  }
2415
2439
  interface DeletedMessageView {
2416
2440
  [Brand.Type]?: 'chat.bsky.convo.defs#deletedMessageView';
@@ -2419,6 +2443,11 @@ declare module '@atcute/client/lexicons' {
2419
2443
  sender: MessageViewSender;
2420
2444
  sentAt: string;
2421
2445
  }
2446
+ interface LogAcceptConvo {
2447
+ [Brand.Type]?: 'chat.bsky.convo.defs#logAcceptConvo';
2448
+ convoId: string;
2449
+ rev: string;
2450
+ }
2422
2451
  interface LogBeginConvo {
2423
2452
  [Brand.Type]?: 'chat.bsky.convo.defs#logBeginConvo';
2424
2453
  convoId: string;
@@ -2441,6 +2470,22 @@ declare module '@atcute/client/lexicons' {
2441
2470
  convoId: string;
2442
2471
  rev: string;
2443
2472
  }
2473
+ interface LogMuteConvo {
2474
+ [Brand.Type]?: 'chat.bsky.convo.defs#logMuteConvo';
2475
+ convoId: string;
2476
+ rev: string;
2477
+ }
2478
+ interface LogReadMessage {
2479
+ [Brand.Type]?: 'chat.bsky.convo.defs#logReadMessage';
2480
+ convoId: string;
2481
+ message: Brand.Union<DeletedMessageView | MessageView>;
2482
+ rev: string;
2483
+ }
2484
+ interface LogUnmuteConvo {
2485
+ [Brand.Type]?: 'chat.bsky.convo.defs#logUnmuteConvo';
2486
+ convoId: string;
2487
+ rev: string;
2488
+ }
2444
2489
  interface MessageInput {
2445
2490
  [Brand.Type]?: 'chat.bsky.convo.defs#messageInput';
2446
2491
  /**
@@ -2498,6 +2543,22 @@ declare module '@atcute/client/lexicons' {
2498
2543
  }
2499
2544
  }
2500
2545
 
2546
+ /** Get whether the requester and the other members can chat. If an existing convo is found for these members, it is returned. */
2547
+ namespace ChatBskyConvoGetConvoAvailability {
2548
+ interface Params {
2549
+ /**
2550
+ * Minimum array length: 1 \
2551
+ * Maximum array length: 10
2552
+ */
2553
+ members: At.DID[];
2554
+ }
2555
+ type Input = undefined;
2556
+ interface Output {
2557
+ canChat: boolean;
2558
+ convo?: ChatBskyConvoDefs.ConvoView;
2559
+ }
2560
+ }
2561
+
2501
2562
  namespace ChatBskyConvoGetConvoForMembers {
2502
2563
  interface Params {
2503
2564
  /**
@@ -2519,6 +2580,7 @@ declare module '@atcute/client/lexicons' {
2519
2580
  type Input = undefined;
2520
2581
  interface Output {
2521
2582
  logs: Brand.Union<
2583
+ | ChatBskyConvoDefs.LogAcceptConvo
2522
2584
  | ChatBskyConvoDefs.LogBeginConvo
2523
2585
  | ChatBskyConvoDefs.LogCreateMessage
2524
2586
  | ChatBskyConvoDefs.LogDeleteMessage
@@ -2566,6 +2628,8 @@ declare module '@atcute/client/lexicons' {
2566
2628
  * @default 50
2567
2629
  */
2568
2630
  limit?: number;
2631
+ readState?: 'unread' | (string & {});
2632
+ status?: 'accepted' | 'request' | (string & {});
2569
2633
  }
2570
2634
  type Input = undefined;
2571
2635
  interface Output {
@@ -2619,6 +2683,17 @@ declare module '@atcute/client/lexicons' {
2619
2683
  }
2620
2684
  }
2621
2685
 
2686
+ namespace ChatBskyConvoUpdateAllRead {
2687
+ interface Params {}
2688
+ interface Input {
2689
+ status?: 'accepted' | 'request' | (string & {});
2690
+ }
2691
+ interface Output {
2692
+ /** The count of updated convos. */
2693
+ updatedCount: number;
2694
+ }
2695
+ }
2696
+
2622
2697
  namespace ChatBskyConvoUpdateRead {
2623
2698
  interface Params {}
2624
2699
  interface Input {
@@ -2900,6 +2975,10 @@ declare module '@atcute/client/lexicons' {
2900
2975
  params: ChatBskyConvoGetConvo.Params;
2901
2976
  output: ChatBskyConvoGetConvo.Output;
2902
2977
  };
2978
+ 'chat.bsky.convo.getConvoAvailability': {
2979
+ params: ChatBskyConvoGetConvoAvailability.Params;
2980
+ output: ChatBskyConvoGetConvoAvailability.Output;
2981
+ };
2903
2982
  'chat.bsky.convo.getConvoForMembers': {
2904
2983
  params: ChatBskyConvoGetConvoForMembers.Params;
2905
2984
  output: ChatBskyConvoGetConvoForMembers.Output;
@@ -2968,6 +3047,10 @@ declare module '@atcute/client/lexicons' {
2968
3047
  'chat.bsky.actor.deleteAccount': {
2969
3048
  output: ChatBskyActorDeleteAccount.Output;
2970
3049
  };
3050
+ 'chat.bsky.convo.acceptConvo': {
3051
+ input: ChatBskyConvoAcceptConvo.Input;
3052
+ output: ChatBskyConvoAcceptConvo.Output;
3053
+ };
2971
3054
  'chat.bsky.convo.deleteMessageForSelf': {
2972
3055
  input: ChatBskyConvoDeleteMessageForSelf.Input;
2973
3056
  output: ChatBskyConvoDeleteMessageForSelf.Output;
@@ -2992,6 +3075,10 @@ declare module '@atcute/client/lexicons' {
2992
3075
  input: ChatBskyConvoUnmuteConvo.Input;
2993
3076
  output: ChatBskyConvoUnmuteConvo.Output;
2994
3077
  };
3078
+ 'chat.bsky.convo.updateAllRead': {
3079
+ input: ChatBskyConvoUpdateAllRead.Input;
3080
+ output: ChatBskyConvoUpdateAllRead.Output;
3081
+ };
2995
3082
  'chat.bsky.convo.updateRead': {
2996
3083
  input: ChatBskyConvoUpdateRead.Input;
2997
3084
  output: ChatBskyConvoUpdateRead.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.15",
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.9",
25
25
  "@atcute/lex-cli": "^1.0.4"
26
26
  },
27
27
  "scripts": {