@atproto/api 0.6.20 → 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 (37) hide show
  1. package/CHANGELOG.md +14 -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 +3 -0
  8. package/dist/client/lexicons.d.ts +43 -0
  9. package/dist/client/types/app/bsky/actor/defs.d.ts +1 -0
  10. package/dist/client/types/com/atproto/server/createAccount.d.ts +2 -0
  11. package/dist/client/types/com/atproto/server/createSession.d.ts +1 -0
  12. package/dist/client/types/com/atproto/server/refreshSession.d.ts +1 -0
  13. package/dist/client/types/com/atproto/server/reserveSigningKey.d.ts +18 -0
  14. package/dist/client/types/com/atproto/sync/listRepos.d.ts +1 -0
  15. package/dist/index.js +456 -265
  16. package/dist/index.js.map +3 -3
  17. package/dist/moderation/accumulator.d.ts +1 -0
  18. package/docs/moderation-behaviors/profiles.md +17 -0
  19. package/package.json +8 -7
  20. package/src/agent.ts +28 -1
  21. package/src/bsky-agent.ts +43 -0
  22. package/src/client/index.ts +13 -0
  23. package/src/client/lexicons.ts +44 -1
  24. package/src/client/types/app/bsky/actor/defs.ts +1 -0
  25. package/src/client/types/com/atproto/server/createAccount.ts +2 -0
  26. package/src/client/types/com/atproto/server/createSession.ts +1 -0
  27. package/src/client/types/com/atproto/server/refreshSession.ts +1 -0
  28. package/src/client/types/com/atproto/server/reserveSigningKey.ts +35 -0
  29. package/src/client/types/com/atproto/sync/listRepos.ts +1 -0
  30. package/src/moderation/accumulator.ts +13 -0
  31. package/src/moderation/subjects/account.ts +7 -1
  32. package/tests/agent.test.ts +18 -21
  33. package/tests/bsky-agent.test.ts +19 -25
  34. package/tests/errors.test.ts +5 -11
  35. package/tests/rich-text-detection.test.ts +3 -3
  36. package/tests/util/index.ts +3 -0
  37. package/tests/util/moderation-behavior.ts +10 -2
package/dist/index.js CHANGED
@@ -9001,6 +9001,7 @@ __export(src_exports2, {
9001
9001
  ComAtprotoServerRequestEmailConfirmation: () => requestEmailConfirmation_exports,
9002
9002
  ComAtprotoServerRequestEmailUpdate: () => requestEmailUpdate_exports,
9003
9003
  ComAtprotoServerRequestPasswordReset: () => requestPasswordReset_exports,
9004
+ ComAtprotoServerReserveSigningKey: () => reserveSigningKey_exports,
9004
9005
  ComAtprotoServerResetPassword: () => resetPassword_exports,
9005
9006
  ComAtprotoServerRevokeAppPassword: () => revokeAppPassword_exports,
9006
9007
  ComAtprotoServerUpdateEmail: () => updateEmail_exports,
@@ -14186,6 +14187,77 @@ var validateLanguage = (langTag) => {
14186
14187
  };
14187
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})+))$/;
14188
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
+
14189
14261
  // ../lexicon/src/validators/formats.ts
14190
14262
  var import_iso_datestring_validator = __toESM(require_dist());
14191
14263
  function datetime(path, value) {
@@ -17890,6 +17962,9 @@ var schemaDict = {
17890
17962
  },
17891
17963
  recoveryKey: {
17892
17964
  type: "string"
17965
+ },
17966
+ plcOp: {
17967
+ type: "bytes"
17893
17968
  }
17894
17969
  }
17895
17970
  }
@@ -17913,6 +17988,9 @@ var schemaDict = {
17913
17988
  did: {
17914
17989
  type: "string",
17915
17990
  format: "did"
17991
+ },
17992
+ didDoc: {
17993
+ type: "unknown"
17916
17994
  }
17917
17995
  }
17918
17996
  }
@@ -18138,6 +18216,9 @@ var schemaDict = {
18138
18216
  type: "string",
18139
18217
  format: "did"
18140
18218
  },
18219
+ didDoc: {
18220
+ type: "unknown"
18221
+ },
18141
18222
  email: {
18142
18223
  type: "string"
18143
18224
  },
@@ -18452,6 +18533,9 @@ var schemaDict = {
18452
18533
  did: {
18453
18534
  type: "string",
18454
18535
  format: "did"
18536
+ },
18537
+ didDoc: {
18538
+ type: "unknown"
18455
18539
  }
18456
18540
  }
18457
18541
  }
@@ -18528,6 +18612,29 @@ var schemaDict = {
18528
18612
  }
18529
18613
  }
18530
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
+ },
18531
18638
  ComAtprotoServerResetPassword: {
18532
18639
  lexicon: 1,
18533
18640
  id: "com.atproto.server.resetPassword",
@@ -18945,7 +19052,7 @@ var schemaDict = {
18945
19052
  },
18946
19053
  repo: {
18947
19054
  type: "object",
18948
- required: ["did", "head"],
19055
+ required: ["did", "head", "rev"],
18949
19056
  properties: {
18950
19057
  did: {
18951
19058
  type: "string",
@@ -18954,6 +19061,9 @@ var schemaDict = {
18954
19061
  head: {
18955
19062
  type: "string",
18956
19063
  format: "cid"
19064
+ },
19065
+ rev: {
19066
+ type: "string"
18957
19067
  }
18958
19068
  }
18959
19069
  }
@@ -19354,6 +19464,10 @@ var schemaDict = {
19354
19464
  type: "string",
19355
19465
  format: "at-uri"
19356
19466
  },
19467
+ blockingByList: {
19468
+ type: "ref",
19469
+ ref: "lex:app.bsky.graph.defs#listViewBasic"
19470
+ },
19357
19471
  following: {
19358
19472
  type: "string",
19359
19473
  format: "at-uri"
@@ -23637,12 +23751,23 @@ function toKnownErr46(e) {
23637
23751
  return e;
23638
23752
  }
23639
23753
 
23754
+ // src/client/types/com/atproto/server/reserveSigningKey.ts
23755
+ var reserveSigningKey_exports = {};
23756
+ __export(reserveSigningKey_exports, {
23757
+ toKnownErr: () => toKnownErr47
23758
+ });
23759
+ function toKnownErr47(e) {
23760
+ if (e instanceof XRPCError) {
23761
+ }
23762
+ return e;
23763
+ }
23764
+
23640
23765
  // src/client/types/com/atproto/server/resetPassword.ts
23641
23766
  var resetPassword_exports = {};
23642
23767
  __export(resetPassword_exports, {
23643
23768
  ExpiredTokenError: () => ExpiredTokenError3,
23644
23769
  InvalidTokenError: () => InvalidTokenError3,
23645
- toKnownErr: () => toKnownErr47
23770
+ toKnownErr: () => toKnownErr48
23646
23771
  });
23647
23772
  var ExpiredTokenError3 = class extends XRPCError {
23648
23773
  constructor(src2) {
@@ -23654,7 +23779,7 @@ var InvalidTokenError3 = class extends XRPCError {
23654
23779
  super(src2.status, src2.error, src2.message, src2.headers);
23655
23780
  }
23656
23781
  };
23657
- function toKnownErr47(e) {
23782
+ function toKnownErr48(e) {
23658
23783
  if (e instanceof XRPCError) {
23659
23784
  if (e.error === "ExpiredToken")
23660
23785
  return new ExpiredTokenError3(e);
@@ -23667,9 +23792,9 @@ function toKnownErr47(e) {
23667
23792
  // src/client/types/com/atproto/server/revokeAppPassword.ts
23668
23793
  var revokeAppPassword_exports = {};
23669
23794
  __export(revokeAppPassword_exports, {
23670
- toKnownErr: () => toKnownErr48
23795
+ toKnownErr: () => toKnownErr49
23671
23796
  });
23672
- function toKnownErr48(e) {
23797
+ function toKnownErr49(e) {
23673
23798
  if (e instanceof XRPCError) {
23674
23799
  }
23675
23800
  return e;
@@ -23681,7 +23806,7 @@ __export(updateEmail_exports, {
23681
23806
  ExpiredTokenError: () => ExpiredTokenError4,
23682
23807
  InvalidTokenError: () => InvalidTokenError4,
23683
23808
  TokenRequiredError: () => TokenRequiredError,
23684
- toKnownErr: () => toKnownErr49
23809
+ toKnownErr: () => toKnownErr50
23685
23810
  });
23686
23811
  var ExpiredTokenError4 = class extends XRPCError {
23687
23812
  constructor(src2) {
@@ -23698,7 +23823,7 @@ var TokenRequiredError = class extends XRPCError {
23698
23823
  super(src2.status, src2.error, src2.message, src2.headers);
23699
23824
  }
23700
23825
  };
23701
- function toKnownErr49(e) {
23826
+ function toKnownErr50(e) {
23702
23827
  if (e instanceof XRPCError) {
23703
23828
  if (e.error === "ExpiredToken")
23704
23829
  return new ExpiredTokenError4(e);
@@ -23713,9 +23838,9 @@ function toKnownErr49(e) {
23713
23838
  // src/client/types/com/atproto/sync/getBlob.ts
23714
23839
  var getBlob_exports = {};
23715
23840
  __export(getBlob_exports, {
23716
- toKnownErr: () => toKnownErr50
23841
+ toKnownErr: () => toKnownErr51
23717
23842
  });
23718
- function toKnownErr50(e) {
23843
+ function toKnownErr51(e) {
23719
23844
  if (e instanceof XRPCError) {
23720
23845
  }
23721
23846
  return e;
@@ -23724,9 +23849,9 @@ function toKnownErr50(e) {
23724
23849
  // src/client/types/com/atproto/sync/getBlocks.ts
23725
23850
  var getBlocks_exports = {};
23726
23851
  __export(getBlocks_exports, {
23727
- toKnownErr: () => toKnownErr51
23852
+ toKnownErr: () => toKnownErr52
23728
23853
  });
23729
- function toKnownErr51(e) {
23854
+ function toKnownErr52(e) {
23730
23855
  if (e instanceof XRPCError) {
23731
23856
  }
23732
23857
  return e;
@@ -23735,9 +23860,9 @@ function toKnownErr51(e) {
23735
23860
  // src/client/types/com/atproto/sync/getCheckout.ts
23736
23861
  var getCheckout_exports = {};
23737
23862
  __export(getCheckout_exports, {
23738
- toKnownErr: () => toKnownErr52
23863
+ toKnownErr: () => toKnownErr53
23739
23864
  });
23740
- function toKnownErr52(e) {
23865
+ function toKnownErr53(e) {
23741
23866
  if (e instanceof XRPCError) {
23742
23867
  }
23743
23868
  return e;
@@ -23747,14 +23872,14 @@ function toKnownErr52(e) {
23747
23872
  var getHead_exports = {};
23748
23873
  __export(getHead_exports, {
23749
23874
  HeadNotFoundError: () => HeadNotFoundError,
23750
- toKnownErr: () => toKnownErr53
23875
+ toKnownErr: () => toKnownErr54
23751
23876
  });
23752
23877
  var HeadNotFoundError = class extends XRPCError {
23753
23878
  constructor(src2) {
23754
23879
  super(src2.status, src2.error, src2.message, src2.headers);
23755
23880
  }
23756
23881
  };
23757
- function toKnownErr53(e) {
23882
+ function toKnownErr54(e) {
23758
23883
  if (e instanceof XRPCError) {
23759
23884
  if (e.error === "HeadNotFound")
23760
23885
  return new HeadNotFoundError(e);
@@ -23766,14 +23891,14 @@ function toKnownErr53(e) {
23766
23891
  var getLatestCommit_exports = {};
23767
23892
  __export(getLatestCommit_exports, {
23768
23893
  RepoNotFoundError: () => RepoNotFoundError2,
23769
- toKnownErr: () => toKnownErr54
23894
+ toKnownErr: () => toKnownErr55
23770
23895
  });
23771
23896
  var RepoNotFoundError2 = class extends XRPCError {
23772
23897
  constructor(src2) {
23773
23898
  super(src2.status, src2.error, src2.message, src2.headers);
23774
23899
  }
23775
23900
  };
23776
- function toKnownErr54(e) {
23901
+ function toKnownErr55(e) {
23777
23902
  if (e instanceof XRPCError) {
23778
23903
  if (e.error === "RepoNotFound")
23779
23904
  return new RepoNotFoundError2(e);
@@ -23784,9 +23909,9 @@ function toKnownErr54(e) {
23784
23909
  // src/client/types/com/atproto/sync/getRecord.ts
23785
23910
  var getRecord_exports3 = {};
23786
23911
  __export(getRecord_exports3, {
23787
- toKnownErr: () => toKnownErr55
23912
+ toKnownErr: () => toKnownErr56
23788
23913
  });
23789
- function toKnownErr55(e) {
23914
+ function toKnownErr56(e) {
23790
23915
  if (e instanceof XRPCError) {
23791
23916
  }
23792
23917
  return e;
@@ -23795,9 +23920,9 @@ function toKnownErr55(e) {
23795
23920
  // src/client/types/com/atproto/sync/getRepo.ts
23796
23921
  var getRepo_exports2 = {};
23797
23922
  __export(getRepo_exports2, {
23798
- toKnownErr: () => toKnownErr56
23923
+ toKnownErr: () => toKnownErr57
23799
23924
  });
23800
- function toKnownErr56(e) {
23925
+ function toKnownErr57(e) {
23801
23926
  if (e instanceof XRPCError) {
23802
23927
  }
23803
23928
  return e;
@@ -23806,9 +23931,9 @@ function toKnownErr56(e) {
23806
23931
  // src/client/types/com/atproto/sync/listBlobs.ts
23807
23932
  var listBlobs_exports = {};
23808
23933
  __export(listBlobs_exports, {
23809
- toKnownErr: () => toKnownErr57
23934
+ toKnownErr: () => toKnownErr58
23810
23935
  });
23811
- function toKnownErr57(e) {
23936
+ function toKnownErr58(e) {
23812
23937
  if (e instanceof XRPCError) {
23813
23938
  }
23814
23939
  return e;
@@ -23818,10 +23943,10 @@ function toKnownErr57(e) {
23818
23943
  var listRepos_exports = {};
23819
23944
  __export(listRepos_exports, {
23820
23945
  isRepo: () => isRepo,
23821
- toKnownErr: () => toKnownErr58,
23946
+ toKnownErr: () => toKnownErr59,
23822
23947
  validateRepo: () => validateRepo
23823
23948
  });
23824
- function toKnownErr58(e) {
23949
+ function toKnownErr59(e) {
23825
23950
  if (e instanceof XRPCError) {
23826
23951
  }
23827
23952
  return e;
@@ -23836,9 +23961,9 @@ function validateRepo(v) {
23836
23961
  // src/client/types/com/atproto/sync/notifyOfUpdate.ts
23837
23962
  var notifyOfUpdate_exports = {};
23838
23963
  __export(notifyOfUpdate_exports, {
23839
- toKnownErr: () => toKnownErr59
23964
+ toKnownErr: () => toKnownErr60
23840
23965
  });
23841
- function toKnownErr59(e) {
23966
+ function toKnownErr60(e) {
23842
23967
  if (e instanceof XRPCError) {
23843
23968
  }
23844
23969
  return e;
@@ -23847,9 +23972,9 @@ function toKnownErr59(e) {
23847
23972
  // src/client/types/com/atproto/sync/requestCrawl.ts
23848
23973
  var requestCrawl_exports = {};
23849
23974
  __export(requestCrawl_exports, {
23850
- toKnownErr: () => toKnownErr60
23975
+ toKnownErr: () => toKnownErr61
23851
23976
  });
23852
- function toKnownErr60(e) {
23977
+ function toKnownErr61(e) {
23853
23978
  if (e instanceof XRPCError) {
23854
23979
  }
23855
23980
  return e;
@@ -23858,9 +23983,9 @@ function toKnownErr60(e) {
23858
23983
  // src/client/types/app/bsky/actor/getPreferences.ts
23859
23984
  var getPreferences_exports = {};
23860
23985
  __export(getPreferences_exports, {
23861
- toKnownErr: () => toKnownErr61
23986
+ toKnownErr: () => toKnownErr62
23862
23987
  });
23863
- function toKnownErr61(e) {
23988
+ function toKnownErr62(e) {
23864
23989
  if (e instanceof XRPCError) {
23865
23990
  }
23866
23991
  return e;
@@ -23869,9 +23994,9 @@ function toKnownErr61(e) {
23869
23994
  // src/client/types/app/bsky/actor/getProfile.ts
23870
23995
  var getProfile_exports = {};
23871
23996
  __export(getProfile_exports, {
23872
- toKnownErr: () => toKnownErr62
23997
+ toKnownErr: () => toKnownErr63
23873
23998
  });
23874
- function toKnownErr62(e) {
23999
+ function toKnownErr63(e) {
23875
24000
  if (e instanceof XRPCError) {
23876
24001
  }
23877
24002
  return e;
@@ -23880,9 +24005,9 @@ function toKnownErr62(e) {
23880
24005
  // src/client/types/app/bsky/actor/getProfiles.ts
23881
24006
  var getProfiles_exports = {};
23882
24007
  __export(getProfiles_exports, {
23883
- toKnownErr: () => toKnownErr63
24008
+ toKnownErr: () => toKnownErr64
23884
24009
  });
23885
- function toKnownErr63(e) {
24010
+ function toKnownErr64(e) {
23886
24011
  if (e instanceof XRPCError) {
23887
24012
  }
23888
24013
  return e;
@@ -23891,9 +24016,9 @@ function toKnownErr63(e) {
23891
24016
  // src/client/types/app/bsky/actor/getSuggestions.ts
23892
24017
  var getSuggestions_exports = {};
23893
24018
  __export(getSuggestions_exports, {
23894
- toKnownErr: () => toKnownErr64
24019
+ toKnownErr: () => toKnownErr65
23895
24020
  });
23896
- function toKnownErr64(e) {
24021
+ function toKnownErr65(e) {
23897
24022
  if (e instanceof XRPCError) {
23898
24023
  }
23899
24024
  return e;
@@ -23902,9 +24027,9 @@ function toKnownErr64(e) {
23902
24027
  // src/client/types/app/bsky/actor/putPreferences.ts
23903
24028
  var putPreferences_exports = {};
23904
24029
  __export(putPreferences_exports, {
23905
- toKnownErr: () => toKnownErr65
24030
+ toKnownErr: () => toKnownErr66
23906
24031
  });
23907
- function toKnownErr65(e) {
24032
+ function toKnownErr66(e) {
23908
24033
  if (e instanceof XRPCError) {
23909
24034
  }
23910
24035
  return e;
@@ -23913,9 +24038,9 @@ function toKnownErr65(e) {
23913
24038
  // src/client/types/app/bsky/actor/searchActors.ts
23914
24039
  var searchActors_exports = {};
23915
24040
  __export(searchActors_exports, {
23916
- toKnownErr: () => toKnownErr66
24041
+ toKnownErr: () => toKnownErr67
23917
24042
  });
23918
- function toKnownErr66(e) {
24043
+ function toKnownErr67(e) {
23919
24044
  if (e instanceof XRPCError) {
23920
24045
  }
23921
24046
  return e;
@@ -23924,9 +24049,9 @@ function toKnownErr66(e) {
23924
24049
  // src/client/types/app/bsky/actor/searchActorsTypeahead.ts
23925
24050
  var searchActorsTypeahead_exports = {};
23926
24051
  __export(searchActorsTypeahead_exports, {
23927
- toKnownErr: () => toKnownErr67
24052
+ toKnownErr: () => toKnownErr68
23928
24053
  });
23929
- function toKnownErr67(e) {
24054
+ function toKnownErr68(e) {
23930
24055
  if (e instanceof XRPCError) {
23931
24056
  }
23932
24057
  return e;
@@ -23937,11 +24062,11 @@ var describeFeedGenerator_exports = {};
23937
24062
  __export(describeFeedGenerator_exports, {
23938
24063
  isFeed: () => isFeed,
23939
24064
  isLinks: () => isLinks2,
23940
- toKnownErr: () => toKnownErr68,
24065
+ toKnownErr: () => toKnownErr69,
23941
24066
  validateFeed: () => validateFeed,
23942
24067
  validateLinks: () => validateLinks2
23943
24068
  });
23944
- function toKnownErr68(e) {
24069
+ function toKnownErr69(e) {
23945
24070
  if (e instanceof XRPCError) {
23946
24071
  }
23947
24072
  return e;
@@ -23962,9 +24087,9 @@ function validateLinks2(v) {
23962
24087
  // src/client/types/app/bsky/feed/getActorFeeds.ts
23963
24088
  var getActorFeeds_exports = {};
23964
24089
  __export(getActorFeeds_exports, {
23965
- toKnownErr: () => toKnownErr69
24090
+ toKnownErr: () => toKnownErr70
23966
24091
  });
23967
- function toKnownErr69(e) {
24092
+ function toKnownErr70(e) {
23968
24093
  if (e instanceof XRPCError) {
23969
24094
  }
23970
24095
  return e;
@@ -23975,7 +24100,7 @@ var getActorLikes_exports = {};
23975
24100
  __export(getActorLikes_exports, {
23976
24101
  BlockedActorError: () => BlockedActorError,
23977
24102
  BlockedByActorError: () => BlockedByActorError,
23978
- toKnownErr: () => toKnownErr70
24103
+ toKnownErr: () => toKnownErr71
23979
24104
  });
23980
24105
  var BlockedActorError = class extends XRPCError {
23981
24106
  constructor(src2) {
@@ -23987,7 +24112,7 @@ var BlockedByActorError = class extends XRPCError {
23987
24112
  super(src2.status, src2.error, src2.message, src2.headers);
23988
24113
  }
23989
24114
  };
23990
- function toKnownErr70(e) {
24115
+ function toKnownErr71(e) {
23991
24116
  if (e instanceof XRPCError) {
23992
24117
  if (e.error === "BlockedActor")
23993
24118
  return new BlockedActorError(e);
@@ -24002,7 +24127,7 @@ var getAuthorFeed_exports = {};
24002
24127
  __export(getAuthorFeed_exports, {
24003
24128
  BlockedActorError: () => BlockedActorError2,
24004
24129
  BlockedByActorError: () => BlockedByActorError2,
24005
- toKnownErr: () => toKnownErr71
24130
+ toKnownErr: () => toKnownErr72
24006
24131
  });
24007
24132
  var BlockedActorError2 = class extends XRPCError {
24008
24133
  constructor(src2) {
@@ -24014,7 +24139,7 @@ var BlockedByActorError2 = class extends XRPCError {
24014
24139
  super(src2.status, src2.error, src2.message, src2.headers);
24015
24140
  }
24016
24141
  };
24017
- function toKnownErr71(e) {
24142
+ function toKnownErr72(e) {
24018
24143
  if (e instanceof XRPCError) {
24019
24144
  if (e.error === "BlockedActor")
24020
24145
  return new BlockedActorError2(e);
@@ -24028,14 +24153,14 @@ function toKnownErr71(e) {
24028
24153
  var getFeed_exports = {};
24029
24154
  __export(getFeed_exports, {
24030
24155
  UnknownFeedError: () => UnknownFeedError,
24031
- toKnownErr: () => toKnownErr72
24156
+ toKnownErr: () => toKnownErr73
24032
24157
  });
24033
24158
  var UnknownFeedError = class extends XRPCError {
24034
24159
  constructor(src2) {
24035
24160
  super(src2.status, src2.error, src2.message, src2.headers);
24036
24161
  }
24037
24162
  };
24038
- function toKnownErr72(e) {
24163
+ function toKnownErr73(e) {
24039
24164
  if (e instanceof XRPCError) {
24040
24165
  if (e.error === "UnknownFeed")
24041
24166
  return new UnknownFeedError(e);
@@ -24046,9 +24171,9 @@ function toKnownErr72(e) {
24046
24171
  // src/client/types/app/bsky/feed/getFeedGenerator.ts
24047
24172
  var getFeedGenerator_exports = {};
24048
24173
  __export(getFeedGenerator_exports, {
24049
- toKnownErr: () => toKnownErr73
24174
+ toKnownErr: () => toKnownErr74
24050
24175
  });
24051
- function toKnownErr73(e) {
24176
+ function toKnownErr74(e) {
24052
24177
  if (e instanceof XRPCError) {
24053
24178
  }
24054
24179
  return e;
@@ -24057,9 +24182,9 @@ function toKnownErr73(e) {
24057
24182
  // src/client/types/app/bsky/feed/getFeedGenerators.ts
24058
24183
  var getFeedGenerators_exports = {};
24059
24184
  __export(getFeedGenerators_exports, {
24060
- toKnownErr: () => toKnownErr74
24185
+ toKnownErr: () => toKnownErr75
24061
24186
  });
24062
- function toKnownErr74(e) {
24187
+ function toKnownErr75(e) {
24063
24188
  if (e instanceof XRPCError) {
24064
24189
  }
24065
24190
  return e;
@@ -24069,14 +24194,14 @@ function toKnownErr74(e) {
24069
24194
  var getFeedSkeleton_exports = {};
24070
24195
  __export(getFeedSkeleton_exports, {
24071
24196
  UnknownFeedError: () => UnknownFeedError2,
24072
- toKnownErr: () => toKnownErr75
24197
+ toKnownErr: () => toKnownErr76
24073
24198
  });
24074
24199
  var UnknownFeedError2 = class extends XRPCError {
24075
24200
  constructor(src2) {
24076
24201
  super(src2.status, src2.error, src2.message, src2.headers);
24077
24202
  }
24078
24203
  };
24079
- function toKnownErr75(e) {
24204
+ function toKnownErr76(e) {
24080
24205
  if (e instanceof XRPCError) {
24081
24206
  if (e.error === "UnknownFeed")
24082
24207
  return new UnknownFeedError2(e);
@@ -24088,10 +24213,10 @@ function toKnownErr75(e) {
24088
24213
  var getLikes_exports = {};
24089
24214
  __export(getLikes_exports, {
24090
24215
  isLike: () => isLike,
24091
- toKnownErr: () => toKnownErr76,
24216
+ toKnownErr: () => toKnownErr77,
24092
24217
  validateLike: () => validateLike
24093
24218
  });
24094
- function toKnownErr76(e) {
24219
+ function toKnownErr77(e) {
24095
24220
  if (e instanceof XRPCError) {
24096
24221
  }
24097
24222
  return e;
@@ -24107,14 +24232,14 @@ function validateLike(v) {
24107
24232
  var getListFeed_exports = {};
24108
24233
  __export(getListFeed_exports, {
24109
24234
  UnknownListError: () => UnknownListError,
24110
- toKnownErr: () => toKnownErr77
24235
+ toKnownErr: () => toKnownErr78
24111
24236
  });
24112
24237
  var UnknownListError = class extends XRPCError {
24113
24238
  constructor(src2) {
24114
24239
  super(src2.status, src2.error, src2.message, src2.headers);
24115
24240
  }
24116
24241
  };
24117
- function toKnownErr77(e) {
24242
+ function toKnownErr78(e) {
24118
24243
  if (e instanceof XRPCError) {
24119
24244
  if (e.error === "UnknownList")
24120
24245
  return new UnknownListError(e);
@@ -24126,14 +24251,14 @@ function toKnownErr77(e) {
24126
24251
  var getPostThread_exports = {};
24127
24252
  __export(getPostThread_exports, {
24128
24253
  NotFoundError: () => NotFoundError,
24129
- toKnownErr: () => toKnownErr78
24254
+ toKnownErr: () => toKnownErr79
24130
24255
  });
24131
24256
  var NotFoundError = class extends XRPCError {
24132
24257
  constructor(src2) {
24133
24258
  super(src2.status, src2.error, src2.message, src2.headers);
24134
24259
  }
24135
24260
  };
24136
- function toKnownErr78(e) {
24261
+ function toKnownErr79(e) {
24137
24262
  if (e instanceof XRPCError) {
24138
24263
  if (e.error === "NotFound")
24139
24264
  return new NotFoundError(e);
@@ -24144,9 +24269,9 @@ function toKnownErr78(e) {
24144
24269
  // src/client/types/app/bsky/feed/getPosts.ts
24145
24270
  var getPosts_exports = {};
24146
24271
  __export(getPosts_exports, {
24147
- toKnownErr: () => toKnownErr79
24272
+ toKnownErr: () => toKnownErr80
24148
24273
  });
24149
- function toKnownErr79(e) {
24274
+ function toKnownErr80(e) {
24150
24275
  if (e instanceof XRPCError) {
24151
24276
  }
24152
24277
  return e;
@@ -24155,9 +24280,9 @@ function toKnownErr79(e) {
24155
24280
  // src/client/types/app/bsky/feed/getRepostedBy.ts
24156
24281
  var getRepostedBy_exports = {};
24157
24282
  __export(getRepostedBy_exports, {
24158
- toKnownErr: () => toKnownErr80
24283
+ toKnownErr: () => toKnownErr81
24159
24284
  });
24160
- function toKnownErr80(e) {
24285
+ function toKnownErr81(e) {
24161
24286
  if (e instanceof XRPCError) {
24162
24287
  }
24163
24288
  return e;
@@ -24166,9 +24291,9 @@ function toKnownErr80(e) {
24166
24291
  // src/client/types/app/bsky/feed/getSuggestedFeeds.ts
24167
24292
  var getSuggestedFeeds_exports = {};
24168
24293
  __export(getSuggestedFeeds_exports, {
24169
- toKnownErr: () => toKnownErr81
24294
+ toKnownErr: () => toKnownErr82
24170
24295
  });
24171
- function toKnownErr81(e) {
24296
+ function toKnownErr82(e) {
24172
24297
  if (e instanceof XRPCError) {
24173
24298
  }
24174
24299
  return e;
@@ -24177,9 +24302,9 @@ function toKnownErr81(e) {
24177
24302
  // src/client/types/app/bsky/feed/getTimeline.ts
24178
24303
  var getTimeline_exports = {};
24179
24304
  __export(getTimeline_exports, {
24180
- toKnownErr: () => toKnownErr82
24305
+ toKnownErr: () => toKnownErr83
24181
24306
  });
24182
- function toKnownErr82(e) {
24307
+ function toKnownErr83(e) {
24183
24308
  if (e instanceof XRPCError) {
24184
24309
  }
24185
24310
  return e;
@@ -24189,14 +24314,14 @@ function toKnownErr82(e) {
24189
24314
  var searchPosts_exports = {};
24190
24315
  __export(searchPosts_exports, {
24191
24316
  BadQueryStringError: () => BadQueryStringError,
24192
- toKnownErr: () => toKnownErr83
24317
+ toKnownErr: () => toKnownErr84
24193
24318
  });
24194
24319
  var BadQueryStringError = class extends XRPCError {
24195
24320
  constructor(src2) {
24196
24321
  super(src2.status, src2.error, src2.message, src2.headers);
24197
24322
  }
24198
24323
  };
24199
- function toKnownErr83(e) {
24324
+ function toKnownErr84(e) {
24200
24325
  if (e instanceof XRPCError) {
24201
24326
  if (e.error === "BadQueryString")
24202
24327
  return new BadQueryStringError(e);
@@ -24207,9 +24332,9 @@ function toKnownErr83(e) {
24207
24332
  // src/client/types/app/bsky/graph/getBlocks.ts
24208
24333
  var getBlocks_exports2 = {};
24209
24334
  __export(getBlocks_exports2, {
24210
- toKnownErr: () => toKnownErr84
24335
+ toKnownErr: () => toKnownErr85
24211
24336
  });
24212
- function toKnownErr84(e) {
24337
+ function toKnownErr85(e) {
24213
24338
  if (e instanceof XRPCError) {
24214
24339
  }
24215
24340
  return e;
@@ -24218,9 +24343,9 @@ function toKnownErr84(e) {
24218
24343
  // src/client/types/app/bsky/graph/getFollowers.ts
24219
24344
  var getFollowers_exports = {};
24220
24345
  __export(getFollowers_exports, {
24221
- toKnownErr: () => toKnownErr85
24346
+ toKnownErr: () => toKnownErr86
24222
24347
  });
24223
- function toKnownErr85(e) {
24348
+ function toKnownErr86(e) {
24224
24349
  if (e instanceof XRPCError) {
24225
24350
  }
24226
24351
  return e;
@@ -24229,9 +24354,9 @@ function toKnownErr85(e) {
24229
24354
  // src/client/types/app/bsky/graph/getFollows.ts
24230
24355
  var getFollows_exports = {};
24231
24356
  __export(getFollows_exports, {
24232
- toKnownErr: () => toKnownErr86
24357
+ toKnownErr: () => toKnownErr87
24233
24358
  });
24234
- function toKnownErr86(e) {
24359
+ function toKnownErr87(e) {
24235
24360
  if (e instanceof XRPCError) {
24236
24361
  }
24237
24362
  return e;
@@ -24240,9 +24365,9 @@ function toKnownErr86(e) {
24240
24365
  // src/client/types/app/bsky/graph/getList.ts
24241
24366
  var getList_exports = {};
24242
24367
  __export(getList_exports, {
24243
- toKnownErr: () => toKnownErr87
24368
+ toKnownErr: () => toKnownErr88
24244
24369
  });
24245
- function toKnownErr87(e) {
24370
+ function toKnownErr88(e) {
24246
24371
  if (e instanceof XRPCError) {
24247
24372
  }
24248
24373
  return e;
@@ -24251,9 +24376,9 @@ function toKnownErr87(e) {
24251
24376
  // src/client/types/app/bsky/graph/getListBlocks.ts
24252
24377
  var getListBlocks_exports = {};
24253
24378
  __export(getListBlocks_exports, {
24254
- toKnownErr: () => toKnownErr88
24379
+ toKnownErr: () => toKnownErr89
24255
24380
  });
24256
- function toKnownErr88(e) {
24381
+ function toKnownErr89(e) {
24257
24382
  if (e instanceof XRPCError) {
24258
24383
  }
24259
24384
  return e;
@@ -24262,9 +24387,9 @@ function toKnownErr88(e) {
24262
24387
  // src/client/types/app/bsky/graph/getListMutes.ts
24263
24388
  var getListMutes_exports = {};
24264
24389
  __export(getListMutes_exports, {
24265
- toKnownErr: () => toKnownErr89
24390
+ toKnownErr: () => toKnownErr90
24266
24391
  });
24267
- function toKnownErr89(e) {
24392
+ function toKnownErr90(e) {
24268
24393
  if (e instanceof XRPCError) {
24269
24394
  }
24270
24395
  return e;
@@ -24273,9 +24398,9 @@ function toKnownErr89(e) {
24273
24398
  // src/client/types/app/bsky/graph/getLists.ts
24274
24399
  var getLists_exports = {};
24275
24400
  __export(getLists_exports, {
24276
- toKnownErr: () => toKnownErr90
24401
+ toKnownErr: () => toKnownErr91
24277
24402
  });
24278
- function toKnownErr90(e) {
24403
+ function toKnownErr91(e) {
24279
24404
  if (e instanceof XRPCError) {
24280
24405
  }
24281
24406
  return e;
@@ -24284,9 +24409,9 @@ function toKnownErr90(e) {
24284
24409
  // src/client/types/app/bsky/graph/getMutes.ts
24285
24410
  var getMutes_exports = {};
24286
24411
  __export(getMutes_exports, {
24287
- toKnownErr: () => toKnownErr91
24412
+ toKnownErr: () => toKnownErr92
24288
24413
  });
24289
- function toKnownErr91(e) {
24414
+ function toKnownErr92(e) {
24290
24415
  if (e instanceof XRPCError) {
24291
24416
  }
24292
24417
  return e;
@@ -24295,9 +24420,9 @@ function toKnownErr91(e) {
24295
24420
  // src/client/types/app/bsky/graph/getSuggestedFollowsByActor.ts
24296
24421
  var getSuggestedFollowsByActor_exports = {};
24297
24422
  __export(getSuggestedFollowsByActor_exports, {
24298
- toKnownErr: () => toKnownErr92
24423
+ toKnownErr: () => toKnownErr93
24299
24424
  });
24300
- function toKnownErr92(e) {
24425
+ function toKnownErr93(e) {
24301
24426
  if (e instanceof XRPCError) {
24302
24427
  }
24303
24428
  return e;
@@ -24306,9 +24431,9 @@ function toKnownErr92(e) {
24306
24431
  // src/client/types/app/bsky/graph/muteActor.ts
24307
24432
  var muteActor_exports = {};
24308
24433
  __export(muteActor_exports, {
24309
- toKnownErr: () => toKnownErr93
24434
+ toKnownErr: () => toKnownErr94
24310
24435
  });
24311
- function toKnownErr93(e) {
24436
+ function toKnownErr94(e) {
24312
24437
  if (e instanceof XRPCError) {
24313
24438
  }
24314
24439
  return e;
@@ -24317,9 +24442,9 @@ function toKnownErr93(e) {
24317
24442
  // src/client/types/app/bsky/graph/muteActorList.ts
24318
24443
  var muteActorList_exports = {};
24319
24444
  __export(muteActorList_exports, {
24320
- toKnownErr: () => toKnownErr94
24445
+ toKnownErr: () => toKnownErr95
24321
24446
  });
24322
- function toKnownErr94(e) {
24447
+ function toKnownErr95(e) {
24323
24448
  if (e instanceof XRPCError) {
24324
24449
  }
24325
24450
  return e;
@@ -24328,9 +24453,9 @@ function toKnownErr94(e) {
24328
24453
  // src/client/types/app/bsky/graph/unmuteActor.ts
24329
24454
  var unmuteActor_exports = {};
24330
24455
  __export(unmuteActor_exports, {
24331
- toKnownErr: () => toKnownErr95
24456
+ toKnownErr: () => toKnownErr96
24332
24457
  });
24333
- function toKnownErr95(e) {
24458
+ function toKnownErr96(e) {
24334
24459
  if (e instanceof XRPCError) {
24335
24460
  }
24336
24461
  return e;
@@ -24339,9 +24464,9 @@ function toKnownErr95(e) {
24339
24464
  // src/client/types/app/bsky/graph/unmuteActorList.ts
24340
24465
  var unmuteActorList_exports = {};
24341
24466
  __export(unmuteActorList_exports, {
24342
- toKnownErr: () => toKnownErr96
24467
+ toKnownErr: () => toKnownErr97
24343
24468
  });
24344
- function toKnownErr96(e) {
24469
+ function toKnownErr97(e) {
24345
24470
  if (e instanceof XRPCError) {
24346
24471
  }
24347
24472
  return e;
@@ -24350,9 +24475,9 @@ function toKnownErr96(e) {
24350
24475
  // src/client/types/app/bsky/notification/getUnreadCount.ts
24351
24476
  var getUnreadCount_exports = {};
24352
24477
  __export(getUnreadCount_exports, {
24353
- toKnownErr: () => toKnownErr97
24478
+ toKnownErr: () => toKnownErr98
24354
24479
  });
24355
- function toKnownErr97(e) {
24480
+ function toKnownErr98(e) {
24356
24481
  if (e instanceof XRPCError) {
24357
24482
  }
24358
24483
  return e;
@@ -24362,10 +24487,10 @@ function toKnownErr97(e) {
24362
24487
  var listNotifications_exports = {};
24363
24488
  __export(listNotifications_exports, {
24364
24489
  isNotification: () => isNotification,
24365
- toKnownErr: () => toKnownErr98,
24490
+ toKnownErr: () => toKnownErr99,
24366
24491
  validateNotification: () => validateNotification
24367
24492
  });
24368
- function toKnownErr98(e) {
24493
+ function toKnownErr99(e) {
24369
24494
  if (e instanceof XRPCError) {
24370
24495
  }
24371
24496
  return e;
@@ -24380,9 +24505,9 @@ function validateNotification(v) {
24380
24505
  // src/client/types/app/bsky/notification/registerPush.ts
24381
24506
  var registerPush_exports = {};
24382
24507
  __export(registerPush_exports, {
24383
- toKnownErr: () => toKnownErr99
24508
+ toKnownErr: () => toKnownErr100
24384
24509
  });
24385
- function toKnownErr99(e) {
24510
+ function toKnownErr100(e) {
24386
24511
  if (e instanceof XRPCError) {
24387
24512
  }
24388
24513
  return e;
@@ -24391,9 +24516,9 @@ function toKnownErr99(e) {
24391
24516
  // src/client/types/app/bsky/notification/updateSeen.ts
24392
24517
  var updateSeen_exports = {};
24393
24518
  __export(updateSeen_exports, {
24394
- toKnownErr: () => toKnownErr100
24519
+ toKnownErr: () => toKnownErr101
24395
24520
  });
24396
- function toKnownErr100(e) {
24521
+ function toKnownErr101(e) {
24397
24522
  if (e instanceof XRPCError) {
24398
24523
  }
24399
24524
  return e;
@@ -24402,9 +24527,9 @@ function toKnownErr100(e) {
24402
24527
  // src/client/types/app/bsky/unspecced/getPopular.ts
24403
24528
  var getPopular_exports = {};
24404
24529
  __export(getPopular_exports, {
24405
- toKnownErr: () => toKnownErr101
24530
+ toKnownErr: () => toKnownErr102
24406
24531
  });
24407
- function toKnownErr101(e) {
24532
+ function toKnownErr102(e) {
24408
24533
  if (e instanceof XRPCError) {
24409
24534
  }
24410
24535
  return e;
@@ -24413,9 +24538,9 @@ function toKnownErr101(e) {
24413
24538
  // src/client/types/app/bsky/unspecced/getPopularFeedGenerators.ts
24414
24539
  var getPopularFeedGenerators_exports = {};
24415
24540
  __export(getPopularFeedGenerators_exports, {
24416
- toKnownErr: () => toKnownErr102
24541
+ toKnownErr: () => toKnownErr103
24417
24542
  });
24418
- function toKnownErr102(e) {
24543
+ function toKnownErr103(e) {
24419
24544
  if (e instanceof XRPCError) {
24420
24545
  }
24421
24546
  return e;
@@ -24425,14 +24550,14 @@ function toKnownErr102(e) {
24425
24550
  var getTimelineSkeleton_exports = {};
24426
24551
  __export(getTimelineSkeleton_exports, {
24427
24552
  UnknownFeedError: () => UnknownFeedError3,
24428
- toKnownErr: () => toKnownErr103
24553
+ toKnownErr: () => toKnownErr104
24429
24554
  });
24430
24555
  var UnknownFeedError3 = class extends XRPCError {
24431
24556
  constructor(src2) {
24432
24557
  super(src2.status, src2.error, src2.message, src2.headers);
24433
24558
  }
24434
24559
  };
24435
- function toKnownErr103(e) {
24560
+ function toKnownErr104(e) {
24436
24561
  if (e instanceof XRPCError) {
24437
24562
  if (e.error === "UnknownFeed")
24438
24563
  return new UnknownFeedError3(e);
@@ -24444,14 +24569,14 @@ function toKnownErr103(e) {
24444
24569
  var searchActorsSkeleton_exports = {};
24445
24570
  __export(searchActorsSkeleton_exports, {
24446
24571
  BadQueryStringError: () => BadQueryStringError2,
24447
- toKnownErr: () => toKnownErr104
24572
+ toKnownErr: () => toKnownErr105
24448
24573
  });
24449
24574
  var BadQueryStringError2 = class extends XRPCError {
24450
24575
  constructor(src2) {
24451
24576
  super(src2.status, src2.error, src2.message, src2.headers);
24452
24577
  }
24453
24578
  };
24454
- function toKnownErr104(e) {
24579
+ function toKnownErr105(e) {
24455
24580
  if (e instanceof XRPCError) {
24456
24581
  if (e.error === "BadQueryString")
24457
24582
  return new BadQueryStringError2(e);
@@ -24463,14 +24588,14 @@ function toKnownErr104(e) {
24463
24588
  var searchPostsSkeleton_exports = {};
24464
24589
  __export(searchPostsSkeleton_exports, {
24465
24590
  BadQueryStringError: () => BadQueryStringError3,
24466
- toKnownErr: () => toKnownErr105
24591
+ toKnownErr: () => toKnownErr106
24467
24592
  });
24468
24593
  var BadQueryStringError3 = class extends XRPCError {
24469
24594
  constructor(src2) {
24470
24595
  super(src2.status, src2.error, src2.message, src2.headers);
24471
24596
  }
24472
24597
  };
24473
- function toKnownErr105(e) {
24598
+ function toKnownErr106(e) {
24474
24599
  if (e instanceof XRPCError) {
24475
24600
  if (e.error === "BadQueryString")
24476
24601
  return new BadQueryStringError3(e);
@@ -25485,26 +25610,26 @@ var AtpServiceClient = class {
25485
25610
  }
25486
25611
  };
25487
25612
  var ComNS = class {
25488
- constructor(service) {
25489
- this._service = service;
25490
- this.atproto = new AtprotoNS(service);
25613
+ constructor(service2) {
25614
+ this._service = service2;
25615
+ this.atproto = new AtprotoNS(service2);
25491
25616
  }
25492
25617
  };
25493
25618
  var AtprotoNS = class {
25494
- constructor(service) {
25495
- this._service = service;
25496
- this.admin = new AdminNS(service);
25497
- this.identity = new IdentityNS(service);
25498
- this.label = new LabelNS(service);
25499
- this.moderation = new ModerationNS(service);
25500
- this.repo = new RepoNS(service);
25501
- this.server = new ServerNS(service);
25502
- 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);
25503
25628
  }
25504
25629
  };
25505
25630
  var AdminNS = class {
25506
- constructor(service) {
25507
- this._service = service;
25631
+ constructor(service2) {
25632
+ this._service = service2;
25508
25633
  }
25509
25634
  disableAccountInvites(data, opts) {
25510
25635
  return this._service.xrpc.call("com.atproto.admin.disableAccountInvites", opts?.qp, data, opts).catch((e) => {
@@ -25593,8 +25718,8 @@ var AdminNS = class {
25593
25718
  }
25594
25719
  };
25595
25720
  var IdentityNS = class {
25596
- constructor(service) {
25597
- this._service = service;
25721
+ constructor(service2) {
25722
+ this._service = service2;
25598
25723
  }
25599
25724
  resolveHandle(params2, opts) {
25600
25725
  return this._service.xrpc.call("com.atproto.identity.resolveHandle", params2, void 0, opts).catch((e) => {
@@ -25608,8 +25733,8 @@ var IdentityNS = class {
25608
25733
  }
25609
25734
  };
25610
25735
  var LabelNS = class {
25611
- constructor(service) {
25612
- this._service = service;
25736
+ constructor(service2) {
25737
+ this._service = service2;
25613
25738
  }
25614
25739
  queryLabels(params2, opts) {
25615
25740
  return this._service.xrpc.call("com.atproto.label.queryLabels", params2, void 0, opts).catch((e) => {
@@ -25618,8 +25743,8 @@ var LabelNS = class {
25618
25743
  }
25619
25744
  };
25620
25745
  var ModerationNS = class {
25621
- constructor(service) {
25622
- this._service = service;
25746
+ constructor(service2) {
25747
+ this._service = service2;
25623
25748
  }
25624
25749
  createReport(data, opts) {
25625
25750
  return this._service.xrpc.call("com.atproto.moderation.createReport", opts?.qp, data, opts).catch((e) => {
@@ -25628,8 +25753,8 @@ var ModerationNS = class {
25628
25753
  }
25629
25754
  };
25630
25755
  var RepoNS = class {
25631
- constructor(service) {
25632
- this._service = service;
25756
+ constructor(service2) {
25757
+ this._service = service2;
25633
25758
  }
25634
25759
  applyWrites(data, opts) {
25635
25760
  return this._service.xrpc.call("com.atproto.repo.applyWrites", opts?.qp, data, opts).catch((e) => {
@@ -25673,8 +25798,8 @@ var RepoNS = class {
25673
25798
  }
25674
25799
  };
25675
25800
  var ServerNS = class {
25676
- constructor(service) {
25677
- this._service = service;
25801
+ constructor(service2) {
25802
+ this._service = service2;
25678
25803
  }
25679
25804
  confirmEmail(data, opts) {
25680
25805
  return this._service.xrpc.call("com.atproto.server.confirmEmail", opts?.qp, data, opts).catch((e) => {
@@ -25761,144 +25886,149 @@ var ServerNS = class {
25761
25886
  throw toKnownErr46(e);
25762
25887
  });
25763
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);
25892
+ });
25893
+ }
25764
25894
  resetPassword(data, opts) {
25765
25895
  return this._service.xrpc.call("com.atproto.server.resetPassword", opts?.qp, data, opts).catch((e) => {
25766
- throw toKnownErr47(e);
25896
+ throw toKnownErr48(e);
25767
25897
  });
25768
25898
  }
25769
25899
  revokeAppPassword(data, opts) {
25770
25900
  return this._service.xrpc.call("com.atproto.server.revokeAppPassword", opts?.qp, data, opts).catch((e) => {
25771
- throw toKnownErr48(e);
25901
+ throw toKnownErr49(e);
25772
25902
  });
25773
25903
  }
25774
25904
  updateEmail(data, opts) {
25775
25905
  return this._service.xrpc.call("com.atproto.server.updateEmail", opts?.qp, data, opts).catch((e) => {
25776
- throw toKnownErr49(e);
25906
+ throw toKnownErr50(e);
25777
25907
  });
25778
25908
  }
25779
25909
  };
25780
25910
  var SyncNS = class {
25781
- constructor(service) {
25782
- this._service = service;
25911
+ constructor(service2) {
25912
+ this._service = service2;
25783
25913
  }
25784
25914
  getBlob(params2, opts) {
25785
25915
  return this._service.xrpc.call("com.atproto.sync.getBlob", params2, void 0, opts).catch((e) => {
25786
- throw toKnownErr50(e);
25916
+ throw toKnownErr51(e);
25787
25917
  });
25788
25918
  }
25789
25919
  getBlocks(params2, opts) {
25790
25920
  return this._service.xrpc.call("com.atproto.sync.getBlocks", params2, void 0, opts).catch((e) => {
25791
- throw toKnownErr51(e);
25921
+ throw toKnownErr52(e);
25792
25922
  });
25793
25923
  }
25794
25924
  getCheckout(params2, opts) {
25795
25925
  return this._service.xrpc.call("com.atproto.sync.getCheckout", params2, void 0, opts).catch((e) => {
25796
- throw toKnownErr52(e);
25926
+ throw toKnownErr53(e);
25797
25927
  });
25798
25928
  }
25799
25929
  getHead(params2, opts) {
25800
25930
  return this._service.xrpc.call("com.atproto.sync.getHead", params2, void 0, opts).catch((e) => {
25801
- throw toKnownErr53(e);
25931
+ throw toKnownErr54(e);
25802
25932
  });
25803
25933
  }
25804
25934
  getLatestCommit(params2, opts) {
25805
25935
  return this._service.xrpc.call("com.atproto.sync.getLatestCommit", params2, void 0, opts).catch((e) => {
25806
- throw toKnownErr54(e);
25936
+ throw toKnownErr55(e);
25807
25937
  });
25808
25938
  }
25809
25939
  getRecord(params2, opts) {
25810
25940
  return this._service.xrpc.call("com.atproto.sync.getRecord", params2, void 0, opts).catch((e) => {
25811
- throw toKnownErr55(e);
25941
+ throw toKnownErr56(e);
25812
25942
  });
25813
25943
  }
25814
25944
  getRepo(params2, opts) {
25815
25945
  return this._service.xrpc.call("com.atproto.sync.getRepo", params2, void 0, opts).catch((e) => {
25816
- throw toKnownErr56(e);
25946
+ throw toKnownErr57(e);
25817
25947
  });
25818
25948
  }
25819
25949
  listBlobs(params2, opts) {
25820
25950
  return this._service.xrpc.call("com.atproto.sync.listBlobs", params2, void 0, opts).catch((e) => {
25821
- throw toKnownErr57(e);
25951
+ throw toKnownErr58(e);
25822
25952
  });
25823
25953
  }
25824
25954
  listRepos(params2, opts) {
25825
25955
  return this._service.xrpc.call("com.atproto.sync.listRepos", params2, void 0, opts).catch((e) => {
25826
- throw toKnownErr58(e);
25956
+ throw toKnownErr59(e);
25827
25957
  });
25828
25958
  }
25829
25959
  notifyOfUpdate(data, opts) {
25830
25960
  return this._service.xrpc.call("com.atproto.sync.notifyOfUpdate", opts?.qp, data, opts).catch((e) => {
25831
- throw toKnownErr59(e);
25961
+ throw toKnownErr60(e);
25832
25962
  });
25833
25963
  }
25834
25964
  requestCrawl(data, opts) {
25835
25965
  return this._service.xrpc.call("com.atproto.sync.requestCrawl", opts?.qp, data, opts).catch((e) => {
25836
- throw toKnownErr60(e);
25966
+ throw toKnownErr61(e);
25837
25967
  });
25838
25968
  }
25839
25969
  };
25840
25970
  var AppNS = class {
25841
- constructor(service) {
25842
- this._service = service;
25843
- this.bsky = new BskyNS(service);
25971
+ constructor(service2) {
25972
+ this._service = service2;
25973
+ this.bsky = new BskyNS(service2);
25844
25974
  }
25845
25975
  };
25846
25976
  var BskyNS = class {
25847
- constructor(service) {
25848
- this._service = service;
25849
- this.actor = new ActorNS(service);
25850
- this.embed = new EmbedNS(service);
25851
- this.feed = new FeedNS(service);
25852
- this.graph = new GraphNS(service);
25853
- this.notification = new NotificationNS(service);
25854
- this.richtext = new RichtextNS(service);
25855
- 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);
25856
25986
  }
25857
25987
  };
25858
25988
  var ActorNS = class {
25859
- constructor(service) {
25860
- this._service = service;
25861
- this.profile = new ProfileRecord(service);
25989
+ constructor(service2) {
25990
+ this._service = service2;
25991
+ this.profile = new ProfileRecord(service2);
25862
25992
  }
25863
25993
  getPreferences(params2, opts) {
25864
25994
  return this._service.xrpc.call("app.bsky.actor.getPreferences", params2, void 0, opts).catch((e) => {
25865
- throw toKnownErr61(e);
25995
+ throw toKnownErr62(e);
25866
25996
  });
25867
25997
  }
25868
25998
  getProfile(params2, opts) {
25869
25999
  return this._service.xrpc.call("app.bsky.actor.getProfile", params2, void 0, opts).catch((e) => {
25870
- throw toKnownErr62(e);
26000
+ throw toKnownErr63(e);
25871
26001
  });
25872
26002
  }
25873
26003
  getProfiles(params2, opts) {
25874
26004
  return this._service.xrpc.call("app.bsky.actor.getProfiles", params2, void 0, opts).catch((e) => {
25875
- throw toKnownErr63(e);
26005
+ throw toKnownErr64(e);
25876
26006
  });
25877
26007
  }
25878
26008
  getSuggestions(params2, opts) {
25879
26009
  return this._service.xrpc.call("app.bsky.actor.getSuggestions", params2, void 0, opts).catch((e) => {
25880
- throw toKnownErr64(e);
26010
+ throw toKnownErr65(e);
25881
26011
  });
25882
26012
  }
25883
26013
  putPreferences(data, opts) {
25884
26014
  return this._service.xrpc.call("app.bsky.actor.putPreferences", opts?.qp, data, opts).catch((e) => {
25885
- throw toKnownErr65(e);
26015
+ throw toKnownErr66(e);
25886
26016
  });
25887
26017
  }
25888
26018
  searchActors(params2, opts) {
25889
26019
  return this._service.xrpc.call("app.bsky.actor.searchActors", params2, void 0, opts).catch((e) => {
25890
- throw toKnownErr66(e);
26020
+ throw toKnownErr67(e);
25891
26021
  });
25892
26022
  }
25893
26023
  searchActorsTypeahead(params2, opts) {
25894
26024
  return this._service.xrpc.call("app.bsky.actor.searchActorsTypeahead", params2, void 0, opts).catch((e) => {
25895
- throw toKnownErr67(e);
26025
+ throw toKnownErr68(e);
25896
26026
  });
25897
26027
  }
25898
26028
  };
25899
26029
  var ProfileRecord = class {
25900
- constructor(service) {
25901
- this._service = service;
26030
+ constructor(service2) {
26031
+ this._service = service2;
25902
26032
  }
25903
26033
  async list(params2) {
25904
26034
  const res = await this._service.xrpc.call("com.atproto.repo.listRecords", {
@@ -25924,103 +26054,103 @@ var ProfileRecord = class {
25924
26054
  }
25925
26055
  };
25926
26056
  var EmbedNS = class {
25927
- constructor(service) {
25928
- this._service = service;
26057
+ constructor(service2) {
26058
+ this._service = service2;
25929
26059
  }
25930
26060
  };
25931
26061
  var FeedNS = class {
25932
- constructor(service) {
25933
- this._service = service;
25934
- this.generator = new GeneratorRecord(service);
25935
- this.like = new LikeRecord(service);
25936
- this.post = new PostRecord(service);
25937
- this.repost = new RepostRecord(service);
25938
- 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);
25939
26069
  }
25940
26070
  describeFeedGenerator(params2, opts) {
25941
26071
  return this._service.xrpc.call("app.bsky.feed.describeFeedGenerator", params2, void 0, opts).catch((e) => {
25942
- throw toKnownErr68(e);
26072
+ throw toKnownErr69(e);
25943
26073
  });
25944
26074
  }
25945
26075
  getActorFeeds(params2, opts) {
25946
26076
  return this._service.xrpc.call("app.bsky.feed.getActorFeeds", params2, void 0, opts).catch((e) => {
25947
- throw toKnownErr69(e);
26077
+ throw toKnownErr70(e);
25948
26078
  });
25949
26079
  }
25950
26080
  getActorLikes(params2, opts) {
25951
26081
  return this._service.xrpc.call("app.bsky.feed.getActorLikes", params2, void 0, opts).catch((e) => {
25952
- throw toKnownErr70(e);
26082
+ throw toKnownErr71(e);
25953
26083
  });
25954
26084
  }
25955
26085
  getAuthorFeed(params2, opts) {
25956
26086
  return this._service.xrpc.call("app.bsky.feed.getAuthorFeed", params2, void 0, opts).catch((e) => {
25957
- throw toKnownErr71(e);
26087
+ throw toKnownErr72(e);
25958
26088
  });
25959
26089
  }
25960
26090
  getFeed(params2, opts) {
25961
26091
  return this._service.xrpc.call("app.bsky.feed.getFeed", params2, void 0, opts).catch((e) => {
25962
- throw toKnownErr72(e);
26092
+ throw toKnownErr73(e);
25963
26093
  });
25964
26094
  }
25965
26095
  getFeedGenerator(params2, opts) {
25966
26096
  return this._service.xrpc.call("app.bsky.feed.getFeedGenerator", params2, void 0, opts).catch((e) => {
25967
- throw toKnownErr73(e);
26097
+ throw toKnownErr74(e);
25968
26098
  });
25969
26099
  }
25970
26100
  getFeedGenerators(params2, opts) {
25971
26101
  return this._service.xrpc.call("app.bsky.feed.getFeedGenerators", params2, void 0, opts).catch((e) => {
25972
- throw toKnownErr74(e);
26102
+ throw toKnownErr75(e);
25973
26103
  });
25974
26104
  }
25975
26105
  getFeedSkeleton(params2, opts) {
25976
26106
  return this._service.xrpc.call("app.bsky.feed.getFeedSkeleton", params2, void 0, opts).catch((e) => {
25977
- throw toKnownErr75(e);
26107
+ throw toKnownErr76(e);
25978
26108
  });
25979
26109
  }
25980
26110
  getLikes(params2, opts) {
25981
26111
  return this._service.xrpc.call("app.bsky.feed.getLikes", params2, void 0, opts).catch((e) => {
25982
- throw toKnownErr76(e);
26112
+ throw toKnownErr77(e);
25983
26113
  });
25984
26114
  }
25985
26115
  getListFeed(params2, opts) {
25986
26116
  return this._service.xrpc.call("app.bsky.feed.getListFeed", params2, void 0, opts).catch((e) => {
25987
- throw toKnownErr77(e);
26117
+ throw toKnownErr78(e);
25988
26118
  });
25989
26119
  }
25990
26120
  getPostThread(params2, opts) {
25991
26121
  return this._service.xrpc.call("app.bsky.feed.getPostThread", params2, void 0, opts).catch((e) => {
25992
- throw toKnownErr78(e);
26122
+ throw toKnownErr79(e);
25993
26123
  });
25994
26124
  }
25995
26125
  getPosts(params2, opts) {
25996
26126
  return this._service.xrpc.call("app.bsky.feed.getPosts", params2, void 0, opts).catch((e) => {
25997
- throw toKnownErr79(e);
26127
+ throw toKnownErr80(e);
25998
26128
  });
25999
26129
  }
26000
26130
  getRepostedBy(params2, opts) {
26001
26131
  return this._service.xrpc.call("app.bsky.feed.getRepostedBy", params2, void 0, opts).catch((e) => {
26002
- throw toKnownErr80(e);
26132
+ throw toKnownErr81(e);
26003
26133
  });
26004
26134
  }
26005
26135
  getSuggestedFeeds(params2, opts) {
26006
26136
  return this._service.xrpc.call("app.bsky.feed.getSuggestedFeeds", params2, void 0, opts).catch((e) => {
26007
- throw toKnownErr81(e);
26137
+ throw toKnownErr82(e);
26008
26138
  });
26009
26139
  }
26010
26140
  getTimeline(params2, opts) {
26011
26141
  return this._service.xrpc.call("app.bsky.feed.getTimeline", params2, void 0, opts).catch((e) => {
26012
- throw toKnownErr82(e);
26142
+ throw toKnownErr83(e);
26013
26143
  });
26014
26144
  }
26015
26145
  searchPosts(params2, opts) {
26016
26146
  return this._service.xrpc.call("app.bsky.feed.searchPosts", params2, void 0, opts).catch((e) => {
26017
- throw toKnownErr83(e);
26147
+ throw toKnownErr84(e);
26018
26148
  });
26019
26149
  }
26020
26150
  };
26021
26151
  var GeneratorRecord = class {
26022
- constructor(service) {
26023
- this._service = service;
26152
+ constructor(service2) {
26153
+ this._service = service2;
26024
26154
  }
26025
26155
  async list(params2) {
26026
26156
  const res = await this._service.xrpc.call("com.atproto.repo.listRecords", {
@@ -26046,8 +26176,8 @@ var GeneratorRecord = class {
26046
26176
  }
26047
26177
  };
26048
26178
  var LikeRecord = class {
26049
- constructor(service) {
26050
- this._service = service;
26179
+ constructor(service2) {
26180
+ this._service = service2;
26051
26181
  }
26052
26182
  async list(params2) {
26053
26183
  const res = await this._service.xrpc.call("com.atproto.repo.listRecords", {
@@ -26073,8 +26203,8 @@ var LikeRecord = class {
26073
26203
  }
26074
26204
  };
26075
26205
  var PostRecord = class {
26076
- constructor(service) {
26077
- this._service = service;
26206
+ constructor(service2) {
26207
+ this._service = service2;
26078
26208
  }
26079
26209
  async list(params2) {
26080
26210
  const res = await this._service.xrpc.call("com.atproto.repo.listRecords", {
@@ -26100,8 +26230,8 @@ var PostRecord = class {
26100
26230
  }
26101
26231
  };
26102
26232
  var RepostRecord = class {
26103
- constructor(service) {
26104
- this._service = service;
26233
+ constructor(service2) {
26234
+ this._service = service2;
26105
26235
  }
26106
26236
  async list(params2) {
26107
26237
  const res = await this._service.xrpc.call("com.atproto.repo.listRecords", {
@@ -26127,8 +26257,8 @@ var RepostRecord = class {
26127
26257
  }
26128
26258
  };
26129
26259
  var ThreadgateRecord = class {
26130
- constructor(service) {
26131
- this._service = service;
26260
+ constructor(service2) {
26261
+ this._service = service2;
26132
26262
  }
26133
26263
  async list(params2) {
26134
26264
  const res = await this._service.xrpc.call("com.atproto.repo.listRecords", {
@@ -26154,83 +26284,83 @@ var ThreadgateRecord = class {
26154
26284
  }
26155
26285
  };
26156
26286
  var GraphNS = class {
26157
- constructor(service) {
26158
- this._service = service;
26159
- this.block = new BlockRecord(service);
26160
- this.follow = new FollowRecord(service);
26161
- this.list = new ListRecord(service);
26162
- this.listblock = new ListblockRecord(service);
26163
- 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);
26164
26294
  }
26165
26295
  getBlocks(params2, opts) {
26166
26296
  return this._service.xrpc.call("app.bsky.graph.getBlocks", params2, void 0, opts).catch((e) => {
26167
- throw toKnownErr84(e);
26297
+ throw toKnownErr85(e);
26168
26298
  });
26169
26299
  }
26170
26300
  getFollowers(params2, opts) {
26171
26301
  return this._service.xrpc.call("app.bsky.graph.getFollowers", params2, void 0, opts).catch((e) => {
26172
- throw toKnownErr85(e);
26302
+ throw toKnownErr86(e);
26173
26303
  });
26174
26304
  }
26175
26305
  getFollows(params2, opts) {
26176
26306
  return this._service.xrpc.call("app.bsky.graph.getFollows", params2, void 0, opts).catch((e) => {
26177
- throw toKnownErr86(e);
26307
+ throw toKnownErr87(e);
26178
26308
  });
26179
26309
  }
26180
26310
  getList(params2, opts) {
26181
26311
  return this._service.xrpc.call("app.bsky.graph.getList", params2, void 0, opts).catch((e) => {
26182
- throw toKnownErr87(e);
26312
+ throw toKnownErr88(e);
26183
26313
  });
26184
26314
  }
26185
26315
  getListBlocks(params2, opts) {
26186
26316
  return this._service.xrpc.call("app.bsky.graph.getListBlocks", params2, void 0, opts).catch((e) => {
26187
- throw toKnownErr88(e);
26317
+ throw toKnownErr89(e);
26188
26318
  });
26189
26319
  }
26190
26320
  getListMutes(params2, opts) {
26191
26321
  return this._service.xrpc.call("app.bsky.graph.getListMutes", params2, void 0, opts).catch((e) => {
26192
- throw toKnownErr89(e);
26322
+ throw toKnownErr90(e);
26193
26323
  });
26194
26324
  }
26195
26325
  getLists(params2, opts) {
26196
26326
  return this._service.xrpc.call("app.bsky.graph.getLists", params2, void 0, opts).catch((e) => {
26197
- throw toKnownErr90(e);
26327
+ throw toKnownErr91(e);
26198
26328
  });
26199
26329
  }
26200
26330
  getMutes(params2, opts) {
26201
26331
  return this._service.xrpc.call("app.bsky.graph.getMutes", params2, void 0, opts).catch((e) => {
26202
- throw toKnownErr91(e);
26332
+ throw toKnownErr92(e);
26203
26333
  });
26204
26334
  }
26205
26335
  getSuggestedFollowsByActor(params2, opts) {
26206
26336
  return this._service.xrpc.call("app.bsky.graph.getSuggestedFollowsByActor", params2, void 0, opts).catch((e) => {
26207
- throw toKnownErr92(e);
26337
+ throw toKnownErr93(e);
26208
26338
  });
26209
26339
  }
26210
26340
  muteActor(data, opts) {
26211
26341
  return this._service.xrpc.call("app.bsky.graph.muteActor", opts?.qp, data, opts).catch((e) => {
26212
- throw toKnownErr93(e);
26342
+ throw toKnownErr94(e);
26213
26343
  });
26214
26344
  }
26215
26345
  muteActorList(data, opts) {
26216
26346
  return this._service.xrpc.call("app.bsky.graph.muteActorList", opts?.qp, data, opts).catch((e) => {
26217
- throw toKnownErr94(e);
26347
+ throw toKnownErr95(e);
26218
26348
  });
26219
26349
  }
26220
26350
  unmuteActor(data, opts) {
26221
26351
  return this._service.xrpc.call("app.bsky.graph.unmuteActor", opts?.qp, data, opts).catch((e) => {
26222
- throw toKnownErr95(e);
26352
+ throw toKnownErr96(e);
26223
26353
  });
26224
26354
  }
26225
26355
  unmuteActorList(data, opts) {
26226
26356
  return this._service.xrpc.call("app.bsky.graph.unmuteActorList", opts?.qp, data, opts).catch((e) => {
26227
- throw toKnownErr96(e);
26357
+ throw toKnownErr97(e);
26228
26358
  });
26229
26359
  }
26230
26360
  };
26231
26361
  var BlockRecord = class {
26232
- constructor(service) {
26233
- this._service = service;
26362
+ constructor(service2) {
26363
+ this._service = service2;
26234
26364
  }
26235
26365
  async list(params2) {
26236
26366
  const res = await this._service.xrpc.call("com.atproto.repo.listRecords", {
@@ -26256,8 +26386,8 @@ var BlockRecord = class {
26256
26386
  }
26257
26387
  };
26258
26388
  var FollowRecord = class {
26259
- constructor(service) {
26260
- this._service = service;
26389
+ constructor(service2) {
26390
+ this._service = service2;
26261
26391
  }
26262
26392
  async list(params2) {
26263
26393
  const res = await this._service.xrpc.call("com.atproto.repo.listRecords", {
@@ -26283,8 +26413,8 @@ var FollowRecord = class {
26283
26413
  }
26284
26414
  };
26285
26415
  var ListRecord = class {
26286
- constructor(service) {
26287
- this._service = service;
26416
+ constructor(service2) {
26417
+ this._service = service2;
26288
26418
  }
26289
26419
  async list(params2) {
26290
26420
  const res = await this._service.xrpc.call("com.atproto.repo.listRecords", {
@@ -26310,8 +26440,8 @@ var ListRecord = class {
26310
26440
  }
26311
26441
  };
26312
26442
  var ListblockRecord = class {
26313
- constructor(service) {
26314
- this._service = service;
26443
+ constructor(service2) {
26444
+ this._service = service2;
26315
26445
  }
26316
26446
  async list(params2) {
26317
26447
  const res = await this._service.xrpc.call("com.atproto.repo.listRecords", {
@@ -26337,8 +26467,8 @@ var ListblockRecord = class {
26337
26467
  }
26338
26468
  };
26339
26469
  var ListitemRecord = class {
26340
- constructor(service) {
26341
- this._service = service;
26470
+ constructor(service2) {
26471
+ this._service = service2;
26342
26472
  }
26343
26473
  async list(params2) {
26344
26474
  const res = await this._service.xrpc.call("com.atproto.repo.listRecords", {
@@ -26364,62 +26494,62 @@ var ListitemRecord = class {
26364
26494
  }
26365
26495
  };
26366
26496
  var NotificationNS = class {
26367
- constructor(service) {
26368
- this._service = service;
26497
+ constructor(service2) {
26498
+ this._service = service2;
26369
26499
  }
26370
26500
  getUnreadCount(params2, opts) {
26371
26501
  return this._service.xrpc.call("app.bsky.notification.getUnreadCount", params2, void 0, opts).catch((e) => {
26372
- throw toKnownErr97(e);
26502
+ throw toKnownErr98(e);
26373
26503
  });
26374
26504
  }
26375
26505
  listNotifications(params2, opts) {
26376
26506
  return this._service.xrpc.call("app.bsky.notification.listNotifications", params2, void 0, opts).catch((e) => {
26377
- throw toKnownErr98(e);
26507
+ throw toKnownErr99(e);
26378
26508
  });
26379
26509
  }
26380
26510
  registerPush(data, opts) {
26381
26511
  return this._service.xrpc.call("app.bsky.notification.registerPush", opts?.qp, data, opts).catch((e) => {
26382
- throw toKnownErr99(e);
26512
+ throw toKnownErr100(e);
26383
26513
  });
26384
26514
  }
26385
26515
  updateSeen(data, opts) {
26386
26516
  return this._service.xrpc.call("app.bsky.notification.updateSeen", opts?.qp, data, opts).catch((e) => {
26387
- throw toKnownErr100(e);
26517
+ throw toKnownErr101(e);
26388
26518
  });
26389
26519
  }
26390
26520
  };
26391
26521
  var RichtextNS = class {
26392
- constructor(service) {
26393
- this._service = service;
26522
+ constructor(service2) {
26523
+ this._service = service2;
26394
26524
  }
26395
26525
  };
26396
26526
  var UnspeccedNS = class {
26397
- constructor(service) {
26398
- this._service = service;
26527
+ constructor(service2) {
26528
+ this._service = service2;
26399
26529
  }
26400
26530
  getPopular(params2, opts) {
26401
26531
  return this._service.xrpc.call("app.bsky.unspecced.getPopular", params2, void 0, opts).catch((e) => {
26402
- throw toKnownErr101(e);
26532
+ throw toKnownErr102(e);
26403
26533
  });
26404
26534
  }
26405
26535
  getPopularFeedGenerators(params2, opts) {
26406
26536
  return this._service.xrpc.call("app.bsky.unspecced.getPopularFeedGenerators", params2, void 0, opts).catch((e) => {
26407
- throw toKnownErr102(e);
26537
+ throw toKnownErr103(e);
26408
26538
  });
26409
26539
  }
26410
26540
  getTimelineSkeleton(params2, opts) {
26411
26541
  return this._service.xrpc.call("app.bsky.unspecced.getTimelineSkeleton", params2, void 0, opts).catch((e) => {
26412
- throw toKnownErr103(e);
26542
+ throw toKnownErr104(e);
26413
26543
  });
26414
26544
  }
26415
26545
  searchActorsSkeleton(params2, opts) {
26416
26546
  return this._service.xrpc.call("app.bsky.unspecced.searchActorsSkeleton", params2, void 0, opts).catch((e) => {
26417
- throw toKnownErr104(e);
26547
+ throw toKnownErr105(e);
26418
26548
  });
26419
26549
  }
26420
26550
  searchPostsSkeleton(params2, opts) {
26421
26551
  return this._service.xrpc.call("app.bsky.unspecced.searchPostsSkeleton", params2, void 0, opts).catch((e) => {
26422
- throw toKnownErr105(e);
26552
+ throw toKnownErr106(e);
26423
26553
  });
26424
26554
  }
26425
26555
  };
@@ -26466,6 +26596,7 @@ var _AtpAgent = class {
26466
26596
  email: opts.email,
26467
26597
  emailConfirmed: false
26468
26598
  };
26599
+ this._updateApiEndpoint(res.data.didDoc);
26469
26600
  return res;
26470
26601
  } catch (e) {
26471
26602
  this.session = void 0;
@@ -26492,6 +26623,7 @@ var _AtpAgent = class {
26492
26623
  email: res.data.email,
26493
26624
  emailConfirmed: res.data.emailConfirmed
26494
26625
  };
26626
+ this._updateApiEndpoint(res.data.didDoc);
26495
26627
  return res;
26496
26628
  } catch (e) {
26497
26629
  this.session = void 0;
@@ -26565,7 +26697,7 @@ var _AtpAgent = class {
26565
26697
  if (!this.session?.refreshJwt) {
26566
26698
  return;
26567
26699
  }
26568
- const url = new URL(this.service.origin);
26700
+ const url = new URL((this.pdsUrl || this.service).origin);
26569
26701
  url.pathname = `/xrpc/${REFRESH_SESSION}`;
26570
26702
  const res = await _AtpAgent.fetch(url.toString(), "POST", {
26571
26703
  authorization: `Bearer ${this.session.refreshJwt}`
@@ -26581,9 +26713,17 @@ var _AtpAgent = class {
26581
26713
  handle: res.body.handle,
26582
26714
  did: res.body.did
26583
26715
  };
26716
+ this._updateApiEndpoint(res.body.didDoc);
26584
26717
  this._persistSession?.("update", this.session);
26585
26718
  }
26586
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
+ }
26587
26727
  };
26588
26728
  var AtpAgent = _AtpAgent;
26589
26729
  AtpAgent.fetch = defaultFetchHandler;
@@ -29240,6 +29380,15 @@ var ModerationCauseAccumulator = class {
29240
29380
  });
29241
29381
  }
29242
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
+ }
29243
29392
  addBlockedBy(blockedBy) {
29244
29393
  if (blockedBy) {
29245
29394
  this.causes.push({
@@ -29371,7 +29520,13 @@ function decideAccount(subject, opts) {
29371
29520
  acc.addMuted(subject.viewer?.muted);
29372
29521
  }
29373
29522
  }
29374
- 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
+ }
29375
29530
  acc.addBlockedBy(subject.viewer?.blockedBy);
29376
29531
  for (const label of filterAccountLabels(subject.labels)) {
29377
29532
  acc.addLabel(label, opts);
@@ -29989,6 +30144,42 @@ var BskyAgent = class extends AtpAgent {
29989
30144
  async unmute(actor) {
29990
30145
  return this.api.app.bsky.graph.unmuteActor({ actor });
29991
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
+ }
29992
30183
  async updateSeenNotifications(seenAt) {
29993
30184
  seenAt = seenAt || new Date().toISOString();
29994
30185
  return this.api.app.bsky.notification.updateSeen({