createInviteCodes method
Create invite codes.
https://atprotodart.com/docs/lexicons/com/atproto/server/createInviteCodes
Implementation
Future<XRPCResponse<CreateInviteCodesOutput>> createInviteCodes({
required int codeCount,
required int useCount,
List<String>? forAccounts,
Map<String, String>? $unknown,
Map<String, String>? $headers,
PostClient? $client,
}) async =>
await _ctx.post<CreateInviteCodesOutput>(
ns.comAtprotoServerCreateInviteCodes,
headers: $headers,
body: {
'codeCount': codeCount,
'useCount': useCount,
if (forAccounts != null) 'forAccounts': forAccounts,
...?$unknown,
},
to: const CreateInviteCodesOutputConverter().fromJson,
client: $client,
);