Something went wrong. Try again.
Monorepo for Tangled
Something went wrong. Try again.
Go
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
package tangled
// schema: sh.tangled.repo.listCollaboratorInvites
import ( "context"
"github.com/bluesky-social/indigo/lex/util")
const ( RepoListCollaboratorInvitesNSID = "sh.tangled.repo.listCollaboratorInvites")
// RepoListCollaboratorInvites_InviteItem is a "inviteItem" in the sh.tangled.repo.listCollaboratorInvites schema.//// An offer awaiting the subject's acceptance. effectiveSince and access both arrive once the acceptance resolves.type RepoListCollaboratorInvites_InviteItem struct { // addedBy: DID that made the offer AddedBy string `json:"addedBy" cborgen:"addedBy"` // createdAt: When the repository made the offer. This listing sorts and pages on it. CreatedAt string `json:"createdAt" cborgen:"createdAt"` // subject: DID the repository offered collaboration to Subject string `json:"subject" cborgen:"subject"`}
// RepoListCollaboratorInvites_Output is the output of a sh.tangled.repo.listCollaboratorInvites call.type RepoListCollaboratorInvites_Output struct { Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"` Items []*RepoListCollaboratorInvites_InviteItem `json:"items" cborgen:"items"`}
// RepoListCollaboratorInvites calls the XRPC method "sh.tangled.repo.listCollaboratorInvites".//// cursor: Pagination cursor// order: Sort direction by createdAt.// subject: Repo DID whose outstanding collaboration offers to list.func RepoListCollaboratorInvites(ctx context.Context, c util.LexClient, cursor string, limit int64, order string, subject string) (*RepoListCollaboratorInvites_Output, error) { var out RepoListCollaboratorInvites_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.repo.listCollaboratorInvites", params, nil, &out); err != nil { return nil, err }
return &out, nil}