@atproto/bsky 0.0.64 → 0.0.66
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 +19 -0
- package/dist/api/app/bsky/actor/getSuggestions.js +1 -1
- package/dist/api/app/bsky/actor/getSuggestions.js.map +1 -1
- package/dist/api/app/bsky/actor/searchActors.js +1 -1
- package/dist/api/app/bsky/actor/searchActors.js.map +1 -1
- package/dist/api/app/bsky/feed/getPostThread.js +1 -10
- package/dist/api/app/bsky/feed/getPostThread.js.map +1 -1
- package/dist/api/app/bsky/feed/searchPosts.js +1 -1
- package/dist/api/app/bsky/feed/searchPosts.js.map +1 -1
- package/dist/api/app/bsky/graph/getActorStarterPacks.d.ts +4 -0
- package/dist/api/app/bsky/graph/getActorStarterPacks.d.ts.map +1 -0
- package/dist/api/app/bsky/graph/getActorStarterPacks.js +58 -0
- package/dist/api/app/bsky/graph/getActorStarterPacks.js.map +1 -0
- package/dist/api/app/bsky/graph/getStarterPack.d.ts +4 -0
- package/dist/api/app/bsky/graph/getStarterPack.d.ts.map +1 -0
- package/dist/api/app/bsky/graph/getStarterPack.js +45 -0
- package/dist/api/app/bsky/graph/getStarterPack.js.map +1 -0
- package/dist/api/app/bsky/graph/getStarterPacks.d.ts +4 -0
- package/dist/api/app/bsky/graph/getStarterPacks.d.ts.map +1 -0
- package/dist/api/app/bsky/graph/getStarterPacks.js +40 -0
- package/dist/api/app/bsky/graph/getStarterPacks.js.map +1 -0
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +6 -0
- package/dist/api/index.js.map +1 -1
- package/dist/data-plane/server/db/database-schema.d.ts +2 -1
- package/dist/data-plane/server/db/database-schema.d.ts.map +1 -1
- package/dist/data-plane/server/db/migrations/20240606T222548219Z-starter-packs.d.ts +4 -0
- package/dist/data-plane/server/db/migrations/20240606T222548219Z-starter-packs.d.ts.map +1 -0
- package/dist/data-plane/server/db/migrations/20240606T222548219Z-starter-packs.js +47 -0
- package/dist/data-plane/server/db/migrations/20240606T222548219Z-starter-packs.js.map +1 -0
- package/dist/data-plane/server/db/migrations/index.d.ts +1 -0
- package/dist/data-plane/server/db/migrations/index.d.ts.map +1 -1
- package/dist/data-plane/server/db/migrations/index.js +2 -1
- package/dist/data-plane/server/db/migrations/index.js.map +1 -1
- package/dist/data-plane/server/db/tables/profile.d.ts +2 -0
- package/dist/data-plane/server/db/tables/profile.d.ts.map +1 -1
- package/dist/data-plane/server/db/tables/starter-pack.d.ts +14 -0
- package/dist/data-plane/server/db/tables/starter-pack.d.ts.map +1 -0
- package/dist/data-plane/server/db/tables/starter-pack.js +5 -0
- package/dist/data-plane/server/db/tables/starter-pack.js.map +1 -0
- package/dist/data-plane/server/indexing/index.d.ts +2 -0
- package/dist/data-plane/server/indexing/index.d.ts.map +1 -1
- package/dist/data-plane/server/indexing/index.js +2 -0
- package/dist/data-plane/server/indexing/index.js.map +1 -1
- package/dist/data-plane/server/indexing/plugins/profile.d.ts.map +1 -1
- package/dist/data-plane/server/indexing/plugins/profile.js +18 -2
- package/dist/data-plane/server/indexing/plugins/profile.js.map +1 -1
- package/dist/data-plane/server/indexing/plugins/starter-pack.d.ts +11 -0
- package/dist/data-plane/server/indexing/plugins/starter-pack.d.ts.map +1 -0
- package/dist/data-plane/server/indexing/plugins/starter-pack.js +78 -0
- package/dist/data-plane/server/indexing/plugins/starter-pack.js.map +1 -0
- package/dist/data-plane/server/routes/index.d.ts.map +1 -1
- package/dist/data-plane/server/routes/index.js +2 -0
- package/dist/data-plane/server/routes/index.js.map +1 -1
- package/dist/data-plane/server/routes/interactions.d.ts.map +1 -1
- package/dist/data-plane/server/routes/interactions.js +57 -1
- package/dist/data-plane/server/routes/interactions.js.map +1 -1
- package/dist/data-plane/server/routes/profile.d.ts.map +1 -1
- package/dist/data-plane/server/routes/profile.js +1 -0
- package/dist/data-plane/server/routes/profile.js.map +1 -1
- package/dist/data-plane/server/routes/records.d.ts.map +1 -1
- package/dist/data-plane/server/routes/records.js +1 -0
- package/dist/data-plane/server/routes/records.js.map +1 -1
- package/dist/data-plane/server/routes/starter-packs.d.ts +6 -0
- package/dist/data-plane/server/routes/starter-packs.d.ts.map +1 -0
- package/dist/data-plane/server/routes/starter-packs.js +25 -0
- package/dist/data-plane/server/routes/starter-packs.js.map +1 -0
- package/dist/data-plane/server/util.d.ts +6 -6
- package/dist/hydration/actor.d.ts +2 -0
- package/dist/hydration/actor.d.ts.map +1 -1
- package/dist/hydration/actor.js +2 -0
- package/dist/hydration/actor.js.map +1 -1
- package/dist/hydration/feed.d.ts +1 -5
- package/dist/hydration/feed.d.ts.map +1 -1
- package/dist/hydration/feed.js +0 -1
- package/dist/hydration/feed.js.map +1 -1
- package/dist/hydration/graph.d.ts +17 -1
- package/dist/hydration/graph.d.ts.map +1 -1
- package/dist/hydration/graph.js +30 -1
- package/dist/hydration/graph.js.map +1 -1
- package/dist/hydration/hydrator.d.ts +9 -3
- package/dist/hydration/hydrator.d.ts.map +1 -1
- package/dist/hydration/hydrator.js +114 -5
- package/dist/hydration/hydrator.js.map +1 -1
- package/dist/hydration/util.d.ts +4 -0
- package/dist/hydration/util.d.ts.map +1 -1
- package/dist/hydration/util.js.map +1 -1
- package/dist/lexicon/index.d.ts +7 -0
- package/dist/lexicon/index.d.ts.map +1 -1
- package/dist/lexicon/index.js +13 -0
- package/dist/lexicon/index.js.map +1 -1
- package/dist/lexicon/lexicons.d.ts +362 -0
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +367 -2
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/app/bsky/actor/defs.d.ts +22 -1
- package/dist/lexicon/types/app/bsky/actor/defs.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/actor/defs.js +21 -1
- package/dist/lexicon/types/app/bsky/actor/defs.js.map +1 -1
- package/dist/lexicon/types/app/bsky/actor/profile.d.ts +3 -0
- package/dist/lexicon/types/app/bsky/actor/profile.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/actor/profile.js.map +1 -1
- package/dist/lexicon/types/app/bsky/graph/defs.d.ts +36 -1
- package/dist/lexicon/types/app/bsky/graph/defs.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/graph/defs.js +23 -1
- package/dist/lexicon/types/app/bsky/graph/defs.js.map +1 -1
- package/dist/lexicon/types/app/bsky/graph/getActorStarterPacks.d.ts +39 -0
- package/dist/lexicon/types/app/bsky/graph/getActorStarterPacks.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/graph/getActorStarterPacks.js +3 -0
- package/dist/lexicon/types/app/bsky/graph/getActorStarterPacks.js.map +1 -0
- package/dist/lexicon/types/app/bsky/graph/getStarterPack.d.ts +37 -0
- package/dist/lexicon/types/app/bsky/graph/getStarterPack.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/graph/getStarterPack.js +3 -0
- package/dist/lexicon/types/app/bsky/graph/getStarterPack.js.map +1 -0
- package/dist/lexicon/types/app/bsky/graph/getStarterPacks.d.ts +36 -0
- package/dist/lexicon/types/app/bsky/graph/getStarterPacks.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/graph/getStarterPacks.js +3 -0
- package/dist/lexicon/types/app/bsky/graph/getStarterPacks.js.map +1 -0
- package/dist/lexicon/types/app/bsky/graph/starterpack.d.ts +25 -0
- package/dist/lexicon/types/app/bsky/graph/starterpack.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/graph/starterpack.js +27 -0
- package/dist/lexicon/types/app/bsky/graph/starterpack.js.map +1 -0
- package/dist/lexicon/types/app/bsky/notification/listNotifications.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/notification/listNotifications.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/notification/listNotifications.js.map +1 -1
- package/dist/proto/bsky_connect.d.ts +39 -1
- package/dist/proto/bsky_connect.d.ts.map +1 -1
- package/dist/proto/bsky_connect.js +38 -0
- package/dist/proto/bsky_connect.js.map +1 -1
- package/dist/proto/bsky_pb.d.ts +160 -0
- package/dist/proto/bsky_pb.d.ts.map +1 -1
- package/dist/proto/bsky_pb.js +508 -4
- package/dist/proto/bsky_pb.js.map +1 -1
- package/dist/views/index.d.ts +4 -1
- package/dist/views/index.d.ts.map +1 -1
- package/dist/views/index.js +89 -0
- package/dist/views/index.js.map +1 -1
- package/package.json +5 -5
- package/proto/bsky.proto +47 -0
- package/src/api/app/bsky/actor/getSuggestions.ts +1 -1
- package/src/api/app/bsky/actor/searchActors.ts +1 -1
- package/src/api/app/bsky/feed/getPostThread.ts +1 -9
- package/src/api/app/bsky/feed/searchPosts.ts +1 -1
- package/src/api/app/bsky/graph/getActorStarterPacks.ts +99 -0
- package/src/api/app/bsky/graph/getStarterPack.ts +80 -0
- package/src/api/app/bsky/graph/getStarterPacks.ts +81 -0
- package/src/api/index.ts +6 -0
- package/src/data-plane/server/db/database-schema.ts +2 -0
- package/src/data-plane/server/db/migrations/20240606T222548219Z-starter-packs.ts +45 -0
- package/src/data-plane/server/db/migrations/index.ts +1 -0
- package/src/data-plane/server/db/tables/profile.ts +2 -0
- package/src/data-plane/server/db/tables/starter-pack.ts +16 -0
- package/src/data-plane/server/indexing/index.ts +3 -0
- package/src/data-plane/server/indexing/plugins/profile.ts +16 -2
- package/src/data-plane/server/indexing/plugins/starter-pack.ts +76 -0
- package/src/data-plane/server/routes/index.ts +2 -0
- package/src/data-plane/server/routes/interactions.ts +56 -2
- package/src/data-plane/server/routes/profile.ts +1 -0
- package/src/data-plane/server/routes/records.ts +1 -0
- package/src/data-plane/server/routes/starter-packs.ts +32 -0
- package/src/hydration/actor.ts +5 -0
- package/src/hydration/feed.ts +1 -2
- package/src/hydration/graph.ts +55 -2
- package/src/hydration/hydrator.ts +143 -6
- package/src/hydration/util.ts +2 -0
- package/src/lexicon/index.ts +37 -0
- package/src/lexicon/lexicons.ts +372 -2
- package/src/lexicon/types/app/bsky/actor/defs.ts +44 -0
- package/src/lexicon/types/app/bsky/actor/profile.ts +3 -0
- package/src/lexicon/types/app/bsky/graph/defs.ts +58 -0
- package/src/lexicon/types/app/bsky/graph/getActorStarterPacks.ts +49 -0
- package/src/lexicon/types/app/bsky/graph/getStarterPack.ts +47 -0
- package/src/lexicon/types/app/bsky/graph/getStarterPacks.ts +46 -0
- package/src/lexicon/types/app/bsky/graph/starterpack.ts +50 -0
- package/src/lexicon/types/app/bsky/notification/listNotifications.ts +2 -1
- package/src/proto/bsky_connect.ts +46 -0
- package/src/proto/bsky_pb.ts +512 -0
- package/src/views/index.ts +98 -1
- package/tests/__snapshots__/feed-generation.test.ts.snap +28 -0
- package/tests/data-plane/__snapshots__/indexing.test.ts.snap +9 -0
- package/tests/views/__snapshots__/author-feed.test.ts.snap +29 -0
- package/tests/views/__snapshots__/block-lists.test.ts.snap +16 -0
- package/tests/views/__snapshots__/blocks.test.ts.snap +4 -0
- package/tests/views/__snapshots__/follows.test.ts.snap +34 -0
- package/tests/views/__snapshots__/labeler-service.test.ts.snap +4 -0
- package/tests/views/__snapshots__/likes.test.ts.snap +1 -0
- package/tests/views/__snapshots__/list-feed.test.ts.snap +12 -0
- package/tests/views/__snapshots__/mute-lists.test.ts.snap +20 -0
- package/tests/views/__snapshots__/mutes.test.ts.snap +8 -0
- package/tests/views/__snapshots__/notifications.test.ts.snap +10 -0
- package/tests/views/__snapshots__/posts.test.ts.snap +6 -0
- package/tests/views/__snapshots__/profile.test.ts.snap +18 -0
- package/tests/views/__snapshots__/reposts.test.ts.snap +1 -0
- package/tests/views/__snapshots__/starter-packs.test.ts.snap +482 -0
- package/tests/views/__snapshots__/thread.test.ts.snap +22 -0
- package/tests/views/__snapshots__/threadgating.test.ts.snap +2 -0
- package/tests/views/__snapshots__/timeline.test.ts.snap +81 -0
- package/tests/views/starter-packs.test.ts +121 -0
package/src/lexicon/lexicons.ts
CHANGED
|
@@ -3343,7 +3343,7 @@ export const schemaDict = {
|
|
|
3343
3343
|
main: {
|
|
3344
3344
|
type: 'query',
|
|
3345
3345
|
description:
|
|
3346
|
-
'List blob
|
|
3346
|
+
'List blob CIDs for an account, since some repo revision. Does not require auth; implemented by PDS.',
|
|
3347
3347
|
parameters: {
|
|
3348
3348
|
type: 'params',
|
|
3349
3349
|
required: ['did'],
|
|
@@ -3939,6 +3939,10 @@ export const schemaDict = {
|
|
|
3939
3939
|
ref: 'lex:com.atproto.label.defs#label',
|
|
3940
3940
|
},
|
|
3941
3941
|
},
|
|
3942
|
+
createdAt: {
|
|
3943
|
+
type: 'string',
|
|
3944
|
+
format: 'datetime',
|
|
3945
|
+
},
|
|
3942
3946
|
},
|
|
3943
3947
|
},
|
|
3944
3948
|
profileView: {
|
|
@@ -3975,6 +3979,10 @@ export const schemaDict = {
|
|
|
3975
3979
|
type: 'string',
|
|
3976
3980
|
format: 'datetime',
|
|
3977
3981
|
},
|
|
3982
|
+
createdAt: {
|
|
3983
|
+
type: 'string',
|
|
3984
|
+
format: 'datetime',
|
|
3985
|
+
},
|
|
3978
3986
|
viewer: {
|
|
3979
3987
|
type: 'ref',
|
|
3980
3988
|
ref: 'lex:app.bsky.actor.defs#viewerState',
|
|
@@ -4031,10 +4039,18 @@ export const schemaDict = {
|
|
|
4031
4039
|
type: 'ref',
|
|
4032
4040
|
ref: 'lex:app.bsky.actor.defs#profileAssociated',
|
|
4033
4041
|
},
|
|
4042
|
+
joinedViaStarterPack: {
|
|
4043
|
+
type: 'ref',
|
|
4044
|
+
ref: 'lex:app.bsky.graph.defs#starterPackViewBasic',
|
|
4045
|
+
},
|
|
4034
4046
|
indexedAt: {
|
|
4035
4047
|
type: 'string',
|
|
4036
4048
|
format: 'datetime',
|
|
4037
4049
|
},
|
|
4050
|
+
createdAt: {
|
|
4051
|
+
type: 'string',
|
|
4052
|
+
format: 'datetime',
|
|
4053
|
+
},
|
|
4038
4054
|
viewer: {
|
|
4039
4055
|
type: 'ref',
|
|
4040
4056
|
ref: 'lex:app.bsky.actor.defs#viewerState',
|
|
@@ -4057,6 +4073,9 @@ export const schemaDict = {
|
|
|
4057
4073
|
feedgens: {
|
|
4058
4074
|
type: 'integer',
|
|
4059
4075
|
},
|
|
4076
|
+
starterPacks: {
|
|
4077
|
+
type: 'integer',
|
|
4078
|
+
},
|
|
4060
4079
|
labeler: {
|
|
4061
4080
|
type: 'boolean',
|
|
4062
4081
|
},
|
|
@@ -4147,6 +4166,7 @@ export const schemaDict = {
|
|
|
4147
4166
|
'lex:app.bsky.actor.defs#interestsPref',
|
|
4148
4167
|
'lex:app.bsky.actor.defs#mutedWordsPref',
|
|
4149
4168
|
'lex:app.bsky.actor.defs#hiddenPostsPref',
|
|
4169
|
+
'lex:app.bsky.actor.defs#bskyAppStatePref',
|
|
4150
4170
|
],
|
|
4151
4171
|
},
|
|
4152
4172
|
},
|
|
@@ -4388,6 +4408,39 @@ export const schemaDict = {
|
|
|
4388
4408
|
},
|
|
4389
4409
|
},
|
|
4390
4410
|
},
|
|
4411
|
+
bskyAppStatePref: {
|
|
4412
|
+
description:
|
|
4413
|
+
"A grab bag of state that's specific to the bsky.app program. Third-party apps shouldn't use this.",
|
|
4414
|
+
type: 'object',
|
|
4415
|
+
properties: {
|
|
4416
|
+
activeProgressGuide: {
|
|
4417
|
+
type: 'ref',
|
|
4418
|
+
ref: 'lex:app.bsky.actor.defs#bskyAppProgressGuide',
|
|
4419
|
+
},
|
|
4420
|
+
queuedNudges: {
|
|
4421
|
+
description:
|
|
4422
|
+
'An array of tokens which identify nudges (modals, popups, tours, highlight dots) that should be shown to the user.',
|
|
4423
|
+
type: 'array',
|
|
4424
|
+
maxLength: 1000,
|
|
4425
|
+
items: {
|
|
4426
|
+
type: 'string',
|
|
4427
|
+
maxLength: 100,
|
|
4428
|
+
},
|
|
4429
|
+
},
|
|
4430
|
+
},
|
|
4431
|
+
},
|
|
4432
|
+
bskyAppProgressGuide: {
|
|
4433
|
+
description:
|
|
4434
|
+
'If set, an active progress guide. Once completed, can be set to undefined. Should have unspecced fields tracking progress.',
|
|
4435
|
+
type: 'object',
|
|
4436
|
+
required: ['guide'],
|
|
4437
|
+
properties: {
|
|
4438
|
+
guide: {
|
|
4439
|
+
type: 'string',
|
|
4440
|
+
maxLength: 100,
|
|
4441
|
+
},
|
|
4442
|
+
},
|
|
4443
|
+
},
|
|
4391
4444
|
},
|
|
4392
4445
|
},
|
|
4393
4446
|
AppBskyActorGetPreferences: {
|
|
@@ -4573,6 +4626,14 @@ export const schemaDict = {
|
|
|
4573
4626
|
'Self-label values, specific to the Bluesky application, on the overall account.',
|
|
4574
4627
|
refs: ['lex:com.atproto.label.defs#selfLabels'],
|
|
4575
4628
|
},
|
|
4629
|
+
joinedViaStarterPack: {
|
|
4630
|
+
type: 'ref',
|
|
4631
|
+
ref: 'lex:com.atproto.repo.strongRef',
|
|
4632
|
+
},
|
|
4633
|
+
createdAt: {
|
|
4634
|
+
type: 'string',
|
|
4635
|
+
format: 'datetime',
|
|
4636
|
+
},
|
|
4576
4637
|
},
|
|
4577
4638
|
},
|
|
4578
4639
|
},
|
|
@@ -6792,6 +6853,10 @@ export const schemaDict = {
|
|
|
6792
6853
|
type: 'string',
|
|
6793
6854
|
format: 'uri',
|
|
6794
6855
|
},
|
|
6856
|
+
listItemCount: {
|
|
6857
|
+
type: 'integer',
|
|
6858
|
+
minimum: 0,
|
|
6859
|
+
},
|
|
6795
6860
|
labels: {
|
|
6796
6861
|
type: 'array',
|
|
6797
6862
|
items: {
|
|
@@ -6850,6 +6915,10 @@ export const schemaDict = {
|
|
|
6850
6915
|
type: 'string',
|
|
6851
6916
|
format: 'uri',
|
|
6852
6917
|
},
|
|
6918
|
+
listItemCount: {
|
|
6919
|
+
type: 'integer',
|
|
6920
|
+
minimum: 0,
|
|
6921
|
+
},
|
|
6853
6922
|
labels: {
|
|
6854
6923
|
type: 'array',
|
|
6855
6924
|
items: {
|
|
@@ -6881,11 +6950,116 @@ export const schemaDict = {
|
|
|
6881
6950
|
},
|
|
6882
6951
|
},
|
|
6883
6952
|
},
|
|
6953
|
+
starterPackView: {
|
|
6954
|
+
type: 'object',
|
|
6955
|
+
required: ['uri', 'cid', 'record', 'creator', 'indexedAt'],
|
|
6956
|
+
properties: {
|
|
6957
|
+
uri: {
|
|
6958
|
+
type: 'string',
|
|
6959
|
+
format: 'at-uri',
|
|
6960
|
+
},
|
|
6961
|
+
cid: {
|
|
6962
|
+
type: 'string',
|
|
6963
|
+
format: 'cid',
|
|
6964
|
+
},
|
|
6965
|
+
record: {
|
|
6966
|
+
type: 'unknown',
|
|
6967
|
+
},
|
|
6968
|
+
creator: {
|
|
6969
|
+
type: 'ref',
|
|
6970
|
+
ref: 'lex:app.bsky.actor.defs#profileViewBasic',
|
|
6971
|
+
},
|
|
6972
|
+
list: {
|
|
6973
|
+
type: 'ref',
|
|
6974
|
+
ref: 'lex:app.bsky.graph.defs#listViewBasic',
|
|
6975
|
+
},
|
|
6976
|
+
listItemsSample: {
|
|
6977
|
+
type: 'array',
|
|
6978
|
+
maxLength: 12,
|
|
6979
|
+
items: {
|
|
6980
|
+
type: 'ref',
|
|
6981
|
+
ref: 'lex:app.bsky.graph.defs#listItemView',
|
|
6982
|
+
},
|
|
6983
|
+
},
|
|
6984
|
+
feeds: {
|
|
6985
|
+
type: 'array',
|
|
6986
|
+
maxLength: 3,
|
|
6987
|
+
items: {
|
|
6988
|
+
type: 'ref',
|
|
6989
|
+
ref: 'lex:app.bsky.feed.defs#generatorView',
|
|
6990
|
+
},
|
|
6991
|
+
},
|
|
6992
|
+
joinedWeekCount: {
|
|
6993
|
+
type: 'integer',
|
|
6994
|
+
minimum: 0,
|
|
6995
|
+
},
|
|
6996
|
+
joinedAllTimeCount: {
|
|
6997
|
+
type: 'integer',
|
|
6998
|
+
minimum: 0,
|
|
6999
|
+
},
|
|
7000
|
+
labels: {
|
|
7001
|
+
type: 'array',
|
|
7002
|
+
items: {
|
|
7003
|
+
type: 'ref',
|
|
7004
|
+
ref: 'lex:com.atproto.label.defs#label',
|
|
7005
|
+
},
|
|
7006
|
+
},
|
|
7007
|
+
indexedAt: {
|
|
7008
|
+
type: 'string',
|
|
7009
|
+
format: 'datetime',
|
|
7010
|
+
},
|
|
7011
|
+
},
|
|
7012
|
+
},
|
|
7013
|
+
starterPackViewBasic: {
|
|
7014
|
+
type: 'object',
|
|
7015
|
+
required: ['uri', 'cid', 'record', 'creator', 'indexedAt'],
|
|
7016
|
+
properties: {
|
|
7017
|
+
uri: {
|
|
7018
|
+
type: 'string',
|
|
7019
|
+
format: 'at-uri',
|
|
7020
|
+
},
|
|
7021
|
+
cid: {
|
|
7022
|
+
type: 'string',
|
|
7023
|
+
format: 'cid',
|
|
7024
|
+
},
|
|
7025
|
+
record: {
|
|
7026
|
+
type: 'unknown',
|
|
7027
|
+
},
|
|
7028
|
+
creator: {
|
|
7029
|
+
type: 'ref',
|
|
7030
|
+
ref: 'lex:app.bsky.actor.defs#profileViewBasic',
|
|
7031
|
+
},
|
|
7032
|
+
listItemCount: {
|
|
7033
|
+
type: 'integer',
|
|
7034
|
+
minimum: 0,
|
|
7035
|
+
},
|
|
7036
|
+
joinedWeekCount: {
|
|
7037
|
+
type: 'integer',
|
|
7038
|
+
minimum: 0,
|
|
7039
|
+
},
|
|
7040
|
+
joinedAllTimeCount: {
|
|
7041
|
+
type: 'integer',
|
|
7042
|
+
minimum: 0,
|
|
7043
|
+
},
|
|
7044
|
+
labels: {
|
|
7045
|
+
type: 'array',
|
|
7046
|
+
items: {
|
|
7047
|
+
type: 'ref',
|
|
7048
|
+
ref: 'lex:com.atproto.label.defs#label',
|
|
7049
|
+
},
|
|
7050
|
+
},
|
|
7051
|
+
indexedAt: {
|
|
7052
|
+
type: 'string',
|
|
7053
|
+
format: 'datetime',
|
|
7054
|
+
},
|
|
7055
|
+
},
|
|
7056
|
+
},
|
|
6884
7057
|
listPurpose: {
|
|
6885
7058
|
type: 'string',
|
|
6886
7059
|
knownValues: [
|
|
6887
7060
|
'app.bsky.graph.defs#modlist',
|
|
6888
7061
|
'app.bsky.graph.defs#curatelist',
|
|
7062
|
+
'app.bsky.graph.defs#referencelist',
|
|
6889
7063
|
],
|
|
6890
7064
|
},
|
|
6891
7065
|
modlist: {
|
|
@@ -6898,6 +7072,11 @@ export const schemaDict = {
|
|
|
6898
7072
|
description:
|
|
6899
7073
|
'A list of actors used for curation purposes such as list feeds or interaction gating.',
|
|
6900
7074
|
},
|
|
7075
|
+
referencelist: {
|
|
7076
|
+
type: 'token',
|
|
7077
|
+
description:
|
|
7078
|
+
'A list of actors used for only for reference purposes such as within a starter pack.',
|
|
7079
|
+
},
|
|
6901
7080
|
listViewerState: {
|
|
6902
7081
|
type: 'object',
|
|
6903
7082
|
properties: {
|
|
@@ -6977,6 +7156,54 @@ export const schemaDict = {
|
|
|
6977
7156
|
},
|
|
6978
7157
|
},
|
|
6979
7158
|
},
|
|
7159
|
+
AppBskyGraphGetActorStarterPacks: {
|
|
7160
|
+
lexicon: 1,
|
|
7161
|
+
id: 'app.bsky.graph.getActorStarterPacks',
|
|
7162
|
+
defs: {
|
|
7163
|
+
main: {
|
|
7164
|
+
type: 'query',
|
|
7165
|
+
description: 'Get a list of starter packs created by the actor.',
|
|
7166
|
+
parameters: {
|
|
7167
|
+
type: 'params',
|
|
7168
|
+
required: ['actor'],
|
|
7169
|
+
properties: {
|
|
7170
|
+
actor: {
|
|
7171
|
+
type: 'string',
|
|
7172
|
+
format: 'at-identifier',
|
|
7173
|
+
},
|
|
7174
|
+
limit: {
|
|
7175
|
+
type: 'integer',
|
|
7176
|
+
minimum: 1,
|
|
7177
|
+
maximum: 100,
|
|
7178
|
+
default: 50,
|
|
7179
|
+
},
|
|
7180
|
+
cursor: {
|
|
7181
|
+
type: 'string',
|
|
7182
|
+
},
|
|
7183
|
+
},
|
|
7184
|
+
},
|
|
7185
|
+
output: {
|
|
7186
|
+
encoding: 'application/json',
|
|
7187
|
+
schema: {
|
|
7188
|
+
type: 'object',
|
|
7189
|
+
required: ['starterPacks'],
|
|
7190
|
+
properties: {
|
|
7191
|
+
cursor: {
|
|
7192
|
+
type: 'string',
|
|
7193
|
+
},
|
|
7194
|
+
starterPacks: {
|
|
7195
|
+
type: 'array',
|
|
7196
|
+
items: {
|
|
7197
|
+
type: 'ref',
|
|
7198
|
+
ref: 'lex:app.bsky.graph.defs#starterPackViewBasic',
|
|
7199
|
+
},
|
|
7200
|
+
},
|
|
7201
|
+
},
|
|
7202
|
+
},
|
|
7203
|
+
},
|
|
7204
|
+
},
|
|
7205
|
+
},
|
|
7206
|
+
},
|
|
6980
7207
|
AppBskyGraphGetBlocks: {
|
|
6981
7208
|
lexicon: 1,
|
|
6982
7209
|
id: 'app.bsky.graph.getBlocks',
|
|
@@ -7478,6 +7705,80 @@ export const schemaDict = {
|
|
|
7478
7705
|
},
|
|
7479
7706
|
},
|
|
7480
7707
|
},
|
|
7708
|
+
AppBskyGraphGetStarterPack: {
|
|
7709
|
+
lexicon: 1,
|
|
7710
|
+
id: 'app.bsky.graph.getStarterPack',
|
|
7711
|
+
defs: {
|
|
7712
|
+
main: {
|
|
7713
|
+
type: 'query',
|
|
7714
|
+
description: 'Gets a view of a starter pack.',
|
|
7715
|
+
parameters: {
|
|
7716
|
+
type: 'params',
|
|
7717
|
+
required: ['starterPack'],
|
|
7718
|
+
properties: {
|
|
7719
|
+
starterPack: {
|
|
7720
|
+
type: 'string',
|
|
7721
|
+
format: 'at-uri',
|
|
7722
|
+
description: 'Reference (AT-URI) of the starter pack record.',
|
|
7723
|
+
},
|
|
7724
|
+
},
|
|
7725
|
+
},
|
|
7726
|
+
output: {
|
|
7727
|
+
encoding: 'application/json',
|
|
7728
|
+
schema: {
|
|
7729
|
+
type: 'object',
|
|
7730
|
+
required: ['starterPack'],
|
|
7731
|
+
properties: {
|
|
7732
|
+
starterPack: {
|
|
7733
|
+
type: 'ref',
|
|
7734
|
+
ref: 'lex:app.bsky.graph.defs#starterPackView',
|
|
7735
|
+
},
|
|
7736
|
+
},
|
|
7737
|
+
},
|
|
7738
|
+
},
|
|
7739
|
+
},
|
|
7740
|
+
},
|
|
7741
|
+
},
|
|
7742
|
+
AppBskyGraphGetStarterPacks: {
|
|
7743
|
+
lexicon: 1,
|
|
7744
|
+
id: 'app.bsky.graph.getStarterPacks',
|
|
7745
|
+
defs: {
|
|
7746
|
+
main: {
|
|
7747
|
+
type: 'query',
|
|
7748
|
+
description: 'Get views for a list of starter packs.',
|
|
7749
|
+
parameters: {
|
|
7750
|
+
type: 'params',
|
|
7751
|
+
required: ['uris'],
|
|
7752
|
+
properties: {
|
|
7753
|
+
uris: {
|
|
7754
|
+
type: 'array',
|
|
7755
|
+
items: {
|
|
7756
|
+
type: 'string',
|
|
7757
|
+
format: 'at-uri',
|
|
7758
|
+
},
|
|
7759
|
+
maxLength: 25,
|
|
7760
|
+
},
|
|
7761
|
+
},
|
|
7762
|
+
},
|
|
7763
|
+
output: {
|
|
7764
|
+
encoding: 'application/json',
|
|
7765
|
+
schema: {
|
|
7766
|
+
type: 'object',
|
|
7767
|
+
required: ['starterPacks'],
|
|
7768
|
+
properties: {
|
|
7769
|
+
starterPacks: {
|
|
7770
|
+
type: 'array',
|
|
7771
|
+
items: {
|
|
7772
|
+
type: 'ref',
|
|
7773
|
+
ref: 'lex:app.bsky.graph.defs#starterPackViewBasic',
|
|
7774
|
+
},
|
|
7775
|
+
},
|
|
7776
|
+
},
|
|
7777
|
+
},
|
|
7778
|
+
},
|
|
7779
|
+
},
|
|
7780
|
+
},
|
|
7781
|
+
},
|
|
7481
7782
|
AppBskyGraphGetSuggestedFollowsByActor: {
|
|
7482
7783
|
lexicon: 1,
|
|
7483
7784
|
id: 'app.bsky.graph.getSuggestedFollowsByActor',
|
|
@@ -7702,6 +8003,70 @@ export const schemaDict = {
|
|
|
7702
8003
|
},
|
|
7703
8004
|
},
|
|
7704
8005
|
},
|
|
8006
|
+
AppBskyGraphStarterpack: {
|
|
8007
|
+
lexicon: 1,
|
|
8008
|
+
id: 'app.bsky.graph.starterpack',
|
|
8009
|
+
defs: {
|
|
8010
|
+
main: {
|
|
8011
|
+
type: 'record',
|
|
8012
|
+
description:
|
|
8013
|
+
'Record defining a starter pack of actors and feeds for new users.',
|
|
8014
|
+
key: 'tid',
|
|
8015
|
+
record: {
|
|
8016
|
+
type: 'object',
|
|
8017
|
+
required: ['name', 'list', 'createdAt'],
|
|
8018
|
+
properties: {
|
|
8019
|
+
name: {
|
|
8020
|
+
type: 'string',
|
|
8021
|
+
maxGraphemes: 50,
|
|
8022
|
+
maxLength: 500,
|
|
8023
|
+
minLength: 1,
|
|
8024
|
+
description: 'Display name for starter pack; can not be empty.',
|
|
8025
|
+
},
|
|
8026
|
+
description: {
|
|
8027
|
+
type: 'string',
|
|
8028
|
+
maxGraphemes: 300,
|
|
8029
|
+
maxLength: 3000,
|
|
8030
|
+
},
|
|
8031
|
+
descriptionFacets: {
|
|
8032
|
+
type: 'array',
|
|
8033
|
+
items: {
|
|
8034
|
+
type: 'ref',
|
|
8035
|
+
ref: 'lex:app.bsky.richtext.facet',
|
|
8036
|
+
},
|
|
8037
|
+
},
|
|
8038
|
+
list: {
|
|
8039
|
+
type: 'string',
|
|
8040
|
+
format: 'at-uri',
|
|
8041
|
+
description: 'Reference (AT-URI) to the list record.',
|
|
8042
|
+
},
|
|
8043
|
+
feeds: {
|
|
8044
|
+
type: 'array',
|
|
8045
|
+
maxLength: 3,
|
|
8046
|
+
items: {
|
|
8047
|
+
type: 'ref',
|
|
8048
|
+
ref: 'lex:app.bsky.graph.starterpack#feedItem',
|
|
8049
|
+
},
|
|
8050
|
+
},
|
|
8051
|
+
createdAt: {
|
|
8052
|
+
type: 'string',
|
|
8053
|
+
format: 'datetime',
|
|
8054
|
+
},
|
|
8055
|
+
},
|
|
8056
|
+
},
|
|
8057
|
+
},
|
|
8058
|
+
feedItem: {
|
|
8059
|
+
type: 'object',
|
|
8060
|
+
required: ['uri'],
|
|
8061
|
+
properties: {
|
|
8062
|
+
uri: {
|
|
8063
|
+
type: 'string',
|
|
8064
|
+
format: 'at-uri',
|
|
8065
|
+
},
|
|
8066
|
+
},
|
|
8067
|
+
},
|
|
8068
|
+
},
|
|
8069
|
+
},
|
|
7705
8070
|
AppBskyGraphUnmuteActor: {
|
|
7706
8071
|
lexicon: 1,
|
|
7707
8072
|
id: 'app.bsky.graph.unmuteActor',
|
|
@@ -8072,7 +8437,7 @@ export const schemaDict = {
|
|
|
8072
8437
|
reason: {
|
|
8073
8438
|
type: 'string',
|
|
8074
8439
|
description:
|
|
8075
|
-
"Expected values are 'like', 'repost', 'follow', 'mention', 'reply', and '
|
|
8440
|
+
"Expected values are 'like', 'repost', 'follow', 'mention', 'reply', 'quote', and 'starterpack-joined'.",
|
|
8076
8441
|
knownValues: [
|
|
8077
8442
|
'like',
|
|
8078
8443
|
'repost',
|
|
@@ -8080,6 +8445,7 @@ export const schemaDict = {
|
|
|
8080
8445
|
'mention',
|
|
8081
8446
|
'reply',
|
|
8082
8447
|
'quote',
|
|
8448
|
+
'starterpack-joined',
|
|
8083
8449
|
],
|
|
8084
8450
|
},
|
|
8085
8451
|
reasonSubject: {
|
|
@@ -9646,6 +10012,7 @@ export const ids = {
|
|
|
9646
10012
|
AppBskyGraphBlock: 'app.bsky.graph.block',
|
|
9647
10013
|
AppBskyGraphDefs: 'app.bsky.graph.defs',
|
|
9648
10014
|
AppBskyGraphFollow: 'app.bsky.graph.follow',
|
|
10015
|
+
AppBskyGraphGetActorStarterPacks: 'app.bsky.graph.getActorStarterPacks',
|
|
9649
10016
|
AppBskyGraphGetBlocks: 'app.bsky.graph.getBlocks',
|
|
9650
10017
|
AppBskyGraphGetFollowers: 'app.bsky.graph.getFollowers',
|
|
9651
10018
|
AppBskyGraphGetFollows: 'app.bsky.graph.getFollows',
|
|
@@ -9656,6 +10023,8 @@ export const ids = {
|
|
|
9656
10023
|
AppBskyGraphGetLists: 'app.bsky.graph.getLists',
|
|
9657
10024
|
AppBskyGraphGetMutes: 'app.bsky.graph.getMutes',
|
|
9658
10025
|
AppBskyGraphGetRelationships: 'app.bsky.graph.getRelationships',
|
|
10026
|
+
AppBskyGraphGetStarterPack: 'app.bsky.graph.getStarterPack',
|
|
10027
|
+
AppBskyGraphGetStarterPacks: 'app.bsky.graph.getStarterPacks',
|
|
9659
10028
|
AppBskyGraphGetSuggestedFollowsByActor:
|
|
9660
10029
|
'app.bsky.graph.getSuggestedFollowsByActor',
|
|
9661
10030
|
AppBskyGraphList: 'app.bsky.graph.list',
|
|
@@ -9664,6 +10033,7 @@ export const ids = {
|
|
|
9664
10033
|
AppBskyGraphMuteActor: 'app.bsky.graph.muteActor',
|
|
9665
10034
|
AppBskyGraphMuteActorList: 'app.bsky.graph.muteActorList',
|
|
9666
10035
|
AppBskyGraphMuteThread: 'app.bsky.graph.muteThread',
|
|
10036
|
+
AppBskyGraphStarterpack: 'app.bsky.graph.starterpack',
|
|
9667
10037
|
AppBskyGraphUnmuteActor: 'app.bsky.graph.unmuteActor',
|
|
9668
10038
|
AppBskyGraphUnmuteActorList: 'app.bsky.graph.unmuteActorList',
|
|
9669
10039
|
AppBskyGraphUnmuteThread: 'app.bsky.graph.unmuteThread',
|
|
@@ -16,6 +16,7 @@ export interface ProfileViewBasic {
|
|
|
16
16
|
associated?: ProfileAssociated
|
|
17
17
|
viewer?: ViewerState
|
|
18
18
|
labels?: ComAtprotoLabelDefs.Label[]
|
|
19
|
+
createdAt?: string
|
|
19
20
|
[k: string]: unknown
|
|
20
21
|
}
|
|
21
22
|
|
|
@@ -39,6 +40,7 @@ export interface ProfileView {
|
|
|
39
40
|
avatar?: string
|
|
40
41
|
associated?: ProfileAssociated
|
|
41
42
|
indexedAt?: string
|
|
43
|
+
createdAt?: string
|
|
42
44
|
viewer?: ViewerState
|
|
43
45
|
labels?: ComAtprotoLabelDefs.Label[]
|
|
44
46
|
[k: string]: unknown
|
|
@@ -67,7 +69,9 @@ export interface ProfileViewDetailed {
|
|
|
67
69
|
followsCount?: number
|
|
68
70
|
postsCount?: number
|
|
69
71
|
associated?: ProfileAssociated
|
|
72
|
+
joinedViaStarterPack?: AppBskyGraphDefs.StarterPackViewBasic
|
|
70
73
|
indexedAt?: string
|
|
74
|
+
createdAt?: string
|
|
71
75
|
viewer?: ViewerState
|
|
72
76
|
labels?: ComAtprotoLabelDefs.Label[]
|
|
73
77
|
[k: string]: unknown
|
|
@@ -88,6 +92,7 @@ export function validateProfileViewDetailed(v: unknown): ValidationResult {
|
|
|
88
92
|
export interface ProfileAssociated {
|
|
89
93
|
lists?: number
|
|
90
94
|
feedgens?: number
|
|
95
|
+
starterPacks?: number
|
|
91
96
|
labeler?: boolean
|
|
92
97
|
chat?: ProfileAssociatedChat
|
|
93
98
|
[k: string]: unknown
|
|
@@ -179,6 +184,7 @@ export type Preferences = (
|
|
|
179
184
|
| InterestsPref
|
|
180
185
|
| MutedWordsPref
|
|
181
186
|
| HiddenPostsPref
|
|
187
|
+
| BskyAppStatePref
|
|
182
188
|
| { $type: string; [k: string]: unknown }
|
|
183
189
|
)[]
|
|
184
190
|
|
|
@@ -451,3 +457,41 @@ export function isLabelerPrefItem(v: unknown): v is LabelerPrefItem {
|
|
|
451
457
|
export function validateLabelerPrefItem(v: unknown): ValidationResult {
|
|
452
458
|
return lexicons.validate('app.bsky.actor.defs#labelerPrefItem', v)
|
|
453
459
|
}
|
|
460
|
+
|
|
461
|
+
/** A grab bag of state that's specific to the bsky.app program. Third-party apps shouldn't use this. */
|
|
462
|
+
export interface BskyAppStatePref {
|
|
463
|
+
activeProgressGuide?: BskyAppProgressGuide
|
|
464
|
+
/** An array of tokens which identify nudges (modals, popups, tours, highlight dots) that should be shown to the user. */
|
|
465
|
+
queuedNudges?: string[]
|
|
466
|
+
[k: string]: unknown
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
export function isBskyAppStatePref(v: unknown): v is BskyAppStatePref {
|
|
470
|
+
return (
|
|
471
|
+
isObj(v) &&
|
|
472
|
+
hasProp(v, '$type') &&
|
|
473
|
+
v.$type === 'app.bsky.actor.defs#bskyAppStatePref'
|
|
474
|
+
)
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
export function validateBskyAppStatePref(v: unknown): ValidationResult {
|
|
478
|
+
return lexicons.validate('app.bsky.actor.defs#bskyAppStatePref', v)
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
/** If set, an active progress guide. Once completed, can be set to undefined. Should have unspecced fields tracking progress. */
|
|
482
|
+
export interface BskyAppProgressGuide {
|
|
483
|
+
guide: string
|
|
484
|
+
[k: string]: unknown
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
export function isBskyAppProgressGuide(v: unknown): v is BskyAppProgressGuide {
|
|
488
|
+
return (
|
|
489
|
+
isObj(v) &&
|
|
490
|
+
hasProp(v, '$type') &&
|
|
491
|
+
v.$type === 'app.bsky.actor.defs#bskyAppProgressGuide'
|
|
492
|
+
)
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
export function validateBskyAppProgressGuide(v: unknown): ValidationResult {
|
|
496
|
+
return lexicons.validate('app.bsky.actor.defs#bskyAppProgressGuide', v)
|
|
497
|
+
}
|
|
@@ -6,6 +6,7 @@ import { lexicons } from '../../../../lexicons'
|
|
|
6
6
|
import { isObj, hasProp } from '../../../../util'
|
|
7
7
|
import { CID } from 'multiformats/cid'
|
|
8
8
|
import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs'
|
|
9
|
+
import * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef'
|
|
9
10
|
|
|
10
11
|
export interface Record {
|
|
11
12
|
displayName?: string
|
|
@@ -18,6 +19,8 @@ export interface Record {
|
|
|
18
19
|
labels?:
|
|
19
20
|
| ComAtprotoLabelDefs.SelfLabels
|
|
20
21
|
| { $type: string; [k: string]: unknown }
|
|
22
|
+
joinedViaStarterPack?: ComAtprotoRepoStrongRef.Main
|
|
23
|
+
createdAt?: string
|
|
21
24
|
[k: string]: unknown
|
|
22
25
|
}
|
|
23
26
|
|
|
@@ -8,6 +8,7 @@ import { CID } from 'multiformats/cid'
|
|
|
8
8
|
import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs'
|
|
9
9
|
import * as AppBskyActorDefs from '../actor/defs'
|
|
10
10
|
import * as AppBskyRichtextFacet from '../richtext/facet'
|
|
11
|
+
import * as AppBskyFeedDefs from '../feed/defs'
|
|
11
12
|
|
|
12
13
|
export interface ListViewBasic {
|
|
13
14
|
uri: string
|
|
@@ -15,6 +16,7 @@ export interface ListViewBasic {
|
|
|
15
16
|
name: string
|
|
16
17
|
purpose: ListPurpose
|
|
17
18
|
avatar?: string
|
|
19
|
+
listItemCount?: number
|
|
18
20
|
labels?: ComAtprotoLabelDefs.Label[]
|
|
19
21
|
viewer?: ListViewerState
|
|
20
22
|
indexedAt?: string
|
|
@@ -42,6 +44,7 @@ export interface ListView {
|
|
|
42
44
|
description?: string
|
|
43
45
|
descriptionFacets?: AppBskyRichtextFacet.Main[]
|
|
44
46
|
avatar?: string
|
|
47
|
+
listItemCount?: number
|
|
45
48
|
labels?: ComAtprotoLabelDefs.Label[]
|
|
46
49
|
viewer?: ListViewerState
|
|
47
50
|
indexedAt: string
|
|
@@ -78,15 +81,70 @@ export function validateListItemView(v: unknown): ValidationResult {
|
|
|
78
81
|
return lexicons.validate('app.bsky.graph.defs#listItemView', v)
|
|
79
82
|
}
|
|
80
83
|
|
|
84
|
+
export interface StarterPackView {
|
|
85
|
+
uri: string
|
|
86
|
+
cid: string
|
|
87
|
+
record: {}
|
|
88
|
+
creator: AppBskyActorDefs.ProfileViewBasic
|
|
89
|
+
list?: ListViewBasic
|
|
90
|
+
listItemsSample?: ListItemView[]
|
|
91
|
+
feeds?: AppBskyFeedDefs.GeneratorView[]
|
|
92
|
+
joinedWeekCount?: number
|
|
93
|
+
joinedAllTimeCount?: number
|
|
94
|
+
labels?: ComAtprotoLabelDefs.Label[]
|
|
95
|
+
indexedAt: string
|
|
96
|
+
[k: string]: unknown
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function isStarterPackView(v: unknown): v is StarterPackView {
|
|
100
|
+
return (
|
|
101
|
+
isObj(v) &&
|
|
102
|
+
hasProp(v, '$type') &&
|
|
103
|
+
v.$type === 'app.bsky.graph.defs#starterPackView'
|
|
104
|
+
)
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export function validateStarterPackView(v: unknown): ValidationResult {
|
|
108
|
+
return lexicons.validate('app.bsky.graph.defs#starterPackView', v)
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export interface StarterPackViewBasic {
|
|
112
|
+
uri: string
|
|
113
|
+
cid: string
|
|
114
|
+
record: {}
|
|
115
|
+
creator: AppBskyActorDefs.ProfileViewBasic
|
|
116
|
+
listItemCount?: number
|
|
117
|
+
joinedWeekCount?: number
|
|
118
|
+
joinedAllTimeCount?: number
|
|
119
|
+
labels?: ComAtprotoLabelDefs.Label[]
|
|
120
|
+
indexedAt: string
|
|
121
|
+
[k: string]: unknown
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export function isStarterPackViewBasic(v: unknown): v is StarterPackViewBasic {
|
|
125
|
+
return (
|
|
126
|
+
isObj(v) &&
|
|
127
|
+
hasProp(v, '$type') &&
|
|
128
|
+
v.$type === 'app.bsky.graph.defs#starterPackViewBasic'
|
|
129
|
+
)
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export function validateStarterPackViewBasic(v: unknown): ValidationResult {
|
|
133
|
+
return lexicons.validate('app.bsky.graph.defs#starterPackViewBasic', v)
|
|
134
|
+
}
|
|
135
|
+
|
|
81
136
|
export type ListPurpose =
|
|
82
137
|
| 'app.bsky.graph.defs#modlist'
|
|
83
138
|
| 'app.bsky.graph.defs#curatelist'
|
|
139
|
+
| 'app.bsky.graph.defs#referencelist'
|
|
84
140
|
| (string & {})
|
|
85
141
|
|
|
86
142
|
/** A list of actors to apply an aggregate moderation action (mute/block) on. */
|
|
87
143
|
export const MODLIST = 'app.bsky.graph.defs#modlist'
|
|
88
144
|
/** A list of actors used for curation purposes such as list feeds or interaction gating. */
|
|
89
145
|
export const CURATELIST = 'app.bsky.graph.defs#curatelist'
|
|
146
|
+
/** A list of actors used for only for reference purposes such as within a starter pack. */
|
|
147
|
+
export const REFERENCELIST = 'app.bsky.graph.defs#referencelist'
|
|
90
148
|
|
|
91
149
|
export interface ListViewerState {
|
|
92
150
|
muted?: boolean
|