@atproto/api 0.6.20 → 0.6.22

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/LICENSE.txt +7 -0
  3. package/README.md +10 -1
  4. package/definitions/moderation-behaviors.d.ts +1 -0
  5. package/definitions/profile-moderation-behaviors.json +25 -0
  6. package/dist/agent.d.ts +2 -0
  7. package/dist/bsky-agent.d.ts +7 -0
  8. package/dist/client/index.d.ts +12 -0
  9. package/dist/client/lexicons.d.ts +243 -3
  10. package/dist/client/types/app/bsky/actor/defs.d.ts +1 -0
  11. package/dist/client/types/com/atproto/admin/defs.d.ts +28 -0
  12. package/dist/client/types/com/atproto/admin/getAccountInfo.d.ts +16 -0
  13. package/dist/client/types/com/atproto/admin/getSubjectStatus.d.ts +26 -0
  14. package/dist/client/types/com/atproto/admin/searchRepos.d.ts +0 -1
  15. package/dist/client/types/com/atproto/admin/updateSubjectStatus.d.ts +32 -0
  16. package/dist/client/types/com/atproto/server/createAccount.d.ts +4 -2
  17. package/dist/client/types/com/atproto/server/createSession.d.ts +1 -0
  18. package/dist/client/types/com/atproto/server/refreshSession.d.ts +1 -0
  19. package/dist/client/types/com/atproto/server/reserveSigningKey.d.ts +22 -0
  20. package/dist/client/types/com/atproto/sync/listRepos.d.ts +1 -0
  21. package/dist/index.js +878 -425
  22. package/dist/index.js.map +3 -3
  23. package/dist/moderation/accumulator.d.ts +1 -0
  24. package/docs/moderation-behaviors/profiles.md +17 -0
  25. package/package.json +8 -7
  26. package/src/agent.ts +28 -1
  27. package/src/bsky-agent.ts +43 -0
  28. package/src/client/index.ts +52 -0
  29. package/src/client/lexicons.ts +259 -5
  30. package/src/client/types/app/bsky/actor/defs.ts +1 -0
  31. package/src/client/types/com/atproto/admin/defs.ts +61 -0
  32. package/src/client/types/com/atproto/admin/getAccountInfo.ts +32 -0
  33. package/src/client/types/com/atproto/admin/getSubjectStatus.ts +44 -0
  34. package/src/client/types/com/atproto/admin/searchRepos.ts +0 -1
  35. package/src/client/types/com/atproto/admin/updateSubjectStatus.ts +50 -0
  36. package/src/client/types/com/atproto/server/createAccount.ts +4 -2
  37. package/src/client/types/com/atproto/server/createSession.ts +1 -0
  38. package/src/client/types/com/atproto/server/refreshSession.ts +1 -0
  39. package/src/client/types/com/atproto/server/reserveSigningKey.ts +40 -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/tests/agent.test.ts +18 -21
  44. package/tests/bsky-agent.test.ts +19 -25
  45. package/tests/errors.test.ts +5 -11
  46. package/tests/rich-text-detection.test.ts +3 -3
  47. package/tests/util/index.ts +3 -0
  48. package/tests/util/moderation-behavior.ts +10 -2
  49. package/LICENSE +0 -21
package/dist/index.js CHANGED
@@ -8953,6 +8953,7 @@ __export(src_exports2, {
8953
8953
  ComAtprotoAdminDisableAccountInvites: () => disableAccountInvites_exports,
8954
8954
  ComAtprotoAdminDisableInviteCodes: () => disableInviteCodes_exports,
8955
8955
  ComAtprotoAdminEnableAccountInvites: () => enableAccountInvites_exports,
8956
+ ComAtprotoAdminGetAccountInfo: () => getAccountInfo_exports,
8956
8957
  ComAtprotoAdminGetInviteCodes: () => getInviteCodes_exports,
8957
8958
  ComAtprotoAdminGetModerationAction: () => getModerationAction_exports,
8958
8959
  ComAtprotoAdminGetModerationActions: () => getModerationActions_exports,
@@ -8960,6 +8961,7 @@ __export(src_exports2, {
8960
8961
  ComAtprotoAdminGetModerationReports: () => getModerationReports_exports,
8961
8962
  ComAtprotoAdminGetRecord: () => getRecord_exports,
8962
8963
  ComAtprotoAdminGetRepo: () => getRepo_exports,
8964
+ ComAtprotoAdminGetSubjectStatus: () => getSubjectStatus_exports,
8963
8965
  ComAtprotoAdminResolveModerationReports: () => resolveModerationReports_exports,
8964
8966
  ComAtprotoAdminReverseModerationAction: () => reverseModerationAction_exports,
8965
8967
  ComAtprotoAdminSearchRepos: () => searchRepos_exports,
@@ -8967,6 +8969,7 @@ __export(src_exports2, {
8967
8969
  ComAtprotoAdminTakeModerationAction: () => takeModerationAction_exports,
8968
8970
  ComAtprotoAdminUpdateAccountEmail: () => updateAccountEmail_exports,
8969
8971
  ComAtprotoAdminUpdateAccountHandle: () => updateAccountHandle_exports,
8972
+ ComAtprotoAdminUpdateSubjectStatus: () => updateSubjectStatus_exports,
8970
8973
  ComAtprotoIdentityResolveHandle: () => resolveHandle_exports,
8971
8974
  ComAtprotoIdentityUpdateHandle: () => updateHandle_exports,
8972
8975
  ComAtprotoLabelDefs: () => defs_exports2,
@@ -9001,6 +9004,7 @@ __export(src_exports2, {
9001
9004
  ComAtprotoServerRequestEmailConfirmation: () => requestEmailConfirmation_exports,
9002
9005
  ComAtprotoServerRequestEmailUpdate: () => requestEmailUpdate_exports,
9003
9006
  ComAtprotoServerRequestPasswordReset: () => requestPasswordReset_exports,
9007
+ ComAtprotoServerReserveSigningKey: () => reserveSigningKey_exports,
9004
9008
  ComAtprotoServerResetPassword: () => resetPassword_exports,
9005
9009
  ComAtprotoServerRevokeAppPassword: () => revokeAppPassword_exports,
9006
9010
  ComAtprotoServerUpdateEmail: () => updateEmail_exports,
@@ -14186,6 +14190,77 @@ var validateLanguage = (langTag) => {
14186
14190
  };
14187
14191
  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
14192
 
14193
+ // ../common-web/src/did-doc.ts
14194
+ var isValidDidDoc = (doc) => {
14195
+ return didDocument.safeParse(doc).success;
14196
+ };
14197
+ var getDid = (doc) => {
14198
+ const id = doc.id;
14199
+ if (typeof id !== "string") {
14200
+ throw new Error("No `id` on document");
14201
+ }
14202
+ return id;
14203
+ };
14204
+ var getPdsEndpoint = (doc) => {
14205
+ return getServiceEndpoint(doc, {
14206
+ id: "#atproto_pds",
14207
+ type: "AtprotoPersonalDataServer"
14208
+ });
14209
+ };
14210
+ var getServiceEndpoint = (doc, opts) => {
14211
+ const did2 = getDid(doc);
14212
+ let services = doc.service;
14213
+ if (!services)
14214
+ return void 0;
14215
+ if (typeof services !== "object")
14216
+ return void 0;
14217
+ if (!Array.isArray(services)) {
14218
+ services = [services];
14219
+ }
14220
+ const found = services.find((service2) => service2.id === opts.id || service2.id === `${did2}${opts.id}`);
14221
+ if (!found)
14222
+ return void 0;
14223
+ if (found.type !== opts.type) {
14224
+ return void 0;
14225
+ }
14226
+ if (typeof found.serviceEndpoint !== "string") {
14227
+ return void 0;
14228
+ }
14229
+ return validateUrl(found.serviceEndpoint);
14230
+ };
14231
+ var validateUrl = (urlStr) => {
14232
+ let url;
14233
+ try {
14234
+ url = new URL(urlStr);
14235
+ } catch {
14236
+ return void 0;
14237
+ }
14238
+ if (!["http:", "https:"].includes(url.protocol)) {
14239
+ return void 0;
14240
+ } else if (!url.hostname) {
14241
+ return void 0;
14242
+ } else {
14243
+ return urlStr;
14244
+ }
14245
+ };
14246
+ var verificationMethod = z.object({
14247
+ id: z.string(),
14248
+ type: z.string(),
14249
+ controller: z.string(),
14250
+ publicKeyMultibase: z.string().optional()
14251
+ });
14252
+ var service = z.object({
14253
+ id: z.string(),
14254
+ type: z.string(),
14255
+ serviceEndpoint: z.union([z.string(), z.record(z.unknown())])
14256
+ });
14257
+ var didDocument = z.object({
14258
+ id: z.string(),
14259
+ alsoKnownAs: z.array(z.string()).optional(),
14260
+ verificationMethod: z.array(verificationMethod).optional(),
14261
+ service: z.array(service).optional()
14262
+ });
14263
+
14189
14264
  // ../lexicon/src/validators/formats.ts
14190
14265
  var import_iso_datestring_validator = __toESM(require_dist());
14191
14266
  function datetime(path, value) {
@@ -15031,15 +15106,6 @@ var discriminatedObject = z.object({ $type: z.string() });
15031
15106
  function isDiscriminatedObject(value) {
15032
15107
  return discriminatedObject.safeParse(value).success;
15033
15108
  }
15034
- var LexiconDocMalformedError = class extends Error {
15035
- constructor(message, schemaDef, issues) {
15036
- super(message);
15037
- this.schemaDef = schemaDef;
15038
- this.issues = issues;
15039
- this.schemaDef = schemaDef;
15040
- this.issues = issues;
15041
- }
15042
- };
15043
15109
  var ValidationError = class extends Error {
15044
15110
  };
15045
15111
  var InvalidLexiconError = class extends Error {
@@ -15120,23 +15186,13 @@ var Lexicons = class {
15120
15186
  }
15121
15187
  }
15122
15188
  add(doc) {
15123
- try {
15124
- lexiconDoc.parse(doc);
15125
- } catch (e) {
15126
- if (e instanceof ZodError) {
15127
- throw new LexiconDocMalformedError(`Failed to parse schema definition ${doc.id}`, doc, e.issues);
15128
- } else {
15129
- throw e;
15130
- }
15131
- }
15132
- const validatedDoc = doc;
15133
- const uri2 = toLexUri(validatedDoc.id);
15189
+ const uri2 = toLexUri(doc.id);
15134
15190
  if (this.docs.has(uri2)) {
15135
15191
  throw new Error(`${uri2} has already been registered`);
15136
15192
  }
15137
- resolveRefUris(validatedDoc, uri2);
15138
- this.docs.set(uri2, validatedDoc);
15139
- for (const [defUri, def2] of iterDefs(validatedDoc)) {
15193
+ resolveRefUris(doc, uri2);
15194
+ this.docs.set(uri2, doc);
15195
+ for (const [defUri, def2] of iterDefs(doc)) {
15140
15196
  this.defs.set(defUri, def2);
15141
15197
  }
15142
15198
  }
@@ -15619,6 +15675,18 @@ var schemaDict = {
15619
15675
  lexicon: 1,
15620
15676
  id: "com.atproto.admin.defs",
15621
15677
  defs: {
15678
+ statusAttr: {
15679
+ type: "object",
15680
+ required: ["applied"],
15681
+ properties: {
15682
+ applied: {
15683
+ type: "boolean"
15684
+ },
15685
+ ref: {
15686
+ type: "string"
15687
+ }
15688
+ }
15689
+ },
15622
15690
  actionView: {
15623
15691
  type: "object",
15624
15692
  required: [
@@ -16028,6 +16096,44 @@ var schemaDict = {
16028
16096
  }
16029
16097
  }
16030
16098
  },
16099
+ accountView: {
16100
+ type: "object",
16101
+ required: ["did", "handle", "indexedAt"],
16102
+ properties: {
16103
+ did: {
16104
+ type: "string",
16105
+ format: "did"
16106
+ },
16107
+ handle: {
16108
+ type: "string",
16109
+ format: "handle"
16110
+ },
16111
+ email: {
16112
+ type: "string"
16113
+ },
16114
+ indexedAt: {
16115
+ type: "string",
16116
+ format: "datetime"
16117
+ },
16118
+ invitedBy: {
16119
+ type: "ref",
16120
+ ref: "lex:com.atproto.server.defs#inviteCode"
16121
+ },
16122
+ invites: {
16123
+ type: "array",
16124
+ items: {
16125
+ type: "ref",
16126
+ ref: "lex:com.atproto.server.defs#inviteCode"
16127
+ }
16128
+ },
16129
+ invitesDisabled: {
16130
+ type: "boolean"
16131
+ },
16132
+ inviteNote: {
16133
+ type: "string"
16134
+ }
16135
+ }
16136
+ },
16031
16137
  repoViewNotFound: {
16032
16138
  type: "object",
16033
16139
  required: ["did"],
@@ -16048,6 +16154,24 @@ var schemaDict = {
16048
16154
  }
16049
16155
  }
16050
16156
  },
16157
+ repoBlobRef: {
16158
+ type: "object",
16159
+ required: ["did", "cid"],
16160
+ properties: {
16161
+ did: {
16162
+ type: "string",
16163
+ format: "did"
16164
+ },
16165
+ cid: {
16166
+ type: "string",
16167
+ format: "cid"
16168
+ },
16169
+ recordUri: {
16170
+ type: "string",
16171
+ format: "at-uri"
16172
+ }
16173
+ }
16174
+ },
16051
16175
  recordView: {
16052
16176
  type: "object",
16053
16177
  required: [
@@ -16330,6 +16454,33 @@ var schemaDict = {
16330
16454
  }
16331
16455
  }
16332
16456
  },
16457
+ ComAtprotoAdminGetAccountInfo: {
16458
+ lexicon: 1,
16459
+ id: "com.atproto.admin.getAccountInfo",
16460
+ defs: {
16461
+ main: {
16462
+ type: "query",
16463
+ description: "View details about an account.",
16464
+ parameters: {
16465
+ type: "params",
16466
+ required: ["did"],
16467
+ properties: {
16468
+ did: {
16469
+ type: "string",
16470
+ format: "did"
16471
+ }
16472
+ }
16473
+ },
16474
+ output: {
16475
+ encoding: "application/json",
16476
+ schema: {
16477
+ type: "ref",
16478
+ ref: "lex:com.atproto.admin.defs#accountView"
16479
+ }
16480
+ }
16481
+ }
16482
+ }
16483
+ },
16333
16484
  ComAtprotoAdminGetInviteCodes: {
16334
16485
  lexicon: 1,
16335
16486
  id: "com.atproto.admin.getInviteCodes",
@@ -16624,6 +16775,54 @@ var schemaDict = {
16624
16775
  }
16625
16776
  }
16626
16777
  },
16778
+ ComAtprotoAdminGetSubjectStatus: {
16779
+ lexicon: 1,
16780
+ id: "com.atproto.admin.getSubjectStatus",
16781
+ defs: {
16782
+ main: {
16783
+ type: "query",
16784
+ description: "Fetch the service-specific the admin status of a subject (account, record, or blob)",
16785
+ parameters: {
16786
+ type: "params",
16787
+ properties: {
16788
+ did: {
16789
+ type: "string",
16790
+ format: "did"
16791
+ },
16792
+ uri: {
16793
+ type: "string",
16794
+ format: "at-uri"
16795
+ },
16796
+ blob: {
16797
+ type: "string",
16798
+ format: "cid"
16799
+ }
16800
+ }
16801
+ },
16802
+ output: {
16803
+ encoding: "application/json",
16804
+ schema: {
16805
+ type: "object",
16806
+ required: ["subject"],
16807
+ properties: {
16808
+ subject: {
16809
+ type: "union",
16810
+ refs: [
16811
+ "lex:com.atproto.admin.defs#repoRef",
16812
+ "lex:com.atproto.repo.strongRef",
16813
+ "lex:com.atproto.admin.defs#repoBlobRef"
16814
+ ]
16815
+ },
16816
+ takedown: {
16817
+ type: "ref",
16818
+ ref: "lex:com.atproto.admin.defs#statusAttr"
16819
+ }
16820
+ }
16821
+ }
16822
+ }
16823
+ }
16824
+ }
16825
+ },
16627
16826
  ComAtprotoAdminResolveModerationReports: {
16628
16827
  lexicon: 1,
16629
16828
  id: "com.atproto.admin.resolveModerationReports",
@@ -16716,9 +16915,6 @@ var schemaDict = {
16716
16915
  q: {
16717
16916
  type: "string"
16718
16917
  },
16719
- invitedBy: {
16720
- type: "string"
16721
- },
16722
16918
  limit: {
16723
16919
  type: "integer",
16724
16920
  minimum: 1,
@@ -16923,6 +17119,58 @@ var schemaDict = {
16923
17119
  }
16924
17120
  }
16925
17121
  },
17122
+ ComAtprotoAdminUpdateSubjectStatus: {
17123
+ lexicon: 1,
17124
+ id: "com.atproto.admin.updateSubjectStatus",
17125
+ defs: {
17126
+ main: {
17127
+ type: "procedure",
17128
+ description: "Update the service-specific admin status of a subject (account, record, or blob)",
17129
+ input: {
17130
+ encoding: "application/json",
17131
+ schema: {
17132
+ type: "object",
17133
+ required: ["subject"],
17134
+ properties: {
17135
+ subject: {
17136
+ type: "union",
17137
+ refs: [
17138
+ "lex:com.atproto.admin.defs#repoRef",
17139
+ "lex:com.atproto.repo.strongRef",
17140
+ "lex:com.atproto.admin.defs#repoBlobRef"
17141
+ ]
17142
+ },
17143
+ takedown: {
17144
+ type: "ref",
17145
+ ref: "lex:com.atproto.admin.defs#statusAttr"
17146
+ }
17147
+ }
17148
+ }
17149
+ },
17150
+ output: {
17151
+ encoding: "application/json",
17152
+ schema: {
17153
+ type: "object",
17154
+ required: ["subject"],
17155
+ properties: {
17156
+ subject: {
17157
+ type: "union",
17158
+ refs: [
17159
+ "lex:com.atproto.admin.defs#repoRef",
17160
+ "lex:com.atproto.repo.strongRef",
17161
+ "lex:com.atproto.admin.defs#repoBlobRef"
17162
+ ]
17163
+ },
17164
+ takedown: {
17165
+ type: "ref",
17166
+ ref: "lex:com.atproto.admin.defs#statusAttr"
17167
+ }
17168
+ }
17169
+ }
17170
+ }
17171
+ }
17172
+ }
17173
+ },
16926
17174
  ComAtprotoIdentityResolveHandle: {
16927
17175
  lexicon: 1,
16928
17176
  id: "com.atproto.identity.resolveHandle",
@@ -17220,7 +17468,9 @@ var schemaDict = {
17220
17468
  ref: "lex:com.atproto.moderation.defs#reasonType"
17221
17469
  },
17222
17470
  reason: {
17223
- type: "string"
17471
+ type: "string",
17472
+ maxGraphemes: 2e3,
17473
+ maxLength: 2e4
17224
17474
  },
17225
17475
  subject: {
17226
17476
  type: "union",
@@ -17869,7 +18119,7 @@ var schemaDict = {
17869
18119
  encoding: "application/json",
17870
18120
  schema: {
17871
18121
  type: "object",
17872
- required: ["handle", "email", "password"],
18122
+ required: ["handle"],
17873
18123
  properties: {
17874
18124
  email: {
17875
18125
  type: "string"
@@ -17890,6 +18140,9 @@ var schemaDict = {
17890
18140
  },
17891
18141
  recoveryKey: {
17892
18142
  type: "string"
18143
+ },
18144
+ plcOp: {
18145
+ type: "unknown"
17893
18146
  }
17894
18147
  }
17895
18148
  }
@@ -17913,6 +18166,9 @@ var schemaDict = {
17913
18166
  did: {
17914
18167
  type: "string",
17915
18168
  format: "did"
18169
+ },
18170
+ didDoc: {
18171
+ type: "unknown"
17916
18172
  }
17917
18173
  }
17918
18174
  }
@@ -18138,6 +18394,9 @@ var schemaDict = {
18138
18394
  type: "string",
18139
18395
  format: "did"
18140
18396
  },
18397
+ didDoc: {
18398
+ type: "unknown"
18399
+ },
18141
18400
  email: {
18142
18401
  type: "string"
18143
18402
  },
@@ -18452,6 +18711,9 @@ var schemaDict = {
18452
18711
  did: {
18453
18712
  type: "string",
18454
18713
  format: "did"
18714
+ },
18715
+ didDoc: {
18716
+ type: "unknown"
18455
18717
  }
18456
18718
  }
18457
18719
  }
@@ -18528,6 +18790,41 @@ var schemaDict = {
18528
18790
  }
18529
18791
  }
18530
18792
  },
18793
+ ComAtprotoServerReserveSigningKey: {
18794
+ lexicon: 1,
18795
+ id: "com.atproto.server.reserveSigningKey",
18796
+ defs: {
18797
+ main: {
18798
+ type: "procedure",
18799
+ description: "Reserve a repo signing key for account creation.",
18800
+ input: {
18801
+ encoding: "application/json",
18802
+ schema: {
18803
+ type: "object",
18804
+ properties: {
18805
+ did: {
18806
+ type: "string",
18807
+ description: "The did to reserve a new did:key for"
18808
+ }
18809
+ }
18810
+ }
18811
+ },
18812
+ output: {
18813
+ encoding: "application/json",
18814
+ schema: {
18815
+ type: "object",
18816
+ required: ["signingKey"],
18817
+ properties: {
18818
+ signingKey: {
18819
+ type: "string",
18820
+ description: "Public signing key in the form of a did:key."
18821
+ }
18822
+ }
18823
+ }
18824
+ }
18825
+ }
18826
+ }
18827
+ },
18531
18828
  ComAtprotoServerResetPassword: {
18532
18829
  lexicon: 1,
18533
18830
  id: "com.atproto.server.resetPassword",
@@ -18945,7 +19242,7 @@ var schemaDict = {
18945
19242
  },
18946
19243
  repo: {
18947
19244
  type: "object",
18948
- required: ["did", "head"],
19245
+ required: ["did", "head", "rev"],
18949
19246
  properties: {
18950
19247
  did: {
18951
19248
  type: "string",
@@ -18954,6 +19251,9 @@ var schemaDict = {
18954
19251
  head: {
18955
19252
  type: "string",
18956
19253
  format: "cid"
19254
+ },
19255
+ rev: {
19256
+ type: "string"
18957
19257
  }
18958
19258
  }
18959
19259
  }
@@ -19354,6 +19654,10 @@ var schemaDict = {
19354
19654
  type: "string",
19355
19655
  format: "at-uri"
19356
19656
  },
19657
+ blockingByList: {
19658
+ type: "ref",
19659
+ ref: "lex:app.bsky.graph.defs#listViewBasic"
19660
+ },
19357
19661
  following: {
19358
19662
  type: "string",
19359
19663
  format: "at-uri"
@@ -22890,9 +23194,9 @@ function toKnownErr3(e) {
22890
23194
  return e;
22891
23195
  }
22892
23196
 
22893
- // src/client/types/com/atproto/admin/getInviteCodes.ts
22894
- var getInviteCodes_exports = {};
22895
- __export(getInviteCodes_exports, {
23197
+ // src/client/types/com/atproto/admin/getAccountInfo.ts
23198
+ var getAccountInfo_exports = {};
23199
+ __export(getAccountInfo_exports, {
22896
23200
  toKnownErr: () => toKnownErr4
22897
23201
  });
22898
23202
  function toKnownErr4(e) {
@@ -22901,9 +23205,9 @@ function toKnownErr4(e) {
22901
23205
  return e;
22902
23206
  }
22903
23207
 
22904
- // src/client/types/com/atproto/admin/getModerationAction.ts
22905
- var getModerationAction_exports = {};
22906
- __export(getModerationAction_exports, {
23208
+ // src/client/types/com/atproto/admin/getInviteCodes.ts
23209
+ var getInviteCodes_exports = {};
23210
+ __export(getInviteCodes_exports, {
22907
23211
  toKnownErr: () => toKnownErr5
22908
23212
  });
22909
23213
  function toKnownErr5(e) {
@@ -22912,9 +23216,9 @@ function toKnownErr5(e) {
22912
23216
  return e;
22913
23217
  }
22914
23218
 
22915
- // src/client/types/com/atproto/admin/getModerationActions.ts
22916
- var getModerationActions_exports = {};
22917
- __export(getModerationActions_exports, {
23219
+ // src/client/types/com/atproto/admin/getModerationAction.ts
23220
+ var getModerationAction_exports = {};
23221
+ __export(getModerationAction_exports, {
22918
23222
  toKnownErr: () => toKnownErr6
22919
23223
  });
22920
23224
  function toKnownErr6(e) {
@@ -22923,12 +23227,23 @@ function toKnownErr6(e) {
22923
23227
  return e;
22924
23228
  }
22925
23229
 
23230
+ // src/client/types/com/atproto/admin/getModerationActions.ts
23231
+ var getModerationActions_exports = {};
23232
+ __export(getModerationActions_exports, {
23233
+ toKnownErr: () => toKnownErr7
23234
+ });
23235
+ function toKnownErr7(e) {
23236
+ if (e instanceof XRPCError) {
23237
+ }
23238
+ return e;
23239
+ }
23240
+
22926
23241
  // src/client/types/com/atproto/admin/getModerationReport.ts
22927
23242
  var getModerationReport_exports = {};
22928
23243
  __export(getModerationReport_exports, {
22929
- toKnownErr: () => toKnownErr7
23244
+ toKnownErr: () => toKnownErr8
22930
23245
  });
22931
- function toKnownErr7(e) {
23246
+ function toKnownErr8(e) {
22932
23247
  if (e instanceof XRPCError) {
22933
23248
  }
22934
23249
  return e;
@@ -22937,9 +23252,9 @@ function toKnownErr7(e) {
22937
23252
  // src/client/types/com/atproto/admin/getModerationReports.ts
22938
23253
  var getModerationReports_exports = {};
22939
23254
  __export(getModerationReports_exports, {
22940
- toKnownErr: () => toKnownErr8
23255
+ toKnownErr: () => toKnownErr9
22941
23256
  });
22942
- function toKnownErr8(e) {
23257
+ function toKnownErr9(e) {
22943
23258
  if (e instanceof XRPCError) {
22944
23259
  }
22945
23260
  return e;
@@ -22949,14 +23264,14 @@ function toKnownErr8(e) {
22949
23264
  var getRecord_exports = {};
22950
23265
  __export(getRecord_exports, {
22951
23266
  RecordNotFoundError: () => RecordNotFoundError,
22952
- toKnownErr: () => toKnownErr9
23267
+ toKnownErr: () => toKnownErr10
22953
23268
  });
22954
23269
  var RecordNotFoundError = class extends XRPCError {
22955
23270
  constructor(src2) {
22956
23271
  super(src2.status, src2.error, src2.message, src2.headers);
22957
23272
  }
22958
23273
  };
22959
- function toKnownErr9(e) {
23274
+ function toKnownErr10(e) {
22960
23275
  if (e instanceof XRPCError) {
22961
23276
  if (e.error === "RecordNotFound")
22962
23277
  return new RecordNotFoundError(e);
@@ -22968,14 +23283,14 @@ function toKnownErr9(e) {
22968
23283
  var getRepo_exports = {};
22969
23284
  __export(getRepo_exports, {
22970
23285
  RepoNotFoundError: () => RepoNotFoundError,
22971
- toKnownErr: () => toKnownErr10
23286
+ toKnownErr: () => toKnownErr11
22972
23287
  });
22973
23288
  var RepoNotFoundError = class extends XRPCError {
22974
23289
  constructor(src2) {
22975
23290
  super(src2.status, src2.error, src2.message, src2.headers);
22976
23291
  }
22977
23292
  };
22978
- function toKnownErr10(e) {
23293
+ function toKnownErr11(e) {
22979
23294
  if (e instanceof XRPCError) {
22980
23295
  if (e.error === "RepoNotFound")
22981
23296
  return new RepoNotFoundError(e);
@@ -22983,12 +23298,23 @@ function toKnownErr10(e) {
22983
23298
  return e;
22984
23299
  }
22985
23300
 
23301
+ // src/client/types/com/atproto/admin/getSubjectStatus.ts
23302
+ var getSubjectStatus_exports = {};
23303
+ __export(getSubjectStatus_exports, {
23304
+ toKnownErr: () => toKnownErr12
23305
+ });
23306
+ function toKnownErr12(e) {
23307
+ if (e instanceof XRPCError) {
23308
+ }
23309
+ return e;
23310
+ }
23311
+
22986
23312
  // src/client/types/com/atproto/admin/resolveModerationReports.ts
22987
23313
  var resolveModerationReports_exports = {};
22988
23314
  __export(resolveModerationReports_exports, {
22989
- toKnownErr: () => toKnownErr11
23315
+ toKnownErr: () => toKnownErr13
22990
23316
  });
22991
- function toKnownErr11(e) {
23317
+ function toKnownErr13(e) {
22992
23318
  if (e instanceof XRPCError) {
22993
23319
  }
22994
23320
  return e;
@@ -22997,9 +23323,9 @@ function toKnownErr11(e) {
22997
23323
  // src/client/types/com/atproto/admin/reverseModerationAction.ts
22998
23324
  var reverseModerationAction_exports = {};
22999
23325
  __export(reverseModerationAction_exports, {
23000
- toKnownErr: () => toKnownErr12
23326
+ toKnownErr: () => toKnownErr14
23001
23327
  });
23002
- function toKnownErr12(e) {
23328
+ function toKnownErr14(e) {
23003
23329
  if (e instanceof XRPCError) {
23004
23330
  }
23005
23331
  return e;
@@ -23008,9 +23334,9 @@ function toKnownErr12(e) {
23008
23334
  // src/client/types/com/atproto/admin/searchRepos.ts
23009
23335
  var searchRepos_exports = {};
23010
23336
  __export(searchRepos_exports, {
23011
- toKnownErr: () => toKnownErr13
23337
+ toKnownErr: () => toKnownErr15
23012
23338
  });
23013
- function toKnownErr13(e) {
23339
+ function toKnownErr15(e) {
23014
23340
  if (e instanceof XRPCError) {
23015
23341
  }
23016
23342
  return e;
@@ -23019,9 +23345,9 @@ function toKnownErr13(e) {
23019
23345
  // src/client/types/com/atproto/admin/sendEmail.ts
23020
23346
  var sendEmail_exports = {};
23021
23347
  __export(sendEmail_exports, {
23022
- toKnownErr: () => toKnownErr14
23348
+ toKnownErr: () => toKnownErr16
23023
23349
  });
23024
- function toKnownErr14(e) {
23350
+ function toKnownErr16(e) {
23025
23351
  if (e instanceof XRPCError) {
23026
23352
  }
23027
23353
  return e;
@@ -23031,14 +23357,14 @@ function toKnownErr14(e) {
23031
23357
  var takeModerationAction_exports = {};
23032
23358
  __export(takeModerationAction_exports, {
23033
23359
  SubjectHasActionError: () => SubjectHasActionError,
23034
- toKnownErr: () => toKnownErr15
23360
+ toKnownErr: () => toKnownErr17
23035
23361
  });
23036
23362
  var SubjectHasActionError = class extends XRPCError {
23037
23363
  constructor(src2) {
23038
23364
  super(src2.status, src2.error, src2.message, src2.headers);
23039
23365
  }
23040
23366
  };
23041
- function toKnownErr15(e) {
23367
+ function toKnownErr17(e) {
23042
23368
  if (e instanceof XRPCError) {
23043
23369
  if (e.error === "SubjectHasAction")
23044
23370
  return new SubjectHasActionError(e);
@@ -23049,9 +23375,9 @@ function toKnownErr15(e) {
23049
23375
  // src/client/types/com/atproto/admin/updateAccountEmail.ts
23050
23376
  var updateAccountEmail_exports = {};
23051
23377
  __export(updateAccountEmail_exports, {
23052
- toKnownErr: () => toKnownErr16
23378
+ toKnownErr: () => toKnownErr18
23053
23379
  });
23054
- function toKnownErr16(e) {
23380
+ function toKnownErr18(e) {
23055
23381
  if (e instanceof XRPCError) {
23056
23382
  }
23057
23383
  return e;
@@ -23060,9 +23386,20 @@ function toKnownErr16(e) {
23060
23386
  // src/client/types/com/atproto/admin/updateAccountHandle.ts
23061
23387
  var updateAccountHandle_exports = {};
23062
23388
  __export(updateAccountHandle_exports, {
23063
- toKnownErr: () => toKnownErr17
23389
+ toKnownErr: () => toKnownErr19
23064
23390
  });
23065
- function toKnownErr17(e) {
23391
+ function toKnownErr19(e) {
23392
+ if (e instanceof XRPCError) {
23393
+ }
23394
+ return e;
23395
+ }
23396
+
23397
+ // src/client/types/com/atproto/admin/updateSubjectStatus.ts
23398
+ var updateSubjectStatus_exports = {};
23399
+ __export(updateSubjectStatus_exports, {
23400
+ toKnownErr: () => toKnownErr20
23401
+ });
23402
+ function toKnownErr20(e) {
23066
23403
  if (e instanceof XRPCError) {
23067
23404
  }
23068
23405
  return e;
@@ -23071,9 +23408,9 @@ function toKnownErr17(e) {
23071
23408
  // src/client/types/com/atproto/identity/resolveHandle.ts
23072
23409
  var resolveHandle_exports = {};
23073
23410
  __export(resolveHandle_exports, {
23074
- toKnownErr: () => toKnownErr18
23411
+ toKnownErr: () => toKnownErr21
23075
23412
  });
23076
- function toKnownErr18(e) {
23413
+ function toKnownErr21(e) {
23077
23414
  if (e instanceof XRPCError) {
23078
23415
  }
23079
23416
  return e;
@@ -23082,9 +23419,9 @@ function toKnownErr18(e) {
23082
23419
  // src/client/types/com/atproto/identity/updateHandle.ts
23083
23420
  var updateHandle_exports = {};
23084
23421
  __export(updateHandle_exports, {
23085
- toKnownErr: () => toKnownErr19
23422
+ toKnownErr: () => toKnownErr22
23086
23423
  });
23087
- function toKnownErr19(e) {
23424
+ function toKnownErr22(e) {
23088
23425
  if (e instanceof XRPCError) {
23089
23426
  }
23090
23427
  return e;
@@ -23093,9 +23430,9 @@ function toKnownErr19(e) {
23093
23430
  // src/client/types/com/atproto/label/queryLabels.ts
23094
23431
  var queryLabels_exports = {};
23095
23432
  __export(queryLabels_exports, {
23096
- toKnownErr: () => toKnownErr20
23433
+ toKnownErr: () => toKnownErr23
23097
23434
  });
23098
- function toKnownErr20(e) {
23435
+ function toKnownErr23(e) {
23099
23436
  if (e instanceof XRPCError) {
23100
23437
  }
23101
23438
  return e;
@@ -23104,9 +23441,9 @@ function toKnownErr20(e) {
23104
23441
  // src/client/types/com/atproto/moderation/createReport.ts
23105
23442
  var createReport_exports = {};
23106
23443
  __export(createReport_exports, {
23107
- toKnownErr: () => toKnownErr21
23444
+ toKnownErr: () => toKnownErr24
23108
23445
  });
23109
- function toKnownErr21(e) {
23446
+ function toKnownErr24(e) {
23110
23447
  if (e instanceof XRPCError) {
23111
23448
  }
23112
23449
  return e;
@@ -23119,7 +23456,7 @@ __export(applyWrites_exports, {
23119
23456
  isCreate: () => isCreate,
23120
23457
  isDelete: () => isDelete,
23121
23458
  isUpdate: () => isUpdate,
23122
- toKnownErr: () => toKnownErr22,
23459
+ toKnownErr: () => toKnownErr25,
23123
23460
  validateCreate: () => validateCreate,
23124
23461
  validateDelete: () => validateDelete,
23125
23462
  validateUpdate: () => validateUpdate
@@ -23139,7 +23476,7 @@ var InvalidSwapError = class extends XRPCError {
23139
23476
  super(src2.status, src2.error, src2.message, src2.headers);
23140
23477
  }
23141
23478
  };
23142
- function toKnownErr22(e) {
23479
+ function toKnownErr25(e) {
23143
23480
  if (e instanceof XRPCError) {
23144
23481
  if (e.error === "InvalidSwap")
23145
23482
  return new InvalidSwapError(e);
@@ -23169,14 +23506,14 @@ function validateDelete(v) {
23169
23506
  var createRecord_exports = {};
23170
23507
  __export(createRecord_exports, {
23171
23508
  InvalidSwapError: () => InvalidSwapError2,
23172
- toKnownErr: () => toKnownErr23
23509
+ toKnownErr: () => toKnownErr26
23173
23510
  });
23174
23511
  var InvalidSwapError2 = class extends XRPCError {
23175
23512
  constructor(src2) {
23176
23513
  super(src2.status, src2.error, src2.message, src2.headers);
23177
23514
  }
23178
23515
  };
23179
- function toKnownErr23(e) {
23516
+ function toKnownErr26(e) {
23180
23517
  if (e instanceof XRPCError) {
23181
23518
  if (e.error === "InvalidSwap")
23182
23519
  return new InvalidSwapError2(e);
@@ -23188,14 +23525,14 @@ function toKnownErr23(e) {
23188
23525
  var deleteRecord_exports = {};
23189
23526
  __export(deleteRecord_exports, {
23190
23527
  InvalidSwapError: () => InvalidSwapError3,
23191
- toKnownErr: () => toKnownErr24
23528
+ toKnownErr: () => toKnownErr27
23192
23529
  });
23193
23530
  var InvalidSwapError3 = class extends XRPCError {
23194
23531
  constructor(src2) {
23195
23532
  super(src2.status, src2.error, src2.message, src2.headers);
23196
23533
  }
23197
23534
  };
23198
- function toKnownErr24(e) {
23535
+ function toKnownErr27(e) {
23199
23536
  if (e instanceof XRPCError) {
23200
23537
  if (e.error === "InvalidSwap")
23201
23538
  return new InvalidSwapError3(e);
@@ -23206,9 +23543,9 @@ function toKnownErr24(e) {
23206
23543
  // src/client/types/com/atproto/repo/describeRepo.ts
23207
23544
  var describeRepo_exports = {};
23208
23545
  __export(describeRepo_exports, {
23209
- toKnownErr: () => toKnownErr25
23546
+ toKnownErr: () => toKnownErr28
23210
23547
  });
23211
- function toKnownErr25(e) {
23548
+ function toKnownErr28(e) {
23212
23549
  if (e instanceof XRPCError) {
23213
23550
  }
23214
23551
  return e;
@@ -23217,9 +23554,9 @@ function toKnownErr25(e) {
23217
23554
  // src/client/types/com/atproto/repo/getRecord.ts
23218
23555
  var getRecord_exports2 = {};
23219
23556
  __export(getRecord_exports2, {
23220
- toKnownErr: () => toKnownErr26
23557
+ toKnownErr: () => toKnownErr29
23221
23558
  });
23222
- function toKnownErr26(e) {
23559
+ function toKnownErr29(e) {
23223
23560
  if (e instanceof XRPCError) {
23224
23561
  }
23225
23562
  return e;
@@ -23229,10 +23566,10 @@ function toKnownErr26(e) {
23229
23566
  var listRecords_exports = {};
23230
23567
  __export(listRecords_exports, {
23231
23568
  isRecord: () => isRecord,
23232
- toKnownErr: () => toKnownErr27,
23569
+ toKnownErr: () => toKnownErr30,
23233
23570
  validateRecord: () => validateRecord
23234
23571
  });
23235
- function toKnownErr27(e) {
23572
+ function toKnownErr30(e) {
23236
23573
  if (e instanceof XRPCError) {
23237
23574
  }
23238
23575
  return e;
@@ -23248,14 +23585,14 @@ function validateRecord(v) {
23248
23585
  var putRecord_exports = {};
23249
23586
  __export(putRecord_exports, {
23250
23587
  InvalidSwapError: () => InvalidSwapError4,
23251
- toKnownErr: () => toKnownErr28
23588
+ toKnownErr: () => toKnownErr31
23252
23589
  });
23253
23590
  var InvalidSwapError4 = class extends XRPCError {
23254
23591
  constructor(src2) {
23255
23592
  super(src2.status, src2.error, src2.message, src2.headers);
23256
23593
  }
23257
23594
  };
23258
- function toKnownErr28(e) {
23595
+ function toKnownErr31(e) {
23259
23596
  if (e instanceof XRPCError) {
23260
23597
  if (e.error === "InvalidSwap")
23261
23598
  return new InvalidSwapError4(e);
@@ -23266,9 +23603,9 @@ function toKnownErr28(e) {
23266
23603
  // src/client/types/com/atproto/repo/uploadBlob.ts
23267
23604
  var uploadBlob_exports = {};
23268
23605
  __export(uploadBlob_exports, {
23269
- toKnownErr: () => toKnownErr29
23606
+ toKnownErr: () => toKnownErr32
23270
23607
  });
23271
- function toKnownErr29(e) {
23608
+ function toKnownErr32(e) {
23272
23609
  if (e instanceof XRPCError) {
23273
23610
  }
23274
23611
  return e;
@@ -23281,7 +23618,7 @@ __export(confirmEmail_exports, {
23281
23618
  ExpiredTokenError: () => ExpiredTokenError,
23282
23619
  InvalidEmailError: () => InvalidEmailError,
23283
23620
  InvalidTokenError: () => InvalidTokenError,
23284
- toKnownErr: () => toKnownErr30
23621
+ toKnownErr: () => toKnownErr33
23285
23622
  });
23286
23623
  var AccountNotFoundError = class extends XRPCError {
23287
23624
  constructor(src2) {
@@ -23303,7 +23640,7 @@ var InvalidEmailError = class extends XRPCError {
23303
23640
  super(src2.status, src2.error, src2.message, src2.headers);
23304
23641
  }
23305
23642
  };
23306
- function toKnownErr30(e) {
23643
+ function toKnownErr33(e) {
23307
23644
  if (e instanceof XRPCError) {
23308
23645
  if (e.error === "AccountNotFound")
23309
23646
  return new AccountNotFoundError(e);
@@ -23327,7 +23664,7 @@ __export(createAccount_exports, {
23327
23664
  InvalidPasswordError: () => InvalidPasswordError,
23328
23665
  UnresolvableDidError: () => UnresolvableDidError,
23329
23666
  UnsupportedDomainError: () => UnsupportedDomainError,
23330
- toKnownErr: () => toKnownErr31
23667
+ toKnownErr: () => toKnownErr34
23331
23668
  });
23332
23669
  var InvalidHandleError2 = class extends XRPCError {
23333
23670
  constructor(src2) {
@@ -23364,7 +23701,7 @@ var IncompatibleDidDocError = class extends XRPCError {
23364
23701
  super(src2.status, src2.error, src2.message, src2.headers);
23365
23702
  }
23366
23703
  };
23367
- function toKnownErr31(e) {
23704
+ function toKnownErr34(e) {
23368
23705
  if (e instanceof XRPCError) {
23369
23706
  if (e.error === "InvalidHandle")
23370
23707
  return new InvalidHandleError2(e);
@@ -23389,7 +23726,7 @@ var createAppPassword_exports = {};
23389
23726
  __export(createAppPassword_exports, {
23390
23727
  AccountTakedownError: () => AccountTakedownError,
23391
23728
  isAppPassword: () => isAppPassword,
23392
- toKnownErr: () => toKnownErr32,
23729
+ toKnownErr: () => toKnownErr35,
23393
23730
  validateAppPassword: () => validateAppPassword
23394
23731
  });
23395
23732
  var AccountTakedownError = class extends XRPCError {
@@ -23397,7 +23734,7 @@ var AccountTakedownError = class extends XRPCError {
23397
23734
  super(src2.status, src2.error, src2.message, src2.headers);
23398
23735
  }
23399
23736
  };
23400
- function toKnownErr32(e) {
23737
+ function toKnownErr35(e) {
23401
23738
  if (e instanceof XRPCError) {
23402
23739
  if (e.error === "AccountTakedown")
23403
23740
  return new AccountTakedownError(e);
@@ -23414,9 +23751,9 @@ function validateAppPassword(v) {
23414
23751
  // src/client/types/com/atproto/server/createInviteCode.ts
23415
23752
  var createInviteCode_exports = {};
23416
23753
  __export(createInviteCode_exports, {
23417
- toKnownErr: () => toKnownErr33
23754
+ toKnownErr: () => toKnownErr36
23418
23755
  });
23419
- function toKnownErr33(e) {
23756
+ function toKnownErr36(e) {
23420
23757
  if (e instanceof XRPCError) {
23421
23758
  }
23422
23759
  return e;
@@ -23426,10 +23763,10 @@ function toKnownErr33(e) {
23426
23763
  var createInviteCodes_exports = {};
23427
23764
  __export(createInviteCodes_exports, {
23428
23765
  isAccountCodes: () => isAccountCodes,
23429
- toKnownErr: () => toKnownErr34,
23766
+ toKnownErr: () => toKnownErr37,
23430
23767
  validateAccountCodes: () => validateAccountCodes
23431
23768
  });
23432
- function toKnownErr34(e) {
23769
+ function toKnownErr37(e) {
23433
23770
  if (e instanceof XRPCError) {
23434
23771
  }
23435
23772
  return e;
@@ -23445,14 +23782,14 @@ function validateAccountCodes(v) {
23445
23782
  var createSession_exports = {};
23446
23783
  __export(createSession_exports, {
23447
23784
  AccountTakedownError: () => AccountTakedownError2,
23448
- toKnownErr: () => toKnownErr35
23785
+ toKnownErr: () => toKnownErr38
23449
23786
  });
23450
23787
  var AccountTakedownError2 = class extends XRPCError {
23451
23788
  constructor(src2) {
23452
23789
  super(src2.status, src2.error, src2.message, src2.headers);
23453
23790
  }
23454
23791
  };
23455
- function toKnownErr35(e) {
23792
+ function toKnownErr38(e) {
23456
23793
  if (e instanceof XRPCError) {
23457
23794
  if (e.error === "AccountTakedown")
23458
23795
  return new AccountTakedownError2(e);
@@ -23465,7 +23802,7 @@ var deleteAccount_exports = {};
23465
23802
  __export(deleteAccount_exports, {
23466
23803
  ExpiredTokenError: () => ExpiredTokenError2,
23467
23804
  InvalidTokenError: () => InvalidTokenError2,
23468
- toKnownErr: () => toKnownErr36
23805
+ toKnownErr: () => toKnownErr39
23469
23806
  });
23470
23807
  var ExpiredTokenError2 = class extends XRPCError {
23471
23808
  constructor(src2) {
@@ -23477,7 +23814,7 @@ var InvalidTokenError2 = class extends XRPCError {
23477
23814
  super(src2.status, src2.error, src2.message, src2.headers);
23478
23815
  }
23479
23816
  };
23480
- function toKnownErr36(e) {
23817
+ function toKnownErr39(e) {
23481
23818
  if (e instanceof XRPCError) {
23482
23819
  if (e.error === "ExpiredToken")
23483
23820
  return new ExpiredTokenError2(e);
@@ -23490,9 +23827,9 @@ function toKnownErr36(e) {
23490
23827
  // src/client/types/com/atproto/server/deleteSession.ts
23491
23828
  var deleteSession_exports = {};
23492
23829
  __export(deleteSession_exports, {
23493
- toKnownErr: () => toKnownErr37
23830
+ toKnownErr: () => toKnownErr40
23494
23831
  });
23495
- function toKnownErr37(e) {
23832
+ function toKnownErr40(e) {
23496
23833
  if (e instanceof XRPCError) {
23497
23834
  }
23498
23835
  return e;
@@ -23502,10 +23839,10 @@ function toKnownErr37(e) {
23502
23839
  var describeServer_exports = {};
23503
23840
  __export(describeServer_exports, {
23504
23841
  isLinks: () => isLinks,
23505
- toKnownErr: () => toKnownErr38,
23842
+ toKnownErr: () => toKnownErr41,
23506
23843
  validateLinks: () => validateLinks
23507
23844
  });
23508
- function toKnownErr38(e) {
23845
+ function toKnownErr41(e) {
23509
23846
  if (e instanceof XRPCError) {
23510
23847
  }
23511
23848
  return e;
@@ -23521,14 +23858,14 @@ function validateLinks(v) {
23521
23858
  var getAccountInviteCodes_exports = {};
23522
23859
  __export(getAccountInviteCodes_exports, {
23523
23860
  DuplicateCreateError: () => DuplicateCreateError,
23524
- toKnownErr: () => toKnownErr39
23861
+ toKnownErr: () => toKnownErr42
23525
23862
  });
23526
23863
  var DuplicateCreateError = class extends XRPCError {
23527
23864
  constructor(src2) {
23528
23865
  super(src2.status, src2.error, src2.message, src2.headers);
23529
23866
  }
23530
23867
  };
23531
- function toKnownErr39(e) {
23868
+ function toKnownErr42(e) {
23532
23869
  if (e instanceof XRPCError) {
23533
23870
  if (e.error === "DuplicateCreate")
23534
23871
  return new DuplicateCreateError(e);
@@ -23539,9 +23876,9 @@ function toKnownErr39(e) {
23539
23876
  // src/client/types/com/atproto/server/getSession.ts
23540
23877
  var getSession_exports = {};
23541
23878
  __export(getSession_exports, {
23542
- toKnownErr: () => toKnownErr40
23879
+ toKnownErr: () => toKnownErr43
23543
23880
  });
23544
- function toKnownErr40(e) {
23881
+ function toKnownErr43(e) {
23545
23882
  if (e instanceof XRPCError) {
23546
23883
  }
23547
23884
  return e;
@@ -23552,7 +23889,7 @@ var listAppPasswords_exports = {};
23552
23889
  __export(listAppPasswords_exports, {
23553
23890
  AccountTakedownError: () => AccountTakedownError3,
23554
23891
  isAppPassword: () => isAppPassword2,
23555
- toKnownErr: () => toKnownErr41,
23892
+ toKnownErr: () => toKnownErr44,
23556
23893
  validateAppPassword: () => validateAppPassword2
23557
23894
  });
23558
23895
  var AccountTakedownError3 = class extends XRPCError {
@@ -23560,7 +23897,7 @@ var AccountTakedownError3 = class extends XRPCError {
23560
23897
  super(src2.status, src2.error, src2.message, src2.headers);
23561
23898
  }
23562
23899
  };
23563
- function toKnownErr41(e) {
23900
+ function toKnownErr44(e) {
23564
23901
  if (e instanceof XRPCError) {
23565
23902
  if (e.error === "AccountTakedown")
23566
23903
  return new AccountTakedownError3(e);
@@ -23578,14 +23915,14 @@ function validateAppPassword2(v) {
23578
23915
  var refreshSession_exports = {};
23579
23916
  __export(refreshSession_exports, {
23580
23917
  AccountTakedownError: () => AccountTakedownError4,
23581
- toKnownErr: () => toKnownErr42
23918
+ toKnownErr: () => toKnownErr45
23582
23919
  });
23583
23920
  var AccountTakedownError4 = class extends XRPCError {
23584
23921
  constructor(src2) {
23585
23922
  super(src2.status, src2.error, src2.message, src2.headers);
23586
23923
  }
23587
23924
  };
23588
- function toKnownErr42(e) {
23925
+ function toKnownErr45(e) {
23589
23926
  if (e instanceof XRPCError) {
23590
23927
  if (e.error === "AccountTakedown")
23591
23928
  return new AccountTakedownError4(e);
@@ -23596,9 +23933,9 @@ function toKnownErr42(e) {
23596
23933
  // src/client/types/com/atproto/server/requestAccountDelete.ts
23597
23934
  var requestAccountDelete_exports = {};
23598
23935
  __export(requestAccountDelete_exports, {
23599
- toKnownErr: () => toKnownErr43
23936
+ toKnownErr: () => toKnownErr46
23600
23937
  });
23601
- function toKnownErr43(e) {
23938
+ function toKnownErr46(e) {
23602
23939
  if (e instanceof XRPCError) {
23603
23940
  }
23604
23941
  return e;
@@ -23607,9 +23944,9 @@ function toKnownErr43(e) {
23607
23944
  // src/client/types/com/atproto/server/requestEmailConfirmation.ts
23608
23945
  var requestEmailConfirmation_exports = {};
23609
23946
  __export(requestEmailConfirmation_exports, {
23610
- toKnownErr: () => toKnownErr44
23947
+ toKnownErr: () => toKnownErr47
23611
23948
  });
23612
- function toKnownErr44(e) {
23949
+ function toKnownErr47(e) {
23613
23950
  if (e instanceof XRPCError) {
23614
23951
  }
23615
23952
  return e;
@@ -23618,9 +23955,9 @@ function toKnownErr44(e) {
23618
23955
  // src/client/types/com/atproto/server/requestEmailUpdate.ts
23619
23956
  var requestEmailUpdate_exports = {};
23620
23957
  __export(requestEmailUpdate_exports, {
23621
- toKnownErr: () => toKnownErr45
23958
+ toKnownErr: () => toKnownErr48
23622
23959
  });
23623
- function toKnownErr45(e) {
23960
+ function toKnownErr48(e) {
23624
23961
  if (e instanceof XRPCError) {
23625
23962
  }
23626
23963
  return e;
@@ -23629,9 +23966,20 @@ function toKnownErr45(e) {
23629
23966
  // src/client/types/com/atproto/server/requestPasswordReset.ts
23630
23967
  var requestPasswordReset_exports = {};
23631
23968
  __export(requestPasswordReset_exports, {
23632
- toKnownErr: () => toKnownErr46
23969
+ toKnownErr: () => toKnownErr49
23633
23970
  });
23634
- function toKnownErr46(e) {
23971
+ function toKnownErr49(e) {
23972
+ if (e instanceof XRPCError) {
23973
+ }
23974
+ return e;
23975
+ }
23976
+
23977
+ // src/client/types/com/atproto/server/reserveSigningKey.ts
23978
+ var reserveSigningKey_exports = {};
23979
+ __export(reserveSigningKey_exports, {
23980
+ toKnownErr: () => toKnownErr50
23981
+ });
23982
+ function toKnownErr50(e) {
23635
23983
  if (e instanceof XRPCError) {
23636
23984
  }
23637
23985
  return e;
@@ -23642,7 +23990,7 @@ var resetPassword_exports = {};
23642
23990
  __export(resetPassword_exports, {
23643
23991
  ExpiredTokenError: () => ExpiredTokenError3,
23644
23992
  InvalidTokenError: () => InvalidTokenError3,
23645
- toKnownErr: () => toKnownErr47
23993
+ toKnownErr: () => toKnownErr51
23646
23994
  });
23647
23995
  var ExpiredTokenError3 = class extends XRPCError {
23648
23996
  constructor(src2) {
@@ -23654,7 +24002,7 @@ var InvalidTokenError3 = class extends XRPCError {
23654
24002
  super(src2.status, src2.error, src2.message, src2.headers);
23655
24003
  }
23656
24004
  };
23657
- function toKnownErr47(e) {
24005
+ function toKnownErr51(e) {
23658
24006
  if (e instanceof XRPCError) {
23659
24007
  if (e.error === "ExpiredToken")
23660
24008
  return new ExpiredTokenError3(e);
@@ -23667,9 +24015,9 @@ function toKnownErr47(e) {
23667
24015
  // src/client/types/com/atproto/server/revokeAppPassword.ts
23668
24016
  var revokeAppPassword_exports = {};
23669
24017
  __export(revokeAppPassword_exports, {
23670
- toKnownErr: () => toKnownErr48
24018
+ toKnownErr: () => toKnownErr52
23671
24019
  });
23672
- function toKnownErr48(e) {
24020
+ function toKnownErr52(e) {
23673
24021
  if (e instanceof XRPCError) {
23674
24022
  }
23675
24023
  return e;
@@ -23681,7 +24029,7 @@ __export(updateEmail_exports, {
23681
24029
  ExpiredTokenError: () => ExpiredTokenError4,
23682
24030
  InvalidTokenError: () => InvalidTokenError4,
23683
24031
  TokenRequiredError: () => TokenRequiredError,
23684
- toKnownErr: () => toKnownErr49
24032
+ toKnownErr: () => toKnownErr53
23685
24033
  });
23686
24034
  var ExpiredTokenError4 = class extends XRPCError {
23687
24035
  constructor(src2) {
@@ -23698,7 +24046,7 @@ var TokenRequiredError = class extends XRPCError {
23698
24046
  super(src2.status, src2.error, src2.message, src2.headers);
23699
24047
  }
23700
24048
  };
23701
- function toKnownErr49(e) {
24049
+ function toKnownErr53(e) {
23702
24050
  if (e instanceof XRPCError) {
23703
24051
  if (e.error === "ExpiredToken")
23704
24052
  return new ExpiredTokenError4(e);
@@ -23713,9 +24061,9 @@ function toKnownErr49(e) {
23713
24061
  // src/client/types/com/atproto/sync/getBlob.ts
23714
24062
  var getBlob_exports = {};
23715
24063
  __export(getBlob_exports, {
23716
- toKnownErr: () => toKnownErr50
24064
+ toKnownErr: () => toKnownErr54
23717
24065
  });
23718
- function toKnownErr50(e) {
24066
+ function toKnownErr54(e) {
23719
24067
  if (e instanceof XRPCError) {
23720
24068
  }
23721
24069
  return e;
@@ -23724,9 +24072,9 @@ function toKnownErr50(e) {
23724
24072
  // src/client/types/com/atproto/sync/getBlocks.ts
23725
24073
  var getBlocks_exports = {};
23726
24074
  __export(getBlocks_exports, {
23727
- toKnownErr: () => toKnownErr51
24075
+ toKnownErr: () => toKnownErr55
23728
24076
  });
23729
- function toKnownErr51(e) {
24077
+ function toKnownErr55(e) {
23730
24078
  if (e instanceof XRPCError) {
23731
24079
  }
23732
24080
  return e;
@@ -23735,9 +24083,9 @@ function toKnownErr51(e) {
23735
24083
  // src/client/types/com/atproto/sync/getCheckout.ts
23736
24084
  var getCheckout_exports = {};
23737
24085
  __export(getCheckout_exports, {
23738
- toKnownErr: () => toKnownErr52
24086
+ toKnownErr: () => toKnownErr56
23739
24087
  });
23740
- function toKnownErr52(e) {
24088
+ function toKnownErr56(e) {
23741
24089
  if (e instanceof XRPCError) {
23742
24090
  }
23743
24091
  return e;
@@ -23747,14 +24095,14 @@ function toKnownErr52(e) {
23747
24095
  var getHead_exports = {};
23748
24096
  __export(getHead_exports, {
23749
24097
  HeadNotFoundError: () => HeadNotFoundError,
23750
- toKnownErr: () => toKnownErr53
24098
+ toKnownErr: () => toKnownErr57
23751
24099
  });
23752
24100
  var HeadNotFoundError = class extends XRPCError {
23753
24101
  constructor(src2) {
23754
24102
  super(src2.status, src2.error, src2.message, src2.headers);
23755
24103
  }
23756
24104
  };
23757
- function toKnownErr53(e) {
24105
+ function toKnownErr57(e) {
23758
24106
  if (e instanceof XRPCError) {
23759
24107
  if (e.error === "HeadNotFound")
23760
24108
  return new HeadNotFoundError(e);
@@ -23766,14 +24114,14 @@ function toKnownErr53(e) {
23766
24114
  var getLatestCommit_exports = {};
23767
24115
  __export(getLatestCommit_exports, {
23768
24116
  RepoNotFoundError: () => RepoNotFoundError2,
23769
- toKnownErr: () => toKnownErr54
24117
+ toKnownErr: () => toKnownErr58
23770
24118
  });
23771
24119
  var RepoNotFoundError2 = class extends XRPCError {
23772
24120
  constructor(src2) {
23773
24121
  super(src2.status, src2.error, src2.message, src2.headers);
23774
24122
  }
23775
24123
  };
23776
- function toKnownErr54(e) {
24124
+ function toKnownErr58(e) {
23777
24125
  if (e instanceof XRPCError) {
23778
24126
  if (e.error === "RepoNotFound")
23779
24127
  return new RepoNotFoundError2(e);
@@ -23784,9 +24132,9 @@ function toKnownErr54(e) {
23784
24132
  // src/client/types/com/atproto/sync/getRecord.ts
23785
24133
  var getRecord_exports3 = {};
23786
24134
  __export(getRecord_exports3, {
23787
- toKnownErr: () => toKnownErr55
24135
+ toKnownErr: () => toKnownErr59
23788
24136
  });
23789
- function toKnownErr55(e) {
24137
+ function toKnownErr59(e) {
23790
24138
  if (e instanceof XRPCError) {
23791
24139
  }
23792
24140
  return e;
@@ -23795,9 +24143,9 @@ function toKnownErr55(e) {
23795
24143
  // src/client/types/com/atproto/sync/getRepo.ts
23796
24144
  var getRepo_exports2 = {};
23797
24145
  __export(getRepo_exports2, {
23798
- toKnownErr: () => toKnownErr56
24146
+ toKnownErr: () => toKnownErr60
23799
24147
  });
23800
- function toKnownErr56(e) {
24148
+ function toKnownErr60(e) {
23801
24149
  if (e instanceof XRPCError) {
23802
24150
  }
23803
24151
  return e;
@@ -23806,9 +24154,9 @@ function toKnownErr56(e) {
23806
24154
  // src/client/types/com/atproto/sync/listBlobs.ts
23807
24155
  var listBlobs_exports = {};
23808
24156
  __export(listBlobs_exports, {
23809
- toKnownErr: () => toKnownErr57
24157
+ toKnownErr: () => toKnownErr61
23810
24158
  });
23811
- function toKnownErr57(e) {
24159
+ function toKnownErr61(e) {
23812
24160
  if (e instanceof XRPCError) {
23813
24161
  }
23814
24162
  return e;
@@ -23818,10 +24166,10 @@ function toKnownErr57(e) {
23818
24166
  var listRepos_exports = {};
23819
24167
  __export(listRepos_exports, {
23820
24168
  isRepo: () => isRepo,
23821
- toKnownErr: () => toKnownErr58,
24169
+ toKnownErr: () => toKnownErr62,
23822
24170
  validateRepo: () => validateRepo
23823
24171
  });
23824
- function toKnownErr58(e) {
24172
+ function toKnownErr62(e) {
23825
24173
  if (e instanceof XRPCError) {
23826
24174
  }
23827
24175
  return e;
@@ -23836,9 +24184,9 @@ function validateRepo(v) {
23836
24184
  // src/client/types/com/atproto/sync/notifyOfUpdate.ts
23837
24185
  var notifyOfUpdate_exports = {};
23838
24186
  __export(notifyOfUpdate_exports, {
23839
- toKnownErr: () => toKnownErr59
24187
+ toKnownErr: () => toKnownErr63
23840
24188
  });
23841
- function toKnownErr59(e) {
24189
+ function toKnownErr63(e) {
23842
24190
  if (e instanceof XRPCError) {
23843
24191
  }
23844
24192
  return e;
@@ -23847,9 +24195,9 @@ function toKnownErr59(e) {
23847
24195
  // src/client/types/com/atproto/sync/requestCrawl.ts
23848
24196
  var requestCrawl_exports = {};
23849
24197
  __export(requestCrawl_exports, {
23850
- toKnownErr: () => toKnownErr60
24198
+ toKnownErr: () => toKnownErr64
23851
24199
  });
23852
- function toKnownErr60(e) {
24200
+ function toKnownErr64(e) {
23853
24201
  if (e instanceof XRPCError) {
23854
24202
  }
23855
24203
  return e;
@@ -23858,9 +24206,9 @@ function toKnownErr60(e) {
23858
24206
  // src/client/types/app/bsky/actor/getPreferences.ts
23859
24207
  var getPreferences_exports = {};
23860
24208
  __export(getPreferences_exports, {
23861
- toKnownErr: () => toKnownErr61
24209
+ toKnownErr: () => toKnownErr65
23862
24210
  });
23863
- function toKnownErr61(e) {
24211
+ function toKnownErr65(e) {
23864
24212
  if (e instanceof XRPCError) {
23865
24213
  }
23866
24214
  return e;
@@ -23869,9 +24217,9 @@ function toKnownErr61(e) {
23869
24217
  // src/client/types/app/bsky/actor/getProfile.ts
23870
24218
  var getProfile_exports = {};
23871
24219
  __export(getProfile_exports, {
23872
- toKnownErr: () => toKnownErr62
24220
+ toKnownErr: () => toKnownErr66
23873
24221
  });
23874
- function toKnownErr62(e) {
24222
+ function toKnownErr66(e) {
23875
24223
  if (e instanceof XRPCError) {
23876
24224
  }
23877
24225
  return e;
@@ -23880,9 +24228,9 @@ function toKnownErr62(e) {
23880
24228
  // src/client/types/app/bsky/actor/getProfiles.ts
23881
24229
  var getProfiles_exports = {};
23882
24230
  __export(getProfiles_exports, {
23883
- toKnownErr: () => toKnownErr63
24231
+ toKnownErr: () => toKnownErr67
23884
24232
  });
23885
- function toKnownErr63(e) {
24233
+ function toKnownErr67(e) {
23886
24234
  if (e instanceof XRPCError) {
23887
24235
  }
23888
24236
  return e;
@@ -23891,9 +24239,9 @@ function toKnownErr63(e) {
23891
24239
  // src/client/types/app/bsky/actor/getSuggestions.ts
23892
24240
  var getSuggestions_exports = {};
23893
24241
  __export(getSuggestions_exports, {
23894
- toKnownErr: () => toKnownErr64
24242
+ toKnownErr: () => toKnownErr68
23895
24243
  });
23896
- function toKnownErr64(e) {
24244
+ function toKnownErr68(e) {
23897
24245
  if (e instanceof XRPCError) {
23898
24246
  }
23899
24247
  return e;
@@ -23902,9 +24250,9 @@ function toKnownErr64(e) {
23902
24250
  // src/client/types/app/bsky/actor/putPreferences.ts
23903
24251
  var putPreferences_exports = {};
23904
24252
  __export(putPreferences_exports, {
23905
- toKnownErr: () => toKnownErr65
24253
+ toKnownErr: () => toKnownErr69
23906
24254
  });
23907
- function toKnownErr65(e) {
24255
+ function toKnownErr69(e) {
23908
24256
  if (e instanceof XRPCError) {
23909
24257
  }
23910
24258
  return e;
@@ -23913,9 +24261,9 @@ function toKnownErr65(e) {
23913
24261
  // src/client/types/app/bsky/actor/searchActors.ts
23914
24262
  var searchActors_exports = {};
23915
24263
  __export(searchActors_exports, {
23916
- toKnownErr: () => toKnownErr66
24264
+ toKnownErr: () => toKnownErr70
23917
24265
  });
23918
- function toKnownErr66(e) {
24266
+ function toKnownErr70(e) {
23919
24267
  if (e instanceof XRPCError) {
23920
24268
  }
23921
24269
  return e;
@@ -23924,9 +24272,9 @@ function toKnownErr66(e) {
23924
24272
  // src/client/types/app/bsky/actor/searchActorsTypeahead.ts
23925
24273
  var searchActorsTypeahead_exports = {};
23926
24274
  __export(searchActorsTypeahead_exports, {
23927
- toKnownErr: () => toKnownErr67
24275
+ toKnownErr: () => toKnownErr71
23928
24276
  });
23929
- function toKnownErr67(e) {
24277
+ function toKnownErr71(e) {
23930
24278
  if (e instanceof XRPCError) {
23931
24279
  }
23932
24280
  return e;
@@ -23937,11 +24285,11 @@ var describeFeedGenerator_exports = {};
23937
24285
  __export(describeFeedGenerator_exports, {
23938
24286
  isFeed: () => isFeed,
23939
24287
  isLinks: () => isLinks2,
23940
- toKnownErr: () => toKnownErr68,
24288
+ toKnownErr: () => toKnownErr72,
23941
24289
  validateFeed: () => validateFeed,
23942
24290
  validateLinks: () => validateLinks2
23943
24291
  });
23944
- function toKnownErr68(e) {
24292
+ function toKnownErr72(e) {
23945
24293
  if (e instanceof XRPCError) {
23946
24294
  }
23947
24295
  return e;
@@ -23962,9 +24310,9 @@ function validateLinks2(v) {
23962
24310
  // src/client/types/app/bsky/feed/getActorFeeds.ts
23963
24311
  var getActorFeeds_exports = {};
23964
24312
  __export(getActorFeeds_exports, {
23965
- toKnownErr: () => toKnownErr69
24313
+ toKnownErr: () => toKnownErr73
23966
24314
  });
23967
- function toKnownErr69(e) {
24315
+ function toKnownErr73(e) {
23968
24316
  if (e instanceof XRPCError) {
23969
24317
  }
23970
24318
  return e;
@@ -23975,7 +24323,7 @@ var getActorLikes_exports = {};
23975
24323
  __export(getActorLikes_exports, {
23976
24324
  BlockedActorError: () => BlockedActorError,
23977
24325
  BlockedByActorError: () => BlockedByActorError,
23978
- toKnownErr: () => toKnownErr70
24326
+ toKnownErr: () => toKnownErr74
23979
24327
  });
23980
24328
  var BlockedActorError = class extends XRPCError {
23981
24329
  constructor(src2) {
@@ -23987,7 +24335,7 @@ var BlockedByActorError = class extends XRPCError {
23987
24335
  super(src2.status, src2.error, src2.message, src2.headers);
23988
24336
  }
23989
24337
  };
23990
- function toKnownErr70(e) {
24338
+ function toKnownErr74(e) {
23991
24339
  if (e instanceof XRPCError) {
23992
24340
  if (e.error === "BlockedActor")
23993
24341
  return new BlockedActorError(e);
@@ -24002,7 +24350,7 @@ var getAuthorFeed_exports = {};
24002
24350
  __export(getAuthorFeed_exports, {
24003
24351
  BlockedActorError: () => BlockedActorError2,
24004
24352
  BlockedByActorError: () => BlockedByActorError2,
24005
- toKnownErr: () => toKnownErr71
24353
+ toKnownErr: () => toKnownErr75
24006
24354
  });
24007
24355
  var BlockedActorError2 = class extends XRPCError {
24008
24356
  constructor(src2) {
@@ -24014,7 +24362,7 @@ var BlockedByActorError2 = class extends XRPCError {
24014
24362
  super(src2.status, src2.error, src2.message, src2.headers);
24015
24363
  }
24016
24364
  };
24017
- function toKnownErr71(e) {
24365
+ function toKnownErr75(e) {
24018
24366
  if (e instanceof XRPCError) {
24019
24367
  if (e.error === "BlockedActor")
24020
24368
  return new BlockedActorError2(e);
@@ -24028,14 +24376,14 @@ function toKnownErr71(e) {
24028
24376
  var getFeed_exports = {};
24029
24377
  __export(getFeed_exports, {
24030
24378
  UnknownFeedError: () => UnknownFeedError,
24031
- toKnownErr: () => toKnownErr72
24379
+ toKnownErr: () => toKnownErr76
24032
24380
  });
24033
24381
  var UnknownFeedError = class extends XRPCError {
24034
24382
  constructor(src2) {
24035
24383
  super(src2.status, src2.error, src2.message, src2.headers);
24036
24384
  }
24037
24385
  };
24038
- function toKnownErr72(e) {
24386
+ function toKnownErr76(e) {
24039
24387
  if (e instanceof XRPCError) {
24040
24388
  if (e.error === "UnknownFeed")
24041
24389
  return new UnknownFeedError(e);
@@ -24046,9 +24394,9 @@ function toKnownErr72(e) {
24046
24394
  // src/client/types/app/bsky/feed/getFeedGenerator.ts
24047
24395
  var getFeedGenerator_exports = {};
24048
24396
  __export(getFeedGenerator_exports, {
24049
- toKnownErr: () => toKnownErr73
24397
+ toKnownErr: () => toKnownErr77
24050
24398
  });
24051
- function toKnownErr73(e) {
24399
+ function toKnownErr77(e) {
24052
24400
  if (e instanceof XRPCError) {
24053
24401
  }
24054
24402
  return e;
@@ -24057,9 +24405,9 @@ function toKnownErr73(e) {
24057
24405
  // src/client/types/app/bsky/feed/getFeedGenerators.ts
24058
24406
  var getFeedGenerators_exports = {};
24059
24407
  __export(getFeedGenerators_exports, {
24060
- toKnownErr: () => toKnownErr74
24408
+ toKnownErr: () => toKnownErr78
24061
24409
  });
24062
- function toKnownErr74(e) {
24410
+ function toKnownErr78(e) {
24063
24411
  if (e instanceof XRPCError) {
24064
24412
  }
24065
24413
  return e;
@@ -24069,14 +24417,14 @@ function toKnownErr74(e) {
24069
24417
  var getFeedSkeleton_exports = {};
24070
24418
  __export(getFeedSkeleton_exports, {
24071
24419
  UnknownFeedError: () => UnknownFeedError2,
24072
- toKnownErr: () => toKnownErr75
24420
+ toKnownErr: () => toKnownErr79
24073
24421
  });
24074
24422
  var UnknownFeedError2 = class extends XRPCError {
24075
24423
  constructor(src2) {
24076
24424
  super(src2.status, src2.error, src2.message, src2.headers);
24077
24425
  }
24078
24426
  };
24079
- function toKnownErr75(e) {
24427
+ function toKnownErr79(e) {
24080
24428
  if (e instanceof XRPCError) {
24081
24429
  if (e.error === "UnknownFeed")
24082
24430
  return new UnknownFeedError2(e);
@@ -24088,10 +24436,10 @@ function toKnownErr75(e) {
24088
24436
  var getLikes_exports = {};
24089
24437
  __export(getLikes_exports, {
24090
24438
  isLike: () => isLike,
24091
- toKnownErr: () => toKnownErr76,
24439
+ toKnownErr: () => toKnownErr80,
24092
24440
  validateLike: () => validateLike
24093
24441
  });
24094
- function toKnownErr76(e) {
24442
+ function toKnownErr80(e) {
24095
24443
  if (e instanceof XRPCError) {
24096
24444
  }
24097
24445
  return e;
@@ -24107,14 +24455,14 @@ function validateLike(v) {
24107
24455
  var getListFeed_exports = {};
24108
24456
  __export(getListFeed_exports, {
24109
24457
  UnknownListError: () => UnknownListError,
24110
- toKnownErr: () => toKnownErr77
24458
+ toKnownErr: () => toKnownErr81
24111
24459
  });
24112
24460
  var UnknownListError = class extends XRPCError {
24113
24461
  constructor(src2) {
24114
24462
  super(src2.status, src2.error, src2.message, src2.headers);
24115
24463
  }
24116
24464
  };
24117
- function toKnownErr77(e) {
24465
+ function toKnownErr81(e) {
24118
24466
  if (e instanceof XRPCError) {
24119
24467
  if (e.error === "UnknownList")
24120
24468
  return new UnknownListError(e);
@@ -24126,14 +24474,14 @@ function toKnownErr77(e) {
24126
24474
  var getPostThread_exports = {};
24127
24475
  __export(getPostThread_exports, {
24128
24476
  NotFoundError: () => NotFoundError,
24129
- toKnownErr: () => toKnownErr78
24477
+ toKnownErr: () => toKnownErr82
24130
24478
  });
24131
24479
  var NotFoundError = class extends XRPCError {
24132
24480
  constructor(src2) {
24133
24481
  super(src2.status, src2.error, src2.message, src2.headers);
24134
24482
  }
24135
24483
  };
24136
- function toKnownErr78(e) {
24484
+ function toKnownErr82(e) {
24137
24485
  if (e instanceof XRPCError) {
24138
24486
  if (e.error === "NotFound")
24139
24487
  return new NotFoundError(e);
@@ -24144,9 +24492,9 @@ function toKnownErr78(e) {
24144
24492
  // src/client/types/app/bsky/feed/getPosts.ts
24145
24493
  var getPosts_exports = {};
24146
24494
  __export(getPosts_exports, {
24147
- toKnownErr: () => toKnownErr79
24495
+ toKnownErr: () => toKnownErr83
24148
24496
  });
24149
- function toKnownErr79(e) {
24497
+ function toKnownErr83(e) {
24150
24498
  if (e instanceof XRPCError) {
24151
24499
  }
24152
24500
  return e;
@@ -24155,9 +24503,9 @@ function toKnownErr79(e) {
24155
24503
  // src/client/types/app/bsky/feed/getRepostedBy.ts
24156
24504
  var getRepostedBy_exports = {};
24157
24505
  __export(getRepostedBy_exports, {
24158
- toKnownErr: () => toKnownErr80
24506
+ toKnownErr: () => toKnownErr84
24159
24507
  });
24160
- function toKnownErr80(e) {
24508
+ function toKnownErr84(e) {
24161
24509
  if (e instanceof XRPCError) {
24162
24510
  }
24163
24511
  return e;
@@ -24166,9 +24514,9 @@ function toKnownErr80(e) {
24166
24514
  // src/client/types/app/bsky/feed/getSuggestedFeeds.ts
24167
24515
  var getSuggestedFeeds_exports = {};
24168
24516
  __export(getSuggestedFeeds_exports, {
24169
- toKnownErr: () => toKnownErr81
24517
+ toKnownErr: () => toKnownErr85
24170
24518
  });
24171
- function toKnownErr81(e) {
24519
+ function toKnownErr85(e) {
24172
24520
  if (e instanceof XRPCError) {
24173
24521
  }
24174
24522
  return e;
@@ -24177,9 +24525,9 @@ function toKnownErr81(e) {
24177
24525
  // src/client/types/app/bsky/feed/getTimeline.ts
24178
24526
  var getTimeline_exports = {};
24179
24527
  __export(getTimeline_exports, {
24180
- toKnownErr: () => toKnownErr82
24528
+ toKnownErr: () => toKnownErr86
24181
24529
  });
24182
- function toKnownErr82(e) {
24530
+ function toKnownErr86(e) {
24183
24531
  if (e instanceof XRPCError) {
24184
24532
  }
24185
24533
  return e;
@@ -24189,14 +24537,14 @@ function toKnownErr82(e) {
24189
24537
  var searchPosts_exports = {};
24190
24538
  __export(searchPosts_exports, {
24191
24539
  BadQueryStringError: () => BadQueryStringError,
24192
- toKnownErr: () => toKnownErr83
24540
+ toKnownErr: () => toKnownErr87
24193
24541
  });
24194
24542
  var BadQueryStringError = class extends XRPCError {
24195
24543
  constructor(src2) {
24196
24544
  super(src2.status, src2.error, src2.message, src2.headers);
24197
24545
  }
24198
24546
  };
24199
- function toKnownErr83(e) {
24547
+ function toKnownErr87(e) {
24200
24548
  if (e instanceof XRPCError) {
24201
24549
  if (e.error === "BadQueryString")
24202
24550
  return new BadQueryStringError(e);
@@ -24207,9 +24555,9 @@ function toKnownErr83(e) {
24207
24555
  // src/client/types/app/bsky/graph/getBlocks.ts
24208
24556
  var getBlocks_exports2 = {};
24209
24557
  __export(getBlocks_exports2, {
24210
- toKnownErr: () => toKnownErr84
24558
+ toKnownErr: () => toKnownErr88
24211
24559
  });
24212
- function toKnownErr84(e) {
24560
+ function toKnownErr88(e) {
24213
24561
  if (e instanceof XRPCError) {
24214
24562
  }
24215
24563
  return e;
@@ -24218,9 +24566,9 @@ function toKnownErr84(e) {
24218
24566
  // src/client/types/app/bsky/graph/getFollowers.ts
24219
24567
  var getFollowers_exports = {};
24220
24568
  __export(getFollowers_exports, {
24221
- toKnownErr: () => toKnownErr85
24569
+ toKnownErr: () => toKnownErr89
24222
24570
  });
24223
- function toKnownErr85(e) {
24571
+ function toKnownErr89(e) {
24224
24572
  if (e instanceof XRPCError) {
24225
24573
  }
24226
24574
  return e;
@@ -24229,9 +24577,9 @@ function toKnownErr85(e) {
24229
24577
  // src/client/types/app/bsky/graph/getFollows.ts
24230
24578
  var getFollows_exports = {};
24231
24579
  __export(getFollows_exports, {
24232
- toKnownErr: () => toKnownErr86
24580
+ toKnownErr: () => toKnownErr90
24233
24581
  });
24234
- function toKnownErr86(e) {
24582
+ function toKnownErr90(e) {
24235
24583
  if (e instanceof XRPCError) {
24236
24584
  }
24237
24585
  return e;
@@ -24240,9 +24588,9 @@ function toKnownErr86(e) {
24240
24588
  // src/client/types/app/bsky/graph/getList.ts
24241
24589
  var getList_exports = {};
24242
24590
  __export(getList_exports, {
24243
- toKnownErr: () => toKnownErr87
24591
+ toKnownErr: () => toKnownErr91
24244
24592
  });
24245
- function toKnownErr87(e) {
24593
+ function toKnownErr91(e) {
24246
24594
  if (e instanceof XRPCError) {
24247
24595
  }
24248
24596
  return e;
@@ -24251,9 +24599,9 @@ function toKnownErr87(e) {
24251
24599
  // src/client/types/app/bsky/graph/getListBlocks.ts
24252
24600
  var getListBlocks_exports = {};
24253
24601
  __export(getListBlocks_exports, {
24254
- toKnownErr: () => toKnownErr88
24602
+ toKnownErr: () => toKnownErr92
24255
24603
  });
24256
- function toKnownErr88(e) {
24604
+ function toKnownErr92(e) {
24257
24605
  if (e instanceof XRPCError) {
24258
24606
  }
24259
24607
  return e;
@@ -24262,9 +24610,9 @@ function toKnownErr88(e) {
24262
24610
  // src/client/types/app/bsky/graph/getListMutes.ts
24263
24611
  var getListMutes_exports = {};
24264
24612
  __export(getListMutes_exports, {
24265
- toKnownErr: () => toKnownErr89
24613
+ toKnownErr: () => toKnownErr93
24266
24614
  });
24267
- function toKnownErr89(e) {
24615
+ function toKnownErr93(e) {
24268
24616
  if (e instanceof XRPCError) {
24269
24617
  }
24270
24618
  return e;
@@ -24273,9 +24621,9 @@ function toKnownErr89(e) {
24273
24621
  // src/client/types/app/bsky/graph/getLists.ts
24274
24622
  var getLists_exports = {};
24275
24623
  __export(getLists_exports, {
24276
- toKnownErr: () => toKnownErr90
24624
+ toKnownErr: () => toKnownErr94
24277
24625
  });
24278
- function toKnownErr90(e) {
24626
+ function toKnownErr94(e) {
24279
24627
  if (e instanceof XRPCError) {
24280
24628
  }
24281
24629
  return e;
@@ -24284,9 +24632,9 @@ function toKnownErr90(e) {
24284
24632
  // src/client/types/app/bsky/graph/getMutes.ts
24285
24633
  var getMutes_exports = {};
24286
24634
  __export(getMutes_exports, {
24287
- toKnownErr: () => toKnownErr91
24635
+ toKnownErr: () => toKnownErr95
24288
24636
  });
24289
- function toKnownErr91(e) {
24637
+ function toKnownErr95(e) {
24290
24638
  if (e instanceof XRPCError) {
24291
24639
  }
24292
24640
  return e;
@@ -24295,9 +24643,9 @@ function toKnownErr91(e) {
24295
24643
  // src/client/types/app/bsky/graph/getSuggestedFollowsByActor.ts
24296
24644
  var getSuggestedFollowsByActor_exports = {};
24297
24645
  __export(getSuggestedFollowsByActor_exports, {
24298
- toKnownErr: () => toKnownErr92
24646
+ toKnownErr: () => toKnownErr96
24299
24647
  });
24300
- function toKnownErr92(e) {
24648
+ function toKnownErr96(e) {
24301
24649
  if (e instanceof XRPCError) {
24302
24650
  }
24303
24651
  return e;
@@ -24306,9 +24654,9 @@ function toKnownErr92(e) {
24306
24654
  // src/client/types/app/bsky/graph/muteActor.ts
24307
24655
  var muteActor_exports = {};
24308
24656
  __export(muteActor_exports, {
24309
- toKnownErr: () => toKnownErr93
24657
+ toKnownErr: () => toKnownErr97
24310
24658
  });
24311
- function toKnownErr93(e) {
24659
+ function toKnownErr97(e) {
24312
24660
  if (e instanceof XRPCError) {
24313
24661
  }
24314
24662
  return e;
@@ -24317,9 +24665,9 @@ function toKnownErr93(e) {
24317
24665
  // src/client/types/app/bsky/graph/muteActorList.ts
24318
24666
  var muteActorList_exports = {};
24319
24667
  __export(muteActorList_exports, {
24320
- toKnownErr: () => toKnownErr94
24668
+ toKnownErr: () => toKnownErr98
24321
24669
  });
24322
- function toKnownErr94(e) {
24670
+ function toKnownErr98(e) {
24323
24671
  if (e instanceof XRPCError) {
24324
24672
  }
24325
24673
  return e;
@@ -24328,9 +24676,9 @@ function toKnownErr94(e) {
24328
24676
  // src/client/types/app/bsky/graph/unmuteActor.ts
24329
24677
  var unmuteActor_exports = {};
24330
24678
  __export(unmuteActor_exports, {
24331
- toKnownErr: () => toKnownErr95
24679
+ toKnownErr: () => toKnownErr99
24332
24680
  });
24333
- function toKnownErr95(e) {
24681
+ function toKnownErr99(e) {
24334
24682
  if (e instanceof XRPCError) {
24335
24683
  }
24336
24684
  return e;
@@ -24339,9 +24687,9 @@ function toKnownErr95(e) {
24339
24687
  // src/client/types/app/bsky/graph/unmuteActorList.ts
24340
24688
  var unmuteActorList_exports = {};
24341
24689
  __export(unmuteActorList_exports, {
24342
- toKnownErr: () => toKnownErr96
24690
+ toKnownErr: () => toKnownErr100
24343
24691
  });
24344
- function toKnownErr96(e) {
24692
+ function toKnownErr100(e) {
24345
24693
  if (e instanceof XRPCError) {
24346
24694
  }
24347
24695
  return e;
@@ -24350,9 +24698,9 @@ function toKnownErr96(e) {
24350
24698
  // src/client/types/app/bsky/notification/getUnreadCount.ts
24351
24699
  var getUnreadCount_exports = {};
24352
24700
  __export(getUnreadCount_exports, {
24353
- toKnownErr: () => toKnownErr97
24701
+ toKnownErr: () => toKnownErr101
24354
24702
  });
24355
- function toKnownErr97(e) {
24703
+ function toKnownErr101(e) {
24356
24704
  if (e instanceof XRPCError) {
24357
24705
  }
24358
24706
  return e;
@@ -24362,10 +24710,10 @@ function toKnownErr97(e) {
24362
24710
  var listNotifications_exports = {};
24363
24711
  __export(listNotifications_exports, {
24364
24712
  isNotification: () => isNotification,
24365
- toKnownErr: () => toKnownErr98,
24713
+ toKnownErr: () => toKnownErr102,
24366
24714
  validateNotification: () => validateNotification
24367
24715
  });
24368
- function toKnownErr98(e) {
24716
+ function toKnownErr102(e) {
24369
24717
  if (e instanceof XRPCError) {
24370
24718
  }
24371
24719
  return e;
@@ -24380,9 +24728,9 @@ function validateNotification(v) {
24380
24728
  // src/client/types/app/bsky/notification/registerPush.ts
24381
24729
  var registerPush_exports = {};
24382
24730
  __export(registerPush_exports, {
24383
- toKnownErr: () => toKnownErr99
24731
+ toKnownErr: () => toKnownErr103
24384
24732
  });
24385
- function toKnownErr99(e) {
24733
+ function toKnownErr103(e) {
24386
24734
  if (e instanceof XRPCError) {
24387
24735
  }
24388
24736
  return e;
@@ -24391,9 +24739,9 @@ function toKnownErr99(e) {
24391
24739
  // src/client/types/app/bsky/notification/updateSeen.ts
24392
24740
  var updateSeen_exports = {};
24393
24741
  __export(updateSeen_exports, {
24394
- toKnownErr: () => toKnownErr100
24742
+ toKnownErr: () => toKnownErr104
24395
24743
  });
24396
- function toKnownErr100(e) {
24744
+ function toKnownErr104(e) {
24397
24745
  if (e instanceof XRPCError) {
24398
24746
  }
24399
24747
  return e;
@@ -24402,9 +24750,9 @@ function toKnownErr100(e) {
24402
24750
  // src/client/types/app/bsky/unspecced/getPopular.ts
24403
24751
  var getPopular_exports = {};
24404
24752
  __export(getPopular_exports, {
24405
- toKnownErr: () => toKnownErr101
24753
+ toKnownErr: () => toKnownErr105
24406
24754
  });
24407
- function toKnownErr101(e) {
24755
+ function toKnownErr105(e) {
24408
24756
  if (e instanceof XRPCError) {
24409
24757
  }
24410
24758
  return e;
@@ -24413,9 +24761,9 @@ function toKnownErr101(e) {
24413
24761
  // src/client/types/app/bsky/unspecced/getPopularFeedGenerators.ts
24414
24762
  var getPopularFeedGenerators_exports = {};
24415
24763
  __export(getPopularFeedGenerators_exports, {
24416
- toKnownErr: () => toKnownErr102
24764
+ toKnownErr: () => toKnownErr106
24417
24765
  });
24418
- function toKnownErr102(e) {
24766
+ function toKnownErr106(e) {
24419
24767
  if (e instanceof XRPCError) {
24420
24768
  }
24421
24769
  return e;
@@ -24425,14 +24773,14 @@ function toKnownErr102(e) {
24425
24773
  var getTimelineSkeleton_exports = {};
24426
24774
  __export(getTimelineSkeleton_exports, {
24427
24775
  UnknownFeedError: () => UnknownFeedError3,
24428
- toKnownErr: () => toKnownErr103
24776
+ toKnownErr: () => toKnownErr107
24429
24777
  });
24430
24778
  var UnknownFeedError3 = class extends XRPCError {
24431
24779
  constructor(src2) {
24432
24780
  super(src2.status, src2.error, src2.message, src2.headers);
24433
24781
  }
24434
24782
  };
24435
- function toKnownErr103(e) {
24783
+ function toKnownErr107(e) {
24436
24784
  if (e instanceof XRPCError) {
24437
24785
  if (e.error === "UnknownFeed")
24438
24786
  return new UnknownFeedError3(e);
@@ -24444,14 +24792,14 @@ function toKnownErr103(e) {
24444
24792
  var searchActorsSkeleton_exports = {};
24445
24793
  __export(searchActorsSkeleton_exports, {
24446
24794
  BadQueryStringError: () => BadQueryStringError2,
24447
- toKnownErr: () => toKnownErr104
24795
+ toKnownErr: () => toKnownErr108
24448
24796
  });
24449
24797
  var BadQueryStringError2 = class extends XRPCError {
24450
24798
  constructor(src2) {
24451
24799
  super(src2.status, src2.error, src2.message, src2.headers);
24452
24800
  }
24453
24801
  };
24454
- function toKnownErr104(e) {
24802
+ function toKnownErr108(e) {
24455
24803
  if (e instanceof XRPCError) {
24456
24804
  if (e.error === "BadQueryString")
24457
24805
  return new BadQueryStringError2(e);
@@ -24463,14 +24811,14 @@ function toKnownErr104(e) {
24463
24811
  var searchPostsSkeleton_exports = {};
24464
24812
  __export(searchPostsSkeleton_exports, {
24465
24813
  BadQueryStringError: () => BadQueryStringError3,
24466
- toKnownErr: () => toKnownErr105
24814
+ toKnownErr: () => toKnownErr109
24467
24815
  });
24468
24816
  var BadQueryStringError3 = class extends XRPCError {
24469
24817
  constructor(src2) {
24470
24818
  super(src2.status, src2.error, src2.message, src2.headers);
24471
24819
  }
24472
24820
  };
24473
- function toKnownErr105(e) {
24821
+ function toKnownErr109(e) {
24474
24822
  if (e instanceof XRPCError) {
24475
24823
  if (e.error === "BadQueryString")
24476
24824
  return new BadQueryStringError3(e);
@@ -24485,6 +24833,7 @@ __export(defs_exports, {
24485
24833
  ESCALATE: () => ESCALATE,
24486
24834
  FLAG: () => FLAG,
24487
24835
  TAKEDOWN: () => TAKEDOWN,
24836
+ isAccountView: () => isAccountView,
24488
24837
  isActionReversal: () => isActionReversal,
24489
24838
  isActionView: () => isActionView,
24490
24839
  isActionViewCurrent: () => isActionViewCurrent,
@@ -24496,13 +24845,16 @@ __export(defs_exports, {
24496
24845
  isRecordView: () => isRecordView,
24497
24846
  isRecordViewDetail: () => isRecordViewDetail,
24498
24847
  isRecordViewNotFound: () => isRecordViewNotFound,
24848
+ isRepoBlobRef: () => isRepoBlobRef,
24499
24849
  isRepoRef: () => isRepoRef,
24500
24850
  isRepoView: () => isRepoView,
24501
24851
  isRepoViewDetail: () => isRepoViewDetail,
24502
24852
  isRepoViewNotFound: () => isRepoViewNotFound,
24503
24853
  isReportView: () => isReportView,
24504
24854
  isReportViewDetail: () => isReportViewDetail,
24855
+ isStatusAttr: () => isStatusAttr,
24505
24856
  isVideoDetails: () => isVideoDetails,
24857
+ validateAccountView: () => validateAccountView,
24506
24858
  validateActionReversal: () => validateActionReversal,
24507
24859
  validateActionView: () => validateActionView,
24508
24860
  validateActionViewCurrent: () => validateActionViewCurrent,
@@ -24514,14 +24866,22 @@ __export(defs_exports, {
24514
24866
  validateRecordView: () => validateRecordView,
24515
24867
  validateRecordViewDetail: () => validateRecordViewDetail,
24516
24868
  validateRecordViewNotFound: () => validateRecordViewNotFound,
24869
+ validateRepoBlobRef: () => validateRepoBlobRef,
24517
24870
  validateRepoRef: () => validateRepoRef,
24518
24871
  validateRepoView: () => validateRepoView,
24519
24872
  validateRepoViewDetail: () => validateRepoViewDetail,
24520
24873
  validateRepoViewNotFound: () => validateRepoViewNotFound,
24521
24874
  validateReportView: () => validateReportView,
24522
24875
  validateReportViewDetail: () => validateReportViewDetail,
24876
+ validateStatusAttr: () => validateStatusAttr,
24523
24877
  validateVideoDetails: () => validateVideoDetails
24524
24878
  });
24879
+ function isStatusAttr(v) {
24880
+ return isObj2(v) && hasProp2(v, "$type") && v.$type === "com.atproto.admin.defs#statusAttr";
24881
+ }
24882
+ function validateStatusAttr(v) {
24883
+ return lexicons.validate("com.atproto.admin.defs#statusAttr", v);
24884
+ }
24525
24885
  function isActionView(v) {
24526
24886
  return isObj2(v) && hasProp2(v, "$type") && v.$type === "com.atproto.admin.defs#actionView";
24527
24887
  }
@@ -24574,6 +24934,12 @@ function isRepoViewDetail(v) {
24574
24934
  function validateRepoViewDetail(v) {
24575
24935
  return lexicons.validate("com.atproto.admin.defs#repoViewDetail", v);
24576
24936
  }
24937
+ function isAccountView(v) {
24938
+ return isObj2(v) && hasProp2(v, "$type") && v.$type === "com.atproto.admin.defs#accountView";
24939
+ }
24940
+ function validateAccountView(v) {
24941
+ return lexicons.validate("com.atproto.admin.defs#accountView", v);
24942
+ }
24577
24943
  function isRepoViewNotFound(v) {
24578
24944
  return isObj2(v) && hasProp2(v, "$type") && v.$type === "com.atproto.admin.defs#repoViewNotFound";
24579
24945
  }
@@ -24586,6 +24952,12 @@ function isRepoRef(v) {
24586
24952
  function validateRepoRef(v) {
24587
24953
  return lexicons.validate("com.atproto.admin.defs#repoRef", v);
24588
24954
  }
24955
+ function isRepoBlobRef(v) {
24956
+ return isObj2(v) && hasProp2(v, "$type") && v.$type === "com.atproto.admin.defs#repoBlobRef";
24957
+ }
24958
+ function validateRepoBlobRef(v) {
24959
+ return lexicons.validate("com.atproto.admin.defs#repoBlobRef", v);
24960
+ }
24589
24961
  function isRecordView(v) {
24590
24962
  return isObj2(v) && hasProp2(v, "$type") && v.$type === "com.atproto.admin.defs#recordView";
24591
24963
  }
@@ -25485,26 +25857,26 @@ var AtpServiceClient = class {
25485
25857
  }
25486
25858
  };
25487
25859
  var ComNS = class {
25488
- constructor(service) {
25489
- this._service = service;
25490
- this.atproto = new AtprotoNS(service);
25860
+ constructor(service2) {
25861
+ this._service = service2;
25862
+ this.atproto = new AtprotoNS(service2);
25491
25863
  }
25492
25864
  };
25493
25865
  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);
25866
+ constructor(service2) {
25867
+ this._service = service2;
25868
+ this.admin = new AdminNS(service2);
25869
+ this.identity = new IdentityNS(service2);
25870
+ this.label = new LabelNS(service2);
25871
+ this.moderation = new ModerationNS(service2);
25872
+ this.repo = new RepoNS(service2);
25873
+ this.server = new ServerNS(service2);
25874
+ this.sync = new SyncNS(service2);
25503
25875
  }
25504
25876
  };
25505
25877
  var AdminNS = class {
25506
- constructor(service) {
25507
- this._service = service;
25878
+ constructor(service2) {
25879
+ this._service = service2;
25508
25880
  }
25509
25881
  disableAccountInvites(data, opts) {
25510
25882
  return this._service.xrpc.call("com.atproto.admin.disableAccountInvites", opts?.qp, data, opts).catch((e) => {
@@ -25521,384 +25893,404 @@ var AdminNS = class {
25521
25893
  throw toKnownErr3(e);
25522
25894
  });
25523
25895
  }
25896
+ getAccountInfo(params2, opts) {
25897
+ return this._service.xrpc.call("com.atproto.admin.getAccountInfo", params2, void 0, opts).catch((e) => {
25898
+ throw toKnownErr4(e);
25899
+ });
25900
+ }
25524
25901
  getInviteCodes(params2, opts) {
25525
25902
  return this._service.xrpc.call("com.atproto.admin.getInviteCodes", params2, void 0, opts).catch((e) => {
25526
- throw toKnownErr4(e);
25903
+ throw toKnownErr5(e);
25527
25904
  });
25528
25905
  }
25529
25906
  getModerationAction(params2, opts) {
25530
25907
  return this._service.xrpc.call("com.atproto.admin.getModerationAction", params2, void 0, opts).catch((e) => {
25531
- throw toKnownErr5(e);
25908
+ throw toKnownErr6(e);
25532
25909
  });
25533
25910
  }
25534
25911
  getModerationActions(params2, opts) {
25535
25912
  return this._service.xrpc.call("com.atproto.admin.getModerationActions", params2, void 0, opts).catch((e) => {
25536
- throw toKnownErr6(e);
25913
+ throw toKnownErr7(e);
25537
25914
  });
25538
25915
  }
25539
25916
  getModerationReport(params2, opts) {
25540
25917
  return this._service.xrpc.call("com.atproto.admin.getModerationReport", params2, void 0, opts).catch((e) => {
25541
- throw toKnownErr7(e);
25918
+ throw toKnownErr8(e);
25542
25919
  });
25543
25920
  }
25544
25921
  getModerationReports(params2, opts) {
25545
25922
  return this._service.xrpc.call("com.atproto.admin.getModerationReports", params2, void 0, opts).catch((e) => {
25546
- throw toKnownErr8(e);
25923
+ throw toKnownErr9(e);
25547
25924
  });
25548
25925
  }
25549
25926
  getRecord(params2, opts) {
25550
25927
  return this._service.xrpc.call("com.atproto.admin.getRecord", params2, void 0, opts).catch((e) => {
25551
- throw toKnownErr9(e);
25928
+ throw toKnownErr10(e);
25552
25929
  });
25553
25930
  }
25554
25931
  getRepo(params2, opts) {
25555
25932
  return this._service.xrpc.call("com.atproto.admin.getRepo", params2, void 0, opts).catch((e) => {
25556
- throw toKnownErr10(e);
25933
+ throw toKnownErr11(e);
25934
+ });
25935
+ }
25936
+ getSubjectStatus(params2, opts) {
25937
+ return this._service.xrpc.call("com.atproto.admin.getSubjectStatus", params2, void 0, opts).catch((e) => {
25938
+ throw toKnownErr12(e);
25557
25939
  });
25558
25940
  }
25559
25941
  resolveModerationReports(data, opts) {
25560
25942
  return this._service.xrpc.call("com.atproto.admin.resolveModerationReports", opts?.qp, data, opts).catch((e) => {
25561
- throw toKnownErr11(e);
25943
+ throw toKnownErr13(e);
25562
25944
  });
25563
25945
  }
25564
25946
  reverseModerationAction(data, opts) {
25565
25947
  return this._service.xrpc.call("com.atproto.admin.reverseModerationAction", opts?.qp, data, opts).catch((e) => {
25566
- throw toKnownErr12(e);
25948
+ throw toKnownErr14(e);
25567
25949
  });
25568
25950
  }
25569
25951
  searchRepos(params2, opts) {
25570
25952
  return this._service.xrpc.call("com.atproto.admin.searchRepos", params2, void 0, opts).catch((e) => {
25571
- throw toKnownErr13(e);
25953
+ throw toKnownErr15(e);
25572
25954
  });
25573
25955
  }
25574
25956
  sendEmail(data, opts) {
25575
25957
  return this._service.xrpc.call("com.atproto.admin.sendEmail", opts?.qp, data, opts).catch((e) => {
25576
- throw toKnownErr14(e);
25958
+ throw toKnownErr16(e);
25577
25959
  });
25578
25960
  }
25579
25961
  takeModerationAction(data, opts) {
25580
25962
  return this._service.xrpc.call("com.atproto.admin.takeModerationAction", opts?.qp, data, opts).catch((e) => {
25581
- throw toKnownErr15(e);
25963
+ throw toKnownErr17(e);
25582
25964
  });
25583
25965
  }
25584
25966
  updateAccountEmail(data, opts) {
25585
25967
  return this._service.xrpc.call("com.atproto.admin.updateAccountEmail", opts?.qp, data, opts).catch((e) => {
25586
- throw toKnownErr16(e);
25968
+ throw toKnownErr18(e);
25587
25969
  });
25588
25970
  }
25589
25971
  updateAccountHandle(data, opts) {
25590
25972
  return this._service.xrpc.call("com.atproto.admin.updateAccountHandle", opts?.qp, data, opts).catch((e) => {
25591
- throw toKnownErr17(e);
25973
+ throw toKnownErr19(e);
25974
+ });
25975
+ }
25976
+ updateSubjectStatus(data, opts) {
25977
+ return this._service.xrpc.call("com.atproto.admin.updateSubjectStatus", opts?.qp, data, opts).catch((e) => {
25978
+ throw toKnownErr20(e);
25592
25979
  });
25593
25980
  }
25594
25981
  };
25595
25982
  var IdentityNS = class {
25596
- constructor(service) {
25597
- this._service = service;
25983
+ constructor(service2) {
25984
+ this._service = service2;
25598
25985
  }
25599
25986
  resolveHandle(params2, opts) {
25600
25987
  return this._service.xrpc.call("com.atproto.identity.resolveHandle", params2, void 0, opts).catch((e) => {
25601
- throw toKnownErr18(e);
25988
+ throw toKnownErr21(e);
25602
25989
  });
25603
25990
  }
25604
25991
  updateHandle(data, opts) {
25605
25992
  return this._service.xrpc.call("com.atproto.identity.updateHandle", opts?.qp, data, opts).catch((e) => {
25606
- throw toKnownErr19(e);
25993
+ throw toKnownErr22(e);
25607
25994
  });
25608
25995
  }
25609
25996
  };
25610
25997
  var LabelNS = class {
25611
- constructor(service) {
25612
- this._service = service;
25998
+ constructor(service2) {
25999
+ this._service = service2;
25613
26000
  }
25614
26001
  queryLabels(params2, opts) {
25615
26002
  return this._service.xrpc.call("com.atproto.label.queryLabels", params2, void 0, opts).catch((e) => {
25616
- throw toKnownErr20(e);
26003
+ throw toKnownErr23(e);
25617
26004
  });
25618
26005
  }
25619
26006
  };
25620
26007
  var ModerationNS = class {
25621
- constructor(service) {
25622
- this._service = service;
26008
+ constructor(service2) {
26009
+ this._service = service2;
25623
26010
  }
25624
26011
  createReport(data, opts) {
25625
26012
  return this._service.xrpc.call("com.atproto.moderation.createReport", opts?.qp, data, opts).catch((e) => {
25626
- throw toKnownErr21(e);
26013
+ throw toKnownErr24(e);
25627
26014
  });
25628
26015
  }
25629
26016
  };
25630
26017
  var RepoNS = class {
25631
- constructor(service) {
25632
- this._service = service;
26018
+ constructor(service2) {
26019
+ this._service = service2;
25633
26020
  }
25634
26021
  applyWrites(data, opts) {
25635
26022
  return this._service.xrpc.call("com.atproto.repo.applyWrites", opts?.qp, data, opts).catch((e) => {
25636
- throw toKnownErr22(e);
26023
+ throw toKnownErr25(e);
25637
26024
  });
25638
26025
  }
25639
26026
  createRecord(data, opts) {
25640
26027
  return this._service.xrpc.call("com.atproto.repo.createRecord", opts?.qp, data, opts).catch((e) => {
25641
- throw toKnownErr23(e);
26028
+ throw toKnownErr26(e);
25642
26029
  });
25643
26030
  }
25644
26031
  deleteRecord(data, opts) {
25645
26032
  return this._service.xrpc.call("com.atproto.repo.deleteRecord", opts?.qp, data, opts).catch((e) => {
25646
- throw toKnownErr24(e);
26033
+ throw toKnownErr27(e);
25647
26034
  });
25648
26035
  }
25649
26036
  describeRepo(params2, opts) {
25650
26037
  return this._service.xrpc.call("com.atproto.repo.describeRepo", params2, void 0, opts).catch((e) => {
25651
- throw toKnownErr25(e);
26038
+ throw toKnownErr28(e);
25652
26039
  });
25653
26040
  }
25654
26041
  getRecord(params2, opts) {
25655
26042
  return this._service.xrpc.call("com.atproto.repo.getRecord", params2, void 0, opts).catch((e) => {
25656
- throw toKnownErr26(e);
26043
+ throw toKnownErr29(e);
25657
26044
  });
25658
26045
  }
25659
26046
  listRecords(params2, opts) {
25660
26047
  return this._service.xrpc.call("com.atproto.repo.listRecords", params2, void 0, opts).catch((e) => {
25661
- throw toKnownErr27(e);
26048
+ throw toKnownErr30(e);
25662
26049
  });
25663
26050
  }
25664
26051
  putRecord(data, opts) {
25665
26052
  return this._service.xrpc.call("com.atproto.repo.putRecord", opts?.qp, data, opts).catch((e) => {
25666
- throw toKnownErr28(e);
26053
+ throw toKnownErr31(e);
25667
26054
  });
25668
26055
  }
25669
26056
  uploadBlob(data, opts) {
25670
26057
  return this._service.xrpc.call("com.atproto.repo.uploadBlob", opts?.qp, data, opts).catch((e) => {
25671
- throw toKnownErr29(e);
26058
+ throw toKnownErr32(e);
25672
26059
  });
25673
26060
  }
25674
26061
  };
25675
26062
  var ServerNS = class {
25676
- constructor(service) {
25677
- this._service = service;
26063
+ constructor(service2) {
26064
+ this._service = service2;
25678
26065
  }
25679
26066
  confirmEmail(data, opts) {
25680
26067
  return this._service.xrpc.call("com.atproto.server.confirmEmail", opts?.qp, data, opts).catch((e) => {
25681
- throw toKnownErr30(e);
26068
+ throw toKnownErr33(e);
25682
26069
  });
25683
26070
  }
25684
26071
  createAccount(data, opts) {
25685
26072
  return this._service.xrpc.call("com.atproto.server.createAccount", opts?.qp, data, opts).catch((e) => {
25686
- throw toKnownErr31(e);
26073
+ throw toKnownErr34(e);
25687
26074
  });
25688
26075
  }
25689
26076
  createAppPassword(data, opts) {
25690
26077
  return this._service.xrpc.call("com.atproto.server.createAppPassword", opts?.qp, data, opts).catch((e) => {
25691
- throw toKnownErr32(e);
26078
+ throw toKnownErr35(e);
25692
26079
  });
25693
26080
  }
25694
26081
  createInviteCode(data, opts) {
25695
26082
  return this._service.xrpc.call("com.atproto.server.createInviteCode", opts?.qp, data, opts).catch((e) => {
25696
- throw toKnownErr33(e);
26083
+ throw toKnownErr36(e);
25697
26084
  });
25698
26085
  }
25699
26086
  createInviteCodes(data, opts) {
25700
26087
  return this._service.xrpc.call("com.atproto.server.createInviteCodes", opts?.qp, data, opts).catch((e) => {
25701
- throw toKnownErr34(e);
26088
+ throw toKnownErr37(e);
25702
26089
  });
25703
26090
  }
25704
26091
  createSession(data, opts) {
25705
26092
  return this._service.xrpc.call("com.atproto.server.createSession", opts?.qp, data, opts).catch((e) => {
25706
- throw toKnownErr35(e);
26093
+ throw toKnownErr38(e);
25707
26094
  });
25708
26095
  }
25709
26096
  deleteAccount(data, opts) {
25710
26097
  return this._service.xrpc.call("com.atproto.server.deleteAccount", opts?.qp, data, opts).catch((e) => {
25711
- throw toKnownErr36(e);
26098
+ throw toKnownErr39(e);
25712
26099
  });
25713
26100
  }
25714
26101
  deleteSession(data, opts) {
25715
26102
  return this._service.xrpc.call("com.atproto.server.deleteSession", opts?.qp, data, opts).catch((e) => {
25716
- throw toKnownErr37(e);
26103
+ throw toKnownErr40(e);
25717
26104
  });
25718
26105
  }
25719
26106
  describeServer(params2, opts) {
25720
26107
  return this._service.xrpc.call("com.atproto.server.describeServer", params2, void 0, opts).catch((e) => {
25721
- throw toKnownErr38(e);
26108
+ throw toKnownErr41(e);
25722
26109
  });
25723
26110
  }
25724
26111
  getAccountInviteCodes(params2, opts) {
25725
26112
  return this._service.xrpc.call("com.atproto.server.getAccountInviteCodes", params2, void 0, opts).catch((e) => {
25726
- throw toKnownErr39(e);
26113
+ throw toKnownErr42(e);
25727
26114
  });
25728
26115
  }
25729
26116
  getSession(params2, opts) {
25730
26117
  return this._service.xrpc.call("com.atproto.server.getSession", params2, void 0, opts).catch((e) => {
25731
- throw toKnownErr40(e);
26118
+ throw toKnownErr43(e);
25732
26119
  });
25733
26120
  }
25734
26121
  listAppPasswords(params2, opts) {
25735
26122
  return this._service.xrpc.call("com.atproto.server.listAppPasswords", params2, void 0, opts).catch((e) => {
25736
- throw toKnownErr41(e);
26123
+ throw toKnownErr44(e);
25737
26124
  });
25738
26125
  }
25739
26126
  refreshSession(data, opts) {
25740
26127
  return this._service.xrpc.call("com.atproto.server.refreshSession", opts?.qp, data, opts).catch((e) => {
25741
- throw toKnownErr42(e);
26128
+ throw toKnownErr45(e);
25742
26129
  });
25743
26130
  }
25744
26131
  requestAccountDelete(data, opts) {
25745
26132
  return this._service.xrpc.call("com.atproto.server.requestAccountDelete", opts?.qp, data, opts).catch((e) => {
25746
- throw toKnownErr43(e);
26133
+ throw toKnownErr46(e);
25747
26134
  });
25748
26135
  }
25749
26136
  requestEmailConfirmation(data, opts) {
25750
26137
  return this._service.xrpc.call("com.atproto.server.requestEmailConfirmation", opts?.qp, data, opts).catch((e) => {
25751
- throw toKnownErr44(e);
26138
+ throw toKnownErr47(e);
25752
26139
  });
25753
26140
  }
25754
26141
  requestEmailUpdate(data, opts) {
25755
26142
  return this._service.xrpc.call("com.atproto.server.requestEmailUpdate", opts?.qp, data, opts).catch((e) => {
25756
- throw toKnownErr45(e);
26143
+ throw toKnownErr48(e);
25757
26144
  });
25758
26145
  }
25759
26146
  requestPasswordReset(data, opts) {
25760
26147
  return this._service.xrpc.call("com.atproto.server.requestPasswordReset", opts?.qp, data, opts).catch((e) => {
25761
- throw toKnownErr46(e);
26148
+ throw toKnownErr49(e);
26149
+ });
26150
+ }
26151
+ reserveSigningKey(data, opts) {
26152
+ return this._service.xrpc.call("com.atproto.server.reserveSigningKey", opts?.qp, data, opts).catch((e) => {
26153
+ throw toKnownErr50(e);
25762
26154
  });
25763
26155
  }
25764
26156
  resetPassword(data, opts) {
25765
26157
  return this._service.xrpc.call("com.atproto.server.resetPassword", opts?.qp, data, opts).catch((e) => {
25766
- throw toKnownErr47(e);
26158
+ throw toKnownErr51(e);
25767
26159
  });
25768
26160
  }
25769
26161
  revokeAppPassword(data, opts) {
25770
26162
  return this._service.xrpc.call("com.atproto.server.revokeAppPassword", opts?.qp, data, opts).catch((e) => {
25771
- throw toKnownErr48(e);
26163
+ throw toKnownErr52(e);
25772
26164
  });
25773
26165
  }
25774
26166
  updateEmail(data, opts) {
25775
26167
  return this._service.xrpc.call("com.atproto.server.updateEmail", opts?.qp, data, opts).catch((e) => {
25776
- throw toKnownErr49(e);
26168
+ throw toKnownErr53(e);
25777
26169
  });
25778
26170
  }
25779
26171
  };
25780
26172
  var SyncNS = class {
25781
- constructor(service) {
25782
- this._service = service;
26173
+ constructor(service2) {
26174
+ this._service = service2;
25783
26175
  }
25784
26176
  getBlob(params2, opts) {
25785
26177
  return this._service.xrpc.call("com.atproto.sync.getBlob", params2, void 0, opts).catch((e) => {
25786
- throw toKnownErr50(e);
26178
+ throw toKnownErr54(e);
25787
26179
  });
25788
26180
  }
25789
26181
  getBlocks(params2, opts) {
25790
26182
  return this._service.xrpc.call("com.atproto.sync.getBlocks", params2, void 0, opts).catch((e) => {
25791
- throw toKnownErr51(e);
26183
+ throw toKnownErr55(e);
25792
26184
  });
25793
26185
  }
25794
26186
  getCheckout(params2, opts) {
25795
26187
  return this._service.xrpc.call("com.atproto.sync.getCheckout", params2, void 0, opts).catch((e) => {
25796
- throw toKnownErr52(e);
26188
+ throw toKnownErr56(e);
25797
26189
  });
25798
26190
  }
25799
26191
  getHead(params2, opts) {
25800
26192
  return this._service.xrpc.call("com.atproto.sync.getHead", params2, void 0, opts).catch((e) => {
25801
- throw toKnownErr53(e);
26193
+ throw toKnownErr57(e);
25802
26194
  });
25803
26195
  }
25804
26196
  getLatestCommit(params2, opts) {
25805
26197
  return this._service.xrpc.call("com.atproto.sync.getLatestCommit", params2, void 0, opts).catch((e) => {
25806
- throw toKnownErr54(e);
26198
+ throw toKnownErr58(e);
25807
26199
  });
25808
26200
  }
25809
26201
  getRecord(params2, opts) {
25810
26202
  return this._service.xrpc.call("com.atproto.sync.getRecord", params2, void 0, opts).catch((e) => {
25811
- throw toKnownErr55(e);
26203
+ throw toKnownErr59(e);
25812
26204
  });
25813
26205
  }
25814
26206
  getRepo(params2, opts) {
25815
26207
  return this._service.xrpc.call("com.atproto.sync.getRepo", params2, void 0, opts).catch((e) => {
25816
- throw toKnownErr56(e);
26208
+ throw toKnownErr60(e);
25817
26209
  });
25818
26210
  }
25819
26211
  listBlobs(params2, opts) {
25820
26212
  return this._service.xrpc.call("com.atproto.sync.listBlobs", params2, void 0, opts).catch((e) => {
25821
- throw toKnownErr57(e);
26213
+ throw toKnownErr61(e);
25822
26214
  });
25823
26215
  }
25824
26216
  listRepos(params2, opts) {
25825
26217
  return this._service.xrpc.call("com.atproto.sync.listRepos", params2, void 0, opts).catch((e) => {
25826
- throw toKnownErr58(e);
26218
+ throw toKnownErr62(e);
25827
26219
  });
25828
26220
  }
25829
26221
  notifyOfUpdate(data, opts) {
25830
26222
  return this._service.xrpc.call("com.atproto.sync.notifyOfUpdate", opts?.qp, data, opts).catch((e) => {
25831
- throw toKnownErr59(e);
26223
+ throw toKnownErr63(e);
25832
26224
  });
25833
26225
  }
25834
26226
  requestCrawl(data, opts) {
25835
26227
  return this._service.xrpc.call("com.atproto.sync.requestCrawl", opts?.qp, data, opts).catch((e) => {
25836
- throw toKnownErr60(e);
26228
+ throw toKnownErr64(e);
25837
26229
  });
25838
26230
  }
25839
26231
  };
25840
26232
  var AppNS = class {
25841
- constructor(service) {
25842
- this._service = service;
25843
- this.bsky = new BskyNS(service);
26233
+ constructor(service2) {
26234
+ this._service = service2;
26235
+ this.bsky = new BskyNS(service2);
25844
26236
  }
25845
26237
  };
25846
26238
  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);
26239
+ constructor(service2) {
26240
+ this._service = service2;
26241
+ this.actor = new ActorNS(service2);
26242
+ this.embed = new EmbedNS(service2);
26243
+ this.feed = new FeedNS(service2);
26244
+ this.graph = new GraphNS(service2);
26245
+ this.notification = new NotificationNS(service2);
26246
+ this.richtext = new RichtextNS(service2);
26247
+ this.unspecced = new UnspeccedNS(service2);
25856
26248
  }
25857
26249
  };
25858
26250
  var ActorNS = class {
25859
- constructor(service) {
25860
- this._service = service;
25861
- this.profile = new ProfileRecord(service);
26251
+ constructor(service2) {
26252
+ this._service = service2;
26253
+ this.profile = new ProfileRecord(service2);
25862
26254
  }
25863
26255
  getPreferences(params2, opts) {
25864
26256
  return this._service.xrpc.call("app.bsky.actor.getPreferences", params2, void 0, opts).catch((e) => {
25865
- throw toKnownErr61(e);
26257
+ throw toKnownErr65(e);
25866
26258
  });
25867
26259
  }
25868
26260
  getProfile(params2, opts) {
25869
26261
  return this._service.xrpc.call("app.bsky.actor.getProfile", params2, void 0, opts).catch((e) => {
25870
- throw toKnownErr62(e);
26262
+ throw toKnownErr66(e);
25871
26263
  });
25872
26264
  }
25873
26265
  getProfiles(params2, opts) {
25874
26266
  return this._service.xrpc.call("app.bsky.actor.getProfiles", params2, void 0, opts).catch((e) => {
25875
- throw toKnownErr63(e);
26267
+ throw toKnownErr67(e);
25876
26268
  });
25877
26269
  }
25878
26270
  getSuggestions(params2, opts) {
25879
26271
  return this._service.xrpc.call("app.bsky.actor.getSuggestions", params2, void 0, opts).catch((e) => {
25880
- throw toKnownErr64(e);
26272
+ throw toKnownErr68(e);
25881
26273
  });
25882
26274
  }
25883
26275
  putPreferences(data, opts) {
25884
26276
  return this._service.xrpc.call("app.bsky.actor.putPreferences", opts?.qp, data, opts).catch((e) => {
25885
- throw toKnownErr65(e);
26277
+ throw toKnownErr69(e);
25886
26278
  });
25887
26279
  }
25888
26280
  searchActors(params2, opts) {
25889
26281
  return this._service.xrpc.call("app.bsky.actor.searchActors", params2, void 0, opts).catch((e) => {
25890
- throw toKnownErr66(e);
26282
+ throw toKnownErr70(e);
25891
26283
  });
25892
26284
  }
25893
26285
  searchActorsTypeahead(params2, opts) {
25894
26286
  return this._service.xrpc.call("app.bsky.actor.searchActorsTypeahead", params2, void 0, opts).catch((e) => {
25895
- throw toKnownErr67(e);
26287
+ throw toKnownErr71(e);
25896
26288
  });
25897
26289
  }
25898
26290
  };
25899
26291
  var ProfileRecord = class {
25900
- constructor(service) {
25901
- this._service = service;
26292
+ constructor(service2) {
26293
+ this._service = service2;
25902
26294
  }
25903
26295
  async list(params2) {
25904
26296
  const res = await this._service.xrpc.call("com.atproto.repo.listRecords", {
@@ -25924,103 +26316,103 @@ var ProfileRecord = class {
25924
26316
  }
25925
26317
  };
25926
26318
  var EmbedNS = class {
25927
- constructor(service) {
25928
- this._service = service;
26319
+ constructor(service2) {
26320
+ this._service = service2;
25929
26321
  }
25930
26322
  };
25931
26323
  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);
26324
+ constructor(service2) {
26325
+ this._service = service2;
26326
+ this.generator = new GeneratorRecord(service2);
26327
+ this.like = new LikeRecord(service2);
26328
+ this.post = new PostRecord(service2);
26329
+ this.repost = new RepostRecord(service2);
26330
+ this.threadgate = new ThreadgateRecord(service2);
25939
26331
  }
25940
26332
  describeFeedGenerator(params2, opts) {
25941
26333
  return this._service.xrpc.call("app.bsky.feed.describeFeedGenerator", params2, void 0, opts).catch((e) => {
25942
- throw toKnownErr68(e);
26334
+ throw toKnownErr72(e);
25943
26335
  });
25944
26336
  }
25945
26337
  getActorFeeds(params2, opts) {
25946
26338
  return this._service.xrpc.call("app.bsky.feed.getActorFeeds", params2, void 0, opts).catch((e) => {
25947
- throw toKnownErr69(e);
26339
+ throw toKnownErr73(e);
25948
26340
  });
25949
26341
  }
25950
26342
  getActorLikes(params2, opts) {
25951
26343
  return this._service.xrpc.call("app.bsky.feed.getActorLikes", params2, void 0, opts).catch((e) => {
25952
- throw toKnownErr70(e);
26344
+ throw toKnownErr74(e);
25953
26345
  });
25954
26346
  }
25955
26347
  getAuthorFeed(params2, opts) {
25956
26348
  return this._service.xrpc.call("app.bsky.feed.getAuthorFeed", params2, void 0, opts).catch((e) => {
25957
- throw toKnownErr71(e);
26349
+ throw toKnownErr75(e);
25958
26350
  });
25959
26351
  }
25960
26352
  getFeed(params2, opts) {
25961
26353
  return this._service.xrpc.call("app.bsky.feed.getFeed", params2, void 0, opts).catch((e) => {
25962
- throw toKnownErr72(e);
26354
+ throw toKnownErr76(e);
25963
26355
  });
25964
26356
  }
25965
26357
  getFeedGenerator(params2, opts) {
25966
26358
  return this._service.xrpc.call("app.bsky.feed.getFeedGenerator", params2, void 0, opts).catch((e) => {
25967
- throw toKnownErr73(e);
26359
+ throw toKnownErr77(e);
25968
26360
  });
25969
26361
  }
25970
26362
  getFeedGenerators(params2, opts) {
25971
26363
  return this._service.xrpc.call("app.bsky.feed.getFeedGenerators", params2, void 0, opts).catch((e) => {
25972
- throw toKnownErr74(e);
26364
+ throw toKnownErr78(e);
25973
26365
  });
25974
26366
  }
25975
26367
  getFeedSkeleton(params2, opts) {
25976
26368
  return this._service.xrpc.call("app.bsky.feed.getFeedSkeleton", params2, void 0, opts).catch((e) => {
25977
- throw toKnownErr75(e);
26369
+ throw toKnownErr79(e);
25978
26370
  });
25979
26371
  }
25980
26372
  getLikes(params2, opts) {
25981
26373
  return this._service.xrpc.call("app.bsky.feed.getLikes", params2, void 0, opts).catch((e) => {
25982
- throw toKnownErr76(e);
26374
+ throw toKnownErr80(e);
25983
26375
  });
25984
26376
  }
25985
26377
  getListFeed(params2, opts) {
25986
26378
  return this._service.xrpc.call("app.bsky.feed.getListFeed", params2, void 0, opts).catch((e) => {
25987
- throw toKnownErr77(e);
26379
+ throw toKnownErr81(e);
25988
26380
  });
25989
26381
  }
25990
26382
  getPostThread(params2, opts) {
25991
26383
  return this._service.xrpc.call("app.bsky.feed.getPostThread", params2, void 0, opts).catch((e) => {
25992
- throw toKnownErr78(e);
26384
+ throw toKnownErr82(e);
25993
26385
  });
25994
26386
  }
25995
26387
  getPosts(params2, opts) {
25996
26388
  return this._service.xrpc.call("app.bsky.feed.getPosts", params2, void 0, opts).catch((e) => {
25997
- throw toKnownErr79(e);
26389
+ throw toKnownErr83(e);
25998
26390
  });
25999
26391
  }
26000
26392
  getRepostedBy(params2, opts) {
26001
26393
  return this._service.xrpc.call("app.bsky.feed.getRepostedBy", params2, void 0, opts).catch((e) => {
26002
- throw toKnownErr80(e);
26394
+ throw toKnownErr84(e);
26003
26395
  });
26004
26396
  }
26005
26397
  getSuggestedFeeds(params2, opts) {
26006
26398
  return this._service.xrpc.call("app.bsky.feed.getSuggestedFeeds", params2, void 0, opts).catch((e) => {
26007
- throw toKnownErr81(e);
26399
+ throw toKnownErr85(e);
26008
26400
  });
26009
26401
  }
26010
26402
  getTimeline(params2, opts) {
26011
26403
  return this._service.xrpc.call("app.bsky.feed.getTimeline", params2, void 0, opts).catch((e) => {
26012
- throw toKnownErr82(e);
26404
+ throw toKnownErr86(e);
26013
26405
  });
26014
26406
  }
26015
26407
  searchPosts(params2, opts) {
26016
26408
  return this._service.xrpc.call("app.bsky.feed.searchPosts", params2, void 0, opts).catch((e) => {
26017
- throw toKnownErr83(e);
26409
+ throw toKnownErr87(e);
26018
26410
  });
26019
26411
  }
26020
26412
  };
26021
26413
  var GeneratorRecord = class {
26022
- constructor(service) {
26023
- this._service = service;
26414
+ constructor(service2) {
26415
+ this._service = service2;
26024
26416
  }
26025
26417
  async list(params2) {
26026
26418
  const res = await this._service.xrpc.call("com.atproto.repo.listRecords", {
@@ -26046,8 +26438,8 @@ var GeneratorRecord = class {
26046
26438
  }
26047
26439
  };
26048
26440
  var LikeRecord = class {
26049
- constructor(service) {
26050
- this._service = service;
26441
+ constructor(service2) {
26442
+ this._service = service2;
26051
26443
  }
26052
26444
  async list(params2) {
26053
26445
  const res = await this._service.xrpc.call("com.atproto.repo.listRecords", {
@@ -26073,8 +26465,8 @@ var LikeRecord = class {
26073
26465
  }
26074
26466
  };
26075
26467
  var PostRecord = class {
26076
- constructor(service) {
26077
- this._service = service;
26468
+ constructor(service2) {
26469
+ this._service = service2;
26078
26470
  }
26079
26471
  async list(params2) {
26080
26472
  const res = await this._service.xrpc.call("com.atproto.repo.listRecords", {
@@ -26100,8 +26492,8 @@ var PostRecord = class {
26100
26492
  }
26101
26493
  };
26102
26494
  var RepostRecord = class {
26103
- constructor(service) {
26104
- this._service = service;
26495
+ constructor(service2) {
26496
+ this._service = service2;
26105
26497
  }
26106
26498
  async list(params2) {
26107
26499
  const res = await this._service.xrpc.call("com.atproto.repo.listRecords", {
@@ -26127,8 +26519,8 @@ var RepostRecord = class {
26127
26519
  }
26128
26520
  };
26129
26521
  var ThreadgateRecord = class {
26130
- constructor(service) {
26131
- this._service = service;
26522
+ constructor(service2) {
26523
+ this._service = service2;
26132
26524
  }
26133
26525
  async list(params2) {
26134
26526
  const res = await this._service.xrpc.call("com.atproto.repo.listRecords", {
@@ -26154,83 +26546,83 @@ var ThreadgateRecord = class {
26154
26546
  }
26155
26547
  };
26156
26548
  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);
26549
+ constructor(service2) {
26550
+ this._service = service2;
26551
+ this.block = new BlockRecord(service2);
26552
+ this.follow = new FollowRecord(service2);
26553
+ this.list = new ListRecord(service2);
26554
+ this.listblock = new ListblockRecord(service2);
26555
+ this.listitem = new ListitemRecord(service2);
26164
26556
  }
26165
26557
  getBlocks(params2, opts) {
26166
26558
  return this._service.xrpc.call("app.bsky.graph.getBlocks", params2, void 0, opts).catch((e) => {
26167
- throw toKnownErr84(e);
26559
+ throw toKnownErr88(e);
26168
26560
  });
26169
26561
  }
26170
26562
  getFollowers(params2, opts) {
26171
26563
  return this._service.xrpc.call("app.bsky.graph.getFollowers", params2, void 0, opts).catch((e) => {
26172
- throw toKnownErr85(e);
26564
+ throw toKnownErr89(e);
26173
26565
  });
26174
26566
  }
26175
26567
  getFollows(params2, opts) {
26176
26568
  return this._service.xrpc.call("app.bsky.graph.getFollows", params2, void 0, opts).catch((e) => {
26177
- throw toKnownErr86(e);
26569
+ throw toKnownErr90(e);
26178
26570
  });
26179
26571
  }
26180
26572
  getList(params2, opts) {
26181
26573
  return this._service.xrpc.call("app.bsky.graph.getList", params2, void 0, opts).catch((e) => {
26182
- throw toKnownErr87(e);
26574
+ throw toKnownErr91(e);
26183
26575
  });
26184
26576
  }
26185
26577
  getListBlocks(params2, opts) {
26186
26578
  return this._service.xrpc.call("app.bsky.graph.getListBlocks", params2, void 0, opts).catch((e) => {
26187
- throw toKnownErr88(e);
26579
+ throw toKnownErr92(e);
26188
26580
  });
26189
26581
  }
26190
26582
  getListMutes(params2, opts) {
26191
26583
  return this._service.xrpc.call("app.bsky.graph.getListMutes", params2, void 0, opts).catch((e) => {
26192
- throw toKnownErr89(e);
26584
+ throw toKnownErr93(e);
26193
26585
  });
26194
26586
  }
26195
26587
  getLists(params2, opts) {
26196
26588
  return this._service.xrpc.call("app.bsky.graph.getLists", params2, void 0, opts).catch((e) => {
26197
- throw toKnownErr90(e);
26589
+ throw toKnownErr94(e);
26198
26590
  });
26199
26591
  }
26200
26592
  getMutes(params2, opts) {
26201
26593
  return this._service.xrpc.call("app.bsky.graph.getMutes", params2, void 0, opts).catch((e) => {
26202
- throw toKnownErr91(e);
26594
+ throw toKnownErr95(e);
26203
26595
  });
26204
26596
  }
26205
26597
  getSuggestedFollowsByActor(params2, opts) {
26206
26598
  return this._service.xrpc.call("app.bsky.graph.getSuggestedFollowsByActor", params2, void 0, opts).catch((e) => {
26207
- throw toKnownErr92(e);
26599
+ throw toKnownErr96(e);
26208
26600
  });
26209
26601
  }
26210
26602
  muteActor(data, opts) {
26211
26603
  return this._service.xrpc.call("app.bsky.graph.muteActor", opts?.qp, data, opts).catch((e) => {
26212
- throw toKnownErr93(e);
26604
+ throw toKnownErr97(e);
26213
26605
  });
26214
26606
  }
26215
26607
  muteActorList(data, opts) {
26216
26608
  return this._service.xrpc.call("app.bsky.graph.muteActorList", opts?.qp, data, opts).catch((e) => {
26217
- throw toKnownErr94(e);
26609
+ throw toKnownErr98(e);
26218
26610
  });
26219
26611
  }
26220
26612
  unmuteActor(data, opts) {
26221
26613
  return this._service.xrpc.call("app.bsky.graph.unmuteActor", opts?.qp, data, opts).catch((e) => {
26222
- throw toKnownErr95(e);
26614
+ throw toKnownErr99(e);
26223
26615
  });
26224
26616
  }
26225
26617
  unmuteActorList(data, opts) {
26226
26618
  return this._service.xrpc.call("app.bsky.graph.unmuteActorList", opts?.qp, data, opts).catch((e) => {
26227
- throw toKnownErr96(e);
26619
+ throw toKnownErr100(e);
26228
26620
  });
26229
26621
  }
26230
26622
  };
26231
26623
  var BlockRecord = class {
26232
- constructor(service) {
26233
- this._service = service;
26624
+ constructor(service2) {
26625
+ this._service = service2;
26234
26626
  }
26235
26627
  async list(params2) {
26236
26628
  const res = await this._service.xrpc.call("com.atproto.repo.listRecords", {
@@ -26256,8 +26648,8 @@ var BlockRecord = class {
26256
26648
  }
26257
26649
  };
26258
26650
  var FollowRecord = class {
26259
- constructor(service) {
26260
- this._service = service;
26651
+ constructor(service2) {
26652
+ this._service = service2;
26261
26653
  }
26262
26654
  async list(params2) {
26263
26655
  const res = await this._service.xrpc.call("com.atproto.repo.listRecords", {
@@ -26283,8 +26675,8 @@ var FollowRecord = class {
26283
26675
  }
26284
26676
  };
26285
26677
  var ListRecord = class {
26286
- constructor(service) {
26287
- this._service = service;
26678
+ constructor(service2) {
26679
+ this._service = service2;
26288
26680
  }
26289
26681
  async list(params2) {
26290
26682
  const res = await this._service.xrpc.call("com.atproto.repo.listRecords", {
@@ -26310,8 +26702,8 @@ var ListRecord = class {
26310
26702
  }
26311
26703
  };
26312
26704
  var ListblockRecord = class {
26313
- constructor(service) {
26314
- this._service = service;
26705
+ constructor(service2) {
26706
+ this._service = service2;
26315
26707
  }
26316
26708
  async list(params2) {
26317
26709
  const res = await this._service.xrpc.call("com.atproto.repo.listRecords", {
@@ -26337,8 +26729,8 @@ var ListblockRecord = class {
26337
26729
  }
26338
26730
  };
26339
26731
  var ListitemRecord = class {
26340
- constructor(service) {
26341
- this._service = service;
26732
+ constructor(service2) {
26733
+ this._service = service2;
26342
26734
  }
26343
26735
  async list(params2) {
26344
26736
  const res = await this._service.xrpc.call("com.atproto.repo.listRecords", {
@@ -26364,62 +26756,62 @@ var ListitemRecord = class {
26364
26756
  }
26365
26757
  };
26366
26758
  var NotificationNS = class {
26367
- constructor(service) {
26368
- this._service = service;
26759
+ constructor(service2) {
26760
+ this._service = service2;
26369
26761
  }
26370
26762
  getUnreadCount(params2, opts) {
26371
26763
  return this._service.xrpc.call("app.bsky.notification.getUnreadCount", params2, void 0, opts).catch((e) => {
26372
- throw toKnownErr97(e);
26764
+ throw toKnownErr101(e);
26373
26765
  });
26374
26766
  }
26375
26767
  listNotifications(params2, opts) {
26376
26768
  return this._service.xrpc.call("app.bsky.notification.listNotifications", params2, void 0, opts).catch((e) => {
26377
- throw toKnownErr98(e);
26769
+ throw toKnownErr102(e);
26378
26770
  });
26379
26771
  }
26380
26772
  registerPush(data, opts) {
26381
26773
  return this._service.xrpc.call("app.bsky.notification.registerPush", opts?.qp, data, opts).catch((e) => {
26382
- throw toKnownErr99(e);
26774
+ throw toKnownErr103(e);
26383
26775
  });
26384
26776
  }
26385
26777
  updateSeen(data, opts) {
26386
26778
  return this._service.xrpc.call("app.bsky.notification.updateSeen", opts?.qp, data, opts).catch((e) => {
26387
- throw toKnownErr100(e);
26779
+ throw toKnownErr104(e);
26388
26780
  });
26389
26781
  }
26390
26782
  };
26391
26783
  var RichtextNS = class {
26392
- constructor(service) {
26393
- this._service = service;
26784
+ constructor(service2) {
26785
+ this._service = service2;
26394
26786
  }
26395
26787
  };
26396
26788
  var UnspeccedNS = class {
26397
- constructor(service) {
26398
- this._service = service;
26789
+ constructor(service2) {
26790
+ this._service = service2;
26399
26791
  }
26400
26792
  getPopular(params2, opts) {
26401
26793
  return this._service.xrpc.call("app.bsky.unspecced.getPopular", params2, void 0, opts).catch((e) => {
26402
- throw toKnownErr101(e);
26794
+ throw toKnownErr105(e);
26403
26795
  });
26404
26796
  }
26405
26797
  getPopularFeedGenerators(params2, opts) {
26406
26798
  return this._service.xrpc.call("app.bsky.unspecced.getPopularFeedGenerators", params2, void 0, opts).catch((e) => {
26407
- throw toKnownErr102(e);
26799
+ throw toKnownErr106(e);
26408
26800
  });
26409
26801
  }
26410
26802
  getTimelineSkeleton(params2, opts) {
26411
26803
  return this._service.xrpc.call("app.bsky.unspecced.getTimelineSkeleton", params2, void 0, opts).catch((e) => {
26412
- throw toKnownErr103(e);
26804
+ throw toKnownErr107(e);
26413
26805
  });
26414
26806
  }
26415
26807
  searchActorsSkeleton(params2, opts) {
26416
26808
  return this._service.xrpc.call("app.bsky.unspecced.searchActorsSkeleton", params2, void 0, opts).catch((e) => {
26417
- throw toKnownErr104(e);
26809
+ throw toKnownErr108(e);
26418
26810
  });
26419
26811
  }
26420
26812
  searchPostsSkeleton(params2, opts) {
26421
26813
  return this._service.xrpc.call("app.bsky.unspecced.searchPostsSkeleton", params2, void 0, opts).catch((e) => {
26422
- throw toKnownErr105(e);
26814
+ throw toKnownErr109(e);
26423
26815
  });
26424
26816
  }
26425
26817
  };
@@ -26466,6 +26858,7 @@ var _AtpAgent = class {
26466
26858
  email: opts.email,
26467
26859
  emailConfirmed: false
26468
26860
  };
26861
+ this._updateApiEndpoint(res.data.didDoc);
26469
26862
  return res;
26470
26863
  } catch (e) {
26471
26864
  this.session = void 0;
@@ -26492,6 +26885,7 @@ var _AtpAgent = class {
26492
26885
  email: res.data.email,
26493
26886
  emailConfirmed: res.data.emailConfirmed
26494
26887
  };
26888
+ this._updateApiEndpoint(res.data.didDoc);
26495
26889
  return res;
26496
26890
  } catch (e) {
26497
26891
  this.session = void 0;
@@ -26565,7 +26959,7 @@ var _AtpAgent = class {
26565
26959
  if (!this.session?.refreshJwt) {
26566
26960
  return;
26567
26961
  }
26568
- const url = new URL(this.service.origin);
26962
+ const url = new URL((this.pdsUrl || this.service).origin);
26569
26963
  url.pathname = `/xrpc/${REFRESH_SESSION}`;
26570
26964
  const res = await _AtpAgent.fetch(url.toString(), "POST", {
26571
26965
  authorization: `Bearer ${this.session.refreshJwt}`
@@ -26581,9 +26975,17 @@ var _AtpAgent = class {
26581
26975
  handle: res.body.handle,
26582
26976
  did: res.body.did
26583
26977
  };
26978
+ this._updateApiEndpoint(res.body.didDoc);
26584
26979
  this._persistSession?.("update", this.session);
26585
26980
  }
26586
26981
  }
26982
+ _updateApiEndpoint(didDoc) {
26983
+ if (isValidDidDoc(didDoc)) {
26984
+ const endpoint = getPdsEndpoint(didDoc);
26985
+ this.pdsUrl = endpoint ? new URL(endpoint) : void 0;
26986
+ }
26987
+ this.api.xrpc.uri = this.pdsUrl || this.service;
26988
+ }
26587
26989
  };
26588
26990
  var AtpAgent = _AtpAgent;
26589
26991
  AtpAgent.fetch = defaultFetchHandler;
@@ -29240,6 +29642,15 @@ var ModerationCauseAccumulator = class {
29240
29642
  });
29241
29643
  }
29242
29644
  }
29645
+ addBlockingByList(blockingByList) {
29646
+ if (blockingByList) {
29647
+ this.causes.push({
29648
+ type: "blocking",
29649
+ source: { type: "list", list: blockingByList },
29650
+ priority: 3
29651
+ });
29652
+ }
29653
+ }
29243
29654
  addBlockedBy(blockedBy) {
29244
29655
  if (blockedBy) {
29245
29656
  this.causes.push({
@@ -29371,7 +29782,13 @@ function decideAccount(subject, opts) {
29371
29782
  acc.addMuted(subject.viewer?.muted);
29372
29783
  }
29373
29784
  }
29374
- acc.addBlocking(subject.viewer?.blocking);
29785
+ if (subject.viewer?.blocking) {
29786
+ if (subject.viewer?.blockingByList) {
29787
+ acc.addBlockingByList(subject.viewer?.blockingByList);
29788
+ } else {
29789
+ acc.addBlocking(subject.viewer?.blocking);
29790
+ }
29791
+ }
29375
29792
  acc.addBlockedBy(subject.viewer?.blockedBy);
29376
29793
  for (const label of filterAccountLabels(subject.labels)) {
29377
29794
  acc.addLabel(label, opts);
@@ -29989,6 +30406,42 @@ var BskyAgent = class extends AtpAgent {
29989
30406
  async unmute(actor) {
29990
30407
  return this.api.app.bsky.graph.unmuteActor({ actor });
29991
30408
  }
30409
+ async muteModList(uri2) {
30410
+ return this.api.app.bsky.graph.muteActorList({
30411
+ list: uri2
30412
+ });
30413
+ }
30414
+ async unmuteModList(uri2) {
30415
+ return this.api.app.bsky.graph.unmuteActorList({
30416
+ list: uri2
30417
+ });
30418
+ }
30419
+ async blockModList(uri2) {
30420
+ if (!this.session) {
30421
+ throw new Error("Not logged in");
30422
+ }
30423
+ return await this.api.app.bsky.graph.listblock.create({ repo: this.session.did }, {
30424
+ subject: uri2,
30425
+ createdAt: new Date().toISOString()
30426
+ });
30427
+ }
30428
+ async unblockModList(uri2) {
30429
+ if (!this.session) {
30430
+ throw new Error("Not logged in");
30431
+ }
30432
+ const listInfo = await this.api.app.bsky.graph.getList({
30433
+ list: uri2,
30434
+ limit: 1
30435
+ });
30436
+ if (!listInfo.data.list.viewer?.blocked) {
30437
+ return;
30438
+ }
30439
+ const { rkey } = new AtUri(listInfo.data.list.viewer.blocked);
30440
+ return await this.api.app.bsky.graph.listblock.delete({
30441
+ repo: this.session.did,
30442
+ rkey
30443
+ });
30444
+ }
29992
30445
  async updateSeenNotifications(seenAt) {
29993
30446
  seenAt = seenAt || new Date().toISOString();
29994
30447
  return this.api.app.bsky.notification.updateSeen({