1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package bsky
4
5// schema: app.bsky.feed.getRepostedBy
6
7import (
8 "context"
9
10 "github.com/bluesky-social/indigo/xrpc"
11)
12
13// FeedGetRepostedBy_Output is the output of a app.bsky.feed.getRepostedBy call.
14type FeedGetRepostedBy_Output struct {
15 Cid *string `json:"cid,omitempty" cborgen:"cid,omitempty"`
16 Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
17 RepostedBy []*ActorDefs_ProfileView `json:"repostedBy" cborgen:"repostedBy"`
18 Uri string `json:"uri" cborgen:"uri"`
19}
20
21// FeedGetRepostedBy calls the XRPC method "app.bsky.feed.getRepostedBy".
22//
23// cid: If supplied, filters to reposts of specific version (by CID) of the post record.
24// uri: Reference (AT-URI) of post record
25func FeedGetRepostedBy(ctx context.Context, c *xrpc.Client, cid string, cursor string, limit int64, uri string) (*FeedGetRepostedBy_Output, error) {
26 var out FeedGetRepostedBy_Output
27
28 params := map[string]interface{}{
29 "cid": cid,
30 "cursor": cursor,
31 "limit": limit,
32 "uri": uri,
33 }
34 if err := c.Do(ctx, xrpc.Query, "", "app.bsky.feed.getRepostedBy", params, nil, &out); err != nil {
35 return nil, err
36 }
37
38 return &out, nil
39}