A fork of https://github.com/teal-fm/piper
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package atproto
4
5// schema: com.atproto.server.refreshSession
6
7import (
8 "context"
9
10 "github.com/bluesky-social/indigo/xrpc"
11)
12
13// ServerRefreshSession_Output is the output of a com.atproto.server.refreshSession call.
14type ServerRefreshSession_Output struct {
15 AccessJwt string `json:"accessJwt" cborgen:"accessJwt"`
16 Active *bool `json:"active,omitempty" cborgen:"active,omitempty"`
17 Did string `json:"did" cborgen:"did"`
18 DidDoc *interface{} `json:"didDoc,omitempty" cborgen:"didDoc,omitempty"`
19 Handle string `json:"handle" cborgen:"handle"`
20 RefreshJwt string `json:"refreshJwt" cborgen:"refreshJwt"`
21 // status: Hosting status of the account. If not specified, then assume 'active'.
22 Status *string `json:"status,omitempty" cborgen:"status,omitempty"`
23}
24
25// ServerRefreshSession calls the XRPC method "com.atproto.server.refreshSession".
26func ServerRefreshSession(ctx context.Context, c *xrpc.Client) (*ServerRefreshSession_Output, error) {
27 var out ServerRefreshSession_Output
28 if err := c.Do(ctx, xrpc.Procedure, "", "com.atproto.server.refreshSession", nil, nil, &out); err != nil {
29 return nil, err
30 }
31
32 return &out, nil
33}