1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package bsky
4
5// schema: app.bsky.actor.searchActors
6
7import (
8 "context"
9
10 "github.com/bluesky-social/indigo/xrpc"
11)
12
13// ActorSearchActors_Output is the output of a app.bsky.actor.searchActors call.
14type ActorSearchActors_Output struct {
15 Actors []*ActorDefs_ProfileView `json:"actors" cborgen:"actors"`
16 Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
17}
18
19// ActorSearchActors calls the XRPC method "app.bsky.actor.searchActors".
20//
21// q: Search query string. Syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended.
22// term: DEPRECATED: use 'q' instead.
23func ActorSearchActors(ctx context.Context, c *xrpc.Client, cursor string, limit int64, q string, term string) (*ActorSearchActors_Output, error) {
24 var out ActorSearchActors_Output
25
26 params := map[string]interface{}{
27 "cursor": cursor,
28 "limit": limit,
29 "q": q,
30 "term": term,
31 }
32 if err := c.Do(ctx, xrpc.Query, "", "app.bsky.actor.searchActors", params, nil, &out); err != nil {
33 return nil, err
34 }
35
36 return &out, nil
37}