@atproto/ozone 0.0.4 → 0.0.6
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/index.js +381 -28
- 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 +6 -6
- 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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atproto/ozone
|
|
2
2
|
|
|
3
|
+
## 0.0.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`4171c04a`](https://github.com/bluesky-social/atproto/commit/4171c04ad81c5734a4558bc41fa1c4f3a1aba18c)]:
|
|
8
|
+
- @atproto/api@0.9.4
|
|
9
|
+
|
|
10
|
+
## 0.0.5
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [[`5368245a`](https://github.com/bluesky-social/atproto/commit/5368245a6ef7095c86ad166fb04ff9bef27c3c3e)]:
|
|
15
|
+
- @atproto/api@0.9.3
|
|
16
|
+
|
|
3
17
|
## 0.0.4
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -106148,7 +106148,8 @@ var schemaDict = {
|
|
|
106148
106148
|
"lex:app.bsky.actor.defs#savedFeedsPref",
|
|
106149
106149
|
"lex:app.bsky.actor.defs#personalDetailsPref",
|
|
106150
106150
|
"lex:app.bsky.actor.defs#feedViewPref",
|
|
106151
|
-
"lex:app.bsky.actor.defs#threadViewPref"
|
|
106151
|
+
"lex:app.bsky.actor.defs#threadViewPref",
|
|
106152
|
+
"lex:app.bsky.actor.defs#interestsPref"
|
|
106152
106153
|
]
|
|
106153
106154
|
}
|
|
106154
106155
|
},
|
|
@@ -106248,6 +106249,22 @@ var schemaDict = {
|
|
|
106248
106249
|
description: "Show followed users at the top of all replies."
|
|
106249
106250
|
}
|
|
106250
106251
|
}
|
|
106252
|
+
},
|
|
106253
|
+
interestsPref: {
|
|
106254
|
+
type: "object",
|
|
106255
|
+
required: ["tags"],
|
|
106256
|
+
properties: {
|
|
106257
|
+
tags: {
|
|
106258
|
+
type: "array",
|
|
106259
|
+
maxLength: 100,
|
|
106260
|
+
items: {
|
|
106261
|
+
type: "string",
|
|
106262
|
+
maxLength: 640,
|
|
106263
|
+
maxGraphemes: 64
|
|
106264
|
+
},
|
|
106265
|
+
description: "A list of tags which describe the account owner's interests gathered during onboarding."
|
|
106266
|
+
}
|
|
106267
|
+
}
|
|
106251
106268
|
}
|
|
106252
106269
|
}
|
|
106253
106270
|
},
|
|
@@ -108441,6 +108458,42 @@ var schemaDict = {
|
|
|
108441
108458
|
format: "at-uri"
|
|
108442
108459
|
}
|
|
108443
108460
|
}
|
|
108461
|
+
},
|
|
108462
|
+
notFoundActor: {
|
|
108463
|
+
type: "object",
|
|
108464
|
+
description: "indicates that a handle or DID could not be resolved",
|
|
108465
|
+
required: ["actor", "notFound"],
|
|
108466
|
+
properties: {
|
|
108467
|
+
actor: {
|
|
108468
|
+
type: "string",
|
|
108469
|
+
format: "at-identifier"
|
|
108470
|
+
},
|
|
108471
|
+
notFound: {
|
|
108472
|
+
type: "boolean",
|
|
108473
|
+
const: true
|
|
108474
|
+
}
|
|
108475
|
+
}
|
|
108476
|
+
},
|
|
108477
|
+
relationship: {
|
|
108478
|
+
type: "object",
|
|
108479
|
+
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)",
|
|
108480
|
+
required: ["did"],
|
|
108481
|
+
properties: {
|
|
108482
|
+
did: {
|
|
108483
|
+
type: "string",
|
|
108484
|
+
format: "did"
|
|
108485
|
+
},
|
|
108486
|
+
following: {
|
|
108487
|
+
type: "string",
|
|
108488
|
+
format: "at-uri",
|
|
108489
|
+
description: "if the actor follows this DID, this is the AT-URI of the follow record"
|
|
108490
|
+
},
|
|
108491
|
+
followedBy: {
|
|
108492
|
+
type: "string",
|
|
108493
|
+
format: "at-uri",
|
|
108494
|
+
description: "if the actor is followed by this DID, contains the AT-URI of the follow record"
|
|
108495
|
+
}
|
|
108496
|
+
}
|
|
108444
108497
|
}
|
|
108445
108498
|
}
|
|
108446
108499
|
},
|
|
@@ -108845,6 +108898,63 @@ var schemaDict = {
|
|
|
108845
108898
|
}
|
|
108846
108899
|
}
|
|
108847
108900
|
},
|
|
108901
|
+
AppBskyGraphGetRelationships: {
|
|
108902
|
+
lexicon: 1,
|
|
108903
|
+
id: "app.bsky.graph.getRelationships",
|
|
108904
|
+
defs: {
|
|
108905
|
+
main: {
|
|
108906
|
+
type: "query",
|
|
108907
|
+
description: "Enumerates public relationships between one account, and a list of other accounts",
|
|
108908
|
+
parameters: {
|
|
108909
|
+
type: "params",
|
|
108910
|
+
required: ["actor"],
|
|
108911
|
+
properties: {
|
|
108912
|
+
actor: {
|
|
108913
|
+
type: "string",
|
|
108914
|
+
format: "at-identifier"
|
|
108915
|
+
},
|
|
108916
|
+
others: {
|
|
108917
|
+
type: "array",
|
|
108918
|
+
maxLength: 30,
|
|
108919
|
+
items: {
|
|
108920
|
+
type: "string",
|
|
108921
|
+
format: "at-identifier"
|
|
108922
|
+
}
|
|
108923
|
+
}
|
|
108924
|
+
}
|
|
108925
|
+
},
|
|
108926
|
+
output: {
|
|
108927
|
+
encoding: "application/json",
|
|
108928
|
+
schema: {
|
|
108929
|
+
type: "object",
|
|
108930
|
+
required: ["relationships"],
|
|
108931
|
+
properties: {
|
|
108932
|
+
actor: {
|
|
108933
|
+
type: "string",
|
|
108934
|
+
format: "did"
|
|
108935
|
+
},
|
|
108936
|
+
relationships: {
|
|
108937
|
+
type: "array",
|
|
108938
|
+
items: {
|
|
108939
|
+
type: "union",
|
|
108940
|
+
refs: [
|
|
108941
|
+
"lex:app.bsky.graph.defs#relationship",
|
|
108942
|
+
"lex:app.bsky.graph.defs#notFoundActor"
|
|
108943
|
+
]
|
|
108944
|
+
}
|
|
108945
|
+
}
|
|
108946
|
+
}
|
|
108947
|
+
}
|
|
108948
|
+
},
|
|
108949
|
+
errors: [
|
|
108950
|
+
{
|
|
108951
|
+
name: "ActorNotFound",
|
|
108952
|
+
description: "the primary actor at-identifier could not be resolved"
|
|
108953
|
+
}
|
|
108954
|
+
]
|
|
108955
|
+
}
|
|
108956
|
+
}
|
|
108957
|
+
},
|
|
108848
108958
|
AppBskyGraphGetSuggestedFollowsByActor: {
|
|
108849
108959
|
lexicon: 1,
|
|
108850
108960
|
id: "app.bsky.graph.getSuggestedFollowsByActor",
|
|
@@ -109423,6 +109533,53 @@ var schemaDict = {
|
|
|
109423
109533
|
}
|
|
109424
109534
|
}
|
|
109425
109535
|
},
|
|
109536
|
+
AppBskyUnspeccedGetTaggedSuggestions: {
|
|
109537
|
+
lexicon: 1,
|
|
109538
|
+
id: "app.bsky.unspecced.getTaggedSuggestions",
|
|
109539
|
+
defs: {
|
|
109540
|
+
main: {
|
|
109541
|
+
type: "query",
|
|
109542
|
+
description: "Get a list of suggestions (feeds and users) tagged with categories",
|
|
109543
|
+
parameters: {
|
|
109544
|
+
type: "params",
|
|
109545
|
+
properties: {}
|
|
109546
|
+
},
|
|
109547
|
+
output: {
|
|
109548
|
+
encoding: "application/json",
|
|
109549
|
+
schema: {
|
|
109550
|
+
type: "object",
|
|
109551
|
+
required: ["suggestions"],
|
|
109552
|
+
properties: {
|
|
109553
|
+
suggestions: {
|
|
109554
|
+
type: "array",
|
|
109555
|
+
items: {
|
|
109556
|
+
type: "ref",
|
|
109557
|
+
ref: "lex:app.bsky.unspecced.getTaggedSuggestions#suggestion"
|
|
109558
|
+
}
|
|
109559
|
+
}
|
|
109560
|
+
}
|
|
109561
|
+
}
|
|
109562
|
+
}
|
|
109563
|
+
},
|
|
109564
|
+
suggestion: {
|
|
109565
|
+
type: "object",
|
|
109566
|
+
required: ["tag", "subjectType", "subject"],
|
|
109567
|
+
properties: {
|
|
109568
|
+
tag: {
|
|
109569
|
+
type: "string"
|
|
109570
|
+
},
|
|
109571
|
+
subjectType: {
|
|
109572
|
+
type: "string",
|
|
109573
|
+
knownValues: ["actor", "feed"]
|
|
109574
|
+
},
|
|
109575
|
+
subject: {
|
|
109576
|
+
type: "string",
|
|
109577
|
+
format: "uri"
|
|
109578
|
+
}
|
|
109579
|
+
}
|
|
109580
|
+
}
|
|
109581
|
+
}
|
|
109582
|
+
},
|
|
109426
109583
|
AppBskyUnspeccedGetTimelineSkeleton: {
|
|
109427
109584
|
lexicon: 1,
|
|
109428
109585
|
id: "app.bsky.unspecced.getTimelineSkeleton",
|
|
@@ -118379,6 +118536,10 @@ var AppBskyGraphNS = class {
|
|
|
118379
118536
|
const nsid2 = "app.bsky.graph.getMutes";
|
|
118380
118537
|
return this._server.xrpc.method(nsid2, cfg);
|
|
118381
118538
|
}
|
|
118539
|
+
getRelationships(cfg) {
|
|
118540
|
+
const nsid2 = "app.bsky.graph.getRelationships";
|
|
118541
|
+
return this._server.xrpc.method(nsid2, cfg);
|
|
118542
|
+
}
|
|
118382
118543
|
getSuggestedFollowsByActor(cfg) {
|
|
118383
118544
|
const nsid2 = "app.bsky.graph.getSuggestedFollowsByActor";
|
|
118384
118545
|
return this._server.xrpc.method(nsid2, cfg);
|
|
@@ -118434,6 +118595,10 @@ var AppBskyUnspeccedNS = class {
|
|
|
118434
118595
|
const nsid2 = "app.bsky.unspecced.getPopularFeedGenerators";
|
|
118435
118596
|
return this._server.xrpc.method(nsid2, cfg);
|
|
118436
118597
|
}
|
|
118598
|
+
getTaggedSuggestions(cfg) {
|
|
118599
|
+
const nsid2 = "app.bsky.unspecced.getTaggedSuggestions";
|
|
118600
|
+
return this._server.xrpc.method(nsid2, cfg);
|
|
118601
|
+
}
|
|
118437
118602
|
getTimelineSkeleton(cfg) {
|
|
118438
118603
|
const nsid2 = "app.bsky.unspecced.getTimelineSkeleton";
|
|
118439
118604
|
return this._server.xrpc.method(nsid2, cfg);
|
|
@@ -123338,7 +123503,8 @@ var schemaDict2 = {
|
|
|
123338
123503
|
"lex:app.bsky.actor.defs#savedFeedsPref",
|
|
123339
123504
|
"lex:app.bsky.actor.defs#personalDetailsPref",
|
|
123340
123505
|
"lex:app.bsky.actor.defs#feedViewPref",
|
|
123341
|
-
"lex:app.bsky.actor.defs#threadViewPref"
|
|
123506
|
+
"lex:app.bsky.actor.defs#threadViewPref",
|
|
123507
|
+
"lex:app.bsky.actor.defs#interestsPref"
|
|
123342
123508
|
]
|
|
123343
123509
|
}
|
|
123344
123510
|
},
|
|
@@ -123438,6 +123604,22 @@ var schemaDict2 = {
|
|
|
123438
123604
|
description: "Show followed users at the top of all replies."
|
|
123439
123605
|
}
|
|
123440
123606
|
}
|
|
123607
|
+
},
|
|
123608
|
+
interestsPref: {
|
|
123609
|
+
type: "object",
|
|
123610
|
+
required: ["tags"],
|
|
123611
|
+
properties: {
|
|
123612
|
+
tags: {
|
|
123613
|
+
type: "array",
|
|
123614
|
+
maxLength: 100,
|
|
123615
|
+
items: {
|
|
123616
|
+
type: "string",
|
|
123617
|
+
maxLength: 640,
|
|
123618
|
+
maxGraphemes: 64
|
|
123619
|
+
},
|
|
123620
|
+
description: "A list of tags which describe the account owner's interests gathered during onboarding."
|
|
123621
|
+
}
|
|
123622
|
+
}
|
|
123441
123623
|
}
|
|
123442
123624
|
}
|
|
123443
123625
|
},
|
|
@@ -125631,6 +125813,42 @@ var schemaDict2 = {
|
|
|
125631
125813
|
format: "at-uri"
|
|
125632
125814
|
}
|
|
125633
125815
|
}
|
|
125816
|
+
},
|
|
125817
|
+
notFoundActor: {
|
|
125818
|
+
type: "object",
|
|
125819
|
+
description: "indicates that a handle or DID could not be resolved",
|
|
125820
|
+
required: ["actor", "notFound"],
|
|
125821
|
+
properties: {
|
|
125822
|
+
actor: {
|
|
125823
|
+
type: "string",
|
|
125824
|
+
format: "at-identifier"
|
|
125825
|
+
},
|
|
125826
|
+
notFound: {
|
|
125827
|
+
type: "boolean",
|
|
125828
|
+
const: true
|
|
125829
|
+
}
|
|
125830
|
+
}
|
|
125831
|
+
},
|
|
125832
|
+
relationship: {
|
|
125833
|
+
type: "object",
|
|
125834
|
+
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)",
|
|
125835
|
+
required: ["did"],
|
|
125836
|
+
properties: {
|
|
125837
|
+
did: {
|
|
125838
|
+
type: "string",
|
|
125839
|
+
format: "did"
|
|
125840
|
+
},
|
|
125841
|
+
following: {
|
|
125842
|
+
type: "string",
|
|
125843
|
+
format: "at-uri",
|
|
125844
|
+
description: "if the actor follows this DID, this is the AT-URI of the follow record"
|
|
125845
|
+
},
|
|
125846
|
+
followedBy: {
|
|
125847
|
+
type: "string",
|
|
125848
|
+
format: "at-uri",
|
|
125849
|
+
description: "if the actor is followed by this DID, contains the AT-URI of the follow record"
|
|
125850
|
+
}
|
|
125851
|
+
}
|
|
125634
125852
|
}
|
|
125635
125853
|
}
|
|
125636
125854
|
},
|
|
@@ -126035,6 +126253,63 @@ var schemaDict2 = {
|
|
|
126035
126253
|
}
|
|
126036
126254
|
}
|
|
126037
126255
|
},
|
|
126256
|
+
AppBskyGraphGetRelationships: {
|
|
126257
|
+
lexicon: 1,
|
|
126258
|
+
id: "app.bsky.graph.getRelationships",
|
|
126259
|
+
defs: {
|
|
126260
|
+
main: {
|
|
126261
|
+
type: "query",
|
|
126262
|
+
description: "Enumerates public relationships between one account, and a list of other accounts",
|
|
126263
|
+
parameters: {
|
|
126264
|
+
type: "params",
|
|
126265
|
+
required: ["actor"],
|
|
126266
|
+
properties: {
|
|
126267
|
+
actor: {
|
|
126268
|
+
type: "string",
|
|
126269
|
+
format: "at-identifier"
|
|
126270
|
+
},
|
|
126271
|
+
others: {
|
|
126272
|
+
type: "array",
|
|
126273
|
+
maxLength: 30,
|
|
126274
|
+
items: {
|
|
126275
|
+
type: "string",
|
|
126276
|
+
format: "at-identifier"
|
|
126277
|
+
}
|
|
126278
|
+
}
|
|
126279
|
+
}
|
|
126280
|
+
},
|
|
126281
|
+
output: {
|
|
126282
|
+
encoding: "application/json",
|
|
126283
|
+
schema: {
|
|
126284
|
+
type: "object",
|
|
126285
|
+
required: ["relationships"],
|
|
126286
|
+
properties: {
|
|
126287
|
+
actor: {
|
|
126288
|
+
type: "string",
|
|
126289
|
+
format: "did"
|
|
126290
|
+
},
|
|
126291
|
+
relationships: {
|
|
126292
|
+
type: "array",
|
|
126293
|
+
items: {
|
|
126294
|
+
type: "union",
|
|
126295
|
+
refs: [
|
|
126296
|
+
"lex:app.bsky.graph.defs#relationship",
|
|
126297
|
+
"lex:app.bsky.graph.defs#notFoundActor"
|
|
126298
|
+
]
|
|
126299
|
+
}
|
|
126300
|
+
}
|
|
126301
|
+
}
|
|
126302
|
+
}
|
|
126303
|
+
},
|
|
126304
|
+
errors: [
|
|
126305
|
+
{
|
|
126306
|
+
name: "ActorNotFound",
|
|
126307
|
+
description: "the primary actor at-identifier could not be resolved"
|
|
126308
|
+
}
|
|
126309
|
+
]
|
|
126310
|
+
}
|
|
126311
|
+
}
|
|
126312
|
+
},
|
|
126038
126313
|
AppBskyGraphGetSuggestedFollowsByActor: {
|
|
126039
126314
|
lexicon: 1,
|
|
126040
126315
|
id: "app.bsky.graph.getSuggestedFollowsByActor",
|
|
@@ -126613,6 +126888,53 @@ var schemaDict2 = {
|
|
|
126613
126888
|
}
|
|
126614
126889
|
}
|
|
126615
126890
|
},
|
|
126891
|
+
AppBskyUnspeccedGetTaggedSuggestions: {
|
|
126892
|
+
lexicon: 1,
|
|
126893
|
+
id: "app.bsky.unspecced.getTaggedSuggestions",
|
|
126894
|
+
defs: {
|
|
126895
|
+
main: {
|
|
126896
|
+
type: "query",
|
|
126897
|
+
description: "Get a list of suggestions (feeds and users) tagged with categories",
|
|
126898
|
+
parameters: {
|
|
126899
|
+
type: "params",
|
|
126900
|
+
properties: {}
|
|
126901
|
+
},
|
|
126902
|
+
output: {
|
|
126903
|
+
encoding: "application/json",
|
|
126904
|
+
schema: {
|
|
126905
|
+
type: "object",
|
|
126906
|
+
required: ["suggestions"],
|
|
126907
|
+
properties: {
|
|
126908
|
+
suggestions: {
|
|
126909
|
+
type: "array",
|
|
126910
|
+
items: {
|
|
126911
|
+
type: "ref",
|
|
126912
|
+
ref: "lex:app.bsky.unspecced.getTaggedSuggestions#suggestion"
|
|
126913
|
+
}
|
|
126914
|
+
}
|
|
126915
|
+
}
|
|
126916
|
+
}
|
|
126917
|
+
}
|
|
126918
|
+
},
|
|
126919
|
+
suggestion: {
|
|
126920
|
+
type: "object",
|
|
126921
|
+
required: ["tag", "subjectType", "subject"],
|
|
126922
|
+
properties: {
|
|
126923
|
+
tag: {
|
|
126924
|
+
type: "string"
|
|
126925
|
+
},
|
|
126926
|
+
subjectType: {
|
|
126927
|
+
type: "string",
|
|
126928
|
+
knownValues: ["actor", "feed"]
|
|
126929
|
+
},
|
|
126930
|
+
subject: {
|
|
126931
|
+
type: "string",
|
|
126932
|
+
format: "uri"
|
|
126933
|
+
}
|
|
126934
|
+
}
|
|
126935
|
+
}
|
|
126936
|
+
}
|
|
126937
|
+
},
|
|
126616
126938
|
AppBskyUnspeccedGetTimelineSkeleton: {
|
|
126617
126939
|
lexicon: 1,
|
|
126618
126940
|
id: "app.bsky.unspecced.getTimelineSkeleton",
|
|
@@ -127842,83 +128164,104 @@ function toKnownErr103(e) {
|
|
|
127842
128164
|
return e;
|
|
127843
128165
|
}
|
|
127844
128166
|
|
|
127845
|
-
// ../api/src/client/types/app/bsky/graph/
|
|
128167
|
+
// ../api/src/client/types/app/bsky/graph/getRelationships.ts
|
|
128168
|
+
var ActorNotFoundError = class extends XRPCError {
|
|
128169
|
+
constructor(src3) {
|
|
128170
|
+
super(src3.status, src3.error, src3.message, src3.headers);
|
|
128171
|
+
}
|
|
128172
|
+
};
|
|
127846
128173
|
function toKnownErr104(e) {
|
|
127847
128174
|
if (e instanceof XRPCError) {
|
|
128175
|
+
if (e.error === "ActorNotFound")
|
|
128176
|
+
return new ActorNotFoundError(e);
|
|
127848
128177
|
}
|
|
127849
128178
|
return e;
|
|
127850
128179
|
}
|
|
127851
128180
|
|
|
127852
|
-
// ../api/src/client/types/app/bsky/graph/
|
|
128181
|
+
// ../api/src/client/types/app/bsky/graph/getSuggestedFollowsByActor.ts
|
|
127853
128182
|
function toKnownErr105(e) {
|
|
127854
128183
|
if (e instanceof XRPCError) {
|
|
127855
128184
|
}
|
|
127856
128185
|
return e;
|
|
127857
128186
|
}
|
|
127858
128187
|
|
|
127859
|
-
// ../api/src/client/types/app/bsky/graph/
|
|
128188
|
+
// ../api/src/client/types/app/bsky/graph/muteActor.ts
|
|
127860
128189
|
function toKnownErr106(e) {
|
|
127861
128190
|
if (e instanceof XRPCError) {
|
|
127862
128191
|
}
|
|
127863
128192
|
return e;
|
|
127864
128193
|
}
|
|
127865
128194
|
|
|
127866
|
-
// ../api/src/client/types/app/bsky/graph/
|
|
128195
|
+
// ../api/src/client/types/app/bsky/graph/muteActorList.ts
|
|
127867
128196
|
function toKnownErr107(e) {
|
|
127868
128197
|
if (e instanceof XRPCError) {
|
|
127869
128198
|
}
|
|
127870
128199
|
return e;
|
|
127871
128200
|
}
|
|
127872
128201
|
|
|
127873
|
-
// ../api/src/client/types/app/bsky/graph/
|
|
128202
|
+
// ../api/src/client/types/app/bsky/graph/unmuteActor.ts
|
|
127874
128203
|
function toKnownErr108(e) {
|
|
127875
128204
|
if (e instanceof XRPCError) {
|
|
127876
128205
|
}
|
|
127877
128206
|
return e;
|
|
127878
128207
|
}
|
|
127879
128208
|
|
|
127880
|
-
// ../api/src/client/types/app/bsky/
|
|
128209
|
+
// ../api/src/client/types/app/bsky/graph/unmuteActorList.ts
|
|
127881
128210
|
function toKnownErr109(e) {
|
|
127882
128211
|
if (e instanceof XRPCError) {
|
|
127883
128212
|
}
|
|
127884
128213
|
return e;
|
|
127885
128214
|
}
|
|
127886
128215
|
|
|
127887
|
-
// ../api/src/client/types/app/bsky/notification/
|
|
128216
|
+
// ../api/src/client/types/app/bsky/notification/getUnreadCount.ts
|
|
127888
128217
|
function toKnownErr110(e) {
|
|
127889
128218
|
if (e instanceof XRPCError) {
|
|
127890
128219
|
}
|
|
127891
128220
|
return e;
|
|
127892
128221
|
}
|
|
127893
128222
|
|
|
127894
|
-
// ../api/src/client/types/app/bsky/notification/
|
|
128223
|
+
// ../api/src/client/types/app/bsky/notification/listNotifications.ts
|
|
127895
128224
|
function toKnownErr111(e) {
|
|
127896
128225
|
if (e instanceof XRPCError) {
|
|
127897
128226
|
}
|
|
127898
128227
|
return e;
|
|
127899
128228
|
}
|
|
127900
128229
|
|
|
127901
|
-
// ../api/src/client/types/app/bsky/notification/
|
|
128230
|
+
// ../api/src/client/types/app/bsky/notification/registerPush.ts
|
|
127902
128231
|
function toKnownErr112(e) {
|
|
127903
128232
|
if (e instanceof XRPCError) {
|
|
127904
128233
|
}
|
|
127905
128234
|
return e;
|
|
127906
128235
|
}
|
|
127907
128236
|
|
|
127908
|
-
// ../api/src/client/types/app/bsky/
|
|
128237
|
+
// ../api/src/client/types/app/bsky/notification/updateSeen.ts
|
|
127909
128238
|
function toKnownErr113(e) {
|
|
127910
128239
|
if (e instanceof XRPCError) {
|
|
127911
128240
|
}
|
|
127912
128241
|
return e;
|
|
127913
128242
|
}
|
|
127914
128243
|
|
|
128244
|
+
// ../api/src/client/types/app/bsky/unspecced/getPopularFeedGenerators.ts
|
|
128245
|
+
function toKnownErr114(e) {
|
|
128246
|
+
if (e instanceof XRPCError) {
|
|
128247
|
+
}
|
|
128248
|
+
return e;
|
|
128249
|
+
}
|
|
128250
|
+
|
|
128251
|
+
// ../api/src/client/types/app/bsky/unspecced/getTaggedSuggestions.ts
|
|
128252
|
+
function toKnownErr115(e) {
|
|
128253
|
+
if (e instanceof XRPCError) {
|
|
128254
|
+
}
|
|
128255
|
+
return e;
|
|
128256
|
+
}
|
|
128257
|
+
|
|
127915
128258
|
// ../api/src/client/types/app/bsky/unspecced/getTimelineSkeleton.ts
|
|
127916
128259
|
var UnknownFeedError3 = class extends XRPCError {
|
|
127917
128260
|
constructor(src3) {
|
|
127918
128261
|
super(src3.status, src3.error, src3.message, src3.headers);
|
|
127919
128262
|
}
|
|
127920
128263
|
};
|
|
127921
|
-
function
|
|
128264
|
+
function toKnownErr116(e) {
|
|
127922
128265
|
if (e instanceof XRPCError) {
|
|
127923
128266
|
if (e.error === "UnknownFeed")
|
|
127924
128267
|
return new UnknownFeedError3(e);
|
|
@@ -127932,7 +128275,7 @@ var BadQueryStringError2 = class extends XRPCError {
|
|
|
127932
128275
|
super(src3.status, src3.error, src3.message, src3.headers);
|
|
127933
128276
|
}
|
|
127934
128277
|
};
|
|
127935
|
-
function
|
|
128278
|
+
function toKnownErr117(e) {
|
|
127936
128279
|
if (e instanceof XRPCError) {
|
|
127937
128280
|
if (e.error === "BadQueryString")
|
|
127938
128281
|
return new BadQueryStringError2(e);
|
|
@@ -127946,7 +128289,7 @@ var BadQueryStringError3 = class extends XRPCError {
|
|
|
127946
128289
|
super(src3.status, src3.error, src3.message, src3.headers);
|
|
127947
128290
|
}
|
|
127948
128291
|
};
|
|
127949
|
-
function
|
|
128292
|
+
function toKnownErr118(e) {
|
|
127950
128293
|
if (e instanceof XRPCError) {
|
|
127951
128294
|
if (e.error === "BadQueryString")
|
|
127952
128295
|
return new BadQueryStringError3(e);
|
|
@@ -128759,29 +129102,34 @@ var AppBskyGraphNS2 = class {
|
|
|
128759
129102
|
throw toKnownErr103(e);
|
|
128760
129103
|
});
|
|
128761
129104
|
}
|
|
129105
|
+
getRelationships(params2, opts) {
|
|
129106
|
+
return this._service.xrpc.call("app.bsky.graph.getRelationships", params2, void 0, opts).catch((e) => {
|
|
129107
|
+
throw toKnownErr104(e);
|
|
129108
|
+
});
|
|
129109
|
+
}
|
|
128762
129110
|
getSuggestedFollowsByActor(params2, opts) {
|
|
128763
129111
|
return this._service.xrpc.call("app.bsky.graph.getSuggestedFollowsByActor", params2, void 0, opts).catch((e) => {
|
|
128764
|
-
throw
|
|
129112
|
+
throw toKnownErr105(e);
|
|
128765
129113
|
});
|
|
128766
129114
|
}
|
|
128767
129115
|
muteActor(data, opts) {
|
|
128768
129116
|
return this._service.xrpc.call("app.bsky.graph.muteActor", opts?.qp, data, opts).catch((e) => {
|
|
128769
|
-
throw
|
|
129117
|
+
throw toKnownErr106(e);
|
|
128770
129118
|
});
|
|
128771
129119
|
}
|
|
128772
129120
|
muteActorList(data, opts) {
|
|
128773
129121
|
return this._service.xrpc.call("app.bsky.graph.muteActorList", opts?.qp, data, opts).catch((e) => {
|
|
128774
|
-
throw
|
|
129122
|
+
throw toKnownErr107(e);
|
|
128775
129123
|
});
|
|
128776
129124
|
}
|
|
128777
129125
|
unmuteActor(data, opts) {
|
|
128778
129126
|
return this._service.xrpc.call("app.bsky.graph.unmuteActor", opts?.qp, data, opts).catch((e) => {
|
|
128779
|
-
throw
|
|
129127
|
+
throw toKnownErr108(e);
|
|
128780
129128
|
});
|
|
128781
129129
|
}
|
|
128782
129130
|
unmuteActorList(data, opts) {
|
|
128783
129131
|
return this._service.xrpc.call("app.bsky.graph.unmuteActorList", opts?.qp, data, opts).catch((e) => {
|
|
128784
|
-
throw
|
|
129132
|
+
throw toKnownErr109(e);
|
|
128785
129133
|
});
|
|
128786
129134
|
}
|
|
128787
129135
|
};
|
|
@@ -128926,22 +129274,22 @@ var AppBskyNotificationNS2 = class {
|
|
|
128926
129274
|
}
|
|
128927
129275
|
getUnreadCount(params2, opts) {
|
|
128928
129276
|
return this._service.xrpc.call("app.bsky.notification.getUnreadCount", params2, void 0, opts).catch((e) => {
|
|
128929
|
-
throw
|
|
129277
|
+
throw toKnownErr110(e);
|
|
128930
129278
|
});
|
|
128931
129279
|
}
|
|
128932
129280
|
listNotifications(params2, opts) {
|
|
128933
129281
|
return this._service.xrpc.call("app.bsky.notification.listNotifications", params2, void 0, opts).catch((e) => {
|
|
128934
|
-
throw
|
|
129282
|
+
throw toKnownErr111(e);
|
|
128935
129283
|
});
|
|
128936
129284
|
}
|
|
128937
129285
|
registerPush(data, opts) {
|
|
128938
129286
|
return this._service.xrpc.call("app.bsky.notification.registerPush", opts?.qp, data, opts).catch((e) => {
|
|
128939
|
-
throw
|
|
129287
|
+
throw toKnownErr112(e);
|
|
128940
129288
|
});
|
|
128941
129289
|
}
|
|
128942
129290
|
updateSeen(data, opts) {
|
|
128943
129291
|
return this._service.xrpc.call("app.bsky.notification.updateSeen", opts?.qp, data, opts).catch((e) => {
|
|
128944
|
-
throw
|
|
129292
|
+
throw toKnownErr113(e);
|
|
128945
129293
|
});
|
|
128946
129294
|
}
|
|
128947
129295
|
};
|
|
@@ -128956,22 +129304,27 @@ var AppBskyUnspeccedNS2 = class {
|
|
|
128956
129304
|
}
|
|
128957
129305
|
getPopularFeedGenerators(params2, opts) {
|
|
128958
129306
|
return this._service.xrpc.call("app.bsky.unspecced.getPopularFeedGenerators", params2, void 0, opts).catch((e) => {
|
|
128959
|
-
throw
|
|
129307
|
+
throw toKnownErr114(e);
|
|
129308
|
+
});
|
|
129309
|
+
}
|
|
129310
|
+
getTaggedSuggestions(params2, opts) {
|
|
129311
|
+
return this._service.xrpc.call("app.bsky.unspecced.getTaggedSuggestions", params2, void 0, opts).catch((e) => {
|
|
129312
|
+
throw toKnownErr115(e);
|
|
128960
129313
|
});
|
|
128961
129314
|
}
|
|
128962
129315
|
getTimelineSkeleton(params2, opts) {
|
|
128963
129316
|
return this._service.xrpc.call("app.bsky.unspecced.getTimelineSkeleton", params2, void 0, opts).catch((e) => {
|
|
128964
|
-
throw
|
|
129317
|
+
throw toKnownErr116(e);
|
|
128965
129318
|
});
|
|
128966
129319
|
}
|
|
128967
129320
|
searchActorsSkeleton(params2, opts) {
|
|
128968
129321
|
return this._service.xrpc.call("app.bsky.unspecced.searchActorsSkeleton", params2, void 0, opts).catch((e) => {
|
|
128969
|
-
throw
|
|
129322
|
+
throw toKnownErr117(e);
|
|
128970
129323
|
});
|
|
128971
129324
|
}
|
|
128972
129325
|
searchPostsSkeleton(params2, opts) {
|
|
128973
129326
|
return this._service.xrpc.call("app.bsky.unspecced.searchPostsSkeleton", params2, void 0, opts).catch((e) => {
|
|
128974
|
-
throw
|
|
129327
|
+
throw toKnownErr118(e);
|
|
128975
129328
|
});
|
|
128976
129329
|
}
|
|
128977
129330
|
};
|