2a0c088cc5
* add quote count to post_agg, add getPostQuotes rework schema rework schema add getPostQuotes to api use posts use posts codegen use items instead of quotes codegen add getPostQuotes add quoteCount to response update lexicon for postview increment post ags add quote to post aggs add quote interface oops add quote table migration * update * bufgen * update params * update to use v2 * logs * rm comment * pass cursor * add index * Update packages/bsky/src/data-plane/server/db/migrations/20240723T220703655Z-quotes.ts Co-authored-by: devin ivy <devinivy@gmail.com> * only if its a post * tests * Discard changes to packages/bsky/tests/views/posts.test.ts * fix client call * Include new quotes agg in test expectation * Use new API for headers * Update packages/bsky/src/data-plane/server/indexing/plugins/post.ts Co-authored-by: devin ivy <devinivy@gmail.com> * revert rm * rm timeout * cursor test * Changeset * Remove pds specific bump --------- Co-authored-by: devin ivy <devinivy@gmail.com> Co-authored-by: Eric Bailey <git@esb.lol>
53 lines
1.4 KiB
JSON
53 lines
1.4 KiB
JSON
{
|
|
"lexicon": 1,
|
|
"id": "app.bsky.feed.getQuotes",
|
|
"defs": {
|
|
"main": {
|
|
"type": "query",
|
|
"description": "Get a list of quotes for a given post.",
|
|
"parameters": {
|
|
"type": "params",
|
|
"required": ["uri"],
|
|
"properties": {
|
|
"uri": {
|
|
"type": "string",
|
|
"format": "at-uri",
|
|
"description": "Reference (AT-URI) of post record"
|
|
},
|
|
"cid": {
|
|
"type": "string",
|
|
"format": "cid",
|
|
"description": "If supplied, filters to quotes of specific version (by CID) of the post record."
|
|
},
|
|
"limit": {
|
|
"type": "integer",
|
|
"minimum": 1,
|
|
"maximum": 100,
|
|
"default": 50
|
|
},
|
|
"cursor": { "type": "string" }
|
|
}
|
|
},
|
|
"output": {
|
|
"encoding": "application/json",
|
|
"schema": {
|
|
"type": "object",
|
|
"required": ["uri", "posts"],
|
|
"properties": {
|
|
"uri": { "type": "string", "format": "at-uri" },
|
|
"cid": { "type": "string", "format": "cid" },
|
|
"cursor": { "type": "string" },
|
|
"posts": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "ref",
|
|
"ref": "app.bsky.feed.defs#postView"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|