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.checkAccountStatus
6
7import (
8 "context"
9
10 "github.com/bluesky-social/indigo/xrpc"
11)
12
13// ServerCheckAccountStatus_Output is the output of a com.atproto.server.checkAccountStatus call.
14type ServerCheckAccountStatus_Output struct {
15 Activated bool `json:"activated" cborgen:"activated"`
16 ExpectedBlobs int64 `json:"expectedBlobs" cborgen:"expectedBlobs"`
17 ImportedBlobs int64 `json:"importedBlobs" cborgen:"importedBlobs"`
18 IndexedRecords int64 `json:"indexedRecords" cborgen:"indexedRecords"`
19 PrivateStateValues int64 `json:"privateStateValues" cborgen:"privateStateValues"`
20 RepoBlocks int64 `json:"repoBlocks" cborgen:"repoBlocks"`
21 RepoCommit string `json:"repoCommit" cborgen:"repoCommit"`
22 RepoRev string `json:"repoRev" cborgen:"repoRev"`
23 ValidDid bool `json:"validDid" cborgen:"validDid"`
24}
25
26// ServerCheckAccountStatus calls the XRPC method "com.atproto.server.checkAccountStatus".
27func ServerCheckAccountStatus(ctx context.Context, c *xrpc.Client) (*ServerCheckAccountStatus_Output, error) {
28 var out ServerCheckAccountStatus_Output
29 if err := c.Do(ctx, xrpc.Query, "", "com.atproto.server.checkAccountStatus", nil, nil, &out); err != nil {
30 return nil, err
31 }
32
33 return &out, nil
34}