1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package teal
4
5// schema: fm.teal.alpha.actor.getProfiles
6
7import (
8 "context"
9
10 "github.com/bluesky-social/indigo/xrpc"
11)
12
13// AlphaActorGetProfiles_Output is the output of a fm.teal.alpha.actor.getProfiles call.
14type AlphaActorGetProfiles_Output struct {
15 Actors []*AlphaActorDefs_MiniProfileView `json:"actors" cborgen:"actors"`
16}
17
18// AlphaActorGetProfiles calls the XRPC method "fm.teal.alpha.actor.getProfiles".
19//
20// actors: Array of actor DIDs
21func AlphaActorGetProfiles(ctx context.Context, c *xrpc.Client, actors []string) (*AlphaActorGetProfiles_Output, error) {
22 var out AlphaActorGetProfiles_Output
23
24 params := map[string]interface{}{
25 "actors": actors,
26 }
27 if err := c.Do(ctx, xrpc.Query, "", "fm.teal.alpha.actor.getProfiles", params, nil, &out); err != nil {
28 return nil, err
29 }
30
31 return &out, nil
32}