···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package atproto
44+55+// schema: com.atproto.identity.defs
66+77+// IdentityDefs_AtprotoIdentity is a "atprotoIdentity" in the com.atproto.identity.defs schema.
88+type IdentityDefs_AtprotoIdentity struct {
99+ Did string `json:"did" cborgen:"did"`
1010+ // didDoc: The complete DID document for the identity.
1111+ DidDoc *interface{} `json:"didDoc,omitempty" cborgen:"didDoc,omitempty"`
1212+ // handle: The validated handle of the account; or 'handle.invalid' if the handle did not bi-directionally match the DID document.
1313+ Handle *string `json:"handle,omitempty" cborgen:"handle,omitempty"`
1414+ // tombstoned: If true, the DID has been deleted, and the other optional fields (eg, handle and didDoc) should be null.
1515+ Tombstoned *bool `json:"tombstoned,omitempty" cborgen:"tombstoned,omitempty"`
1616+}
+26
api/atproto/identityrefreshIdentity.go
···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package atproto
44+55+// schema: com.atproto.identity.refreshIdentity
66+77+import (
88+ "context"
99+1010+ "github.com/bluesky-social/indigo/xrpc"
1111+)
1212+1313+// IdentityRefreshIdentity_Input is the input argument to a com.atproto.identity.refreshIdentity call.
1414+type IdentityRefreshIdentity_Input struct {
1515+ Hostname *string `json:"hostname,omitempty" cborgen:"hostname,omitempty"`
1616+}
1717+1818+// IdentityRefreshIdentity calls the XRPC method "com.atproto.identity.refreshIdentity".
1919+func IdentityRefreshIdentity(ctx context.Context, c *xrpc.Client, input *IdentityRefreshIdentity_Input) (*IdentityDefs_AtprotoIdentity, error) {
2020+ var out IdentityDefs_AtprotoIdentity
2121+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.identity.refreshIdentity", nil, input, &out); err != nil {
2222+ return nil, err
2323+ }
2424+2525+ return &out, nil
2626+}
+33
api/atproto/identityresolveDid.go
···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package atproto
44+55+// schema: com.atproto.identity.resolveDid
66+77+import (
88+ "context"
99+1010+ "github.com/bluesky-social/indigo/xrpc"
1111+)
1212+1313+// IdentityResolveDid_Output is the output of a com.atproto.identity.resolveDid call.
1414+type IdentityResolveDid_Output struct {
1515+ // didDoc: The complete DID document for the identity.
1616+ DidDoc interface{} `json:"didDoc" cborgen:"didDoc"`
1717+}
1818+1919+// IdentityResolveDid calls the XRPC method "com.atproto.identity.resolveDid".
2020+//
2121+// did: DID to resolve.
2222+func IdentityResolveDid(ctx context.Context, c *xrpc.Client, did string) (*IdentityResolveDid_Output, error) {
2323+ var out IdentityResolveDid_Output
2424+2525+ params := map[string]interface{}{
2626+ "did": did,
2727+ }
2828+ if err := c.Do(ctx, xrpc.Query, "", "com.atproto.identity.resolveDid", params, nil, &out); err != nil {
2929+ return nil, err
3030+ }
3131+3232+ return &out, nil
3333+}
+27
api/atproto/identityresolveIdentity.go
···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package atproto
44+55+// schema: com.atproto.identity.resolveIdentity
66+77+import (
88+ "context"
99+1010+ "github.com/bluesky-social/indigo/xrpc"
1111+)
1212+1313+// IdentityResolveIdentity calls the XRPC method "com.atproto.identity.resolveIdentity".
1414+//
1515+// handle: Handle or DID to resolve.
1616+func IdentityResolveIdentity(ctx context.Context, c *xrpc.Client, handle string) (*IdentityDefs_AtprotoIdentity, error) {
1717+ var out IdentityDefs_AtprotoIdentity
1818+1919+ params := map[string]interface{}{
2020+ "handle": handle,
2121+ }
2222+ if err := c.Do(ctx, xrpc.Query, "", "com.atproto.identity.resolveIdentity", params, nil, &out); err != nil {
2323+ return nil, err
2424+ }
2525+2626+ return &out, nil
2727+}