Something went wrong. Try again.
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
// Lexicon schema: com.atproto.server.refreshSession
package atproto
import ( "context"
lexutil "github.com/bluesky-social/indigo/lex/util")
// ServerRefreshSession_Output is the output of a com.atproto.server.refreshSession call.type ServerRefreshSession_Output struct { AccessJwt string `json:"accessJwt" cborgen:"accessJwt"` Active *bool `json:"active,omitempty" cborgen:"active,omitempty"` Did string `json:"did" cborgen:"did"` DidDoc *interface{} `json:"didDoc,omitempty" cborgen:"didDoc,omitempty"` Email *string `json:"email,omitempty" cborgen:"email,omitempty"` EmailAuthFactor *bool `json:"emailAuthFactor,omitempty" cborgen:"emailAuthFactor,omitempty"` EmailConfirmed *bool `json:"emailConfirmed,omitempty" cborgen:"emailConfirmed,omitempty"` Handle string `json:"handle" cborgen:"handle"` RefreshJwt string `json:"refreshJwt" cborgen:"refreshJwt"` // status: Hosting status of the account. If not specified, then assume 'active'. Status *string `json:"status,omitempty" cborgen:"status,omitempty"`}
// ServerRefreshSession calls the XRPC method "com.atproto.server.refreshSession".func ServerRefreshSession(ctx context.Context, c lexutil.LexClient) (*ServerRefreshSession_Output, error) { var out ServerRefreshSession_Output if err := c.LexDo(ctx, lexutil.Procedure, "", "com.atproto.server.refreshSession", nil, nil, &out); err != nil { return nil, err }
return &out, nil}