@atproto/bsky 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.
- package/CHANGELOG.md +20 -0
- package/dist/config.d.ts +2 -0
- package/dist/context.d.ts +3 -0
- package/dist/db/index.js +55 -3
- package/dist/db/index.js.map +3 -3
- package/dist/index.js +1125 -301
- package/dist/index.js.map +3 -3
- package/dist/lexicon/index.d.ts +14 -2
- package/dist/lexicon/lexicons.d.ts +302 -14
- package/dist/lexicon/types/app/bsky/actor/searchActors.d.ts +1 -0
- package/dist/lexicon/types/app/bsky/actor/searchActorsTypeahead.d.ts +1 -0
- package/dist/lexicon/types/app/bsky/feed/searchPosts.d.ts +37 -0
- package/dist/lexicon/types/app/bsky/unspecced/defs.d.ts +13 -0
- package/dist/lexicon/types/app/bsky/unspecced/searchActorsSkeleton.d.ts +38 -0
- package/dist/lexicon/types/app/bsky/unspecced/searchPostsSkeleton.d.ts +37 -0
- package/dist/lexicon/types/com/atproto/admin/searchRepos.d.ts +1 -0
- package/dist/lexicon/types/com/atproto/server/confirmEmail.d.ts +27 -0
- package/dist/lexicon/types/com/atproto/server/createSession.d.ts +1 -0
- package/dist/lexicon/types/com/atproto/server/getSession.d.ts +1 -0
- package/dist/lexicon/types/com/atproto/server/requestEmailConfirmation.d.ts +19 -0
- package/dist/lexicon/types/com/atproto/server/requestEmailUpdate.d.ts +30 -0
- package/dist/lexicon/types/{app/bsky/unspecced/applyLabels.d.ts → com/atproto/server/updateEmail.d.ts} +3 -2
- package/dist/services/actor/index.d.ts +2 -2
- package/dist/services/util/search.d.ts +3 -3
- package/package.json +13 -14
- package/src/api/app/bsky/actor/searchActors.ts +36 -16
- package/src/api/app/bsky/actor/searchActorsTypeahead.ts +24 -11
- package/src/api/app/bsky/graph/getSuggestedFollowsByActor.ts +1 -0
- package/src/api/com/atproto/admin/searchRepos.ts +6 -4
- package/src/auto-moderator/index.ts +1 -17
- package/src/config.ts +7 -0
- package/src/context.ts +6 -0
- package/src/index.ts +5 -0
- package/src/lexicon/index.ts +84 -12
- package/src/lexicon/lexicons.ts +351 -23
- package/src/lexicon/types/app/bsky/actor/searchActors.ts +3 -0
- package/src/lexicon/types/app/bsky/actor/searchActorsTypeahead.ts +3 -0
- package/src/lexicon/types/app/bsky/feed/searchPosts.ts +54 -0
- package/src/lexicon/types/app/bsky/unspecced/defs.ts +41 -0
- package/src/lexicon/types/app/bsky/unspecced/searchActorsSkeleton.ts +56 -0
- package/src/lexicon/types/app/bsky/unspecced/searchPostsSkeleton.ts +54 -0
- package/src/lexicon/types/com/atproto/admin/searchRepos.ts +2 -0
- package/src/lexicon/types/{app/bsky/unspecced/applyLabels.ts → com/atproto/server/confirmEmail.ts} +3 -2
- package/src/lexicon/types/com/atproto/server/createSession.ts +1 -0
- package/src/lexicon/types/com/atproto/server/getSession.ts +1 -0
- package/src/lexicon/types/com/atproto/server/requestEmailConfirmation.ts +31 -0
- package/src/lexicon/types/com/atproto/server/requestEmailUpdate.ts +43 -0
- package/src/lexicon/types/com/atproto/server/updateEmail.ts +41 -0
- package/src/services/actor/index.ts +9 -9
- package/src/services/indexing/plugins/block.ts +1 -1
- package/src/services/indexing/plugins/feed-generator.ts +1 -1
- package/src/services/indexing/plugins/follow.ts +1 -1
- package/src/services/indexing/plugins/like.ts +1 -1
- package/src/services/indexing/plugins/list-block.ts +1 -1
- package/src/services/indexing/plugins/list-item.ts +1 -1
- package/src/services/indexing/plugins/list.ts +1 -1
- package/src/services/indexing/plugins/post.ts +1 -1
- package/src/services/indexing/plugins/repost.ts +1 -1
- package/src/services/indexing/plugins/thread-gate.ts +1 -1
- package/src/services/label/index.ts +1 -1
- package/src/services/util/search.ts +24 -23
- package/dist/services/indexing/util.d.ts +0 -1
- package/src/services/indexing/util.ts +0 -16
package/src/lexicon/index.ts
CHANGED
|
@@ -39,6 +39,7 @@ import * as ComAtprotoRepoGetRecord from './types/com/atproto/repo/getRecord'
|
|
|
39
39
|
import * as ComAtprotoRepoListRecords from './types/com/atproto/repo/listRecords'
|
|
40
40
|
import * as ComAtprotoRepoPutRecord from './types/com/atproto/repo/putRecord'
|
|
41
41
|
import * as ComAtprotoRepoUploadBlob from './types/com/atproto/repo/uploadBlob'
|
|
42
|
+
import * as ComAtprotoServerConfirmEmail from './types/com/atproto/server/confirmEmail'
|
|
42
43
|
import * as ComAtprotoServerCreateAccount from './types/com/atproto/server/createAccount'
|
|
43
44
|
import * as ComAtprotoServerCreateAppPassword from './types/com/atproto/server/createAppPassword'
|
|
44
45
|
import * as ComAtprotoServerCreateInviteCode from './types/com/atproto/server/createInviteCode'
|
|
@@ -52,9 +53,12 @@ import * as ComAtprotoServerGetSession from './types/com/atproto/server/getSessi
|
|
|
52
53
|
import * as ComAtprotoServerListAppPasswords from './types/com/atproto/server/listAppPasswords'
|
|
53
54
|
import * as ComAtprotoServerRefreshSession from './types/com/atproto/server/refreshSession'
|
|
54
55
|
import * as ComAtprotoServerRequestAccountDelete from './types/com/atproto/server/requestAccountDelete'
|
|
56
|
+
import * as ComAtprotoServerRequestEmailConfirmation from './types/com/atproto/server/requestEmailConfirmation'
|
|
57
|
+
import * as ComAtprotoServerRequestEmailUpdate from './types/com/atproto/server/requestEmailUpdate'
|
|
55
58
|
import * as ComAtprotoServerRequestPasswordReset from './types/com/atproto/server/requestPasswordReset'
|
|
56
59
|
import * as ComAtprotoServerResetPassword from './types/com/atproto/server/resetPassword'
|
|
57
60
|
import * as ComAtprotoServerRevokeAppPassword from './types/com/atproto/server/revokeAppPassword'
|
|
61
|
+
import * as ComAtprotoServerUpdateEmail from './types/com/atproto/server/updateEmail'
|
|
58
62
|
import * as ComAtprotoSyncGetBlob from './types/com/atproto/sync/getBlob'
|
|
59
63
|
import * as ComAtprotoSyncGetBlocks from './types/com/atproto/sync/getBlocks'
|
|
60
64
|
import * as ComAtprotoSyncGetCheckout from './types/com/atproto/sync/getCheckout'
|
|
@@ -89,6 +93,7 @@ import * as AppBskyFeedGetPosts from './types/app/bsky/feed/getPosts'
|
|
|
89
93
|
import * as AppBskyFeedGetRepostedBy from './types/app/bsky/feed/getRepostedBy'
|
|
90
94
|
import * as AppBskyFeedGetSuggestedFeeds from './types/app/bsky/feed/getSuggestedFeeds'
|
|
91
95
|
import * as AppBskyFeedGetTimeline from './types/app/bsky/feed/getTimeline'
|
|
96
|
+
import * as AppBskyFeedSearchPosts from './types/app/bsky/feed/searchPosts'
|
|
92
97
|
import * as AppBskyGraphGetBlocks from './types/app/bsky/graph/getBlocks'
|
|
93
98
|
import * as AppBskyGraphGetFollowers from './types/app/bsky/graph/getFollowers'
|
|
94
99
|
import * as AppBskyGraphGetFollows from './types/app/bsky/graph/getFollows'
|
|
@@ -106,10 +111,11 @@ import * as AppBskyNotificationGetUnreadCount from './types/app/bsky/notificatio
|
|
|
106
111
|
import * as AppBskyNotificationListNotifications from './types/app/bsky/notification/listNotifications'
|
|
107
112
|
import * as AppBskyNotificationRegisterPush from './types/app/bsky/notification/registerPush'
|
|
108
113
|
import * as AppBskyNotificationUpdateSeen from './types/app/bsky/notification/updateSeen'
|
|
109
|
-
import * as AppBskyUnspeccedApplyLabels from './types/app/bsky/unspecced/applyLabels'
|
|
110
114
|
import * as AppBskyUnspeccedGetPopular from './types/app/bsky/unspecced/getPopular'
|
|
111
115
|
import * as AppBskyUnspeccedGetPopularFeedGenerators from './types/app/bsky/unspecced/getPopularFeedGenerators'
|
|
112
116
|
import * as AppBskyUnspeccedGetTimelineSkeleton from './types/app/bsky/unspecced/getTimelineSkeleton'
|
|
117
|
+
import * as AppBskyUnspeccedSearchActorsSkeleton from './types/app/bsky/unspecced/searchActorsSkeleton'
|
|
118
|
+
import * as AppBskyUnspeccedSearchPostsSkeleton from './types/app/bsky/unspecced/searchPostsSkeleton'
|
|
113
119
|
|
|
114
120
|
export const COM_ATPROTO_ADMIN = {
|
|
115
121
|
DefsTakedown: 'com.atproto.admin.defs#takedown',
|
|
@@ -555,6 +561,17 @@ export class ServerNS {
|
|
|
555
561
|
this._server = server
|
|
556
562
|
}
|
|
557
563
|
|
|
564
|
+
confirmEmail<AV extends AuthVerifier>(
|
|
565
|
+
cfg: ConfigOf<
|
|
566
|
+
AV,
|
|
567
|
+
ComAtprotoServerConfirmEmail.Handler<ExtractAuth<AV>>,
|
|
568
|
+
ComAtprotoServerConfirmEmail.HandlerReqCtx<ExtractAuth<AV>>
|
|
569
|
+
>,
|
|
570
|
+
) {
|
|
571
|
+
const nsid = 'com.atproto.server.confirmEmail' // @ts-ignore
|
|
572
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
573
|
+
}
|
|
574
|
+
|
|
558
575
|
createAccount<AV extends AuthVerifier>(
|
|
559
576
|
cfg: ConfigOf<
|
|
560
577
|
AV,
|
|
@@ -698,6 +715,28 @@ export class ServerNS {
|
|
|
698
715
|
return this._server.xrpc.method(nsid, cfg)
|
|
699
716
|
}
|
|
700
717
|
|
|
718
|
+
requestEmailConfirmation<AV extends AuthVerifier>(
|
|
719
|
+
cfg: ConfigOf<
|
|
720
|
+
AV,
|
|
721
|
+
ComAtprotoServerRequestEmailConfirmation.Handler<ExtractAuth<AV>>,
|
|
722
|
+
ComAtprotoServerRequestEmailConfirmation.HandlerReqCtx<ExtractAuth<AV>>
|
|
723
|
+
>,
|
|
724
|
+
) {
|
|
725
|
+
const nsid = 'com.atproto.server.requestEmailConfirmation' // @ts-ignore
|
|
726
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
requestEmailUpdate<AV extends AuthVerifier>(
|
|
730
|
+
cfg: ConfigOf<
|
|
731
|
+
AV,
|
|
732
|
+
ComAtprotoServerRequestEmailUpdate.Handler<ExtractAuth<AV>>,
|
|
733
|
+
ComAtprotoServerRequestEmailUpdate.HandlerReqCtx<ExtractAuth<AV>>
|
|
734
|
+
>,
|
|
735
|
+
) {
|
|
736
|
+
const nsid = 'com.atproto.server.requestEmailUpdate' // @ts-ignore
|
|
737
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
738
|
+
}
|
|
739
|
+
|
|
701
740
|
requestPasswordReset<AV extends AuthVerifier>(
|
|
702
741
|
cfg: ConfigOf<
|
|
703
742
|
AV,
|
|
@@ -730,6 +769,17 @@ export class ServerNS {
|
|
|
730
769
|
const nsid = 'com.atproto.server.revokeAppPassword' // @ts-ignore
|
|
731
770
|
return this._server.xrpc.method(nsid, cfg)
|
|
732
771
|
}
|
|
772
|
+
|
|
773
|
+
updateEmail<AV extends AuthVerifier>(
|
|
774
|
+
cfg: ConfigOf<
|
|
775
|
+
AV,
|
|
776
|
+
ComAtprotoServerUpdateEmail.Handler<ExtractAuth<AV>>,
|
|
777
|
+
ComAtprotoServerUpdateEmail.HandlerReqCtx<ExtractAuth<AV>>
|
|
778
|
+
>,
|
|
779
|
+
) {
|
|
780
|
+
const nsid = 'com.atproto.server.updateEmail' // @ts-ignore
|
|
781
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
782
|
+
}
|
|
733
783
|
}
|
|
734
784
|
|
|
735
785
|
export class SyncNS {
|
|
@@ -1168,6 +1218,17 @@ export class FeedNS {
|
|
|
1168
1218
|
const nsid = 'app.bsky.feed.getTimeline' // @ts-ignore
|
|
1169
1219
|
return this._server.xrpc.method(nsid, cfg)
|
|
1170
1220
|
}
|
|
1221
|
+
|
|
1222
|
+
searchPosts<AV extends AuthVerifier>(
|
|
1223
|
+
cfg: ConfigOf<
|
|
1224
|
+
AV,
|
|
1225
|
+
AppBskyFeedSearchPosts.Handler<ExtractAuth<AV>>,
|
|
1226
|
+
AppBskyFeedSearchPosts.HandlerReqCtx<ExtractAuth<AV>>
|
|
1227
|
+
>,
|
|
1228
|
+
) {
|
|
1229
|
+
const nsid = 'app.bsky.feed.searchPosts' // @ts-ignore
|
|
1230
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
1231
|
+
}
|
|
1171
1232
|
}
|
|
1172
1233
|
|
|
1173
1234
|
export class GraphNS {
|
|
@@ -1388,17 +1449,6 @@ export class UnspeccedNS {
|
|
|
1388
1449
|
this._server = server
|
|
1389
1450
|
}
|
|
1390
1451
|
|
|
1391
|
-
applyLabels<AV extends AuthVerifier>(
|
|
1392
|
-
cfg: ConfigOf<
|
|
1393
|
-
AV,
|
|
1394
|
-
AppBskyUnspeccedApplyLabels.Handler<ExtractAuth<AV>>,
|
|
1395
|
-
AppBskyUnspeccedApplyLabels.HandlerReqCtx<ExtractAuth<AV>>
|
|
1396
|
-
>,
|
|
1397
|
-
) {
|
|
1398
|
-
const nsid = 'app.bsky.unspecced.applyLabels' // @ts-ignore
|
|
1399
|
-
return this._server.xrpc.method(nsid, cfg)
|
|
1400
|
-
}
|
|
1401
|
-
|
|
1402
1452
|
getPopular<AV extends AuthVerifier>(
|
|
1403
1453
|
cfg: ConfigOf<
|
|
1404
1454
|
AV,
|
|
@@ -1431,6 +1481,28 @@ export class UnspeccedNS {
|
|
|
1431
1481
|
const nsid = 'app.bsky.unspecced.getTimelineSkeleton' // @ts-ignore
|
|
1432
1482
|
return this._server.xrpc.method(nsid, cfg)
|
|
1433
1483
|
}
|
|
1484
|
+
|
|
1485
|
+
searchActorsSkeleton<AV extends AuthVerifier>(
|
|
1486
|
+
cfg: ConfigOf<
|
|
1487
|
+
AV,
|
|
1488
|
+
AppBskyUnspeccedSearchActorsSkeleton.Handler<ExtractAuth<AV>>,
|
|
1489
|
+
AppBskyUnspeccedSearchActorsSkeleton.HandlerReqCtx<ExtractAuth<AV>>
|
|
1490
|
+
>,
|
|
1491
|
+
) {
|
|
1492
|
+
const nsid = 'app.bsky.unspecced.searchActorsSkeleton' // @ts-ignore
|
|
1493
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
1494
|
+
}
|
|
1495
|
+
|
|
1496
|
+
searchPostsSkeleton<AV extends AuthVerifier>(
|
|
1497
|
+
cfg: ConfigOf<
|
|
1498
|
+
AV,
|
|
1499
|
+
AppBskyUnspeccedSearchPostsSkeleton.Handler<ExtractAuth<AV>>,
|
|
1500
|
+
AppBskyUnspeccedSearchPostsSkeleton.HandlerReqCtx<ExtractAuth<AV>>
|
|
1501
|
+
>,
|
|
1502
|
+
) {
|
|
1503
|
+
const nsid = 'app.bsky.unspecced.searchPostsSkeleton' // @ts-ignore
|
|
1504
|
+
return this._server.xrpc.method(nsid, cfg)
|
|
1505
|
+
}
|
|
1434
1506
|
}
|
|
1435
1507
|
|
|
1436
1508
|
type SharedRateLimitOpts<T> = {
|
package/src/lexicon/lexicons.ts
CHANGED
|
@@ -1113,6 +1113,10 @@ export const schemaDict = {
|
|
|
1113
1113
|
properties: {
|
|
1114
1114
|
term: {
|
|
1115
1115
|
type: 'string',
|
|
1116
|
+
description: "DEPRECATED: use 'q' instead",
|
|
1117
|
+
},
|
|
1118
|
+
q: {
|
|
1119
|
+
type: 'string',
|
|
1116
1120
|
},
|
|
1117
1121
|
invitedBy: {
|
|
1118
1122
|
type: 'string',
|
|
@@ -2238,6 +2242,46 @@ export const schemaDict = {
|
|
|
2238
2242
|
},
|
|
2239
2243
|
},
|
|
2240
2244
|
},
|
|
2245
|
+
ComAtprotoServerConfirmEmail: {
|
|
2246
|
+
lexicon: 1,
|
|
2247
|
+
id: 'com.atproto.server.confirmEmail',
|
|
2248
|
+
defs: {
|
|
2249
|
+
main: {
|
|
2250
|
+
type: 'procedure',
|
|
2251
|
+
description:
|
|
2252
|
+
'Confirm an email using a token from com.atproto.server.requestEmailConfirmation.',
|
|
2253
|
+
input: {
|
|
2254
|
+
encoding: 'application/json',
|
|
2255
|
+
schema: {
|
|
2256
|
+
type: 'object',
|
|
2257
|
+
required: ['email', 'token'],
|
|
2258
|
+
properties: {
|
|
2259
|
+
email: {
|
|
2260
|
+
type: 'string',
|
|
2261
|
+
},
|
|
2262
|
+
token: {
|
|
2263
|
+
type: 'string',
|
|
2264
|
+
},
|
|
2265
|
+
},
|
|
2266
|
+
},
|
|
2267
|
+
},
|
|
2268
|
+
errors: [
|
|
2269
|
+
{
|
|
2270
|
+
name: 'AccountNotFound',
|
|
2271
|
+
},
|
|
2272
|
+
{
|
|
2273
|
+
name: 'ExpiredToken',
|
|
2274
|
+
},
|
|
2275
|
+
{
|
|
2276
|
+
name: 'InvalidToken',
|
|
2277
|
+
},
|
|
2278
|
+
{
|
|
2279
|
+
name: 'InvalidEmail',
|
|
2280
|
+
},
|
|
2281
|
+
],
|
|
2282
|
+
},
|
|
2283
|
+
},
|
|
2284
|
+
},
|
|
2241
2285
|
ComAtprotoServerCreateAccount: {
|
|
2242
2286
|
lexicon: 1,
|
|
2243
2287
|
id: 'com.atproto.server.createAccount',
|
|
@@ -2522,6 +2566,9 @@ export const schemaDict = {
|
|
|
2522
2566
|
email: {
|
|
2523
2567
|
type: 'string',
|
|
2524
2568
|
},
|
|
2569
|
+
emailConfirmed: {
|
|
2570
|
+
type: 'boolean',
|
|
2571
|
+
},
|
|
2525
2572
|
},
|
|
2526
2573
|
},
|
|
2527
2574
|
},
|
|
@@ -2752,6 +2799,9 @@ export const schemaDict = {
|
|
|
2752
2799
|
email: {
|
|
2753
2800
|
type: 'string',
|
|
2754
2801
|
},
|
|
2802
|
+
emailConfirmed: {
|
|
2803
|
+
type: 'boolean',
|
|
2804
|
+
},
|
|
2755
2805
|
},
|
|
2756
2806
|
},
|
|
2757
2807
|
},
|
|
@@ -2850,6 +2900,39 @@ export const schemaDict = {
|
|
|
2850
2900
|
},
|
|
2851
2901
|
},
|
|
2852
2902
|
},
|
|
2903
|
+
ComAtprotoServerRequestEmailConfirmation: {
|
|
2904
|
+
lexicon: 1,
|
|
2905
|
+
id: 'com.atproto.server.requestEmailConfirmation',
|
|
2906
|
+
defs: {
|
|
2907
|
+
main: {
|
|
2908
|
+
type: 'procedure',
|
|
2909
|
+
description:
|
|
2910
|
+
'Request an email with a code to confirm ownership of email',
|
|
2911
|
+
},
|
|
2912
|
+
},
|
|
2913
|
+
},
|
|
2914
|
+
ComAtprotoServerRequestEmailUpdate: {
|
|
2915
|
+
lexicon: 1,
|
|
2916
|
+
id: 'com.atproto.server.requestEmailUpdate',
|
|
2917
|
+
defs: {
|
|
2918
|
+
main: {
|
|
2919
|
+
type: 'procedure',
|
|
2920
|
+
description: 'Request a token in order to update email.',
|
|
2921
|
+
output: {
|
|
2922
|
+
encoding: 'application/json',
|
|
2923
|
+
schema: {
|
|
2924
|
+
type: 'object',
|
|
2925
|
+
required: ['tokenRequired'],
|
|
2926
|
+
properties: {
|
|
2927
|
+
tokenRequired: {
|
|
2928
|
+
type: 'boolean',
|
|
2929
|
+
},
|
|
2930
|
+
},
|
|
2931
|
+
},
|
|
2932
|
+
},
|
|
2933
|
+
},
|
|
2934
|
+
},
|
|
2935
|
+
},
|
|
2853
2936
|
ComAtprotoServerRequestPasswordReset: {
|
|
2854
2937
|
lexicon: 1,
|
|
2855
2938
|
id: 'com.atproto.server.requestPasswordReset',
|
|
@@ -2927,6 +3010,44 @@ export const schemaDict = {
|
|
|
2927
3010
|
},
|
|
2928
3011
|
},
|
|
2929
3012
|
},
|
|
3013
|
+
ComAtprotoServerUpdateEmail: {
|
|
3014
|
+
lexicon: 1,
|
|
3015
|
+
id: 'com.atproto.server.updateEmail',
|
|
3016
|
+
defs: {
|
|
3017
|
+
main: {
|
|
3018
|
+
type: 'procedure',
|
|
3019
|
+
description: "Update an account's email.",
|
|
3020
|
+
input: {
|
|
3021
|
+
encoding: 'application/json',
|
|
3022
|
+
schema: {
|
|
3023
|
+
type: 'object',
|
|
3024
|
+
required: ['email'],
|
|
3025
|
+
properties: {
|
|
3026
|
+
email: {
|
|
3027
|
+
type: 'string',
|
|
3028
|
+
},
|
|
3029
|
+
token: {
|
|
3030
|
+
type: 'string',
|
|
3031
|
+
description:
|
|
3032
|
+
"Requires a token from com.atproto.sever.requestEmailUpdate if the account's email has been confirmed.",
|
|
3033
|
+
},
|
|
3034
|
+
},
|
|
3035
|
+
},
|
|
3036
|
+
},
|
|
3037
|
+
errors: [
|
|
3038
|
+
{
|
|
3039
|
+
name: 'ExpiredToken',
|
|
3040
|
+
},
|
|
3041
|
+
{
|
|
3042
|
+
name: 'InvalidToken',
|
|
3043
|
+
},
|
|
3044
|
+
{
|
|
3045
|
+
name: 'TokenRequired',
|
|
3046
|
+
},
|
|
3047
|
+
],
|
|
3048
|
+
},
|
|
3049
|
+
},
|
|
3050
|
+
},
|
|
2930
3051
|
ComAtprotoSyncGetBlob: {
|
|
2931
3052
|
lexicon: 1,
|
|
2932
3053
|
id: 'com.atproto.sync.getBlob',
|
|
@@ -3998,18 +4119,24 @@ export const schemaDict = {
|
|
|
3998
4119
|
defs: {
|
|
3999
4120
|
main: {
|
|
4000
4121
|
type: 'query',
|
|
4001
|
-
description: 'Find actors matching search criteria.',
|
|
4122
|
+
description: 'Find actors (profiles) matching search criteria.',
|
|
4002
4123
|
parameters: {
|
|
4003
4124
|
type: 'params',
|
|
4004
4125
|
properties: {
|
|
4005
4126
|
term: {
|
|
4006
4127
|
type: 'string',
|
|
4128
|
+
description: "DEPRECATED: use 'q' instead",
|
|
4129
|
+
},
|
|
4130
|
+
q: {
|
|
4131
|
+
type: 'string',
|
|
4132
|
+
description:
|
|
4133
|
+
'search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended',
|
|
4007
4134
|
},
|
|
4008
4135
|
limit: {
|
|
4009
4136
|
type: 'integer',
|
|
4010
4137
|
minimum: 1,
|
|
4011
4138
|
maximum: 100,
|
|
4012
|
-
default:
|
|
4139
|
+
default: 25,
|
|
4013
4140
|
},
|
|
4014
4141
|
cursor: {
|
|
4015
4142
|
type: 'string',
|
|
@@ -4050,12 +4177,17 @@ export const schemaDict = {
|
|
|
4050
4177
|
properties: {
|
|
4051
4178
|
term: {
|
|
4052
4179
|
type: 'string',
|
|
4180
|
+
description: "DEPRECATED: use 'q' instead",
|
|
4181
|
+
},
|
|
4182
|
+
q: {
|
|
4183
|
+
type: 'string',
|
|
4184
|
+
description: 'search query prefix; not a full query string',
|
|
4053
4185
|
},
|
|
4054
4186
|
limit: {
|
|
4055
4187
|
type: 'integer',
|
|
4056
4188
|
minimum: 1,
|
|
4057
4189
|
maximum: 100,
|
|
4058
|
-
default:
|
|
4190
|
+
default: 10,
|
|
4059
4191
|
},
|
|
4060
4192
|
},
|
|
4061
4193
|
},
|
|
@@ -5713,6 +5845,67 @@ export const schemaDict = {
|
|
|
5713
5845
|
},
|
|
5714
5846
|
},
|
|
5715
5847
|
},
|
|
5848
|
+
AppBskyFeedSearchPosts: {
|
|
5849
|
+
lexicon: 1,
|
|
5850
|
+
id: 'app.bsky.feed.searchPosts',
|
|
5851
|
+
defs: {
|
|
5852
|
+
main: {
|
|
5853
|
+
type: 'query',
|
|
5854
|
+
description: 'Find posts matching search criteria',
|
|
5855
|
+
parameters: {
|
|
5856
|
+
type: 'params',
|
|
5857
|
+
required: ['q'],
|
|
5858
|
+
properties: {
|
|
5859
|
+
q: {
|
|
5860
|
+
type: 'string',
|
|
5861
|
+
description:
|
|
5862
|
+
'search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended',
|
|
5863
|
+
},
|
|
5864
|
+
limit: {
|
|
5865
|
+
type: 'integer',
|
|
5866
|
+
minimum: 1,
|
|
5867
|
+
maximum: 100,
|
|
5868
|
+
default: 25,
|
|
5869
|
+
},
|
|
5870
|
+
cursor: {
|
|
5871
|
+
type: 'string',
|
|
5872
|
+
description:
|
|
5873
|
+
'optional pagination mechanism; may not necessarily allow scrolling through entire result set',
|
|
5874
|
+
},
|
|
5875
|
+
},
|
|
5876
|
+
},
|
|
5877
|
+
output: {
|
|
5878
|
+
encoding: 'application/json',
|
|
5879
|
+
schema: {
|
|
5880
|
+
type: 'object',
|
|
5881
|
+
required: ['posts'],
|
|
5882
|
+
properties: {
|
|
5883
|
+
cursor: {
|
|
5884
|
+
type: 'string',
|
|
5885
|
+
},
|
|
5886
|
+
hitsTotal: {
|
|
5887
|
+
type: 'integer',
|
|
5888
|
+
description:
|
|
5889
|
+
'count of search hits. optional, may be rounded/truncated, and may not be possible to paginate through all hits',
|
|
5890
|
+
},
|
|
5891
|
+
posts: {
|
|
5892
|
+
type: 'array',
|
|
5893
|
+
items: {
|
|
5894
|
+
type: 'ref',
|
|
5895
|
+
ref: 'lex:app.bsky.feed.defs#postView',
|
|
5896
|
+
},
|
|
5897
|
+
},
|
|
5898
|
+
},
|
|
5899
|
+
},
|
|
5900
|
+
},
|
|
5901
|
+
errors: [
|
|
5902
|
+
{
|
|
5903
|
+
name: 'BadQueryString',
|
|
5904
|
+
},
|
|
5905
|
+
],
|
|
5906
|
+
},
|
|
5907
|
+
},
|
|
5908
|
+
},
|
|
5716
5909
|
AppBskyFeedThreadgate: {
|
|
5717
5910
|
lexicon: 1,
|
|
5718
5911
|
id: 'app.bsky.feed.threadgate',
|
|
@@ -6829,27 +7022,27 @@ export const schemaDict = {
|
|
|
6829
7022
|
},
|
|
6830
7023
|
},
|
|
6831
7024
|
},
|
|
6832
|
-
|
|
7025
|
+
AppBskyUnspeccedDefs: {
|
|
6833
7026
|
lexicon: 1,
|
|
6834
|
-
id: 'app.bsky.unspecced.
|
|
7027
|
+
id: 'app.bsky.unspecced.defs',
|
|
6835
7028
|
defs: {
|
|
6836
|
-
|
|
6837
|
-
type: '
|
|
6838
|
-
|
|
6839
|
-
|
|
6840
|
-
|
|
6841
|
-
|
|
6842
|
-
|
|
6843
|
-
|
|
6844
|
-
|
|
6845
|
-
|
|
6846
|
-
|
|
6847
|
-
|
|
6848
|
-
|
|
6849
|
-
|
|
6850
|
-
|
|
6851
|
-
|
|
6852
|
-
|
|
7029
|
+
skeletonSearchPost: {
|
|
7030
|
+
type: 'object',
|
|
7031
|
+
required: ['uri'],
|
|
7032
|
+
properties: {
|
|
7033
|
+
uri: {
|
|
7034
|
+
type: 'string',
|
|
7035
|
+
format: 'at-uri',
|
|
7036
|
+
},
|
|
7037
|
+
},
|
|
7038
|
+
},
|
|
7039
|
+
skeletonSearchActor: {
|
|
7040
|
+
type: 'object',
|
|
7041
|
+
required: ['did'],
|
|
7042
|
+
properties: {
|
|
7043
|
+
did: {
|
|
7044
|
+
type: 'string',
|
|
7045
|
+
format: 'did',
|
|
6853
7046
|
},
|
|
6854
7047
|
},
|
|
6855
7048
|
},
|
|
@@ -6997,6 +7190,132 @@ export const schemaDict = {
|
|
|
6997
7190
|
},
|
|
6998
7191
|
},
|
|
6999
7192
|
},
|
|
7193
|
+
AppBskyUnspeccedSearchActorsSkeleton: {
|
|
7194
|
+
lexicon: 1,
|
|
7195
|
+
id: 'app.bsky.unspecced.searchActorsSkeleton',
|
|
7196
|
+
defs: {
|
|
7197
|
+
main: {
|
|
7198
|
+
type: 'query',
|
|
7199
|
+
description: 'Backend Actors (profile) search, returning only skeleton',
|
|
7200
|
+
parameters: {
|
|
7201
|
+
type: 'params',
|
|
7202
|
+
required: ['q'],
|
|
7203
|
+
properties: {
|
|
7204
|
+
q: {
|
|
7205
|
+
type: 'string',
|
|
7206
|
+
description:
|
|
7207
|
+
'search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended. For typeahead search, only simple term match is supported, not full syntax',
|
|
7208
|
+
},
|
|
7209
|
+
typeahead: {
|
|
7210
|
+
type: 'boolean',
|
|
7211
|
+
description: "if true, acts as fast/simple 'typeahead' query",
|
|
7212
|
+
},
|
|
7213
|
+
limit: {
|
|
7214
|
+
type: 'integer',
|
|
7215
|
+
minimum: 1,
|
|
7216
|
+
maximum: 100,
|
|
7217
|
+
default: 25,
|
|
7218
|
+
},
|
|
7219
|
+
cursor: {
|
|
7220
|
+
type: 'string',
|
|
7221
|
+
description:
|
|
7222
|
+
'optional pagination mechanism; may not necessarily allow scrolling through entire result set',
|
|
7223
|
+
},
|
|
7224
|
+
},
|
|
7225
|
+
},
|
|
7226
|
+
output: {
|
|
7227
|
+
encoding: 'application/json',
|
|
7228
|
+
schema: {
|
|
7229
|
+
type: 'object',
|
|
7230
|
+
required: ['actors'],
|
|
7231
|
+
properties: {
|
|
7232
|
+
cursor: {
|
|
7233
|
+
type: 'string',
|
|
7234
|
+
},
|
|
7235
|
+
hitsTotal: {
|
|
7236
|
+
type: 'integer',
|
|
7237
|
+
description:
|
|
7238
|
+
'count of search hits. optional, may be rounded/truncated, and may not be possible to paginate through all hits',
|
|
7239
|
+
},
|
|
7240
|
+
actors: {
|
|
7241
|
+
type: 'array',
|
|
7242
|
+
items: {
|
|
7243
|
+
type: 'ref',
|
|
7244
|
+
ref: 'lex:app.bsky.unspecced.defs#skeletonSearchActor',
|
|
7245
|
+
},
|
|
7246
|
+
},
|
|
7247
|
+
},
|
|
7248
|
+
},
|
|
7249
|
+
},
|
|
7250
|
+
errors: [
|
|
7251
|
+
{
|
|
7252
|
+
name: 'BadQueryString',
|
|
7253
|
+
},
|
|
7254
|
+
],
|
|
7255
|
+
},
|
|
7256
|
+
},
|
|
7257
|
+
},
|
|
7258
|
+
AppBskyUnspeccedSearchPostsSkeleton: {
|
|
7259
|
+
lexicon: 1,
|
|
7260
|
+
id: 'app.bsky.unspecced.searchPostsSkeleton',
|
|
7261
|
+
defs: {
|
|
7262
|
+
main: {
|
|
7263
|
+
type: 'query',
|
|
7264
|
+
description: 'Backend Posts search, returning only skeleton',
|
|
7265
|
+
parameters: {
|
|
7266
|
+
type: 'params',
|
|
7267
|
+
required: ['q'],
|
|
7268
|
+
properties: {
|
|
7269
|
+
q: {
|
|
7270
|
+
type: 'string',
|
|
7271
|
+
description:
|
|
7272
|
+
'search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended',
|
|
7273
|
+
},
|
|
7274
|
+
limit: {
|
|
7275
|
+
type: 'integer',
|
|
7276
|
+
minimum: 1,
|
|
7277
|
+
maximum: 100,
|
|
7278
|
+
default: 25,
|
|
7279
|
+
},
|
|
7280
|
+
cursor: {
|
|
7281
|
+
type: 'string',
|
|
7282
|
+
description:
|
|
7283
|
+
'optional pagination mechanism; may not necessarily allow scrolling through entire result set',
|
|
7284
|
+
},
|
|
7285
|
+
},
|
|
7286
|
+
},
|
|
7287
|
+
output: {
|
|
7288
|
+
encoding: 'application/json',
|
|
7289
|
+
schema: {
|
|
7290
|
+
type: 'object',
|
|
7291
|
+
required: ['posts'],
|
|
7292
|
+
properties: {
|
|
7293
|
+
cursor: {
|
|
7294
|
+
type: 'string',
|
|
7295
|
+
},
|
|
7296
|
+
hitsTotal: {
|
|
7297
|
+
type: 'integer',
|
|
7298
|
+
description:
|
|
7299
|
+
'count of search hits. optional, may be rounded/truncated, and may not be possible to paginate through all hits',
|
|
7300
|
+
},
|
|
7301
|
+
posts: {
|
|
7302
|
+
type: 'array',
|
|
7303
|
+
items: {
|
|
7304
|
+
type: 'ref',
|
|
7305
|
+
ref: 'lex:app.bsky.unspecced.defs#skeletonSearchPost',
|
|
7306
|
+
},
|
|
7307
|
+
},
|
|
7308
|
+
},
|
|
7309
|
+
},
|
|
7310
|
+
},
|
|
7311
|
+
errors: [
|
|
7312
|
+
{
|
|
7313
|
+
name: 'BadQueryString',
|
|
7314
|
+
},
|
|
7315
|
+
],
|
|
7316
|
+
},
|
|
7317
|
+
},
|
|
7318
|
+
},
|
|
7000
7319
|
}
|
|
7001
7320
|
export const schemas: LexiconDoc[] = Object.values(schemaDict) as LexiconDoc[]
|
|
7002
7321
|
export const lexicons: Lexicons = new Lexicons(schemas)
|
|
@@ -7038,6 +7357,7 @@ export const ids = {
|
|
|
7038
7357
|
ComAtprotoRepoPutRecord: 'com.atproto.repo.putRecord',
|
|
7039
7358
|
ComAtprotoRepoStrongRef: 'com.atproto.repo.strongRef',
|
|
7040
7359
|
ComAtprotoRepoUploadBlob: 'com.atproto.repo.uploadBlob',
|
|
7360
|
+
ComAtprotoServerConfirmEmail: 'com.atproto.server.confirmEmail',
|
|
7041
7361
|
ComAtprotoServerCreateAccount: 'com.atproto.server.createAccount',
|
|
7042
7362
|
ComAtprotoServerCreateAppPassword: 'com.atproto.server.createAppPassword',
|
|
7043
7363
|
ComAtprotoServerCreateInviteCode: 'com.atproto.server.createInviteCode',
|
|
@@ -7054,10 +7374,14 @@ export const ids = {
|
|
|
7054
7374
|
ComAtprotoServerRefreshSession: 'com.atproto.server.refreshSession',
|
|
7055
7375
|
ComAtprotoServerRequestAccountDelete:
|
|
7056
7376
|
'com.atproto.server.requestAccountDelete',
|
|
7377
|
+
ComAtprotoServerRequestEmailConfirmation:
|
|
7378
|
+
'com.atproto.server.requestEmailConfirmation',
|
|
7379
|
+
ComAtprotoServerRequestEmailUpdate: 'com.atproto.server.requestEmailUpdate',
|
|
7057
7380
|
ComAtprotoServerRequestPasswordReset:
|
|
7058
7381
|
'com.atproto.server.requestPasswordReset',
|
|
7059
7382
|
ComAtprotoServerResetPassword: 'com.atproto.server.resetPassword',
|
|
7060
7383
|
ComAtprotoServerRevokeAppPassword: 'com.atproto.server.revokeAppPassword',
|
|
7384
|
+
ComAtprotoServerUpdateEmail: 'com.atproto.server.updateEmail',
|
|
7061
7385
|
ComAtprotoSyncGetBlob: 'com.atproto.sync.getBlob',
|
|
7062
7386
|
ComAtprotoSyncGetBlocks: 'com.atproto.sync.getBlocks',
|
|
7063
7387
|
ComAtprotoSyncGetCheckout: 'com.atproto.sync.getCheckout',
|
|
@@ -7103,6 +7427,7 @@ export const ids = {
|
|
|
7103
7427
|
AppBskyFeedLike: 'app.bsky.feed.like',
|
|
7104
7428
|
AppBskyFeedPost: 'app.bsky.feed.post',
|
|
7105
7429
|
AppBskyFeedRepost: 'app.bsky.feed.repost',
|
|
7430
|
+
AppBskyFeedSearchPosts: 'app.bsky.feed.searchPosts',
|
|
7106
7431
|
AppBskyFeedThreadgate: 'app.bsky.feed.threadgate',
|
|
7107
7432
|
AppBskyGraphBlock: 'app.bsky.graph.block',
|
|
7108
7433
|
AppBskyGraphDefs: 'app.bsky.graph.defs',
|
|
@@ -7130,9 +7455,12 @@ export const ids = {
|
|
|
7130
7455
|
AppBskyNotificationRegisterPush: 'app.bsky.notification.registerPush',
|
|
7131
7456
|
AppBskyNotificationUpdateSeen: 'app.bsky.notification.updateSeen',
|
|
7132
7457
|
AppBskyRichtextFacet: 'app.bsky.richtext.facet',
|
|
7133
|
-
|
|
7458
|
+
AppBskyUnspeccedDefs: 'app.bsky.unspecced.defs',
|
|
7134
7459
|
AppBskyUnspeccedGetPopular: 'app.bsky.unspecced.getPopular',
|
|
7135
7460
|
AppBskyUnspeccedGetPopularFeedGenerators:
|
|
7136
7461
|
'app.bsky.unspecced.getPopularFeedGenerators',
|
|
7137
7462
|
AppBskyUnspeccedGetTimelineSkeleton: 'app.bsky.unspecced.getTimelineSkeleton',
|
|
7463
|
+
AppBskyUnspeccedSearchActorsSkeleton:
|
|
7464
|
+
'app.bsky.unspecced.searchActorsSkeleton',
|
|
7465
|
+
AppBskyUnspeccedSearchPostsSkeleton: 'app.bsky.unspecced.searchPostsSkeleton',
|
|
7138
7466
|
}
|
|
@@ -10,7 +10,10 @@ import { HandlerAuth } from '@atproto/xrpc-server'
|
|
|
10
10
|
import * as AppBskyActorDefs from './defs'
|
|
11
11
|
|
|
12
12
|
export interface QueryParams {
|
|
13
|
+
/** DEPRECATED: use 'q' instead */
|
|
13
14
|
term?: string
|
|
15
|
+
/** search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended */
|
|
16
|
+
q?: string
|
|
14
17
|
limit: number
|
|
15
18
|
cursor?: string
|
|
16
19
|
}
|
|
@@ -10,7 +10,10 @@ import { HandlerAuth } from '@atproto/xrpc-server'
|
|
|
10
10
|
import * as AppBskyActorDefs from './defs'
|
|
11
11
|
|
|
12
12
|
export interface QueryParams {
|
|
13
|
+
/** DEPRECATED: use 'q' instead */
|
|
13
14
|
term?: string
|
|
15
|
+
/** search query prefix; not a full query string */
|
|
16
|
+
q?: string
|
|
14
17
|
limit: number
|
|
15
18
|
}
|
|
16
19
|
|