comAtprotoTempCheckHandleAvailability function
Checks whether the provided handle is available. If the handle is not available, available suggestions will be returned. Optional inputs will be used to generate suggestions.
Implementation
Future<XRPCResponse<TempCheckHandleAvailabilityOutput>>
comAtprotoTempCheckHandleAvailability({
required String handle,
String? email,
DateTime? birthDate,
required ServiceContext $ctx,
Map<String, String>? $headers,
Map<String, String>? $unknown,
}) async => await $ctx.get(
ns.comAtprotoTempCheckHandleAvailability,
headers: $headers,
parameters: {
...?$unknown,
'handle': handle,
if (email != null) 'email': email,
if (birthDate != null) 'birthDate': iso8601(birthDate),
},
to: const TempCheckHandleAvailabilityOutputConverter().fromJson,
);