Commit Graph

2872 Commits

Author SHA1 Message Date
rafael 2e5a24cb87 lexicon: Remove WARNING from contact lexicons (#4452)
* lexicon: Remove WARNING from contact lexicons

* changeset
2025-12-12 06:53:11 -08:00
Daniel Holmgren b4a76bae7b Sync tool library (#4290)
* first pass

* tweaks

* tidy

* alt ack example

* websocket keep alive & callback/handler interface for channel

* simplify evt schemas

* readme

* thread through signal

* small fix

* router -> indexer & tidy wording

* small tweaks

* add type to ack msg

* pr feedback

* no implicit any

* resolve after buffered ack is actually sent

* create new websocket lib

* switch out ozone impl

* keepalive test

* remove websocket keepalive code from xrpc-server

* add the package in all the spots

* use websocket lib

* fix returned promise in simple-indexer

* websocket -> ws-client

* missed ref

* websocket -> ws-client

* nexus -> tap

* tidy readme

* admin password auth & fix some routes

* user evt -> identity evt

* small fixes

* add missing methods & types

* fix type in resolveDid

* update version

* pr feedback, assureAdminAUth util & README fixes

* more readme

* couple fixups

* lockfile

* tidy deps

* tests

* changesets

* lint readme

* add note to readme
2025-12-11 20:14:11 -06:00
Foysal Ahamed 5605e4d619 🐛 Avoid repo_push_event insertion if no rows are created (#4451)
* 🐛 Avoid repo_push_event insertion if no rows are created

* 📝 Add changeset
2025-12-12 01:41:16 +01:00
rafael 9917b9f1c8 bsky: Hookup missing endpoint (#4450) 2025-12-11 20:10:55 -03:00
Samuel Newman 13edecd0d3 Change contacts lexicon errors to Pascal case (#4446)
* PascalCase errors

* codegen

* convert error names

* fix error names for internal case

---------

Co-authored-by: rafaeleyng <rafaeleyng@gmail.com>
2025-12-11 12:32:00 -08:00
Foysal Ahamed d818622dc2 🔊 Add logging for ozone emitEvent endpoint (#4448) 2025-12-11 21:26:08 +01:00
Samuel Newman 5622bcf023 Add changeset for XRPC errors PR (#4445)
Add changeset for XRPC errors
2025-12-11 11:49:24 -08:00
Eric Bailey 73c41b669d [APP-1667] Handle Rolodex service errors, translate to XRPCError (#4429) 2025-12-11 13:06:32 -03:00
rafael 0c26509f26 fix notification declarations hydration (#4444) 2025-12-11 11:07:58 -03:00
github-actions[bot] 1168691c36 Version packages (#4442)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-12-10 15:23:01 -06:00
Eric Bailey 45928bfcd6 [AAv2] Retain existing status/access when re-starting AA flow (#4441)
* Retain existing status/access when re-starting AA flow

* Add test, fix dataplane v1-v2 bug
2025-12-10 15:17:25 -06:00
Ian Wesley-Smith c05dd09159 Revert "add recId field to getSuggestedUsersSkeleton"
This reverts commit 1a05fbb7a6.
2025-12-10 11:24:43 -08:00
Ian Wesley-Smith 1a05fbb7a6 add recId field to getSuggestedUsersSkeleton 2025-12-10 11:16:57 -08:00
github-actions[bot] d698904c4c Version packages (#4433)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-12-10 09:07:07 -08:00
Jim Calabro 397c62fe9c Sitemap Handlers (#4434)
* add sitemap protos

* cd packages/bsky && npm run buf:gen

* implement user sitemap handlers

* add a test

* lint:fix

* use /external

* use Readable pipe for slightly more effecient data transfer

* rename functions to include the word user

* improve not found case and add test
2025-12-10 11:50:44 -05:00
rafael e266405a89 bsky: Add contact-match notification type (#4436) 2025-12-10 13:43:09 -03:00
github-actions[bot] fa265521f0 Version packages (#4431)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-12-09 16:03:46 -06:00
Eric Bailey 39fa57080f [APP-1672] Add new read-only #declaredAgePref (#4432)
* Add new read-only #declaredAgePref

* Update descriptions

* Update schemas
2025-12-09 15:55:08 -06:00
Eric Bailey 6fab3940f6 [AAv2] Allow users to re-init Age Assurance if not in blocked state (#4428)
* Allow users to re-init Age Assurance if not in blocked state

* Skip test
2025-12-09 15:49:11 -06:00
rafael f4cef84494 bsky: Contact import notifications endpoint (#4430) 2025-12-09 15:29:01 -03:00
github-actions[bot] 104e6ed37b Version packages (#4412)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-12-08 16:05:29 -03:00
Foysal Ahamed 7eb99f2ac7 Store and expose AA access property in ozone event (#4427)
*  Store and expose AA access property in ozone event

* 📝 Add changeset
2025-12-08 17:34:56 +01:00
rafael 380aa3bfe7 appview: Contact import lexicons (#4393) 2025-12-08 11:47:20 -03:00
Foysal Ahamed a6e16cd0cd 🐛 Add minLength to enforce mandatory comment field in ozone events (#4423) 2025-12-05 19:42:42 +01:00
rafael fb95dc6e6f bsky: Remove not found profiles from queries (#4417) 2025-12-05 13:39:39 -03:00
Matthieu Sieben d551b0e352 Align lexicon document validation with the spec (#4416)
* Align lexicon document validation with the spec

* fix types

* fix tests
2025-12-05 12:58:55 +01:00
Matthieu Sieben 693784c3a0 Add support for base64url encoding/decoding (#4422)
* Add support for base64url encoding/decoding

* add tests

* tidy

* improve tests

* tidy

* tidy

* tidy
2025-12-05 11:40:29 +01:00
bnewbold b570086f08 makefile: clean command (#4420) 2025-12-04 16:05:16 -08:00
Foysal Ahamed cfa01edb9c 🐛 Fix isDelivery flag for ozone's email event (#4419) 2025-12-04 21:50:05 +01:00
rafael 308f432f7a bsky: Expand getRelationships to include blocks (#4418) 2025-12-04 16:36:05 -03:00
Matthieu Sieben e39ca114ac Fix support for NodeJS version <18.18, 19.x, <20.4 and 21.x (#4413)
Add support for NodeJS version <18.18, 19.x, <20.4 and 21.x
2025-12-03 19:15:33 +01:00
Matthieu Sieben 7e1d45877b Update name of dist files (#4411) 2025-12-03 13:46:09 +01:00
Matthieu Sieben b0ecba0211 Add missin service files from Docker build 2025-12-03 08:58:38 +01:00
github-actions[bot] dc08244c24 Version packages (#4386)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-12-02 11:05:55 -06:00
Eric Bailey 90f15698ee Age Assurance V2 (#4407)
Age Assurance v2 endpoints and config
2025-12-02 10:58:29 -06:00
Matthieu Sieben 2d13d05ab0 Allow .call() argument "params" to be undefined (#4405)
Allow `.call()` argument "`params`" to be `undefined` when all params are optional
2025-12-02 14:08:58 +01:00
Matthieu Sieben b643521a5e Revert "Increase strictness of DID Document validation"
This reverts commit 468980f228.
2025-12-02 12:55:08 +01:00
Matthieu Sieben 6b28b116f8 Revert "Improve validation of DID Documents"
This reverts commit 86ff431100.
2025-12-02 12:55:03 +01:00
Matthieu Sieben 468980f228 Increase strictness of DID Document validation 2025-12-02 12:53:09 +01:00
Matthieu Sieben 86ff431100 Improve validation of DID Documents 2025-12-02 12:50:35 +01:00
Matthieu Sieben a487ab8afe Add tests (#4401)
* Add tests

* Fixes

* drop `lexiconType` property

* Simplify `ParamsSchema` interface

* tidy

* More tests
2025-12-01 17:12:47 +01:00
Matthieu Sieben 03a2a4bb38 Add lex-document test cases (#4400) 2025-12-01 14:08:23 +01:00
Matthieu Sieben 8012627a12 Migrate OAuth libs to new @atproto/lex utils (#4383)
* Migrate Oauth libs to new @atproto/lex utils

* pnpm-lock

* tidy

* fix

* tidy

* tidy

* tidy

* tidy

* Implement lex resolution logging through hooks
2025-12-01 12:24:01 +01:00
Matthieu Sieben a17d2e8a59 Add ignoreInvalidLexicons when building lexicon schemas (#4398)
* Add `ignoreInvalidLexicons` when building lexicon schemas

* tidy
2025-12-01 08:41:54 +01:00
Matthieu Sieben 688f9d6759 Add changelog to npm packages and @atproto/lex readme (#4397)
* Add changelog to npm packages and `@atproto/lex` readme

* changeset
2025-11-30 20:02:12 +01:00
Matthieu Sieben 6e55972a11 changeset (#4399) 2025-11-30 20:01:42 +01:00
Matthieu Sieben bcae2b77b6 Increase string format typing strictness (#4389)
* Increase string format typing strictness

* fix tests

* tidy

* Use string formats from `@atproto/syntax`

* tidy

* `key` field in `record` definitions is non optional and now properly validated

* add missing /*@__NO_SIDE_EFFECTS__*/
2025-11-30 19:46:07 +01:00
Matthieu Sieben 1d445af2a7 lex SDK improvements (#4390)
* Add `l.nullable` schema builder

* Use unique symbol to describe Validator type metadata

* fixup! Add `l.nullable` schema builder

* Rework object validation logic to work without `options` argument

* Do not use symbol for type inference

* Use `Issue` classes to represent validation issues

* Properly apply default value with `const` and `enum` schemas

* style

* Require `l.discriminatedUnion` discriminator field to be a literal or enum schema

* Add `l.refined` schema

* Add more lexicons document validation tests

* wip

* use "assert" fn

* rework refine system

* use assert instead of check fn

* tidy

* Rename schema methods `validate`, `check` and `maybe` to `safeParse`, `matches` and `ifMatches` respectively.

* docs

* changeset
2025-11-30 14:35:15 +01:00
Matthieu Sieben 9f87ff3aa6 Type dict keys as optional (#4387)
* Type `dict` keys as optional

* tidy
2025-11-25 21:48:26 +01:00
Matthieu Sieben 0adc852c31 Use arrays for "account" permission action attributes (#4353)
* Use arrays for "account" permission `action` attributes

* Allow lexicon permission data to be readonly

* changeset

* tidy

* tidy

* tidy
2025-11-25 21:48:10 +01:00