A vibe coded tangled fork which supports pijul.
at master 36 lines 981 B view raw
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package tangled 4 5// schema: sh.tangled.repo.permissions 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/lex/util" 11) 12 13const ( 14 RepoPermissionsNSID = "sh.tangled.repo.permissions" 15) 16 17// RepoPermissions_Output is the output of a sh.tangled.repo.permissions call. 18type RepoPermissions_Output struct { 19 Mask int64 `json:"mask" cborgen:"mask"` 20 Permissions []string `json:"permissions" cborgen:"permissions"` 21} 22 23// RepoPermissions calls the XRPC method "sh.tangled.repo.permissions". 24// 25// repo: Repository identifier in format 'did:plc:.../repoName' 26func RepoPermissions(ctx context.Context, c util.LexClient, repo string) (*RepoPermissions_Output, error) { 27 var out RepoPermissions_Output 28 29 params := map[string]interface{}{} 30 params["repo"] = repo 31 if err := c.LexDo(ctx, util.Query, "", "sh.tangled.repo.permissions", params, nil, &out); err != nil { 32 return nil, err 33 } 34 35 return &out, nil 36}