Skip to content

Linger is An Open-Source Personal Agent That Runs Fully on Your PC. We aim to break Big Tech’s grip on AI by bringing powerful local AI to everyday computers through efficient model–harness co-design, so everyone can run their own.

684 B
Raw Blame
import { queryOptions } from "@tanstack/react-query";
import { teamHubData } from "@/features/teamhub/teamhub-api";
import type { TeamHubClient } from "@/features/teamhub/teamhub-client";

export const accountProfileQueryKey = (tenantId: string) =>
  ["teamhub", "account-profile", tenantId] as const;

export function accountProfileQueryOptions(
  client: TeamHubClient,
  tenantId: string,
) {
  return queryOptions({
    queryKey: accountProfileQueryKey(tenantId),
    queryFn: () =>
      teamHubData(
        client.api.GET("/v0/tenants/{tenantId}/account-profile", {
          params: { path: { tenantId } },
        }),
      ),
    retry: false,
    staleTime: 5_000,
  });
}