comAtprotoServerGetAccountInviteCodes function
Get all invite codes for the current account. Requires auth.
Implementation
Future<XRPCResponse<ServerGetAccountInviteCodesOutput>>
comAtprotoServerGetAccountInviteCodes({
bool? includeUsed,
bool? createAvailable,
required ServiceContext $ctx,
Map<String, String>? $headers,
Map<String, String>? $unknown,
}) async => await $ctx.get(
ns.comAtprotoServerGetAccountInviteCodes,
headers: $headers,
parameters: {
...?$unknown,
if (includeUsed != null) 'includeUsed': includeUsed,
if (createAvailable != null) 'createAvailable': createAvailable,
},
to: const ServerGetAccountInviteCodesOutputConverter().fromJson,
);