1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package teal
4
5// schema: fm.teal.alpha.actor.searchActors
6
7import (
8 "context"
9
10 "github.com/bluesky-social/indigo/xrpc"
11)
12
13// AlphaActorSearchActors_Output is the output of a fm.teal.alpha.actor.searchActors call.
14type AlphaActorSearchActors_Output struct {
15 Actors []*AlphaActorDefs_MiniProfileView `json:"actors" cborgen:"actors"`
16 // cursor: Cursor for pagination
17 Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
18}
19
20// AlphaActorSearchActors calls the XRPC method "fm.teal.alpha.actor.searchActors".
21//
22// cursor: Cursor for pagination
23// limit: The maximum number of actors to return
24// q: The search query
25func AlphaActorSearchActors(ctx context.Context, c *xrpc.Client, cursor string, limit int64, q string) (*AlphaActorSearchActors_Output, error) {
26 var out AlphaActorSearchActors_Output
27
28 params := map[string]interface{}{
29 "cursor": cursor,
30 "limit": limit,
31 "q": q,
32 }
33 if err := c.Do(ctx, xrpc.Query, "", "fm.teal.alpha.actor.searchActors", params, nil, &out); err != nil {
34 return nil, err
35 }
36
37 return &out, nil
38}