1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package bsky
4
5// schema: app.bsky.unspecced.initAgeAssurance
6
7import (
8 "context"
9
10 "github.com/bluesky-social/indigo/lex/util"
11)
12
13// UnspeccedInitAgeAssurance_Input is the input argument to a app.bsky.unspecced.initAgeAssurance call.
14type UnspeccedInitAgeAssurance_Input struct {
15 // countryCode: An ISO 3166-1 alpha-2 code of the user's location.
16 CountryCode string `json:"countryCode" cborgen:"countryCode"`
17 // email: The user's email address to receive assurance instructions.
18 Email string `json:"email" cborgen:"email"`
19 // language: The user's preferred language for communication during the assurance process.
20 Language string `json:"language" cborgen:"language"`
21}
22
23// UnspeccedInitAgeAssurance calls the XRPC method "app.bsky.unspecced.initAgeAssurance".
24func UnspeccedInitAgeAssurance(ctx context.Context, c util.LexClient, input *UnspeccedInitAgeAssurance_Input) (*UnspeccedDefs_AgeAssuranceState, error) {
25 var out UnspeccedDefs_AgeAssuranceState
26 if err := c.LexDo(ctx, util.Procedure, "application/json", "app.bsky.unspecced.initAgeAssurance", nil, input, &out); err != nil {
27 return nil, err
28 }
29
30 return &out, nil
31}