@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.
Files changed (51) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/api/app/bsky/feed/searchPostsV2.d.ts.map +1 -1
  3. package/dist/api/app/bsky/feed/searchPostsV2.js +3 -0
  4. package/dist/api/app/bsky/feed/searchPostsV2.js.map +1 -1
  5. package/dist/auth-verifier.d.ts +18 -13
  6. package/dist/auth-verifier.d.ts.map +1 -1
  7. package/dist/auth-verifier.js +9 -2
  8. package/dist/auth-verifier.js.map +1 -1
  9. package/dist/config.d.ts +7 -7
  10. package/dist/config.d.ts.map +1 -1
  11. package/dist/config.js +4 -1
  12. package/dist/config.js.map +1 -1
  13. package/dist/lexicons/app/bsky/feed/searchPostsV2.defs.d.ts +4 -4
  14. package/dist/lexicons/app/bsky/feed/searchPostsV2.defs.d.ts.map +1 -1
  15. package/dist/lexicons/app/bsky/feed/searchPostsV2.defs.js +2 -1
  16. package/dist/lexicons/app/bsky/feed/searchPostsV2.defs.js.map +1 -1
  17. package/package.json +8 -8
  18. package/src/api/app/bsky/feed/searchPostsV2.ts +4 -1
  19. package/src/auth-verifier.ts +28 -18
  20. package/src/config.ts +8 -5
  21. package/tests/data-plane/subscription.test.ts +2 -1
  22. package/tests/data-plane/thread-mutes.test.ts +3 -2
  23. package/tests/feed-generation.test.ts +2 -1
  24. package/tests/label-hydration.test.ts +6 -5
  25. package/tests/query-labels.test.ts +5 -4
  26. package/tests/seed/feed-hidden-replies.ts +3 -2
  27. package/tests/seed/get-suggested-starter-packs.ts +3 -2
  28. package/tests/seed/get-trends.ts +3 -2
  29. package/tests/seed/known-followers.ts +2 -1
  30. package/tests/seed/postgates.ts +3 -2
  31. package/tests/views/account-deactivation.test.ts +2 -1
  32. package/tests/views/actor-likes.test.ts +4 -3
  33. package/tests/views/author-feed.test.ts +6 -5
  34. package/tests/views/block-lists.test.ts +8 -7
  35. package/tests/views/blocks.test.ts +5 -4
  36. package/tests/views/bookmarks.test.ts +5 -4
  37. package/tests/views/feed-hidden-replies.test.ts +5 -4
  38. package/tests/views/feed-view-post.test.ts +5 -4
  39. package/tests/views/get-suggested-onboarding-users.test.ts +3 -2
  40. package/tests/views/internal-actor.test.ts +2 -1
  41. package/tests/views/known-followers.test.ts +2 -1
  42. package/tests/views/labeler-service.test.ts +4 -3
  43. package/tests/views/likes.test.ts +5 -4
  44. package/tests/views/list-feed.test.ts +7 -4
  45. package/tests/views/mute-lists.test.ts +22 -11
  46. package/tests/views/mutes.test.ts +24 -10
  47. package/tests/views/notifications.test.ts +15 -14
  48. package/tests/views/post-search.test.ts +4 -3
  49. package/tests/views/profile.test.ts +12 -8
  50. package/tests/views/quotes.test.ts +5 -4
  51. 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: string
29
+ let labelerDid: DidString
29
30
 
30
31
  // account dids, for convenience
31
- let alice: string
32
- let bob: string
33
- let dan: string
34
- let eve: string
35
- let frank: string
36
- let noprofile: string
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(did: string, record: Record<string, unknown>) {
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: string
13
- let bob: string
14
- let carol: string
15
- let eve: string
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: string
25
- let bob: string
26
- let carol: string
25
+ let alice: DidString
26
+ let bob: DidString
27
+ let carol: DidString
27
28
 
28
29
  beforeAll(async () => {
29
30
  network = await TestNetwork.create({