// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. package tangled // schema: sh.tangled.knot.listMemberInvites import ( "context" "github.com/bluesky-social/indigo/lex/util" ) const ( KnotListMemberInvitesNSID = "sh.tangled.knot.listMemberInvites" ) // KnotListMemberInvites_InviteItem is a "inviteItem" in the sh.tangled.knot.listMemberInvites schema. // // An offer awaiting the subject's acceptance. effectiveSince and access both arrive once the acceptance resolves. type KnotListMemberInvites_InviteItem struct { // addedBy: DID that made the offer AddedBy string `json:"addedBy" cborgen:"addedBy"` // createdAt: When the knot made the offer. This listing sorts and pages on it. CreatedAt string `json:"createdAt" cborgen:"createdAt"` // subject: DID the knot offered membership to Subject string `json:"subject" cborgen:"subject"` } // KnotListMemberInvites_Output is the output of a sh.tangled.knot.listMemberInvites call. type KnotListMemberInvites_Output struct { Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"` Items []*KnotListMemberInvites_InviteItem `json:"items" cborgen:"items"` } // KnotListMemberInvites calls the XRPC method "sh.tangled.knot.listMemberInvites". // // cursor: Pagination cursor // order: Sort direction by createdAt. // subject: Knot identifier whose outstanding membership offers to list. func KnotListMemberInvites(ctx context.Context, c util.LexClient, cursor string, limit int64, order string, subject string) (*KnotListMemberInvites_Output, error) { var out KnotListMemberInvites_Output params := map[string]interface{}{} if cursor != "" { params["cursor"] = cursor } if limit != 0 { params["limit"] = limit } if order != "" { params["order"] = order } params["subject"] = subject if err := c.LexDo(ctx, util.Query, "", "sh.tangled.knot.listMemberInvites", params, nil, &out); err != nil { return nil, err } return &out, nil }