@atproto/bsky 0.0.157 → 0.0.159
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/data-plane/server/db/db.d.ts +1 -0
- package/dist/data-plane/server/db/db.d.ts.map +1 -1
- package/dist/data-plane/server/db/db.js.map +1 -1
- package/dist/data-plane/server/db/index.d.ts +1 -0
- package/dist/data-plane/server/db/index.d.ts.map +1 -1
- package/dist/data-plane/server/db/tables/record.d.ts +2 -1
- package/dist/data-plane/server/db/tables/record.d.ts.map +1 -1
- package/dist/data-plane/server/db/tables/record.js.map +1 -1
- package/dist/data-plane/server/index.d.ts +2 -1
- package/dist/data-plane/server/index.d.ts.map +1 -1
- package/dist/data-plane/server/index.js.map +1 -1
- package/dist/data-plane/server/routes/private-data.d.ts +1 -1
- package/dist/data-plane/server/routes/private-data.d.ts.map +1 -1
- package/dist/data-plane/server/routes/private-data.js +3 -2
- package/dist/data-plane/server/routes/private-data.js.map +1 -1
- package/dist/proto/bsky_pb.d.ts +17 -13
- package/dist/proto/bsky_pb.d.ts.map +1 -1
- package/dist/proto/bsky_pb.js +36 -26
- package/dist/proto/bsky_pb.js.map +1 -1
- package/package.json +7 -7
- package/proto/bsky.proto +14 -13
- package/src/data-plane/server/db/db.ts +2 -0
- package/src/data-plane/server/db/index.ts +1 -0
- package/src/data-plane/server/db/tables/record.ts +3 -1
- package/src/data-plane/server/index.ts +3 -1
- package/src/data-plane/server/routes/private-data.ts +6 -2
- package/src/proto/bsky_pb.ts +32 -26
- package/tests/views/thread-v2.test.ts +31 -33
- package/tsconfig.tests.tsbuildinfo +1 -1
- package/tests/seed/thread-v2.ts +0 -874
- package/tests/seed/util.ts +0 -52
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atproto/bsky",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.159",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Reference implementation of app.bsky App View (Bluesky API)",
|
|
6
6
|
"keywords": [
|
|
@@ -48,17 +48,17 @@
|
|
|
48
48
|
"uint8arrays": "3.0.0",
|
|
49
49
|
"undici": "^6.19.8",
|
|
50
50
|
"@atproto-labs/fetch-node": "0.1.9",
|
|
51
|
-
"@atproto-labs/xrpc-utils": "0.0.
|
|
52
|
-
"@atproto/api": "^0.15.
|
|
51
|
+
"@atproto-labs/xrpc-utils": "0.0.16",
|
|
52
|
+
"@atproto/api": "^0.15.15",
|
|
53
53
|
"@atproto/common": "^0.4.11",
|
|
54
54
|
"@atproto/crypto": "^0.4.4",
|
|
55
55
|
"@atproto/did": "^0.1.5",
|
|
56
56
|
"@atproto/identity": "^0.4.8",
|
|
57
57
|
"@atproto/lexicon": "^0.4.11",
|
|
58
58
|
"@atproto/repo": "^0.8.1",
|
|
59
|
-
"@atproto/sync": "^0.1.
|
|
59
|
+
"@atproto/sync": "^0.1.25",
|
|
60
60
|
"@atproto/syntax": "^0.4.0",
|
|
61
|
-
"@atproto/xrpc-server": "^0.
|
|
61
|
+
"@atproto/xrpc-server": "^0.8.0"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@bufbuild/buf": "^1.28.1",
|
|
@@ -73,9 +73,9 @@
|
|
|
73
73
|
"jest": "^28.1.2",
|
|
74
74
|
"ts-node": "^10.8.2",
|
|
75
75
|
"typescript": "^5.6.3",
|
|
76
|
-
"@atproto/api": "^0.15.
|
|
76
|
+
"@atproto/api": "^0.15.15",
|
|
77
77
|
"@atproto/lex-cli": "^0.8.2",
|
|
78
|
-
"@atproto/pds": "^0.4.
|
|
78
|
+
"@atproto/pds": "^0.4.148",
|
|
79
79
|
"@atproto/xrpc": "^0.7.0"
|
|
80
80
|
},
|
|
81
81
|
"scripts": {
|
package/proto/bsky.proto
CHANGED
|
@@ -794,19 +794,20 @@ message ChatNotificationPreference {
|
|
|
794
794
|
}
|
|
795
795
|
|
|
796
796
|
message NotificationPreferences {
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
FilterableNotificationPreference
|
|
800
|
-
FilterableNotificationPreference
|
|
801
|
-
FilterableNotificationPreference
|
|
802
|
-
FilterableNotificationPreference
|
|
803
|
-
FilterableNotificationPreference
|
|
804
|
-
FilterableNotificationPreference
|
|
805
|
-
FilterableNotificationPreference
|
|
806
|
-
|
|
807
|
-
NotificationPreference
|
|
808
|
-
NotificationPreference
|
|
809
|
-
NotificationPreference
|
|
797
|
+
bytes entry = 1;
|
|
798
|
+
ChatNotificationPreference chat = 2;
|
|
799
|
+
FilterableNotificationPreference follow = 3;
|
|
800
|
+
FilterableNotificationPreference like = 4;
|
|
801
|
+
FilterableNotificationPreference like_via_repost = 5;
|
|
802
|
+
FilterableNotificationPreference mention = 6;
|
|
803
|
+
FilterableNotificationPreference quote = 7;
|
|
804
|
+
FilterableNotificationPreference reply = 8;
|
|
805
|
+
FilterableNotificationPreference repost = 9;
|
|
806
|
+
FilterableNotificationPreference repost_via_repost = 10;
|
|
807
|
+
NotificationPreference starterpack_joined = 11;
|
|
808
|
+
NotificationPreference subscribed_post = 12;
|
|
809
|
+
NotificationPreference unverified = 13;
|
|
810
|
+
NotificationPreference verified = 14;
|
|
810
811
|
}
|
|
811
812
|
|
|
812
813
|
message GetNotificationPreferencesResponse {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { ColumnType } from 'kysely'
|
|
2
|
+
|
|
1
3
|
export interface Record {
|
|
2
4
|
uri: string
|
|
3
5
|
cid: string
|
|
@@ -5,7 +7,7 @@ export interface Record {
|
|
|
5
7
|
json: string
|
|
6
8
|
indexedAt: string
|
|
7
9
|
takedownRef: string | null
|
|
8
|
-
tags: string[] | null
|
|
10
|
+
tags: ColumnType<string[] | null, string | undefined, string> | null
|
|
9
11
|
}
|
|
10
12
|
|
|
11
13
|
export const tableName = 'record'
|
|
@@ -3,9 +3,11 @@ import http from 'node:http'
|
|
|
3
3
|
import { expressConnectMiddleware } from '@connectrpc/connect-express'
|
|
4
4
|
import express from 'express'
|
|
5
5
|
import { IdResolver, MemoryCache } from '@atproto/identity'
|
|
6
|
-
import { Database } from './db'
|
|
6
|
+
import { Database, DatabaseSchema } from './db'
|
|
7
7
|
import createRoutes from './routes'
|
|
8
8
|
|
|
9
|
+
export type { DatabaseSchema }
|
|
10
|
+
|
|
9
11
|
export { RepoSubscription } from './subscription'
|
|
10
12
|
|
|
11
13
|
export class DataPlaneServer {
|
|
@@ -35,15 +35,19 @@ export default (db: Database): Partial<ServiceImpl<typeof Service>> => ({
|
|
|
35
35
|
return {}
|
|
36
36
|
}
|
|
37
37
|
const p: Preferences = JSON.parse(row.payload)
|
|
38
|
-
return lexToProtobuf(p)
|
|
38
|
+
return lexToProtobuf(p, row.payload)
|
|
39
39
|
})
|
|
40
40
|
|
|
41
41
|
return { preferences }
|
|
42
42
|
},
|
|
43
43
|
})
|
|
44
44
|
|
|
45
|
-
export const lexToProtobuf = (
|
|
45
|
+
export const lexToProtobuf = (
|
|
46
|
+
p: Preferences,
|
|
47
|
+
json: string,
|
|
48
|
+
): NotificationPreferences => {
|
|
46
49
|
return new NotificationPreferences({
|
|
50
|
+
entry: Buffer.from(json),
|
|
47
51
|
chat: lexChatPreferenceToProtobuf(p.chat),
|
|
48
52
|
follow: lexFilterablePreferenceToProtobuf(p.follow),
|
|
49
53
|
like: lexFilterablePreferenceToProtobuf(p.like),
|
package/src/proto/bsky_pb.ts
CHANGED
|
@@ -8613,67 +8613,72 @@ export class ChatNotificationPreference extends Message<ChatNotificationPreferen
|
|
|
8613
8613
|
*/
|
|
8614
8614
|
export class NotificationPreferences extends Message<NotificationPreferences> {
|
|
8615
8615
|
/**
|
|
8616
|
-
* @generated from field:
|
|
8616
|
+
* @generated from field: bytes entry = 1;
|
|
8617
|
+
*/
|
|
8618
|
+
entry = new Uint8Array(0)
|
|
8619
|
+
|
|
8620
|
+
/**
|
|
8621
|
+
* @generated from field: bsky.ChatNotificationPreference chat = 2;
|
|
8617
8622
|
*/
|
|
8618
8623
|
chat?: ChatNotificationPreference
|
|
8619
8624
|
|
|
8620
8625
|
/**
|
|
8621
|
-
* @generated from field: bsky.FilterableNotificationPreference follow =
|
|
8626
|
+
* @generated from field: bsky.FilterableNotificationPreference follow = 3;
|
|
8622
8627
|
*/
|
|
8623
8628
|
follow?: FilterableNotificationPreference
|
|
8624
8629
|
|
|
8625
8630
|
/**
|
|
8626
|
-
* @generated from field: bsky.FilterableNotificationPreference like =
|
|
8631
|
+
* @generated from field: bsky.FilterableNotificationPreference like = 4;
|
|
8627
8632
|
*/
|
|
8628
8633
|
like?: FilterableNotificationPreference
|
|
8629
8634
|
|
|
8630
8635
|
/**
|
|
8631
|
-
* @generated from field: bsky.FilterableNotificationPreference like_via_repost =
|
|
8636
|
+
* @generated from field: bsky.FilterableNotificationPreference like_via_repost = 5;
|
|
8632
8637
|
*/
|
|
8633
8638
|
likeViaRepost?: FilterableNotificationPreference
|
|
8634
8639
|
|
|
8635
8640
|
/**
|
|
8636
|
-
* @generated from field: bsky.FilterableNotificationPreference mention =
|
|
8641
|
+
* @generated from field: bsky.FilterableNotificationPreference mention = 6;
|
|
8637
8642
|
*/
|
|
8638
8643
|
mention?: FilterableNotificationPreference
|
|
8639
8644
|
|
|
8640
8645
|
/**
|
|
8641
|
-
* @generated from field: bsky.FilterableNotificationPreference quote =
|
|
8646
|
+
* @generated from field: bsky.FilterableNotificationPreference quote = 7;
|
|
8642
8647
|
*/
|
|
8643
8648
|
quote?: FilterableNotificationPreference
|
|
8644
8649
|
|
|
8645
8650
|
/**
|
|
8646
|
-
* @generated from field: bsky.FilterableNotificationPreference reply =
|
|
8651
|
+
* @generated from field: bsky.FilterableNotificationPreference reply = 8;
|
|
8647
8652
|
*/
|
|
8648
8653
|
reply?: FilterableNotificationPreference
|
|
8649
8654
|
|
|
8650
8655
|
/**
|
|
8651
|
-
* @generated from field: bsky.FilterableNotificationPreference repost =
|
|
8656
|
+
* @generated from field: bsky.FilterableNotificationPreference repost = 9;
|
|
8652
8657
|
*/
|
|
8653
8658
|
repost?: FilterableNotificationPreference
|
|
8654
8659
|
|
|
8655
8660
|
/**
|
|
8656
|
-
* @generated from field: bsky.FilterableNotificationPreference repost_via_repost =
|
|
8661
|
+
* @generated from field: bsky.FilterableNotificationPreference repost_via_repost = 10;
|
|
8657
8662
|
*/
|
|
8658
8663
|
repostViaRepost?: FilterableNotificationPreference
|
|
8659
8664
|
|
|
8660
8665
|
/**
|
|
8661
|
-
* @generated from field: bsky.NotificationPreference starterpack_joined =
|
|
8666
|
+
* @generated from field: bsky.NotificationPreference starterpack_joined = 11;
|
|
8662
8667
|
*/
|
|
8663
8668
|
starterpackJoined?: NotificationPreference
|
|
8664
8669
|
|
|
8665
8670
|
/**
|
|
8666
|
-
* @generated from field: bsky.NotificationPreference subscribed_post =
|
|
8671
|
+
* @generated from field: bsky.NotificationPreference subscribed_post = 12;
|
|
8667
8672
|
*/
|
|
8668
8673
|
subscribedPost?: NotificationPreference
|
|
8669
8674
|
|
|
8670
8675
|
/**
|
|
8671
|
-
* @generated from field: bsky.NotificationPreference unverified =
|
|
8676
|
+
* @generated from field: bsky.NotificationPreference unverified = 13;
|
|
8672
8677
|
*/
|
|
8673
8678
|
unverified?: NotificationPreference
|
|
8674
8679
|
|
|
8675
8680
|
/**
|
|
8676
|
-
* @generated from field: bsky.NotificationPreference verified =
|
|
8681
|
+
* @generated from field: bsky.NotificationPreference verified = 14;
|
|
8677
8682
|
*/
|
|
8678
8683
|
verified?: NotificationPreference
|
|
8679
8684
|
|
|
@@ -8685,69 +8690,70 @@ export class NotificationPreferences extends Message<NotificationPreferences> {
|
|
|
8685
8690
|
static readonly runtime: typeof proto3 = proto3
|
|
8686
8691
|
static readonly typeName = 'bsky.NotificationPreferences'
|
|
8687
8692
|
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
8688
|
-
{ no: 1, name: '
|
|
8693
|
+
{ no: 1, name: 'entry', kind: 'scalar', T: 12 /* ScalarType.BYTES */ },
|
|
8694
|
+
{ no: 2, name: 'chat', kind: 'message', T: ChatNotificationPreference },
|
|
8689
8695
|
{
|
|
8690
|
-
no:
|
|
8696
|
+
no: 3,
|
|
8691
8697
|
name: 'follow',
|
|
8692
8698
|
kind: 'message',
|
|
8693
8699
|
T: FilterableNotificationPreference,
|
|
8694
8700
|
},
|
|
8695
8701
|
{
|
|
8696
|
-
no:
|
|
8702
|
+
no: 4,
|
|
8697
8703
|
name: 'like',
|
|
8698
8704
|
kind: 'message',
|
|
8699
8705
|
T: FilterableNotificationPreference,
|
|
8700
8706
|
},
|
|
8701
8707
|
{
|
|
8702
|
-
no:
|
|
8708
|
+
no: 5,
|
|
8703
8709
|
name: 'like_via_repost',
|
|
8704
8710
|
kind: 'message',
|
|
8705
8711
|
T: FilterableNotificationPreference,
|
|
8706
8712
|
},
|
|
8707
8713
|
{
|
|
8708
|
-
no:
|
|
8714
|
+
no: 6,
|
|
8709
8715
|
name: 'mention',
|
|
8710
8716
|
kind: 'message',
|
|
8711
8717
|
T: FilterableNotificationPreference,
|
|
8712
8718
|
},
|
|
8713
8719
|
{
|
|
8714
|
-
no:
|
|
8720
|
+
no: 7,
|
|
8715
8721
|
name: 'quote',
|
|
8716
8722
|
kind: 'message',
|
|
8717
8723
|
T: FilterableNotificationPreference,
|
|
8718
8724
|
},
|
|
8719
8725
|
{
|
|
8720
|
-
no:
|
|
8726
|
+
no: 8,
|
|
8721
8727
|
name: 'reply',
|
|
8722
8728
|
kind: 'message',
|
|
8723
8729
|
T: FilterableNotificationPreference,
|
|
8724
8730
|
},
|
|
8725
8731
|
{
|
|
8726
|
-
no:
|
|
8732
|
+
no: 9,
|
|
8727
8733
|
name: 'repost',
|
|
8728
8734
|
kind: 'message',
|
|
8729
8735
|
T: FilterableNotificationPreference,
|
|
8730
8736
|
},
|
|
8731
8737
|
{
|
|
8732
|
-
no:
|
|
8738
|
+
no: 10,
|
|
8733
8739
|
name: 'repost_via_repost',
|
|
8734
8740
|
kind: 'message',
|
|
8735
8741
|
T: FilterableNotificationPreference,
|
|
8736
8742
|
},
|
|
8737
8743
|
{
|
|
8738
|
-
no:
|
|
8744
|
+
no: 11,
|
|
8739
8745
|
name: 'starterpack_joined',
|
|
8740
8746
|
kind: 'message',
|
|
8741
8747
|
T: NotificationPreference,
|
|
8742
8748
|
},
|
|
8743
8749
|
{
|
|
8744
|
-
no:
|
|
8750
|
+
no: 12,
|
|
8745
8751
|
name: 'subscribed_post',
|
|
8746
8752
|
kind: 'message',
|
|
8747
8753
|
T: NotificationPreference,
|
|
8748
8754
|
},
|
|
8749
|
-
{ no:
|
|
8750
|
-
{ no:
|
|
8755
|
+
{ no: 13, name: 'unverified', kind: 'message', T: NotificationPreference },
|
|
8756
|
+
{ no: 14, name: 'verified', kind: 'message', T: NotificationPreference },
|
|
8751
8757
|
])
|
|
8752
8758
|
|
|
8753
8759
|
static fromBinary(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import assert from 'node:assert'
|
|
2
2
|
import { AppBskyUnspeccedDefs, AtpAgent } from '@atproto/api'
|
|
3
|
-
import { SeedClient, TestNetwork } from '@atproto/dev-env'
|
|
3
|
+
import { SeedClient, TestNetwork, seedThreadV2 } from '@atproto/dev-env'
|
|
4
4
|
import { ids } from '../../src/lexicon/lexicons'
|
|
5
5
|
import { ThreadItemPost } from '../../src/lexicon/types/app/bsky/unspecced/defs'
|
|
6
6
|
import { OutputSchema as OutputSchemaHiddenThread } from '../../src/lexicon/types/app/bsky/unspecced/getPostThreadOtherV2'
|
|
@@ -13,8 +13,6 @@ import {
|
|
|
13
13
|
ThreadOtherItemValuePost,
|
|
14
14
|
} from '../../src/views/threads-v2'
|
|
15
15
|
import { forSnapshot } from '../_util'
|
|
16
|
-
import * as seeds from '../seed/thread-v2'
|
|
17
|
-
import { TAG_BUMP_DOWN, TAG_HIDE } from '../seed/thread-v2'
|
|
18
16
|
|
|
19
17
|
type PostProps = Pick<ThreadItemPost, 'moreReplies' | 'opThread'>
|
|
20
18
|
const props = (overrides: Partial<PostProps> = {}): PostProps => ({
|
|
@@ -45,8 +43,8 @@ describe('appview thread views v2', () => {
|
|
|
45
43
|
network = await TestNetwork.create({
|
|
46
44
|
bsky: {
|
|
47
45
|
maxThreadParents: 15,
|
|
48
|
-
threadTagsBumpDown: new Set([TAG_BUMP_DOWN]),
|
|
49
|
-
threadTagsHide: new Set([TAG_HIDE]),
|
|
46
|
+
threadTagsBumpDown: new Set([seedThreadV2.TAG_BUMP_DOWN]),
|
|
47
|
+
threadTagsHide: new Set([seedThreadV2.TAG_HIDE]),
|
|
50
48
|
},
|
|
51
49
|
dbPostgresSchema: 'bsky_views_thread_v_two',
|
|
52
50
|
})
|
|
@@ -79,10 +77,10 @@ describe('appview thread views v2', () => {
|
|
|
79
77
|
})
|
|
80
78
|
|
|
81
79
|
describe('simple thread', () => {
|
|
82
|
-
let seed: Awaited<ReturnType<typeof
|
|
80
|
+
let seed: Awaited<ReturnType<typeof seedThreadV2.simple>>
|
|
83
81
|
|
|
84
82
|
beforeAll(async () => {
|
|
85
|
-
seed = await
|
|
83
|
+
seed = await seedThreadV2.simple(sc)
|
|
86
84
|
await network.processAll()
|
|
87
85
|
})
|
|
88
86
|
|
|
@@ -244,10 +242,10 @@ describe('appview thread views v2', () => {
|
|
|
244
242
|
})
|
|
245
243
|
|
|
246
244
|
describe('long thread', () => {
|
|
247
|
-
let seed: Awaited<ReturnType<typeof
|
|
245
|
+
let seed: Awaited<ReturnType<typeof seedThreadV2.long>>
|
|
248
246
|
|
|
249
247
|
beforeAll(async () => {
|
|
250
|
-
seed = await
|
|
248
|
+
seed = await seedThreadV2.long(sc)
|
|
251
249
|
await network.processAll()
|
|
252
250
|
})
|
|
253
251
|
|
|
@@ -313,10 +311,10 @@ describe('appview thread views v2', () => {
|
|
|
313
311
|
})
|
|
314
312
|
|
|
315
313
|
describe('deep thread', () => {
|
|
316
|
-
let seed: Awaited<ReturnType<typeof
|
|
314
|
+
let seed: Awaited<ReturnType<typeof seedThreadV2.deep>>
|
|
317
315
|
|
|
318
316
|
beforeAll(async () => {
|
|
319
|
-
seed = await
|
|
317
|
+
seed = await seedThreadV2.deep(sc)
|
|
320
318
|
await network.processAll()
|
|
321
319
|
})
|
|
322
320
|
|
|
@@ -432,10 +430,10 @@ describe('appview thread views v2', () => {
|
|
|
432
430
|
})
|
|
433
431
|
|
|
434
432
|
describe('branching factor', () => {
|
|
435
|
-
let seed: Awaited<ReturnType<typeof
|
|
433
|
+
let seed: Awaited<ReturnType<typeof seedThreadV2.branchingFactor>>
|
|
436
434
|
|
|
437
435
|
beforeAll(async () => {
|
|
438
|
-
seed = await
|
|
436
|
+
seed = await seedThreadV2.branchingFactor(sc)
|
|
439
437
|
await network.processAll()
|
|
440
438
|
})
|
|
441
439
|
|
|
@@ -611,10 +609,10 @@ describe('appview thread views v2', () => {
|
|
|
611
609
|
})
|
|
612
610
|
|
|
613
611
|
describe('annotate more replies', () => {
|
|
614
|
-
let seed: Awaited<ReturnType<typeof
|
|
612
|
+
let seed: Awaited<ReturnType<typeof seedThreadV2.annotateMoreReplies>>
|
|
615
613
|
|
|
616
614
|
beforeAll(async () => {
|
|
617
|
-
seed = await
|
|
615
|
+
seed = await seedThreadV2.annotateMoreReplies(sc)
|
|
618
616
|
await network.processAll()
|
|
619
617
|
})
|
|
620
618
|
|
|
@@ -706,10 +704,10 @@ describe('appview thread views v2', () => {
|
|
|
706
704
|
})
|
|
707
705
|
|
|
708
706
|
describe(`annotate OP thread`, () => {
|
|
709
|
-
let seed: Awaited<ReturnType<typeof
|
|
707
|
+
let seed: Awaited<ReturnType<typeof seedThreadV2.annotateOP>>
|
|
710
708
|
|
|
711
709
|
beforeAll(async () => {
|
|
712
|
-
seed = await
|
|
710
|
+
seed = await seedThreadV2.annotateOP(sc)
|
|
713
711
|
await network.processAll()
|
|
714
712
|
})
|
|
715
713
|
|
|
@@ -800,10 +798,10 @@ describe('appview thread views v2', () => {
|
|
|
800
798
|
|
|
801
799
|
describe('bumping and sorting', () => {
|
|
802
800
|
describe('sorting', () => {
|
|
803
|
-
let seed: Awaited<ReturnType<typeof
|
|
801
|
+
let seed: Awaited<ReturnType<typeof seedThreadV2.sort>>
|
|
804
802
|
|
|
805
803
|
beforeAll(async () => {
|
|
806
|
-
seed = await
|
|
804
|
+
seed = await seedThreadV2.sort(sc)
|
|
807
805
|
await network.processAll()
|
|
808
806
|
})
|
|
809
807
|
|
|
@@ -899,10 +897,10 @@ describe('appview thread views v2', () => {
|
|
|
899
897
|
|
|
900
898
|
describe('bumping', () => {
|
|
901
899
|
describe('sorting within bumped post groups', () => {
|
|
902
|
-
let seed: Awaited<ReturnType<typeof
|
|
900
|
+
let seed: Awaited<ReturnType<typeof seedThreadV2.bumpGroupSorting>>
|
|
903
901
|
|
|
904
902
|
beforeAll(async () => {
|
|
905
|
-
seed = await
|
|
903
|
+
seed = await seedThreadV2.bumpGroupSorting(sc)
|
|
906
904
|
await network.processAll()
|
|
907
905
|
})
|
|
908
906
|
|
|
@@ -951,10 +949,10 @@ describe('appview thread views v2', () => {
|
|
|
951
949
|
})
|
|
952
950
|
|
|
953
951
|
describe('OP and viewer', () => {
|
|
954
|
-
let seed: Awaited<ReturnType<typeof
|
|
952
|
+
let seed: Awaited<ReturnType<typeof seedThreadV2.bumpOpAndViewer>>
|
|
955
953
|
|
|
956
954
|
beforeAll(async () => {
|
|
957
|
-
seed = await
|
|
955
|
+
seed = await seedThreadV2.bumpOpAndViewer(sc)
|
|
958
956
|
await network.processAll()
|
|
959
957
|
})
|
|
960
958
|
|
|
@@ -1103,10 +1101,10 @@ describe('appview thread views v2', () => {
|
|
|
1103
1101
|
})
|
|
1104
1102
|
|
|
1105
1103
|
describe('followers', () => {
|
|
1106
|
-
let seed: Awaited<ReturnType<typeof
|
|
1104
|
+
let seed: Awaited<ReturnType<typeof seedThreadV2.bumpFollows>>
|
|
1107
1105
|
|
|
1108
1106
|
beforeAll(async () => {
|
|
1109
|
-
seed = await
|
|
1107
|
+
seed = await seedThreadV2.bumpFollows(sc)
|
|
1110
1108
|
await network.processAll()
|
|
1111
1109
|
})
|
|
1112
1110
|
|
|
@@ -1204,10 +1202,10 @@ describe('appview thread views v2', () => {
|
|
|
1204
1202
|
})
|
|
1205
1203
|
|
|
1206
1204
|
describe(`blocks, deletions, no-unauthenticated`, () => {
|
|
1207
|
-
let seed: Awaited<ReturnType<typeof
|
|
1205
|
+
let seed: Awaited<ReturnType<typeof seedThreadV2.blockDeletionAuth>>
|
|
1208
1206
|
|
|
1209
1207
|
beforeAll(async () => {
|
|
1210
|
-
seed = await
|
|
1208
|
+
seed = await seedThreadV2.blockDeletionAuth(sc, labelerDid)
|
|
1211
1209
|
await network.processAll()
|
|
1212
1210
|
})
|
|
1213
1211
|
|
|
@@ -1603,10 +1601,10 @@ describe('appview thread views v2', () => {
|
|
|
1603
1601
|
})
|
|
1604
1602
|
|
|
1605
1603
|
describe(`mutes`, () => {
|
|
1606
|
-
let seed: Awaited<ReturnType<typeof
|
|
1604
|
+
let seed: Awaited<ReturnType<typeof seedThreadV2.mutes>>
|
|
1607
1605
|
|
|
1608
1606
|
beforeAll(async () => {
|
|
1609
|
-
seed = await
|
|
1607
|
+
seed = await seedThreadV2.mutes(sc)
|
|
1610
1608
|
await network.processAll()
|
|
1611
1609
|
})
|
|
1612
1610
|
|
|
@@ -1748,10 +1746,10 @@ describe('appview thread views v2', () => {
|
|
|
1748
1746
|
})
|
|
1749
1747
|
|
|
1750
1748
|
describe(`threadgated`, () => {
|
|
1751
|
-
let seed: Awaited<ReturnType<typeof
|
|
1749
|
+
let seed: Awaited<ReturnType<typeof seedThreadV2.threadgated>>
|
|
1752
1750
|
|
|
1753
1751
|
beforeAll(async () => {
|
|
1754
|
-
seed = await
|
|
1752
|
+
seed = await seedThreadV2.threadgated(sc)
|
|
1755
1753
|
await network.processAll()
|
|
1756
1754
|
})
|
|
1757
1755
|
|
|
@@ -1954,10 +1952,10 @@ describe('appview thread views v2', () => {
|
|
|
1954
1952
|
})
|
|
1955
1953
|
|
|
1956
1954
|
describe('tags', () => {
|
|
1957
|
-
let seed: Awaited<ReturnType<typeof
|
|
1955
|
+
let seed: Awaited<ReturnType<typeof seedThreadV2.tags>>
|
|
1958
1956
|
|
|
1959
1957
|
beforeAll(async () => {
|
|
1960
|
-
seed = await
|
|
1958
|
+
seed = await seedThreadV2.tags(sc)
|
|
1961
1959
|
await network.processAll()
|
|
1962
1960
|
})
|
|
1963
1961
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"root":["./tests/_util.ts","./tests/auth.test.ts","./tests/blob-resolver.test.ts","./tests/entryway-auth.test.ts","./tests/etcd.test.ts","./tests/feed-generation.test.ts","./tests/label-hydration.test.ts","./tests/postgates.test.ts","./tests/query-labels.test.ts","./tests/redis-cache.test.ts","./tests/server.test.ts","./tests/stash.test.ts","./tests/admin/admin-auth.test.ts","./tests/admin/moderation.test.ts","./tests/data-plane/db.test.ts","./tests/data-plane/duplicate-records.test.ts","./tests/data-plane/handle-invalidation.test.ts","./tests/data-plane/indexing.test.ts","./tests/data-plane/subscription.test.ts","./tests/data-plane/thread-mutes.test.ts","./tests/hydration/util.test.ts","./tests/image/server.test.ts","./tests/image/sharp.test.ts","./tests/image/uri.test.ts","./tests/seed/feed-hidden-replies.ts","./tests/seed/get-suggested-starter-packs.ts","./tests/seed/get-trends.ts","./tests/seed/known-followers.ts","./tests/seed/postgates.ts","./tests/
|
|
1
|
+
{"root":["./tests/_util.ts","./tests/auth.test.ts","./tests/blob-resolver.test.ts","./tests/entryway-auth.test.ts","./tests/etcd.test.ts","./tests/feed-generation.test.ts","./tests/label-hydration.test.ts","./tests/postgates.test.ts","./tests/query-labels.test.ts","./tests/redis-cache.test.ts","./tests/server.test.ts","./tests/stash.test.ts","./tests/admin/admin-auth.test.ts","./tests/admin/moderation.test.ts","./tests/data-plane/db.test.ts","./tests/data-plane/duplicate-records.test.ts","./tests/data-plane/handle-invalidation.test.ts","./tests/data-plane/indexing.test.ts","./tests/data-plane/subscription.test.ts","./tests/data-plane/thread-mutes.test.ts","./tests/hydration/util.test.ts","./tests/image/server.test.ts","./tests/image/sharp.test.ts","./tests/image/uri.test.ts","./tests/seed/feed-hidden-replies.ts","./tests/seed/get-suggested-starter-packs.ts","./tests/seed/get-trends.ts","./tests/seed/known-followers.ts","./tests/seed/postgates.ts","./tests/views/account-deactivation.test.ts","./tests/views/actor-likes.test.ts","./tests/views/actor-search.test.ts","./tests/views/author-feed.test.ts","./tests/views/block-lists.test.ts","./tests/views/blocks.test.ts","./tests/views/feed-hidden-replies.test.ts","./tests/views/feed-view-post.test.ts","./tests/views/follows.test.ts","./tests/views/get-config.test.ts","./tests/views/get-suggested-starter-packs.test.ts","./tests/views/get-trends.test.ts","./tests/views/known-followers.test.ts","./tests/views/labeler-service.test.ts","./tests/views/labels-needs-review.test.ts","./tests/views/labels-takedown.test.ts","./tests/views/likes.test.ts","./tests/views/list-feed.test.ts","./tests/views/lists.test.ts","./tests/views/mute-lists.test.ts","./tests/views/mutes.test.ts","./tests/views/notifications.test.ts","./tests/views/posts.test.ts","./tests/views/profile.test.ts","./tests/views/quotes.test.ts","./tests/views/reposts.test.ts","./tests/views/starter-packs.test.ts","./tests/views/suggested-follows.test.ts","./tests/views/suggestions.test.ts","./tests/views/thread-v2.test.ts","./tests/views/thread.test.ts","./tests/views/threadgating.test.ts","./tests/views/timeline.test.ts","./tests/views/verification.test.ts"],"version":"5.8.3"}
|