@atproto/bsky 0.0.245 → 0.0.247
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 +17 -0
- package/dist/api/app/bsky/feed/searchPostsV2.d.ts.map +1 -1
- package/dist/api/app/bsky/feed/searchPostsV2.js +3 -0
- package/dist/api/app/bsky/feed/searchPostsV2.js.map +1 -1
- package/dist/auth-verifier.d.ts +18 -13
- package/dist/auth-verifier.d.ts.map +1 -1
- package/dist/auth-verifier.js +9 -2
- package/dist/auth-verifier.js.map +1 -1
- package/dist/config.d.ts +7 -7
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +4 -1
- package/dist/config.js.map +1 -1
- package/dist/lexicons/app/bsky/feed/searchPostsV2.defs.d.ts +4 -4
- package/dist/lexicons/app/bsky/feed/searchPostsV2.defs.d.ts.map +1 -1
- package/dist/lexicons/app/bsky/feed/searchPostsV2.defs.js +2 -1
- package/dist/lexicons/app/bsky/feed/searchPostsV2.defs.js.map +1 -1
- package/package.json +8 -8
- package/src/api/app/bsky/feed/searchPostsV2.ts +4 -1
- package/src/auth-verifier.ts +28 -18
- package/src/config.ts +8 -5
- package/tests/data-plane/subscription.test.ts +2 -1
- package/tests/data-plane/thread-mutes.test.ts +3 -2
- package/tests/feed-generation.test.ts +2 -1
- package/tests/label-hydration.test.ts +6 -5
- package/tests/query-labels.test.ts +5 -4
- package/tests/seed/feed-hidden-replies.ts +3 -2
- package/tests/seed/get-suggested-starter-packs.ts +3 -2
- package/tests/seed/get-trends.ts +3 -2
- package/tests/seed/known-followers.ts +2 -1
- package/tests/seed/postgates.ts +3 -2
- package/tests/views/account-deactivation.test.ts +2 -1
- package/tests/views/actor-likes.test.ts +4 -3
- package/tests/views/author-feed.test.ts +6 -5
- package/tests/views/block-lists.test.ts +8 -7
- package/tests/views/blocks.test.ts +5 -4
- package/tests/views/bookmarks.test.ts +5 -4
- package/tests/views/feed-hidden-replies.test.ts +5 -4
- package/tests/views/feed-view-post.test.ts +5 -4
- package/tests/views/get-suggested-onboarding-users.test.ts +3 -2
- package/tests/views/internal-actor.test.ts +2 -1
- package/tests/views/known-followers.test.ts +2 -1
- package/tests/views/labeler-service.test.ts +4 -3
- package/tests/views/likes.test.ts +5 -4
- package/tests/views/list-feed.test.ts +7 -4
- package/tests/views/mute-lists.test.ts +22 -11
- package/tests/views/mutes.test.ts +24 -10
- package/tests/views/notifications.test.ts +15 -14
- package/tests/views/post-search.test.ts +4 -3
- package/tests/views/profile.test.ts +12 -8
- package/tests/views/quotes.test.ts +5 -4
- package/tests/views/thread.test.ts +4 -3
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
} from '@atproto/api'
|
|
19
19
|
import { HOUR, MINUTE } from '@atproto/common'
|
|
20
20
|
import { SeedClient, TestNetwork, basicSeed } from '@atproto/dev-env'
|
|
21
|
+
import type { DidString } from '@atproto/syntax'
|
|
21
22
|
import { forSnapshot, stripViewer } from '../_util.js'
|
|
22
23
|
|
|
23
24
|
describe('pds profile views', () => {
|
|
@@ -25,15 +26,15 @@ describe('pds profile views', () => {
|
|
|
25
26
|
let agent: AtpAgent
|
|
26
27
|
let pdsAgent: AtpAgent
|
|
27
28
|
let sc: SeedClient
|
|
28
|
-
let labelerDid:
|
|
29
|
+
let labelerDid: DidString
|
|
29
30
|
|
|
30
31
|
// account dids, for convenience
|
|
31
|
-
let alice:
|
|
32
|
-
let bob:
|
|
33
|
-
let dan:
|
|
34
|
-
let eve:
|
|
35
|
-
let frank:
|
|
36
|
-
let noprofile:
|
|
32
|
+
let alice: DidString
|
|
33
|
+
let bob: DidString
|
|
34
|
+
let dan: DidString
|
|
35
|
+
let eve: DidString
|
|
36
|
+
let frank: DidString
|
|
37
|
+
let noprofile: DidString
|
|
37
38
|
|
|
38
39
|
beforeAll(async () => {
|
|
39
40
|
network = await TestNetwork.create({
|
|
@@ -756,7 +757,10 @@ describe('pds profile views', () => {
|
|
|
756
757
|
expect(data.createdAt).toBeUndefined()
|
|
757
758
|
})
|
|
758
759
|
|
|
759
|
-
async function updateProfile(
|
|
760
|
+
async function updateProfile(
|
|
761
|
+
did: DidString,
|
|
762
|
+
record: Record<string, unknown>,
|
|
763
|
+
) {
|
|
760
764
|
return await pdsAgent.api.com.atproto.repo.putRecord(
|
|
761
765
|
{
|
|
762
766
|
repo: did,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { afterAll, beforeAll, beforeEach, describe, expect, it } from 'vitest'
|
|
2
2
|
import { AtpAgent, ids } from '@atproto/api'
|
|
3
3
|
import { SeedClient, TestNetwork, quotesSeed } from '@atproto/dev-env'
|
|
4
|
+
import type { DidString } from '@atproto/syntax'
|
|
4
5
|
import { forSnapshot } from '../_util.js'
|
|
5
6
|
|
|
6
7
|
describe('pds quote views', () => {
|
|
@@ -9,10 +10,10 @@ describe('pds quote views', () => {
|
|
|
9
10
|
let sc: SeedClient
|
|
10
11
|
|
|
11
12
|
// account dids, for convenience
|
|
12
|
-
let alice:
|
|
13
|
-
let bob:
|
|
14
|
-
let carol:
|
|
15
|
-
let eve:
|
|
13
|
+
let alice: DidString
|
|
14
|
+
let bob: DidString
|
|
15
|
+
let carol: DidString
|
|
16
|
+
let eve: DidString
|
|
16
17
|
|
|
17
18
|
beforeAll(async () => {
|
|
18
19
|
network = await TestNetwork.create({
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
ids,
|
|
9
9
|
} from '@atproto/api'
|
|
10
10
|
import { SeedClient, TestNetwork, basicSeed } from '@atproto/dev-env'
|
|
11
|
+
import type { DidString } from '@atproto/syntax'
|
|
11
12
|
import {
|
|
12
13
|
assertIsThreadViewPost,
|
|
13
14
|
forSnapshot,
|
|
@@ -21,9 +22,9 @@ describe('appview thread views', () => {
|
|
|
21
22
|
let sc: SeedClient
|
|
22
23
|
|
|
23
24
|
// account dids, for convenience
|
|
24
|
-
let alice:
|
|
25
|
-
let bob:
|
|
26
|
-
let carol:
|
|
25
|
+
let alice: DidString
|
|
26
|
+
let bob: DidString
|
|
27
|
+
let carol: DidString
|
|
27
28
|
|
|
28
29
|
beforeAll(async () => {
|
|
29
30
|
network = await TestNetwork.create({
|