// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. // Lexicon schema: app.bsky.contact.importContacts package bsky import ( "context" lexutil "github.com/bluesky-social/indigo/lex/util" ) // ContactImportContacts_Input is the input argument to a app.bsky.contact.importContacts call. type ContactImportContacts_Input struct { // contacts: List of phone numbers in global E.164 format (e.g., '+12125550123'). Phone numbers that cannot be normalized into a valid phone number will be discarded. Should not repeat the 'phone' input used in `app.bsky.contact.verifyPhone`. Contacts []string `json:"contacts" cborgen:"contacts"` // token: JWT to authenticate the call. Use the JWT received as a response to the call to `app.bsky.contact.verifyPhone`. Token string `json:"token" cborgen:"token"` } // ContactImportContacts_Output is the output of a app.bsky.contact.importContacts call. type ContactImportContacts_Output struct { // matchesAndContactIndexes: The users that matched during import and their indexes on the input contacts, so the client can correlate with its local list. MatchesAndContactIndexes []*ContactDefs_MatchAndContactIndex `json:"matchesAndContactIndexes" cborgen:"matchesAndContactIndexes"` } // ContactImportContacts calls the XRPC method "app.bsky.contact.importContacts". func ContactImportContacts(ctx context.Context, c lexutil.LexClient, input *ContactImportContacts_Input) (*ContactImportContacts_Output, error) { var out ContactImportContacts_Output if err := c.LexDo(ctx, lexutil.Procedure, "application/json", "app.bsky.contact.importContacts", nil, input, &out); err != nil { return nil, err } return &out, nil }