@atproto/ozone 0.0.9 → 0.0.11

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 (80) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/api/moderation/util.d.ts +1 -1
  3. package/dist/db/index.js +20 -1
  4. package/dist/db/index.js.map +3 -3
  5. package/dist/db/migrations/20240208T213404429Z-add-tags-column-to-moderation-subject.d.ts +3 -0
  6. package/dist/db/migrations/index.d.ts +1 -0
  7. package/dist/db/schema/moderation_event.d.ts +3 -1
  8. package/dist/db/schema/moderation_subject_status.d.ts +1 -0
  9. package/dist/index.js +1458 -596
  10. package/dist/index.js.map +3 -3
  11. package/dist/lexicon/index.d.ts +20 -6
  12. package/dist/lexicon/lexicons.d.ts +449 -110
  13. package/dist/lexicon/types/app/bsky/actor/defs.d.ts +20 -0
  14. package/dist/lexicon/types/com/atproto/admin/defs.d.ts +9 -0
  15. package/dist/lexicon/types/com/atproto/admin/emitModerationEvent.d.ts +1 -1
  16. package/dist/lexicon/types/com/atproto/admin/queryModerationEvents.d.ts +2 -0
  17. package/dist/lexicon/types/com/atproto/admin/queryModerationStatuses.d.ts +2 -0
  18. package/dist/lexicon/types/com/atproto/identity/getRecommendedDidCredentials.d.ts +33 -0
  19. package/dist/lexicon/types/com/atproto/identity/requestPlcOperationSignature.d.ts +19 -0
  20. package/dist/lexicon/types/com/atproto/{temp/transferAccount.d.ts → identity/signPlcOperation.d.ts} +6 -8
  21. package/dist/lexicon/types/com/atproto/identity/submitPlcOperation.d.ts +25 -0
  22. package/dist/lexicon/types/com/atproto/{temp/pushBlob.d.ts → repo/importRepo.d.ts} +1 -2
  23. package/dist/lexicon/types/com/atproto/repo/listMissingBlobs.d.ts +41 -0
  24. package/dist/lexicon/types/com/atproto/server/activateAccount.d.ts +19 -0
  25. package/dist/lexicon/types/com/atproto/server/checkAccountStatus.d.ts +38 -0
  26. package/dist/lexicon/types/com/atproto/server/deactivateAccount.d.ts +25 -0
  27. package/dist/lexicon/types/com/atproto/server/describeServer.d.ts +1 -0
  28. package/dist/lexicon/types/com/atproto/{temp/importRepo.d.ts → server/getServiceAuth.d.ts} +8 -9
  29. package/dist/lexicon/types/com/atproto/sync/subscribeRepos.d.ts +9 -1
  30. package/dist/logger.d.ts +1 -0
  31. package/dist/mod-service/index.d.ts +18 -4
  32. package/dist/mod-service/lang.d.ts +15 -0
  33. package/dist/mod-service/status.d.ts +1 -1
  34. package/dist/mod-service/types.d.ts +1 -1
  35. package/dist/mod-service/views.d.ts +2 -1
  36. package/package.json +6 -6
  37. package/src/api/admin/emitModerationEvent.ts +22 -10
  38. package/src/api/admin/queryModerationEvents.ts +4 -0
  39. package/src/api/admin/queryModerationStatuses.ts +4 -0
  40. package/src/api/moderation/createReport.ts +15 -4
  41. package/src/api/moderation/util.ts +1 -0
  42. package/src/db/migrations/20240208T213404429Z-add-tags-column-to-moderation-subject.ts +31 -0
  43. package/src/db/migrations/index.ts +1 -0
  44. package/src/db/schema/moderation_event.ts +3 -0
  45. package/src/db/schema/moderation_subject_status.ts +1 -0
  46. package/src/lexicon/index.ts +124 -36
  47. package/src/lexicon/lexicons.ts +491 -138
  48. package/src/lexicon/types/app/bsky/actor/defs.ts +59 -0
  49. package/src/lexicon/types/app/bsky/feed/post.ts +1 -1
  50. package/src/lexicon/types/com/atproto/admin/defs.ts +24 -0
  51. package/src/lexicon/types/com/atproto/admin/emitModerationEvent.ts +1 -0
  52. package/src/lexicon/types/com/atproto/admin/queryModerationEvents.ts +4 -0
  53. package/src/lexicon/types/com/atproto/admin/queryModerationStatuses.ts +2 -0
  54. package/src/lexicon/types/com/atproto/identity/getRecommendedDidCredentials.ts +47 -0
  55. package/src/lexicon/types/com/atproto/identity/requestPlcOperationSignature.ts +31 -0
  56. package/src/lexicon/types/com/atproto/{temp/transferAccount.ts → identity/signPlcOperation.ts} +8 -15
  57. package/src/lexicon/types/com/atproto/identity/submitPlcOperation.ts +38 -0
  58. package/src/lexicon/types/com/atproto/{temp/pushBlob.ts → repo/importRepo.ts} +2 -5
  59. package/src/lexicon/types/com/atproto/repo/listMissingBlobs.ts +65 -0
  60. package/src/lexicon/types/com/atproto/server/activateAccount.ts +31 -0
  61. package/src/lexicon/types/com/atproto/server/checkAccountStatus.ts +51 -0
  62. package/src/lexicon/types/com/atproto/server/deactivateAccount.ts +39 -0
  63. package/src/lexicon/types/com/atproto/server/describeServer.ts +1 -0
  64. package/src/lexicon/types/com/atproto/{temp/importRepo.ts → server/getServiceAuth.ts} +10 -9
  65. package/src/lexicon/types/com/atproto/sync/subscribeRepos.ts +24 -3
  66. package/src/logger.ts +2 -0
  67. package/src/mod-service/index.ts +60 -10
  68. package/src/mod-service/lang.ts +82 -0
  69. package/src/mod-service/status.ts +18 -4
  70. package/src/mod-service/types.ts +1 -0
  71. package/src/mod-service/views.ts +21 -2
  72. package/tests/__snapshots__/get-record.test.ts.snap +6 -0
  73. package/tests/__snapshots__/get-repo.test.ts.snap +3 -0
  74. package/tests/__snapshots__/moderation-events.test.ts.snap +45 -4
  75. package/tests/__snapshots__/moderation-statuses.test.ts.snap +59 -3
  76. package/tests/__snapshots__/moderation.test.ts.snap +3 -3
  77. package/tests/get-record.test.ts +0 -8
  78. package/tests/moderation-events.test.ts +57 -5
  79. package/tests/moderation-status-tags.test.ts +92 -0
  80. package/tests/moderation-statuses.test.ts +20 -3
package/dist/index.js CHANGED
@@ -27864,16 +27864,16 @@ var require_validate = __commonJS({
27864
27864
  const matches = RELATIVE_JSON_POINTER.exec($data);
27865
27865
  if (!matches)
27866
27866
  throw new Error(`Invalid JSON-pointer: ${$data}`);
27867
- const up4 = +matches[1];
27867
+ const up5 = +matches[1];
27868
27868
  jsonPointer = matches[2];
27869
27869
  if (jsonPointer === "#") {
27870
- if (up4 >= dataLevel)
27871
- throw new Error(errorMsg("property/index", up4));
27872
- return dataPathArr[dataLevel - up4];
27870
+ if (up5 >= dataLevel)
27871
+ throw new Error(errorMsg("property/index", up5));
27872
+ return dataPathArr[dataLevel - up5];
27873
27873
  }
27874
- if (up4 > dataLevel)
27875
- throw new Error(errorMsg("data", up4));
27876
- data = dataNames[dataLevel - up4];
27874
+ if (up5 > dataLevel)
27875
+ throw new Error(errorMsg("data", up5));
27876
+ data = dataNames[dataLevel - up5];
27877
27877
  if (!jsonPointer)
27878
27878
  return data;
27879
27879
  }
@@ -27886,8 +27886,8 @@ var require_validate = __commonJS({
27886
27886
  }
27887
27887
  }
27888
27888
  return expr;
27889
- function errorMsg(pointerType, up4) {
27890
- return `Cannot access ${pointerType} ${up4} levels up, current level is ${dataLevel}`;
27889
+ function errorMsg(pointerType, up5) {
27890
+ return `Cannot access ${pointerType} ${up5} levels up, current level is ${dataLevel}`;
27891
27891
  }
27892
27892
  }
27893
27893
  exports.getData = getData;
@@ -102188,6 +102188,12 @@ var schemaDict = {
102188
102188
  suspendUntil: {
102189
102189
  type: "string",
102190
102190
  format: "datetime"
102191
+ },
102192
+ tags: {
102193
+ type: "array",
102194
+ items: {
102195
+ type: "string"
102196
+ }
102191
102197
  }
102192
102198
  }
102193
102199
  },
@@ -102779,6 +102785,31 @@ var schemaDict = {
102779
102785
  }
102780
102786
  }
102781
102787
  },
102788
+ modEventTag: {
102789
+ type: "object",
102790
+ description: "Add/Remove a tag on a subject",
102791
+ required: ["add", "remove"],
102792
+ properties: {
102793
+ add: {
102794
+ type: "array",
102795
+ items: {
102796
+ type: "string"
102797
+ },
102798
+ description: "Tags to be added to the subject. If already exists, won't be duplicated."
102799
+ },
102800
+ remove: {
102801
+ type: "array",
102802
+ items: {
102803
+ type: "string"
102804
+ },
102805
+ description: "Tags to be removed to the subject. Ignores a tag If it doesn't exist, won't be duplicated."
102806
+ },
102807
+ comment: {
102808
+ type: "string",
102809
+ description: "Additional comment about added/removed tags."
102810
+ }
102811
+ }
102812
+ },
102782
102813
  communicationTemplateView: {
102783
102814
  type: "object",
102784
102815
  required: [
@@ -102953,7 +102984,8 @@ var schemaDict = {
102953
102984
  "lex:com.atproto.admin.defs#modEventMute",
102954
102985
  "lex:com.atproto.admin.defs#modEventReverseTakedown",
102955
102986
  "lex:com.atproto.admin.defs#modEventUnmute",
102956
- "lex:com.atproto.admin.defs#modEventEmail"
102987
+ "lex:com.atproto.admin.defs#modEventEmail",
102988
+ "lex:com.atproto.admin.defs#modEventTag"
102957
102989
  ]
102958
102990
  },
102959
102991
  subject: {
@@ -103375,6 +103407,20 @@ var schemaDict = {
103375
103407
  },
103376
103408
  description: "If specified, only events where all of these labels were removed are returned"
103377
103409
  },
103410
+ addedTags: {
103411
+ type: "array",
103412
+ items: {
103413
+ type: "string"
103414
+ },
103415
+ description: "If specified, only events where all of these tags were added are returned"
103416
+ },
103417
+ removedTags: {
103418
+ type: "array",
103419
+ items: {
103420
+ type: "string"
103421
+ },
103422
+ description: "If specified, only events where all of these tags were removed are returned"
103423
+ },
103378
103424
  reportTypes: {
103379
103425
  type: "array",
103380
103426
  items: {
@@ -103490,6 +103536,18 @@ var schemaDict = {
103490
103536
  maximum: 100,
103491
103537
  default: 50
103492
103538
  },
103539
+ tags: {
103540
+ type: "array",
103541
+ items: {
103542
+ type: "string"
103543
+ }
103544
+ },
103545
+ excludeTags: {
103546
+ type: "array",
103547
+ items: {
103548
+ type: "string"
103549
+ }
103550
+ },
103493
103551
  cursor: {
103494
103552
  type: "string"
103495
103553
  }
@@ -103772,6 +103830,53 @@ var schemaDict = {
103772
103830
  }
103773
103831
  }
103774
103832
  },
103833
+ ComAtprotoIdentityGetRecommendedDidCredentials: {
103834
+ lexicon: 1,
103835
+ id: "com.atproto.identity.getRecommendedDidCredentials",
103836
+ defs: {
103837
+ main: {
103838
+ type: "query",
103839
+ description: "Describe the credentials that should be included in the DID doc of an account that is migrating to this service.",
103840
+ output: {
103841
+ encoding: "application/json",
103842
+ schema: {
103843
+ type: "object",
103844
+ properties: {
103845
+ rotationKeys: {
103846
+ description: "Recommended rotation keys for PLC dids. Should be undefined (or ignored) for did:webs.",
103847
+ type: "array",
103848
+ items: {
103849
+ type: "string"
103850
+ }
103851
+ },
103852
+ alsoKnownAs: {
103853
+ type: "array",
103854
+ items: {
103855
+ type: "string"
103856
+ }
103857
+ },
103858
+ verificationMethods: {
103859
+ type: "unknown"
103860
+ },
103861
+ services: {
103862
+ type: "unknown"
103863
+ }
103864
+ }
103865
+ }
103866
+ }
103867
+ }
103868
+ }
103869
+ },
103870
+ ComAtprotoIdentityRequestPlcOperationSignature: {
103871
+ lexicon: 1,
103872
+ id: "com.atproto.identity.requestPlcOperationSignature",
103873
+ defs: {
103874
+ main: {
103875
+ type: "procedure",
103876
+ description: "Request an email with a code to in order to request a signed PLC operation. Requires Auth."
103877
+ }
103878
+ }
103879
+ },
103775
103880
  ComAtprotoIdentityResolveHandle: {
103776
103881
  lexicon: 1,
103777
103882
  id: "com.atproto.identity.resolveHandle",
@@ -103806,6 +103911,81 @@ var schemaDict = {
103806
103911
  }
103807
103912
  }
103808
103913
  },
103914
+ ComAtprotoIdentitySignPlcOperation: {
103915
+ lexicon: 1,
103916
+ id: "com.atproto.identity.signPlcOperation",
103917
+ defs: {
103918
+ main: {
103919
+ type: "procedure",
103920
+ description: "Signs a PLC operation to update some value(s) in the requesting DID's document.",
103921
+ input: {
103922
+ encoding: "application/json",
103923
+ schema: {
103924
+ type: "object",
103925
+ properties: {
103926
+ token: {
103927
+ description: "A token received through com.atproto.identity.requestPlcOperationSignature",
103928
+ type: "string"
103929
+ },
103930
+ rotationKeys: {
103931
+ type: "array",
103932
+ items: {
103933
+ type: "string"
103934
+ }
103935
+ },
103936
+ alsoKnownAs: {
103937
+ type: "array",
103938
+ items: {
103939
+ type: "string"
103940
+ }
103941
+ },
103942
+ verificationMethods: {
103943
+ type: "unknown"
103944
+ },
103945
+ services: {
103946
+ type: "unknown"
103947
+ }
103948
+ }
103949
+ }
103950
+ },
103951
+ output: {
103952
+ encoding: "application/json",
103953
+ schema: {
103954
+ type: "object",
103955
+ required: ["operation"],
103956
+ properties: {
103957
+ operation: {
103958
+ type: "unknown",
103959
+ description: "A signed DID PLC operation."
103960
+ }
103961
+ }
103962
+ }
103963
+ }
103964
+ }
103965
+ }
103966
+ },
103967
+ ComAtprotoIdentitySubmitPlcOperation: {
103968
+ lexicon: 1,
103969
+ id: "com.atproto.identity.submitPlcOperation",
103970
+ defs: {
103971
+ main: {
103972
+ type: "procedure",
103973
+ 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",
103974
+ input: {
103975
+ encoding: "application/json",
103976
+ schema: {
103977
+ type: "object",
103978
+ required: ["operation"],
103979
+ properties: {
103980
+ operation: {
103981
+ type: "unknown"
103982
+ }
103983
+ }
103984
+ }
103985
+ }
103986
+ }
103987
+ }
103988
+ },
103809
103989
  ComAtprotoIdentityUpdateHandle: {
103810
103990
  lexicon: 1,
103811
103991
  id: "com.atproto.identity.updateHandle",
@@ -104478,6 +104658,76 @@ var schemaDict = {
104478
104658
  }
104479
104659
  }
104480
104660
  },
104661
+ ComAtprotoRepoImportRepo: {
104662
+ lexicon: 1,
104663
+ id: "com.atproto.repo.importRepo",
104664
+ defs: {
104665
+ main: {
104666
+ type: "procedure",
104667
+ description: "Import a repo in the form of a CAR file. Requires Content-Length HTTP header to be set.",
104668
+ input: {
104669
+ encoding: "application/vnd.ipld.car"
104670
+ }
104671
+ }
104672
+ }
104673
+ },
104674
+ ComAtprotoRepoListMissingBlobs: {
104675
+ lexicon: 1,
104676
+ id: "com.atproto.repo.listMissingBlobs",
104677
+ defs: {
104678
+ main: {
104679
+ type: "query",
104680
+ description: "Returns a list of missing blobs for the requesting account. Intended to be used in the account migration flow.",
104681
+ parameters: {
104682
+ type: "params",
104683
+ properties: {
104684
+ limit: {
104685
+ type: "integer",
104686
+ minimum: 1,
104687
+ maximum: 1e3,
104688
+ default: 500
104689
+ },
104690
+ cursor: {
104691
+ type: "string"
104692
+ }
104693
+ }
104694
+ },
104695
+ output: {
104696
+ encoding: "application/json",
104697
+ schema: {
104698
+ type: "object",
104699
+ required: ["blobs"],
104700
+ properties: {
104701
+ cursor: {
104702
+ type: "string"
104703
+ },
104704
+ blobs: {
104705
+ type: "array",
104706
+ items: {
104707
+ type: "ref",
104708
+ ref: "lex:com.atproto.repo.listMissingBlobs#recordBlob"
104709
+ }
104710
+ }
104711
+ }
104712
+ }
104713
+ }
104714
+ },
104715
+ recordBlob: {
104716
+ type: "object",
104717
+ required: ["cid", "recordUri"],
104718
+ properties: {
104719
+ cid: {
104720
+ type: "string",
104721
+ format: "cid"
104722
+ },
104723
+ recordUri: {
104724
+ type: "string",
104725
+ format: "at-uri"
104726
+ }
104727
+ }
104728
+ }
104729
+ }
104730
+ },
104481
104731
  ComAtprotoRepoListRecords: {
104482
104732
  lexicon: 1,
104483
104733
  id: "com.atproto.repo.listRecords",
@@ -104684,6 +104934,73 @@ var schemaDict = {
104684
104934
  }
104685
104935
  }
104686
104936
  },
104937
+ ComAtprotoServerActivateAccount: {
104938
+ lexicon: 1,
104939
+ id: "com.atproto.server.activateAccount",
104940
+ defs: {
104941
+ main: {
104942
+ type: "procedure",
104943
+ description: "Activates a currently deactivated account. Used to finalize account migration after the account's repo is imported and identity is setup."
104944
+ }
104945
+ }
104946
+ },
104947
+ ComAtprotoServerCheckAccountStatus: {
104948
+ lexicon: 1,
104949
+ id: "com.atproto.server.checkAccountStatus",
104950
+ defs: {
104951
+ main: {
104952
+ type: "query",
104953
+ 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.",
104954
+ output: {
104955
+ encoding: "application/json",
104956
+ schema: {
104957
+ type: "object",
104958
+ required: [
104959
+ "activated",
104960
+ "validDid",
104961
+ "repoCommit",
104962
+ "repoRev",
104963
+ "repoBlocks",
104964
+ "indexedRecords",
104965
+ "privateStateValues",
104966
+ "expectedBlobs",
104967
+ "importedBlobs"
104968
+ ],
104969
+ properties: {
104970
+ activated: {
104971
+ type: "boolean"
104972
+ },
104973
+ validDid: {
104974
+ type: "boolean"
104975
+ },
104976
+ repoCommit: {
104977
+ type: "string",
104978
+ format: "cid"
104979
+ },
104980
+ repoRev: {
104981
+ type: "string"
104982
+ },
104983
+ repoBlocks: {
104984
+ type: "integer"
104985
+ },
104986
+ indexedRecords: {
104987
+ type: "integer"
104988
+ },
104989
+ privateStateValues: {
104990
+ type: "integer"
104991
+ },
104992
+ expectedBlobs: {
104993
+ type: "integer"
104994
+ },
104995
+ importedBlobs: {
104996
+ type: "integer"
104997
+ }
104998
+ }
104999
+ }
105000
+ }
105001
+ }
105002
+ }
105003
+ },
104687
105004
  ComAtprotoServerConfirmEmail: {
104688
105005
  lexicon: 1,
104689
105006
  id: "com.atproto.server.confirmEmail",
@@ -105044,6 +105361,29 @@ var schemaDict = {
105044
105361
  }
105045
105362
  }
105046
105363
  },
105364
+ ComAtprotoServerDeactivateAccount: {
105365
+ lexicon: 1,
105366
+ id: "com.atproto.server.deactivateAccount",
105367
+ defs: {
105368
+ main: {
105369
+ type: "procedure",
105370
+ 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.",
105371
+ input: {
105372
+ encoding: "application/json",
105373
+ schema: {
105374
+ type: "object",
105375
+ properties: {
105376
+ deleteAfter: {
105377
+ type: "string",
105378
+ format: "datetime",
105379
+ description: "A recommendation to server as to how long they should hold onto the deactivated account before deleting."
105380
+ }
105381
+ }
105382
+ }
105383
+ }
105384
+ }
105385
+ }
105386
+ },
105047
105387
  ComAtprotoServerDefs: {
105048
105388
  lexicon: 1,
105049
105389
  id: "com.atproto.server.defs",
@@ -105162,7 +105502,7 @@ var schemaDict = {
105162
105502
  encoding: "application/json",
105163
105503
  schema: {
105164
105504
  type: "object",
105165
- required: ["availableUserDomains"],
105505
+ required: ["did", "availableUserDomains"],
105166
105506
  properties: {
105167
105507
  inviteCodeRequired: {
105168
105508
  type: "boolean",
@@ -105183,6 +105523,10 @@ var schemaDict = {
105183
105523
  type: "ref",
105184
105524
  description: "URLs of service policy documents.",
105185
105525
  ref: "lex:com.atproto.server.describeServer#links"
105526
+ },
105527
+ did: {
105528
+ type: "string",
105529
+ format: "did"
105186
105530
  }
105187
105531
  }
105188
105532
  }
@@ -105246,6 +105590,39 @@ var schemaDict = {
105246
105590
  }
105247
105591
  }
105248
105592
  },
105593
+ ComAtprotoServerGetServiceAuth: {
105594
+ lexicon: 1,
105595
+ id: "com.atproto.server.getServiceAuth",
105596
+ defs: {
105597
+ main: {
105598
+ type: "query",
105599
+ description: "Get a signed token on behalf of the requesting DID for the requested service.",
105600
+ parameters: {
105601
+ type: "params",
105602
+ required: ["aud"],
105603
+ properties: {
105604
+ aud: {
105605
+ type: "string",
105606
+ format: "did",
105607
+ description: "The DID of the service that the token will be used to authenticate with"
105608
+ }
105609
+ }
105610
+ },
105611
+ output: {
105612
+ encoding: "application/json",
105613
+ schema: {
105614
+ type: "object",
105615
+ required: ["token"],
105616
+ properties: {
105617
+ token: {
105618
+ type: "string"
105619
+ }
105620
+ }
105621
+ }
105622
+ }
105623
+ }
105624
+ }
105625
+ },
105249
105626
  ComAtprotoServerGetSession: {
105250
105627
  lexicon: 1,
105251
105628
  id: "com.atproto.server.getSession",
@@ -105970,6 +106347,7 @@ var schemaDict = {
105970
106347
  type: "union",
105971
106348
  refs: [
105972
106349
  "lex:com.atproto.sync.subscribeRepos#commit",
106350
+ "lex:com.atproto.sync.subscribeRepos#identity",
105973
106351
  "lex:com.atproto.sync.subscribeRepos#handle",
105974
106352
  "lex:com.atproto.sync.subscribeRepos#migrate",
105975
106353
  "lex:com.atproto.sync.subscribeRepos#tombstone",
@@ -106066,9 +106444,27 @@ var schemaDict = {
106066
106444
  }
106067
106445
  }
106068
106446
  },
106447
+ identity: {
106448
+ type: "object",
106449
+ 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.",
106450
+ required: ["seq", "did", "time"],
106451
+ properties: {
106452
+ seq: {
106453
+ type: "integer"
106454
+ },
106455
+ did: {
106456
+ type: "string",
106457
+ format: "did"
106458
+ },
106459
+ time: {
106460
+ type: "string",
106461
+ format: "datetime"
106462
+ }
106463
+ }
106464
+ },
106069
106465
  handle: {
106070
106466
  type: "object",
106071
- description: "Represents an update of the account's handle, or transition to/from invalid state.",
106467
+ description: "Represents an update of the account's handle, or transition to/from invalid state. NOTE: Will be deprecated in favor of #identity.",
106072
106468
  required: ["seq", "did", "handle", "time"],
106073
106469
  properties: {
106074
106470
  seq: {
@@ -106090,7 +106486,7 @@ var schemaDict = {
106090
106486
  },
106091
106487
  migrate: {
106092
106488
  type: "object",
106093
- description: "Represents an account moving from one PDS instance to another. NOTE: not implemented; full account migration may introduce a new message instead.",
106489
+ description: "Represents an account moving from one PDS instance to another. NOTE: not implemented; account migration uses #identity instead",
106094
106490
  required: ["seq", "did", "migrateTo", "time"],
106095
106491
  nullable: ["migrateTo"],
106096
106492
  properties: {
@@ -106112,7 +106508,7 @@ var schemaDict = {
106112
106508
  },
106113
106509
  tombstone: {
106114
106510
  type: "object",
106115
- description: "Indicates that an account has been deleted.",
106511
+ description: "Indicates that an account has been deleted. NOTE: may be deprecated in favor of #identity or a future #account event",
106116
106512
  required: ["seq", "did", "time"],
106117
106513
  properties: {
106118
106514
  seq: {
@@ -106230,57 +106626,6 @@ var schemaDict = {
106230
106626
  }
106231
106627
  }
106232
106628
  },
106233
- ComAtprotoTempImportRepo: {
106234
- lexicon: 1,
106235
- id: "com.atproto.temp.importRepo",
106236
- defs: {
106237
- main: {
106238
- type: "procedure",
106239
- description: "Gets the did's repo, optionally catching up from a specific revision.",
106240
- parameters: {
106241
- type: "params",
106242
- required: ["did"],
106243
- properties: {
106244
- did: {
106245
- type: "string",
106246
- format: "did",
106247
- description: "The DID of the repo."
106248
- }
106249
- }
106250
- },
106251
- input: {
106252
- encoding: "application/vnd.ipld.car"
106253
- },
106254
- output: {
106255
- encoding: "text/plain"
106256
- }
106257
- }
106258
- }
106259
- },
106260
- ComAtprotoTempPushBlob: {
106261
- lexicon: 1,
106262
- id: "com.atproto.temp.pushBlob",
106263
- defs: {
106264
- main: {
106265
- type: "procedure",
106266
- description: "Gets the did's repo, optionally catching up from a specific revision.",
106267
- parameters: {
106268
- type: "params",
106269
- required: ["did"],
106270
- properties: {
106271
- did: {
106272
- type: "string",
106273
- format: "did",
106274
- description: "The DID of the repo."
106275
- }
106276
- }
106277
- },
106278
- input: {
106279
- encoding: "*/*"
106280
- }
106281
- }
106282
- }
106283
- },
106284
106629
  ComAtprotoTempRequestPhoneVerification: {
106285
106630
  lexicon: 1,
106286
106631
  id: "com.atproto.temp.requestPhoneVerification",
@@ -106303,82 +106648,6 @@ var schemaDict = {
106303
106648
  }
106304
106649
  }
106305
106650
  },
106306
- ComAtprotoTempTransferAccount: {
106307
- lexicon: 1,
106308
- id: "com.atproto.temp.transferAccount",
106309
- defs: {
106310
- main: {
106311
- type: "procedure",
106312
- description: "Transfer an account. NOTE: temporary method, necessarily how account migration will be implemented.",
106313
- input: {
106314
- encoding: "application/json",
106315
- schema: {
106316
- type: "object",
106317
- required: ["handle", "did", "plcOp"],
106318
- properties: {
106319
- handle: {
106320
- type: "string",
106321
- format: "handle"
106322
- },
106323
- did: {
106324
- type: "string",
106325
- format: "did"
106326
- },
106327
- plcOp: {
106328
- type: "unknown"
106329
- }
106330
- }
106331
- }
106332
- },
106333
- output: {
106334
- encoding: "application/json",
106335
- schema: {
106336
- type: "object",
106337
- required: ["accessJwt", "refreshJwt", "handle", "did"],
106338
- properties: {
106339
- accessJwt: {
106340
- type: "string"
106341
- },
106342
- refreshJwt: {
106343
- type: "string"
106344
- },
106345
- handle: {
106346
- type: "string",
106347
- format: "handle"
106348
- },
106349
- did: {
106350
- type: "string",
106351
- format: "did"
106352
- }
106353
- }
106354
- }
106355
- },
106356
- errors: [
106357
- {
106358
- name: "InvalidHandle"
106359
- },
106360
- {
106361
- name: "InvalidPassword"
106362
- },
106363
- {
106364
- name: "InvalidInviteCode"
106365
- },
106366
- {
106367
- name: "HandleNotAvailable"
106368
- },
106369
- {
106370
- name: "UnsupportedDomain"
106371
- },
106372
- {
106373
- name: "UnresolvableDid"
106374
- },
106375
- {
106376
- name: "IncompatibleDidDoc"
106377
- }
106378
- ]
106379
- }
106380
- }
106381
- },
106382
106651
  AppBskyActorDefs: {
106383
106652
  lexicon: 1,
106384
106653
  id: "app.bsky.actor.defs",
@@ -106674,6 +106943,61 @@ var schemaDict = {
106674
106943
  description: "A list of tags which describe the account owner's interests gathered during onboarding."
106675
106944
  }
106676
106945
  }
106946
+ },
106947
+ mutedWordTarget: {
106948
+ type: "string",
106949
+ knownValues: ["content", "tag"],
106950
+ maxLength: 640,
106951
+ maxGraphemes: 64
106952
+ },
106953
+ mutedWord: {
106954
+ type: "object",
106955
+ description: "A word that the account owner has muted.",
106956
+ required: ["value", "targets"],
106957
+ properties: {
106958
+ value: {
106959
+ type: "string",
106960
+ description: "The muted word itself.",
106961
+ maxLength: 1e4,
106962
+ maxGraphemes: 1e3
106963
+ },
106964
+ targets: {
106965
+ type: "array",
106966
+ description: "The intended targets of the muted word.",
106967
+ items: {
106968
+ type: "ref",
106969
+ ref: "lex:app.bsky.actor.defs#mutedWordTarget"
106970
+ }
106971
+ }
106972
+ }
106973
+ },
106974
+ mutedWordsPref: {
106975
+ type: "object",
106976
+ required: ["items"],
106977
+ properties: {
106978
+ items: {
106979
+ type: "array",
106980
+ items: {
106981
+ type: "ref",
106982
+ ref: "lex:app.bsky.actor.defs#mutedWord"
106983
+ },
106984
+ description: "A list of words the account owner has muted."
106985
+ }
106986
+ }
106987
+ },
106988
+ hiddenPostsPref: {
106989
+ type: "object",
106990
+ required: ["items"],
106991
+ properties: {
106992
+ items: {
106993
+ type: "array",
106994
+ items: {
106995
+ type: "string",
106996
+ format: "at-uri"
106997
+ },
106998
+ description: "A list of URIs of posts the account owner has hidden."
106999
+ }
107000
+ }
106677
107001
  }
106678
107002
  }
106679
107003
  },
@@ -108540,7 +108864,7 @@ var schemaDict = {
108540
108864
  },
108541
108865
  tags: {
108542
108866
  type: "array",
108543
- description: "Additional non-inline tags describing this post.",
108867
+ description: "Additional hashtags, in addition to any included in post text and facets.",
108544
108868
  maxLength: 8,
108545
108869
  items: {
108546
108870
  type: "string",
@@ -110190,6 +110514,9 @@ function isModEventMute(v) {
110190
110514
  function isModEventEmail(v) {
110191
110515
  return isObj2(v) && hasProp2(v, "$type") && v.$type === "com.atproto.admin.defs#modEventEmail";
110192
110516
  }
110517
+ function isModEventTag(v) {
110518
+ return isObj2(v) && hasProp2(v, "$type") && v.$type === "com.atproto.admin.defs#modEventTag";
110519
+ }
110193
110520
 
110194
110521
  // src/api/moderation/util.ts
110195
110522
  var getReasonType = (reasonType) => {
@@ -110233,7 +110560,8 @@ var eventTypes = /* @__PURE__ */ new Set([
110233
110560
  "com.atproto.admin.defs#modEventUnmute",
110234
110561
  "com.atproto.admin.defs#modEventReverseTakedown",
110235
110562
  "com.atproto.admin.defs#modEventEmail",
110236
- "com.atproto.admin.defs#modEventResolveAppeal"
110563
+ "com.atproto.admin.defs#modEventResolveAppeal",
110564
+ "com.atproto.admin.defs#modEventTag"
110237
110565
  ]);
110238
110566
 
110239
110567
  // src/mod-service/subject.ts
@@ -110325,6 +110653,80 @@ var RecordSubject = class {
110325
110653
  }
110326
110654
  };
110327
110655
 
110656
+ // src/logger.ts
110657
+ var import_pino_http = __toESM(require_logger());
110658
+ var dbLogger = subsystemLogger("ozone:db");
110659
+ var httpLogger = subsystemLogger("ozone");
110660
+ var langLogger = subsystemLogger("ozone:lang");
110661
+ var loggerMiddleware = (0, import_pino_http.default)({
110662
+ logger: httpLogger,
110663
+ serializers: {
110664
+ err: (err) => {
110665
+ return {
110666
+ code: err?.code,
110667
+ message: err?.message
110668
+ };
110669
+ }
110670
+ }
110671
+ });
110672
+
110673
+ // src/mod-service/lang.ts
110674
+ var ModerationLangService = class {
110675
+ constructor(moderationService) {
110676
+ this.moderationService = moderationService;
110677
+ }
110678
+ async tagSubjectWithLang({
110679
+ subject,
110680
+ subjectStatus,
110681
+ createdBy
110682
+ }) {
110683
+ if (subjectStatus && !subjectStatus.tags?.find((tag) => tag.includes("lang:"))) {
110684
+ try {
110685
+ const recordLangs = await this.getRecordLang({
110686
+ subject
110687
+ });
110688
+ await this.moderationService.logEvent({
110689
+ event: {
110690
+ $type: "com.atproto.admin.defs#modEventTag",
110691
+ add: recordLangs ? recordLangs.map((lang) => `lang:${lang}`) : ["lang:und"],
110692
+ remove: []
110693
+ },
110694
+ subject,
110695
+ createdBy
110696
+ });
110697
+ } catch (err) {
110698
+ langLogger.error({ subject, err }, "Error getting record langs");
110699
+ }
110700
+ }
110701
+ }
110702
+ async getRecordLang({
110703
+ subject
110704
+ }) {
110705
+ const isRecord = subject.isRecord();
110706
+ const langs = /* @__PURE__ */ new Set();
110707
+ if (subject.isRepo() || isRecord && subject.uri.endsWith("/app.bsky.actor.profile/self")) {
110708
+ const feed = await this.moderationService.views.fetchAuthorFeed(subject.did);
110709
+ feed.forEach((item) => {
110710
+ const itemLangs = item.post.record["langs"];
110711
+ if (itemLangs?.length) {
110712
+ itemLangs.forEach((lang) => langs.add(lang.split("-")[0]));
110713
+ }
110714
+ });
110715
+ }
110716
+ if (isRecord) {
110717
+ const recordByUri = await this.moderationService.views.fetchRecords([
110718
+ subject
110719
+ ]);
110720
+ const record = recordByUri.get(subject.uri);
110721
+ const recordLang = record?.value.langs;
110722
+ if (recordLang?.length) {
110723
+ recordLang.map((lang) => lang.split("-")[0]).forEach((lang) => langs.add(lang));
110724
+ }
110725
+ }
110726
+ return langs.size > 0 ? Array.from(langs) : null;
110727
+ }
110728
+ };
110729
+
110328
110730
  // src/api/moderation/createReport.ts
110329
110731
  function createReport_default(server, ctx) {
110330
110732
  server.com.atproto.moderation.createReport({
@@ -110339,12 +110741,19 @@ function createReport_default(server, ctx) {
110339
110741
  const db = ctx.db;
110340
110742
  const report = await db.transaction(async (dbTxn) => {
110341
110743
  const moderationTxn = ctx.modService(dbTxn);
110342
- return moderationTxn.report({
110744
+ const { event: reportEvent, subjectStatus } = await moderationTxn.report({
110343
110745
  reasonType: getReasonType(reasonType),
110344
110746
  reason,
110345
110747
  subject,
110346
110748
  reportedBy: requester || ctx.cfg.service.did
110347
110749
  });
110750
+ const moderationLangService = new ModerationLangService(moderationTxn);
110751
+ await moderationLangService.tagSubjectWithLang({
110752
+ subject,
110753
+ subjectStatus,
110754
+ createdBy: ctx.cfg.service.did
110755
+ });
110756
+ return reportEvent;
110348
110757
  });
110349
110758
  const body = ctx.modService(db).views.formatReport(report);
110350
110759
  return {
@@ -110402,28 +110811,34 @@ function emitModerationEvent_default(server, ctx) {
110402
110811
  subject,
110403
110812
  createdBy
110404
110813
  });
110814
+ const moderationLangService = new ModerationLangService(moderationTxn);
110815
+ await moderationLangService.tagSubjectWithLang({
110816
+ subject,
110817
+ createdBy: ctx.cfg.service.did,
110818
+ subjectStatus: result.subjectStatus
110819
+ });
110405
110820
  if (subject.isRepo()) {
110406
110821
  if (isTakedownEvent) {
110407
- const isSuspend = !!result.durationInHours;
110408
- await moderationTxn.takedownRepo(subject, result.id, isSuspend);
110822
+ const isSuspend = !!result.event.durationInHours;
110823
+ await moderationTxn.takedownRepo(subject, result.event.id, isSuspend);
110409
110824
  } else if (isReverseTakedownEvent) {
110410
110825
  await moderationTxn.reverseTakedownRepo(subject);
110411
110826
  }
110412
110827
  }
110413
110828
  if (subject.isRecord()) {
110414
110829
  if (isTakedownEvent) {
110415
- await moderationTxn.takedownRecord(subject, result.id);
110830
+ await moderationTxn.takedownRecord(subject, result.event.id);
110416
110831
  } else if (isReverseTakedownEvent) {
110417
110832
  await moderationTxn.reverseTakedownRecord(subject);
110418
110833
  }
110419
110834
  }
110420
110835
  if (isLabelEvent) {
110421
- await moderationTxn.formatAndCreateLabels(result.subjectUri ?? result.subjectDid, result.subjectCid, {
110422
- create: result.createLabelVals?.length ? result.createLabelVals.split(" ") : void 0,
110423
- negate: result.negateLabelVals?.length ? result.negateLabelVals.split(" ") : void 0
110836
+ await moderationTxn.formatAndCreateLabels(result.event.subjectUri ?? result.event.subjectDid, result.event.subjectCid, {
110837
+ create: result.event.createLabelVals?.length ? result.event.createLabelVals.split(" ") : void 0,
110838
+ negate: result.event.negateLabelVals?.length ? result.event.negateLabelVals.split(" ") : void 0
110424
110839
  });
110425
110840
  }
110426
- return result;
110841
+ return result.event;
110427
110842
  });
110428
110843
  return {
110429
110844
  encoding: "application/json",
@@ -110579,7 +110994,9 @@ function queryModerationStatuses_default(server, ctx) {
110579
110994
  sortField = "lastReportedAt",
110580
110995
  includeMuted = false,
110581
110996
  limit = 50,
110582
- cursor
110997
+ cursor,
110998
+ tags = [],
110999
+ excludeTags = []
110583
111000
  } = params2;
110584
111001
  const db = ctx.db;
110585
111002
  const modService = ctx.modService(db);
@@ -110598,7 +111015,9 @@ function queryModerationStatuses_default(server, ctx) {
110598
111015
  lastReviewedBy,
110599
111016
  sortField,
110600
111017
  limit,
110601
- cursor
111018
+ cursor,
111019
+ tags,
111020
+ excludeTags
110602
111021
  });
110603
111022
  const subjectStatuses = results.statuses.map((status) => modService.views.formatSubjectStatus(status));
110604
111023
  return {
@@ -110631,6 +111050,8 @@ function queryModerationEvents_default(server, ctx) {
110631
111050
  createdBefore,
110632
111051
  addedLabels = [],
110633
111052
  removedLabels = [],
111053
+ addedTags = [],
111054
+ removedTags = [],
110634
111055
  reportTypes
110635
111056
  } = params2;
110636
111057
  const db = ctx.db;
@@ -110648,7 +111069,9 @@ function queryModerationEvents_default(server, ctx) {
110648
111069
  createdAfter,
110649
111070
  createdBefore,
110650
111071
  addedLabels,
111072
+ addedTags,
110651
111073
  removedLabels,
111074
+ removedTags,
110652
111075
  reportTypes
110653
111076
  });
110654
111077
  return {
@@ -118419,22 +118842,6 @@ function api_default(server, ctx) {
118419
118842
  return server;
118420
118843
  }
118421
118844
 
118422
- // src/logger.ts
118423
- var import_pino_http = __toESM(require_logger());
118424
- var dbLogger = subsystemLogger("ozone:db");
118425
- var httpLogger = subsystemLogger("ozone");
118426
- var loggerMiddleware = (0, import_pino_http.default)({
118427
- logger: httpLogger,
118428
- serializers: {
118429
- err: (err) => {
118430
- return {
118431
- code: err?.code,
118432
- message: err?.message
118433
- };
118434
- }
118435
- }
118436
- });
118437
-
118438
118845
  // src/error.ts
118439
118846
  var handler = (err, _req, res, next) => {
118440
118847
  httpLogger.error(err, "unexpected internal server error");
@@ -118576,10 +118983,26 @@ var ComAtprotoIdentityNS = class {
118576
118983
  constructor(server) {
118577
118984
  this._server = server;
118578
118985
  }
118986
+ getRecommendedDidCredentials(cfg) {
118987
+ const nsid2 = "com.atproto.identity.getRecommendedDidCredentials";
118988
+ return this._server.xrpc.method(nsid2, cfg);
118989
+ }
118990
+ requestPlcOperationSignature(cfg) {
118991
+ const nsid2 = "com.atproto.identity.requestPlcOperationSignature";
118992
+ return this._server.xrpc.method(nsid2, cfg);
118993
+ }
118579
118994
  resolveHandle(cfg) {
118580
118995
  const nsid2 = "com.atproto.identity.resolveHandle";
118581
118996
  return this._server.xrpc.method(nsid2, cfg);
118582
118997
  }
118998
+ signPlcOperation(cfg) {
118999
+ const nsid2 = "com.atproto.identity.signPlcOperation";
119000
+ return this._server.xrpc.method(nsid2, cfg);
119001
+ }
119002
+ submitPlcOperation(cfg) {
119003
+ const nsid2 = "com.atproto.identity.submitPlcOperation";
119004
+ return this._server.xrpc.method(nsid2, cfg);
119005
+ }
118583
119006
  updateHandle(cfg) {
118584
119007
  const nsid2 = "com.atproto.identity.updateHandle";
118585
119008
  return this._server.xrpc.method(nsid2, cfg);
@@ -118631,6 +119054,14 @@ var ComAtprotoRepoNS = class {
118631
119054
  const nsid2 = "com.atproto.repo.getRecord";
118632
119055
  return this._server.xrpc.method(nsid2, cfg);
118633
119056
  }
119057
+ importRepo(cfg) {
119058
+ const nsid2 = "com.atproto.repo.importRepo";
119059
+ return this._server.xrpc.method(nsid2, cfg);
119060
+ }
119061
+ listMissingBlobs(cfg) {
119062
+ const nsid2 = "com.atproto.repo.listMissingBlobs";
119063
+ return this._server.xrpc.method(nsid2, cfg);
119064
+ }
118634
119065
  listRecords(cfg) {
118635
119066
  const nsid2 = "com.atproto.repo.listRecords";
118636
119067
  return this._server.xrpc.method(nsid2, cfg);
@@ -118648,6 +119079,14 @@ var ComAtprotoServerNS = class {
118648
119079
  constructor(server) {
118649
119080
  this._server = server;
118650
119081
  }
119082
+ activateAccount(cfg) {
119083
+ const nsid2 = "com.atproto.server.activateAccount";
119084
+ return this._server.xrpc.method(nsid2, cfg);
119085
+ }
119086
+ checkAccountStatus(cfg) {
119087
+ const nsid2 = "com.atproto.server.checkAccountStatus";
119088
+ return this._server.xrpc.method(nsid2, cfg);
119089
+ }
118651
119090
  confirmEmail(cfg) {
118652
119091
  const nsid2 = "com.atproto.server.confirmEmail";
118653
119092
  return this._server.xrpc.method(nsid2, cfg);
@@ -118672,6 +119111,10 @@ var ComAtprotoServerNS = class {
118672
119111
  const nsid2 = "com.atproto.server.createSession";
118673
119112
  return this._server.xrpc.method(nsid2, cfg);
118674
119113
  }
119114
+ deactivateAccount(cfg) {
119115
+ const nsid2 = "com.atproto.server.deactivateAccount";
119116
+ return this._server.xrpc.method(nsid2, cfg);
119117
+ }
118675
119118
  deleteAccount(cfg) {
118676
119119
  const nsid2 = "com.atproto.server.deleteAccount";
118677
119120
  return this._server.xrpc.method(nsid2, cfg);
@@ -118688,6 +119131,10 @@ var ComAtprotoServerNS = class {
118688
119131
  const nsid2 = "com.atproto.server.getAccountInviteCodes";
118689
119132
  return this._server.xrpc.method(nsid2, cfg);
118690
119133
  }
119134
+ getServiceAuth(cfg) {
119135
+ const nsid2 = "com.atproto.server.getServiceAuth";
119136
+ return this._server.xrpc.method(nsid2, cfg);
119137
+ }
118691
119138
  getSession(cfg) {
118692
119139
  const nsid2 = "com.atproto.server.getSession";
118693
119140
  return this._server.xrpc.method(nsid2, cfg);
@@ -118798,22 +119245,10 @@ var ComAtprotoTempNS = class {
118798
119245
  const nsid2 = "com.atproto.temp.fetchLabels";
118799
119246
  return this._server.xrpc.method(nsid2, cfg);
118800
119247
  }
118801
- importRepo(cfg) {
118802
- const nsid2 = "com.atproto.temp.importRepo";
118803
- return this._server.xrpc.method(nsid2, cfg);
118804
- }
118805
- pushBlob(cfg) {
118806
- const nsid2 = "com.atproto.temp.pushBlob";
118807
- return this._server.xrpc.method(nsid2, cfg);
118808
- }
118809
119248
  requestPhoneVerification(cfg) {
118810
119249
  const nsid2 = "com.atproto.temp.requestPhoneVerification";
118811
119250
  return this._server.xrpc.method(nsid2, cfg);
118812
119251
  }
118813
- transferAccount(cfg) {
118814
- const nsid2 = "com.atproto.temp.transferAccount";
118815
- return this._server.xrpc.method(nsid2, cfg);
118816
- }
118817
119252
  };
118818
119253
  var AppNS = class {
118819
119254
  constructor(server) {
@@ -119682,6 +120117,12 @@ var schemaDict2 = {
119682
120117
  suspendUntil: {
119683
120118
  type: "string",
119684
120119
  format: "datetime"
120120
+ },
120121
+ tags: {
120122
+ type: "array",
120123
+ items: {
120124
+ type: "string"
120125
+ }
119685
120126
  }
119686
120127
  }
119687
120128
  },
@@ -120273,6 +120714,31 @@ var schemaDict2 = {
120273
120714
  }
120274
120715
  }
120275
120716
  },
120717
+ modEventTag: {
120718
+ type: "object",
120719
+ description: "Add/Remove a tag on a subject",
120720
+ required: ["add", "remove"],
120721
+ properties: {
120722
+ add: {
120723
+ type: "array",
120724
+ items: {
120725
+ type: "string"
120726
+ },
120727
+ description: "Tags to be added to the subject. If already exists, won't be duplicated."
120728
+ },
120729
+ remove: {
120730
+ type: "array",
120731
+ items: {
120732
+ type: "string"
120733
+ },
120734
+ description: "Tags to be removed to the subject. Ignores a tag If it doesn't exist, won't be duplicated."
120735
+ },
120736
+ comment: {
120737
+ type: "string",
120738
+ description: "Additional comment about added/removed tags."
120739
+ }
120740
+ }
120741
+ },
120276
120742
  communicationTemplateView: {
120277
120743
  type: "object",
120278
120744
  required: [
@@ -120447,7 +120913,8 @@ var schemaDict2 = {
120447
120913
  "lex:com.atproto.admin.defs#modEventMute",
120448
120914
  "lex:com.atproto.admin.defs#modEventReverseTakedown",
120449
120915
  "lex:com.atproto.admin.defs#modEventUnmute",
120450
- "lex:com.atproto.admin.defs#modEventEmail"
120916
+ "lex:com.atproto.admin.defs#modEventEmail",
120917
+ "lex:com.atproto.admin.defs#modEventTag"
120451
120918
  ]
120452
120919
  },
120453
120920
  subject: {
@@ -120869,6 +121336,20 @@ var schemaDict2 = {
120869
121336
  },
120870
121337
  description: "If specified, only events where all of these labels were removed are returned"
120871
121338
  },
121339
+ addedTags: {
121340
+ type: "array",
121341
+ items: {
121342
+ type: "string"
121343
+ },
121344
+ description: "If specified, only events where all of these tags were added are returned"
121345
+ },
121346
+ removedTags: {
121347
+ type: "array",
121348
+ items: {
121349
+ type: "string"
121350
+ },
121351
+ description: "If specified, only events where all of these tags were removed are returned"
121352
+ },
120872
121353
  reportTypes: {
120873
121354
  type: "array",
120874
121355
  items: {
@@ -120984,6 +121465,18 @@ var schemaDict2 = {
120984
121465
  maximum: 100,
120985
121466
  default: 50
120986
121467
  },
121468
+ tags: {
121469
+ type: "array",
121470
+ items: {
121471
+ type: "string"
121472
+ }
121473
+ },
121474
+ excludeTags: {
121475
+ type: "array",
121476
+ items: {
121477
+ type: "string"
121478
+ }
121479
+ },
120987
121480
  cursor: {
120988
121481
  type: "string"
120989
121482
  }
@@ -121266,6 +121759,53 @@ var schemaDict2 = {
121266
121759
  }
121267
121760
  }
121268
121761
  },
121762
+ ComAtprotoIdentityGetRecommendedDidCredentials: {
121763
+ lexicon: 1,
121764
+ id: "com.atproto.identity.getRecommendedDidCredentials",
121765
+ defs: {
121766
+ main: {
121767
+ type: "query",
121768
+ description: "Describe the credentials that should be included in the DID doc of an account that is migrating to this service.",
121769
+ output: {
121770
+ encoding: "application/json",
121771
+ schema: {
121772
+ type: "object",
121773
+ properties: {
121774
+ rotationKeys: {
121775
+ description: "Recommended rotation keys for PLC dids. Should be undefined (or ignored) for did:webs.",
121776
+ type: "array",
121777
+ items: {
121778
+ type: "string"
121779
+ }
121780
+ },
121781
+ alsoKnownAs: {
121782
+ type: "array",
121783
+ items: {
121784
+ type: "string"
121785
+ }
121786
+ },
121787
+ verificationMethods: {
121788
+ type: "unknown"
121789
+ },
121790
+ services: {
121791
+ type: "unknown"
121792
+ }
121793
+ }
121794
+ }
121795
+ }
121796
+ }
121797
+ }
121798
+ },
121799
+ ComAtprotoIdentityRequestPlcOperationSignature: {
121800
+ lexicon: 1,
121801
+ id: "com.atproto.identity.requestPlcOperationSignature",
121802
+ defs: {
121803
+ main: {
121804
+ type: "procedure",
121805
+ description: "Request an email with a code to in order to request a signed PLC operation. Requires Auth."
121806
+ }
121807
+ }
121808
+ },
121269
121809
  ComAtprotoIdentityResolveHandle: {
121270
121810
  lexicon: 1,
121271
121811
  id: "com.atproto.identity.resolveHandle",
@@ -121300,6 +121840,81 @@ var schemaDict2 = {
121300
121840
  }
121301
121841
  }
121302
121842
  },
121843
+ ComAtprotoIdentitySignPlcOperation: {
121844
+ lexicon: 1,
121845
+ id: "com.atproto.identity.signPlcOperation",
121846
+ defs: {
121847
+ main: {
121848
+ type: "procedure",
121849
+ description: "Signs a PLC operation to update some value(s) in the requesting DID's document.",
121850
+ input: {
121851
+ encoding: "application/json",
121852
+ schema: {
121853
+ type: "object",
121854
+ properties: {
121855
+ token: {
121856
+ description: "A token received through com.atproto.identity.requestPlcOperationSignature",
121857
+ type: "string"
121858
+ },
121859
+ rotationKeys: {
121860
+ type: "array",
121861
+ items: {
121862
+ type: "string"
121863
+ }
121864
+ },
121865
+ alsoKnownAs: {
121866
+ type: "array",
121867
+ items: {
121868
+ type: "string"
121869
+ }
121870
+ },
121871
+ verificationMethods: {
121872
+ type: "unknown"
121873
+ },
121874
+ services: {
121875
+ type: "unknown"
121876
+ }
121877
+ }
121878
+ }
121879
+ },
121880
+ output: {
121881
+ encoding: "application/json",
121882
+ schema: {
121883
+ type: "object",
121884
+ required: ["operation"],
121885
+ properties: {
121886
+ operation: {
121887
+ type: "unknown",
121888
+ description: "A signed DID PLC operation."
121889
+ }
121890
+ }
121891
+ }
121892
+ }
121893
+ }
121894
+ }
121895
+ },
121896
+ ComAtprotoIdentitySubmitPlcOperation: {
121897
+ lexicon: 1,
121898
+ id: "com.atproto.identity.submitPlcOperation",
121899
+ defs: {
121900
+ main: {
121901
+ type: "procedure",
121902
+ 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",
121903
+ input: {
121904
+ encoding: "application/json",
121905
+ schema: {
121906
+ type: "object",
121907
+ required: ["operation"],
121908
+ properties: {
121909
+ operation: {
121910
+ type: "unknown"
121911
+ }
121912
+ }
121913
+ }
121914
+ }
121915
+ }
121916
+ }
121917
+ },
121303
121918
  ComAtprotoIdentityUpdateHandle: {
121304
121919
  lexicon: 1,
121305
121920
  id: "com.atproto.identity.updateHandle",
@@ -121972,6 +122587,76 @@ var schemaDict2 = {
121972
122587
  }
121973
122588
  }
121974
122589
  },
122590
+ ComAtprotoRepoImportRepo: {
122591
+ lexicon: 1,
122592
+ id: "com.atproto.repo.importRepo",
122593
+ defs: {
122594
+ main: {
122595
+ type: "procedure",
122596
+ description: "Import a repo in the form of a CAR file. Requires Content-Length HTTP header to be set.",
122597
+ input: {
122598
+ encoding: "application/vnd.ipld.car"
122599
+ }
122600
+ }
122601
+ }
122602
+ },
122603
+ ComAtprotoRepoListMissingBlobs: {
122604
+ lexicon: 1,
122605
+ id: "com.atproto.repo.listMissingBlobs",
122606
+ defs: {
122607
+ main: {
122608
+ type: "query",
122609
+ description: "Returns a list of missing blobs for the requesting account. Intended to be used in the account migration flow.",
122610
+ parameters: {
122611
+ type: "params",
122612
+ properties: {
122613
+ limit: {
122614
+ type: "integer",
122615
+ minimum: 1,
122616
+ maximum: 1e3,
122617
+ default: 500
122618
+ },
122619
+ cursor: {
122620
+ type: "string"
122621
+ }
122622
+ }
122623
+ },
122624
+ output: {
122625
+ encoding: "application/json",
122626
+ schema: {
122627
+ type: "object",
122628
+ required: ["blobs"],
122629
+ properties: {
122630
+ cursor: {
122631
+ type: "string"
122632
+ },
122633
+ blobs: {
122634
+ type: "array",
122635
+ items: {
122636
+ type: "ref",
122637
+ ref: "lex:com.atproto.repo.listMissingBlobs#recordBlob"
122638
+ }
122639
+ }
122640
+ }
122641
+ }
122642
+ }
122643
+ },
122644
+ recordBlob: {
122645
+ type: "object",
122646
+ required: ["cid", "recordUri"],
122647
+ properties: {
122648
+ cid: {
122649
+ type: "string",
122650
+ format: "cid"
122651
+ },
122652
+ recordUri: {
122653
+ type: "string",
122654
+ format: "at-uri"
122655
+ }
122656
+ }
122657
+ }
122658
+ }
122659
+ },
121975
122660
  ComAtprotoRepoListRecords: {
121976
122661
  lexicon: 1,
121977
122662
  id: "com.atproto.repo.listRecords",
@@ -122178,6 +122863,73 @@ var schemaDict2 = {
122178
122863
  }
122179
122864
  }
122180
122865
  },
122866
+ ComAtprotoServerActivateAccount: {
122867
+ lexicon: 1,
122868
+ id: "com.atproto.server.activateAccount",
122869
+ defs: {
122870
+ main: {
122871
+ type: "procedure",
122872
+ description: "Activates a currently deactivated account. Used to finalize account migration after the account's repo is imported and identity is setup."
122873
+ }
122874
+ }
122875
+ },
122876
+ ComAtprotoServerCheckAccountStatus: {
122877
+ lexicon: 1,
122878
+ id: "com.atproto.server.checkAccountStatus",
122879
+ defs: {
122880
+ main: {
122881
+ type: "query",
122882
+ 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.",
122883
+ output: {
122884
+ encoding: "application/json",
122885
+ schema: {
122886
+ type: "object",
122887
+ required: [
122888
+ "activated",
122889
+ "validDid",
122890
+ "repoCommit",
122891
+ "repoRev",
122892
+ "repoBlocks",
122893
+ "indexedRecords",
122894
+ "privateStateValues",
122895
+ "expectedBlobs",
122896
+ "importedBlobs"
122897
+ ],
122898
+ properties: {
122899
+ activated: {
122900
+ type: "boolean"
122901
+ },
122902
+ validDid: {
122903
+ type: "boolean"
122904
+ },
122905
+ repoCommit: {
122906
+ type: "string",
122907
+ format: "cid"
122908
+ },
122909
+ repoRev: {
122910
+ type: "string"
122911
+ },
122912
+ repoBlocks: {
122913
+ type: "integer"
122914
+ },
122915
+ indexedRecords: {
122916
+ type: "integer"
122917
+ },
122918
+ privateStateValues: {
122919
+ type: "integer"
122920
+ },
122921
+ expectedBlobs: {
122922
+ type: "integer"
122923
+ },
122924
+ importedBlobs: {
122925
+ type: "integer"
122926
+ }
122927
+ }
122928
+ }
122929
+ }
122930
+ }
122931
+ }
122932
+ },
122181
122933
  ComAtprotoServerConfirmEmail: {
122182
122934
  lexicon: 1,
122183
122935
  id: "com.atproto.server.confirmEmail",
@@ -122538,6 +123290,29 @@ var schemaDict2 = {
122538
123290
  }
122539
123291
  }
122540
123292
  },
123293
+ ComAtprotoServerDeactivateAccount: {
123294
+ lexicon: 1,
123295
+ id: "com.atproto.server.deactivateAccount",
123296
+ defs: {
123297
+ main: {
123298
+ type: "procedure",
123299
+ 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.",
123300
+ input: {
123301
+ encoding: "application/json",
123302
+ schema: {
123303
+ type: "object",
123304
+ properties: {
123305
+ deleteAfter: {
123306
+ type: "string",
123307
+ format: "datetime",
123308
+ description: "A recommendation to server as to how long they should hold onto the deactivated account before deleting."
123309
+ }
123310
+ }
123311
+ }
123312
+ }
123313
+ }
123314
+ }
123315
+ },
122541
123316
  ComAtprotoServerDefs: {
122542
123317
  lexicon: 1,
122543
123318
  id: "com.atproto.server.defs",
@@ -122656,7 +123431,7 @@ var schemaDict2 = {
122656
123431
  encoding: "application/json",
122657
123432
  schema: {
122658
123433
  type: "object",
122659
- required: ["availableUserDomains"],
123434
+ required: ["did", "availableUserDomains"],
122660
123435
  properties: {
122661
123436
  inviteCodeRequired: {
122662
123437
  type: "boolean",
@@ -122677,6 +123452,10 @@ var schemaDict2 = {
122677
123452
  type: "ref",
122678
123453
  description: "URLs of service policy documents.",
122679
123454
  ref: "lex:com.atproto.server.describeServer#links"
123455
+ },
123456
+ did: {
123457
+ type: "string",
123458
+ format: "did"
122680
123459
  }
122681
123460
  }
122682
123461
  }
@@ -122740,6 +123519,39 @@ var schemaDict2 = {
122740
123519
  }
122741
123520
  }
122742
123521
  },
123522
+ ComAtprotoServerGetServiceAuth: {
123523
+ lexicon: 1,
123524
+ id: "com.atproto.server.getServiceAuth",
123525
+ defs: {
123526
+ main: {
123527
+ type: "query",
123528
+ description: "Get a signed token on behalf of the requesting DID for the requested service.",
123529
+ parameters: {
123530
+ type: "params",
123531
+ required: ["aud"],
123532
+ properties: {
123533
+ aud: {
123534
+ type: "string",
123535
+ format: "did",
123536
+ description: "The DID of the service that the token will be used to authenticate with"
123537
+ }
123538
+ }
123539
+ },
123540
+ output: {
123541
+ encoding: "application/json",
123542
+ schema: {
123543
+ type: "object",
123544
+ required: ["token"],
123545
+ properties: {
123546
+ token: {
123547
+ type: "string"
123548
+ }
123549
+ }
123550
+ }
123551
+ }
123552
+ }
123553
+ }
123554
+ },
122743
123555
  ComAtprotoServerGetSession: {
122744
123556
  lexicon: 1,
122745
123557
  id: "com.atproto.server.getSession",
@@ -123464,6 +124276,7 @@ var schemaDict2 = {
123464
124276
  type: "union",
123465
124277
  refs: [
123466
124278
  "lex:com.atproto.sync.subscribeRepos#commit",
124279
+ "lex:com.atproto.sync.subscribeRepos#identity",
123467
124280
  "lex:com.atproto.sync.subscribeRepos#handle",
123468
124281
  "lex:com.atproto.sync.subscribeRepos#migrate",
123469
124282
  "lex:com.atproto.sync.subscribeRepos#tombstone",
@@ -123560,9 +124373,27 @@ var schemaDict2 = {
123560
124373
  }
123561
124374
  }
123562
124375
  },
124376
+ identity: {
124377
+ type: "object",
124378
+ 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.",
124379
+ required: ["seq", "did", "time"],
124380
+ properties: {
124381
+ seq: {
124382
+ type: "integer"
124383
+ },
124384
+ did: {
124385
+ type: "string",
124386
+ format: "did"
124387
+ },
124388
+ time: {
124389
+ type: "string",
124390
+ format: "datetime"
124391
+ }
124392
+ }
124393
+ },
123563
124394
  handle: {
123564
124395
  type: "object",
123565
- description: "Represents an update of the account's handle, or transition to/from invalid state.",
124396
+ description: "Represents an update of the account's handle, or transition to/from invalid state. NOTE: Will be deprecated in favor of #identity.",
123566
124397
  required: ["seq", "did", "handle", "time"],
123567
124398
  properties: {
123568
124399
  seq: {
@@ -123584,7 +124415,7 @@ var schemaDict2 = {
123584
124415
  },
123585
124416
  migrate: {
123586
124417
  type: "object",
123587
- description: "Represents an account moving from one PDS instance to another. NOTE: not implemented; full account migration may introduce a new message instead.",
124418
+ description: "Represents an account moving from one PDS instance to another. NOTE: not implemented; account migration uses #identity instead",
123588
124419
  required: ["seq", "did", "migrateTo", "time"],
123589
124420
  nullable: ["migrateTo"],
123590
124421
  properties: {
@@ -123606,7 +124437,7 @@ var schemaDict2 = {
123606
124437
  },
123607
124438
  tombstone: {
123608
124439
  type: "object",
123609
- description: "Indicates that an account has been deleted.",
124440
+ description: "Indicates that an account has been deleted. NOTE: may be deprecated in favor of #identity or a future #account event",
123610
124441
  required: ["seq", "did", "time"],
123611
124442
  properties: {
123612
124443
  seq: {
@@ -123724,57 +124555,6 @@ var schemaDict2 = {
123724
124555
  }
123725
124556
  }
123726
124557
  },
123727
- ComAtprotoTempImportRepo: {
123728
- lexicon: 1,
123729
- id: "com.atproto.temp.importRepo",
123730
- defs: {
123731
- main: {
123732
- type: "procedure",
123733
- description: "Gets the did's repo, optionally catching up from a specific revision.",
123734
- parameters: {
123735
- type: "params",
123736
- required: ["did"],
123737
- properties: {
123738
- did: {
123739
- type: "string",
123740
- format: "did",
123741
- description: "The DID of the repo."
123742
- }
123743
- }
123744
- },
123745
- input: {
123746
- encoding: "application/vnd.ipld.car"
123747
- },
123748
- output: {
123749
- encoding: "text/plain"
123750
- }
123751
- }
123752
- }
123753
- },
123754
- ComAtprotoTempPushBlob: {
123755
- lexicon: 1,
123756
- id: "com.atproto.temp.pushBlob",
123757
- defs: {
123758
- main: {
123759
- type: "procedure",
123760
- description: "Gets the did's repo, optionally catching up from a specific revision.",
123761
- parameters: {
123762
- type: "params",
123763
- required: ["did"],
123764
- properties: {
123765
- did: {
123766
- type: "string",
123767
- format: "did",
123768
- description: "The DID of the repo."
123769
- }
123770
- }
123771
- },
123772
- input: {
123773
- encoding: "*/*"
123774
- }
123775
- }
123776
- }
123777
- },
123778
124558
  ComAtprotoTempRequestPhoneVerification: {
123779
124559
  lexicon: 1,
123780
124560
  id: "com.atproto.temp.requestPhoneVerification",
@@ -123797,82 +124577,6 @@ var schemaDict2 = {
123797
124577
  }
123798
124578
  }
123799
124579
  },
123800
- ComAtprotoTempTransferAccount: {
123801
- lexicon: 1,
123802
- id: "com.atproto.temp.transferAccount",
123803
- defs: {
123804
- main: {
123805
- type: "procedure",
123806
- description: "Transfer an account. NOTE: temporary method, necessarily how account migration will be implemented.",
123807
- input: {
123808
- encoding: "application/json",
123809
- schema: {
123810
- type: "object",
123811
- required: ["handle", "did", "plcOp"],
123812
- properties: {
123813
- handle: {
123814
- type: "string",
123815
- format: "handle"
123816
- },
123817
- did: {
123818
- type: "string",
123819
- format: "did"
123820
- },
123821
- plcOp: {
123822
- type: "unknown"
123823
- }
123824
- }
123825
- }
123826
- },
123827
- output: {
123828
- encoding: "application/json",
123829
- schema: {
123830
- type: "object",
123831
- required: ["accessJwt", "refreshJwt", "handle", "did"],
123832
- properties: {
123833
- accessJwt: {
123834
- type: "string"
123835
- },
123836
- refreshJwt: {
123837
- type: "string"
123838
- },
123839
- handle: {
123840
- type: "string",
123841
- format: "handle"
123842
- },
123843
- did: {
123844
- type: "string",
123845
- format: "did"
123846
- }
123847
- }
123848
- }
123849
- },
123850
- errors: [
123851
- {
123852
- name: "InvalidHandle"
123853
- },
123854
- {
123855
- name: "InvalidPassword"
123856
- },
123857
- {
123858
- name: "InvalidInviteCode"
123859
- },
123860
- {
123861
- name: "HandleNotAvailable"
123862
- },
123863
- {
123864
- name: "UnsupportedDomain"
123865
- },
123866
- {
123867
- name: "UnresolvableDid"
123868
- },
123869
- {
123870
- name: "IncompatibleDidDoc"
123871
- }
123872
- ]
123873
- }
123874
- }
123875
- },
123876
124580
  AppBskyActorDefs: {
123877
124581
  lexicon: 1,
123878
124582
  id: "app.bsky.actor.defs",
@@ -124168,6 +124872,61 @@ var schemaDict2 = {
124168
124872
  description: "A list of tags which describe the account owner's interests gathered during onboarding."
124169
124873
  }
124170
124874
  }
124875
+ },
124876
+ mutedWordTarget: {
124877
+ type: "string",
124878
+ knownValues: ["content", "tag"],
124879
+ maxLength: 640,
124880
+ maxGraphemes: 64
124881
+ },
124882
+ mutedWord: {
124883
+ type: "object",
124884
+ description: "A word that the account owner has muted.",
124885
+ required: ["value", "targets"],
124886
+ properties: {
124887
+ value: {
124888
+ type: "string",
124889
+ description: "The muted word itself.",
124890
+ maxLength: 1e4,
124891
+ maxGraphemes: 1e3
124892
+ },
124893
+ targets: {
124894
+ type: "array",
124895
+ description: "The intended targets of the muted word.",
124896
+ items: {
124897
+ type: "ref",
124898
+ ref: "lex:app.bsky.actor.defs#mutedWordTarget"
124899
+ }
124900
+ }
124901
+ }
124902
+ },
124903
+ mutedWordsPref: {
124904
+ type: "object",
124905
+ required: ["items"],
124906
+ properties: {
124907
+ items: {
124908
+ type: "array",
124909
+ items: {
124910
+ type: "ref",
124911
+ ref: "lex:app.bsky.actor.defs#mutedWord"
124912
+ },
124913
+ description: "A list of words the account owner has muted."
124914
+ }
124915
+ }
124916
+ },
124917
+ hiddenPostsPref: {
124918
+ type: "object",
124919
+ required: ["items"],
124920
+ properties: {
124921
+ items: {
124922
+ type: "array",
124923
+ items: {
124924
+ type: "string",
124925
+ format: "at-uri"
124926
+ },
124927
+ description: "A list of URIs of posts the account owner has hidden."
124928
+ }
124929
+ }
124171
124930
  }
124172
124931
  }
124173
124932
  },
@@ -126034,7 +126793,7 @@ var schemaDict2 = {
126034
126793
  },
126035
126794
  tags: {
126036
126795
  type: "array",
126037
- description: "Additional non-inline tags describing this post.",
126796
+ description: "Additional hashtags, in addition to any included in post text and facets.",
126038
126797
  maxLength: 8,
126039
126798
  items: {
126040
126799
  type: "string",
@@ -127833,41 +128592,69 @@ function toKnownErr23(e) {
127833
128592
  return e;
127834
128593
  }
127835
128594
 
127836
- // ../api/src/client/types/com/atproto/identity/resolveHandle.ts
128595
+ // ../api/src/client/types/com/atproto/identity/getRecommendedDidCredentials.ts
127837
128596
  function toKnownErr24(e) {
127838
128597
  if (e instanceof XRPCError) {
127839
128598
  }
127840
128599
  return e;
127841
128600
  }
127842
128601
 
127843
- // ../api/src/client/types/com/atproto/identity/updateHandle.ts
128602
+ // ../api/src/client/types/com/atproto/identity/requestPlcOperationSignature.ts
127844
128603
  function toKnownErr25(e) {
127845
128604
  if (e instanceof XRPCError) {
127846
128605
  }
127847
128606
  return e;
127848
128607
  }
127849
128608
 
127850
- // ../api/src/client/types/com/atproto/label/queryLabels.ts
128609
+ // ../api/src/client/types/com/atproto/identity/resolveHandle.ts
127851
128610
  function toKnownErr26(e) {
127852
128611
  if (e instanceof XRPCError) {
127853
128612
  }
127854
128613
  return e;
127855
128614
  }
127856
128615
 
127857
- // ../api/src/client/types/com/atproto/moderation/createReport.ts
128616
+ // ../api/src/client/types/com/atproto/identity/signPlcOperation.ts
127858
128617
  function toKnownErr27(e) {
127859
128618
  if (e instanceof XRPCError) {
127860
128619
  }
127861
128620
  return e;
127862
128621
  }
127863
128622
 
128623
+ // ../api/src/client/types/com/atproto/identity/submitPlcOperation.ts
128624
+ function toKnownErr28(e) {
128625
+ if (e instanceof XRPCError) {
128626
+ }
128627
+ return e;
128628
+ }
128629
+
128630
+ // ../api/src/client/types/com/atproto/identity/updateHandle.ts
128631
+ function toKnownErr29(e) {
128632
+ if (e instanceof XRPCError) {
128633
+ }
128634
+ return e;
128635
+ }
128636
+
128637
+ // ../api/src/client/types/com/atproto/label/queryLabels.ts
128638
+ function toKnownErr30(e) {
128639
+ if (e instanceof XRPCError) {
128640
+ }
128641
+ return e;
128642
+ }
128643
+
128644
+ // ../api/src/client/types/com/atproto/moderation/createReport.ts
128645
+ function toKnownErr31(e) {
128646
+ if (e instanceof XRPCError) {
128647
+ }
128648
+ return e;
128649
+ }
128650
+
127864
128651
  // ../api/src/client/types/com/atproto/repo/applyWrites.ts
127865
128652
  var InvalidSwapError = class extends XRPCError {
127866
128653
  constructor(src3) {
127867
128654
  super(src3.status, src3.error, src3.message, src3.headers);
127868
128655
  }
127869
128656
  };
127870
- function toKnownErr28(e) {
128657
+ function toKnownErr32(e) {
127871
128658
  if (e instanceof XRPCError) {
127872
128659
  if (e.error === "InvalidSwap")
127873
128660
  return new InvalidSwapError(e);
@@ -127881,7 +128668,7 @@ var InvalidSwapError2 = class extends XRPCError {
127881
128668
  super(src3.status, src3.error, src3.message, src3.headers);
127882
128669
  }
127883
128670
  };
127884
- function toKnownErr29(e) {
128671
+ function toKnownErr33(e) {
127885
128672
  if (e instanceof XRPCError) {
127886
128673
  if (e.error === "InvalidSwap")
127887
128674
  return new InvalidSwapError2(e);
@@ -127895,7 +128682,7 @@ var InvalidSwapError3 = class extends XRPCError {
127895
128682
  super(src3.status, src3.error, src3.message, src3.headers);
127896
128683
  }
127897
128684
  };
127898
- function toKnownErr30(e) {
128685
+ function toKnownErr34(e) {
127899
128686
  if (e instanceof XRPCError) {
127900
128687
  if (e.error === "InvalidSwap")
127901
128688
  return new InvalidSwapError3(e);
@@ -127904,21 +128691,35 @@ function toKnownErr30(e) {
127904
128691
  }
127905
128692
 
127906
128693
  // ../api/src/client/types/com/atproto/repo/describeRepo.ts
127907
- function toKnownErr31(e) {
128694
+ function toKnownErr35(e) {
127908
128695
  if (e instanceof XRPCError) {
127909
128696
  }
127910
128697
  return e;
127911
128698
  }
127912
128699
 
127913
128700
  // ../api/src/client/types/com/atproto/repo/getRecord.ts
127914
- function toKnownErr32(e) {
128701
+ function toKnownErr36(e) {
128702
+ if (e instanceof XRPCError) {
128703
+ }
128704
+ return e;
128705
+ }
128706
+
128707
+ // ../api/src/client/types/com/atproto/repo/importRepo.ts
128708
+ function toKnownErr37(e) {
128709
+ if (e instanceof XRPCError) {
128710
+ }
128711
+ return e;
128712
+ }
128713
+
128714
+ // ../api/src/client/types/com/atproto/repo/listMissingBlobs.ts
128715
+ function toKnownErr38(e) {
127915
128716
  if (e instanceof XRPCError) {
127916
128717
  }
127917
128718
  return e;
127918
128719
  }
127919
128720
 
127920
128721
  // ../api/src/client/types/com/atproto/repo/listRecords.ts
127921
- function toKnownErr33(e) {
128722
+ function toKnownErr39(e) {
127922
128723
  if (e instanceof XRPCError) {
127923
128724
  }
127924
128725
  return e;
@@ -127930,7 +128731,7 @@ var InvalidSwapError4 = class extends XRPCError {
127930
128731
  super(src3.status, src3.error, src3.message, src3.headers);
127931
128732
  }
127932
128733
  };
127933
- function toKnownErr34(e) {
128734
+ function toKnownErr40(e) {
127934
128735
  if (e instanceof XRPCError) {
127935
128736
  if (e.error === "InvalidSwap")
127936
128737
  return new InvalidSwapError4(e);
@@ -127939,7 +128740,21 @@ function toKnownErr34(e) {
127939
128740
  }
127940
128741
 
127941
128742
  // ../api/src/client/types/com/atproto/repo/uploadBlob.ts
127942
- function toKnownErr35(e) {
128743
+ function toKnownErr41(e) {
128744
+ if (e instanceof XRPCError) {
128745
+ }
128746
+ return e;
128747
+ }
128748
+
128749
+ // ../api/src/client/types/com/atproto/server/activateAccount.ts
128750
+ function toKnownErr42(e) {
128751
+ if (e instanceof XRPCError) {
128752
+ }
128753
+ return e;
128754
+ }
128755
+
128756
+ // ../api/src/client/types/com/atproto/server/checkAccountStatus.ts
128757
+ function toKnownErr43(e) {
127943
128758
  if (e instanceof XRPCError) {
127944
128759
  }
127945
128760
  return e;
@@ -127966,7 +128781,7 @@ var InvalidEmailError = class extends XRPCError {
127966
128781
  super(src3.status, src3.error, src3.message, src3.headers);
127967
128782
  }
127968
128783
  };
127969
- function toKnownErr36(e) {
128784
+ function toKnownErr44(e) {
127970
128785
  if (e instanceof XRPCError) {
127971
128786
  if (e.error === "AccountNotFound")
127972
128787
  return new AccountNotFoundError(e);
@@ -128016,7 +128831,7 @@ var IncompatibleDidDocError = class extends XRPCError {
128016
128831
  super(src3.status, src3.error, src3.message, src3.headers);
128017
128832
  }
128018
128833
  };
128019
- function toKnownErr37(e) {
128834
+ function toKnownErr45(e) {
128020
128835
  if (e instanceof XRPCError) {
128021
128836
  if (e.error === "InvalidHandle")
128022
128837
  return new InvalidHandleError2(e);
@@ -128042,7 +128857,7 @@ var AccountTakedownError = class extends XRPCError {
128042
128857
  super(src3.status, src3.error, src3.message, src3.headers);
128043
128858
  }
128044
128859
  };
128045
- function toKnownErr38(e) {
128860
+ function toKnownErr46(e) {
128046
128861
  if (e instanceof XRPCError) {
128047
128862
  if (e.error === "AccountTakedown")
128048
128863
  return new AccountTakedownError(e);
@@ -128051,14 +128866,14 @@ function toKnownErr38(e) {
128051
128866
  }
128052
128867
 
128053
128868
  // ../api/src/client/types/com/atproto/server/createInviteCode.ts
128054
- function toKnownErr39(e) {
128869
+ function toKnownErr47(e) {
128055
128870
  if (e instanceof XRPCError) {
128056
128871
  }
128057
128872
  return e;
128058
128873
  }
128059
128874
 
128060
128875
  // ../api/src/client/types/com/atproto/server/createInviteCodes.ts
128061
- function toKnownErr40(e) {
128876
+ function toKnownErr48(e) {
128062
128877
  if (e instanceof XRPCError) {
128063
128878
  }
128064
128879
  return e;
@@ -128070,7 +128885,7 @@ var AccountTakedownError2 = class extends XRPCError {
128070
128885
  super(src3.status, src3.error, src3.message, src3.headers);
128071
128886
  }
128072
128887
  };
128073
- function toKnownErr41(e) {
128888
+ function toKnownErr49(e) {
128074
128889
  if (e instanceof XRPCError) {
128075
128890
  if (e.error === "AccountTakedown")
128076
128891
  return new AccountTakedownError2(e);
@@ -128078,6 +128893,13 @@ function toKnownErr41(e) {
128078
128893
  return e;
128079
128894
  }
128080
128895
 
128896
+ // ../api/src/client/types/com/atproto/server/deactivateAccount.ts
128897
+ function toKnownErr50(e) {
128898
+ if (e instanceof XRPCError) {
128899
+ }
128900
+ return e;
128901
+ }
128902
+
128081
128903
  // ../api/src/client/types/com/atproto/server/deleteAccount.ts
128082
128904
  var ExpiredTokenError2 = class extends XRPCError {
128083
128905
  constructor(src3) {
@@ -128089,7 +128911,7 @@ var InvalidTokenError2 = class extends XRPCError {
128089
128911
  super(src3.status, src3.error, src3.message, src3.headers);
128090
128912
  }
128091
128913
  };
128092
- function toKnownErr42(e) {
128914
+ function toKnownErr51(e) {
128093
128915
  if (e instanceof XRPCError) {
128094
128916
  if (e.error === "ExpiredToken")
128095
128917
  return new ExpiredTokenError2(e);
@@ -128100,14 +128922,14 @@ function toKnownErr42(e) {
128100
128922
  }
128101
128923
 
128102
128924
  // ../api/src/client/types/com/atproto/server/deleteSession.ts
128103
- function toKnownErr43(e) {
128925
+ function toKnownErr52(e) {
128104
128926
  if (e instanceof XRPCError) {
128105
128927
  }
128106
128928
  return e;
128107
128929
  }
128108
128930
 
128109
128931
  // ../api/src/client/types/com/atproto/server/describeServer.ts
128110
- function toKnownErr44(e) {
128932
+ function toKnownErr53(e) {
128111
128933
  if (e instanceof XRPCError) {
128112
128934
  }
128113
128935
  return e;
@@ -128119,7 +128941,7 @@ var DuplicateCreateError = class extends XRPCError {
128119
128941
  super(src3.status, src3.error, src3.message, src3.headers);
128120
128942
  }
128121
128943
  };
128122
- function toKnownErr45(e) {
128944
+ function toKnownErr54(e) {
128123
128945
  if (e instanceof XRPCError) {
128124
128946
  if (e.error === "DuplicateCreate")
128125
128947
  return new DuplicateCreateError(e);
@@ -128127,8 +128949,15 @@ function toKnownErr45(e) {
128127
128949
  return e;
128128
128950
  }
128129
128951
 
128952
+ // ../api/src/client/types/com/atproto/server/getServiceAuth.ts
128953
+ function toKnownErr55(e) {
128954
+ if (e instanceof XRPCError) {
128955
+ }
128956
+ return e;
128957
+ }
128958
+
128130
128959
  // ../api/src/client/types/com/atproto/server/getSession.ts
128131
- function toKnownErr46(e) {
128960
+ function toKnownErr56(e) {
128132
128961
  if (e instanceof XRPCError) {
128133
128962
  }
128134
128963
  return e;
@@ -128140,7 +128969,7 @@ var AccountTakedownError3 = class extends XRPCError {
128140
128969
  super(src3.status, src3.error, src3.message, src3.headers);
128141
128970
  }
128142
128971
  };
128143
- function toKnownErr47(e) {
128972
+ function toKnownErr57(e) {
128144
128973
  if (e instanceof XRPCError) {
128145
128974
  if (e.error === "AccountTakedown")
128146
128975
  return new AccountTakedownError3(e);
@@ -128154,7 +128983,7 @@ var AccountTakedownError4 = class extends XRPCError {
128154
128983
  super(src3.status, src3.error, src3.message, src3.headers);
128155
128984
  }
128156
128985
  };
128157
- function toKnownErr48(e) {
128986
+ function toKnownErr58(e) {
128158
128987
  if (e instanceof XRPCError) {
128159
128988
  if (e.error === "AccountTakedown")
128160
128989
  return new AccountTakedownError4(e);
@@ -128163,35 +128992,35 @@ function toKnownErr48(e) {
128163
128992
  }
128164
128993
 
128165
128994
  // ../api/src/client/types/com/atproto/server/requestAccountDelete.ts
128166
- function toKnownErr49(e) {
128995
+ function toKnownErr59(e) {
128167
128996
  if (e instanceof XRPCError) {
128168
128997
  }
128169
128998
  return e;
128170
128999
  }
128171
129000
 
128172
129001
  // ../api/src/client/types/com/atproto/server/requestEmailConfirmation.ts
128173
- function toKnownErr50(e) {
129002
+ function toKnownErr60(e) {
128174
129003
  if (e instanceof XRPCError) {
128175
129004
  }
128176
129005
  return e;
128177
129006
  }
128178
129007
 
128179
129008
  // ../api/src/client/types/com/atproto/server/requestEmailUpdate.ts
128180
- function toKnownErr51(e) {
129009
+ function toKnownErr61(e) {
128181
129010
  if (e instanceof XRPCError) {
128182
129011
  }
128183
129012
  return e;
128184
129013
  }
128185
129014
 
128186
129015
  // ../api/src/client/types/com/atproto/server/requestPasswordReset.ts
128187
- function toKnownErr52(e) {
129016
+ function toKnownErr62(e) {
128188
129017
  if (e instanceof XRPCError) {
128189
129018
  }
128190
129019
  return e;
128191
129020
  }
128192
129021
 
128193
129022
  // ../api/src/client/types/com/atproto/server/reserveSigningKey.ts
128194
- function toKnownErr53(e) {
129023
+ function toKnownErr63(e) {
128195
129024
  if (e instanceof XRPCError) {
128196
129025
  }
128197
129026
  return e;
@@ -128208,7 +129037,7 @@ var InvalidTokenError3 = class extends XRPCError {
128208
129037
  super(src3.status, src3.error, src3.message, src3.headers);
128209
129038
  }
128210
129039
  };
128211
- function toKnownErr54(e) {
129040
+ function toKnownErr64(e) {
128212
129041
  if (e instanceof XRPCError) {
128213
129042
  if (e.error === "ExpiredToken")
128214
129043
  return new ExpiredTokenError3(e);
@@ -128219,7 +129048,7 @@ function toKnownErr54(e) {
128219
129048
  }
128220
129049
 
128221
129050
  // ../api/src/client/types/com/atproto/server/revokeAppPassword.ts
128222
- function toKnownErr55(e) {
129051
+ function toKnownErr65(e) {
128223
129052
  if (e instanceof XRPCError) {
128224
129053
  }
128225
129054
  return e;
@@ -128241,7 +129070,7 @@ var TokenRequiredError = class extends XRPCError {
128241
129070
  super(src3.status, src3.error, src3.message, src3.headers);
128242
129071
  }
128243
129072
  };
128244
- function toKnownErr56(e) {
129073
+ function toKnownErr66(e) {
128245
129074
  if (e instanceof XRPCError) {
128246
129075
  if (e.error === "ExpiredToken")
128247
129076
  return new ExpiredTokenError4(e);
@@ -128254,21 +129083,21 @@ function toKnownErr56(e) {
128254
129083
  }
128255
129084
 
128256
129085
  // ../api/src/client/types/com/atproto/sync/getBlob.ts
128257
- function toKnownErr57(e) {
129086
+ function toKnownErr67(e) {
128258
129087
  if (e instanceof XRPCError) {
128259
129088
  }
128260
129089
  return e;
128261
129090
  }
128262
129091
 
128263
129092
  // ../api/src/client/types/com/atproto/sync/getBlocks.ts
128264
- function toKnownErr58(e) {
129093
+ function toKnownErr68(e) {
128265
129094
  if (e instanceof XRPCError) {
128266
129095
  }
128267
129096
  return e;
128268
129097
  }
128269
129098
 
128270
129099
  // ../api/src/client/types/com/atproto/sync/getCheckout.ts
128271
- function toKnownErr59(e) {
129100
+ function toKnownErr69(e) {
128272
129101
  if (e instanceof XRPCError) {
128273
129102
  }
128274
129103
  return e;
@@ -128280,7 +129109,7 @@ var HeadNotFoundError = class extends XRPCError {
128280
129109
  super(src3.status, src3.error, src3.message, src3.headers);
128281
129110
  }
128282
129111
  };
128283
- function toKnownErr60(e) {
129112
+ function toKnownErr70(e) {
128284
129113
  if (e instanceof XRPCError) {
128285
129114
  if (e.error === "HeadNotFound")
128286
129115
  return new HeadNotFoundError(e);
@@ -128294,7 +129123,7 @@ var RepoNotFoundError2 = class extends XRPCError {
128294
129123
  super(src3.status, src3.error, src3.message, src3.headers);
128295
129124
  }
128296
129125
  };
128297
- function toKnownErr61(e) {
129126
+ function toKnownErr71(e) {
128298
129127
  if (e instanceof XRPCError) {
128299
129128
  if (e.error === "RepoNotFound")
128300
129129
  return new RepoNotFoundError2(e);
@@ -128303,196 +129132,126 @@ function toKnownErr61(e) {
128303
129132
  }
128304
129133
 
128305
129134
  // ../api/src/client/types/com/atproto/sync/getRecord.ts
128306
- function toKnownErr62(e) {
129135
+ function toKnownErr72(e) {
128307
129136
  if (e instanceof XRPCError) {
128308
129137
  }
128309
129138
  return e;
128310
129139
  }
128311
129140
 
128312
129141
  // ../api/src/client/types/com/atproto/sync/getRepo.ts
128313
- function toKnownErr63(e) {
129142
+ function toKnownErr73(e) {
128314
129143
  if (e instanceof XRPCError) {
128315
129144
  }
128316
129145
  return e;
128317
129146
  }
128318
129147
 
128319
129148
  // ../api/src/client/types/com/atproto/sync/listBlobs.ts
128320
- function toKnownErr64(e) {
129149
+ function toKnownErr74(e) {
128321
129150
  if (e instanceof XRPCError) {
128322
129151
  }
128323
129152
  return e;
128324
129153
  }
128325
129154
 
128326
129155
  // ../api/src/client/types/com/atproto/sync/listRepos.ts
128327
- function toKnownErr65(e) {
129156
+ function toKnownErr75(e) {
128328
129157
  if (e instanceof XRPCError) {
128329
129158
  }
128330
129159
  return e;
128331
129160
  }
128332
129161
 
128333
129162
  // ../api/src/client/types/com/atproto/sync/notifyOfUpdate.ts
128334
- function toKnownErr66(e) {
129163
+ function toKnownErr76(e) {
128335
129164
  if (e instanceof XRPCError) {
128336
129165
  }
128337
129166
  return e;
128338
129167
  }
128339
129168
 
128340
129169
  // ../api/src/client/types/com/atproto/sync/requestCrawl.ts
128341
- function toKnownErr67(e) {
129170
+ function toKnownErr77(e) {
128342
129171
  if (e instanceof XRPCError) {
128343
129172
  }
128344
129173
  return e;
128345
129174
  }
128346
129175
 
128347
129176
  // ../api/src/client/types/com/atproto/temp/checkSignupQueue.ts
128348
- function toKnownErr68(e) {
129177
+ function toKnownErr78(e) {
128349
129178
  if (e instanceof XRPCError) {
128350
129179
  }
128351
129180
  return e;
128352
129181
  }
128353
129182
 
128354
129183
  // ../api/src/client/types/com/atproto/temp/fetchLabels.ts
128355
- function toKnownErr69(e) {
128356
- if (e instanceof XRPCError) {
128357
- }
128358
- return e;
128359
- }
128360
-
128361
- // ../api/src/client/types/com/atproto/temp/importRepo.ts
128362
- function toKnownErr70(e) {
128363
- if (e instanceof XRPCError) {
128364
- }
128365
- return e;
128366
- }
128367
-
128368
- // ../api/src/client/types/com/atproto/temp/pushBlob.ts
128369
- function toKnownErr71(e) {
129184
+ function toKnownErr79(e) {
128370
129185
  if (e instanceof XRPCError) {
128371
129186
  }
128372
129187
  return e;
128373
129188
  }
128374
129189
 
128375
129190
  // ../api/src/client/types/com/atproto/temp/requestPhoneVerification.ts
128376
- function toKnownErr72(e) {
128377
- if (e instanceof XRPCError) {
128378
- }
128379
- return e;
128380
- }
128381
-
128382
- // ../api/src/client/types/com/atproto/temp/transferAccount.ts
128383
- var InvalidHandleError3 = class extends XRPCError {
128384
- constructor(src3) {
128385
- super(src3.status, src3.error, src3.message, src3.headers);
128386
- }
128387
- };
128388
- var InvalidPasswordError2 = class extends XRPCError {
128389
- constructor(src3) {
128390
- super(src3.status, src3.error, src3.message, src3.headers);
128391
- }
128392
- };
128393
- var InvalidInviteCodeError2 = class extends XRPCError {
128394
- constructor(src3) {
128395
- super(src3.status, src3.error, src3.message, src3.headers);
128396
- }
128397
- };
128398
- var HandleNotAvailableError2 = class extends XRPCError {
128399
- constructor(src3) {
128400
- super(src3.status, src3.error, src3.message, src3.headers);
128401
- }
128402
- };
128403
- var UnsupportedDomainError2 = class extends XRPCError {
128404
- constructor(src3) {
128405
- super(src3.status, src3.error, src3.message, src3.headers);
128406
- }
128407
- };
128408
- var UnresolvableDidError2 = class extends XRPCError {
128409
- constructor(src3) {
128410
- super(src3.status, src3.error, src3.message, src3.headers);
128411
- }
128412
- };
128413
- var IncompatibleDidDocError2 = class extends XRPCError {
128414
- constructor(src3) {
128415
- super(src3.status, src3.error, src3.message, src3.headers);
128416
- }
128417
- };
128418
- function toKnownErr73(e) {
129191
+ function toKnownErr80(e) {
128419
129192
  if (e instanceof XRPCError) {
128420
- if (e.error === "InvalidHandle")
128421
- return new InvalidHandleError3(e);
128422
- if (e.error === "InvalidPassword")
128423
- return new InvalidPasswordError2(e);
128424
- if (e.error === "InvalidInviteCode")
128425
- return new InvalidInviteCodeError2(e);
128426
- if (e.error === "HandleNotAvailable")
128427
- return new HandleNotAvailableError2(e);
128428
- if (e.error === "UnsupportedDomain")
128429
- return new UnsupportedDomainError2(e);
128430
- if (e.error === "UnresolvableDid")
128431
- return new UnresolvableDidError2(e);
128432
- if (e.error === "IncompatibleDidDoc")
128433
- return new IncompatibleDidDocError2(e);
128434
129193
  }
128435
129194
  return e;
128436
129195
  }
128437
129196
 
128438
129197
  // ../api/src/client/types/app/bsky/actor/getPreferences.ts
128439
- function toKnownErr74(e) {
129198
+ function toKnownErr81(e) {
128440
129199
  if (e instanceof XRPCError) {
128441
129200
  }
128442
129201
  return e;
128443
129202
  }
128444
129203
 
128445
129204
  // ../api/src/client/types/app/bsky/actor/getProfile.ts
128446
- function toKnownErr75(e) {
129205
+ function toKnownErr82(e) {
128447
129206
  if (e instanceof XRPCError) {
128448
129207
  }
128449
129208
  return e;
128450
129209
  }
128451
129210
 
128452
129211
  // ../api/src/client/types/app/bsky/actor/getProfiles.ts
128453
- function toKnownErr76(e) {
129212
+ function toKnownErr83(e) {
128454
129213
  if (e instanceof XRPCError) {
128455
129214
  }
128456
129215
  return e;
128457
129216
  }
128458
129217
 
128459
129218
  // ../api/src/client/types/app/bsky/actor/getSuggestions.ts
128460
- function toKnownErr77(e) {
129219
+ function toKnownErr84(e) {
128461
129220
  if (e instanceof XRPCError) {
128462
129221
  }
128463
129222
  return e;
128464
129223
  }
128465
129224
 
128466
129225
  // ../api/src/client/types/app/bsky/actor/putPreferences.ts
128467
- function toKnownErr78(e) {
129226
+ function toKnownErr85(e) {
128468
129227
  if (e instanceof XRPCError) {
128469
129228
  }
128470
129229
  return e;
128471
129230
  }
128472
129231
 
128473
129232
  // ../api/src/client/types/app/bsky/actor/searchActors.ts
128474
- function toKnownErr79(e) {
129233
+ function toKnownErr86(e) {
128475
129234
  if (e instanceof XRPCError) {
128476
129235
  }
128477
129236
  return e;
128478
129237
  }
128479
129238
 
128480
129239
  // ../api/src/client/types/app/bsky/actor/searchActorsTypeahead.ts
128481
- function toKnownErr80(e) {
129240
+ function toKnownErr87(e) {
128482
129241
  if (e instanceof XRPCError) {
128483
129242
  }
128484
129243
  return e;
128485
129244
  }
128486
129245
 
128487
129246
  // ../api/src/client/types/app/bsky/feed/describeFeedGenerator.ts
128488
- function toKnownErr81(e) {
129247
+ function toKnownErr88(e) {
128489
129248
  if (e instanceof XRPCError) {
128490
129249
  }
128491
129250
  return e;
128492
129251
  }
128493
129252
 
128494
129253
  // ../api/src/client/types/app/bsky/feed/getActorFeeds.ts
128495
- function toKnownErr82(e) {
129254
+ function toKnownErr89(e) {
128496
129255
  if (e instanceof XRPCError) {
128497
129256
  }
128498
129257
  return e;
@@ -128509,7 +129268,7 @@ var BlockedByActorError = class extends XRPCError {
128509
129268
  super(src3.status, src3.error, src3.message, src3.headers);
128510
129269
  }
128511
129270
  };
128512
- function toKnownErr83(e) {
129271
+ function toKnownErr90(e) {
128513
129272
  if (e instanceof XRPCError) {
128514
129273
  if (e.error === "BlockedActor")
128515
129274
  return new BlockedActorError(e);
@@ -128530,7 +129289,7 @@ var BlockedByActorError2 = class extends XRPCError {
128530
129289
  super(src3.status, src3.error, src3.message, src3.headers);
128531
129290
  }
128532
129291
  };
128533
- function toKnownErr84(e) {
129292
+ function toKnownErr91(e) {
128534
129293
  if (e instanceof XRPCError) {
128535
129294
  if (e.error === "BlockedActor")
128536
129295
  return new BlockedActorError2(e);
@@ -128546,7 +129305,7 @@ var UnknownFeedError = class extends XRPCError {
128546
129305
  super(src3.status, src3.error, src3.message, src3.headers);
128547
129306
  }
128548
129307
  };
128549
- function toKnownErr85(e) {
129308
+ function toKnownErr92(e) {
128550
129309
  if (e instanceof XRPCError) {
128551
129310
  if (e.error === "UnknownFeed")
128552
129311
  return new UnknownFeedError(e);
@@ -128555,14 +129314,14 @@ function toKnownErr85(e) {
128555
129314
  }
128556
129315
 
128557
129316
  // ../api/src/client/types/app/bsky/feed/getFeedGenerator.ts
128558
- function toKnownErr86(e) {
129317
+ function toKnownErr93(e) {
128559
129318
  if (e instanceof XRPCError) {
128560
129319
  }
128561
129320
  return e;
128562
129321
  }
128563
129322
 
128564
129323
  // ../api/src/client/types/app/bsky/feed/getFeedGenerators.ts
128565
- function toKnownErr87(e) {
129324
+ function toKnownErr94(e) {
128566
129325
  if (e instanceof XRPCError) {
128567
129326
  }
128568
129327
  return e;
@@ -128574,7 +129333,7 @@ var UnknownFeedError2 = class extends XRPCError {
128574
129333
  super(src3.status, src3.error, src3.message, src3.headers);
128575
129334
  }
128576
129335
  };
128577
- function toKnownErr88(e) {
129336
+ function toKnownErr95(e) {
128578
129337
  if (e instanceof XRPCError) {
128579
129338
  if (e.error === "UnknownFeed")
128580
129339
  return new UnknownFeedError2(e);
@@ -128583,7 +129342,7 @@ function toKnownErr88(e) {
128583
129342
  }
128584
129343
 
128585
129344
  // ../api/src/client/types/app/bsky/feed/getLikes.ts
128586
- function toKnownErr89(e) {
129345
+ function toKnownErr96(e) {
128587
129346
  if (e instanceof XRPCError) {
128588
129347
  }
128589
129348
  return e;
@@ -128595,7 +129354,7 @@ var UnknownListError = class extends XRPCError {
128595
129354
  super(src3.status, src3.error, src3.message, src3.headers);
128596
129355
  }
128597
129356
  };
128598
- function toKnownErr90(e) {
129357
+ function toKnownErr97(e) {
128599
129358
  if (e instanceof XRPCError) {
128600
129359
  if (e.error === "UnknownList")
128601
129360
  return new UnknownListError(e);
@@ -128609,7 +129368,7 @@ var NotFoundError = class extends XRPCError {
128609
129368
  super(src3.status, src3.error, src3.message, src3.headers);
128610
129369
  }
128611
129370
  };
128612
- function toKnownErr91(e) {
129371
+ function toKnownErr98(e) {
128613
129372
  if (e instanceof XRPCError) {
128614
129373
  if (e.error === "NotFound")
128615
129374
  return new NotFoundError(e);
@@ -128618,28 +129377,28 @@ function toKnownErr91(e) {
128618
129377
  }
128619
129378
 
128620
129379
  // ../api/src/client/types/app/bsky/feed/getPosts.ts
128621
- function toKnownErr92(e) {
129380
+ function toKnownErr99(e) {
128622
129381
  if (e instanceof XRPCError) {
128623
129382
  }
128624
129383
  return e;
128625
129384
  }
128626
129385
 
128627
129386
  // ../api/src/client/types/app/bsky/feed/getRepostedBy.ts
128628
- function toKnownErr93(e) {
129387
+ function toKnownErr100(e) {
128629
129388
  if (e instanceof XRPCError) {
128630
129389
  }
128631
129390
  return e;
128632
129391
  }
128633
129392
 
128634
129393
  // ../api/src/client/types/app/bsky/feed/getSuggestedFeeds.ts
128635
- function toKnownErr94(e) {
129394
+ function toKnownErr101(e) {
128636
129395
  if (e instanceof XRPCError) {
128637
129396
  }
128638
129397
  return e;
128639
129398
  }
128640
129399
 
128641
129400
  // ../api/src/client/types/app/bsky/feed/getTimeline.ts
128642
- function toKnownErr95(e) {
129401
+ function toKnownErr102(e) {
128643
129402
  if (e instanceof XRPCError) {
128644
129403
  }
128645
129404
  return e;
@@ -128651,7 +129410,7 @@ var BadQueryStringError = class extends XRPCError {
128651
129410
  super(src3.status, src3.error, src3.message, src3.headers);
128652
129411
  }
128653
129412
  };
128654
- function toKnownErr96(e) {
129413
+ function toKnownErr103(e) {
128655
129414
  if (e instanceof XRPCError) {
128656
129415
  if (e.error === "BadQueryString")
128657
129416
  return new BadQueryStringError(e);
@@ -128660,56 +129419,56 @@ function toKnownErr96(e) {
128660
129419
  }
128661
129420
 
128662
129421
  // ../api/src/client/types/app/bsky/graph/getBlocks.ts
128663
- function toKnownErr97(e) {
129422
+ function toKnownErr104(e) {
128664
129423
  if (e instanceof XRPCError) {
128665
129424
  }
128666
129425
  return e;
128667
129426
  }
128668
129427
 
128669
129428
  // ../api/src/client/types/app/bsky/graph/getFollowers.ts
128670
- function toKnownErr98(e) {
129429
+ function toKnownErr105(e) {
128671
129430
  if (e instanceof XRPCError) {
128672
129431
  }
128673
129432
  return e;
128674
129433
  }
128675
129434
 
128676
129435
  // ../api/src/client/types/app/bsky/graph/getFollows.ts
128677
- function toKnownErr99(e) {
129436
+ function toKnownErr106(e) {
128678
129437
  if (e instanceof XRPCError) {
128679
129438
  }
128680
129439
  return e;
128681
129440
  }
128682
129441
 
128683
129442
  // ../api/src/client/types/app/bsky/graph/getList.ts
128684
- function toKnownErr100(e) {
129443
+ function toKnownErr107(e) {
128685
129444
  if (e instanceof XRPCError) {
128686
129445
  }
128687
129446
  return e;
128688
129447
  }
128689
129448
 
128690
129449
  // ../api/src/client/types/app/bsky/graph/getListBlocks.ts
128691
- function toKnownErr101(e) {
129450
+ function toKnownErr108(e) {
128692
129451
  if (e instanceof XRPCError) {
128693
129452
  }
128694
129453
  return e;
128695
129454
  }
128696
129455
 
128697
129456
  // ../api/src/client/types/app/bsky/graph/getListMutes.ts
128698
- function toKnownErr102(e) {
129457
+ function toKnownErr109(e) {
128699
129458
  if (e instanceof XRPCError) {
128700
129459
  }
128701
129460
  return e;
128702
129461
  }
128703
129462
 
128704
129463
  // ../api/src/client/types/app/bsky/graph/getLists.ts
128705
- function toKnownErr103(e) {
129464
+ function toKnownErr110(e) {
128706
129465
  if (e instanceof XRPCError) {
128707
129466
  }
128708
129467
  return e;
128709
129468
  }
128710
129469
 
128711
129470
  // ../api/src/client/types/app/bsky/graph/getMutes.ts
128712
- function toKnownErr104(e) {
129471
+ function toKnownErr111(e) {
128713
129472
  if (e instanceof XRPCError) {
128714
129473
  }
128715
129474
  return e;
@@ -128721,7 +129480,7 @@ var ActorNotFoundError = class extends XRPCError {
128721
129480
  super(src3.status, src3.error, src3.message, src3.headers);
128722
129481
  }
128723
129482
  };
128724
- function toKnownErr105(e) {
129483
+ function toKnownErr112(e) {
128725
129484
  if (e instanceof XRPCError) {
128726
129485
  if (e.error === "ActorNotFound")
128727
129486
  return new ActorNotFoundError(e);
@@ -128730,77 +129489,77 @@ function toKnownErr105(e) {
128730
129489
  }
128731
129490
 
128732
129491
  // ../api/src/client/types/app/bsky/graph/getSuggestedFollowsByActor.ts
128733
- function toKnownErr106(e) {
129492
+ function toKnownErr113(e) {
128734
129493
  if (e instanceof XRPCError) {
128735
129494
  }
128736
129495
  return e;
128737
129496
  }
128738
129497
 
128739
129498
  // ../api/src/client/types/app/bsky/graph/muteActor.ts
128740
- function toKnownErr107(e) {
129499
+ function toKnownErr114(e) {
128741
129500
  if (e instanceof XRPCError) {
128742
129501
  }
128743
129502
  return e;
128744
129503
  }
128745
129504
 
128746
129505
  // ../api/src/client/types/app/bsky/graph/muteActorList.ts
128747
- function toKnownErr108(e) {
129506
+ function toKnownErr115(e) {
128748
129507
  if (e instanceof XRPCError) {
128749
129508
  }
128750
129509
  return e;
128751
129510
  }
128752
129511
 
128753
129512
  // ../api/src/client/types/app/bsky/graph/unmuteActor.ts
128754
- function toKnownErr109(e) {
129513
+ function toKnownErr116(e) {
128755
129514
  if (e instanceof XRPCError) {
128756
129515
  }
128757
129516
  return e;
128758
129517
  }
128759
129518
 
128760
129519
  // ../api/src/client/types/app/bsky/graph/unmuteActorList.ts
128761
- function toKnownErr110(e) {
129520
+ function toKnownErr117(e) {
128762
129521
  if (e instanceof XRPCError) {
128763
129522
  }
128764
129523
  return e;
128765
129524
  }
128766
129525
 
128767
129526
  // ../api/src/client/types/app/bsky/notification/getUnreadCount.ts
128768
- function toKnownErr111(e) {
129527
+ function toKnownErr118(e) {
128769
129528
  if (e instanceof XRPCError) {
128770
129529
  }
128771
129530
  return e;
128772
129531
  }
128773
129532
 
128774
129533
  // ../api/src/client/types/app/bsky/notification/listNotifications.ts
128775
- function toKnownErr112(e) {
129534
+ function toKnownErr119(e) {
128776
129535
  if (e instanceof XRPCError) {
128777
129536
  }
128778
129537
  return e;
128779
129538
  }
128780
129539
 
128781
129540
  // ../api/src/client/types/app/bsky/notification/registerPush.ts
128782
- function toKnownErr113(e) {
129541
+ function toKnownErr120(e) {
128783
129542
  if (e instanceof XRPCError) {
128784
129543
  }
128785
129544
  return e;
128786
129545
  }
128787
129546
 
128788
129547
  // ../api/src/client/types/app/bsky/notification/updateSeen.ts
128789
- function toKnownErr114(e) {
129548
+ function toKnownErr121(e) {
128790
129549
  if (e instanceof XRPCError) {
128791
129550
  }
128792
129551
  return e;
128793
129552
  }
128794
129553
 
128795
129554
  // ../api/src/client/types/app/bsky/unspecced/getPopularFeedGenerators.ts
128796
- function toKnownErr115(e) {
129555
+ function toKnownErr122(e) {
128797
129556
  if (e instanceof XRPCError) {
128798
129557
  }
128799
129558
  return e;
128800
129559
  }
128801
129560
 
128802
129561
  // ../api/src/client/types/app/bsky/unspecced/getTaggedSuggestions.ts
128803
- function toKnownErr116(e) {
129562
+ function toKnownErr123(e) {
128804
129563
  if (e instanceof XRPCError) {
128805
129564
  }
128806
129565
  return e;
@@ -128812,7 +129571,7 @@ var BadQueryStringError2 = class extends XRPCError {
128812
129571
  super(src3.status, src3.error, src3.message, src3.headers);
128813
129572
  }
128814
129573
  };
128815
- function toKnownErr117(e) {
129574
+ function toKnownErr124(e) {
128816
129575
  if (e instanceof XRPCError) {
128817
129576
  if (e.error === "BadQueryString")
128818
129577
  return new BadQueryStringError2(e);
@@ -128826,7 +129585,7 @@ var BadQueryStringError3 = class extends XRPCError {
128826
129585
  super(src3.status, src3.error, src3.message, src3.headers);
128827
129586
  }
128828
129587
  };
128829
- function toKnownErr118(e) {
129588
+ function toKnownErr125(e) {
128830
129589
  if (e instanceof XRPCError) {
128831
129590
  if (e.error === "BadQueryString")
128832
129591
  return new BadQueryStringError3(e);
@@ -128998,14 +129757,34 @@ var ComAtprotoIdentityNS2 = class {
128998
129757
  constructor(service2) {
128999
129758
  this._service = service2;
129000
129759
  }
129760
+ getRecommendedDidCredentials(params2, opts) {
129761
+ return this._service.xrpc.call("com.atproto.identity.getRecommendedDidCredentials", params2, void 0, opts).catch((e) => {
129762
+ throw toKnownErr24(e);
129763
+ });
129764
+ }
129765
+ requestPlcOperationSignature(data, opts) {
129766
+ return this._service.xrpc.call("com.atproto.identity.requestPlcOperationSignature", opts?.qp, data, opts).catch((e) => {
129767
+ throw toKnownErr25(e);
129768
+ });
129769
+ }
129001
129770
  resolveHandle(params2, opts) {
129002
129771
  return this._service.xrpc.call("com.atproto.identity.resolveHandle", params2, void 0, opts).catch((e) => {
129003
- throw toKnownErr24(e);
129772
+ throw toKnownErr26(e);
129773
+ });
129774
+ }
129775
+ signPlcOperation(data, opts) {
129776
+ return this._service.xrpc.call("com.atproto.identity.signPlcOperation", opts?.qp, data, opts).catch((e) => {
129777
+ throw toKnownErr27(e);
129778
+ });
129779
+ }
129780
+ submitPlcOperation(data, opts) {
129781
+ return this._service.xrpc.call("com.atproto.identity.submitPlcOperation", opts?.qp, data, opts).catch((e) => {
129782
+ throw toKnownErr28(e);
129004
129783
  });
129005
129784
  }
129006
129785
  updateHandle(data, opts) {
129007
129786
  return this._service.xrpc.call("com.atproto.identity.updateHandle", opts?.qp, data, opts).catch((e) => {
129008
- throw toKnownErr25(e);
129787
+ throw toKnownErr29(e);
129009
129788
  });
129010
129789
  }
129011
129790
  };
@@ -129015,7 +129794,7 @@ var ComAtprotoLabelNS2 = class {
129015
129794
  }
129016
129795
  queryLabels(params2, opts) {
129017
129796
  return this._service.xrpc.call("com.atproto.label.queryLabels", params2, void 0, opts).catch((e) => {
129018
- throw toKnownErr26(e);
129797
+ throw toKnownErr30(e);
129019
129798
  });
129020
129799
  }
129021
129800
  };
@@ -129025,7 +129804,7 @@ var ComAtprotoModerationNS2 = class {
129025
129804
  }
129026
129805
  createReport(data, opts) {
129027
129806
  return this._service.xrpc.call("com.atproto.moderation.createReport", opts?.qp, data, opts).catch((e) => {
129028
- throw toKnownErr27(e);
129807
+ throw toKnownErr31(e);
129029
129808
  });
129030
129809
  }
129031
129810
  };
@@ -129035,42 +129814,52 @@ var ComAtprotoRepoNS2 = class {
129035
129814
  }
129036
129815
  applyWrites(data, opts) {
129037
129816
  return this._service.xrpc.call("com.atproto.repo.applyWrites", opts?.qp, data, opts).catch((e) => {
129038
- throw toKnownErr28(e);
129817
+ throw toKnownErr32(e);
129039
129818
  });
129040
129819
  }
129041
129820
  createRecord(data, opts) {
129042
129821
  return this._service.xrpc.call("com.atproto.repo.createRecord", opts?.qp, data, opts).catch((e) => {
129043
- throw toKnownErr29(e);
129822
+ throw toKnownErr33(e);
129044
129823
  });
129045
129824
  }
129046
129825
  deleteRecord(data, opts) {
129047
129826
  return this._service.xrpc.call("com.atproto.repo.deleteRecord", opts?.qp, data, opts).catch((e) => {
129048
- throw toKnownErr30(e);
129827
+ throw toKnownErr34(e);
129049
129828
  });
129050
129829
  }
129051
129830
  describeRepo(params2, opts) {
129052
129831
  return this._service.xrpc.call("com.atproto.repo.describeRepo", params2, void 0, opts).catch((e) => {
129053
- throw toKnownErr31(e);
129832
+ throw toKnownErr35(e);
129054
129833
  });
129055
129834
  }
129056
129835
  getRecord(params2, opts) {
129057
129836
  return this._service.xrpc.call("com.atproto.repo.getRecord", params2, void 0, opts).catch((e) => {
129058
- throw toKnownErr32(e);
129837
+ throw toKnownErr36(e);
129838
+ });
129839
+ }
129840
+ importRepo(data, opts) {
129841
+ return this._service.xrpc.call("com.atproto.repo.importRepo", opts?.qp, data, opts).catch((e) => {
129842
+ throw toKnownErr37(e);
129843
+ });
129844
+ }
129845
+ listMissingBlobs(params2, opts) {
129846
+ return this._service.xrpc.call("com.atproto.repo.listMissingBlobs", params2, void 0, opts).catch((e) => {
129847
+ throw toKnownErr38(e);
129059
129848
  });
129060
129849
  }
129061
129850
  listRecords(params2, opts) {
129062
129851
  return this._service.xrpc.call("com.atproto.repo.listRecords", params2, void 0, opts).catch((e) => {
129063
- throw toKnownErr33(e);
129852
+ throw toKnownErr39(e);
129064
129853
  });
129065
129854
  }
129066
129855
  putRecord(data, opts) {
129067
129856
  return this._service.xrpc.call("com.atproto.repo.putRecord", opts?.qp, data, opts).catch((e) => {
129068
- throw toKnownErr34(e);
129857
+ throw toKnownErr40(e);
129069
129858
  });
129070
129859
  }
129071
129860
  uploadBlob(data, opts) {
129072
129861
  return this._service.xrpc.call("com.atproto.repo.uploadBlob", opts?.qp, data, opts).catch((e) => {
129073
- throw toKnownErr35(e);
129862
+ throw toKnownErr41(e);
129074
129863
  });
129075
129864
  }
129076
129865
  };
@@ -129078,109 +129867,129 @@ var ComAtprotoServerNS2 = class {
129078
129867
  constructor(service2) {
129079
129868
  this._service = service2;
129080
129869
  }
129870
+ activateAccount(data, opts) {
129871
+ return this._service.xrpc.call("com.atproto.server.activateAccount", opts?.qp, data, opts).catch((e) => {
129872
+ throw toKnownErr42(e);
129873
+ });
129874
+ }
129875
+ checkAccountStatus(params2, opts) {
129876
+ return this._service.xrpc.call("com.atproto.server.checkAccountStatus", params2, void 0, opts).catch((e) => {
129877
+ throw toKnownErr43(e);
129878
+ });
129879
+ }
129081
129880
  confirmEmail(data, opts) {
129082
129881
  return this._service.xrpc.call("com.atproto.server.confirmEmail", opts?.qp, data, opts).catch((e) => {
129083
- throw toKnownErr36(e);
129882
+ throw toKnownErr44(e);
129084
129883
  });
129085
129884
  }
129086
129885
  createAccount(data, opts) {
129087
129886
  return this._service.xrpc.call("com.atproto.server.createAccount", opts?.qp, data, opts).catch((e) => {
129088
- throw toKnownErr37(e);
129887
+ throw toKnownErr45(e);
129089
129888
  });
129090
129889
  }
129091
129890
  createAppPassword(data, opts) {
129092
129891
  return this._service.xrpc.call("com.atproto.server.createAppPassword", opts?.qp, data, opts).catch((e) => {
129093
- throw toKnownErr38(e);
129892
+ throw toKnownErr46(e);
129094
129893
  });
129095
129894
  }
129096
129895
  createInviteCode(data, opts) {
129097
129896
  return this._service.xrpc.call("com.atproto.server.createInviteCode", opts?.qp, data, opts).catch((e) => {
129098
- throw toKnownErr39(e);
129897
+ throw toKnownErr47(e);
129099
129898
  });
129100
129899
  }
129101
129900
  createInviteCodes(data, opts) {
129102
129901
  return this._service.xrpc.call("com.atproto.server.createInviteCodes", opts?.qp, data, opts).catch((e) => {
129103
- throw toKnownErr40(e);
129902
+ throw toKnownErr48(e);
129104
129903
  });
129105
129904
  }
129106
129905
  createSession(data, opts) {
129107
129906
  return this._service.xrpc.call("com.atproto.server.createSession", opts?.qp, data, opts).catch((e) => {
129108
- throw toKnownErr41(e);
129907
+ throw toKnownErr49(e);
129908
+ });
129909
+ }
129910
+ deactivateAccount(data, opts) {
129911
+ return this._service.xrpc.call("com.atproto.server.deactivateAccount", opts?.qp, data, opts).catch((e) => {
129912
+ throw toKnownErr50(e);
129109
129913
  });
129110
129914
  }
129111
129915
  deleteAccount(data, opts) {
129112
129916
  return this._service.xrpc.call("com.atproto.server.deleteAccount", opts?.qp, data, opts).catch((e) => {
129113
- throw toKnownErr42(e);
129917
+ throw toKnownErr51(e);
129114
129918
  });
129115
129919
  }
129116
129920
  deleteSession(data, opts) {
129117
129921
  return this._service.xrpc.call("com.atproto.server.deleteSession", opts?.qp, data, opts).catch((e) => {
129118
- throw toKnownErr43(e);
129922
+ throw toKnownErr52(e);
129119
129923
  });
129120
129924
  }
129121
129925
  describeServer(params2, opts) {
129122
129926
  return this._service.xrpc.call("com.atproto.server.describeServer", params2, void 0, opts).catch((e) => {
129123
- throw toKnownErr44(e);
129927
+ throw toKnownErr53(e);
129124
129928
  });
129125
129929
  }
129126
129930
  getAccountInviteCodes(params2, opts) {
129127
129931
  return this._service.xrpc.call("com.atproto.server.getAccountInviteCodes", params2, void 0, opts).catch((e) => {
129128
- throw toKnownErr45(e);
129932
+ throw toKnownErr54(e);
129933
+ });
129934
+ }
129935
+ getServiceAuth(params2, opts) {
129936
+ return this._service.xrpc.call("com.atproto.server.getServiceAuth", params2, void 0, opts).catch((e) => {
129937
+ throw toKnownErr55(e);
129129
129938
  });
129130
129939
  }
129131
129940
  getSession(params2, opts) {
129132
129941
  return this._service.xrpc.call("com.atproto.server.getSession", params2, void 0, opts).catch((e) => {
129133
- throw toKnownErr46(e);
129942
+ throw toKnownErr56(e);
129134
129943
  });
129135
129944
  }
129136
129945
  listAppPasswords(params2, opts) {
129137
129946
  return this._service.xrpc.call("com.atproto.server.listAppPasswords", params2, void 0, opts).catch((e) => {
129138
- throw toKnownErr47(e);
129947
+ throw toKnownErr57(e);
129139
129948
  });
129140
129949
  }
129141
129950
  refreshSession(data, opts) {
129142
129951
  return this._service.xrpc.call("com.atproto.server.refreshSession", opts?.qp, data, opts).catch((e) => {
129143
- throw toKnownErr48(e);
129952
+ throw toKnownErr58(e);
129144
129953
  });
129145
129954
  }
129146
129955
  requestAccountDelete(data, opts) {
129147
129956
  return this._service.xrpc.call("com.atproto.server.requestAccountDelete", opts?.qp, data, opts).catch((e) => {
129148
- throw toKnownErr49(e);
129957
+ throw toKnownErr59(e);
129149
129958
  });
129150
129959
  }
129151
129960
  requestEmailConfirmation(data, opts) {
129152
129961
  return this._service.xrpc.call("com.atproto.server.requestEmailConfirmation", opts?.qp, data, opts).catch((e) => {
129153
- throw toKnownErr50(e);
129962
+ throw toKnownErr60(e);
129154
129963
  });
129155
129964
  }
129156
129965
  requestEmailUpdate(data, opts) {
129157
129966
  return this._service.xrpc.call("com.atproto.server.requestEmailUpdate", opts?.qp, data, opts).catch((e) => {
129158
- throw toKnownErr51(e);
129967
+ throw toKnownErr61(e);
129159
129968
  });
129160
129969
  }
129161
129970
  requestPasswordReset(data, opts) {
129162
129971
  return this._service.xrpc.call("com.atproto.server.requestPasswordReset", opts?.qp, data, opts).catch((e) => {
129163
- throw toKnownErr52(e);
129972
+ throw toKnownErr62(e);
129164
129973
  });
129165
129974
  }
129166
129975
  reserveSigningKey(data, opts) {
129167
129976
  return this._service.xrpc.call("com.atproto.server.reserveSigningKey", opts?.qp, data, opts).catch((e) => {
129168
- throw toKnownErr53(e);
129977
+ throw toKnownErr63(e);
129169
129978
  });
129170
129979
  }
129171
129980
  resetPassword(data, opts) {
129172
129981
  return this._service.xrpc.call("com.atproto.server.resetPassword", opts?.qp, data, opts).catch((e) => {
129173
- throw toKnownErr54(e);
129982
+ throw toKnownErr64(e);
129174
129983
  });
129175
129984
  }
129176
129985
  revokeAppPassword(data, opts) {
129177
129986
  return this._service.xrpc.call("com.atproto.server.revokeAppPassword", opts?.qp, data, opts).catch((e) => {
129178
- throw toKnownErr55(e);
129987
+ throw toKnownErr65(e);
129179
129988
  });
129180
129989
  }
129181
129990
  updateEmail(data, opts) {
129182
129991
  return this._service.xrpc.call("com.atproto.server.updateEmail", opts?.qp, data, opts).catch((e) => {
129183
- throw toKnownErr56(e);
129992
+ throw toKnownErr66(e);
129184
129993
  });
129185
129994
  }
129186
129995
  };
@@ -129190,57 +129999,57 @@ var ComAtprotoSyncNS2 = class {
129190
129999
  }
129191
130000
  getBlob(params2, opts) {
129192
130001
  return this._service.xrpc.call("com.atproto.sync.getBlob", params2, void 0, opts).catch((e) => {
129193
- throw toKnownErr57(e);
130002
+ throw toKnownErr67(e);
129194
130003
  });
129195
130004
  }
129196
130005
  getBlocks(params2, opts) {
129197
130006
  return this._service.xrpc.call("com.atproto.sync.getBlocks", params2, void 0, opts).catch((e) => {
129198
- throw toKnownErr58(e);
130007
+ throw toKnownErr68(e);
129199
130008
  });
129200
130009
  }
129201
130010
  getCheckout(params2, opts) {
129202
130011
  return this._service.xrpc.call("com.atproto.sync.getCheckout", params2, void 0, opts).catch((e) => {
129203
- throw toKnownErr59(e);
130012
+ throw toKnownErr69(e);
129204
130013
  });
129205
130014
  }
129206
130015
  getHead(params2, opts) {
129207
130016
  return this._service.xrpc.call("com.atproto.sync.getHead", params2, void 0, opts).catch((e) => {
129208
- throw toKnownErr60(e);
130017
+ throw toKnownErr70(e);
129209
130018
  });
129210
130019
  }
129211
130020
  getLatestCommit(params2, opts) {
129212
130021
  return this._service.xrpc.call("com.atproto.sync.getLatestCommit", params2, void 0, opts).catch((e) => {
129213
- throw toKnownErr61(e);
130022
+ throw toKnownErr71(e);
129214
130023
  });
129215
130024
  }
129216
130025
  getRecord(params2, opts) {
129217
130026
  return this._service.xrpc.call("com.atproto.sync.getRecord", params2, void 0, opts).catch((e) => {
129218
- throw toKnownErr62(e);
130027
+ throw toKnownErr72(e);
129219
130028
  });
129220
130029
  }
129221
130030
  getRepo(params2, opts) {
129222
130031
  return this._service.xrpc.call("com.atproto.sync.getRepo", params2, void 0, opts).catch((e) => {
129223
- throw toKnownErr63(e);
130032
+ throw toKnownErr73(e);
129224
130033
  });
129225
130034
  }
129226
130035
  listBlobs(params2, opts) {
129227
130036
  return this._service.xrpc.call("com.atproto.sync.listBlobs", params2, void 0, opts).catch((e) => {
129228
- throw toKnownErr64(e);
130037
+ throw toKnownErr74(e);
129229
130038
  });
129230
130039
  }
129231
130040
  listRepos(params2, opts) {
129232
130041
  return this._service.xrpc.call("com.atproto.sync.listRepos", params2, void 0, opts).catch((e) => {
129233
- throw toKnownErr65(e);
130042
+ throw toKnownErr75(e);
129234
130043
  });
129235
130044
  }
129236
130045
  notifyOfUpdate(data, opts) {
129237
130046
  return this._service.xrpc.call("com.atproto.sync.notifyOfUpdate", opts?.qp, data, opts).catch((e) => {
129238
- throw toKnownErr66(e);
130047
+ throw toKnownErr76(e);
129239
130048
  });
129240
130049
  }
129241
130050
  requestCrawl(data, opts) {
129242
130051
  return this._service.xrpc.call("com.atproto.sync.requestCrawl", opts?.qp, data, opts).catch((e) => {
129243
- throw toKnownErr67(e);
130052
+ throw toKnownErr77(e);
129244
130053
  });
129245
130054
  }
129246
130055
  };
@@ -129250,32 +130059,17 @@ var ComAtprotoTempNS2 = class {
129250
130059
  }
129251
130060
  checkSignupQueue(params2, opts) {
129252
130061
  return this._service.xrpc.call("com.atproto.temp.checkSignupQueue", params2, void 0, opts).catch((e) => {
129253
- throw toKnownErr68(e);
130062
+ throw toKnownErr78(e);
129254
130063
  });
129255
130064
  }
129256
130065
  fetchLabels(params2, opts) {
129257
130066
  return this._service.xrpc.call("com.atproto.temp.fetchLabels", params2, void 0, opts).catch((e) => {
129258
- throw toKnownErr69(e);
129259
- });
129260
- }
129261
- importRepo(data, opts) {
129262
- return this._service.xrpc.call("com.atproto.temp.importRepo", opts?.qp, data, opts).catch((e) => {
129263
- throw toKnownErr70(e);
129264
- });
129265
- }
129266
- pushBlob(data, opts) {
129267
- return this._service.xrpc.call("com.atproto.temp.pushBlob", opts?.qp, data, opts).catch((e) => {
129268
- throw toKnownErr71(e);
130067
+ throw toKnownErr79(e);
129269
130068
  });
129270
130069
  }
129271
130070
  requestPhoneVerification(data, opts) {
129272
130071
  return this._service.xrpc.call("com.atproto.temp.requestPhoneVerification", opts?.qp, data, opts).catch((e) => {
129273
- throw toKnownErr72(e);
129274
- });
129275
- }
129276
- transferAccount(data, opts) {
129277
- return this._service.xrpc.call("com.atproto.temp.transferAccount", opts?.qp, data, opts).catch((e) => {
129278
- throw toKnownErr73(e);
130072
+ throw toKnownErr80(e);
129279
130073
  });
129280
130074
  }
129281
130075
  };
@@ -129304,37 +130098,37 @@ var AppBskyActorNS2 = class {
129304
130098
  }
129305
130099
  getPreferences(params2, opts) {
129306
130100
  return this._service.xrpc.call("app.bsky.actor.getPreferences", params2, void 0, opts).catch((e) => {
129307
- throw toKnownErr74(e);
130101
+ throw toKnownErr81(e);
129308
130102
  });
129309
130103
  }
129310
130104
  getProfile(params2, opts) {
129311
130105
  return this._service.xrpc.call("app.bsky.actor.getProfile", params2, void 0, opts).catch((e) => {
129312
- throw toKnownErr75(e);
130106
+ throw toKnownErr82(e);
129313
130107
  });
129314
130108
  }
129315
130109
  getProfiles(params2, opts) {
129316
130110
  return this._service.xrpc.call("app.bsky.actor.getProfiles", params2, void 0, opts).catch((e) => {
129317
- throw toKnownErr76(e);
130111
+ throw toKnownErr83(e);
129318
130112
  });
129319
130113
  }
129320
130114
  getSuggestions(params2, opts) {
129321
130115
  return this._service.xrpc.call("app.bsky.actor.getSuggestions", params2, void 0, opts).catch((e) => {
129322
- throw toKnownErr77(e);
130116
+ throw toKnownErr84(e);
129323
130117
  });
129324
130118
  }
129325
130119
  putPreferences(data, opts) {
129326
130120
  return this._service.xrpc.call("app.bsky.actor.putPreferences", opts?.qp, data, opts).catch((e) => {
129327
- throw toKnownErr78(e);
130121
+ throw toKnownErr85(e);
129328
130122
  });
129329
130123
  }
129330
130124
  searchActors(params2, opts) {
129331
130125
  return this._service.xrpc.call("app.bsky.actor.searchActors", params2, void 0, opts).catch((e) => {
129332
- throw toKnownErr79(e);
130126
+ throw toKnownErr86(e);
129333
130127
  });
129334
130128
  }
129335
130129
  searchActorsTypeahead(params2, opts) {
129336
130130
  return this._service.xrpc.call("app.bsky.actor.searchActorsTypeahead", params2, void 0, opts).catch((e) => {
129337
- throw toKnownErr80(e);
130131
+ throw toKnownErr87(e);
129338
130132
  });
129339
130133
  }
129340
130134
  };
@@ -129381,82 +130175,82 @@ var AppBskyFeedNS2 = class {
129381
130175
  }
129382
130176
  describeFeedGenerator(params2, opts) {
129383
130177
  return this._service.xrpc.call("app.bsky.feed.describeFeedGenerator", params2, void 0, opts).catch((e) => {
129384
- throw toKnownErr81(e);
130178
+ throw toKnownErr88(e);
129385
130179
  });
129386
130180
  }
129387
130181
  getActorFeeds(params2, opts) {
129388
130182
  return this._service.xrpc.call("app.bsky.feed.getActorFeeds", params2, void 0, opts).catch((e) => {
129389
- throw toKnownErr82(e);
130183
+ throw toKnownErr89(e);
129390
130184
  });
129391
130185
  }
129392
130186
  getActorLikes(params2, opts) {
129393
130187
  return this._service.xrpc.call("app.bsky.feed.getActorLikes", params2, void 0, opts).catch((e) => {
129394
- throw toKnownErr83(e);
130188
+ throw toKnownErr90(e);
129395
130189
  });
129396
130190
  }
129397
130191
  getAuthorFeed(params2, opts) {
129398
130192
  return this._service.xrpc.call("app.bsky.feed.getAuthorFeed", params2, void 0, opts).catch((e) => {
129399
- throw toKnownErr84(e);
130193
+ throw toKnownErr91(e);
129400
130194
  });
129401
130195
  }
129402
130196
  getFeed(params2, opts) {
129403
130197
  return this._service.xrpc.call("app.bsky.feed.getFeed", params2, void 0, opts).catch((e) => {
129404
- throw toKnownErr85(e);
130198
+ throw toKnownErr92(e);
129405
130199
  });
129406
130200
  }
129407
130201
  getFeedGenerator(params2, opts) {
129408
130202
  return this._service.xrpc.call("app.bsky.feed.getFeedGenerator", params2, void 0, opts).catch((e) => {
129409
- throw toKnownErr86(e);
130203
+ throw toKnownErr93(e);
129410
130204
  });
129411
130205
  }
129412
130206
  getFeedGenerators(params2, opts) {
129413
130207
  return this._service.xrpc.call("app.bsky.feed.getFeedGenerators", params2, void 0, opts).catch((e) => {
129414
- throw toKnownErr87(e);
130208
+ throw toKnownErr94(e);
129415
130209
  });
129416
130210
  }
129417
130211
  getFeedSkeleton(params2, opts) {
129418
130212
  return this._service.xrpc.call("app.bsky.feed.getFeedSkeleton", params2, void 0, opts).catch((e) => {
129419
- throw toKnownErr88(e);
130213
+ throw toKnownErr95(e);
129420
130214
  });
129421
130215
  }
129422
130216
  getLikes(params2, opts) {
129423
130217
  return this._service.xrpc.call("app.bsky.feed.getLikes", params2, void 0, opts).catch((e) => {
129424
- throw toKnownErr89(e);
130218
+ throw toKnownErr96(e);
129425
130219
  });
129426
130220
  }
129427
130221
  getListFeed(params2, opts) {
129428
130222
  return this._service.xrpc.call("app.bsky.feed.getListFeed", params2, void 0, opts).catch((e) => {
129429
- throw toKnownErr90(e);
130223
+ throw toKnownErr97(e);
129430
130224
  });
129431
130225
  }
129432
130226
  getPostThread(params2, opts) {
129433
130227
  return this._service.xrpc.call("app.bsky.feed.getPostThread", params2, void 0, opts).catch((e) => {
129434
- throw toKnownErr91(e);
130228
+ throw toKnownErr98(e);
129435
130229
  });
129436
130230
  }
129437
130231
  getPosts(params2, opts) {
129438
130232
  return this._service.xrpc.call("app.bsky.feed.getPosts", params2, void 0, opts).catch((e) => {
129439
- throw toKnownErr92(e);
130233
+ throw toKnownErr99(e);
129440
130234
  });
129441
130235
  }
129442
130236
  getRepostedBy(params2, opts) {
129443
130237
  return this._service.xrpc.call("app.bsky.feed.getRepostedBy", params2, void 0, opts).catch((e) => {
129444
- throw toKnownErr93(e);
130238
+ throw toKnownErr100(e);
129445
130239
  });
129446
130240
  }
129447
130241
  getSuggestedFeeds(params2, opts) {
129448
130242
  return this._service.xrpc.call("app.bsky.feed.getSuggestedFeeds", params2, void 0, opts).catch((e) => {
129449
- throw toKnownErr94(e);
130243
+ throw toKnownErr101(e);
129450
130244
  });
129451
130245
  }
129452
130246
  getTimeline(params2, opts) {
129453
130247
  return this._service.xrpc.call("app.bsky.feed.getTimeline", params2, void 0, opts).catch((e) => {
129454
- throw toKnownErr95(e);
130248
+ throw toKnownErr102(e);
129455
130249
  });
129456
130250
  }
129457
130251
  searchPosts(params2, opts) {
129458
130252
  return this._service.xrpc.call("app.bsky.feed.searchPosts", params2, void 0, opts).catch((e) => {
129459
- throw toKnownErr96(e);
130253
+ throw toKnownErr103(e);
129460
130254
  });
129461
130255
  }
129462
130256
  };
@@ -129606,72 +130400,72 @@ var AppBskyGraphNS2 = class {
129606
130400
  }
129607
130401
  getBlocks(params2, opts) {
129608
130402
  return this._service.xrpc.call("app.bsky.graph.getBlocks", params2, void 0, opts).catch((e) => {
129609
- throw toKnownErr97(e);
130403
+ throw toKnownErr104(e);
129610
130404
  });
129611
130405
  }
129612
130406
  getFollowers(params2, opts) {
129613
130407
  return this._service.xrpc.call("app.bsky.graph.getFollowers", params2, void 0, opts).catch((e) => {
129614
- throw toKnownErr98(e);
130408
+ throw toKnownErr105(e);
129615
130409
  });
129616
130410
  }
129617
130411
  getFollows(params2, opts) {
129618
130412
  return this._service.xrpc.call("app.bsky.graph.getFollows", params2, void 0, opts).catch((e) => {
129619
- throw toKnownErr99(e);
130413
+ throw toKnownErr106(e);
129620
130414
  });
129621
130415
  }
129622
130416
  getList(params2, opts) {
129623
130417
  return this._service.xrpc.call("app.bsky.graph.getList", params2, void 0, opts).catch((e) => {
129624
- throw toKnownErr100(e);
130418
+ throw toKnownErr107(e);
129625
130419
  });
129626
130420
  }
129627
130421
  getListBlocks(params2, opts) {
129628
130422
  return this._service.xrpc.call("app.bsky.graph.getListBlocks", params2, void 0, opts).catch((e) => {
129629
- throw toKnownErr101(e);
130423
+ throw toKnownErr108(e);
129630
130424
  });
129631
130425
  }
129632
130426
  getListMutes(params2, opts) {
129633
130427
  return this._service.xrpc.call("app.bsky.graph.getListMutes", params2, void 0, opts).catch((e) => {
129634
- throw toKnownErr102(e);
130428
+ throw toKnownErr109(e);
129635
130429
  });
129636
130430
  }
129637
130431
  getLists(params2, opts) {
129638
130432
  return this._service.xrpc.call("app.bsky.graph.getLists", params2, void 0, opts).catch((e) => {
129639
- throw toKnownErr103(e);
130433
+ throw toKnownErr110(e);
129640
130434
  });
129641
130435
  }
129642
130436
  getMutes(params2, opts) {
129643
130437
  return this._service.xrpc.call("app.bsky.graph.getMutes", params2, void 0, opts).catch((e) => {
129644
- throw toKnownErr104(e);
130438
+ throw toKnownErr111(e);
129645
130439
  });
129646
130440
  }
129647
130441
  getRelationships(params2, opts) {
129648
130442
  return this._service.xrpc.call("app.bsky.graph.getRelationships", params2, void 0, opts).catch((e) => {
129649
- throw toKnownErr105(e);
130443
+ throw toKnownErr112(e);
129650
130444
  });
129651
130445
  }
129652
130446
  getSuggestedFollowsByActor(params2, opts) {
129653
130447
  return this._service.xrpc.call("app.bsky.graph.getSuggestedFollowsByActor", params2, void 0, opts).catch((e) => {
129654
- throw toKnownErr106(e);
130448
+ throw toKnownErr113(e);
129655
130449
  });
129656
130450
  }
129657
130451
  muteActor(data, opts) {
129658
130452
  return this._service.xrpc.call("app.bsky.graph.muteActor", opts?.qp, data, opts).catch((e) => {
129659
- throw toKnownErr107(e);
130453
+ throw toKnownErr114(e);
129660
130454
  });
129661
130455
  }
129662
130456
  muteActorList(data, opts) {
129663
130457
  return this._service.xrpc.call("app.bsky.graph.muteActorList", opts?.qp, data, opts).catch((e) => {
129664
- throw toKnownErr108(e);
130458
+ throw toKnownErr115(e);
129665
130459
  });
129666
130460
  }
129667
130461
  unmuteActor(data, opts) {
129668
130462
  return this._service.xrpc.call("app.bsky.graph.unmuteActor", opts?.qp, data, opts).catch((e) => {
129669
- throw toKnownErr109(e);
130463
+ throw toKnownErr116(e);
129670
130464
  });
129671
130465
  }
129672
130466
  unmuteActorList(data, opts) {
129673
130467
  return this._service.xrpc.call("app.bsky.graph.unmuteActorList", opts?.qp, data, opts).catch((e) => {
129674
- throw toKnownErr110(e);
130468
+ throw toKnownErr117(e);
129675
130469
  });
129676
130470
  }
129677
130471
  };
@@ -129816,22 +130610,22 @@ var AppBskyNotificationNS2 = class {
129816
130610
  }
129817
130611
  getUnreadCount(params2, opts) {
129818
130612
  return this._service.xrpc.call("app.bsky.notification.getUnreadCount", params2, void 0, opts).catch((e) => {
129819
- throw toKnownErr111(e);
130613
+ throw toKnownErr118(e);
129820
130614
  });
129821
130615
  }
129822
130616
  listNotifications(params2, opts) {
129823
130617
  return this._service.xrpc.call("app.bsky.notification.listNotifications", params2, void 0, opts).catch((e) => {
129824
- throw toKnownErr112(e);
130618
+ throw toKnownErr119(e);
129825
130619
  });
129826
130620
  }
129827
130621
  registerPush(data, opts) {
129828
130622
  return this._service.xrpc.call("app.bsky.notification.registerPush", opts?.qp, data, opts).catch((e) => {
129829
- throw toKnownErr113(e);
130623
+ throw toKnownErr120(e);
129830
130624
  });
129831
130625
  }
129832
130626
  updateSeen(data, opts) {
129833
130627
  return this._service.xrpc.call("app.bsky.notification.updateSeen", opts?.qp, data, opts).catch((e) => {
129834
- throw toKnownErr114(e);
130628
+ throw toKnownErr121(e);
129835
130629
  });
129836
130630
  }
129837
130631
  };
@@ -129846,22 +130640,22 @@ var AppBskyUnspeccedNS2 = class {
129846
130640
  }
129847
130641
  getPopularFeedGenerators(params2, opts) {
129848
130642
  return this._service.xrpc.call("app.bsky.unspecced.getPopularFeedGenerators", params2, void 0, opts).catch((e) => {
129849
- throw toKnownErr115(e);
130643
+ throw toKnownErr122(e);
129850
130644
  });
129851
130645
  }
129852
130646
  getTaggedSuggestions(params2, opts) {
129853
130647
  return this._service.xrpc.call("app.bsky.unspecced.getTaggedSuggestions", params2, void 0, opts).catch((e) => {
129854
- throw toKnownErr116(e);
130648
+ throw toKnownErr123(e);
129855
130649
  });
129856
130650
  }
129857
130651
  searchActorsSkeleton(params2, opts) {
129858
130652
  return this._service.xrpc.call("app.bsky.unspecced.searchActorsSkeleton", params2, void 0, opts).catch((e) => {
129859
- throw toKnownErr117(e);
130653
+ throw toKnownErr124(e);
129860
130654
  });
129861
130655
  }
129862
130656
  searchPostsSkeleton(params2, opts) {
129863
130657
  return this._service.xrpc.call("app.bsky.unspecced.searchPostsSkeleton", params2, void 0, opts).catch((e) => {
129864
- throw toKnownErr118(e);
130658
+ throw toKnownErr125(e);
129865
130659
  });
129866
130660
  }
129867
130661
  };
@@ -131007,7 +131801,8 @@ var migrations_exports = {};
131007
131801
  __export(migrations_exports, {
131008
131802
  _20231219T205730722Z: () => T205730722Z_init_exports,
131009
131803
  _20240116T085607200Z: () => T085607200Z_communication_template_exports,
131010
- _20240201T051104136Z: () => T051104136Z_mod_event_blobs_exports
131804
+ _20240201T051104136Z: () => T051104136Z_mod_event_blobs_exports,
131805
+ _20240208T213404429Z: () => T213404429Z_add_tags_column_to_moderation_subject_exports
131011
131806
  });
131012
131807
 
131013
131808
  // src/db/migrations/20231219T205730722Z-init.ts
@@ -131078,6 +131873,23 @@ async function down3(db) {
131078
131873
  await db.schema.alterTable("moderation_event").dropColumn("subjectBlobCids").execute();
131079
131874
  }
131080
131875
 
131876
+ // src/db/migrations/20240208T213404429Z-add-tags-column-to-moderation-subject.ts
131877
+ var T213404429Z_add_tags_column_to_moderation_subject_exports = {};
131878
+ __export(T213404429Z_add_tags_column_to_moderation_subject_exports, {
131879
+ down: () => down4,
131880
+ up: () => up4
131881
+ });
131882
+ async function up4(db) {
131883
+ await db.schema.alterTable("moderation_event").addColumn("addedTags", "jsonb").execute();
131884
+ await db.schema.alterTable("moderation_event").addColumn("removedTags", "jsonb").execute();
131885
+ await db.schema.alterTable("moderation_subject_status").addColumn("tags", "jsonb").execute();
131886
+ }
131887
+ async function down4(db) {
131888
+ await db.schema.alterTable("moderation_event").dropColumn("addedTags").execute();
131889
+ await db.schema.alterTable("moderation_event").dropColumn("removedTags").execute();
131890
+ await db.schema.alterTable("moderation_subject_status").dropColumn("tags").execute();
131891
+ }
131892
+
131081
131893
  // src/db/migrations/provider.ts
131082
131894
  var CtxMigrationProvider = class {
131083
131895
  constructor(migrations, ctx) {
@@ -131333,6 +132145,10 @@ var ModerationViews = class {
131333
132145
  if (event.action === "com.atproto.admin.defs#modEventComment" && event.meta?.sticky) {
131334
132146
  eventView.event.sticky = true;
131335
132147
  }
132148
+ if (event.action === "com.atproto.admin.defs#modEventTag") {
132149
+ eventView.event.add = event.addedTags || [];
132150
+ eventView.event.remove = event.removedTags || [];
132151
+ }
131336
132152
  return eventView;
131337
132153
  }
131338
132154
  async eventDetail(result) {
@@ -131373,12 +132189,13 @@ var ModerationViews = class {
131373
132189
  const fetched = await Promise.all(subjects.map(async (subject) => {
131374
132190
  const uri2 = new AtUri(subject.uri);
131375
132191
  try {
131376
- return await this.appviewAgent.api.com.atproto.repo.getRecord({
132192
+ const record = await this.appviewAgent.api.com.atproto.repo.getRecord({
131377
132193
  repo: uri2.hostname,
131378
132194
  collection: uri2.collection,
131379
132195
  rkey: uri2.rkey,
131380
132196
  cid: subject.cid
131381
132197
  }, auth);
132198
+ return record;
131382
132199
  } catch {
131383
132200
  return null;
131384
132201
  }
@@ -131568,9 +132385,19 @@ var ModerationViews = class {
131568
132385
  appealed: status.appealed ?? void 0,
131569
132386
  subjectRepoHandle: status.handle ?? void 0,
131570
132387
  subjectBlobCids: status.blobCids || [],
132388
+ tags: status.tags || [],
131571
132389
  subject: subjectFromStatusRow(status).lex()
131572
132390
  };
131573
132391
  }
132392
+ async fetchAuthorFeed(actor) {
132393
+ const auth = await this.appviewAuth();
132394
+ if (!auth)
132395
+ return [];
132396
+ const {
132397
+ data: { feed }
132398
+ } = await this.appviewAgent.api.app.bsky.feed.getAuthorFeed({ actor }, auth);
132399
+ return feed;
132400
+ }
131574
132401
  };
131575
132402
  function parseSubjectId(subject) {
131576
132403
  if (subject.startsWith("did:")) {
@@ -131672,6 +132499,8 @@ var getSubjectStatusForModerationEvent = ({
131672
132499
  lastReviewedBy: createdBy,
131673
132500
  lastReviewedAt: createdAt
131674
132501
  };
132502
+ case "com.atproto.admin.defs#modEventTag":
132503
+ return { tags: [] };
131675
132504
  case "com.atproto.admin.defs#modEventResolveAppeal":
131676
132505
  return {
131677
132506
  appealed: false
@@ -131688,6 +132517,8 @@ var adjustModerationSubjectStatus = async (db, moderationEvent, blobCids) => {
131688
132517
  subjectCid,
131689
132518
  createdBy,
131690
132519
  meta,
132520
+ addedTags,
132521
+ removedTags,
131691
132522
  comment,
131692
132523
  createdAt
131693
132524
  } = moderationEvent;
@@ -131735,6 +132566,17 @@ var adjustModerationSubjectStatus = async (db, moderationEvent, blobCids) => {
131735
132566
  newStatus.comment = comment;
131736
132567
  subjectStatus.comment = comment;
131737
132568
  }
132569
+ if (action === "com.atproto.admin.defs#modEventTag") {
132570
+ let tags = currentStatus?.tags || [];
132571
+ if (addedTags?.length) {
132572
+ tags = tags.concat(addedTags);
132573
+ }
132574
+ if (removedTags?.length) {
132575
+ tags = tags.filter((tag) => !removedTags.includes(tag));
132576
+ }
132577
+ newStatus.tags = jsonb([...new Set(tags)]);
132578
+ subjectStatus.tags = newStatus.tags;
132579
+ }
131738
132580
  if (blobCids?.length) {
131739
132581
  const newBlobCids = jsonb(blobCids);
131740
132582
  newStatus.blobCids = newBlobCids;
@@ -131749,8 +132591,8 @@ var adjustModerationSubjectStatus = async (db, moderationEvent, blobCids) => {
131749
132591
  ...subjectStatus,
131750
132592
  updatedAt: now
131751
132593
  }));
131752
- const status = await insertQuery.executeTakeFirst();
131753
- return status;
132594
+ const status = await insertQuery.returningAll().executeTakeFirst();
132595
+ return status || null;
131754
132596
  };
131755
132597
  var getStatusIdentifierFromSubject = (subject) => {
131756
132598
  const isSubjectString = typeof subject === "string";
@@ -131945,8 +132787,11 @@ var ModerationService = class {
131945
132787
  createdBefore,
131946
132788
  addedLabels,
131947
132789
  removedLabels,
132790
+ addedTags,
132791
+ removedTags,
131948
132792
  reportTypes
131949
132793
  } = opts;
132794
+ const { ref } = this.db.db.dynamic;
131950
132795
  let builder = this.db.db.selectFrom("moderation_event").selectAll();
131951
132796
  if (subject) {
131952
132797
  builder = builder.where((qb) => {
@@ -131993,10 +132838,15 @@ var ModerationService = class {
131993
132838
  builder = builder.where("negateLabelVals", "ilike", `%${label}%`);
131994
132839
  });
131995
132840
  }
132841
+ if (addedTags.length) {
132842
+ builder = builder.where(sql`${ref("addedTags")} @> ${jsonb(addedTags)}`);
132843
+ }
132844
+ if (removedTags.length) {
132845
+ builder = builder.where(sql`${ref("removedTags")} @> ${jsonb(removedTags)}`);
132846
+ }
131996
132847
  if (reportTypes?.length) {
131997
132848
  builder = builder.where(sql`meta->>'reportType'`, "in", reportTypes);
131998
132849
  }
131999
- const { ref } = this.db.db.dynamic;
132000
132850
  const keyset = new TimeIdKeyset(ref(`moderation_event.createdAt`), ref("moderation_event.id"));
132001
132851
  const paginatedBuilder = paginate(builder, {
132002
132852
  limit,
@@ -132035,6 +132885,8 @@ var ModerationService = class {
132035
132885
  const createLabelVals = isModEventLabel(event) && event.createLabelVals.length > 0 ? event.createLabelVals.join(" ") : void 0;
132036
132886
  const negateLabelVals = isModEventLabel(event) && event.negateLabelVals.length > 0 ? event.negateLabelVals.join(" ") : void 0;
132037
132887
  const meta = {};
132888
+ const addedTags = isModEventTag(event) ? jsonb(event.add) : null;
132889
+ const removedTags = isModEventTag(event) ? jsonb(event.remove) : null;
132038
132890
  if (isModEventReport(event)) {
132039
132891
  meta.reportType = event.reportType;
132040
132892
  }
@@ -132052,6 +132904,8 @@ var ModerationService = class {
132052
132904
  createdBy,
132053
132905
  createLabelVals,
132054
132906
  negateLabelVals,
132907
+ addedTags,
132908
+ removedTags,
132055
132909
  durationInHours: event.durationInHours ? Number(event.durationInHours) : null,
132056
132910
  meta,
132057
132911
  expiresAt: (isModEventTakedown(event) || isModEventMute(event)) && event.durationInHours ? addHoursToDate(event.durationInHours, createdAt).toISOString() : void 0,
@@ -132061,8 +132915,8 @@ var ModerationService = class {
132061
132915
  subjectCid: subjectInfo.subjectCid,
132062
132916
  subjectBlobCids: jsonb(subjectInfo.subjectBlobCids)
132063
132917
  }).returningAll().executeTakeFirstOrThrow();
132064
- await adjustModerationSubjectStatus(this.db, modEvent, subject.blobCids);
132065
- return modEvent;
132918
+ const subjectStatus = await adjustModerationSubjectStatus(this.db, modEvent, subject.blobCids);
132919
+ return { event: modEvent, subjectStatus };
132066
132920
  }
132067
132921
  async getLastReversibleEventForSubject(subject) {
132068
132922
  if (!subject.reverseMute && !subject.reverseSuspend) {
@@ -132102,7 +132956,7 @@ var ModerationService = class {
132102
132956
  }) {
132103
132957
  const isRevertingTakedown = action === "com.atproto.admin.defs#modEventTakedown";
132104
132958
  this.db.assertTransaction();
132105
- const result = await this.logEvent({
132959
+ const { event } = await this.logEvent({
132106
132960
  event: {
132107
132961
  $type: isRevertingTakedown ? "com.atproto.admin.defs#modEventReverseTakedown" : "com.atproto.admin.defs#modEventUnmute",
132108
132962
  comment: comment ?? void 0
@@ -132118,7 +132972,7 @@ var ModerationService = class {
132118
132972
  await this.reverseTakedownRecord(subject);
132119
132973
  }
132120
132974
  }
132121
- return result;
132975
+ return event;
132122
132976
  }
132123
132977
  async takedownRepo(subject, takedownId, isSuspend = false) {
132124
132978
  const takedownRef = `BSKY-${isSuspend ? "SUSPEND" : "TAKEDOWN"}-${takedownId}`;
@@ -132259,7 +133113,7 @@ var ModerationService = class {
132259
133113
  createdAt = new Date(),
132260
133114
  subject
132261
133115
  } = info;
132262
- const event = await this.logEvent({
133116
+ const result = await this.logEvent({
132263
133117
  event: {
132264
133118
  $type: "com.atproto.admin.defs#modEventReport",
132265
133119
  reportType: reasonType,
@@ -132269,7 +133123,7 @@ var ModerationService = class {
132269
133123
  subject,
132270
133124
  createdAt
132271
133125
  });
132272
- return event;
133126
+ return result;
132273
133127
  }
132274
133128
  async getSubjectStatuses({
132275
133129
  cursor,
@@ -132286,9 +133140,12 @@ var ModerationService = class {
132286
133140
  sortDirection,
132287
133141
  lastReviewedBy,
132288
133142
  sortField,
132289
- subject
133143
+ subject,
133144
+ tags,
133145
+ excludeTags
132290
133146
  }) {
132291
133147
  let builder = this.db.db.selectFrom("moderation_subject_status").selectAll();
133148
+ const { ref } = this.db.db.dynamic;
132292
133149
  if (subject) {
132293
133150
  const subjectInfo = getStatusIdentifierFromSubject(subject);
132294
133151
  builder = builder.where("moderation_subject_status.did", "=", subjectInfo.did).where((qb) => subjectInfo.recordPath ? qb.where("recordPath", "=", subjectInfo.recordPath) : qb.where("recordPath", "=", ""));
@@ -132323,7 +133180,12 @@ var ModerationService = class {
132323
133180
  if (!includeMuted) {
132324
133181
  builder = builder.where((qb) => qb.where("muteUntil", "<", new Date().toISOString()).orWhere("muteUntil", "is", null));
132325
133182
  }
132326
- const { ref } = this.db.db.dynamic;
133183
+ if (tags.length) {
133184
+ builder = builder.where(sql`${ref("moderation_subject_status.tags")} @> ${jsonb(tags)}`);
133185
+ }
133186
+ if (excludeTags.length) {
133187
+ builder = builder.where((qb) => qb.where(sql`NOT(${ref("moderation_subject_status.tags")} @> ${jsonb(excludeTags)})`).orWhere("tags", "is", null));
133188
+ }
132327
133189
  const keyset = new StatusKeyset(ref(`moderation_subject_status.${sortField}`), ref("moderation_subject_status.id"));
132328
133190
  const paginatedBuilder = paginate(builder, {
132329
133191
  limit,