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