@atproto/bsky 0.0.123 → 0.0.125

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 (130) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/api/app/bsky/notification/listNotifications.d.ts +7 -0
  3. package/dist/api/app/bsky/notification/listNotifications.d.ts.map +1 -1
  4. package/dist/api/app/bsky/notification/listNotifications.js +21 -5
  5. package/dist/api/app/bsky/notification/listNotifications.js.map +1 -1
  6. package/dist/config.d.ts +6 -0
  7. package/dist/config.d.ts.map +1 -1
  8. package/dist/config.js +24 -15
  9. package/dist/config.js.map +1 -1
  10. package/dist/context.d.ts +6 -1
  11. package/dist/context.d.ts.map +1 -1
  12. package/dist/context.js +6 -0
  13. package/dist/context.js.map +1 -1
  14. package/dist/data-plane/client/hosts.d.ts +37 -0
  15. package/dist/data-plane/client/hosts.d.ts.map +1 -0
  16. package/dist/data-plane/client/hosts.js +106 -0
  17. package/dist/data-plane/client/hosts.js.map +1 -0
  18. package/dist/data-plane/client/index.d.ts +13 -0
  19. package/dist/data-plane/client/index.d.ts.map +1 -0
  20. package/dist/data-plane/client/index.js +133 -0
  21. package/dist/data-plane/client/index.js.map +1 -0
  22. package/dist/data-plane/{client.d.ts → client/util.d.ts} +3 -10
  23. package/dist/data-plane/client/util.d.ts.map +1 -0
  24. package/dist/data-plane/client/util.js +85 -0
  25. package/dist/data-plane/client/util.js.map +1 -0
  26. package/dist/data-plane/server/db/pagination.d.ts +69 -9
  27. package/dist/data-plane/server/db/pagination.d.ts.map +1 -1
  28. package/dist/data-plane/server/db/pagination.js +114 -14
  29. package/dist/data-plane/server/db/pagination.js.map +1 -1
  30. package/dist/data-plane/server/routes/notifs.d.ts.map +1 -1
  31. package/dist/data-plane/server/routes/notifs.js +3 -5
  32. package/dist/data-plane/server/routes/notifs.js.map +1 -1
  33. package/dist/etcd.d.ts +25 -0
  34. package/dist/etcd.d.ts.map +1 -0
  35. package/dist/etcd.js +109 -0
  36. package/dist/etcd.js.map +1 -0
  37. package/dist/index.d.ts.map +1 -1
  38. package/dist/index.js +14 -1
  39. package/dist/index.js.map +1 -1
  40. package/dist/lexicon/index.d.ts +6 -0
  41. package/dist/lexicon/index.d.ts.map +1 -1
  42. package/dist/lexicon/index.js +12 -0
  43. package/dist/lexicon/index.js.map +1 -1
  44. package/dist/lexicon/lexicons.d.ts +412 -158
  45. package/dist/lexicon/lexicons.d.ts.map +1 -1
  46. package/dist/lexicon/lexicons.js +222 -81
  47. package/dist/lexicon/lexicons.js.map +1 -1
  48. package/dist/lexicon/types/app/bsky/embed/video.d.ts +1 -0
  49. package/dist/lexicon/types/app/bsky/embed/video.d.ts.map +1 -1
  50. package/dist/lexicon/types/app/bsky/embed/video.js.map +1 -1
  51. package/dist/lexicon/types/app/bsky/labeler/defs.d.ts +7 -0
  52. package/dist/lexicon/types/app/bsky/labeler/defs.d.ts.map +1 -1
  53. package/dist/lexicon/types/app/bsky/labeler/defs.js.map +1 -1
  54. package/dist/lexicon/types/app/bsky/labeler/service.d.ts +7 -0
  55. package/dist/lexicon/types/app/bsky/labeler/service.d.ts.map +1 -1
  56. package/dist/lexicon/types/app/bsky/labeler/service.js.map +1 -1
  57. package/dist/lexicon/types/com/atproto/identity/defs.d.ts +17 -0
  58. package/dist/lexicon/types/com/atproto/identity/defs.d.ts.map +1 -0
  59. package/dist/lexicon/types/com/atproto/identity/defs.js +16 -0
  60. package/dist/lexicon/types/com/atproto/identity/defs.js.map +1 -0
  61. package/dist/lexicon/types/com/atproto/identity/refreshIdentity.d.ts +39 -0
  62. package/dist/lexicon/types/com/atproto/identity/refreshIdentity.d.ts.map +1 -0
  63. package/dist/lexicon/types/com/atproto/identity/refreshIdentity.js +7 -0
  64. package/dist/lexicon/types/com/atproto/identity/refreshIdentity.js.map +1 -0
  65. package/dist/lexicon/types/com/atproto/identity/resolveDid.d.ts +40 -0
  66. package/dist/lexicon/types/com/atproto/identity/resolveDid.d.ts.map +1 -0
  67. package/dist/lexicon/types/com/atproto/identity/resolveDid.js +7 -0
  68. package/dist/lexicon/types/com/atproto/identity/resolveDid.js.map +1 -0
  69. package/dist/lexicon/types/com/atproto/identity/resolveHandle.d.ts +1 -0
  70. package/dist/lexicon/types/com/atproto/identity/resolveHandle.d.ts.map +1 -1
  71. package/dist/lexicon/types/com/atproto/identity/resolveIdentity.d.ts +36 -0
  72. package/dist/lexicon/types/com/atproto/identity/resolveIdentity.d.ts.map +1 -0
  73. package/dist/lexicon/types/com/atproto/identity/resolveIdentity.js +7 -0
  74. package/dist/lexicon/types/com/atproto/identity/resolveIdentity.js.map +1 -0
  75. package/dist/lexicon/types/com/atproto/moderation/defs.d.ts +2 -0
  76. package/dist/lexicon/types/com/atproto/moderation/defs.d.ts.map +1 -1
  77. package/dist/lexicon/types/com/atproto/repo/listRecords.d.ts +0 -4
  78. package/dist/lexicon/types/com/atproto/repo/listRecords.d.ts.map +1 -1
  79. package/dist/lexicon/types/com/atproto/repo/listRecords.js.map +1 -1
  80. package/dist/lexicon/types/com/atproto/sync/getRecord.d.ts +0 -2
  81. package/dist/lexicon/types/com/atproto/sync/getRecord.d.ts.map +1 -1
  82. package/dist/lexicon/types/com/atproto/sync/subscribeRepos.d.ts +1 -30
  83. package/dist/lexicon/types/com/atproto/sync/subscribeRepos.d.ts.map +1 -1
  84. package/dist/lexicon/types/com/atproto/sync/subscribeRepos.js +0 -27
  85. package/dist/lexicon/types/com/atproto/sync/subscribeRepos.js.map +1 -1
  86. package/dist/logger.d.ts +1 -0
  87. package/dist/logger.d.ts.map +1 -1
  88. package/dist/logger.js +2 -1
  89. package/dist/logger.js.map +1 -1
  90. package/dist/views/index.d.ts.map +1 -1
  91. package/dist/views/index.js +6 -3
  92. package/dist/views/index.js.map +1 -1
  93. package/package.json +14 -13
  94. package/src/api/app/bsky/notification/listNotifications.ts +28 -6
  95. package/src/config.ts +45 -15
  96. package/src/context.ts +12 -1
  97. package/src/data-plane/client/hosts.ts +103 -0
  98. package/src/data-plane/client/index.ts +123 -0
  99. package/src/data-plane/client/util.ts +66 -0
  100. package/src/data-plane/server/db/pagination.ts +158 -35
  101. package/src/data-plane/server/routes/notifs.ts +4 -9
  102. package/src/etcd.ts +90 -0
  103. package/src/index.ts +26 -2
  104. package/src/lexicon/index.ts +36 -0
  105. package/src/lexicon/lexicons.ts +243 -84
  106. package/src/lexicon/types/app/bsky/embed/video.ts +1 -0
  107. package/src/lexicon/types/app/bsky/labeler/defs.ts +7 -0
  108. package/src/lexicon/types/app/bsky/labeler/service.ts +7 -0
  109. package/src/lexicon/types/com/atproto/identity/defs.ts +30 -0
  110. package/src/lexicon/types/com/atproto/identity/refreshIdentity.ts +52 -0
  111. package/src/lexicon/types/com/atproto/identity/resolveDid.ts +52 -0
  112. package/src/lexicon/types/com/atproto/identity/resolveHandle.ts +1 -0
  113. package/src/lexicon/types/com/atproto/identity/resolveIdentity.ts +48 -0
  114. package/src/lexicon/types/com/atproto/moderation/defs.ts +3 -0
  115. package/src/lexicon/types/com/atproto/repo/listRecords.ts +0 -4
  116. package/src/lexicon/types/com/atproto/sync/getRecord.ts +0 -2
  117. package/src/lexicon/types/com/atproto/sync/subscribeRepos.ts +0 -59
  118. package/src/logger.ts +2 -0
  119. package/src/views/index.ts +6 -3
  120. package/tests/etcd.test.ts +301 -0
  121. package/tests/views/__snapshots__/labeler-service.test.ts.snap +46 -0
  122. package/tests/views/__snapshots__/notifications.test.ts.snap +3 -3
  123. package/tests/views/labeler-service.test.ts +50 -1
  124. package/tests/views/notifications.test.ts +190 -10
  125. package/tsconfig.build.tsbuildinfo +1 -1
  126. package/tsconfig.tests.tsbuildinfo +1 -1
  127. package/dist/data-plane/client.d.ts.map +0 -1
  128. package/dist/data-plane/client.js +0 -156
  129. package/dist/data-plane/client.js.map +0 -1
  130. package/src/data-plane/client.ts +0 -154
@@ -612,6 +612,31 @@ export declare const schemaDict: {
612
612
  };
613
613
  };
614
614
  };
615
+ readonly ComAtprotoIdentityDefs: {
616
+ readonly lexicon: 1;
617
+ readonly id: "com.atproto.identity.defs";
618
+ readonly defs: {
619
+ readonly identityInfo: {
620
+ readonly type: "object";
621
+ readonly required: ["did", "handle", "didDoc"];
622
+ readonly properties: {
623
+ readonly did: {
624
+ readonly type: "string";
625
+ readonly format: "did";
626
+ };
627
+ readonly handle: {
628
+ readonly type: "string";
629
+ readonly format: "handle";
630
+ readonly description: "The validated handle of the account; or 'handle.invalid' if the handle did not bi-directionally match the DID document.";
631
+ };
632
+ readonly didDoc: {
633
+ readonly type: "unknown";
634
+ readonly description: "The complete DID document for the identity.";
635
+ };
636
+ };
637
+ };
638
+ };
639
+ };
615
640
  readonly ComAtprotoIdentityGetRecommendedDidCredentials: {
616
641
  readonly lexicon: 1;
617
642
  readonly id: "com.atproto.identity.getRecommendedDidCredentials";
@@ -649,6 +674,46 @@ export declare const schemaDict: {
649
674
  };
650
675
  };
651
676
  };
677
+ readonly ComAtprotoIdentityRefreshIdentity: {
678
+ readonly lexicon: 1;
679
+ readonly id: "com.atproto.identity.refreshIdentity";
680
+ readonly defs: {
681
+ readonly main: {
682
+ readonly type: "procedure";
683
+ readonly description: "Request that the server re-resolve an identity (DID and handle). The server may ignore this request, or require authentication, depending on the role, implementation, and policy of the server.";
684
+ readonly input: {
685
+ readonly encoding: "application/json";
686
+ readonly schema: {
687
+ readonly type: "object";
688
+ readonly required: ["identifier"];
689
+ readonly properties: {
690
+ readonly identifier: {
691
+ readonly type: "string";
692
+ readonly format: "at-identifier";
693
+ };
694
+ };
695
+ };
696
+ };
697
+ readonly output: {
698
+ readonly encoding: "application/json";
699
+ readonly schema: {
700
+ readonly type: "ref";
701
+ readonly ref: "lex:com.atproto.identity.defs#identityInfo";
702
+ };
703
+ };
704
+ readonly errors: [{
705
+ readonly name: "HandleNotFound";
706
+ readonly description: "The resolution process confirmed that the handle does not resolve to any DID.";
707
+ }, {
708
+ readonly name: "DidNotFound";
709
+ readonly description: "The DID resolution process confirmed that there is no current DID.";
710
+ }, {
711
+ readonly name: "DidDeactivated";
712
+ readonly description: "The DID previously existed, but has been deactivated.";
713
+ }];
714
+ };
715
+ };
716
+ };
652
717
  readonly ComAtprotoIdentityRequestPlcOperationSignature: {
653
718
  readonly lexicon: 1;
654
719
  readonly id: "com.atproto.identity.requestPlcOperationSignature";
@@ -659,13 +724,54 @@ export declare const schemaDict: {
659
724
  };
660
725
  };
661
726
  };
727
+ readonly ComAtprotoIdentityResolveDid: {
728
+ readonly lexicon: 1;
729
+ readonly id: "com.atproto.identity.resolveDid";
730
+ readonly defs: {
731
+ readonly main: {
732
+ readonly type: "query";
733
+ readonly description: "Resolves DID to DID document. Does not bi-directionally verify handle.";
734
+ readonly parameters: {
735
+ readonly type: "params";
736
+ readonly required: ["did"];
737
+ readonly properties: {
738
+ readonly did: {
739
+ readonly type: "string";
740
+ readonly format: "did";
741
+ readonly description: "DID to resolve.";
742
+ };
743
+ };
744
+ };
745
+ readonly output: {
746
+ readonly encoding: "application/json";
747
+ readonly schema: {
748
+ readonly type: "object";
749
+ readonly required: ["didDoc"];
750
+ readonly properties: {
751
+ readonly didDoc: {
752
+ readonly type: "unknown";
753
+ readonly description: "The complete DID document for the identity.";
754
+ };
755
+ };
756
+ };
757
+ };
758
+ readonly errors: [{
759
+ readonly name: "DidNotFound";
760
+ readonly description: "The DID resolution process confirmed that there is no current DID.";
761
+ }, {
762
+ readonly name: "DidDeactivated";
763
+ readonly description: "The DID previously existed, but has been deactivated.";
764
+ }];
765
+ };
766
+ };
767
+ };
662
768
  readonly ComAtprotoIdentityResolveHandle: {
663
769
  readonly lexicon: 1;
664
770
  readonly id: "com.atproto.identity.resolveHandle";
665
771
  readonly defs: {
666
772
  readonly main: {
667
773
  readonly type: "query";
668
- readonly description: "Resolves a handle (domain name) to a DID.";
774
+ readonly description: "Resolves an atproto handle (hostname) to a DID. Does not necessarily bi-directionally verify against the the DID document.";
669
775
  readonly parameters: {
670
776
  readonly type: "params";
671
777
  readonly required: ["handle"];
@@ -690,6 +796,48 @@ export declare const schemaDict: {
690
796
  };
691
797
  };
692
798
  };
799
+ readonly errors: [{
800
+ readonly name: "HandleNotFound";
801
+ readonly description: "The resolution process confirmed that the handle does not resolve to any DID.";
802
+ }];
803
+ };
804
+ };
805
+ };
806
+ readonly ComAtprotoIdentityResolveIdentity: {
807
+ readonly lexicon: 1;
808
+ readonly id: "com.atproto.identity.resolveIdentity";
809
+ readonly defs: {
810
+ readonly main: {
811
+ readonly type: "query";
812
+ readonly description: "Resolves an identity (DID or Handle) to a full identity (DID document and verified handle).";
813
+ readonly parameters: {
814
+ readonly type: "params";
815
+ readonly required: ["identifier"];
816
+ readonly properties: {
817
+ readonly identifier: {
818
+ readonly type: "string";
819
+ readonly format: "at-identifier";
820
+ readonly description: "Handle or DID to resolve.";
821
+ };
822
+ };
823
+ };
824
+ readonly output: {
825
+ readonly encoding: "application/json";
826
+ readonly schema: {
827
+ readonly type: "ref";
828
+ readonly ref: "lex:com.atproto.identity.defs#identityInfo";
829
+ };
830
+ };
831
+ readonly errors: [{
832
+ readonly name: "HandleNotFound";
833
+ readonly description: "The resolution process confirmed that the handle does not resolve to any DID.";
834
+ }, {
835
+ readonly name: "DidNotFound";
836
+ readonly description: "The DID resolution process confirmed that there is no current DID.";
837
+ }, {
838
+ readonly name: "DidDeactivated";
839
+ readonly description: "The DID previously existed, but has been deactivated.";
840
+ }];
693
841
  };
694
842
  };
695
843
  };
@@ -1182,6 +1330,11 @@ export declare const schemaDict: {
1182
1330
  readonly type: "token";
1183
1331
  readonly description: "Appeal: appeal a previously taken moderation action";
1184
1332
  };
1333
+ readonly subjectType: {
1334
+ readonly type: "string";
1335
+ readonly description: "Tag describing a type of subject that might be reported.";
1336
+ readonly knownValues: ["account", "record", "chat"];
1337
+ };
1185
1338
  };
1186
1339
  };
1187
1340
  readonly ComAtprotoRepoApplyWrites: {
@@ -1714,14 +1867,6 @@ export declare const schemaDict: {
1714
1867
  readonly cursor: {
1715
1868
  readonly type: "string";
1716
1869
  };
1717
- readonly rkeyStart: {
1718
- readonly type: "string";
1719
- readonly description: "DEPRECATED: The lowest sort-ordered rkey to start from (exclusive)";
1720
- };
1721
- readonly rkeyEnd: {
1722
- readonly type: "string";
1723
- readonly description: "DEPRECATED: The highest sort-ordered rkey to stop at (exclusive)";
1724
- };
1725
1870
  readonly reverse: {
1726
1871
  readonly type: "boolean";
1727
1872
  readonly description: "Flag to reverse the order of the returned records.";
@@ -3141,11 +3286,6 @@ export declare const schemaDict: {
3141
3286
  readonly description: "Record Key";
3142
3287
  readonly format: "record-key";
3143
3288
  };
3144
- readonly commit: {
3145
- readonly type: "string";
3146
- readonly format: "cid";
3147
- readonly description: "DEPRECATED: referenced a repo commit by CID, and retrieved record as of that commit";
3148
- };
3149
3289
  };
3150
3290
  };
3151
3291
  readonly output: {
@@ -3451,7 +3591,7 @@ export declare const schemaDict: {
3451
3591
  readonly defs: {
3452
3592
  readonly main: {
3453
3593
  readonly type: "procedure";
3454
- readonly description: "Notify a crawling service of a recent update, and that crawling should resume. Intended use is after a gap between repo stream events caused the crawling service to disconnect. Does not require auth; implemented by Relay.";
3594
+ readonly description: "Notify a crawling service of a recent update, and that crawling should resume. Intended use is after a gap between repo stream events caused the crawling service to disconnect. Does not require auth; implemented by Relay. DEPRECATED: just use com.atproto.sync.requestCrawl";
3455
3595
  readonly input: {
3456
3596
  readonly encoding: "application/json";
3457
3597
  readonly schema: {
@@ -3510,7 +3650,7 @@ export declare const schemaDict: {
3510
3650
  readonly message: {
3511
3651
  readonly schema: {
3512
3652
  readonly type: "union";
3513
- readonly refs: ["lex:com.atproto.sync.subscribeRepos#commit", "lex:com.atproto.sync.subscribeRepos#sync", "lex:com.atproto.sync.subscribeRepos#identity", "lex:com.atproto.sync.subscribeRepos#account", "lex:com.atproto.sync.subscribeRepos#handle", "lex:com.atproto.sync.subscribeRepos#migrate", "lex:com.atproto.sync.subscribeRepos#tombstone", "lex:com.atproto.sync.subscribeRepos#info"];
3653
+ readonly refs: ["lex:com.atproto.sync.subscribeRepos#commit", "lex:com.atproto.sync.subscribeRepos#sync", "lex:com.atproto.sync.subscribeRepos#identity", "lex:com.atproto.sync.subscribeRepos#account", "lex:com.atproto.sync.subscribeRepos#info"];
3514
3654
  };
3515
3655
  };
3516
3656
  readonly errors: [{
@@ -3669,68 +3809,6 @@ export declare const schemaDict: {
3669
3809
  };
3670
3810
  };
3671
3811
  };
3672
- readonly handle: {
3673
- readonly type: "object";
3674
- readonly description: "DEPRECATED -- Use #identity event instead";
3675
- readonly required: ["seq", "did", "handle", "time"];
3676
- readonly properties: {
3677
- readonly seq: {
3678
- readonly type: "integer";
3679
- };
3680
- readonly did: {
3681
- readonly type: "string";
3682
- readonly format: "did";
3683
- };
3684
- readonly handle: {
3685
- readonly type: "string";
3686
- readonly format: "handle";
3687
- };
3688
- readonly time: {
3689
- readonly type: "string";
3690
- readonly format: "datetime";
3691
- };
3692
- };
3693
- };
3694
- readonly migrate: {
3695
- readonly type: "object";
3696
- readonly description: "DEPRECATED -- Use #account event instead";
3697
- readonly required: ["seq", "did", "migrateTo", "time"];
3698
- readonly nullable: ["migrateTo"];
3699
- readonly properties: {
3700
- readonly seq: {
3701
- readonly type: "integer";
3702
- };
3703
- readonly did: {
3704
- readonly type: "string";
3705
- readonly format: "did";
3706
- };
3707
- readonly migrateTo: {
3708
- readonly type: "string";
3709
- };
3710
- readonly time: {
3711
- readonly type: "string";
3712
- readonly format: "datetime";
3713
- };
3714
- };
3715
- };
3716
- readonly tombstone: {
3717
- readonly type: "object";
3718
- readonly description: "DEPRECATED -- Use #account event instead";
3719
- readonly required: ["seq", "did", "time"];
3720
- readonly properties: {
3721
- readonly seq: {
3722
- readonly type: "integer";
3723
- };
3724
- readonly did: {
3725
- readonly type: "string";
3726
- readonly format: "did";
3727
- };
3728
- readonly time: {
3729
- readonly type: "string";
3730
- readonly format: "datetime";
3731
- };
3732
- };
3733
- };
3734
3812
  readonly info: {
3735
3813
  readonly type: "object";
3736
3814
  readonly required: ["name"];
@@ -5143,8 +5221,9 @@ export declare const schemaDict: {
5143
5221
  readonly properties: {
5144
5222
  readonly video: {
5145
5223
  readonly type: "blob";
5224
+ readonly description: "The mp4 video file. May be up to 100mb, formerly limited to 50mb.";
5146
5225
  readonly accept: ["video/mp4"];
5147
- readonly maxSize: 50000000;
5226
+ readonly maxSize: 100000000;
5148
5227
  };
5149
5228
  readonly captions: {
5150
5229
  readonly type: "array";
@@ -8415,6 +8494,30 @@ export declare const schemaDict: {
8415
8494
  readonly ref: "lex:com.atproto.label.defs#label";
8416
8495
  };
8417
8496
  };
8497
+ readonly reasonTypes: {
8498
+ readonly description: "The set of report reason 'codes' which are in-scope for this service to review and action. These usually align to policy categories. If not defined (distinct from empty array), all reason types are allowed.";
8499
+ readonly type: "array";
8500
+ readonly items: {
8501
+ readonly type: "ref";
8502
+ readonly ref: "lex:com.atproto.moderation.defs#reasonType";
8503
+ };
8504
+ };
8505
+ readonly subjectTypes: {
8506
+ readonly description: "The set of subject types (account, record, etc) this service accepts reports on.";
8507
+ readonly type: "array";
8508
+ readonly items: {
8509
+ readonly type: "ref";
8510
+ readonly ref: "lex:com.atproto.moderation.defs#subjectType";
8511
+ };
8512
+ };
8513
+ readonly subjectCollections: {
8514
+ readonly type: "array";
8515
+ readonly description: "Set of record types (collection NSIDs) which can be reported to this service. If not defined (distinct from empty array), default is any record type.";
8516
+ readonly items: {
8517
+ readonly type: "string";
8518
+ readonly format: "nsid";
8519
+ };
8520
+ };
8418
8521
  };
8419
8522
  };
8420
8523
  readonly labelerViewerState: {
@@ -8517,6 +8620,30 @@ export declare const schemaDict: {
8517
8620
  readonly type: "string";
8518
8621
  readonly format: "datetime";
8519
8622
  };
8623
+ readonly reasonTypes: {
8624
+ readonly description: "The set of report reason 'codes' which are in-scope for this service to review and action. These usually align to policy categories. If not defined (distinct from empty array), all reason types are allowed.";
8625
+ readonly type: "array";
8626
+ readonly items: {
8627
+ readonly type: "ref";
8628
+ readonly ref: "lex:com.atproto.moderation.defs#reasonType";
8629
+ };
8630
+ };
8631
+ readonly subjectTypes: {
8632
+ readonly description: "The set of subject types (account, record, etc) this service accepts reports on.";
8633
+ readonly type: "array";
8634
+ readonly items: {
8635
+ readonly type: "ref";
8636
+ readonly ref: "lex:com.atproto.moderation.defs#subjectType";
8637
+ };
8638
+ };
8639
+ readonly subjectCollections: {
8640
+ readonly type: "array";
8641
+ readonly description: "Set of record types (collection NSIDs) which can be reported to this service. If not defined (distinct from empty array), default is any record type.";
8642
+ readonly items: {
8643
+ readonly type: "string";
8644
+ readonly format: "nsid";
8645
+ };
8646
+ };
8520
8647
  };
8521
8648
  };
8522
8649
  };
@@ -11106,6 +11233,30 @@ export declare const schemas: ({
11106
11233
  };
11107
11234
  };
11108
11235
  };
11236
+ } | {
11237
+ readonly lexicon: 1;
11238
+ readonly id: "com.atproto.identity.defs";
11239
+ readonly defs: {
11240
+ readonly identityInfo: {
11241
+ readonly type: "object";
11242
+ readonly required: ["did", "handle", "didDoc"];
11243
+ readonly properties: {
11244
+ readonly did: {
11245
+ readonly type: "string";
11246
+ readonly format: "did";
11247
+ };
11248
+ readonly handle: {
11249
+ readonly type: "string";
11250
+ readonly format: "handle";
11251
+ readonly description: "The validated handle of the account; or 'handle.invalid' if the handle did not bi-directionally match the DID document.";
11252
+ };
11253
+ readonly didDoc: {
11254
+ readonly type: "unknown";
11255
+ readonly description: "The complete DID document for the identity.";
11256
+ };
11257
+ };
11258
+ };
11259
+ };
11109
11260
  } | {
11110
11261
  readonly lexicon: 1;
11111
11262
  readonly id: "com.atproto.identity.getRecommendedDidCredentials";
@@ -11142,6 +11293,45 @@ export declare const schemas: ({
11142
11293
  };
11143
11294
  };
11144
11295
  };
11296
+ } | {
11297
+ readonly lexicon: 1;
11298
+ readonly id: "com.atproto.identity.refreshIdentity";
11299
+ readonly defs: {
11300
+ readonly main: {
11301
+ readonly type: "procedure";
11302
+ readonly description: "Request that the server re-resolve an identity (DID and handle). The server may ignore this request, or require authentication, depending on the role, implementation, and policy of the server.";
11303
+ readonly input: {
11304
+ readonly encoding: "application/json";
11305
+ readonly schema: {
11306
+ readonly type: "object";
11307
+ readonly required: ["identifier"];
11308
+ readonly properties: {
11309
+ readonly identifier: {
11310
+ readonly type: "string";
11311
+ readonly format: "at-identifier";
11312
+ };
11313
+ };
11314
+ };
11315
+ };
11316
+ readonly output: {
11317
+ readonly encoding: "application/json";
11318
+ readonly schema: {
11319
+ readonly type: "ref";
11320
+ readonly ref: "lex:com.atproto.identity.defs#identityInfo";
11321
+ };
11322
+ };
11323
+ readonly errors: [{
11324
+ readonly name: "HandleNotFound";
11325
+ readonly description: "The resolution process confirmed that the handle does not resolve to any DID.";
11326
+ }, {
11327
+ readonly name: "DidNotFound";
11328
+ readonly description: "The DID resolution process confirmed that there is no current DID.";
11329
+ }, {
11330
+ readonly name: "DidDeactivated";
11331
+ readonly description: "The DID previously existed, but has been deactivated.";
11332
+ }];
11333
+ };
11334
+ };
11145
11335
  } | {
11146
11336
  readonly lexicon: 1;
11147
11337
  readonly id: "com.atproto.identity.requestPlcOperationSignature";
@@ -11151,13 +11341,53 @@ export declare const schemas: ({
11151
11341
  readonly description: "Request an email with a code to in order to request a signed PLC operation. Requires Auth.";
11152
11342
  };
11153
11343
  };
11344
+ } | {
11345
+ readonly lexicon: 1;
11346
+ readonly id: "com.atproto.identity.resolveDid";
11347
+ readonly defs: {
11348
+ readonly main: {
11349
+ readonly type: "query";
11350
+ readonly description: "Resolves DID to DID document. Does not bi-directionally verify handle.";
11351
+ readonly parameters: {
11352
+ readonly type: "params";
11353
+ readonly required: ["did"];
11354
+ readonly properties: {
11355
+ readonly did: {
11356
+ readonly type: "string";
11357
+ readonly format: "did";
11358
+ readonly description: "DID to resolve.";
11359
+ };
11360
+ };
11361
+ };
11362
+ readonly output: {
11363
+ readonly encoding: "application/json";
11364
+ readonly schema: {
11365
+ readonly type: "object";
11366
+ readonly required: ["didDoc"];
11367
+ readonly properties: {
11368
+ readonly didDoc: {
11369
+ readonly type: "unknown";
11370
+ readonly description: "The complete DID document for the identity.";
11371
+ };
11372
+ };
11373
+ };
11374
+ };
11375
+ readonly errors: [{
11376
+ readonly name: "DidNotFound";
11377
+ readonly description: "The DID resolution process confirmed that there is no current DID.";
11378
+ }, {
11379
+ readonly name: "DidDeactivated";
11380
+ readonly description: "The DID previously existed, but has been deactivated.";
11381
+ }];
11382
+ };
11383
+ };
11154
11384
  } | {
11155
11385
  readonly lexicon: 1;
11156
11386
  readonly id: "com.atproto.identity.resolveHandle";
11157
11387
  readonly defs: {
11158
11388
  readonly main: {
11159
11389
  readonly type: "query";
11160
- readonly description: "Resolves a handle (domain name) to a DID.";
11390
+ readonly description: "Resolves an atproto handle (hostname) to a DID. Does not necessarily bi-directionally verify against the the DID document.";
11161
11391
  readonly parameters: {
11162
11392
  readonly type: "params";
11163
11393
  readonly required: ["handle"];
@@ -11182,6 +11412,47 @@ export declare const schemas: ({
11182
11412
  };
11183
11413
  };
11184
11414
  };
11415
+ readonly errors: [{
11416
+ readonly name: "HandleNotFound";
11417
+ readonly description: "The resolution process confirmed that the handle does not resolve to any DID.";
11418
+ }];
11419
+ };
11420
+ };
11421
+ } | {
11422
+ readonly lexicon: 1;
11423
+ readonly id: "com.atproto.identity.resolveIdentity";
11424
+ readonly defs: {
11425
+ readonly main: {
11426
+ readonly type: "query";
11427
+ readonly description: "Resolves an identity (DID or Handle) to a full identity (DID document and verified handle).";
11428
+ readonly parameters: {
11429
+ readonly type: "params";
11430
+ readonly required: ["identifier"];
11431
+ readonly properties: {
11432
+ readonly identifier: {
11433
+ readonly type: "string";
11434
+ readonly format: "at-identifier";
11435
+ readonly description: "Handle or DID to resolve.";
11436
+ };
11437
+ };
11438
+ };
11439
+ readonly output: {
11440
+ readonly encoding: "application/json";
11441
+ readonly schema: {
11442
+ readonly type: "ref";
11443
+ readonly ref: "lex:com.atproto.identity.defs#identityInfo";
11444
+ };
11445
+ };
11446
+ readonly errors: [{
11447
+ readonly name: "HandleNotFound";
11448
+ readonly description: "The resolution process confirmed that the handle does not resolve to any DID.";
11449
+ }, {
11450
+ readonly name: "DidNotFound";
11451
+ readonly description: "The DID resolution process confirmed that there is no current DID.";
11452
+ }, {
11453
+ readonly name: "DidDeactivated";
11454
+ readonly description: "The DID previously existed, but has been deactivated.";
11455
+ }];
11185
11456
  };
11186
11457
  };
11187
11458
  } | {
@@ -11665,6 +11936,11 @@ export declare const schemas: ({
11665
11936
  readonly type: "token";
11666
11937
  readonly description: "Appeal: appeal a previously taken moderation action";
11667
11938
  };
11939
+ readonly subjectType: {
11940
+ readonly type: "string";
11941
+ readonly description: "Tag describing a type of subject that might be reported.";
11942
+ readonly knownValues: ["account", "record", "chat"];
11943
+ };
11668
11944
  };
11669
11945
  } | {
11670
11946
  readonly lexicon: 1;
@@ -12188,14 +12464,6 @@ export declare const schemas: ({
12188
12464
  readonly cursor: {
12189
12465
  readonly type: "string";
12190
12466
  };
12191
- readonly rkeyStart: {
12192
- readonly type: "string";
12193
- readonly description: "DEPRECATED: The lowest sort-ordered rkey to start from (exclusive)";
12194
- };
12195
- readonly rkeyEnd: {
12196
- readonly type: "string";
12197
- readonly description: "DEPRECATED: The highest sort-ordered rkey to stop at (exclusive)";
12198
- };
12199
12467
  readonly reverse: {
12200
12468
  readonly type: "boolean";
12201
12469
  readonly description: "Flag to reverse the order of the returned records.";
@@ -13580,11 +13848,6 @@ export declare const schemas: ({
13580
13848
  readonly description: "Record Key";
13581
13849
  readonly format: "record-key";
13582
13850
  };
13583
- readonly commit: {
13584
- readonly type: "string";
13585
- readonly format: "cid";
13586
- readonly description: "DEPRECATED: referenced a repo commit by CID, and retrieved record as of that commit";
13587
- };
13588
13851
  };
13589
13852
  };
13590
13853
  readonly output: {
@@ -13884,7 +14147,7 @@ export declare const schemas: ({
13884
14147
  readonly defs: {
13885
14148
  readonly main: {
13886
14149
  readonly type: "procedure";
13887
- readonly description: "Notify a crawling service of a recent update, and that crawling should resume. Intended use is after a gap between repo stream events caused the crawling service to disconnect. Does not require auth; implemented by Relay.";
14150
+ readonly description: "Notify a crawling service of a recent update, and that crawling should resume. Intended use is after a gap between repo stream events caused the crawling service to disconnect. Does not require auth; implemented by Relay. DEPRECATED: just use com.atproto.sync.requestCrawl";
13888
14151
  readonly input: {
13889
14152
  readonly encoding: "application/json";
13890
14153
  readonly schema: {
@@ -13941,7 +14204,7 @@ export declare const schemas: ({
13941
14204
  readonly message: {
13942
14205
  readonly schema: {
13943
14206
  readonly type: "union";
13944
- readonly refs: ["lex:com.atproto.sync.subscribeRepos#commit", "lex:com.atproto.sync.subscribeRepos#sync", "lex:com.atproto.sync.subscribeRepos#identity", "lex:com.atproto.sync.subscribeRepos#account", "lex:com.atproto.sync.subscribeRepos#handle", "lex:com.atproto.sync.subscribeRepos#migrate", "lex:com.atproto.sync.subscribeRepos#tombstone", "lex:com.atproto.sync.subscribeRepos#info"];
14207
+ readonly refs: ["lex:com.atproto.sync.subscribeRepos#commit", "lex:com.atproto.sync.subscribeRepos#sync", "lex:com.atproto.sync.subscribeRepos#identity", "lex:com.atproto.sync.subscribeRepos#account", "lex:com.atproto.sync.subscribeRepos#info"];
13945
14208
  };
13946
14209
  };
13947
14210
  readonly errors: [{
@@ -14100,68 +14363,6 @@ export declare const schemas: ({
14100
14363
  };
14101
14364
  };
14102
14365
  };
14103
- readonly handle: {
14104
- readonly type: "object";
14105
- readonly description: "DEPRECATED -- Use #identity event instead";
14106
- readonly required: ["seq", "did", "handle", "time"];
14107
- readonly properties: {
14108
- readonly seq: {
14109
- readonly type: "integer";
14110
- };
14111
- readonly did: {
14112
- readonly type: "string";
14113
- readonly format: "did";
14114
- };
14115
- readonly handle: {
14116
- readonly type: "string";
14117
- readonly format: "handle";
14118
- };
14119
- readonly time: {
14120
- readonly type: "string";
14121
- readonly format: "datetime";
14122
- };
14123
- };
14124
- };
14125
- readonly migrate: {
14126
- readonly type: "object";
14127
- readonly description: "DEPRECATED -- Use #account event instead";
14128
- readonly required: ["seq", "did", "migrateTo", "time"];
14129
- readonly nullable: ["migrateTo"];
14130
- readonly properties: {
14131
- readonly seq: {
14132
- readonly type: "integer";
14133
- };
14134
- readonly did: {
14135
- readonly type: "string";
14136
- readonly format: "did";
14137
- };
14138
- readonly migrateTo: {
14139
- readonly type: "string";
14140
- };
14141
- readonly time: {
14142
- readonly type: "string";
14143
- readonly format: "datetime";
14144
- };
14145
- };
14146
- };
14147
- readonly tombstone: {
14148
- readonly type: "object";
14149
- readonly description: "DEPRECATED -- Use #account event instead";
14150
- readonly required: ["seq", "did", "time"];
14151
- readonly properties: {
14152
- readonly seq: {
14153
- readonly type: "integer";
14154
- };
14155
- readonly did: {
14156
- readonly type: "string";
14157
- readonly format: "did";
14158
- };
14159
- readonly time: {
14160
- readonly type: "string";
14161
- readonly format: "datetime";
14162
- };
14163
- };
14164
- };
14165
14366
  readonly info: {
14166
14367
  readonly type: "object";
14167
14368
  readonly required: ["name"];
@@ -15555,8 +15756,9 @@ export declare const schemas: ({
15555
15756
  readonly properties: {
15556
15757
  readonly video: {
15557
15758
  readonly type: "blob";
15759
+ readonly description: "The mp4 video file. May be up to 100mb, formerly limited to 50mb.";
15558
15760
  readonly accept: ["video/mp4"];
15559
- readonly maxSize: 50000000;
15761
+ readonly maxSize: 100000000;
15560
15762
  };
15561
15763
  readonly captions: {
15562
15764
  readonly type: "array";
@@ -18773,6 +18975,30 @@ export declare const schemas: ({
18773
18975
  readonly ref: "lex:com.atproto.label.defs#label";
18774
18976
  };
18775
18977
  };
18978
+ readonly reasonTypes: {
18979
+ readonly description: "The set of report reason 'codes' which are in-scope for this service to review and action. These usually align to policy categories. If not defined (distinct from empty array), all reason types are allowed.";
18980
+ readonly type: "array";
18981
+ readonly items: {
18982
+ readonly type: "ref";
18983
+ readonly ref: "lex:com.atproto.moderation.defs#reasonType";
18984
+ };
18985
+ };
18986
+ readonly subjectTypes: {
18987
+ readonly description: "The set of subject types (account, record, etc) this service accepts reports on.";
18988
+ readonly type: "array";
18989
+ readonly items: {
18990
+ readonly type: "ref";
18991
+ readonly ref: "lex:com.atproto.moderation.defs#subjectType";
18992
+ };
18993
+ };
18994
+ readonly subjectCollections: {
18995
+ readonly type: "array";
18996
+ readonly description: "Set of record types (collection NSIDs) which can be reported to this service. If not defined (distinct from empty array), default is any record type.";
18997
+ readonly items: {
18998
+ readonly type: "string";
18999
+ readonly format: "nsid";
19000
+ };
19001
+ };
18776
19002
  };
18777
19003
  };
18778
19004
  readonly labelerViewerState: {
@@ -18873,6 +19099,30 @@ export declare const schemas: ({
18873
19099
  readonly type: "string";
18874
19100
  readonly format: "datetime";
18875
19101
  };
19102
+ readonly reasonTypes: {
19103
+ readonly description: "The set of report reason 'codes' which are in-scope for this service to review and action. These usually align to policy categories. If not defined (distinct from empty array), all reason types are allowed.";
19104
+ readonly type: "array";
19105
+ readonly items: {
19106
+ readonly type: "ref";
19107
+ readonly ref: "lex:com.atproto.moderation.defs#reasonType";
19108
+ };
19109
+ };
19110
+ readonly subjectTypes: {
19111
+ readonly description: "The set of subject types (account, record, etc) this service accepts reports on.";
19112
+ readonly type: "array";
19113
+ readonly items: {
19114
+ readonly type: "ref";
19115
+ readonly ref: "lex:com.atproto.moderation.defs#subjectType";
19116
+ };
19117
+ };
19118
+ readonly subjectCollections: {
19119
+ readonly type: "array";
19120
+ readonly description: "Set of record types (collection NSIDs) which can be reported to this service. If not defined (distinct from empty array), default is any record type.";
19121
+ readonly items: {
19122
+ readonly type: "string";
19123
+ readonly format: "nsid";
19124
+ };
19125
+ };
18876
19126
  };
18877
19127
  };
18878
19128
  };
@@ -20848,9 +21098,13 @@ export declare const ids: {
20848
21098
  readonly ComAtprotoAdminUpdateAccountHandle: "com.atproto.admin.updateAccountHandle";
20849
21099
  readonly ComAtprotoAdminUpdateAccountPassword: "com.atproto.admin.updateAccountPassword";
20850
21100
  readonly ComAtprotoAdminUpdateSubjectStatus: "com.atproto.admin.updateSubjectStatus";
21101
+ readonly ComAtprotoIdentityDefs: "com.atproto.identity.defs";
20851
21102
  readonly ComAtprotoIdentityGetRecommendedDidCredentials: "com.atproto.identity.getRecommendedDidCredentials";
21103
+ readonly ComAtprotoIdentityRefreshIdentity: "com.atproto.identity.refreshIdentity";
20852
21104
  readonly ComAtprotoIdentityRequestPlcOperationSignature: "com.atproto.identity.requestPlcOperationSignature";
21105
+ readonly ComAtprotoIdentityResolveDid: "com.atproto.identity.resolveDid";
20853
21106
  readonly ComAtprotoIdentityResolveHandle: "com.atproto.identity.resolveHandle";
21107
+ readonly ComAtprotoIdentityResolveIdentity: "com.atproto.identity.resolveIdentity";
20854
21108
  readonly ComAtprotoIdentitySignPlcOperation: "com.atproto.identity.signPlcOperation";
20855
21109
  readonly ComAtprotoIdentitySubmitPlcOperation: "com.atproto.identity.submitPlcOperation";
20856
21110
  readonly ComAtprotoIdentityUpdateHandle: "com.atproto.identity.updateHandle";