comAtprotoIdentitySignPlcOperation function

Future<XRPCResponse<IdentitySignPlcOperationOutput>> comAtprotoIdentitySignPlcOperation({
  1. String? token,
  2. List<String>? rotationKeys,
  3. List<String>? alsoKnownAs,
  4. Map<String, dynamic>? verificationMethods,
  5. Map<String, dynamic>? services,
  6. required ServiceContext $ctx,
  7. Map<String, String>? $headers,
  8. Map<String, String>? $unknown,
})

Signs a PLC operation to update some value(s) in the requesting DID's document.

Implementation

Future<XRPCResponse<IdentitySignPlcOperationOutput>>
comAtprotoIdentitySignPlcOperation({
  String? token,
  List<String>? rotationKeys,
  List<String>? alsoKnownAs,
  Map<String, dynamic>? verificationMethods,
  Map<String, dynamic>? services,
  required ServiceContext $ctx,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await $ctx.post(
  ns.comAtprotoIdentitySignPlcOperation,
  headers: {'Content-type': 'application/json', ...?$headers},
  body: {
    ...?$unknown,
    if (token != null) 'token': token,
    if (rotationKeys != null) 'rotationKeys': rotationKeys,
    if (alsoKnownAs != null) 'alsoKnownAs': alsoKnownAs,
    if (verificationMethods != null) 'verificationMethods': verificationMethods,
    if (services != null) 'services': services,
  },
  to: const IdentitySignPlcOperationOutputConverter().fromJson,
);