Monorepo for Tangled
0

Configure Feed

Select the types of activity you want to include in your feed.

core / api / tangled / actorgetProfiles.go
1.3 kB 43 lines
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package tangled 4 5// schema: sh.tangled.actor.getProfiles 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/lex/util" 11) 12 13const ( 14 ActorGetProfilesNSID = "sh.tangled.actor.getProfiles" 15) 16 17// ActorGetProfiles_Output is the output of a sh.tangled.actor.getProfiles call. 18type ActorGetProfiles_Output struct { 19 Items []*ActorGetProfiles_RecordView `json:"items" cborgen:"items"` 20} 21 22// ActorGetProfiles_RecordView is a "recordView" in the sh.tangled.actor.getProfiles schema. 23type ActorGetProfiles_RecordView struct { 24 Cid *string `json:"cid,omitempty" cborgen:"cid,omitempty"` 25 Uri string `json:"uri" cborgen:"uri"` 26 // value: Embedded sh.tangled.actor.profile record. 27 Value *util.LexiconTypeDecoder `json:"value" cborgen:"value"` 28} 29 30// ActorGetProfiles calls the XRPC method "sh.tangled.actor.getProfiles". 31// 32// actors: AT-URIs of the sh.tangled.actor.profile records to fetch. At most 50 per request. 33func ActorGetProfiles(ctx context.Context, c util.LexClient, actors []string) (*ActorGetProfiles_Output, error) { 34 var out ActorGetProfiles_Output 35 36 params := map[string]interface{}{} 37 params["actors"] = actors 38 if err := c.LexDo(ctx, util.Query, "", "sh.tangled.actor.getProfiles", params, nil, &out); err != nil { 39 return nil, err 40 } 41 42 return &out, nil 43}