@atproto/api 0.6.19 → 0.6.20
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 +12 -0
- package/dist/client/index.d.ts +12 -0
- package/dist/client/lexicons.d.ts +99 -0
- package/dist/client/types/com/atproto/server/confirmEmail.d.ts +30 -0
- package/dist/client/types/com/atproto/server/createSession.d.ts +1 -0
- package/dist/client/types/com/atproto/server/getSession.d.ts +1 -0
- package/dist/client/types/com/atproto/server/requestEmailConfirmation.d.ts +13 -0
- package/dist/client/types/com/atproto/server/requestEmailUpdate.d.ts +18 -0
- package/dist/client/types/com/atproto/server/updateEmail.d.ts +27 -0
- package/dist/index.js +472 -230
- package/dist/index.js.map +3 -3
- package/dist/types.d.ts +1 -0
- package/package.json +7 -7
- package/src/agent.ts +4 -0
- package/src/client/index.ts +52 -0
- package/src/client/lexicons.ts +122 -0
- package/src/client/types/com/atproto/server/confirmEmail.ts +61 -0
- package/src/client/types/com/atproto/server/createSession.ts +1 -0
- package/src/client/types/com/atproto/server/getSession.ts +1 -0
- package/src/client/types/com/atproto/server/requestEmailConfirmation.ts +28 -0
- package/src/client/types/com/atproto/server/requestEmailUpdate.ts +34 -0
- package/src/client/types/com/atproto/server/updateEmail.ts +55 -0
- package/src/types.ts +1 -0
- package/tests/agent.test.ts +9 -0
package/dist/index.js
CHANGED
|
@@ -8983,6 +8983,7 @@ __export(src_exports2, {
|
|
|
8983
8983
|
ComAtprotoRepoPutRecord: () => putRecord_exports,
|
|
8984
8984
|
ComAtprotoRepoStrongRef: () => strongRef_exports,
|
|
8985
8985
|
ComAtprotoRepoUploadBlob: () => uploadBlob_exports,
|
|
8986
|
+
ComAtprotoServerConfirmEmail: () => confirmEmail_exports,
|
|
8986
8987
|
ComAtprotoServerCreateAccount: () => createAccount_exports,
|
|
8987
8988
|
ComAtprotoServerCreateAppPassword: () => createAppPassword_exports,
|
|
8988
8989
|
ComAtprotoServerCreateInviteCode: () => createInviteCode_exports,
|
|
@@ -8997,9 +8998,12 @@ __export(src_exports2, {
|
|
|
8997
8998
|
ComAtprotoServerListAppPasswords: () => listAppPasswords_exports,
|
|
8998
8999
|
ComAtprotoServerRefreshSession: () => refreshSession_exports,
|
|
8999
9000
|
ComAtprotoServerRequestAccountDelete: () => requestAccountDelete_exports,
|
|
9001
|
+
ComAtprotoServerRequestEmailConfirmation: () => requestEmailConfirmation_exports,
|
|
9002
|
+
ComAtprotoServerRequestEmailUpdate: () => requestEmailUpdate_exports,
|
|
9000
9003
|
ComAtprotoServerRequestPasswordReset: () => requestPasswordReset_exports,
|
|
9001
9004
|
ComAtprotoServerResetPassword: () => resetPassword_exports,
|
|
9002
9005
|
ComAtprotoServerRevokeAppPassword: () => revokeAppPassword_exports,
|
|
9006
|
+
ComAtprotoServerUpdateEmail: () => updateEmail_exports,
|
|
9003
9007
|
ComAtprotoSyncGetBlob: () => getBlob_exports,
|
|
9004
9008
|
ComAtprotoSyncGetBlocks: () => getBlocks_exports,
|
|
9005
9009
|
ComAtprotoSyncGetCheckout: () => getCheckout_exports,
|
|
@@ -17815,6 +17819,45 @@ var schemaDict = {
|
|
|
17815
17819
|
}
|
|
17816
17820
|
}
|
|
17817
17821
|
},
|
|
17822
|
+
ComAtprotoServerConfirmEmail: {
|
|
17823
|
+
lexicon: 1,
|
|
17824
|
+
id: "com.atproto.server.confirmEmail",
|
|
17825
|
+
defs: {
|
|
17826
|
+
main: {
|
|
17827
|
+
type: "procedure",
|
|
17828
|
+
description: "Confirm an email using a token from com.atproto.server.requestEmailConfirmation.",
|
|
17829
|
+
input: {
|
|
17830
|
+
encoding: "application/json",
|
|
17831
|
+
schema: {
|
|
17832
|
+
type: "object",
|
|
17833
|
+
required: ["email", "token"],
|
|
17834
|
+
properties: {
|
|
17835
|
+
email: {
|
|
17836
|
+
type: "string"
|
|
17837
|
+
},
|
|
17838
|
+
token: {
|
|
17839
|
+
type: "string"
|
|
17840
|
+
}
|
|
17841
|
+
}
|
|
17842
|
+
}
|
|
17843
|
+
},
|
|
17844
|
+
errors: [
|
|
17845
|
+
{
|
|
17846
|
+
name: "AccountNotFound"
|
|
17847
|
+
},
|
|
17848
|
+
{
|
|
17849
|
+
name: "ExpiredToken"
|
|
17850
|
+
},
|
|
17851
|
+
{
|
|
17852
|
+
name: "InvalidToken"
|
|
17853
|
+
},
|
|
17854
|
+
{
|
|
17855
|
+
name: "InvalidEmail"
|
|
17856
|
+
}
|
|
17857
|
+
]
|
|
17858
|
+
}
|
|
17859
|
+
}
|
|
17860
|
+
},
|
|
17818
17861
|
ComAtprotoServerCreateAccount: {
|
|
17819
17862
|
lexicon: 1,
|
|
17820
17863
|
id: "com.atproto.server.createAccount",
|
|
@@ -18097,6 +18140,9 @@ var schemaDict = {
|
|
|
18097
18140
|
},
|
|
18098
18141
|
email: {
|
|
18099
18142
|
type: "string"
|
|
18143
|
+
},
|
|
18144
|
+
emailConfirmed: {
|
|
18145
|
+
type: "boolean"
|
|
18100
18146
|
}
|
|
18101
18147
|
}
|
|
18102
18148
|
}
|
|
@@ -18326,6 +18372,9 @@ var schemaDict = {
|
|
|
18326
18372
|
},
|
|
18327
18373
|
email: {
|
|
18328
18374
|
type: "string"
|
|
18375
|
+
},
|
|
18376
|
+
emailConfirmed: {
|
|
18377
|
+
type: "boolean"
|
|
18329
18378
|
}
|
|
18330
18379
|
}
|
|
18331
18380
|
}
|
|
@@ -18425,6 +18474,38 @@ var schemaDict = {
|
|
|
18425
18474
|
}
|
|
18426
18475
|
}
|
|
18427
18476
|
},
|
|
18477
|
+
ComAtprotoServerRequestEmailConfirmation: {
|
|
18478
|
+
lexicon: 1,
|
|
18479
|
+
id: "com.atproto.server.requestEmailConfirmation",
|
|
18480
|
+
defs: {
|
|
18481
|
+
main: {
|
|
18482
|
+
type: "procedure",
|
|
18483
|
+
description: "Request an email with a code to confirm ownership of email"
|
|
18484
|
+
}
|
|
18485
|
+
}
|
|
18486
|
+
},
|
|
18487
|
+
ComAtprotoServerRequestEmailUpdate: {
|
|
18488
|
+
lexicon: 1,
|
|
18489
|
+
id: "com.atproto.server.requestEmailUpdate",
|
|
18490
|
+
defs: {
|
|
18491
|
+
main: {
|
|
18492
|
+
type: "procedure",
|
|
18493
|
+
description: "Request a token in order to update email.",
|
|
18494
|
+
output: {
|
|
18495
|
+
encoding: "application/json",
|
|
18496
|
+
schema: {
|
|
18497
|
+
type: "object",
|
|
18498
|
+
required: ["tokenRequired"],
|
|
18499
|
+
properties: {
|
|
18500
|
+
tokenRequired: {
|
|
18501
|
+
type: "boolean"
|
|
18502
|
+
}
|
|
18503
|
+
}
|
|
18504
|
+
}
|
|
18505
|
+
}
|
|
18506
|
+
}
|
|
18507
|
+
}
|
|
18508
|
+
},
|
|
18428
18509
|
ComAtprotoServerRequestPasswordReset: {
|
|
18429
18510
|
lexicon: 1,
|
|
18430
18511
|
id: "com.atproto.server.requestPasswordReset",
|
|
@@ -18502,6 +18583,43 @@ var schemaDict = {
|
|
|
18502
18583
|
}
|
|
18503
18584
|
}
|
|
18504
18585
|
},
|
|
18586
|
+
ComAtprotoServerUpdateEmail: {
|
|
18587
|
+
lexicon: 1,
|
|
18588
|
+
id: "com.atproto.server.updateEmail",
|
|
18589
|
+
defs: {
|
|
18590
|
+
main: {
|
|
18591
|
+
type: "procedure",
|
|
18592
|
+
description: "Update an account's email.",
|
|
18593
|
+
input: {
|
|
18594
|
+
encoding: "application/json",
|
|
18595
|
+
schema: {
|
|
18596
|
+
type: "object",
|
|
18597
|
+
required: ["email"],
|
|
18598
|
+
properties: {
|
|
18599
|
+
email: {
|
|
18600
|
+
type: "string"
|
|
18601
|
+
},
|
|
18602
|
+
token: {
|
|
18603
|
+
type: "string",
|
|
18604
|
+
description: "Requires a token from com.atproto.sever.requestEmailUpdate if the account's email has been confirmed."
|
|
18605
|
+
}
|
|
18606
|
+
}
|
|
18607
|
+
}
|
|
18608
|
+
},
|
|
18609
|
+
errors: [
|
|
18610
|
+
{
|
|
18611
|
+
name: "ExpiredToken"
|
|
18612
|
+
},
|
|
18613
|
+
{
|
|
18614
|
+
name: "InvalidToken"
|
|
18615
|
+
},
|
|
18616
|
+
{
|
|
18617
|
+
name: "TokenRequired"
|
|
18618
|
+
}
|
|
18619
|
+
]
|
|
18620
|
+
}
|
|
18621
|
+
}
|
|
18622
|
+
},
|
|
18505
18623
|
ComAtprotoSyncGetBlob: {
|
|
18506
18624
|
lexicon: 1,
|
|
18507
18625
|
id: "com.atproto.sync.getBlob",
|
|
@@ -23156,6 +23274,49 @@ function toKnownErr29(e) {
|
|
|
23156
23274
|
return e;
|
|
23157
23275
|
}
|
|
23158
23276
|
|
|
23277
|
+
// src/client/types/com/atproto/server/confirmEmail.ts
|
|
23278
|
+
var confirmEmail_exports = {};
|
|
23279
|
+
__export(confirmEmail_exports, {
|
|
23280
|
+
AccountNotFoundError: () => AccountNotFoundError,
|
|
23281
|
+
ExpiredTokenError: () => ExpiredTokenError,
|
|
23282
|
+
InvalidEmailError: () => InvalidEmailError,
|
|
23283
|
+
InvalidTokenError: () => InvalidTokenError,
|
|
23284
|
+
toKnownErr: () => toKnownErr30
|
|
23285
|
+
});
|
|
23286
|
+
var AccountNotFoundError = class extends XRPCError {
|
|
23287
|
+
constructor(src2) {
|
|
23288
|
+
super(src2.status, src2.error, src2.message, src2.headers);
|
|
23289
|
+
}
|
|
23290
|
+
};
|
|
23291
|
+
var ExpiredTokenError = class extends XRPCError {
|
|
23292
|
+
constructor(src2) {
|
|
23293
|
+
super(src2.status, src2.error, src2.message, src2.headers);
|
|
23294
|
+
}
|
|
23295
|
+
};
|
|
23296
|
+
var InvalidTokenError = class extends XRPCError {
|
|
23297
|
+
constructor(src2) {
|
|
23298
|
+
super(src2.status, src2.error, src2.message, src2.headers);
|
|
23299
|
+
}
|
|
23300
|
+
};
|
|
23301
|
+
var InvalidEmailError = class extends XRPCError {
|
|
23302
|
+
constructor(src2) {
|
|
23303
|
+
super(src2.status, src2.error, src2.message, src2.headers);
|
|
23304
|
+
}
|
|
23305
|
+
};
|
|
23306
|
+
function toKnownErr30(e) {
|
|
23307
|
+
if (e instanceof XRPCError) {
|
|
23308
|
+
if (e.error === "AccountNotFound")
|
|
23309
|
+
return new AccountNotFoundError(e);
|
|
23310
|
+
if (e.error === "ExpiredToken")
|
|
23311
|
+
return new ExpiredTokenError(e);
|
|
23312
|
+
if (e.error === "InvalidToken")
|
|
23313
|
+
return new InvalidTokenError(e);
|
|
23314
|
+
if (e.error === "InvalidEmail")
|
|
23315
|
+
return new InvalidEmailError(e);
|
|
23316
|
+
}
|
|
23317
|
+
return e;
|
|
23318
|
+
}
|
|
23319
|
+
|
|
23159
23320
|
// src/client/types/com/atproto/server/createAccount.ts
|
|
23160
23321
|
var createAccount_exports = {};
|
|
23161
23322
|
__export(createAccount_exports, {
|
|
@@ -23166,7 +23327,7 @@ __export(createAccount_exports, {
|
|
|
23166
23327
|
InvalidPasswordError: () => InvalidPasswordError,
|
|
23167
23328
|
UnresolvableDidError: () => UnresolvableDidError,
|
|
23168
23329
|
UnsupportedDomainError: () => UnsupportedDomainError,
|
|
23169
|
-
toKnownErr: () =>
|
|
23330
|
+
toKnownErr: () => toKnownErr31
|
|
23170
23331
|
});
|
|
23171
23332
|
var InvalidHandleError2 = class extends XRPCError {
|
|
23172
23333
|
constructor(src2) {
|
|
@@ -23203,7 +23364,7 @@ var IncompatibleDidDocError = class extends XRPCError {
|
|
|
23203
23364
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
23204
23365
|
}
|
|
23205
23366
|
};
|
|
23206
|
-
function
|
|
23367
|
+
function toKnownErr31(e) {
|
|
23207
23368
|
if (e instanceof XRPCError) {
|
|
23208
23369
|
if (e.error === "InvalidHandle")
|
|
23209
23370
|
return new InvalidHandleError2(e);
|
|
@@ -23228,7 +23389,7 @@ var createAppPassword_exports = {};
|
|
|
23228
23389
|
__export(createAppPassword_exports, {
|
|
23229
23390
|
AccountTakedownError: () => AccountTakedownError,
|
|
23230
23391
|
isAppPassword: () => isAppPassword,
|
|
23231
|
-
toKnownErr: () =>
|
|
23392
|
+
toKnownErr: () => toKnownErr32,
|
|
23232
23393
|
validateAppPassword: () => validateAppPassword
|
|
23233
23394
|
});
|
|
23234
23395
|
var AccountTakedownError = class extends XRPCError {
|
|
@@ -23236,7 +23397,7 @@ var AccountTakedownError = class extends XRPCError {
|
|
|
23236
23397
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
23237
23398
|
}
|
|
23238
23399
|
};
|
|
23239
|
-
function
|
|
23400
|
+
function toKnownErr32(e) {
|
|
23240
23401
|
if (e instanceof XRPCError) {
|
|
23241
23402
|
if (e.error === "AccountTakedown")
|
|
23242
23403
|
return new AccountTakedownError(e);
|
|
@@ -23253,9 +23414,9 @@ function validateAppPassword(v) {
|
|
|
23253
23414
|
// src/client/types/com/atproto/server/createInviteCode.ts
|
|
23254
23415
|
var createInviteCode_exports = {};
|
|
23255
23416
|
__export(createInviteCode_exports, {
|
|
23256
|
-
toKnownErr: () =>
|
|
23417
|
+
toKnownErr: () => toKnownErr33
|
|
23257
23418
|
});
|
|
23258
|
-
function
|
|
23419
|
+
function toKnownErr33(e) {
|
|
23259
23420
|
if (e instanceof XRPCError) {
|
|
23260
23421
|
}
|
|
23261
23422
|
return e;
|
|
@@ -23265,10 +23426,10 @@ function toKnownErr32(e) {
|
|
|
23265
23426
|
var createInviteCodes_exports = {};
|
|
23266
23427
|
__export(createInviteCodes_exports, {
|
|
23267
23428
|
isAccountCodes: () => isAccountCodes,
|
|
23268
|
-
toKnownErr: () =>
|
|
23429
|
+
toKnownErr: () => toKnownErr34,
|
|
23269
23430
|
validateAccountCodes: () => validateAccountCodes
|
|
23270
23431
|
});
|
|
23271
|
-
function
|
|
23432
|
+
function toKnownErr34(e) {
|
|
23272
23433
|
if (e instanceof XRPCError) {
|
|
23273
23434
|
}
|
|
23274
23435
|
return e;
|
|
@@ -23284,14 +23445,14 @@ function validateAccountCodes(v) {
|
|
|
23284
23445
|
var createSession_exports = {};
|
|
23285
23446
|
__export(createSession_exports, {
|
|
23286
23447
|
AccountTakedownError: () => AccountTakedownError2,
|
|
23287
|
-
toKnownErr: () =>
|
|
23448
|
+
toKnownErr: () => toKnownErr35
|
|
23288
23449
|
});
|
|
23289
23450
|
var AccountTakedownError2 = class extends XRPCError {
|
|
23290
23451
|
constructor(src2) {
|
|
23291
23452
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
23292
23453
|
}
|
|
23293
23454
|
};
|
|
23294
|
-
function
|
|
23455
|
+
function toKnownErr35(e) {
|
|
23295
23456
|
if (e instanceof XRPCError) {
|
|
23296
23457
|
if (e.error === "AccountTakedown")
|
|
23297
23458
|
return new AccountTakedownError2(e);
|
|
@@ -23302,26 +23463,26 @@ function toKnownErr34(e) {
|
|
|
23302
23463
|
// src/client/types/com/atproto/server/deleteAccount.ts
|
|
23303
23464
|
var deleteAccount_exports = {};
|
|
23304
23465
|
__export(deleteAccount_exports, {
|
|
23305
|
-
ExpiredTokenError: () =>
|
|
23306
|
-
InvalidTokenError: () =>
|
|
23307
|
-
toKnownErr: () =>
|
|
23466
|
+
ExpiredTokenError: () => ExpiredTokenError2,
|
|
23467
|
+
InvalidTokenError: () => InvalidTokenError2,
|
|
23468
|
+
toKnownErr: () => toKnownErr36
|
|
23308
23469
|
});
|
|
23309
|
-
var
|
|
23470
|
+
var ExpiredTokenError2 = class extends XRPCError {
|
|
23310
23471
|
constructor(src2) {
|
|
23311
23472
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
23312
23473
|
}
|
|
23313
23474
|
};
|
|
23314
|
-
var
|
|
23475
|
+
var InvalidTokenError2 = class extends XRPCError {
|
|
23315
23476
|
constructor(src2) {
|
|
23316
23477
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
23317
23478
|
}
|
|
23318
23479
|
};
|
|
23319
|
-
function
|
|
23480
|
+
function toKnownErr36(e) {
|
|
23320
23481
|
if (e instanceof XRPCError) {
|
|
23321
23482
|
if (e.error === "ExpiredToken")
|
|
23322
|
-
return new
|
|
23483
|
+
return new ExpiredTokenError2(e);
|
|
23323
23484
|
if (e.error === "InvalidToken")
|
|
23324
|
-
return new
|
|
23485
|
+
return new InvalidTokenError2(e);
|
|
23325
23486
|
}
|
|
23326
23487
|
return e;
|
|
23327
23488
|
}
|
|
@@ -23329,9 +23490,9 @@ function toKnownErr35(e) {
|
|
|
23329
23490
|
// src/client/types/com/atproto/server/deleteSession.ts
|
|
23330
23491
|
var deleteSession_exports = {};
|
|
23331
23492
|
__export(deleteSession_exports, {
|
|
23332
|
-
toKnownErr: () =>
|
|
23493
|
+
toKnownErr: () => toKnownErr37
|
|
23333
23494
|
});
|
|
23334
|
-
function
|
|
23495
|
+
function toKnownErr37(e) {
|
|
23335
23496
|
if (e instanceof XRPCError) {
|
|
23336
23497
|
}
|
|
23337
23498
|
return e;
|
|
@@ -23341,10 +23502,10 @@ function toKnownErr36(e) {
|
|
|
23341
23502
|
var describeServer_exports = {};
|
|
23342
23503
|
__export(describeServer_exports, {
|
|
23343
23504
|
isLinks: () => isLinks,
|
|
23344
|
-
toKnownErr: () =>
|
|
23505
|
+
toKnownErr: () => toKnownErr38,
|
|
23345
23506
|
validateLinks: () => validateLinks
|
|
23346
23507
|
});
|
|
23347
|
-
function
|
|
23508
|
+
function toKnownErr38(e) {
|
|
23348
23509
|
if (e instanceof XRPCError) {
|
|
23349
23510
|
}
|
|
23350
23511
|
return e;
|
|
@@ -23360,14 +23521,14 @@ function validateLinks(v) {
|
|
|
23360
23521
|
var getAccountInviteCodes_exports = {};
|
|
23361
23522
|
__export(getAccountInviteCodes_exports, {
|
|
23362
23523
|
DuplicateCreateError: () => DuplicateCreateError,
|
|
23363
|
-
toKnownErr: () =>
|
|
23524
|
+
toKnownErr: () => toKnownErr39
|
|
23364
23525
|
});
|
|
23365
23526
|
var DuplicateCreateError = class extends XRPCError {
|
|
23366
23527
|
constructor(src2) {
|
|
23367
23528
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
23368
23529
|
}
|
|
23369
23530
|
};
|
|
23370
|
-
function
|
|
23531
|
+
function toKnownErr39(e) {
|
|
23371
23532
|
if (e instanceof XRPCError) {
|
|
23372
23533
|
if (e.error === "DuplicateCreate")
|
|
23373
23534
|
return new DuplicateCreateError(e);
|
|
@@ -23378,9 +23539,9 @@ function toKnownErr38(e) {
|
|
|
23378
23539
|
// src/client/types/com/atproto/server/getSession.ts
|
|
23379
23540
|
var getSession_exports = {};
|
|
23380
23541
|
__export(getSession_exports, {
|
|
23381
|
-
toKnownErr: () =>
|
|
23542
|
+
toKnownErr: () => toKnownErr40
|
|
23382
23543
|
});
|
|
23383
|
-
function
|
|
23544
|
+
function toKnownErr40(e) {
|
|
23384
23545
|
if (e instanceof XRPCError) {
|
|
23385
23546
|
}
|
|
23386
23547
|
return e;
|
|
@@ -23391,7 +23552,7 @@ var listAppPasswords_exports = {};
|
|
|
23391
23552
|
__export(listAppPasswords_exports, {
|
|
23392
23553
|
AccountTakedownError: () => AccountTakedownError3,
|
|
23393
23554
|
isAppPassword: () => isAppPassword2,
|
|
23394
|
-
toKnownErr: () =>
|
|
23555
|
+
toKnownErr: () => toKnownErr41,
|
|
23395
23556
|
validateAppPassword: () => validateAppPassword2
|
|
23396
23557
|
});
|
|
23397
23558
|
var AccountTakedownError3 = class extends XRPCError {
|
|
@@ -23399,7 +23560,7 @@ var AccountTakedownError3 = class extends XRPCError {
|
|
|
23399
23560
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
23400
23561
|
}
|
|
23401
23562
|
};
|
|
23402
|
-
function
|
|
23563
|
+
function toKnownErr41(e) {
|
|
23403
23564
|
if (e instanceof XRPCError) {
|
|
23404
23565
|
if (e.error === "AccountTakedown")
|
|
23405
23566
|
return new AccountTakedownError3(e);
|
|
@@ -23417,14 +23578,14 @@ function validateAppPassword2(v) {
|
|
|
23417
23578
|
var refreshSession_exports = {};
|
|
23418
23579
|
__export(refreshSession_exports, {
|
|
23419
23580
|
AccountTakedownError: () => AccountTakedownError4,
|
|
23420
|
-
toKnownErr: () =>
|
|
23581
|
+
toKnownErr: () => toKnownErr42
|
|
23421
23582
|
});
|
|
23422
23583
|
var AccountTakedownError4 = class extends XRPCError {
|
|
23423
23584
|
constructor(src2) {
|
|
23424
23585
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
23425
23586
|
}
|
|
23426
23587
|
};
|
|
23427
|
-
function
|
|
23588
|
+
function toKnownErr42(e) {
|
|
23428
23589
|
if (e instanceof XRPCError) {
|
|
23429
23590
|
if (e.error === "AccountTakedown")
|
|
23430
23591
|
return new AccountTakedownError4(e);
|
|
@@ -23435,9 +23596,31 @@ function toKnownErr41(e) {
|
|
|
23435
23596
|
// src/client/types/com/atproto/server/requestAccountDelete.ts
|
|
23436
23597
|
var requestAccountDelete_exports = {};
|
|
23437
23598
|
__export(requestAccountDelete_exports, {
|
|
23438
|
-
toKnownErr: () =>
|
|
23599
|
+
toKnownErr: () => toKnownErr43
|
|
23439
23600
|
});
|
|
23440
|
-
function
|
|
23601
|
+
function toKnownErr43(e) {
|
|
23602
|
+
if (e instanceof XRPCError) {
|
|
23603
|
+
}
|
|
23604
|
+
return e;
|
|
23605
|
+
}
|
|
23606
|
+
|
|
23607
|
+
// src/client/types/com/atproto/server/requestEmailConfirmation.ts
|
|
23608
|
+
var requestEmailConfirmation_exports = {};
|
|
23609
|
+
__export(requestEmailConfirmation_exports, {
|
|
23610
|
+
toKnownErr: () => toKnownErr44
|
|
23611
|
+
});
|
|
23612
|
+
function toKnownErr44(e) {
|
|
23613
|
+
if (e instanceof XRPCError) {
|
|
23614
|
+
}
|
|
23615
|
+
return e;
|
|
23616
|
+
}
|
|
23617
|
+
|
|
23618
|
+
// src/client/types/com/atproto/server/requestEmailUpdate.ts
|
|
23619
|
+
var requestEmailUpdate_exports = {};
|
|
23620
|
+
__export(requestEmailUpdate_exports, {
|
|
23621
|
+
toKnownErr: () => toKnownErr45
|
|
23622
|
+
});
|
|
23623
|
+
function toKnownErr45(e) {
|
|
23441
23624
|
if (e instanceof XRPCError) {
|
|
23442
23625
|
}
|
|
23443
23626
|
return e;
|
|
@@ -23446,9 +23629,9 @@ function toKnownErr42(e) {
|
|
|
23446
23629
|
// src/client/types/com/atproto/server/requestPasswordReset.ts
|
|
23447
23630
|
var requestPasswordReset_exports = {};
|
|
23448
23631
|
__export(requestPasswordReset_exports, {
|
|
23449
|
-
toKnownErr: () =>
|
|
23632
|
+
toKnownErr: () => toKnownErr46
|
|
23450
23633
|
});
|
|
23451
|
-
function
|
|
23634
|
+
function toKnownErr46(e) {
|
|
23452
23635
|
if (e instanceof XRPCError) {
|
|
23453
23636
|
}
|
|
23454
23637
|
return e;
|
|
@@ -23457,26 +23640,26 @@ function toKnownErr43(e) {
|
|
|
23457
23640
|
// src/client/types/com/atproto/server/resetPassword.ts
|
|
23458
23641
|
var resetPassword_exports = {};
|
|
23459
23642
|
__export(resetPassword_exports, {
|
|
23460
|
-
ExpiredTokenError: () =>
|
|
23461
|
-
InvalidTokenError: () =>
|
|
23462
|
-
toKnownErr: () =>
|
|
23643
|
+
ExpiredTokenError: () => ExpiredTokenError3,
|
|
23644
|
+
InvalidTokenError: () => InvalidTokenError3,
|
|
23645
|
+
toKnownErr: () => toKnownErr47
|
|
23463
23646
|
});
|
|
23464
|
-
var
|
|
23647
|
+
var ExpiredTokenError3 = class extends XRPCError {
|
|
23465
23648
|
constructor(src2) {
|
|
23466
23649
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
23467
23650
|
}
|
|
23468
23651
|
};
|
|
23469
|
-
var
|
|
23652
|
+
var InvalidTokenError3 = class extends XRPCError {
|
|
23470
23653
|
constructor(src2) {
|
|
23471
23654
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
23472
23655
|
}
|
|
23473
23656
|
};
|
|
23474
|
-
function
|
|
23657
|
+
function toKnownErr47(e) {
|
|
23475
23658
|
if (e instanceof XRPCError) {
|
|
23476
23659
|
if (e.error === "ExpiredToken")
|
|
23477
|
-
return new
|
|
23660
|
+
return new ExpiredTokenError3(e);
|
|
23478
23661
|
if (e.error === "InvalidToken")
|
|
23479
|
-
return new
|
|
23662
|
+
return new InvalidTokenError3(e);
|
|
23480
23663
|
}
|
|
23481
23664
|
return e;
|
|
23482
23665
|
}
|
|
@@ -23484,10 +23667,45 @@ function toKnownErr44(e) {
|
|
|
23484
23667
|
// src/client/types/com/atproto/server/revokeAppPassword.ts
|
|
23485
23668
|
var revokeAppPassword_exports = {};
|
|
23486
23669
|
__export(revokeAppPassword_exports, {
|
|
23487
|
-
toKnownErr: () =>
|
|
23670
|
+
toKnownErr: () => toKnownErr48
|
|
23488
23671
|
});
|
|
23489
|
-
function
|
|
23672
|
+
function toKnownErr48(e) {
|
|
23673
|
+
if (e instanceof XRPCError) {
|
|
23674
|
+
}
|
|
23675
|
+
return e;
|
|
23676
|
+
}
|
|
23677
|
+
|
|
23678
|
+
// src/client/types/com/atproto/server/updateEmail.ts
|
|
23679
|
+
var updateEmail_exports = {};
|
|
23680
|
+
__export(updateEmail_exports, {
|
|
23681
|
+
ExpiredTokenError: () => ExpiredTokenError4,
|
|
23682
|
+
InvalidTokenError: () => InvalidTokenError4,
|
|
23683
|
+
TokenRequiredError: () => TokenRequiredError,
|
|
23684
|
+
toKnownErr: () => toKnownErr49
|
|
23685
|
+
});
|
|
23686
|
+
var ExpiredTokenError4 = class extends XRPCError {
|
|
23687
|
+
constructor(src2) {
|
|
23688
|
+
super(src2.status, src2.error, src2.message, src2.headers);
|
|
23689
|
+
}
|
|
23690
|
+
};
|
|
23691
|
+
var InvalidTokenError4 = class extends XRPCError {
|
|
23692
|
+
constructor(src2) {
|
|
23693
|
+
super(src2.status, src2.error, src2.message, src2.headers);
|
|
23694
|
+
}
|
|
23695
|
+
};
|
|
23696
|
+
var TokenRequiredError = class extends XRPCError {
|
|
23697
|
+
constructor(src2) {
|
|
23698
|
+
super(src2.status, src2.error, src2.message, src2.headers);
|
|
23699
|
+
}
|
|
23700
|
+
};
|
|
23701
|
+
function toKnownErr49(e) {
|
|
23490
23702
|
if (e instanceof XRPCError) {
|
|
23703
|
+
if (e.error === "ExpiredToken")
|
|
23704
|
+
return new ExpiredTokenError4(e);
|
|
23705
|
+
if (e.error === "InvalidToken")
|
|
23706
|
+
return new InvalidTokenError4(e);
|
|
23707
|
+
if (e.error === "TokenRequired")
|
|
23708
|
+
return new TokenRequiredError(e);
|
|
23491
23709
|
}
|
|
23492
23710
|
return e;
|
|
23493
23711
|
}
|
|
@@ -23495,9 +23713,9 @@ function toKnownErr45(e) {
|
|
|
23495
23713
|
// src/client/types/com/atproto/sync/getBlob.ts
|
|
23496
23714
|
var getBlob_exports = {};
|
|
23497
23715
|
__export(getBlob_exports, {
|
|
23498
|
-
toKnownErr: () =>
|
|
23716
|
+
toKnownErr: () => toKnownErr50
|
|
23499
23717
|
});
|
|
23500
|
-
function
|
|
23718
|
+
function toKnownErr50(e) {
|
|
23501
23719
|
if (e instanceof XRPCError) {
|
|
23502
23720
|
}
|
|
23503
23721
|
return e;
|
|
@@ -23506,9 +23724,9 @@ function toKnownErr46(e) {
|
|
|
23506
23724
|
// src/client/types/com/atproto/sync/getBlocks.ts
|
|
23507
23725
|
var getBlocks_exports = {};
|
|
23508
23726
|
__export(getBlocks_exports, {
|
|
23509
|
-
toKnownErr: () =>
|
|
23727
|
+
toKnownErr: () => toKnownErr51
|
|
23510
23728
|
});
|
|
23511
|
-
function
|
|
23729
|
+
function toKnownErr51(e) {
|
|
23512
23730
|
if (e instanceof XRPCError) {
|
|
23513
23731
|
}
|
|
23514
23732
|
return e;
|
|
@@ -23517,9 +23735,9 @@ function toKnownErr47(e) {
|
|
|
23517
23735
|
// src/client/types/com/atproto/sync/getCheckout.ts
|
|
23518
23736
|
var getCheckout_exports = {};
|
|
23519
23737
|
__export(getCheckout_exports, {
|
|
23520
|
-
toKnownErr: () =>
|
|
23738
|
+
toKnownErr: () => toKnownErr52
|
|
23521
23739
|
});
|
|
23522
|
-
function
|
|
23740
|
+
function toKnownErr52(e) {
|
|
23523
23741
|
if (e instanceof XRPCError) {
|
|
23524
23742
|
}
|
|
23525
23743
|
return e;
|
|
@@ -23529,14 +23747,14 @@ function toKnownErr48(e) {
|
|
|
23529
23747
|
var getHead_exports = {};
|
|
23530
23748
|
__export(getHead_exports, {
|
|
23531
23749
|
HeadNotFoundError: () => HeadNotFoundError,
|
|
23532
|
-
toKnownErr: () =>
|
|
23750
|
+
toKnownErr: () => toKnownErr53
|
|
23533
23751
|
});
|
|
23534
23752
|
var HeadNotFoundError = class extends XRPCError {
|
|
23535
23753
|
constructor(src2) {
|
|
23536
23754
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
23537
23755
|
}
|
|
23538
23756
|
};
|
|
23539
|
-
function
|
|
23757
|
+
function toKnownErr53(e) {
|
|
23540
23758
|
if (e instanceof XRPCError) {
|
|
23541
23759
|
if (e.error === "HeadNotFound")
|
|
23542
23760
|
return new HeadNotFoundError(e);
|
|
@@ -23548,14 +23766,14 @@ function toKnownErr49(e) {
|
|
|
23548
23766
|
var getLatestCommit_exports = {};
|
|
23549
23767
|
__export(getLatestCommit_exports, {
|
|
23550
23768
|
RepoNotFoundError: () => RepoNotFoundError2,
|
|
23551
|
-
toKnownErr: () =>
|
|
23769
|
+
toKnownErr: () => toKnownErr54
|
|
23552
23770
|
});
|
|
23553
23771
|
var RepoNotFoundError2 = class extends XRPCError {
|
|
23554
23772
|
constructor(src2) {
|
|
23555
23773
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
23556
23774
|
}
|
|
23557
23775
|
};
|
|
23558
|
-
function
|
|
23776
|
+
function toKnownErr54(e) {
|
|
23559
23777
|
if (e instanceof XRPCError) {
|
|
23560
23778
|
if (e.error === "RepoNotFound")
|
|
23561
23779
|
return new RepoNotFoundError2(e);
|
|
@@ -23566,9 +23784,9 @@ function toKnownErr50(e) {
|
|
|
23566
23784
|
// src/client/types/com/atproto/sync/getRecord.ts
|
|
23567
23785
|
var getRecord_exports3 = {};
|
|
23568
23786
|
__export(getRecord_exports3, {
|
|
23569
|
-
toKnownErr: () =>
|
|
23787
|
+
toKnownErr: () => toKnownErr55
|
|
23570
23788
|
});
|
|
23571
|
-
function
|
|
23789
|
+
function toKnownErr55(e) {
|
|
23572
23790
|
if (e instanceof XRPCError) {
|
|
23573
23791
|
}
|
|
23574
23792
|
return e;
|
|
@@ -23577,9 +23795,9 @@ function toKnownErr51(e) {
|
|
|
23577
23795
|
// src/client/types/com/atproto/sync/getRepo.ts
|
|
23578
23796
|
var getRepo_exports2 = {};
|
|
23579
23797
|
__export(getRepo_exports2, {
|
|
23580
|
-
toKnownErr: () =>
|
|
23798
|
+
toKnownErr: () => toKnownErr56
|
|
23581
23799
|
});
|
|
23582
|
-
function
|
|
23800
|
+
function toKnownErr56(e) {
|
|
23583
23801
|
if (e instanceof XRPCError) {
|
|
23584
23802
|
}
|
|
23585
23803
|
return e;
|
|
@@ -23588,9 +23806,9 @@ function toKnownErr52(e) {
|
|
|
23588
23806
|
// src/client/types/com/atproto/sync/listBlobs.ts
|
|
23589
23807
|
var listBlobs_exports = {};
|
|
23590
23808
|
__export(listBlobs_exports, {
|
|
23591
|
-
toKnownErr: () =>
|
|
23809
|
+
toKnownErr: () => toKnownErr57
|
|
23592
23810
|
});
|
|
23593
|
-
function
|
|
23811
|
+
function toKnownErr57(e) {
|
|
23594
23812
|
if (e instanceof XRPCError) {
|
|
23595
23813
|
}
|
|
23596
23814
|
return e;
|
|
@@ -23600,10 +23818,10 @@ function toKnownErr53(e) {
|
|
|
23600
23818
|
var listRepos_exports = {};
|
|
23601
23819
|
__export(listRepos_exports, {
|
|
23602
23820
|
isRepo: () => isRepo,
|
|
23603
|
-
toKnownErr: () =>
|
|
23821
|
+
toKnownErr: () => toKnownErr58,
|
|
23604
23822
|
validateRepo: () => validateRepo
|
|
23605
23823
|
});
|
|
23606
|
-
function
|
|
23824
|
+
function toKnownErr58(e) {
|
|
23607
23825
|
if (e instanceof XRPCError) {
|
|
23608
23826
|
}
|
|
23609
23827
|
return e;
|
|
@@ -23618,9 +23836,9 @@ function validateRepo(v) {
|
|
|
23618
23836
|
// src/client/types/com/atproto/sync/notifyOfUpdate.ts
|
|
23619
23837
|
var notifyOfUpdate_exports = {};
|
|
23620
23838
|
__export(notifyOfUpdate_exports, {
|
|
23621
|
-
toKnownErr: () =>
|
|
23839
|
+
toKnownErr: () => toKnownErr59
|
|
23622
23840
|
});
|
|
23623
|
-
function
|
|
23841
|
+
function toKnownErr59(e) {
|
|
23624
23842
|
if (e instanceof XRPCError) {
|
|
23625
23843
|
}
|
|
23626
23844
|
return e;
|
|
@@ -23629,9 +23847,9 @@ function toKnownErr55(e) {
|
|
|
23629
23847
|
// src/client/types/com/atproto/sync/requestCrawl.ts
|
|
23630
23848
|
var requestCrawl_exports = {};
|
|
23631
23849
|
__export(requestCrawl_exports, {
|
|
23632
|
-
toKnownErr: () =>
|
|
23850
|
+
toKnownErr: () => toKnownErr60
|
|
23633
23851
|
});
|
|
23634
|
-
function
|
|
23852
|
+
function toKnownErr60(e) {
|
|
23635
23853
|
if (e instanceof XRPCError) {
|
|
23636
23854
|
}
|
|
23637
23855
|
return e;
|
|
@@ -23640,9 +23858,9 @@ function toKnownErr56(e) {
|
|
|
23640
23858
|
// src/client/types/app/bsky/actor/getPreferences.ts
|
|
23641
23859
|
var getPreferences_exports = {};
|
|
23642
23860
|
__export(getPreferences_exports, {
|
|
23643
|
-
toKnownErr: () =>
|
|
23861
|
+
toKnownErr: () => toKnownErr61
|
|
23644
23862
|
});
|
|
23645
|
-
function
|
|
23863
|
+
function toKnownErr61(e) {
|
|
23646
23864
|
if (e instanceof XRPCError) {
|
|
23647
23865
|
}
|
|
23648
23866
|
return e;
|
|
@@ -23651,9 +23869,9 @@ function toKnownErr57(e) {
|
|
|
23651
23869
|
// src/client/types/app/bsky/actor/getProfile.ts
|
|
23652
23870
|
var getProfile_exports = {};
|
|
23653
23871
|
__export(getProfile_exports, {
|
|
23654
|
-
toKnownErr: () =>
|
|
23872
|
+
toKnownErr: () => toKnownErr62
|
|
23655
23873
|
});
|
|
23656
|
-
function
|
|
23874
|
+
function toKnownErr62(e) {
|
|
23657
23875
|
if (e instanceof XRPCError) {
|
|
23658
23876
|
}
|
|
23659
23877
|
return e;
|
|
@@ -23662,9 +23880,9 @@ function toKnownErr58(e) {
|
|
|
23662
23880
|
// src/client/types/app/bsky/actor/getProfiles.ts
|
|
23663
23881
|
var getProfiles_exports = {};
|
|
23664
23882
|
__export(getProfiles_exports, {
|
|
23665
|
-
toKnownErr: () =>
|
|
23883
|
+
toKnownErr: () => toKnownErr63
|
|
23666
23884
|
});
|
|
23667
|
-
function
|
|
23885
|
+
function toKnownErr63(e) {
|
|
23668
23886
|
if (e instanceof XRPCError) {
|
|
23669
23887
|
}
|
|
23670
23888
|
return e;
|
|
@@ -23673,9 +23891,9 @@ function toKnownErr59(e) {
|
|
|
23673
23891
|
// src/client/types/app/bsky/actor/getSuggestions.ts
|
|
23674
23892
|
var getSuggestions_exports = {};
|
|
23675
23893
|
__export(getSuggestions_exports, {
|
|
23676
|
-
toKnownErr: () =>
|
|
23894
|
+
toKnownErr: () => toKnownErr64
|
|
23677
23895
|
});
|
|
23678
|
-
function
|
|
23896
|
+
function toKnownErr64(e) {
|
|
23679
23897
|
if (e instanceof XRPCError) {
|
|
23680
23898
|
}
|
|
23681
23899
|
return e;
|
|
@@ -23684,9 +23902,9 @@ function toKnownErr60(e) {
|
|
|
23684
23902
|
// src/client/types/app/bsky/actor/putPreferences.ts
|
|
23685
23903
|
var putPreferences_exports = {};
|
|
23686
23904
|
__export(putPreferences_exports, {
|
|
23687
|
-
toKnownErr: () =>
|
|
23905
|
+
toKnownErr: () => toKnownErr65
|
|
23688
23906
|
});
|
|
23689
|
-
function
|
|
23907
|
+
function toKnownErr65(e) {
|
|
23690
23908
|
if (e instanceof XRPCError) {
|
|
23691
23909
|
}
|
|
23692
23910
|
return e;
|
|
@@ -23695,9 +23913,9 @@ function toKnownErr61(e) {
|
|
|
23695
23913
|
// src/client/types/app/bsky/actor/searchActors.ts
|
|
23696
23914
|
var searchActors_exports = {};
|
|
23697
23915
|
__export(searchActors_exports, {
|
|
23698
|
-
toKnownErr: () =>
|
|
23916
|
+
toKnownErr: () => toKnownErr66
|
|
23699
23917
|
});
|
|
23700
|
-
function
|
|
23918
|
+
function toKnownErr66(e) {
|
|
23701
23919
|
if (e instanceof XRPCError) {
|
|
23702
23920
|
}
|
|
23703
23921
|
return e;
|
|
@@ -23706,9 +23924,9 @@ function toKnownErr62(e) {
|
|
|
23706
23924
|
// src/client/types/app/bsky/actor/searchActorsTypeahead.ts
|
|
23707
23925
|
var searchActorsTypeahead_exports = {};
|
|
23708
23926
|
__export(searchActorsTypeahead_exports, {
|
|
23709
|
-
toKnownErr: () =>
|
|
23927
|
+
toKnownErr: () => toKnownErr67
|
|
23710
23928
|
});
|
|
23711
|
-
function
|
|
23929
|
+
function toKnownErr67(e) {
|
|
23712
23930
|
if (e instanceof XRPCError) {
|
|
23713
23931
|
}
|
|
23714
23932
|
return e;
|
|
@@ -23719,11 +23937,11 @@ var describeFeedGenerator_exports = {};
|
|
|
23719
23937
|
__export(describeFeedGenerator_exports, {
|
|
23720
23938
|
isFeed: () => isFeed,
|
|
23721
23939
|
isLinks: () => isLinks2,
|
|
23722
|
-
toKnownErr: () =>
|
|
23940
|
+
toKnownErr: () => toKnownErr68,
|
|
23723
23941
|
validateFeed: () => validateFeed,
|
|
23724
23942
|
validateLinks: () => validateLinks2
|
|
23725
23943
|
});
|
|
23726
|
-
function
|
|
23944
|
+
function toKnownErr68(e) {
|
|
23727
23945
|
if (e instanceof XRPCError) {
|
|
23728
23946
|
}
|
|
23729
23947
|
return e;
|
|
@@ -23744,9 +23962,9 @@ function validateLinks2(v) {
|
|
|
23744
23962
|
// src/client/types/app/bsky/feed/getActorFeeds.ts
|
|
23745
23963
|
var getActorFeeds_exports = {};
|
|
23746
23964
|
__export(getActorFeeds_exports, {
|
|
23747
|
-
toKnownErr: () =>
|
|
23965
|
+
toKnownErr: () => toKnownErr69
|
|
23748
23966
|
});
|
|
23749
|
-
function
|
|
23967
|
+
function toKnownErr69(e) {
|
|
23750
23968
|
if (e instanceof XRPCError) {
|
|
23751
23969
|
}
|
|
23752
23970
|
return e;
|
|
@@ -23757,7 +23975,7 @@ var getActorLikes_exports = {};
|
|
|
23757
23975
|
__export(getActorLikes_exports, {
|
|
23758
23976
|
BlockedActorError: () => BlockedActorError,
|
|
23759
23977
|
BlockedByActorError: () => BlockedByActorError,
|
|
23760
|
-
toKnownErr: () =>
|
|
23978
|
+
toKnownErr: () => toKnownErr70
|
|
23761
23979
|
});
|
|
23762
23980
|
var BlockedActorError = class extends XRPCError {
|
|
23763
23981
|
constructor(src2) {
|
|
@@ -23769,7 +23987,7 @@ var BlockedByActorError = class extends XRPCError {
|
|
|
23769
23987
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
23770
23988
|
}
|
|
23771
23989
|
};
|
|
23772
|
-
function
|
|
23990
|
+
function toKnownErr70(e) {
|
|
23773
23991
|
if (e instanceof XRPCError) {
|
|
23774
23992
|
if (e.error === "BlockedActor")
|
|
23775
23993
|
return new BlockedActorError(e);
|
|
@@ -23784,7 +24002,7 @@ var getAuthorFeed_exports = {};
|
|
|
23784
24002
|
__export(getAuthorFeed_exports, {
|
|
23785
24003
|
BlockedActorError: () => BlockedActorError2,
|
|
23786
24004
|
BlockedByActorError: () => BlockedByActorError2,
|
|
23787
|
-
toKnownErr: () =>
|
|
24005
|
+
toKnownErr: () => toKnownErr71
|
|
23788
24006
|
});
|
|
23789
24007
|
var BlockedActorError2 = class extends XRPCError {
|
|
23790
24008
|
constructor(src2) {
|
|
@@ -23796,7 +24014,7 @@ var BlockedByActorError2 = class extends XRPCError {
|
|
|
23796
24014
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
23797
24015
|
}
|
|
23798
24016
|
};
|
|
23799
|
-
function
|
|
24017
|
+
function toKnownErr71(e) {
|
|
23800
24018
|
if (e instanceof XRPCError) {
|
|
23801
24019
|
if (e.error === "BlockedActor")
|
|
23802
24020
|
return new BlockedActorError2(e);
|
|
@@ -23810,14 +24028,14 @@ function toKnownErr67(e) {
|
|
|
23810
24028
|
var getFeed_exports = {};
|
|
23811
24029
|
__export(getFeed_exports, {
|
|
23812
24030
|
UnknownFeedError: () => UnknownFeedError,
|
|
23813
|
-
toKnownErr: () =>
|
|
24031
|
+
toKnownErr: () => toKnownErr72
|
|
23814
24032
|
});
|
|
23815
24033
|
var UnknownFeedError = class extends XRPCError {
|
|
23816
24034
|
constructor(src2) {
|
|
23817
24035
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
23818
24036
|
}
|
|
23819
24037
|
};
|
|
23820
|
-
function
|
|
24038
|
+
function toKnownErr72(e) {
|
|
23821
24039
|
if (e instanceof XRPCError) {
|
|
23822
24040
|
if (e.error === "UnknownFeed")
|
|
23823
24041
|
return new UnknownFeedError(e);
|
|
@@ -23828,9 +24046,9 @@ function toKnownErr68(e) {
|
|
|
23828
24046
|
// src/client/types/app/bsky/feed/getFeedGenerator.ts
|
|
23829
24047
|
var getFeedGenerator_exports = {};
|
|
23830
24048
|
__export(getFeedGenerator_exports, {
|
|
23831
|
-
toKnownErr: () =>
|
|
24049
|
+
toKnownErr: () => toKnownErr73
|
|
23832
24050
|
});
|
|
23833
|
-
function
|
|
24051
|
+
function toKnownErr73(e) {
|
|
23834
24052
|
if (e instanceof XRPCError) {
|
|
23835
24053
|
}
|
|
23836
24054
|
return e;
|
|
@@ -23839,9 +24057,9 @@ function toKnownErr69(e) {
|
|
|
23839
24057
|
// src/client/types/app/bsky/feed/getFeedGenerators.ts
|
|
23840
24058
|
var getFeedGenerators_exports = {};
|
|
23841
24059
|
__export(getFeedGenerators_exports, {
|
|
23842
|
-
toKnownErr: () =>
|
|
24060
|
+
toKnownErr: () => toKnownErr74
|
|
23843
24061
|
});
|
|
23844
|
-
function
|
|
24062
|
+
function toKnownErr74(e) {
|
|
23845
24063
|
if (e instanceof XRPCError) {
|
|
23846
24064
|
}
|
|
23847
24065
|
return e;
|
|
@@ -23851,14 +24069,14 @@ function toKnownErr70(e) {
|
|
|
23851
24069
|
var getFeedSkeleton_exports = {};
|
|
23852
24070
|
__export(getFeedSkeleton_exports, {
|
|
23853
24071
|
UnknownFeedError: () => UnknownFeedError2,
|
|
23854
|
-
toKnownErr: () =>
|
|
24072
|
+
toKnownErr: () => toKnownErr75
|
|
23855
24073
|
});
|
|
23856
24074
|
var UnknownFeedError2 = class extends XRPCError {
|
|
23857
24075
|
constructor(src2) {
|
|
23858
24076
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
23859
24077
|
}
|
|
23860
24078
|
};
|
|
23861
|
-
function
|
|
24079
|
+
function toKnownErr75(e) {
|
|
23862
24080
|
if (e instanceof XRPCError) {
|
|
23863
24081
|
if (e.error === "UnknownFeed")
|
|
23864
24082
|
return new UnknownFeedError2(e);
|
|
@@ -23870,10 +24088,10 @@ function toKnownErr71(e) {
|
|
|
23870
24088
|
var getLikes_exports = {};
|
|
23871
24089
|
__export(getLikes_exports, {
|
|
23872
24090
|
isLike: () => isLike,
|
|
23873
|
-
toKnownErr: () =>
|
|
24091
|
+
toKnownErr: () => toKnownErr76,
|
|
23874
24092
|
validateLike: () => validateLike
|
|
23875
24093
|
});
|
|
23876
|
-
function
|
|
24094
|
+
function toKnownErr76(e) {
|
|
23877
24095
|
if (e instanceof XRPCError) {
|
|
23878
24096
|
}
|
|
23879
24097
|
return e;
|
|
@@ -23889,14 +24107,14 @@ function validateLike(v) {
|
|
|
23889
24107
|
var getListFeed_exports = {};
|
|
23890
24108
|
__export(getListFeed_exports, {
|
|
23891
24109
|
UnknownListError: () => UnknownListError,
|
|
23892
|
-
toKnownErr: () =>
|
|
24110
|
+
toKnownErr: () => toKnownErr77
|
|
23893
24111
|
});
|
|
23894
24112
|
var UnknownListError = class extends XRPCError {
|
|
23895
24113
|
constructor(src2) {
|
|
23896
24114
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
23897
24115
|
}
|
|
23898
24116
|
};
|
|
23899
|
-
function
|
|
24117
|
+
function toKnownErr77(e) {
|
|
23900
24118
|
if (e instanceof XRPCError) {
|
|
23901
24119
|
if (e.error === "UnknownList")
|
|
23902
24120
|
return new UnknownListError(e);
|
|
@@ -23908,14 +24126,14 @@ function toKnownErr73(e) {
|
|
|
23908
24126
|
var getPostThread_exports = {};
|
|
23909
24127
|
__export(getPostThread_exports, {
|
|
23910
24128
|
NotFoundError: () => NotFoundError,
|
|
23911
|
-
toKnownErr: () =>
|
|
24129
|
+
toKnownErr: () => toKnownErr78
|
|
23912
24130
|
});
|
|
23913
24131
|
var NotFoundError = class extends XRPCError {
|
|
23914
24132
|
constructor(src2) {
|
|
23915
24133
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
23916
24134
|
}
|
|
23917
24135
|
};
|
|
23918
|
-
function
|
|
24136
|
+
function toKnownErr78(e) {
|
|
23919
24137
|
if (e instanceof XRPCError) {
|
|
23920
24138
|
if (e.error === "NotFound")
|
|
23921
24139
|
return new NotFoundError(e);
|
|
@@ -23926,9 +24144,9 @@ function toKnownErr74(e) {
|
|
|
23926
24144
|
// src/client/types/app/bsky/feed/getPosts.ts
|
|
23927
24145
|
var getPosts_exports = {};
|
|
23928
24146
|
__export(getPosts_exports, {
|
|
23929
|
-
toKnownErr: () =>
|
|
24147
|
+
toKnownErr: () => toKnownErr79
|
|
23930
24148
|
});
|
|
23931
|
-
function
|
|
24149
|
+
function toKnownErr79(e) {
|
|
23932
24150
|
if (e instanceof XRPCError) {
|
|
23933
24151
|
}
|
|
23934
24152
|
return e;
|
|
@@ -23937,9 +24155,9 @@ function toKnownErr75(e) {
|
|
|
23937
24155
|
// src/client/types/app/bsky/feed/getRepostedBy.ts
|
|
23938
24156
|
var getRepostedBy_exports = {};
|
|
23939
24157
|
__export(getRepostedBy_exports, {
|
|
23940
|
-
toKnownErr: () =>
|
|
24158
|
+
toKnownErr: () => toKnownErr80
|
|
23941
24159
|
});
|
|
23942
|
-
function
|
|
24160
|
+
function toKnownErr80(e) {
|
|
23943
24161
|
if (e instanceof XRPCError) {
|
|
23944
24162
|
}
|
|
23945
24163
|
return e;
|
|
@@ -23948,9 +24166,9 @@ function toKnownErr76(e) {
|
|
|
23948
24166
|
// src/client/types/app/bsky/feed/getSuggestedFeeds.ts
|
|
23949
24167
|
var getSuggestedFeeds_exports = {};
|
|
23950
24168
|
__export(getSuggestedFeeds_exports, {
|
|
23951
|
-
toKnownErr: () =>
|
|
24169
|
+
toKnownErr: () => toKnownErr81
|
|
23952
24170
|
});
|
|
23953
|
-
function
|
|
24171
|
+
function toKnownErr81(e) {
|
|
23954
24172
|
if (e instanceof XRPCError) {
|
|
23955
24173
|
}
|
|
23956
24174
|
return e;
|
|
@@ -23959,9 +24177,9 @@ function toKnownErr77(e) {
|
|
|
23959
24177
|
// src/client/types/app/bsky/feed/getTimeline.ts
|
|
23960
24178
|
var getTimeline_exports = {};
|
|
23961
24179
|
__export(getTimeline_exports, {
|
|
23962
|
-
toKnownErr: () =>
|
|
24180
|
+
toKnownErr: () => toKnownErr82
|
|
23963
24181
|
});
|
|
23964
|
-
function
|
|
24182
|
+
function toKnownErr82(e) {
|
|
23965
24183
|
if (e instanceof XRPCError) {
|
|
23966
24184
|
}
|
|
23967
24185
|
return e;
|
|
@@ -23971,14 +24189,14 @@ function toKnownErr78(e) {
|
|
|
23971
24189
|
var searchPosts_exports = {};
|
|
23972
24190
|
__export(searchPosts_exports, {
|
|
23973
24191
|
BadQueryStringError: () => BadQueryStringError,
|
|
23974
|
-
toKnownErr: () =>
|
|
24192
|
+
toKnownErr: () => toKnownErr83
|
|
23975
24193
|
});
|
|
23976
24194
|
var BadQueryStringError = class extends XRPCError {
|
|
23977
24195
|
constructor(src2) {
|
|
23978
24196
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
23979
24197
|
}
|
|
23980
24198
|
};
|
|
23981
|
-
function
|
|
24199
|
+
function toKnownErr83(e) {
|
|
23982
24200
|
if (e instanceof XRPCError) {
|
|
23983
24201
|
if (e.error === "BadQueryString")
|
|
23984
24202
|
return new BadQueryStringError(e);
|
|
@@ -23989,9 +24207,9 @@ function toKnownErr79(e) {
|
|
|
23989
24207
|
// src/client/types/app/bsky/graph/getBlocks.ts
|
|
23990
24208
|
var getBlocks_exports2 = {};
|
|
23991
24209
|
__export(getBlocks_exports2, {
|
|
23992
|
-
toKnownErr: () =>
|
|
24210
|
+
toKnownErr: () => toKnownErr84
|
|
23993
24211
|
});
|
|
23994
|
-
function
|
|
24212
|
+
function toKnownErr84(e) {
|
|
23995
24213
|
if (e instanceof XRPCError) {
|
|
23996
24214
|
}
|
|
23997
24215
|
return e;
|
|
@@ -24000,9 +24218,9 @@ function toKnownErr80(e) {
|
|
|
24000
24218
|
// src/client/types/app/bsky/graph/getFollowers.ts
|
|
24001
24219
|
var getFollowers_exports = {};
|
|
24002
24220
|
__export(getFollowers_exports, {
|
|
24003
|
-
toKnownErr: () =>
|
|
24221
|
+
toKnownErr: () => toKnownErr85
|
|
24004
24222
|
});
|
|
24005
|
-
function
|
|
24223
|
+
function toKnownErr85(e) {
|
|
24006
24224
|
if (e instanceof XRPCError) {
|
|
24007
24225
|
}
|
|
24008
24226
|
return e;
|
|
@@ -24011,9 +24229,9 @@ function toKnownErr81(e) {
|
|
|
24011
24229
|
// src/client/types/app/bsky/graph/getFollows.ts
|
|
24012
24230
|
var getFollows_exports = {};
|
|
24013
24231
|
__export(getFollows_exports, {
|
|
24014
|
-
toKnownErr: () =>
|
|
24232
|
+
toKnownErr: () => toKnownErr86
|
|
24015
24233
|
});
|
|
24016
|
-
function
|
|
24234
|
+
function toKnownErr86(e) {
|
|
24017
24235
|
if (e instanceof XRPCError) {
|
|
24018
24236
|
}
|
|
24019
24237
|
return e;
|
|
@@ -24022,9 +24240,9 @@ function toKnownErr82(e) {
|
|
|
24022
24240
|
// src/client/types/app/bsky/graph/getList.ts
|
|
24023
24241
|
var getList_exports = {};
|
|
24024
24242
|
__export(getList_exports, {
|
|
24025
|
-
toKnownErr: () =>
|
|
24243
|
+
toKnownErr: () => toKnownErr87
|
|
24026
24244
|
});
|
|
24027
|
-
function
|
|
24245
|
+
function toKnownErr87(e) {
|
|
24028
24246
|
if (e instanceof XRPCError) {
|
|
24029
24247
|
}
|
|
24030
24248
|
return e;
|
|
@@ -24033,9 +24251,9 @@ function toKnownErr83(e) {
|
|
|
24033
24251
|
// src/client/types/app/bsky/graph/getListBlocks.ts
|
|
24034
24252
|
var getListBlocks_exports = {};
|
|
24035
24253
|
__export(getListBlocks_exports, {
|
|
24036
|
-
toKnownErr: () =>
|
|
24254
|
+
toKnownErr: () => toKnownErr88
|
|
24037
24255
|
});
|
|
24038
|
-
function
|
|
24256
|
+
function toKnownErr88(e) {
|
|
24039
24257
|
if (e instanceof XRPCError) {
|
|
24040
24258
|
}
|
|
24041
24259
|
return e;
|
|
@@ -24044,9 +24262,9 @@ function toKnownErr84(e) {
|
|
|
24044
24262
|
// src/client/types/app/bsky/graph/getListMutes.ts
|
|
24045
24263
|
var getListMutes_exports = {};
|
|
24046
24264
|
__export(getListMutes_exports, {
|
|
24047
|
-
toKnownErr: () =>
|
|
24265
|
+
toKnownErr: () => toKnownErr89
|
|
24048
24266
|
});
|
|
24049
|
-
function
|
|
24267
|
+
function toKnownErr89(e) {
|
|
24050
24268
|
if (e instanceof XRPCError) {
|
|
24051
24269
|
}
|
|
24052
24270
|
return e;
|
|
@@ -24055,9 +24273,9 @@ function toKnownErr85(e) {
|
|
|
24055
24273
|
// src/client/types/app/bsky/graph/getLists.ts
|
|
24056
24274
|
var getLists_exports = {};
|
|
24057
24275
|
__export(getLists_exports, {
|
|
24058
|
-
toKnownErr: () =>
|
|
24276
|
+
toKnownErr: () => toKnownErr90
|
|
24059
24277
|
});
|
|
24060
|
-
function
|
|
24278
|
+
function toKnownErr90(e) {
|
|
24061
24279
|
if (e instanceof XRPCError) {
|
|
24062
24280
|
}
|
|
24063
24281
|
return e;
|
|
@@ -24066,9 +24284,9 @@ function toKnownErr86(e) {
|
|
|
24066
24284
|
// src/client/types/app/bsky/graph/getMutes.ts
|
|
24067
24285
|
var getMutes_exports = {};
|
|
24068
24286
|
__export(getMutes_exports, {
|
|
24069
|
-
toKnownErr: () =>
|
|
24287
|
+
toKnownErr: () => toKnownErr91
|
|
24070
24288
|
});
|
|
24071
|
-
function
|
|
24289
|
+
function toKnownErr91(e) {
|
|
24072
24290
|
if (e instanceof XRPCError) {
|
|
24073
24291
|
}
|
|
24074
24292
|
return e;
|
|
@@ -24077,9 +24295,9 @@ function toKnownErr87(e) {
|
|
|
24077
24295
|
// src/client/types/app/bsky/graph/getSuggestedFollowsByActor.ts
|
|
24078
24296
|
var getSuggestedFollowsByActor_exports = {};
|
|
24079
24297
|
__export(getSuggestedFollowsByActor_exports, {
|
|
24080
|
-
toKnownErr: () =>
|
|
24298
|
+
toKnownErr: () => toKnownErr92
|
|
24081
24299
|
});
|
|
24082
|
-
function
|
|
24300
|
+
function toKnownErr92(e) {
|
|
24083
24301
|
if (e instanceof XRPCError) {
|
|
24084
24302
|
}
|
|
24085
24303
|
return e;
|
|
@@ -24088,9 +24306,9 @@ function toKnownErr88(e) {
|
|
|
24088
24306
|
// src/client/types/app/bsky/graph/muteActor.ts
|
|
24089
24307
|
var muteActor_exports = {};
|
|
24090
24308
|
__export(muteActor_exports, {
|
|
24091
|
-
toKnownErr: () =>
|
|
24309
|
+
toKnownErr: () => toKnownErr93
|
|
24092
24310
|
});
|
|
24093
|
-
function
|
|
24311
|
+
function toKnownErr93(e) {
|
|
24094
24312
|
if (e instanceof XRPCError) {
|
|
24095
24313
|
}
|
|
24096
24314
|
return e;
|
|
@@ -24099,9 +24317,9 @@ function toKnownErr89(e) {
|
|
|
24099
24317
|
// src/client/types/app/bsky/graph/muteActorList.ts
|
|
24100
24318
|
var muteActorList_exports = {};
|
|
24101
24319
|
__export(muteActorList_exports, {
|
|
24102
|
-
toKnownErr: () =>
|
|
24320
|
+
toKnownErr: () => toKnownErr94
|
|
24103
24321
|
});
|
|
24104
|
-
function
|
|
24322
|
+
function toKnownErr94(e) {
|
|
24105
24323
|
if (e instanceof XRPCError) {
|
|
24106
24324
|
}
|
|
24107
24325
|
return e;
|
|
@@ -24110,9 +24328,9 @@ function toKnownErr90(e) {
|
|
|
24110
24328
|
// src/client/types/app/bsky/graph/unmuteActor.ts
|
|
24111
24329
|
var unmuteActor_exports = {};
|
|
24112
24330
|
__export(unmuteActor_exports, {
|
|
24113
|
-
toKnownErr: () =>
|
|
24331
|
+
toKnownErr: () => toKnownErr95
|
|
24114
24332
|
});
|
|
24115
|
-
function
|
|
24333
|
+
function toKnownErr95(e) {
|
|
24116
24334
|
if (e instanceof XRPCError) {
|
|
24117
24335
|
}
|
|
24118
24336
|
return e;
|
|
@@ -24121,9 +24339,9 @@ function toKnownErr91(e) {
|
|
|
24121
24339
|
// src/client/types/app/bsky/graph/unmuteActorList.ts
|
|
24122
24340
|
var unmuteActorList_exports = {};
|
|
24123
24341
|
__export(unmuteActorList_exports, {
|
|
24124
|
-
toKnownErr: () =>
|
|
24342
|
+
toKnownErr: () => toKnownErr96
|
|
24125
24343
|
});
|
|
24126
|
-
function
|
|
24344
|
+
function toKnownErr96(e) {
|
|
24127
24345
|
if (e instanceof XRPCError) {
|
|
24128
24346
|
}
|
|
24129
24347
|
return e;
|
|
@@ -24132,9 +24350,9 @@ function toKnownErr92(e) {
|
|
|
24132
24350
|
// src/client/types/app/bsky/notification/getUnreadCount.ts
|
|
24133
24351
|
var getUnreadCount_exports = {};
|
|
24134
24352
|
__export(getUnreadCount_exports, {
|
|
24135
|
-
toKnownErr: () =>
|
|
24353
|
+
toKnownErr: () => toKnownErr97
|
|
24136
24354
|
});
|
|
24137
|
-
function
|
|
24355
|
+
function toKnownErr97(e) {
|
|
24138
24356
|
if (e instanceof XRPCError) {
|
|
24139
24357
|
}
|
|
24140
24358
|
return e;
|
|
@@ -24144,10 +24362,10 @@ function toKnownErr93(e) {
|
|
|
24144
24362
|
var listNotifications_exports = {};
|
|
24145
24363
|
__export(listNotifications_exports, {
|
|
24146
24364
|
isNotification: () => isNotification,
|
|
24147
|
-
toKnownErr: () =>
|
|
24365
|
+
toKnownErr: () => toKnownErr98,
|
|
24148
24366
|
validateNotification: () => validateNotification
|
|
24149
24367
|
});
|
|
24150
|
-
function
|
|
24368
|
+
function toKnownErr98(e) {
|
|
24151
24369
|
if (e instanceof XRPCError) {
|
|
24152
24370
|
}
|
|
24153
24371
|
return e;
|
|
@@ -24162,9 +24380,9 @@ function validateNotification(v) {
|
|
|
24162
24380
|
// src/client/types/app/bsky/notification/registerPush.ts
|
|
24163
24381
|
var registerPush_exports = {};
|
|
24164
24382
|
__export(registerPush_exports, {
|
|
24165
|
-
toKnownErr: () =>
|
|
24383
|
+
toKnownErr: () => toKnownErr99
|
|
24166
24384
|
});
|
|
24167
|
-
function
|
|
24385
|
+
function toKnownErr99(e) {
|
|
24168
24386
|
if (e instanceof XRPCError) {
|
|
24169
24387
|
}
|
|
24170
24388
|
return e;
|
|
@@ -24173,9 +24391,9 @@ function toKnownErr95(e) {
|
|
|
24173
24391
|
// src/client/types/app/bsky/notification/updateSeen.ts
|
|
24174
24392
|
var updateSeen_exports = {};
|
|
24175
24393
|
__export(updateSeen_exports, {
|
|
24176
|
-
toKnownErr: () =>
|
|
24394
|
+
toKnownErr: () => toKnownErr100
|
|
24177
24395
|
});
|
|
24178
|
-
function
|
|
24396
|
+
function toKnownErr100(e) {
|
|
24179
24397
|
if (e instanceof XRPCError) {
|
|
24180
24398
|
}
|
|
24181
24399
|
return e;
|
|
@@ -24184,9 +24402,9 @@ function toKnownErr96(e) {
|
|
|
24184
24402
|
// src/client/types/app/bsky/unspecced/getPopular.ts
|
|
24185
24403
|
var getPopular_exports = {};
|
|
24186
24404
|
__export(getPopular_exports, {
|
|
24187
|
-
toKnownErr: () =>
|
|
24405
|
+
toKnownErr: () => toKnownErr101
|
|
24188
24406
|
});
|
|
24189
|
-
function
|
|
24407
|
+
function toKnownErr101(e) {
|
|
24190
24408
|
if (e instanceof XRPCError) {
|
|
24191
24409
|
}
|
|
24192
24410
|
return e;
|
|
@@ -24195,9 +24413,9 @@ function toKnownErr97(e) {
|
|
|
24195
24413
|
// src/client/types/app/bsky/unspecced/getPopularFeedGenerators.ts
|
|
24196
24414
|
var getPopularFeedGenerators_exports = {};
|
|
24197
24415
|
__export(getPopularFeedGenerators_exports, {
|
|
24198
|
-
toKnownErr: () =>
|
|
24416
|
+
toKnownErr: () => toKnownErr102
|
|
24199
24417
|
});
|
|
24200
|
-
function
|
|
24418
|
+
function toKnownErr102(e) {
|
|
24201
24419
|
if (e instanceof XRPCError) {
|
|
24202
24420
|
}
|
|
24203
24421
|
return e;
|
|
@@ -24207,14 +24425,14 @@ function toKnownErr98(e) {
|
|
|
24207
24425
|
var getTimelineSkeleton_exports = {};
|
|
24208
24426
|
__export(getTimelineSkeleton_exports, {
|
|
24209
24427
|
UnknownFeedError: () => UnknownFeedError3,
|
|
24210
|
-
toKnownErr: () =>
|
|
24428
|
+
toKnownErr: () => toKnownErr103
|
|
24211
24429
|
});
|
|
24212
24430
|
var UnknownFeedError3 = class extends XRPCError {
|
|
24213
24431
|
constructor(src2) {
|
|
24214
24432
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
24215
24433
|
}
|
|
24216
24434
|
};
|
|
24217
|
-
function
|
|
24435
|
+
function toKnownErr103(e) {
|
|
24218
24436
|
if (e instanceof XRPCError) {
|
|
24219
24437
|
if (e.error === "UnknownFeed")
|
|
24220
24438
|
return new UnknownFeedError3(e);
|
|
@@ -24226,14 +24444,14 @@ function toKnownErr99(e) {
|
|
|
24226
24444
|
var searchActorsSkeleton_exports = {};
|
|
24227
24445
|
__export(searchActorsSkeleton_exports, {
|
|
24228
24446
|
BadQueryStringError: () => BadQueryStringError2,
|
|
24229
|
-
toKnownErr: () =>
|
|
24447
|
+
toKnownErr: () => toKnownErr104
|
|
24230
24448
|
});
|
|
24231
24449
|
var BadQueryStringError2 = class extends XRPCError {
|
|
24232
24450
|
constructor(src2) {
|
|
24233
24451
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
24234
24452
|
}
|
|
24235
24453
|
};
|
|
24236
|
-
function
|
|
24454
|
+
function toKnownErr104(e) {
|
|
24237
24455
|
if (e instanceof XRPCError) {
|
|
24238
24456
|
if (e.error === "BadQueryString")
|
|
24239
24457
|
return new BadQueryStringError2(e);
|
|
@@ -24245,14 +24463,14 @@ function toKnownErr100(e) {
|
|
|
24245
24463
|
var searchPostsSkeleton_exports = {};
|
|
24246
24464
|
__export(searchPostsSkeleton_exports, {
|
|
24247
24465
|
BadQueryStringError: () => BadQueryStringError3,
|
|
24248
|
-
toKnownErr: () =>
|
|
24466
|
+
toKnownErr: () => toKnownErr105
|
|
24249
24467
|
});
|
|
24250
24468
|
var BadQueryStringError3 = class extends XRPCError {
|
|
24251
24469
|
constructor(src2) {
|
|
24252
24470
|
super(src2.status, src2.error, src2.message, src2.headers);
|
|
24253
24471
|
}
|
|
24254
24472
|
};
|
|
24255
|
-
function
|
|
24473
|
+
function toKnownErr105(e) {
|
|
24256
24474
|
if (e instanceof XRPCError) {
|
|
24257
24475
|
if (e.error === "BadQueryString")
|
|
24258
24476
|
return new BadQueryStringError3(e);
|
|
@@ -25458,84 +25676,104 @@ var ServerNS = class {
|
|
|
25458
25676
|
constructor(service) {
|
|
25459
25677
|
this._service = service;
|
|
25460
25678
|
}
|
|
25679
|
+
confirmEmail(data, opts) {
|
|
25680
|
+
return this._service.xrpc.call("com.atproto.server.confirmEmail", opts?.qp, data, opts).catch((e) => {
|
|
25681
|
+
throw toKnownErr30(e);
|
|
25682
|
+
});
|
|
25683
|
+
}
|
|
25461
25684
|
createAccount(data, opts) {
|
|
25462
25685
|
return this._service.xrpc.call("com.atproto.server.createAccount", opts?.qp, data, opts).catch((e) => {
|
|
25463
|
-
throw
|
|
25686
|
+
throw toKnownErr31(e);
|
|
25464
25687
|
});
|
|
25465
25688
|
}
|
|
25466
25689
|
createAppPassword(data, opts) {
|
|
25467
25690
|
return this._service.xrpc.call("com.atproto.server.createAppPassword", opts?.qp, data, opts).catch((e) => {
|
|
25468
|
-
throw
|
|
25691
|
+
throw toKnownErr32(e);
|
|
25469
25692
|
});
|
|
25470
25693
|
}
|
|
25471
25694
|
createInviteCode(data, opts) {
|
|
25472
25695
|
return this._service.xrpc.call("com.atproto.server.createInviteCode", opts?.qp, data, opts).catch((e) => {
|
|
25473
|
-
throw
|
|
25696
|
+
throw toKnownErr33(e);
|
|
25474
25697
|
});
|
|
25475
25698
|
}
|
|
25476
25699
|
createInviteCodes(data, opts) {
|
|
25477
25700
|
return this._service.xrpc.call("com.atproto.server.createInviteCodes", opts?.qp, data, opts).catch((e) => {
|
|
25478
|
-
throw
|
|
25701
|
+
throw toKnownErr34(e);
|
|
25479
25702
|
});
|
|
25480
25703
|
}
|
|
25481
25704
|
createSession(data, opts) {
|
|
25482
25705
|
return this._service.xrpc.call("com.atproto.server.createSession", opts?.qp, data, opts).catch((e) => {
|
|
25483
|
-
throw
|
|
25706
|
+
throw toKnownErr35(e);
|
|
25484
25707
|
});
|
|
25485
25708
|
}
|
|
25486
25709
|
deleteAccount(data, opts) {
|
|
25487
25710
|
return this._service.xrpc.call("com.atproto.server.deleteAccount", opts?.qp, data, opts).catch((e) => {
|
|
25488
|
-
throw
|
|
25711
|
+
throw toKnownErr36(e);
|
|
25489
25712
|
});
|
|
25490
25713
|
}
|
|
25491
25714
|
deleteSession(data, opts) {
|
|
25492
25715
|
return this._service.xrpc.call("com.atproto.server.deleteSession", opts?.qp, data, opts).catch((e) => {
|
|
25493
|
-
throw
|
|
25716
|
+
throw toKnownErr37(e);
|
|
25494
25717
|
});
|
|
25495
25718
|
}
|
|
25496
25719
|
describeServer(params2, opts) {
|
|
25497
25720
|
return this._service.xrpc.call("com.atproto.server.describeServer", params2, void 0, opts).catch((e) => {
|
|
25498
|
-
throw
|
|
25721
|
+
throw toKnownErr38(e);
|
|
25499
25722
|
});
|
|
25500
25723
|
}
|
|
25501
25724
|
getAccountInviteCodes(params2, opts) {
|
|
25502
25725
|
return this._service.xrpc.call("com.atproto.server.getAccountInviteCodes", params2, void 0, opts).catch((e) => {
|
|
25503
|
-
throw
|
|
25726
|
+
throw toKnownErr39(e);
|
|
25504
25727
|
});
|
|
25505
25728
|
}
|
|
25506
25729
|
getSession(params2, opts) {
|
|
25507
25730
|
return this._service.xrpc.call("com.atproto.server.getSession", params2, void 0, opts).catch((e) => {
|
|
25508
|
-
throw
|
|
25731
|
+
throw toKnownErr40(e);
|
|
25509
25732
|
});
|
|
25510
25733
|
}
|
|
25511
25734
|
listAppPasswords(params2, opts) {
|
|
25512
25735
|
return this._service.xrpc.call("com.atproto.server.listAppPasswords", params2, void 0, opts).catch((e) => {
|
|
25513
|
-
throw
|
|
25736
|
+
throw toKnownErr41(e);
|
|
25514
25737
|
});
|
|
25515
25738
|
}
|
|
25516
25739
|
refreshSession(data, opts) {
|
|
25517
25740
|
return this._service.xrpc.call("com.atproto.server.refreshSession", opts?.qp, data, opts).catch((e) => {
|
|
25518
|
-
throw
|
|
25741
|
+
throw toKnownErr42(e);
|
|
25519
25742
|
});
|
|
25520
25743
|
}
|
|
25521
25744
|
requestAccountDelete(data, opts) {
|
|
25522
25745
|
return this._service.xrpc.call("com.atproto.server.requestAccountDelete", opts?.qp, data, opts).catch((e) => {
|
|
25523
|
-
throw
|
|
25746
|
+
throw toKnownErr43(e);
|
|
25747
|
+
});
|
|
25748
|
+
}
|
|
25749
|
+
requestEmailConfirmation(data, opts) {
|
|
25750
|
+
return this._service.xrpc.call("com.atproto.server.requestEmailConfirmation", opts?.qp, data, opts).catch((e) => {
|
|
25751
|
+
throw toKnownErr44(e);
|
|
25752
|
+
});
|
|
25753
|
+
}
|
|
25754
|
+
requestEmailUpdate(data, opts) {
|
|
25755
|
+
return this._service.xrpc.call("com.atproto.server.requestEmailUpdate", opts?.qp, data, opts).catch((e) => {
|
|
25756
|
+
throw toKnownErr45(e);
|
|
25524
25757
|
});
|
|
25525
25758
|
}
|
|
25526
25759
|
requestPasswordReset(data, opts) {
|
|
25527
25760
|
return this._service.xrpc.call("com.atproto.server.requestPasswordReset", opts?.qp, data, opts).catch((e) => {
|
|
25528
|
-
throw
|
|
25761
|
+
throw toKnownErr46(e);
|
|
25529
25762
|
});
|
|
25530
25763
|
}
|
|
25531
25764
|
resetPassword(data, opts) {
|
|
25532
25765
|
return this._service.xrpc.call("com.atproto.server.resetPassword", opts?.qp, data, opts).catch((e) => {
|
|
25533
|
-
throw
|
|
25766
|
+
throw toKnownErr47(e);
|
|
25534
25767
|
});
|
|
25535
25768
|
}
|
|
25536
25769
|
revokeAppPassword(data, opts) {
|
|
25537
25770
|
return this._service.xrpc.call("com.atproto.server.revokeAppPassword", opts?.qp, data, opts).catch((e) => {
|
|
25538
|
-
throw
|
|
25771
|
+
throw toKnownErr48(e);
|
|
25772
|
+
});
|
|
25773
|
+
}
|
|
25774
|
+
updateEmail(data, opts) {
|
|
25775
|
+
return this._service.xrpc.call("com.atproto.server.updateEmail", opts?.qp, data, opts).catch((e) => {
|
|
25776
|
+
throw toKnownErr49(e);
|
|
25539
25777
|
});
|
|
25540
25778
|
}
|
|
25541
25779
|
};
|
|
@@ -25545,57 +25783,57 @@ var SyncNS = class {
|
|
|
25545
25783
|
}
|
|
25546
25784
|
getBlob(params2, opts) {
|
|
25547
25785
|
return this._service.xrpc.call("com.atproto.sync.getBlob", params2, void 0, opts).catch((e) => {
|
|
25548
|
-
throw
|
|
25786
|
+
throw toKnownErr50(e);
|
|
25549
25787
|
});
|
|
25550
25788
|
}
|
|
25551
25789
|
getBlocks(params2, opts) {
|
|
25552
25790
|
return this._service.xrpc.call("com.atproto.sync.getBlocks", params2, void 0, opts).catch((e) => {
|
|
25553
|
-
throw
|
|
25791
|
+
throw toKnownErr51(e);
|
|
25554
25792
|
});
|
|
25555
25793
|
}
|
|
25556
25794
|
getCheckout(params2, opts) {
|
|
25557
25795
|
return this._service.xrpc.call("com.atproto.sync.getCheckout", params2, void 0, opts).catch((e) => {
|
|
25558
|
-
throw
|
|
25796
|
+
throw toKnownErr52(e);
|
|
25559
25797
|
});
|
|
25560
25798
|
}
|
|
25561
25799
|
getHead(params2, opts) {
|
|
25562
25800
|
return this._service.xrpc.call("com.atproto.sync.getHead", params2, void 0, opts).catch((e) => {
|
|
25563
|
-
throw
|
|
25801
|
+
throw toKnownErr53(e);
|
|
25564
25802
|
});
|
|
25565
25803
|
}
|
|
25566
25804
|
getLatestCommit(params2, opts) {
|
|
25567
25805
|
return this._service.xrpc.call("com.atproto.sync.getLatestCommit", params2, void 0, opts).catch((e) => {
|
|
25568
|
-
throw
|
|
25806
|
+
throw toKnownErr54(e);
|
|
25569
25807
|
});
|
|
25570
25808
|
}
|
|
25571
25809
|
getRecord(params2, opts) {
|
|
25572
25810
|
return this._service.xrpc.call("com.atproto.sync.getRecord", params2, void 0, opts).catch((e) => {
|
|
25573
|
-
throw
|
|
25811
|
+
throw toKnownErr55(e);
|
|
25574
25812
|
});
|
|
25575
25813
|
}
|
|
25576
25814
|
getRepo(params2, opts) {
|
|
25577
25815
|
return this._service.xrpc.call("com.atproto.sync.getRepo", params2, void 0, opts).catch((e) => {
|
|
25578
|
-
throw
|
|
25816
|
+
throw toKnownErr56(e);
|
|
25579
25817
|
});
|
|
25580
25818
|
}
|
|
25581
25819
|
listBlobs(params2, opts) {
|
|
25582
25820
|
return this._service.xrpc.call("com.atproto.sync.listBlobs", params2, void 0, opts).catch((e) => {
|
|
25583
|
-
throw
|
|
25821
|
+
throw toKnownErr57(e);
|
|
25584
25822
|
});
|
|
25585
25823
|
}
|
|
25586
25824
|
listRepos(params2, opts) {
|
|
25587
25825
|
return this._service.xrpc.call("com.atproto.sync.listRepos", params2, void 0, opts).catch((e) => {
|
|
25588
|
-
throw
|
|
25826
|
+
throw toKnownErr58(e);
|
|
25589
25827
|
});
|
|
25590
25828
|
}
|
|
25591
25829
|
notifyOfUpdate(data, opts) {
|
|
25592
25830
|
return this._service.xrpc.call("com.atproto.sync.notifyOfUpdate", opts?.qp, data, opts).catch((e) => {
|
|
25593
|
-
throw
|
|
25831
|
+
throw toKnownErr59(e);
|
|
25594
25832
|
});
|
|
25595
25833
|
}
|
|
25596
25834
|
requestCrawl(data, opts) {
|
|
25597
25835
|
return this._service.xrpc.call("com.atproto.sync.requestCrawl", opts?.qp, data, opts).catch((e) => {
|
|
25598
|
-
throw
|
|
25836
|
+
throw toKnownErr60(e);
|
|
25599
25837
|
});
|
|
25600
25838
|
}
|
|
25601
25839
|
};
|
|
@@ -25624,37 +25862,37 @@ var ActorNS = class {
|
|
|
25624
25862
|
}
|
|
25625
25863
|
getPreferences(params2, opts) {
|
|
25626
25864
|
return this._service.xrpc.call("app.bsky.actor.getPreferences", params2, void 0, opts).catch((e) => {
|
|
25627
|
-
throw
|
|
25865
|
+
throw toKnownErr61(e);
|
|
25628
25866
|
});
|
|
25629
25867
|
}
|
|
25630
25868
|
getProfile(params2, opts) {
|
|
25631
25869
|
return this._service.xrpc.call("app.bsky.actor.getProfile", params2, void 0, opts).catch((e) => {
|
|
25632
|
-
throw
|
|
25870
|
+
throw toKnownErr62(e);
|
|
25633
25871
|
});
|
|
25634
25872
|
}
|
|
25635
25873
|
getProfiles(params2, opts) {
|
|
25636
25874
|
return this._service.xrpc.call("app.bsky.actor.getProfiles", params2, void 0, opts).catch((e) => {
|
|
25637
|
-
throw
|
|
25875
|
+
throw toKnownErr63(e);
|
|
25638
25876
|
});
|
|
25639
25877
|
}
|
|
25640
25878
|
getSuggestions(params2, opts) {
|
|
25641
25879
|
return this._service.xrpc.call("app.bsky.actor.getSuggestions", params2, void 0, opts).catch((e) => {
|
|
25642
|
-
throw
|
|
25880
|
+
throw toKnownErr64(e);
|
|
25643
25881
|
});
|
|
25644
25882
|
}
|
|
25645
25883
|
putPreferences(data, opts) {
|
|
25646
25884
|
return this._service.xrpc.call("app.bsky.actor.putPreferences", opts?.qp, data, opts).catch((e) => {
|
|
25647
|
-
throw
|
|
25885
|
+
throw toKnownErr65(e);
|
|
25648
25886
|
});
|
|
25649
25887
|
}
|
|
25650
25888
|
searchActors(params2, opts) {
|
|
25651
25889
|
return this._service.xrpc.call("app.bsky.actor.searchActors", params2, void 0, opts).catch((e) => {
|
|
25652
|
-
throw
|
|
25890
|
+
throw toKnownErr66(e);
|
|
25653
25891
|
});
|
|
25654
25892
|
}
|
|
25655
25893
|
searchActorsTypeahead(params2, opts) {
|
|
25656
25894
|
return this._service.xrpc.call("app.bsky.actor.searchActorsTypeahead", params2, void 0, opts).catch((e) => {
|
|
25657
|
-
throw
|
|
25895
|
+
throw toKnownErr67(e);
|
|
25658
25896
|
});
|
|
25659
25897
|
}
|
|
25660
25898
|
};
|
|
@@ -25701,82 +25939,82 @@ var FeedNS = class {
|
|
|
25701
25939
|
}
|
|
25702
25940
|
describeFeedGenerator(params2, opts) {
|
|
25703
25941
|
return this._service.xrpc.call("app.bsky.feed.describeFeedGenerator", params2, void 0, opts).catch((e) => {
|
|
25704
|
-
throw
|
|
25942
|
+
throw toKnownErr68(e);
|
|
25705
25943
|
});
|
|
25706
25944
|
}
|
|
25707
25945
|
getActorFeeds(params2, opts) {
|
|
25708
25946
|
return this._service.xrpc.call("app.bsky.feed.getActorFeeds", params2, void 0, opts).catch((e) => {
|
|
25709
|
-
throw
|
|
25947
|
+
throw toKnownErr69(e);
|
|
25710
25948
|
});
|
|
25711
25949
|
}
|
|
25712
25950
|
getActorLikes(params2, opts) {
|
|
25713
25951
|
return this._service.xrpc.call("app.bsky.feed.getActorLikes", params2, void 0, opts).catch((e) => {
|
|
25714
|
-
throw
|
|
25952
|
+
throw toKnownErr70(e);
|
|
25715
25953
|
});
|
|
25716
25954
|
}
|
|
25717
25955
|
getAuthorFeed(params2, opts) {
|
|
25718
25956
|
return this._service.xrpc.call("app.bsky.feed.getAuthorFeed", params2, void 0, opts).catch((e) => {
|
|
25719
|
-
throw
|
|
25957
|
+
throw toKnownErr71(e);
|
|
25720
25958
|
});
|
|
25721
25959
|
}
|
|
25722
25960
|
getFeed(params2, opts) {
|
|
25723
25961
|
return this._service.xrpc.call("app.bsky.feed.getFeed", params2, void 0, opts).catch((e) => {
|
|
25724
|
-
throw
|
|
25962
|
+
throw toKnownErr72(e);
|
|
25725
25963
|
});
|
|
25726
25964
|
}
|
|
25727
25965
|
getFeedGenerator(params2, opts) {
|
|
25728
25966
|
return this._service.xrpc.call("app.bsky.feed.getFeedGenerator", params2, void 0, opts).catch((e) => {
|
|
25729
|
-
throw
|
|
25967
|
+
throw toKnownErr73(e);
|
|
25730
25968
|
});
|
|
25731
25969
|
}
|
|
25732
25970
|
getFeedGenerators(params2, opts) {
|
|
25733
25971
|
return this._service.xrpc.call("app.bsky.feed.getFeedGenerators", params2, void 0, opts).catch((e) => {
|
|
25734
|
-
throw
|
|
25972
|
+
throw toKnownErr74(e);
|
|
25735
25973
|
});
|
|
25736
25974
|
}
|
|
25737
25975
|
getFeedSkeleton(params2, opts) {
|
|
25738
25976
|
return this._service.xrpc.call("app.bsky.feed.getFeedSkeleton", params2, void 0, opts).catch((e) => {
|
|
25739
|
-
throw
|
|
25977
|
+
throw toKnownErr75(e);
|
|
25740
25978
|
});
|
|
25741
25979
|
}
|
|
25742
25980
|
getLikes(params2, opts) {
|
|
25743
25981
|
return this._service.xrpc.call("app.bsky.feed.getLikes", params2, void 0, opts).catch((e) => {
|
|
25744
|
-
throw
|
|
25982
|
+
throw toKnownErr76(e);
|
|
25745
25983
|
});
|
|
25746
25984
|
}
|
|
25747
25985
|
getListFeed(params2, opts) {
|
|
25748
25986
|
return this._service.xrpc.call("app.bsky.feed.getListFeed", params2, void 0, opts).catch((e) => {
|
|
25749
|
-
throw
|
|
25987
|
+
throw toKnownErr77(e);
|
|
25750
25988
|
});
|
|
25751
25989
|
}
|
|
25752
25990
|
getPostThread(params2, opts) {
|
|
25753
25991
|
return this._service.xrpc.call("app.bsky.feed.getPostThread", params2, void 0, opts).catch((e) => {
|
|
25754
|
-
throw
|
|
25992
|
+
throw toKnownErr78(e);
|
|
25755
25993
|
});
|
|
25756
25994
|
}
|
|
25757
25995
|
getPosts(params2, opts) {
|
|
25758
25996
|
return this._service.xrpc.call("app.bsky.feed.getPosts", params2, void 0, opts).catch((e) => {
|
|
25759
|
-
throw
|
|
25997
|
+
throw toKnownErr79(e);
|
|
25760
25998
|
});
|
|
25761
25999
|
}
|
|
25762
26000
|
getRepostedBy(params2, opts) {
|
|
25763
26001
|
return this._service.xrpc.call("app.bsky.feed.getRepostedBy", params2, void 0, opts).catch((e) => {
|
|
25764
|
-
throw
|
|
26002
|
+
throw toKnownErr80(e);
|
|
25765
26003
|
});
|
|
25766
26004
|
}
|
|
25767
26005
|
getSuggestedFeeds(params2, opts) {
|
|
25768
26006
|
return this._service.xrpc.call("app.bsky.feed.getSuggestedFeeds", params2, void 0, opts).catch((e) => {
|
|
25769
|
-
throw
|
|
26007
|
+
throw toKnownErr81(e);
|
|
25770
26008
|
});
|
|
25771
26009
|
}
|
|
25772
26010
|
getTimeline(params2, opts) {
|
|
25773
26011
|
return this._service.xrpc.call("app.bsky.feed.getTimeline", params2, void 0, opts).catch((e) => {
|
|
25774
|
-
throw
|
|
26012
|
+
throw toKnownErr82(e);
|
|
25775
26013
|
});
|
|
25776
26014
|
}
|
|
25777
26015
|
searchPosts(params2, opts) {
|
|
25778
26016
|
return this._service.xrpc.call("app.bsky.feed.searchPosts", params2, void 0, opts).catch((e) => {
|
|
25779
|
-
throw
|
|
26017
|
+
throw toKnownErr83(e);
|
|
25780
26018
|
});
|
|
25781
26019
|
}
|
|
25782
26020
|
};
|
|
@@ -25926,67 +26164,67 @@ var GraphNS = class {
|
|
|
25926
26164
|
}
|
|
25927
26165
|
getBlocks(params2, opts) {
|
|
25928
26166
|
return this._service.xrpc.call("app.bsky.graph.getBlocks", params2, void 0, opts).catch((e) => {
|
|
25929
|
-
throw
|
|
26167
|
+
throw toKnownErr84(e);
|
|
25930
26168
|
});
|
|
25931
26169
|
}
|
|
25932
26170
|
getFollowers(params2, opts) {
|
|
25933
26171
|
return this._service.xrpc.call("app.bsky.graph.getFollowers", params2, void 0, opts).catch((e) => {
|
|
25934
|
-
throw
|
|
26172
|
+
throw toKnownErr85(e);
|
|
25935
26173
|
});
|
|
25936
26174
|
}
|
|
25937
26175
|
getFollows(params2, opts) {
|
|
25938
26176
|
return this._service.xrpc.call("app.bsky.graph.getFollows", params2, void 0, opts).catch((e) => {
|
|
25939
|
-
throw
|
|
26177
|
+
throw toKnownErr86(e);
|
|
25940
26178
|
});
|
|
25941
26179
|
}
|
|
25942
26180
|
getList(params2, opts) {
|
|
25943
26181
|
return this._service.xrpc.call("app.bsky.graph.getList", params2, void 0, opts).catch((e) => {
|
|
25944
|
-
throw
|
|
26182
|
+
throw toKnownErr87(e);
|
|
25945
26183
|
});
|
|
25946
26184
|
}
|
|
25947
26185
|
getListBlocks(params2, opts) {
|
|
25948
26186
|
return this._service.xrpc.call("app.bsky.graph.getListBlocks", params2, void 0, opts).catch((e) => {
|
|
25949
|
-
throw
|
|
26187
|
+
throw toKnownErr88(e);
|
|
25950
26188
|
});
|
|
25951
26189
|
}
|
|
25952
26190
|
getListMutes(params2, opts) {
|
|
25953
26191
|
return this._service.xrpc.call("app.bsky.graph.getListMutes", params2, void 0, opts).catch((e) => {
|
|
25954
|
-
throw
|
|
26192
|
+
throw toKnownErr89(e);
|
|
25955
26193
|
});
|
|
25956
26194
|
}
|
|
25957
26195
|
getLists(params2, opts) {
|
|
25958
26196
|
return this._service.xrpc.call("app.bsky.graph.getLists", params2, void 0, opts).catch((e) => {
|
|
25959
|
-
throw
|
|
26197
|
+
throw toKnownErr90(e);
|
|
25960
26198
|
});
|
|
25961
26199
|
}
|
|
25962
26200
|
getMutes(params2, opts) {
|
|
25963
26201
|
return this._service.xrpc.call("app.bsky.graph.getMutes", params2, void 0, opts).catch((e) => {
|
|
25964
|
-
throw
|
|
26202
|
+
throw toKnownErr91(e);
|
|
25965
26203
|
});
|
|
25966
26204
|
}
|
|
25967
26205
|
getSuggestedFollowsByActor(params2, opts) {
|
|
25968
26206
|
return this._service.xrpc.call("app.bsky.graph.getSuggestedFollowsByActor", params2, void 0, opts).catch((e) => {
|
|
25969
|
-
throw
|
|
26207
|
+
throw toKnownErr92(e);
|
|
25970
26208
|
});
|
|
25971
26209
|
}
|
|
25972
26210
|
muteActor(data, opts) {
|
|
25973
26211
|
return this._service.xrpc.call("app.bsky.graph.muteActor", opts?.qp, data, opts).catch((e) => {
|
|
25974
|
-
throw
|
|
26212
|
+
throw toKnownErr93(e);
|
|
25975
26213
|
});
|
|
25976
26214
|
}
|
|
25977
26215
|
muteActorList(data, opts) {
|
|
25978
26216
|
return this._service.xrpc.call("app.bsky.graph.muteActorList", opts?.qp, data, opts).catch((e) => {
|
|
25979
|
-
throw
|
|
26217
|
+
throw toKnownErr94(e);
|
|
25980
26218
|
});
|
|
25981
26219
|
}
|
|
25982
26220
|
unmuteActor(data, opts) {
|
|
25983
26221
|
return this._service.xrpc.call("app.bsky.graph.unmuteActor", opts?.qp, data, opts).catch((e) => {
|
|
25984
|
-
throw
|
|
26222
|
+
throw toKnownErr95(e);
|
|
25985
26223
|
});
|
|
25986
26224
|
}
|
|
25987
26225
|
unmuteActorList(data, opts) {
|
|
25988
26226
|
return this._service.xrpc.call("app.bsky.graph.unmuteActorList", opts?.qp, data, opts).catch((e) => {
|
|
25989
|
-
throw
|
|
26227
|
+
throw toKnownErr96(e);
|
|
25990
26228
|
});
|
|
25991
26229
|
}
|
|
25992
26230
|
};
|
|
@@ -26131,22 +26369,22 @@ var NotificationNS = class {
|
|
|
26131
26369
|
}
|
|
26132
26370
|
getUnreadCount(params2, opts) {
|
|
26133
26371
|
return this._service.xrpc.call("app.bsky.notification.getUnreadCount", params2, void 0, opts).catch((e) => {
|
|
26134
|
-
throw
|
|
26372
|
+
throw toKnownErr97(e);
|
|
26135
26373
|
});
|
|
26136
26374
|
}
|
|
26137
26375
|
listNotifications(params2, opts) {
|
|
26138
26376
|
return this._service.xrpc.call("app.bsky.notification.listNotifications", params2, void 0, opts).catch((e) => {
|
|
26139
|
-
throw
|
|
26377
|
+
throw toKnownErr98(e);
|
|
26140
26378
|
});
|
|
26141
26379
|
}
|
|
26142
26380
|
registerPush(data, opts) {
|
|
26143
26381
|
return this._service.xrpc.call("app.bsky.notification.registerPush", opts?.qp, data, opts).catch((e) => {
|
|
26144
|
-
throw
|
|
26382
|
+
throw toKnownErr99(e);
|
|
26145
26383
|
});
|
|
26146
26384
|
}
|
|
26147
26385
|
updateSeen(data, opts) {
|
|
26148
26386
|
return this._service.xrpc.call("app.bsky.notification.updateSeen", opts?.qp, data, opts).catch((e) => {
|
|
26149
|
-
throw
|
|
26387
|
+
throw toKnownErr100(e);
|
|
26150
26388
|
});
|
|
26151
26389
|
}
|
|
26152
26390
|
};
|
|
@@ -26161,27 +26399,27 @@ var UnspeccedNS = class {
|
|
|
26161
26399
|
}
|
|
26162
26400
|
getPopular(params2, opts) {
|
|
26163
26401
|
return this._service.xrpc.call("app.bsky.unspecced.getPopular", params2, void 0, opts).catch((e) => {
|
|
26164
|
-
throw
|
|
26402
|
+
throw toKnownErr101(e);
|
|
26165
26403
|
});
|
|
26166
26404
|
}
|
|
26167
26405
|
getPopularFeedGenerators(params2, opts) {
|
|
26168
26406
|
return this._service.xrpc.call("app.bsky.unspecced.getPopularFeedGenerators", params2, void 0, opts).catch((e) => {
|
|
26169
|
-
throw
|
|
26407
|
+
throw toKnownErr102(e);
|
|
26170
26408
|
});
|
|
26171
26409
|
}
|
|
26172
26410
|
getTimelineSkeleton(params2, opts) {
|
|
26173
26411
|
return this._service.xrpc.call("app.bsky.unspecced.getTimelineSkeleton", params2, void 0, opts).catch((e) => {
|
|
26174
|
-
throw
|
|
26412
|
+
throw toKnownErr103(e);
|
|
26175
26413
|
});
|
|
26176
26414
|
}
|
|
26177
26415
|
searchActorsSkeleton(params2, opts) {
|
|
26178
26416
|
return this._service.xrpc.call("app.bsky.unspecced.searchActorsSkeleton", params2, void 0, opts).catch((e) => {
|
|
26179
|
-
throw
|
|
26417
|
+
throw toKnownErr104(e);
|
|
26180
26418
|
});
|
|
26181
26419
|
}
|
|
26182
26420
|
searchPostsSkeleton(params2, opts) {
|
|
26183
26421
|
return this._service.xrpc.call("app.bsky.unspecced.searchPostsSkeleton", params2, void 0, opts).catch((e) => {
|
|
26184
|
-
throw
|
|
26422
|
+
throw toKnownErr105(e);
|
|
26185
26423
|
});
|
|
26186
26424
|
}
|
|
26187
26425
|
};
|
|
@@ -26225,7 +26463,8 @@ var _AtpAgent = class {
|
|
|
26225
26463
|
refreshJwt: res.data.refreshJwt,
|
|
26226
26464
|
handle: res.data.handle,
|
|
26227
26465
|
did: res.data.did,
|
|
26228
|
-
email: opts.email
|
|
26466
|
+
email: opts.email,
|
|
26467
|
+
emailConfirmed: false
|
|
26229
26468
|
};
|
|
26230
26469
|
return res;
|
|
26231
26470
|
} catch (e) {
|
|
@@ -26250,7 +26489,8 @@ var _AtpAgent = class {
|
|
|
26250
26489
|
refreshJwt: res.data.refreshJwt,
|
|
26251
26490
|
handle: res.data.handle,
|
|
26252
26491
|
did: res.data.did,
|
|
26253
|
-
email: res.data.email
|
|
26492
|
+
email: res.data.email,
|
|
26493
|
+
emailConfirmed: res.data.emailConfirmed
|
|
26254
26494
|
};
|
|
26255
26495
|
return res;
|
|
26256
26496
|
} catch (e) {
|
|
@@ -26273,6 +26513,7 @@ var _AtpAgent = class {
|
|
|
26273
26513
|
}
|
|
26274
26514
|
this.session.email = res.data.email;
|
|
26275
26515
|
this.session.handle = res.data.handle;
|
|
26516
|
+
this.session.emailConfirmed = res.data.emailConfirmed;
|
|
26276
26517
|
return res;
|
|
26277
26518
|
} catch (e) {
|
|
26278
26519
|
this.session = void 0;
|
|
@@ -26334,6 +26575,7 @@ var _AtpAgent = class {
|
|
|
26334
26575
|
this._persistSession?.("expired", void 0);
|
|
26335
26576
|
} else if (isNewSessionObject(this._baseClient, res.body)) {
|
|
26336
26577
|
this.session = {
|
|
26578
|
+
...this.session || {},
|
|
26337
26579
|
accessJwt: res.body.accessJwt,
|
|
26338
26580
|
refreshJwt: res.body.refreshJwt,
|
|
26339
26581
|
handle: res.body.handle,
|