1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package bsky
4
5// schema: app.bsky.graph.getList
6
7import (
8 "context"
9
10 "github.com/bluesky-social/indigo/lex/util"
11)
12
13// GraphGetList_Output is the output of a app.bsky.graph.getList call.
14type GraphGetList_Output struct {
15 Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
16 Items []*GraphDefs_ListItemView `json:"items" cborgen:"items"`
17 List *GraphDefs_ListView `json:"list" cborgen:"list"`
18}
19
20// GraphGetList calls the XRPC method "app.bsky.graph.getList".
21//
22// list: Reference (AT-URI) of the list record to hydrate.
23func GraphGetList(ctx context.Context, c util.LexClient, cursor string, limit int64, list string) (*GraphGetList_Output, error) {
24 var out GraphGetList_Output
25
26 params := map[string]interface{}{}
27 if cursor != "" {
28 params["cursor"] = cursor
29 }
30 if limit != 0 {
31 params["limit"] = limit
32 }
33 params["list"] = list
34 if err := c.LexDo(ctx, util.Query, "", "app.bsky.graph.getList", params, nil, &out); err != nil {
35 return nil, err
36 }
37
38 return &out, nil
39}