comAtprotoIdentitySubmitPlcOperation function

Future<XRPCResponse<EmptyData>> comAtprotoIdentitySubmitPlcOperation({
  1. required Map<String, dynamic> operation,
  2. required ServiceContext $ctx,
  3. Map<String, String>? $headers,
  4. Map<String, String>? $unknown,
})

Validates a PLC operation to ensure that it doesn't violate a service's constraints or get the identity into a bad state, then submits it to the PLC registry

Implementation

Future<XRPCResponse<EmptyData>> comAtprotoIdentitySubmitPlcOperation({
  required Map<String, dynamic> operation,
  required ServiceContext $ctx,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await $ctx.post(
  ns.comAtprotoIdentitySubmitPlcOperation,
  headers: {'Content-type': 'application/json', ...?$headers},
  body: {...?$unknown, 'operation': operation},
);