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