@atproto/bsky 0.0.59 → 0.0.61
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 +16 -0
- package/dist/api/app/bsky/graph/getKnownFollowers.d.ts +4 -0
- package/dist/api/app/bsky/graph/getKnownFollowers.d.ts.map +1 -0
- package/dist/api/app/bsky/graph/getKnownFollowers.js +71 -0
- package/dist/api/app/bsky/graph/getKnownFollowers.js.map +1 -0
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +2 -0
- package/dist/api/index.js.map +1 -1
- package/dist/data-plane/server/routes/follows.d.ts.map +1 -1
- package/dist/data-plane/server/routes/follows.js +34 -2
- package/dist/data-plane/server/routes/follows.js.map +1 -1
- package/dist/hydration/actor.d.ts +6 -0
- package/dist/hydration/actor.d.ts.map +1 -1
- package/dist/hydration/actor.js +17 -0
- package/dist/hydration/actor.js.map +1 -1
- package/dist/hydration/hydrator.d.ts +2 -1
- package/dist/hydration/hydrator.d.ts.map +1 -1
- package/dist/hydration/hydrator.js +15 -1
- package/dist/hydration/hydrator.js.map +1 -1
- package/dist/lexicon/index.d.ts +4 -0
- package/dist/lexicon/index.d.ts.map +1 -1
- package/dist/lexicon/index.js +8 -0
- package/dist/lexicon/index.js.map +1 -1
- package/dist/lexicon/lexicons.d.ts +123 -0
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +123 -0
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/app/bsky/actor/defs.d.ts +9 -0
- package/dist/lexicon/types/app/bsky/actor/defs.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/actor/defs.js +11 -1
- package/dist/lexicon/types/app/bsky/actor/defs.js.map +1 -1
- package/dist/lexicon/types/app/bsky/graph/getKnownFollowers.d.ts +40 -0
- package/dist/lexicon/types/app/bsky/graph/getKnownFollowers.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/graph/getKnownFollowers.js +3 -0
- package/dist/lexicon/types/app/bsky/graph/getKnownFollowers.js.map +1 -0
- package/dist/lexicon/types/com/atproto/admin/searchAccounts.d.ts +39 -0
- package/dist/lexicon/types/com/atproto/admin/searchAccounts.d.ts.map +1 -0
- package/dist/lexicon/types/com/atproto/admin/searchAccounts.js +3 -0
- package/dist/lexicon/types/com/atproto/admin/searchAccounts.js.map +1 -0
- package/dist/logger.d.ts +1 -0
- package/dist/logger.d.ts.map +1 -1
- package/dist/logger.js +2 -1
- package/dist/logger.js.map +1 -1
- package/dist/proto/bsky_pb.d.ts +25 -4
- package/dist/proto/bsky_pb.d.ts.map +1 -1
- package/dist/proto/bsky_pb.js +83 -10
- package/dist/proto/bsky_pb.js.map +1 -1
- package/dist/views/index.d.ts +5 -0
- package/dist/views/index.d.ts.map +1 -1
- package/dist/views/index.js +19 -0
- package/dist/views/index.js.map +1 -1
- package/package.json +4 -4
- package/proto/bsky.proto +6 -2
- package/src/api/app/bsky/graph/getKnownFollowers.ts +119 -0
- package/src/api/index.ts +2 -0
- package/src/data-plane/server/routes/follows.ts +45 -2
- package/src/hydration/actor.ts +30 -0
- package/src/hydration/hydrator.ts +22 -1
- package/src/lexicon/index.ts +24 -0
- package/src/lexicon/lexicons.ts +124 -0
- package/src/lexicon/types/app/bsky/actor/defs.ts +20 -0
- package/src/lexicon/types/app/bsky/graph/getKnownFollowers.ts +50 -0
- package/src/lexicon/types/com/atproto/admin/searchAccounts.ts +49 -0
- package/src/logger.ts +2 -0
- package/src/proto/bsky_pb.ts +75 -8
- package/src/views/index.ts +24 -0
- package/tests/data-plane/__snapshots__/indexing.test.ts.snap +46 -28
- package/tests/label-hydration.test.ts +0 -2
- package/tests/query-labels.test.ts +0 -3
- package/tests/views/__snapshots__/profile.test.ts.snap +230 -10
- package/tests/views/blocks.test.ts +13 -0
- package/tests/views/profile.test.ts +35 -0
package/dist/lexicon/lexicons.js
CHANGED
|
@@ -377,6 +377,52 @@ exports.schemaDict = {
|
|
|
377
377
|
},
|
|
378
378
|
},
|
|
379
379
|
},
|
|
380
|
+
ComAtprotoAdminSearchAccounts: {
|
|
381
|
+
lexicon: 1,
|
|
382
|
+
id: 'com.atproto.admin.searchAccounts',
|
|
383
|
+
defs: {
|
|
384
|
+
main: {
|
|
385
|
+
type: 'query',
|
|
386
|
+
description: 'Get list of accounts that matches your search query.',
|
|
387
|
+
parameters: {
|
|
388
|
+
type: 'params',
|
|
389
|
+
properties: {
|
|
390
|
+
email: {
|
|
391
|
+
type: 'string',
|
|
392
|
+
},
|
|
393
|
+
cursor: {
|
|
394
|
+
type: 'string',
|
|
395
|
+
},
|
|
396
|
+
limit: {
|
|
397
|
+
type: 'integer',
|
|
398
|
+
minimum: 1,
|
|
399
|
+
maximum: 100,
|
|
400
|
+
default: 50,
|
|
401
|
+
},
|
|
402
|
+
},
|
|
403
|
+
},
|
|
404
|
+
output: {
|
|
405
|
+
encoding: 'application/json',
|
|
406
|
+
schema: {
|
|
407
|
+
type: 'object',
|
|
408
|
+
required: ['accounts'],
|
|
409
|
+
properties: {
|
|
410
|
+
cursor: {
|
|
411
|
+
type: 'string',
|
|
412
|
+
},
|
|
413
|
+
accounts: {
|
|
414
|
+
type: 'array',
|
|
415
|
+
items: {
|
|
416
|
+
type: 'ref',
|
|
417
|
+
ref: 'lex:com.atproto.admin.defs#accountView',
|
|
418
|
+
},
|
|
419
|
+
},
|
|
420
|
+
},
|
|
421
|
+
},
|
|
422
|
+
},
|
|
423
|
+
},
|
|
424
|
+
},
|
|
425
|
+
},
|
|
380
426
|
ComAtprotoAdminSendEmail: {
|
|
381
427
|
lexicon: 1,
|
|
382
428
|
id: 'com.atproto.admin.sendEmail',
|
|
@@ -3926,6 +3972,29 @@ exports.schemaDict = {
|
|
|
3926
3972
|
type: 'string',
|
|
3927
3973
|
format: 'at-uri',
|
|
3928
3974
|
},
|
|
3975
|
+
knownFollowers: {
|
|
3976
|
+
type: 'ref',
|
|
3977
|
+
ref: 'lex:app.bsky.actor.defs#knownFollowers',
|
|
3978
|
+
},
|
|
3979
|
+
},
|
|
3980
|
+
},
|
|
3981
|
+
knownFollowers: {
|
|
3982
|
+
type: 'object',
|
|
3983
|
+
description: "The subject's followers whom you also follow",
|
|
3984
|
+
required: ['count', 'followers'],
|
|
3985
|
+
properties: {
|
|
3986
|
+
count: {
|
|
3987
|
+
type: 'integer',
|
|
3988
|
+
},
|
|
3989
|
+
followers: {
|
|
3990
|
+
type: 'array',
|
|
3991
|
+
minLength: 0,
|
|
3992
|
+
maxLength: 5,
|
|
3993
|
+
items: {
|
|
3994
|
+
type: 'ref',
|
|
3995
|
+
ref: 'lex:app.bsky.actor.defs#profileViewBasic',
|
|
3996
|
+
},
|
|
3997
|
+
},
|
|
3929
3998
|
},
|
|
3930
3999
|
},
|
|
3931
4000
|
preferences: {
|
|
@@ -6833,6 +6902,58 @@ exports.schemaDict = {
|
|
|
6833
6902
|
},
|
|
6834
6903
|
},
|
|
6835
6904
|
},
|
|
6905
|
+
AppBskyGraphGetKnownFollowers: {
|
|
6906
|
+
lexicon: 1,
|
|
6907
|
+
id: 'app.bsky.graph.getKnownFollowers',
|
|
6908
|
+
defs: {
|
|
6909
|
+
main: {
|
|
6910
|
+
type: 'query',
|
|
6911
|
+
description: 'Enumerates accounts which follow a specified account (actor) and are followed by the viewer.',
|
|
6912
|
+
parameters: {
|
|
6913
|
+
type: 'params',
|
|
6914
|
+
required: ['actor'],
|
|
6915
|
+
properties: {
|
|
6916
|
+
actor: {
|
|
6917
|
+
type: 'string',
|
|
6918
|
+
format: 'at-identifier',
|
|
6919
|
+
},
|
|
6920
|
+
limit: {
|
|
6921
|
+
type: 'integer',
|
|
6922
|
+
minimum: 1,
|
|
6923
|
+
maximum: 100,
|
|
6924
|
+
default: 50,
|
|
6925
|
+
},
|
|
6926
|
+
cursor: {
|
|
6927
|
+
type: 'string',
|
|
6928
|
+
},
|
|
6929
|
+
},
|
|
6930
|
+
},
|
|
6931
|
+
output: {
|
|
6932
|
+
encoding: 'application/json',
|
|
6933
|
+
schema: {
|
|
6934
|
+
type: 'object',
|
|
6935
|
+
required: ['subject', 'followers'],
|
|
6936
|
+
properties: {
|
|
6937
|
+
subject: {
|
|
6938
|
+
type: 'ref',
|
|
6939
|
+
ref: 'lex:app.bsky.actor.defs#profileView',
|
|
6940
|
+
},
|
|
6941
|
+
cursor: {
|
|
6942
|
+
type: 'string',
|
|
6943
|
+
},
|
|
6944
|
+
followers: {
|
|
6945
|
+
type: 'array',
|
|
6946
|
+
items: {
|
|
6947
|
+
type: 'ref',
|
|
6948
|
+
ref: 'lex:app.bsky.actor.defs#profileView',
|
|
6949
|
+
},
|
|
6950
|
+
},
|
|
6951
|
+
},
|
|
6952
|
+
},
|
|
6953
|
+
},
|
|
6954
|
+
},
|
|
6955
|
+
},
|
|
6956
|
+
},
|
|
6836
6957
|
AppBskyGraphGetList: {
|
|
6837
6958
|
lexicon: 1,
|
|
6838
6959
|
id: 'app.bsky.graph.getList',
|
|
@@ -9085,6 +9206,7 @@ exports.ids = {
|
|
|
9085
9206
|
ComAtprotoAdminGetAccountInfos: 'com.atproto.admin.getAccountInfos',
|
|
9086
9207
|
ComAtprotoAdminGetInviteCodes: 'com.atproto.admin.getInviteCodes',
|
|
9087
9208
|
ComAtprotoAdminGetSubjectStatus: 'com.atproto.admin.getSubjectStatus',
|
|
9209
|
+
ComAtprotoAdminSearchAccounts: 'com.atproto.admin.searchAccounts',
|
|
9088
9210
|
ComAtprotoAdminSendEmail: 'com.atproto.admin.sendEmail',
|
|
9089
9211
|
ComAtprotoAdminUpdateAccountEmail: 'com.atproto.admin.updateAccountEmail',
|
|
9090
9212
|
ComAtprotoAdminUpdateAccountHandle: 'com.atproto.admin.updateAccountHandle',
|
|
@@ -9196,6 +9318,7 @@ exports.ids = {
|
|
|
9196
9318
|
AppBskyGraphGetBlocks: 'app.bsky.graph.getBlocks',
|
|
9197
9319
|
AppBskyGraphGetFollowers: 'app.bsky.graph.getFollowers',
|
|
9198
9320
|
AppBskyGraphGetFollows: 'app.bsky.graph.getFollows',
|
|
9321
|
+
AppBskyGraphGetKnownFollowers: 'app.bsky.graph.getKnownFollowers',
|
|
9199
9322
|
AppBskyGraphGetList: 'app.bsky.graph.getList',
|
|
9200
9323
|
AppBskyGraphGetListBlocks: 'app.bsky.graph.getListBlocks',
|
|
9201
9324
|
AppBskyGraphGetListMutes: 'app.bsky.graph.getListMutes',
|