Something went wrong. Try again.
Monorepo for Tangled tangled.org
Something went wrong. Try again.
Go
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960// 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}