porting all github actions from bluesky-social/indigo to tangled CI
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package atproto
4
5// schema: com.atproto.identity.resolveDid
6
7import (
8 "context"
9
10 "github.com/bluesky-social/indigo/lex/util"
11)
12
13// IdentityResolveDid_Output is the output of a com.atproto.identity.resolveDid call.
14type IdentityResolveDid_Output struct {
15 // didDoc: The complete DID document for the identity.
16 DidDoc interface{} `json:"didDoc" cborgen:"didDoc"`
17}
18
19// IdentityResolveDid calls the XRPC method "com.atproto.identity.resolveDid".
20//
21// did: DID to resolve.
22func IdentityResolveDid(ctx context.Context, c util.LexClient, did string) (*IdentityResolveDid_Output, error) {
23 var out IdentityResolveDid_Output
24
25 params := map[string]interface{}{}
26 params["did"] = did
27 if err := c.LexDo(ctx, util.Query, "", "com.atproto.identity.resolveDid", params, nil, &out); err != nil {
28 return nil, err
29 }
30
31 return &out, nil
32}