@atproto/bsky 0.0.174 → 0.0.176
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/unspecced/initAgeAssurance.d.ts.map +1 -1
- package/dist/api/app/bsky/unspecced/initAgeAssurance.js +0 -6
- package/dist/api/app/bsky/unspecced/initAgeAssurance.js.map +1 -1
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +0 -2
- package/dist/api/index.js.map +1 -1
- package/dist/feature-gates.d.ts +1 -2
- package/dist/feature-gates.d.ts.map +1 -1
- package/dist/feature-gates.js +0 -1
- package/dist/feature-gates.js.map +1 -1
- package/dist/lexicon/index.d.ts +4 -4
- package/dist/lexicon/index.d.ts.map +1 -1
- package/dist/lexicon/index.js +8 -8
- package/dist/lexicon/index.js.map +1 -1
- package/dist/lexicon/lexicons.d.ts +254 -254
- package/dist/lexicon/lexicons.js +134 -134
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/{app/bsky/unspecced → com/atproto/temp}/checkHandleAvailability.d.ts +6 -6
- package/dist/lexicon/types/com/atproto/temp/checkHandleAvailability.d.ts.map +1 -0
- package/dist/lexicon/types/{app/bsky/unspecced → com/atproto/temp}/checkHandleAvailability.js +1 -1
- package/dist/lexicon/types/com/atproto/temp/checkHandleAvailability.js.map +1 -0
- package/dist/views/index.d.ts.map +1 -1
- package/dist/views/index.js +1 -0
- package/dist/views/index.js.map +1 -1
- package/package.json +9 -9
- package/src/api/app/bsky/unspecced/initAgeAssurance.ts +0 -8
- package/src/api/index.ts +0 -2
- package/src/feature-gates.ts +0 -1
- package/src/lexicon/index.ts +24 -24
- package/src/lexicon/lexicons.ts +143 -143
- package/src/lexicon/types/{app/bsky/unspecced → com/atproto/temp}/checkHandleAvailability.ts +4 -4
- package/src/views/index.ts +1 -0
- package/tests/__snapshots__/feed-generation.test.ts.snap +115 -12
- package/tests/feed-generation.test.ts +53 -10
- package/tests/views/actor-search.test.ts +3 -1
- package/tests/views/age-assurance.test.ts +0 -3
- package/tests/views/author-feed.test.ts +3 -1
- package/tests/views/follows.test.ts +6 -2
- package/tests/views/likes.test.ts +3 -1
- package/tests/views/list-feed.test.ts +3 -1
- package/tests/views/mutes.test.ts +3 -1
- package/tests/views/notifications.test.ts +14 -7
- package/tests/views/reposts.test.ts +3 -1
- package/tests/views/timeline.test.ts +3 -1
- package/tsconfig.build.tsbuildinfo +1 -1
- package/tsconfig.tests.tsbuildinfo +1 -1
- package/dist/api/app/bsky/unspecced/checkHandleAvailability.d.ts +0 -4
- package/dist/api/app/bsky/unspecced/checkHandleAvailability.d.ts.map +0 -1
- package/dist/api/app/bsky/unspecced/checkHandleAvailability.js +0 -238
- package/dist/api/app/bsky/unspecced/checkHandleAvailability.js.map +0 -1
- package/dist/lexicon/types/app/bsky/unspecced/checkHandleAvailability.d.ts.map +0 -1
- package/dist/lexicon/types/app/bsky/unspecced/checkHandleAvailability.js.map +0 -1
- package/src/api/app/bsky/unspecced/checkHandleAvailability.ts +0 -291
- package/tests/views/handle-availability.test.ts +0 -294
package/src/lexicon/lexicons.ts
CHANGED
|
@@ -4449,6 +4449,104 @@ export const schemaDict = {
|
|
|
4449
4449
|
},
|
|
4450
4450
|
},
|
|
4451
4451
|
},
|
|
4452
|
+
ComAtprotoTempCheckHandleAvailability: {
|
|
4453
|
+
lexicon: 1,
|
|
4454
|
+
id: 'com.atproto.temp.checkHandleAvailability',
|
|
4455
|
+
defs: {
|
|
4456
|
+
main: {
|
|
4457
|
+
type: 'query',
|
|
4458
|
+
description:
|
|
4459
|
+
'Checks whether the provided handle is available. If the handle is not available, available suggestions will be returned. Optional inputs will be used to generate suggestions.',
|
|
4460
|
+
parameters: {
|
|
4461
|
+
type: 'params',
|
|
4462
|
+
required: ['handle'],
|
|
4463
|
+
properties: {
|
|
4464
|
+
handle: {
|
|
4465
|
+
type: 'string',
|
|
4466
|
+
format: 'handle',
|
|
4467
|
+
description:
|
|
4468
|
+
'Tentative handle. Will be checked for availability or used to build handle suggestions.',
|
|
4469
|
+
},
|
|
4470
|
+
email: {
|
|
4471
|
+
type: 'string',
|
|
4472
|
+
description:
|
|
4473
|
+
'User-provided email. Might be used to build handle suggestions.',
|
|
4474
|
+
},
|
|
4475
|
+
birthDate: {
|
|
4476
|
+
type: 'string',
|
|
4477
|
+
format: 'datetime',
|
|
4478
|
+
description:
|
|
4479
|
+
'User-provided birth date. Might be used to build handle suggestions.',
|
|
4480
|
+
},
|
|
4481
|
+
},
|
|
4482
|
+
},
|
|
4483
|
+
output: {
|
|
4484
|
+
encoding: 'application/json',
|
|
4485
|
+
schema: {
|
|
4486
|
+
type: 'object',
|
|
4487
|
+
required: ['handle', 'result'],
|
|
4488
|
+
properties: {
|
|
4489
|
+
handle: {
|
|
4490
|
+
type: 'string',
|
|
4491
|
+
format: 'handle',
|
|
4492
|
+
description: 'Echo of the input handle.',
|
|
4493
|
+
},
|
|
4494
|
+
result: {
|
|
4495
|
+
type: 'union',
|
|
4496
|
+
refs: [
|
|
4497
|
+
'lex:com.atproto.temp.checkHandleAvailability#resultAvailable',
|
|
4498
|
+
'lex:com.atproto.temp.checkHandleAvailability#resultUnavailable',
|
|
4499
|
+
],
|
|
4500
|
+
},
|
|
4501
|
+
},
|
|
4502
|
+
},
|
|
4503
|
+
},
|
|
4504
|
+
errors: [
|
|
4505
|
+
{
|
|
4506
|
+
name: 'InvalidEmail',
|
|
4507
|
+
description: 'An invalid email was provided.',
|
|
4508
|
+
},
|
|
4509
|
+
],
|
|
4510
|
+
},
|
|
4511
|
+
resultAvailable: {
|
|
4512
|
+
type: 'object',
|
|
4513
|
+
description: 'Indicates the provided handle is available.',
|
|
4514
|
+
properties: {},
|
|
4515
|
+
},
|
|
4516
|
+
resultUnavailable: {
|
|
4517
|
+
type: 'object',
|
|
4518
|
+
description:
|
|
4519
|
+
'Indicates the provided handle is unavailable and gives suggestions of available handles.',
|
|
4520
|
+
required: ['suggestions'],
|
|
4521
|
+
properties: {
|
|
4522
|
+
suggestions: {
|
|
4523
|
+
type: 'array',
|
|
4524
|
+
description:
|
|
4525
|
+
'List of suggested handles based on the provided inputs.',
|
|
4526
|
+
items: {
|
|
4527
|
+
type: 'ref',
|
|
4528
|
+
ref: 'lex:com.atproto.temp.checkHandleAvailability#suggestion',
|
|
4529
|
+
},
|
|
4530
|
+
},
|
|
4531
|
+
},
|
|
4532
|
+
},
|
|
4533
|
+
suggestion: {
|
|
4534
|
+
type: 'object',
|
|
4535
|
+
required: ['handle', 'method'],
|
|
4536
|
+
properties: {
|
|
4537
|
+
handle: {
|
|
4538
|
+
type: 'string',
|
|
4539
|
+
format: 'handle',
|
|
4540
|
+
},
|
|
4541
|
+
method: {
|
|
4542
|
+
type: 'string',
|
|
4543
|
+
description:
|
|
4544
|
+
'Method used to build this suggestion. Should be considered opaque to clients. Can be used for metrics.',
|
|
4545
|
+
},
|
|
4546
|
+
},
|
|
4547
|
+
},
|
|
4548
|
+
},
|
|
4549
|
+
},
|
|
4452
4550
|
ComAtprotoTempCheckSignupQueue: {
|
|
4453
4551
|
lexicon: 1,
|
|
4454
4552
|
id: 'com.atproto.temp.checkSignupQueue',
|
|
@@ -7282,48 +7380,6 @@ export const schemaDict = {
|
|
|
7282
7380
|
},
|
|
7283
7381
|
},
|
|
7284
7382
|
},
|
|
7285
|
-
AppBskyFeedGetPosts: {
|
|
7286
|
-
lexicon: 1,
|
|
7287
|
-
id: 'app.bsky.feed.getPosts',
|
|
7288
|
-
defs: {
|
|
7289
|
-
main: {
|
|
7290
|
-
type: 'query',
|
|
7291
|
-
description:
|
|
7292
|
-
"Gets post views for a specified list of posts (by AT-URI). This is sometimes referred to as 'hydrating' a 'feed skeleton'.",
|
|
7293
|
-
parameters: {
|
|
7294
|
-
type: 'params',
|
|
7295
|
-
required: ['uris'],
|
|
7296
|
-
properties: {
|
|
7297
|
-
uris: {
|
|
7298
|
-
type: 'array',
|
|
7299
|
-
description: 'List of post AT-URIs to return hydrated views for.',
|
|
7300
|
-
items: {
|
|
7301
|
-
type: 'string',
|
|
7302
|
-
format: 'at-uri',
|
|
7303
|
-
},
|
|
7304
|
-
maxLength: 25,
|
|
7305
|
-
},
|
|
7306
|
-
},
|
|
7307
|
-
},
|
|
7308
|
-
output: {
|
|
7309
|
-
encoding: 'application/json',
|
|
7310
|
-
schema: {
|
|
7311
|
-
type: 'object',
|
|
7312
|
-
required: ['posts'],
|
|
7313
|
-
properties: {
|
|
7314
|
-
posts: {
|
|
7315
|
-
type: 'array',
|
|
7316
|
-
items: {
|
|
7317
|
-
type: 'ref',
|
|
7318
|
-
ref: 'lex:app.bsky.feed.defs#postView',
|
|
7319
|
-
},
|
|
7320
|
-
},
|
|
7321
|
-
},
|
|
7322
|
-
},
|
|
7323
|
-
},
|
|
7324
|
-
},
|
|
7325
|
-
},
|
|
7326
|
-
},
|
|
7327
7383
|
AppBskyFeedGetPostThread: {
|
|
7328
7384
|
lexicon: 1,
|
|
7329
7385
|
id: 'app.bsky.feed.getPostThread',
|
|
@@ -7388,6 +7444,48 @@ export const schemaDict = {
|
|
|
7388
7444
|
},
|
|
7389
7445
|
},
|
|
7390
7446
|
},
|
|
7447
|
+
AppBskyFeedGetPosts: {
|
|
7448
|
+
lexicon: 1,
|
|
7449
|
+
id: 'app.bsky.feed.getPosts',
|
|
7450
|
+
defs: {
|
|
7451
|
+
main: {
|
|
7452
|
+
type: 'query',
|
|
7453
|
+
description:
|
|
7454
|
+
"Gets post views for a specified list of posts (by AT-URI). This is sometimes referred to as 'hydrating' a 'feed skeleton'.",
|
|
7455
|
+
parameters: {
|
|
7456
|
+
type: 'params',
|
|
7457
|
+
required: ['uris'],
|
|
7458
|
+
properties: {
|
|
7459
|
+
uris: {
|
|
7460
|
+
type: 'array',
|
|
7461
|
+
description: 'List of post AT-URIs to return hydrated views for.',
|
|
7462
|
+
items: {
|
|
7463
|
+
type: 'string',
|
|
7464
|
+
format: 'at-uri',
|
|
7465
|
+
},
|
|
7466
|
+
maxLength: 25,
|
|
7467
|
+
},
|
|
7468
|
+
},
|
|
7469
|
+
},
|
|
7470
|
+
output: {
|
|
7471
|
+
encoding: 'application/json',
|
|
7472
|
+
schema: {
|
|
7473
|
+
type: 'object',
|
|
7474
|
+
required: ['posts'],
|
|
7475
|
+
properties: {
|
|
7476
|
+
posts: {
|
|
7477
|
+
type: 'array',
|
|
7478
|
+
items: {
|
|
7479
|
+
type: 'ref',
|
|
7480
|
+
ref: 'lex:app.bsky.feed.defs#postView',
|
|
7481
|
+
},
|
|
7482
|
+
},
|
|
7483
|
+
},
|
|
7484
|
+
},
|
|
7485
|
+
},
|
|
7486
|
+
},
|
|
7487
|
+
},
|
|
7488
|
+
},
|
|
7391
7489
|
AppBskyFeedGetQuotes: {
|
|
7392
7490
|
lexicon: 1,
|
|
7393
7491
|
id: 'app.bsky.feed.getQuotes',
|
|
@@ -10511,104 +10609,6 @@ export const schemaDict = {
|
|
|
10511
10609
|
},
|
|
10512
10610
|
},
|
|
10513
10611
|
},
|
|
10514
|
-
AppBskyUnspeccedCheckHandleAvailability: {
|
|
10515
|
-
lexicon: 1,
|
|
10516
|
-
id: 'app.bsky.unspecced.checkHandleAvailability',
|
|
10517
|
-
defs: {
|
|
10518
|
-
main: {
|
|
10519
|
-
type: 'query',
|
|
10520
|
-
description:
|
|
10521
|
-
'Checks whether the provided handle is available. If the handle is not available, available suggestions will be returned. Optional inputs will be used to generate suggestions.',
|
|
10522
|
-
parameters: {
|
|
10523
|
-
type: 'params',
|
|
10524
|
-
required: ['handle'],
|
|
10525
|
-
properties: {
|
|
10526
|
-
handle: {
|
|
10527
|
-
type: 'string',
|
|
10528
|
-
format: 'handle',
|
|
10529
|
-
description:
|
|
10530
|
-
'Tentative handle. Will be checked for availability or used to build handle suggestions.',
|
|
10531
|
-
},
|
|
10532
|
-
email: {
|
|
10533
|
-
type: 'string',
|
|
10534
|
-
description:
|
|
10535
|
-
'User-provided email. Might be used to build handle suggestions.',
|
|
10536
|
-
},
|
|
10537
|
-
birthDate: {
|
|
10538
|
-
type: 'string',
|
|
10539
|
-
format: 'datetime',
|
|
10540
|
-
description:
|
|
10541
|
-
'User-provided birth date. Might be used to build handle suggestions.',
|
|
10542
|
-
},
|
|
10543
|
-
},
|
|
10544
|
-
},
|
|
10545
|
-
output: {
|
|
10546
|
-
encoding: 'application/json',
|
|
10547
|
-
schema: {
|
|
10548
|
-
type: 'object',
|
|
10549
|
-
required: ['handle', 'result'],
|
|
10550
|
-
properties: {
|
|
10551
|
-
handle: {
|
|
10552
|
-
type: 'string',
|
|
10553
|
-
format: 'handle',
|
|
10554
|
-
description: 'Echo of the input handle.',
|
|
10555
|
-
},
|
|
10556
|
-
result: {
|
|
10557
|
-
type: 'union',
|
|
10558
|
-
refs: [
|
|
10559
|
-
'lex:app.bsky.unspecced.checkHandleAvailability#resultAvailable',
|
|
10560
|
-
'lex:app.bsky.unspecced.checkHandleAvailability#resultUnavailable',
|
|
10561
|
-
],
|
|
10562
|
-
},
|
|
10563
|
-
},
|
|
10564
|
-
},
|
|
10565
|
-
},
|
|
10566
|
-
errors: [
|
|
10567
|
-
{
|
|
10568
|
-
name: 'InvalidEmail',
|
|
10569
|
-
description: 'An invalid email was provided.',
|
|
10570
|
-
},
|
|
10571
|
-
],
|
|
10572
|
-
},
|
|
10573
|
-
resultAvailable: {
|
|
10574
|
-
type: 'object',
|
|
10575
|
-
description: 'Indicates the provided handle is available.',
|
|
10576
|
-
properties: {},
|
|
10577
|
-
},
|
|
10578
|
-
resultUnavailable: {
|
|
10579
|
-
type: 'object',
|
|
10580
|
-
description:
|
|
10581
|
-
'Indicates the provided handle is unavailable and gives suggestions of available handles.',
|
|
10582
|
-
required: ['suggestions'],
|
|
10583
|
-
properties: {
|
|
10584
|
-
suggestions: {
|
|
10585
|
-
type: 'array',
|
|
10586
|
-
description:
|
|
10587
|
-
'List of suggested handles based on the provided inputs.',
|
|
10588
|
-
items: {
|
|
10589
|
-
type: 'ref',
|
|
10590
|
-
ref: 'lex:app.bsky.unspecced.checkHandleAvailability#suggestion',
|
|
10591
|
-
},
|
|
10592
|
-
},
|
|
10593
|
-
},
|
|
10594
|
-
},
|
|
10595
|
-
suggestion: {
|
|
10596
|
-
type: 'object',
|
|
10597
|
-
required: ['handle', 'method'],
|
|
10598
|
-
properties: {
|
|
10599
|
-
handle: {
|
|
10600
|
-
type: 'string',
|
|
10601
|
-
format: 'handle',
|
|
10602
|
-
},
|
|
10603
|
-
method: {
|
|
10604
|
-
type: 'string',
|
|
10605
|
-
description:
|
|
10606
|
-
'Method used to build this suggestion. Should be considered opaque to clients. Can be used for metrics.',
|
|
10607
|
-
},
|
|
10608
|
-
},
|
|
10609
|
-
},
|
|
10610
|
-
},
|
|
10611
|
-
},
|
|
10612
10612
|
AppBskyUnspeccedDefs: {
|
|
10613
10613
|
lexicon: 1,
|
|
10614
10614
|
id: 'app.bsky.unspecced.defs',
|
|
@@ -13537,6 +13537,8 @@ export const ids = {
|
|
|
13537
13537
|
ComAtprotoSyncRequestCrawl: 'com.atproto.sync.requestCrawl',
|
|
13538
13538
|
ComAtprotoSyncSubscribeRepos: 'com.atproto.sync.subscribeRepos',
|
|
13539
13539
|
ComAtprotoTempAddReservedHandle: 'com.atproto.temp.addReservedHandle',
|
|
13540
|
+
ComAtprotoTempCheckHandleAvailability:
|
|
13541
|
+
'com.atproto.temp.checkHandleAvailability',
|
|
13540
13542
|
ComAtprotoTempCheckSignupQueue: 'com.atproto.temp.checkSignupQueue',
|
|
13541
13543
|
ComAtprotoTempFetchLabels: 'com.atproto.temp.fetchLabels',
|
|
13542
13544
|
ComAtprotoTempRequestPhoneVerification:
|
|
@@ -13569,8 +13571,8 @@ export const ids = {
|
|
|
13569
13571
|
AppBskyFeedGetFeedSkeleton: 'app.bsky.feed.getFeedSkeleton',
|
|
13570
13572
|
AppBskyFeedGetLikes: 'app.bsky.feed.getLikes',
|
|
13571
13573
|
AppBskyFeedGetListFeed: 'app.bsky.feed.getListFeed',
|
|
13572
|
-
AppBskyFeedGetPosts: 'app.bsky.feed.getPosts',
|
|
13573
13574
|
AppBskyFeedGetPostThread: 'app.bsky.feed.getPostThread',
|
|
13575
|
+
AppBskyFeedGetPosts: 'app.bsky.feed.getPosts',
|
|
13574
13576
|
AppBskyFeedGetQuotes: 'app.bsky.feed.getQuotes',
|
|
13575
13577
|
AppBskyFeedGetRepostedBy: 'app.bsky.feed.getRepostedBy',
|
|
13576
13578
|
AppBskyFeedGetSuggestedFeeds: 'app.bsky.feed.getSuggestedFeeds',
|
|
@@ -13631,8 +13633,6 @@ export const ids = {
|
|
|
13631
13633
|
AppBskyNotificationUnregisterPush: 'app.bsky.notification.unregisterPush',
|
|
13632
13634
|
AppBskyNotificationUpdateSeen: 'app.bsky.notification.updateSeen',
|
|
13633
13635
|
AppBskyRichtextFacet: 'app.bsky.richtext.facet',
|
|
13634
|
-
AppBskyUnspeccedCheckHandleAvailability:
|
|
13635
|
-
'app.bsky.unspecced.checkHandleAvailability',
|
|
13636
13636
|
AppBskyUnspeccedDefs: 'app.bsky.unspecced.defs',
|
|
13637
13637
|
AppBskyUnspeccedGetAgeAssuranceState:
|
|
13638
13638
|
'app.bsky.unspecced.getAgeAssuranceState',
|
package/src/lexicon/types/{app/bsky/unspecced → com/atproto/temp}/checkHandleAvailability.ts
RENAMED
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
|
|
13
13
|
const is$typed = _is$typed,
|
|
14
14
|
validate = _validate
|
|
15
|
-
const id = '
|
|
15
|
+
const id = 'com.atproto.temp.checkHandleAvailability'
|
|
16
16
|
|
|
17
17
|
export type QueryParams = {
|
|
18
18
|
/** Tentative handle. Will be checked for availability or used to build handle suggestions. */
|
|
@@ -51,7 +51,7 @@ export type HandlerOutput = HandlerError | HandlerSuccess
|
|
|
51
51
|
|
|
52
52
|
/** Indicates the provided handle is available. */
|
|
53
53
|
export interface ResultAvailable {
|
|
54
|
-
$type?: '
|
|
54
|
+
$type?: 'com.atproto.temp.checkHandleAvailability#resultAvailable'
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
const hashResultAvailable = 'resultAvailable'
|
|
@@ -66,7 +66,7 @@ export function validateResultAvailable<V>(v: V) {
|
|
|
66
66
|
|
|
67
67
|
/** Indicates the provided handle is unavailable and gives suggestions of available handles. */
|
|
68
68
|
export interface ResultUnavailable {
|
|
69
|
-
$type?: '
|
|
69
|
+
$type?: 'com.atproto.temp.checkHandleAvailability#resultUnavailable'
|
|
70
70
|
/** List of suggested handles based on the provided inputs. */
|
|
71
71
|
suggestions: Suggestion[]
|
|
72
72
|
}
|
|
@@ -82,7 +82,7 @@ export function validateResultUnavailable<V>(v: V) {
|
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
export interface Suggestion {
|
|
85
|
-
$type?: '
|
|
85
|
+
$type?: 'com.atproto.temp.checkHandleAvailability#suggestion'
|
|
86
86
|
handle: string
|
|
87
87
|
/** Method used to build this suggestion. Should be considered opaque to clients. Can be used for metrics. */
|
|
88
88
|
method: string
|
package/src/views/index.ts
CHANGED
|
@@ -358,7 +358,55 @@ Array [
|
|
|
358
358
|
"viewer": Object {},
|
|
359
359
|
},
|
|
360
360
|
Object {
|
|
361
|
+
"acceptsInteractions": true,
|
|
361
362
|
"cid": "cids(3)",
|
|
363
|
+
"creator": Object {
|
|
364
|
+
"associated": Object {
|
|
365
|
+
"activitySubscription": Object {
|
|
366
|
+
"allowSubscriptions": "followers",
|
|
367
|
+
},
|
|
368
|
+
},
|
|
369
|
+
"avatar": "https://bsky.public.url/img/avatar/plain/user(2)/cids(1)@jpeg",
|
|
370
|
+
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
371
|
+
"description": "its me!",
|
|
372
|
+
"did": "user(1)",
|
|
373
|
+
"displayName": "ali",
|
|
374
|
+
"handle": "alice.test",
|
|
375
|
+
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
376
|
+
"labels": Array [
|
|
377
|
+
Object {
|
|
378
|
+
"cid": "cids(2)",
|
|
379
|
+
"cts": "1970-01-01T00:00:00.000Z",
|
|
380
|
+
"src": "user(1)",
|
|
381
|
+
"uri": "record(3)",
|
|
382
|
+
"val": "self-label-a",
|
|
383
|
+
},
|
|
384
|
+
Object {
|
|
385
|
+
"cid": "cids(2)",
|
|
386
|
+
"cts": "1970-01-01T00:00:00.000Z",
|
|
387
|
+
"src": "user(1)",
|
|
388
|
+
"uri": "record(3)",
|
|
389
|
+
"val": "self-label-b",
|
|
390
|
+
},
|
|
391
|
+
],
|
|
392
|
+
"viewer": Object {
|
|
393
|
+
"blockedBy": false,
|
|
394
|
+
"followedBy": "record(2)",
|
|
395
|
+
"following": "record(1)",
|
|
396
|
+
"muted": false,
|
|
397
|
+
},
|
|
398
|
+
},
|
|
399
|
+
"description": "Has acceptsInteractions set to true",
|
|
400
|
+
"did": "user(0)",
|
|
401
|
+
"displayName": "Accepts Interactions",
|
|
402
|
+
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
403
|
+
"labels": Array [],
|
|
404
|
+
"likeCount": 0,
|
|
405
|
+
"uri": "record(4)",
|
|
406
|
+
"viewer": Object {},
|
|
407
|
+
},
|
|
408
|
+
Object {
|
|
409
|
+
"cid": "cids(4)",
|
|
362
410
|
"contentMode": "app.bsky.feed.defs#contentModeVideo",
|
|
363
411
|
"creator": Object {
|
|
364
412
|
"associated": Object {
|
|
@@ -402,11 +450,11 @@ Array [
|
|
|
402
450
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
403
451
|
"labels": Array [],
|
|
404
452
|
"likeCount": 0,
|
|
405
|
-
"uri": "record(
|
|
453
|
+
"uri": "record(5)",
|
|
406
454
|
"viewer": Object {},
|
|
407
455
|
},
|
|
408
456
|
Object {
|
|
409
|
-
"cid": "cids(
|
|
457
|
+
"cid": "cids(5)",
|
|
410
458
|
"creator": Object {
|
|
411
459
|
"associated": Object {
|
|
412
460
|
"activitySubscription": Object {
|
|
@@ -449,11 +497,11 @@ Array [
|
|
|
449
497
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
450
498
|
"labels": Array [],
|
|
451
499
|
"likeCount": 0,
|
|
452
|
-
"uri": "record(
|
|
500
|
+
"uri": "record(6)",
|
|
453
501
|
"viewer": Object {},
|
|
454
502
|
},
|
|
455
503
|
Object {
|
|
456
|
-
"cid": "cids(
|
|
504
|
+
"cid": "cids(6)",
|
|
457
505
|
"creator": Object {
|
|
458
506
|
"associated": Object {
|
|
459
507
|
"activitySubscription": Object {
|
|
@@ -496,11 +544,11 @@ Array [
|
|
|
496
544
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
497
545
|
"labels": Array [],
|
|
498
546
|
"likeCount": 0,
|
|
499
|
-
"uri": "record(
|
|
547
|
+
"uri": "record(7)",
|
|
500
548
|
"viewer": Object {},
|
|
501
549
|
},
|
|
502
550
|
Object {
|
|
503
|
-
"cid": "cids(
|
|
551
|
+
"cid": "cids(7)",
|
|
504
552
|
"creator": Object {
|
|
505
553
|
"associated": Object {
|
|
506
554
|
"activitySubscription": Object {
|
|
@@ -543,11 +591,11 @@ Array [
|
|
|
543
591
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
544
592
|
"labels": Array [],
|
|
545
593
|
"likeCount": 0,
|
|
546
|
-
"uri": "record(
|
|
594
|
+
"uri": "record(8)",
|
|
547
595
|
"viewer": Object {},
|
|
548
596
|
},
|
|
549
597
|
Object {
|
|
550
|
-
"cid": "cids(
|
|
598
|
+
"cid": "cids(8)",
|
|
551
599
|
"creator": Object {
|
|
552
600
|
"associated": Object {
|
|
553
601
|
"activitySubscription": Object {
|
|
@@ -590,11 +638,11 @@ Array [
|
|
|
590
638
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
591
639
|
"labels": Array [],
|
|
592
640
|
"likeCount": 0,
|
|
593
|
-
"uri": "record(
|
|
641
|
+
"uri": "record(9)",
|
|
594
642
|
"viewer": Object {},
|
|
595
643
|
},
|
|
596
644
|
Object {
|
|
597
|
-
"cid": "cids(
|
|
645
|
+
"cid": "cids(9)",
|
|
598
646
|
"creator": Object {
|
|
599
647
|
"associated": Object {
|
|
600
648
|
"activitySubscription": Object {
|
|
@@ -637,9 +685,9 @@ Array [
|
|
|
637
685
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
638
686
|
"labels": Array [],
|
|
639
687
|
"likeCount": 2,
|
|
640
|
-
"uri": "record(
|
|
688
|
+
"uri": "record(10)",
|
|
641
689
|
"viewer": Object {
|
|
642
|
-
"like": "record(
|
|
690
|
+
"like": "record(11)",
|
|
643
691
|
},
|
|
644
692
|
},
|
|
645
693
|
]
|
|
@@ -1957,6 +2005,61 @@ Array [
|
|
|
1957
2005
|
]
|
|
1958
2006
|
`;
|
|
1959
2007
|
|
|
2008
|
+
exports[`feed generation getFeedGenerator describes a feed gen & returns acceptsInteractions when true 1`] = `
|
|
2009
|
+
Object {
|
|
2010
|
+
"isOnline": true,
|
|
2011
|
+
"isValid": true,
|
|
2012
|
+
"view": Object {
|
|
2013
|
+
"acceptsInteractions": true,
|
|
2014
|
+
"cid": "cids(0)",
|
|
2015
|
+
"creator": Object {
|
|
2016
|
+
"associated": Object {
|
|
2017
|
+
"activitySubscription": Object {
|
|
2018
|
+
"allowSubscriptions": "followers",
|
|
2019
|
+
},
|
|
2020
|
+
},
|
|
2021
|
+
"avatar": "https://bsky.public.url/img/avatar/plain/user(2)/cids(1)@jpeg",
|
|
2022
|
+
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
2023
|
+
"description": "its me!",
|
|
2024
|
+
"did": "user(1)",
|
|
2025
|
+
"displayName": "ali",
|
|
2026
|
+
"handle": "alice.test",
|
|
2027
|
+
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
2028
|
+
"labels": Array [
|
|
2029
|
+
Object {
|
|
2030
|
+
"cid": "cids(2)",
|
|
2031
|
+
"cts": "1970-01-01T00:00:00.000Z",
|
|
2032
|
+
"src": "user(1)",
|
|
2033
|
+
"uri": "record(3)",
|
|
2034
|
+
"val": "self-label-a",
|
|
2035
|
+
},
|
|
2036
|
+
Object {
|
|
2037
|
+
"cid": "cids(2)",
|
|
2038
|
+
"cts": "1970-01-01T00:00:00.000Z",
|
|
2039
|
+
"src": "user(1)",
|
|
2040
|
+
"uri": "record(3)",
|
|
2041
|
+
"val": "self-label-b",
|
|
2042
|
+
},
|
|
2043
|
+
],
|
|
2044
|
+
"viewer": Object {
|
|
2045
|
+
"blockedBy": false,
|
|
2046
|
+
"followedBy": "record(2)",
|
|
2047
|
+
"following": "record(1)",
|
|
2048
|
+
"muted": false,
|
|
2049
|
+
},
|
|
2050
|
+
},
|
|
2051
|
+
"description": "Has acceptsInteractions set to true",
|
|
2052
|
+
"did": "user(0)",
|
|
2053
|
+
"displayName": "Accepts Interactions",
|
|
2054
|
+
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
2055
|
+
"labels": Array [],
|
|
2056
|
+
"likeCount": 0,
|
|
2057
|
+
"uri": "record(0)",
|
|
2058
|
+
"viewer": Object {},
|
|
2059
|
+
},
|
|
2060
|
+
}
|
|
2061
|
+
`;
|
|
2062
|
+
|
|
1960
2063
|
exports[`feed generation getFeedGenerator describes a feed gen & returns content mode 1`] = `
|
|
1961
2064
|
Object {
|
|
1962
2065
|
"isOnline": true,
|