comAtprotoServerCreateInviteCodes function
Create invite codes.
Implementation
Future<XRPCResponse<ServerCreateInviteCodesOutput>>
comAtprotoServerCreateInviteCodes({
required int codeCount,
required int useCount,
List<String>? forAccounts,
required ServiceContext $ctx,
Map<String, String>? $headers,
Map<String, String>? $unknown,
}) async => await $ctx.post(
ns.comAtprotoServerCreateInviteCodes,
headers: {'Content-type': 'application/json', ...?$headers},
body: {
...?$unknown,
'codeCount': codeCount,
'useCount': useCount,
if (forAccounts != null) 'forAccounts': forAccounts,
},
to: const ServerCreateInviteCodesOutputConverter().fromJson,
);