appBskyUnspeccedInitAgeAssurance function

Future<XRPCResponse<AgeAssuranceState>> appBskyUnspeccedInitAgeAssurance({
  1. required String email,
  2. required String language,
  3. required String countryCode,
  4. required ServiceContext $ctx,
  5. Map<String, String>? $headers,
  6. Map<String, String>? $unknown,
})

Initiate age assurance for an account. This is a one-time action that will start the process of verifying the user's age.

Implementation

Future<XRPCResponse<AgeAssuranceState>> appBskyUnspeccedInitAgeAssurance({
  required String email,
  required String language,
  required String countryCode,
  required ServiceContext $ctx,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await $ctx.post(
  ns.appBskyUnspeccedInitAgeAssurance,
  headers: {'Content-type': 'application/json', ...?$headers},
  body: {
    ...?$unknown,
    'email': email,
    'language': language,
    'countryCode': countryCode,
  },
  to: const AgeAssuranceStateConverter().fromJson,
);