// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. package tangled // schema: sh.tangled.pull.listPullViews import ( "context" "github.com/bluesky-social/indigo/lex/util" ) const ( PullListPullViewsNSID = "sh.tangled.pull.listPullViews" ) // PullListPullViews_Output is the output of a sh.tangled.pull.listPullViews call. type PullListPullViews_Output struct { Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"` Items []*PullDefs_PullView `json:"items" cborgen:"items"` } // PullListPullViews calls the XRPC method "sh.tangled.pull.listPullViews". // // cursor: Pagination cursor // subject: Repo DID to list pulls for func PullListPullViews(ctx context.Context, c util.LexClient, cursor string, limit int64, state string, subject string) (*PullListPullViews_Output, error) { var out PullListPullViews_Output params := map[string]interface{}{} if cursor != "" { params["cursor"] = cursor } if limit != 0 { params["limit"] = limit } if state != "" { params["state"] = state } params["subject"] = subject if err := c.LexDo(ctx, util.Query, "", "sh.tangled.pull.listPullViews", params, nil, &out); err != nil { return nil, err } return &out, nil }