Monorepo for Tangled tangled.org
1

Configure Feed

Select the types of activity you want to include in your feed.

core / api / tangled / pulllistStatusesBy.go
1.4 kB 47 lines
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package tangled 4 5// schema: sh.tangled.repo.pull.listStatusesBy 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/lex/util" 11) 12 13const ( 14 RepoPullListStatusesByNSID = "sh.tangled.repo.pull.listStatusesBy" 15) 16 17// RepoPullListStatusesBy_Output is the output of a sh.tangled.repo.pull.listStatusesBy call. 18type RepoPullListStatusesBy_Output struct { 19 Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"` 20 Items []*RepoPullListStatuses_ListItem `json:"items" cborgen:"items"` 21} 22 23// RepoPullListStatusesBy calls the XRPC method "sh.tangled.repo.pull.listStatusesBy". 24// 25// cursor: Pagination cursor 26// order: Sort direction by createdAt. 27// subject: Actor DID whose pull-status authorings to list. 28func RepoPullListStatusesBy(ctx context.Context, c util.LexClient, cursor string, limit int64, order string, subject string) (*RepoPullListStatusesBy_Output, error) { 29 var out RepoPullListStatusesBy_Output 30 31 params := map[string]interface{}{} 32 if cursor != "" { 33 params["cursor"] = cursor 34 } 35 if limit != 0 { 36 params["limit"] = limit 37 } 38 if order != "" { 39 params["order"] = order 40 } 41 params["subject"] = subject 42 if err := c.LexDo(ctx, util.Query, "", "sh.tangled.repo.pull.listStatusesBy", params, nil, &out); err != nil { 43 return nil, err 44 } 45 46 return &out, nil 47}