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/lex/util"
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 util.LexClient, cursor string, limit int64, q string, term string) (*ActorSearchActors_Output, error) {
24 var out ActorSearchActors_Output
25
26 params := map[string]interface{}{}
27 if cursor != "" {
28 params["cursor"] = cursor
29 }
30 if limit != 0 {
31 params["limit"] = limit
32 }
33 if q != "" {
34 params["q"] = q
35 }
36 if term != "" {
37 params["term"] = term
38 }
39 if err := c.LexDo(ctx, util.Query, "", "app.bsky.actor.searchActors", params, nil, &out); err != nil {
40 return nil, err
41 }
42
43 return &out, nil
44}