porting all github actions from bluesky-social/indigo to tangled CI
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package bsky
4
5// schema: app.bsky.actor.getProfiles
6
7import (
8 "context"
9
10 "github.com/bluesky-social/indigo/lex/util"
11)
12
13// ActorGetProfiles_Output is the output of a app.bsky.actor.getProfiles call.
14type ActorGetProfiles_Output struct {
15 Profiles []*ActorDefs_ProfileViewDetailed `json:"profiles" cborgen:"profiles"`
16}
17
18// ActorGetProfiles calls the XRPC method "app.bsky.actor.getProfiles".
19func ActorGetProfiles(ctx context.Context, c util.LexClient, actors []string) (*ActorGetProfiles_Output, error) {
20 var out ActorGetProfiles_Output
21
22 params := map[string]interface{}{}
23 params["actors"] = actors
24 if err := c.LexDo(ctx, util.Query, "", "app.bsky.actor.getProfiles", params, nil, &out); err != nil {
25 return nil, err
26 }
27
28 return &out, nil
29}