-
Notifications
You must be signed in to change notification settings - Fork 554
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add searchStarterPacks to appview (#2978)
* Add app.bsky.graph.searchStarterPacks lexicon * Codegen for app.bsky.graph.searchStarterPacks * Add app.bsky.unspecced.searchStarterPacksSkeleton * Gen app.bsky.unspecced.searchStarterPacksSkeleton * Add SearchStarterPacks rpc to bsky.proto * Implement searchStarterPacks endpoint * @atproto/api changeset * Add starter pack search by term to dataplane
- Loading branch information
1 parent
c34426f
commit a4b528e
Showing
35 changed files
with
1,650 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@atproto/api": patch | ||
--- | ||
|
||
Add searchStarterPacks and searchStarterPacksSkeleton |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"lexicon": 1, | ||
"id": "app.bsky.graph.searchStarterPacks", | ||
"defs": { | ||
"main": { | ||
"type": "query", | ||
"description": "Find starter packs matching search criteria. Does not require auth.", | ||
"parameters": { | ||
"type": "params", | ||
"required": ["q"], | ||
"properties": { | ||
"q": { | ||
"type": "string", | ||
"description": "Search query string. Syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended." | ||
}, | ||
"limit": { | ||
"type": "integer", | ||
"minimum": 1, | ||
"maximum": 100, | ||
"default": 25 | ||
}, | ||
"cursor": { | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"output": { | ||
"encoding": "application/json", | ||
"schema": { | ||
"type": "object", | ||
"required": ["starterPacks"], | ||
"properties": { | ||
"cursor": { | ||
"type": "string" | ||
}, | ||
"starterPacks": { | ||
"type": "array", | ||
"items": { | ||
"type": "ref", | ||
"ref": "app.bsky.graph.defs#starterPackViewBasic" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 63 additions & 0 deletions
63
lexicons/app/bsky/unspecced/searchStarterPacksSkeleton.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
{ | ||
"lexicon": 1, | ||
"id": "app.bsky.unspecced.searchStarterPacksSkeleton", | ||
"defs": { | ||
"main": { | ||
"type": "query", | ||
"description": "Backend Starter Pack search, returns only skeleton.", | ||
"parameters": { | ||
"type": "params", | ||
"required": ["q"], | ||
"properties": { | ||
"q": { | ||
"type": "string", | ||
"description": "Search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended." | ||
}, | ||
"viewer": { | ||
"type": "string", | ||
"format": "did", | ||
"description": "DID of the account making the request (not included for public/unauthenticated queries)." | ||
}, | ||
"limit": { | ||
"type": "integer", | ||
"minimum": 1, | ||
"maximum": 100, | ||
"default": 25 | ||
}, | ||
"cursor": { | ||
"type": "string", | ||
"description": "Optional pagination mechanism; may not necessarily allow scrolling through entire result set." | ||
} | ||
} | ||
}, | ||
"output": { | ||
"encoding": "application/json", | ||
"schema": { | ||
"type": "object", | ||
"required": ["starterPacks"], | ||
"properties": { | ||
"cursor": { | ||
"type": "string" | ||
}, | ||
"hitsTotal": { | ||
"type": "integer", | ||
"description": "Count of search hits. Optional, may be rounded/truncated, and may not be possible to paginate through all hits." | ||
}, | ||
"starterPacks": { | ||
"type": "array", | ||
"items": { | ||
"type": "ref", | ||
"ref": "app.bsky.unspecced.defs#skeletonSearchStarterPack" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"errors": [ | ||
{ | ||
"name": "BadQueryString" | ||
} | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.