1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package bsky
4
5// schema: app.bsky.graph.getLists
6
7import (
8 "context"
9
10 "github.com/bluesky-social/indigo/xrpc"
11)
12
13// GraphGetLists_Output is the output of a app.bsky.graph.getLists call.
14type GraphGetLists_Output struct {
15 Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
16 Lists []*GraphDefs_ListView `json:"lists" cborgen:"lists"`
17}
18
19// GraphGetLists calls the XRPC method "app.bsky.graph.getLists".
20//
21// actor: The account (actor) to enumerate lists from.
22func GraphGetLists(ctx context.Context, c *xrpc.Client, actor string, cursor string, limit int64) (*GraphGetLists_Output, error) {
23 var out GraphGetLists_Output
24
25 params := map[string]interface{}{
26 "actor": actor,
27 "cursor": cursor,
28 "limit": limit,
29 }
30 if err := c.Do(ctx, xrpc.Query, "", "app.bsky.graph.getLists", params, nil, &out); err != nil {
31 return nil, err
32 }
33
34 return &out, nil
35}