@atproto/api 0.2.8 → 0.2.10
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/README.md +2 -0
- package/dist/bsky-agent.d.ts +2 -0
- package/dist/client/index.d.ts +3 -0
- package/dist/client/lexicons.d.ts +48 -0
- package/dist/client/types/app/bsky/embed/record.d.ts +2 -0
- package/dist/client/types/app/bsky/feed/getPosts.d.ts +19 -0
- package/dist/index.js +151 -35
- package/dist/index.js.map +4 -4
- package/package.json +1 -1
- package/src/bsky-agent.ts +8 -0
- package/src/client/index.ts +13 -0
- package/src/client/lexicons.ts +49 -2
- package/src/client/types/app/bsky/embed/record.ts +2 -0
- package/src/client/types/app/bsky/feed/getPosts.ts +36 -0
- package/src/client/types/com/atproto/sync/getRepo.ts +1 -1
- package/tsconfig.build.tsbuildinfo +1 -1
package/README.md
CHANGED
|
@@ -57,6 +57,7 @@ await agent.getTimeline(params, opts)
|
|
|
57
57
|
await agent.getAuthorFeed(params, opts)
|
|
58
58
|
await agent.getPostThread(params, opts)
|
|
59
59
|
await agent.getPost(params)
|
|
60
|
+
await agent.getPosts(params, opts)
|
|
60
61
|
await agent.getLikes(params, opts)
|
|
61
62
|
await agent.getRepostedBy(params, opts)
|
|
62
63
|
await agent.post(record)
|
|
@@ -77,6 +78,7 @@ await agent.deleteFollow(followUri)
|
|
|
77
78
|
await agent.getProfile(params, opts)
|
|
78
79
|
await agent.upsertProfile(updateFn)
|
|
79
80
|
await agent.getProfiles(params, opts)
|
|
81
|
+
await agent.getSuggestions(params, opts)
|
|
80
82
|
await agent.searchActors(params, opts)
|
|
81
83
|
await agent.searchActorsTypeahead(params, opts)
|
|
82
84
|
await agent.mute(did)
|
package/dist/bsky-agent.d.ts
CHANGED
|
@@ -6,12 +6,14 @@ export declare class BskyAgent extends AtpAgent {
|
|
|
6
6
|
getAuthorFeed: typeof this.api.app.bsky.feed.getAuthorFeed;
|
|
7
7
|
getPostThread: typeof this.api.app.bsky.feed.getPostThread;
|
|
8
8
|
getPost: typeof this.api.app.bsky.feed.post.get;
|
|
9
|
+
getPosts: typeof this.api.app.bsky.feed.getPosts;
|
|
9
10
|
getLikes: typeof this.api.app.bsky.feed.getLikes;
|
|
10
11
|
getRepostedBy: typeof this.api.app.bsky.feed.getRepostedBy;
|
|
11
12
|
getFollows: typeof this.api.app.bsky.graph.getFollows;
|
|
12
13
|
getFollowers: typeof this.api.app.bsky.graph.getFollowers;
|
|
13
14
|
getProfile: typeof this.api.app.bsky.actor.getProfile;
|
|
14
15
|
getProfiles: typeof this.api.app.bsky.actor.getProfiles;
|
|
16
|
+
getSuggestions: typeof this.api.app.bsky.actor.getSuggestions;
|
|
15
17
|
searchActors: typeof this.api.app.bsky.actor.searchActors;
|
|
16
18
|
searchActorsTypeahead: typeof this.api.app.bsky.actor.searchActorsTypeahead;
|
|
17
19
|
listNotifications: typeof this.api.app.bsky.notification.listNotifications;
|
package/dist/client/index.d.ts
CHANGED
|
@@ -61,6 +61,7 @@ import * as AppBskyActorSearchActorsTypeahead from './types/app/bsky/actor/searc
|
|
|
61
61
|
import * as AppBskyFeedGetAuthorFeed from './types/app/bsky/feed/getAuthorFeed';
|
|
62
62
|
import * as AppBskyFeedGetLikes from './types/app/bsky/feed/getLikes';
|
|
63
63
|
import * as AppBskyFeedGetPostThread from './types/app/bsky/feed/getPostThread';
|
|
64
|
+
import * as AppBskyFeedGetPosts from './types/app/bsky/feed/getPosts';
|
|
64
65
|
import * as AppBskyFeedGetRepostedBy from './types/app/bsky/feed/getRepostedBy';
|
|
65
66
|
import * as AppBskyFeedGetTimeline from './types/app/bsky/feed/getTimeline';
|
|
66
67
|
import * as AppBskyFeedLike from './types/app/bsky/feed/like';
|
|
@@ -151,6 +152,7 @@ export * as AppBskyFeedDefs from './types/app/bsky/feed/defs';
|
|
|
151
152
|
export * as AppBskyFeedGetAuthorFeed from './types/app/bsky/feed/getAuthorFeed';
|
|
152
153
|
export * as AppBskyFeedGetLikes from './types/app/bsky/feed/getLikes';
|
|
153
154
|
export * as AppBskyFeedGetPostThread from './types/app/bsky/feed/getPostThread';
|
|
155
|
+
export * as AppBskyFeedGetPosts from './types/app/bsky/feed/getPosts';
|
|
154
156
|
export * as AppBskyFeedGetRepostedBy from './types/app/bsky/feed/getRepostedBy';
|
|
155
157
|
export * as AppBskyFeedGetTimeline from './types/app/bsky/feed/getTimeline';
|
|
156
158
|
export * as AppBskyFeedLike from './types/app/bsky/feed/like';
|
|
@@ -350,6 +352,7 @@ export declare class FeedNS {
|
|
|
350
352
|
getAuthorFeed(params?: AppBskyFeedGetAuthorFeed.QueryParams, opts?: AppBskyFeedGetAuthorFeed.CallOptions): Promise<AppBskyFeedGetAuthorFeed.Response>;
|
|
351
353
|
getLikes(params?: AppBskyFeedGetLikes.QueryParams, opts?: AppBskyFeedGetLikes.CallOptions): Promise<AppBskyFeedGetLikes.Response>;
|
|
352
354
|
getPostThread(params?: AppBskyFeedGetPostThread.QueryParams, opts?: AppBskyFeedGetPostThread.CallOptions): Promise<AppBskyFeedGetPostThread.Response>;
|
|
355
|
+
getPosts(params?: AppBskyFeedGetPosts.QueryParams, opts?: AppBskyFeedGetPosts.CallOptions): Promise<AppBskyFeedGetPosts.Response>;
|
|
353
356
|
getRepostedBy(params?: AppBskyFeedGetRepostedBy.QueryParams, opts?: AppBskyFeedGetRepostedBy.CallOptions): Promise<AppBskyFeedGetRepostedBy.Response>;
|
|
354
357
|
getTimeline(params?: AppBskyFeedGetTimeline.QueryParams, opts?: AppBskyFeedGetTimeline.CallOptions): Promise<AppBskyFeedGetTimeline.Response>;
|
|
355
358
|
}
|
|
@@ -3585,6 +3585,13 @@ export declare const schemaDict: {
|
|
|
3585
3585
|
value: {
|
|
3586
3586
|
type: string;
|
|
3587
3587
|
};
|
|
3588
|
+
labels: {
|
|
3589
|
+
type: string;
|
|
3590
|
+
items: {
|
|
3591
|
+
type: string;
|
|
3592
|
+
ref: string;
|
|
3593
|
+
};
|
|
3594
|
+
};
|
|
3588
3595
|
embeds: {
|
|
3589
3596
|
type: string;
|
|
3590
3597
|
items: {
|
|
@@ -3957,6 +3964,46 @@ export declare const schemaDict: {
|
|
|
3957
3964
|
};
|
|
3958
3965
|
};
|
|
3959
3966
|
};
|
|
3967
|
+
AppBskyFeedGetPosts: {
|
|
3968
|
+
lexicon: number;
|
|
3969
|
+
id: string;
|
|
3970
|
+
defs: {
|
|
3971
|
+
main: {
|
|
3972
|
+
type: string;
|
|
3973
|
+
description: string;
|
|
3974
|
+
parameters: {
|
|
3975
|
+
type: string;
|
|
3976
|
+
required: string[];
|
|
3977
|
+
properties: {
|
|
3978
|
+
uris: {
|
|
3979
|
+
type: string;
|
|
3980
|
+
items: {
|
|
3981
|
+
type: string;
|
|
3982
|
+
format: string;
|
|
3983
|
+
};
|
|
3984
|
+
maxLength: number;
|
|
3985
|
+
};
|
|
3986
|
+
};
|
|
3987
|
+
};
|
|
3988
|
+
output: {
|
|
3989
|
+
encoding: string;
|
|
3990
|
+
schema: {
|
|
3991
|
+
type: string;
|
|
3992
|
+
required: string[];
|
|
3993
|
+
properties: {
|
|
3994
|
+
posts: {
|
|
3995
|
+
type: string;
|
|
3996
|
+
items: {
|
|
3997
|
+
type: string;
|
|
3998
|
+
ref: string;
|
|
3999
|
+
};
|
|
4000
|
+
};
|
|
4001
|
+
};
|
|
4002
|
+
};
|
|
4003
|
+
};
|
|
4004
|
+
};
|
|
4005
|
+
};
|
|
4006
|
+
};
|
|
3960
4007
|
AppBskyFeedGetRepostedBy: {
|
|
3961
4008
|
lexicon: number;
|
|
3962
4009
|
id: string;
|
|
@@ -4748,6 +4795,7 @@ export declare const ids: {
|
|
|
4748
4795
|
AppBskyFeedGetAuthorFeed: string;
|
|
4749
4796
|
AppBskyFeedGetLikes: string;
|
|
4750
4797
|
AppBskyFeedGetPostThread: string;
|
|
4798
|
+
AppBskyFeedGetPosts: string;
|
|
4751
4799
|
AppBskyFeedGetRepostedBy: string;
|
|
4752
4800
|
AppBskyFeedGetTimeline: string;
|
|
4753
4801
|
AppBskyFeedLike: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ValidationResult } from '@atproto/lexicon';
|
|
2
2
|
import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef';
|
|
3
3
|
import * as AppBskyActorDefs from '../actor/defs';
|
|
4
|
+
import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs';
|
|
4
5
|
import * as AppBskyEmbedImages from './images';
|
|
5
6
|
import * as AppBskyEmbedExternal from './external';
|
|
6
7
|
import * as AppBskyEmbedRecordWithMedia from './recordWithMedia';
|
|
@@ -24,6 +25,7 @@ export interface ViewRecord {
|
|
|
24
25
|
cid: string;
|
|
25
26
|
author: AppBskyActorDefs.ProfileViewBasic;
|
|
26
27
|
value: {};
|
|
28
|
+
labels?: ComAtprotoLabelDefs.Label[];
|
|
27
29
|
embeds?: (AppBskyEmbedImages.View | AppBskyEmbedExternal.View | View | AppBskyEmbedRecordWithMedia.View | {
|
|
28
30
|
$type: string;
|
|
29
31
|
[k: string]: unknown;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Headers } from '@atproto/xrpc';
|
|
2
|
+
import * as AppBskyFeedDefs from './defs';
|
|
3
|
+
export interface QueryParams {
|
|
4
|
+
uris: string[];
|
|
5
|
+
}
|
|
6
|
+
export declare type InputSchema = undefined;
|
|
7
|
+
export interface OutputSchema {
|
|
8
|
+
posts: AppBskyFeedDefs.PostView[];
|
|
9
|
+
[k: string]: unknown;
|
|
10
|
+
}
|
|
11
|
+
export interface CallOptions {
|
|
12
|
+
headers?: Headers;
|
|
13
|
+
}
|
|
14
|
+
export interface Response {
|
|
15
|
+
success: boolean;
|
|
16
|
+
headers: Headers;
|
|
17
|
+
data: OutputSchema;
|
|
18
|
+
}
|
|
19
|
+
export declare function toKnownErr(e: any): any;
|
package/dist/index.js
CHANGED
|
@@ -95,6 +95,7 @@ __export(src_exports4, {
|
|
|
95
95
|
AppBskyFeedGetAuthorFeed: () => getAuthorFeed_exports,
|
|
96
96
|
AppBskyFeedGetLikes: () => getLikes_exports,
|
|
97
97
|
AppBskyFeedGetPostThread: () => getPostThread_exports,
|
|
98
|
+
AppBskyFeedGetPosts: () => getPosts_exports,
|
|
98
99
|
AppBskyFeedGetRepostedBy: () => getRepostedBy_exports,
|
|
99
100
|
AppBskyFeedGetTimeline: () => getTimeline_exports,
|
|
100
101
|
AppBskyFeedLike: () => like_exports,
|
|
@@ -5342,7 +5343,57 @@ var famousAccounts = [
|
|
|
5342
5343
|
"ukraine",
|
|
5343
5344
|
"washingtonpost",
|
|
5344
5345
|
"yousuck2020",
|
|
5345
|
-
"zelenskyyua"
|
|
5346
|
+
"zelenskyyua",
|
|
5347
|
+
"akiko_lawson",
|
|
5348
|
+
"ariyoshihiroiki",
|
|
5349
|
+
"asahi",
|
|
5350
|
+
"dozle_official",
|
|
5351
|
+
"famima_now",
|
|
5352
|
+
"ff_xiv_jp",
|
|
5353
|
+
"fujitv",
|
|
5354
|
+
"gigazine",
|
|
5355
|
+
"hajimesyacho",
|
|
5356
|
+
"hikakin",
|
|
5357
|
+
"jocx",
|
|
5358
|
+
"jotx",
|
|
5359
|
+
"kiyo_saiore",
|
|
5360
|
+
"mainichi",
|
|
5361
|
+
"matsu_bouzu",
|
|
5362
|
+
"naomiosaka",
|
|
5363
|
+
"nhk",
|
|
5364
|
+
"nikkei",
|
|
5365
|
+
"nintendo",
|
|
5366
|
+
"ntv",
|
|
5367
|
+
"oowareware1945",
|
|
5368
|
+
"pamyurin",
|
|
5369
|
+
"poke_times",
|
|
5370
|
+
"rolaworld",
|
|
5371
|
+
"seikintv",
|
|
5372
|
+
"starbucksjapan",
|
|
5373
|
+
"tbs",
|
|
5374
|
+
"tbs_pr",
|
|
5375
|
+
"tvasahi",
|
|
5376
|
+
"tvtokyo",
|
|
5377
|
+
"yokoono",
|
|
5378
|
+
"yomiuri_online",
|
|
5379
|
+
"brasildefato",
|
|
5380
|
+
"claudialeitte",
|
|
5381
|
+
"correio",
|
|
5382
|
+
"em_com",
|
|
5383
|
+
"estadao",
|
|
5384
|
+
"folha",
|
|
5385
|
+
"gazetadopovo",
|
|
5386
|
+
"ivetesangalo",
|
|
5387
|
+
"jairbolsonaro",
|
|
5388
|
+
"jornaldobrasil",
|
|
5389
|
+
"jornaloglobo",
|
|
5390
|
+
"lucianohuck",
|
|
5391
|
+
"lulaoficial",
|
|
5392
|
+
"marcosmion",
|
|
5393
|
+
"paulocoelho",
|
|
5394
|
+
"portalr7",
|
|
5395
|
+
"rede_globo",
|
|
5396
|
+
"zerohora"
|
|
5346
5397
|
];
|
|
5347
5398
|
var reservedSubdomains = [
|
|
5348
5399
|
...atpSpecific,
|
|
@@ -9958,7 +10009,7 @@ var schemaDict = {
|
|
|
9958
10009
|
latest: {
|
|
9959
10010
|
type: "string",
|
|
9960
10011
|
format: "cid",
|
|
9961
|
-
description: "The latest commit
|
|
10012
|
+
description: "The latest commit in the commit range (inclusive)"
|
|
9962
10013
|
}
|
|
9963
10014
|
}
|
|
9964
10015
|
},
|
|
@@ -10856,6 +10907,13 @@ var schemaDict = {
|
|
|
10856
10907
|
value: {
|
|
10857
10908
|
type: "unknown"
|
|
10858
10909
|
},
|
|
10910
|
+
labels: {
|
|
10911
|
+
type: "array",
|
|
10912
|
+
items: {
|
|
10913
|
+
type: "ref",
|
|
10914
|
+
ref: "lex:com.atproto.label.defs#label"
|
|
10915
|
+
}
|
|
10916
|
+
},
|
|
10859
10917
|
embeds: {
|
|
10860
10918
|
type: "array",
|
|
10861
10919
|
items: {
|
|
@@ -11252,6 +11310,46 @@ var schemaDict = {
|
|
|
11252
11310
|
}
|
|
11253
11311
|
}
|
|
11254
11312
|
},
|
|
11313
|
+
AppBskyFeedGetPosts: {
|
|
11314
|
+
lexicon: 1,
|
|
11315
|
+
id: "app.bsky.feed.getPosts",
|
|
11316
|
+
defs: {
|
|
11317
|
+
main: {
|
|
11318
|
+
type: "query",
|
|
11319
|
+
description: "A view of an actor's feed.",
|
|
11320
|
+
parameters: {
|
|
11321
|
+
type: "params",
|
|
11322
|
+
required: ["uris"],
|
|
11323
|
+
properties: {
|
|
11324
|
+
uris: {
|
|
11325
|
+
type: "array",
|
|
11326
|
+
items: {
|
|
11327
|
+
type: "string",
|
|
11328
|
+
format: "at-uri"
|
|
11329
|
+
},
|
|
11330
|
+
maxLength: 25
|
|
11331
|
+
}
|
|
11332
|
+
}
|
|
11333
|
+
},
|
|
11334
|
+
output: {
|
|
11335
|
+
encoding: "application/json",
|
|
11336
|
+
schema: {
|
|
11337
|
+
type: "object",
|
|
11338
|
+
required: ["posts"],
|
|
11339
|
+
properties: {
|
|
11340
|
+
posts: {
|
|
11341
|
+
type: "array",
|
|
11342
|
+
items: {
|
|
11343
|
+
type: "ref",
|
|
11344
|
+
ref: "lex:app.bsky.feed.defs#postView"
|
|
11345
|
+
}
|
|
11346
|
+
}
|
|
11347
|
+
}
|
|
11348
|
+
}
|
|
11349
|
+
}
|
|
11350
|
+
}
|
|
11351
|
+
}
|
|
11352
|
+
},
|
|
11255
11353
|
AppBskyFeedGetRepostedBy: {
|
|
11256
11354
|
lexicon: 1,
|
|
11257
11355
|
id: "app.bsky.feed.getRepostedBy",
|
|
@@ -12918,12 +13016,23 @@ function toKnownErr61(e) {
|
|
|
12918
13016
|
return e;
|
|
12919
13017
|
}
|
|
12920
13018
|
|
|
13019
|
+
// src/client/types/app/bsky/feed/getPosts.ts
|
|
13020
|
+
var getPosts_exports = {};
|
|
13021
|
+
__export(getPosts_exports, {
|
|
13022
|
+
toKnownErr: () => toKnownErr62
|
|
13023
|
+
});
|
|
13024
|
+
function toKnownErr62(e) {
|
|
13025
|
+
if (e instanceof XRPCError) {
|
|
13026
|
+
}
|
|
13027
|
+
return e;
|
|
13028
|
+
}
|
|
13029
|
+
|
|
12921
13030
|
// src/client/types/app/bsky/feed/getRepostedBy.ts
|
|
12922
13031
|
var getRepostedBy_exports = {};
|
|
12923
13032
|
__export(getRepostedBy_exports, {
|
|
12924
|
-
toKnownErr: () =>
|
|
13033
|
+
toKnownErr: () => toKnownErr63
|
|
12925
13034
|
});
|
|
12926
|
-
function
|
|
13035
|
+
function toKnownErr63(e) {
|
|
12927
13036
|
if (e instanceof XRPCError) {
|
|
12928
13037
|
}
|
|
12929
13038
|
return e;
|
|
@@ -12932,9 +13041,9 @@ function toKnownErr62(e) {
|
|
|
12932
13041
|
// src/client/types/app/bsky/feed/getTimeline.ts
|
|
12933
13042
|
var getTimeline_exports = {};
|
|
12934
13043
|
__export(getTimeline_exports, {
|
|
12935
|
-
toKnownErr: () =>
|
|
13044
|
+
toKnownErr: () => toKnownErr64
|
|
12936
13045
|
});
|
|
12937
|
-
function
|
|
13046
|
+
function toKnownErr64(e) {
|
|
12938
13047
|
if (e instanceof XRPCError) {
|
|
12939
13048
|
}
|
|
12940
13049
|
return e;
|
|
@@ -12943,9 +13052,9 @@ function toKnownErr63(e) {
|
|
|
12943
13052
|
// src/client/types/app/bsky/graph/getFollowers.ts
|
|
12944
13053
|
var getFollowers_exports = {};
|
|
12945
13054
|
__export(getFollowers_exports, {
|
|
12946
|
-
toKnownErr: () =>
|
|
13055
|
+
toKnownErr: () => toKnownErr65
|
|
12947
13056
|
});
|
|
12948
|
-
function
|
|
13057
|
+
function toKnownErr65(e) {
|
|
12949
13058
|
if (e instanceof XRPCError) {
|
|
12950
13059
|
}
|
|
12951
13060
|
return e;
|
|
@@ -12954,9 +13063,9 @@ function toKnownErr64(e) {
|
|
|
12954
13063
|
// src/client/types/app/bsky/graph/getFollows.ts
|
|
12955
13064
|
var getFollows_exports = {};
|
|
12956
13065
|
__export(getFollows_exports, {
|
|
12957
|
-
toKnownErr: () =>
|
|
13066
|
+
toKnownErr: () => toKnownErr66
|
|
12958
13067
|
});
|
|
12959
|
-
function
|
|
13068
|
+
function toKnownErr66(e) {
|
|
12960
13069
|
if (e instanceof XRPCError) {
|
|
12961
13070
|
}
|
|
12962
13071
|
return e;
|
|
@@ -12965,9 +13074,9 @@ function toKnownErr65(e) {
|
|
|
12965
13074
|
// src/client/types/app/bsky/graph/getMutes.ts
|
|
12966
13075
|
var getMutes_exports = {};
|
|
12967
13076
|
__export(getMutes_exports, {
|
|
12968
|
-
toKnownErr: () =>
|
|
13077
|
+
toKnownErr: () => toKnownErr67
|
|
12969
13078
|
});
|
|
12970
|
-
function
|
|
13079
|
+
function toKnownErr67(e) {
|
|
12971
13080
|
if (e instanceof XRPCError) {
|
|
12972
13081
|
}
|
|
12973
13082
|
return e;
|
|
@@ -12976,9 +13085,9 @@ function toKnownErr66(e) {
|
|
|
12976
13085
|
// src/client/types/app/bsky/graph/muteActor.ts
|
|
12977
13086
|
var muteActor_exports = {};
|
|
12978
13087
|
__export(muteActor_exports, {
|
|
12979
|
-
toKnownErr: () =>
|
|
13088
|
+
toKnownErr: () => toKnownErr68
|
|
12980
13089
|
});
|
|
12981
|
-
function
|
|
13090
|
+
function toKnownErr68(e) {
|
|
12982
13091
|
if (e instanceof XRPCError) {
|
|
12983
13092
|
}
|
|
12984
13093
|
return e;
|
|
@@ -12987,9 +13096,9 @@ function toKnownErr67(e) {
|
|
|
12987
13096
|
// src/client/types/app/bsky/graph/unmuteActor.ts
|
|
12988
13097
|
var unmuteActor_exports = {};
|
|
12989
13098
|
__export(unmuteActor_exports, {
|
|
12990
|
-
toKnownErr: () =>
|
|
13099
|
+
toKnownErr: () => toKnownErr69
|
|
12991
13100
|
});
|
|
12992
|
-
function
|
|
13101
|
+
function toKnownErr69(e) {
|
|
12993
13102
|
if (e instanceof XRPCError) {
|
|
12994
13103
|
}
|
|
12995
13104
|
return e;
|
|
@@ -12998,9 +13107,9 @@ function toKnownErr68(e) {
|
|
|
12998
13107
|
// src/client/types/app/bsky/notification/getUnreadCount.ts
|
|
12999
13108
|
var getUnreadCount_exports = {};
|
|
13000
13109
|
__export(getUnreadCount_exports, {
|
|
13001
|
-
toKnownErr: () =>
|
|
13110
|
+
toKnownErr: () => toKnownErr70
|
|
13002
13111
|
});
|
|
13003
|
-
function
|
|
13112
|
+
function toKnownErr70(e) {
|
|
13004
13113
|
if (e instanceof XRPCError) {
|
|
13005
13114
|
}
|
|
13006
13115
|
return e;
|
|
@@ -13010,10 +13119,10 @@ function toKnownErr69(e) {
|
|
|
13010
13119
|
var listNotifications_exports = {};
|
|
13011
13120
|
__export(listNotifications_exports, {
|
|
13012
13121
|
isNotification: () => isNotification,
|
|
13013
|
-
toKnownErr: () =>
|
|
13122
|
+
toKnownErr: () => toKnownErr71,
|
|
13014
13123
|
validateNotification: () => validateNotification
|
|
13015
13124
|
});
|
|
13016
|
-
function
|
|
13125
|
+
function toKnownErr71(e) {
|
|
13017
13126
|
if (e instanceof XRPCError) {
|
|
13018
13127
|
}
|
|
13019
13128
|
return e;
|
|
@@ -13031,9 +13140,9 @@ function validateNotification(v) {
|
|
|
13031
13140
|
// src/client/types/app/bsky/notification/updateSeen.ts
|
|
13032
13141
|
var updateSeen_exports = {};
|
|
13033
13142
|
__export(updateSeen_exports, {
|
|
13034
|
-
toKnownErr: () =>
|
|
13143
|
+
toKnownErr: () => toKnownErr72
|
|
13035
13144
|
});
|
|
13036
|
-
function
|
|
13145
|
+
function toKnownErr72(e) {
|
|
13037
13146
|
if (e instanceof XRPCError) {
|
|
13038
13147
|
}
|
|
13039
13148
|
return e;
|
|
@@ -13042,9 +13151,9 @@ function toKnownErr71(e) {
|
|
|
13042
13151
|
// src/client/types/app/bsky/unspecced/getPopular.ts
|
|
13043
13152
|
var getPopular_exports = {};
|
|
13044
13153
|
__export(getPopular_exports, {
|
|
13045
|
-
toKnownErr: () =>
|
|
13154
|
+
toKnownErr: () => toKnownErr73
|
|
13046
13155
|
});
|
|
13047
|
-
function
|
|
13156
|
+
function toKnownErr73(e) {
|
|
13048
13157
|
if (e instanceof XRPCError) {
|
|
13049
13158
|
}
|
|
13050
13159
|
return e;
|
|
@@ -14148,14 +14257,19 @@ var FeedNS = class {
|
|
|
14148
14257
|
throw toKnownErr61(e);
|
|
14149
14258
|
});
|
|
14150
14259
|
}
|
|
14260
|
+
getPosts(params2, opts) {
|
|
14261
|
+
return this._service.xrpc.call("app.bsky.feed.getPosts", params2, void 0, opts).catch((e) => {
|
|
14262
|
+
throw toKnownErr62(e);
|
|
14263
|
+
});
|
|
14264
|
+
}
|
|
14151
14265
|
getRepostedBy(params2, opts) {
|
|
14152
14266
|
return this._service.xrpc.call("app.bsky.feed.getRepostedBy", params2, void 0, opts).catch((e) => {
|
|
14153
|
-
throw
|
|
14267
|
+
throw toKnownErr63(e);
|
|
14154
14268
|
});
|
|
14155
14269
|
}
|
|
14156
14270
|
getTimeline(params2, opts) {
|
|
14157
14271
|
return this._service.xrpc.call("app.bsky.feed.getTimeline", params2, void 0, opts).catch((e) => {
|
|
14158
|
-
throw
|
|
14272
|
+
throw toKnownErr64(e);
|
|
14159
14273
|
});
|
|
14160
14274
|
}
|
|
14161
14275
|
};
|
|
@@ -14277,27 +14391,27 @@ var GraphNS = class {
|
|
|
14277
14391
|
}
|
|
14278
14392
|
getFollowers(params2, opts) {
|
|
14279
14393
|
return this._service.xrpc.call("app.bsky.graph.getFollowers", params2, void 0, opts).catch((e) => {
|
|
14280
|
-
throw
|
|
14394
|
+
throw toKnownErr65(e);
|
|
14281
14395
|
});
|
|
14282
14396
|
}
|
|
14283
14397
|
getFollows(params2, opts) {
|
|
14284
14398
|
return this._service.xrpc.call("app.bsky.graph.getFollows", params2, void 0, opts).catch((e) => {
|
|
14285
|
-
throw
|
|
14399
|
+
throw toKnownErr66(e);
|
|
14286
14400
|
});
|
|
14287
14401
|
}
|
|
14288
14402
|
getMutes(params2, opts) {
|
|
14289
14403
|
return this._service.xrpc.call("app.bsky.graph.getMutes", params2, void 0, opts).catch((e) => {
|
|
14290
|
-
throw
|
|
14404
|
+
throw toKnownErr67(e);
|
|
14291
14405
|
});
|
|
14292
14406
|
}
|
|
14293
14407
|
muteActor(data, opts) {
|
|
14294
14408
|
return this._service.xrpc.call("app.bsky.graph.muteActor", opts?.qp, data, opts).catch((e) => {
|
|
14295
|
-
throw
|
|
14409
|
+
throw toKnownErr68(e);
|
|
14296
14410
|
});
|
|
14297
14411
|
}
|
|
14298
14412
|
unmuteActor(data, opts) {
|
|
14299
14413
|
return this._service.xrpc.call("app.bsky.graph.unmuteActor", opts?.qp, data, opts).catch((e) => {
|
|
14300
|
-
throw
|
|
14414
|
+
throw toKnownErr69(e);
|
|
14301
14415
|
});
|
|
14302
14416
|
}
|
|
14303
14417
|
};
|
|
@@ -14344,17 +14458,17 @@ var NotificationNS = class {
|
|
|
14344
14458
|
}
|
|
14345
14459
|
getUnreadCount(params2, opts) {
|
|
14346
14460
|
return this._service.xrpc.call("app.bsky.notification.getUnreadCount", params2, void 0, opts).catch((e) => {
|
|
14347
|
-
throw
|
|
14461
|
+
throw toKnownErr70(e);
|
|
14348
14462
|
});
|
|
14349
14463
|
}
|
|
14350
14464
|
listNotifications(params2, opts) {
|
|
14351
14465
|
return this._service.xrpc.call("app.bsky.notification.listNotifications", params2, void 0, opts).catch((e) => {
|
|
14352
|
-
throw
|
|
14466
|
+
throw toKnownErr71(e);
|
|
14353
14467
|
});
|
|
14354
14468
|
}
|
|
14355
14469
|
updateSeen(data, opts) {
|
|
14356
14470
|
return this._service.xrpc.call("app.bsky.notification.updateSeen", opts?.qp, data, opts).catch((e) => {
|
|
14357
|
-
throw
|
|
14471
|
+
throw toKnownErr72(e);
|
|
14358
14472
|
});
|
|
14359
14473
|
}
|
|
14360
14474
|
};
|
|
@@ -14369,7 +14483,7 @@ var UnspeccedNS = class {
|
|
|
14369
14483
|
}
|
|
14370
14484
|
getPopular(params2, opts) {
|
|
14371
14485
|
return this._service.xrpc.call("app.bsky.unspecced.getPopular", params2, void 0, opts).catch((e) => {
|
|
14372
|
-
throw
|
|
14486
|
+
throw toKnownErr73(e);
|
|
14373
14487
|
});
|
|
14374
14488
|
}
|
|
14375
14489
|
};
|
|
@@ -16394,12 +16508,14 @@ var BskyAgent = class extends AtpAgent {
|
|
|
16394
16508
|
this.getAuthorFeed = (params2, opts) => this.api.app.bsky.feed.getAuthorFeed(params2, opts);
|
|
16395
16509
|
this.getPostThread = (params2, opts) => this.api.app.bsky.feed.getPostThread(params2, opts);
|
|
16396
16510
|
this.getPost = (params2) => this.api.app.bsky.feed.post.get(params2);
|
|
16511
|
+
this.getPosts = (params2, opts) => this.api.app.bsky.feed.getPosts(params2, opts);
|
|
16397
16512
|
this.getLikes = (params2, opts) => this.api.app.bsky.feed.getLikes(params2, opts);
|
|
16398
16513
|
this.getRepostedBy = (params2, opts) => this.api.app.bsky.feed.getRepostedBy(params2, opts);
|
|
16399
16514
|
this.getFollows = (params2, opts) => this.api.app.bsky.graph.getFollows(params2, opts);
|
|
16400
16515
|
this.getFollowers = (params2, opts) => this.api.app.bsky.graph.getFollowers(params2, opts);
|
|
16401
16516
|
this.getProfile = (params2, opts) => this.api.app.bsky.actor.getProfile(params2, opts);
|
|
16402
16517
|
this.getProfiles = (params2, opts) => this.api.app.bsky.actor.getProfiles(params2, opts);
|
|
16518
|
+
this.getSuggestions = (params2, opts) => this.api.app.bsky.actor.getSuggestions(params2, opts);
|
|
16403
16519
|
this.searchActors = (params2, opts) => this.api.app.bsky.actor.searchActors(params2, opts);
|
|
16404
16520
|
this.searchActorsTypeahead = (params2, opts) => this.api.app.bsky.actor.searchActorsTypeahead(params2, opts);
|
|
16405
16521
|
this.listNotifications = (params2, opts) => this.api.app.bsky.notification.listNotifications(params2, opts);
|