// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. // Lexicon schema: com.atproto.repo.describeRepo package atproto import ( "context" lexutil "github.com/bluesky-social/indigo/lex/util" ) // RepoDescribeRepo_Output is the output of a com.atproto.repo.describeRepo call. type RepoDescribeRepo_Output struct { // collections: List of all the collections (NSIDs) for which this repo contains at least one record. Collections []string `json:"collections" cborgen:"collections"` Did string `json:"did" cborgen:"did"` // didDoc: The complete DID document for this account. DidDoc interface{} `json:"didDoc" cborgen:"didDoc"` Handle string `json:"handle" cborgen:"handle"` // handleIsCorrect: Indicates if handle is currently valid (resolves bi-directionally) HandleIsCorrect bool `json:"handleIsCorrect" cborgen:"handleIsCorrect"` } // RepoDescribeRepo calls the XRPC method "com.atproto.repo.describeRepo". // // repo: The handle or DID of the repo. func RepoDescribeRepo(ctx context.Context, c lexutil.LexClient, repo string) (*RepoDescribeRepo_Output, error) { var out RepoDescribeRepo_Output params := map[string]interface{}{} params["repo"] = repo if err := c.LexDo(ctx, lexutil.Query, "", "com.atproto.repo.describeRepo", params, nil, &out); err != nil { return nil, err } return &out, nil }