1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package atproto
4
5// schema: com.atproto.repo.describeRepo
6
7import (
8 "context"
9
10 "github.com/bluesky-social/indigo/lex/util"
11)
12
13// RepoDescribeRepo_Output is the output of a com.atproto.repo.describeRepo call.
14type RepoDescribeRepo_Output struct {
15 // collections: List of all the collections (NSIDs) for which this repo contains at least one record.
16 Collections []string `json:"collections" cborgen:"collections"`
17 Did string `json:"did" cborgen:"did"`
18 // didDoc: The complete DID document for this account.
19 DidDoc interface{} `json:"didDoc" cborgen:"didDoc"`
20 Handle string `json:"handle" cborgen:"handle"`
21 // handleIsCorrect: Indicates if handle is currently valid (resolves bi-directionally)
22 HandleIsCorrect bool `json:"handleIsCorrect" cborgen:"handleIsCorrect"`
23}
24
25// RepoDescribeRepo calls the XRPC method "com.atproto.repo.describeRepo".
26//
27// repo: The handle or DID of the repo.
28func RepoDescribeRepo(ctx context.Context, c util.LexClient, repo string) (*RepoDescribeRepo_Output, error) {
29 var out RepoDescribeRepo_Output
30
31 params := map[string]interface{}{}
32 params["repo"] = repo
33 if err := c.LexDo(ctx, util.Query, "", "com.atproto.repo.describeRepo", params, nil, &out); err != nil {
34 return nil, err
35 }
36
37 return &out, nil
38}