@singi-labs/sifa-sdk 0.12.30 → 0.12.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1278,6 +1278,12 @@ function retractRoadmapVote(config, key, options = {}) {
1278
1278
  }
1279
1279
 
1280
1280
  // src/query/fetchers/destructive.ts
1281
+ function fetchWipePreview(config, options = {}) {
1282
+ return apiFetch(config, "/api/profile/wipe-preview", {
1283
+ credentials: "include",
1284
+ ...options
1285
+ });
1286
+ }
1281
1287
  function resetProfile(config, deletePdsData, options = {}) {
1282
1288
  return apiWrite(config, "/api/profile/reset", "DELETE", {
1283
1289
  body: { deletePdsData },
@@ -1410,6 +1416,10 @@ var sifaQueryKeys = {
1410
1416
  bskyPreferences: {
1411
1417
  all: () => ["sifa", "bsky-preferences"],
1412
1418
  contentLabels: () => ["sifa", "bsky-preferences", "content-labels"]
1419
+ },
1420
+ destructive: {
1421
+ all: () => ["sifa", "destructive"],
1422
+ wipePreview: () => ["sifa", "destructive", "wipe-preview"]
1413
1423
  }
1414
1424
  };
1415
1425
 
@@ -2556,6 +2566,16 @@ function useRetractRoadmapVote(options) {
2556
2566
  ...options
2557
2567
  });
2558
2568
  }
2569
+ function useWipePreview(options) {
2570
+ const config = useSifaConfig();
2571
+ return reactQuery.useQuery({
2572
+ queryKey: sifaQueryKeys.destructive.wipePreview(),
2573
+ queryFn: () => fetchWipePreview(config),
2574
+ staleTime: 0,
2575
+ gcTime: 0,
2576
+ ...options
2577
+ });
2578
+ }
2559
2579
  function useResetProfile(options) {
2560
2580
  const config = useSifaConfig();
2561
2581
  const queryClient = reactQuery.useQueryClient();
@@ -2836,6 +2856,7 @@ exports.fetchSkillSuggestions = fetchSkillSuggestions;
2836
2856
  exports.fetchStats = fetchStats;
2837
2857
  exports.fetchSuggestionCount = fetchSuggestionCount;
2838
2858
  exports.fetchSuggestions = fetchSuggestions;
2859
+ exports.fetchWipePreview = fetchWipePreview;
2839
2860
  exports.followUser = followUser;
2840
2861
  exports.getBlueskySuggestions = getBlueskySuggestions;
2841
2862
  exports.getFollowers = getFollowers;
@@ -2997,6 +3018,7 @@ exports.useUpdateRecord = useUpdateRecord;
2997
3018
  exports.useUpdateSkill = useUpdateSkill;
2998
3019
  exports.useUploadAvatar = useUploadAvatar;
2999
3020
  exports.useVerifyExternalAccount = useVerifyExternalAccount;
3021
+ exports.useWipePreview = useWipePreview;
3000
3022
  exports.verifyExternalAccount = verifyExternalAccount;
3001
3023
  exports.verifyOrgDomain = verifyOrgDomain;
3002
3024
  //# sourceMappingURL=index.cjs.map