Commit Graph

2872 Commits

Author SHA1 Message Date
Eric Bailey d96f7d9b84 add tags to posts (#1637)
* add tags to post lex

* kiss

* add richtext facet and validation attrs

* add tag validation attrs to post

* codegen

* add maxLength for tags, add description

* validate post tags on write

* add test

* handle tags in indexer

* add tags to postView, codegen

* return tags on post thread view

* format

* revert formatting change to docs

* use establish validation pattern

* add changeset

(cherry picked from commit fcb6fe7c26144662f791c7900afcd84c7bf1be6b)

* remove tags from postView, codegen

* remove tags from thread view

* revert unused changes
2023-09-25 11:14:57 -05:00
devin ivy d703bc36e6 Clear follow viewer state when blocking (#1659)
* clear follow viewer state when blocking

* tidy
2023-09-25 10:27:48 +02:00
bnewbold 4d60322dac auto-moderator tweaks: pass along record URI, create report for takedown action (#1643)
* auto-moderator: include record URI in abyss requests

* auto-moderator: log attempt at hard takedown; create report as well

The motivation is to flag the event to mod team, and to make it easier
to confirm that takedown took place.

* auto-mod: typo fix

* auto-mod: bugfixes

* bsky: always create auto-mod report locally, not pushAgent (if possible)

* bsky: fix auto-mod build

* bsky: URL-encode scanBlob call
2023-09-22 19:08:52 -07:00
Daniel Holmgren 558981ead1 Disable pds appview routes (#1644)
* wip

* remove all canProxyReadc

* finish cleanup

* clean up tests

* fix up tests

* fix api tests

* fix build

* fix compression test

* update image tests

* fix dev envs

* build branch

* fix service file

* re-enable getPopular

* format

* rm unused sharp code

* dont build branch
2023-09-22 13:51:15 -05:00
github-actions[bot] 86bbf0860a Version packages (#1654)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-21 18:19:28 -07:00
Paul Frazee 56e2cf8999 Improve the types of the thread and feed preferences APIs (#1653)
* Improve the types of the thread and feed preferences APIs

* Remove unused import

* Add changeset
2023-09-21 18:10:59 -07:00
bnewbold 584dea52c4 tidy up package.json and READMEs (#1649)
* identity: README example and tidy

* tidy up package metadata (package.json files)

* updated README headers/stubs for several packages

* crypto: longer README, with usage

* syntax: tweak README

* Apply suggestions from code review

Co-authored-by: Eric Bailey <git@esb.lol>
Co-authored-by: devin ivy <devinivy@gmail.com>

---------

Co-authored-by: Eric Bailey <git@esb.lol>
Co-authored-by: devin ivy <devinivy@gmail.com>
2023-09-21 18:07:33 -07:00
bnewbold 1487c9f1fe indicate that getPopular is deprecated (#1647)
* indicate that getPopular is deprecated

* codegen for deprecating getPopular
2023-09-21 14:50:23 -07:00
bnewbold 7e36c48a77 small syntax lints (#1646)
* lint: remove unused imports and variables

* lint: prefix unused args with '_'

* eslint: skip no-explicit-any; ignore unused _var (prefix)

* eslint: explicitly mark ignores for tricky cases
2023-09-21 10:07:54 -07:00
bnewbold 462de219ee api: update login/resumeSession examples in README (#1634)
* api: update login/resumeSession examples in README

* Update packages/api/README.md

Co-authored-by: Daniel Holmgren <dtholmgren@gmail.com>

---------

Co-authored-by: Daniel Holmgren <dtholmgren@gmail.com>
2023-09-20 19:15:12 -07:00
bnewbold d23f5ec3f1 remove cruft packages (uri, nsid, identifier) (#1606)
* remove @atproto/nsid (previously moved to syntax)

* remove @atproto/uri (previously moved to syntax)

* remove @atproto/identifier (previously moved to syntax)

* bump lockfile to remove old packages

---------

Co-authored-by: Eric Bailey <git@esb.lol>
2023-09-20 18:32:12 -07:00
Daniel Holmgren 4b132fc809 Disable getAccountInviteCodes for app passwords (#1642)
disable getAccountInviteCodes for app passwords
2023-09-20 19:57:01 -05:00
github-actions[bot] 49278430e0 Version packages (#1640)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-20 11:12:04 -07:00
Paul Frazee 2cc329f265 Add changeset for new preferences (#1639)
Add changeset
2023-09-20 11:07:06 -07:00
Paul Frazee 061865c8bf Add feed-vew and thread-view preferences (#1638)
* Add feed and thread preference lexicons

* Add feed-view and thread-view preference APIs
2023-09-20 10:22:27 -07:00
Daniel Holmgren 828dfa8a8a Enforce properties field on lexicon object schemas (#1628)
* add empty properites to thread gate schema fragments

* tweak lexicon type
2023-09-19 10:51:26 -05:00
Daniel Holmgren a5a0e4a420 Remove zod from xrpc-server error handling (#1631)
remove zod from xrpc-server error handling check
2023-09-18 19:35:09 -05:00
Daniel Holmgren f69c1a7302 Tweak rate limit setup for multi rate limit routes (#1627)
tweak rate limit setup for multi rate limit routes
2023-09-18 14:19:20 -05:00
Daniel Holmgren a441da85f1 Filter preferences for app passwords (#1626)
filter preferences for app passwords
2023-09-18 13:57:11 -05:00
Daniel Holmgren 17ce804ffa Tweak createSession rate limit key (#1614)
tweak create session rl key
2023-09-15 18:11:48 -05:00
Daniel Holmgren 1cec2dd7d2 Write rate limits (#1578)
* get rate limit ip correctly

* add write rate-limits
2023-09-15 17:35:11 -05:00
Daniel Holmgren a3a32de0ff Allow bypass on ratelimit ip (#1613)
allow bypass on ratelimit ip
2023-09-15 17:16:57 -05:00
github-actions[bot] 38f8f44c41 Version packages (#1612)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-15 15:49:31 -05:00
Eric Bailey b1dc355504 fix syntax docs (#1611) 2023-09-15 14:05:55 -05:00
Daniel Holmgren ba78d225b1 Temporarily disable filtering invalidReplyRoots (#1609)
temporarily disable invalidReplyRoot check
2023-09-15 11:23:33 -05:00
bnewbold 498e4ace31 update Bluesky PBLLC to PBC (Public Benefit Corporation) (#1600) 2023-09-14 16:29:31 -07:00
github-actions[bot] d7d7a043de Version packages (#1602)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-14 17:53:14 -05:00
Daniel Holmgren 79867d2725 Remove default value for post table invalid attrs (#1601)
remove default value for post table attrs
2023-09-14 16:43:04 -05:00
Eric Bailey cf6002a1bd order by like.indexedAt in app view (#1592)
* order by like.indexedAt

* use keyset for ordering

* simplify

* ok ok ok I get it now

* Update packages/bsky/src/api/app/bsky/feed/getActorLikes.ts

Co-authored-by: Daniel Holmgren <dtholmgren@gmail.com>

---------

Co-authored-by: Daniel Holmgren <dtholmgren@gmail.com>
2023-09-14 15:38:27 -05:00
Daniel Holmgren 9879ca97b7 Interaction Gating (#1561)
* lexicons for block lists

* reorg blockset functionality into graph service, impl block/mute filtering

* apply filterBlocksAndMutes() throughout appview except feeds

* update local feeds to pass through cleanFeedSkeleton(), offload block/mute application

* impl for grabbing block/mute details by did pair

* refactor getActorInfos away, use actor service

* experiment with moving getFeedGenerators over to a pipeline

* move getPostThread over to a pipeline

* move feeds over to pipelines

* move suggestions and likes over to pipelines

* move reposted-by, follows, followers over to pipelines, tidy author feed and post thread

* remove old block/mute checks

* unify post presentation logic

* move profiles endpoints over to pipelines

* tidy

* tidy

* misc fixes

* unify some profile hydration/presentation in appview

* profile detail, split hydration and presentation, misc fixes

* unify feed hydration w/ profile hydration

* unify hydration step for embeds, tidy application of labels

* setup indexing of list-blocks in bsky appview

* apply list-blocks, impl getListBlocks, tidy getList, tests

* tidy

* update pds proxy snaps

* update pds proxy snaps

* fix snap

* make algos return feed items, save work in getFeed

* misc changes, tidy

* tidy

* fix aturi import

* initial lexicons for interaction-gating

* add interactions view to post views

* codegen

* model bad reply/interaction check state on posts

* initial impl for checking bad reply or interaction on write

* omit invalid interactions from post thread

* support not-found list in interaction view

* hydrate can-reply state on threads

* present interaction views on posts

* misc fixes, update snaps

* tidy/reorg

* tidy

* split interaction gating into separate record in lexicon

* switch interaction-gating impl to use separate record type

* allow checking reply gate w/ root post deletion

* fix

* initial gating tests

* tighten gated reply views, tests

* reply-gating list rule tests

* allow custom post rkeys within window

* hoist actors out of composeThread()

* tidy

* update thread gate lexicons, codegen

* lex fix

* rename gate to threadgate in bsky, update views

* lex fix

* improve terminology around reply validation

* fix down migration

* remove thread gates on actor unindexing

* add back .prettierignore

* tidy

* run ci on all prs

* syntax

* run ci on all prs

* format

* fix snap

---------

Co-authored-by: Devin Ivy <devinivy@gmail.com>
2023-09-14 15:24:48 -05:00
Daniel Holmgren 77749ab40c getPopular hotfix (#1599)
dont pass all params
2023-09-14 14:42:09 -05:00
Daniel Holmgren 36ba295333 Remove appview proxy runtime flags (#1590)
* remove appview proxy runtime flags

* clean up proxy tests
2023-09-14 13:55:12 -05:00
Daniel Holmgren 1c42157c59 Improve xrpc server error handling (#1597)
improve xrpc server error handling
2023-09-14 13:54:47 -05:00
Daniel Holmgren 578757cb44 List feeds (#1557)
* lexicons for block lists

* reorg blockset functionality into graph service, impl block/mute filtering

* apply filterBlocksAndMutes() throughout appview except feeds

* update local feeds to pass through cleanFeedSkeleton(), offload block/mute application

* impl for grabbing block/mute details by did pair

* refactor getActorInfos away, use actor service

* experiment with moving getFeedGenerators over to a pipeline

* move getPostThread over to a pipeline

* move feeds over to pipelines

* move suggestions and likes over to pipelines

* move reposted-by, follows, followers over to pipelines, tidy author feed and post thread

* remove old block/mute checks

* unify post presentation logic

* move profiles endpoints over to pipelines

* tidy

* tidy

* misc fixes

* unify some profile hydration/presentation in appview

* profile detail, split hydration and presentation, misc fixes

* unify feed hydration w/ profile hydration

* unify hydration step for embeds, tidy application of labels

* setup indexing of list-blocks in bsky appview

* apply list-blocks, impl getListBlocks, tidy getList, tests

* tidy

* update pds proxy snaps

* update pds proxy snaps

* fix snap

* make algos return feed items, save work in getFeed

* misc changes, tidy

* tidy

* fix aturi import

* lex

* list purpose

* lex gen

* add route

* add proxy route

* seed client helpers

* tests

* mutes and blocks

* proxy test

* snapshot

* hoist actors out of composeThread()

* tidy

* tidy

* run ci on all prs

* format

* format

* fix snap name

* fix snapsh

---------

Co-authored-by: Devin Ivy <devinivy@gmail.com>
2023-09-14 11:19:04 -05:00
Eric Bailey 3877210e7f add getSuggestedFollowsByActor (#1553)
* add getSuggestedFollowsByActor lex

* remove pagination

* codegen

* add pds route

* add app view route

* first pass at likes-based suggested actors, plus tests

* format

* backfill with suggested_follow table

* combine actors queries

* fall back to popular follows, handle backfill differently

* revert seed change, update test

* lower likes threshold

* cleanup

* remove todo

* format

* optimize queries

* cover mute lists

* clean up into pipeline steps

* add changeset
2023-09-13 15:56:12 -05:00
bnewbold abc6cf9ab4 interop test files (#1529)
* initial interop-test-files

* crypto: switch signature-fixtures.json to a symlink

* syntax: test against interop files

* prettier

* Update interop-test-files/README.md

Co-authored-by: Eric Bailey <git@esb.lol>

* disable prettier on test vectors

---------

Co-authored-by: Eric Bailey <git@esb.lol>
Co-authored-by: dholms <dtholmgren@gmail.com>
2023-09-13 11:23:33 -05:00
Daniel Holmgren 0533fab68e Get rate limit ip correctly (#1577)
* get rate limit ip correctly

* comment
2023-09-12 12:38:20 -05:00
Daniel Holmgren 07bb0da0cf Remove temp.upgradeRepoVersion (#1588)
remove temp.upgradeRepoVersion
2023-09-12 12:37:57 -05:00
Daniel Holmgren 3cdc72a0a7 Fix getRepo since (#1579)
* fix schemas

* test

* format
2023-09-12 12:37:45 -05:00
Daniel Holmgren 1053c6f26c Prevent user pref races (#1576)
prevent user pref races
2023-09-12 12:37:36 -05:00
devin ivy 6f419790ac Feature: block lists (#1531)
* lexicons for block lists

* reorg blockset functionality into graph service, impl block/mute filtering

* apply filterBlocksAndMutes() throughout appview except feeds

* update local feeds to pass through cleanFeedSkeleton(), offload block/mute application

* impl for grabbing block/mute details by did pair

* refactor getActorInfos away, use actor service

* experiment with moving getFeedGenerators over to a pipeline

* move getPostThread over to a pipeline

* move feeds over to pipelines

* move suggestions and likes over to pipelines

* move reposted-by, follows, followers over to pipelines, tidy author feed and post thread

* remove old block/mute checks

* unify post presentation logic

* move profiles endpoints over to pipelines

* tidy

* tidy

* misc fixes

* unify some profile hydration/presentation in appview

* profile detail, split hydration and presentation, misc fixes

* unify feed hydration w/ profile hydration

* unify hydration step for embeds, tidy application of labels

* setup indexing of list-blocks in bsky appview

* apply list-blocks, impl getListBlocks, tidy getList, tests

* tidy

* update pds proxy snaps

* update pds proxy snaps

* fix snap

* make algos return feed items, save work in getFeed

* misc changes, tidy

* tidy

* fix aturi import

* hoist actors out of composeThread()

* tidy

* run ci on all prs

* format

* build

* proxy graph.getListBlocks

* remove unneeded index

* build pds

* setup noop listblock indexer on pds

* remove build

---------

Co-authored-by: dholms <dtholmgren@gmail.com>
2023-09-12 12:07:31 -04:00
Daniel Holmgren fdf6a4642f Enable appview proxy in dev-env full network (#1580)
proxy runtime flags
2023-09-11 19:32:04 -05:00
Daniel Holmgren d4ebba874e Increase timeline threshold (#1573)
* increase threshold

* branch name

* fix

* rm build cfg
2023-09-11 18:49:00 -05:00
Paul Frazee 841e906101 @atproto/api@0.6.12 2023-09-11 13:24:08 -07:00
Paul Frazee 4536967280 Fixes and updates to the preferences API (#1575)
* Fix to handle duplicate preference key entries

* Add personal details preference API to sdk

* Add Array.prototype.findLast() type declaration

* Move interface declaration to ensure it's included in other package builds
2023-09-11 13:23:24 -07:00
Daniel Holmgren b3046c348f Remove legacy repo sync impl (#1570)
remove legacy repo sync impl
2023-09-08 15:25:30 -05:00
Daniel Holmgren f8f2d04c1d Move fuzzy matcher to appview (#1566)
* impl on appview

* tests + clean up pds

* tidy cfg
2023-09-08 15:08:27 -05:00
Paul Frazee d1df1f3232 @atproto/api@0.6.11 2023-09-08 10:37:24 -07:00
Paul Frazee 44b721b6ae Add personal-details user preference with birth date (#1565)
* Add personal-details user preference with birth date

* Add personal details pref to settings union
2023-09-08 10:35:49 -07:00
Eric Bailey 192392c5db enable granular perms for publish action (#1563) 2023-09-07 15:15:16 -05:00