2067 Commits

Author SHA1 Message Date
Foysal Ahamed
e9240c8b5e
🐛 Retrieve takendown profiles from app.bsky.actor.getProfiles based on auth (#3206) 2024-12-07 16:47:02 -05:00
Foysal Ahamed
32baddf4a9
🐛 Fix auth level check for protected tags (#3205) 2024-12-07 12:02:42 -05:00
Daniel Holmgren
0bec389a1c
Sync: pass through websocket opts (#2992)
* pass through websocket options in firehose

* changeset

* import type
2024-12-05 19:01:23 -06:00
Daniel Holmgren
c9848edaf0
Fix missing delete blocks (#3033)
* send relevant blocks on commit

* use relevantBlocks in pds

* test

* fix compiler errors

* send both new & relevant blocks

* build branch

* changsets

* no build branch
2024-12-05 18:16:10 -06:00
Matthieu Sieben
588baae121
Minor adaptation of VerifyCidTransform implementation (#3178) 2024-12-05 18:06:01 +01:00
github-actions[bot]
21542d4484
Version packages (#3136)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-12-05 11:51:46 +00:00
Foysal Ahamed
ed22362209
Optionally ack all open subjects from the author with acknowledge event (#3171)
*  Acknowledge all open subjects of an account when acknowledging account level reports

* 📝 Add changeset
2024-12-05 11:45:28 +00:00
Foysal Ahamed
c72145dbeb
Allow querying events by multiple keywords using OR condition (#3070)
*  Allow querying events by multiple keywords using OR condition

* 📝 Update comment

*  Update operator to ||

*  Fix test

* 🐛 Handle edge cases around search query

*  Codgen
2024-11-29 18:00:48 +00:00
Matthieu Sieben
6226546725
Improve messaging of client metadata loading errors (#3135)
* Improve messaging of client metadata loading errors

Fixes #3096

* Support parsing of more fetch() errors
2024-11-29 16:05:58 +01:00
rafael
3303ff16a4
Remove author blocks from getLikes (#3012)
* Capture the issue in a test case

* Remove 3p blocks in getLikes

* fix test that captures the bug

* remove unnecessary hydration

* Remove `!viewer` check
2024-11-26 17:56:42 -05:00
Devin Ivy
4bf368f6a1 add entry for @DavidBuchanan314 security disclosure 2024-11-26 17:44:21 -05:00
devin ivy
167270bd7a
Appview: fix takendown blocklist application on actor.getProfile (#3108)
appview: fix takendown blocklist application on actor.getProfile
2024-11-26 17:23:03 -05:00
github-actions[bot]
53fcc2fbcb
Version packages (#3100)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-25 21:22:04 -05:00
Hwee-Boon Yar
36280bed10
Fix: typo (#3101) 2024-11-25 14:22:45 -05:00
Matthieu Sieben
1e367cba2b
Update email validation logic (#3092) 2024-11-25 08:52:11 +01:00
Matthieu Sieben
5ddd51235c
OAuth url scheme validation (#3066)
* Improve message of OAuthResolverError in case of metadata validation error

* Use named export from zod

* docs

* Enforce use of http and https url where applicable

* Verify authorization_endpoint URL protocol

* fix pds tests for new oauth resource metadata check

* Allow non-https urls as resource metadata url

* Strong validation or redirect_uri

* Ensure that client-id is a web url

* explicit use of "url" schema as potentially dangerous

* changeset

* tidy

* simplify type

* prevent loopback hostname for https: redirect uris

* Forbid use of non https internet uris

* allow "localhost" for web uris

* tidy

* tidy

* tidy

---------

Co-authored-by: Devin Ivy <devinivy@gmail.com>
2024-11-25 01:51:33 -05:00
github-actions[bot]
b5c6bce970
Version packages (#3083)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-22 18:40:17 -08:00
dan
a3ce23c4cc
Add hotness as a default thread sort option (#3082)
* Add hotness as a thread sorting option

* Changeset
2024-11-22 18:36:55 -08:00
Daniel Holmgren
0dff6123ff
Filter needs-review labels (#3076)
filter needs review labels
2024-11-22 16:42:15 -06:00
Foysal Ahamed
011e73ec05
Add protected tag setting (#3050)
*  Add protected tag setting

*  Add tests for protected tag options

*  Validate mod and role list

* 🧹 Replace usage of objects with Map

* 🐛 Fix setting validator getter
2024-11-22 15:28:53 +00:00
github-actions[bot]
7b16a861d1
Version packages (#3032)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-21 12:52:30 -05:00
rafael
2e7aa211d2
addReservedHandle lexicon (#3056)
* addReservedHandle lexicon

* addReservedHandle codegen

* changeset

* Add empty object output

* Empty object output codegen
2024-11-21 14:40:45 -03:00
devin ivy
21fd024334
Appview: apply needs-review to notifications, threads, quote lists (#3058)
* appview: apply needs-review to notifications, threads, quote lists

* appview: tests for needs-review labels

* appview: apply needs-review to mentions
2024-11-20 20:09:07 -05:00
Emma MB
828f17f53a
Fix minor spelling mistake in api/README.md (#3037)
Fix minor spelling mistake
2024-11-19 08:49:35 -08:00
devin ivy
64d9310ae9
Appview: control max thread depth (#3015)
* appview: timeout getFollowsFollowing, fail open

* build

* reduce thread size

* setup thread depth configs

* tidy
2024-11-19 11:11:44 -05:00
devin ivy
0f7f53655b
Appview: timeout polo, fail open (#3007)
* appview: timeout getFollowsFollowing, fail open

* build
2024-11-19 10:52:22 -05:00
rafael
2d9a2a8f47
Return empty cursor if feed echoes input cursor (#2989)
* Throw if custom feed echoes input cursor out

* Return empty cursor instead of throwing
2024-11-18 18:16:33 -05:00
Daniel Holmgren
90399c8595
Resolve record instead of feed view for getFeed (#3034)
* resolve record instead of feed view for getFeed

* changeset
2024-11-18 15:39:32 -06:00
rafael
a4b528e5f5
Add searchStarterPacks to appview (#2978)
* Add app.bsky.graph.searchStarterPacks lexicon

* Codegen for app.bsky.graph.searchStarterPacks

* Add app.bsky.unspecced.searchStarterPacksSkeleton

* Gen app.bsky.unspecced.searchStarterPacksSkeleton

* Add SearchStarterPacks rpc to bsky.proto

* Implement searchStarterPacks endpoint

* @atproto/api changeset

* Add starter pack search by term to dataplane
2024-11-18 10:36:39 -03:00
Matthieu Sieben
c34426fc55
Fix ozone preferences test (#3001)
use consistent ordering of insertion
2024-11-14 14:27:49 +01:00
Matthieu Sieben
879a74f7b8
Fix failing CI (#3000)
* fix

* use distinct pg schemas for all tests
2024-11-14 14:13:58 +01:00
github-actions[bot]
3a5fc92a74
Version packages (#2962)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-13 17:00:25 -06:00
Eric Bailey
24423fc2dd
Ensure RAW returns empty quoteCount (#2990)
* Ensure RAW returns empty quoteCount

* Add changeset
2024-11-13 16:01:26 -06:00
Foysal Ahamed
48d08a469f
🐛 Define durationInHours as optional for reporter mute for permanent mutes (#2988)
* 🐛 Define durationInHours as optional for reporter mute for permanent mutes

* 📝 Add changeset
2024-11-13 21:11:16 +01:00
Matthieu Sieben
bac9be2d3e
lex-cli improvements (#2911)
* Retain type of `schemas` using definition type instead of obscuring into a `LexiconDoc[]`

* Improve validation performances by using discriminated unions where possible

* Export the generated lexicons `schemas` definitions

* optimization

* changeset

* tidy
2024-11-08 19:12:04 +01:00
Samuel Newman
c6a9678280 Revert "lexicon change - add presentation"
This reverts commit 4084f6091a69fde86172eae9fd562ae4bb58fbae.
2024-11-08 14:57:46 +00:00
Samuel Newman
4084f6091a lexicon change - add presentation 2024-11-08 13:29:36 +00:00
rafael
561431fe48
Add opened to chat.bsky.convo.defs#convoView (#2953)
* Add convoView to chat.bsky.convo.defs#convoView

* Add changeset
2024-11-08 08:53:05 -03:00
github-actions[bot]
b398276b36
Version packages (#2932)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-08 10:22:43 +01:00
Damien Tournoud
92cd7a84ad
PDS_BSKY_APP_VIEW_ENDPOINT is now PDS_BSKY_APP_VIEW_URL (#2960)
This has changed about a year ago, but this example was missed.

Fixes: d664b51c6490ebed3557c002ad912cfa828aef56
2024-11-07 19:48:53 -08:00
bnewbold
cdc0bbf389
com.atproto lexicions: longer rkey length (#2949)
* bump lexicon rkey limits to match specs

* codegen
2024-11-07 19:23:25 -08:00
dan
b6eeb81c6d
Resolve facets in parallel (#2957)
* Detect facets in parallel

* Add changeset
2024-11-08 00:27:03 +00:00
Pyrox
124eaee8f2
bsky,pds: sharp 0.32.6 -> 0.33.5 (#2958) 2024-11-07 19:16:33 -05:00
Foysal Ahamed
d6f33b4742
Add events for account and record update/delete/deactivation (#2661)
*  Add events for account and record update/delete/deactivation

*  Add handle change event

*  Reduce account events to 2 types and record events to 1

*  Store metadata from account, identity and record events

*  Add created event for record

*  Add ndd the new events to allowed types in emitEvent

*  Use string value for record op and add tombstone flag to identity event

*  Add active flag on account events

*  Change accountStatus -> status to match with firehose event

*  Make active flag required

* 🚨 fix prettier style issue

*  Track record/account delete and update data in subject status (#2804)

*  Store deleted/updated event data in subject_status

* 🐛 Fix query for recordDeletedAt and recordUpdatedAt

*  Add tombstoned status

*  Move from record to hosting term

*  Add tests for hosting params

*  Update lexicons for hostingStatuses

*  Update snapshots

*  Update snapshots

*  Update snapshots

*  Adjust hosting statuses

* 📝 Add changeset
2024-11-07 22:51:44 +01:00
Foysal Ahamed
c4b5e53957
Ozone instance-wide and user-specific settings (#2905)
*  Settings endpoints are working

* 🧹 Rename file

*  Replace ad-hoc manage roles to match team member roles

* ♻️ Refactor role names

*  Polish up

*  Move to using id for pagination

* 📝 Add changeset

*  Update snapshots

*  Change column order in setting table index and add did in all queries
2024-11-07 22:43:30 +01:00
Matthieu Sieben
839202a3d2
Allow instantiating an api Agent with a string or URL (#2917)
* Allow instantiating an api Agent with a string or URL

* changeset

* Update .changeset/stupid-spiders-buy.md

Co-authored-by: Bigint <69431456+bigint@users.noreply.github.com>

---------

Co-authored-by: Bigint <69431456+bigint@users.noreply.github.com>
2024-11-07 12:22:33 -05:00
rafael
1982693e3e
Use node:crypto instead of noble/curves (#2936)
* Extract verifySignatureWithKey out of verifyJwt

* Accept optional verifySignatureWithKey as param

* Impl. verifySignatureWithKey with native crypto

* Test key validation

* changesets

* build

* build (fix)

* Move verifySig out

* Trigger Build

* Move test

* Remove redundant check

---------

Co-authored-by: Devin Ivy <devinivy@gmail.com>
2024-11-07 13:29:42 -03:00
dan
9e18ab6a35
Fix optimistic getPostThread for URIs with handle (#2946)
* Harden test coverge (add failing test)

* Resolve handle for post thread request

* Changeset
2024-11-04 18:28:39 -06:00
devin ivy
12af21ef4d
Appview: apply epoch for indexed-at times in views (#2943)
* appview: start setting up index-at epoch, applying to posts

* appview: present all indexed-at times w/ epoch

* appview: update Views constructor to take args as object

* tidy
2024-11-04 16:39:51 -05:00
Matthieu Sieben
709ba30157
Properly negotiate response content-encoding (#2852)
* Properly negotiate response content-encoding

* negotiate acceptable encoding and type before building responses

* remove un-necessary async

* typo

* Remove response content-encoding logic

* Avoid using chunked encoding when writing a buffer to the response
2024-11-04 09:40:33 +01:00