@atproto/api 0.9.7 → 0.10.0

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 (51) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/bsky-agent.d.ts +6 -1
  3. package/dist/client/index.d.ts +30 -9
  4. package/dist/client/lexicons.d.ts +449 -110
  5. package/dist/client/types/app/bsky/actor/defs.d.ts +20 -0
  6. package/dist/client/types/com/atproto/admin/defs.d.ts +9 -0
  7. package/dist/client/types/com/atproto/admin/emitModerationEvent.d.ts +1 -1
  8. package/dist/client/types/com/atproto/admin/queryModerationEvents.d.ts +2 -0
  9. package/dist/client/types/com/atproto/admin/queryModerationStatuses.d.ts +2 -0
  10. package/dist/client/types/com/atproto/identity/getRecommendedDidCredentials.d.ts +20 -0
  11. package/dist/client/types/com/atproto/{temp/pushBlob.d.ts → identity/requestPlcOperationSignature.d.ts} +1 -3
  12. package/dist/client/types/com/atproto/identity/signPlcOperation.d.ts +26 -0
  13. package/dist/client/types/com/atproto/identity/submitPlcOperation.d.ts +17 -0
  14. package/dist/client/types/com/atproto/{temp → repo}/importRepo.d.ts +0 -2
  15. package/dist/client/types/com/atproto/repo/listMissingBlobs.d.ts +28 -0
  16. package/dist/client/types/com/atproto/server/activateAccount.d.ts +13 -0
  17. package/dist/client/types/com/atproto/server/checkAccountStatus.d.ts +25 -0
  18. package/dist/client/types/com/atproto/server/deactivateAccount.d.ts +17 -0
  19. package/dist/client/types/com/atproto/server/describeServer.d.ts +1 -0
  20. package/dist/client/types/com/atproto/server/getServiceAuth.d.ts +18 -0
  21. package/dist/client/types/com/atproto/sync/subscribeRepos.d.ts +8 -0
  22. package/dist/index.js +1068 -549
  23. package/dist/index.js.map +3 -3
  24. package/dist/types.d.ts +3 -0
  25. package/package.json +2 -2
  26. package/src/bsky-agent.ts +136 -0
  27. package/src/client/index.ts +140 -39
  28. package/src/client/lexicons.ts +491 -138
  29. package/src/client/types/app/bsky/actor/defs.ts +59 -0
  30. package/src/client/types/app/bsky/feed/post.ts +1 -1
  31. package/src/client/types/com/atproto/admin/defs.ts +24 -0
  32. package/src/client/types/com/atproto/admin/emitModerationEvent.ts +1 -0
  33. package/src/client/types/com/atproto/admin/queryModerationEvents.ts +4 -0
  34. package/src/client/types/com/atproto/admin/queryModerationStatuses.ts +2 -0
  35. package/src/client/types/com/atproto/identity/getRecommendedDidCredentials.ts +37 -0
  36. package/src/client/types/com/atproto/identity/requestPlcOperationSignature.ts +28 -0
  37. package/src/client/types/com/atproto/identity/signPlcOperation.ts +44 -0
  38. package/src/client/types/com/atproto/{temp/pushBlob.ts → identity/submitPlcOperation.ts} +6 -6
  39. package/src/client/types/com/atproto/{temp → repo}/importRepo.ts +1 -5
  40. package/src/client/types/com/atproto/repo/listMissingBlobs.ts +55 -0
  41. package/src/client/types/com/atproto/server/activateAccount.ts +28 -0
  42. package/src/client/types/com/atproto/server/checkAccountStatus.ts +41 -0
  43. package/src/client/types/com/atproto/server/deactivateAccount.ts +33 -0
  44. package/src/client/types/com/atproto/server/describeServer.ts +1 -0
  45. package/src/client/types/com/atproto/server/getServiceAuth.ts +36 -0
  46. package/src/client/types/com/atproto/sync/subscribeRepos.ts +23 -3
  47. package/src/types.ts +3 -0
  48. package/tests/agent.test.ts +1 -0
  49. package/tests/bsky-agent.test.ts +183 -0
  50. package/dist/client/types/com/atproto/temp/transferAccount.d.ts +0 -48
  51. package/src/client/types/com/atproto/temp/transferAccount.ts +0 -92
package/dist/index.js CHANGED
@@ -8978,8 +8978,12 @@ __export(src_exports2, {
8978
8978
  ComAtprotoAdminUpdateAccountHandle: () => updateAccountHandle_exports,
8979
8979
  ComAtprotoAdminUpdateCommunicationTemplate: () => updateCommunicationTemplate_exports,
8980
8980
  ComAtprotoAdminUpdateSubjectStatus: () => updateSubjectStatus_exports,
8981
+ ComAtprotoIdentityGetRecommendedDidCredentials: () => getRecommendedDidCredentials_exports,
8981
8982
  ComAtprotoIdentityNS: () => ComAtprotoIdentityNS,
8983
+ ComAtprotoIdentityRequestPlcOperationSignature: () => requestPlcOperationSignature_exports,
8982
8984
  ComAtprotoIdentityResolveHandle: () => resolveHandle_exports,
8985
+ ComAtprotoIdentitySignPlcOperation: () => signPlcOperation_exports,
8986
+ ComAtprotoIdentitySubmitPlcOperation: () => submitPlcOperation_exports,
8983
8987
  ComAtprotoIdentityUpdateHandle: () => updateHandle_exports,
8984
8988
  ComAtprotoLabelDefs: () => defs_exports2,
8985
8989
  ComAtprotoLabelNS: () => ComAtprotoLabelNS,
@@ -8994,22 +8998,28 @@ __export(src_exports2, {
8994
8998
  ComAtprotoRepoDeleteRecord: () => deleteRecord_exports,
8995
8999
  ComAtprotoRepoDescribeRepo: () => describeRepo_exports,
8996
9000
  ComAtprotoRepoGetRecord: () => getRecord_exports2,
9001
+ ComAtprotoRepoImportRepo: () => importRepo_exports,
9002
+ ComAtprotoRepoListMissingBlobs: () => listMissingBlobs_exports,
8997
9003
  ComAtprotoRepoListRecords: () => listRecords_exports,
8998
9004
  ComAtprotoRepoNS: () => ComAtprotoRepoNS,
8999
9005
  ComAtprotoRepoPutRecord: () => putRecord_exports,
9000
9006
  ComAtprotoRepoStrongRef: () => strongRef_exports,
9001
9007
  ComAtprotoRepoUploadBlob: () => uploadBlob_exports,
9008
+ ComAtprotoServerActivateAccount: () => activateAccount_exports,
9009
+ ComAtprotoServerCheckAccountStatus: () => checkAccountStatus_exports,
9002
9010
  ComAtprotoServerConfirmEmail: () => confirmEmail_exports,
9003
9011
  ComAtprotoServerCreateAccount: () => createAccount_exports,
9004
9012
  ComAtprotoServerCreateAppPassword: () => createAppPassword_exports,
9005
9013
  ComAtprotoServerCreateInviteCode: () => createInviteCode_exports,
9006
9014
  ComAtprotoServerCreateInviteCodes: () => createInviteCodes_exports,
9007
9015
  ComAtprotoServerCreateSession: () => createSession_exports,
9016
+ ComAtprotoServerDeactivateAccount: () => deactivateAccount_exports,
9008
9017
  ComAtprotoServerDefs: () => defs_exports4,
9009
9018
  ComAtprotoServerDeleteAccount: () => deleteAccount_exports2,
9010
9019
  ComAtprotoServerDeleteSession: () => deleteSession_exports,
9011
9020
  ComAtprotoServerDescribeServer: () => describeServer_exports,
9012
9021
  ComAtprotoServerGetAccountInviteCodes: () => getAccountInviteCodes_exports,
9022
+ ComAtprotoServerGetServiceAuth: () => getServiceAuth_exports,
9013
9023
  ComAtprotoServerGetSession: () => getSession_exports,
9014
9024
  ComAtprotoServerListAppPasswords: () => listAppPasswords_exports,
9015
9025
  ComAtprotoServerNS: () => ComAtprotoServerNS,
@@ -9037,11 +9047,8 @@ __export(src_exports2, {
9037
9047
  ComAtprotoSyncSubscribeRepos: () => subscribeRepos_exports,
9038
9048
  ComAtprotoTempCheckSignupQueue: () => checkSignupQueue_exports,
9039
9049
  ComAtprotoTempFetchLabels: () => fetchLabels_exports,
9040
- ComAtprotoTempImportRepo: () => importRepo_exports,
9041
9050
  ComAtprotoTempNS: () => ComAtprotoTempNS,
9042
- ComAtprotoTempPushBlob: () => pushBlob_exports,
9043
9051
  ComAtprotoTempRequestPhoneVerification: () => requestPhoneVerification_exports,
9044
- ComAtprotoTempTransferAccount: () => transferAccount_exports,
9045
9052
  ComNS: () => ComNS,
9046
9053
  FollowRecord: () => FollowRecord,
9047
9054
  GeneratorRecord: () => GeneratorRecord,
@@ -15973,6 +15980,12 @@ var schemaDict = {
15973
15980
  suspendUntil: {
15974
15981
  type: "string",
15975
15982
  format: "datetime"
15983
+ },
15984
+ tags: {
15985
+ type: "array",
15986
+ items: {
15987
+ type: "string"
15988
+ }
15976
15989
  }
15977
15990
  }
15978
15991
  },
@@ -16564,6 +16577,31 @@ var schemaDict = {
16564
16577
  }
16565
16578
  }
16566
16579
  },
16580
+ modEventTag: {
16581
+ type: "object",
16582
+ description: "Add/Remove a tag on a subject",
16583
+ required: ["add", "remove"],
16584
+ properties: {
16585
+ add: {
16586
+ type: "array",
16587
+ items: {
16588
+ type: "string"
16589
+ },
16590
+ description: "Tags to be added to the subject. If already exists, won't be duplicated."
16591
+ },
16592
+ remove: {
16593
+ type: "array",
16594
+ items: {
16595
+ type: "string"
16596
+ },
16597
+ description: "Tags to be removed to the subject. Ignores a tag If it doesn't exist, won't be duplicated."
16598
+ },
16599
+ comment: {
16600
+ type: "string",
16601
+ description: "Additional comment about added/removed tags."
16602
+ }
16603
+ }
16604
+ },
16567
16605
  communicationTemplateView: {
16568
16606
  type: "object",
16569
16607
  required: [
@@ -16738,7 +16776,8 @@ var schemaDict = {
16738
16776
  "lex:com.atproto.admin.defs#modEventMute",
16739
16777
  "lex:com.atproto.admin.defs#modEventReverseTakedown",
16740
16778
  "lex:com.atproto.admin.defs#modEventUnmute",
16741
- "lex:com.atproto.admin.defs#modEventEmail"
16779
+ "lex:com.atproto.admin.defs#modEventEmail",
16780
+ "lex:com.atproto.admin.defs#modEventTag"
16742
16781
  ]
16743
16782
  },
16744
16783
  subject: {
@@ -17160,6 +17199,20 @@ var schemaDict = {
17160
17199
  },
17161
17200
  description: "If specified, only events where all of these labels were removed are returned"
17162
17201
  },
17202
+ addedTags: {
17203
+ type: "array",
17204
+ items: {
17205
+ type: "string"
17206
+ },
17207
+ description: "If specified, only events where all of these tags were added are returned"
17208
+ },
17209
+ removedTags: {
17210
+ type: "array",
17211
+ items: {
17212
+ type: "string"
17213
+ },
17214
+ description: "If specified, only events where all of these tags were removed are returned"
17215
+ },
17163
17216
  reportTypes: {
17164
17217
  type: "array",
17165
17218
  items: {
@@ -17275,6 +17328,18 @@ var schemaDict = {
17275
17328
  maximum: 100,
17276
17329
  default: 50
17277
17330
  },
17331
+ tags: {
17332
+ type: "array",
17333
+ items: {
17334
+ type: "string"
17335
+ }
17336
+ },
17337
+ excludeTags: {
17338
+ type: "array",
17339
+ items: {
17340
+ type: "string"
17341
+ }
17342
+ },
17278
17343
  cursor: {
17279
17344
  type: "string"
17280
17345
  }
@@ -17557,6 +17622,53 @@ var schemaDict = {
17557
17622
  }
17558
17623
  }
17559
17624
  },
17625
+ ComAtprotoIdentityGetRecommendedDidCredentials: {
17626
+ lexicon: 1,
17627
+ id: "com.atproto.identity.getRecommendedDidCredentials",
17628
+ defs: {
17629
+ main: {
17630
+ type: "query",
17631
+ description: "Describe the credentials that should be included in the DID doc of an account that is migrating to this service.",
17632
+ output: {
17633
+ encoding: "application/json",
17634
+ schema: {
17635
+ type: "object",
17636
+ properties: {
17637
+ rotationKeys: {
17638
+ description: "Recommended rotation keys for PLC dids. Should be undefined (or ignored) for did:webs.",
17639
+ type: "array",
17640
+ items: {
17641
+ type: "string"
17642
+ }
17643
+ },
17644
+ alsoKnownAs: {
17645
+ type: "array",
17646
+ items: {
17647
+ type: "string"
17648
+ }
17649
+ },
17650
+ verificationMethods: {
17651
+ type: "unknown"
17652
+ },
17653
+ services: {
17654
+ type: "unknown"
17655
+ }
17656
+ }
17657
+ }
17658
+ }
17659
+ }
17660
+ }
17661
+ },
17662
+ ComAtprotoIdentityRequestPlcOperationSignature: {
17663
+ lexicon: 1,
17664
+ id: "com.atproto.identity.requestPlcOperationSignature",
17665
+ defs: {
17666
+ main: {
17667
+ type: "procedure",
17668
+ description: "Request an email with a code to in order to request a signed PLC operation. Requires Auth."
17669
+ }
17670
+ }
17671
+ },
17560
17672
  ComAtprotoIdentityResolveHandle: {
17561
17673
  lexicon: 1,
17562
17674
  id: "com.atproto.identity.resolveHandle",
@@ -17591,6 +17703,81 @@ var schemaDict = {
17591
17703
  }
17592
17704
  }
17593
17705
  },
17706
+ ComAtprotoIdentitySignPlcOperation: {
17707
+ lexicon: 1,
17708
+ id: "com.atproto.identity.signPlcOperation",
17709
+ defs: {
17710
+ main: {
17711
+ type: "procedure",
17712
+ description: "Signs a PLC operation to update some value(s) in the requesting DID's document.",
17713
+ input: {
17714
+ encoding: "application/json",
17715
+ schema: {
17716
+ type: "object",
17717
+ properties: {
17718
+ token: {
17719
+ description: "A token received through com.atproto.identity.requestPlcOperationSignature",
17720
+ type: "string"
17721
+ },
17722
+ rotationKeys: {
17723
+ type: "array",
17724
+ items: {
17725
+ type: "string"
17726
+ }
17727
+ },
17728
+ alsoKnownAs: {
17729
+ type: "array",
17730
+ items: {
17731
+ type: "string"
17732
+ }
17733
+ },
17734
+ verificationMethods: {
17735
+ type: "unknown"
17736
+ },
17737
+ services: {
17738
+ type: "unknown"
17739
+ }
17740
+ }
17741
+ }
17742
+ },
17743
+ output: {
17744
+ encoding: "application/json",
17745
+ schema: {
17746
+ type: "object",
17747
+ required: ["operation"],
17748
+ properties: {
17749
+ operation: {
17750
+ type: "unknown",
17751
+ description: "A signed DID PLC operation."
17752
+ }
17753
+ }
17754
+ }
17755
+ }
17756
+ }
17757
+ }
17758
+ },
17759
+ ComAtprotoIdentitySubmitPlcOperation: {
17760
+ lexicon: 1,
17761
+ id: "com.atproto.identity.submitPlcOperation",
17762
+ defs: {
17763
+ main: {
17764
+ type: "procedure",
17765
+ description: "Validates a PLC operation to ensure that it doesn't violate a service's constraints or get the identity into a bad state, then submits it to the PLC registry",
17766
+ input: {
17767
+ encoding: "application/json",
17768
+ schema: {
17769
+ type: "object",
17770
+ required: ["operation"],
17771
+ properties: {
17772
+ operation: {
17773
+ type: "unknown"
17774
+ }
17775
+ }
17776
+ }
17777
+ }
17778
+ }
17779
+ }
17780
+ },
17594
17781
  ComAtprotoIdentityUpdateHandle: {
17595
17782
  lexicon: 1,
17596
17783
  id: "com.atproto.identity.updateHandle",
@@ -18263,6 +18450,76 @@ var schemaDict = {
18263
18450
  }
18264
18451
  }
18265
18452
  },
18453
+ ComAtprotoRepoImportRepo: {
18454
+ lexicon: 1,
18455
+ id: "com.atproto.repo.importRepo",
18456
+ defs: {
18457
+ main: {
18458
+ type: "procedure",
18459
+ description: "Import a repo in the form of a CAR file. Requires Content-Length HTTP header to be set.",
18460
+ input: {
18461
+ encoding: "application/vnd.ipld.car"
18462
+ }
18463
+ }
18464
+ }
18465
+ },
18466
+ ComAtprotoRepoListMissingBlobs: {
18467
+ lexicon: 1,
18468
+ id: "com.atproto.repo.listMissingBlobs",
18469
+ defs: {
18470
+ main: {
18471
+ type: "query",
18472
+ description: "Returns a list of missing blobs for the requesting account. Intended to be used in the account migration flow.",
18473
+ parameters: {
18474
+ type: "params",
18475
+ properties: {
18476
+ limit: {
18477
+ type: "integer",
18478
+ minimum: 1,
18479
+ maximum: 1e3,
18480
+ default: 500
18481
+ },
18482
+ cursor: {
18483
+ type: "string"
18484
+ }
18485
+ }
18486
+ },
18487
+ output: {
18488
+ encoding: "application/json",
18489
+ schema: {
18490
+ type: "object",
18491
+ required: ["blobs"],
18492
+ properties: {
18493
+ cursor: {
18494
+ type: "string"
18495
+ },
18496
+ blobs: {
18497
+ type: "array",
18498
+ items: {
18499
+ type: "ref",
18500
+ ref: "lex:com.atproto.repo.listMissingBlobs#recordBlob"
18501
+ }
18502
+ }
18503
+ }
18504
+ }
18505
+ }
18506
+ },
18507
+ recordBlob: {
18508
+ type: "object",
18509
+ required: ["cid", "recordUri"],
18510
+ properties: {
18511
+ cid: {
18512
+ type: "string",
18513
+ format: "cid"
18514
+ },
18515
+ recordUri: {
18516
+ type: "string",
18517
+ format: "at-uri"
18518
+ }
18519
+ }
18520
+ }
18521
+ }
18522
+ },
18266
18523
  ComAtprotoRepoListRecords: {
18267
18524
  lexicon: 1,
18268
18525
  id: "com.atproto.repo.listRecords",
@@ -18469,6 +18726,73 @@ var schemaDict = {
18469
18726
  }
18470
18727
  }
18471
18728
  },
18729
+ ComAtprotoServerActivateAccount: {
18730
+ lexicon: 1,
18731
+ id: "com.atproto.server.activateAccount",
18732
+ defs: {
18733
+ main: {
18734
+ type: "procedure",
18735
+ description: "Activates a currently deactivated account. Used to finalize account migration after the account's repo is imported and identity is setup."
18736
+ }
18737
+ }
18738
+ },
18739
+ ComAtprotoServerCheckAccountStatus: {
18740
+ lexicon: 1,
18741
+ id: "com.atproto.server.checkAccountStatus",
18742
+ defs: {
18743
+ main: {
18744
+ type: "query",
18745
+ description: "Returns the status of an account, especially as pertaining to import or recovery. Can be called many times over the course of an account migration. Requires auth and can only be called pertaining to oneself.",
18746
+ output: {
18747
+ encoding: "application/json",
18748
+ schema: {
18749
+ type: "object",
18750
+ required: [
18751
+ "activated",
18752
+ "validDid",
18753
+ "repoCommit",
18754
+ "repoRev",
18755
+ "repoBlocks",
18756
+ "indexedRecords",
18757
+ "privateStateValues",
18758
+ "expectedBlobs",
18759
+ "importedBlobs"
18760
+ ],
18761
+ properties: {
18762
+ activated: {
18763
+ type: "boolean"
18764
+ },
18765
+ validDid: {
18766
+ type: "boolean"
18767
+ },
18768
+ repoCommit: {
18769
+ type: "string",
18770
+ format: "cid"
18771
+ },
18772
+ repoRev: {
18773
+ type: "string"
18774
+ },
18775
+ repoBlocks: {
18776
+ type: "integer"
18777
+ },
18778
+ indexedRecords: {
18779
+ type: "integer"
18780
+ },
18781
+ privateStateValues: {
18782
+ type: "integer"
18783
+ },
18784
+ expectedBlobs: {
18785
+ type: "integer"
18786
+ },
18787
+ importedBlobs: {
18788
+ type: "integer"
18789
+ }
18790
+ }
18791
+ }
18792
+ }
18793
+ }
18794
+ }
18795
+ },
18472
18796
  ComAtprotoServerConfirmEmail: {
18473
18797
  lexicon: 1,
18474
18798
  id: "com.atproto.server.confirmEmail",
@@ -18829,22 +19153,45 @@ var schemaDict = {
18829
19153
  }
18830
19154
  }
18831
19155
  },
18832
- ComAtprotoServerDefs: {
19156
+ ComAtprotoServerDeactivateAccount: {
18833
19157
  lexicon: 1,
18834
- id: "com.atproto.server.defs",
19158
+ id: "com.atproto.server.deactivateAccount",
18835
19159
  defs: {
18836
- inviteCode: {
18837
- type: "object",
18838
- required: [
18839
- "code",
18840
- "available",
18841
- "disabled",
18842
- "forAccount",
18843
- "createdBy",
18844
- "createdAt",
18845
- "uses"
18846
- ],
18847
- properties: {
19160
+ main: {
19161
+ type: "procedure",
19162
+ description: "Deactivates a currently active account. Stops serving of repo, and future writes to repo until reactivated. Used to finalize account migration with the old host after the account has been activated on the new host.",
19163
+ input: {
19164
+ encoding: "application/json",
19165
+ schema: {
19166
+ type: "object",
19167
+ properties: {
19168
+ deleteAfter: {
19169
+ type: "string",
19170
+ format: "datetime",
19171
+ description: "A recommendation to server as to how long they should hold onto the deactivated account before deleting."
19172
+ }
19173
+ }
19174
+ }
19175
+ }
19176
+ }
19177
+ }
19178
+ },
19179
+ ComAtprotoServerDefs: {
19180
+ lexicon: 1,
19181
+ id: "com.atproto.server.defs",
19182
+ defs: {
19183
+ inviteCode: {
19184
+ type: "object",
19185
+ required: [
19186
+ "code",
19187
+ "available",
19188
+ "disabled",
19189
+ "forAccount",
19190
+ "createdBy",
19191
+ "createdAt",
19192
+ "uses"
19193
+ ],
19194
+ properties: {
18848
19195
  code: {
18849
19196
  type: "string"
18850
19197
  },
@@ -18947,7 +19294,7 @@ var schemaDict = {
18947
19294
  encoding: "application/json",
18948
19295
  schema: {
18949
19296
  type: "object",
18950
- required: ["availableUserDomains"],
19297
+ required: ["did", "availableUserDomains"],
18951
19298
  properties: {
18952
19299
  inviteCodeRequired: {
18953
19300
  type: "boolean",
@@ -18968,6 +19315,10 @@ var schemaDict = {
18968
19315
  type: "ref",
18969
19316
  description: "URLs of service policy documents.",
18970
19317
  ref: "lex:com.atproto.server.describeServer#links"
19318
+ },
19319
+ did: {
19320
+ type: "string",
19321
+ format: "did"
18971
19322
  }
18972
19323
  }
18973
19324
  }
@@ -19031,6 +19382,39 @@ var schemaDict = {
19031
19382
  }
19032
19383
  }
19033
19384
  },
19385
+ ComAtprotoServerGetServiceAuth: {
19386
+ lexicon: 1,
19387
+ id: "com.atproto.server.getServiceAuth",
19388
+ defs: {
19389
+ main: {
19390
+ type: "query",
19391
+ description: "Get a signed token on behalf of the requesting DID for the requested service.",
19392
+ parameters: {
19393
+ type: "params",
19394
+ required: ["aud"],
19395
+ properties: {
19396
+ aud: {
19397
+ type: "string",
19398
+ format: "did",
19399
+ description: "The DID of the service that the token will be used to authenticate with"
19400
+ }
19401
+ }
19402
+ },
19403
+ output: {
19404
+ encoding: "application/json",
19405
+ schema: {
19406
+ type: "object",
19407
+ required: ["token"],
19408
+ properties: {
19409
+ token: {
19410
+ type: "string"
19411
+ }
19412
+ }
19413
+ }
19414
+ }
19415
+ }
19416
+ }
19417
+ },
19034
19418
  ComAtprotoServerGetSession: {
19035
19419
  lexicon: 1,
19036
19420
  id: "com.atproto.server.getSession",
@@ -19755,6 +20139,7 @@ var schemaDict = {
19755
20139
  type: "union",
19756
20140
  refs: [
19757
20141
  "lex:com.atproto.sync.subscribeRepos#commit",
20142
+ "lex:com.atproto.sync.subscribeRepos#identity",
19758
20143
  "lex:com.atproto.sync.subscribeRepos#handle",
19759
20144
  "lex:com.atproto.sync.subscribeRepos#migrate",
19760
20145
  "lex:com.atproto.sync.subscribeRepos#tombstone",
@@ -19851,9 +20236,27 @@ var schemaDict = {
19851
20236
  }
19852
20237
  }
19853
20238
  },
20239
+ identity: {
20240
+ type: "object",
20241
+ description: "Represents a change to an account's identity. Could be an updated handle, signing key, or pds hosting endpoint. Serves as a prod to all downstream services to refresh their identity cache.",
20242
+ required: ["seq", "did", "time"],
20243
+ properties: {
20244
+ seq: {
20245
+ type: "integer"
20246
+ },
20247
+ did: {
20248
+ type: "string",
20249
+ format: "did"
20250
+ },
20251
+ time: {
20252
+ type: "string",
20253
+ format: "datetime"
20254
+ }
20255
+ }
20256
+ },
19854
20257
  handle: {
19855
20258
  type: "object",
19856
- description: "Represents an update of the account's handle, or transition to/from invalid state.",
20259
+ description: "Represents an update of the account's handle, or transition to/from invalid state. NOTE: Will be deprecated in favor of #identity.",
19857
20260
  required: ["seq", "did", "handle", "time"],
19858
20261
  properties: {
19859
20262
  seq: {
@@ -19875,7 +20278,7 @@ var schemaDict = {
19875
20278
  },
19876
20279
  migrate: {
19877
20280
  type: "object",
19878
- description: "Represents an account moving from one PDS instance to another. NOTE: not implemented; full account migration may introduce a new message instead.",
20281
+ description: "Represents an account moving from one PDS instance to another. NOTE: not implemented; account migration uses #identity instead",
19879
20282
  required: ["seq", "did", "migrateTo", "time"],
19880
20283
  nullable: ["migrateTo"],
19881
20284
  properties: {
@@ -19897,7 +20300,7 @@ var schemaDict = {
19897
20300
  },
19898
20301
  tombstone: {
19899
20302
  type: "object",
19900
- description: "Indicates that an account has been deleted.",
20303
+ description: "Indicates that an account has been deleted. NOTE: may be deprecated in favor of #identity or a future #account event",
19901
20304
  required: ["seq", "did", "time"],
19902
20305
  properties: {
19903
20306
  seq: {
@@ -20015,57 +20418,6 @@ var schemaDict = {
20015
20418
  }
20016
20419
  }
20017
20420
  },
20018
- ComAtprotoTempImportRepo: {
20019
- lexicon: 1,
20020
- id: "com.atproto.temp.importRepo",
20021
- defs: {
20022
- main: {
20023
- type: "procedure",
20024
- description: "Gets the did's repo, optionally catching up from a specific revision.",
20025
- parameters: {
20026
- type: "params",
20027
- required: ["did"],
20028
- properties: {
20029
- did: {
20030
- type: "string",
20031
- format: "did",
20032
- description: "The DID of the repo."
20033
- }
20034
- }
20035
- },
20036
- input: {
20037
- encoding: "application/vnd.ipld.car"
20038
- },
20039
- output: {
20040
- encoding: "text/plain"
20041
- }
20042
- }
20043
- }
20044
- },
20045
- ComAtprotoTempPushBlob: {
20046
- lexicon: 1,
20047
- id: "com.atproto.temp.pushBlob",
20048
- defs: {
20049
- main: {
20050
- type: "procedure",
20051
- description: "Gets the did's repo, optionally catching up from a specific revision.",
20052
- parameters: {
20053
- type: "params",
20054
- required: ["did"],
20055
- properties: {
20056
- did: {
20057
- type: "string",
20058
- format: "did",
20059
- description: "The DID of the repo."
20060
- }
20061
- }
20062
- },
20063
- input: {
20064
- encoding: "*/*"
20065
- }
20066
- }
20067
- }
20068
- },
20069
20421
  ComAtprotoTempRequestPhoneVerification: {
20070
20422
  lexicon: 1,
20071
20423
  id: "com.atproto.temp.requestPhoneVerification",
@@ -20088,82 +20440,6 @@ var schemaDict = {
20088
20440
  }
20089
20441
  }
20090
20442
  },
20091
- ComAtprotoTempTransferAccount: {
20092
- lexicon: 1,
20093
- id: "com.atproto.temp.transferAccount",
20094
- defs: {
20095
- main: {
20096
- type: "procedure",
20097
- description: "Transfer an account. NOTE: temporary method, necessarily how account migration will be implemented.",
20098
- input: {
20099
- encoding: "application/json",
20100
- schema: {
20101
- type: "object",
20102
- required: ["handle", "did", "plcOp"],
20103
- properties: {
20104
- handle: {
20105
- type: "string",
20106
- format: "handle"
20107
- },
20108
- did: {
20109
- type: "string",
20110
- format: "did"
20111
- },
20112
- plcOp: {
20113
- type: "unknown"
20114
- }
20115
- }
20116
- }
20117
- },
20118
- output: {
20119
- encoding: "application/json",
20120
- schema: {
20121
- type: "object",
20122
- required: ["accessJwt", "refreshJwt", "handle", "did"],
20123
- properties: {
20124
- accessJwt: {
20125
- type: "string"
20126
- },
20127
- refreshJwt: {
20128
- type: "string"
20129
- },
20130
- handle: {
20131
- type: "string",
20132
- format: "handle"
20133
- },
20134
- did: {
20135
- type: "string",
20136
- format: "did"
20137
- }
20138
- }
20139
- }
20140
- },
20141
- errors: [
20142
- {
20143
- name: "InvalidHandle"
20144
- },
20145
- {
20146
- name: "InvalidPassword"
20147
- },
20148
- {
20149
- name: "InvalidInviteCode"
20150
- },
20151
- {
20152
- name: "HandleNotAvailable"
20153
- },
20154
- {
20155
- name: "UnsupportedDomain"
20156
- },
20157
- {
20158
- name: "UnresolvableDid"
20159
- },
20160
- {
20161
- name: "IncompatibleDidDoc"
20162
- }
20163
- ]
20164
- }
20165
- }
20166
- },
20167
20443
  AppBskyActorDefs: {
20168
20444
  lexicon: 1,
20169
20445
  id: "app.bsky.actor.defs",
@@ -20459,6 +20735,61 @@ var schemaDict = {
20459
20735
  description: "A list of tags which describe the account owner's interests gathered during onboarding."
20460
20736
  }
20461
20737
  }
20738
+ },
20739
+ mutedWordTarget: {
20740
+ type: "string",
20741
+ knownValues: ["content", "tag"],
20742
+ maxLength: 640,
20743
+ maxGraphemes: 64
20744
+ },
20745
+ mutedWord: {
20746
+ type: "object",
20747
+ description: "A word that the account owner has muted.",
20748
+ required: ["value", "targets"],
20749
+ properties: {
20750
+ value: {
20751
+ type: "string",
20752
+ description: "The muted word itself.",
20753
+ maxLength: 1e4,
20754
+ maxGraphemes: 1e3
20755
+ },
20756
+ targets: {
20757
+ type: "array",
20758
+ description: "The intended targets of the muted word.",
20759
+ items: {
20760
+ type: "ref",
20761
+ ref: "lex:app.bsky.actor.defs#mutedWordTarget"
20762
+ }
20763
+ }
20764
+ }
20765
+ },
20766
+ mutedWordsPref: {
20767
+ type: "object",
20768
+ required: ["items"],
20769
+ properties: {
20770
+ items: {
20771
+ type: "array",
20772
+ items: {
20773
+ type: "ref",
20774
+ ref: "lex:app.bsky.actor.defs#mutedWord"
20775
+ },
20776
+ description: "A list of words the account owner has muted."
20777
+ }
20778
+ }
20779
+ },
20780
+ hiddenPostsPref: {
20781
+ type: "object",
20782
+ required: ["items"],
20783
+ properties: {
20784
+ items: {
20785
+ type: "array",
20786
+ items: {
20787
+ type: "string",
20788
+ format: "at-uri"
20789
+ },
20790
+ description: "A list of URIs of posts the account owner has hidden."
20791
+ }
20792
+ }
20462
20793
  }
20463
20794
  }
20464
20795
  },
@@ -22325,7 +22656,7 @@ var schemaDict = {
22325
22656
  },
22326
22657
  tags: {
22327
22658
  type: "array",
22328
- description: "Additional non-inline tags describing this post.",
22659
+ description: "Additional hashtags, in addition to any included in post text and facets.",
22329
22660
  maxLength: 8,
22330
22661
  items: {
22331
22662
  type: "string",
@@ -24219,9 +24550,9 @@ function toKnownErr23(e) {
24219
24550
  return e;
24220
24551
  }
24221
24552
 
24222
- // src/client/types/com/atproto/identity/resolveHandle.ts
24223
- var resolveHandle_exports = {};
24224
- __export(resolveHandle_exports, {
24553
+ // src/client/types/com/atproto/identity/getRecommendedDidCredentials.ts
24554
+ var getRecommendedDidCredentials_exports = {};
24555
+ __export(getRecommendedDidCredentials_exports, {
24225
24556
  toKnownErr: () => toKnownErr24
24226
24557
  });
24227
24558
  function toKnownErr24(e) {
@@ -24230,9 +24561,9 @@ function toKnownErr24(e) {
24230
24561
  return e;
24231
24562
  }
24232
24563
 
24233
- // src/client/types/com/atproto/identity/updateHandle.ts
24234
- var updateHandle_exports = {};
24235
- __export(updateHandle_exports, {
24564
+ // src/client/types/com/atproto/identity/requestPlcOperationSignature.ts
24565
+ var requestPlcOperationSignature_exports = {};
24566
+ __export(requestPlcOperationSignature_exports, {
24236
24567
  toKnownErr: () => toKnownErr25
24237
24568
  });
24238
24569
  function toKnownErr25(e) {
@@ -24241,9 +24572,9 @@ function toKnownErr25(e) {
24241
24572
  return e;
24242
24573
  }
24243
24574
 
24244
- // src/client/types/com/atproto/label/queryLabels.ts
24245
- var queryLabels_exports = {};
24246
- __export(queryLabels_exports, {
24575
+ // src/client/types/com/atproto/identity/resolveHandle.ts
24576
+ var resolveHandle_exports = {};
24577
+ __export(resolveHandle_exports, {
24247
24578
  toKnownErr: () => toKnownErr26
24248
24579
  });
24249
24580
  function toKnownErr26(e) {
@@ -24252,9 +24583,9 @@ function toKnownErr26(e) {
24252
24583
  return e;
24253
24584
  }
24254
24585
 
24255
- // src/client/types/com/atproto/moderation/createReport.ts
24256
- var createReport_exports = {};
24257
- __export(createReport_exports, {
24586
+ // src/client/types/com/atproto/identity/signPlcOperation.ts
24587
+ var signPlcOperation_exports = {};
24588
+ __export(signPlcOperation_exports, {
24258
24589
  toKnownErr: () => toKnownErr27
24259
24590
  });
24260
24591
  function toKnownErr27(e) {
@@ -24263,17 +24594,61 @@ function toKnownErr27(e) {
24263
24594
  return e;
24264
24595
  }
24265
24596
 
24266
- // src/client/types/com/atproto/repo/applyWrites.ts
24267
- var applyWrites_exports = {};
24268
- __export(applyWrites_exports, {
24269
- InvalidSwapError: () => InvalidSwapError,
24270
- isCreate: () => isCreate,
24271
- isDelete: () => isDelete,
24272
- isUpdate: () => isUpdate,
24273
- toKnownErr: () => toKnownErr28,
24274
- validateCreate: () => validateCreate,
24275
- validateDelete: () => validateDelete,
24276
- validateUpdate: () => validateUpdate
24597
+ // src/client/types/com/atproto/identity/submitPlcOperation.ts
24598
+ var submitPlcOperation_exports = {};
24599
+ __export(submitPlcOperation_exports, {
24600
+ toKnownErr: () => toKnownErr28
24601
+ });
24602
+ function toKnownErr28(e) {
24603
+ if (e instanceof XRPCError) {
24604
+ }
24605
+ return e;
24606
+ }
24607
+
24608
+ // src/client/types/com/atproto/identity/updateHandle.ts
24609
+ var updateHandle_exports = {};
24610
+ __export(updateHandle_exports, {
24611
+ toKnownErr: () => toKnownErr29
24612
+ });
24613
+ function toKnownErr29(e) {
24614
+ if (e instanceof XRPCError) {
24615
+ }
24616
+ return e;
24617
+ }
24618
+
24619
+ // src/client/types/com/atproto/label/queryLabels.ts
24620
+ var queryLabels_exports = {};
24621
+ __export(queryLabels_exports, {
24622
+ toKnownErr: () => toKnownErr30
24623
+ });
24624
+ function toKnownErr30(e) {
24625
+ if (e instanceof XRPCError) {
24626
+ }
24627
+ return e;
24628
+ }
24629
+
24630
+ // src/client/types/com/atproto/moderation/createReport.ts
24631
+ var createReport_exports = {};
24632
+ __export(createReport_exports, {
24633
+ toKnownErr: () => toKnownErr31
24634
+ });
24635
+ function toKnownErr31(e) {
24636
+ if (e instanceof XRPCError) {
24637
+ }
24638
+ return e;
24639
+ }
24640
+
24641
+ // src/client/types/com/atproto/repo/applyWrites.ts
24642
+ var applyWrites_exports = {};
24643
+ __export(applyWrites_exports, {
24644
+ InvalidSwapError: () => InvalidSwapError,
24645
+ isCreate: () => isCreate,
24646
+ isDelete: () => isDelete,
24647
+ isUpdate: () => isUpdate,
24648
+ toKnownErr: () => toKnownErr32,
24649
+ validateCreate: () => validateCreate,
24650
+ validateDelete: () => validateDelete,
24651
+ validateUpdate: () => validateUpdate
24277
24652
  });
24278
24653
 
24279
24654
  // src/client/util.ts
@@ -24290,7 +24665,7 @@ var InvalidSwapError = class extends XRPCError {
24290
24665
  super(src2.status, src2.error, src2.message, src2.headers);
24291
24666
  }
24292
24667
  };
24293
- function toKnownErr28(e) {
24668
+ function toKnownErr32(e) {
24294
24669
  if (e instanceof XRPCError) {
24295
24670
  if (e.error === "InvalidSwap")
24296
24671
  return new InvalidSwapError(e);
@@ -24320,14 +24695,14 @@ function validateDelete(v) {
24320
24695
  var createRecord_exports = {};
24321
24696
  __export(createRecord_exports, {
24322
24697
  InvalidSwapError: () => InvalidSwapError2,
24323
- toKnownErr: () => toKnownErr29
24698
+ toKnownErr: () => toKnownErr33
24324
24699
  });
24325
24700
  var InvalidSwapError2 = class extends XRPCError {
24326
24701
  constructor(src2) {
24327
24702
  super(src2.status, src2.error, src2.message, src2.headers);
24328
24703
  }
24329
24704
  };
24330
- function toKnownErr29(e) {
24705
+ function toKnownErr33(e) {
24331
24706
  if (e instanceof XRPCError) {
24332
24707
  if (e.error === "InvalidSwap")
24333
24708
  return new InvalidSwapError2(e);
@@ -24339,14 +24714,14 @@ function toKnownErr29(e) {
24339
24714
  var deleteRecord_exports = {};
24340
24715
  __export(deleteRecord_exports, {
24341
24716
  InvalidSwapError: () => InvalidSwapError3,
24342
- toKnownErr: () => toKnownErr30
24717
+ toKnownErr: () => toKnownErr34
24343
24718
  });
24344
24719
  var InvalidSwapError3 = class extends XRPCError {
24345
24720
  constructor(src2) {
24346
24721
  super(src2.status, src2.error, src2.message, src2.headers);
24347
24722
  }
24348
24723
  };
24349
- function toKnownErr30(e) {
24724
+ function toKnownErr34(e) {
24350
24725
  if (e instanceof XRPCError) {
24351
24726
  if (e.error === "InvalidSwap")
24352
24727
  return new InvalidSwapError3(e);
@@ -24357,9 +24732,9 @@ function toKnownErr30(e) {
24357
24732
  // src/client/types/com/atproto/repo/describeRepo.ts
24358
24733
  var describeRepo_exports = {};
24359
24734
  __export(describeRepo_exports, {
24360
- toKnownErr: () => toKnownErr31
24735
+ toKnownErr: () => toKnownErr35
24361
24736
  });
24362
- function toKnownErr31(e) {
24737
+ function toKnownErr35(e) {
24363
24738
  if (e instanceof XRPCError) {
24364
24739
  }
24365
24740
  return e;
@@ -24368,22 +24743,52 @@ function toKnownErr31(e) {
24368
24743
  // src/client/types/com/atproto/repo/getRecord.ts
24369
24744
  var getRecord_exports2 = {};
24370
24745
  __export(getRecord_exports2, {
24371
- toKnownErr: () => toKnownErr32
24746
+ toKnownErr: () => toKnownErr36
24372
24747
  });
24373
- function toKnownErr32(e) {
24748
+ function toKnownErr36(e) {
24749
+ if (e instanceof XRPCError) {
24750
+ }
24751
+ return e;
24752
+ }
24753
+
24754
+ // src/client/types/com/atproto/repo/importRepo.ts
24755
+ var importRepo_exports = {};
24756
+ __export(importRepo_exports, {
24757
+ toKnownErr: () => toKnownErr37
24758
+ });
24759
+ function toKnownErr37(e) {
24760
+ if (e instanceof XRPCError) {
24761
+ }
24762
+ return e;
24763
+ }
24764
+
24765
+ // src/client/types/com/atproto/repo/listMissingBlobs.ts
24766
+ var listMissingBlobs_exports = {};
24767
+ __export(listMissingBlobs_exports, {
24768
+ isRecordBlob: () => isRecordBlob,
24769
+ toKnownErr: () => toKnownErr38,
24770
+ validateRecordBlob: () => validateRecordBlob
24771
+ });
24772
+ function toKnownErr38(e) {
24374
24773
  if (e instanceof XRPCError) {
24375
24774
  }
24376
24775
  return e;
24377
24776
  }
24777
+ function isRecordBlob(v) {
24778
+ return isObj2(v) && hasProp2(v, "$type") && v.$type === "com.atproto.repo.listMissingBlobs#recordBlob";
24779
+ }
24780
+ function validateRecordBlob(v) {
24781
+ return lexicons.validate("com.atproto.repo.listMissingBlobs#recordBlob", v);
24782
+ }
24378
24783
 
24379
24784
  // src/client/types/com/atproto/repo/listRecords.ts
24380
24785
  var listRecords_exports = {};
24381
24786
  __export(listRecords_exports, {
24382
24787
  isRecord: () => isRecord,
24383
- toKnownErr: () => toKnownErr33,
24788
+ toKnownErr: () => toKnownErr39,
24384
24789
  validateRecord: () => validateRecord
24385
24790
  });
24386
- function toKnownErr33(e) {
24791
+ function toKnownErr39(e) {
24387
24792
  if (e instanceof XRPCError) {
24388
24793
  }
24389
24794
  return e;
@@ -24399,14 +24804,14 @@ function validateRecord(v) {
24399
24804
  var putRecord_exports = {};
24400
24805
  __export(putRecord_exports, {
24401
24806
  InvalidSwapError: () => InvalidSwapError4,
24402
- toKnownErr: () => toKnownErr34
24807
+ toKnownErr: () => toKnownErr40
24403
24808
  });
24404
24809
  var InvalidSwapError4 = class extends XRPCError {
24405
24810
  constructor(src2) {
24406
24811
  super(src2.status, src2.error, src2.message, src2.headers);
24407
24812
  }
24408
24813
  };
24409
- function toKnownErr34(e) {
24814
+ function toKnownErr40(e) {
24410
24815
  if (e instanceof XRPCError) {
24411
24816
  if (e.error === "InvalidSwap")
24412
24817
  return new InvalidSwapError4(e);
@@ -24417,9 +24822,31 @@ function toKnownErr34(e) {
24417
24822
  // src/client/types/com/atproto/repo/uploadBlob.ts
24418
24823
  var uploadBlob_exports = {};
24419
24824
  __export(uploadBlob_exports, {
24420
- toKnownErr: () => toKnownErr35
24825
+ toKnownErr: () => toKnownErr41
24421
24826
  });
24422
- function toKnownErr35(e) {
24827
+ function toKnownErr41(e) {
24828
+ if (e instanceof XRPCError) {
24829
+ }
24830
+ return e;
24831
+ }
24832
+
24833
+ // src/client/types/com/atproto/server/activateAccount.ts
24834
+ var activateAccount_exports = {};
24835
+ __export(activateAccount_exports, {
24836
+ toKnownErr: () => toKnownErr42
24837
+ });
24838
+ function toKnownErr42(e) {
24839
+ if (e instanceof XRPCError) {
24840
+ }
24841
+ return e;
24842
+ }
24843
+
24844
+ // src/client/types/com/atproto/server/checkAccountStatus.ts
24845
+ var checkAccountStatus_exports = {};
24846
+ __export(checkAccountStatus_exports, {
24847
+ toKnownErr: () => toKnownErr43
24848
+ });
24849
+ function toKnownErr43(e) {
24423
24850
  if (e instanceof XRPCError) {
24424
24851
  }
24425
24852
  return e;
@@ -24432,7 +24859,7 @@ __export(confirmEmail_exports, {
24432
24859
  ExpiredTokenError: () => ExpiredTokenError,
24433
24860
  InvalidEmailError: () => InvalidEmailError,
24434
24861
  InvalidTokenError: () => InvalidTokenError,
24435
- toKnownErr: () => toKnownErr36
24862
+ toKnownErr: () => toKnownErr44
24436
24863
  });
24437
24864
  var AccountNotFoundError = class extends XRPCError {
24438
24865
  constructor(src2) {
@@ -24454,7 +24881,7 @@ var InvalidEmailError = class extends XRPCError {
24454
24881
  super(src2.status, src2.error, src2.message, src2.headers);
24455
24882
  }
24456
24883
  };
24457
- function toKnownErr36(e) {
24884
+ function toKnownErr44(e) {
24458
24885
  if (e instanceof XRPCError) {
24459
24886
  if (e.error === "AccountNotFound")
24460
24887
  return new AccountNotFoundError(e);
@@ -24478,7 +24905,7 @@ __export(createAccount_exports, {
24478
24905
  InvalidPasswordError: () => InvalidPasswordError,
24479
24906
  UnresolvableDidError: () => UnresolvableDidError,
24480
24907
  UnsupportedDomainError: () => UnsupportedDomainError,
24481
- toKnownErr: () => toKnownErr37
24908
+ toKnownErr: () => toKnownErr45
24482
24909
  });
24483
24910
  var InvalidHandleError2 = class extends XRPCError {
24484
24911
  constructor(src2) {
@@ -24515,7 +24942,7 @@ var IncompatibleDidDocError = class extends XRPCError {
24515
24942
  super(src2.status, src2.error, src2.message, src2.headers);
24516
24943
  }
24517
24944
  };
24518
- function toKnownErr37(e) {
24945
+ function toKnownErr45(e) {
24519
24946
  if (e instanceof XRPCError) {
24520
24947
  if (e.error === "InvalidHandle")
24521
24948
  return new InvalidHandleError2(e);
@@ -24540,7 +24967,7 @@ var createAppPassword_exports = {};
24540
24967
  __export(createAppPassword_exports, {
24541
24968
  AccountTakedownError: () => AccountTakedownError,
24542
24969
  isAppPassword: () => isAppPassword,
24543
- toKnownErr: () => toKnownErr38,
24970
+ toKnownErr: () => toKnownErr46,
24544
24971
  validateAppPassword: () => validateAppPassword
24545
24972
  });
24546
24973
  var AccountTakedownError = class extends XRPCError {
@@ -24548,7 +24975,7 @@ var AccountTakedownError = class extends XRPCError {
24548
24975
  super(src2.status, src2.error, src2.message, src2.headers);
24549
24976
  }
24550
24977
  };
24551
- function toKnownErr38(e) {
24978
+ function toKnownErr46(e) {
24552
24979
  if (e instanceof XRPCError) {
24553
24980
  if (e.error === "AccountTakedown")
24554
24981
  return new AccountTakedownError(e);
@@ -24565,9 +24992,9 @@ function validateAppPassword(v) {
24565
24992
  // src/client/types/com/atproto/server/createInviteCode.ts
24566
24993
  var createInviteCode_exports = {};
24567
24994
  __export(createInviteCode_exports, {
24568
- toKnownErr: () => toKnownErr39
24995
+ toKnownErr: () => toKnownErr47
24569
24996
  });
24570
- function toKnownErr39(e) {
24997
+ function toKnownErr47(e) {
24571
24998
  if (e instanceof XRPCError) {
24572
24999
  }
24573
25000
  return e;
@@ -24577,10 +25004,10 @@ function toKnownErr39(e) {
24577
25004
  var createInviteCodes_exports = {};
24578
25005
  __export(createInviteCodes_exports, {
24579
25006
  isAccountCodes: () => isAccountCodes,
24580
- toKnownErr: () => toKnownErr40,
25007
+ toKnownErr: () => toKnownErr48,
24581
25008
  validateAccountCodes: () => validateAccountCodes
24582
25009
  });
24583
- function toKnownErr40(e) {
25010
+ function toKnownErr48(e) {
24584
25011
  if (e instanceof XRPCError) {
24585
25012
  }
24586
25013
  return e;
@@ -24596,14 +25023,14 @@ function validateAccountCodes(v) {
24596
25023
  var createSession_exports = {};
24597
25024
  __export(createSession_exports, {
24598
25025
  AccountTakedownError: () => AccountTakedownError2,
24599
- toKnownErr: () => toKnownErr41
25026
+ toKnownErr: () => toKnownErr49
24600
25027
  });
24601
25028
  var AccountTakedownError2 = class extends XRPCError {
24602
25029
  constructor(src2) {
24603
25030
  super(src2.status, src2.error, src2.message, src2.headers);
24604
25031
  }
24605
25032
  };
24606
- function toKnownErr41(e) {
25033
+ function toKnownErr49(e) {
24607
25034
  if (e instanceof XRPCError) {
24608
25035
  if (e.error === "AccountTakedown")
24609
25036
  return new AccountTakedownError2(e);
@@ -24611,12 +25038,23 @@ function toKnownErr41(e) {
24611
25038
  return e;
24612
25039
  }
24613
25040
 
25041
+ // src/client/types/com/atproto/server/deactivateAccount.ts
25042
+ var deactivateAccount_exports = {};
25043
+ __export(deactivateAccount_exports, {
25044
+ toKnownErr: () => toKnownErr50
25045
+ });
25046
+ function toKnownErr50(e) {
25047
+ if (e instanceof XRPCError) {
25048
+ }
25049
+ return e;
25050
+ }
25051
+
24614
25052
  // src/client/types/com/atproto/server/deleteAccount.ts
24615
25053
  var deleteAccount_exports2 = {};
24616
25054
  __export(deleteAccount_exports2, {
24617
25055
  ExpiredTokenError: () => ExpiredTokenError2,
24618
25056
  InvalidTokenError: () => InvalidTokenError2,
24619
- toKnownErr: () => toKnownErr42
25057
+ toKnownErr: () => toKnownErr51
24620
25058
  });
24621
25059
  var ExpiredTokenError2 = class extends XRPCError {
24622
25060
  constructor(src2) {
@@ -24628,7 +25066,7 @@ var InvalidTokenError2 = class extends XRPCError {
24628
25066
  super(src2.status, src2.error, src2.message, src2.headers);
24629
25067
  }
24630
25068
  };
24631
- function toKnownErr42(e) {
25069
+ function toKnownErr51(e) {
24632
25070
  if (e instanceof XRPCError) {
24633
25071
  if (e.error === "ExpiredToken")
24634
25072
  return new ExpiredTokenError2(e);
@@ -24641,9 +25079,9 @@ function toKnownErr42(e) {
24641
25079
  // src/client/types/com/atproto/server/deleteSession.ts
24642
25080
  var deleteSession_exports = {};
24643
25081
  __export(deleteSession_exports, {
24644
- toKnownErr: () => toKnownErr43
25082
+ toKnownErr: () => toKnownErr52
24645
25083
  });
24646
- function toKnownErr43(e) {
25084
+ function toKnownErr52(e) {
24647
25085
  if (e instanceof XRPCError) {
24648
25086
  }
24649
25087
  return e;
@@ -24653,10 +25091,10 @@ function toKnownErr43(e) {
24653
25091
  var describeServer_exports = {};
24654
25092
  __export(describeServer_exports, {
24655
25093
  isLinks: () => isLinks,
24656
- toKnownErr: () => toKnownErr44,
25094
+ toKnownErr: () => toKnownErr53,
24657
25095
  validateLinks: () => validateLinks
24658
25096
  });
24659
- function toKnownErr44(e) {
25097
+ function toKnownErr53(e) {
24660
25098
  if (e instanceof XRPCError) {
24661
25099
  }
24662
25100
  return e;
@@ -24672,14 +25110,14 @@ function validateLinks(v) {
24672
25110
  var getAccountInviteCodes_exports = {};
24673
25111
  __export(getAccountInviteCodes_exports, {
24674
25112
  DuplicateCreateError: () => DuplicateCreateError,
24675
- toKnownErr: () => toKnownErr45
25113
+ toKnownErr: () => toKnownErr54
24676
25114
  });
24677
25115
  var DuplicateCreateError = class extends XRPCError {
24678
25116
  constructor(src2) {
24679
25117
  super(src2.status, src2.error, src2.message, src2.headers);
24680
25118
  }
24681
25119
  };
24682
- function toKnownErr45(e) {
25120
+ function toKnownErr54(e) {
24683
25121
  if (e instanceof XRPCError) {
24684
25122
  if (e.error === "DuplicateCreate")
24685
25123
  return new DuplicateCreateError(e);
@@ -24687,12 +25125,23 @@ function toKnownErr45(e) {
24687
25125
  return e;
24688
25126
  }
24689
25127
 
25128
+ // src/client/types/com/atproto/server/getServiceAuth.ts
25129
+ var getServiceAuth_exports = {};
25130
+ __export(getServiceAuth_exports, {
25131
+ toKnownErr: () => toKnownErr55
25132
+ });
25133
+ function toKnownErr55(e) {
25134
+ if (e instanceof XRPCError) {
25135
+ }
25136
+ return e;
25137
+ }
25138
+
24690
25139
  // src/client/types/com/atproto/server/getSession.ts
24691
25140
  var getSession_exports = {};
24692
25141
  __export(getSession_exports, {
24693
- toKnownErr: () => toKnownErr46
25142
+ toKnownErr: () => toKnownErr56
24694
25143
  });
24695
- function toKnownErr46(e) {
25144
+ function toKnownErr56(e) {
24696
25145
  if (e instanceof XRPCError) {
24697
25146
  }
24698
25147
  return e;
@@ -24703,7 +25152,7 @@ var listAppPasswords_exports = {};
24703
25152
  __export(listAppPasswords_exports, {
24704
25153
  AccountTakedownError: () => AccountTakedownError3,
24705
25154
  isAppPassword: () => isAppPassword2,
24706
- toKnownErr: () => toKnownErr47,
25155
+ toKnownErr: () => toKnownErr57,
24707
25156
  validateAppPassword: () => validateAppPassword2
24708
25157
  });
24709
25158
  var AccountTakedownError3 = class extends XRPCError {
@@ -24711,7 +25160,7 @@ var AccountTakedownError3 = class extends XRPCError {
24711
25160
  super(src2.status, src2.error, src2.message, src2.headers);
24712
25161
  }
24713
25162
  };
24714
- function toKnownErr47(e) {
25163
+ function toKnownErr57(e) {
24715
25164
  if (e instanceof XRPCError) {
24716
25165
  if (e.error === "AccountTakedown")
24717
25166
  return new AccountTakedownError3(e);
@@ -24729,14 +25178,14 @@ function validateAppPassword2(v) {
24729
25178
  var refreshSession_exports = {};
24730
25179
  __export(refreshSession_exports, {
24731
25180
  AccountTakedownError: () => AccountTakedownError4,
24732
- toKnownErr: () => toKnownErr48
25181
+ toKnownErr: () => toKnownErr58
24733
25182
  });
24734
25183
  var AccountTakedownError4 = class extends XRPCError {
24735
25184
  constructor(src2) {
24736
25185
  super(src2.status, src2.error, src2.message, src2.headers);
24737
25186
  }
24738
25187
  };
24739
- function toKnownErr48(e) {
25188
+ function toKnownErr58(e) {
24740
25189
  if (e instanceof XRPCError) {
24741
25190
  if (e.error === "AccountTakedown")
24742
25191
  return new AccountTakedownError4(e);
@@ -24747,9 +25196,9 @@ function toKnownErr48(e) {
24747
25196
  // src/client/types/com/atproto/server/requestAccountDelete.ts
24748
25197
  var requestAccountDelete_exports = {};
24749
25198
  __export(requestAccountDelete_exports, {
24750
- toKnownErr: () => toKnownErr49
25199
+ toKnownErr: () => toKnownErr59
24751
25200
  });
24752
- function toKnownErr49(e) {
25201
+ function toKnownErr59(e) {
24753
25202
  if (e instanceof XRPCError) {
24754
25203
  }
24755
25204
  return e;
@@ -24758,9 +25207,9 @@ function toKnownErr49(e) {
24758
25207
  // src/client/types/com/atproto/server/requestEmailConfirmation.ts
24759
25208
  var requestEmailConfirmation_exports = {};
24760
25209
  __export(requestEmailConfirmation_exports, {
24761
- toKnownErr: () => toKnownErr50
25210
+ toKnownErr: () => toKnownErr60
24762
25211
  });
24763
- function toKnownErr50(e) {
25212
+ function toKnownErr60(e) {
24764
25213
  if (e instanceof XRPCError) {
24765
25214
  }
24766
25215
  return e;
@@ -24769,9 +25218,9 @@ function toKnownErr50(e) {
24769
25218
  // src/client/types/com/atproto/server/requestEmailUpdate.ts
24770
25219
  var requestEmailUpdate_exports = {};
24771
25220
  __export(requestEmailUpdate_exports, {
24772
- toKnownErr: () => toKnownErr51
25221
+ toKnownErr: () => toKnownErr61
24773
25222
  });
24774
- function toKnownErr51(e) {
25223
+ function toKnownErr61(e) {
24775
25224
  if (e instanceof XRPCError) {
24776
25225
  }
24777
25226
  return e;
@@ -24780,9 +25229,9 @@ function toKnownErr51(e) {
24780
25229
  // src/client/types/com/atproto/server/requestPasswordReset.ts
24781
25230
  var requestPasswordReset_exports = {};
24782
25231
  __export(requestPasswordReset_exports, {
24783
- toKnownErr: () => toKnownErr52
25232
+ toKnownErr: () => toKnownErr62
24784
25233
  });
24785
- function toKnownErr52(e) {
25234
+ function toKnownErr62(e) {
24786
25235
  if (e instanceof XRPCError) {
24787
25236
  }
24788
25237
  return e;
@@ -24791,9 +25240,9 @@ function toKnownErr52(e) {
24791
25240
  // src/client/types/com/atproto/server/reserveSigningKey.ts
24792
25241
  var reserveSigningKey_exports = {};
24793
25242
  __export(reserveSigningKey_exports, {
24794
- toKnownErr: () => toKnownErr53
25243
+ toKnownErr: () => toKnownErr63
24795
25244
  });
24796
- function toKnownErr53(e) {
25245
+ function toKnownErr63(e) {
24797
25246
  if (e instanceof XRPCError) {
24798
25247
  }
24799
25248
  return e;
@@ -24804,7 +25253,7 @@ var resetPassword_exports = {};
24804
25253
  __export(resetPassword_exports, {
24805
25254
  ExpiredTokenError: () => ExpiredTokenError3,
24806
25255
  InvalidTokenError: () => InvalidTokenError3,
24807
- toKnownErr: () => toKnownErr54
25256
+ toKnownErr: () => toKnownErr64
24808
25257
  });
24809
25258
  var ExpiredTokenError3 = class extends XRPCError {
24810
25259
  constructor(src2) {
@@ -24816,7 +25265,7 @@ var InvalidTokenError3 = class extends XRPCError {
24816
25265
  super(src2.status, src2.error, src2.message, src2.headers);
24817
25266
  }
24818
25267
  };
24819
- function toKnownErr54(e) {
25268
+ function toKnownErr64(e) {
24820
25269
  if (e instanceof XRPCError) {
24821
25270
  if (e.error === "ExpiredToken")
24822
25271
  return new ExpiredTokenError3(e);
@@ -24829,9 +25278,9 @@ function toKnownErr54(e) {
24829
25278
  // src/client/types/com/atproto/server/revokeAppPassword.ts
24830
25279
  var revokeAppPassword_exports = {};
24831
25280
  __export(revokeAppPassword_exports, {
24832
- toKnownErr: () => toKnownErr55
25281
+ toKnownErr: () => toKnownErr65
24833
25282
  });
24834
- function toKnownErr55(e) {
25283
+ function toKnownErr65(e) {
24835
25284
  if (e instanceof XRPCError) {
24836
25285
  }
24837
25286
  return e;
@@ -24843,7 +25292,7 @@ __export(updateEmail_exports, {
24843
25292
  ExpiredTokenError: () => ExpiredTokenError4,
24844
25293
  InvalidTokenError: () => InvalidTokenError4,
24845
25294
  TokenRequiredError: () => TokenRequiredError,
24846
- toKnownErr: () => toKnownErr56
25295
+ toKnownErr: () => toKnownErr66
24847
25296
  });
24848
25297
  var ExpiredTokenError4 = class extends XRPCError {
24849
25298
  constructor(src2) {
@@ -24860,7 +25309,7 @@ var TokenRequiredError = class extends XRPCError {
24860
25309
  super(src2.status, src2.error, src2.message, src2.headers);
24861
25310
  }
24862
25311
  };
24863
- function toKnownErr56(e) {
25312
+ function toKnownErr66(e) {
24864
25313
  if (e instanceof XRPCError) {
24865
25314
  if (e.error === "ExpiredToken")
24866
25315
  return new ExpiredTokenError4(e);
@@ -24875,9 +25324,9 @@ function toKnownErr56(e) {
24875
25324
  // src/client/types/com/atproto/sync/getBlob.ts
24876
25325
  var getBlob_exports = {};
24877
25326
  __export(getBlob_exports, {
24878
- toKnownErr: () => toKnownErr57
25327
+ toKnownErr: () => toKnownErr67
24879
25328
  });
24880
- function toKnownErr57(e) {
25329
+ function toKnownErr67(e) {
24881
25330
  if (e instanceof XRPCError) {
24882
25331
  }
24883
25332
  return e;
@@ -24886,9 +25335,9 @@ function toKnownErr57(e) {
24886
25335
  // src/client/types/com/atproto/sync/getBlocks.ts
24887
25336
  var getBlocks_exports = {};
24888
25337
  __export(getBlocks_exports, {
24889
- toKnownErr: () => toKnownErr58
25338
+ toKnownErr: () => toKnownErr68
24890
25339
  });
24891
- function toKnownErr58(e) {
25340
+ function toKnownErr68(e) {
24892
25341
  if (e instanceof XRPCError) {
24893
25342
  }
24894
25343
  return e;
@@ -24897,9 +25346,9 @@ function toKnownErr58(e) {
24897
25346
  // src/client/types/com/atproto/sync/getCheckout.ts
24898
25347
  var getCheckout_exports = {};
24899
25348
  __export(getCheckout_exports, {
24900
- toKnownErr: () => toKnownErr59
25349
+ toKnownErr: () => toKnownErr69
24901
25350
  });
24902
- function toKnownErr59(e) {
25351
+ function toKnownErr69(e) {
24903
25352
  if (e instanceof XRPCError) {
24904
25353
  }
24905
25354
  return e;
@@ -24909,14 +25358,14 @@ function toKnownErr59(e) {
24909
25358
  var getHead_exports = {};
24910
25359
  __export(getHead_exports, {
24911
25360
  HeadNotFoundError: () => HeadNotFoundError,
24912
- toKnownErr: () => toKnownErr60
25361
+ toKnownErr: () => toKnownErr70
24913
25362
  });
24914
25363
  var HeadNotFoundError = class extends XRPCError {
24915
25364
  constructor(src2) {
24916
25365
  super(src2.status, src2.error, src2.message, src2.headers);
24917
25366
  }
24918
25367
  };
24919
- function toKnownErr60(e) {
25368
+ function toKnownErr70(e) {
24920
25369
  if (e instanceof XRPCError) {
24921
25370
  if (e.error === "HeadNotFound")
24922
25371
  return new HeadNotFoundError(e);
@@ -24928,14 +25377,14 @@ function toKnownErr60(e) {
24928
25377
  var getLatestCommit_exports = {};
24929
25378
  __export(getLatestCommit_exports, {
24930
25379
  RepoNotFoundError: () => RepoNotFoundError2,
24931
- toKnownErr: () => toKnownErr61
25380
+ toKnownErr: () => toKnownErr71
24932
25381
  });
24933
25382
  var RepoNotFoundError2 = class extends XRPCError {
24934
25383
  constructor(src2) {
24935
25384
  super(src2.status, src2.error, src2.message, src2.headers);
24936
25385
  }
24937
25386
  };
24938
- function toKnownErr61(e) {
25387
+ function toKnownErr71(e) {
24939
25388
  if (e instanceof XRPCError) {
24940
25389
  if (e.error === "RepoNotFound")
24941
25390
  return new RepoNotFoundError2(e);
@@ -24946,9 +25395,9 @@ function toKnownErr61(e) {
24946
25395
  // src/client/types/com/atproto/sync/getRecord.ts
24947
25396
  var getRecord_exports3 = {};
24948
25397
  __export(getRecord_exports3, {
24949
- toKnownErr: () => toKnownErr62
25398
+ toKnownErr: () => toKnownErr72
24950
25399
  });
24951
- function toKnownErr62(e) {
25400
+ function toKnownErr72(e) {
24952
25401
  if (e instanceof XRPCError) {
24953
25402
  }
24954
25403
  return e;
@@ -24957,9 +25406,9 @@ function toKnownErr62(e) {
24957
25406
  // src/client/types/com/atproto/sync/getRepo.ts
24958
25407
  var getRepo_exports2 = {};
24959
25408
  __export(getRepo_exports2, {
24960
- toKnownErr: () => toKnownErr63
25409
+ toKnownErr: () => toKnownErr73
24961
25410
  });
24962
- function toKnownErr63(e) {
25411
+ function toKnownErr73(e) {
24963
25412
  if (e instanceof XRPCError) {
24964
25413
  }
24965
25414
  return e;
@@ -24968,9 +25417,9 @@ function toKnownErr63(e) {
24968
25417
  // src/client/types/com/atproto/sync/listBlobs.ts
24969
25418
  var listBlobs_exports = {};
24970
25419
  __export(listBlobs_exports, {
24971
- toKnownErr: () => toKnownErr64
25420
+ toKnownErr: () => toKnownErr74
24972
25421
  });
24973
- function toKnownErr64(e) {
25422
+ function toKnownErr74(e) {
24974
25423
  if (e instanceof XRPCError) {
24975
25424
  }
24976
25425
  return e;
@@ -24980,10 +25429,10 @@ function toKnownErr64(e) {
24980
25429
  var listRepos_exports = {};
24981
25430
  __export(listRepos_exports, {
24982
25431
  isRepo: () => isRepo,
24983
- toKnownErr: () => toKnownErr65,
25432
+ toKnownErr: () => toKnownErr75,
24984
25433
  validateRepo: () => validateRepo
24985
25434
  });
24986
- function toKnownErr65(e) {
25435
+ function toKnownErr75(e) {
24987
25436
  if (e instanceof XRPCError) {
24988
25437
  }
24989
25438
  return e;
@@ -24998,9 +25447,9 @@ function validateRepo(v) {
24998
25447
  // src/client/types/com/atproto/sync/notifyOfUpdate.ts
24999
25448
  var notifyOfUpdate_exports = {};
25000
25449
  __export(notifyOfUpdate_exports, {
25001
- toKnownErr: () => toKnownErr66
25450
+ toKnownErr: () => toKnownErr76
25002
25451
  });
25003
- function toKnownErr66(e) {
25452
+ function toKnownErr76(e) {
25004
25453
  if (e instanceof XRPCError) {
25005
25454
  }
25006
25455
  return e;
@@ -25009,9 +25458,9 @@ function toKnownErr66(e) {
25009
25458
  // src/client/types/com/atproto/sync/requestCrawl.ts
25010
25459
  var requestCrawl_exports = {};
25011
25460
  __export(requestCrawl_exports, {
25012
- toKnownErr: () => toKnownErr67
25461
+ toKnownErr: () => toKnownErr77
25013
25462
  });
25014
- function toKnownErr67(e) {
25463
+ function toKnownErr77(e) {
25015
25464
  if (e instanceof XRPCError) {
25016
25465
  }
25017
25466
  return e;
@@ -25020,9 +25469,9 @@ function toKnownErr67(e) {
25020
25469
  // src/client/types/com/atproto/temp/checkSignupQueue.ts
25021
25470
  var checkSignupQueue_exports = {};
25022
25471
  __export(checkSignupQueue_exports, {
25023
- toKnownErr: () => toKnownErr68
25472
+ toKnownErr: () => toKnownErr78
25024
25473
  });
25025
- function toKnownErr68(e) {
25474
+ function toKnownErr78(e) {
25026
25475
  if (e instanceof XRPCError) {
25027
25476
  }
25028
25477
  return e;
@@ -25031,31 +25480,9 @@ function toKnownErr68(e) {
25031
25480
  // src/client/types/com/atproto/temp/fetchLabels.ts
25032
25481
  var fetchLabels_exports = {};
25033
25482
  __export(fetchLabels_exports, {
25034
- toKnownErr: () => toKnownErr69
25035
- });
25036
- function toKnownErr69(e) {
25037
- if (e instanceof XRPCError) {
25038
- }
25039
- return e;
25040
- }
25041
-
25042
- // src/client/types/com/atproto/temp/importRepo.ts
25043
- var importRepo_exports = {};
25044
- __export(importRepo_exports, {
25045
- toKnownErr: () => toKnownErr70
25046
- });
25047
- function toKnownErr70(e) {
25048
- if (e instanceof XRPCError) {
25049
- }
25050
- return e;
25051
- }
25052
-
25053
- // src/client/types/com/atproto/temp/pushBlob.ts
25054
- var pushBlob_exports = {};
25055
- __export(pushBlob_exports, {
25056
- toKnownErr: () => toKnownErr71
25483
+ toKnownErr: () => toKnownErr79
25057
25484
  });
25058
- function toKnownErr71(e) {
25485
+ function toKnownErr79(e) {
25059
25486
  if (e instanceof XRPCError) {
25060
25487
  }
25061
25488
  return e;
@@ -25064,77 +25491,10 @@ function toKnownErr71(e) {
25064
25491
  // src/client/types/com/atproto/temp/requestPhoneVerification.ts
25065
25492
  var requestPhoneVerification_exports = {};
25066
25493
  __export(requestPhoneVerification_exports, {
25067
- toKnownErr: () => toKnownErr72
25068
- });
25069
- function toKnownErr72(e) {
25070
- if (e instanceof XRPCError) {
25071
- }
25072
- return e;
25073
- }
25074
-
25075
- // src/client/types/com/atproto/temp/transferAccount.ts
25076
- var transferAccount_exports = {};
25077
- __export(transferAccount_exports, {
25078
- HandleNotAvailableError: () => HandleNotAvailableError2,
25079
- IncompatibleDidDocError: () => IncompatibleDidDocError2,
25080
- InvalidHandleError: () => InvalidHandleError3,
25081
- InvalidInviteCodeError: () => InvalidInviteCodeError2,
25082
- InvalidPasswordError: () => InvalidPasswordError2,
25083
- UnresolvableDidError: () => UnresolvableDidError2,
25084
- UnsupportedDomainError: () => UnsupportedDomainError2,
25085
- toKnownErr: () => toKnownErr73
25494
+ toKnownErr: () => toKnownErr80
25086
25495
  });
25087
- var InvalidHandleError3 = class extends XRPCError {
25088
- constructor(src2) {
25089
- super(src2.status, src2.error, src2.message, src2.headers);
25090
- }
25091
- };
25092
- var InvalidPasswordError2 = class extends XRPCError {
25093
- constructor(src2) {
25094
- super(src2.status, src2.error, src2.message, src2.headers);
25095
- }
25096
- };
25097
- var InvalidInviteCodeError2 = class extends XRPCError {
25098
- constructor(src2) {
25099
- super(src2.status, src2.error, src2.message, src2.headers);
25100
- }
25101
- };
25102
- var HandleNotAvailableError2 = class extends XRPCError {
25103
- constructor(src2) {
25104
- super(src2.status, src2.error, src2.message, src2.headers);
25105
- }
25106
- };
25107
- var UnsupportedDomainError2 = class extends XRPCError {
25108
- constructor(src2) {
25109
- super(src2.status, src2.error, src2.message, src2.headers);
25110
- }
25111
- };
25112
- var UnresolvableDidError2 = class extends XRPCError {
25113
- constructor(src2) {
25114
- super(src2.status, src2.error, src2.message, src2.headers);
25115
- }
25116
- };
25117
- var IncompatibleDidDocError2 = class extends XRPCError {
25118
- constructor(src2) {
25119
- super(src2.status, src2.error, src2.message, src2.headers);
25120
- }
25121
- };
25122
- function toKnownErr73(e) {
25496
+ function toKnownErr80(e) {
25123
25497
  if (e instanceof XRPCError) {
25124
- if (e.error === "InvalidHandle")
25125
- return new InvalidHandleError3(e);
25126
- if (e.error === "InvalidPassword")
25127
- return new InvalidPasswordError2(e);
25128
- if (e.error === "InvalidInviteCode")
25129
- return new InvalidInviteCodeError2(e);
25130
- if (e.error === "HandleNotAvailable")
25131
- return new HandleNotAvailableError2(e);
25132
- if (e.error === "UnsupportedDomain")
25133
- return new UnsupportedDomainError2(e);
25134
- if (e.error === "UnresolvableDid")
25135
- return new UnresolvableDidError2(e);
25136
- if (e.error === "IncompatibleDidDoc")
25137
- return new IncompatibleDidDocError2(e);
25138
25498
  }
25139
25499
  return e;
25140
25500
  }
@@ -25142,9 +25502,9 @@ function toKnownErr73(e) {
25142
25502
  // src/client/types/app/bsky/actor/getPreferences.ts
25143
25503
  var getPreferences_exports = {};
25144
25504
  __export(getPreferences_exports, {
25145
- toKnownErr: () => toKnownErr74
25505
+ toKnownErr: () => toKnownErr81
25146
25506
  });
25147
- function toKnownErr74(e) {
25507
+ function toKnownErr81(e) {
25148
25508
  if (e instanceof XRPCError) {
25149
25509
  }
25150
25510
  return e;
@@ -25153,9 +25513,9 @@ function toKnownErr74(e) {
25153
25513
  // src/client/types/app/bsky/actor/getProfile.ts
25154
25514
  var getProfile_exports = {};
25155
25515
  __export(getProfile_exports, {
25156
- toKnownErr: () => toKnownErr75
25516
+ toKnownErr: () => toKnownErr82
25157
25517
  });
25158
- function toKnownErr75(e) {
25518
+ function toKnownErr82(e) {
25159
25519
  if (e instanceof XRPCError) {
25160
25520
  }
25161
25521
  return e;
@@ -25164,9 +25524,9 @@ function toKnownErr75(e) {
25164
25524
  // src/client/types/app/bsky/actor/getProfiles.ts
25165
25525
  var getProfiles_exports = {};
25166
25526
  __export(getProfiles_exports, {
25167
- toKnownErr: () => toKnownErr76
25527
+ toKnownErr: () => toKnownErr83
25168
25528
  });
25169
- function toKnownErr76(e) {
25529
+ function toKnownErr83(e) {
25170
25530
  if (e instanceof XRPCError) {
25171
25531
  }
25172
25532
  return e;
@@ -25175,9 +25535,9 @@ function toKnownErr76(e) {
25175
25535
  // src/client/types/app/bsky/actor/getSuggestions.ts
25176
25536
  var getSuggestions_exports = {};
25177
25537
  __export(getSuggestions_exports, {
25178
- toKnownErr: () => toKnownErr77
25538
+ toKnownErr: () => toKnownErr84
25179
25539
  });
25180
- function toKnownErr77(e) {
25540
+ function toKnownErr84(e) {
25181
25541
  if (e instanceof XRPCError) {
25182
25542
  }
25183
25543
  return e;
@@ -25186,9 +25546,9 @@ function toKnownErr77(e) {
25186
25546
  // src/client/types/app/bsky/actor/putPreferences.ts
25187
25547
  var putPreferences_exports = {};
25188
25548
  __export(putPreferences_exports, {
25189
- toKnownErr: () => toKnownErr78
25549
+ toKnownErr: () => toKnownErr85
25190
25550
  });
25191
- function toKnownErr78(e) {
25551
+ function toKnownErr85(e) {
25192
25552
  if (e instanceof XRPCError) {
25193
25553
  }
25194
25554
  return e;
@@ -25197,9 +25557,9 @@ function toKnownErr78(e) {
25197
25557
  // src/client/types/app/bsky/actor/searchActors.ts
25198
25558
  var searchActors_exports = {};
25199
25559
  __export(searchActors_exports, {
25200
- toKnownErr: () => toKnownErr79
25560
+ toKnownErr: () => toKnownErr86
25201
25561
  });
25202
- function toKnownErr79(e) {
25562
+ function toKnownErr86(e) {
25203
25563
  if (e instanceof XRPCError) {
25204
25564
  }
25205
25565
  return e;
@@ -25208,9 +25568,9 @@ function toKnownErr79(e) {
25208
25568
  // src/client/types/app/bsky/actor/searchActorsTypeahead.ts
25209
25569
  var searchActorsTypeahead_exports = {};
25210
25570
  __export(searchActorsTypeahead_exports, {
25211
- toKnownErr: () => toKnownErr80
25571
+ toKnownErr: () => toKnownErr87
25212
25572
  });
25213
- function toKnownErr80(e) {
25573
+ function toKnownErr87(e) {
25214
25574
  if (e instanceof XRPCError) {
25215
25575
  }
25216
25576
  return e;
@@ -25221,11 +25581,11 @@ var describeFeedGenerator_exports = {};
25221
25581
  __export(describeFeedGenerator_exports, {
25222
25582
  isFeed: () => isFeed,
25223
25583
  isLinks: () => isLinks2,
25224
- toKnownErr: () => toKnownErr81,
25584
+ toKnownErr: () => toKnownErr88,
25225
25585
  validateFeed: () => validateFeed,
25226
25586
  validateLinks: () => validateLinks2
25227
25587
  });
25228
- function toKnownErr81(e) {
25588
+ function toKnownErr88(e) {
25229
25589
  if (e instanceof XRPCError) {
25230
25590
  }
25231
25591
  return e;
@@ -25246,9 +25606,9 @@ function validateLinks2(v) {
25246
25606
  // src/client/types/app/bsky/feed/getActorFeeds.ts
25247
25607
  var getActorFeeds_exports = {};
25248
25608
  __export(getActorFeeds_exports, {
25249
- toKnownErr: () => toKnownErr82
25609
+ toKnownErr: () => toKnownErr89
25250
25610
  });
25251
- function toKnownErr82(e) {
25611
+ function toKnownErr89(e) {
25252
25612
  if (e instanceof XRPCError) {
25253
25613
  }
25254
25614
  return e;
@@ -25259,7 +25619,7 @@ var getActorLikes_exports = {};
25259
25619
  __export(getActorLikes_exports, {
25260
25620
  BlockedActorError: () => BlockedActorError,
25261
25621
  BlockedByActorError: () => BlockedByActorError,
25262
- toKnownErr: () => toKnownErr83
25622
+ toKnownErr: () => toKnownErr90
25263
25623
  });
25264
25624
  var BlockedActorError = class extends XRPCError {
25265
25625
  constructor(src2) {
@@ -25271,7 +25631,7 @@ var BlockedByActorError = class extends XRPCError {
25271
25631
  super(src2.status, src2.error, src2.message, src2.headers);
25272
25632
  }
25273
25633
  };
25274
- function toKnownErr83(e) {
25634
+ function toKnownErr90(e) {
25275
25635
  if (e instanceof XRPCError) {
25276
25636
  if (e.error === "BlockedActor")
25277
25637
  return new BlockedActorError(e);
@@ -25286,7 +25646,7 @@ var getAuthorFeed_exports = {};
25286
25646
  __export(getAuthorFeed_exports, {
25287
25647
  BlockedActorError: () => BlockedActorError2,
25288
25648
  BlockedByActorError: () => BlockedByActorError2,
25289
- toKnownErr: () => toKnownErr84
25649
+ toKnownErr: () => toKnownErr91
25290
25650
  });
25291
25651
  var BlockedActorError2 = class extends XRPCError {
25292
25652
  constructor(src2) {
@@ -25298,7 +25658,7 @@ var BlockedByActorError2 = class extends XRPCError {
25298
25658
  super(src2.status, src2.error, src2.message, src2.headers);
25299
25659
  }
25300
25660
  };
25301
- function toKnownErr84(e) {
25661
+ function toKnownErr91(e) {
25302
25662
  if (e instanceof XRPCError) {
25303
25663
  if (e.error === "BlockedActor")
25304
25664
  return new BlockedActorError2(e);
@@ -25312,14 +25672,14 @@ function toKnownErr84(e) {
25312
25672
  var getFeed_exports = {};
25313
25673
  __export(getFeed_exports, {
25314
25674
  UnknownFeedError: () => UnknownFeedError,
25315
- toKnownErr: () => toKnownErr85
25675
+ toKnownErr: () => toKnownErr92
25316
25676
  });
25317
25677
  var UnknownFeedError = class extends XRPCError {
25318
25678
  constructor(src2) {
25319
25679
  super(src2.status, src2.error, src2.message, src2.headers);
25320
25680
  }
25321
25681
  };
25322
- function toKnownErr85(e) {
25682
+ function toKnownErr92(e) {
25323
25683
  if (e instanceof XRPCError) {
25324
25684
  if (e.error === "UnknownFeed")
25325
25685
  return new UnknownFeedError(e);
@@ -25330,9 +25690,9 @@ function toKnownErr85(e) {
25330
25690
  // src/client/types/app/bsky/feed/getFeedGenerator.ts
25331
25691
  var getFeedGenerator_exports = {};
25332
25692
  __export(getFeedGenerator_exports, {
25333
- toKnownErr: () => toKnownErr86
25693
+ toKnownErr: () => toKnownErr93
25334
25694
  });
25335
- function toKnownErr86(e) {
25695
+ function toKnownErr93(e) {
25336
25696
  if (e instanceof XRPCError) {
25337
25697
  }
25338
25698
  return e;
@@ -25341,9 +25701,9 @@ function toKnownErr86(e) {
25341
25701
  // src/client/types/app/bsky/feed/getFeedGenerators.ts
25342
25702
  var getFeedGenerators_exports = {};
25343
25703
  __export(getFeedGenerators_exports, {
25344
- toKnownErr: () => toKnownErr87
25704
+ toKnownErr: () => toKnownErr94
25345
25705
  });
25346
- function toKnownErr87(e) {
25706
+ function toKnownErr94(e) {
25347
25707
  if (e instanceof XRPCError) {
25348
25708
  }
25349
25709
  return e;
@@ -25353,14 +25713,14 @@ function toKnownErr87(e) {
25353
25713
  var getFeedSkeleton_exports = {};
25354
25714
  __export(getFeedSkeleton_exports, {
25355
25715
  UnknownFeedError: () => UnknownFeedError2,
25356
- toKnownErr: () => toKnownErr88
25716
+ toKnownErr: () => toKnownErr95
25357
25717
  });
25358
25718
  var UnknownFeedError2 = class extends XRPCError {
25359
25719
  constructor(src2) {
25360
25720
  super(src2.status, src2.error, src2.message, src2.headers);
25361
25721
  }
25362
25722
  };
25363
- function toKnownErr88(e) {
25723
+ function toKnownErr95(e) {
25364
25724
  if (e instanceof XRPCError) {
25365
25725
  if (e.error === "UnknownFeed")
25366
25726
  return new UnknownFeedError2(e);
@@ -25372,10 +25732,10 @@ function toKnownErr88(e) {
25372
25732
  var getLikes_exports = {};
25373
25733
  __export(getLikes_exports, {
25374
25734
  isLike: () => isLike,
25375
- toKnownErr: () => toKnownErr89,
25735
+ toKnownErr: () => toKnownErr96,
25376
25736
  validateLike: () => validateLike
25377
25737
  });
25378
- function toKnownErr89(e) {
25738
+ function toKnownErr96(e) {
25379
25739
  if (e instanceof XRPCError) {
25380
25740
  }
25381
25741
  return e;
@@ -25391,14 +25751,14 @@ function validateLike(v) {
25391
25751
  var getListFeed_exports = {};
25392
25752
  __export(getListFeed_exports, {
25393
25753
  UnknownListError: () => UnknownListError,
25394
- toKnownErr: () => toKnownErr90
25754
+ toKnownErr: () => toKnownErr97
25395
25755
  });
25396
25756
  var UnknownListError = class extends XRPCError {
25397
25757
  constructor(src2) {
25398
25758
  super(src2.status, src2.error, src2.message, src2.headers);
25399
25759
  }
25400
25760
  };
25401
- function toKnownErr90(e) {
25761
+ function toKnownErr97(e) {
25402
25762
  if (e instanceof XRPCError) {
25403
25763
  if (e.error === "UnknownList")
25404
25764
  return new UnknownListError(e);
@@ -25410,14 +25770,14 @@ function toKnownErr90(e) {
25410
25770
  var getPostThread_exports = {};
25411
25771
  __export(getPostThread_exports, {
25412
25772
  NotFoundError: () => NotFoundError,
25413
- toKnownErr: () => toKnownErr91
25773
+ toKnownErr: () => toKnownErr98
25414
25774
  });
25415
25775
  var NotFoundError = class extends XRPCError {
25416
25776
  constructor(src2) {
25417
25777
  super(src2.status, src2.error, src2.message, src2.headers);
25418
25778
  }
25419
25779
  };
25420
- function toKnownErr91(e) {
25780
+ function toKnownErr98(e) {
25421
25781
  if (e instanceof XRPCError) {
25422
25782
  if (e.error === "NotFound")
25423
25783
  return new NotFoundError(e);
@@ -25428,9 +25788,9 @@ function toKnownErr91(e) {
25428
25788
  // src/client/types/app/bsky/feed/getPosts.ts
25429
25789
  var getPosts_exports = {};
25430
25790
  __export(getPosts_exports, {
25431
- toKnownErr: () => toKnownErr92
25791
+ toKnownErr: () => toKnownErr99
25432
25792
  });
25433
- function toKnownErr92(e) {
25793
+ function toKnownErr99(e) {
25434
25794
  if (e instanceof XRPCError) {
25435
25795
  }
25436
25796
  return e;
@@ -25439,9 +25799,9 @@ function toKnownErr92(e) {
25439
25799
  // src/client/types/app/bsky/feed/getRepostedBy.ts
25440
25800
  var getRepostedBy_exports = {};
25441
25801
  __export(getRepostedBy_exports, {
25442
- toKnownErr: () => toKnownErr93
25802
+ toKnownErr: () => toKnownErr100
25443
25803
  });
25444
- function toKnownErr93(e) {
25804
+ function toKnownErr100(e) {
25445
25805
  if (e instanceof XRPCError) {
25446
25806
  }
25447
25807
  return e;
@@ -25450,9 +25810,9 @@ function toKnownErr93(e) {
25450
25810
  // src/client/types/app/bsky/feed/getSuggestedFeeds.ts
25451
25811
  var getSuggestedFeeds_exports = {};
25452
25812
  __export(getSuggestedFeeds_exports, {
25453
- toKnownErr: () => toKnownErr94
25813
+ toKnownErr: () => toKnownErr101
25454
25814
  });
25455
- function toKnownErr94(e) {
25815
+ function toKnownErr101(e) {
25456
25816
  if (e instanceof XRPCError) {
25457
25817
  }
25458
25818
  return e;
@@ -25461,9 +25821,9 @@ function toKnownErr94(e) {
25461
25821
  // src/client/types/app/bsky/feed/getTimeline.ts
25462
25822
  var getTimeline_exports = {};
25463
25823
  __export(getTimeline_exports, {
25464
- toKnownErr: () => toKnownErr95
25824
+ toKnownErr: () => toKnownErr102
25465
25825
  });
25466
- function toKnownErr95(e) {
25826
+ function toKnownErr102(e) {
25467
25827
  if (e instanceof XRPCError) {
25468
25828
  }
25469
25829
  return e;
@@ -25473,14 +25833,14 @@ function toKnownErr95(e) {
25473
25833
  var searchPosts_exports = {};
25474
25834
  __export(searchPosts_exports, {
25475
25835
  BadQueryStringError: () => BadQueryStringError,
25476
- toKnownErr: () => toKnownErr96
25836
+ toKnownErr: () => toKnownErr103
25477
25837
  });
25478
25838
  var BadQueryStringError = class extends XRPCError {
25479
25839
  constructor(src2) {
25480
25840
  super(src2.status, src2.error, src2.message, src2.headers);
25481
25841
  }
25482
25842
  };
25483
- function toKnownErr96(e) {
25843
+ function toKnownErr103(e) {
25484
25844
  if (e instanceof XRPCError) {
25485
25845
  if (e.error === "BadQueryString")
25486
25846
  return new BadQueryStringError(e);
@@ -25491,9 +25851,9 @@ function toKnownErr96(e) {
25491
25851
  // src/client/types/app/bsky/graph/getBlocks.ts
25492
25852
  var getBlocks_exports2 = {};
25493
25853
  __export(getBlocks_exports2, {
25494
- toKnownErr: () => toKnownErr97
25854
+ toKnownErr: () => toKnownErr104
25495
25855
  });
25496
- function toKnownErr97(e) {
25856
+ function toKnownErr104(e) {
25497
25857
  if (e instanceof XRPCError) {
25498
25858
  }
25499
25859
  return e;
@@ -25502,9 +25862,9 @@ function toKnownErr97(e) {
25502
25862
  // src/client/types/app/bsky/graph/getFollowers.ts
25503
25863
  var getFollowers_exports = {};
25504
25864
  __export(getFollowers_exports, {
25505
- toKnownErr: () => toKnownErr98
25865
+ toKnownErr: () => toKnownErr105
25506
25866
  });
25507
- function toKnownErr98(e) {
25867
+ function toKnownErr105(e) {
25508
25868
  if (e instanceof XRPCError) {
25509
25869
  }
25510
25870
  return e;
@@ -25513,9 +25873,9 @@ function toKnownErr98(e) {
25513
25873
  // src/client/types/app/bsky/graph/getFollows.ts
25514
25874
  var getFollows_exports = {};
25515
25875
  __export(getFollows_exports, {
25516
- toKnownErr: () => toKnownErr99
25876
+ toKnownErr: () => toKnownErr106
25517
25877
  });
25518
- function toKnownErr99(e) {
25878
+ function toKnownErr106(e) {
25519
25879
  if (e instanceof XRPCError) {
25520
25880
  }
25521
25881
  return e;
@@ -25524,9 +25884,9 @@ function toKnownErr99(e) {
25524
25884
  // src/client/types/app/bsky/graph/getList.ts
25525
25885
  var getList_exports = {};
25526
25886
  __export(getList_exports, {
25527
- toKnownErr: () => toKnownErr100
25887
+ toKnownErr: () => toKnownErr107
25528
25888
  });
25529
- function toKnownErr100(e) {
25889
+ function toKnownErr107(e) {
25530
25890
  if (e instanceof XRPCError) {
25531
25891
  }
25532
25892
  return e;
@@ -25535,9 +25895,9 @@ function toKnownErr100(e) {
25535
25895
  // src/client/types/app/bsky/graph/getListBlocks.ts
25536
25896
  var getListBlocks_exports = {};
25537
25897
  __export(getListBlocks_exports, {
25538
- toKnownErr: () => toKnownErr101
25898
+ toKnownErr: () => toKnownErr108
25539
25899
  });
25540
- function toKnownErr101(e) {
25900
+ function toKnownErr108(e) {
25541
25901
  if (e instanceof XRPCError) {
25542
25902
  }
25543
25903
  return e;
@@ -25546,9 +25906,9 @@ function toKnownErr101(e) {
25546
25906
  // src/client/types/app/bsky/graph/getListMutes.ts
25547
25907
  var getListMutes_exports = {};
25548
25908
  __export(getListMutes_exports, {
25549
- toKnownErr: () => toKnownErr102
25909
+ toKnownErr: () => toKnownErr109
25550
25910
  });
25551
- function toKnownErr102(e) {
25911
+ function toKnownErr109(e) {
25552
25912
  if (e instanceof XRPCError) {
25553
25913
  }
25554
25914
  return e;
@@ -25557,9 +25917,9 @@ function toKnownErr102(e) {
25557
25917
  // src/client/types/app/bsky/graph/getLists.ts
25558
25918
  var getLists_exports = {};
25559
25919
  __export(getLists_exports, {
25560
- toKnownErr: () => toKnownErr103
25920
+ toKnownErr: () => toKnownErr110
25561
25921
  });
25562
- function toKnownErr103(e) {
25922
+ function toKnownErr110(e) {
25563
25923
  if (e instanceof XRPCError) {
25564
25924
  }
25565
25925
  return e;
@@ -25568,9 +25928,9 @@ function toKnownErr103(e) {
25568
25928
  // src/client/types/app/bsky/graph/getMutes.ts
25569
25929
  var getMutes_exports = {};
25570
25930
  __export(getMutes_exports, {
25571
- toKnownErr: () => toKnownErr104
25931
+ toKnownErr: () => toKnownErr111
25572
25932
  });
25573
- function toKnownErr104(e) {
25933
+ function toKnownErr111(e) {
25574
25934
  if (e instanceof XRPCError) {
25575
25935
  }
25576
25936
  return e;
@@ -25580,14 +25940,14 @@ function toKnownErr104(e) {
25580
25940
  var getRelationships_exports = {};
25581
25941
  __export(getRelationships_exports, {
25582
25942
  ActorNotFoundError: () => ActorNotFoundError,
25583
- toKnownErr: () => toKnownErr105
25943
+ toKnownErr: () => toKnownErr112
25584
25944
  });
25585
25945
  var ActorNotFoundError = class extends XRPCError {
25586
25946
  constructor(src2) {
25587
25947
  super(src2.status, src2.error, src2.message, src2.headers);
25588
25948
  }
25589
25949
  };
25590
- function toKnownErr105(e) {
25950
+ function toKnownErr112(e) {
25591
25951
  if (e instanceof XRPCError) {
25592
25952
  if (e.error === "ActorNotFound")
25593
25953
  return new ActorNotFoundError(e);
@@ -25598,9 +25958,9 @@ function toKnownErr105(e) {
25598
25958
  // src/client/types/app/bsky/graph/getSuggestedFollowsByActor.ts
25599
25959
  var getSuggestedFollowsByActor_exports = {};
25600
25960
  __export(getSuggestedFollowsByActor_exports, {
25601
- toKnownErr: () => toKnownErr106
25961
+ toKnownErr: () => toKnownErr113
25602
25962
  });
25603
- function toKnownErr106(e) {
25963
+ function toKnownErr113(e) {
25604
25964
  if (e instanceof XRPCError) {
25605
25965
  }
25606
25966
  return e;
@@ -25609,9 +25969,9 @@ function toKnownErr106(e) {
25609
25969
  // src/client/types/app/bsky/graph/muteActor.ts
25610
25970
  var muteActor_exports = {};
25611
25971
  __export(muteActor_exports, {
25612
- toKnownErr: () => toKnownErr107
25972
+ toKnownErr: () => toKnownErr114
25613
25973
  });
25614
- function toKnownErr107(e) {
25974
+ function toKnownErr114(e) {
25615
25975
  if (e instanceof XRPCError) {
25616
25976
  }
25617
25977
  return e;
@@ -25620,9 +25980,9 @@ function toKnownErr107(e) {
25620
25980
  // src/client/types/app/bsky/graph/muteActorList.ts
25621
25981
  var muteActorList_exports = {};
25622
25982
  __export(muteActorList_exports, {
25623
- toKnownErr: () => toKnownErr108
25983
+ toKnownErr: () => toKnownErr115
25624
25984
  });
25625
- function toKnownErr108(e) {
25985
+ function toKnownErr115(e) {
25626
25986
  if (e instanceof XRPCError) {
25627
25987
  }
25628
25988
  return e;
@@ -25631,9 +25991,9 @@ function toKnownErr108(e) {
25631
25991
  // src/client/types/app/bsky/graph/unmuteActor.ts
25632
25992
  var unmuteActor_exports = {};
25633
25993
  __export(unmuteActor_exports, {
25634
- toKnownErr: () => toKnownErr109
25994
+ toKnownErr: () => toKnownErr116
25635
25995
  });
25636
- function toKnownErr109(e) {
25996
+ function toKnownErr116(e) {
25637
25997
  if (e instanceof XRPCError) {
25638
25998
  }
25639
25999
  return e;
@@ -25642,9 +26002,9 @@ function toKnownErr109(e) {
25642
26002
  // src/client/types/app/bsky/graph/unmuteActorList.ts
25643
26003
  var unmuteActorList_exports = {};
25644
26004
  __export(unmuteActorList_exports, {
25645
- toKnownErr: () => toKnownErr110
26005
+ toKnownErr: () => toKnownErr117
25646
26006
  });
25647
- function toKnownErr110(e) {
26007
+ function toKnownErr117(e) {
25648
26008
  if (e instanceof XRPCError) {
25649
26009
  }
25650
26010
  return e;
@@ -25653,9 +26013,9 @@ function toKnownErr110(e) {
25653
26013
  // src/client/types/app/bsky/notification/getUnreadCount.ts
25654
26014
  var getUnreadCount_exports = {};
25655
26015
  __export(getUnreadCount_exports, {
25656
- toKnownErr: () => toKnownErr111
26016
+ toKnownErr: () => toKnownErr118
25657
26017
  });
25658
- function toKnownErr111(e) {
26018
+ function toKnownErr118(e) {
25659
26019
  if (e instanceof XRPCError) {
25660
26020
  }
25661
26021
  return e;
@@ -25665,10 +26025,10 @@ function toKnownErr111(e) {
25665
26025
  var listNotifications_exports = {};
25666
26026
  __export(listNotifications_exports, {
25667
26027
  isNotification: () => isNotification,
25668
- toKnownErr: () => toKnownErr112,
26028
+ toKnownErr: () => toKnownErr119,
25669
26029
  validateNotification: () => validateNotification
25670
26030
  });
25671
- function toKnownErr112(e) {
26031
+ function toKnownErr119(e) {
25672
26032
  if (e instanceof XRPCError) {
25673
26033
  }
25674
26034
  return e;
@@ -25683,9 +26043,9 @@ function validateNotification(v) {
25683
26043
  // src/client/types/app/bsky/notification/registerPush.ts
25684
26044
  var registerPush_exports = {};
25685
26045
  __export(registerPush_exports, {
25686
- toKnownErr: () => toKnownErr113
26046
+ toKnownErr: () => toKnownErr120
25687
26047
  });
25688
- function toKnownErr113(e) {
26048
+ function toKnownErr120(e) {
25689
26049
  if (e instanceof XRPCError) {
25690
26050
  }
25691
26051
  return e;
@@ -25694,9 +26054,9 @@ function toKnownErr113(e) {
25694
26054
  // src/client/types/app/bsky/notification/updateSeen.ts
25695
26055
  var updateSeen_exports = {};
25696
26056
  __export(updateSeen_exports, {
25697
- toKnownErr: () => toKnownErr114
26057
+ toKnownErr: () => toKnownErr121
25698
26058
  });
25699
- function toKnownErr114(e) {
26059
+ function toKnownErr121(e) {
25700
26060
  if (e instanceof XRPCError) {
25701
26061
  }
25702
26062
  return e;
@@ -25705,9 +26065,9 @@ function toKnownErr114(e) {
25705
26065
  // src/client/types/app/bsky/unspecced/getPopularFeedGenerators.ts
25706
26066
  var getPopularFeedGenerators_exports = {};
25707
26067
  __export(getPopularFeedGenerators_exports, {
25708
- toKnownErr: () => toKnownErr115
26068
+ toKnownErr: () => toKnownErr122
25709
26069
  });
25710
- function toKnownErr115(e) {
26070
+ function toKnownErr122(e) {
25711
26071
  if (e instanceof XRPCError) {
25712
26072
  }
25713
26073
  return e;
@@ -25717,10 +26077,10 @@ function toKnownErr115(e) {
25717
26077
  var getTaggedSuggestions_exports = {};
25718
26078
  __export(getTaggedSuggestions_exports, {
25719
26079
  isSuggestion: () => isSuggestion,
25720
- toKnownErr: () => toKnownErr116,
26080
+ toKnownErr: () => toKnownErr123,
25721
26081
  validateSuggestion: () => validateSuggestion
25722
26082
  });
25723
- function toKnownErr116(e) {
26083
+ function toKnownErr123(e) {
25724
26084
  if (e instanceof XRPCError) {
25725
26085
  }
25726
26086
  return e;
@@ -25736,14 +26096,14 @@ function validateSuggestion(v) {
25736
26096
  var searchActorsSkeleton_exports = {};
25737
26097
  __export(searchActorsSkeleton_exports, {
25738
26098
  BadQueryStringError: () => BadQueryStringError2,
25739
- toKnownErr: () => toKnownErr117
26099
+ toKnownErr: () => toKnownErr124
25740
26100
  });
25741
26101
  var BadQueryStringError2 = class extends XRPCError {
25742
26102
  constructor(src2) {
25743
26103
  super(src2.status, src2.error, src2.message, src2.headers);
25744
26104
  }
25745
26105
  };
25746
- function toKnownErr117(e) {
26106
+ function toKnownErr124(e) {
25747
26107
  if (e instanceof XRPCError) {
25748
26108
  if (e.error === "BadQueryString")
25749
26109
  return new BadQueryStringError2(e);
@@ -25755,14 +26115,14 @@ function toKnownErr117(e) {
25755
26115
  var searchPostsSkeleton_exports = {};
25756
26116
  __export(searchPostsSkeleton_exports, {
25757
26117
  BadQueryStringError: () => BadQueryStringError3,
25758
- toKnownErr: () => toKnownErr118
26118
+ toKnownErr: () => toKnownErr125
25759
26119
  });
25760
26120
  var BadQueryStringError3 = class extends XRPCError {
25761
26121
  constructor(src2) {
25762
26122
  super(src2.status, src2.error, src2.message, src2.headers);
25763
26123
  }
25764
26124
  };
25765
- function toKnownErr118(e) {
26125
+ function toKnownErr125(e) {
25766
26126
  if (e instanceof XRPCError) {
25767
26127
  if (e.error === "BadQueryString")
25768
26128
  return new BadQueryStringError3(e);
@@ -25789,6 +26149,7 @@ __export(defs_exports, {
25789
26149
  isModEventReport: () => isModEventReport,
25790
26150
  isModEventResolveAppeal: () => isModEventResolveAppeal,
25791
26151
  isModEventReverseTakedown: () => isModEventReverseTakedown,
26152
+ isModEventTag: () => isModEventTag,
25792
26153
  isModEventTakedown: () => isModEventTakedown,
25793
26154
  isModEventUnmute: () => isModEventUnmute,
25794
26155
  isModEventView: () => isModEventView,
@@ -25821,6 +26182,7 @@ __export(defs_exports, {
25821
26182
  validateModEventReport: () => validateModEventReport,
25822
26183
  validateModEventResolveAppeal: () => validateModEventResolveAppeal,
25823
26184
  validateModEventReverseTakedown: () => validateModEventReverseTakedown,
26185
+ validateModEventTag: () => validateModEventTag,
25824
26186
  validateModEventTakedown: () => validateModEventTakedown,
25825
26187
  validateModEventUnmute: () => validateModEventUnmute,
25826
26188
  validateModEventView: () => validateModEventView,
@@ -26030,6 +26392,12 @@ function isModEventEmail(v) {
26030
26392
  function validateModEventEmail(v) {
26031
26393
  return lexicons.validate("com.atproto.admin.defs#modEventEmail", v);
26032
26394
  }
26395
+ function isModEventTag(v) {
26396
+ return isObj2(v) && hasProp2(v, "$type") && v.$type === "com.atproto.admin.defs#modEventTag";
26397
+ }
26398
+ function validateModEventTag(v) {
26399
+ return lexicons.validate("com.atproto.admin.defs#modEventTag", v);
26400
+ }
26033
26401
  function isCommunicationTemplateView(v) {
26034
26402
  return isObj2(v) && hasProp2(v, "$type") && v.$type === "com.atproto.admin.defs#communicationTemplateView";
26035
26403
  }
@@ -26145,12 +26513,14 @@ var subscribeRepos_exports = {};
26145
26513
  __export(subscribeRepos_exports, {
26146
26514
  isCommit: () => isCommit,
26147
26515
  isHandle: () => isHandle,
26516
+ isIdentity: () => isIdentity,
26148
26517
  isInfo: () => isInfo2,
26149
26518
  isMigrate: () => isMigrate,
26150
26519
  isRepoOp: () => isRepoOp,
26151
26520
  isTombstone: () => isTombstone,
26152
26521
  validateCommit: () => validateCommit,
26153
26522
  validateHandle: () => validateHandle,
26523
+ validateIdentity: () => validateIdentity,
26154
26524
  validateInfo: () => validateInfo2,
26155
26525
  validateMigrate: () => validateMigrate,
26156
26526
  validateRepoOp: () => validateRepoOp,
@@ -26162,6 +26532,12 @@ function isCommit(v) {
26162
26532
  function validateCommit(v) {
26163
26533
  return lexicons.validate("com.atproto.sync.subscribeRepos#commit", v);
26164
26534
  }
26535
+ function isIdentity(v) {
26536
+ return isObj2(v) && hasProp2(v, "$type") && v.$type === "com.atproto.sync.subscribeRepos#identity";
26537
+ }
26538
+ function validateIdentity(v) {
26539
+ return lexicons.validate("com.atproto.sync.subscribeRepos#identity", v);
26540
+ }
26165
26541
  function isHandle(v) {
26166
26542
  return isObj2(v) && hasProp2(v, "$type") && v.$type === "com.atproto.sync.subscribeRepos#handle";
26167
26543
  }
@@ -26199,7 +26575,10 @@ __export(defs_exports5, {
26199
26575
  isAdultContentPref: () => isAdultContentPref,
26200
26576
  isContentLabelPref: () => isContentLabelPref,
26201
26577
  isFeedViewPref: () => isFeedViewPref,
26578
+ isHiddenPostsPref: () => isHiddenPostsPref,
26202
26579
  isInterestsPref: () => isInterestsPref,
26580
+ isMutedWord: () => isMutedWord,
26581
+ isMutedWordsPref: () => isMutedWordsPref,
26203
26582
  isPersonalDetailsPref: () => isPersonalDetailsPref,
26204
26583
  isProfileView: () => isProfileView,
26205
26584
  isProfileViewBasic: () => isProfileViewBasic,
@@ -26210,7 +26589,10 @@ __export(defs_exports5, {
26210
26589
  validateAdultContentPref: () => validateAdultContentPref,
26211
26590
  validateContentLabelPref: () => validateContentLabelPref,
26212
26591
  validateFeedViewPref: () => validateFeedViewPref,
26592
+ validateHiddenPostsPref: () => validateHiddenPostsPref,
26213
26593
  validateInterestsPref: () => validateInterestsPref,
26594
+ validateMutedWord: () => validateMutedWord,
26595
+ validateMutedWordsPref: () => validateMutedWordsPref,
26214
26596
  validatePersonalDetailsPref: () => validatePersonalDetailsPref,
26215
26597
  validateProfileView: () => validateProfileView,
26216
26598
  validateProfileViewBasic: () => validateProfileViewBasic,
@@ -26279,11 +26661,29 @@ function isThreadViewPref(v) {
26279
26661
  function validateThreadViewPref(v) {
26280
26662
  return lexicons.validate("app.bsky.actor.defs#threadViewPref", v);
26281
26663
  }
26282
- function isInterestsPref(v) {
26283
- return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.actor.defs#interestsPref";
26664
+ function isInterestsPref(v) {
26665
+ return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.actor.defs#interestsPref";
26666
+ }
26667
+ function validateInterestsPref(v) {
26668
+ return lexicons.validate("app.bsky.actor.defs#interestsPref", v);
26669
+ }
26670
+ function isMutedWord(v) {
26671
+ return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.actor.defs#mutedWord";
26672
+ }
26673
+ function validateMutedWord(v) {
26674
+ return lexicons.validate("app.bsky.actor.defs#mutedWord", v);
26675
+ }
26676
+ function isMutedWordsPref(v) {
26677
+ return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.actor.defs#mutedWordsPref";
26678
+ }
26679
+ function validateMutedWordsPref(v) {
26680
+ return lexicons.validate("app.bsky.actor.defs#mutedWordsPref", v);
26284
26681
  }
26285
- function validateInterestsPref(v) {
26286
- return lexicons.validate("app.bsky.actor.defs#interestsPref", v);
26682
+ function isHiddenPostsPref(v) {
26683
+ return isObj2(v) && hasProp2(v, "$type") && v.$type === "app.bsky.actor.defs#hiddenPostsPref";
26684
+ }
26685
+ function validateHiddenPostsPref(v) {
26686
+ return lexicons.validate("app.bsky.actor.defs#hiddenPostsPref", v);
26287
26687
  }
26288
26688
 
26289
26689
  // src/client/types/app/bsky/actor/profile.ts
@@ -27047,14 +27447,34 @@ var ComAtprotoIdentityNS = class {
27047
27447
  constructor(service2) {
27048
27448
  this._service = service2;
27049
27449
  }
27450
+ getRecommendedDidCredentials(params2, opts) {
27451
+ return this._service.xrpc.call("com.atproto.identity.getRecommendedDidCredentials", params2, void 0, opts).catch((e) => {
27452
+ throw toKnownErr24(e);
27453
+ });
27454
+ }
27455
+ requestPlcOperationSignature(data, opts) {
27456
+ return this._service.xrpc.call("com.atproto.identity.requestPlcOperationSignature", opts?.qp, data, opts).catch((e) => {
27457
+ throw toKnownErr25(e);
27458
+ });
27459
+ }
27050
27460
  resolveHandle(params2, opts) {
27051
27461
  return this._service.xrpc.call("com.atproto.identity.resolveHandle", params2, void 0, opts).catch((e) => {
27052
- throw toKnownErr24(e);
27462
+ throw toKnownErr26(e);
27463
+ });
27464
+ }
27465
+ signPlcOperation(data, opts) {
27466
+ return this._service.xrpc.call("com.atproto.identity.signPlcOperation", opts?.qp, data, opts).catch((e) => {
27467
+ throw toKnownErr27(e);
27468
+ });
27469
+ }
27470
+ submitPlcOperation(data, opts) {
27471
+ return this._service.xrpc.call("com.atproto.identity.submitPlcOperation", opts?.qp, data, opts).catch((e) => {
27472
+ throw toKnownErr28(e);
27053
27473
  });
27054
27474
  }
27055
27475
  updateHandle(data, opts) {
27056
27476
  return this._service.xrpc.call("com.atproto.identity.updateHandle", opts?.qp, data, opts).catch((e) => {
27057
- throw toKnownErr25(e);
27477
+ throw toKnownErr29(e);
27058
27478
  });
27059
27479
  }
27060
27480
  };
@@ -27064,7 +27484,7 @@ var ComAtprotoLabelNS = class {
27064
27484
  }
27065
27485
  queryLabels(params2, opts) {
27066
27486
  return this._service.xrpc.call("com.atproto.label.queryLabels", params2, void 0, opts).catch((e) => {
27067
- throw toKnownErr26(e);
27487
+ throw toKnownErr30(e);
27068
27488
  });
27069
27489
  }
27070
27490
  };
@@ -27074,7 +27494,7 @@ var ComAtprotoModerationNS = class {
27074
27494
  }
27075
27495
  createReport(data, opts) {
27076
27496
  return this._service.xrpc.call("com.atproto.moderation.createReport", opts?.qp, data, opts).catch((e) => {
27077
- throw toKnownErr27(e);
27497
+ throw toKnownErr31(e);
27078
27498
  });
27079
27499
  }
27080
27500
  };
@@ -27084,42 +27504,52 @@ var ComAtprotoRepoNS = class {
27084
27504
  }
27085
27505
  applyWrites(data, opts) {
27086
27506
  return this._service.xrpc.call("com.atproto.repo.applyWrites", opts?.qp, data, opts).catch((e) => {
27087
- throw toKnownErr28(e);
27507
+ throw toKnownErr32(e);
27088
27508
  });
27089
27509
  }
27090
27510
  createRecord(data, opts) {
27091
27511
  return this._service.xrpc.call("com.atproto.repo.createRecord", opts?.qp, data, opts).catch((e) => {
27092
- throw toKnownErr29(e);
27512
+ throw toKnownErr33(e);
27093
27513
  });
27094
27514
  }
27095
27515
  deleteRecord(data, opts) {
27096
27516
  return this._service.xrpc.call("com.atproto.repo.deleteRecord", opts?.qp, data, opts).catch((e) => {
27097
- throw toKnownErr30(e);
27517
+ throw toKnownErr34(e);
27098
27518
  });
27099
27519
  }
27100
27520
  describeRepo(params2, opts) {
27101
27521
  return this._service.xrpc.call("com.atproto.repo.describeRepo", params2, void 0, opts).catch((e) => {
27102
- throw toKnownErr31(e);
27522
+ throw toKnownErr35(e);
27103
27523
  });
27104
27524
  }
27105
27525
  getRecord(params2, opts) {
27106
27526
  return this._service.xrpc.call("com.atproto.repo.getRecord", params2, void 0, opts).catch((e) => {
27107
- throw toKnownErr32(e);
27527
+ throw toKnownErr36(e);
27528
+ });
27529
+ }
27530
+ importRepo(data, opts) {
27531
+ return this._service.xrpc.call("com.atproto.repo.importRepo", opts?.qp, data, opts).catch((e) => {
27532
+ throw toKnownErr37(e);
27533
+ });
27534
+ }
27535
+ listMissingBlobs(params2, opts) {
27536
+ return this._service.xrpc.call("com.atproto.repo.listMissingBlobs", params2, void 0, opts).catch((e) => {
27537
+ throw toKnownErr38(e);
27108
27538
  });
27109
27539
  }
27110
27540
  listRecords(params2, opts) {
27111
27541
  return this._service.xrpc.call("com.atproto.repo.listRecords", params2, void 0, opts).catch((e) => {
27112
- throw toKnownErr33(e);
27542
+ throw toKnownErr39(e);
27113
27543
  });
27114
27544
  }
27115
27545
  putRecord(data, opts) {
27116
27546
  return this._service.xrpc.call("com.atproto.repo.putRecord", opts?.qp, data, opts).catch((e) => {
27117
- throw toKnownErr34(e);
27547
+ throw toKnownErr40(e);
27118
27548
  });
27119
27549
  }
27120
27550
  uploadBlob(data, opts) {
27121
27551
  return this._service.xrpc.call("com.atproto.repo.uploadBlob", opts?.qp, data, opts).catch((e) => {
27122
- throw toKnownErr35(e);
27552
+ throw toKnownErr41(e);
27123
27553
  });
27124
27554
  }
27125
27555
  };
@@ -27127,109 +27557,129 @@ var ComAtprotoServerNS = class {
27127
27557
  constructor(service2) {
27128
27558
  this._service = service2;
27129
27559
  }
27560
+ activateAccount(data, opts) {
27561
+ return this._service.xrpc.call("com.atproto.server.activateAccount", opts?.qp, data, opts).catch((e) => {
27562
+ throw toKnownErr42(e);
27563
+ });
27564
+ }
27565
+ checkAccountStatus(params2, opts) {
27566
+ return this._service.xrpc.call("com.atproto.server.checkAccountStatus", params2, void 0, opts).catch((e) => {
27567
+ throw toKnownErr43(e);
27568
+ });
27569
+ }
27130
27570
  confirmEmail(data, opts) {
27131
27571
  return this._service.xrpc.call("com.atproto.server.confirmEmail", opts?.qp, data, opts).catch((e) => {
27132
- throw toKnownErr36(e);
27572
+ throw toKnownErr44(e);
27133
27573
  });
27134
27574
  }
27135
27575
  createAccount(data, opts) {
27136
27576
  return this._service.xrpc.call("com.atproto.server.createAccount", opts?.qp, data, opts).catch((e) => {
27137
- throw toKnownErr37(e);
27577
+ throw toKnownErr45(e);
27138
27578
  });
27139
27579
  }
27140
27580
  createAppPassword(data, opts) {
27141
27581
  return this._service.xrpc.call("com.atproto.server.createAppPassword", opts?.qp, data, opts).catch((e) => {
27142
- throw toKnownErr38(e);
27582
+ throw toKnownErr46(e);
27143
27583
  });
27144
27584
  }
27145
27585
  createInviteCode(data, opts) {
27146
27586
  return this._service.xrpc.call("com.atproto.server.createInviteCode", opts?.qp, data, opts).catch((e) => {
27147
- throw toKnownErr39(e);
27587
+ throw toKnownErr47(e);
27148
27588
  });
27149
27589
  }
27150
27590
  createInviteCodes(data, opts) {
27151
27591
  return this._service.xrpc.call("com.atproto.server.createInviteCodes", opts?.qp, data, opts).catch((e) => {
27152
- throw toKnownErr40(e);
27592
+ throw toKnownErr48(e);
27153
27593
  });
27154
27594
  }
27155
27595
  createSession(data, opts) {
27156
27596
  return this._service.xrpc.call("com.atproto.server.createSession", opts?.qp, data, opts).catch((e) => {
27157
- throw toKnownErr41(e);
27597
+ throw toKnownErr49(e);
27598
+ });
27599
+ }
27600
+ deactivateAccount(data, opts) {
27601
+ return this._service.xrpc.call("com.atproto.server.deactivateAccount", opts?.qp, data, opts).catch((e) => {
27602
+ throw toKnownErr50(e);
27158
27603
  });
27159
27604
  }
27160
27605
  deleteAccount(data, opts) {
27161
27606
  return this._service.xrpc.call("com.atproto.server.deleteAccount", opts?.qp, data, opts).catch((e) => {
27162
- throw toKnownErr42(e);
27607
+ throw toKnownErr51(e);
27163
27608
  });
27164
27609
  }
27165
27610
  deleteSession(data, opts) {
27166
27611
  return this._service.xrpc.call("com.atproto.server.deleteSession", opts?.qp, data, opts).catch((e) => {
27167
- throw toKnownErr43(e);
27612
+ throw toKnownErr52(e);
27168
27613
  });
27169
27614
  }
27170
27615
  describeServer(params2, opts) {
27171
27616
  return this._service.xrpc.call("com.atproto.server.describeServer", params2, void 0, opts).catch((e) => {
27172
- throw toKnownErr44(e);
27617
+ throw toKnownErr53(e);
27173
27618
  });
27174
27619
  }
27175
27620
  getAccountInviteCodes(params2, opts) {
27176
27621
  return this._service.xrpc.call("com.atproto.server.getAccountInviteCodes", params2, void 0, opts).catch((e) => {
27177
- throw toKnownErr45(e);
27622
+ throw toKnownErr54(e);
27623
+ });
27624
+ }
27625
+ getServiceAuth(params2, opts) {
27626
+ return this._service.xrpc.call("com.atproto.server.getServiceAuth", params2, void 0, opts).catch((e) => {
27627
+ throw toKnownErr55(e);
27178
27628
  });
27179
27629
  }
27180
27630
  getSession(params2, opts) {
27181
27631
  return this._service.xrpc.call("com.atproto.server.getSession", params2, void 0, opts).catch((e) => {
27182
- throw toKnownErr46(e);
27632
+ throw toKnownErr56(e);
27183
27633
  });
27184
27634
  }
27185
27635
  listAppPasswords(params2, opts) {
27186
27636
  return this._service.xrpc.call("com.atproto.server.listAppPasswords", params2, void 0, opts).catch((e) => {
27187
- throw toKnownErr47(e);
27637
+ throw toKnownErr57(e);
27188
27638
  });
27189
27639
  }
27190
27640
  refreshSession(data, opts) {
27191
27641
  return this._service.xrpc.call("com.atproto.server.refreshSession", opts?.qp, data, opts).catch((e) => {
27192
- throw toKnownErr48(e);
27642
+ throw toKnownErr58(e);
27193
27643
  });
27194
27644
  }
27195
27645
  requestAccountDelete(data, opts) {
27196
27646
  return this._service.xrpc.call("com.atproto.server.requestAccountDelete", opts?.qp, data, opts).catch((e) => {
27197
- throw toKnownErr49(e);
27647
+ throw toKnownErr59(e);
27198
27648
  });
27199
27649
  }
27200
27650
  requestEmailConfirmation(data, opts) {
27201
27651
  return this._service.xrpc.call("com.atproto.server.requestEmailConfirmation", opts?.qp, data, opts).catch((e) => {
27202
- throw toKnownErr50(e);
27652
+ throw toKnownErr60(e);
27203
27653
  });
27204
27654
  }
27205
27655
  requestEmailUpdate(data, opts) {
27206
27656
  return this._service.xrpc.call("com.atproto.server.requestEmailUpdate", opts?.qp, data, opts).catch((e) => {
27207
- throw toKnownErr51(e);
27657
+ throw toKnownErr61(e);
27208
27658
  });
27209
27659
  }
27210
27660
  requestPasswordReset(data, opts) {
27211
27661
  return this._service.xrpc.call("com.atproto.server.requestPasswordReset", opts?.qp, data, opts).catch((e) => {
27212
- throw toKnownErr52(e);
27662
+ throw toKnownErr62(e);
27213
27663
  });
27214
27664
  }
27215
27665
  reserveSigningKey(data, opts) {
27216
27666
  return this._service.xrpc.call("com.atproto.server.reserveSigningKey", opts?.qp, data, opts).catch((e) => {
27217
- throw toKnownErr53(e);
27667
+ throw toKnownErr63(e);
27218
27668
  });
27219
27669
  }
27220
27670
  resetPassword(data, opts) {
27221
27671
  return this._service.xrpc.call("com.atproto.server.resetPassword", opts?.qp, data, opts).catch((e) => {
27222
- throw toKnownErr54(e);
27672
+ throw toKnownErr64(e);
27223
27673
  });
27224
27674
  }
27225
27675
  revokeAppPassword(data, opts) {
27226
27676
  return this._service.xrpc.call("com.atproto.server.revokeAppPassword", opts?.qp, data, opts).catch((e) => {
27227
- throw toKnownErr55(e);
27677
+ throw toKnownErr65(e);
27228
27678
  });
27229
27679
  }
27230
27680
  updateEmail(data, opts) {
27231
27681
  return this._service.xrpc.call("com.atproto.server.updateEmail", opts?.qp, data, opts).catch((e) => {
27232
- throw toKnownErr56(e);
27682
+ throw toKnownErr66(e);
27233
27683
  });
27234
27684
  }
27235
27685
  };
@@ -27239,57 +27689,57 @@ var ComAtprotoSyncNS = class {
27239
27689
  }
27240
27690
  getBlob(params2, opts) {
27241
27691
  return this._service.xrpc.call("com.atproto.sync.getBlob", params2, void 0, opts).catch((e) => {
27242
- throw toKnownErr57(e);
27692
+ throw toKnownErr67(e);
27243
27693
  });
27244
27694
  }
27245
27695
  getBlocks(params2, opts) {
27246
27696
  return this._service.xrpc.call("com.atproto.sync.getBlocks", params2, void 0, opts).catch((e) => {
27247
- throw toKnownErr58(e);
27697
+ throw toKnownErr68(e);
27248
27698
  });
27249
27699
  }
27250
27700
  getCheckout(params2, opts) {
27251
27701
  return this._service.xrpc.call("com.atproto.sync.getCheckout", params2, void 0, opts).catch((e) => {
27252
- throw toKnownErr59(e);
27702
+ throw toKnownErr69(e);
27253
27703
  });
27254
27704
  }
27255
27705
  getHead(params2, opts) {
27256
27706
  return this._service.xrpc.call("com.atproto.sync.getHead", params2, void 0, opts).catch((e) => {
27257
- throw toKnownErr60(e);
27707
+ throw toKnownErr70(e);
27258
27708
  });
27259
27709
  }
27260
27710
  getLatestCommit(params2, opts) {
27261
27711
  return this._service.xrpc.call("com.atproto.sync.getLatestCommit", params2, void 0, opts).catch((e) => {
27262
- throw toKnownErr61(e);
27712
+ throw toKnownErr71(e);
27263
27713
  });
27264
27714
  }
27265
27715
  getRecord(params2, opts) {
27266
27716
  return this._service.xrpc.call("com.atproto.sync.getRecord", params2, void 0, opts).catch((e) => {
27267
- throw toKnownErr62(e);
27717
+ throw toKnownErr72(e);
27268
27718
  });
27269
27719
  }
27270
27720
  getRepo(params2, opts) {
27271
27721
  return this._service.xrpc.call("com.atproto.sync.getRepo", params2, void 0, opts).catch((e) => {
27272
- throw toKnownErr63(e);
27722
+ throw toKnownErr73(e);
27273
27723
  });
27274
27724
  }
27275
27725
  listBlobs(params2, opts) {
27276
27726
  return this._service.xrpc.call("com.atproto.sync.listBlobs", params2, void 0, opts).catch((e) => {
27277
- throw toKnownErr64(e);
27727
+ throw toKnownErr74(e);
27278
27728
  });
27279
27729
  }
27280
27730
  listRepos(params2, opts) {
27281
27731
  return this._service.xrpc.call("com.atproto.sync.listRepos", params2, void 0, opts).catch((e) => {
27282
- throw toKnownErr65(e);
27732
+ throw toKnownErr75(e);
27283
27733
  });
27284
27734
  }
27285
27735
  notifyOfUpdate(data, opts) {
27286
27736
  return this._service.xrpc.call("com.atproto.sync.notifyOfUpdate", opts?.qp, data, opts).catch((e) => {
27287
- throw toKnownErr66(e);
27737
+ throw toKnownErr76(e);
27288
27738
  });
27289
27739
  }
27290
27740
  requestCrawl(data, opts) {
27291
27741
  return this._service.xrpc.call("com.atproto.sync.requestCrawl", opts?.qp, data, opts).catch((e) => {
27292
- throw toKnownErr67(e);
27742
+ throw toKnownErr77(e);
27293
27743
  });
27294
27744
  }
27295
27745
  };
@@ -27299,32 +27749,17 @@ var ComAtprotoTempNS = class {
27299
27749
  }
27300
27750
  checkSignupQueue(params2, opts) {
27301
27751
  return this._service.xrpc.call("com.atproto.temp.checkSignupQueue", params2, void 0, opts).catch((e) => {
27302
- throw toKnownErr68(e);
27752
+ throw toKnownErr78(e);
27303
27753
  });
27304
27754
  }
27305
27755
  fetchLabels(params2, opts) {
27306
27756
  return this._service.xrpc.call("com.atproto.temp.fetchLabels", params2, void 0, opts).catch((e) => {
27307
- throw toKnownErr69(e);
27308
- });
27309
- }
27310
- importRepo(data, opts) {
27311
- return this._service.xrpc.call("com.atproto.temp.importRepo", opts?.qp, data, opts).catch((e) => {
27312
- throw toKnownErr70(e);
27313
- });
27314
- }
27315
- pushBlob(data, opts) {
27316
- return this._service.xrpc.call("com.atproto.temp.pushBlob", opts?.qp, data, opts).catch((e) => {
27317
- throw toKnownErr71(e);
27757
+ throw toKnownErr79(e);
27318
27758
  });
27319
27759
  }
27320
27760
  requestPhoneVerification(data, opts) {
27321
27761
  return this._service.xrpc.call("com.atproto.temp.requestPhoneVerification", opts?.qp, data, opts).catch((e) => {
27322
- throw toKnownErr72(e);
27323
- });
27324
- }
27325
- transferAccount(data, opts) {
27326
- return this._service.xrpc.call("com.atproto.temp.transferAccount", opts?.qp, data, opts).catch((e) => {
27327
- throw toKnownErr73(e);
27762
+ throw toKnownErr80(e);
27328
27763
  });
27329
27764
  }
27330
27765
  };
@@ -27353,37 +27788,37 @@ var AppBskyActorNS = class {
27353
27788
  }
27354
27789
  getPreferences(params2, opts) {
27355
27790
  return this._service.xrpc.call("app.bsky.actor.getPreferences", params2, void 0, opts).catch((e) => {
27356
- throw toKnownErr74(e);
27791
+ throw toKnownErr81(e);
27357
27792
  });
27358
27793
  }
27359
27794
  getProfile(params2, opts) {
27360
27795
  return this._service.xrpc.call("app.bsky.actor.getProfile", params2, void 0, opts).catch((e) => {
27361
- throw toKnownErr75(e);
27796
+ throw toKnownErr82(e);
27362
27797
  });
27363
27798
  }
27364
27799
  getProfiles(params2, opts) {
27365
27800
  return this._service.xrpc.call("app.bsky.actor.getProfiles", params2, void 0, opts).catch((e) => {
27366
- throw toKnownErr76(e);
27801
+ throw toKnownErr83(e);
27367
27802
  });
27368
27803
  }
27369
27804
  getSuggestions(params2, opts) {
27370
27805
  return this._service.xrpc.call("app.bsky.actor.getSuggestions", params2, void 0, opts).catch((e) => {
27371
- throw toKnownErr77(e);
27806
+ throw toKnownErr84(e);
27372
27807
  });
27373
27808
  }
27374
27809
  putPreferences(data, opts) {
27375
27810
  return this._service.xrpc.call("app.bsky.actor.putPreferences", opts?.qp, data, opts).catch((e) => {
27376
- throw toKnownErr78(e);
27811
+ throw toKnownErr85(e);
27377
27812
  });
27378
27813
  }
27379
27814
  searchActors(params2, opts) {
27380
27815
  return this._service.xrpc.call("app.bsky.actor.searchActors", params2, void 0, opts).catch((e) => {
27381
- throw toKnownErr79(e);
27816
+ throw toKnownErr86(e);
27382
27817
  });
27383
27818
  }
27384
27819
  searchActorsTypeahead(params2, opts) {
27385
27820
  return this._service.xrpc.call("app.bsky.actor.searchActorsTypeahead", params2, void 0, opts).catch((e) => {
27386
- throw toKnownErr80(e);
27821
+ throw toKnownErr87(e);
27387
27822
  });
27388
27823
  }
27389
27824
  };
@@ -27430,82 +27865,82 @@ var AppBskyFeedNS = class {
27430
27865
  }
27431
27866
  describeFeedGenerator(params2, opts) {
27432
27867
  return this._service.xrpc.call("app.bsky.feed.describeFeedGenerator", params2, void 0, opts).catch((e) => {
27433
- throw toKnownErr81(e);
27868
+ throw toKnownErr88(e);
27434
27869
  });
27435
27870
  }
27436
27871
  getActorFeeds(params2, opts) {
27437
27872
  return this._service.xrpc.call("app.bsky.feed.getActorFeeds", params2, void 0, opts).catch((e) => {
27438
- throw toKnownErr82(e);
27873
+ throw toKnownErr89(e);
27439
27874
  });
27440
27875
  }
27441
27876
  getActorLikes(params2, opts) {
27442
27877
  return this._service.xrpc.call("app.bsky.feed.getActorLikes", params2, void 0, opts).catch((e) => {
27443
- throw toKnownErr83(e);
27878
+ throw toKnownErr90(e);
27444
27879
  });
27445
27880
  }
27446
27881
  getAuthorFeed(params2, opts) {
27447
27882
  return this._service.xrpc.call("app.bsky.feed.getAuthorFeed", params2, void 0, opts).catch((e) => {
27448
- throw toKnownErr84(e);
27883
+ throw toKnownErr91(e);
27449
27884
  });
27450
27885
  }
27451
27886
  getFeed(params2, opts) {
27452
27887
  return this._service.xrpc.call("app.bsky.feed.getFeed", params2, void 0, opts).catch((e) => {
27453
- throw toKnownErr85(e);
27888
+ throw toKnownErr92(e);
27454
27889
  });
27455
27890
  }
27456
27891
  getFeedGenerator(params2, opts) {
27457
27892
  return this._service.xrpc.call("app.bsky.feed.getFeedGenerator", params2, void 0, opts).catch((e) => {
27458
- throw toKnownErr86(e);
27893
+ throw toKnownErr93(e);
27459
27894
  });
27460
27895
  }
27461
27896
  getFeedGenerators(params2, opts) {
27462
27897
  return this._service.xrpc.call("app.bsky.feed.getFeedGenerators", params2, void 0, opts).catch((e) => {
27463
- throw toKnownErr87(e);
27898
+ throw toKnownErr94(e);
27464
27899
  });
27465
27900
  }
27466
27901
  getFeedSkeleton(params2, opts) {
27467
27902
  return this._service.xrpc.call("app.bsky.feed.getFeedSkeleton", params2, void 0, opts).catch((e) => {
27468
- throw toKnownErr88(e);
27903
+ throw toKnownErr95(e);
27469
27904
  });
27470
27905
  }
27471
27906
  getLikes(params2, opts) {
27472
27907
  return this._service.xrpc.call("app.bsky.feed.getLikes", params2, void 0, opts).catch((e) => {
27473
- throw toKnownErr89(e);
27908
+ throw toKnownErr96(e);
27474
27909
  });
27475
27910
  }
27476
27911
  getListFeed(params2, opts) {
27477
27912
  return this._service.xrpc.call("app.bsky.feed.getListFeed", params2, void 0, opts).catch((e) => {
27478
- throw toKnownErr90(e);
27913
+ throw toKnownErr97(e);
27479
27914
  });
27480
27915
  }
27481
27916
  getPostThread(params2, opts) {
27482
27917
  return this._service.xrpc.call("app.bsky.feed.getPostThread", params2, void 0, opts).catch((e) => {
27483
- throw toKnownErr91(e);
27918
+ throw toKnownErr98(e);
27484
27919
  });
27485
27920
  }
27486
27921
  getPosts(params2, opts) {
27487
27922
  return this._service.xrpc.call("app.bsky.feed.getPosts", params2, void 0, opts).catch((e) => {
27488
- throw toKnownErr92(e);
27923
+ throw toKnownErr99(e);
27489
27924
  });
27490
27925
  }
27491
27926
  getRepostedBy(params2, opts) {
27492
27927
  return this._service.xrpc.call("app.bsky.feed.getRepostedBy", params2, void 0, opts).catch((e) => {
27493
- throw toKnownErr93(e);
27928
+ throw toKnownErr100(e);
27494
27929
  });
27495
27930
  }
27496
27931
  getSuggestedFeeds(params2, opts) {
27497
27932
  return this._service.xrpc.call("app.bsky.feed.getSuggestedFeeds", params2, void 0, opts).catch((e) => {
27498
- throw toKnownErr94(e);
27933
+ throw toKnownErr101(e);
27499
27934
  });
27500
27935
  }
27501
27936
  getTimeline(params2, opts) {
27502
27937
  return this._service.xrpc.call("app.bsky.feed.getTimeline", params2, void 0, opts).catch((e) => {
27503
- throw toKnownErr95(e);
27938
+ throw toKnownErr102(e);
27504
27939
  });
27505
27940
  }
27506
27941
  searchPosts(params2, opts) {
27507
27942
  return this._service.xrpc.call("app.bsky.feed.searchPosts", params2, void 0, opts).catch((e) => {
27508
- throw toKnownErr96(e);
27943
+ throw toKnownErr103(e);
27509
27944
  });
27510
27945
  }
27511
27946
  };
@@ -27655,72 +28090,72 @@ var AppBskyGraphNS = class {
27655
28090
  }
27656
28091
  getBlocks(params2, opts) {
27657
28092
  return this._service.xrpc.call("app.bsky.graph.getBlocks", params2, void 0, opts).catch((e) => {
27658
- throw toKnownErr97(e);
28093
+ throw toKnownErr104(e);
27659
28094
  });
27660
28095
  }
27661
28096
  getFollowers(params2, opts) {
27662
28097
  return this._service.xrpc.call("app.bsky.graph.getFollowers", params2, void 0, opts).catch((e) => {
27663
- throw toKnownErr98(e);
28098
+ throw toKnownErr105(e);
27664
28099
  });
27665
28100
  }
27666
28101
  getFollows(params2, opts) {
27667
28102
  return this._service.xrpc.call("app.bsky.graph.getFollows", params2, void 0, opts).catch((e) => {
27668
- throw toKnownErr99(e);
28103
+ throw toKnownErr106(e);
27669
28104
  });
27670
28105
  }
27671
28106
  getList(params2, opts) {
27672
28107
  return this._service.xrpc.call("app.bsky.graph.getList", params2, void 0, opts).catch((e) => {
27673
- throw toKnownErr100(e);
28108
+ throw toKnownErr107(e);
27674
28109
  });
27675
28110
  }
27676
28111
  getListBlocks(params2, opts) {
27677
28112
  return this._service.xrpc.call("app.bsky.graph.getListBlocks", params2, void 0, opts).catch((e) => {
27678
- throw toKnownErr101(e);
28113
+ throw toKnownErr108(e);
27679
28114
  });
27680
28115
  }
27681
28116
  getListMutes(params2, opts) {
27682
28117
  return this._service.xrpc.call("app.bsky.graph.getListMutes", params2, void 0, opts).catch((e) => {
27683
- throw toKnownErr102(e);
28118
+ throw toKnownErr109(e);
27684
28119
  });
27685
28120
  }
27686
28121
  getLists(params2, opts) {
27687
28122
  return this._service.xrpc.call("app.bsky.graph.getLists", params2, void 0, opts).catch((e) => {
27688
- throw toKnownErr103(e);
28123
+ throw toKnownErr110(e);
27689
28124
  });
27690
28125
  }
27691
28126
  getMutes(params2, opts) {
27692
28127
  return this._service.xrpc.call("app.bsky.graph.getMutes", params2, void 0, opts).catch((e) => {
27693
- throw toKnownErr104(e);
28128
+ throw toKnownErr111(e);
27694
28129
  });
27695
28130
  }
27696
28131
  getRelationships(params2, opts) {
27697
28132
  return this._service.xrpc.call("app.bsky.graph.getRelationships", params2, void 0, opts).catch((e) => {
27698
- throw toKnownErr105(e);
28133
+ throw toKnownErr112(e);
27699
28134
  });
27700
28135
  }
27701
28136
  getSuggestedFollowsByActor(params2, opts) {
27702
28137
  return this._service.xrpc.call("app.bsky.graph.getSuggestedFollowsByActor", params2, void 0, opts).catch((e) => {
27703
- throw toKnownErr106(e);
28138
+ throw toKnownErr113(e);
27704
28139
  });
27705
28140
  }
27706
28141
  muteActor(data, opts) {
27707
28142
  return this._service.xrpc.call("app.bsky.graph.muteActor", opts?.qp, data, opts).catch((e) => {
27708
- throw toKnownErr107(e);
28143
+ throw toKnownErr114(e);
27709
28144
  });
27710
28145
  }
27711
28146
  muteActorList(data, opts) {
27712
28147
  return this._service.xrpc.call("app.bsky.graph.muteActorList", opts?.qp, data, opts).catch((e) => {
27713
- throw toKnownErr108(e);
28148
+ throw toKnownErr115(e);
27714
28149
  });
27715
28150
  }
27716
28151
  unmuteActor(data, opts) {
27717
28152
  return this._service.xrpc.call("app.bsky.graph.unmuteActor", opts?.qp, data, opts).catch((e) => {
27718
- throw toKnownErr109(e);
28153
+ throw toKnownErr116(e);
27719
28154
  });
27720
28155
  }
27721
28156
  unmuteActorList(data, opts) {
27722
28157
  return this._service.xrpc.call("app.bsky.graph.unmuteActorList", opts?.qp, data, opts).catch((e) => {
27723
- throw toKnownErr110(e);
28158
+ throw toKnownErr117(e);
27724
28159
  });
27725
28160
  }
27726
28161
  };
@@ -27865,22 +28300,22 @@ var AppBskyNotificationNS = class {
27865
28300
  }
27866
28301
  getUnreadCount(params2, opts) {
27867
28302
  return this._service.xrpc.call("app.bsky.notification.getUnreadCount", params2, void 0, opts).catch((e) => {
27868
- throw toKnownErr111(e);
28303
+ throw toKnownErr118(e);
27869
28304
  });
27870
28305
  }
27871
28306
  listNotifications(params2, opts) {
27872
28307
  return this._service.xrpc.call("app.bsky.notification.listNotifications", params2, void 0, opts).catch((e) => {
27873
- throw toKnownErr112(e);
28308
+ throw toKnownErr119(e);
27874
28309
  });
27875
28310
  }
27876
28311
  registerPush(data, opts) {
27877
28312
  return this._service.xrpc.call("app.bsky.notification.registerPush", opts?.qp, data, opts).catch((e) => {
27878
- throw toKnownErr113(e);
28313
+ throw toKnownErr120(e);
27879
28314
  });
27880
28315
  }
27881
28316
  updateSeen(data, opts) {
27882
28317
  return this._service.xrpc.call("app.bsky.notification.updateSeen", opts?.qp, data, opts).catch((e) => {
27883
- throw toKnownErr114(e);
28318
+ throw toKnownErr121(e);
27884
28319
  });
27885
28320
  }
27886
28321
  };
@@ -27895,22 +28330,22 @@ var AppBskyUnspeccedNS = class {
27895
28330
  }
27896
28331
  getPopularFeedGenerators(params2, opts) {
27897
28332
  return this._service.xrpc.call("app.bsky.unspecced.getPopularFeedGenerators", params2, void 0, opts).catch((e) => {
27898
- throw toKnownErr115(e);
28333
+ throw toKnownErr122(e);
27899
28334
  });
27900
28335
  }
27901
28336
  getTaggedSuggestions(params2, opts) {
27902
28337
  return this._service.xrpc.call("app.bsky.unspecced.getTaggedSuggestions", params2, void 0, opts).catch((e) => {
27903
- throw toKnownErr116(e);
28338
+ throw toKnownErr123(e);
27904
28339
  });
27905
28340
  }
27906
28341
  searchActorsSkeleton(params2, opts) {
27907
28342
  return this._service.xrpc.call("app.bsky.unspecced.searchActorsSkeleton", params2, void 0, opts).catch((e) => {
27908
- throw toKnownErr117(e);
28343
+ throw toKnownErr124(e);
27909
28344
  });
27910
28345
  }
27911
28346
  searchPostsSkeleton(params2, opts) {
27912
28347
  return this._service.xrpc.call("app.bsky.unspecced.searchPostsSkeleton", params2, void 0, opts).catch((e) => {
27913
- throw toKnownErr118(e);
28348
+ throw toKnownErr125(e);
27914
28349
  });
27915
28350
  }
27916
28351
  };
@@ -31600,7 +32035,9 @@ var BskyAgent = class extends AtpAgent {
31600
32035
  birthDate: void 0,
31601
32036
  interests: {
31602
32037
  tags: []
31603
- }
32038
+ },
32039
+ mutedWords: [],
32040
+ hiddenPosts: []
31604
32041
  };
31605
32042
  const res = await this.app.bsky.actor.getPreferences({});
31606
32043
  for (const pref of res.data.preferences) {
@@ -31630,6 +32067,12 @@ var BskyAgent = class extends AtpAgent {
31630
32067
  } else if (defs_exports5.isInterestsPref(pref) && defs_exports5.validateInterestsPref(pref).success) {
31631
32068
  const { $type, ...v } = pref;
31632
32069
  prefs.interests = { ...prefs.interests, ...v };
32070
+ } else if (defs_exports5.isMutedWordsPref(pref) && defs_exports5.validateMutedWordsPref(pref).success) {
32071
+ const { $type, ...v } = pref;
32072
+ prefs.mutedWords = v.items;
32073
+ } else if (defs_exports5.isHiddenPostsPref(pref) && defs_exports5.validateHiddenPostsPref(pref).success) {
32074
+ const { $type, ...v } = pref;
32075
+ prefs.hiddenPosts = v.items;
31633
32076
  }
31634
32077
  }
31635
32078
  return prefs;
@@ -31740,6 +32183,21 @@ var BskyAgent = class extends AtpAgent {
31740
32183
  return prefs.filter((p) => !defs_exports5.isInterestsPref(p)).concat([{ ...pref, $type: "app.bsky.actor.defs#interestsPref" }]);
31741
32184
  });
31742
32185
  }
32186
+ async upsertMutedWords(mutedWords) {
32187
+ await updateMutedWords(this, mutedWords, "upsert");
32188
+ }
32189
+ async updateMutedWord(mutedWord) {
32190
+ await updateMutedWords(this, [mutedWord], "update");
32191
+ }
32192
+ async removeMutedWord(mutedWord) {
32193
+ await updateMutedWords(this, [mutedWord], "remove");
32194
+ }
32195
+ async hidePost(postUri) {
32196
+ await updateHiddenPost(this, postUri, "hide");
32197
+ }
32198
+ async unhidePost(postUri) {
32199
+ await updateHiddenPost(this, postUri, "unhide");
32200
+ }
31743
32201
  };
31744
32202
  async function updatePreferences(agent, cb) {
31745
32203
  const res = await agent.app.bsky.actor.getPreferences({});
@@ -31771,4 +32229,65 @@ async function updateFeedPreferences(agent, cb) {
31771
32229
  });
31772
32230
  return res;
31773
32231
  }
32232
+ async function updateMutedWords(agent, mutedWords, action) {
32233
+ const sanitizeMutedWord = (word) => ({
32234
+ value: word.value.replace(/^#/, ""),
32235
+ targets: word.targets
32236
+ });
32237
+ await updatePreferences(agent, (prefs) => {
32238
+ let mutedWordsPref = prefs.findLast((pref) => defs_exports5.isMutedWordsPref(pref) && defs_exports5.validateMutedWordsPref(pref).success);
32239
+ if (mutedWordsPref && defs_exports5.isMutedWordsPref(mutedWordsPref)) {
32240
+ if (action === "upsert" || action === "update") {
32241
+ for (const newItem of mutedWords) {
32242
+ let foundMatch = false;
32243
+ for (const existingItem of mutedWordsPref.items) {
32244
+ if (existingItem.value === newItem.value) {
32245
+ existingItem.targets = action === "upsert" ? Array.from(/* @__PURE__ */ new Set([...existingItem.targets, ...newItem.targets])) : newItem.targets;
32246
+ foundMatch = true;
32247
+ break;
32248
+ }
32249
+ }
32250
+ if (action === "upsert" && !foundMatch) {
32251
+ mutedWordsPref.items.push(sanitizeMutedWord(newItem));
32252
+ }
32253
+ }
32254
+ } else if (action === "remove") {
32255
+ for (const word of mutedWords) {
32256
+ for (let i = 0; i < mutedWordsPref.items.length; i++) {
32257
+ const existing = mutedWordsPref.items[i];
32258
+ if (existing.value === sanitizeMutedWord(word).value) {
32259
+ mutedWordsPref.items.splice(i, 1);
32260
+ break;
32261
+ }
32262
+ }
32263
+ }
32264
+ }
32265
+ } else {
32266
+ if (action === "upsert") {
32267
+ mutedWordsPref = {
32268
+ items: mutedWords.map(sanitizeMutedWord)
32269
+ };
32270
+ }
32271
+ }
32272
+ return prefs.filter((p) => !defs_exports5.isMutedWordsPref(p)).concat([
32273
+ { ...mutedWordsPref, $type: "app.bsky.actor.defs#mutedWordsPref" }
32274
+ ]);
32275
+ });
32276
+ }
32277
+ async function updateHiddenPost(agent, postUri, action) {
32278
+ await updatePreferences(agent, (prefs) => {
32279
+ let pref = prefs.findLast((pref2) => defs_exports5.isHiddenPostsPref(pref2) && defs_exports5.validateHiddenPostsPref(pref2).success);
32280
+ if (pref && defs_exports5.isHiddenPostsPref(pref)) {
32281
+ pref.items = action === "hide" ? Array.from(/* @__PURE__ */ new Set([...pref.items, postUri])) : pref.items.filter((uri2) => uri2 !== postUri);
32282
+ } else {
32283
+ if (action === "hide") {
32284
+ pref = {
32285
+ $type: "app.bsky.actor.defs#hiddenPostsPref",
32286
+ items: [postUri]
32287
+ };
32288
+ }
32289
+ }
32290
+ return prefs.filter((p) => !defs_exports5.isInterestsPref(p)).concat([{ ...pref, $type: "app.bsky.actor.defs#hiddenPostsPref" }]);
32291
+ });
32292
+ }
31774
32293
  //# sourceMappingURL=index.js.map