2067 Commits

Author SHA1 Message Date
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
Foysal Ahamed
8d2d3ac9e0
Add server.getConfig endpoint to ozone (#2494)
*  Add server.getConfig endpoint to ozone

*  Fix tests

*  Cleanup snapshot

* 🧹 Tidy up lexicons

*  Change role values to match with upcoming mod-manager roles

*  Add chat service config

* Update lexicons/tools/ozone/server/getConfig.json

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

*  Update lexicons

---------

Co-authored-by: devin ivy <devinivy@gmail.com>
2024-06-05 11:05:21 -04:00
Daniel Holmgren
5007d74ce7
Forward deactivation for PDSs running behind an entryway (#2550)
* Forward deactivation to entryway

* comments
2024-06-04 18:04:43 -05:00
Daniel Holmgren
d8e2fefa98
Emit deactivation event on updateSubjectStatus (#2547)
* emit account event on updateSubjectSTatus

* changeset

* tidy

* dont double emit

* rerun CI

* rerun CI
2024-06-04 16:45:01 -05: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
Daniel Holmgren
ca0ca08832
Rebuild repo script (#2528)
* wip

* first pass on script

* move scrip

* handle sequencing & account manager table

* runner

* fix while loop

* script framework

* build branch

* add prompt

* reorder script

* patch script

* move readline

* dont build branch

* tidy promise
2024-05-28 18:42:37 -05: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
devin ivy
75b7848940
Ozone: temporary workaround for message refs on createReport (#2521)
* ozone: temporary workaround for message refs on createReport

* ozone: defensive around query label failure
2024-05-24 10:29:44 -04:00
devin ivy
7e37fd3067
Add goeo_ to contributors for disclosure (#2520)
add goeo_ to contributors for disclosure
2024-05-24 00:03:14 -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
1d4ab5d046
Bugfix: privileged app passwords (#2517)
* fix join

* changeset

* another changeset
2024-05-23 16:41:50 -05:00
github-actions[bot]
26356c48be
Version packages (#2516)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-05-23 16:10:17 -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]
d093892886
Version packages (#2513)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-05-23 12:05:58 -04:00
Devin Ivy
0e8acb9fba changeset 2024-05-23 12:01:24 -04:00
devin ivy
af8271b341
Add limit to service tokens (#2512)
limit service auth to use non-app-pass tokens.
2024-05-23 11:43:35 -04: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
Devin Ivy
cf25a60e25 add changeset 2024-05-22 23:26:07 -04:00
Daniel Holmgren
7450ea3b29
Correctly proxy procedures to chat (#2510)
* correctly proxy proceudres to chat

* tidy
2024-05-22 22:02:08 -05:00
Daniel Holmgren
9fcb78d79c
Do not allow app passwords to communicate with chat service (#2509)
do not allow app passwords to communicate with chat service
2024-05-22 21:37:37 -05: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
Daniel Holmgren
e09b4c1f82
Bump json size limit on pds (#2497)
* bump json size limit on pds

* fix tests
2024-05-16 18:35:59 -05:00
dholms
d2adb2d610 fix test 2024-05-16 17:45:26 -05:00
Daniel Holmgren
52ad510954
Tidy ozone dev-env (#2495)
tidy ozone dev-env
2024-05-16 18:56:27 +02:00
Daniel Holmgren
265ce86e15
Ozone chat integration (#2490)
* 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

* ozone lexicons

* scaffold routes

* hook up chat moderation routes to ozone

* add message subject for reports/events

* remove dm references from ozone schemas

* ensure report exists before serving getMessageContext

* 🐛 Fix typo in column name

* adjust before/after instead of throwing

* add dev script

* add dev-env introspection server

* hook up chat mod routes to pds & ozone

*  Add message ref subject in eventView def

* fix typo

* add chat reporting test

* fix test

* update dev-env chat did

* update dms server routes name

* pr feedback

---------

Co-authored-by: Devin Ivy <devinivy@gmail.com>
Co-authored-by: Eric Bailey <git@esb.lol>
Co-authored-by: Foysal Ahamed <foysal@blueskyweb.xyz>
2024-05-15 18:52:47 -05:00
Daniel Holmgren
290a7e67b8
Update legacy blob refs in profile records (#2488)
* update legacy blob refs in profile records

* tidy
2024-05-14 12:05:15 -05:00
Daniel Holmgren
6ec511a9f9
Tear down docker when tests fail (#2489)
* add set +e before docker cmd

* add comment

* tidy
2024-05-14 11:56:53 -05:00
Foysal Ahamed
1f3c41a1a1
🐛 Add divert event to the list of event types (#2487) 2024-05-13 16:12:10 -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
github-actions[bot]
4184a65222
Version packages (#2476)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-05-10 12:11:48 -04:00
Devin Ivy
f365850139 changeset 2024-05-10 11:55:00 -04:00
Daniel Holmgren
3016adf05e
Bugfixes for generic proxy rate limiting (#2475)
* fix error handling & scopes for generic proxy rate limits

* sp
2024-05-09 17:29:04 -05:00
Daniel Holmgren
c37b0e46ef
Generic PDS proxy (#2425)
* add proxy handler & remove old routes

* fwd content-type header

* use baseurl instead of path

* handle global ratelimits in catchall

* fix build

* base defaultService off req.originalUrl

* error handling around res.arrayBuffer()

* check & format url before doing auth verification
2024-05-09 16:18:23 -05: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