this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

lexgen identity endpoints

+102
+16
api/atproto/identitydefs.go
··· 1 + // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 + 3 + package atproto 4 + 5 + // schema: com.atproto.identity.defs 6 + 7 + // IdentityDefs_AtprotoIdentity is a "atprotoIdentity" in the com.atproto.identity.defs schema. 8 + type IdentityDefs_AtprotoIdentity struct { 9 + Did string `json:"did" cborgen:"did"` 10 + // didDoc: The complete DID document for the identity. 11 + DidDoc *interface{} `json:"didDoc,omitempty" cborgen:"didDoc,omitempty"` 12 + // handle: The validated handle of the account; or 'handle.invalid' if the handle did not bi-directionally match the DID document. 13 + Handle *string `json:"handle,omitempty" cborgen:"handle,omitempty"` 14 + // tombstoned: If true, the DID has been deleted, and the other optional fields (eg, handle and didDoc) should be null. 15 + Tombstoned *bool `json:"tombstoned,omitempty" cborgen:"tombstoned,omitempty"` 16 + }
+26
api/atproto/identityrefreshIdentity.go
··· 1 + // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 + 3 + package atproto 4 + 5 + // schema: com.atproto.identity.refreshIdentity 6 + 7 + import ( 8 + "context" 9 + 10 + "github.com/bluesky-social/indigo/xrpc" 11 + ) 12 + 13 + // IdentityRefreshIdentity_Input is the input argument to a com.atproto.identity.refreshIdentity call. 14 + type IdentityRefreshIdentity_Input struct { 15 + Hostname *string `json:"hostname,omitempty" cborgen:"hostname,omitempty"` 16 + } 17 + 18 + // IdentityRefreshIdentity calls the XRPC method "com.atproto.identity.refreshIdentity". 19 + func IdentityRefreshIdentity(ctx context.Context, c *xrpc.Client, input *IdentityRefreshIdentity_Input) (*IdentityDefs_AtprotoIdentity, error) { 20 + var out IdentityDefs_AtprotoIdentity 21 + if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.identity.refreshIdentity", nil, input, &out); err != nil { 22 + return nil, err 23 + } 24 + 25 + return &out, nil 26 + }
+33
api/atproto/identityresolveDid.go
··· 1 + // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 + 3 + package atproto 4 + 5 + // schema: com.atproto.identity.resolveDid 6 + 7 + import ( 8 + "context" 9 + 10 + "github.com/bluesky-social/indigo/xrpc" 11 + ) 12 + 13 + // IdentityResolveDid_Output is the output of a com.atproto.identity.resolveDid call. 14 + type 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. 22 + func IdentityResolveDid(ctx context.Context, c *xrpc.Client, did string) (*IdentityResolveDid_Output, error) { 23 + var out IdentityResolveDid_Output 24 + 25 + params := map[string]interface{}{ 26 + "did": did, 27 + } 28 + if err := c.Do(ctx, xrpc.Query, "", "com.atproto.identity.resolveDid", params, nil, &out); err != nil { 29 + return nil, err 30 + } 31 + 32 + return &out, nil 33 + }
+27
api/atproto/identityresolveIdentity.go
··· 1 + // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 + 3 + package atproto 4 + 5 + // schema: com.atproto.identity.resolveIdentity 6 + 7 + import ( 8 + "context" 9 + 10 + "github.com/bluesky-social/indigo/xrpc" 11 + ) 12 + 13 + // IdentityResolveIdentity calls the XRPC method "com.atproto.identity.resolveIdentity". 14 + // 15 + // handle: Handle or DID to resolve. 16 + func IdentityResolveIdentity(ctx context.Context, c *xrpc.Client, handle string) (*IdentityDefs_AtprotoIdentity, error) { 17 + var out IdentityDefs_AtprotoIdentity 18 + 19 + params := map[string]interface{}{ 20 + "handle": handle, 21 + } 22 + if err := c.Do(ctx, xrpc.Query, "", "com.atproto.identity.resolveIdentity", params, nil, &out); err != nil { 23 + return nil, err 24 + } 25 + 26 + return &out, nil 27 + }