@atproto/bsky 0.0.30 → 0.0.32
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.
- package/CHANGELOG.md +14 -0
- package/dist/db/index.js.map +2 -2
- package/dist/index.js +1315 -587
- package/dist/index.js.map +3 -3
- package/dist/indexer/subscription.d.ts +1 -0
- package/dist/lexicon/index.d.ts +20 -6
- package/dist/lexicon/lexicons.d.ts +449 -110
- package/dist/lexicon/types/app/bsky/actor/defs.d.ts +20 -0
- package/dist/lexicon/types/com/atproto/admin/defs.d.ts +9 -0
- package/dist/lexicon/types/com/atproto/admin/emitModerationEvent.d.ts +1 -1
- package/dist/lexicon/types/com/atproto/admin/queryModerationEvents.d.ts +2 -0
- package/dist/lexicon/types/com/atproto/admin/queryModerationStatuses.d.ts +2 -0
- package/dist/lexicon/types/com/atproto/identity/getRecommendedDidCredentials.d.ts +33 -0
- package/dist/lexicon/types/com/atproto/identity/requestPlcOperationSignature.d.ts +19 -0
- package/dist/lexicon/types/com/atproto/{temp/transferAccount.d.ts → identity/signPlcOperation.d.ts} +6 -8
- package/dist/lexicon/types/com/atproto/identity/submitPlcOperation.d.ts +25 -0
- package/dist/lexicon/types/com/atproto/{temp/pushBlob.d.ts → repo/importRepo.d.ts} +1 -2
- package/dist/lexicon/types/com/atproto/repo/listMissingBlobs.d.ts +41 -0
- package/dist/lexicon/types/com/atproto/server/activateAccount.d.ts +19 -0
- package/dist/lexicon/types/com/atproto/server/checkAccountStatus.d.ts +38 -0
- package/dist/lexicon/types/com/atproto/server/deactivateAccount.d.ts +25 -0
- package/dist/lexicon/types/com/atproto/server/describeServer.d.ts +1 -0
- package/dist/lexicon/types/com/atproto/{temp/importRepo.d.ts → server/getServiceAuth.d.ts} +8 -9
- package/dist/lexicon/types/com/atproto/sync/subscribeRepos.d.ts +9 -1
- package/dist/subscription/util.d.ts +1 -1
- package/package.json +5 -5
- package/src/indexer/subscription.ts +6 -0
- package/src/ingester/subscription.ts +2 -0
- package/src/lexicon/index.ts +124 -36
- package/src/lexicon/lexicons.ts +491 -138
- package/src/lexicon/types/app/bsky/actor/defs.ts +59 -0
- package/src/lexicon/types/app/bsky/feed/post.ts +1 -1
- package/src/lexicon/types/com/atproto/admin/defs.ts +24 -0
- package/src/lexicon/types/com/atproto/admin/emitModerationEvent.ts +1 -0
- package/src/lexicon/types/com/atproto/admin/queryModerationEvents.ts +4 -0
- package/src/lexicon/types/com/atproto/admin/queryModerationStatuses.ts +2 -0
- package/src/lexicon/types/com/atproto/identity/getRecommendedDidCredentials.ts +47 -0
- package/src/lexicon/types/com/atproto/identity/requestPlcOperationSignature.ts +31 -0
- package/src/lexicon/types/com/atproto/{temp/transferAccount.ts → identity/signPlcOperation.ts} +8 -15
- package/src/lexicon/types/com/atproto/identity/submitPlcOperation.ts +38 -0
- package/src/lexicon/types/com/atproto/{temp/pushBlob.ts → repo/importRepo.ts} +2 -5
- package/src/lexicon/types/com/atproto/repo/listMissingBlobs.ts +65 -0
- package/src/lexicon/types/com/atproto/server/activateAccount.ts +31 -0
- package/src/lexicon/types/com/atproto/server/checkAccountStatus.ts +51 -0
- package/src/lexicon/types/com/atproto/server/deactivateAccount.ts +39 -0
- package/src/lexicon/types/com/atproto/server/describeServer.ts +1 -0
- package/src/lexicon/types/com/atproto/{temp/importRepo.ts → server/getServiceAuth.ts} +10 -9
- package/src/lexicon/types/com/atproto/sync/subscribeRepos.ts +24 -3
- package/tests/auto-moderator/labeler.test.ts +4 -1
package/src/lexicon/index.ts
CHANGED
|
@@ -32,7 +32,11 @@ import * as ComAtprotoAdminUpdateAccountEmail from './types/com/atproto/admin/up
|
|
|
32
32
|
import * as ComAtprotoAdminUpdateAccountHandle from './types/com/atproto/admin/updateAccountHandle'
|
|
33
33
|
import * as ComAtprotoAdminUpdateCommunicationTemplate from './types/com/atproto/admin/updateCommunicationTemplate'
|
|
34
34
|
import * as ComAtprotoAdminUpdateSubjectStatus from './types/com/atproto/admin/updateSubjectStatus'
|
|
35
|
+
import * as ComAtprotoIdentityGetRecommendedDidCredentials from './types/com/atproto/identity/getRecommendedDidCredentials'
|
|
36
|
+
import * as ComAtprotoIdentityRequestPlcOperationSignature from './types/com/atproto/identity/requestPlcOperationSignature'
|
|
35
37
|
import * as ComAtprotoIdentityResolveHandle from './types/com/atproto/identity/resolveHandle'
|
|
38
|
+
import * as ComAtprotoIdentitySignPlcOperation from './types/com/atproto/identity/signPlcOperation'
|
|
39
|
+
import * as ComAtprotoIdentitySubmitPlcOperation from './types/com/atproto/identity/submitPlcOperation'
|
|
36
40
|
import * as ComAtprotoIdentityUpdateHandle from './types/com/atproto/identity/updateHandle'
|
|
37
41
|
import * as ComAtprotoLabelQueryLabels from './types/com/atproto/label/queryLabels'
|
|
38
42
|
import * as ComAtprotoLabelSubscribeLabels from './types/com/atproto/label/subscribeLabels'
|
|
@@ -42,19 +46,25 @@ import * as ComAtprotoRepoCreateRecord from './types/com/atproto/repo/createReco
|
|
|
42
46
|
import * as ComAtprotoRepoDeleteRecord from './types/com/atproto/repo/deleteRecord'
|
|
43
47
|
import * as ComAtprotoRepoDescribeRepo from './types/com/atproto/repo/describeRepo'
|
|
44
48
|
import * as ComAtprotoRepoGetRecord from './types/com/atproto/repo/getRecord'
|
|
49
|
+
import * as ComAtprotoRepoImportRepo from './types/com/atproto/repo/importRepo'
|
|
50
|
+
import * as ComAtprotoRepoListMissingBlobs from './types/com/atproto/repo/listMissingBlobs'
|
|
45
51
|
import * as ComAtprotoRepoListRecords from './types/com/atproto/repo/listRecords'
|
|
46
52
|
import * as ComAtprotoRepoPutRecord from './types/com/atproto/repo/putRecord'
|
|
47
53
|
import * as ComAtprotoRepoUploadBlob from './types/com/atproto/repo/uploadBlob'
|
|
54
|
+
import * as ComAtprotoServerActivateAccount from './types/com/atproto/server/activateAccount'
|
|
55
|
+
import * as ComAtprotoServerCheckAccountStatus from './types/com/atproto/server/checkAccountStatus'
|
|
48
56
|
import * as ComAtprotoServerConfirmEmail from './types/com/atproto/server/confirmEmail'
|
|
49
57
|
import * as ComAtprotoServerCreateAccount from './types/com/atproto/server/createAccount'
|
|
50
58
|
import * as ComAtprotoServerCreateAppPassword from './types/com/atproto/server/createAppPassword'
|
|
51
59
|
import * as ComAtprotoServerCreateInviteCode from './types/com/atproto/server/createInviteCode'
|
|
52
60
|
import * as ComAtprotoServerCreateInviteCodes from './types/com/atproto/server/createInviteCodes'
|
|
53
61
|
import * as ComAtprotoServerCreateSession from './types/com/atproto/server/createSession'
|
|
62
|
+
import * as ComAtprotoServerDeactivateAccount from './types/com/atproto/server/deactivateAccount'
|
|
54
63
|
import * as ComAtprotoServerDeleteAccount from './types/com/atproto/server/deleteAccount'
|
|
55
64
|
import * as ComAtprotoServerDeleteSession from './types/com/atproto/server/deleteSession'
|
|
56
65
|
import * as ComAtprotoServerDescribeServer from './types/com/atproto/server/describeServer'
|
|
57
66
|
import * as ComAtprotoServerGetAccountInviteCodes from './types/com/atproto/server/getAccountInviteCodes'
|
|
67
|
+
import * as ComAtprotoServerGetServiceAuth from './types/com/atproto/server/getServiceAuth'
|
|
58
68
|
import * as ComAtprotoServerGetSession from './types/com/atproto/server/getSession'
|
|
59
69
|
import * as ComAtprotoServerListAppPasswords from './types/com/atproto/server/listAppPasswords'
|
|
60
70
|
import * as ComAtprotoServerRefreshSession from './types/com/atproto/server/refreshSession'
|
|
@@ -80,10 +90,7 @@ import * as ComAtprotoSyncRequestCrawl from './types/com/atproto/sync/requestCra
|
|
|
80
90
|
import * as ComAtprotoSyncSubscribeRepos from './types/com/atproto/sync/subscribeRepos'
|
|
81
91
|
import * as ComAtprotoTempCheckSignupQueue from './types/com/atproto/temp/checkSignupQueue'
|
|
82
92
|
import * as ComAtprotoTempFetchLabels from './types/com/atproto/temp/fetchLabels'
|
|
83
|
-
import * as ComAtprotoTempImportRepo from './types/com/atproto/temp/importRepo'
|
|
84
|
-
import * as ComAtprotoTempPushBlob from './types/com/atproto/temp/pushBlob'
|
|
85
93
|
import * as ComAtprotoTempRequestPhoneVerification from './types/com/atproto/temp/requestPhoneVerification'
|
|
86
|
-
import * as ComAtprotoTempTransferAccount from './types/com/atproto/temp/transferAccount'
|
|
87
94
|
import * as AppBskyActorGetPreferences from './types/app/bsky/actor/getPreferences'
|
|
88
95
|
import * as AppBskyActorGetProfile from './types/app/bsky/actor/getProfile'
|
|
89
96
|
import * as AppBskyActorGetProfiles from './types/app/bsky/actor/getProfiles'
|
|
@@ -467,6 +474,32 @@ export class ComAtprotoIdentityNS {
|
|
|
467
474
|
this._server = server
|
|
468
475
|
}
|
|
469
476
|
|
|
477
|
+
getRecommendedDidCredentials<AV extends AuthVerifier>(
|
|
478
|
+
cfg: ConfigOf<
|
|
479
|
+
AV,
|
|
480
|
+
ComAtprotoIdentityGetRecommendedDidCredentials.Handler<ExtractAuth<AV>>,
|
|
481
|
+
ComAtprotoIdentityGetRecommendedDidCredentials.HandlerReqCtx<
|
|
482
|
+
ExtractAuth<AV>
|
|
483
|
+
>
|
|
484
|
+
>,
|
|
485
|
+
) {
|
|
486
|
+
const nsid = 'com.atproto.identity.getRecommendedDidCredentials' // @ts-ignore
|
|
487
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
requestPlcOperationSignature<AV extends AuthVerifier>(
|
|
491
|
+
cfg: ConfigOf<
|
|
492
|
+
AV,
|
|
493
|
+
ComAtprotoIdentityRequestPlcOperationSignature.Handler<ExtractAuth<AV>>,
|
|
494
|
+
ComAtprotoIdentityRequestPlcOperationSignature.HandlerReqCtx<
|
|
495
|
+
ExtractAuth<AV>
|
|
496
|
+
>
|
|
497
|
+
>,
|
|
498
|
+
) {
|
|
499
|
+
const nsid = 'com.atproto.identity.requestPlcOperationSignature' // @ts-ignore
|
|
500
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
501
|
+
}
|
|
502
|
+
|
|
470
503
|
resolveHandle<AV extends AuthVerifier>(
|
|
471
504
|
cfg: ConfigOf<
|
|
472
505
|
AV,
|
|
@@ -478,6 +511,28 @@ export class ComAtprotoIdentityNS {
|
|
|
478
511
|
return this._server.xrpc.method(nsid, cfg)
|
|
479
512
|
}
|
|
480
513
|
|
|
514
|
+
signPlcOperation<AV extends AuthVerifier>(
|
|
515
|
+
cfg: ConfigOf<
|
|
516
|
+
AV,
|
|
517
|
+
ComAtprotoIdentitySignPlcOperation.Handler<ExtractAuth<AV>>,
|
|
518
|
+
ComAtprotoIdentitySignPlcOperation.HandlerReqCtx<ExtractAuth<AV>>
|
|
519
|
+
>,
|
|
520
|
+
) {
|
|
521
|
+
const nsid = 'com.atproto.identity.signPlcOperation' // @ts-ignore
|
|
522
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
submitPlcOperation<AV extends AuthVerifier>(
|
|
526
|
+
cfg: ConfigOf<
|
|
527
|
+
AV,
|
|
528
|
+
ComAtprotoIdentitySubmitPlcOperation.Handler<ExtractAuth<AV>>,
|
|
529
|
+
ComAtprotoIdentitySubmitPlcOperation.HandlerReqCtx<ExtractAuth<AV>>
|
|
530
|
+
>,
|
|
531
|
+
) {
|
|
532
|
+
const nsid = 'com.atproto.identity.submitPlcOperation' // @ts-ignore
|
|
533
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
534
|
+
}
|
|
535
|
+
|
|
481
536
|
updateHandle<AV extends AuthVerifier>(
|
|
482
537
|
cfg: ConfigOf<
|
|
483
538
|
AV,
|
|
@@ -601,6 +656,28 @@ export class ComAtprotoRepoNS {
|
|
|
601
656
|
return this._server.xrpc.method(nsid, cfg)
|
|
602
657
|
}
|
|
603
658
|
|
|
659
|
+
importRepo<AV extends AuthVerifier>(
|
|
660
|
+
cfg: ConfigOf<
|
|
661
|
+
AV,
|
|
662
|
+
ComAtprotoRepoImportRepo.Handler<ExtractAuth<AV>>,
|
|
663
|
+
ComAtprotoRepoImportRepo.HandlerReqCtx<ExtractAuth<AV>>
|
|
664
|
+
>,
|
|
665
|
+
) {
|
|
666
|
+
const nsid = 'com.atproto.repo.importRepo' // @ts-ignore
|
|
667
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
listMissingBlobs<AV extends AuthVerifier>(
|
|
671
|
+
cfg: ConfigOf<
|
|
672
|
+
AV,
|
|
673
|
+
ComAtprotoRepoListMissingBlobs.Handler<ExtractAuth<AV>>,
|
|
674
|
+
ComAtprotoRepoListMissingBlobs.HandlerReqCtx<ExtractAuth<AV>>
|
|
675
|
+
>,
|
|
676
|
+
) {
|
|
677
|
+
const nsid = 'com.atproto.repo.listMissingBlobs' // @ts-ignore
|
|
678
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
679
|
+
}
|
|
680
|
+
|
|
604
681
|
listRecords<AV extends AuthVerifier>(
|
|
605
682
|
cfg: ConfigOf<
|
|
606
683
|
AV,
|
|
@@ -642,6 +719,28 @@ export class ComAtprotoServerNS {
|
|
|
642
719
|
this._server = server
|
|
643
720
|
}
|
|
644
721
|
|
|
722
|
+
activateAccount<AV extends AuthVerifier>(
|
|
723
|
+
cfg: ConfigOf<
|
|
724
|
+
AV,
|
|
725
|
+
ComAtprotoServerActivateAccount.Handler<ExtractAuth<AV>>,
|
|
726
|
+
ComAtprotoServerActivateAccount.HandlerReqCtx<ExtractAuth<AV>>
|
|
727
|
+
>,
|
|
728
|
+
) {
|
|
729
|
+
const nsid = 'com.atproto.server.activateAccount' // @ts-ignore
|
|
730
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
checkAccountStatus<AV extends AuthVerifier>(
|
|
734
|
+
cfg: ConfigOf<
|
|
735
|
+
AV,
|
|
736
|
+
ComAtprotoServerCheckAccountStatus.Handler<ExtractAuth<AV>>,
|
|
737
|
+
ComAtprotoServerCheckAccountStatus.HandlerReqCtx<ExtractAuth<AV>>
|
|
738
|
+
>,
|
|
739
|
+
) {
|
|
740
|
+
const nsid = 'com.atproto.server.checkAccountStatus' // @ts-ignore
|
|
741
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
742
|
+
}
|
|
743
|
+
|
|
645
744
|
confirmEmail<AV extends AuthVerifier>(
|
|
646
745
|
cfg: ConfigOf<
|
|
647
746
|
AV,
|
|
@@ -708,6 +807,17 @@ export class ComAtprotoServerNS {
|
|
|
708
807
|
return this._server.xrpc.method(nsid, cfg)
|
|
709
808
|
}
|
|
710
809
|
|
|
810
|
+
deactivateAccount<AV extends AuthVerifier>(
|
|
811
|
+
cfg: ConfigOf<
|
|
812
|
+
AV,
|
|
813
|
+
ComAtprotoServerDeactivateAccount.Handler<ExtractAuth<AV>>,
|
|
814
|
+
ComAtprotoServerDeactivateAccount.HandlerReqCtx<ExtractAuth<AV>>
|
|
815
|
+
>,
|
|
816
|
+
) {
|
|
817
|
+
const nsid = 'com.atproto.server.deactivateAccount' // @ts-ignore
|
|
818
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
819
|
+
}
|
|
820
|
+
|
|
711
821
|
deleteAccount<AV extends AuthVerifier>(
|
|
712
822
|
cfg: ConfigOf<
|
|
713
823
|
AV,
|
|
@@ -752,6 +862,17 @@ export class ComAtprotoServerNS {
|
|
|
752
862
|
return this._server.xrpc.method(nsid, cfg)
|
|
753
863
|
}
|
|
754
864
|
|
|
865
|
+
getServiceAuth<AV extends AuthVerifier>(
|
|
866
|
+
cfg: ConfigOf<
|
|
867
|
+
AV,
|
|
868
|
+
ComAtprotoServerGetServiceAuth.Handler<ExtractAuth<AV>>,
|
|
869
|
+
ComAtprotoServerGetServiceAuth.HandlerReqCtx<ExtractAuth<AV>>
|
|
870
|
+
>,
|
|
871
|
+
) {
|
|
872
|
+
const nsid = 'com.atproto.server.getServiceAuth' // @ts-ignore
|
|
873
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
874
|
+
}
|
|
875
|
+
|
|
755
876
|
getSession<AV extends AuthVerifier>(
|
|
756
877
|
cfg: ConfigOf<
|
|
757
878
|
AV,
|
|
@@ -1043,28 +1164,6 @@ export class ComAtprotoTempNS {
|
|
|
1043
1164
|
return this._server.xrpc.method(nsid, cfg)
|
|
1044
1165
|
}
|
|
1045
1166
|
|
|
1046
|
-
importRepo<AV extends AuthVerifier>(
|
|
1047
|
-
cfg: ConfigOf<
|
|
1048
|
-
AV,
|
|
1049
|
-
ComAtprotoTempImportRepo.Handler<ExtractAuth<AV>>,
|
|
1050
|
-
ComAtprotoTempImportRepo.HandlerReqCtx<ExtractAuth<AV>>
|
|
1051
|
-
>,
|
|
1052
|
-
) {
|
|
1053
|
-
const nsid = 'com.atproto.temp.importRepo' // @ts-ignore
|
|
1054
|
-
return this._server.xrpc.method(nsid, cfg)
|
|
1055
|
-
}
|
|
1056
|
-
|
|
1057
|
-
pushBlob<AV extends AuthVerifier>(
|
|
1058
|
-
cfg: ConfigOf<
|
|
1059
|
-
AV,
|
|
1060
|
-
ComAtprotoTempPushBlob.Handler<ExtractAuth<AV>>,
|
|
1061
|
-
ComAtprotoTempPushBlob.HandlerReqCtx<ExtractAuth<AV>>
|
|
1062
|
-
>,
|
|
1063
|
-
) {
|
|
1064
|
-
const nsid = 'com.atproto.temp.pushBlob' // @ts-ignore
|
|
1065
|
-
return this._server.xrpc.method(nsid, cfg)
|
|
1066
|
-
}
|
|
1067
|
-
|
|
1068
1167
|
requestPhoneVerification<AV extends AuthVerifier>(
|
|
1069
1168
|
cfg: ConfigOf<
|
|
1070
1169
|
AV,
|
|
@@ -1075,17 +1174,6 @@ export class ComAtprotoTempNS {
|
|
|
1075
1174
|
const nsid = 'com.atproto.temp.requestPhoneVerification' // @ts-ignore
|
|
1076
1175
|
return this._server.xrpc.method(nsid, cfg)
|
|
1077
1176
|
}
|
|
1078
|
-
|
|
1079
|
-
transferAccount<AV extends AuthVerifier>(
|
|
1080
|
-
cfg: ConfigOf<
|
|
1081
|
-
AV,
|
|
1082
|
-
ComAtprotoTempTransferAccount.Handler<ExtractAuth<AV>>,
|
|
1083
|
-
ComAtprotoTempTransferAccount.HandlerReqCtx<ExtractAuth<AV>>
|
|
1084
|
-
>,
|
|
1085
|
-
) {
|
|
1086
|
-
const nsid = 'com.atproto.temp.transferAccount' // @ts-ignore
|
|
1087
|
-
return this._server.xrpc.method(nsid, cfg)
|
|
1088
|
-
}
|
|
1089
1177
|
}
|
|
1090
1178
|
|
|
1091
1179
|
export class AppNS {
|