@atproto/bsky 0.0.10 → 0.0.11
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 +13 -0
- package/dist/config.d.ts +2 -0
- package/dist/context.d.ts +3 -0
- package/dist/db/index.js.map +1 -1
- package/dist/index.js +592 -205
- package/dist/index.js.map +3 -3
- package/dist/lexicon/index.d.ts +8 -0
- package/dist/lexicon/lexicons.d.ts +99 -0
- package/dist/lexicon/types/com/atproto/server/confirmEmail.d.ts +27 -0
- package/dist/lexicon/types/com/atproto/server/createSession.d.ts +1 -0
- package/dist/lexicon/types/com/atproto/server/getSession.d.ts +1 -0
- package/dist/lexicon/types/com/atproto/server/requestEmailConfirmation.d.ts +19 -0
- package/dist/lexicon/types/com/atproto/server/requestEmailUpdate.d.ts +30 -0
- package/dist/lexicon/types/com/atproto/server/updateEmail.d.ts +27 -0
- package/dist/services/actor/index.d.ts +2 -2
- package/dist/services/util/search.d.ts +3 -3
- package/package.json +13 -13
- package/src/api/app/bsky/actor/searchActors.ts +36 -22
- package/src/api/app/bsky/actor/searchActorsTypeahead.ts +24 -17
- package/src/api/app/bsky/graph/getSuggestedFollowsByActor.ts +1 -0
- package/src/api/com/atproto/admin/searchRepos.ts +5 -8
- package/src/config.ts +7 -0
- package/src/context.ts +6 -0
- package/src/index.ts +5 -0
- package/src/lexicon/index.ts +48 -0
- package/src/lexicon/lexicons.ts +122 -0
- package/src/lexicon/types/com/atproto/server/confirmEmail.ts +40 -0
- package/src/lexicon/types/com/atproto/server/createSession.ts +1 -0
- package/src/lexicon/types/com/atproto/server/getSession.ts +1 -0
- package/src/lexicon/types/com/atproto/server/requestEmailConfirmation.ts +31 -0
- package/src/lexicon/types/com/atproto/server/requestEmailUpdate.ts +43 -0
- package/src/lexicon/types/com/atproto/server/updateEmail.ts +41 -0
- package/src/services/actor/index.ts +9 -9
- package/src/services/util/search.ts +24 -23
package/dist/index.js
CHANGED
|
@@ -121006,6 +121006,45 @@ var schemaDict = {
|
|
|
121006
121006
|
}
|
|
121007
121007
|
}
|
|
121008
121008
|
},
|
|
121009
|
+
ComAtprotoServerConfirmEmail: {
|
|
121010
|
+
lexicon: 1,
|
|
121011
|
+
id: "com.atproto.server.confirmEmail",
|
|
121012
|
+
defs: {
|
|
121013
|
+
main: {
|
|
121014
|
+
type: "procedure",
|
|
121015
|
+
description: "Confirm an email using a token from com.atproto.server.requestEmailConfirmation.",
|
|
121016
|
+
input: {
|
|
121017
|
+
encoding: "application/json",
|
|
121018
|
+
schema: {
|
|
121019
|
+
type: "object",
|
|
121020
|
+
required: ["email", "token"],
|
|
121021
|
+
properties: {
|
|
121022
|
+
email: {
|
|
121023
|
+
type: "string"
|
|
121024
|
+
},
|
|
121025
|
+
token: {
|
|
121026
|
+
type: "string"
|
|
121027
|
+
}
|
|
121028
|
+
}
|
|
121029
|
+
}
|
|
121030
|
+
},
|
|
121031
|
+
errors: [
|
|
121032
|
+
{
|
|
121033
|
+
name: "AccountNotFound"
|
|
121034
|
+
},
|
|
121035
|
+
{
|
|
121036
|
+
name: "ExpiredToken"
|
|
121037
|
+
},
|
|
121038
|
+
{
|
|
121039
|
+
name: "InvalidToken"
|
|
121040
|
+
},
|
|
121041
|
+
{
|
|
121042
|
+
name: "InvalidEmail"
|
|
121043
|
+
}
|
|
121044
|
+
]
|
|
121045
|
+
}
|
|
121046
|
+
}
|
|
121047
|
+
},
|
|
121009
121048
|
ComAtprotoServerCreateAccount: {
|
|
121010
121049
|
lexicon: 1,
|
|
121011
121050
|
id: "com.atproto.server.createAccount",
|
|
@@ -121288,6 +121327,9 @@ var schemaDict = {
|
|
|
121288
121327
|
},
|
|
121289
121328
|
email: {
|
|
121290
121329
|
type: "string"
|
|
121330
|
+
},
|
|
121331
|
+
emailConfirmed: {
|
|
121332
|
+
type: "boolean"
|
|
121291
121333
|
}
|
|
121292
121334
|
}
|
|
121293
121335
|
}
|
|
@@ -121517,6 +121559,9 @@ var schemaDict = {
|
|
|
121517
121559
|
},
|
|
121518
121560
|
email: {
|
|
121519
121561
|
type: "string"
|
|
121562
|
+
},
|
|
121563
|
+
emailConfirmed: {
|
|
121564
|
+
type: "boolean"
|
|
121520
121565
|
}
|
|
121521
121566
|
}
|
|
121522
121567
|
}
|
|
@@ -121616,6 +121661,38 @@ var schemaDict = {
|
|
|
121616
121661
|
}
|
|
121617
121662
|
}
|
|
121618
121663
|
},
|
|
121664
|
+
ComAtprotoServerRequestEmailConfirmation: {
|
|
121665
|
+
lexicon: 1,
|
|
121666
|
+
id: "com.atproto.server.requestEmailConfirmation",
|
|
121667
|
+
defs: {
|
|
121668
|
+
main: {
|
|
121669
|
+
type: "procedure",
|
|
121670
|
+
description: "Request an email with a code to confirm ownership of email"
|
|
121671
|
+
}
|
|
121672
|
+
}
|
|
121673
|
+
},
|
|
121674
|
+
ComAtprotoServerRequestEmailUpdate: {
|
|
121675
|
+
lexicon: 1,
|
|
121676
|
+
id: "com.atproto.server.requestEmailUpdate",
|
|
121677
|
+
defs: {
|
|
121678
|
+
main: {
|
|
121679
|
+
type: "procedure",
|
|
121680
|
+
description: "Request a token in order to update email.",
|
|
121681
|
+
output: {
|
|
121682
|
+
encoding: "application/json",
|
|
121683
|
+
schema: {
|
|
121684
|
+
type: "object",
|
|
121685
|
+
required: ["tokenRequired"],
|
|
121686
|
+
properties: {
|
|
121687
|
+
tokenRequired: {
|
|
121688
|
+
type: "boolean"
|
|
121689
|
+
}
|
|
121690
|
+
}
|
|
121691
|
+
}
|
|
121692
|
+
}
|
|
121693
|
+
}
|
|
121694
|
+
}
|
|
121695
|
+
},
|
|
121619
121696
|
ComAtprotoServerRequestPasswordReset: {
|
|
121620
121697
|
lexicon: 1,
|
|
121621
121698
|
id: "com.atproto.server.requestPasswordReset",
|
|
@@ -121693,6 +121770,43 @@ var schemaDict = {
|
|
|
121693
121770
|
}
|
|
121694
121771
|
}
|
|
121695
121772
|
},
|
|
121773
|
+
ComAtprotoServerUpdateEmail: {
|
|
121774
|
+
lexicon: 1,
|
|
121775
|
+
id: "com.atproto.server.updateEmail",
|
|
121776
|
+
defs: {
|
|
121777
|
+
main: {
|
|
121778
|
+
type: "procedure",
|
|
121779
|
+
description: "Update an account's email.",
|
|
121780
|
+
input: {
|
|
121781
|
+
encoding: "application/json",
|
|
121782
|
+
schema: {
|
|
121783
|
+
type: "object",
|
|
121784
|
+
required: ["email"],
|
|
121785
|
+
properties: {
|
|
121786
|
+
email: {
|
|
121787
|
+
type: "string"
|
|
121788
|
+
},
|
|
121789
|
+
token: {
|
|
121790
|
+
type: "string",
|
|
121791
|
+
description: "Requires a token from com.atproto.sever.requestEmailUpdate if the account's email has been confirmed."
|
|
121792
|
+
}
|
|
121793
|
+
}
|
|
121794
|
+
}
|
|
121795
|
+
},
|
|
121796
|
+
errors: [
|
|
121797
|
+
{
|
|
121798
|
+
name: "ExpiredToken"
|
|
121799
|
+
},
|
|
121800
|
+
{
|
|
121801
|
+
name: "InvalidToken"
|
|
121802
|
+
},
|
|
121803
|
+
{
|
|
121804
|
+
name: "TokenRequired"
|
|
121805
|
+
}
|
|
121806
|
+
]
|
|
121807
|
+
}
|
|
121808
|
+
}
|
|
121809
|
+
},
|
|
121696
121810
|
ComAtprotoSyncGetBlob: {
|
|
121697
121811
|
lexicon: 1,
|
|
121698
121812
|
id: "com.atproto.sync.getBlob",
|
|
@@ -126182,6 +126296,41 @@ function toKnownErr29(e) {
|
|
|
126182
126296
|
return e;
|
|
126183
126297
|
}
|
|
126184
126298
|
|
|
126299
|
+
// ../api/src/client/types/com/atproto/server/confirmEmail.ts
|
|
126300
|
+
var AccountNotFoundError = class extends XRPCError {
|
|
126301
|
+
constructor(src3) {
|
|
126302
|
+
super(src3.status, src3.error, src3.message, src3.headers);
|
|
126303
|
+
}
|
|
126304
|
+
};
|
|
126305
|
+
var ExpiredTokenError = class extends XRPCError {
|
|
126306
|
+
constructor(src3) {
|
|
126307
|
+
super(src3.status, src3.error, src3.message, src3.headers);
|
|
126308
|
+
}
|
|
126309
|
+
};
|
|
126310
|
+
var InvalidTokenError = class extends XRPCError {
|
|
126311
|
+
constructor(src3) {
|
|
126312
|
+
super(src3.status, src3.error, src3.message, src3.headers);
|
|
126313
|
+
}
|
|
126314
|
+
};
|
|
126315
|
+
var InvalidEmailError = class extends XRPCError {
|
|
126316
|
+
constructor(src3) {
|
|
126317
|
+
super(src3.status, src3.error, src3.message, src3.headers);
|
|
126318
|
+
}
|
|
126319
|
+
};
|
|
126320
|
+
function toKnownErr30(e) {
|
|
126321
|
+
if (e instanceof XRPCError) {
|
|
126322
|
+
if (e.error === "AccountNotFound")
|
|
126323
|
+
return new AccountNotFoundError(e);
|
|
126324
|
+
if (e.error === "ExpiredToken")
|
|
126325
|
+
return new ExpiredTokenError(e);
|
|
126326
|
+
if (e.error === "InvalidToken")
|
|
126327
|
+
return new InvalidTokenError(e);
|
|
126328
|
+
if (e.error === "InvalidEmail")
|
|
126329
|
+
return new InvalidEmailError(e);
|
|
126330
|
+
}
|
|
126331
|
+
return e;
|
|
126332
|
+
}
|
|
126333
|
+
|
|
126185
126334
|
// ../api/src/client/types/com/atproto/server/createAccount.ts
|
|
126186
126335
|
var InvalidHandleError2 = class extends XRPCError {
|
|
126187
126336
|
constructor(src3) {
|
|
@@ -126218,7 +126367,7 @@ var IncompatibleDidDocError = class extends XRPCError {
|
|
|
126218
126367
|
super(src3.status, src3.error, src3.message, src3.headers);
|
|
126219
126368
|
}
|
|
126220
126369
|
};
|
|
126221
|
-
function
|
|
126370
|
+
function toKnownErr31(e) {
|
|
126222
126371
|
if (e instanceof XRPCError) {
|
|
126223
126372
|
if (e.error === "InvalidHandle")
|
|
126224
126373
|
return new InvalidHandleError2(e);
|
|
@@ -126244,7 +126393,7 @@ var AccountTakedownError = class extends XRPCError {
|
|
|
126244
126393
|
super(src3.status, src3.error, src3.message, src3.headers);
|
|
126245
126394
|
}
|
|
126246
126395
|
};
|
|
126247
|
-
function
|
|
126396
|
+
function toKnownErr32(e) {
|
|
126248
126397
|
if (e instanceof XRPCError) {
|
|
126249
126398
|
if (e.error === "AccountTakedown")
|
|
126250
126399
|
return new AccountTakedownError(e);
|
|
@@ -126253,14 +126402,14 @@ function toKnownErr31(e) {
|
|
|
126253
126402
|
}
|
|
126254
126403
|
|
|
126255
126404
|
// ../api/src/client/types/com/atproto/server/createInviteCode.ts
|
|
126256
|
-
function
|
|
126405
|
+
function toKnownErr33(e) {
|
|
126257
126406
|
if (e instanceof XRPCError) {
|
|
126258
126407
|
}
|
|
126259
126408
|
return e;
|
|
126260
126409
|
}
|
|
126261
126410
|
|
|
126262
126411
|
// ../api/src/client/types/com/atproto/server/createInviteCodes.ts
|
|
126263
|
-
function
|
|
126412
|
+
function toKnownErr34(e) {
|
|
126264
126413
|
if (e instanceof XRPCError) {
|
|
126265
126414
|
}
|
|
126266
126415
|
return e;
|
|
@@ -126272,7 +126421,7 @@ var AccountTakedownError2 = class extends XRPCError {
|
|
|
126272
126421
|
super(src3.status, src3.error, src3.message, src3.headers);
|
|
126273
126422
|
}
|
|
126274
126423
|
};
|
|
126275
|
-
function
|
|
126424
|
+
function toKnownErr35(e) {
|
|
126276
126425
|
if (e instanceof XRPCError) {
|
|
126277
126426
|
if (e.error === "AccountTakedown")
|
|
126278
126427
|
return new AccountTakedownError2(e);
|
|
@@ -126281,35 +126430,35 @@ function toKnownErr34(e) {
|
|
|
126281
126430
|
}
|
|
126282
126431
|
|
|
126283
126432
|
// ../api/src/client/types/com/atproto/server/deleteAccount.ts
|
|
126284
|
-
var
|
|
126433
|
+
var ExpiredTokenError2 = class extends XRPCError {
|
|
126285
126434
|
constructor(src3) {
|
|
126286
126435
|
super(src3.status, src3.error, src3.message, src3.headers);
|
|
126287
126436
|
}
|
|
126288
126437
|
};
|
|
126289
|
-
var
|
|
126438
|
+
var InvalidTokenError2 = class extends XRPCError {
|
|
126290
126439
|
constructor(src3) {
|
|
126291
126440
|
super(src3.status, src3.error, src3.message, src3.headers);
|
|
126292
126441
|
}
|
|
126293
126442
|
};
|
|
126294
|
-
function
|
|
126443
|
+
function toKnownErr36(e) {
|
|
126295
126444
|
if (e instanceof XRPCError) {
|
|
126296
126445
|
if (e.error === "ExpiredToken")
|
|
126297
|
-
return new
|
|
126446
|
+
return new ExpiredTokenError2(e);
|
|
126298
126447
|
if (e.error === "InvalidToken")
|
|
126299
|
-
return new
|
|
126448
|
+
return new InvalidTokenError2(e);
|
|
126300
126449
|
}
|
|
126301
126450
|
return e;
|
|
126302
126451
|
}
|
|
126303
126452
|
|
|
126304
126453
|
// ../api/src/client/types/com/atproto/server/deleteSession.ts
|
|
126305
|
-
function
|
|
126454
|
+
function toKnownErr37(e) {
|
|
126306
126455
|
if (e instanceof XRPCError) {
|
|
126307
126456
|
}
|
|
126308
126457
|
return e;
|
|
126309
126458
|
}
|
|
126310
126459
|
|
|
126311
126460
|
// ../api/src/client/types/com/atproto/server/describeServer.ts
|
|
126312
|
-
function
|
|
126461
|
+
function toKnownErr38(e) {
|
|
126313
126462
|
if (e instanceof XRPCError) {
|
|
126314
126463
|
}
|
|
126315
126464
|
return e;
|
|
@@ -126321,7 +126470,7 @@ var DuplicateCreateError = class extends XRPCError {
|
|
|
126321
126470
|
super(src3.status, src3.error, src3.message, src3.headers);
|
|
126322
126471
|
}
|
|
126323
126472
|
};
|
|
126324
|
-
function
|
|
126473
|
+
function toKnownErr39(e) {
|
|
126325
126474
|
if (e instanceof XRPCError) {
|
|
126326
126475
|
if (e.error === "DuplicateCreate")
|
|
126327
126476
|
return new DuplicateCreateError(e);
|
|
@@ -126330,7 +126479,7 @@ function toKnownErr38(e) {
|
|
|
126330
126479
|
}
|
|
126331
126480
|
|
|
126332
126481
|
// ../api/src/client/types/com/atproto/server/getSession.ts
|
|
126333
|
-
function
|
|
126482
|
+
function toKnownErr40(e) {
|
|
126334
126483
|
if (e instanceof XRPCError) {
|
|
126335
126484
|
}
|
|
126336
126485
|
return e;
|
|
@@ -126342,7 +126491,7 @@ var AccountTakedownError3 = class extends XRPCError {
|
|
|
126342
126491
|
super(src3.status, src3.error, src3.message, src3.headers);
|
|
126343
126492
|
}
|
|
126344
126493
|
};
|
|
126345
|
-
function
|
|
126494
|
+
function toKnownErr41(e) {
|
|
126346
126495
|
if (e instanceof XRPCError) {
|
|
126347
126496
|
if (e.error === "AccountTakedown")
|
|
126348
126497
|
return new AccountTakedownError3(e);
|
|
@@ -126356,7 +126505,7 @@ var AccountTakedownError4 = class extends XRPCError {
|
|
|
126356
126505
|
super(src3.status, src3.error, src3.message, src3.headers);
|
|
126357
126506
|
}
|
|
126358
126507
|
};
|
|
126359
|
-
function
|
|
126508
|
+
function toKnownErr42(e) {
|
|
126360
126509
|
if (e instanceof XRPCError) {
|
|
126361
126510
|
if (e.error === "AccountTakedown")
|
|
126362
126511
|
return new AccountTakedownError4(e);
|
|
@@ -126365,63 +126514,105 @@ function toKnownErr41(e) {
|
|
|
126365
126514
|
}
|
|
126366
126515
|
|
|
126367
126516
|
// ../api/src/client/types/com/atproto/server/requestAccountDelete.ts
|
|
126368
|
-
function
|
|
126517
|
+
function toKnownErr43(e) {
|
|
126518
|
+
if (e instanceof XRPCError) {
|
|
126519
|
+
}
|
|
126520
|
+
return e;
|
|
126521
|
+
}
|
|
126522
|
+
|
|
126523
|
+
// ../api/src/client/types/com/atproto/server/requestEmailConfirmation.ts
|
|
126524
|
+
function toKnownErr44(e) {
|
|
126525
|
+
if (e instanceof XRPCError) {
|
|
126526
|
+
}
|
|
126527
|
+
return e;
|
|
126528
|
+
}
|
|
126529
|
+
|
|
126530
|
+
// ../api/src/client/types/com/atproto/server/requestEmailUpdate.ts
|
|
126531
|
+
function toKnownErr45(e) {
|
|
126369
126532
|
if (e instanceof XRPCError) {
|
|
126370
126533
|
}
|
|
126371
126534
|
return e;
|
|
126372
126535
|
}
|
|
126373
126536
|
|
|
126374
126537
|
// ../api/src/client/types/com/atproto/server/requestPasswordReset.ts
|
|
126375
|
-
function
|
|
126538
|
+
function toKnownErr46(e) {
|
|
126376
126539
|
if (e instanceof XRPCError) {
|
|
126377
126540
|
}
|
|
126378
126541
|
return e;
|
|
126379
126542
|
}
|
|
126380
126543
|
|
|
126381
126544
|
// ../api/src/client/types/com/atproto/server/resetPassword.ts
|
|
126382
|
-
var
|
|
126545
|
+
var ExpiredTokenError3 = class extends XRPCError {
|
|
126383
126546
|
constructor(src3) {
|
|
126384
126547
|
super(src3.status, src3.error, src3.message, src3.headers);
|
|
126385
126548
|
}
|
|
126386
126549
|
};
|
|
126387
|
-
var
|
|
126550
|
+
var InvalidTokenError3 = class extends XRPCError {
|
|
126388
126551
|
constructor(src3) {
|
|
126389
126552
|
super(src3.status, src3.error, src3.message, src3.headers);
|
|
126390
126553
|
}
|
|
126391
126554
|
};
|
|
126392
|
-
function
|
|
126555
|
+
function toKnownErr47(e) {
|
|
126393
126556
|
if (e instanceof XRPCError) {
|
|
126394
126557
|
if (e.error === "ExpiredToken")
|
|
126395
|
-
return new
|
|
126558
|
+
return new ExpiredTokenError3(e);
|
|
126396
126559
|
if (e.error === "InvalidToken")
|
|
126397
|
-
return new
|
|
126560
|
+
return new InvalidTokenError3(e);
|
|
126398
126561
|
}
|
|
126399
126562
|
return e;
|
|
126400
126563
|
}
|
|
126401
126564
|
|
|
126402
126565
|
// ../api/src/client/types/com/atproto/server/revokeAppPassword.ts
|
|
126403
|
-
function
|
|
126566
|
+
function toKnownErr48(e) {
|
|
126404
126567
|
if (e instanceof XRPCError) {
|
|
126405
126568
|
}
|
|
126406
126569
|
return e;
|
|
126407
126570
|
}
|
|
126408
126571
|
|
|
126572
|
+
// ../api/src/client/types/com/atproto/server/updateEmail.ts
|
|
126573
|
+
var ExpiredTokenError4 = class extends XRPCError {
|
|
126574
|
+
constructor(src3) {
|
|
126575
|
+
super(src3.status, src3.error, src3.message, src3.headers);
|
|
126576
|
+
}
|
|
126577
|
+
};
|
|
126578
|
+
var InvalidTokenError4 = class extends XRPCError {
|
|
126579
|
+
constructor(src3) {
|
|
126580
|
+
super(src3.status, src3.error, src3.message, src3.headers);
|
|
126581
|
+
}
|
|
126582
|
+
};
|
|
126583
|
+
var TokenRequiredError = class extends XRPCError {
|
|
126584
|
+
constructor(src3) {
|
|
126585
|
+
super(src3.status, src3.error, src3.message, src3.headers);
|
|
126586
|
+
}
|
|
126587
|
+
};
|
|
126588
|
+
function toKnownErr49(e) {
|
|
126589
|
+
if (e instanceof XRPCError) {
|
|
126590
|
+
if (e.error === "ExpiredToken")
|
|
126591
|
+
return new ExpiredTokenError4(e);
|
|
126592
|
+
if (e.error === "InvalidToken")
|
|
126593
|
+
return new InvalidTokenError4(e);
|
|
126594
|
+
if (e.error === "TokenRequired")
|
|
126595
|
+
return new TokenRequiredError(e);
|
|
126596
|
+
}
|
|
126597
|
+
return e;
|
|
126598
|
+
}
|
|
126599
|
+
|
|
126409
126600
|
// ../api/src/client/types/com/atproto/sync/getBlob.ts
|
|
126410
|
-
function
|
|
126601
|
+
function toKnownErr50(e) {
|
|
126411
126602
|
if (e instanceof XRPCError) {
|
|
126412
126603
|
}
|
|
126413
126604
|
return e;
|
|
126414
126605
|
}
|
|
126415
126606
|
|
|
126416
126607
|
// ../api/src/client/types/com/atproto/sync/getBlocks.ts
|
|
126417
|
-
function
|
|
126608
|
+
function toKnownErr51(e) {
|
|
126418
126609
|
if (e instanceof XRPCError) {
|
|
126419
126610
|
}
|
|
126420
126611
|
return e;
|
|
126421
126612
|
}
|
|
126422
126613
|
|
|
126423
126614
|
// ../api/src/client/types/com/atproto/sync/getCheckout.ts
|
|
126424
|
-
function
|
|
126615
|
+
function toKnownErr52(e) {
|
|
126425
126616
|
if (e instanceof XRPCError) {
|
|
126426
126617
|
}
|
|
126427
126618
|
return e;
|
|
@@ -126433,7 +126624,7 @@ var HeadNotFoundError = class extends XRPCError {
|
|
|
126433
126624
|
super(src3.status, src3.error, src3.message, src3.headers);
|
|
126434
126625
|
}
|
|
126435
126626
|
};
|
|
126436
|
-
function
|
|
126627
|
+
function toKnownErr53(e) {
|
|
126437
126628
|
if (e instanceof XRPCError) {
|
|
126438
126629
|
if (e.error === "HeadNotFound")
|
|
126439
126630
|
return new HeadNotFoundError(e);
|
|
@@ -126445,14 +126636,14 @@ function toKnownErr49(e) {
|
|
|
126445
126636
|
var getLatestCommit_exports = {};
|
|
126446
126637
|
__export(getLatestCommit_exports, {
|
|
126447
126638
|
RepoNotFoundError: () => RepoNotFoundError2,
|
|
126448
|
-
toKnownErr: () =>
|
|
126639
|
+
toKnownErr: () => toKnownErr54
|
|
126449
126640
|
});
|
|
126450
126641
|
var RepoNotFoundError2 = class extends XRPCError {
|
|
126451
126642
|
constructor(src3) {
|
|
126452
126643
|
super(src3.status, src3.error, src3.message, src3.headers);
|
|
126453
126644
|
}
|
|
126454
126645
|
};
|
|
126455
|
-
function
|
|
126646
|
+
function toKnownErr54(e) {
|
|
126456
126647
|
if (e instanceof XRPCError) {
|
|
126457
126648
|
if (e.error === "RepoNotFound")
|
|
126458
126649
|
return new RepoNotFoundError2(e);
|
|
@@ -126461,105 +126652,105 @@ function toKnownErr50(e) {
|
|
|
126461
126652
|
}
|
|
126462
126653
|
|
|
126463
126654
|
// ../api/src/client/types/com/atproto/sync/getRecord.ts
|
|
126464
|
-
function
|
|
126655
|
+
function toKnownErr55(e) {
|
|
126465
126656
|
if (e instanceof XRPCError) {
|
|
126466
126657
|
}
|
|
126467
126658
|
return e;
|
|
126468
126659
|
}
|
|
126469
126660
|
|
|
126470
126661
|
// ../api/src/client/types/com/atproto/sync/getRepo.ts
|
|
126471
|
-
function
|
|
126662
|
+
function toKnownErr56(e) {
|
|
126472
126663
|
if (e instanceof XRPCError) {
|
|
126473
126664
|
}
|
|
126474
126665
|
return e;
|
|
126475
126666
|
}
|
|
126476
126667
|
|
|
126477
126668
|
// ../api/src/client/types/com/atproto/sync/listBlobs.ts
|
|
126478
|
-
function
|
|
126669
|
+
function toKnownErr57(e) {
|
|
126479
126670
|
if (e instanceof XRPCError) {
|
|
126480
126671
|
}
|
|
126481
126672
|
return e;
|
|
126482
126673
|
}
|
|
126483
126674
|
|
|
126484
126675
|
// ../api/src/client/types/com/atproto/sync/listRepos.ts
|
|
126485
|
-
function
|
|
126676
|
+
function toKnownErr58(e) {
|
|
126486
126677
|
if (e instanceof XRPCError) {
|
|
126487
126678
|
}
|
|
126488
126679
|
return e;
|
|
126489
126680
|
}
|
|
126490
126681
|
|
|
126491
126682
|
// ../api/src/client/types/com/atproto/sync/notifyOfUpdate.ts
|
|
126492
|
-
function
|
|
126683
|
+
function toKnownErr59(e) {
|
|
126493
126684
|
if (e instanceof XRPCError) {
|
|
126494
126685
|
}
|
|
126495
126686
|
return e;
|
|
126496
126687
|
}
|
|
126497
126688
|
|
|
126498
126689
|
// ../api/src/client/types/com/atproto/sync/requestCrawl.ts
|
|
126499
|
-
function
|
|
126690
|
+
function toKnownErr60(e) {
|
|
126500
126691
|
if (e instanceof XRPCError) {
|
|
126501
126692
|
}
|
|
126502
126693
|
return e;
|
|
126503
126694
|
}
|
|
126504
126695
|
|
|
126505
126696
|
// ../api/src/client/types/app/bsky/actor/getPreferences.ts
|
|
126506
|
-
function
|
|
126697
|
+
function toKnownErr61(e) {
|
|
126507
126698
|
if (e instanceof XRPCError) {
|
|
126508
126699
|
}
|
|
126509
126700
|
return e;
|
|
126510
126701
|
}
|
|
126511
126702
|
|
|
126512
126703
|
// ../api/src/client/types/app/bsky/actor/getProfile.ts
|
|
126513
|
-
function
|
|
126704
|
+
function toKnownErr62(e) {
|
|
126514
126705
|
if (e instanceof XRPCError) {
|
|
126515
126706
|
}
|
|
126516
126707
|
return e;
|
|
126517
126708
|
}
|
|
126518
126709
|
|
|
126519
126710
|
// ../api/src/client/types/app/bsky/actor/getProfiles.ts
|
|
126520
|
-
function
|
|
126711
|
+
function toKnownErr63(e) {
|
|
126521
126712
|
if (e instanceof XRPCError) {
|
|
126522
126713
|
}
|
|
126523
126714
|
return e;
|
|
126524
126715
|
}
|
|
126525
126716
|
|
|
126526
126717
|
// ../api/src/client/types/app/bsky/actor/getSuggestions.ts
|
|
126527
|
-
function
|
|
126718
|
+
function toKnownErr64(e) {
|
|
126528
126719
|
if (e instanceof XRPCError) {
|
|
126529
126720
|
}
|
|
126530
126721
|
return e;
|
|
126531
126722
|
}
|
|
126532
126723
|
|
|
126533
126724
|
// ../api/src/client/types/app/bsky/actor/putPreferences.ts
|
|
126534
|
-
function
|
|
126725
|
+
function toKnownErr65(e) {
|
|
126535
126726
|
if (e instanceof XRPCError) {
|
|
126536
126727
|
}
|
|
126537
126728
|
return e;
|
|
126538
126729
|
}
|
|
126539
126730
|
|
|
126540
126731
|
// ../api/src/client/types/app/bsky/actor/searchActors.ts
|
|
126541
|
-
function
|
|
126732
|
+
function toKnownErr66(e) {
|
|
126542
126733
|
if (e instanceof XRPCError) {
|
|
126543
126734
|
}
|
|
126544
126735
|
return e;
|
|
126545
126736
|
}
|
|
126546
126737
|
|
|
126547
126738
|
// ../api/src/client/types/app/bsky/actor/searchActorsTypeahead.ts
|
|
126548
|
-
function
|
|
126739
|
+
function toKnownErr67(e) {
|
|
126549
126740
|
if (e instanceof XRPCError) {
|
|
126550
126741
|
}
|
|
126551
126742
|
return e;
|
|
126552
126743
|
}
|
|
126553
126744
|
|
|
126554
126745
|
// ../api/src/client/types/app/bsky/feed/describeFeedGenerator.ts
|
|
126555
|
-
function
|
|
126746
|
+
function toKnownErr68(e) {
|
|
126556
126747
|
if (e instanceof XRPCError) {
|
|
126557
126748
|
}
|
|
126558
126749
|
return e;
|
|
126559
126750
|
}
|
|
126560
126751
|
|
|
126561
126752
|
// ../api/src/client/types/app/bsky/feed/getActorFeeds.ts
|
|
126562
|
-
function
|
|
126753
|
+
function toKnownErr69(e) {
|
|
126563
126754
|
if (e instanceof XRPCError) {
|
|
126564
126755
|
}
|
|
126565
126756
|
return e;
|
|
@@ -126576,7 +126767,7 @@ var BlockedByActorError = class extends XRPCError {
|
|
|
126576
126767
|
super(src3.status, src3.error, src3.message, src3.headers);
|
|
126577
126768
|
}
|
|
126578
126769
|
};
|
|
126579
|
-
function
|
|
126770
|
+
function toKnownErr70(e) {
|
|
126580
126771
|
if (e instanceof XRPCError) {
|
|
126581
126772
|
if (e.error === "BlockedActor")
|
|
126582
126773
|
return new BlockedActorError(e);
|
|
@@ -126597,7 +126788,7 @@ var BlockedByActorError2 = class extends XRPCError {
|
|
|
126597
126788
|
super(src3.status, src3.error, src3.message, src3.headers);
|
|
126598
126789
|
}
|
|
126599
126790
|
};
|
|
126600
|
-
function
|
|
126791
|
+
function toKnownErr71(e) {
|
|
126601
126792
|
if (e instanceof XRPCError) {
|
|
126602
126793
|
if (e.error === "BlockedActor")
|
|
126603
126794
|
return new BlockedActorError2(e);
|
|
@@ -126613,7 +126804,7 @@ var UnknownFeedError = class extends XRPCError {
|
|
|
126613
126804
|
super(src3.status, src3.error, src3.message, src3.headers);
|
|
126614
126805
|
}
|
|
126615
126806
|
};
|
|
126616
|
-
function
|
|
126807
|
+
function toKnownErr72(e) {
|
|
126617
126808
|
if (e instanceof XRPCError) {
|
|
126618
126809
|
if (e.error === "UnknownFeed")
|
|
126619
126810
|
return new UnknownFeedError(e);
|
|
@@ -126622,14 +126813,14 @@ function toKnownErr68(e) {
|
|
|
126622
126813
|
}
|
|
126623
126814
|
|
|
126624
126815
|
// ../api/src/client/types/app/bsky/feed/getFeedGenerator.ts
|
|
126625
|
-
function
|
|
126816
|
+
function toKnownErr73(e) {
|
|
126626
126817
|
if (e instanceof XRPCError) {
|
|
126627
126818
|
}
|
|
126628
126819
|
return e;
|
|
126629
126820
|
}
|
|
126630
126821
|
|
|
126631
126822
|
// ../api/src/client/types/app/bsky/feed/getFeedGenerators.ts
|
|
126632
|
-
function
|
|
126823
|
+
function toKnownErr74(e) {
|
|
126633
126824
|
if (e instanceof XRPCError) {
|
|
126634
126825
|
}
|
|
126635
126826
|
return e;
|
|
@@ -126639,14 +126830,14 @@ function toKnownErr70(e) {
|
|
|
126639
126830
|
var getFeedSkeleton_exports = {};
|
|
126640
126831
|
__export(getFeedSkeleton_exports, {
|
|
126641
126832
|
UnknownFeedError: () => UnknownFeedError2,
|
|
126642
|
-
toKnownErr: () =>
|
|
126833
|
+
toKnownErr: () => toKnownErr75
|
|
126643
126834
|
});
|
|
126644
126835
|
var UnknownFeedError2 = class extends XRPCError {
|
|
126645
126836
|
constructor(src3) {
|
|
126646
126837
|
super(src3.status, src3.error, src3.message, src3.headers);
|
|
126647
126838
|
}
|
|
126648
126839
|
};
|
|
126649
|
-
function
|
|
126840
|
+
function toKnownErr75(e) {
|
|
126650
126841
|
if (e instanceof XRPCError) {
|
|
126651
126842
|
if (e.error === "UnknownFeed")
|
|
126652
126843
|
return new UnknownFeedError2(e);
|
|
@@ -126655,7 +126846,7 @@ function toKnownErr71(e) {
|
|
|
126655
126846
|
}
|
|
126656
126847
|
|
|
126657
126848
|
// ../api/src/client/types/app/bsky/feed/getLikes.ts
|
|
126658
|
-
function
|
|
126849
|
+
function toKnownErr76(e) {
|
|
126659
126850
|
if (e instanceof XRPCError) {
|
|
126660
126851
|
}
|
|
126661
126852
|
return e;
|
|
@@ -126667,7 +126858,7 @@ var UnknownListError = class extends XRPCError {
|
|
|
126667
126858
|
super(src3.status, src3.error, src3.message, src3.headers);
|
|
126668
126859
|
}
|
|
126669
126860
|
};
|
|
126670
|
-
function
|
|
126861
|
+
function toKnownErr77(e) {
|
|
126671
126862
|
if (e instanceof XRPCError) {
|
|
126672
126863
|
if (e.error === "UnknownList")
|
|
126673
126864
|
return new UnknownListError(e);
|
|
@@ -126681,7 +126872,7 @@ var NotFoundError = class extends XRPCError {
|
|
|
126681
126872
|
super(src3.status, src3.error, src3.message, src3.headers);
|
|
126682
126873
|
}
|
|
126683
126874
|
};
|
|
126684
|
-
function
|
|
126875
|
+
function toKnownErr78(e) {
|
|
126685
126876
|
if (e instanceof XRPCError) {
|
|
126686
126877
|
if (e.error === "NotFound")
|
|
126687
126878
|
return new NotFoundError(e);
|
|
@@ -126690,28 +126881,28 @@ function toKnownErr74(e) {
|
|
|
126690
126881
|
}
|
|
126691
126882
|
|
|
126692
126883
|
// ../api/src/client/types/app/bsky/feed/getPosts.ts
|
|
126693
|
-
function
|
|
126884
|
+
function toKnownErr79(e) {
|
|
126694
126885
|
if (e instanceof XRPCError) {
|
|
126695
126886
|
}
|
|
126696
126887
|
return e;
|
|
126697
126888
|
}
|
|
126698
126889
|
|
|
126699
126890
|
// ../api/src/client/types/app/bsky/feed/getRepostedBy.ts
|
|
126700
|
-
function
|
|
126891
|
+
function toKnownErr80(e) {
|
|
126701
126892
|
if (e instanceof XRPCError) {
|
|
126702
126893
|
}
|
|
126703
126894
|
return e;
|
|
126704
126895
|
}
|
|
126705
126896
|
|
|
126706
126897
|
// ../api/src/client/types/app/bsky/feed/getSuggestedFeeds.ts
|
|
126707
|
-
function
|
|
126898
|
+
function toKnownErr81(e) {
|
|
126708
126899
|
if (e instanceof XRPCError) {
|
|
126709
126900
|
}
|
|
126710
126901
|
return e;
|
|
126711
126902
|
}
|
|
126712
126903
|
|
|
126713
126904
|
// ../api/src/client/types/app/bsky/feed/getTimeline.ts
|
|
126714
|
-
function
|
|
126905
|
+
function toKnownErr82(e) {
|
|
126715
126906
|
if (e instanceof XRPCError) {
|
|
126716
126907
|
}
|
|
126717
126908
|
return e;
|
|
@@ -126723,7 +126914,7 @@ var BadQueryStringError = class extends XRPCError {
|
|
|
126723
126914
|
super(src3.status, src3.error, src3.message, src3.headers);
|
|
126724
126915
|
}
|
|
126725
126916
|
};
|
|
126726
|
-
function
|
|
126917
|
+
function toKnownErr83(e) {
|
|
126727
126918
|
if (e instanceof XRPCError) {
|
|
126728
126919
|
if (e.error === "BadQueryString")
|
|
126729
126920
|
return new BadQueryStringError(e);
|
|
@@ -126732,133 +126923,133 @@ function toKnownErr79(e) {
|
|
|
126732
126923
|
}
|
|
126733
126924
|
|
|
126734
126925
|
// ../api/src/client/types/app/bsky/graph/getBlocks.ts
|
|
126735
|
-
function
|
|
126926
|
+
function toKnownErr84(e) {
|
|
126736
126927
|
if (e instanceof XRPCError) {
|
|
126737
126928
|
}
|
|
126738
126929
|
return e;
|
|
126739
126930
|
}
|
|
126740
126931
|
|
|
126741
126932
|
// ../api/src/client/types/app/bsky/graph/getFollowers.ts
|
|
126742
|
-
function
|
|
126933
|
+
function toKnownErr85(e) {
|
|
126743
126934
|
if (e instanceof XRPCError) {
|
|
126744
126935
|
}
|
|
126745
126936
|
return e;
|
|
126746
126937
|
}
|
|
126747
126938
|
|
|
126748
126939
|
// ../api/src/client/types/app/bsky/graph/getFollows.ts
|
|
126749
|
-
function
|
|
126940
|
+
function toKnownErr86(e) {
|
|
126750
126941
|
if (e instanceof XRPCError) {
|
|
126751
126942
|
}
|
|
126752
126943
|
return e;
|
|
126753
126944
|
}
|
|
126754
126945
|
|
|
126755
126946
|
// ../api/src/client/types/app/bsky/graph/getList.ts
|
|
126756
|
-
function
|
|
126947
|
+
function toKnownErr87(e) {
|
|
126757
126948
|
if (e instanceof XRPCError) {
|
|
126758
126949
|
}
|
|
126759
126950
|
return e;
|
|
126760
126951
|
}
|
|
126761
126952
|
|
|
126762
126953
|
// ../api/src/client/types/app/bsky/graph/getListBlocks.ts
|
|
126763
|
-
function
|
|
126954
|
+
function toKnownErr88(e) {
|
|
126764
126955
|
if (e instanceof XRPCError) {
|
|
126765
126956
|
}
|
|
126766
126957
|
return e;
|
|
126767
126958
|
}
|
|
126768
126959
|
|
|
126769
126960
|
// ../api/src/client/types/app/bsky/graph/getListMutes.ts
|
|
126770
|
-
function
|
|
126961
|
+
function toKnownErr89(e) {
|
|
126771
126962
|
if (e instanceof XRPCError) {
|
|
126772
126963
|
}
|
|
126773
126964
|
return e;
|
|
126774
126965
|
}
|
|
126775
126966
|
|
|
126776
126967
|
// ../api/src/client/types/app/bsky/graph/getLists.ts
|
|
126777
|
-
function
|
|
126968
|
+
function toKnownErr90(e) {
|
|
126778
126969
|
if (e instanceof XRPCError) {
|
|
126779
126970
|
}
|
|
126780
126971
|
return e;
|
|
126781
126972
|
}
|
|
126782
126973
|
|
|
126783
126974
|
// ../api/src/client/types/app/bsky/graph/getMutes.ts
|
|
126784
|
-
function
|
|
126975
|
+
function toKnownErr91(e) {
|
|
126785
126976
|
if (e instanceof XRPCError) {
|
|
126786
126977
|
}
|
|
126787
126978
|
return e;
|
|
126788
126979
|
}
|
|
126789
126980
|
|
|
126790
126981
|
// ../api/src/client/types/app/bsky/graph/getSuggestedFollowsByActor.ts
|
|
126791
|
-
function
|
|
126982
|
+
function toKnownErr92(e) {
|
|
126792
126983
|
if (e instanceof XRPCError) {
|
|
126793
126984
|
}
|
|
126794
126985
|
return e;
|
|
126795
126986
|
}
|
|
126796
126987
|
|
|
126797
126988
|
// ../api/src/client/types/app/bsky/graph/muteActor.ts
|
|
126798
|
-
function
|
|
126989
|
+
function toKnownErr93(e) {
|
|
126799
126990
|
if (e instanceof XRPCError) {
|
|
126800
126991
|
}
|
|
126801
126992
|
return e;
|
|
126802
126993
|
}
|
|
126803
126994
|
|
|
126804
126995
|
// ../api/src/client/types/app/bsky/graph/muteActorList.ts
|
|
126805
|
-
function
|
|
126996
|
+
function toKnownErr94(e) {
|
|
126806
126997
|
if (e instanceof XRPCError) {
|
|
126807
126998
|
}
|
|
126808
126999
|
return e;
|
|
126809
127000
|
}
|
|
126810
127001
|
|
|
126811
127002
|
// ../api/src/client/types/app/bsky/graph/unmuteActor.ts
|
|
126812
|
-
function
|
|
127003
|
+
function toKnownErr95(e) {
|
|
126813
127004
|
if (e instanceof XRPCError) {
|
|
126814
127005
|
}
|
|
126815
127006
|
return e;
|
|
126816
127007
|
}
|
|
126817
127008
|
|
|
126818
127009
|
// ../api/src/client/types/app/bsky/graph/unmuteActorList.ts
|
|
126819
|
-
function
|
|
127010
|
+
function toKnownErr96(e) {
|
|
126820
127011
|
if (e instanceof XRPCError) {
|
|
126821
127012
|
}
|
|
126822
127013
|
return e;
|
|
126823
127014
|
}
|
|
126824
127015
|
|
|
126825
127016
|
// ../api/src/client/types/app/bsky/notification/getUnreadCount.ts
|
|
126826
|
-
function
|
|
127017
|
+
function toKnownErr97(e) {
|
|
126827
127018
|
if (e instanceof XRPCError) {
|
|
126828
127019
|
}
|
|
126829
127020
|
return e;
|
|
126830
127021
|
}
|
|
126831
127022
|
|
|
126832
127023
|
// ../api/src/client/types/app/bsky/notification/listNotifications.ts
|
|
126833
|
-
function
|
|
127024
|
+
function toKnownErr98(e) {
|
|
126834
127025
|
if (e instanceof XRPCError) {
|
|
126835
127026
|
}
|
|
126836
127027
|
return e;
|
|
126837
127028
|
}
|
|
126838
127029
|
|
|
126839
127030
|
// ../api/src/client/types/app/bsky/notification/registerPush.ts
|
|
126840
|
-
function
|
|
127031
|
+
function toKnownErr99(e) {
|
|
126841
127032
|
if (e instanceof XRPCError) {
|
|
126842
127033
|
}
|
|
126843
127034
|
return e;
|
|
126844
127035
|
}
|
|
126845
127036
|
|
|
126846
127037
|
// ../api/src/client/types/app/bsky/notification/updateSeen.ts
|
|
126847
|
-
function
|
|
127038
|
+
function toKnownErr100(e) {
|
|
126848
127039
|
if (e instanceof XRPCError) {
|
|
126849
127040
|
}
|
|
126850
127041
|
return e;
|
|
126851
127042
|
}
|
|
126852
127043
|
|
|
126853
127044
|
// ../api/src/client/types/app/bsky/unspecced/getPopular.ts
|
|
126854
|
-
function
|
|
127045
|
+
function toKnownErr101(e) {
|
|
126855
127046
|
if (e instanceof XRPCError) {
|
|
126856
127047
|
}
|
|
126857
127048
|
return e;
|
|
126858
127049
|
}
|
|
126859
127050
|
|
|
126860
127051
|
// ../api/src/client/types/app/bsky/unspecced/getPopularFeedGenerators.ts
|
|
126861
|
-
function
|
|
127052
|
+
function toKnownErr102(e) {
|
|
126862
127053
|
if (e instanceof XRPCError) {
|
|
126863
127054
|
}
|
|
126864
127055
|
return e;
|
|
@@ -126870,7 +127061,7 @@ var UnknownFeedError3 = class extends XRPCError {
|
|
|
126870
127061
|
super(src3.status, src3.error, src3.message, src3.headers);
|
|
126871
127062
|
}
|
|
126872
127063
|
};
|
|
126873
|
-
function
|
|
127064
|
+
function toKnownErr103(e) {
|
|
126874
127065
|
if (e instanceof XRPCError) {
|
|
126875
127066
|
if (e.error === "UnknownFeed")
|
|
126876
127067
|
return new UnknownFeedError3(e);
|
|
@@ -126884,7 +127075,7 @@ var BadQueryStringError2 = class extends XRPCError {
|
|
|
126884
127075
|
super(src3.status, src3.error, src3.message, src3.headers);
|
|
126885
127076
|
}
|
|
126886
127077
|
};
|
|
126887
|
-
function
|
|
127078
|
+
function toKnownErr104(e) {
|
|
126888
127079
|
if (e instanceof XRPCError) {
|
|
126889
127080
|
if (e.error === "BadQueryString")
|
|
126890
127081
|
return new BadQueryStringError2(e);
|
|
@@ -126898,7 +127089,7 @@ var BadQueryStringError3 = class extends XRPCError {
|
|
|
126898
127089
|
super(src3.status, src3.error, src3.message, src3.headers);
|
|
126899
127090
|
}
|
|
126900
127091
|
};
|
|
126901
|
-
function
|
|
127092
|
+
function toKnownErr105(e) {
|
|
126902
127093
|
if (e instanceof XRPCError) {
|
|
126903
127094
|
if (e.error === "BadQueryString")
|
|
126904
127095
|
return new BadQueryStringError3(e);
|
|
@@ -127119,84 +127310,104 @@ var ServerNS = class {
|
|
|
127119
127310
|
constructor(service2) {
|
|
127120
127311
|
this._service = service2;
|
|
127121
127312
|
}
|
|
127313
|
+
confirmEmail(data, opts) {
|
|
127314
|
+
return this._service.xrpc.call("com.atproto.server.confirmEmail", opts?.qp, data, opts).catch((e) => {
|
|
127315
|
+
throw toKnownErr30(e);
|
|
127316
|
+
});
|
|
127317
|
+
}
|
|
127122
127318
|
createAccount(data, opts) {
|
|
127123
127319
|
return this._service.xrpc.call("com.atproto.server.createAccount", opts?.qp, data, opts).catch((e) => {
|
|
127124
|
-
throw
|
|
127320
|
+
throw toKnownErr31(e);
|
|
127125
127321
|
});
|
|
127126
127322
|
}
|
|
127127
127323
|
createAppPassword(data, opts) {
|
|
127128
127324
|
return this._service.xrpc.call("com.atproto.server.createAppPassword", opts?.qp, data, opts).catch((e) => {
|
|
127129
|
-
throw
|
|
127325
|
+
throw toKnownErr32(e);
|
|
127130
127326
|
});
|
|
127131
127327
|
}
|
|
127132
127328
|
createInviteCode(data, opts) {
|
|
127133
127329
|
return this._service.xrpc.call("com.atproto.server.createInviteCode", opts?.qp, data, opts).catch((e) => {
|
|
127134
|
-
throw
|
|
127330
|
+
throw toKnownErr33(e);
|
|
127135
127331
|
});
|
|
127136
127332
|
}
|
|
127137
127333
|
createInviteCodes(data, opts) {
|
|
127138
127334
|
return this._service.xrpc.call("com.atproto.server.createInviteCodes", opts?.qp, data, opts).catch((e) => {
|
|
127139
|
-
throw
|
|
127335
|
+
throw toKnownErr34(e);
|
|
127140
127336
|
});
|
|
127141
127337
|
}
|
|
127142
127338
|
createSession(data, opts) {
|
|
127143
127339
|
return this._service.xrpc.call("com.atproto.server.createSession", opts?.qp, data, opts).catch((e) => {
|
|
127144
|
-
throw
|
|
127340
|
+
throw toKnownErr35(e);
|
|
127145
127341
|
});
|
|
127146
127342
|
}
|
|
127147
127343
|
deleteAccount(data, opts) {
|
|
127148
127344
|
return this._service.xrpc.call("com.atproto.server.deleteAccount", opts?.qp, data, opts).catch((e) => {
|
|
127149
|
-
throw
|
|
127345
|
+
throw toKnownErr36(e);
|
|
127150
127346
|
});
|
|
127151
127347
|
}
|
|
127152
127348
|
deleteSession(data, opts) {
|
|
127153
127349
|
return this._service.xrpc.call("com.atproto.server.deleteSession", opts?.qp, data, opts).catch((e) => {
|
|
127154
|
-
throw
|
|
127350
|
+
throw toKnownErr37(e);
|
|
127155
127351
|
});
|
|
127156
127352
|
}
|
|
127157
127353
|
describeServer(params2, opts) {
|
|
127158
127354
|
return this._service.xrpc.call("com.atproto.server.describeServer", params2, void 0, opts).catch((e) => {
|
|
127159
|
-
throw
|
|
127355
|
+
throw toKnownErr38(e);
|
|
127160
127356
|
});
|
|
127161
127357
|
}
|
|
127162
127358
|
getAccountInviteCodes(params2, opts) {
|
|
127163
127359
|
return this._service.xrpc.call("com.atproto.server.getAccountInviteCodes", params2, void 0, opts).catch((e) => {
|
|
127164
|
-
throw
|
|
127360
|
+
throw toKnownErr39(e);
|
|
127165
127361
|
});
|
|
127166
127362
|
}
|
|
127167
127363
|
getSession(params2, opts) {
|
|
127168
127364
|
return this._service.xrpc.call("com.atproto.server.getSession", params2, void 0, opts).catch((e) => {
|
|
127169
|
-
throw
|
|
127365
|
+
throw toKnownErr40(e);
|
|
127170
127366
|
});
|
|
127171
127367
|
}
|
|
127172
127368
|
listAppPasswords(params2, opts) {
|
|
127173
127369
|
return this._service.xrpc.call("com.atproto.server.listAppPasswords", params2, void 0, opts).catch((e) => {
|
|
127174
|
-
throw
|
|
127370
|
+
throw toKnownErr41(e);
|
|
127175
127371
|
});
|
|
127176
127372
|
}
|
|
127177
127373
|
refreshSession(data, opts) {
|
|
127178
127374
|
return this._service.xrpc.call("com.atproto.server.refreshSession", opts?.qp, data, opts).catch((e) => {
|
|
127179
|
-
throw
|
|
127375
|
+
throw toKnownErr42(e);
|
|
127180
127376
|
});
|
|
127181
127377
|
}
|
|
127182
127378
|
requestAccountDelete(data, opts) {
|
|
127183
127379
|
return this._service.xrpc.call("com.atproto.server.requestAccountDelete", opts?.qp, data, opts).catch((e) => {
|
|
127184
|
-
throw
|
|
127380
|
+
throw toKnownErr43(e);
|
|
127381
|
+
});
|
|
127382
|
+
}
|
|
127383
|
+
requestEmailConfirmation(data, opts) {
|
|
127384
|
+
return this._service.xrpc.call("com.atproto.server.requestEmailConfirmation", opts?.qp, data, opts).catch((e) => {
|
|
127385
|
+
throw toKnownErr44(e);
|
|
127386
|
+
});
|
|
127387
|
+
}
|
|
127388
|
+
requestEmailUpdate(data, opts) {
|
|
127389
|
+
return this._service.xrpc.call("com.atproto.server.requestEmailUpdate", opts?.qp, data, opts).catch((e) => {
|
|
127390
|
+
throw toKnownErr45(e);
|
|
127185
127391
|
});
|
|
127186
127392
|
}
|
|
127187
127393
|
requestPasswordReset(data, opts) {
|
|
127188
127394
|
return this._service.xrpc.call("com.atproto.server.requestPasswordReset", opts?.qp, data, opts).catch((e) => {
|
|
127189
|
-
throw
|
|
127395
|
+
throw toKnownErr46(e);
|
|
127190
127396
|
});
|
|
127191
127397
|
}
|
|
127192
127398
|
resetPassword(data, opts) {
|
|
127193
127399
|
return this._service.xrpc.call("com.atproto.server.resetPassword", opts?.qp, data, opts).catch((e) => {
|
|
127194
|
-
throw
|
|
127400
|
+
throw toKnownErr47(e);
|
|
127195
127401
|
});
|
|
127196
127402
|
}
|
|
127197
127403
|
revokeAppPassword(data, opts) {
|
|
127198
127404
|
return this._service.xrpc.call("com.atproto.server.revokeAppPassword", opts?.qp, data, opts).catch((e) => {
|
|
127199
|
-
throw
|
|
127405
|
+
throw toKnownErr48(e);
|
|
127406
|
+
});
|
|
127407
|
+
}
|
|
127408
|
+
updateEmail(data, opts) {
|
|
127409
|
+
return this._service.xrpc.call("com.atproto.server.updateEmail", opts?.qp, data, opts).catch((e) => {
|
|
127410
|
+
throw toKnownErr49(e);
|
|
127200
127411
|
});
|
|
127201
127412
|
}
|
|
127202
127413
|
};
|
|
@@ -127206,57 +127417,57 @@ var SyncNS = class {
|
|
|
127206
127417
|
}
|
|
127207
127418
|
getBlob(params2, opts) {
|
|
127208
127419
|
return this._service.xrpc.call("com.atproto.sync.getBlob", params2, void 0, opts).catch((e) => {
|
|
127209
|
-
throw
|
|
127420
|
+
throw toKnownErr50(e);
|
|
127210
127421
|
});
|
|
127211
127422
|
}
|
|
127212
127423
|
getBlocks(params2, opts) {
|
|
127213
127424
|
return this._service.xrpc.call("com.atproto.sync.getBlocks", params2, void 0, opts).catch((e) => {
|
|
127214
|
-
throw
|
|
127425
|
+
throw toKnownErr51(e);
|
|
127215
127426
|
});
|
|
127216
127427
|
}
|
|
127217
127428
|
getCheckout(params2, opts) {
|
|
127218
127429
|
return this._service.xrpc.call("com.atproto.sync.getCheckout", params2, void 0, opts).catch((e) => {
|
|
127219
|
-
throw
|
|
127430
|
+
throw toKnownErr52(e);
|
|
127220
127431
|
});
|
|
127221
127432
|
}
|
|
127222
127433
|
getHead(params2, opts) {
|
|
127223
127434
|
return this._service.xrpc.call("com.atproto.sync.getHead", params2, void 0, opts).catch((e) => {
|
|
127224
|
-
throw
|
|
127435
|
+
throw toKnownErr53(e);
|
|
127225
127436
|
});
|
|
127226
127437
|
}
|
|
127227
127438
|
getLatestCommit(params2, opts) {
|
|
127228
127439
|
return this._service.xrpc.call("com.atproto.sync.getLatestCommit", params2, void 0, opts).catch((e) => {
|
|
127229
|
-
throw
|
|
127440
|
+
throw toKnownErr54(e);
|
|
127230
127441
|
});
|
|
127231
127442
|
}
|
|
127232
127443
|
getRecord(params2, opts) {
|
|
127233
127444
|
return this._service.xrpc.call("com.atproto.sync.getRecord", params2, void 0, opts).catch((e) => {
|
|
127234
|
-
throw
|
|
127445
|
+
throw toKnownErr55(e);
|
|
127235
127446
|
});
|
|
127236
127447
|
}
|
|
127237
127448
|
getRepo(params2, opts) {
|
|
127238
127449
|
return this._service.xrpc.call("com.atproto.sync.getRepo", params2, void 0, opts).catch((e) => {
|
|
127239
|
-
throw
|
|
127450
|
+
throw toKnownErr56(e);
|
|
127240
127451
|
});
|
|
127241
127452
|
}
|
|
127242
127453
|
listBlobs(params2, opts) {
|
|
127243
127454
|
return this._service.xrpc.call("com.atproto.sync.listBlobs", params2, void 0, opts).catch((e) => {
|
|
127244
|
-
throw
|
|
127455
|
+
throw toKnownErr57(e);
|
|
127245
127456
|
});
|
|
127246
127457
|
}
|
|
127247
127458
|
listRepos(params2, opts) {
|
|
127248
127459
|
return this._service.xrpc.call("com.atproto.sync.listRepos", params2, void 0, opts).catch((e) => {
|
|
127249
|
-
throw
|
|
127460
|
+
throw toKnownErr58(e);
|
|
127250
127461
|
});
|
|
127251
127462
|
}
|
|
127252
127463
|
notifyOfUpdate(data, opts) {
|
|
127253
127464
|
return this._service.xrpc.call("com.atproto.sync.notifyOfUpdate", opts?.qp, data, opts).catch((e) => {
|
|
127254
|
-
throw
|
|
127465
|
+
throw toKnownErr59(e);
|
|
127255
127466
|
});
|
|
127256
127467
|
}
|
|
127257
127468
|
requestCrawl(data, opts) {
|
|
127258
127469
|
return this._service.xrpc.call("com.atproto.sync.requestCrawl", opts?.qp, data, opts).catch((e) => {
|
|
127259
|
-
throw
|
|
127470
|
+
throw toKnownErr60(e);
|
|
127260
127471
|
});
|
|
127261
127472
|
}
|
|
127262
127473
|
};
|
|
@@ -127285,37 +127496,37 @@ var ActorNS = class {
|
|
|
127285
127496
|
}
|
|
127286
127497
|
getPreferences(params2, opts) {
|
|
127287
127498
|
return this._service.xrpc.call("app.bsky.actor.getPreferences", params2, void 0, opts).catch((e) => {
|
|
127288
|
-
throw
|
|
127499
|
+
throw toKnownErr61(e);
|
|
127289
127500
|
});
|
|
127290
127501
|
}
|
|
127291
127502
|
getProfile(params2, opts) {
|
|
127292
127503
|
return this._service.xrpc.call("app.bsky.actor.getProfile", params2, void 0, opts).catch((e) => {
|
|
127293
|
-
throw
|
|
127504
|
+
throw toKnownErr62(e);
|
|
127294
127505
|
});
|
|
127295
127506
|
}
|
|
127296
127507
|
getProfiles(params2, opts) {
|
|
127297
127508
|
return this._service.xrpc.call("app.bsky.actor.getProfiles", params2, void 0, opts).catch((e) => {
|
|
127298
|
-
throw
|
|
127509
|
+
throw toKnownErr63(e);
|
|
127299
127510
|
});
|
|
127300
127511
|
}
|
|
127301
127512
|
getSuggestions(params2, opts) {
|
|
127302
127513
|
return this._service.xrpc.call("app.bsky.actor.getSuggestions", params2, void 0, opts).catch((e) => {
|
|
127303
|
-
throw
|
|
127514
|
+
throw toKnownErr64(e);
|
|
127304
127515
|
});
|
|
127305
127516
|
}
|
|
127306
127517
|
putPreferences(data, opts) {
|
|
127307
127518
|
return this._service.xrpc.call("app.bsky.actor.putPreferences", opts?.qp, data, opts).catch((e) => {
|
|
127308
|
-
throw
|
|
127519
|
+
throw toKnownErr65(e);
|
|
127309
127520
|
});
|
|
127310
127521
|
}
|
|
127311
127522
|
searchActors(params2, opts) {
|
|
127312
127523
|
return this._service.xrpc.call("app.bsky.actor.searchActors", params2, void 0, opts).catch((e) => {
|
|
127313
|
-
throw
|
|
127524
|
+
throw toKnownErr66(e);
|
|
127314
127525
|
});
|
|
127315
127526
|
}
|
|
127316
127527
|
searchActorsTypeahead(params2, opts) {
|
|
127317
127528
|
return this._service.xrpc.call("app.bsky.actor.searchActorsTypeahead", params2, void 0, opts).catch((e) => {
|
|
127318
|
-
throw
|
|
127529
|
+
throw toKnownErr67(e);
|
|
127319
127530
|
});
|
|
127320
127531
|
}
|
|
127321
127532
|
};
|
|
@@ -127362,82 +127573,82 @@ var FeedNS = class {
|
|
|
127362
127573
|
}
|
|
127363
127574
|
describeFeedGenerator(params2, opts) {
|
|
127364
127575
|
return this._service.xrpc.call("app.bsky.feed.describeFeedGenerator", params2, void 0, opts).catch((e) => {
|
|
127365
|
-
throw
|
|
127576
|
+
throw toKnownErr68(e);
|
|
127366
127577
|
});
|
|
127367
127578
|
}
|
|
127368
127579
|
getActorFeeds(params2, opts) {
|
|
127369
127580
|
return this._service.xrpc.call("app.bsky.feed.getActorFeeds", params2, void 0, opts).catch((e) => {
|
|
127370
|
-
throw
|
|
127581
|
+
throw toKnownErr69(e);
|
|
127371
127582
|
});
|
|
127372
127583
|
}
|
|
127373
127584
|
getActorLikes(params2, opts) {
|
|
127374
127585
|
return this._service.xrpc.call("app.bsky.feed.getActorLikes", params2, void 0, opts).catch((e) => {
|
|
127375
|
-
throw
|
|
127586
|
+
throw toKnownErr70(e);
|
|
127376
127587
|
});
|
|
127377
127588
|
}
|
|
127378
127589
|
getAuthorFeed(params2, opts) {
|
|
127379
127590
|
return this._service.xrpc.call("app.bsky.feed.getAuthorFeed", params2, void 0, opts).catch((e) => {
|
|
127380
|
-
throw
|
|
127591
|
+
throw toKnownErr71(e);
|
|
127381
127592
|
});
|
|
127382
127593
|
}
|
|
127383
127594
|
getFeed(params2, opts) {
|
|
127384
127595
|
return this._service.xrpc.call("app.bsky.feed.getFeed", params2, void 0, opts).catch((e) => {
|
|
127385
|
-
throw
|
|
127596
|
+
throw toKnownErr72(e);
|
|
127386
127597
|
});
|
|
127387
127598
|
}
|
|
127388
127599
|
getFeedGenerator(params2, opts) {
|
|
127389
127600
|
return this._service.xrpc.call("app.bsky.feed.getFeedGenerator", params2, void 0, opts).catch((e) => {
|
|
127390
|
-
throw
|
|
127601
|
+
throw toKnownErr73(e);
|
|
127391
127602
|
});
|
|
127392
127603
|
}
|
|
127393
127604
|
getFeedGenerators(params2, opts) {
|
|
127394
127605
|
return this._service.xrpc.call("app.bsky.feed.getFeedGenerators", params2, void 0, opts).catch((e) => {
|
|
127395
|
-
throw
|
|
127606
|
+
throw toKnownErr74(e);
|
|
127396
127607
|
});
|
|
127397
127608
|
}
|
|
127398
127609
|
getFeedSkeleton(params2, opts) {
|
|
127399
127610
|
return this._service.xrpc.call("app.bsky.feed.getFeedSkeleton", params2, void 0, opts).catch((e) => {
|
|
127400
|
-
throw
|
|
127611
|
+
throw toKnownErr75(e);
|
|
127401
127612
|
});
|
|
127402
127613
|
}
|
|
127403
127614
|
getLikes(params2, opts) {
|
|
127404
127615
|
return this._service.xrpc.call("app.bsky.feed.getLikes", params2, void 0, opts).catch((e) => {
|
|
127405
|
-
throw
|
|
127616
|
+
throw toKnownErr76(e);
|
|
127406
127617
|
});
|
|
127407
127618
|
}
|
|
127408
127619
|
getListFeed(params2, opts) {
|
|
127409
127620
|
return this._service.xrpc.call("app.bsky.feed.getListFeed", params2, void 0, opts).catch((e) => {
|
|
127410
|
-
throw
|
|
127621
|
+
throw toKnownErr77(e);
|
|
127411
127622
|
});
|
|
127412
127623
|
}
|
|
127413
127624
|
getPostThread(params2, opts) {
|
|
127414
127625
|
return this._service.xrpc.call("app.bsky.feed.getPostThread", params2, void 0, opts).catch((e) => {
|
|
127415
|
-
throw
|
|
127626
|
+
throw toKnownErr78(e);
|
|
127416
127627
|
});
|
|
127417
127628
|
}
|
|
127418
127629
|
getPosts(params2, opts) {
|
|
127419
127630
|
return this._service.xrpc.call("app.bsky.feed.getPosts", params2, void 0, opts).catch((e) => {
|
|
127420
|
-
throw
|
|
127631
|
+
throw toKnownErr79(e);
|
|
127421
127632
|
});
|
|
127422
127633
|
}
|
|
127423
127634
|
getRepostedBy(params2, opts) {
|
|
127424
127635
|
return this._service.xrpc.call("app.bsky.feed.getRepostedBy", params2, void 0, opts).catch((e) => {
|
|
127425
|
-
throw
|
|
127636
|
+
throw toKnownErr80(e);
|
|
127426
127637
|
});
|
|
127427
127638
|
}
|
|
127428
127639
|
getSuggestedFeeds(params2, opts) {
|
|
127429
127640
|
return this._service.xrpc.call("app.bsky.feed.getSuggestedFeeds", params2, void 0, opts).catch((e) => {
|
|
127430
|
-
throw
|
|
127641
|
+
throw toKnownErr81(e);
|
|
127431
127642
|
});
|
|
127432
127643
|
}
|
|
127433
127644
|
getTimeline(params2, opts) {
|
|
127434
127645
|
return this._service.xrpc.call("app.bsky.feed.getTimeline", params2, void 0, opts).catch((e) => {
|
|
127435
|
-
throw
|
|
127646
|
+
throw toKnownErr82(e);
|
|
127436
127647
|
});
|
|
127437
127648
|
}
|
|
127438
127649
|
searchPosts(params2, opts) {
|
|
127439
127650
|
return this._service.xrpc.call("app.bsky.feed.searchPosts", params2, void 0, opts).catch((e) => {
|
|
127440
|
-
throw
|
|
127651
|
+
throw toKnownErr83(e);
|
|
127441
127652
|
});
|
|
127442
127653
|
}
|
|
127443
127654
|
};
|
|
@@ -127587,67 +127798,67 @@ var GraphNS = class {
|
|
|
127587
127798
|
}
|
|
127588
127799
|
getBlocks(params2, opts) {
|
|
127589
127800
|
return this._service.xrpc.call("app.bsky.graph.getBlocks", params2, void 0, opts).catch((e) => {
|
|
127590
|
-
throw
|
|
127801
|
+
throw toKnownErr84(e);
|
|
127591
127802
|
});
|
|
127592
127803
|
}
|
|
127593
127804
|
getFollowers(params2, opts) {
|
|
127594
127805
|
return this._service.xrpc.call("app.bsky.graph.getFollowers", params2, void 0, opts).catch((e) => {
|
|
127595
|
-
throw
|
|
127806
|
+
throw toKnownErr85(e);
|
|
127596
127807
|
});
|
|
127597
127808
|
}
|
|
127598
127809
|
getFollows(params2, opts) {
|
|
127599
127810
|
return this._service.xrpc.call("app.bsky.graph.getFollows", params2, void 0, opts).catch((e) => {
|
|
127600
|
-
throw
|
|
127811
|
+
throw toKnownErr86(e);
|
|
127601
127812
|
});
|
|
127602
127813
|
}
|
|
127603
127814
|
getList(params2, opts) {
|
|
127604
127815
|
return this._service.xrpc.call("app.bsky.graph.getList", params2, void 0, opts).catch((e) => {
|
|
127605
|
-
throw
|
|
127816
|
+
throw toKnownErr87(e);
|
|
127606
127817
|
});
|
|
127607
127818
|
}
|
|
127608
127819
|
getListBlocks(params2, opts) {
|
|
127609
127820
|
return this._service.xrpc.call("app.bsky.graph.getListBlocks", params2, void 0, opts).catch((e) => {
|
|
127610
|
-
throw
|
|
127821
|
+
throw toKnownErr88(e);
|
|
127611
127822
|
});
|
|
127612
127823
|
}
|
|
127613
127824
|
getListMutes(params2, opts) {
|
|
127614
127825
|
return this._service.xrpc.call("app.bsky.graph.getListMutes", params2, void 0, opts).catch((e) => {
|
|
127615
|
-
throw
|
|
127826
|
+
throw toKnownErr89(e);
|
|
127616
127827
|
});
|
|
127617
127828
|
}
|
|
127618
127829
|
getLists(params2, opts) {
|
|
127619
127830
|
return this._service.xrpc.call("app.bsky.graph.getLists", params2, void 0, opts).catch((e) => {
|
|
127620
|
-
throw
|
|
127831
|
+
throw toKnownErr90(e);
|
|
127621
127832
|
});
|
|
127622
127833
|
}
|
|
127623
127834
|
getMutes(params2, opts) {
|
|
127624
127835
|
return this._service.xrpc.call("app.bsky.graph.getMutes", params2, void 0, opts).catch((e) => {
|
|
127625
|
-
throw
|
|
127836
|
+
throw toKnownErr91(e);
|
|
127626
127837
|
});
|
|
127627
127838
|
}
|
|
127628
127839
|
getSuggestedFollowsByActor(params2, opts) {
|
|
127629
127840
|
return this._service.xrpc.call("app.bsky.graph.getSuggestedFollowsByActor", params2, void 0, opts).catch((e) => {
|
|
127630
|
-
throw
|
|
127841
|
+
throw toKnownErr92(e);
|
|
127631
127842
|
});
|
|
127632
127843
|
}
|
|
127633
127844
|
muteActor(data, opts) {
|
|
127634
127845
|
return this._service.xrpc.call("app.bsky.graph.muteActor", opts?.qp, data, opts).catch((e) => {
|
|
127635
|
-
throw
|
|
127846
|
+
throw toKnownErr93(e);
|
|
127636
127847
|
});
|
|
127637
127848
|
}
|
|
127638
127849
|
muteActorList(data, opts) {
|
|
127639
127850
|
return this._service.xrpc.call("app.bsky.graph.muteActorList", opts?.qp, data, opts).catch((e) => {
|
|
127640
|
-
throw
|
|
127851
|
+
throw toKnownErr94(e);
|
|
127641
127852
|
});
|
|
127642
127853
|
}
|
|
127643
127854
|
unmuteActor(data, opts) {
|
|
127644
127855
|
return this._service.xrpc.call("app.bsky.graph.unmuteActor", opts?.qp, data, opts).catch((e) => {
|
|
127645
|
-
throw
|
|
127856
|
+
throw toKnownErr95(e);
|
|
127646
127857
|
});
|
|
127647
127858
|
}
|
|
127648
127859
|
unmuteActorList(data, opts) {
|
|
127649
127860
|
return this._service.xrpc.call("app.bsky.graph.unmuteActorList", opts?.qp, data, opts).catch((e) => {
|
|
127650
|
-
throw
|
|
127861
|
+
throw toKnownErr96(e);
|
|
127651
127862
|
});
|
|
127652
127863
|
}
|
|
127653
127864
|
};
|
|
@@ -127792,22 +128003,22 @@ var NotificationNS = class {
|
|
|
127792
128003
|
}
|
|
127793
128004
|
getUnreadCount(params2, opts) {
|
|
127794
128005
|
return this._service.xrpc.call("app.bsky.notification.getUnreadCount", params2, void 0, opts).catch((e) => {
|
|
127795
|
-
throw
|
|
128006
|
+
throw toKnownErr97(e);
|
|
127796
128007
|
});
|
|
127797
128008
|
}
|
|
127798
128009
|
listNotifications(params2, opts) {
|
|
127799
128010
|
return this._service.xrpc.call("app.bsky.notification.listNotifications", params2, void 0, opts).catch((e) => {
|
|
127800
|
-
throw
|
|
128011
|
+
throw toKnownErr98(e);
|
|
127801
128012
|
});
|
|
127802
128013
|
}
|
|
127803
128014
|
registerPush(data, opts) {
|
|
127804
128015
|
return this._service.xrpc.call("app.bsky.notification.registerPush", opts?.qp, data, opts).catch((e) => {
|
|
127805
|
-
throw
|
|
128016
|
+
throw toKnownErr99(e);
|
|
127806
128017
|
});
|
|
127807
128018
|
}
|
|
127808
128019
|
updateSeen(data, opts) {
|
|
127809
128020
|
return this._service.xrpc.call("app.bsky.notification.updateSeen", opts?.qp, data, opts).catch((e) => {
|
|
127810
|
-
throw
|
|
128021
|
+
throw toKnownErr100(e);
|
|
127811
128022
|
});
|
|
127812
128023
|
}
|
|
127813
128024
|
};
|
|
@@ -127822,27 +128033,27 @@ var UnspeccedNS = class {
|
|
|
127822
128033
|
}
|
|
127823
128034
|
getPopular(params2, opts) {
|
|
127824
128035
|
return this._service.xrpc.call("app.bsky.unspecced.getPopular", params2, void 0, opts).catch((e) => {
|
|
127825
|
-
throw
|
|
128036
|
+
throw toKnownErr101(e);
|
|
127826
128037
|
});
|
|
127827
128038
|
}
|
|
127828
128039
|
getPopularFeedGenerators(params2, opts) {
|
|
127829
128040
|
return this._service.xrpc.call("app.bsky.unspecced.getPopularFeedGenerators", params2, void 0, opts).catch((e) => {
|
|
127830
|
-
throw
|
|
128041
|
+
throw toKnownErr102(e);
|
|
127831
128042
|
});
|
|
127832
128043
|
}
|
|
127833
128044
|
getTimelineSkeleton(params2, opts) {
|
|
127834
128045
|
return this._service.xrpc.call("app.bsky.unspecced.getTimelineSkeleton", params2, void 0, opts).catch((e) => {
|
|
127835
|
-
throw
|
|
128046
|
+
throw toKnownErr103(e);
|
|
127836
128047
|
});
|
|
127837
128048
|
}
|
|
127838
128049
|
searchActorsSkeleton(params2, opts) {
|
|
127839
128050
|
return this._service.xrpc.call("app.bsky.unspecced.searchActorsSkeleton", params2, void 0, opts).catch((e) => {
|
|
127840
|
-
throw
|
|
128051
|
+
throw toKnownErr104(e);
|
|
127841
128052
|
});
|
|
127842
128053
|
}
|
|
127843
128054
|
searchPostsSkeleton(params2, opts) {
|
|
127844
128055
|
return this._service.xrpc.call("app.bsky.unspecced.searchPostsSkeleton", params2, void 0, opts).catch((e) => {
|
|
127845
|
-
throw
|
|
128056
|
+
throw toKnownErr105(e);
|
|
127846
128057
|
});
|
|
127847
128058
|
}
|
|
127848
128059
|
};
|
|
@@ -127886,7 +128097,8 @@ var _AtpAgent = class {
|
|
|
127886
128097
|
refreshJwt: res.data.refreshJwt,
|
|
127887
128098
|
handle: res.data.handle,
|
|
127888
128099
|
did: res.data.did,
|
|
127889
|
-
email: opts.email
|
|
128100
|
+
email: opts.email,
|
|
128101
|
+
emailConfirmed: false
|
|
127890
128102
|
};
|
|
127891
128103
|
return res;
|
|
127892
128104
|
} catch (e) {
|
|
@@ -127911,7 +128123,8 @@ var _AtpAgent = class {
|
|
|
127911
128123
|
refreshJwt: res.data.refreshJwt,
|
|
127912
128124
|
handle: res.data.handle,
|
|
127913
128125
|
did: res.data.did,
|
|
127914
|
-
email: res.data.email
|
|
128126
|
+
email: res.data.email,
|
|
128127
|
+
emailConfirmed: res.data.emailConfirmed
|
|
127915
128128
|
};
|
|
127916
128129
|
return res;
|
|
127917
128130
|
} catch (e) {
|
|
@@ -127934,6 +128147,7 @@ var _AtpAgent = class {
|
|
|
127934
128147
|
}
|
|
127935
128148
|
this.session.email = res.data.email;
|
|
127936
128149
|
this.session.handle = res.data.handle;
|
|
128150
|
+
this.session.emailConfirmed = res.data.emailConfirmed;
|
|
127937
128151
|
return res;
|
|
127938
128152
|
} catch (e) {
|
|
127939
128153
|
this.session = void 0;
|
|
@@ -127995,6 +128209,7 @@ var _AtpAgent = class {
|
|
|
127995
128209
|
this._persistSession?.("expired", void 0);
|
|
127996
128210
|
} else if (isNewSessionObject(this._baseClient, res.body)) {
|
|
127997
128211
|
this.session = {
|
|
128212
|
+
...this.session || {},
|
|
127998
128213
|
accessJwt: res.body.accessJwt,
|
|
127999
128214
|
refreshJwt: res.body.refreshJwt,
|
|
128000
128215
|
handle: res.body.handle,
|
|
@@ -131548,6 +131763,45 @@ var schemaDict2 = {
|
|
|
131548
131763
|
}
|
|
131549
131764
|
}
|
|
131550
131765
|
},
|
|
131766
|
+
ComAtprotoServerConfirmEmail: {
|
|
131767
|
+
lexicon: 1,
|
|
131768
|
+
id: "com.atproto.server.confirmEmail",
|
|
131769
|
+
defs: {
|
|
131770
|
+
main: {
|
|
131771
|
+
type: "procedure",
|
|
131772
|
+
description: "Confirm an email using a token from com.atproto.server.requestEmailConfirmation.",
|
|
131773
|
+
input: {
|
|
131774
|
+
encoding: "application/json",
|
|
131775
|
+
schema: {
|
|
131776
|
+
type: "object",
|
|
131777
|
+
required: ["email", "token"],
|
|
131778
|
+
properties: {
|
|
131779
|
+
email: {
|
|
131780
|
+
type: "string"
|
|
131781
|
+
},
|
|
131782
|
+
token: {
|
|
131783
|
+
type: "string"
|
|
131784
|
+
}
|
|
131785
|
+
}
|
|
131786
|
+
}
|
|
131787
|
+
},
|
|
131788
|
+
errors: [
|
|
131789
|
+
{
|
|
131790
|
+
name: "AccountNotFound"
|
|
131791
|
+
},
|
|
131792
|
+
{
|
|
131793
|
+
name: "ExpiredToken"
|
|
131794
|
+
},
|
|
131795
|
+
{
|
|
131796
|
+
name: "InvalidToken"
|
|
131797
|
+
},
|
|
131798
|
+
{
|
|
131799
|
+
name: "InvalidEmail"
|
|
131800
|
+
}
|
|
131801
|
+
]
|
|
131802
|
+
}
|
|
131803
|
+
}
|
|
131804
|
+
},
|
|
131551
131805
|
ComAtprotoServerCreateAccount: {
|
|
131552
131806
|
lexicon: 1,
|
|
131553
131807
|
id: "com.atproto.server.createAccount",
|
|
@@ -131830,6 +132084,9 @@ var schemaDict2 = {
|
|
|
131830
132084
|
},
|
|
131831
132085
|
email: {
|
|
131832
132086
|
type: "string"
|
|
132087
|
+
},
|
|
132088
|
+
emailConfirmed: {
|
|
132089
|
+
type: "boolean"
|
|
131833
132090
|
}
|
|
131834
132091
|
}
|
|
131835
132092
|
}
|
|
@@ -132059,6 +132316,9 @@ var schemaDict2 = {
|
|
|
132059
132316
|
},
|
|
132060
132317
|
email: {
|
|
132061
132318
|
type: "string"
|
|
132319
|
+
},
|
|
132320
|
+
emailConfirmed: {
|
|
132321
|
+
type: "boolean"
|
|
132062
132322
|
}
|
|
132063
132323
|
}
|
|
132064
132324
|
}
|
|
@@ -132158,6 +132418,38 @@ var schemaDict2 = {
|
|
|
132158
132418
|
}
|
|
132159
132419
|
}
|
|
132160
132420
|
},
|
|
132421
|
+
ComAtprotoServerRequestEmailConfirmation: {
|
|
132422
|
+
lexicon: 1,
|
|
132423
|
+
id: "com.atproto.server.requestEmailConfirmation",
|
|
132424
|
+
defs: {
|
|
132425
|
+
main: {
|
|
132426
|
+
type: "procedure",
|
|
132427
|
+
description: "Request an email with a code to confirm ownership of email"
|
|
132428
|
+
}
|
|
132429
|
+
}
|
|
132430
|
+
},
|
|
132431
|
+
ComAtprotoServerRequestEmailUpdate: {
|
|
132432
|
+
lexicon: 1,
|
|
132433
|
+
id: "com.atproto.server.requestEmailUpdate",
|
|
132434
|
+
defs: {
|
|
132435
|
+
main: {
|
|
132436
|
+
type: "procedure",
|
|
132437
|
+
description: "Request a token in order to update email.",
|
|
132438
|
+
output: {
|
|
132439
|
+
encoding: "application/json",
|
|
132440
|
+
schema: {
|
|
132441
|
+
type: "object",
|
|
132442
|
+
required: ["tokenRequired"],
|
|
132443
|
+
properties: {
|
|
132444
|
+
tokenRequired: {
|
|
132445
|
+
type: "boolean"
|
|
132446
|
+
}
|
|
132447
|
+
}
|
|
132448
|
+
}
|
|
132449
|
+
}
|
|
132450
|
+
}
|
|
132451
|
+
}
|
|
132452
|
+
},
|
|
132161
132453
|
ComAtprotoServerRequestPasswordReset: {
|
|
132162
132454
|
lexicon: 1,
|
|
132163
132455
|
id: "com.atproto.server.requestPasswordReset",
|
|
@@ -132235,6 +132527,43 @@ var schemaDict2 = {
|
|
|
132235
132527
|
}
|
|
132236
132528
|
}
|
|
132237
132529
|
},
|
|
132530
|
+
ComAtprotoServerUpdateEmail: {
|
|
132531
|
+
lexicon: 1,
|
|
132532
|
+
id: "com.atproto.server.updateEmail",
|
|
132533
|
+
defs: {
|
|
132534
|
+
main: {
|
|
132535
|
+
type: "procedure",
|
|
132536
|
+
description: "Update an account's email.",
|
|
132537
|
+
input: {
|
|
132538
|
+
encoding: "application/json",
|
|
132539
|
+
schema: {
|
|
132540
|
+
type: "object",
|
|
132541
|
+
required: ["email"],
|
|
132542
|
+
properties: {
|
|
132543
|
+
email: {
|
|
132544
|
+
type: "string"
|
|
132545
|
+
},
|
|
132546
|
+
token: {
|
|
132547
|
+
type: "string",
|
|
132548
|
+
description: "Requires a token from com.atproto.sever.requestEmailUpdate if the account's email has been confirmed."
|
|
132549
|
+
}
|
|
132550
|
+
}
|
|
132551
|
+
}
|
|
132552
|
+
},
|
|
132553
|
+
errors: [
|
|
132554
|
+
{
|
|
132555
|
+
name: "ExpiredToken"
|
|
132556
|
+
},
|
|
132557
|
+
{
|
|
132558
|
+
name: "InvalidToken"
|
|
132559
|
+
},
|
|
132560
|
+
{
|
|
132561
|
+
name: "TokenRequired"
|
|
132562
|
+
}
|
|
132563
|
+
]
|
|
132564
|
+
}
|
|
132565
|
+
}
|
|
132566
|
+
},
|
|
132238
132567
|
ComAtprotoSyncGetBlob: {
|
|
132239
132568
|
lexicon: 1,
|
|
132240
132569
|
id: "com.atproto.sync.getBlob",
|
|
@@ -136506,6 +136835,7 @@ var ids = {
|
|
|
136506
136835
|
ComAtprotoRepoPutRecord: "com.atproto.repo.putRecord",
|
|
136507
136836
|
ComAtprotoRepoStrongRef: "com.atproto.repo.strongRef",
|
|
136508
136837
|
ComAtprotoRepoUploadBlob: "com.atproto.repo.uploadBlob",
|
|
136838
|
+
ComAtprotoServerConfirmEmail: "com.atproto.server.confirmEmail",
|
|
136509
136839
|
ComAtprotoServerCreateAccount: "com.atproto.server.createAccount",
|
|
136510
136840
|
ComAtprotoServerCreateAppPassword: "com.atproto.server.createAppPassword",
|
|
136511
136841
|
ComAtprotoServerCreateInviteCode: "com.atproto.server.createInviteCode",
|
|
@@ -136520,9 +136850,12 @@ var ids = {
|
|
|
136520
136850
|
ComAtprotoServerListAppPasswords: "com.atproto.server.listAppPasswords",
|
|
136521
136851
|
ComAtprotoServerRefreshSession: "com.atproto.server.refreshSession",
|
|
136522
136852
|
ComAtprotoServerRequestAccountDelete: "com.atproto.server.requestAccountDelete",
|
|
136853
|
+
ComAtprotoServerRequestEmailConfirmation: "com.atproto.server.requestEmailConfirmation",
|
|
136854
|
+
ComAtprotoServerRequestEmailUpdate: "com.atproto.server.requestEmailUpdate",
|
|
136523
136855
|
ComAtprotoServerRequestPasswordReset: "com.atproto.server.requestPasswordReset",
|
|
136524
136856
|
ComAtprotoServerResetPassword: "com.atproto.server.resetPassword",
|
|
136525
136857
|
ComAtprotoServerRevokeAppPassword: "com.atproto.server.revokeAppPassword",
|
|
136858
|
+
ComAtprotoServerUpdateEmail: "com.atproto.server.updateEmail",
|
|
136526
136859
|
ComAtprotoSyncGetBlob: "com.atproto.sync.getBlob",
|
|
136527
136860
|
ComAtprotoSyncGetBlocks: "com.atproto.sync.getBlocks",
|
|
136528
136861
|
ComAtprotoSyncGetCheckout: "com.atproto.sync.getCheckout",
|
|
@@ -137733,7 +138066,7 @@ function getSuggestedFollowsByActor_default(server, ctx) {
|
|
|
137733
138066
|
}
|
|
137734
138067
|
async function getSkeleton(params2, ctx) {
|
|
137735
138068
|
const actorsViewerFollows = ctx.db.db.selectFrom("follow").where("creator", "=", params2.viewer).select("subjectDid");
|
|
137736
|
-
const mostLikedAccounts = await ctx.db.db.selectFrom(ctx.db.db.selectFrom("like").where("creator", "=", params2.actor).select(sql`split_part(subject, '/', 3)`.as("subjectDid")).limit(1e3).as("likes")).select("likes.subjectDid as did").select((qb) => qb.fn.count("likes.subjectDid").as("count")).where("likes.subjectDid", "not in", actorsViewerFollows).where("likes.subjectDid", "not in", [params2.actor, params2.viewer]).groupBy("likes.subjectDid").orderBy("count", "desc").limit(RESULT_LENGTH).execute();
|
|
138069
|
+
const mostLikedAccounts = await ctx.db.db.selectFrom(ctx.db.db.selectFrom("like").where("creator", "=", params2.actor).select(sql`split_part(subject, '/', 3)`.as("subjectDid")).orderBy("sortAt", "desc").limit(1e3).as("likes")).select("likes.subjectDid as did").select((qb) => qb.fn.count("likes.subjectDid").as("count")).where("likes.subjectDid", "not in", actorsViewerFollows).where("likes.subjectDid", "not in", [params2.actor, params2.viewer]).groupBy("likes.subjectDid").orderBy("count", "desc").limit(RESULT_LENGTH).execute();
|
|
137737
138070
|
const resultDids = mostLikedAccounts.map((a) => ({ did: a.did }));
|
|
137738
138071
|
if (resultDids.length < RESULT_LENGTH) {
|
|
137739
138072
|
const mostPopularAccountsActorFollows = await ctx.db.db.selectFrom("follow").innerJoin("profile_agg", "follow.subjectDid", "profile_agg.did").select("follow.subjectDid as did").where("follow.creator", "=", params2.actor).where("follow.subjectDid", "!=", params2.viewer).where("follow.subjectDid", "not in", actorsViewerFollows).if(resultDids.length > 0, (qb) => qb.where("subjectDid", "not in", resultDids.map((a) => a.did))).orderBy("profile_agg.followersCount", "desc").limit(RESULT_LENGTH).execute();
|
|
@@ -137749,17 +138082,17 @@ async function getSkeleton(params2, ctx) {
|
|
|
137749
138082
|
// src/services/util/search.ts
|
|
137750
138083
|
var getUserSearchQuery = (db, opts) => {
|
|
137751
138084
|
const { ref } = db.db.dynamic;
|
|
137752
|
-
const {
|
|
137753
|
-
const distanceAccount = distance(
|
|
137754
|
-
let accountsQb = getMatchingAccountsQb(db, {
|
|
138085
|
+
const { query, limit, cursor, includeSoftDeleted } = opts;
|
|
138086
|
+
const distanceAccount = distance(query, ref("handle"));
|
|
138087
|
+
let accountsQb = getMatchingAccountsQb(db, { query, includeSoftDeleted });
|
|
137755
138088
|
accountsQb = paginate(accountsQb, {
|
|
137756
138089
|
limit,
|
|
137757
138090
|
cursor,
|
|
137758
138091
|
direction: "asc",
|
|
137759
138092
|
keyset: new SearchKeyset(distanceAccount, ref("actor.did"))
|
|
137760
138093
|
});
|
|
137761
|
-
const distanceProfile = distance(
|
|
137762
|
-
let profilesQb = getMatchingProfilesQb(db, {
|
|
138094
|
+
const distanceProfile = distance(query, ref("displayName"));
|
|
138095
|
+
let profilesQb = getMatchingProfilesQb(db, { query, includeSoftDeleted });
|
|
137763
138096
|
profilesQb = paginate(profilesQb, {
|
|
137764
138097
|
limit,
|
|
137765
138098
|
cursor,
|
|
@@ -137775,9 +138108,9 @@ var getUserSearchQuery = (db, opts) => {
|
|
|
137775
138108
|
};
|
|
137776
138109
|
var getUserSearchQuerySimple = (db, opts) => {
|
|
137777
138110
|
const { ref } = db.db.dynamic;
|
|
137778
|
-
const {
|
|
137779
|
-
const accountsQb = getMatchingAccountsQb(db, {
|
|
137780
|
-
const profilesQb = getMatchingProfilesQb(db, {
|
|
138111
|
+
const { query, limit } = opts;
|
|
138112
|
+
const accountsQb = getMatchingAccountsQb(db, { query }).orderBy("distance", "asc").limit(limit);
|
|
138113
|
+
const profilesQb = getMatchingProfilesQb(db, { query }).orderBy("distance", "asc").limit(limit);
|
|
137781
138114
|
return paginate(combineAccountsAndProfilesQb(db, accountsQb, profilesQb), {
|
|
137782
138115
|
limit,
|
|
137783
138116
|
direction: "asc",
|
|
@@ -137786,24 +138119,24 @@ var getUserSearchQuerySimple = (db, opts) => {
|
|
|
137786
138119
|
};
|
|
137787
138120
|
var getMatchingAccountsQb = (db, opts) => {
|
|
137788
138121
|
const { ref } = db.db.dynamic;
|
|
137789
|
-
const {
|
|
137790
|
-
const distanceAccount = distance(
|
|
137791
|
-
return db.db.selectFrom("actor").if(!includeSoftDeleted, (qb) => qb.where(notSoftDeletedClause(ref("actor")))).where("actor.handle", "is not", null).where(similar(
|
|
138122
|
+
const { query, includeSoftDeleted } = opts;
|
|
138123
|
+
const distanceAccount = distance(query, ref("handle"));
|
|
138124
|
+
return db.db.selectFrom("actor").if(!includeSoftDeleted, (qb) => qb.where(notSoftDeletedClause(ref("actor")))).where("actor.handle", "is not", null).where(similar(query, ref("handle"))).select(["actor.did as did", distanceAccount.as("distance")]);
|
|
137792
138125
|
};
|
|
137793
138126
|
var getMatchingProfilesQb = (db, opts) => {
|
|
137794
138127
|
const { ref } = db.db.dynamic;
|
|
137795
|
-
const {
|
|
137796
|
-
const distanceProfile = distance(
|
|
137797
|
-
return db.db.selectFrom("profile").innerJoin("actor", "actor.did", "profile.creator").if(!includeSoftDeleted, (qb) => qb.where(notSoftDeletedClause(ref("actor")))).where("actor.handle", "is not", null).where(similar(
|
|
138128
|
+
const { query, includeSoftDeleted } = opts;
|
|
138129
|
+
const distanceProfile = distance(query, ref("displayName"));
|
|
138130
|
+
return db.db.selectFrom("profile").innerJoin("actor", "actor.did", "profile.creator").if(!includeSoftDeleted, (qb) => qb.where(notSoftDeletedClause(ref("actor")))).where("actor.handle", "is not", null).where(similar(query, ref("displayName"))).select(["profile.creator as did", distanceProfile.as("distance")]);
|
|
137798
138131
|
};
|
|
137799
138132
|
var combineAccountsAndProfilesQb = (db, accountsQb, profilesQb) => {
|
|
137800
138133
|
const emptyQb = db.db.selectFrom("actor").where(sql`1 = 0`).select([sql.literal("").as("did"), sql`0`.as("distance")]);
|
|
137801
138134
|
const resultsQb = db.db.selectFrom(emptyQb.unionAll(sql`${accountsQb}`).unionAll(sql`${profilesQb}`).as("accounts_and_profiles")).selectAll().distinctOn("did").orderBy("did").orderBy("distance");
|
|
137802
138135
|
return db.db.selectFrom(resultsQb.as("results")).innerJoin("actor", "actor.did", "results.did");
|
|
137803
138136
|
};
|
|
137804
|
-
var
|
|
137805
|
-
var distance = (
|
|
137806
|
-
var similar = (
|
|
138137
|
+
var cleanQuery = (query) => query.trim().replace(/^@/g, "");
|
|
138138
|
+
var distance = (query, ref) => sql`(${query} <<-> ${ref})`;
|
|
138139
|
+
var similar = (query, ref) => sql`(${query} <% ${ref})`;
|
|
137807
138140
|
var SearchKeyset = class extends GenericKeyset {
|
|
137808
138141
|
labelResult(result) {
|
|
137809
138142
|
return {
|
|
@@ -137834,21 +138167,41 @@ function searchActors_default(server, ctx) {
|
|
|
137834
138167
|
server.app.bsky.actor.searchActors({
|
|
137835
138168
|
auth: ctx.authOptionalVerifier,
|
|
137836
138169
|
handler: async ({ auth, params: params2 }) => {
|
|
137837
|
-
|
|
138170
|
+
const { cursor, limit } = params2;
|
|
137838
138171
|
const requester = auth.credentials.did;
|
|
137839
|
-
|
|
137840
|
-
|
|
137841
|
-
}
|
|
137842
|
-
const term = cleanTerm(rawTerm || "");
|
|
138172
|
+
const rawQuery = params2.q ?? params2.term;
|
|
138173
|
+
const query = cleanQuery(rawQuery || "");
|
|
137843
138174
|
const db = ctx.db.getReplica("search");
|
|
137844
|
-
|
|
137845
|
-
|
|
137846
|
-
|
|
137847
|
-
|
|
138175
|
+
let results;
|
|
138176
|
+
let resCursor;
|
|
138177
|
+
if (ctx.searchAgent) {
|
|
138178
|
+
const res = await ctx.searchAgent.api.app.bsky.unspecced.searchActorsSkeleton({
|
|
138179
|
+
q: query,
|
|
138180
|
+
cursor,
|
|
138181
|
+
limit
|
|
138182
|
+
});
|
|
138183
|
+
results = res.data.actors.map((a) => a.did);
|
|
138184
|
+
resCursor = res.data.cursor;
|
|
138185
|
+
} else {
|
|
138186
|
+
const res = query ? await getUserSearchQuery(db, { query, limit, cursor }).select("distance").selectAll("actor").execute() : [];
|
|
138187
|
+
results = res.map((a) => a.did);
|
|
138188
|
+
const keyset = new SearchKeyset(sql``, sql``);
|
|
138189
|
+
resCursor = keyset.packFromResult(res);
|
|
138190
|
+
}
|
|
138191
|
+
const actors = await ctx.services.actor(db).views.profiles(results, requester);
|
|
138192
|
+
const SKIP = [];
|
|
138193
|
+
const filtered = results.flatMap((did2) => {
|
|
138194
|
+
const actor = actors[did2];
|
|
138195
|
+
if (!actor)
|
|
138196
|
+
return SKIP;
|
|
138197
|
+
if (actor.viewer?.blocking || actor.viewer?.blockedBy)
|
|
138198
|
+
return SKIP;
|
|
138199
|
+
return actor;
|
|
138200
|
+
});
|
|
137848
138201
|
return {
|
|
137849
138202
|
encoding: "application/json",
|
|
137850
138203
|
body: {
|
|
137851
|
-
cursor:
|
|
138204
|
+
cursor: resCursor,
|
|
137852
138205
|
actors: filtered
|
|
137853
138206
|
}
|
|
137854
138207
|
};
|
|
@@ -137861,18 +138214,29 @@ function searchActorsTypeahead_default(server, ctx) {
|
|
|
137861
138214
|
server.app.bsky.actor.searchActorsTypeahead({
|
|
137862
138215
|
auth: ctx.authOptionalVerifier,
|
|
137863
138216
|
handler: async ({ params: params2, auth }) => {
|
|
137864
|
-
|
|
138217
|
+
const { limit } = params2;
|
|
137865
138218
|
const requester = auth.credentials.did;
|
|
137866
|
-
|
|
137867
|
-
|
|
137868
|
-
}
|
|
137869
|
-
const term = cleanTerm(rawTerm || "");
|
|
138219
|
+
const rawQuery = params2.q ?? params2.term;
|
|
138220
|
+
const query = cleanQuery(rawQuery || "");
|
|
137870
138221
|
const db = ctx.db.getReplica("search");
|
|
137871
|
-
|
|
138222
|
+
let results;
|
|
138223
|
+
if (ctx.searchAgent) {
|
|
138224
|
+
const res = await ctx.searchAgent.api.app.bsky.unspecced.searchActorsSkeleton({
|
|
138225
|
+
q: query,
|
|
138226
|
+
typeahead: true,
|
|
138227
|
+
limit
|
|
138228
|
+
});
|
|
138229
|
+
results = res.data.actors.map((a) => a.did);
|
|
138230
|
+
} else {
|
|
138231
|
+
const res = query ? await getUserSearchQuerySimple(db, { query, limit }).selectAll("actor").execute() : [];
|
|
138232
|
+
results = res.map((a) => a.did);
|
|
138233
|
+
}
|
|
137872
138234
|
const actors = await ctx.services.actor(db).views.profilesBasic(results, requester, { omitLabels: true });
|
|
137873
138235
|
const SKIP = [];
|
|
137874
|
-
const filtered = results.flatMap((
|
|
137875
|
-
const actor = actors[
|
|
138236
|
+
const filtered = results.flatMap((did2) => {
|
|
138237
|
+
const actor = actors[did2];
|
|
138238
|
+
if (!actor)
|
|
138239
|
+
return SKIP;
|
|
137876
138240
|
if (actor.viewer?.blocking || actor.viewer?.blockedBy)
|
|
137877
138241
|
return SKIP;
|
|
137878
138242
|
return actor;
|
|
@@ -138542,19 +138906,16 @@ function searchRepos_default(server, ctx) {
|
|
|
138542
138906
|
handler: async ({ params: params2 }) => {
|
|
138543
138907
|
const db = ctx.db.getPrimary();
|
|
138544
138908
|
const moderationService = ctx.services.moderation(db);
|
|
138545
|
-
const { invitedBy } = params2;
|
|
138909
|
+
const { invitedBy, limit, cursor } = params2;
|
|
138546
138910
|
if (invitedBy) {
|
|
138547
138911
|
throw new InvalidRequestError("The invitedBy parameter is unsupported");
|
|
138548
138912
|
}
|
|
138549
|
-
const
|
|
138550
|
-
|
|
138551
|
-
params2.term = q;
|
|
138552
|
-
}
|
|
138553
|
-
const { results, cursor } = await ctx.services.actor(db).getSearchResults({ ...params2, includeSoftDeleted: true });
|
|
138913
|
+
const query = params2.q ?? params2.term;
|
|
138914
|
+
const { results, cursor: resCursor } = await ctx.services.actor(db).getSearchResults({ query, limit, cursor, includeSoftDeleted: true });
|
|
138554
138915
|
return {
|
|
138555
138916
|
encoding: "application/json",
|
|
138556
138917
|
body: {
|
|
138557
|
-
cursor,
|
|
138918
|
+
cursor: resCursor,
|
|
138558
138919
|
repos: await moderationService.views.repo(results)
|
|
138559
138920
|
}
|
|
138560
138921
|
};
|
|
@@ -139207,6 +139568,10 @@ var ServerNS2 = class {
|
|
|
139207
139568
|
constructor(server) {
|
|
139208
139569
|
this._server = server;
|
|
139209
139570
|
}
|
|
139571
|
+
confirmEmail(cfg) {
|
|
139572
|
+
const nsid2 = "com.atproto.server.confirmEmail";
|
|
139573
|
+
return this._server.xrpc.method(nsid2, cfg);
|
|
139574
|
+
}
|
|
139210
139575
|
createAccount(cfg) {
|
|
139211
139576
|
const nsid2 = "com.atproto.server.createAccount";
|
|
139212
139577
|
return this._server.xrpc.method(nsid2, cfg);
|
|
@@ -139259,6 +139624,14 @@ var ServerNS2 = class {
|
|
|
139259
139624
|
const nsid2 = "com.atproto.server.requestAccountDelete";
|
|
139260
139625
|
return this._server.xrpc.method(nsid2, cfg);
|
|
139261
139626
|
}
|
|
139627
|
+
requestEmailConfirmation(cfg) {
|
|
139628
|
+
const nsid2 = "com.atproto.server.requestEmailConfirmation";
|
|
139629
|
+
return this._server.xrpc.method(nsid2, cfg);
|
|
139630
|
+
}
|
|
139631
|
+
requestEmailUpdate(cfg) {
|
|
139632
|
+
const nsid2 = "com.atproto.server.requestEmailUpdate";
|
|
139633
|
+
return this._server.xrpc.method(nsid2, cfg);
|
|
139634
|
+
}
|
|
139262
139635
|
requestPasswordReset(cfg) {
|
|
139263
139636
|
const nsid2 = "com.atproto.server.requestPasswordReset";
|
|
139264
139637
|
return this._server.xrpc.method(nsid2, cfg);
|
|
@@ -139271,6 +139644,10 @@ var ServerNS2 = class {
|
|
|
139271
139644
|
const nsid2 = "com.atproto.server.revokeAppPassword";
|
|
139272
139645
|
return this._server.xrpc.method(nsid2, cfg);
|
|
139273
139646
|
}
|
|
139647
|
+
updateEmail(cfg) {
|
|
139648
|
+
const nsid2 = "com.atproto.server.updateEmail";
|
|
139649
|
+
return this._server.xrpc.method(nsid2, cfg);
|
|
139650
|
+
}
|
|
139274
139651
|
};
|
|
139275
139652
|
var SyncNS2 = class {
|
|
139276
139653
|
constructor(server) {
|
|
@@ -142125,10 +142502,10 @@ var ActorService = class {
|
|
|
142125
142502
|
async getSearchResults({
|
|
142126
142503
|
cursor,
|
|
142127
142504
|
limit = 25,
|
|
142128
|
-
|
|
142505
|
+
query = "",
|
|
142129
142506
|
includeSoftDeleted
|
|
142130
142507
|
}) {
|
|
142131
|
-
const searchField =
|
|
142508
|
+
const searchField = query.startsWith("did:") ? "did" : "handle";
|
|
142132
142509
|
let paginatedBuilder;
|
|
142133
142510
|
const { ref } = this.db.db.dynamic;
|
|
142134
142511
|
const paginationOptions = {
|
|
@@ -142137,18 +142514,18 @@ var ActorService = class {
|
|
|
142137
142514
|
direction: "asc"
|
|
142138
142515
|
};
|
|
142139
142516
|
let keyset;
|
|
142140
|
-
if (
|
|
142517
|
+
if (query && searchField === "handle") {
|
|
142141
142518
|
keyset = new SearchKeyset(sql``, sql``);
|
|
142142
142519
|
paginatedBuilder = getUserSearchQuery(this.db, {
|
|
142143
|
-
|
|
142520
|
+
query,
|
|
142144
142521
|
includeSoftDeleted,
|
|
142145
142522
|
...paginationOptions
|
|
142146
142523
|
}).select("distance");
|
|
142147
142524
|
} else {
|
|
142148
142525
|
paginatedBuilder = this.db.db.selectFrom("actor").select([sql`0`.as("distance")]);
|
|
142149
142526
|
keyset = new ListKeyset(ref("indexedAt"), ref("did"));
|
|
142150
|
-
if (
|
|
142151
|
-
paginatedBuilder = paginatedBuilder.where("actor.did", "=",
|
|
142527
|
+
if (query && searchField === "did") {
|
|
142528
|
+
paginatedBuilder = paginatedBuilder.where("actor.did", "=", query);
|
|
142152
142529
|
}
|
|
142153
142530
|
paginatedBuilder = paginate(paginatedBuilder, {
|
|
142154
142531
|
keyset,
|
|
@@ -143550,6 +143927,9 @@ var AppContext = class {
|
|
|
143550
143927
|
get notifServer() {
|
|
143551
143928
|
return this.opts.notifServer;
|
|
143552
143929
|
}
|
|
143930
|
+
get searchAgent() {
|
|
143931
|
+
return this.opts.searchAgent;
|
|
143932
|
+
}
|
|
143553
143933
|
get authVerifier() {
|
|
143554
143934
|
return authVerifier(this.idResolver, { aud: this.cfg.serverDid });
|
|
143555
143935
|
}
|
|
@@ -143988,6 +144368,7 @@ var ServerConfig = class {
|
|
|
143988
144368
|
const handleResolveNameservers = process.env.HANDLE_RESOLVE_NAMESERVERS ? process.env.HANDLE_RESOLVE_NAMESERVERS.split(",") : [];
|
|
143989
144369
|
const imgUriEndpoint = process.env.IMG_URI_ENDPOINT;
|
|
143990
144370
|
const blobCacheLocation = process.env.BLOB_CACHE_LOC;
|
|
144371
|
+
const searchEndpoint = process.env.SEARCH_ENDPOINT;
|
|
143991
144372
|
const dbPrimaryPostgresUrl = overrides?.dbPrimaryPostgresUrl || process.env.DB_PRIMARY_POSTGRES_URL;
|
|
143992
144373
|
let dbReplicaPostgresUrls = overrides?.dbReplicaPostgresUrls;
|
|
143993
144374
|
if (!dbReplicaPostgresUrls && process.env.DB_REPLICA_POSTGRES_URLS) {
|
|
@@ -144025,6 +144406,7 @@ var ServerConfig = class {
|
|
|
144025
144406
|
handleResolveNameservers,
|
|
144026
144407
|
imgUriEndpoint,
|
|
144027
144408
|
blobCacheLocation,
|
|
144409
|
+
searchEndpoint,
|
|
144028
144410
|
labelerDid,
|
|
144029
144411
|
adminPassword,
|
|
144030
144412
|
moderatorPassword,
|
|
@@ -144089,6 +144471,9 @@ var ServerConfig = class {
|
|
|
144089
144471
|
get blobCacheLocation() {
|
|
144090
144472
|
return this.cfg.blobCacheLocation;
|
|
144091
144473
|
}
|
|
144474
|
+
get searchEndpoint() {
|
|
144475
|
+
return this.cfg.searchEndpoint;
|
|
144476
|
+
}
|
|
144092
144477
|
get labelerDid() {
|
|
144093
144478
|
return this.cfg.labelerDid;
|
|
144094
144479
|
}
|
|
@@ -148156,6 +148541,7 @@ var BskyAppView = class {
|
|
|
148156
148541
|
const backgroundQueue = new BackgroundQueue(db.getPrimary());
|
|
148157
148542
|
const labelCache = new LabelCache(db.getPrimary());
|
|
148158
148543
|
const notifServer = new NotificationServer(db.getPrimary());
|
|
148544
|
+
const searchAgent = config2.searchEndpoint ? new AtpAgent({ service: config2.searchEndpoint }) : void 0;
|
|
148159
148545
|
const services = createServices({
|
|
148160
148546
|
imgUriBuilder,
|
|
148161
148547
|
imgInvalidator,
|
|
@@ -148170,6 +148556,7 @@ var BskyAppView = class {
|
|
|
148170
148556
|
didCache,
|
|
148171
148557
|
labelCache,
|
|
148172
148558
|
backgroundQueue,
|
|
148559
|
+
searchAgent,
|
|
148173
148560
|
algos,
|
|
148174
148561
|
notifServer
|
|
148175
148562
|
});
|