Module Cephalopod_models.App_Bsky_Unspecced_SearchPostsSkeleton

lexicon "app.bsky.unspecced.searchPostsSkeleton"

def main

type main_params = {
  1. q : string;
    (*

    Search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended.

    *)
  2. sort : string option;
    (*

    Specifies the ranking order of results. known values: "top"; "latest"

    *)
  3. since : string option;
    (*

    Filter results for posts after the indicated datetime (inclusive). Expected to use 'sortAt' timestamp, which may not match 'createdAt'. Can be a datetime, or just an ISO date (YYYY-MM-DD).

    *)
  4. until : string option;
    (*

    Filter results for posts before the indicated datetime (not inclusive). Expected to use 'sortAt' timestamp, which may not match 'createdAt'. Can be a datetime, or just an ISO date (YYY-MM-DD).

    *)
  5. mentions : string option;
    (*

    Filter to posts which mention the given account. Handles are resolved to DID before query-time. Only matches rich-text facet mentions. format: "AtIdentifier"

    *)
  6. author : string option;
    (*

    Filter to posts by the given account. Handles are resolved to DID before query-time. format: "AtIdentifier"

    *)
  7. lang : string option;
    (*

    Filter to posts in the given language. Expected to be based on post language field, though server may override language detection. format: "Language"

    *)
  8. domain : string option;
    (*

    Filter to posts with URLs (facet links or embeds) linking to the given domain (hostname). Server may apply hostname normalization.

    *)
  9. url : string option;
    (*

    Filter to posts with links (facet links or embeds) pointing to this URL. Server may apply URL normalization or fuzzy matching. format: "Uri"

    *)
  10. tag : string list option;
    (*

    Filter to posts with the given tag (hashtag), based on rich-text facet or tag field. Do not include the hash (#) prefix. Multiple tags can be specified, with 'AND' matching.

    *)
  11. viewer : string option;
    (*

    DID of the account making the request (not included for public/unauthenticated queries). Used for 'from:me' queries. format: "Did"

    *)
  12. limit : int64 option;
    (*

    default: 25 maximum: 100 minimum: 1

    *)
  13. cursor : string option;
    (*

    Optional pagination mechanism; may not necessarily allow scrolling through entire result set.

    *)
}
val show_main_params : main_params -> Ppx_deriving_runtime.string
val make_main_params : q:string -> ?sort:string -> ?since:string -> ?until:string -> ?mentions:string -> ?author:string -> ?lang:string -> ?domain:string -> ?url:string -> ?tag:string list -> ?viewer:string -> ?limit:int64 -> ?cursor:string -> unit -> main_params
val main_params_of_value : main_params Cephalopod_dasl.Value.Util.conv
val main_params_to_value : main_params -> Cephalopod_dasl.Value.t
type main_output = {
  1. cursor : string option;
  2. hitsTotal : int64 option;
    (*

    Count of search hits. Optional, may be rounded/truncated, and may not be possible to paginate through all hits.

    *)
  3. posts : Types.app_bsky_unspecced_defs_skeletonsearchpost list;
}
val show_main_output : main_output -> Ppx_deriving_runtime.string
val main_output_of_value : main_output Cephalopod_dasl.Value.Util.conv
val main_output_to_value : main_output -> Cephalopod_dasl.Value.t
type main_error = [
  1. | `BadQueryString
]
val show_main_error : main_error -> Ppx_deriving_runtime.string

Backend Posts search, returns only skeleton