1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package atproto
4
5// schema: com.atproto.server.resetPassword
6
7import (
8 "context"
9
10 "github.com/bluesky-social/indigo/lex/util"
11)
12
13// ServerResetPassword_Input is the input argument to a com.atproto.server.resetPassword call.
14type ServerResetPassword_Input struct {
15 Password string `json:"password" cborgen:"password"`
16 Token string `json:"token" cborgen:"token"`
17}
18
19// ServerResetPassword calls the XRPC method "com.atproto.server.resetPassword".
20func ServerResetPassword(ctx context.Context, c util.LexClient, input *ServerResetPassword_Input) error {
21 if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.server.resetPassword", nil, input, nil); err != nil {
22 return err
23 }
24
25 return nil
26}