@atproto/api 0.6.19 → 0.6.21

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.
Files changed (49) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +4 -0
  3. package/definitions/moderation-behaviors.d.ts +1 -0
  4. package/definitions/profile-moderation-behaviors.json +25 -0
  5. package/dist/agent.d.ts +2 -0
  6. package/dist/bsky-agent.d.ts +7 -0
  7. package/dist/client/index.d.ts +15 -0
  8. package/dist/client/lexicons.d.ts +142 -0
  9. package/dist/client/types/app/bsky/actor/defs.d.ts +1 -0
  10. package/dist/client/types/com/atproto/server/confirmEmail.d.ts +30 -0
  11. package/dist/client/types/com/atproto/server/createAccount.d.ts +2 -0
  12. package/dist/client/types/com/atproto/server/createSession.d.ts +2 -0
  13. package/dist/client/types/com/atproto/server/getSession.d.ts +1 -0
  14. package/dist/client/types/com/atproto/server/refreshSession.d.ts +1 -0
  15. package/dist/client/types/com/atproto/server/requestEmailConfirmation.d.ts +13 -0
  16. package/dist/client/types/com/atproto/server/requestEmailUpdate.d.ts +18 -0
  17. package/dist/client/types/com/atproto/server/reserveSigningKey.d.ts +18 -0
  18. package/dist/client/types/com/atproto/server/updateEmail.d.ts +27 -0
  19. package/dist/client/types/com/atproto/sync/listRepos.d.ts +1 -0
  20. package/dist/index.js +754 -321
  21. package/dist/index.js.map +3 -3
  22. package/dist/moderation/accumulator.d.ts +1 -0
  23. package/dist/types.d.ts +1 -0
  24. package/docs/moderation-behaviors/profiles.md +17 -0
  25. package/package.json +8 -7
  26. package/src/agent.ts +32 -1
  27. package/src/bsky-agent.ts +43 -0
  28. package/src/client/index.ts +65 -0
  29. package/src/client/lexicons.ts +166 -1
  30. package/src/client/types/app/bsky/actor/defs.ts +1 -0
  31. package/src/client/types/com/atproto/server/confirmEmail.ts +61 -0
  32. package/src/client/types/com/atproto/server/createAccount.ts +2 -0
  33. package/src/client/types/com/atproto/server/createSession.ts +2 -0
  34. package/src/client/types/com/atproto/server/getSession.ts +1 -0
  35. package/src/client/types/com/atproto/server/refreshSession.ts +1 -0
  36. package/src/client/types/com/atproto/server/requestEmailConfirmation.ts +28 -0
  37. package/src/client/types/com/atproto/server/requestEmailUpdate.ts +34 -0
  38. package/src/client/types/com/atproto/server/reserveSigningKey.ts +35 -0
  39. package/src/client/types/com/atproto/server/updateEmail.ts +55 -0
  40. package/src/client/types/com/atproto/sync/listRepos.ts +1 -0
  41. package/src/moderation/accumulator.ts +13 -0
  42. package/src/moderation/subjects/account.ts +7 -1
  43. package/src/types.ts +1 -0
  44. package/tests/agent.test.ts +27 -21
  45. package/tests/bsky-agent.test.ts +19 -25
  46. package/tests/errors.test.ts +5 -11
  47. package/tests/rich-text-detection.test.ts +3 -3
  48. package/tests/util/index.ts +3 -0
  49. package/tests/util/moderation-behavior.ts +10 -2
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,13 @@ __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,
9004
+ ComAtprotoServerReserveSigningKey: () => reserveSigningKey_exports,
9001
9005
  ComAtprotoServerResetPassword: () => resetPassword_exports,
9002
9006
  ComAtprotoServerRevokeAppPassword: () => revokeAppPassword_exports,
9007
+ ComAtprotoServerUpdateEmail: () => updateEmail_exports,
9003
9008
  ComAtprotoSyncGetBlob: () => getBlob_exports,
9004
9009
  ComAtprotoSyncGetBlocks: () => getBlocks_exports,
9005
9010
  ComAtprotoSyncGetCheckout: () => getCheckout_exports,
@@ -14182,6 +14187,77 @@ var validateLanguage = (langTag) => {
14182
14187
  };
14183
14188
  var bcp47Regexp = /^((?<grandfathered>(en-GB-oed|i-ami|i-bnn|i-default|i-enochian|i-hak|i-klingon|i-lux|i-mingo|i-navajo|i-pwn|i-tao|i-tay|i-tsu|sgn-BE-FR|sgn-BE-NL|sgn-CH-DE)|(art-lojban|cel-gaulish|no-bok|no-nyn|zh-guoyu|zh-hakka|zh-min|zh-min-nan|zh-xiang))|((?<language>([A-Za-z]{2,3}(-(?<extlang>[A-Za-z]{3}(-[A-Za-z]{3}){0,2}))?)|[A-Za-z]{4}|[A-Za-z]{5,8})(-(?<script>[A-Za-z]{4}))?(-(?<region>[A-Za-z]{2}|[0-9]{3}))?(-(?<variant>[A-Za-z0-9]{5,8}|[0-9][A-Za-z0-9]{3}))*(-(?<extension>[0-9A-WY-Za-wy-z](-[A-Za-z0-9]{2,8})+))*(-(?<privateUseA>x(-[A-Za-z0-9]{1,8})+))?)|(?<privateUseB>x(-[A-Za-z0-9]{1,8})+))$/;
14184
14189
 
14190
+ // ../common-web/src/did-doc.ts
14191
+ var isValidDidDoc = (doc) => {
14192
+ return didDocument.safeParse(doc).success;
14193
+ };
14194
+ var getDid = (doc) => {
14195
+ const id = doc.id;
14196
+ if (typeof id !== "string") {
14197
+ throw new Error("No `id` on document");
14198
+ }
14199
+ return id;
14200
+ };
14201
+ var getPdsEndpoint = (doc) => {
14202
+ return getServiceEndpoint(doc, {
14203
+ id: "#atproto_pds",
14204
+ type: "AtprotoPersonalDataServer"
14205
+ });
14206
+ };
14207
+ var getServiceEndpoint = (doc, opts) => {
14208
+ const did2 = getDid(doc);
14209
+ let services = doc.service;
14210
+ if (!services)
14211
+ return void 0;
14212
+ if (typeof services !== "object")
14213
+ return void 0;
14214
+ if (!Array.isArray(services)) {
14215
+ services = [services];
14216
+ }
14217
+ const found = services.find((service2) => service2.id === opts.id || service2.id === `${did2}${opts.id}`);
14218
+ if (!found)
14219
+ return void 0;
14220
+ if (found.type !== opts.type) {
14221
+ return void 0;
14222
+ }
14223
+ if (typeof found.serviceEndpoint !== "string") {
14224
+ return void 0;
14225
+ }
14226
+ return validateUrl(found.serviceEndpoint);
14227
+ };
14228
+ var validateUrl = (urlStr) => {
14229
+ let url;
14230
+ try {
14231
+ url = new URL(urlStr);
14232
+ } catch {
14233
+ return void 0;
14234
+ }
14235
+ if (!["http:", "https:"].includes(url.protocol)) {
14236
+ return void 0;
14237
+ } else if (!url.hostname) {
14238
+ return void 0;
14239
+ } else {
14240
+ return urlStr;
14241
+ }
14242
+ };
14243
+ var verificationMethod = z.object({
14244
+ id: z.string(),
14245
+ type: z.string(),
14246
+ controller: z.string(),
14247
+ publicKeyMultibase: z.string().optional()
14248
+ });
14249
+ var service = z.object({
14250
+ id: z.string(),
14251
+ type: z.string(),
14252
+ serviceEndpoint: z.union([z.string(), z.record(z.unknown())])
14253
+ });
14254
+ var didDocument = z.object({
14255
+ id: z.string(),
14256
+ alsoKnownAs: z.array(z.string()).optional(),
14257
+ verificationMethod: z.array(verificationMethod).optional(),
14258
+ service: z.array(service).optional()
14259
+ });
14260
+
14185
14261
  // ../lexicon/src/validators/formats.ts
14186
14262
  var import_iso_datestring_validator = __toESM(require_dist());
14187
14263
  function datetime(path, value) {
@@ -17815,6 +17891,45 @@ var schemaDict = {
17815
17891
  }
17816
17892
  }
17817
17893
  },
17894
+ ComAtprotoServerConfirmEmail: {
17895
+ lexicon: 1,
17896
+ id: "com.atproto.server.confirmEmail",
17897
+ defs: {
17898
+ main: {
17899
+ type: "procedure",
17900
+ description: "Confirm an email using a token from com.atproto.server.requestEmailConfirmation.",
17901
+ input: {
17902
+ encoding: "application/json",
17903
+ schema: {
17904
+ type: "object",
17905
+ required: ["email", "token"],
17906
+ properties: {
17907
+ email: {
17908
+ type: "string"
17909
+ },
17910
+ token: {
17911
+ type: "string"
17912
+ }
17913
+ }
17914
+ }
17915
+ },
17916
+ errors: [
17917
+ {
17918
+ name: "AccountNotFound"
17919
+ },
17920
+ {
17921
+ name: "ExpiredToken"
17922
+ },
17923
+ {
17924
+ name: "InvalidToken"
17925
+ },
17926
+ {
17927
+ name: "InvalidEmail"
17928
+ }
17929
+ ]
17930
+ }
17931
+ }
17932
+ },
17818
17933
  ComAtprotoServerCreateAccount: {
17819
17934
  lexicon: 1,
17820
17935
  id: "com.atproto.server.createAccount",
@@ -17847,6 +17962,9 @@ var schemaDict = {
17847
17962
  },
17848
17963
  recoveryKey: {
17849
17964
  type: "string"
17965
+ },
17966
+ plcOp: {
17967
+ type: "bytes"
17850
17968
  }
17851
17969
  }
17852
17970
  }
@@ -17870,6 +17988,9 @@ var schemaDict = {
17870
17988
  did: {
17871
17989
  type: "string",
17872
17990
  format: "did"
17991
+ },
17992
+ didDoc: {
17993
+ type: "unknown"
17873
17994
  }
17874
17995
  }
17875
17996
  }
@@ -18095,8 +18216,14 @@ var schemaDict = {
18095
18216
  type: "string",
18096
18217
  format: "did"
18097
18218
  },
18219
+ didDoc: {
18220
+ type: "unknown"
18221
+ },
18098
18222
  email: {
18099
18223
  type: "string"
18224
+ },
18225
+ emailConfirmed: {
18226
+ type: "boolean"
18100
18227
  }
18101
18228
  }
18102
18229
  }
@@ -18326,6 +18453,9 @@ var schemaDict = {
18326
18453
  },
18327
18454
  email: {
18328
18455
  type: "string"
18456
+ },
18457
+ emailConfirmed: {
18458
+ type: "boolean"
18329
18459
  }
18330
18460
  }
18331
18461
  }
@@ -18403,6 +18533,9 @@ var schemaDict = {
18403
18533
  did: {
18404
18534
  type: "string",
18405
18535
  format: "did"
18536
+ },
18537
+ didDoc: {
18538
+ type: "unknown"
18406
18539
  }
18407
18540
  }
18408
18541
  }
@@ -18425,6 +18558,38 @@ var schemaDict = {
18425
18558
  }
18426
18559
  }
18427
18560
  },
18561
+ ComAtprotoServerRequestEmailConfirmation: {
18562
+ lexicon: 1,
18563
+ id: "com.atproto.server.requestEmailConfirmation",
18564
+ defs: {
18565
+ main: {
18566
+ type: "procedure",
18567
+ description: "Request an email with a code to confirm ownership of email"
18568
+ }
18569
+ }
18570
+ },
18571
+ ComAtprotoServerRequestEmailUpdate: {
18572
+ lexicon: 1,
18573
+ id: "com.atproto.server.requestEmailUpdate",
18574
+ defs: {
18575
+ main: {
18576
+ type: "procedure",
18577
+ description: "Request a token in order to update email.",
18578
+ output: {
18579
+ encoding: "application/json",
18580
+ schema: {
18581
+ type: "object",
18582
+ required: ["tokenRequired"],
18583
+ properties: {
18584
+ tokenRequired: {
18585
+ type: "boolean"
18586
+ }
18587
+ }
18588
+ }
18589
+ }
18590
+ }
18591
+ }
18592
+ },
18428
18593
  ComAtprotoServerRequestPasswordReset: {
18429
18594
  lexicon: 1,
18430
18595
  id: "com.atproto.server.requestPasswordReset",
@@ -18447,6 +18612,29 @@ var schemaDict = {
18447
18612
  }
18448
18613
  }
18449
18614
  },
18615
+ ComAtprotoServerReserveSigningKey: {
18616
+ lexicon: 1,
18617
+ id: "com.atproto.server.reserveSigningKey",
18618
+ defs: {
18619
+ main: {
18620
+ type: "procedure",
18621
+ description: "Reserve a repo signing key for account creation.",
18622
+ output: {
18623
+ encoding: "application/json",
18624
+ schema: {
18625
+ type: "object",
18626
+ required: ["signingKey"],
18627
+ properties: {
18628
+ signingKey: {
18629
+ type: "string",
18630
+ description: "Public signing key in the form of a did:key."
18631
+ }
18632
+ }
18633
+ }
18634
+ }
18635
+ }
18636
+ }
18637
+ },
18450
18638
  ComAtprotoServerResetPassword: {
18451
18639
  lexicon: 1,
18452
18640
  id: "com.atproto.server.resetPassword",
@@ -18502,6 +18690,43 @@ var schemaDict = {
18502
18690
  }
18503
18691
  }
18504
18692
  },
18693
+ ComAtprotoServerUpdateEmail: {
18694
+ lexicon: 1,
18695
+ id: "com.atproto.server.updateEmail",
18696
+ defs: {
18697
+ main: {
18698
+ type: "procedure",
18699
+ description: "Update an account's email.",
18700
+ input: {
18701
+ encoding: "application/json",
18702
+ schema: {
18703
+ type: "object",
18704
+ required: ["email"],
18705
+ properties: {
18706
+ email: {
18707
+ type: "string"
18708
+ },
18709
+ token: {
18710
+ type: "string",
18711
+ description: "Requires a token from com.atproto.sever.requestEmailUpdate if the account's email has been confirmed."
18712
+ }
18713
+ }
18714
+ }
18715
+ },
18716
+ errors: [
18717
+ {
18718
+ name: "ExpiredToken"
18719
+ },
18720
+ {
18721
+ name: "InvalidToken"
18722
+ },
18723
+ {
18724
+ name: "TokenRequired"
18725
+ }
18726
+ ]
18727
+ }
18728
+ }
18729
+ },
18505
18730
  ComAtprotoSyncGetBlob: {
18506
18731
  lexicon: 1,
18507
18732
  id: "com.atproto.sync.getBlob",
@@ -18827,7 +19052,7 @@ var schemaDict = {
18827
19052
  },
18828
19053
  repo: {
18829
19054
  type: "object",
18830
- required: ["did", "head"],
19055
+ required: ["did", "head", "rev"],
18831
19056
  properties: {
18832
19057
  did: {
18833
19058
  type: "string",
@@ -18836,6 +19061,9 @@ var schemaDict = {
18836
19061
  head: {
18837
19062
  type: "string",
18838
19063
  format: "cid"
19064
+ },
19065
+ rev: {
19066
+ type: "string"
18839
19067
  }
18840
19068
  }
18841
19069
  }
@@ -19236,6 +19464,10 @@ var schemaDict = {
19236
19464
  type: "string",
19237
19465
  format: "at-uri"
19238
19466
  },
19467
+ blockingByList: {
19468
+ type: "ref",
19469
+ ref: "lex:app.bsky.graph.defs#listViewBasic"
19470
+ },
19239
19471
  following: {
19240
19472
  type: "string",
19241
19473
  format: "at-uri"
@@ -23156,6 +23388,49 @@ function toKnownErr29(e) {
23156
23388
  return e;
23157
23389
  }
23158
23390
 
23391
+ // src/client/types/com/atproto/server/confirmEmail.ts
23392
+ var confirmEmail_exports = {};
23393
+ __export(confirmEmail_exports, {
23394
+ AccountNotFoundError: () => AccountNotFoundError,
23395
+ ExpiredTokenError: () => ExpiredTokenError,
23396
+ InvalidEmailError: () => InvalidEmailError,
23397
+ InvalidTokenError: () => InvalidTokenError,
23398
+ toKnownErr: () => toKnownErr30
23399
+ });
23400
+ var AccountNotFoundError = class extends XRPCError {
23401
+ constructor(src2) {
23402
+ super(src2.status, src2.error, src2.message, src2.headers);
23403
+ }
23404
+ };
23405
+ var ExpiredTokenError = class extends XRPCError {
23406
+ constructor(src2) {
23407
+ super(src2.status, src2.error, src2.message, src2.headers);
23408
+ }
23409
+ };
23410
+ var InvalidTokenError = class extends XRPCError {
23411
+ constructor(src2) {
23412
+ super(src2.status, src2.error, src2.message, src2.headers);
23413
+ }
23414
+ };
23415
+ var InvalidEmailError = class extends XRPCError {
23416
+ constructor(src2) {
23417
+ super(src2.status, src2.error, src2.message, src2.headers);
23418
+ }
23419
+ };
23420
+ function toKnownErr30(e) {
23421
+ if (e instanceof XRPCError) {
23422
+ if (e.error === "AccountNotFound")
23423
+ return new AccountNotFoundError(e);
23424
+ if (e.error === "ExpiredToken")
23425
+ return new ExpiredTokenError(e);
23426
+ if (e.error === "InvalidToken")
23427
+ return new InvalidTokenError(e);
23428
+ if (e.error === "InvalidEmail")
23429
+ return new InvalidEmailError(e);
23430
+ }
23431
+ return e;
23432
+ }
23433
+
23159
23434
  // src/client/types/com/atproto/server/createAccount.ts
23160
23435
  var createAccount_exports = {};
23161
23436
  __export(createAccount_exports, {
@@ -23166,7 +23441,7 @@ __export(createAccount_exports, {
23166
23441
  InvalidPasswordError: () => InvalidPasswordError,
23167
23442
  UnresolvableDidError: () => UnresolvableDidError,
23168
23443
  UnsupportedDomainError: () => UnsupportedDomainError,
23169
- toKnownErr: () => toKnownErr30
23444
+ toKnownErr: () => toKnownErr31
23170
23445
  });
23171
23446
  var InvalidHandleError2 = class extends XRPCError {
23172
23447
  constructor(src2) {
@@ -23203,7 +23478,7 @@ var IncompatibleDidDocError = class extends XRPCError {
23203
23478
  super(src2.status, src2.error, src2.message, src2.headers);
23204
23479
  }
23205
23480
  };
23206
- function toKnownErr30(e) {
23481
+ function toKnownErr31(e) {
23207
23482
  if (e instanceof XRPCError) {
23208
23483
  if (e.error === "InvalidHandle")
23209
23484
  return new InvalidHandleError2(e);
@@ -23228,7 +23503,7 @@ var createAppPassword_exports = {};
23228
23503
  __export(createAppPassword_exports, {
23229
23504
  AccountTakedownError: () => AccountTakedownError,
23230
23505
  isAppPassword: () => isAppPassword,
23231
- toKnownErr: () => toKnownErr31,
23506
+ toKnownErr: () => toKnownErr32,
23232
23507
  validateAppPassword: () => validateAppPassword
23233
23508
  });
23234
23509
  var AccountTakedownError = class extends XRPCError {
@@ -23236,7 +23511,7 @@ var AccountTakedownError = class extends XRPCError {
23236
23511
  super(src2.status, src2.error, src2.message, src2.headers);
23237
23512
  }
23238
23513
  };
23239
- function toKnownErr31(e) {
23514
+ function toKnownErr32(e) {
23240
23515
  if (e instanceof XRPCError) {
23241
23516
  if (e.error === "AccountTakedown")
23242
23517
  return new AccountTakedownError(e);
@@ -23253,9 +23528,9 @@ function validateAppPassword(v) {
23253
23528
  // src/client/types/com/atproto/server/createInviteCode.ts
23254
23529
  var createInviteCode_exports = {};
23255
23530
  __export(createInviteCode_exports, {
23256
- toKnownErr: () => toKnownErr32
23531
+ toKnownErr: () => toKnownErr33
23257
23532
  });
23258
- function toKnownErr32(e) {
23533
+ function toKnownErr33(e) {
23259
23534
  if (e instanceof XRPCError) {
23260
23535
  }
23261
23536
  return e;
@@ -23265,10 +23540,10 @@ function toKnownErr32(e) {
23265
23540
  var createInviteCodes_exports = {};
23266
23541
  __export(createInviteCodes_exports, {
23267
23542
  isAccountCodes: () => isAccountCodes,
23268
- toKnownErr: () => toKnownErr33,
23543
+ toKnownErr: () => toKnownErr34,
23269
23544
  validateAccountCodes: () => validateAccountCodes
23270
23545
  });
23271
- function toKnownErr33(e) {
23546
+ function toKnownErr34(e) {
23272
23547
  if (e instanceof XRPCError) {
23273
23548
  }
23274
23549
  return e;
@@ -23284,14 +23559,14 @@ function validateAccountCodes(v) {
23284
23559
  var createSession_exports = {};
23285
23560
  __export(createSession_exports, {
23286
23561
  AccountTakedownError: () => AccountTakedownError2,
23287
- toKnownErr: () => toKnownErr34
23562
+ toKnownErr: () => toKnownErr35
23288
23563
  });
23289
23564
  var AccountTakedownError2 = class extends XRPCError {
23290
23565
  constructor(src2) {
23291
23566
  super(src2.status, src2.error, src2.message, src2.headers);
23292
23567
  }
23293
23568
  };
23294
- function toKnownErr34(e) {
23569
+ function toKnownErr35(e) {
23295
23570
  if (e instanceof XRPCError) {
23296
23571
  if (e.error === "AccountTakedown")
23297
23572
  return new AccountTakedownError2(e);
@@ -23302,26 +23577,26 @@ function toKnownErr34(e) {
23302
23577
  // src/client/types/com/atproto/server/deleteAccount.ts
23303
23578
  var deleteAccount_exports = {};
23304
23579
  __export(deleteAccount_exports, {
23305
- ExpiredTokenError: () => ExpiredTokenError,
23306
- InvalidTokenError: () => InvalidTokenError,
23307
- toKnownErr: () => toKnownErr35
23580
+ ExpiredTokenError: () => ExpiredTokenError2,
23581
+ InvalidTokenError: () => InvalidTokenError2,
23582
+ toKnownErr: () => toKnownErr36
23308
23583
  });
23309
- var ExpiredTokenError = class extends XRPCError {
23584
+ var ExpiredTokenError2 = class extends XRPCError {
23310
23585
  constructor(src2) {
23311
23586
  super(src2.status, src2.error, src2.message, src2.headers);
23312
23587
  }
23313
23588
  };
23314
- var InvalidTokenError = class extends XRPCError {
23589
+ var InvalidTokenError2 = class extends XRPCError {
23315
23590
  constructor(src2) {
23316
23591
  super(src2.status, src2.error, src2.message, src2.headers);
23317
23592
  }
23318
23593
  };
23319
- function toKnownErr35(e) {
23594
+ function toKnownErr36(e) {
23320
23595
  if (e instanceof XRPCError) {
23321
23596
  if (e.error === "ExpiredToken")
23322
- return new ExpiredTokenError(e);
23597
+ return new ExpiredTokenError2(e);
23323
23598
  if (e.error === "InvalidToken")
23324
- return new InvalidTokenError(e);
23599
+ return new InvalidTokenError2(e);
23325
23600
  }
23326
23601
  return e;
23327
23602
  }
@@ -23329,9 +23604,9 @@ function toKnownErr35(e) {
23329
23604
  // src/client/types/com/atproto/server/deleteSession.ts
23330
23605
  var deleteSession_exports = {};
23331
23606
  __export(deleteSession_exports, {
23332
- toKnownErr: () => toKnownErr36
23607
+ toKnownErr: () => toKnownErr37
23333
23608
  });
23334
- function toKnownErr36(e) {
23609
+ function toKnownErr37(e) {
23335
23610
  if (e instanceof XRPCError) {
23336
23611
  }
23337
23612
  return e;
@@ -23341,10 +23616,10 @@ function toKnownErr36(e) {
23341
23616
  var describeServer_exports = {};
23342
23617
  __export(describeServer_exports, {
23343
23618
  isLinks: () => isLinks,
23344
- toKnownErr: () => toKnownErr37,
23619
+ toKnownErr: () => toKnownErr38,
23345
23620
  validateLinks: () => validateLinks
23346
23621
  });
23347
- function toKnownErr37(e) {
23622
+ function toKnownErr38(e) {
23348
23623
  if (e instanceof XRPCError) {
23349
23624
  }
23350
23625
  return e;
@@ -23360,14 +23635,14 @@ function validateLinks(v) {
23360
23635
  var getAccountInviteCodes_exports = {};
23361
23636
  __export(getAccountInviteCodes_exports, {
23362
23637
  DuplicateCreateError: () => DuplicateCreateError,
23363
- toKnownErr: () => toKnownErr38
23638
+ toKnownErr: () => toKnownErr39
23364
23639
  });
23365
23640
  var DuplicateCreateError = class extends XRPCError {
23366
23641
  constructor(src2) {
23367
23642
  super(src2.status, src2.error, src2.message, src2.headers);
23368
23643
  }
23369
23644
  };
23370
- function toKnownErr38(e) {
23645
+ function toKnownErr39(e) {
23371
23646
  if (e instanceof XRPCError) {
23372
23647
  if (e.error === "DuplicateCreate")
23373
23648
  return new DuplicateCreateError(e);
@@ -23378,9 +23653,9 @@ function toKnownErr38(e) {
23378
23653
  // src/client/types/com/atproto/server/getSession.ts
23379
23654
  var getSession_exports = {};
23380
23655
  __export(getSession_exports, {
23381
- toKnownErr: () => toKnownErr39
23656
+ toKnownErr: () => toKnownErr40
23382
23657
  });
23383
- function toKnownErr39(e) {
23658
+ function toKnownErr40(e) {
23384
23659
  if (e instanceof XRPCError) {
23385
23660
  }
23386
23661
  return e;
@@ -23391,7 +23666,7 @@ var listAppPasswords_exports = {};
23391
23666
  __export(listAppPasswords_exports, {
23392
23667
  AccountTakedownError: () => AccountTakedownError3,
23393
23668
  isAppPassword: () => isAppPassword2,
23394
- toKnownErr: () => toKnownErr40,
23669
+ toKnownErr: () => toKnownErr41,
23395
23670
  validateAppPassword: () => validateAppPassword2
23396
23671
  });
23397
23672
  var AccountTakedownError3 = class extends XRPCError {
@@ -23399,7 +23674,7 @@ var AccountTakedownError3 = class extends XRPCError {
23399
23674
  super(src2.status, src2.error, src2.message, src2.headers);
23400
23675
  }
23401
23676
  };
23402
- function toKnownErr40(e) {
23677
+ function toKnownErr41(e) {
23403
23678
  if (e instanceof XRPCError) {
23404
23679
  if (e.error === "AccountTakedown")
23405
23680
  return new AccountTakedownError3(e);
@@ -23417,14 +23692,14 @@ function validateAppPassword2(v) {
23417
23692
  var refreshSession_exports = {};
23418
23693
  __export(refreshSession_exports, {
23419
23694
  AccountTakedownError: () => AccountTakedownError4,
23420
- toKnownErr: () => toKnownErr41
23695
+ toKnownErr: () => toKnownErr42
23421
23696
  });
23422
23697
  var AccountTakedownError4 = class extends XRPCError {
23423
23698
  constructor(src2) {
23424
23699
  super(src2.status, src2.error, src2.message, src2.headers);
23425
23700
  }
23426
23701
  };
23427
- function toKnownErr41(e) {
23702
+ function toKnownErr42(e) {
23428
23703
  if (e instanceof XRPCError) {
23429
23704
  if (e.error === "AccountTakedown")
23430
23705
  return new AccountTakedownError4(e);
@@ -23435,9 +23710,31 @@ function toKnownErr41(e) {
23435
23710
  // src/client/types/com/atproto/server/requestAccountDelete.ts
23436
23711
  var requestAccountDelete_exports = {};
23437
23712
  __export(requestAccountDelete_exports, {
23438
- toKnownErr: () => toKnownErr42
23713
+ toKnownErr: () => toKnownErr43
23439
23714
  });
23440
- function toKnownErr42(e) {
23715
+ function toKnownErr43(e) {
23716
+ if (e instanceof XRPCError) {
23717
+ }
23718
+ return e;
23719
+ }
23720
+
23721
+ // src/client/types/com/atproto/server/requestEmailConfirmation.ts
23722
+ var requestEmailConfirmation_exports = {};
23723
+ __export(requestEmailConfirmation_exports, {
23724
+ toKnownErr: () => toKnownErr44
23725
+ });
23726
+ function toKnownErr44(e) {
23727
+ if (e instanceof XRPCError) {
23728
+ }
23729
+ return e;
23730
+ }
23731
+
23732
+ // src/client/types/com/atproto/server/requestEmailUpdate.ts
23733
+ var requestEmailUpdate_exports = {};
23734
+ __export(requestEmailUpdate_exports, {
23735
+ toKnownErr: () => toKnownErr45
23736
+ });
23737
+ function toKnownErr45(e) {
23441
23738
  if (e instanceof XRPCError) {
23442
23739
  }
23443
23740
  return e;
@@ -23446,37 +23743,48 @@ function toKnownErr42(e) {
23446
23743
  // src/client/types/com/atproto/server/requestPasswordReset.ts
23447
23744
  var requestPasswordReset_exports = {};
23448
23745
  __export(requestPasswordReset_exports, {
23449
- toKnownErr: () => toKnownErr43
23746
+ toKnownErr: () => toKnownErr46
23450
23747
  });
23451
- function toKnownErr43(e) {
23748
+ function toKnownErr46(e) {
23452
23749
  if (e instanceof XRPCError) {
23453
23750
  }
23454
23751
  return e;
23455
23752
  }
23456
23753
 
23457
- // src/client/types/com/atproto/server/resetPassword.ts
23458
- var resetPassword_exports = {};
23459
- __export(resetPassword_exports, {
23460
- ExpiredTokenError: () => ExpiredTokenError2,
23461
- InvalidTokenError: () => InvalidTokenError2,
23462
- toKnownErr: () => toKnownErr44
23754
+ // src/client/types/com/atproto/server/reserveSigningKey.ts
23755
+ var reserveSigningKey_exports = {};
23756
+ __export(reserveSigningKey_exports, {
23757
+ toKnownErr: () => toKnownErr47
23463
23758
  });
23464
- var ExpiredTokenError2 = class extends XRPCError {
23759
+ function toKnownErr47(e) {
23760
+ if (e instanceof XRPCError) {
23761
+ }
23762
+ return e;
23763
+ }
23764
+
23765
+ // src/client/types/com/atproto/server/resetPassword.ts
23766
+ var resetPassword_exports = {};
23767
+ __export(resetPassword_exports, {
23768
+ ExpiredTokenError: () => ExpiredTokenError3,
23769
+ InvalidTokenError: () => InvalidTokenError3,
23770
+ toKnownErr: () => toKnownErr48
23771
+ });
23772
+ var ExpiredTokenError3 = class extends XRPCError {
23465
23773
  constructor(src2) {
23466
23774
  super(src2.status, src2.error, src2.message, src2.headers);
23467
23775
  }
23468
23776
  };
23469
- var InvalidTokenError2 = class extends XRPCError {
23777
+ var InvalidTokenError3 = class extends XRPCError {
23470
23778
  constructor(src2) {
23471
23779
  super(src2.status, src2.error, src2.message, src2.headers);
23472
23780
  }
23473
23781
  };
23474
- function toKnownErr44(e) {
23782
+ function toKnownErr48(e) {
23475
23783
  if (e instanceof XRPCError) {
23476
23784
  if (e.error === "ExpiredToken")
23477
- return new ExpiredTokenError2(e);
23785
+ return new ExpiredTokenError3(e);
23478
23786
  if (e.error === "InvalidToken")
23479
- return new InvalidTokenError2(e);
23787
+ return new InvalidTokenError3(e);
23480
23788
  }
23481
23789
  return e;
23482
23790
  }
@@ -23484,10 +23792,45 @@ function toKnownErr44(e) {
23484
23792
  // src/client/types/com/atproto/server/revokeAppPassword.ts
23485
23793
  var revokeAppPassword_exports = {};
23486
23794
  __export(revokeAppPassword_exports, {
23487
- toKnownErr: () => toKnownErr45
23795
+ toKnownErr: () => toKnownErr49
23488
23796
  });
23489
- function toKnownErr45(e) {
23797
+ function toKnownErr49(e) {
23798
+ if (e instanceof XRPCError) {
23799
+ }
23800
+ return e;
23801
+ }
23802
+
23803
+ // src/client/types/com/atproto/server/updateEmail.ts
23804
+ var updateEmail_exports = {};
23805
+ __export(updateEmail_exports, {
23806
+ ExpiredTokenError: () => ExpiredTokenError4,
23807
+ InvalidTokenError: () => InvalidTokenError4,
23808
+ TokenRequiredError: () => TokenRequiredError,
23809
+ toKnownErr: () => toKnownErr50
23810
+ });
23811
+ var ExpiredTokenError4 = class extends XRPCError {
23812
+ constructor(src2) {
23813
+ super(src2.status, src2.error, src2.message, src2.headers);
23814
+ }
23815
+ };
23816
+ var InvalidTokenError4 = class extends XRPCError {
23817
+ constructor(src2) {
23818
+ super(src2.status, src2.error, src2.message, src2.headers);
23819
+ }
23820
+ };
23821
+ var TokenRequiredError = class extends XRPCError {
23822
+ constructor(src2) {
23823
+ super(src2.status, src2.error, src2.message, src2.headers);
23824
+ }
23825
+ };
23826
+ function toKnownErr50(e) {
23490
23827
  if (e instanceof XRPCError) {
23828
+ if (e.error === "ExpiredToken")
23829
+ return new ExpiredTokenError4(e);
23830
+ if (e.error === "InvalidToken")
23831
+ return new InvalidTokenError4(e);
23832
+ if (e.error === "TokenRequired")
23833
+ return new TokenRequiredError(e);
23491
23834
  }
23492
23835
  return e;
23493
23836
  }
@@ -23495,9 +23838,9 @@ function toKnownErr45(e) {
23495
23838
  // src/client/types/com/atproto/sync/getBlob.ts
23496
23839
  var getBlob_exports = {};
23497
23840
  __export(getBlob_exports, {
23498
- toKnownErr: () => toKnownErr46
23841
+ toKnownErr: () => toKnownErr51
23499
23842
  });
23500
- function toKnownErr46(e) {
23843
+ function toKnownErr51(e) {
23501
23844
  if (e instanceof XRPCError) {
23502
23845
  }
23503
23846
  return e;
@@ -23506,9 +23849,9 @@ function toKnownErr46(e) {
23506
23849
  // src/client/types/com/atproto/sync/getBlocks.ts
23507
23850
  var getBlocks_exports = {};
23508
23851
  __export(getBlocks_exports, {
23509
- toKnownErr: () => toKnownErr47
23852
+ toKnownErr: () => toKnownErr52
23510
23853
  });
23511
- function toKnownErr47(e) {
23854
+ function toKnownErr52(e) {
23512
23855
  if (e instanceof XRPCError) {
23513
23856
  }
23514
23857
  return e;
@@ -23517,9 +23860,9 @@ function toKnownErr47(e) {
23517
23860
  // src/client/types/com/atproto/sync/getCheckout.ts
23518
23861
  var getCheckout_exports = {};
23519
23862
  __export(getCheckout_exports, {
23520
- toKnownErr: () => toKnownErr48
23863
+ toKnownErr: () => toKnownErr53
23521
23864
  });
23522
- function toKnownErr48(e) {
23865
+ function toKnownErr53(e) {
23523
23866
  if (e instanceof XRPCError) {
23524
23867
  }
23525
23868
  return e;
@@ -23529,14 +23872,14 @@ function toKnownErr48(e) {
23529
23872
  var getHead_exports = {};
23530
23873
  __export(getHead_exports, {
23531
23874
  HeadNotFoundError: () => HeadNotFoundError,
23532
- toKnownErr: () => toKnownErr49
23875
+ toKnownErr: () => toKnownErr54
23533
23876
  });
23534
23877
  var HeadNotFoundError = class extends XRPCError {
23535
23878
  constructor(src2) {
23536
23879
  super(src2.status, src2.error, src2.message, src2.headers);
23537
23880
  }
23538
23881
  };
23539
- function toKnownErr49(e) {
23882
+ function toKnownErr54(e) {
23540
23883
  if (e instanceof XRPCError) {
23541
23884
  if (e.error === "HeadNotFound")
23542
23885
  return new HeadNotFoundError(e);
@@ -23548,14 +23891,14 @@ function toKnownErr49(e) {
23548
23891
  var getLatestCommit_exports = {};
23549
23892
  __export(getLatestCommit_exports, {
23550
23893
  RepoNotFoundError: () => RepoNotFoundError2,
23551
- toKnownErr: () => toKnownErr50
23894
+ toKnownErr: () => toKnownErr55
23552
23895
  });
23553
23896
  var RepoNotFoundError2 = class extends XRPCError {
23554
23897
  constructor(src2) {
23555
23898
  super(src2.status, src2.error, src2.message, src2.headers);
23556
23899
  }
23557
23900
  };
23558
- function toKnownErr50(e) {
23901
+ function toKnownErr55(e) {
23559
23902
  if (e instanceof XRPCError) {
23560
23903
  if (e.error === "RepoNotFound")
23561
23904
  return new RepoNotFoundError2(e);
@@ -23566,9 +23909,9 @@ function toKnownErr50(e) {
23566
23909
  // src/client/types/com/atproto/sync/getRecord.ts
23567
23910
  var getRecord_exports3 = {};
23568
23911
  __export(getRecord_exports3, {
23569
- toKnownErr: () => toKnownErr51
23912
+ toKnownErr: () => toKnownErr56
23570
23913
  });
23571
- function toKnownErr51(e) {
23914
+ function toKnownErr56(e) {
23572
23915
  if (e instanceof XRPCError) {
23573
23916
  }
23574
23917
  return e;
@@ -23577,9 +23920,9 @@ function toKnownErr51(e) {
23577
23920
  // src/client/types/com/atproto/sync/getRepo.ts
23578
23921
  var getRepo_exports2 = {};
23579
23922
  __export(getRepo_exports2, {
23580
- toKnownErr: () => toKnownErr52
23923
+ toKnownErr: () => toKnownErr57
23581
23924
  });
23582
- function toKnownErr52(e) {
23925
+ function toKnownErr57(e) {
23583
23926
  if (e instanceof XRPCError) {
23584
23927
  }
23585
23928
  return e;
@@ -23588,9 +23931,9 @@ function toKnownErr52(e) {
23588
23931
  // src/client/types/com/atproto/sync/listBlobs.ts
23589
23932
  var listBlobs_exports = {};
23590
23933
  __export(listBlobs_exports, {
23591
- toKnownErr: () => toKnownErr53
23934
+ toKnownErr: () => toKnownErr58
23592
23935
  });
23593
- function toKnownErr53(e) {
23936
+ function toKnownErr58(e) {
23594
23937
  if (e instanceof XRPCError) {
23595
23938
  }
23596
23939
  return e;
@@ -23600,10 +23943,10 @@ function toKnownErr53(e) {
23600
23943
  var listRepos_exports = {};
23601
23944
  __export(listRepos_exports, {
23602
23945
  isRepo: () => isRepo,
23603
- toKnownErr: () => toKnownErr54,
23946
+ toKnownErr: () => toKnownErr59,
23604
23947
  validateRepo: () => validateRepo
23605
23948
  });
23606
- function toKnownErr54(e) {
23949
+ function toKnownErr59(e) {
23607
23950
  if (e instanceof XRPCError) {
23608
23951
  }
23609
23952
  return e;
@@ -23618,9 +23961,9 @@ function validateRepo(v) {
23618
23961
  // src/client/types/com/atproto/sync/notifyOfUpdate.ts
23619
23962
  var notifyOfUpdate_exports = {};
23620
23963
  __export(notifyOfUpdate_exports, {
23621
- toKnownErr: () => toKnownErr55
23964
+ toKnownErr: () => toKnownErr60
23622
23965
  });
23623
- function toKnownErr55(e) {
23966
+ function toKnownErr60(e) {
23624
23967
  if (e instanceof XRPCError) {
23625
23968
  }
23626
23969
  return e;
@@ -23629,9 +23972,9 @@ function toKnownErr55(e) {
23629
23972
  // src/client/types/com/atproto/sync/requestCrawl.ts
23630
23973
  var requestCrawl_exports = {};
23631
23974
  __export(requestCrawl_exports, {
23632
- toKnownErr: () => toKnownErr56
23975
+ toKnownErr: () => toKnownErr61
23633
23976
  });
23634
- function toKnownErr56(e) {
23977
+ function toKnownErr61(e) {
23635
23978
  if (e instanceof XRPCError) {
23636
23979
  }
23637
23980
  return e;
@@ -23640,9 +23983,9 @@ function toKnownErr56(e) {
23640
23983
  // src/client/types/app/bsky/actor/getPreferences.ts
23641
23984
  var getPreferences_exports = {};
23642
23985
  __export(getPreferences_exports, {
23643
- toKnownErr: () => toKnownErr57
23986
+ toKnownErr: () => toKnownErr62
23644
23987
  });
23645
- function toKnownErr57(e) {
23988
+ function toKnownErr62(e) {
23646
23989
  if (e instanceof XRPCError) {
23647
23990
  }
23648
23991
  return e;
@@ -23651,9 +23994,9 @@ function toKnownErr57(e) {
23651
23994
  // src/client/types/app/bsky/actor/getProfile.ts
23652
23995
  var getProfile_exports = {};
23653
23996
  __export(getProfile_exports, {
23654
- toKnownErr: () => toKnownErr58
23997
+ toKnownErr: () => toKnownErr63
23655
23998
  });
23656
- function toKnownErr58(e) {
23999
+ function toKnownErr63(e) {
23657
24000
  if (e instanceof XRPCError) {
23658
24001
  }
23659
24002
  return e;
@@ -23662,9 +24005,9 @@ function toKnownErr58(e) {
23662
24005
  // src/client/types/app/bsky/actor/getProfiles.ts
23663
24006
  var getProfiles_exports = {};
23664
24007
  __export(getProfiles_exports, {
23665
- toKnownErr: () => toKnownErr59
24008
+ toKnownErr: () => toKnownErr64
23666
24009
  });
23667
- function toKnownErr59(e) {
24010
+ function toKnownErr64(e) {
23668
24011
  if (e instanceof XRPCError) {
23669
24012
  }
23670
24013
  return e;
@@ -23673,9 +24016,9 @@ function toKnownErr59(e) {
23673
24016
  // src/client/types/app/bsky/actor/getSuggestions.ts
23674
24017
  var getSuggestions_exports = {};
23675
24018
  __export(getSuggestions_exports, {
23676
- toKnownErr: () => toKnownErr60
24019
+ toKnownErr: () => toKnownErr65
23677
24020
  });
23678
- function toKnownErr60(e) {
24021
+ function toKnownErr65(e) {
23679
24022
  if (e instanceof XRPCError) {
23680
24023
  }
23681
24024
  return e;
@@ -23684,9 +24027,9 @@ function toKnownErr60(e) {
23684
24027
  // src/client/types/app/bsky/actor/putPreferences.ts
23685
24028
  var putPreferences_exports = {};
23686
24029
  __export(putPreferences_exports, {
23687
- toKnownErr: () => toKnownErr61
24030
+ toKnownErr: () => toKnownErr66
23688
24031
  });
23689
- function toKnownErr61(e) {
24032
+ function toKnownErr66(e) {
23690
24033
  if (e instanceof XRPCError) {
23691
24034
  }
23692
24035
  return e;
@@ -23695,9 +24038,9 @@ function toKnownErr61(e) {
23695
24038
  // src/client/types/app/bsky/actor/searchActors.ts
23696
24039
  var searchActors_exports = {};
23697
24040
  __export(searchActors_exports, {
23698
- toKnownErr: () => toKnownErr62
24041
+ toKnownErr: () => toKnownErr67
23699
24042
  });
23700
- function toKnownErr62(e) {
24043
+ function toKnownErr67(e) {
23701
24044
  if (e instanceof XRPCError) {
23702
24045
  }
23703
24046
  return e;
@@ -23706,9 +24049,9 @@ function toKnownErr62(e) {
23706
24049
  // src/client/types/app/bsky/actor/searchActorsTypeahead.ts
23707
24050
  var searchActorsTypeahead_exports = {};
23708
24051
  __export(searchActorsTypeahead_exports, {
23709
- toKnownErr: () => toKnownErr63
24052
+ toKnownErr: () => toKnownErr68
23710
24053
  });
23711
- function toKnownErr63(e) {
24054
+ function toKnownErr68(e) {
23712
24055
  if (e instanceof XRPCError) {
23713
24056
  }
23714
24057
  return e;
@@ -23719,11 +24062,11 @@ var describeFeedGenerator_exports = {};
23719
24062
  __export(describeFeedGenerator_exports, {
23720
24063
  isFeed: () => isFeed,
23721
24064
  isLinks: () => isLinks2,
23722
- toKnownErr: () => toKnownErr64,
24065
+ toKnownErr: () => toKnownErr69,
23723
24066
  validateFeed: () => validateFeed,
23724
24067
  validateLinks: () => validateLinks2
23725
24068
  });
23726
- function toKnownErr64(e) {
24069
+ function toKnownErr69(e) {
23727
24070
  if (e instanceof XRPCError) {
23728
24071
  }
23729
24072
  return e;
@@ -23744,9 +24087,9 @@ function validateLinks2(v) {
23744
24087
  // src/client/types/app/bsky/feed/getActorFeeds.ts
23745
24088
  var getActorFeeds_exports = {};
23746
24089
  __export(getActorFeeds_exports, {
23747
- toKnownErr: () => toKnownErr65
24090
+ toKnownErr: () => toKnownErr70
23748
24091
  });
23749
- function toKnownErr65(e) {
24092
+ function toKnownErr70(e) {
23750
24093
  if (e instanceof XRPCError) {
23751
24094
  }
23752
24095
  return e;
@@ -23757,7 +24100,7 @@ var getActorLikes_exports = {};
23757
24100
  __export(getActorLikes_exports, {
23758
24101
  BlockedActorError: () => BlockedActorError,
23759
24102
  BlockedByActorError: () => BlockedByActorError,
23760
- toKnownErr: () => toKnownErr66
24103
+ toKnownErr: () => toKnownErr71
23761
24104
  });
23762
24105
  var BlockedActorError = class extends XRPCError {
23763
24106
  constructor(src2) {
@@ -23769,7 +24112,7 @@ var BlockedByActorError = class extends XRPCError {
23769
24112
  super(src2.status, src2.error, src2.message, src2.headers);
23770
24113
  }
23771
24114
  };
23772
- function toKnownErr66(e) {
24115
+ function toKnownErr71(e) {
23773
24116
  if (e instanceof XRPCError) {
23774
24117
  if (e.error === "BlockedActor")
23775
24118
  return new BlockedActorError(e);
@@ -23784,7 +24127,7 @@ var getAuthorFeed_exports = {};
23784
24127
  __export(getAuthorFeed_exports, {
23785
24128
  BlockedActorError: () => BlockedActorError2,
23786
24129
  BlockedByActorError: () => BlockedByActorError2,
23787
- toKnownErr: () => toKnownErr67
24130
+ toKnownErr: () => toKnownErr72
23788
24131
  });
23789
24132
  var BlockedActorError2 = class extends XRPCError {
23790
24133
  constructor(src2) {
@@ -23796,7 +24139,7 @@ var BlockedByActorError2 = class extends XRPCError {
23796
24139
  super(src2.status, src2.error, src2.message, src2.headers);
23797
24140
  }
23798
24141
  };
23799
- function toKnownErr67(e) {
24142
+ function toKnownErr72(e) {
23800
24143
  if (e instanceof XRPCError) {
23801
24144
  if (e.error === "BlockedActor")
23802
24145
  return new BlockedActorError2(e);
@@ -23810,14 +24153,14 @@ function toKnownErr67(e) {
23810
24153
  var getFeed_exports = {};
23811
24154
  __export(getFeed_exports, {
23812
24155
  UnknownFeedError: () => UnknownFeedError,
23813
- toKnownErr: () => toKnownErr68
24156
+ toKnownErr: () => toKnownErr73
23814
24157
  });
23815
24158
  var UnknownFeedError = class extends XRPCError {
23816
24159
  constructor(src2) {
23817
24160
  super(src2.status, src2.error, src2.message, src2.headers);
23818
24161
  }
23819
24162
  };
23820
- function toKnownErr68(e) {
24163
+ function toKnownErr73(e) {
23821
24164
  if (e instanceof XRPCError) {
23822
24165
  if (e.error === "UnknownFeed")
23823
24166
  return new UnknownFeedError(e);
@@ -23828,9 +24171,9 @@ function toKnownErr68(e) {
23828
24171
  // src/client/types/app/bsky/feed/getFeedGenerator.ts
23829
24172
  var getFeedGenerator_exports = {};
23830
24173
  __export(getFeedGenerator_exports, {
23831
- toKnownErr: () => toKnownErr69
24174
+ toKnownErr: () => toKnownErr74
23832
24175
  });
23833
- function toKnownErr69(e) {
24176
+ function toKnownErr74(e) {
23834
24177
  if (e instanceof XRPCError) {
23835
24178
  }
23836
24179
  return e;
@@ -23839,9 +24182,9 @@ function toKnownErr69(e) {
23839
24182
  // src/client/types/app/bsky/feed/getFeedGenerators.ts
23840
24183
  var getFeedGenerators_exports = {};
23841
24184
  __export(getFeedGenerators_exports, {
23842
- toKnownErr: () => toKnownErr70
24185
+ toKnownErr: () => toKnownErr75
23843
24186
  });
23844
- function toKnownErr70(e) {
24187
+ function toKnownErr75(e) {
23845
24188
  if (e instanceof XRPCError) {
23846
24189
  }
23847
24190
  return e;
@@ -23851,14 +24194,14 @@ function toKnownErr70(e) {
23851
24194
  var getFeedSkeleton_exports = {};
23852
24195
  __export(getFeedSkeleton_exports, {
23853
24196
  UnknownFeedError: () => UnknownFeedError2,
23854
- toKnownErr: () => toKnownErr71
24197
+ toKnownErr: () => toKnownErr76
23855
24198
  });
23856
24199
  var UnknownFeedError2 = class extends XRPCError {
23857
24200
  constructor(src2) {
23858
24201
  super(src2.status, src2.error, src2.message, src2.headers);
23859
24202
  }
23860
24203
  };
23861
- function toKnownErr71(e) {
24204
+ function toKnownErr76(e) {
23862
24205
  if (e instanceof XRPCError) {
23863
24206
  if (e.error === "UnknownFeed")
23864
24207
  return new UnknownFeedError2(e);
@@ -23870,10 +24213,10 @@ function toKnownErr71(e) {
23870
24213
  var getLikes_exports = {};
23871
24214
  __export(getLikes_exports, {
23872
24215
  isLike: () => isLike,
23873
- toKnownErr: () => toKnownErr72,
24216
+ toKnownErr: () => toKnownErr77,
23874
24217
  validateLike: () => validateLike
23875
24218
  });
23876
- function toKnownErr72(e) {
24219
+ function toKnownErr77(e) {
23877
24220
  if (e instanceof XRPCError) {
23878
24221
  }
23879
24222
  return e;
@@ -23889,14 +24232,14 @@ function validateLike(v) {
23889
24232
  var getListFeed_exports = {};
23890
24233
  __export(getListFeed_exports, {
23891
24234
  UnknownListError: () => UnknownListError,
23892
- toKnownErr: () => toKnownErr73
24235
+ toKnownErr: () => toKnownErr78
23893
24236
  });
23894
24237
  var UnknownListError = class extends XRPCError {
23895
24238
  constructor(src2) {
23896
24239
  super(src2.status, src2.error, src2.message, src2.headers);
23897
24240
  }
23898
24241
  };
23899
- function toKnownErr73(e) {
24242
+ function toKnownErr78(e) {
23900
24243
  if (e instanceof XRPCError) {
23901
24244
  if (e.error === "UnknownList")
23902
24245
  return new UnknownListError(e);
@@ -23908,14 +24251,14 @@ function toKnownErr73(e) {
23908
24251
  var getPostThread_exports = {};
23909
24252
  __export(getPostThread_exports, {
23910
24253
  NotFoundError: () => NotFoundError,
23911
- toKnownErr: () => toKnownErr74
24254
+ toKnownErr: () => toKnownErr79
23912
24255
  });
23913
24256
  var NotFoundError = class extends XRPCError {
23914
24257
  constructor(src2) {
23915
24258
  super(src2.status, src2.error, src2.message, src2.headers);
23916
24259
  }
23917
24260
  };
23918
- function toKnownErr74(e) {
24261
+ function toKnownErr79(e) {
23919
24262
  if (e instanceof XRPCError) {
23920
24263
  if (e.error === "NotFound")
23921
24264
  return new NotFoundError(e);
@@ -23926,9 +24269,9 @@ function toKnownErr74(e) {
23926
24269
  // src/client/types/app/bsky/feed/getPosts.ts
23927
24270
  var getPosts_exports = {};
23928
24271
  __export(getPosts_exports, {
23929
- toKnownErr: () => toKnownErr75
24272
+ toKnownErr: () => toKnownErr80
23930
24273
  });
23931
- function toKnownErr75(e) {
24274
+ function toKnownErr80(e) {
23932
24275
  if (e instanceof XRPCError) {
23933
24276
  }
23934
24277
  return e;
@@ -23937,9 +24280,9 @@ function toKnownErr75(e) {
23937
24280
  // src/client/types/app/bsky/feed/getRepostedBy.ts
23938
24281
  var getRepostedBy_exports = {};
23939
24282
  __export(getRepostedBy_exports, {
23940
- toKnownErr: () => toKnownErr76
24283
+ toKnownErr: () => toKnownErr81
23941
24284
  });
23942
- function toKnownErr76(e) {
24285
+ function toKnownErr81(e) {
23943
24286
  if (e instanceof XRPCError) {
23944
24287
  }
23945
24288
  return e;
@@ -23948,9 +24291,9 @@ function toKnownErr76(e) {
23948
24291
  // src/client/types/app/bsky/feed/getSuggestedFeeds.ts
23949
24292
  var getSuggestedFeeds_exports = {};
23950
24293
  __export(getSuggestedFeeds_exports, {
23951
- toKnownErr: () => toKnownErr77
24294
+ toKnownErr: () => toKnownErr82
23952
24295
  });
23953
- function toKnownErr77(e) {
24296
+ function toKnownErr82(e) {
23954
24297
  if (e instanceof XRPCError) {
23955
24298
  }
23956
24299
  return e;
@@ -23959,9 +24302,9 @@ function toKnownErr77(e) {
23959
24302
  // src/client/types/app/bsky/feed/getTimeline.ts
23960
24303
  var getTimeline_exports = {};
23961
24304
  __export(getTimeline_exports, {
23962
- toKnownErr: () => toKnownErr78
24305
+ toKnownErr: () => toKnownErr83
23963
24306
  });
23964
- function toKnownErr78(e) {
24307
+ function toKnownErr83(e) {
23965
24308
  if (e instanceof XRPCError) {
23966
24309
  }
23967
24310
  return e;
@@ -23971,14 +24314,14 @@ function toKnownErr78(e) {
23971
24314
  var searchPosts_exports = {};
23972
24315
  __export(searchPosts_exports, {
23973
24316
  BadQueryStringError: () => BadQueryStringError,
23974
- toKnownErr: () => toKnownErr79
24317
+ toKnownErr: () => toKnownErr84
23975
24318
  });
23976
24319
  var BadQueryStringError = class extends XRPCError {
23977
24320
  constructor(src2) {
23978
24321
  super(src2.status, src2.error, src2.message, src2.headers);
23979
24322
  }
23980
24323
  };
23981
- function toKnownErr79(e) {
24324
+ function toKnownErr84(e) {
23982
24325
  if (e instanceof XRPCError) {
23983
24326
  if (e.error === "BadQueryString")
23984
24327
  return new BadQueryStringError(e);
@@ -23989,9 +24332,9 @@ function toKnownErr79(e) {
23989
24332
  // src/client/types/app/bsky/graph/getBlocks.ts
23990
24333
  var getBlocks_exports2 = {};
23991
24334
  __export(getBlocks_exports2, {
23992
- toKnownErr: () => toKnownErr80
24335
+ toKnownErr: () => toKnownErr85
23993
24336
  });
23994
- function toKnownErr80(e) {
24337
+ function toKnownErr85(e) {
23995
24338
  if (e instanceof XRPCError) {
23996
24339
  }
23997
24340
  return e;
@@ -24000,9 +24343,9 @@ function toKnownErr80(e) {
24000
24343
  // src/client/types/app/bsky/graph/getFollowers.ts
24001
24344
  var getFollowers_exports = {};
24002
24345
  __export(getFollowers_exports, {
24003
- toKnownErr: () => toKnownErr81
24346
+ toKnownErr: () => toKnownErr86
24004
24347
  });
24005
- function toKnownErr81(e) {
24348
+ function toKnownErr86(e) {
24006
24349
  if (e instanceof XRPCError) {
24007
24350
  }
24008
24351
  return e;
@@ -24011,9 +24354,9 @@ function toKnownErr81(e) {
24011
24354
  // src/client/types/app/bsky/graph/getFollows.ts
24012
24355
  var getFollows_exports = {};
24013
24356
  __export(getFollows_exports, {
24014
- toKnownErr: () => toKnownErr82
24357
+ toKnownErr: () => toKnownErr87
24015
24358
  });
24016
- function toKnownErr82(e) {
24359
+ function toKnownErr87(e) {
24017
24360
  if (e instanceof XRPCError) {
24018
24361
  }
24019
24362
  return e;
@@ -24022,9 +24365,9 @@ function toKnownErr82(e) {
24022
24365
  // src/client/types/app/bsky/graph/getList.ts
24023
24366
  var getList_exports = {};
24024
24367
  __export(getList_exports, {
24025
- toKnownErr: () => toKnownErr83
24368
+ toKnownErr: () => toKnownErr88
24026
24369
  });
24027
- function toKnownErr83(e) {
24370
+ function toKnownErr88(e) {
24028
24371
  if (e instanceof XRPCError) {
24029
24372
  }
24030
24373
  return e;
@@ -24033,9 +24376,9 @@ function toKnownErr83(e) {
24033
24376
  // src/client/types/app/bsky/graph/getListBlocks.ts
24034
24377
  var getListBlocks_exports = {};
24035
24378
  __export(getListBlocks_exports, {
24036
- toKnownErr: () => toKnownErr84
24379
+ toKnownErr: () => toKnownErr89
24037
24380
  });
24038
- function toKnownErr84(e) {
24381
+ function toKnownErr89(e) {
24039
24382
  if (e instanceof XRPCError) {
24040
24383
  }
24041
24384
  return e;
@@ -24044,9 +24387,9 @@ function toKnownErr84(e) {
24044
24387
  // src/client/types/app/bsky/graph/getListMutes.ts
24045
24388
  var getListMutes_exports = {};
24046
24389
  __export(getListMutes_exports, {
24047
- toKnownErr: () => toKnownErr85
24390
+ toKnownErr: () => toKnownErr90
24048
24391
  });
24049
- function toKnownErr85(e) {
24392
+ function toKnownErr90(e) {
24050
24393
  if (e instanceof XRPCError) {
24051
24394
  }
24052
24395
  return e;
@@ -24055,9 +24398,9 @@ function toKnownErr85(e) {
24055
24398
  // src/client/types/app/bsky/graph/getLists.ts
24056
24399
  var getLists_exports = {};
24057
24400
  __export(getLists_exports, {
24058
- toKnownErr: () => toKnownErr86
24401
+ toKnownErr: () => toKnownErr91
24059
24402
  });
24060
- function toKnownErr86(e) {
24403
+ function toKnownErr91(e) {
24061
24404
  if (e instanceof XRPCError) {
24062
24405
  }
24063
24406
  return e;
@@ -24066,9 +24409,9 @@ function toKnownErr86(e) {
24066
24409
  // src/client/types/app/bsky/graph/getMutes.ts
24067
24410
  var getMutes_exports = {};
24068
24411
  __export(getMutes_exports, {
24069
- toKnownErr: () => toKnownErr87
24412
+ toKnownErr: () => toKnownErr92
24070
24413
  });
24071
- function toKnownErr87(e) {
24414
+ function toKnownErr92(e) {
24072
24415
  if (e instanceof XRPCError) {
24073
24416
  }
24074
24417
  return e;
@@ -24077,9 +24420,9 @@ function toKnownErr87(e) {
24077
24420
  // src/client/types/app/bsky/graph/getSuggestedFollowsByActor.ts
24078
24421
  var getSuggestedFollowsByActor_exports = {};
24079
24422
  __export(getSuggestedFollowsByActor_exports, {
24080
- toKnownErr: () => toKnownErr88
24423
+ toKnownErr: () => toKnownErr93
24081
24424
  });
24082
- function toKnownErr88(e) {
24425
+ function toKnownErr93(e) {
24083
24426
  if (e instanceof XRPCError) {
24084
24427
  }
24085
24428
  return e;
@@ -24088,9 +24431,9 @@ function toKnownErr88(e) {
24088
24431
  // src/client/types/app/bsky/graph/muteActor.ts
24089
24432
  var muteActor_exports = {};
24090
24433
  __export(muteActor_exports, {
24091
- toKnownErr: () => toKnownErr89
24434
+ toKnownErr: () => toKnownErr94
24092
24435
  });
24093
- function toKnownErr89(e) {
24436
+ function toKnownErr94(e) {
24094
24437
  if (e instanceof XRPCError) {
24095
24438
  }
24096
24439
  return e;
@@ -24099,9 +24442,9 @@ function toKnownErr89(e) {
24099
24442
  // src/client/types/app/bsky/graph/muteActorList.ts
24100
24443
  var muteActorList_exports = {};
24101
24444
  __export(muteActorList_exports, {
24102
- toKnownErr: () => toKnownErr90
24445
+ toKnownErr: () => toKnownErr95
24103
24446
  });
24104
- function toKnownErr90(e) {
24447
+ function toKnownErr95(e) {
24105
24448
  if (e instanceof XRPCError) {
24106
24449
  }
24107
24450
  return e;
@@ -24110,9 +24453,9 @@ function toKnownErr90(e) {
24110
24453
  // src/client/types/app/bsky/graph/unmuteActor.ts
24111
24454
  var unmuteActor_exports = {};
24112
24455
  __export(unmuteActor_exports, {
24113
- toKnownErr: () => toKnownErr91
24456
+ toKnownErr: () => toKnownErr96
24114
24457
  });
24115
- function toKnownErr91(e) {
24458
+ function toKnownErr96(e) {
24116
24459
  if (e instanceof XRPCError) {
24117
24460
  }
24118
24461
  return e;
@@ -24121,9 +24464,9 @@ function toKnownErr91(e) {
24121
24464
  // src/client/types/app/bsky/graph/unmuteActorList.ts
24122
24465
  var unmuteActorList_exports = {};
24123
24466
  __export(unmuteActorList_exports, {
24124
- toKnownErr: () => toKnownErr92
24467
+ toKnownErr: () => toKnownErr97
24125
24468
  });
24126
- function toKnownErr92(e) {
24469
+ function toKnownErr97(e) {
24127
24470
  if (e instanceof XRPCError) {
24128
24471
  }
24129
24472
  return e;
@@ -24132,9 +24475,9 @@ function toKnownErr92(e) {
24132
24475
  // src/client/types/app/bsky/notification/getUnreadCount.ts
24133
24476
  var getUnreadCount_exports = {};
24134
24477
  __export(getUnreadCount_exports, {
24135
- toKnownErr: () => toKnownErr93
24478
+ toKnownErr: () => toKnownErr98
24136
24479
  });
24137
- function toKnownErr93(e) {
24480
+ function toKnownErr98(e) {
24138
24481
  if (e instanceof XRPCError) {
24139
24482
  }
24140
24483
  return e;
@@ -24144,10 +24487,10 @@ function toKnownErr93(e) {
24144
24487
  var listNotifications_exports = {};
24145
24488
  __export(listNotifications_exports, {
24146
24489
  isNotification: () => isNotification,
24147
- toKnownErr: () => toKnownErr94,
24490
+ toKnownErr: () => toKnownErr99,
24148
24491
  validateNotification: () => validateNotification
24149
24492
  });
24150
- function toKnownErr94(e) {
24493
+ function toKnownErr99(e) {
24151
24494
  if (e instanceof XRPCError) {
24152
24495
  }
24153
24496
  return e;
@@ -24162,9 +24505,9 @@ function validateNotification(v) {
24162
24505
  // src/client/types/app/bsky/notification/registerPush.ts
24163
24506
  var registerPush_exports = {};
24164
24507
  __export(registerPush_exports, {
24165
- toKnownErr: () => toKnownErr95
24508
+ toKnownErr: () => toKnownErr100
24166
24509
  });
24167
- function toKnownErr95(e) {
24510
+ function toKnownErr100(e) {
24168
24511
  if (e instanceof XRPCError) {
24169
24512
  }
24170
24513
  return e;
@@ -24173,9 +24516,9 @@ function toKnownErr95(e) {
24173
24516
  // src/client/types/app/bsky/notification/updateSeen.ts
24174
24517
  var updateSeen_exports = {};
24175
24518
  __export(updateSeen_exports, {
24176
- toKnownErr: () => toKnownErr96
24519
+ toKnownErr: () => toKnownErr101
24177
24520
  });
24178
- function toKnownErr96(e) {
24521
+ function toKnownErr101(e) {
24179
24522
  if (e instanceof XRPCError) {
24180
24523
  }
24181
24524
  return e;
@@ -24184,9 +24527,9 @@ function toKnownErr96(e) {
24184
24527
  // src/client/types/app/bsky/unspecced/getPopular.ts
24185
24528
  var getPopular_exports = {};
24186
24529
  __export(getPopular_exports, {
24187
- toKnownErr: () => toKnownErr97
24530
+ toKnownErr: () => toKnownErr102
24188
24531
  });
24189
- function toKnownErr97(e) {
24532
+ function toKnownErr102(e) {
24190
24533
  if (e instanceof XRPCError) {
24191
24534
  }
24192
24535
  return e;
@@ -24195,9 +24538,9 @@ function toKnownErr97(e) {
24195
24538
  // src/client/types/app/bsky/unspecced/getPopularFeedGenerators.ts
24196
24539
  var getPopularFeedGenerators_exports = {};
24197
24540
  __export(getPopularFeedGenerators_exports, {
24198
- toKnownErr: () => toKnownErr98
24541
+ toKnownErr: () => toKnownErr103
24199
24542
  });
24200
- function toKnownErr98(e) {
24543
+ function toKnownErr103(e) {
24201
24544
  if (e instanceof XRPCError) {
24202
24545
  }
24203
24546
  return e;
@@ -24207,14 +24550,14 @@ function toKnownErr98(e) {
24207
24550
  var getTimelineSkeleton_exports = {};
24208
24551
  __export(getTimelineSkeleton_exports, {
24209
24552
  UnknownFeedError: () => UnknownFeedError3,
24210
- toKnownErr: () => toKnownErr99
24553
+ toKnownErr: () => toKnownErr104
24211
24554
  });
24212
24555
  var UnknownFeedError3 = class extends XRPCError {
24213
24556
  constructor(src2) {
24214
24557
  super(src2.status, src2.error, src2.message, src2.headers);
24215
24558
  }
24216
24559
  };
24217
- function toKnownErr99(e) {
24560
+ function toKnownErr104(e) {
24218
24561
  if (e instanceof XRPCError) {
24219
24562
  if (e.error === "UnknownFeed")
24220
24563
  return new UnknownFeedError3(e);
@@ -24226,14 +24569,14 @@ function toKnownErr99(e) {
24226
24569
  var searchActorsSkeleton_exports = {};
24227
24570
  __export(searchActorsSkeleton_exports, {
24228
24571
  BadQueryStringError: () => BadQueryStringError2,
24229
- toKnownErr: () => toKnownErr100
24572
+ toKnownErr: () => toKnownErr105
24230
24573
  });
24231
24574
  var BadQueryStringError2 = class extends XRPCError {
24232
24575
  constructor(src2) {
24233
24576
  super(src2.status, src2.error, src2.message, src2.headers);
24234
24577
  }
24235
24578
  };
24236
- function toKnownErr100(e) {
24579
+ function toKnownErr105(e) {
24237
24580
  if (e instanceof XRPCError) {
24238
24581
  if (e.error === "BadQueryString")
24239
24582
  return new BadQueryStringError2(e);
@@ -24245,14 +24588,14 @@ function toKnownErr100(e) {
24245
24588
  var searchPostsSkeleton_exports = {};
24246
24589
  __export(searchPostsSkeleton_exports, {
24247
24590
  BadQueryStringError: () => BadQueryStringError3,
24248
- toKnownErr: () => toKnownErr101
24591
+ toKnownErr: () => toKnownErr106
24249
24592
  });
24250
24593
  var BadQueryStringError3 = class extends XRPCError {
24251
24594
  constructor(src2) {
24252
24595
  super(src2.status, src2.error, src2.message, src2.headers);
24253
24596
  }
24254
24597
  };
24255
- function toKnownErr101(e) {
24598
+ function toKnownErr106(e) {
24256
24599
  if (e instanceof XRPCError) {
24257
24600
  if (e.error === "BadQueryString")
24258
24601
  return new BadQueryStringError3(e);
@@ -25267,26 +25610,26 @@ var AtpServiceClient = class {
25267
25610
  }
25268
25611
  };
25269
25612
  var ComNS = class {
25270
- constructor(service) {
25271
- this._service = service;
25272
- this.atproto = new AtprotoNS(service);
25613
+ constructor(service2) {
25614
+ this._service = service2;
25615
+ this.atproto = new AtprotoNS(service2);
25273
25616
  }
25274
25617
  };
25275
25618
  var AtprotoNS = class {
25276
- constructor(service) {
25277
- this._service = service;
25278
- this.admin = new AdminNS(service);
25279
- this.identity = new IdentityNS(service);
25280
- this.label = new LabelNS(service);
25281
- this.moderation = new ModerationNS(service);
25282
- this.repo = new RepoNS(service);
25283
- this.server = new ServerNS(service);
25284
- this.sync = new SyncNS(service);
25619
+ constructor(service2) {
25620
+ this._service = service2;
25621
+ this.admin = new AdminNS(service2);
25622
+ this.identity = new IdentityNS(service2);
25623
+ this.label = new LabelNS(service2);
25624
+ this.moderation = new ModerationNS(service2);
25625
+ this.repo = new RepoNS(service2);
25626
+ this.server = new ServerNS(service2);
25627
+ this.sync = new SyncNS(service2);
25285
25628
  }
25286
25629
  };
25287
25630
  var AdminNS = class {
25288
- constructor(service) {
25289
- this._service = service;
25631
+ constructor(service2) {
25632
+ this._service = service2;
25290
25633
  }
25291
25634
  disableAccountInvites(data, opts) {
25292
25635
  return this._service.xrpc.call("com.atproto.admin.disableAccountInvites", opts?.qp, data, opts).catch((e) => {
@@ -25375,8 +25718,8 @@ var AdminNS = class {
25375
25718
  }
25376
25719
  };
25377
25720
  var IdentityNS = class {
25378
- constructor(service) {
25379
- this._service = service;
25721
+ constructor(service2) {
25722
+ this._service = service2;
25380
25723
  }
25381
25724
  resolveHandle(params2, opts) {
25382
25725
  return this._service.xrpc.call("com.atproto.identity.resolveHandle", params2, void 0, opts).catch((e) => {
@@ -25390,8 +25733,8 @@ var IdentityNS = class {
25390
25733
  }
25391
25734
  };
25392
25735
  var LabelNS = class {
25393
- constructor(service) {
25394
- this._service = service;
25736
+ constructor(service2) {
25737
+ this._service = service2;
25395
25738
  }
25396
25739
  queryLabels(params2, opts) {
25397
25740
  return this._service.xrpc.call("com.atproto.label.queryLabels", params2, void 0, opts).catch((e) => {
@@ -25400,8 +25743,8 @@ var LabelNS = class {
25400
25743
  }
25401
25744
  };
25402
25745
  var ModerationNS = class {
25403
- constructor(service) {
25404
- this._service = service;
25746
+ constructor(service2) {
25747
+ this._service = service2;
25405
25748
  }
25406
25749
  createReport(data, opts) {
25407
25750
  return this._service.xrpc.call("com.atproto.moderation.createReport", opts?.qp, data, opts).catch((e) => {
@@ -25410,8 +25753,8 @@ var ModerationNS = class {
25410
25753
  }
25411
25754
  };
25412
25755
  var RepoNS = class {
25413
- constructor(service) {
25414
- this._service = service;
25756
+ constructor(service2) {
25757
+ this._service = service2;
25415
25758
  }
25416
25759
  applyWrites(data, opts) {
25417
25760
  return this._service.xrpc.call("com.atproto.repo.applyWrites", opts?.qp, data, opts).catch((e) => {
@@ -25455,212 +25798,237 @@ var RepoNS = class {
25455
25798
  }
25456
25799
  };
25457
25800
  var ServerNS = class {
25458
- constructor(service) {
25459
- this._service = service;
25801
+ constructor(service2) {
25802
+ this._service = service2;
25803
+ }
25804
+ confirmEmail(data, opts) {
25805
+ return this._service.xrpc.call("com.atproto.server.confirmEmail", opts?.qp, data, opts).catch((e) => {
25806
+ throw toKnownErr30(e);
25807
+ });
25460
25808
  }
25461
25809
  createAccount(data, opts) {
25462
25810
  return this._service.xrpc.call("com.atproto.server.createAccount", opts?.qp, data, opts).catch((e) => {
25463
- throw toKnownErr30(e);
25811
+ throw toKnownErr31(e);
25464
25812
  });
25465
25813
  }
25466
25814
  createAppPassword(data, opts) {
25467
25815
  return this._service.xrpc.call("com.atproto.server.createAppPassword", opts?.qp, data, opts).catch((e) => {
25468
- throw toKnownErr31(e);
25816
+ throw toKnownErr32(e);
25469
25817
  });
25470
25818
  }
25471
25819
  createInviteCode(data, opts) {
25472
25820
  return this._service.xrpc.call("com.atproto.server.createInviteCode", opts?.qp, data, opts).catch((e) => {
25473
- throw toKnownErr32(e);
25821
+ throw toKnownErr33(e);
25474
25822
  });
25475
25823
  }
25476
25824
  createInviteCodes(data, opts) {
25477
25825
  return this._service.xrpc.call("com.atproto.server.createInviteCodes", opts?.qp, data, opts).catch((e) => {
25478
- throw toKnownErr33(e);
25826
+ throw toKnownErr34(e);
25479
25827
  });
25480
25828
  }
25481
25829
  createSession(data, opts) {
25482
25830
  return this._service.xrpc.call("com.atproto.server.createSession", opts?.qp, data, opts).catch((e) => {
25483
- throw toKnownErr34(e);
25831
+ throw toKnownErr35(e);
25484
25832
  });
25485
25833
  }
25486
25834
  deleteAccount(data, opts) {
25487
25835
  return this._service.xrpc.call("com.atproto.server.deleteAccount", opts?.qp, data, opts).catch((e) => {
25488
- throw toKnownErr35(e);
25836
+ throw toKnownErr36(e);
25489
25837
  });
25490
25838
  }
25491
25839
  deleteSession(data, opts) {
25492
25840
  return this._service.xrpc.call("com.atproto.server.deleteSession", opts?.qp, data, opts).catch((e) => {
25493
- throw toKnownErr36(e);
25841
+ throw toKnownErr37(e);
25494
25842
  });
25495
25843
  }
25496
25844
  describeServer(params2, opts) {
25497
25845
  return this._service.xrpc.call("com.atproto.server.describeServer", params2, void 0, opts).catch((e) => {
25498
- throw toKnownErr37(e);
25846
+ throw toKnownErr38(e);
25499
25847
  });
25500
25848
  }
25501
25849
  getAccountInviteCodes(params2, opts) {
25502
25850
  return this._service.xrpc.call("com.atproto.server.getAccountInviteCodes", params2, void 0, opts).catch((e) => {
25503
- throw toKnownErr38(e);
25851
+ throw toKnownErr39(e);
25504
25852
  });
25505
25853
  }
25506
25854
  getSession(params2, opts) {
25507
25855
  return this._service.xrpc.call("com.atproto.server.getSession", params2, void 0, opts).catch((e) => {
25508
- throw toKnownErr39(e);
25856
+ throw toKnownErr40(e);
25509
25857
  });
25510
25858
  }
25511
25859
  listAppPasswords(params2, opts) {
25512
25860
  return this._service.xrpc.call("com.atproto.server.listAppPasswords", params2, void 0, opts).catch((e) => {
25513
- throw toKnownErr40(e);
25861
+ throw toKnownErr41(e);
25514
25862
  });
25515
25863
  }
25516
25864
  refreshSession(data, opts) {
25517
25865
  return this._service.xrpc.call("com.atproto.server.refreshSession", opts?.qp, data, opts).catch((e) => {
25518
- throw toKnownErr41(e);
25866
+ throw toKnownErr42(e);
25519
25867
  });
25520
25868
  }
25521
25869
  requestAccountDelete(data, opts) {
25522
25870
  return this._service.xrpc.call("com.atproto.server.requestAccountDelete", opts?.qp, data, opts).catch((e) => {
25523
- throw toKnownErr42(e);
25871
+ throw toKnownErr43(e);
25872
+ });
25873
+ }
25874
+ requestEmailConfirmation(data, opts) {
25875
+ return this._service.xrpc.call("com.atproto.server.requestEmailConfirmation", opts?.qp, data, opts).catch((e) => {
25876
+ throw toKnownErr44(e);
25877
+ });
25878
+ }
25879
+ requestEmailUpdate(data, opts) {
25880
+ return this._service.xrpc.call("com.atproto.server.requestEmailUpdate", opts?.qp, data, opts).catch((e) => {
25881
+ throw toKnownErr45(e);
25524
25882
  });
25525
25883
  }
25526
25884
  requestPasswordReset(data, opts) {
25527
25885
  return this._service.xrpc.call("com.atproto.server.requestPasswordReset", opts?.qp, data, opts).catch((e) => {
25528
- throw toKnownErr43(e);
25886
+ throw toKnownErr46(e);
25887
+ });
25888
+ }
25889
+ reserveSigningKey(data, opts) {
25890
+ return this._service.xrpc.call("com.atproto.server.reserveSigningKey", opts?.qp, data, opts).catch((e) => {
25891
+ throw toKnownErr47(e);
25529
25892
  });
25530
25893
  }
25531
25894
  resetPassword(data, opts) {
25532
25895
  return this._service.xrpc.call("com.atproto.server.resetPassword", opts?.qp, data, opts).catch((e) => {
25533
- throw toKnownErr44(e);
25896
+ throw toKnownErr48(e);
25534
25897
  });
25535
25898
  }
25536
25899
  revokeAppPassword(data, opts) {
25537
25900
  return this._service.xrpc.call("com.atproto.server.revokeAppPassword", opts?.qp, data, opts).catch((e) => {
25538
- throw toKnownErr45(e);
25901
+ throw toKnownErr49(e);
25902
+ });
25903
+ }
25904
+ updateEmail(data, opts) {
25905
+ return this._service.xrpc.call("com.atproto.server.updateEmail", opts?.qp, data, opts).catch((e) => {
25906
+ throw toKnownErr50(e);
25539
25907
  });
25540
25908
  }
25541
25909
  };
25542
25910
  var SyncNS = class {
25543
- constructor(service) {
25544
- this._service = service;
25911
+ constructor(service2) {
25912
+ this._service = service2;
25545
25913
  }
25546
25914
  getBlob(params2, opts) {
25547
25915
  return this._service.xrpc.call("com.atproto.sync.getBlob", params2, void 0, opts).catch((e) => {
25548
- throw toKnownErr46(e);
25916
+ throw toKnownErr51(e);
25549
25917
  });
25550
25918
  }
25551
25919
  getBlocks(params2, opts) {
25552
25920
  return this._service.xrpc.call("com.atproto.sync.getBlocks", params2, void 0, opts).catch((e) => {
25553
- throw toKnownErr47(e);
25921
+ throw toKnownErr52(e);
25554
25922
  });
25555
25923
  }
25556
25924
  getCheckout(params2, opts) {
25557
25925
  return this._service.xrpc.call("com.atproto.sync.getCheckout", params2, void 0, opts).catch((e) => {
25558
- throw toKnownErr48(e);
25926
+ throw toKnownErr53(e);
25559
25927
  });
25560
25928
  }
25561
25929
  getHead(params2, opts) {
25562
25930
  return this._service.xrpc.call("com.atproto.sync.getHead", params2, void 0, opts).catch((e) => {
25563
- throw toKnownErr49(e);
25931
+ throw toKnownErr54(e);
25564
25932
  });
25565
25933
  }
25566
25934
  getLatestCommit(params2, opts) {
25567
25935
  return this._service.xrpc.call("com.atproto.sync.getLatestCommit", params2, void 0, opts).catch((e) => {
25568
- throw toKnownErr50(e);
25936
+ throw toKnownErr55(e);
25569
25937
  });
25570
25938
  }
25571
25939
  getRecord(params2, opts) {
25572
25940
  return this._service.xrpc.call("com.atproto.sync.getRecord", params2, void 0, opts).catch((e) => {
25573
- throw toKnownErr51(e);
25941
+ throw toKnownErr56(e);
25574
25942
  });
25575
25943
  }
25576
25944
  getRepo(params2, opts) {
25577
25945
  return this._service.xrpc.call("com.atproto.sync.getRepo", params2, void 0, opts).catch((e) => {
25578
- throw toKnownErr52(e);
25946
+ throw toKnownErr57(e);
25579
25947
  });
25580
25948
  }
25581
25949
  listBlobs(params2, opts) {
25582
25950
  return this._service.xrpc.call("com.atproto.sync.listBlobs", params2, void 0, opts).catch((e) => {
25583
- throw toKnownErr53(e);
25951
+ throw toKnownErr58(e);
25584
25952
  });
25585
25953
  }
25586
25954
  listRepos(params2, opts) {
25587
25955
  return this._service.xrpc.call("com.atproto.sync.listRepos", params2, void 0, opts).catch((e) => {
25588
- throw toKnownErr54(e);
25956
+ throw toKnownErr59(e);
25589
25957
  });
25590
25958
  }
25591
25959
  notifyOfUpdate(data, opts) {
25592
25960
  return this._service.xrpc.call("com.atproto.sync.notifyOfUpdate", opts?.qp, data, opts).catch((e) => {
25593
- throw toKnownErr55(e);
25961
+ throw toKnownErr60(e);
25594
25962
  });
25595
25963
  }
25596
25964
  requestCrawl(data, opts) {
25597
25965
  return this._service.xrpc.call("com.atproto.sync.requestCrawl", opts?.qp, data, opts).catch((e) => {
25598
- throw toKnownErr56(e);
25966
+ throw toKnownErr61(e);
25599
25967
  });
25600
25968
  }
25601
25969
  };
25602
25970
  var AppNS = class {
25603
- constructor(service) {
25604
- this._service = service;
25605
- this.bsky = new BskyNS(service);
25971
+ constructor(service2) {
25972
+ this._service = service2;
25973
+ this.bsky = new BskyNS(service2);
25606
25974
  }
25607
25975
  };
25608
25976
  var BskyNS = class {
25609
- constructor(service) {
25610
- this._service = service;
25611
- this.actor = new ActorNS(service);
25612
- this.embed = new EmbedNS(service);
25613
- this.feed = new FeedNS(service);
25614
- this.graph = new GraphNS(service);
25615
- this.notification = new NotificationNS(service);
25616
- this.richtext = new RichtextNS(service);
25617
- this.unspecced = new UnspeccedNS(service);
25977
+ constructor(service2) {
25978
+ this._service = service2;
25979
+ this.actor = new ActorNS(service2);
25980
+ this.embed = new EmbedNS(service2);
25981
+ this.feed = new FeedNS(service2);
25982
+ this.graph = new GraphNS(service2);
25983
+ this.notification = new NotificationNS(service2);
25984
+ this.richtext = new RichtextNS(service2);
25985
+ this.unspecced = new UnspeccedNS(service2);
25618
25986
  }
25619
25987
  };
25620
25988
  var ActorNS = class {
25621
- constructor(service) {
25622
- this._service = service;
25623
- this.profile = new ProfileRecord(service);
25989
+ constructor(service2) {
25990
+ this._service = service2;
25991
+ this.profile = new ProfileRecord(service2);
25624
25992
  }
25625
25993
  getPreferences(params2, opts) {
25626
25994
  return this._service.xrpc.call("app.bsky.actor.getPreferences", params2, void 0, opts).catch((e) => {
25627
- throw toKnownErr57(e);
25995
+ throw toKnownErr62(e);
25628
25996
  });
25629
25997
  }
25630
25998
  getProfile(params2, opts) {
25631
25999
  return this._service.xrpc.call("app.bsky.actor.getProfile", params2, void 0, opts).catch((e) => {
25632
- throw toKnownErr58(e);
26000
+ throw toKnownErr63(e);
25633
26001
  });
25634
26002
  }
25635
26003
  getProfiles(params2, opts) {
25636
26004
  return this._service.xrpc.call("app.bsky.actor.getProfiles", params2, void 0, opts).catch((e) => {
25637
- throw toKnownErr59(e);
26005
+ throw toKnownErr64(e);
25638
26006
  });
25639
26007
  }
25640
26008
  getSuggestions(params2, opts) {
25641
26009
  return this._service.xrpc.call("app.bsky.actor.getSuggestions", params2, void 0, opts).catch((e) => {
25642
- throw toKnownErr60(e);
26010
+ throw toKnownErr65(e);
25643
26011
  });
25644
26012
  }
25645
26013
  putPreferences(data, opts) {
25646
26014
  return this._service.xrpc.call("app.bsky.actor.putPreferences", opts?.qp, data, opts).catch((e) => {
25647
- throw toKnownErr61(e);
26015
+ throw toKnownErr66(e);
25648
26016
  });
25649
26017
  }
25650
26018
  searchActors(params2, opts) {
25651
26019
  return this._service.xrpc.call("app.bsky.actor.searchActors", params2, void 0, opts).catch((e) => {
25652
- throw toKnownErr62(e);
26020
+ throw toKnownErr67(e);
25653
26021
  });
25654
26022
  }
25655
26023
  searchActorsTypeahead(params2, opts) {
25656
26024
  return this._service.xrpc.call("app.bsky.actor.searchActorsTypeahead", params2, void 0, opts).catch((e) => {
25657
- throw toKnownErr63(e);
26025
+ throw toKnownErr68(e);
25658
26026
  });
25659
26027
  }
25660
26028
  };
25661
26029
  var ProfileRecord = class {
25662
- constructor(service) {
25663
- this._service = service;
26030
+ constructor(service2) {
26031
+ this._service = service2;
25664
26032
  }
25665
26033
  async list(params2) {
25666
26034
  const res = await this._service.xrpc.call("com.atproto.repo.listRecords", {
@@ -25686,103 +26054,103 @@ var ProfileRecord = class {
25686
26054
  }
25687
26055
  };
25688
26056
  var EmbedNS = class {
25689
- constructor(service) {
25690
- this._service = service;
26057
+ constructor(service2) {
26058
+ this._service = service2;
25691
26059
  }
25692
26060
  };
25693
26061
  var FeedNS = class {
25694
- constructor(service) {
25695
- this._service = service;
25696
- this.generator = new GeneratorRecord(service);
25697
- this.like = new LikeRecord(service);
25698
- this.post = new PostRecord(service);
25699
- this.repost = new RepostRecord(service);
25700
- this.threadgate = new ThreadgateRecord(service);
26062
+ constructor(service2) {
26063
+ this._service = service2;
26064
+ this.generator = new GeneratorRecord(service2);
26065
+ this.like = new LikeRecord(service2);
26066
+ this.post = new PostRecord(service2);
26067
+ this.repost = new RepostRecord(service2);
26068
+ this.threadgate = new ThreadgateRecord(service2);
25701
26069
  }
25702
26070
  describeFeedGenerator(params2, opts) {
25703
26071
  return this._service.xrpc.call("app.bsky.feed.describeFeedGenerator", params2, void 0, opts).catch((e) => {
25704
- throw toKnownErr64(e);
26072
+ throw toKnownErr69(e);
25705
26073
  });
25706
26074
  }
25707
26075
  getActorFeeds(params2, opts) {
25708
26076
  return this._service.xrpc.call("app.bsky.feed.getActorFeeds", params2, void 0, opts).catch((e) => {
25709
- throw toKnownErr65(e);
26077
+ throw toKnownErr70(e);
25710
26078
  });
25711
26079
  }
25712
26080
  getActorLikes(params2, opts) {
25713
26081
  return this._service.xrpc.call("app.bsky.feed.getActorLikes", params2, void 0, opts).catch((e) => {
25714
- throw toKnownErr66(e);
26082
+ throw toKnownErr71(e);
25715
26083
  });
25716
26084
  }
25717
26085
  getAuthorFeed(params2, opts) {
25718
26086
  return this._service.xrpc.call("app.bsky.feed.getAuthorFeed", params2, void 0, opts).catch((e) => {
25719
- throw toKnownErr67(e);
26087
+ throw toKnownErr72(e);
25720
26088
  });
25721
26089
  }
25722
26090
  getFeed(params2, opts) {
25723
26091
  return this._service.xrpc.call("app.bsky.feed.getFeed", params2, void 0, opts).catch((e) => {
25724
- throw toKnownErr68(e);
26092
+ throw toKnownErr73(e);
25725
26093
  });
25726
26094
  }
25727
26095
  getFeedGenerator(params2, opts) {
25728
26096
  return this._service.xrpc.call("app.bsky.feed.getFeedGenerator", params2, void 0, opts).catch((e) => {
25729
- throw toKnownErr69(e);
26097
+ throw toKnownErr74(e);
25730
26098
  });
25731
26099
  }
25732
26100
  getFeedGenerators(params2, opts) {
25733
26101
  return this._service.xrpc.call("app.bsky.feed.getFeedGenerators", params2, void 0, opts).catch((e) => {
25734
- throw toKnownErr70(e);
26102
+ throw toKnownErr75(e);
25735
26103
  });
25736
26104
  }
25737
26105
  getFeedSkeleton(params2, opts) {
25738
26106
  return this._service.xrpc.call("app.bsky.feed.getFeedSkeleton", params2, void 0, opts).catch((e) => {
25739
- throw toKnownErr71(e);
26107
+ throw toKnownErr76(e);
25740
26108
  });
25741
26109
  }
25742
26110
  getLikes(params2, opts) {
25743
26111
  return this._service.xrpc.call("app.bsky.feed.getLikes", params2, void 0, opts).catch((e) => {
25744
- throw toKnownErr72(e);
26112
+ throw toKnownErr77(e);
25745
26113
  });
25746
26114
  }
25747
26115
  getListFeed(params2, opts) {
25748
26116
  return this._service.xrpc.call("app.bsky.feed.getListFeed", params2, void 0, opts).catch((e) => {
25749
- throw toKnownErr73(e);
26117
+ throw toKnownErr78(e);
25750
26118
  });
25751
26119
  }
25752
26120
  getPostThread(params2, opts) {
25753
26121
  return this._service.xrpc.call("app.bsky.feed.getPostThread", params2, void 0, opts).catch((e) => {
25754
- throw toKnownErr74(e);
26122
+ throw toKnownErr79(e);
25755
26123
  });
25756
26124
  }
25757
26125
  getPosts(params2, opts) {
25758
26126
  return this._service.xrpc.call("app.bsky.feed.getPosts", params2, void 0, opts).catch((e) => {
25759
- throw toKnownErr75(e);
26127
+ throw toKnownErr80(e);
25760
26128
  });
25761
26129
  }
25762
26130
  getRepostedBy(params2, opts) {
25763
26131
  return this._service.xrpc.call("app.bsky.feed.getRepostedBy", params2, void 0, opts).catch((e) => {
25764
- throw toKnownErr76(e);
26132
+ throw toKnownErr81(e);
25765
26133
  });
25766
26134
  }
25767
26135
  getSuggestedFeeds(params2, opts) {
25768
26136
  return this._service.xrpc.call("app.bsky.feed.getSuggestedFeeds", params2, void 0, opts).catch((e) => {
25769
- throw toKnownErr77(e);
26137
+ throw toKnownErr82(e);
25770
26138
  });
25771
26139
  }
25772
26140
  getTimeline(params2, opts) {
25773
26141
  return this._service.xrpc.call("app.bsky.feed.getTimeline", params2, void 0, opts).catch((e) => {
25774
- throw toKnownErr78(e);
26142
+ throw toKnownErr83(e);
25775
26143
  });
25776
26144
  }
25777
26145
  searchPosts(params2, opts) {
25778
26146
  return this._service.xrpc.call("app.bsky.feed.searchPosts", params2, void 0, opts).catch((e) => {
25779
- throw toKnownErr79(e);
26147
+ throw toKnownErr84(e);
25780
26148
  });
25781
26149
  }
25782
26150
  };
25783
26151
  var GeneratorRecord = class {
25784
- constructor(service) {
25785
- this._service = service;
26152
+ constructor(service2) {
26153
+ this._service = service2;
25786
26154
  }
25787
26155
  async list(params2) {
25788
26156
  const res = await this._service.xrpc.call("com.atproto.repo.listRecords", {
@@ -25808,8 +26176,8 @@ var GeneratorRecord = class {
25808
26176
  }
25809
26177
  };
25810
26178
  var LikeRecord = class {
25811
- constructor(service) {
25812
- this._service = service;
26179
+ constructor(service2) {
26180
+ this._service = service2;
25813
26181
  }
25814
26182
  async list(params2) {
25815
26183
  const res = await this._service.xrpc.call("com.atproto.repo.listRecords", {
@@ -25835,8 +26203,8 @@ var LikeRecord = class {
25835
26203
  }
25836
26204
  };
25837
26205
  var PostRecord = class {
25838
- constructor(service) {
25839
- this._service = service;
26206
+ constructor(service2) {
26207
+ this._service = service2;
25840
26208
  }
25841
26209
  async list(params2) {
25842
26210
  const res = await this._service.xrpc.call("com.atproto.repo.listRecords", {
@@ -25862,8 +26230,8 @@ var PostRecord = class {
25862
26230
  }
25863
26231
  };
25864
26232
  var RepostRecord = class {
25865
- constructor(service) {
25866
- this._service = service;
26233
+ constructor(service2) {
26234
+ this._service = service2;
25867
26235
  }
25868
26236
  async list(params2) {
25869
26237
  const res = await this._service.xrpc.call("com.atproto.repo.listRecords", {
@@ -25889,8 +26257,8 @@ var RepostRecord = class {
25889
26257
  }
25890
26258
  };
25891
26259
  var ThreadgateRecord = class {
25892
- constructor(service) {
25893
- this._service = service;
26260
+ constructor(service2) {
26261
+ this._service = service2;
25894
26262
  }
25895
26263
  async list(params2) {
25896
26264
  const res = await this._service.xrpc.call("com.atproto.repo.listRecords", {
@@ -25916,83 +26284,83 @@ var ThreadgateRecord = class {
25916
26284
  }
25917
26285
  };
25918
26286
  var GraphNS = class {
25919
- constructor(service) {
25920
- this._service = service;
25921
- this.block = new BlockRecord(service);
25922
- this.follow = new FollowRecord(service);
25923
- this.list = new ListRecord(service);
25924
- this.listblock = new ListblockRecord(service);
25925
- this.listitem = new ListitemRecord(service);
26287
+ constructor(service2) {
26288
+ this._service = service2;
26289
+ this.block = new BlockRecord(service2);
26290
+ this.follow = new FollowRecord(service2);
26291
+ this.list = new ListRecord(service2);
26292
+ this.listblock = new ListblockRecord(service2);
26293
+ this.listitem = new ListitemRecord(service2);
25926
26294
  }
25927
26295
  getBlocks(params2, opts) {
25928
26296
  return this._service.xrpc.call("app.bsky.graph.getBlocks", params2, void 0, opts).catch((e) => {
25929
- throw toKnownErr80(e);
26297
+ throw toKnownErr85(e);
25930
26298
  });
25931
26299
  }
25932
26300
  getFollowers(params2, opts) {
25933
26301
  return this._service.xrpc.call("app.bsky.graph.getFollowers", params2, void 0, opts).catch((e) => {
25934
- throw toKnownErr81(e);
26302
+ throw toKnownErr86(e);
25935
26303
  });
25936
26304
  }
25937
26305
  getFollows(params2, opts) {
25938
26306
  return this._service.xrpc.call("app.bsky.graph.getFollows", params2, void 0, opts).catch((e) => {
25939
- throw toKnownErr82(e);
26307
+ throw toKnownErr87(e);
25940
26308
  });
25941
26309
  }
25942
26310
  getList(params2, opts) {
25943
26311
  return this._service.xrpc.call("app.bsky.graph.getList", params2, void 0, opts).catch((e) => {
25944
- throw toKnownErr83(e);
26312
+ throw toKnownErr88(e);
25945
26313
  });
25946
26314
  }
25947
26315
  getListBlocks(params2, opts) {
25948
26316
  return this._service.xrpc.call("app.bsky.graph.getListBlocks", params2, void 0, opts).catch((e) => {
25949
- throw toKnownErr84(e);
26317
+ throw toKnownErr89(e);
25950
26318
  });
25951
26319
  }
25952
26320
  getListMutes(params2, opts) {
25953
26321
  return this._service.xrpc.call("app.bsky.graph.getListMutes", params2, void 0, opts).catch((e) => {
25954
- throw toKnownErr85(e);
26322
+ throw toKnownErr90(e);
25955
26323
  });
25956
26324
  }
25957
26325
  getLists(params2, opts) {
25958
26326
  return this._service.xrpc.call("app.bsky.graph.getLists", params2, void 0, opts).catch((e) => {
25959
- throw toKnownErr86(e);
26327
+ throw toKnownErr91(e);
25960
26328
  });
25961
26329
  }
25962
26330
  getMutes(params2, opts) {
25963
26331
  return this._service.xrpc.call("app.bsky.graph.getMutes", params2, void 0, opts).catch((e) => {
25964
- throw toKnownErr87(e);
26332
+ throw toKnownErr92(e);
25965
26333
  });
25966
26334
  }
25967
26335
  getSuggestedFollowsByActor(params2, opts) {
25968
26336
  return this._service.xrpc.call("app.bsky.graph.getSuggestedFollowsByActor", params2, void 0, opts).catch((e) => {
25969
- throw toKnownErr88(e);
26337
+ throw toKnownErr93(e);
25970
26338
  });
25971
26339
  }
25972
26340
  muteActor(data, opts) {
25973
26341
  return this._service.xrpc.call("app.bsky.graph.muteActor", opts?.qp, data, opts).catch((e) => {
25974
- throw toKnownErr89(e);
26342
+ throw toKnownErr94(e);
25975
26343
  });
25976
26344
  }
25977
26345
  muteActorList(data, opts) {
25978
26346
  return this._service.xrpc.call("app.bsky.graph.muteActorList", opts?.qp, data, opts).catch((e) => {
25979
- throw toKnownErr90(e);
26347
+ throw toKnownErr95(e);
25980
26348
  });
25981
26349
  }
25982
26350
  unmuteActor(data, opts) {
25983
26351
  return this._service.xrpc.call("app.bsky.graph.unmuteActor", opts?.qp, data, opts).catch((e) => {
25984
- throw toKnownErr91(e);
26352
+ throw toKnownErr96(e);
25985
26353
  });
25986
26354
  }
25987
26355
  unmuteActorList(data, opts) {
25988
26356
  return this._service.xrpc.call("app.bsky.graph.unmuteActorList", opts?.qp, data, opts).catch((e) => {
25989
- throw toKnownErr92(e);
26357
+ throw toKnownErr97(e);
25990
26358
  });
25991
26359
  }
25992
26360
  };
25993
26361
  var BlockRecord = class {
25994
- constructor(service) {
25995
- this._service = service;
26362
+ constructor(service2) {
26363
+ this._service = service2;
25996
26364
  }
25997
26365
  async list(params2) {
25998
26366
  const res = await this._service.xrpc.call("com.atproto.repo.listRecords", {
@@ -26018,8 +26386,8 @@ var BlockRecord = class {
26018
26386
  }
26019
26387
  };
26020
26388
  var FollowRecord = class {
26021
- constructor(service) {
26022
- this._service = service;
26389
+ constructor(service2) {
26390
+ this._service = service2;
26023
26391
  }
26024
26392
  async list(params2) {
26025
26393
  const res = await this._service.xrpc.call("com.atproto.repo.listRecords", {
@@ -26045,8 +26413,8 @@ var FollowRecord = class {
26045
26413
  }
26046
26414
  };
26047
26415
  var ListRecord = class {
26048
- constructor(service) {
26049
- this._service = service;
26416
+ constructor(service2) {
26417
+ this._service = service2;
26050
26418
  }
26051
26419
  async list(params2) {
26052
26420
  const res = await this._service.xrpc.call("com.atproto.repo.listRecords", {
@@ -26072,8 +26440,8 @@ var ListRecord = class {
26072
26440
  }
26073
26441
  };
26074
26442
  var ListblockRecord = class {
26075
- constructor(service) {
26076
- this._service = service;
26443
+ constructor(service2) {
26444
+ this._service = service2;
26077
26445
  }
26078
26446
  async list(params2) {
26079
26447
  const res = await this._service.xrpc.call("com.atproto.repo.listRecords", {
@@ -26099,8 +26467,8 @@ var ListblockRecord = class {
26099
26467
  }
26100
26468
  };
26101
26469
  var ListitemRecord = class {
26102
- constructor(service) {
26103
- this._service = service;
26470
+ constructor(service2) {
26471
+ this._service = service2;
26104
26472
  }
26105
26473
  async list(params2) {
26106
26474
  const res = await this._service.xrpc.call("com.atproto.repo.listRecords", {
@@ -26126,62 +26494,62 @@ var ListitemRecord = class {
26126
26494
  }
26127
26495
  };
26128
26496
  var NotificationNS = class {
26129
- constructor(service) {
26130
- this._service = service;
26497
+ constructor(service2) {
26498
+ this._service = service2;
26131
26499
  }
26132
26500
  getUnreadCount(params2, opts) {
26133
26501
  return this._service.xrpc.call("app.bsky.notification.getUnreadCount", params2, void 0, opts).catch((e) => {
26134
- throw toKnownErr93(e);
26502
+ throw toKnownErr98(e);
26135
26503
  });
26136
26504
  }
26137
26505
  listNotifications(params2, opts) {
26138
26506
  return this._service.xrpc.call("app.bsky.notification.listNotifications", params2, void 0, opts).catch((e) => {
26139
- throw toKnownErr94(e);
26507
+ throw toKnownErr99(e);
26140
26508
  });
26141
26509
  }
26142
26510
  registerPush(data, opts) {
26143
26511
  return this._service.xrpc.call("app.bsky.notification.registerPush", opts?.qp, data, opts).catch((e) => {
26144
- throw toKnownErr95(e);
26512
+ throw toKnownErr100(e);
26145
26513
  });
26146
26514
  }
26147
26515
  updateSeen(data, opts) {
26148
26516
  return this._service.xrpc.call("app.bsky.notification.updateSeen", opts?.qp, data, opts).catch((e) => {
26149
- throw toKnownErr96(e);
26517
+ throw toKnownErr101(e);
26150
26518
  });
26151
26519
  }
26152
26520
  };
26153
26521
  var RichtextNS = class {
26154
- constructor(service) {
26155
- this._service = service;
26522
+ constructor(service2) {
26523
+ this._service = service2;
26156
26524
  }
26157
26525
  };
26158
26526
  var UnspeccedNS = class {
26159
- constructor(service) {
26160
- this._service = service;
26527
+ constructor(service2) {
26528
+ this._service = service2;
26161
26529
  }
26162
26530
  getPopular(params2, opts) {
26163
26531
  return this._service.xrpc.call("app.bsky.unspecced.getPopular", params2, void 0, opts).catch((e) => {
26164
- throw toKnownErr97(e);
26532
+ throw toKnownErr102(e);
26165
26533
  });
26166
26534
  }
26167
26535
  getPopularFeedGenerators(params2, opts) {
26168
26536
  return this._service.xrpc.call("app.bsky.unspecced.getPopularFeedGenerators", params2, void 0, opts).catch((e) => {
26169
- throw toKnownErr98(e);
26537
+ throw toKnownErr103(e);
26170
26538
  });
26171
26539
  }
26172
26540
  getTimelineSkeleton(params2, opts) {
26173
26541
  return this._service.xrpc.call("app.bsky.unspecced.getTimelineSkeleton", params2, void 0, opts).catch((e) => {
26174
- throw toKnownErr99(e);
26542
+ throw toKnownErr104(e);
26175
26543
  });
26176
26544
  }
26177
26545
  searchActorsSkeleton(params2, opts) {
26178
26546
  return this._service.xrpc.call("app.bsky.unspecced.searchActorsSkeleton", params2, void 0, opts).catch((e) => {
26179
- throw toKnownErr100(e);
26547
+ throw toKnownErr105(e);
26180
26548
  });
26181
26549
  }
26182
26550
  searchPostsSkeleton(params2, opts) {
26183
26551
  return this._service.xrpc.call("app.bsky.unspecced.searchPostsSkeleton", params2, void 0, opts).catch((e) => {
26184
- throw toKnownErr101(e);
26552
+ throw toKnownErr106(e);
26185
26553
  });
26186
26554
  }
26187
26555
  };
@@ -26225,8 +26593,10 @@ var _AtpAgent = class {
26225
26593
  refreshJwt: res.data.refreshJwt,
26226
26594
  handle: res.data.handle,
26227
26595
  did: res.data.did,
26228
- email: opts.email
26596
+ email: opts.email,
26597
+ emailConfirmed: false
26229
26598
  };
26599
+ this._updateApiEndpoint(res.data.didDoc);
26230
26600
  return res;
26231
26601
  } catch (e) {
26232
26602
  this.session = void 0;
@@ -26250,8 +26620,10 @@ var _AtpAgent = class {
26250
26620
  refreshJwt: res.data.refreshJwt,
26251
26621
  handle: res.data.handle,
26252
26622
  did: res.data.did,
26253
- email: res.data.email
26623
+ email: res.data.email,
26624
+ emailConfirmed: res.data.emailConfirmed
26254
26625
  };
26626
+ this._updateApiEndpoint(res.data.didDoc);
26255
26627
  return res;
26256
26628
  } catch (e) {
26257
26629
  this.session = void 0;
@@ -26273,6 +26645,7 @@ var _AtpAgent = class {
26273
26645
  }
26274
26646
  this.session.email = res.data.email;
26275
26647
  this.session.handle = res.data.handle;
26648
+ this.session.emailConfirmed = res.data.emailConfirmed;
26276
26649
  return res;
26277
26650
  } catch (e) {
26278
26651
  this.session = void 0;
@@ -26324,7 +26697,7 @@ var _AtpAgent = class {
26324
26697
  if (!this.session?.refreshJwt) {
26325
26698
  return;
26326
26699
  }
26327
- const url = new URL(this.service.origin);
26700
+ const url = new URL((this.pdsUrl || this.service).origin);
26328
26701
  url.pathname = `/xrpc/${REFRESH_SESSION}`;
26329
26702
  const res = await _AtpAgent.fetch(url.toString(), "POST", {
26330
26703
  authorization: `Bearer ${this.session.refreshJwt}`
@@ -26334,14 +26707,23 @@ var _AtpAgent = class {
26334
26707
  this._persistSession?.("expired", void 0);
26335
26708
  } else if (isNewSessionObject(this._baseClient, res.body)) {
26336
26709
  this.session = {
26710
+ ...this.session || {},
26337
26711
  accessJwt: res.body.accessJwt,
26338
26712
  refreshJwt: res.body.refreshJwt,
26339
26713
  handle: res.body.handle,
26340
26714
  did: res.body.did
26341
26715
  };
26716
+ this._updateApiEndpoint(res.body.didDoc);
26342
26717
  this._persistSession?.("update", this.session);
26343
26718
  }
26344
26719
  }
26720
+ _updateApiEndpoint(didDoc) {
26721
+ if (isValidDidDoc(didDoc)) {
26722
+ const endpoint = getPdsEndpoint(didDoc);
26723
+ this.pdsUrl = endpoint ? new URL(endpoint) : void 0;
26724
+ }
26725
+ this.api.xrpc.uri = this.pdsUrl || this.service;
26726
+ }
26345
26727
  };
26346
26728
  var AtpAgent = _AtpAgent;
26347
26729
  AtpAgent.fetch = defaultFetchHandler;
@@ -28998,6 +29380,15 @@ var ModerationCauseAccumulator = class {
28998
29380
  });
28999
29381
  }
29000
29382
  }
29383
+ addBlockingByList(blockingByList) {
29384
+ if (blockingByList) {
29385
+ this.causes.push({
29386
+ type: "blocking",
29387
+ source: { type: "list", list: blockingByList },
29388
+ priority: 3
29389
+ });
29390
+ }
29391
+ }
29001
29392
  addBlockedBy(blockedBy) {
29002
29393
  if (blockedBy) {
29003
29394
  this.causes.push({
@@ -29129,7 +29520,13 @@ function decideAccount(subject, opts) {
29129
29520
  acc.addMuted(subject.viewer?.muted);
29130
29521
  }
29131
29522
  }
29132
- acc.addBlocking(subject.viewer?.blocking);
29523
+ if (subject.viewer?.blocking) {
29524
+ if (subject.viewer?.blockingByList) {
29525
+ acc.addBlockingByList(subject.viewer?.blockingByList);
29526
+ } else {
29527
+ acc.addBlocking(subject.viewer?.blocking);
29528
+ }
29529
+ }
29133
29530
  acc.addBlockedBy(subject.viewer?.blockedBy);
29134
29531
  for (const label of filterAccountLabels(subject.labels)) {
29135
29532
  acc.addLabel(label, opts);
@@ -29747,6 +30144,42 @@ var BskyAgent = class extends AtpAgent {
29747
30144
  async unmute(actor) {
29748
30145
  return this.api.app.bsky.graph.unmuteActor({ actor });
29749
30146
  }
30147
+ async muteModList(uri2) {
30148
+ return this.api.app.bsky.graph.muteActorList({
30149
+ list: uri2
30150
+ });
30151
+ }
30152
+ async unmuteModList(uri2) {
30153
+ return this.api.app.bsky.graph.unmuteActorList({
30154
+ list: uri2
30155
+ });
30156
+ }
30157
+ async blockModList(uri2) {
30158
+ if (!this.session) {
30159
+ throw new Error("Not logged in");
30160
+ }
30161
+ return await this.api.app.bsky.graph.listblock.create({ repo: this.session.did }, {
30162
+ subject: uri2,
30163
+ createdAt: new Date().toISOString()
30164
+ });
30165
+ }
30166
+ async unblockModList(uri2) {
30167
+ if (!this.session) {
30168
+ throw new Error("Not logged in");
30169
+ }
30170
+ const listInfo = await this.api.app.bsky.graph.getList({
30171
+ list: uri2,
30172
+ limit: 1
30173
+ });
30174
+ if (!listInfo.data.list.viewer?.blocked) {
30175
+ return;
30176
+ }
30177
+ const { rkey } = new AtUri(listInfo.data.list.viewer.blocked);
30178
+ return await this.api.app.bsky.graph.listblock.delete({
30179
+ repo: this.session.did,
30180
+ rkey
30181
+ });
30182
+ }
29750
30183
  async updateSeenNotifications(seenAt) {
29751
30184
  seenAt = seenAt || new Date().toISOString();
29752
30185
  return this.api.app.bsky.notification.updateSeen({