@atproto/pds 0.3.13 → 0.3.15
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 +14 -0
- package/dist/api/app/bsky/unspecced/getTaggedSuggestions.d.ts +3 -0
- package/dist/index.js +401 -30
- package/dist/index.js.map +3 -3
- package/dist/lexicon/index.d.ts +4 -0
- package/dist/lexicon/lexicons.d.ts +153 -0
- package/dist/lexicon/types/app/bsky/actor/defs.d.ts +7 -1
- package/dist/lexicon/types/app/bsky/graph/defs.d.ts +15 -0
- package/dist/lexicon/types/app/bsky/graph/getRelationships.d.ts +38 -0
- package/dist/lexicon/types/app/bsky/unspecced/getTaggedSuggestions.d.ts +39 -0
- package/package.json +5 -5
- package/src/api/app/bsky/unspecced/getTaggedSuggestions.ts +21 -0
- package/src/api/app/bsky/unspecced/index.ts +2 -0
- package/src/lexicon/index.ts +24 -0
- package/src/lexicon/lexicons.ts +167 -0
- package/src/lexicon/types/app/bsky/actor/defs.ts +19 -0
- package/src/lexicon/types/app/bsky/graph/defs.ts +41 -0
- package/src/lexicon/types/app/bsky/graph/getRelationships.ts +53 -0
- package/src/lexicon/types/app/bsky/unspecced/getTaggedSuggestions.ts +65 -0
package/dist/index.js
CHANGED
@@ -78984,7 +78984,7 @@ if (cid) {
|
|
78984
78984
|
};
|
78985
78985
|
var AxiosTransformStream_default = AxiosTransformStream;
|
78986
78986
|
var import_events4 = __toESM2(require("events"), 1);
|
78987
|
-
var
|
78987
|
+
var import_util82 = require("util");
|
78988
78988
|
var import_stream22 = require("stream");
|
78989
78989
|
var { asyncIterator } = Symbol;
|
78990
78990
|
var readBlob = async function* (blob2) {
|
@@ -79000,7 +79000,7 @@ if (cid) {
|
|
79000
79000
|
};
|
79001
79001
|
var readBlob_default = readBlob;
|
79002
79002
|
var BOUNDARY_ALPHABET = utils_default.ALPHABET.ALPHA_DIGIT + "-_";
|
79003
|
-
var textEncoder4 = new
|
79003
|
+
var textEncoder4 = new import_util82.TextEncoder();
|
79004
79004
|
var CRLF = "\r\n";
|
79005
79005
|
var CRLF_BYTES = textEncoder4.encode(CRLF);
|
79006
79006
|
var CRLF_BYTES_COUNT = 2;
|
@@ -217087,7 +217087,8 @@ var schemaDict = {
|
|
217087
217087
|
"lex:app.bsky.actor.defs#savedFeedsPref",
|
217088
217088
|
"lex:app.bsky.actor.defs#personalDetailsPref",
|
217089
217089
|
"lex:app.bsky.actor.defs#feedViewPref",
|
217090
|
-
"lex:app.bsky.actor.defs#threadViewPref"
|
217090
|
+
"lex:app.bsky.actor.defs#threadViewPref",
|
217091
|
+
"lex:app.bsky.actor.defs#interestsPref"
|
217091
217092
|
]
|
217092
217093
|
}
|
217093
217094
|
},
|
@@ -217187,6 +217188,22 @@ var schemaDict = {
|
|
217187
217188
|
description: "Show followed users at the top of all replies."
|
217188
217189
|
}
|
217189
217190
|
}
|
217191
|
+
},
|
217192
|
+
interestsPref: {
|
217193
|
+
type: "object",
|
217194
|
+
required: ["tags"],
|
217195
|
+
properties: {
|
217196
|
+
tags: {
|
217197
|
+
type: "array",
|
217198
|
+
maxLength: 100,
|
217199
|
+
items: {
|
217200
|
+
type: "string",
|
217201
|
+
maxLength: 640,
|
217202
|
+
maxGraphemes: 64
|
217203
|
+
},
|
217204
|
+
description: "A list of tags which describe the account owner's interests gathered during onboarding."
|
217205
|
+
}
|
217206
|
+
}
|
217190
217207
|
}
|
217191
217208
|
}
|
217192
217209
|
},
|
@@ -219380,6 +219397,42 @@ var schemaDict = {
|
|
219380
219397
|
format: "at-uri"
|
219381
219398
|
}
|
219382
219399
|
}
|
219400
|
+
},
|
219401
|
+
notFoundActor: {
|
219402
|
+
type: "object",
|
219403
|
+
description: "indicates that a handle or DID could not be resolved",
|
219404
|
+
required: ["actor", "notFound"],
|
219405
|
+
properties: {
|
219406
|
+
actor: {
|
219407
|
+
type: "string",
|
219408
|
+
format: "at-identifier"
|
219409
|
+
},
|
219410
|
+
notFound: {
|
219411
|
+
type: "boolean",
|
219412
|
+
const: true
|
219413
|
+
}
|
219414
|
+
}
|
219415
|
+
},
|
219416
|
+
relationship: {
|
219417
|
+
type: "object",
|
219418
|
+
description: "lists the bi-directional graph relationships between one actor (not indicated in the object), and the target actors (the DID included in the object)",
|
219419
|
+
required: ["did"],
|
219420
|
+
properties: {
|
219421
|
+
did: {
|
219422
|
+
type: "string",
|
219423
|
+
format: "did"
|
219424
|
+
},
|
219425
|
+
following: {
|
219426
|
+
type: "string",
|
219427
|
+
format: "at-uri",
|
219428
|
+
description: "if the actor follows this DID, this is the AT-URI of the follow record"
|
219429
|
+
},
|
219430
|
+
followedBy: {
|
219431
|
+
type: "string",
|
219432
|
+
format: "at-uri",
|
219433
|
+
description: "if the actor is followed by this DID, contains the AT-URI of the follow record"
|
219434
|
+
}
|
219435
|
+
}
|
219383
219436
|
}
|
219384
219437
|
}
|
219385
219438
|
},
|
@@ -219784,6 +219837,63 @@ var schemaDict = {
|
|
219784
219837
|
}
|
219785
219838
|
}
|
219786
219839
|
},
|
219840
|
+
AppBskyGraphGetRelationships: {
|
219841
|
+
lexicon: 1,
|
219842
|
+
id: "app.bsky.graph.getRelationships",
|
219843
|
+
defs: {
|
219844
|
+
main: {
|
219845
|
+
type: "query",
|
219846
|
+
description: "Enumerates public relationships between one account, and a list of other accounts",
|
219847
|
+
parameters: {
|
219848
|
+
type: "params",
|
219849
|
+
required: ["actor"],
|
219850
|
+
properties: {
|
219851
|
+
actor: {
|
219852
|
+
type: "string",
|
219853
|
+
format: "at-identifier"
|
219854
|
+
},
|
219855
|
+
others: {
|
219856
|
+
type: "array",
|
219857
|
+
maxLength: 30,
|
219858
|
+
items: {
|
219859
|
+
type: "string",
|
219860
|
+
format: "at-identifier"
|
219861
|
+
}
|
219862
|
+
}
|
219863
|
+
}
|
219864
|
+
},
|
219865
|
+
output: {
|
219866
|
+
encoding: "application/json",
|
219867
|
+
schema: {
|
219868
|
+
type: "object",
|
219869
|
+
required: ["relationships"],
|
219870
|
+
properties: {
|
219871
|
+
actor: {
|
219872
|
+
type: "string",
|
219873
|
+
format: "did"
|
219874
|
+
},
|
219875
|
+
relationships: {
|
219876
|
+
type: "array",
|
219877
|
+
items: {
|
219878
|
+
type: "union",
|
219879
|
+
refs: [
|
219880
|
+
"lex:app.bsky.graph.defs#relationship",
|
219881
|
+
"lex:app.bsky.graph.defs#notFoundActor"
|
219882
|
+
]
|
219883
|
+
}
|
219884
|
+
}
|
219885
|
+
}
|
219886
|
+
}
|
219887
|
+
},
|
219888
|
+
errors: [
|
219889
|
+
{
|
219890
|
+
name: "ActorNotFound",
|
219891
|
+
description: "the primary actor at-identifier could not be resolved"
|
219892
|
+
}
|
219893
|
+
]
|
219894
|
+
}
|
219895
|
+
}
|
219896
|
+
},
|
219787
219897
|
AppBskyGraphGetSuggestedFollowsByActor: {
|
219788
219898
|
lexicon: 1,
|
219789
219899
|
id: "app.bsky.graph.getSuggestedFollowsByActor",
|
@@ -220362,6 +220472,53 @@ var schemaDict = {
|
|
220362
220472
|
}
|
220363
220473
|
}
|
220364
220474
|
},
|
220475
|
+
AppBskyUnspeccedGetTaggedSuggestions: {
|
220476
|
+
lexicon: 1,
|
220477
|
+
id: "app.bsky.unspecced.getTaggedSuggestions",
|
220478
|
+
defs: {
|
220479
|
+
main: {
|
220480
|
+
type: "query",
|
220481
|
+
description: "Get a list of suggestions (feeds and users) tagged with categories",
|
220482
|
+
parameters: {
|
220483
|
+
type: "params",
|
220484
|
+
properties: {}
|
220485
|
+
},
|
220486
|
+
output: {
|
220487
|
+
encoding: "application/json",
|
220488
|
+
schema: {
|
220489
|
+
type: "object",
|
220490
|
+
required: ["suggestions"],
|
220491
|
+
properties: {
|
220492
|
+
suggestions: {
|
220493
|
+
type: "array",
|
220494
|
+
items: {
|
220495
|
+
type: "ref",
|
220496
|
+
ref: "lex:app.bsky.unspecced.getTaggedSuggestions#suggestion"
|
220497
|
+
}
|
220498
|
+
}
|
220499
|
+
}
|
220500
|
+
}
|
220501
|
+
}
|
220502
|
+
},
|
220503
|
+
suggestion: {
|
220504
|
+
type: "object",
|
220505
|
+
required: ["tag", "subjectType", "subject"],
|
220506
|
+
properties: {
|
220507
|
+
tag: {
|
220508
|
+
type: "string"
|
220509
|
+
},
|
220510
|
+
subjectType: {
|
220511
|
+
type: "string",
|
220512
|
+
knownValues: ["actor", "feed"]
|
220513
|
+
},
|
220514
|
+
subject: {
|
220515
|
+
type: "string",
|
220516
|
+
format: "uri"
|
220517
|
+
}
|
220518
|
+
}
|
220519
|
+
}
|
220520
|
+
}
|
220521
|
+
},
|
220365
220522
|
AppBskyUnspeccedGetTimelineSkeleton: {
|
220366
220523
|
lexicon: 1,
|
220367
220524
|
id: "app.bsky.unspecced.getTimelineSkeleton",
|
@@ -220659,6 +220816,7 @@ var ids = {
|
|
220659
220816
|
AppBskyGraphGetListMutes: "app.bsky.graph.getListMutes",
|
220660
220817
|
AppBskyGraphGetLists: "app.bsky.graph.getLists",
|
220661
220818
|
AppBskyGraphGetMutes: "app.bsky.graph.getMutes",
|
220819
|
+
AppBskyGraphGetRelationships: "app.bsky.graph.getRelationships",
|
220662
220820
|
AppBskyGraphGetSuggestedFollowsByActor: "app.bsky.graph.getSuggestedFollowsByActor",
|
220663
220821
|
AppBskyGraphList: "app.bsky.graph.list",
|
220664
220822
|
AppBskyGraphListblock: "app.bsky.graph.listblock",
|
@@ -220674,6 +220832,7 @@ var ids = {
|
|
220674
220832
|
AppBskyRichtextFacet: "app.bsky.richtext.facet",
|
220675
220833
|
AppBskyUnspeccedDefs: "app.bsky.unspecced.defs",
|
220676
220834
|
AppBskyUnspeccedGetPopularFeedGenerators: "app.bsky.unspecced.getPopularFeedGenerators",
|
220835
|
+
AppBskyUnspeccedGetTaggedSuggestions: "app.bsky.unspecced.getTaggedSuggestions",
|
220677
220836
|
AppBskyUnspeccedGetTimelineSkeleton: "app.bsky.unspecced.getTimelineSkeleton",
|
220678
220837
|
AppBskyUnspeccedSearchActorsSkeleton: "app.bsky.unspecced.searchActorsSkeleton",
|
220679
220838
|
AppBskyUnspeccedSearchPostsSkeleton: "app.bsky.unspecced.searchPostsSkeleton"
|
@@ -242059,7 +242218,8 @@ var schemaDict2 = {
|
|
242059
242218
|
"lex:app.bsky.actor.defs#savedFeedsPref",
|
242060
242219
|
"lex:app.bsky.actor.defs#personalDetailsPref",
|
242061
242220
|
"lex:app.bsky.actor.defs#feedViewPref",
|
242062
|
-
"lex:app.bsky.actor.defs#threadViewPref"
|
242221
|
+
"lex:app.bsky.actor.defs#threadViewPref",
|
242222
|
+
"lex:app.bsky.actor.defs#interestsPref"
|
242063
242223
|
]
|
242064
242224
|
}
|
242065
242225
|
},
|
@@ -242159,6 +242319,22 @@ var schemaDict2 = {
|
|
242159
242319
|
description: "Show followed users at the top of all replies."
|
242160
242320
|
}
|
242161
242321
|
}
|
242322
|
+
},
|
242323
|
+
interestsPref: {
|
242324
|
+
type: "object",
|
242325
|
+
required: ["tags"],
|
242326
|
+
properties: {
|
242327
|
+
tags: {
|
242328
|
+
type: "array",
|
242329
|
+
maxLength: 100,
|
242330
|
+
items: {
|
242331
|
+
type: "string",
|
242332
|
+
maxLength: 640,
|
242333
|
+
maxGraphemes: 64
|
242334
|
+
},
|
242335
|
+
description: "A list of tags which describe the account owner's interests gathered during onboarding."
|
242336
|
+
}
|
242337
|
+
}
|
242162
242338
|
}
|
242163
242339
|
}
|
242164
242340
|
},
|
@@ -244352,6 +244528,42 @@ var schemaDict2 = {
|
|
244352
244528
|
format: "at-uri"
|
244353
244529
|
}
|
244354
244530
|
}
|
244531
|
+
},
|
244532
|
+
notFoundActor: {
|
244533
|
+
type: "object",
|
244534
|
+
description: "indicates that a handle or DID could not be resolved",
|
244535
|
+
required: ["actor", "notFound"],
|
244536
|
+
properties: {
|
244537
|
+
actor: {
|
244538
|
+
type: "string",
|
244539
|
+
format: "at-identifier"
|
244540
|
+
},
|
244541
|
+
notFound: {
|
244542
|
+
type: "boolean",
|
244543
|
+
const: true
|
244544
|
+
}
|
244545
|
+
}
|
244546
|
+
},
|
244547
|
+
relationship: {
|
244548
|
+
type: "object",
|
244549
|
+
description: "lists the bi-directional graph relationships between one actor (not indicated in the object), and the target actors (the DID included in the object)",
|
244550
|
+
required: ["did"],
|
244551
|
+
properties: {
|
244552
|
+
did: {
|
244553
|
+
type: "string",
|
244554
|
+
format: "did"
|
244555
|
+
},
|
244556
|
+
following: {
|
244557
|
+
type: "string",
|
244558
|
+
format: "at-uri",
|
244559
|
+
description: "if the actor follows this DID, this is the AT-URI of the follow record"
|
244560
|
+
},
|
244561
|
+
followedBy: {
|
244562
|
+
type: "string",
|
244563
|
+
format: "at-uri",
|
244564
|
+
description: "if the actor is followed by this DID, contains the AT-URI of the follow record"
|
244565
|
+
}
|
244566
|
+
}
|
244355
244567
|
}
|
244356
244568
|
}
|
244357
244569
|
},
|
@@ -244756,6 +244968,63 @@ var schemaDict2 = {
|
|
244756
244968
|
}
|
244757
244969
|
}
|
244758
244970
|
},
|
244971
|
+
AppBskyGraphGetRelationships: {
|
244972
|
+
lexicon: 1,
|
244973
|
+
id: "app.bsky.graph.getRelationships",
|
244974
|
+
defs: {
|
244975
|
+
main: {
|
244976
|
+
type: "query",
|
244977
|
+
description: "Enumerates public relationships between one account, and a list of other accounts",
|
244978
|
+
parameters: {
|
244979
|
+
type: "params",
|
244980
|
+
required: ["actor"],
|
244981
|
+
properties: {
|
244982
|
+
actor: {
|
244983
|
+
type: "string",
|
244984
|
+
format: "at-identifier"
|
244985
|
+
},
|
244986
|
+
others: {
|
244987
|
+
type: "array",
|
244988
|
+
maxLength: 30,
|
244989
|
+
items: {
|
244990
|
+
type: "string",
|
244991
|
+
format: "at-identifier"
|
244992
|
+
}
|
244993
|
+
}
|
244994
|
+
}
|
244995
|
+
},
|
244996
|
+
output: {
|
244997
|
+
encoding: "application/json",
|
244998
|
+
schema: {
|
244999
|
+
type: "object",
|
245000
|
+
required: ["relationships"],
|
245001
|
+
properties: {
|
245002
|
+
actor: {
|
245003
|
+
type: "string",
|
245004
|
+
format: "did"
|
245005
|
+
},
|
245006
|
+
relationships: {
|
245007
|
+
type: "array",
|
245008
|
+
items: {
|
245009
|
+
type: "union",
|
245010
|
+
refs: [
|
245011
|
+
"lex:app.bsky.graph.defs#relationship",
|
245012
|
+
"lex:app.bsky.graph.defs#notFoundActor"
|
245013
|
+
]
|
245014
|
+
}
|
245015
|
+
}
|
245016
|
+
}
|
245017
|
+
}
|
245018
|
+
},
|
245019
|
+
errors: [
|
245020
|
+
{
|
245021
|
+
name: "ActorNotFound",
|
245022
|
+
description: "the primary actor at-identifier could not be resolved"
|
245023
|
+
}
|
245024
|
+
]
|
245025
|
+
}
|
245026
|
+
}
|
245027
|
+
},
|
244759
245028
|
AppBskyGraphGetSuggestedFollowsByActor: {
|
244760
245029
|
lexicon: 1,
|
244761
245030
|
id: "app.bsky.graph.getSuggestedFollowsByActor",
|
@@ -245334,6 +245603,53 @@ var schemaDict2 = {
|
|
245334
245603
|
}
|
245335
245604
|
}
|
245336
245605
|
},
|
245606
|
+
AppBskyUnspeccedGetTaggedSuggestions: {
|
245607
|
+
lexicon: 1,
|
245608
|
+
id: "app.bsky.unspecced.getTaggedSuggestions",
|
245609
|
+
defs: {
|
245610
|
+
main: {
|
245611
|
+
type: "query",
|
245612
|
+
description: "Get a list of suggestions (feeds and users) tagged with categories",
|
245613
|
+
parameters: {
|
245614
|
+
type: "params",
|
245615
|
+
properties: {}
|
245616
|
+
},
|
245617
|
+
output: {
|
245618
|
+
encoding: "application/json",
|
245619
|
+
schema: {
|
245620
|
+
type: "object",
|
245621
|
+
required: ["suggestions"],
|
245622
|
+
properties: {
|
245623
|
+
suggestions: {
|
245624
|
+
type: "array",
|
245625
|
+
items: {
|
245626
|
+
type: "ref",
|
245627
|
+
ref: "lex:app.bsky.unspecced.getTaggedSuggestions#suggestion"
|
245628
|
+
}
|
245629
|
+
}
|
245630
|
+
}
|
245631
|
+
}
|
245632
|
+
}
|
245633
|
+
},
|
245634
|
+
suggestion: {
|
245635
|
+
type: "object",
|
245636
|
+
required: ["tag", "subjectType", "subject"],
|
245637
|
+
properties: {
|
245638
|
+
tag: {
|
245639
|
+
type: "string"
|
245640
|
+
},
|
245641
|
+
subjectType: {
|
245642
|
+
type: "string",
|
245643
|
+
knownValues: ["actor", "feed"]
|
245644
|
+
},
|
245645
|
+
subject: {
|
245646
|
+
type: "string",
|
245647
|
+
format: "uri"
|
245648
|
+
}
|
245649
|
+
}
|
245650
|
+
}
|
245651
|
+
}
|
245652
|
+
},
|
245337
245653
|
AppBskyUnspeccedGetTimelineSkeleton: {
|
245338
245654
|
lexicon: 1,
|
245339
245655
|
id: "app.bsky.unspecced.getTimelineSkeleton",
|
@@ -246568,83 +246884,104 @@ function toKnownErr103(e) {
|
|
246568
246884
|
return e;
|
246569
246885
|
}
|
246570
246886
|
|
246571
|
-
// ../api/src/client/types/app/bsky/graph/
|
246887
|
+
// ../api/src/client/types/app/bsky/graph/getRelationships.ts
|
246888
|
+
var ActorNotFoundError = class extends XRPCError {
|
246889
|
+
constructor(src3) {
|
246890
|
+
super(src3.status, src3.error, src3.message, src3.headers);
|
246891
|
+
}
|
246892
|
+
};
|
246572
246893
|
function toKnownErr104(e) {
|
246573
246894
|
if (e instanceof XRPCError) {
|
246895
|
+
if (e.error === "ActorNotFound")
|
246896
|
+
return new ActorNotFoundError(e);
|
246574
246897
|
}
|
246575
246898
|
return e;
|
246576
246899
|
}
|
246577
246900
|
|
246578
|
-
// ../api/src/client/types/app/bsky/graph/
|
246901
|
+
// ../api/src/client/types/app/bsky/graph/getSuggestedFollowsByActor.ts
|
246579
246902
|
function toKnownErr105(e) {
|
246580
246903
|
if (e instanceof XRPCError) {
|
246581
246904
|
}
|
246582
246905
|
return e;
|
246583
246906
|
}
|
246584
246907
|
|
246585
|
-
// ../api/src/client/types/app/bsky/graph/
|
246908
|
+
// ../api/src/client/types/app/bsky/graph/muteActor.ts
|
246586
246909
|
function toKnownErr106(e) {
|
246587
246910
|
if (e instanceof XRPCError) {
|
246588
246911
|
}
|
246589
246912
|
return e;
|
246590
246913
|
}
|
246591
246914
|
|
246592
|
-
// ../api/src/client/types/app/bsky/graph/
|
246915
|
+
// ../api/src/client/types/app/bsky/graph/muteActorList.ts
|
246593
246916
|
function toKnownErr107(e) {
|
246594
246917
|
if (e instanceof XRPCError) {
|
246595
246918
|
}
|
246596
246919
|
return e;
|
246597
246920
|
}
|
246598
246921
|
|
246599
|
-
// ../api/src/client/types/app/bsky/graph/
|
246922
|
+
// ../api/src/client/types/app/bsky/graph/unmuteActor.ts
|
246600
246923
|
function toKnownErr108(e) {
|
246601
246924
|
if (e instanceof XRPCError) {
|
246602
246925
|
}
|
246603
246926
|
return e;
|
246604
246927
|
}
|
246605
246928
|
|
246606
|
-
// ../api/src/client/types/app/bsky/
|
246929
|
+
// ../api/src/client/types/app/bsky/graph/unmuteActorList.ts
|
246607
246930
|
function toKnownErr109(e) {
|
246608
246931
|
if (e instanceof XRPCError) {
|
246609
246932
|
}
|
246610
246933
|
return e;
|
246611
246934
|
}
|
246612
246935
|
|
246613
|
-
// ../api/src/client/types/app/bsky/notification/
|
246936
|
+
// ../api/src/client/types/app/bsky/notification/getUnreadCount.ts
|
246614
246937
|
function toKnownErr110(e) {
|
246615
246938
|
if (e instanceof XRPCError) {
|
246616
246939
|
}
|
246617
246940
|
return e;
|
246618
246941
|
}
|
246619
246942
|
|
246620
|
-
// ../api/src/client/types/app/bsky/notification/
|
246943
|
+
// ../api/src/client/types/app/bsky/notification/listNotifications.ts
|
246621
246944
|
function toKnownErr111(e) {
|
246622
246945
|
if (e instanceof XRPCError) {
|
246623
246946
|
}
|
246624
246947
|
return e;
|
246625
246948
|
}
|
246626
246949
|
|
246627
|
-
// ../api/src/client/types/app/bsky/notification/
|
246950
|
+
// ../api/src/client/types/app/bsky/notification/registerPush.ts
|
246628
246951
|
function toKnownErr112(e) {
|
246629
246952
|
if (e instanceof XRPCError) {
|
246630
246953
|
}
|
246631
246954
|
return e;
|
246632
246955
|
}
|
246633
246956
|
|
246634
|
-
// ../api/src/client/types/app/bsky/
|
246957
|
+
// ../api/src/client/types/app/bsky/notification/updateSeen.ts
|
246635
246958
|
function toKnownErr113(e) {
|
246636
246959
|
if (e instanceof XRPCError) {
|
246637
246960
|
}
|
246638
246961
|
return e;
|
246639
246962
|
}
|
246640
246963
|
|
246964
|
+
// ../api/src/client/types/app/bsky/unspecced/getPopularFeedGenerators.ts
|
246965
|
+
function toKnownErr114(e) {
|
246966
|
+
if (e instanceof XRPCError) {
|
246967
|
+
}
|
246968
|
+
return e;
|
246969
|
+
}
|
246970
|
+
|
246971
|
+
// ../api/src/client/types/app/bsky/unspecced/getTaggedSuggestions.ts
|
246972
|
+
function toKnownErr115(e) {
|
246973
|
+
if (e instanceof XRPCError) {
|
246974
|
+
}
|
246975
|
+
return e;
|
246976
|
+
}
|
246977
|
+
|
246641
246978
|
// ../api/src/client/types/app/bsky/unspecced/getTimelineSkeleton.ts
|
246642
246979
|
var UnknownFeedError3 = class extends XRPCError {
|
246643
246980
|
constructor(src3) {
|
246644
246981
|
super(src3.status, src3.error, src3.message, src3.headers);
|
246645
246982
|
}
|
246646
246983
|
};
|
246647
|
-
function
|
246984
|
+
function toKnownErr116(e) {
|
246648
246985
|
if (e instanceof XRPCError) {
|
246649
246986
|
if (e.error === "UnknownFeed")
|
246650
246987
|
return new UnknownFeedError3(e);
|
@@ -246658,7 +246995,7 @@ var BadQueryStringError2 = class extends XRPCError {
|
|
246658
246995
|
super(src3.status, src3.error, src3.message, src3.headers);
|
246659
246996
|
}
|
246660
246997
|
};
|
246661
|
-
function
|
246998
|
+
function toKnownErr117(e) {
|
246662
246999
|
if (e instanceof XRPCError) {
|
246663
247000
|
if (e.error === "BadQueryString")
|
246664
247001
|
return new BadQueryStringError2(e);
|
@@ -246672,7 +247009,7 @@ var BadQueryStringError3 = class extends XRPCError {
|
|
246672
247009
|
super(src3.status, src3.error, src3.message, src3.headers);
|
246673
247010
|
}
|
246674
247011
|
};
|
246675
|
-
function
|
247012
|
+
function toKnownErr118(e) {
|
246676
247013
|
if (e instanceof XRPCError) {
|
246677
247014
|
if (e.error === "BadQueryString")
|
246678
247015
|
return new BadQueryStringError3(e);
|
@@ -247485,29 +247822,34 @@ var AppBskyGraphNS = class {
|
|
247485
247822
|
throw toKnownErr103(e);
|
247486
247823
|
});
|
247487
247824
|
}
|
247825
|
+
getRelationships(params2, opts) {
|
247826
|
+
return this._service.xrpc.call("app.bsky.graph.getRelationships", params2, void 0, opts).catch((e) => {
|
247827
|
+
throw toKnownErr104(e);
|
247828
|
+
});
|
247829
|
+
}
|
247488
247830
|
getSuggestedFollowsByActor(params2, opts) {
|
247489
247831
|
return this._service.xrpc.call("app.bsky.graph.getSuggestedFollowsByActor", params2, void 0, opts).catch((e) => {
|
247490
|
-
throw
|
247832
|
+
throw toKnownErr105(e);
|
247491
247833
|
});
|
247492
247834
|
}
|
247493
247835
|
muteActor(data, opts) {
|
247494
247836
|
return this._service.xrpc.call("app.bsky.graph.muteActor", opts?.qp, data, opts).catch((e) => {
|
247495
|
-
throw
|
247837
|
+
throw toKnownErr106(e);
|
247496
247838
|
});
|
247497
247839
|
}
|
247498
247840
|
muteActorList(data, opts) {
|
247499
247841
|
return this._service.xrpc.call("app.bsky.graph.muteActorList", opts?.qp, data, opts).catch((e) => {
|
247500
|
-
throw
|
247842
|
+
throw toKnownErr107(e);
|
247501
247843
|
});
|
247502
247844
|
}
|
247503
247845
|
unmuteActor(data, opts) {
|
247504
247846
|
return this._service.xrpc.call("app.bsky.graph.unmuteActor", opts?.qp, data, opts).catch((e) => {
|
247505
|
-
throw
|
247847
|
+
throw toKnownErr108(e);
|
247506
247848
|
});
|
247507
247849
|
}
|
247508
247850
|
unmuteActorList(data, opts) {
|
247509
247851
|
return this._service.xrpc.call("app.bsky.graph.unmuteActorList", opts?.qp, data, opts).catch((e) => {
|
247510
|
-
throw
|
247852
|
+
throw toKnownErr109(e);
|
247511
247853
|
});
|
247512
247854
|
}
|
247513
247855
|
};
|
@@ -247652,22 +247994,22 @@ var AppBskyNotificationNS = class {
|
|
247652
247994
|
}
|
247653
247995
|
getUnreadCount(params2, opts) {
|
247654
247996
|
return this._service.xrpc.call("app.bsky.notification.getUnreadCount", params2, void 0, opts).catch((e) => {
|
247655
|
-
throw
|
247997
|
+
throw toKnownErr110(e);
|
247656
247998
|
});
|
247657
247999
|
}
|
247658
248000
|
listNotifications(params2, opts) {
|
247659
248001
|
return this._service.xrpc.call("app.bsky.notification.listNotifications", params2, void 0, opts).catch((e) => {
|
247660
|
-
throw
|
248002
|
+
throw toKnownErr111(e);
|
247661
248003
|
});
|
247662
248004
|
}
|
247663
248005
|
registerPush(data, opts) {
|
247664
248006
|
return this._service.xrpc.call("app.bsky.notification.registerPush", opts?.qp, data, opts).catch((e) => {
|
247665
|
-
throw
|
248007
|
+
throw toKnownErr112(e);
|
247666
248008
|
});
|
247667
248009
|
}
|
247668
248010
|
updateSeen(data, opts) {
|
247669
248011
|
return this._service.xrpc.call("app.bsky.notification.updateSeen", opts?.qp, data, opts).catch((e) => {
|
247670
|
-
throw
|
248012
|
+
throw toKnownErr113(e);
|
247671
248013
|
});
|
247672
248014
|
}
|
247673
248015
|
};
|
@@ -247682,22 +248024,27 @@ var AppBskyUnspeccedNS = class {
|
|
247682
248024
|
}
|
247683
248025
|
getPopularFeedGenerators(params2, opts) {
|
247684
248026
|
return this._service.xrpc.call("app.bsky.unspecced.getPopularFeedGenerators", params2, void 0, opts).catch((e) => {
|
247685
|
-
throw
|
248027
|
+
throw toKnownErr114(e);
|
248028
|
+
});
|
248029
|
+
}
|
248030
|
+
getTaggedSuggestions(params2, opts) {
|
248031
|
+
return this._service.xrpc.call("app.bsky.unspecced.getTaggedSuggestions", params2, void 0, opts).catch((e) => {
|
248032
|
+
throw toKnownErr115(e);
|
247686
248033
|
});
|
247687
248034
|
}
|
247688
248035
|
getTimelineSkeleton(params2, opts) {
|
247689
248036
|
return this._service.xrpc.call("app.bsky.unspecced.getTimelineSkeleton", params2, void 0, opts).catch((e) => {
|
247690
|
-
throw
|
248037
|
+
throw toKnownErr116(e);
|
247691
248038
|
});
|
247692
248039
|
}
|
247693
248040
|
searchActorsSkeleton(params2, opts) {
|
247694
248041
|
return this._service.xrpc.call("app.bsky.unspecced.searchActorsSkeleton", params2, void 0, opts).catch((e) => {
|
247695
|
-
throw
|
248042
|
+
throw toKnownErr117(e);
|
247696
248043
|
});
|
247697
248044
|
}
|
247698
248045
|
searchPostsSkeleton(params2, opts) {
|
247699
248046
|
return this._service.xrpc.call("app.bsky.unspecced.searchPostsSkeleton", params2, void 0, opts).catch((e) => {
|
247700
|
-
throw
|
248047
|
+
throw toKnownErr118(e);
|
247701
248048
|
});
|
247702
248049
|
}
|
247703
248050
|
};
|
@@ -249384,9 +249731,25 @@ function getPopularFeedGenerators_default(server, ctx) {
|
|
249384
249731
|
});
|
249385
249732
|
}
|
249386
249733
|
|
249734
|
+
// src/api/app/bsky/unspecced/getTaggedSuggestions.ts
|
249735
|
+
function getTaggedSuggestions_default(server, ctx) {
|
249736
|
+
server.app.bsky.unspecced.getTaggedSuggestions({
|
249737
|
+
auth: ctx.authVerifier.access,
|
249738
|
+
handler: async ({ auth, params: params2 }) => {
|
249739
|
+
const requester = auth.credentials.did;
|
249740
|
+
const res = await ctx.appViewAgent.api.app.bsky.unspecced.getTaggedSuggestions(params2, await ctx.appviewAuthHeaders(requester));
|
249741
|
+
return {
|
249742
|
+
encoding: "application/json",
|
249743
|
+
body: res.data
|
249744
|
+
};
|
249745
|
+
}
|
249746
|
+
});
|
249747
|
+
}
|
249748
|
+
|
249387
249749
|
// src/api/app/bsky/unspecced/index.ts
|
249388
249750
|
function unspecced_default(server, ctx) {
|
249389
249751
|
getPopularFeedGenerators_default(server, ctx);
|
249752
|
+
getTaggedSuggestions_default(server, ctx);
|
249390
249753
|
}
|
249391
249754
|
|
249392
249755
|
// src/api/app/bsky/index.ts
|
@@ -249993,6 +250356,10 @@ var AppBskyGraphNS2 = class {
|
|
249993
250356
|
const nsid2 = "app.bsky.graph.getMutes";
|
249994
250357
|
return this._server.xrpc.method(nsid2, cfg);
|
249995
250358
|
}
|
250359
|
+
getRelationships(cfg) {
|
250360
|
+
const nsid2 = "app.bsky.graph.getRelationships";
|
250361
|
+
return this._server.xrpc.method(nsid2, cfg);
|
250362
|
+
}
|
249996
250363
|
getSuggestedFollowsByActor(cfg) {
|
249997
250364
|
const nsid2 = "app.bsky.graph.getSuggestedFollowsByActor";
|
249998
250365
|
return this._server.xrpc.method(nsid2, cfg);
|
@@ -250048,6 +250415,10 @@ var AppBskyUnspeccedNS2 = class {
|
|
250048
250415
|
const nsid2 = "app.bsky.unspecced.getPopularFeedGenerators";
|
250049
250416
|
return this._server.xrpc.method(nsid2, cfg);
|
250050
250417
|
}
|
250418
|
+
getTaggedSuggestions(cfg) {
|
250419
|
+
const nsid2 = "app.bsky.unspecced.getTaggedSuggestions";
|
250420
|
+
return this._server.xrpc.method(nsid2, cfg);
|
250421
|
+
}
|
250051
250422
|
getTimelineSkeleton(cfg) {
|
250052
250423
|
const nsid2 = "app.bsky.unspecced.getTimelineSkeleton";
|
250053
250424
|
return this._server.xrpc.method(nsid2, cfg);
|