// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. package tangled // schema: sh.tangled.knot.listMemberInvitesBy import ( "context" "github.com/bluesky-social/indigo/lex/util" ) const ( KnotListMemberInvitesByNSID = "sh.tangled.knot.listMemberInvitesBy" ) // KnotListMemberInvitesBy_InviteItem is a "inviteItem" in the sh.tangled.knot.listMemberInvitesBy schema. // // Offer awaiting the subject's acceptance. type KnotListMemberInvitesBy_InviteItem struct { // addedBy: DID that made the offer. AddedBy string `json:"addedBy" cborgen:"addedBy"` // createdAt: When the knot made the offer. This listing sorts on it by newest first. CreatedAt string `json:"createdAt" cborgen:"createdAt"` // knot: did:web of knot that made this offer. Check against pending. Knot string `json:"knot" cborgen:"knot"` // uri: Invite record on knot's repo. Uri string `json:"uri" cborgen:"uri"` } // KnotListMemberInvitesBy_Output is the output of a sh.tangled.knot.listMemberInvitesBy call. type KnotListMemberInvitesBy_Output struct { Items []*KnotListMemberInvitesBy_InviteItem `json:"items" cborgen:"items"` // pending: The knots that this indexation hasn't yet read. Pending []string `json:"pending" cborgen:"pending"` // truncated: Per-subject cut dropped offers from items. If truncated is true, missing offers won't advertise that they were withdrawn, same as with pending knots. Truncated bool `json:"truncated" cborgen:"truncated"` } // KnotListMemberInvitesBy calls the XRPC method "sh.tangled.knot.listMemberInvitesBy". // // subject: Actor DID offered membership. func KnotListMemberInvitesBy(ctx context.Context, c util.LexClient, subject string) (*KnotListMemberInvitesBy_Output, error) { var out KnotListMemberInvitesBy_Output params := map[string]interface{}{} params["subject"] = subject if err := c.LexDo(ctx, util.Query, "", "sh.tangled.knot.listMemberInvitesBy", params, nil, &out); err != nil { return nil, err } return &out, nil }