comAtprotoTempCheckHandleAvailability function

Future<XRPCResponse<TempCheckHandleAvailabilityOutput>> comAtprotoTempCheckHandleAvailability({
  1. required String handle,
  2. String? email,
  3. DateTime? birthDate,
  4. required ServiceContext $ctx,
  5. Map<String, String>? $headers,
  6. Map<String, String>? $unknown,
})

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,
);