···4455// schema: com.atproto.identity.defs
6677-// IdentityDefs_AtprotoIdentity is a "atprotoIdentity" in the com.atproto.identity.defs schema.
88-type IdentityDefs_AtprotoIdentity struct {
77+// IdentityDefs_IdentityInfo is a "identityInfo" in the com.atproto.identity.defs schema.
88+type IdentityDefs_IdentityInfo struct {
99 Did string `json:"did" cborgen:"did"`
1010 // didDoc: The complete DID document for the identity.
1111- // TODO: manually make this 'interface{}' instead of '*interface{}'
1212- DidDoc interface{} `json:"didDoc,omitempty" cborgen:"didDoc,omitempty"`
1111+ DidDoc interface{} `json:"didDoc" cborgen:"didDoc"`
1312 // handle: The validated handle of the account; or 'handle.invalid' if the handle did not bi-directionally match the DID document.
1414- Handle *string `json:"handle,omitempty" cborgen:"handle,omitempty"`
1515- // tombstoned: If true, the DID has been deleted, and the other optional fields (eg, handle and didDoc) should be null.
1616- Tombstoned *bool `json:"tombstoned,omitempty" cborgen:"tombstoned,omitempty"`
1313+ Handle string `json:"handle" cborgen:"handle"`
1714}
+2-2
api/atproto/identityrefreshIdentity.go
···1616}
17171818// 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
1919+func IdentityRefreshIdentity(ctx context.Context, c *xrpc.Client, input *IdentityRefreshIdentity_Input) (*IdentityDefs_IdentityInfo, error) {
2020+ var out IdentityDefs_IdentityInfo
2121 if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.identity.refreshIdentity", nil, input, &out); err != nil {
2222 return nil, err
2323 }
+2-2
api/atproto/identityresolveIdentity.go
···1313// IdentityResolveIdentity calls the XRPC method "com.atproto.identity.resolveIdentity".
1414//
1515// identifier: Handle or DID to resolve.
1616-func IdentityResolveIdentity(ctx context.Context, c *xrpc.Client, identifier string) (*IdentityDefs_AtprotoIdentity, error) {
1717- var out IdentityDefs_AtprotoIdentity
1616+func IdentityResolveIdentity(ctx context.Context, c *xrpc.Client, identifier string) (*IdentityDefs_IdentityInfo, error) {
1717+ var out IdentityDefs_IdentityInfo
18181919 params := map[string]interface{}{
2020 "identifier": identifier,