615 Commits

Author SHA1 Message Date
Daniel Holmgren
71e3edc8a4
Fix some linting warnings (#2532)
fix some linting warnings
2024-06-10 12:59:21 -05:00
github-actions[bot]
b82efd5d53
Version packages (#2549)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-06-05 14:59:20 -04:00
Foysal Ahamed
2b21b5be29
Search accounts by normalized email (#2426)
*  Search accounts by email domain works

*  Add Search against normalized email column

* 🐛 Fix pagination

*  Make email field optional in the response

* 🧹 Cleanup implementation

* 🧹 More cleanup

* 🧹 Cleanup and reuse accountView for searchAccounts response

* 📝 Add changeset

*  Add min max and default to limit
2024-06-05 11:40:16 -04:00
github-actions[bot]
5441fbde9e
Version packages (#2546)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-06-04 10:57:52 -05:00
Daniel Holmgren
9495af23bd
Update deactivation through updateSubjectStatus (#2539)
* attach hosting status to entryway session responses

* integrate account deactivation in with entryway

* tidy

* tidy

* chnageset

* update changeset
2024-06-04 10:33:47 -05:00
github-actions[bot]
c5d36d5ba2
Version packages (#2538)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-05-31 16:44:11 -05:00
Daniel Holmgren
255d5ea1f0
Account deactivation (#2531)
* subscribe repos lex: new #account event type

* lex: getAccountStatus endpoint

* lex: add account status errors to sync methods

* tweak type of token union

* fix getAccountStatus parameter name

* codegen

* Account -> Repo

* re-codegen

* update errors in sync methods

* add getRepoStatus route

* add account events to sequencer

* emit account evts

* fix test + small bugfixin

* handle evt on bsky side

* codegen

* loggable message

* schema tweaks

* build errors & tidy

* tidy account deactivation tests

* more subscribe repos tests

* identity evt tests + tidy

* return optional did doc on identity evts

* update identity evt

* update impl for identity evt handles

* add description to handle field

* status on listRepos & notate deprecated firehose events

* return status on listRepos

* pr feedback

* tests

* protos

* add status to session schemas

* codegen

* revamp auth-verifier

* thread through agent

* fix tests

* fix account deletion test

* fix more tests

* fix type error in repo.test

* bsky index account evts

* apply in appview

* add to admin route

* add deactivatedAt to ozone views

* pds tests

* appview tests

* ozone test

* fix bsky test

* fix agent test

* fix indexing test

* tweak session schemas

* update session routes & clean up status handling in pds & agent

* changeset

* patch pds test

* rm active from knownValues

---------

Co-authored-by: bryan newbold <bnewbold@robocracy.org>
2024-05-31 16:39:21 -05:00
github-actions[bot]
00d20494a8
Version packages (#2534)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-05-30 20:17:22 -04:00
Daniel Holmgren
5643fa46b5
Account event (#2269)
* subscribe repos lex: new #account event type

* lex: getAccountStatus endpoint

* lex: add account status errors to sync methods

* tweak type of token union

* fix getAccountStatus parameter name

* codegen

* Account -> Repo

* re-codegen

* update errors in sync methods

* add getRepoStatus route

* add account events to sequencer

* emit account evts

* fix test + small bugfixin

* handle evt on bsky side

* codegen

* loggable message

* schema tweaks

* build errors & tidy

* tidy account deactivation tests

* more subscribe repos tests

* identity evt tests + tidy

* return optional did doc on identity evts

* update identity evt

* update impl for identity evt handles

* add description to handle field

* status on listRepos & notate deprecated firehose events

* return status on listRepos

* pr feedback

* tests

* fix account deletion test

* fix more tests

* fix type error in repo.test

---------

Co-authored-by: bryan newbold <bnewbold@robocracy.org>
2024-05-30 11:37:52 -05:00
bnewbold
ee0e6356df
sync lex: #account firehose event; account status errors; and getAccountStatus endpoint (#2263)
* subscribe repos lex: new #account event type

* lex: getAccountStatus endpoint

* lex: add account status errors to sync methods

* tweak type of token union

* fix getAccountStatus parameter name

* Account -> Repo

* codegen

* schema tweaks

* update identity evt

* add description to handle field

* status on listRepos & notate deprecated firehose events

---------

Co-authored-by: dholms <dtholmgren@gmail.com>
2024-05-29 15:40:39 -05:00
devin ivy
c4af6a409e
Lexicon: support for post embeds on chat messages (#2533)
* lexicon: record embed views on chat messages

* lexicon: support for post embeds on chat messages
2024-05-29 11:19:26 -04:00
github-actions[bot]
d983063461
Version packages (#2529)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-05-28 11:00:27 -04:00
devin ivy
53551be6cf
Set CORS max-age header (#2522)
* set max-age cors header to max value on pds, ozone, bsky

* changeset
2024-05-27 23:53:23 -04:00
github-actions[bot]
8ce97d4245
Version packages (#2518)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-05-23 16:48:03 -05:00
Daniel Holmgren
0cc5ef70f4
Privileged app passwords (#2515)
* schemas

* impl

* hook up migration

* tests

* make column not null

* comments to clarify

* changeset
2024-05-23 16:05:46 -05:00
github-actions[bot]
9974e9ad5f
Version packages (#2508)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-05-22 23:30:36 -04:00
Foysal Ahamed
1f560f021c
Allow dynamic labeler header through ozone (#2442)
*  Allow dynamic labeler header through ozone

*  Close third party ozone

*  Add 3p labels in for repos

*  Update snapshots

*  Update pds snapshots

*  Update ozone snapshots

*  Fix typing for labels

*  Add queryLabels endpoint in appview

*  Use queryLabels to hydrate labels

* 🧹 Cleanup

*  Update pds snapshots

 Update pds snapshots

 Update ozone snapshots

 Update pds snapshots

 Update pds snapshots

 Update pds snapshots

 Update pds snapshots

*  Update pds snapshots

*  Checking if tests fail

*  Don't default to labelers in header

*  Adjust tests

* 🧹 Cleanup

* 🧹 Remove unnecessary auth header

* 📝 Add changeset

* 📝 Add @atproto/api to patch update list
2024-05-22 17:55:50 +02:00
Foysal Ahamed
eeff39314d
Add getLists endpoint to proxied routes via ozone (#2493)
*  Add getLists endpoint to proxied routes via ozone

*  Add tests for getLists via ozone

* insert takedown label manually

* ✏️ Fix typo in test

* 🧹 Cleanup

---------

Co-authored-by: dholms <dtholmgren@gmail.com>
2024-05-21 20:46:49 +02:00
github-actions[bot]
a317116665
Version packages (#2502)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-05-20 13:31:34 -05:00
devin ivy
010cf3df98
Appview: support handles in post threads, remove deleted reply placeholders (#2498)
* appview: strip deleted post placeholders from threads

* appview: support handle in post thread uris

* tidy
2024-05-20 10:29:43 -04:00
devin ivy
06d2328eeb
Lexicon: misc fixes to chat lexicons (#2499)
* lexicon: misc chat-related tweaks/fixes

* ozone: track convo ids on chat message reports

* add changeset

* fix tests

---------

Co-authored-by: dholms <dtholmgren@gmail.com>
2024-05-20 10:13:12 -04:00
github-actions[bot]
69f0bb3b10
Version packages (#2486)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-05-13 14:43:51 -04:00
devin ivy
d32f7215f6
Lexicon: add lexicons for chat.bsky namespace (#2485)
* wip

* schema tweaks

* room -> chat

* missed one

* missed another

* deleted messages + incoming message settings

* add schemas for blocking users

* chat update schemas

* make updateUserSettings more generic

* fix dangling ref

* fix dangling refs

* mute chats & leave chats

* schema consistency, naming

* lexicon for updating chat read state

* dm lexicon updates, add batch send endpoint

* dm sender on deleted message

* Add codegen for temp lex

* lexicon: switch temp.dm to chat.bsky namespace, misc fixes

* lexicon: codegen

* lexicon: fix some chat/convo terminology

* lexicon: codegen

* moderator schemas

* codegen

* lexicon: consistency in chat lexicons

* lexicon: add chat to associated profile info

* add ref to updateActorAccess

* add annotation on convoView for disabled members

* codegen

* remove dm references from ozone schemas

* lexicon: chat account deletion, data export, and profile state

* lexicon typo

* lexicon typo

* lexicon: mark chat senders as required

* add changeset

* appview: proper support for chat.bsky lexicons

---------

Co-authored-by: dholms <dtholmgren@gmail.com>
Co-authored-by: Eric Bailey <git@esb.lol>
2024-05-13 14:22:58 -04:00
devin ivy
7cdcd5848c
Appview: handle out-of-date cursor with feed.getLikes (#2474)
* appview: temporarily revert move to GetLikesBySubjectSorted

* appview: provide error when using old cursor value on getLikes
2024-05-09 17:05:11 -04:00
devin ivy
499fabe7b6
Appview: add chat details to profile views, chronological likes (#2471)
* update bsky protos

* appview: add associated chat deets to profile views, switch to sorted likes

* appview: test associated chat info on profile views

* tidy
2024-05-09 12:45:06 -04:00
github-actions[bot]
bdd66bb4e1
Version packages (#2473)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-05-08 18:47:20 -07:00
github-actions[bot]
5226cbcc16
Version packages (#2465)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-05-06 18:05:57 -04:00
devin ivy
ec40af0c96
Appview: add grandparent author to reply ref, ensure no replies to blocked grandparent in feeds (#2461)
* lexicon: add parent reply author to #replyRef

* lexicon: tweak to naming in reply ref

* appview: hydrate and present grandparent author in feed items

* appview: ensure replies to blocked users don't appear in feeds via reply parents

* fix snaps

* fix snaps
2024-05-02 15:25:43 -04:00
devin ivy
79f8e1e6f4
Appview: support alternate audiences on standard auth (#2458)
* appview: support alternate audiences on standard auth

* tidy
2024-04-30 14:56:37 -04:00
Daniel Holmgren
e3063041a3
Feed context & sendInteractions impl (#2402)
* forward feedContext on getFeed

* add sendInteractions to PDS

* fix typeof

* add feedContext to snapshots

---------

Co-authored-by: Devin Ivy <devinivy@gmail.com>
2024-04-26 17:30:08 -04:00
Eric Bailey
65a9fd7a5a
Pass through topics headers (#2447)
* Pass through topics headers

* Add PDS exception options, pass through headers

* Update packages/bsky/src/api/app/bsky/actor/getSuggestions.ts

Co-authored-by: devin ivy <devinivy@gmail.com>

* Feedback

---------

Co-authored-by: devin ivy <devinivy@gmail.com>
2024-04-26 10:44:46 -05:00
github-actions[bot]
651d4c2a34
Version packages (#2446)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-25 19:29:59 +02:00
github-actions[bot]
b9e205ae01
Version packages (#2443)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-24 11:53:09 -05:00
Eric Bailey
b9b7c58219
Add savedFeedsPrefV2 and new methods (#2427)
* Preview

* Double write v2 -> v1

* Add savedFeeds output

* Tightening up

* Revise and clean up APIs, update tests

* Codegen

* Enforce sort order

* Fix unrelated tests

* Reduce edits by using old naming

* Remove redundant test, fix title

* Add changeset

* Ensure unique constraints preserve insertion order if duplicates are found

* Adds addSavedFeeds as a convenience

* Use pluralized interfaces

* Update deprecation notices

* Update method naming

* Update deprecation comments

* Filter invalid types during migration

* Change uri of default timeline

* Fix typo
2024-04-24 11:48:50 -05:00
devin ivy
b07950682c
Appview: remove replies to blocked posts from feeds (#2430)
appview: remove replies to blocked posts from feeds
2024-04-19 19:07:01 -04:00
devin ivy
fbc7e75c40
Appview: maintain language info when going out to a suggestions service (#2424)
appview: maintain language info when going out to a suggestions service
2024-04-18 18:17:31 -04:00
devin ivy
2002b565f3
Appview: ensure hydration context tracks viewer did and not full service ref (#2423)
ensure hydration context tracks viewer did and not full service ref
2024-04-18 18:17:01 -04:00
github-actions[bot]
d0625be266
Version packages (#2422)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-18 09:45:44 -07:00
github-actions[bot]
32c97d4c8b
Version packages (#2417)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-17 20:04:44 -04:00
devin ivy
93a4a4df9c
Lexicons: email auth factor (#2416)
* lexicon: email auth factor

* add changeset
2024-04-17 19:57:18 -04:00
Daniel Holmgren
cc090d2e50
Suggestions skeleton impl (#2403)
* schema

* codegen

* add skeletonActor def

* add optional viewer param

* codegen

* use suggestions skelete for getSuggestions

* make move route to unspecced

* use unspecced skeleton actor

* update agent call
2024-04-16 13:50:38 -05:00
Daniel Holmgren
45981de5c1
getSuggestionsSkeleton lexicon (#2399)
* schema

* codegen

* add skeletonActor def

* add optional viewer param

* codegen

* make move route to unspecced

* use unspecced skeleton actor
2024-04-16 13:50:17 -05:00
github-actions[bot]
1074f43b4a
Version packages (#2401)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-16 14:39:43 -04:00
devin ivy
c6d758b8b6
Appview: support new post search params, viewer context in search (#2409)
* remove viewer param from searchActorsTypeahead

* appview: pass new search params to search service, add viewer

* add changeset
2024-04-16 14:10:30 -04:00
bnewbold
a40b054812
fix test errors in "relax restriction on handle length in PDS" (#2410)
* relax restriction on handle length in PDS.

* add test to validate restriction on handle length.

* make fmt

* resolve test issues with too-long handles

* attempt to resolve appview test issues with too-long handles

---------

Co-authored-by: itaru2622 <itaru2622@gmail.com>
2024-04-15 20:05:49 -07:00
bnewbold
a2d5658f28
lexicons: add more search parameters (#2396)
* lex: add account to actor search, for following boost

* lex: addition post search query params

* lex: add tag to post search; set default for sort

* lex: fix formats and skeleton consistency

* lex: searchPosts 'until' should be exclusive

* lex: relax post time range syntax

* lex: allow multiple tags ('AND') as search params

* make fmt

* lex: use 'viewer' for account DID making profile search

* lex: no viewer param in searchActor (only skeleton); do include in post skeleton

* codegen search param additions
2024-04-11 16:45:13 -07:00
Daniel Holmgren
0edef0ec01
Feed interactions schema (#2383)
* first pass schemas

* requestFeedback boolean

* rewrite schemas

* tidy

* tidy

* tweaks

* pr feedback

* codegen + lint

* changeset

* rm default
2024-04-10 19:27:17 -05:00
devin ivy
84cdc5b65a
Appview: include like/repost/reply counts on post embed (#2395)
* lexicon: add post counts to embed#viewRecord

* appview: hydrate and present aggregations on post embeds

* update snaps for aggregations on post embeds
2024-04-09 21:24:47 -04:00
devin ivy
2e2a97badf
Use blocked and not-found unions in post reply refs (#2359)
* appview: use blocked and not-found post views on feed items

* appview: remove unused view flag
2024-04-08 10:05:29 -04:00
devin ivy
7570d31829
Always include counts on post and profile views (#2357)
* appview: ensure counts are set in all views, even when aggs are missing

* pds: ensure counts are set on post view in read-after-write, fix $type typo
2024-04-04 22:13:28 -04:00