Monorepo for Tangled
tangled.org
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package tangled
4
5// schema: sh.tangled.repo.getIssues
6
7import (
8 "context"
9
10 "github.com/bluesky-social/indigo/lex/util"
11)
12
13const (
14 RepoGetIssuesNSID = "sh.tangled.repo.getIssues"
15)
16
17// RepoGetIssues_Output is the output of a sh.tangled.repo.getIssues call.
18type RepoGetIssues_Output struct {
19 Items []*RepoGetIssues_RecordView `json:"items" cborgen:"items"`
20}
21
22// RepoGetIssues_RecordView is a "recordView" in the sh.tangled.repo.getIssues schema.
23type RepoGetIssues_RecordView struct {
24 Cid *string `json:"cid,omitempty" cborgen:"cid,omitempty"`
25 Uri string `json:"uri" cborgen:"uri"`
26 // value: Embedded sh.tangled.repo.issue record.
27 Value *util.LexiconTypeDecoder `json:"value" cborgen:"value"`
28}
29
30// RepoGetIssues calls the XRPC method "sh.tangled.repo.getIssues".
31//
32// issues: AT-URIs of the sh.tangled.repo.issue records to fetch. At most 50 per request.
33func RepoGetIssues(ctx context.Context, c util.LexClient, issues []string) (*RepoGetIssues_Output, error) {
34 var out RepoGetIssues_Output
35
36 params := map[string]interface{}{}
37 params["issues"] = issues
38 if err := c.LexDo(ctx, util.Query, "", "sh.tangled.repo.getIssues", params, nil, &out); err != nil {
39 return nil, err
40 }
41
42 return &out, nil
43}