Commit Graph

2335 Commits

Author SHA1 Message Date
lamp 0770688814 Merge tag '@atproto/pds@0.4.221' into modify-pds
@atproto/pds@0.4.221
2026-05-06 03:09:39 -04:00
github-actions[bot] 5af5deff55 Version packages (#4881)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-04-29 15:23:54 +01:00
Matthieu Sieben 087515e6a4 Improve oauth client sign-in options (#4896) 2026-04-29 15:19:25 +01:00
devin ivy 877e6293b9 pds: use entryway mock server for tests (#4757)
* pds: setup entryway mock server for tests, remove stale dep.

* changeset

* tidy test

* pds: tidy mock entryway
2026-04-24 16:35:18 -04:00
Matthieu Sieben 5d3e248c26 Fix /.well-known/change-password page (#4880)
* Fix /account/reset-password route

* changeset

* tidy

* improve error reporting

* messages

* name all providers
2026-04-23 17:58:22 +02:00
Emelia Smith 6467208918 Add documentation for requestLock throwing errors (#4879) 2026-04-22 17:55:30 +02:00
github-actions[bot] 17c394d9b1 Version packages (#4878)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-04-22 10:19:29 -03:00
rafael 03445eef45 update group chat lexicons (#4876) 2026-04-22 10:14:29 -03:00
github-actions[bot] 98d1d019c1 Version packages (#4867)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-04-21 11:43:55 -03:00
rafael 3cb156907a update chat lexicons (#4875) 2026-04-21 11:39:02 -03:00
Matthieu Sieben 84eb5ed95d Fix reset password flow from account page (#4873) 2026-04-20 17:56:58 +02:00
rafael dacb0e8005 group chat declaration hydration (#4868)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-20 10:43:20 -03:00
DS Boyce 750cfe9020 Codegen to add new descriptions (#4866)
* Codegen to add new descriptions

* Add changeset
2026-04-16 14:14:31 -07:00
github-actions[bot] e1d5e63314 Version packages (#4864)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-04-16 02:10:13 +01:00
David Buchanan c531144d24 OAuth Hooks Enhancements (#4857)
* onSignInFailed oauth hook

* plumb Account through to onSignInFailed hook

* plumb client ids through to oauth hooks

* pass sub to InvalidCredentialsError, not full Account

* defensively downgrade InvalidCredentialsError to InvalidRequestError after delivering onSignInFailed hook

* changeset

* support InvalidCredentialsError in PDS oauth store, test for enumeration attacks

* changeset

* fix test

* slight simplification
2026-04-16 02:01:12 +01:00
github-actions[bot] f93115f2e7 Version packages (#4860)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-04-15 15:47:06 -03:00
rafael 1d575edac9 group chat lexicons (#4854) 2026-04-15 15:35:18 -03:00
github-actions[bot] ff9f84e11a Version packages (#4851)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-04-15 10:06:49 +02:00
Matthieu Sieben 0cfb16b2bf Disable COEP headers when hCaptcha is enabled (#4855) 2026-04-15 08:58:39 +02:00
Matthieu Sieben 26d793af95 Improve AtUriString type an utilities (#4806)
* Improve `AtUriString` type an utilities

* review comments

* tidy

* tidy

* tidy

* tidy

* Apply suggestion from @matthieusieben

* Apply suggestion from @matthieusieben

* review comments
2026-04-14 18:57:10 +02:00
Matthieu Sieben 55d06de80a Fix normalizeDatetime inconsistencies (#4760)
* Fix `normalizeDatetime` inconsistencies

* tdy

* tidy

* tests

* tidy

* tidy

* comment
2026-04-14 18:56:26 +02:00
Matthieu Sieben 61e75af39e Improve error reporting (#4816)
* Improve error reporting from fetchHandler() in NodeJS

* Use request logger instead of global one when performing service proxying
2026-04-14 17:05:13 +02:00
Matthieu Sieben 952354c1dd Improve performances of lexParseJsonBytes function (#4836)
* Improve performances of `lexParseJsonBytes` function

* tidy

* tidy

* Add test for repeated keys; fix import order in bench file

Agent-Logs-Url: https://github.com/bluesky-social/atproto/sessions/3cb30e99-4d11-4396-82a3-79c2eb5ca6cf

Co-authored-by: matthieusieben <813661+matthieusieben@users.noreply.github.com>

* Fix `lexParseJsonBytes` strict mode to match `lexParse` behavior (#4843)

* Initial plan

* Fix lexParseJsonBytes strict mode to match lexParse behavior

- Fix parseNull/parseTrue/parseFalse to throw SyntaxError with 'Unexpected token' (matching JSON.parse)
- Fix parseNumber to compute full value before validating, throw TypeError('Invalid non-integer number: ${value}') in strict mode (matching lexParse)
- Fix parseObject to throw TypeError (not SyntaxError) for invalid $bytes, $link, and blob objects
- Use parseTypedBlobRef instead of isBlobRef for blob validation
- Add $type empty string check and improve $type error messages
- Update incorrect test: 1e10 is a safe integer and should not throw in strict mode
- Add comprehensive strict vs non-strict mode parity tests for lexParseJsonBytes vs lexParse

Agent-Logs-Url: https://github.com/bluesky-social/atproto/sessions/c72e3862-277f-4f61-b4eb-b5a334e42647

Co-authored-by: matthieusieben <813661+matthieusieben@users.noreply.github.com>

* Improve code comment in parseNumber

Agent-Logs-Url: https://github.com/bluesky-social/atproto/sessions/c72e3862-277f-4f61-b4eb-b5a334e42647

Co-authored-by: matthieusieben <813661+matthieusieben@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: matthieusieben <813661+matthieusieben@users.noreply.github.com>

* tidy

* tidy

* tests

* tidy

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: matthieusieben <813661+matthieusieben@users.noreply.github.com>
2026-04-14 17:04:14 +02:00
Matthieu Sieben b3ce11ae2e OAuth provider UI unification (#4820)
* refactor

* tidy

* tidy
2026-04-14 16:46:18 +02:00
Jim Calabro b704c52327 Data Plane Caller Interceptor (#4852)
* Data Plane Caller Interceptor

* Changeset

* add a test

---------

Co-authored-by: Eric Bailey <git@esb.lol>
2026-04-13 17:58:38 -04:00
rafael 7c61f196c3 improve ctx typing (#4849) 2026-04-13 11:09:05 -03:00
github-actions[bot] 2a9221d244 Version packages (#4842)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-04-09 15:21:17 -05:00
Eric Bailey 55c39860c8 Make sure to include did and isMe checks on decideStatus default decision (#4841) 2026-04-09 15:15:57 -05:00
github-actions[bot] 83b7246439 Version packages (#4833)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-04-09 10:24:41 -05:00
Eric Bailey d8801e2a17 Increase max image upload size to 2mb from 1mb (#4823)
* Increase max image upload size to 2mb from 1mb

* SI

* Apply suggestion from @surfdude29

Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com>

---------

Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com>
2026-04-08 16:47:40 -05:00
Eric Bailey aa1763df0f [APP-1775] Hydrate labels for actor statuses (#4555)
* Add labels to statusView, hydrate and return them

* Add test

* Add moderateStatus API SDK method

* Changeset

* Format
2026-04-08 16:06:27 -05:00
Matthieu Sieben b6b231f9c0 Fix typing of delete options to omit body instead of params. (#4839) 2026-04-08 16:22:21 +02:00
Matthieu Sieben f6f100c337 Avoid alteration of record data (#4835) 2026-04-08 16:11:08 +02:00
devin ivy 7000746941 bsky: do not apply blocks viewed by trusted mod service (#4837)
* bsky: skip blocks against mod viewer

* bsky: test mod service blocks fix

* changeset
2026-04-07 18:03:52 -04:00
Matthieu Sieben c62651dd69 Fix support for legacy blobs in lex SDK (#4828)
* Allow validation of legacy blobs (in 'validate' mode)

* tidy

* tidy

* tidy

* changeset

* tidy

* review comments

* update skills

* tidy

* Add `TypedBlobRef`

* fix style

* review comments

* lint
2026-04-07 20:11:46 +02:00
Matthieu Sieben 284e6fbca9 Revert #4824 (#4834)
Revert "Fix legacy profile validation by using safeParse instead of ifMatches validation (#4824)"

This reverts commit 9def38a5f6.
2026-04-07 12:01:29 +02:00
Eric Bailey 9def38a5f6 Fix legacy profile validation by using safeParse instead of ifMatches validation (#4824) 2026-04-07 10:24:51 +02:00
github-actions[bot] 158daf65fc Version packages (#4831)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-04-06 19:27:01 -05:00
Eric Bailey 42232c7f36 Register new suggested user endpoints with the router (#4830) 2026-04-06 18:56:30 -05:00
github-actions[bot] b6a9625e36 Version packages (#4811)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-04-02 13:24:00 -07:00
Matthieu Sieben 3711454321 Rewrite of aturi tests (#4815) 2026-03-28 17:13:57 -07:00
DS Boyce 2a5e2c267f Create new endpoints for suggested users (#4809)
* Create new endpoint for suggested users for Explore

* Update comment

* Add remaining endpoints

* Remove categories from discover endpoint

* Update descriptions
2026-03-27 10:46:10 -07:00
DS Boyce 34f9ae1f68 Show suggestions to logged out users (#4810)
* Show suggestions to logged out users

* Add changeset
2026-03-26 16:13:06 -07:00
github-actions[bot] 2203d825e8 Version packages (#4776)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-03-26 09:17:15 -03:00
Matthieu Sieben 4f11fc341a Add support for indexed query params syntax (#4804)
* Add support for indexed query params syntax

* Review comments

* avoid altering lexicons

* remove `getProfile`

* optimize regexp

* fix regexp
2026-03-25 21:07:03 +01:00
Matthieu Sieben c224e1fae6 add missing paramsParseLoose (#4803) 2026-03-24 15:56:18 +01:00
Matthieu Sieben 6116d56d36 Allow [] query params syntax with app.bsky.feed.getPostThread end… (#4802)
Allow `[]` query params syntax with `app.bsky.feed.getPostThread` endpoint
2026-03-24 15:49:37 +01:00
Matthieu Sieben ac6bd18f1d Disable strict mode parsing of records (#4796) 2026-03-24 13:38:11 +01:00
Matthieu Sieben c5c6c7dac3 Allow any encoding to match payload with no encoding specified in schema (#4799)
* Allow any encoding to match paylaod that don't expect any particular encoding

* Explicitly cancel request body when it does not get consumed

* tidy
2026-03-24 13:36:57 +01:00
Matthieu Sieben fac213dfdc Fix error stating that the lex build folder could not be cleared (#4800) 2026-03-24 13:30:48 +01:00