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