-
Notifications
You must be signed in to change notification settings - Fork 573
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
150 additions
and
5 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
"lexicon": 1, | ||
"id": "app.bsky.feed.searchPosts", | ||
"defs": { | ||
"main": { | ||
"type": "query", | ||
"description": "Find posts matching search criteria", | ||
"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", "description": "optional pagination mechanism; may not necessarily allow scrolling through entire result set" } | ||
} | ||
}, | ||
"output": { | ||
"encoding": "application/json", | ||
"schema": { | ||
"type": "object", | ||
"required": ["posts"], | ||
"properties": { | ||
"cursor": { "type": "string" }, | ||
"hits_total": { "type": "integer", "description": "count of search hits. optional, may be rounded/truncated, and may not be possible to paginate through all hits" }, | ||
"posts": { | ||
"type": "array", | ||
"items": { | ||
"type": "ref", | ||
"ref": "app.bsky.feed.defs#postView" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ | ||
"lexicon": 1, | ||
"id": "app.bsky.unspecced.searchActorsSkeleton", | ||
"defs": { | ||
"main": { | ||
"type": "query", | ||
"description": "Backend Actors (profile) search, returning 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. For typeahead search, only simple term match is supported, not full syntax" | ||
}, | ||
"typeahead": { | ||
"type": "boolean", | ||
"description": "if true, acts as fast/simple 'typeahead' query" | ||
}, | ||
"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": ["actors"], | ||
"properties": { | ||
"cursor": { "type": "string" }, | ||
"hits_total": { "type": "integer", "description": "count of search hits. optional, may be rounded/truncated, and may not be possible to paginate through all hits" }, | ||
"posts": { | ||
"type": "array", | ||
"items": { | ||
"type": "string", | ||
"format": "did" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
"lexicon": 1, | ||
"id": "app.bsky.unspecced.searchPostsSkeleton", | ||
"defs": { | ||
"main": { | ||
"type": "query", | ||
"description": "Backend Posts search, returning 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" }, | ||
"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": ["posts"], | ||
"properties": { | ||
"cursor": { "type": "string" }, | ||
"hits_total": { "type": "integer", "description": "count of search hits. optional, may be rounded/truncated, and may not be possible to paginate through all hits" }, | ||
"posts": { | ||
"type": "array", | ||
"items": { | ||
"type": "string", | ||
"format": "at-uri" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"errors": [{ "name": "BadQueryString" }] | ||
} | ||
} | ||
} |