@atproto/api 0.6.4 → 0.6.5
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/bsky-agent.d.ts +1 -0
- package/dist/client/index.d.ts +3 -0
- package/dist/client/lexicons.d.ts +52 -0
- package/dist/client/types/app/bsky/actor/createScene.d.ts +32 -0
- package/dist/client/types/app/bsky/actor/ref.d.ts +28 -0
- package/dist/client/types/app/bsky/actor/search.d.ts +22 -0
- package/dist/client/types/app/bsky/actor/searchTypeahead.d.ts +20 -0
- package/dist/client/types/app/bsky/actor/updateProfile.d.ts +40 -0
- package/dist/client/types/app/bsky/feed/feedViewPost.d.ts +28 -0
- package/dist/client/types/app/bsky/feed/getActorLikes.d.ts +28 -0
- package/dist/client/types/app/bsky/feed/getSavedFeeds.d.ts +21 -0
- package/dist/client/types/app/bsky/feed/getVotes.d.ts +36 -0
- package/dist/client/types/app/bsky/feed/saveFeed.d.ts +17 -0
- package/dist/client/types/app/bsky/feed/setVote.d.ts +25 -0
- package/dist/client/types/app/bsky/feed/trend.d.ts +9 -0
- package/dist/client/types/app/bsky/feed/unsaveFeed.d.ts +17 -0
- package/dist/client/types/app/bsky/feed/vote.d.ts +10 -0
- package/dist/client/types/app/bsky/graph/assertCreator.d.ts +1 -0
- package/dist/client/types/app/bsky/graph/assertMember.d.ts +1 -0
- package/dist/client/types/app/bsky/graph/assertion.d.ts +10 -0
- package/dist/client/types/app/bsky/graph/confirmation.d.ts +11 -0
- package/dist/client/types/app/bsky/graph/getAssertions.d.ts +48 -0
- package/dist/client/types/app/bsky/graph/getListBlocks.d.ts +21 -0
- package/dist/client/types/app/bsky/graph/getMembers.d.ts +36 -0
- package/dist/client/types/app/bsky/graph/getMemberships.d.ts +36 -0
- package/dist/client/types/app/bsky/graph/listblock.d.ts +8 -0
- package/dist/client/types/app/bsky/graph/mute.d.ts +17 -0
- package/dist/client/types/app/bsky/graph/subscribeMuteList.d.ts +17 -0
- package/dist/client/types/app/bsky/graph/unmute.d.ts +17 -0
- package/dist/client/types/app/bsky/graph/unsubscribeMuteList.d.ts +17 -0
- package/dist/client/types/app/bsky/notification/getCount.d.ts +17 -0
- package/dist/client/types/app/bsky/notification/list.d.ts +35 -0
- package/dist/client/types/app/bsky/system/actorScene.d.ts +1 -0
- package/dist/client/types/app/bsky/system/actorUser.d.ts +1 -0
- package/dist/client/types/app/bsky/system/declRef.d.ts +8 -0
- package/dist/client/types/app/bsky/system/declaration.d.ts +7 -0
- package/dist/client/types/app/bsky/unspecced/registerPushNotification.d.ts +16 -0
- package/dist/client/types/com/atproto/account/create.d.ts +41 -0
- package/dist/client/types/com/atproto/account/createInviteCode.d.ts +22 -0
- package/dist/client/types/com/atproto/account/delete.d.ts +25 -0
- package/dist/client/types/com/atproto/account/get.d.ts +12 -0
- package/dist/client/types/com/atproto/account/requestDelete.d.ts +13 -0
- package/dist/client/types/com/atproto/account/requestPasswordReset.d.ts +17 -0
- package/dist/client/types/com/atproto/account/resetPassword.d.ts +24 -0
- package/dist/client/types/com/atproto/admin/blob.d.ts +37 -0
- package/dist/client/types/com/atproto/admin/moderationAction.d.ts +60 -0
- package/dist/client/types/com/atproto/admin/moderationReport.d.ts +37 -0
- package/dist/client/types/com/atproto/admin/record.d.ts +43 -0
- package/dist/client/types/com/atproto/admin/repo.d.ts +45 -0
- package/dist/client/types/com/atproto/blob/upload.d.ts +19 -0
- package/dist/client/types/com/atproto/handle/resolve.d.ts +18 -0
- package/dist/client/types/com/atproto/handle/update.d.ts +17 -0
- package/dist/client/types/com/atproto/repo/batchWrite.d.ts +46 -0
- package/dist/client/types/com/atproto/repo/describe.d.ts +22 -0
- package/dist/client/types/com/atproto/repo/recordRef.d.ts +8 -0
- package/dist/client/types/com/atproto/repo/repoRef.d.ts +7 -0
- package/dist/client/types/com/atproto/report/create.d.ts +39 -0
- package/dist/client/types/com/atproto/report/reasonType.d.ts +3 -0
- package/dist/client/types/com/atproto/report/subject.d.ts +23 -0
- package/dist/client/types/com/atproto/server/getAccountsConfig.d.ts +27 -0
- package/dist/client/types/com/atproto/session/create.d.ts +29 -0
- package/dist/client/types/com/atproto/session/delete.d.ts +13 -0
- package/dist/client/types/com/atproto/session/get.d.ts +18 -0
- package/dist/client/types/com/atproto/session/refresh.d.ts +24 -0
- package/dist/client/types/com/atproto/sync/getRoot.d.ts +18 -0
- package/dist/client/types/com/atproto/sync/subscribeAllRepos.d.ts +9 -0
- package/dist/client/types/com/atproto/sync/updateRepo.d.ts +15 -0
- package/dist/helpers/bsky.d.ts +20 -0
- package/dist/index.js +175 -85
- package/dist/index.js.map +4 -4
- package/dist/mixins/bsky.d.ts +23 -0
- package/dist/rich-text/sanitize.d.ts +4 -0
- package/dist/session.d.ts +42 -0
- package/package.json +1 -1
- package/src/bsky-agent.ts +3 -0
- package/src/client/index.ts +13 -0
- package/src/client/lexicons.ts +57 -0
- package/src/client/types/app/bsky/feed/getActorLikes.ts +53 -0
- package/tsconfig.build.tsbuildinfo +1 -1
package/dist/index.js
CHANGED
|
@@ -8892,6 +8892,7 @@ __export(src_exports4, {
|
|
|
8892
8892
|
AppBskyFeedDescribeFeedGenerator: () => describeFeedGenerator_exports,
|
|
8893
8893
|
AppBskyFeedGenerator: () => generator_exports,
|
|
8894
8894
|
AppBskyFeedGetActorFeeds: () => getActorFeeds_exports,
|
|
8895
|
+
AppBskyFeedGetActorLikes: () => getActorLikes_exports,
|
|
8895
8896
|
AppBskyFeedGetAuthorFeed: () => getAuthorFeed_exports,
|
|
8896
8897
|
AppBskyFeedGetFeed: () => getFeed_exports,
|
|
8897
8898
|
AppBskyFeedGetFeedGenerator: () => getFeedGenerator_exports,
|
|
@@ -20479,6 +20480,62 @@ var schemaDict = {
|
|
|
20479
20480
|
}
|
|
20480
20481
|
}
|
|
20481
20482
|
},
|
|
20483
|
+
AppBskyFeedGetActorLikes: {
|
|
20484
|
+
lexicon: 1,
|
|
20485
|
+
id: "app.bsky.feed.getActorLikes",
|
|
20486
|
+
defs: {
|
|
20487
|
+
main: {
|
|
20488
|
+
type: "query",
|
|
20489
|
+
description: "A view of the posts liked by an actor.",
|
|
20490
|
+
parameters: {
|
|
20491
|
+
type: "params",
|
|
20492
|
+
required: ["actor"],
|
|
20493
|
+
properties: {
|
|
20494
|
+
actor: {
|
|
20495
|
+
type: "string",
|
|
20496
|
+
format: "at-identifier"
|
|
20497
|
+
},
|
|
20498
|
+
limit: {
|
|
20499
|
+
type: "integer",
|
|
20500
|
+
minimum: 1,
|
|
20501
|
+
maximum: 100,
|
|
20502
|
+
default: 50
|
|
20503
|
+
},
|
|
20504
|
+
cursor: {
|
|
20505
|
+
type: "string"
|
|
20506
|
+
}
|
|
20507
|
+
}
|
|
20508
|
+
},
|
|
20509
|
+
output: {
|
|
20510
|
+
encoding: "application/json",
|
|
20511
|
+
schema: {
|
|
20512
|
+
type: "object",
|
|
20513
|
+
required: ["feed"],
|
|
20514
|
+
properties: {
|
|
20515
|
+
cursor: {
|
|
20516
|
+
type: "string"
|
|
20517
|
+
},
|
|
20518
|
+
feed: {
|
|
20519
|
+
type: "array",
|
|
20520
|
+
items: {
|
|
20521
|
+
type: "ref",
|
|
20522
|
+
ref: "lex:app.bsky.feed.defs#feedViewPost"
|
|
20523
|
+
}
|
|
20524
|
+
}
|
|
20525
|
+
}
|
|
20526
|
+
}
|
|
20527
|
+
},
|
|
20528
|
+
errors: [
|
|
20529
|
+
{
|
|
20530
|
+
name: "BlockedActor"
|
|
20531
|
+
},
|
|
20532
|
+
{
|
|
20533
|
+
name: "BlockedByActor"
|
|
20534
|
+
}
|
|
20535
|
+
]
|
|
20536
|
+
}
|
|
20537
|
+
}
|
|
20538
|
+
},
|
|
20482
20539
|
AppBskyFeedGetAuthorFeed: {
|
|
20483
20540
|
lexicon: 1,
|
|
20484
20541
|
id: "app.bsky.feed.getAuthorFeed",
|
|
@@ -23291,9 +23348,9 @@ function toKnownErr67(e) {
|
|
|
23291
23348
|
return e;
|
|
23292
23349
|
}
|
|
23293
23350
|
|
|
23294
|
-
// src/client/types/app/bsky/feed/
|
|
23295
|
-
var
|
|
23296
|
-
__export(
|
|
23351
|
+
// src/client/types/app/bsky/feed/getActorLikes.ts
|
|
23352
|
+
var getActorLikes_exports = {};
|
|
23353
|
+
__export(getActorLikes_exports, {
|
|
23297
23354
|
BlockedActorError: () => BlockedActorError,
|
|
23298
23355
|
BlockedByActorError: () => BlockedByActorError,
|
|
23299
23356
|
toKnownErr: () => toKnownErr68
|
|
@@ -23318,18 +23375,45 @@ function toKnownErr68(e) {
|
|
|
23318
23375
|
return e;
|
|
23319
23376
|
}
|
|
23320
23377
|
|
|
23378
|
+
// src/client/types/app/bsky/feed/getAuthorFeed.ts
|
|
23379
|
+
var getAuthorFeed_exports = {};
|
|
23380
|
+
__export(getAuthorFeed_exports, {
|
|
23381
|
+
BlockedActorError: () => BlockedActorError2,
|
|
23382
|
+
BlockedByActorError: () => BlockedByActorError2,
|
|
23383
|
+
toKnownErr: () => toKnownErr69
|
|
23384
|
+
});
|
|
23385
|
+
var BlockedActorError2 = class extends XRPCError {
|
|
23386
|
+
constructor(src2) {
|
|
23387
|
+
super(src2.status, src2.error, src2.message, src2.headers);
|
|
23388
|
+
}
|
|
23389
|
+
};
|
|
23390
|
+
var BlockedByActorError2 = class extends XRPCError {
|
|
23391
|
+
constructor(src2) {
|
|
23392
|
+
super(src2.status, src2.error, src2.message, src2.headers);
|
|
23393
|
+
}
|
|
23394
|
+
};
|
|
23395
|
+
function toKnownErr69(e) {
|
|
23396
|
+
if (e instanceof XRPCError) {
|
|
23397
|
+
if (e.error === "BlockedActor")
|
|
23398
|
+
return new BlockedActorError2(e);
|
|
23399
|
+
if (e.error === "BlockedByActor")
|
|
23400
|
+
return new BlockedByActorError2(e);
|
|
23401
|
+
}
|
|
23402
|
+
return e;
|
|
23403
|
+
}
|
|
23404
|
+
|
|
23321
23405
|
// src/client/types/app/bsky/feed/getFeed.ts
|
|
23322
23406
|
var getFeed_exports = {};
|
|
23323
23407
|
__export(getFeed_exports, {
|
|
23324
23408
|
UnknownFeedError: () => UnknownFeedError,
|
|
23325
|
-
toKnownErr: () =>
|
|
23409
|
+
toKnownErr: () => toKnownErr70
|
|
23326
23410
|
});
|
|
23327
23411
|
var UnknownFeedError = class extends XRPCError {
|
|
23328
23412
|
constructor(src2) {
|
|
23329
23413
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
23330
23414
|
}
|
|
23331
23415
|
};
|
|
23332
|
-
function
|
|
23416
|
+
function toKnownErr70(e) {
|
|
23333
23417
|
if (e instanceof XRPCError) {
|
|
23334
23418
|
if (e.error === "UnknownFeed")
|
|
23335
23419
|
return new UnknownFeedError(e);
|
|
@@ -23340,9 +23424,9 @@ function toKnownErr69(e) {
|
|
|
23340
23424
|
// src/client/types/app/bsky/feed/getFeedGenerator.ts
|
|
23341
23425
|
var getFeedGenerator_exports = {};
|
|
23342
23426
|
__export(getFeedGenerator_exports, {
|
|
23343
|
-
toKnownErr: () =>
|
|
23427
|
+
toKnownErr: () => toKnownErr71
|
|
23344
23428
|
});
|
|
23345
|
-
function
|
|
23429
|
+
function toKnownErr71(e) {
|
|
23346
23430
|
if (e instanceof XRPCError) {
|
|
23347
23431
|
}
|
|
23348
23432
|
return e;
|
|
@@ -23351,9 +23435,9 @@ function toKnownErr70(e) {
|
|
|
23351
23435
|
// src/client/types/app/bsky/feed/getFeedGenerators.ts
|
|
23352
23436
|
var getFeedGenerators_exports = {};
|
|
23353
23437
|
__export(getFeedGenerators_exports, {
|
|
23354
|
-
toKnownErr: () =>
|
|
23438
|
+
toKnownErr: () => toKnownErr72
|
|
23355
23439
|
});
|
|
23356
|
-
function
|
|
23440
|
+
function toKnownErr72(e) {
|
|
23357
23441
|
if (e instanceof XRPCError) {
|
|
23358
23442
|
}
|
|
23359
23443
|
return e;
|
|
@@ -23363,14 +23447,14 @@ function toKnownErr71(e) {
|
|
|
23363
23447
|
var getFeedSkeleton_exports = {};
|
|
23364
23448
|
__export(getFeedSkeleton_exports, {
|
|
23365
23449
|
UnknownFeedError: () => UnknownFeedError2,
|
|
23366
|
-
toKnownErr: () =>
|
|
23450
|
+
toKnownErr: () => toKnownErr73
|
|
23367
23451
|
});
|
|
23368
23452
|
var UnknownFeedError2 = class extends XRPCError {
|
|
23369
23453
|
constructor(src2) {
|
|
23370
23454
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
23371
23455
|
}
|
|
23372
23456
|
};
|
|
23373
|
-
function
|
|
23457
|
+
function toKnownErr73(e) {
|
|
23374
23458
|
if (e instanceof XRPCError) {
|
|
23375
23459
|
if (e.error === "UnknownFeed")
|
|
23376
23460
|
return new UnknownFeedError2(e);
|
|
@@ -23382,10 +23466,10 @@ function toKnownErr72(e) {
|
|
|
23382
23466
|
var getLikes_exports = {};
|
|
23383
23467
|
__export(getLikes_exports, {
|
|
23384
23468
|
isLike: () => isLike,
|
|
23385
|
-
toKnownErr: () =>
|
|
23469
|
+
toKnownErr: () => toKnownErr74,
|
|
23386
23470
|
validateLike: () => validateLike
|
|
23387
23471
|
});
|
|
23388
|
-
function
|
|
23472
|
+
function toKnownErr74(e) {
|
|
23389
23473
|
if (e instanceof XRPCError) {
|
|
23390
23474
|
}
|
|
23391
23475
|
return e;
|
|
@@ -23401,14 +23485,14 @@ function validateLike(v) {
|
|
|
23401
23485
|
var getPostThread_exports = {};
|
|
23402
23486
|
__export(getPostThread_exports, {
|
|
23403
23487
|
NotFoundError: () => NotFoundError,
|
|
23404
|
-
toKnownErr: () =>
|
|
23488
|
+
toKnownErr: () => toKnownErr75
|
|
23405
23489
|
});
|
|
23406
23490
|
var NotFoundError = class extends XRPCError {
|
|
23407
23491
|
constructor(src2) {
|
|
23408
23492
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
23409
23493
|
}
|
|
23410
23494
|
};
|
|
23411
|
-
function
|
|
23495
|
+
function toKnownErr75(e) {
|
|
23412
23496
|
if (e instanceof XRPCError) {
|
|
23413
23497
|
if (e.error === "NotFound")
|
|
23414
23498
|
return new NotFoundError(e);
|
|
@@ -23419,9 +23503,9 @@ function toKnownErr74(e) {
|
|
|
23419
23503
|
// src/client/types/app/bsky/feed/getPosts.ts
|
|
23420
23504
|
var getPosts_exports = {};
|
|
23421
23505
|
__export(getPosts_exports, {
|
|
23422
|
-
toKnownErr: () =>
|
|
23506
|
+
toKnownErr: () => toKnownErr76
|
|
23423
23507
|
});
|
|
23424
|
-
function
|
|
23508
|
+
function toKnownErr76(e) {
|
|
23425
23509
|
if (e instanceof XRPCError) {
|
|
23426
23510
|
}
|
|
23427
23511
|
return e;
|
|
@@ -23430,9 +23514,9 @@ function toKnownErr75(e) {
|
|
|
23430
23514
|
// src/client/types/app/bsky/feed/getRepostedBy.ts
|
|
23431
23515
|
var getRepostedBy_exports = {};
|
|
23432
23516
|
__export(getRepostedBy_exports, {
|
|
23433
|
-
toKnownErr: () =>
|
|
23517
|
+
toKnownErr: () => toKnownErr77
|
|
23434
23518
|
});
|
|
23435
|
-
function
|
|
23519
|
+
function toKnownErr77(e) {
|
|
23436
23520
|
if (e instanceof XRPCError) {
|
|
23437
23521
|
}
|
|
23438
23522
|
return e;
|
|
@@ -23441,9 +23525,9 @@ function toKnownErr76(e) {
|
|
|
23441
23525
|
// src/client/types/app/bsky/feed/getTimeline.ts
|
|
23442
23526
|
var getTimeline_exports = {};
|
|
23443
23527
|
__export(getTimeline_exports, {
|
|
23444
|
-
toKnownErr: () =>
|
|
23528
|
+
toKnownErr: () => toKnownErr78
|
|
23445
23529
|
});
|
|
23446
|
-
function
|
|
23530
|
+
function toKnownErr78(e) {
|
|
23447
23531
|
if (e instanceof XRPCError) {
|
|
23448
23532
|
}
|
|
23449
23533
|
return e;
|
|
@@ -23452,9 +23536,9 @@ function toKnownErr77(e) {
|
|
|
23452
23536
|
// src/client/types/app/bsky/graph/getBlocks.ts
|
|
23453
23537
|
var getBlocks_exports2 = {};
|
|
23454
23538
|
__export(getBlocks_exports2, {
|
|
23455
|
-
toKnownErr: () =>
|
|
23539
|
+
toKnownErr: () => toKnownErr79
|
|
23456
23540
|
});
|
|
23457
|
-
function
|
|
23541
|
+
function toKnownErr79(e) {
|
|
23458
23542
|
if (e instanceof XRPCError) {
|
|
23459
23543
|
}
|
|
23460
23544
|
return e;
|
|
@@ -23463,9 +23547,9 @@ function toKnownErr78(e) {
|
|
|
23463
23547
|
// src/client/types/app/bsky/graph/getFollowers.ts
|
|
23464
23548
|
var getFollowers_exports = {};
|
|
23465
23549
|
__export(getFollowers_exports, {
|
|
23466
|
-
toKnownErr: () =>
|
|
23550
|
+
toKnownErr: () => toKnownErr80
|
|
23467
23551
|
});
|
|
23468
|
-
function
|
|
23552
|
+
function toKnownErr80(e) {
|
|
23469
23553
|
if (e instanceof XRPCError) {
|
|
23470
23554
|
}
|
|
23471
23555
|
return e;
|
|
@@ -23474,9 +23558,9 @@ function toKnownErr79(e) {
|
|
|
23474
23558
|
// src/client/types/app/bsky/graph/getFollows.ts
|
|
23475
23559
|
var getFollows_exports = {};
|
|
23476
23560
|
__export(getFollows_exports, {
|
|
23477
|
-
toKnownErr: () =>
|
|
23561
|
+
toKnownErr: () => toKnownErr81
|
|
23478
23562
|
});
|
|
23479
|
-
function
|
|
23563
|
+
function toKnownErr81(e) {
|
|
23480
23564
|
if (e instanceof XRPCError) {
|
|
23481
23565
|
}
|
|
23482
23566
|
return e;
|
|
@@ -23485,9 +23569,9 @@ function toKnownErr80(e) {
|
|
|
23485
23569
|
// src/client/types/app/bsky/graph/getList.ts
|
|
23486
23570
|
var getList_exports = {};
|
|
23487
23571
|
__export(getList_exports, {
|
|
23488
|
-
toKnownErr: () =>
|
|
23572
|
+
toKnownErr: () => toKnownErr82
|
|
23489
23573
|
});
|
|
23490
|
-
function
|
|
23574
|
+
function toKnownErr82(e) {
|
|
23491
23575
|
if (e instanceof XRPCError) {
|
|
23492
23576
|
}
|
|
23493
23577
|
return e;
|
|
@@ -23496,9 +23580,9 @@ function toKnownErr81(e) {
|
|
|
23496
23580
|
// src/client/types/app/bsky/graph/getListMutes.ts
|
|
23497
23581
|
var getListMutes_exports = {};
|
|
23498
23582
|
__export(getListMutes_exports, {
|
|
23499
|
-
toKnownErr: () =>
|
|
23583
|
+
toKnownErr: () => toKnownErr83
|
|
23500
23584
|
});
|
|
23501
|
-
function
|
|
23585
|
+
function toKnownErr83(e) {
|
|
23502
23586
|
if (e instanceof XRPCError) {
|
|
23503
23587
|
}
|
|
23504
23588
|
return e;
|
|
@@ -23507,9 +23591,9 @@ function toKnownErr82(e) {
|
|
|
23507
23591
|
// src/client/types/app/bsky/graph/getLists.ts
|
|
23508
23592
|
var getLists_exports = {};
|
|
23509
23593
|
__export(getLists_exports, {
|
|
23510
|
-
toKnownErr: () =>
|
|
23594
|
+
toKnownErr: () => toKnownErr84
|
|
23511
23595
|
});
|
|
23512
|
-
function
|
|
23596
|
+
function toKnownErr84(e) {
|
|
23513
23597
|
if (e instanceof XRPCError) {
|
|
23514
23598
|
}
|
|
23515
23599
|
return e;
|
|
@@ -23518,9 +23602,9 @@ function toKnownErr83(e) {
|
|
|
23518
23602
|
// src/client/types/app/bsky/graph/getMutes.ts
|
|
23519
23603
|
var getMutes_exports = {};
|
|
23520
23604
|
__export(getMutes_exports, {
|
|
23521
|
-
toKnownErr: () =>
|
|
23605
|
+
toKnownErr: () => toKnownErr85
|
|
23522
23606
|
});
|
|
23523
|
-
function
|
|
23607
|
+
function toKnownErr85(e) {
|
|
23524
23608
|
if (e instanceof XRPCError) {
|
|
23525
23609
|
}
|
|
23526
23610
|
return e;
|
|
@@ -23529,9 +23613,9 @@ function toKnownErr84(e) {
|
|
|
23529
23613
|
// src/client/types/app/bsky/graph/muteActor.ts
|
|
23530
23614
|
var muteActor_exports = {};
|
|
23531
23615
|
__export(muteActor_exports, {
|
|
23532
|
-
toKnownErr: () =>
|
|
23616
|
+
toKnownErr: () => toKnownErr86
|
|
23533
23617
|
});
|
|
23534
|
-
function
|
|
23618
|
+
function toKnownErr86(e) {
|
|
23535
23619
|
if (e instanceof XRPCError) {
|
|
23536
23620
|
}
|
|
23537
23621
|
return e;
|
|
@@ -23540,9 +23624,9 @@ function toKnownErr85(e) {
|
|
|
23540
23624
|
// src/client/types/app/bsky/graph/muteActorList.ts
|
|
23541
23625
|
var muteActorList_exports = {};
|
|
23542
23626
|
__export(muteActorList_exports, {
|
|
23543
|
-
toKnownErr: () =>
|
|
23627
|
+
toKnownErr: () => toKnownErr87
|
|
23544
23628
|
});
|
|
23545
|
-
function
|
|
23629
|
+
function toKnownErr87(e) {
|
|
23546
23630
|
if (e instanceof XRPCError) {
|
|
23547
23631
|
}
|
|
23548
23632
|
return e;
|
|
@@ -23551,9 +23635,9 @@ function toKnownErr86(e) {
|
|
|
23551
23635
|
// src/client/types/app/bsky/graph/unmuteActor.ts
|
|
23552
23636
|
var unmuteActor_exports = {};
|
|
23553
23637
|
__export(unmuteActor_exports, {
|
|
23554
|
-
toKnownErr: () =>
|
|
23638
|
+
toKnownErr: () => toKnownErr88
|
|
23555
23639
|
});
|
|
23556
|
-
function
|
|
23640
|
+
function toKnownErr88(e) {
|
|
23557
23641
|
if (e instanceof XRPCError) {
|
|
23558
23642
|
}
|
|
23559
23643
|
return e;
|
|
@@ -23562,9 +23646,9 @@ function toKnownErr87(e) {
|
|
|
23562
23646
|
// src/client/types/app/bsky/graph/unmuteActorList.ts
|
|
23563
23647
|
var unmuteActorList_exports = {};
|
|
23564
23648
|
__export(unmuteActorList_exports, {
|
|
23565
|
-
toKnownErr: () =>
|
|
23649
|
+
toKnownErr: () => toKnownErr89
|
|
23566
23650
|
});
|
|
23567
|
-
function
|
|
23651
|
+
function toKnownErr89(e) {
|
|
23568
23652
|
if (e instanceof XRPCError) {
|
|
23569
23653
|
}
|
|
23570
23654
|
return e;
|
|
@@ -23573,9 +23657,9 @@ function toKnownErr88(e) {
|
|
|
23573
23657
|
// src/client/types/app/bsky/notification/getUnreadCount.ts
|
|
23574
23658
|
var getUnreadCount_exports = {};
|
|
23575
23659
|
__export(getUnreadCount_exports, {
|
|
23576
|
-
toKnownErr: () =>
|
|
23660
|
+
toKnownErr: () => toKnownErr90
|
|
23577
23661
|
});
|
|
23578
|
-
function
|
|
23662
|
+
function toKnownErr90(e) {
|
|
23579
23663
|
if (e instanceof XRPCError) {
|
|
23580
23664
|
}
|
|
23581
23665
|
return e;
|
|
@@ -23585,10 +23669,10 @@ function toKnownErr89(e) {
|
|
|
23585
23669
|
var listNotifications_exports = {};
|
|
23586
23670
|
__export(listNotifications_exports, {
|
|
23587
23671
|
isNotification: () => isNotification,
|
|
23588
|
-
toKnownErr: () =>
|
|
23672
|
+
toKnownErr: () => toKnownErr91,
|
|
23589
23673
|
validateNotification: () => validateNotification
|
|
23590
23674
|
});
|
|
23591
|
-
function
|
|
23675
|
+
function toKnownErr91(e) {
|
|
23592
23676
|
if (e instanceof XRPCError) {
|
|
23593
23677
|
}
|
|
23594
23678
|
return e;
|
|
@@ -23606,9 +23690,9 @@ function validateNotification(v) {
|
|
|
23606
23690
|
// src/client/types/app/bsky/notification/updateSeen.ts
|
|
23607
23691
|
var updateSeen_exports = {};
|
|
23608
23692
|
__export(updateSeen_exports, {
|
|
23609
|
-
toKnownErr: () =>
|
|
23693
|
+
toKnownErr: () => toKnownErr92
|
|
23610
23694
|
});
|
|
23611
|
-
function
|
|
23695
|
+
function toKnownErr92(e) {
|
|
23612
23696
|
if (e instanceof XRPCError) {
|
|
23613
23697
|
}
|
|
23614
23698
|
return e;
|
|
@@ -23617,9 +23701,9 @@ function toKnownErr91(e) {
|
|
|
23617
23701
|
// src/client/types/app/bsky/unspecced/applyLabels.ts
|
|
23618
23702
|
var applyLabels_exports = {};
|
|
23619
23703
|
__export(applyLabels_exports, {
|
|
23620
|
-
toKnownErr: () =>
|
|
23704
|
+
toKnownErr: () => toKnownErr93
|
|
23621
23705
|
});
|
|
23622
|
-
function
|
|
23706
|
+
function toKnownErr93(e) {
|
|
23623
23707
|
if (e instanceof XRPCError) {
|
|
23624
23708
|
}
|
|
23625
23709
|
return e;
|
|
@@ -23628,9 +23712,9 @@ function toKnownErr92(e) {
|
|
|
23628
23712
|
// src/client/types/app/bsky/unspecced/getPopular.ts
|
|
23629
23713
|
var getPopular_exports = {};
|
|
23630
23714
|
__export(getPopular_exports, {
|
|
23631
|
-
toKnownErr: () =>
|
|
23715
|
+
toKnownErr: () => toKnownErr94
|
|
23632
23716
|
});
|
|
23633
|
-
function
|
|
23717
|
+
function toKnownErr94(e) {
|
|
23634
23718
|
if (e instanceof XRPCError) {
|
|
23635
23719
|
}
|
|
23636
23720
|
return e;
|
|
@@ -23639,9 +23723,9 @@ function toKnownErr93(e) {
|
|
|
23639
23723
|
// src/client/types/app/bsky/unspecced/getPopularFeedGenerators.ts
|
|
23640
23724
|
var getPopularFeedGenerators_exports = {};
|
|
23641
23725
|
__export(getPopularFeedGenerators_exports, {
|
|
23642
|
-
toKnownErr: () =>
|
|
23726
|
+
toKnownErr: () => toKnownErr95
|
|
23643
23727
|
});
|
|
23644
|
-
function
|
|
23728
|
+
function toKnownErr95(e) {
|
|
23645
23729
|
if (e instanceof XRPCError) {
|
|
23646
23730
|
}
|
|
23647
23731
|
return e;
|
|
@@ -23651,14 +23735,14 @@ function toKnownErr94(e) {
|
|
|
23651
23735
|
var getTimelineSkeleton_exports = {};
|
|
23652
23736
|
__export(getTimelineSkeleton_exports, {
|
|
23653
23737
|
UnknownFeedError: () => UnknownFeedError3,
|
|
23654
|
-
toKnownErr: () =>
|
|
23738
|
+
toKnownErr: () => toKnownErr96
|
|
23655
23739
|
});
|
|
23656
23740
|
var UnknownFeedError3 = class extends XRPCError {
|
|
23657
23741
|
constructor(src2) {
|
|
23658
23742
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
23659
23743
|
}
|
|
23660
23744
|
};
|
|
23661
|
-
function
|
|
23745
|
+
function toKnownErr96(e) {
|
|
23662
23746
|
if (e instanceof XRPCError) {
|
|
23663
23747
|
if (e.error === "UnknownFeed")
|
|
23664
23748
|
return new UnknownFeedError3(e);
|
|
@@ -25004,54 +25088,59 @@ var FeedNS = class {
|
|
|
25004
25088
|
throw toKnownErr67(e);
|
|
25005
25089
|
});
|
|
25006
25090
|
}
|
|
25091
|
+
getActorLikes(params2, opts) {
|
|
25092
|
+
return this._service.xrpc.call("app.bsky.feed.getActorLikes", params2, void 0, opts).catch((e) => {
|
|
25093
|
+
throw toKnownErr68(e);
|
|
25094
|
+
});
|
|
25095
|
+
}
|
|
25007
25096
|
getAuthorFeed(params2, opts) {
|
|
25008
25097
|
return this._service.xrpc.call("app.bsky.feed.getAuthorFeed", params2, void 0, opts).catch((e) => {
|
|
25009
|
-
throw
|
|
25098
|
+
throw toKnownErr69(e);
|
|
25010
25099
|
});
|
|
25011
25100
|
}
|
|
25012
25101
|
getFeed(params2, opts) {
|
|
25013
25102
|
return this._service.xrpc.call("app.bsky.feed.getFeed", params2, void 0, opts).catch((e) => {
|
|
25014
|
-
throw
|
|
25103
|
+
throw toKnownErr70(e);
|
|
25015
25104
|
});
|
|
25016
25105
|
}
|
|
25017
25106
|
getFeedGenerator(params2, opts) {
|
|
25018
25107
|
return this._service.xrpc.call("app.bsky.feed.getFeedGenerator", params2, void 0, opts).catch((e) => {
|
|
25019
|
-
throw
|
|
25108
|
+
throw toKnownErr71(e);
|
|
25020
25109
|
});
|
|
25021
25110
|
}
|
|
25022
25111
|
getFeedGenerators(params2, opts) {
|
|
25023
25112
|
return this._service.xrpc.call("app.bsky.feed.getFeedGenerators", params2, void 0, opts).catch((e) => {
|
|
25024
|
-
throw
|
|
25113
|
+
throw toKnownErr72(e);
|
|
25025
25114
|
});
|
|
25026
25115
|
}
|
|
25027
25116
|
getFeedSkeleton(params2, opts) {
|
|
25028
25117
|
return this._service.xrpc.call("app.bsky.feed.getFeedSkeleton", params2, void 0, opts).catch((e) => {
|
|
25029
|
-
throw
|
|
25118
|
+
throw toKnownErr73(e);
|
|
25030
25119
|
});
|
|
25031
25120
|
}
|
|
25032
25121
|
getLikes(params2, opts) {
|
|
25033
25122
|
return this._service.xrpc.call("app.bsky.feed.getLikes", params2, void 0, opts).catch((e) => {
|
|
25034
|
-
throw
|
|
25123
|
+
throw toKnownErr74(e);
|
|
25035
25124
|
});
|
|
25036
25125
|
}
|
|
25037
25126
|
getPostThread(params2, opts) {
|
|
25038
25127
|
return this._service.xrpc.call("app.bsky.feed.getPostThread", params2, void 0, opts).catch((e) => {
|
|
25039
|
-
throw
|
|
25128
|
+
throw toKnownErr75(e);
|
|
25040
25129
|
});
|
|
25041
25130
|
}
|
|
25042
25131
|
getPosts(params2, opts) {
|
|
25043
25132
|
return this._service.xrpc.call("app.bsky.feed.getPosts", params2, void 0, opts).catch((e) => {
|
|
25044
|
-
throw
|
|
25133
|
+
throw toKnownErr76(e);
|
|
25045
25134
|
});
|
|
25046
25135
|
}
|
|
25047
25136
|
getRepostedBy(params2, opts) {
|
|
25048
25137
|
return this._service.xrpc.call("app.bsky.feed.getRepostedBy", params2, void 0, opts).catch((e) => {
|
|
25049
|
-
throw
|
|
25138
|
+
throw toKnownErr77(e);
|
|
25050
25139
|
});
|
|
25051
25140
|
}
|
|
25052
25141
|
getTimeline(params2, opts) {
|
|
25053
25142
|
return this._service.xrpc.call("app.bsky.feed.getTimeline", params2, void 0, opts).catch((e) => {
|
|
25054
|
-
throw
|
|
25143
|
+
throw toKnownErr78(e);
|
|
25055
25144
|
});
|
|
25056
25145
|
}
|
|
25057
25146
|
};
|
|
@@ -25213,57 +25302,57 @@ var GraphNS = class {
|
|
|
25213
25302
|
}
|
|
25214
25303
|
getBlocks(params2, opts) {
|
|
25215
25304
|
return this._service.xrpc.call("app.bsky.graph.getBlocks", params2, void 0, opts).catch((e) => {
|
|
25216
|
-
throw
|
|
25305
|
+
throw toKnownErr79(e);
|
|
25217
25306
|
});
|
|
25218
25307
|
}
|
|
25219
25308
|
getFollowers(params2, opts) {
|
|
25220
25309
|
return this._service.xrpc.call("app.bsky.graph.getFollowers", params2, void 0, opts).catch((e) => {
|
|
25221
|
-
throw
|
|
25310
|
+
throw toKnownErr80(e);
|
|
25222
25311
|
});
|
|
25223
25312
|
}
|
|
25224
25313
|
getFollows(params2, opts) {
|
|
25225
25314
|
return this._service.xrpc.call("app.bsky.graph.getFollows", params2, void 0, opts).catch((e) => {
|
|
25226
|
-
throw
|
|
25315
|
+
throw toKnownErr81(e);
|
|
25227
25316
|
});
|
|
25228
25317
|
}
|
|
25229
25318
|
getList(params2, opts) {
|
|
25230
25319
|
return this._service.xrpc.call("app.bsky.graph.getList", params2, void 0, opts).catch((e) => {
|
|
25231
|
-
throw
|
|
25320
|
+
throw toKnownErr82(e);
|
|
25232
25321
|
});
|
|
25233
25322
|
}
|
|
25234
25323
|
getListMutes(params2, opts) {
|
|
25235
25324
|
return this._service.xrpc.call("app.bsky.graph.getListMutes", params2, void 0, opts).catch((e) => {
|
|
25236
|
-
throw
|
|
25325
|
+
throw toKnownErr83(e);
|
|
25237
25326
|
});
|
|
25238
25327
|
}
|
|
25239
25328
|
getLists(params2, opts) {
|
|
25240
25329
|
return this._service.xrpc.call("app.bsky.graph.getLists", params2, void 0, opts).catch((e) => {
|
|
25241
|
-
throw
|
|
25330
|
+
throw toKnownErr84(e);
|
|
25242
25331
|
});
|
|
25243
25332
|
}
|
|
25244
25333
|
getMutes(params2, opts) {
|
|
25245
25334
|
return this._service.xrpc.call("app.bsky.graph.getMutes", params2, void 0, opts).catch((e) => {
|
|
25246
|
-
throw
|
|
25335
|
+
throw toKnownErr85(e);
|
|
25247
25336
|
});
|
|
25248
25337
|
}
|
|
25249
25338
|
muteActor(data, opts) {
|
|
25250
25339
|
return this._service.xrpc.call("app.bsky.graph.muteActor", opts?.qp, data, opts).catch((e) => {
|
|
25251
|
-
throw
|
|
25340
|
+
throw toKnownErr86(e);
|
|
25252
25341
|
});
|
|
25253
25342
|
}
|
|
25254
25343
|
muteActorList(data, opts) {
|
|
25255
25344
|
return this._service.xrpc.call("app.bsky.graph.muteActorList", opts?.qp, data, opts).catch((e) => {
|
|
25256
|
-
throw
|
|
25345
|
+
throw toKnownErr87(e);
|
|
25257
25346
|
});
|
|
25258
25347
|
}
|
|
25259
25348
|
unmuteActor(data, opts) {
|
|
25260
25349
|
return this._service.xrpc.call("app.bsky.graph.unmuteActor", opts?.qp, data, opts).catch((e) => {
|
|
25261
|
-
throw
|
|
25350
|
+
throw toKnownErr88(e);
|
|
25262
25351
|
});
|
|
25263
25352
|
}
|
|
25264
25353
|
unmuteActorList(data, opts) {
|
|
25265
25354
|
return this._service.xrpc.call("app.bsky.graph.unmuteActorList", opts?.qp, data, opts).catch((e) => {
|
|
25266
|
-
throw
|
|
25355
|
+
throw toKnownErr89(e);
|
|
25267
25356
|
});
|
|
25268
25357
|
}
|
|
25269
25358
|
};
|
|
@@ -25421,17 +25510,17 @@ var NotificationNS = class {
|
|
|
25421
25510
|
}
|
|
25422
25511
|
getUnreadCount(params2, opts) {
|
|
25423
25512
|
return this._service.xrpc.call("app.bsky.notification.getUnreadCount", params2, void 0, opts).catch((e) => {
|
|
25424
|
-
throw
|
|
25513
|
+
throw toKnownErr90(e);
|
|
25425
25514
|
});
|
|
25426
25515
|
}
|
|
25427
25516
|
listNotifications(params2, opts) {
|
|
25428
25517
|
return this._service.xrpc.call("app.bsky.notification.listNotifications", params2, void 0, opts).catch((e) => {
|
|
25429
|
-
throw
|
|
25518
|
+
throw toKnownErr91(e);
|
|
25430
25519
|
});
|
|
25431
25520
|
}
|
|
25432
25521
|
updateSeen(data, opts) {
|
|
25433
25522
|
return this._service.xrpc.call("app.bsky.notification.updateSeen", opts?.qp, data, opts).catch((e) => {
|
|
25434
|
-
throw
|
|
25523
|
+
throw toKnownErr92(e);
|
|
25435
25524
|
});
|
|
25436
25525
|
}
|
|
25437
25526
|
};
|
|
@@ -25446,12 +25535,12 @@ var UnspeccedNS = class {
|
|
|
25446
25535
|
}
|
|
25447
25536
|
applyLabels(data, opts) {
|
|
25448
25537
|
return this._service.xrpc.call("app.bsky.unspecced.applyLabels", opts?.qp, data, opts).catch((e) => {
|
|
25449
|
-
throw
|
|
25538
|
+
throw toKnownErr93(e);
|
|
25450
25539
|
});
|
|
25451
25540
|
}
|
|
25452
25541
|
getPopular(params2, opts) {
|
|
25453
25542
|
return this._service.xrpc.call("app.bsky.unspecced.getPopular", params2, void 0, opts).catch((e) => {
|
|
25454
|
-
throw
|
|
25543
|
+
throw toKnownErr94(e);
|
|
25455
25544
|
});
|
|
25456
25545
|
}
|
|
25457
25546
|
getPopularFeedGenerators(params2, opts) {
|
|
@@ -25461,12 +25550,12 @@ var UnspeccedNS = class {
|
|
|
25461
25550
|
void 0,
|
|
25462
25551
|
opts
|
|
25463
25552
|
).catch((e) => {
|
|
25464
|
-
throw
|
|
25553
|
+
throw toKnownErr95(e);
|
|
25465
25554
|
});
|
|
25466
25555
|
}
|
|
25467
25556
|
getTimelineSkeleton(params2, opts) {
|
|
25468
25557
|
return this._service.xrpc.call("app.bsky.unspecced.getTimelineSkeleton", params2, void 0, opts).catch((e) => {
|
|
25469
|
-
throw
|
|
25558
|
+
throw toKnownErr96(e);
|
|
25470
25559
|
});
|
|
25471
25560
|
}
|
|
25472
25561
|
};
|
|
@@ -28859,6 +28948,7 @@ var BskyAgent = class extends AtpAgent {
|
|
|
28859
28948
|
super(...arguments);
|
|
28860
28949
|
this.getTimeline = (params2, opts) => this.api.app.bsky.feed.getTimeline(params2, opts);
|
|
28861
28950
|
this.getAuthorFeed = (params2, opts) => this.api.app.bsky.feed.getAuthorFeed(params2, opts);
|
|
28951
|
+
this.getActorLikes = (params2, opts) => this.api.app.bsky.feed.getActorLikes(params2, opts);
|
|
28862
28952
|
this.getPostThread = (params2, opts) => this.api.app.bsky.feed.getPostThread(params2, opts);
|
|
28863
28953
|
this.getPost = (params2) => this.api.app.bsky.feed.post.get(params2);
|
|
28864
28954
|
this.getPosts = (params2, opts) => this.api.app.bsky.feed.getPosts(params2, opts);
|