@atproto/api 0.15.16 → 0.15.18

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.
Files changed (38) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/client/index.d.ts +105 -3
  3. package/dist/client/index.d.ts.map +1 -1
  4. package/dist/client/index.js +154 -9
  5. package/dist/client/index.js.map +1 -1
  6. package/dist/client/lexicons.d.ts +390 -82
  7. package/dist/client/lexicons.d.ts.map +1 -1
  8. package/dist/client/lexicons.js +199 -42
  9. package/dist/client/lexicons.js.map +1 -1
  10. package/dist/client/types/app/bsky/actor/defs.d.ts +9 -0
  11. package/dist/client/types/app/bsky/actor/defs.d.ts.map +1 -1
  12. package/dist/client/types/app/bsky/actor/defs.js +9 -0
  13. package/dist/client/types/app/bsky/actor/defs.js.map +1 -1
  14. package/dist/client/types/app/bsky/notification/declaration.d.ts +13 -0
  15. package/dist/client/types/app/bsky/notification/declaration.d.ts.map +1 -0
  16. package/dist/client/types/app/bsky/notification/declaration.js +16 -0
  17. package/dist/client/types/app/bsky/notification/declaration.js.map +1 -0
  18. package/dist/client/types/app/bsky/notification/defs.d.ts +15 -0
  19. package/dist/client/types/app/bsky/notification/defs.d.ts.map +1 -1
  20. package/dist/client/types/app/bsky/notification/defs.js +18 -0
  21. package/dist/client/types/app/bsky/notification/defs.js.map +1 -1
  22. package/dist/client/types/app/bsky/notification/listActivitySubscriptions.d.ts +25 -0
  23. package/dist/client/types/app/bsky/notification/listActivitySubscriptions.d.ts.map +1 -0
  24. package/dist/client/types/app/bsky/notification/listActivitySubscriptions.js +11 -0
  25. package/dist/client/types/app/bsky/notification/listActivitySubscriptions.js.map +1 -0
  26. package/dist/client/types/app/bsky/notification/putActivitySubscription.d.ts +28 -0
  27. package/dist/client/types/app/bsky/notification/putActivitySubscription.d.ts.map +1 -0
  28. package/dist/client/types/app/bsky/notification/putActivitySubscription.js +11 -0
  29. package/dist/client/types/app/bsky/notification/putActivitySubscription.js.map +1 -0
  30. package/package.json +2 -2
  31. package/src/client/index.ts +435 -9
  32. package/src/client/lexicons.ts +207 -43
  33. package/src/client/types/app/bsky/actor/defs.ts +23 -0
  34. package/src/client/types/app/bsky/notification/declaration.ts +32 -0
  35. package/src/client/types/app/bsky/notification/defs.ts +37 -0
  36. package/src/client/types/app/bsky/notification/listActivitySubscriptions.ts +44 -0
  37. package/src/client/types/app/bsky/notification/putActivitySubscription.ts +46 -0
  38. package/tsconfig.build.tsbuildinfo +1 -1
@@ -128,8 +128,8 @@ import * as AppBskyFeedGetFeedGenerators from './types/app/bsky/feed/getFeedGene
128
128
  import * as AppBskyFeedGetFeedSkeleton from './types/app/bsky/feed/getFeedSkeleton.js'
129
129
  import * as AppBskyFeedGetLikes from './types/app/bsky/feed/getLikes.js'
130
130
  import * as AppBskyFeedGetListFeed from './types/app/bsky/feed/getListFeed.js'
131
- import * as AppBskyFeedGetPosts from './types/app/bsky/feed/getPosts.js'
132
131
  import * as AppBskyFeedGetPostThread from './types/app/bsky/feed/getPostThread.js'
132
+ import * as AppBskyFeedGetPosts from './types/app/bsky/feed/getPosts.js'
133
133
  import * as AppBskyFeedGetQuotes from './types/app/bsky/feed/getQuotes.js'
134
134
  import * as AppBskyFeedGetRepostedBy from './types/app/bsky/feed/getRepostedBy.js'
135
135
  import * as AppBskyFeedGetSuggestedFeeds from './types/app/bsky/feed/getSuggestedFeeds.js'
@@ -173,10 +173,13 @@ import * as AppBskyGraphVerification from './types/app/bsky/graph/verification.j
173
173
  import * as AppBskyLabelerDefs from './types/app/bsky/labeler/defs.js'
174
174
  import * as AppBskyLabelerGetServices from './types/app/bsky/labeler/getServices.js'
175
175
  import * as AppBskyLabelerService from './types/app/bsky/labeler/service.js'
176
+ import * as AppBskyNotificationDeclaration from './types/app/bsky/notification/declaration.js'
176
177
  import * as AppBskyNotificationDefs from './types/app/bsky/notification/defs.js'
177
178
  import * as AppBskyNotificationGetPreferences from './types/app/bsky/notification/getPreferences.js'
178
179
  import * as AppBskyNotificationGetUnreadCount from './types/app/bsky/notification/getUnreadCount.js'
180
+ import * as AppBskyNotificationListActivitySubscriptions from './types/app/bsky/notification/listActivitySubscriptions.js'
179
181
  import * as AppBskyNotificationListNotifications from './types/app/bsky/notification/listNotifications.js'
182
+ import * as AppBskyNotificationPutActivitySubscription from './types/app/bsky/notification/putActivitySubscription.js'
180
183
  import * as AppBskyNotificationPutPreferences from './types/app/bsky/notification/putPreferences.js'
181
184
  import * as AppBskyNotificationPutPreferencesV2 from './types/app/bsky/notification/putPreferencesV2.js'
182
185
  import * as AppBskyNotificationRegisterPush from './types/app/bsky/notification/registerPush.js'
@@ -393,8 +396,8 @@ export * as AppBskyFeedGetFeedGenerators from './types/app/bsky/feed/getFeedGene
393
396
  export * as AppBskyFeedGetFeedSkeleton from './types/app/bsky/feed/getFeedSkeleton.js'
394
397
  export * as AppBskyFeedGetLikes from './types/app/bsky/feed/getLikes.js'
395
398
  export * as AppBskyFeedGetListFeed from './types/app/bsky/feed/getListFeed.js'
396
- export * as AppBskyFeedGetPosts from './types/app/bsky/feed/getPosts.js'
397
399
  export * as AppBskyFeedGetPostThread from './types/app/bsky/feed/getPostThread.js'
400
+ export * as AppBskyFeedGetPosts from './types/app/bsky/feed/getPosts.js'
398
401
  export * as AppBskyFeedGetQuotes from './types/app/bsky/feed/getQuotes.js'
399
402
  export * as AppBskyFeedGetRepostedBy from './types/app/bsky/feed/getRepostedBy.js'
400
403
  export * as AppBskyFeedGetSuggestedFeeds from './types/app/bsky/feed/getSuggestedFeeds.js'
@@ -438,10 +441,13 @@ export * as AppBskyGraphVerification from './types/app/bsky/graph/verification.j
438
441
  export * as AppBskyLabelerDefs from './types/app/bsky/labeler/defs.js'
439
442
  export * as AppBskyLabelerGetServices from './types/app/bsky/labeler/getServices.js'
440
443
  export * as AppBskyLabelerService from './types/app/bsky/labeler/service.js'
444
+ export * as AppBskyNotificationDeclaration from './types/app/bsky/notification/declaration.js'
441
445
  export * as AppBskyNotificationDefs from './types/app/bsky/notification/defs.js'
442
446
  export * as AppBskyNotificationGetPreferences from './types/app/bsky/notification/getPreferences.js'
443
447
  export * as AppBskyNotificationGetUnreadCount from './types/app/bsky/notification/getUnreadCount.js'
448
+ export * as AppBskyNotificationListActivitySubscriptions from './types/app/bsky/notification/listActivitySubscriptions.js'
444
449
  export * as AppBskyNotificationListNotifications from './types/app/bsky/notification/listNotifications.js'
450
+ export * as AppBskyNotificationPutActivitySubscription from './types/app/bsky/notification/putActivitySubscription.js'
445
451
  export * as AppBskyNotificationPutPreferences from './types/app/bsky/notification/putPreferences.js'
446
452
  export * as AppBskyNotificationPutPreferencesV2 from './types/app/bsky/notification/putPreferencesV2.js'
447
453
  export * as AppBskyNotificationRegisterPush from './types/app/bsky/notification/registerPush.js'
@@ -1023,6 +1029,24 @@ export class ComAtprotoLexiconSchemaRecord {
1023
1029
  return res.data
1024
1030
  }
1025
1031
 
1032
+ async put(
1033
+ params: OmitKey<
1034
+ ComAtprotoRepoPutRecord.InputSchema,
1035
+ 'collection' | 'record'
1036
+ >,
1037
+ record: Un$Typed<ComAtprotoLexiconSchema.Record>,
1038
+ headers?: Record<string, string>,
1039
+ ): Promise<{ uri: string; cid: string }> {
1040
+ const collection = 'com.atproto.lexicon.schema'
1041
+ const res = await this._client.call(
1042
+ 'com.atproto.repo.putRecord',
1043
+ undefined,
1044
+ { collection, ...params, record: { ...record, $type: collection } },
1045
+ { encoding: 'application/json', headers },
1046
+ )
1047
+ return res.data
1048
+ }
1049
+
1026
1050
  async delete(
1027
1051
  params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
1028
1052
  headers?: Record<string, string>,
@@ -1895,6 +1919,24 @@ export class AppBskyActorProfileRecord {
1895
1919
  return res.data
1896
1920
  }
1897
1921
 
1922
+ async put(
1923
+ params: OmitKey<
1924
+ ComAtprotoRepoPutRecord.InputSchema,
1925
+ 'collection' | 'record'
1926
+ >,
1927
+ record: Un$Typed<AppBskyActorProfile.Record>,
1928
+ headers?: Record<string, string>,
1929
+ ): Promise<{ uri: string; cid: string }> {
1930
+ const collection = 'app.bsky.actor.profile'
1931
+ const res = await this._client.call(
1932
+ 'com.atproto.repo.putRecord',
1933
+ undefined,
1934
+ { collection, ...params, record: { ...record, $type: collection } },
1935
+ { encoding: 'application/json', headers },
1936
+ )
1937
+ return res.data
1938
+ }
1939
+
1898
1940
  async delete(
1899
1941
  params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
1900
1942
  headers?: Record<string, string>,
@@ -1961,6 +2003,24 @@ export class AppBskyActorStatusRecord {
1961
2003
  return res.data
1962
2004
  }
1963
2005
 
2006
+ async put(
2007
+ params: OmitKey<
2008
+ ComAtprotoRepoPutRecord.InputSchema,
2009
+ 'collection' | 'record'
2010
+ >,
2011
+ record: Un$Typed<AppBskyActorStatus.Record>,
2012
+ headers?: Record<string, string>,
2013
+ ): Promise<{ uri: string; cid: string }> {
2014
+ const collection = 'app.bsky.actor.status'
2015
+ const res = await this._client.call(
2016
+ 'com.atproto.repo.putRecord',
2017
+ undefined,
2018
+ { collection, ...params, record: { ...record, $type: collection } },
2019
+ { encoding: 'application/json', headers },
2020
+ )
2021
+ return res.data
2022
+ }
2023
+
1964
2024
  async delete(
1965
2025
  params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
1966
2026
  headers?: Record<string, string>,
@@ -2111,13 +2171,6 @@ export class AppBskyFeedNS {
2111
2171
  })
2112
2172
  }
2113
2173
 
2114
- getPosts(
2115
- params?: AppBskyFeedGetPosts.QueryParams,
2116
- opts?: AppBskyFeedGetPosts.CallOptions,
2117
- ): Promise<AppBskyFeedGetPosts.Response> {
2118
- return this._client.call('app.bsky.feed.getPosts', params, undefined, opts)
2119
- }
2120
-
2121
2174
  getPostThread(
2122
2175
  params?: AppBskyFeedGetPostThread.QueryParams,
2123
2176
  opts?: AppBskyFeedGetPostThread.CallOptions,
@@ -2129,6 +2182,13 @@ export class AppBskyFeedNS {
2129
2182
  })
2130
2183
  }
2131
2184
 
2185
+ getPosts(
2186
+ params?: AppBskyFeedGetPosts.QueryParams,
2187
+ opts?: AppBskyFeedGetPosts.CallOptions,
2188
+ ): Promise<AppBskyFeedGetPosts.Response> {
2189
+ return this._client.call('app.bsky.feed.getPosts', params, undefined, opts)
2190
+ }
2191
+
2132
2192
  getQuotes(
2133
2193
  params?: AppBskyFeedGetQuotes.QueryParams,
2134
2194
  opts?: AppBskyFeedGetQuotes.CallOptions,
@@ -2244,6 +2304,24 @@ export class AppBskyFeedGeneratorRecord {
2244
2304
  return res.data
2245
2305
  }
2246
2306
 
2307
+ async put(
2308
+ params: OmitKey<
2309
+ ComAtprotoRepoPutRecord.InputSchema,
2310
+ 'collection' | 'record'
2311
+ >,
2312
+ record: Un$Typed<AppBskyFeedGenerator.Record>,
2313
+ headers?: Record<string, string>,
2314
+ ): Promise<{ uri: string; cid: string }> {
2315
+ const collection = 'app.bsky.feed.generator'
2316
+ const res = await this._client.call(
2317
+ 'com.atproto.repo.putRecord',
2318
+ undefined,
2319
+ { collection, ...params, record: { ...record, $type: collection } },
2320
+ { encoding: 'application/json', headers },
2321
+ )
2322
+ return res.data
2323
+ }
2324
+
2247
2325
  async delete(
2248
2326
  params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
2249
2327
  headers?: Record<string, string>,
@@ -2305,6 +2383,24 @@ export class AppBskyFeedLikeRecord {
2305
2383
  return res.data
2306
2384
  }
2307
2385
 
2386
+ async put(
2387
+ params: OmitKey<
2388
+ ComAtprotoRepoPutRecord.InputSchema,
2389
+ 'collection' | 'record'
2390
+ >,
2391
+ record: Un$Typed<AppBskyFeedLike.Record>,
2392
+ headers?: Record<string, string>,
2393
+ ): Promise<{ uri: string; cid: string }> {
2394
+ const collection = 'app.bsky.feed.like'
2395
+ const res = await this._client.call(
2396
+ 'com.atproto.repo.putRecord',
2397
+ undefined,
2398
+ { collection, ...params, record: { ...record, $type: collection } },
2399
+ { encoding: 'application/json', headers },
2400
+ )
2401
+ return res.data
2402
+ }
2403
+
2308
2404
  async delete(
2309
2405
  params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
2310
2406
  headers?: Record<string, string>,
@@ -2366,6 +2462,24 @@ export class AppBskyFeedPostRecord {
2366
2462
  return res.data
2367
2463
  }
2368
2464
 
2465
+ async put(
2466
+ params: OmitKey<
2467
+ ComAtprotoRepoPutRecord.InputSchema,
2468
+ 'collection' | 'record'
2469
+ >,
2470
+ record: Un$Typed<AppBskyFeedPost.Record>,
2471
+ headers?: Record<string, string>,
2472
+ ): Promise<{ uri: string; cid: string }> {
2473
+ const collection = 'app.bsky.feed.post'
2474
+ const res = await this._client.call(
2475
+ 'com.atproto.repo.putRecord',
2476
+ undefined,
2477
+ { collection, ...params, record: { ...record, $type: collection } },
2478
+ { encoding: 'application/json', headers },
2479
+ )
2480
+ return res.data
2481
+ }
2482
+
2369
2483
  async delete(
2370
2484
  params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
2371
2485
  headers?: Record<string, string>,
@@ -2427,6 +2541,24 @@ export class AppBskyFeedPostgateRecord {
2427
2541
  return res.data
2428
2542
  }
2429
2543
 
2544
+ async put(
2545
+ params: OmitKey<
2546
+ ComAtprotoRepoPutRecord.InputSchema,
2547
+ 'collection' | 'record'
2548
+ >,
2549
+ record: Un$Typed<AppBskyFeedPostgate.Record>,
2550
+ headers?: Record<string, string>,
2551
+ ): Promise<{ uri: string; cid: string }> {
2552
+ const collection = 'app.bsky.feed.postgate'
2553
+ const res = await this._client.call(
2554
+ 'com.atproto.repo.putRecord',
2555
+ undefined,
2556
+ { collection, ...params, record: { ...record, $type: collection } },
2557
+ { encoding: 'application/json', headers },
2558
+ )
2559
+ return res.data
2560
+ }
2561
+
2430
2562
  async delete(
2431
2563
  params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
2432
2564
  headers?: Record<string, string>,
@@ -2488,6 +2620,24 @@ export class AppBskyFeedRepostRecord {
2488
2620
  return res.data
2489
2621
  }
2490
2622
 
2623
+ async put(
2624
+ params: OmitKey<
2625
+ ComAtprotoRepoPutRecord.InputSchema,
2626
+ 'collection' | 'record'
2627
+ >,
2628
+ record: Un$Typed<AppBskyFeedRepost.Record>,
2629
+ headers?: Record<string, string>,
2630
+ ): Promise<{ uri: string; cid: string }> {
2631
+ const collection = 'app.bsky.feed.repost'
2632
+ const res = await this._client.call(
2633
+ 'com.atproto.repo.putRecord',
2634
+ undefined,
2635
+ { collection, ...params, record: { ...record, $type: collection } },
2636
+ { encoding: 'application/json', headers },
2637
+ )
2638
+ return res.data
2639
+ }
2640
+
2491
2641
  async delete(
2492
2642
  params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
2493
2643
  headers?: Record<string, string>,
@@ -2553,6 +2703,24 @@ export class AppBskyFeedThreadgateRecord {
2553
2703
  return res.data
2554
2704
  }
2555
2705
 
2706
+ async put(
2707
+ params: OmitKey<
2708
+ ComAtprotoRepoPutRecord.InputSchema,
2709
+ 'collection' | 'record'
2710
+ >,
2711
+ record: Un$Typed<AppBskyFeedThreadgate.Record>,
2712
+ headers?: Record<string, string>,
2713
+ ): Promise<{ uri: string; cid: string }> {
2714
+ const collection = 'app.bsky.feed.threadgate'
2715
+ const res = await this._client.call(
2716
+ 'com.atproto.repo.putRecord',
2717
+ undefined,
2718
+ { collection, ...params, record: { ...record, $type: collection } },
2719
+ { encoding: 'application/json', headers },
2720
+ )
2721
+ return res.data
2722
+ }
2723
+
2556
2724
  async delete(
2557
2725
  params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
2558
2726
  headers?: Record<string, string>,
@@ -2857,6 +3025,24 @@ export class AppBskyGraphBlockRecord {
2857
3025
  return res.data
2858
3026
  }
2859
3027
 
3028
+ async put(
3029
+ params: OmitKey<
3030
+ ComAtprotoRepoPutRecord.InputSchema,
3031
+ 'collection' | 'record'
3032
+ >,
3033
+ record: Un$Typed<AppBskyGraphBlock.Record>,
3034
+ headers?: Record<string, string>,
3035
+ ): Promise<{ uri: string; cid: string }> {
3036
+ const collection = 'app.bsky.graph.block'
3037
+ const res = await this._client.call(
3038
+ 'com.atproto.repo.putRecord',
3039
+ undefined,
3040
+ { collection, ...params, record: { ...record, $type: collection } },
3041
+ { encoding: 'application/json', headers },
3042
+ )
3043
+ return res.data
3044
+ }
3045
+
2860
3046
  async delete(
2861
3047
  params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
2862
3048
  headers?: Record<string, string>,
@@ -2918,6 +3104,24 @@ export class AppBskyGraphFollowRecord {
2918
3104
  return res.data
2919
3105
  }
2920
3106
 
3107
+ async put(
3108
+ params: OmitKey<
3109
+ ComAtprotoRepoPutRecord.InputSchema,
3110
+ 'collection' | 'record'
3111
+ >,
3112
+ record: Un$Typed<AppBskyGraphFollow.Record>,
3113
+ headers?: Record<string, string>,
3114
+ ): Promise<{ uri: string; cid: string }> {
3115
+ const collection = 'app.bsky.graph.follow'
3116
+ const res = await this._client.call(
3117
+ 'com.atproto.repo.putRecord',
3118
+ undefined,
3119
+ { collection, ...params, record: { ...record, $type: collection } },
3120
+ { encoding: 'application/json', headers },
3121
+ )
3122
+ return res.data
3123
+ }
3124
+
2921
3125
  async delete(
2922
3126
  params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
2923
3127
  headers?: Record<string, string>,
@@ -2979,6 +3183,24 @@ export class AppBskyGraphListRecord {
2979
3183
  return res.data
2980
3184
  }
2981
3185
 
3186
+ async put(
3187
+ params: OmitKey<
3188
+ ComAtprotoRepoPutRecord.InputSchema,
3189
+ 'collection' | 'record'
3190
+ >,
3191
+ record: Un$Typed<AppBskyGraphList.Record>,
3192
+ headers?: Record<string, string>,
3193
+ ): Promise<{ uri: string; cid: string }> {
3194
+ const collection = 'app.bsky.graph.list'
3195
+ const res = await this._client.call(
3196
+ 'com.atproto.repo.putRecord',
3197
+ undefined,
3198
+ { collection, ...params, record: { ...record, $type: collection } },
3199
+ { encoding: 'application/json', headers },
3200
+ )
3201
+ return res.data
3202
+ }
3203
+
2982
3204
  async delete(
2983
3205
  params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
2984
3206
  headers?: Record<string, string>,
@@ -3044,6 +3266,24 @@ export class AppBskyGraphListblockRecord {
3044
3266
  return res.data
3045
3267
  }
3046
3268
 
3269
+ async put(
3270
+ params: OmitKey<
3271
+ ComAtprotoRepoPutRecord.InputSchema,
3272
+ 'collection' | 'record'
3273
+ >,
3274
+ record: Un$Typed<AppBskyGraphListblock.Record>,
3275
+ headers?: Record<string, string>,
3276
+ ): Promise<{ uri: string; cid: string }> {
3277
+ const collection = 'app.bsky.graph.listblock'
3278
+ const res = await this._client.call(
3279
+ 'com.atproto.repo.putRecord',
3280
+ undefined,
3281
+ { collection, ...params, record: { ...record, $type: collection } },
3282
+ { encoding: 'application/json', headers },
3283
+ )
3284
+ return res.data
3285
+ }
3286
+
3047
3287
  async delete(
3048
3288
  params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
3049
3289
  headers?: Record<string, string>,
@@ -3105,6 +3345,24 @@ export class AppBskyGraphListitemRecord {
3105
3345
  return res.data
3106
3346
  }
3107
3347
 
3348
+ async put(
3349
+ params: OmitKey<
3350
+ ComAtprotoRepoPutRecord.InputSchema,
3351
+ 'collection' | 'record'
3352
+ >,
3353
+ record: Un$Typed<AppBskyGraphListitem.Record>,
3354
+ headers?: Record<string, string>,
3355
+ ): Promise<{ uri: string; cid: string }> {
3356
+ const collection = 'app.bsky.graph.listitem'
3357
+ const res = await this._client.call(
3358
+ 'com.atproto.repo.putRecord',
3359
+ undefined,
3360
+ { collection, ...params, record: { ...record, $type: collection } },
3361
+ { encoding: 'application/json', headers },
3362
+ )
3363
+ return res.data
3364
+ }
3365
+
3108
3366
  async delete(
3109
3367
  params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
3110
3368
  headers?: Record<string, string>,
@@ -3170,6 +3428,24 @@ export class AppBskyGraphStarterpackRecord {
3170
3428
  return res.data
3171
3429
  }
3172
3430
 
3431
+ async put(
3432
+ params: OmitKey<
3433
+ ComAtprotoRepoPutRecord.InputSchema,
3434
+ 'collection' | 'record'
3435
+ >,
3436
+ record: Un$Typed<AppBskyGraphStarterpack.Record>,
3437
+ headers?: Record<string, string>,
3438
+ ): Promise<{ uri: string; cid: string }> {
3439
+ const collection = 'app.bsky.graph.starterpack'
3440
+ const res = await this._client.call(
3441
+ 'com.atproto.repo.putRecord',
3442
+ undefined,
3443
+ { collection, ...params, record: { ...record, $type: collection } },
3444
+ { encoding: 'application/json', headers },
3445
+ )
3446
+ return res.data
3447
+ }
3448
+
3173
3449
  async delete(
3174
3450
  params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
3175
3451
  headers?: Record<string, string>,
@@ -3235,6 +3511,24 @@ export class AppBskyGraphVerificationRecord {
3235
3511
  return res.data
3236
3512
  }
3237
3513
 
3514
+ async put(
3515
+ params: OmitKey<
3516
+ ComAtprotoRepoPutRecord.InputSchema,
3517
+ 'collection' | 'record'
3518
+ >,
3519
+ record: Un$Typed<AppBskyGraphVerification.Record>,
3520
+ headers?: Record<string, string>,
3521
+ ): Promise<{ uri: string; cid: string }> {
3522
+ const collection = 'app.bsky.graph.verification'
3523
+ const res = await this._client.call(
3524
+ 'com.atproto.repo.putRecord',
3525
+ undefined,
3526
+ { collection, ...params, record: { ...record, $type: collection } },
3527
+ { encoding: 'application/json', headers },
3528
+ )
3529
+ return res.data
3530
+ }
3531
+
3238
3532
  async delete(
3239
3533
  params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
3240
3534
  headers?: Record<string, string>,
@@ -3327,6 +3621,24 @@ export class AppBskyLabelerServiceRecord {
3327
3621
  return res.data
3328
3622
  }
3329
3623
 
3624
+ async put(
3625
+ params: OmitKey<
3626
+ ComAtprotoRepoPutRecord.InputSchema,
3627
+ 'collection' | 'record'
3628
+ >,
3629
+ record: Un$Typed<AppBskyLabelerService.Record>,
3630
+ headers?: Record<string, string>,
3631
+ ): Promise<{ uri: string; cid: string }> {
3632
+ const collection = 'app.bsky.labeler.service'
3633
+ const res = await this._client.call(
3634
+ 'com.atproto.repo.putRecord',
3635
+ undefined,
3636
+ { collection, ...params, record: { ...record, $type: collection } },
3637
+ { encoding: 'application/json', headers },
3638
+ )
3639
+ return res.data
3640
+ }
3641
+
3330
3642
  async delete(
3331
3643
  params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
3332
3644
  headers?: Record<string, string>,
@@ -3342,9 +3654,11 @@ export class AppBskyLabelerServiceRecord {
3342
3654
 
3343
3655
  export class AppBskyNotificationNS {
3344
3656
  _client: XrpcClient
3657
+ declaration: AppBskyNotificationDeclarationRecord
3345
3658
 
3346
3659
  constructor(client: XrpcClient) {
3347
3660
  this._client = client
3661
+ this.declaration = new AppBskyNotificationDeclarationRecord(client)
3348
3662
  }
3349
3663
 
3350
3664
  getPreferences(
@@ -3371,6 +3685,18 @@ export class AppBskyNotificationNS {
3371
3685
  )
3372
3686
  }
3373
3687
 
3688
+ listActivitySubscriptions(
3689
+ params?: AppBskyNotificationListActivitySubscriptions.QueryParams,
3690
+ opts?: AppBskyNotificationListActivitySubscriptions.CallOptions,
3691
+ ): Promise<AppBskyNotificationListActivitySubscriptions.Response> {
3692
+ return this._client.call(
3693
+ 'app.bsky.notification.listActivitySubscriptions',
3694
+ params,
3695
+ undefined,
3696
+ opts,
3697
+ )
3698
+ }
3699
+
3374
3700
  listNotifications(
3375
3701
  params?: AppBskyNotificationListNotifications.QueryParams,
3376
3702
  opts?: AppBskyNotificationListNotifications.CallOptions,
@@ -3383,6 +3709,18 @@ export class AppBskyNotificationNS {
3383
3709
  )
3384
3710
  }
3385
3711
 
3712
+ putActivitySubscription(
3713
+ data?: AppBskyNotificationPutActivitySubscription.InputSchema,
3714
+ opts?: AppBskyNotificationPutActivitySubscription.CallOptions,
3715
+ ): Promise<AppBskyNotificationPutActivitySubscription.Response> {
3716
+ return this._client.call(
3717
+ 'app.bsky.notification.putActivitySubscription',
3718
+ opts?.qp,
3719
+ data,
3720
+ opts,
3721
+ )
3722
+ }
3723
+
3386
3724
  putPreferences(
3387
3725
  data?: AppBskyNotificationPutPreferences.InputSchema,
3388
3726
  opts?: AppBskyNotificationPutPreferences.CallOptions,
@@ -3432,6 +3770,76 @@ export class AppBskyNotificationNS {
3432
3770
  }
3433
3771
  }
3434
3772
 
3773
+ export class AppBskyNotificationDeclarationRecord {
3774
+ _client: XrpcClient
3775
+
3776
+ constructor(client: XrpcClient) {
3777
+ this._client = client
3778
+ }
3779
+
3780
+ async list(
3781
+ params: OmitKey<ComAtprotoRepoListRecords.QueryParams, 'collection'>,
3782
+ ): Promise<{
3783
+ cursor?: string
3784
+ records: { uri: string; value: AppBskyNotificationDeclaration.Record }[]
3785
+ }> {
3786
+ const res = await this._client.call('com.atproto.repo.listRecords', {
3787
+ collection: 'app.bsky.notification.declaration',
3788
+ ...params,
3789
+ })
3790
+ return res.data
3791
+ }
3792
+
3793
+ async get(
3794
+ params: OmitKey<ComAtprotoRepoGetRecord.QueryParams, 'collection'>,
3795
+ ): Promise<{
3796
+ uri: string
3797
+ cid: string
3798
+ value: AppBskyNotificationDeclaration.Record
3799
+ }> {
3800
+ const res = await this._client.call('com.atproto.repo.getRecord', {
3801
+ collection: 'app.bsky.notification.declaration',
3802
+ ...params,
3803
+ })
3804
+ return res.data
3805
+ }
3806
+
3807
+ async create(
3808
+ params: OmitKey<
3809
+ ComAtprotoRepoCreateRecord.InputSchema,
3810
+ 'collection' | 'record'
3811
+ >,
3812
+ record: Un$Typed<AppBskyNotificationDeclaration.Record>,
3813
+ headers?: Record<string, string>,
3814
+ ): Promise<{ uri: string; cid: string }> {
3815
+ const collection = 'app.bsky.notification.declaration'
3816
+ const res = await this._client.call(
3817
+ 'com.atproto.repo.createRecord',
3818
+ undefined,
3819
+ {
3820
+ collection,
3821
+ rkey: 'self',
3822
+ ...params,
3823
+ record: { ...record, $type: collection },
3824
+ },
3825
+ { encoding: 'application/json', headers },
3826
+ )
3827
+ return res.data
3828
+ }
3829
+
3830
+ async delete(
3831
+ params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
3832
+ headers?: Record<string, string>,
3833
+ ): Promise<void> {
3834
+ await this._client.call(
3835
+ 'com.atproto.repo.deleteRecord',
3836
+ undefined,
3837
+ { collection: 'app.bsky.notification.declaration', ...params },
3838
+ { headers },
3839
+ )
3840
+ }
3841
+ }
3842
+
3435
3843
  export class AppBskyRichtextNS {
3436
3844
  _client: XrpcClient
3437
3845
 
@@ -3820,6 +4228,24 @@ export class ChatBskyActorDeclarationRecord {
3820
4228
  return res.data
3821
4229
  }
3822
4230
 
4231
+ async put(
4232
+ params: OmitKey<
4233
+ ComAtprotoRepoPutRecord.InputSchema,
4234
+ 'collection' | 'record'
4235
+ >,
4236
+ record: Un$Typed<ChatBskyActorDeclaration.Record>,
4237
+ headers?: Record<string, string>,
4238
+ ): Promise<{ uri: string; cid: string }> {
4239
+ const collection = 'chat.bsky.actor.declaration'
4240
+ const res = await this._client.call(
4241
+ 'com.atproto.repo.putRecord',
4242
+ undefined,
4243
+ { collection, ...params, record: { ...record, $type: collection } },
4244
+ { encoding: 'application/json', headers },
4245
+ )
4246
+ return res.data
4247
+ }
4248
+
3823
4249
  async delete(
3824
4250
  params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
3825
4251
  headers?: Record<string, string>,