comAtprotoServerGetAccountInviteCodes function

Future<XRPCResponse<ServerGetAccountInviteCodesOutput>> comAtprotoServerGetAccountInviteCodes({
  1. bool? includeUsed,
  2. bool? createAvailable,
  3. required ServiceContext $ctx,
  4. Map<String, String>? $headers,
  5. Map<String, String>? $unknown,
})

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