This repository has no description
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package tangled
4
5// schema: org.tangled.temp.account.completeSignup
6
7import (
8 "context"
9
10 "github.com/bluesky-social/indigo/lex/util"
11)
12
13const (
14 TempAccountCompleteSignupNSID = "org.tangled.temp.account.completeSignup"
15)
16
17// TempAccountCompleteSignup_Input is the input argument to a org.tangled.temp.account.completeSignup call.
18type TempAccountCompleteSignup_Input struct {
19 // code: Verification code from the signup email.
20 Code string `json:"code" cborgen:"code"`
21 // password: Password for the new account.
22 Password string `json:"password" cborgen:"password"`
23 // username: Desired username; the assigned handle is <username>.<pds domain>.
24 Username string `json:"username" cborgen:"username"`
25}
26
27// TempAccountCompleteSignup_Output is the output of a org.tangled.temp.account.completeSignup call.
28type TempAccountCompleteSignup_Output struct {
29 // did: DID of the newly provisioned account.
30 Did string `json:"did" cborgen:"did"`
31 // handle: The assigned handle, <username>.<pds domain>.
32 Handle string `json:"handle" cborgen:"handle"`
33}
34
35// TempAccountCompleteSignup calls the XRPC method "org.tangled.temp.account.completeSignup".
36func TempAccountCompleteSignup(ctx context.Context, c util.LexClient, input *TempAccountCompleteSignup_Input) (*TempAccountCompleteSignup_Output, error) {
37 var out TempAccountCompleteSignup_Output
38 if err := c.LexDo(ctx, util.Procedure, "application/json", "org.tangled.temp.account.completeSignup", nil, input, &out); err != nil {
39 return nil, err
40 }
41
42 return &out, nil
43}