/
serverlistAppPasswords.go
32 lines (24 loc) · 1.05 KB
/
serverlistAppPasswords.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
package atproto
// schema: com.atproto.server.listAppPasswords
import (
"context"
"github.com/bluesky-social/indigo/xrpc"
)
// ServerListAppPasswords_AppPassword is a "appPassword" in the com.atproto.server.listAppPasswords schema.
type ServerListAppPasswords_AppPassword struct {
CreatedAt string `json:"createdAt" cborgen:"createdAt"`
Name string `json:"name" cborgen:"name"`
}
// ServerListAppPasswords_Output is the output of a com.atproto.server.listAppPasswords call.
type ServerListAppPasswords_Output struct {
Passwords []*ServerListAppPasswords_AppPassword `json:"passwords" cborgen:"passwords"`
}
// ServerListAppPasswords calls the XRPC method "com.atproto.server.listAppPasswords".
func ServerListAppPasswords(ctx context.Context, c *xrpc.Client) (*ServerListAppPasswords_Output, error) {
var out ServerListAppPasswords_Output
if err := c.Do(ctx, xrpc.Query, "", "com.atproto.server.listAppPasswords", nil, nil, &out); err != nil {
return nil, err
}
return &out, nil
}