getAccountInviteCodes method

Future<XRPCResponse<GetAccountInviteCodesOutput>> getAccountInviteCodes({
  1. bool? includeUsed,
  2. bool? createAvailable,
  3. Map<String, String>? $unknown,
  4. Map<String, String>? $headers,
  5. GetClient? $client,
})

Get all invite codes for the current account. Requires auth.

https://atprotodart.com/docs/lexicons/com/atproto/server/getAccountInviteCodes

Implementation

Future<XRPCResponse<GetAccountInviteCodesOutput>> getAccountInviteCodes({
  bool? includeUsed,
  bool? createAvailable,
  Map<String, String>? $unknown,
  Map<String, String>? $headers,
  GetClient? $client,
}) async =>
    await _ctx.get<GetAccountInviteCodesOutput>(
      ns.comAtprotoServerGetAccountInviteCodes,
      headers: $headers,
      parameters: {
        if (includeUsed != null) 'includeUsed': includeUsed.toString(),
        if (createAvailable != null)
          'createAvailable': createAvailable.toString(),
        ...?$unknown,
      },
      to: const GetAccountInviteCodesOutputConverter().fromJson,
      client: $client,
    );