@atproto/api 0.15.17 → 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.
- package/CHANGELOG.md +6 -0
- package/dist/client/index.d.ts +72 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +90 -0
- package/dist/client/index.js.map +1 -1
- package/package.json +2 -2
- package/src/client/index.ts +324 -0
package/src/client/index.ts
CHANGED
|
@@ -1029,6 +1029,24 @@ export class ComAtprotoLexiconSchemaRecord {
|
|
|
1029
1029
|
return res.data
|
|
1030
1030
|
}
|
|
1031
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
|
+
|
|
1032
1050
|
async delete(
|
|
1033
1051
|
params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
|
|
1034
1052
|
headers?: Record<string, string>,
|
|
@@ -1901,6 +1919,24 @@ export class AppBskyActorProfileRecord {
|
|
|
1901
1919
|
return res.data
|
|
1902
1920
|
}
|
|
1903
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
|
+
|
|
1904
1940
|
async delete(
|
|
1905
1941
|
params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
|
|
1906
1942
|
headers?: Record<string, string>,
|
|
@@ -1967,6 +2003,24 @@ export class AppBskyActorStatusRecord {
|
|
|
1967
2003
|
return res.data
|
|
1968
2004
|
}
|
|
1969
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
|
+
|
|
1970
2024
|
async delete(
|
|
1971
2025
|
params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
|
|
1972
2026
|
headers?: Record<string, string>,
|
|
@@ -2250,6 +2304,24 @@ export class AppBskyFeedGeneratorRecord {
|
|
|
2250
2304
|
return res.data
|
|
2251
2305
|
}
|
|
2252
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
|
+
|
|
2253
2325
|
async delete(
|
|
2254
2326
|
params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
|
|
2255
2327
|
headers?: Record<string, string>,
|
|
@@ -2311,6 +2383,24 @@ export class AppBskyFeedLikeRecord {
|
|
|
2311
2383
|
return res.data
|
|
2312
2384
|
}
|
|
2313
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
|
+
|
|
2314
2404
|
async delete(
|
|
2315
2405
|
params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
|
|
2316
2406
|
headers?: Record<string, string>,
|
|
@@ -2372,6 +2462,24 @@ export class AppBskyFeedPostRecord {
|
|
|
2372
2462
|
return res.data
|
|
2373
2463
|
}
|
|
2374
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
|
+
|
|
2375
2483
|
async delete(
|
|
2376
2484
|
params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
|
|
2377
2485
|
headers?: Record<string, string>,
|
|
@@ -2433,6 +2541,24 @@ export class AppBskyFeedPostgateRecord {
|
|
|
2433
2541
|
return res.data
|
|
2434
2542
|
}
|
|
2435
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
|
+
|
|
2436
2562
|
async delete(
|
|
2437
2563
|
params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
|
|
2438
2564
|
headers?: Record<string, string>,
|
|
@@ -2494,6 +2620,24 @@ export class AppBskyFeedRepostRecord {
|
|
|
2494
2620
|
return res.data
|
|
2495
2621
|
}
|
|
2496
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
|
+
|
|
2497
2641
|
async delete(
|
|
2498
2642
|
params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
|
|
2499
2643
|
headers?: Record<string, string>,
|
|
@@ -2559,6 +2703,24 @@ export class AppBskyFeedThreadgateRecord {
|
|
|
2559
2703
|
return res.data
|
|
2560
2704
|
}
|
|
2561
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
|
+
|
|
2562
2724
|
async delete(
|
|
2563
2725
|
params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
|
|
2564
2726
|
headers?: Record<string, string>,
|
|
@@ -2863,6 +3025,24 @@ export class AppBskyGraphBlockRecord {
|
|
|
2863
3025
|
return res.data
|
|
2864
3026
|
}
|
|
2865
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
|
+
|
|
2866
3046
|
async delete(
|
|
2867
3047
|
params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
|
|
2868
3048
|
headers?: Record<string, string>,
|
|
@@ -2924,6 +3104,24 @@ export class AppBskyGraphFollowRecord {
|
|
|
2924
3104
|
return res.data
|
|
2925
3105
|
}
|
|
2926
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
|
+
|
|
2927
3125
|
async delete(
|
|
2928
3126
|
params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
|
|
2929
3127
|
headers?: Record<string, string>,
|
|
@@ -2985,6 +3183,24 @@ export class AppBskyGraphListRecord {
|
|
|
2985
3183
|
return res.data
|
|
2986
3184
|
}
|
|
2987
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
|
+
|
|
2988
3204
|
async delete(
|
|
2989
3205
|
params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
|
|
2990
3206
|
headers?: Record<string, string>,
|
|
@@ -3050,6 +3266,24 @@ export class AppBskyGraphListblockRecord {
|
|
|
3050
3266
|
return res.data
|
|
3051
3267
|
}
|
|
3052
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
|
+
|
|
3053
3287
|
async delete(
|
|
3054
3288
|
params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
|
|
3055
3289
|
headers?: Record<string, string>,
|
|
@@ -3111,6 +3345,24 @@ export class AppBskyGraphListitemRecord {
|
|
|
3111
3345
|
return res.data
|
|
3112
3346
|
}
|
|
3113
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
|
+
|
|
3114
3366
|
async delete(
|
|
3115
3367
|
params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
|
|
3116
3368
|
headers?: Record<string, string>,
|
|
@@ -3176,6 +3428,24 @@ export class AppBskyGraphStarterpackRecord {
|
|
|
3176
3428
|
return res.data
|
|
3177
3429
|
}
|
|
3178
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
|
+
|
|
3179
3449
|
async delete(
|
|
3180
3450
|
params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
|
|
3181
3451
|
headers?: Record<string, string>,
|
|
@@ -3241,6 +3511,24 @@ export class AppBskyGraphVerificationRecord {
|
|
|
3241
3511
|
return res.data
|
|
3242
3512
|
}
|
|
3243
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
|
+
|
|
3244
3532
|
async delete(
|
|
3245
3533
|
params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
|
|
3246
3534
|
headers?: Record<string, string>,
|
|
@@ -3333,6 +3621,24 @@ export class AppBskyLabelerServiceRecord {
|
|
|
3333
3621
|
return res.data
|
|
3334
3622
|
}
|
|
3335
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
|
+
|
|
3336
3642
|
async delete(
|
|
3337
3643
|
params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
|
|
3338
3644
|
headers?: Record<string, string>,
|
|
@@ -3922,6 +4228,24 @@ export class ChatBskyActorDeclarationRecord {
|
|
|
3922
4228
|
return res.data
|
|
3923
4229
|
}
|
|
3924
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
|
+
|
|
3925
4249
|
async delete(
|
|
3926
4250
|
params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
|
|
3927
4251
|
headers?: Record<string, string>,
|