@atproto/api 0.6.18 → 0.6.19
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 +10 -3
- package/dist/client/lexicons.d.ts +203 -14
- package/dist/client/types/app/bsky/actor/searchActors.d.ts +1 -0
- package/dist/client/types/app/bsky/actor/searchActorsTypeahead.d.ts +1 -0
- package/dist/client/types/app/bsky/feed/searchPosts.d.ts +26 -0
- package/dist/client/types/app/bsky/unspecced/defs.d.ts +13 -0
- package/dist/client/types/app/bsky/unspecced/searchActorsSkeleton.d.ts +27 -0
- package/dist/client/types/app/bsky/unspecced/searchPostsSkeleton.d.ts +26 -0
- package/dist/client/types/com/atproto/admin/searchRepos.d.ts +1 -0
- package/dist/index.js +363 -91
- package/dist/index.js.map +3 -3
- package/package.json +2 -2
- package/src/client/index.ts +41 -13
- package/src/client/lexicons.ts +229 -23
- package/src/client/types/app/bsky/actor/searchActors.ts +3 -0
- package/src/client/types/app/bsky/actor/searchActorsTypeahead.ts +3 -0
- package/src/client/types/app/bsky/feed/searchPosts.ts +50 -0
- package/src/client/types/app/bsky/unspecced/defs.ts +41 -0
- package/src/client/types/app/bsky/unspecced/searchActorsSkeleton.ts +52 -0
- package/src/client/types/app/bsky/unspecced/searchPostsSkeleton.ts +50 -0
- package/src/client/types/com/atproto/admin/searchRepos.ts +2 -0
- package/src/rich-text/detection.ts +1 -1
- package/tests/rich-text-detection.test.ts +17 -17
- package/dist/client/types/app/bsky/unspecced/applyLabels.d.ts +0 -18
- package/src/client/types/app/bsky/unspecced/applyLabels.ts +0 -33
package/dist/index.js
CHANGED
|
@@ -8905,6 +8905,7 @@ __export(src_exports2, {
|
|
|
8905
8905
|
AppBskyFeedLike: () => like_exports,
|
|
8906
8906
|
AppBskyFeedPost: () => post_exports,
|
|
8907
8907
|
AppBskyFeedRepost: () => repost_exports,
|
|
8908
|
+
AppBskyFeedSearchPosts: () => searchPosts_exports,
|
|
8908
8909
|
AppBskyFeedThreadgate: () => threadgate_exports,
|
|
8909
8910
|
AppBskyGraphBlock: () => block_exports,
|
|
8910
8911
|
AppBskyGraphDefs: () => defs_exports7,
|
|
@@ -8930,10 +8931,12 @@ __export(src_exports2, {
|
|
|
8930
8931
|
AppBskyNotificationRegisterPush: () => registerPush_exports,
|
|
8931
8932
|
AppBskyNotificationUpdateSeen: () => updateSeen_exports,
|
|
8932
8933
|
AppBskyRichtextFacet: () => facet_exports,
|
|
8933
|
-
|
|
8934
|
+
AppBskyUnspeccedDefs: () => defs_exports8,
|
|
8934
8935
|
AppBskyUnspeccedGetPopular: () => getPopular_exports,
|
|
8935
8936
|
AppBskyUnspeccedGetPopularFeedGenerators: () => getPopularFeedGenerators_exports,
|
|
8936
8937
|
AppBskyUnspeccedGetTimelineSkeleton: () => getTimelineSkeleton_exports,
|
|
8938
|
+
AppBskyUnspeccedSearchActorsSkeleton: () => searchActorsSkeleton_exports,
|
|
8939
|
+
AppBskyUnspeccedSearchPostsSkeleton: () => searchPostsSkeleton_exports,
|
|
8937
8940
|
AppNS: () => AppNS,
|
|
8938
8941
|
AtUri: () => AtUri,
|
|
8939
8942
|
AtpAgent: () => AtpAgent,
|
|
@@ -16703,6 +16706,10 @@ var schemaDict = {
|
|
|
16703
16706
|
type: "params",
|
|
16704
16707
|
properties: {
|
|
16705
16708
|
term: {
|
|
16709
|
+
type: "string",
|
|
16710
|
+
description: "DEPRECATED: use 'q' instead"
|
|
16711
|
+
},
|
|
16712
|
+
q: {
|
|
16706
16713
|
type: "string"
|
|
16707
16714
|
},
|
|
16708
16715
|
invitedBy: {
|
|
@@ -19555,18 +19562,23 @@ var schemaDict = {
|
|
|
19555
19562
|
defs: {
|
|
19556
19563
|
main: {
|
|
19557
19564
|
type: "query",
|
|
19558
|
-
description: "Find actors matching search criteria.",
|
|
19565
|
+
description: "Find actors (profiles) matching search criteria.",
|
|
19559
19566
|
parameters: {
|
|
19560
19567
|
type: "params",
|
|
19561
19568
|
properties: {
|
|
19562
19569
|
term: {
|
|
19563
|
-
type: "string"
|
|
19570
|
+
type: "string",
|
|
19571
|
+
description: "DEPRECATED: use 'q' instead"
|
|
19572
|
+
},
|
|
19573
|
+
q: {
|
|
19574
|
+
type: "string",
|
|
19575
|
+
description: "search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended"
|
|
19564
19576
|
},
|
|
19565
19577
|
limit: {
|
|
19566
19578
|
type: "integer",
|
|
19567
19579
|
minimum: 1,
|
|
19568
19580
|
maximum: 100,
|
|
19569
|
-
default:
|
|
19581
|
+
default: 25
|
|
19570
19582
|
},
|
|
19571
19583
|
cursor: {
|
|
19572
19584
|
type: "string"
|
|
@@ -19606,13 +19618,18 @@ var schemaDict = {
|
|
|
19606
19618
|
type: "params",
|
|
19607
19619
|
properties: {
|
|
19608
19620
|
term: {
|
|
19609
|
-
type: "string"
|
|
19621
|
+
type: "string",
|
|
19622
|
+
description: "DEPRECATED: use 'q' instead"
|
|
19623
|
+
},
|
|
19624
|
+
q: {
|
|
19625
|
+
type: "string",
|
|
19626
|
+
description: "search query prefix; not a full query string"
|
|
19610
19627
|
},
|
|
19611
19628
|
limit: {
|
|
19612
19629
|
type: "integer",
|
|
19613
19630
|
minimum: 1,
|
|
19614
19631
|
maximum: 100,
|
|
19615
|
-
default:
|
|
19632
|
+
default: 10
|
|
19616
19633
|
}
|
|
19617
19634
|
}
|
|
19618
19635
|
},
|
|
@@ -21262,6 +21279,64 @@ var schemaDict = {
|
|
|
21262
21279
|
}
|
|
21263
21280
|
}
|
|
21264
21281
|
},
|
|
21282
|
+
AppBskyFeedSearchPosts: {
|
|
21283
|
+
lexicon: 1,
|
|
21284
|
+
id: "app.bsky.feed.searchPosts",
|
|
21285
|
+
defs: {
|
|
21286
|
+
main: {
|
|
21287
|
+
type: "query",
|
|
21288
|
+
description: "Find posts matching search criteria",
|
|
21289
|
+
parameters: {
|
|
21290
|
+
type: "params",
|
|
21291
|
+
required: ["q"],
|
|
21292
|
+
properties: {
|
|
21293
|
+
q: {
|
|
21294
|
+
type: "string",
|
|
21295
|
+
description: "search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended"
|
|
21296
|
+
},
|
|
21297
|
+
limit: {
|
|
21298
|
+
type: "integer",
|
|
21299
|
+
minimum: 1,
|
|
21300
|
+
maximum: 100,
|
|
21301
|
+
default: 25
|
|
21302
|
+
},
|
|
21303
|
+
cursor: {
|
|
21304
|
+
type: "string",
|
|
21305
|
+
description: "optional pagination mechanism; may not necessarily allow scrolling through entire result set"
|
|
21306
|
+
}
|
|
21307
|
+
}
|
|
21308
|
+
},
|
|
21309
|
+
output: {
|
|
21310
|
+
encoding: "application/json",
|
|
21311
|
+
schema: {
|
|
21312
|
+
type: "object",
|
|
21313
|
+
required: ["posts"],
|
|
21314
|
+
properties: {
|
|
21315
|
+
cursor: {
|
|
21316
|
+
type: "string"
|
|
21317
|
+
},
|
|
21318
|
+
hitsTotal: {
|
|
21319
|
+
type: "integer",
|
|
21320
|
+
description: "count of search hits. optional, may be rounded/truncated, and may not be possible to paginate through all hits"
|
|
21321
|
+
},
|
|
21322
|
+
posts: {
|
|
21323
|
+
type: "array",
|
|
21324
|
+
items: {
|
|
21325
|
+
type: "ref",
|
|
21326
|
+
ref: "lex:app.bsky.feed.defs#postView"
|
|
21327
|
+
}
|
|
21328
|
+
}
|
|
21329
|
+
}
|
|
21330
|
+
}
|
|
21331
|
+
},
|
|
21332
|
+
errors: [
|
|
21333
|
+
{
|
|
21334
|
+
name: "BadQueryString"
|
|
21335
|
+
}
|
|
21336
|
+
]
|
|
21337
|
+
}
|
|
21338
|
+
}
|
|
21339
|
+
},
|
|
21265
21340
|
AppBskyFeedThreadgate: {
|
|
21266
21341
|
lexicon: 1,
|
|
21267
21342
|
id: "app.bsky.feed.threadgate",
|
|
@@ -22373,27 +22448,27 @@ var schemaDict = {
|
|
|
22373
22448
|
}
|
|
22374
22449
|
}
|
|
22375
22450
|
},
|
|
22376
|
-
|
|
22451
|
+
AppBskyUnspeccedDefs: {
|
|
22377
22452
|
lexicon: 1,
|
|
22378
|
-
id: "app.bsky.unspecced.
|
|
22453
|
+
id: "app.bsky.unspecced.defs",
|
|
22379
22454
|
defs: {
|
|
22380
|
-
|
|
22381
|
-
type: "
|
|
22382
|
-
|
|
22383
|
-
|
|
22384
|
-
|
|
22385
|
-
|
|
22386
|
-
|
|
22387
|
-
|
|
22388
|
-
|
|
22389
|
-
|
|
22390
|
-
|
|
22391
|
-
|
|
22392
|
-
|
|
22393
|
-
|
|
22394
|
-
|
|
22395
|
-
|
|
22396
|
-
|
|
22455
|
+
skeletonSearchPost: {
|
|
22456
|
+
type: "object",
|
|
22457
|
+
required: ["uri"],
|
|
22458
|
+
properties: {
|
|
22459
|
+
uri: {
|
|
22460
|
+
type: "string",
|
|
22461
|
+
format: "at-uri"
|
|
22462
|
+
}
|
|
22463
|
+
}
|
|
22464
|
+
},
|
|
22465
|
+
skeletonSearchActor: {
|
|
22466
|
+
type: "object",
|
|
22467
|
+
required: ["did"],
|
|
22468
|
+
properties: {
|
|
22469
|
+
did: {
|
|
22470
|
+
type: "string",
|
|
22471
|
+
format: "did"
|
|
22397
22472
|
}
|
|
22398
22473
|
}
|
|
22399
22474
|
}
|
|
@@ -22539,6 +22614,126 @@ var schemaDict = {
|
|
|
22539
22614
|
]
|
|
22540
22615
|
}
|
|
22541
22616
|
}
|
|
22617
|
+
},
|
|
22618
|
+
AppBskyUnspeccedSearchActorsSkeleton: {
|
|
22619
|
+
lexicon: 1,
|
|
22620
|
+
id: "app.bsky.unspecced.searchActorsSkeleton",
|
|
22621
|
+
defs: {
|
|
22622
|
+
main: {
|
|
22623
|
+
type: "query",
|
|
22624
|
+
description: "Backend Actors (profile) search, returning only skeleton",
|
|
22625
|
+
parameters: {
|
|
22626
|
+
type: "params",
|
|
22627
|
+
required: ["q"],
|
|
22628
|
+
properties: {
|
|
22629
|
+
q: {
|
|
22630
|
+
type: "string",
|
|
22631
|
+
description: "search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended. For typeahead search, only simple term match is supported, not full syntax"
|
|
22632
|
+
},
|
|
22633
|
+
typeahead: {
|
|
22634
|
+
type: "boolean",
|
|
22635
|
+
description: "if true, acts as fast/simple 'typeahead' query"
|
|
22636
|
+
},
|
|
22637
|
+
limit: {
|
|
22638
|
+
type: "integer",
|
|
22639
|
+
minimum: 1,
|
|
22640
|
+
maximum: 100,
|
|
22641
|
+
default: 25
|
|
22642
|
+
},
|
|
22643
|
+
cursor: {
|
|
22644
|
+
type: "string",
|
|
22645
|
+
description: "optional pagination mechanism; may not necessarily allow scrolling through entire result set"
|
|
22646
|
+
}
|
|
22647
|
+
}
|
|
22648
|
+
},
|
|
22649
|
+
output: {
|
|
22650
|
+
encoding: "application/json",
|
|
22651
|
+
schema: {
|
|
22652
|
+
type: "object",
|
|
22653
|
+
required: ["actors"],
|
|
22654
|
+
properties: {
|
|
22655
|
+
cursor: {
|
|
22656
|
+
type: "string"
|
|
22657
|
+
},
|
|
22658
|
+
hitsTotal: {
|
|
22659
|
+
type: "integer",
|
|
22660
|
+
description: "count of search hits. optional, may be rounded/truncated, and may not be possible to paginate through all hits"
|
|
22661
|
+
},
|
|
22662
|
+
actors: {
|
|
22663
|
+
type: "array",
|
|
22664
|
+
items: {
|
|
22665
|
+
type: "ref",
|
|
22666
|
+
ref: "lex:app.bsky.unspecced.defs#skeletonSearchActor"
|
|
22667
|
+
}
|
|
22668
|
+
}
|
|
22669
|
+
}
|
|
22670
|
+
}
|
|
22671
|
+
},
|
|
22672
|
+
errors: [
|
|
22673
|
+
{
|
|
22674
|
+
name: "BadQueryString"
|
|
22675
|
+
}
|
|
22676
|
+
]
|
|
22677
|
+
}
|
|
22678
|
+
}
|
|
22679
|
+
},
|
|
22680
|
+
AppBskyUnspeccedSearchPostsSkeleton: {
|
|
22681
|
+
lexicon: 1,
|
|
22682
|
+
id: "app.bsky.unspecced.searchPostsSkeleton",
|
|
22683
|
+
defs: {
|
|
22684
|
+
main: {
|
|
22685
|
+
type: "query",
|
|
22686
|
+
description: "Backend Posts search, returning only skeleton",
|
|
22687
|
+
parameters: {
|
|
22688
|
+
type: "params",
|
|
22689
|
+
required: ["q"],
|
|
22690
|
+
properties: {
|
|
22691
|
+
q: {
|
|
22692
|
+
type: "string",
|
|
22693
|
+
description: "search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended"
|
|
22694
|
+
},
|
|
22695
|
+
limit: {
|
|
22696
|
+
type: "integer",
|
|
22697
|
+
minimum: 1,
|
|
22698
|
+
maximum: 100,
|
|
22699
|
+
default: 25
|
|
22700
|
+
},
|
|
22701
|
+
cursor: {
|
|
22702
|
+
type: "string",
|
|
22703
|
+
description: "optional pagination mechanism; may not necessarily allow scrolling through entire result set"
|
|
22704
|
+
}
|
|
22705
|
+
}
|
|
22706
|
+
},
|
|
22707
|
+
output: {
|
|
22708
|
+
encoding: "application/json",
|
|
22709
|
+
schema: {
|
|
22710
|
+
type: "object",
|
|
22711
|
+
required: ["posts"],
|
|
22712
|
+
properties: {
|
|
22713
|
+
cursor: {
|
|
22714
|
+
type: "string"
|
|
22715
|
+
},
|
|
22716
|
+
hitsTotal: {
|
|
22717
|
+
type: "integer",
|
|
22718
|
+
description: "count of search hits. optional, may be rounded/truncated, and may not be possible to paginate through all hits"
|
|
22719
|
+
},
|
|
22720
|
+
posts: {
|
|
22721
|
+
type: "array",
|
|
22722
|
+
items: {
|
|
22723
|
+
type: "ref",
|
|
22724
|
+
ref: "lex:app.bsky.unspecced.defs#skeletonSearchPost"
|
|
22725
|
+
}
|
|
22726
|
+
}
|
|
22727
|
+
}
|
|
22728
|
+
}
|
|
22729
|
+
},
|
|
22730
|
+
errors: [
|
|
22731
|
+
{
|
|
22732
|
+
name: "BadQueryString"
|
|
22733
|
+
}
|
|
22734
|
+
]
|
|
22735
|
+
}
|
|
22736
|
+
}
|
|
22542
22737
|
}
|
|
22543
22738
|
};
|
|
22544
22739
|
var schemas = Object.values(schemaDict);
|
|
@@ -23772,12 +23967,31 @@ function toKnownErr78(e) {
|
|
|
23772
23967
|
return e;
|
|
23773
23968
|
}
|
|
23774
23969
|
|
|
23970
|
+
// src/client/types/app/bsky/feed/searchPosts.ts
|
|
23971
|
+
var searchPosts_exports = {};
|
|
23972
|
+
__export(searchPosts_exports, {
|
|
23973
|
+
BadQueryStringError: () => BadQueryStringError,
|
|
23974
|
+
toKnownErr: () => toKnownErr79
|
|
23975
|
+
});
|
|
23976
|
+
var BadQueryStringError = class extends XRPCError {
|
|
23977
|
+
constructor(src2) {
|
|
23978
|
+
super(src2.status, src2.error, src2.message, src2.headers);
|
|
23979
|
+
}
|
|
23980
|
+
};
|
|
23981
|
+
function toKnownErr79(e) {
|
|
23982
|
+
if (e instanceof XRPCError) {
|
|
23983
|
+
if (e.error === "BadQueryString")
|
|
23984
|
+
return new BadQueryStringError(e);
|
|
23985
|
+
}
|
|
23986
|
+
return e;
|
|
23987
|
+
}
|
|
23988
|
+
|
|
23775
23989
|
// src/client/types/app/bsky/graph/getBlocks.ts
|
|
23776
23990
|
var getBlocks_exports2 = {};
|
|
23777
23991
|
__export(getBlocks_exports2, {
|
|
23778
|
-
toKnownErr: () =>
|
|
23992
|
+
toKnownErr: () => toKnownErr80
|
|
23779
23993
|
});
|
|
23780
|
-
function
|
|
23994
|
+
function toKnownErr80(e) {
|
|
23781
23995
|
if (e instanceof XRPCError) {
|
|
23782
23996
|
}
|
|
23783
23997
|
return e;
|
|
@@ -23786,9 +24000,9 @@ function toKnownErr79(e) {
|
|
|
23786
24000
|
// src/client/types/app/bsky/graph/getFollowers.ts
|
|
23787
24001
|
var getFollowers_exports = {};
|
|
23788
24002
|
__export(getFollowers_exports, {
|
|
23789
|
-
toKnownErr: () =>
|
|
24003
|
+
toKnownErr: () => toKnownErr81
|
|
23790
24004
|
});
|
|
23791
|
-
function
|
|
24005
|
+
function toKnownErr81(e) {
|
|
23792
24006
|
if (e instanceof XRPCError) {
|
|
23793
24007
|
}
|
|
23794
24008
|
return e;
|
|
@@ -23797,9 +24011,9 @@ function toKnownErr80(e) {
|
|
|
23797
24011
|
// src/client/types/app/bsky/graph/getFollows.ts
|
|
23798
24012
|
var getFollows_exports = {};
|
|
23799
24013
|
__export(getFollows_exports, {
|
|
23800
|
-
toKnownErr: () =>
|
|
24014
|
+
toKnownErr: () => toKnownErr82
|
|
23801
24015
|
});
|
|
23802
|
-
function
|
|
24016
|
+
function toKnownErr82(e) {
|
|
23803
24017
|
if (e instanceof XRPCError) {
|
|
23804
24018
|
}
|
|
23805
24019
|
return e;
|
|
@@ -23808,9 +24022,9 @@ function toKnownErr81(e) {
|
|
|
23808
24022
|
// src/client/types/app/bsky/graph/getList.ts
|
|
23809
24023
|
var getList_exports = {};
|
|
23810
24024
|
__export(getList_exports, {
|
|
23811
|
-
toKnownErr: () =>
|
|
24025
|
+
toKnownErr: () => toKnownErr83
|
|
23812
24026
|
});
|
|
23813
|
-
function
|
|
24027
|
+
function toKnownErr83(e) {
|
|
23814
24028
|
if (e instanceof XRPCError) {
|
|
23815
24029
|
}
|
|
23816
24030
|
return e;
|
|
@@ -23819,9 +24033,9 @@ function toKnownErr82(e) {
|
|
|
23819
24033
|
// src/client/types/app/bsky/graph/getListBlocks.ts
|
|
23820
24034
|
var getListBlocks_exports = {};
|
|
23821
24035
|
__export(getListBlocks_exports, {
|
|
23822
|
-
toKnownErr: () =>
|
|
24036
|
+
toKnownErr: () => toKnownErr84
|
|
23823
24037
|
});
|
|
23824
|
-
function
|
|
24038
|
+
function toKnownErr84(e) {
|
|
23825
24039
|
if (e instanceof XRPCError) {
|
|
23826
24040
|
}
|
|
23827
24041
|
return e;
|
|
@@ -23830,9 +24044,9 @@ function toKnownErr83(e) {
|
|
|
23830
24044
|
// src/client/types/app/bsky/graph/getListMutes.ts
|
|
23831
24045
|
var getListMutes_exports = {};
|
|
23832
24046
|
__export(getListMutes_exports, {
|
|
23833
|
-
toKnownErr: () =>
|
|
24047
|
+
toKnownErr: () => toKnownErr85
|
|
23834
24048
|
});
|
|
23835
|
-
function
|
|
24049
|
+
function toKnownErr85(e) {
|
|
23836
24050
|
if (e instanceof XRPCError) {
|
|
23837
24051
|
}
|
|
23838
24052
|
return e;
|
|
@@ -23841,9 +24055,9 @@ function toKnownErr84(e) {
|
|
|
23841
24055
|
// src/client/types/app/bsky/graph/getLists.ts
|
|
23842
24056
|
var getLists_exports = {};
|
|
23843
24057
|
__export(getLists_exports, {
|
|
23844
|
-
toKnownErr: () =>
|
|
24058
|
+
toKnownErr: () => toKnownErr86
|
|
23845
24059
|
});
|
|
23846
|
-
function
|
|
24060
|
+
function toKnownErr86(e) {
|
|
23847
24061
|
if (e instanceof XRPCError) {
|
|
23848
24062
|
}
|
|
23849
24063
|
return e;
|
|
@@ -23852,9 +24066,9 @@ function toKnownErr85(e) {
|
|
|
23852
24066
|
// src/client/types/app/bsky/graph/getMutes.ts
|
|
23853
24067
|
var getMutes_exports = {};
|
|
23854
24068
|
__export(getMutes_exports, {
|
|
23855
|
-
toKnownErr: () =>
|
|
24069
|
+
toKnownErr: () => toKnownErr87
|
|
23856
24070
|
});
|
|
23857
|
-
function
|
|
24071
|
+
function toKnownErr87(e) {
|
|
23858
24072
|
if (e instanceof XRPCError) {
|
|
23859
24073
|
}
|
|
23860
24074
|
return e;
|
|
@@ -23863,9 +24077,9 @@ function toKnownErr86(e) {
|
|
|
23863
24077
|
// src/client/types/app/bsky/graph/getSuggestedFollowsByActor.ts
|
|
23864
24078
|
var getSuggestedFollowsByActor_exports = {};
|
|
23865
24079
|
__export(getSuggestedFollowsByActor_exports, {
|
|
23866
|
-
toKnownErr: () =>
|
|
24080
|
+
toKnownErr: () => toKnownErr88
|
|
23867
24081
|
});
|
|
23868
|
-
function
|
|
24082
|
+
function toKnownErr88(e) {
|
|
23869
24083
|
if (e instanceof XRPCError) {
|
|
23870
24084
|
}
|
|
23871
24085
|
return e;
|
|
@@ -23874,9 +24088,9 @@ function toKnownErr87(e) {
|
|
|
23874
24088
|
// src/client/types/app/bsky/graph/muteActor.ts
|
|
23875
24089
|
var muteActor_exports = {};
|
|
23876
24090
|
__export(muteActor_exports, {
|
|
23877
|
-
toKnownErr: () =>
|
|
24091
|
+
toKnownErr: () => toKnownErr89
|
|
23878
24092
|
});
|
|
23879
|
-
function
|
|
24093
|
+
function toKnownErr89(e) {
|
|
23880
24094
|
if (e instanceof XRPCError) {
|
|
23881
24095
|
}
|
|
23882
24096
|
return e;
|
|
@@ -23885,9 +24099,9 @@ function toKnownErr88(e) {
|
|
|
23885
24099
|
// src/client/types/app/bsky/graph/muteActorList.ts
|
|
23886
24100
|
var muteActorList_exports = {};
|
|
23887
24101
|
__export(muteActorList_exports, {
|
|
23888
|
-
toKnownErr: () =>
|
|
24102
|
+
toKnownErr: () => toKnownErr90
|
|
23889
24103
|
});
|
|
23890
|
-
function
|
|
24104
|
+
function toKnownErr90(e) {
|
|
23891
24105
|
if (e instanceof XRPCError) {
|
|
23892
24106
|
}
|
|
23893
24107
|
return e;
|
|
@@ -23896,9 +24110,9 @@ function toKnownErr89(e) {
|
|
|
23896
24110
|
// src/client/types/app/bsky/graph/unmuteActor.ts
|
|
23897
24111
|
var unmuteActor_exports = {};
|
|
23898
24112
|
__export(unmuteActor_exports, {
|
|
23899
|
-
toKnownErr: () =>
|
|
24113
|
+
toKnownErr: () => toKnownErr91
|
|
23900
24114
|
});
|
|
23901
|
-
function
|
|
24115
|
+
function toKnownErr91(e) {
|
|
23902
24116
|
if (e instanceof XRPCError) {
|
|
23903
24117
|
}
|
|
23904
24118
|
return e;
|
|
@@ -23907,9 +24121,9 @@ function toKnownErr90(e) {
|
|
|
23907
24121
|
// src/client/types/app/bsky/graph/unmuteActorList.ts
|
|
23908
24122
|
var unmuteActorList_exports = {};
|
|
23909
24123
|
__export(unmuteActorList_exports, {
|
|
23910
|
-
toKnownErr: () =>
|
|
24124
|
+
toKnownErr: () => toKnownErr92
|
|
23911
24125
|
});
|
|
23912
|
-
function
|
|
24126
|
+
function toKnownErr92(e) {
|
|
23913
24127
|
if (e instanceof XRPCError) {
|
|
23914
24128
|
}
|
|
23915
24129
|
return e;
|
|
@@ -23918,9 +24132,9 @@ function toKnownErr91(e) {
|
|
|
23918
24132
|
// src/client/types/app/bsky/notification/getUnreadCount.ts
|
|
23919
24133
|
var getUnreadCount_exports = {};
|
|
23920
24134
|
__export(getUnreadCount_exports, {
|
|
23921
|
-
toKnownErr: () =>
|
|
24135
|
+
toKnownErr: () => toKnownErr93
|
|
23922
24136
|
});
|
|
23923
|
-
function
|
|
24137
|
+
function toKnownErr93(e) {
|
|
23924
24138
|
if (e instanceof XRPCError) {
|
|
23925
24139
|
}
|
|
23926
24140
|
return e;
|
|
@@ -23930,10 +24144,10 @@ function toKnownErr92(e) {
|
|
|
23930
24144
|
var listNotifications_exports = {};
|
|
23931
24145
|
__export(listNotifications_exports, {
|
|
23932
24146
|
isNotification: () => isNotification,
|
|
23933
|
-
toKnownErr: () =>
|
|
24147
|
+
toKnownErr: () => toKnownErr94,
|
|
23934
24148
|
validateNotification: () => validateNotification
|
|
23935
24149
|
});
|
|
23936
|
-
function
|
|
24150
|
+
function toKnownErr94(e) {
|
|
23937
24151
|
if (e instanceof XRPCError) {
|
|
23938
24152
|
}
|
|
23939
24153
|
return e;
|
|
@@ -23948,9 +24162,9 @@ function validateNotification(v) {
|
|
|
23948
24162
|
// src/client/types/app/bsky/notification/registerPush.ts
|
|
23949
24163
|
var registerPush_exports = {};
|
|
23950
24164
|
__export(registerPush_exports, {
|
|
23951
|
-
toKnownErr: () =>
|
|
24165
|
+
toKnownErr: () => toKnownErr95
|
|
23952
24166
|
});
|
|
23953
|
-
function
|
|
24167
|
+
function toKnownErr95(e) {
|
|
23954
24168
|
if (e instanceof XRPCError) {
|
|
23955
24169
|
}
|
|
23956
24170
|
return e;
|
|
@@ -23959,17 +24173,6 @@ function toKnownErr94(e) {
|
|
|
23959
24173
|
// src/client/types/app/bsky/notification/updateSeen.ts
|
|
23960
24174
|
var updateSeen_exports = {};
|
|
23961
24175
|
__export(updateSeen_exports, {
|
|
23962
|
-
toKnownErr: () => toKnownErr95
|
|
23963
|
-
});
|
|
23964
|
-
function toKnownErr95(e) {
|
|
23965
|
-
if (e instanceof XRPCError) {
|
|
23966
|
-
}
|
|
23967
|
-
return e;
|
|
23968
|
-
}
|
|
23969
|
-
|
|
23970
|
-
// src/client/types/app/bsky/unspecced/applyLabels.ts
|
|
23971
|
-
var applyLabels_exports = {};
|
|
23972
|
-
__export(applyLabels_exports, {
|
|
23973
24176
|
toKnownErr: () => toKnownErr96
|
|
23974
24177
|
});
|
|
23975
24178
|
function toKnownErr96(e) {
|
|
@@ -24019,6 +24222,44 @@ function toKnownErr99(e) {
|
|
|
24019
24222
|
return e;
|
|
24020
24223
|
}
|
|
24021
24224
|
|
|
24225
|
+
// src/client/types/app/bsky/unspecced/searchActorsSkeleton.ts
|
|
24226
|
+
var searchActorsSkeleton_exports = {};
|
|
24227
|
+
__export(searchActorsSkeleton_exports, {
|
|
24228
|
+
BadQueryStringError: () => BadQueryStringError2,
|
|
24229
|
+
toKnownErr: () => toKnownErr100
|
|
24230
|
+
});
|
|
24231
|
+
var BadQueryStringError2 = class extends XRPCError {
|
|
24232
|
+
constructor(src2) {
|
|
24233
|
+
super(src2.status, src2.error, src2.message, src2.headers);
|
|
24234
|
+
}
|
|
24235
|
+
};
|
|
24236
|
+
function toKnownErr100(e) {
|
|
24237
|
+
if (e instanceof XRPCError) {
|
|
24238
|
+
if (e.error === "BadQueryString")
|
|
24239
|
+
return new BadQueryStringError2(e);
|
|
24240
|
+
}
|
|
24241
|
+
return e;
|
|
24242
|
+
}
|
|
24243
|
+
|
|
24244
|
+
// src/client/types/app/bsky/unspecced/searchPostsSkeleton.ts
|
|
24245
|
+
var searchPostsSkeleton_exports = {};
|
|
24246
|
+
__export(searchPostsSkeleton_exports, {
|
|
24247
|
+
BadQueryStringError: () => BadQueryStringError3,
|
|
24248
|
+
toKnownErr: () => toKnownErr101
|
|
24249
|
+
});
|
|
24250
|
+
var BadQueryStringError3 = class extends XRPCError {
|
|
24251
|
+
constructor(src2) {
|
|
24252
|
+
super(src2.status, src2.error, src2.message, src2.headers);
|
|
24253
|
+
}
|
|
24254
|
+
};
|
|
24255
|
+
function toKnownErr101(e) {
|
|
24256
|
+
if (e instanceof XRPCError) {
|
|
24257
|
+
if (e.error === "BadQueryString")
|
|
24258
|
+
return new BadQueryStringError3(e);
|
|
24259
|
+
}
|
|
24260
|
+
return e;
|
|
24261
|
+
}
|
|
24262
|
+
|
|
24022
24263
|
// src/client/types/com/atproto/admin/defs.ts
|
|
24023
24264
|
var defs_exports = {};
|
|
24024
24265
|
__export(defs_exports, {
|
|
@@ -24965,6 +25206,27 @@ function validateByteSlice(v) {
|
|
|
24965
25206
|
return lexicons.validate("app.bsky.richtext.facet#byteSlice", v);
|
|
24966
25207
|
}
|
|
24967
25208
|
|
|
25209
|
+
// src/client/types/app/bsky/unspecced/defs.ts
|
|
25210
|
+
var defs_exports8 = {};
|
|
25211
|
+
__export(defs_exports8, {
|
|
25212
|
+
isSkeletonSearchActor: () => isSkeletonSearchActor,
|
|
25213
|
+
isSkeletonSearchPost: () => isSkeletonSearchPost,
|
|
25214
|
+
validateSkeletonSearchActor: () => validateSkeletonSearchActor,
|
|
25215
|
+
validateSkeletonSearchPost: () => validateSkeletonSearchPost
|
|
25216
|
+
});
|
|
25217
|
+
function isSkeletonSearchPost(v) {
|
|
25218
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.unspecced.defs#skeletonSearchPost";
|
|
25219
|
+
}
|
|
25220
|
+
function validateSkeletonSearchPost(v) {
|
|
25221
|
+
return lexicons.validate("app.bsky.unspecced.defs#skeletonSearchPost", v);
|
|
25222
|
+
}
|
|
25223
|
+
function isSkeletonSearchActor(v) {
|
|
25224
|
+
return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.unspecced.defs#skeletonSearchActor";
|
|
25225
|
+
}
|
|
25226
|
+
function validateSkeletonSearchActor(v) {
|
|
25227
|
+
return lexicons.validate("app.bsky.unspecced.defs#skeletonSearchActor", v);
|
|
25228
|
+
}
|
|
25229
|
+
|
|
24968
25230
|
// src/client/index.ts
|
|
24969
25231
|
var COM_ATPROTO_ADMIN = {
|
|
24970
25232
|
DefsTakedown: "com.atproto.admin.defs#takedown",
|
|
@@ -25512,6 +25774,11 @@ var FeedNS = class {
|
|
|
25512
25774
|
throw toKnownErr78(e);
|
|
25513
25775
|
});
|
|
25514
25776
|
}
|
|
25777
|
+
searchPosts(params2, opts) {
|
|
25778
|
+
return this._service.xrpc.call("app.bsky.feed.searchPosts", params2, void 0, opts).catch((e) => {
|
|
25779
|
+
throw toKnownErr79(e);
|
|
25780
|
+
});
|
|
25781
|
+
}
|
|
25515
25782
|
};
|
|
25516
25783
|
var GeneratorRecord = class {
|
|
25517
25784
|
constructor(service) {
|
|
@@ -25659,67 +25926,67 @@ var GraphNS = class {
|
|
|
25659
25926
|
}
|
|
25660
25927
|
getBlocks(params2, opts) {
|
|
25661
25928
|
return this._service.xrpc.call("app.bsky.graph.getBlocks", params2, void 0, opts).catch((e) => {
|
|
25662
|
-
throw
|
|
25929
|
+
throw toKnownErr80(e);
|
|
25663
25930
|
});
|
|
25664
25931
|
}
|
|
25665
25932
|
getFollowers(params2, opts) {
|
|
25666
25933
|
return this._service.xrpc.call("app.bsky.graph.getFollowers", params2, void 0, opts).catch((e) => {
|
|
25667
|
-
throw
|
|
25934
|
+
throw toKnownErr81(e);
|
|
25668
25935
|
});
|
|
25669
25936
|
}
|
|
25670
25937
|
getFollows(params2, opts) {
|
|
25671
25938
|
return this._service.xrpc.call("app.bsky.graph.getFollows", params2, void 0, opts).catch((e) => {
|
|
25672
|
-
throw
|
|
25939
|
+
throw toKnownErr82(e);
|
|
25673
25940
|
});
|
|
25674
25941
|
}
|
|
25675
25942
|
getList(params2, opts) {
|
|
25676
25943
|
return this._service.xrpc.call("app.bsky.graph.getList", params2, void 0, opts).catch((e) => {
|
|
25677
|
-
throw
|
|
25944
|
+
throw toKnownErr83(e);
|
|
25678
25945
|
});
|
|
25679
25946
|
}
|
|
25680
25947
|
getListBlocks(params2, opts) {
|
|
25681
25948
|
return this._service.xrpc.call("app.bsky.graph.getListBlocks", params2, void 0, opts).catch((e) => {
|
|
25682
|
-
throw
|
|
25949
|
+
throw toKnownErr84(e);
|
|
25683
25950
|
});
|
|
25684
25951
|
}
|
|
25685
25952
|
getListMutes(params2, opts) {
|
|
25686
25953
|
return this._service.xrpc.call("app.bsky.graph.getListMutes", params2, void 0, opts).catch((e) => {
|
|
25687
|
-
throw
|
|
25954
|
+
throw toKnownErr85(e);
|
|
25688
25955
|
});
|
|
25689
25956
|
}
|
|
25690
25957
|
getLists(params2, opts) {
|
|
25691
25958
|
return this._service.xrpc.call("app.bsky.graph.getLists", params2, void 0, opts).catch((e) => {
|
|
25692
|
-
throw
|
|
25959
|
+
throw toKnownErr86(e);
|
|
25693
25960
|
});
|
|
25694
25961
|
}
|
|
25695
25962
|
getMutes(params2, opts) {
|
|
25696
25963
|
return this._service.xrpc.call("app.bsky.graph.getMutes", params2, void 0, opts).catch((e) => {
|
|
25697
|
-
throw
|
|
25964
|
+
throw toKnownErr87(e);
|
|
25698
25965
|
});
|
|
25699
25966
|
}
|
|
25700
25967
|
getSuggestedFollowsByActor(params2, opts) {
|
|
25701
25968
|
return this._service.xrpc.call("app.bsky.graph.getSuggestedFollowsByActor", params2, void 0, opts).catch((e) => {
|
|
25702
|
-
throw
|
|
25969
|
+
throw toKnownErr88(e);
|
|
25703
25970
|
});
|
|
25704
25971
|
}
|
|
25705
25972
|
muteActor(data, opts) {
|
|
25706
25973
|
return this._service.xrpc.call("app.bsky.graph.muteActor", opts?.qp, data, opts).catch((e) => {
|
|
25707
|
-
throw
|
|
25974
|
+
throw toKnownErr89(e);
|
|
25708
25975
|
});
|
|
25709
25976
|
}
|
|
25710
25977
|
muteActorList(data, opts) {
|
|
25711
25978
|
return this._service.xrpc.call("app.bsky.graph.muteActorList", opts?.qp, data, opts).catch((e) => {
|
|
25712
|
-
throw
|
|
25979
|
+
throw toKnownErr90(e);
|
|
25713
25980
|
});
|
|
25714
25981
|
}
|
|
25715
25982
|
unmuteActor(data, opts) {
|
|
25716
25983
|
return this._service.xrpc.call("app.bsky.graph.unmuteActor", opts?.qp, data, opts).catch((e) => {
|
|
25717
|
-
throw
|
|
25984
|
+
throw toKnownErr91(e);
|
|
25718
25985
|
});
|
|
25719
25986
|
}
|
|
25720
25987
|
unmuteActorList(data, opts) {
|
|
25721
25988
|
return this._service.xrpc.call("app.bsky.graph.unmuteActorList", opts?.qp, data, opts).catch((e) => {
|
|
25722
|
-
throw
|
|
25989
|
+
throw toKnownErr92(e);
|
|
25723
25990
|
});
|
|
25724
25991
|
}
|
|
25725
25992
|
};
|
|
@@ -25864,22 +26131,22 @@ var NotificationNS = class {
|
|
|
25864
26131
|
}
|
|
25865
26132
|
getUnreadCount(params2, opts) {
|
|
25866
26133
|
return this._service.xrpc.call("app.bsky.notification.getUnreadCount", params2, void 0, opts).catch((e) => {
|
|
25867
|
-
throw
|
|
26134
|
+
throw toKnownErr93(e);
|
|
25868
26135
|
});
|
|
25869
26136
|
}
|
|
25870
26137
|
listNotifications(params2, opts) {
|
|
25871
26138
|
return this._service.xrpc.call("app.bsky.notification.listNotifications", params2, void 0, opts).catch((e) => {
|
|
25872
|
-
throw
|
|
26139
|
+
throw toKnownErr94(e);
|
|
25873
26140
|
});
|
|
25874
26141
|
}
|
|
25875
26142
|
registerPush(data, opts) {
|
|
25876
26143
|
return this._service.xrpc.call("app.bsky.notification.registerPush", opts?.qp, data, opts).catch((e) => {
|
|
25877
|
-
throw
|
|
26144
|
+
throw toKnownErr95(e);
|
|
25878
26145
|
});
|
|
25879
26146
|
}
|
|
25880
26147
|
updateSeen(data, opts) {
|
|
25881
26148
|
return this._service.xrpc.call("app.bsky.notification.updateSeen", opts?.qp, data, opts).catch((e) => {
|
|
25882
|
-
throw
|
|
26149
|
+
throw toKnownErr96(e);
|
|
25883
26150
|
});
|
|
25884
26151
|
}
|
|
25885
26152
|
};
|
|
@@ -25892,11 +26159,6 @@ var UnspeccedNS = class {
|
|
|
25892
26159
|
constructor(service) {
|
|
25893
26160
|
this._service = service;
|
|
25894
26161
|
}
|
|
25895
|
-
applyLabels(data, opts) {
|
|
25896
|
-
return this._service.xrpc.call("app.bsky.unspecced.applyLabels", opts?.qp, data, opts).catch((e) => {
|
|
25897
|
-
throw toKnownErr96(e);
|
|
25898
|
-
});
|
|
25899
|
-
}
|
|
25900
26162
|
getPopular(params2, opts) {
|
|
25901
26163
|
return this._service.xrpc.call("app.bsky.unspecced.getPopular", params2, void 0, opts).catch((e) => {
|
|
25902
26164
|
throw toKnownErr97(e);
|
|
@@ -25912,6 +26174,16 @@ var UnspeccedNS = class {
|
|
|
25912
26174
|
throw toKnownErr99(e);
|
|
25913
26175
|
});
|
|
25914
26176
|
}
|
|
26177
|
+
searchActorsSkeleton(params2, opts) {
|
|
26178
|
+
return this._service.xrpc.call("app.bsky.unspecced.searchActorsSkeleton", params2, void 0, opts).catch((e) => {
|
|
26179
|
+
throw toKnownErr100(e);
|
|
26180
|
+
});
|
|
26181
|
+
}
|
|
26182
|
+
searchPostsSkeleton(params2, opts) {
|
|
26183
|
+
return this._service.xrpc.call("app.bsky.unspecced.searchPostsSkeleton", params2, void 0, opts).catch((e) => {
|
|
26184
|
+
throw toKnownErr101(e);
|
|
26185
|
+
});
|
|
26186
|
+
}
|
|
25915
26187
|
};
|
|
25916
26188
|
|
|
25917
26189
|
// src/agent.ts
|
|
@@ -27714,7 +27986,7 @@ function detectFacets(text) {
|
|
|
27714
27986
|
features: [
|
|
27715
27987
|
{
|
|
27716
27988
|
$type: "app.bsky.richtext.facet#tag",
|
|
27717
|
-
tag
|
|
27989
|
+
tag: tag.replace(/^#/, "")
|
|
27718
27990
|
}
|
|
27719
27991
|
]
|
|
27720
27992
|
});
|