@singi-labs/sifa-sdk 0.9.19 → 0.9.20
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.
- package/dist/feed-DHTy7fUN.d.cts +254 -0
- package/dist/feed-DHTy7fUN.d.ts +254 -0
- package/dist/{index-DCpMh2Ny.d.cts → index-DYUYJxOs.d.cts} +1 -1
- package/dist/{index-DCpMh2Ny.d.ts → index-DYUYJxOs.d.ts} +1 -1
- package/dist/index.cjs +103 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +92 -3
- package/dist/index.js.map +1 -1
- package/dist/keys-D-vNPzXx.d.ts +1085 -0
- package/dist/keys-DRD79nDE.d.cts +1085 -0
- package/dist/query/fetchers/index.cjs +155 -1
- package/dist/query/fetchers/index.cjs.map +1 -1
- package/dist/query/fetchers/index.d.cts +6 -933
- package/dist/query/fetchers/index.d.ts +6 -933
- package/dist/query/fetchers/index.js +146 -2
- package/dist/query/fetchers/index.js.map +1 -1
- package/dist/query/hooks/index.cjs +2268 -0
- package/dist/query/hooks/index.cjs.map +1 -0
- package/dist/query/hooks/index.d.cts +479 -0
- package/dist/query/hooks/index.d.ts +479 -0
- package/dist/query/hooks/index.js +2178 -0
- package/dist/query/hooks/index.js.map +1 -0
- package/dist/query/index.cjs +340 -1
- package/dist/query/index.cjs.map +1 -1
- package/dist/query/index.d.cts +9 -352
- package/dist/query/index.d.ts +9 -352
- package/dist/query/index.js +322 -3
- package/dist/query/index.js.map +1 -1
- package/dist/schemas/index.cjs +102 -1
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +28 -2
- package/dist/schemas/index.d.ts +28 -2
- package/dist/schemas/index.js +91 -2
- package/dist/schemas/index.js.map +1 -1
- package/package.json +11 -1
package/dist/query/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createContext, useContext } from 'react';
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
import { useQuery, useQueryClient, useMutation } from '@tanstack/react-query';
|
|
3
|
+
import { useQuery, useQueryClient, useMutation, useInfiniteQuery } from '@tanstack/react-query';
|
|
4
4
|
|
|
5
5
|
// src/query/client.ts
|
|
6
6
|
var ApiError = class extends Error {
|
|
@@ -629,6 +629,141 @@ async function fetchFollowing(config, opts = {}) {
|
|
|
629
629
|
return { follows: [] };
|
|
630
630
|
}
|
|
631
631
|
}
|
|
632
|
+
function followUser(config, handle, opts = {}) {
|
|
633
|
+
const { note, ...rest } = opts;
|
|
634
|
+
return apiWrite(
|
|
635
|
+
config,
|
|
636
|
+
`/api/follow/${encodeURIComponent(handle)}`,
|
|
637
|
+
"POST",
|
|
638
|
+
{
|
|
639
|
+
body: note !== void 0 ? { note } : void 0,
|
|
640
|
+
...rest
|
|
641
|
+
}
|
|
642
|
+
);
|
|
643
|
+
}
|
|
644
|
+
function unfollowUser(config, handle, opts = {}) {
|
|
645
|
+
return apiWrite(config, `/api/follow/${encodeURIComponent(handle)}`, "DELETE", opts);
|
|
646
|
+
}
|
|
647
|
+
function buildListPath(prefix, opts) {
|
|
648
|
+
const params = new URLSearchParams();
|
|
649
|
+
if (opts.cursor) params.set("cursor", opts.cursor);
|
|
650
|
+
if (opts.limit) params.set("limit", String(opts.limit));
|
|
651
|
+
const qs = params.toString();
|
|
652
|
+
return `${prefix}${qs ? `?${qs}` : ""}`;
|
|
653
|
+
}
|
|
654
|
+
async function getFollowers(config, handle, opts = {}) {
|
|
655
|
+
const headers = { ...opts.headers ?? {} };
|
|
656
|
+
if (opts.cookieHeader) headers.cookie = opts.cookieHeader;
|
|
657
|
+
try {
|
|
658
|
+
const res = await apiFetch(
|
|
659
|
+
config,
|
|
660
|
+
buildListPath(`/api/profile/${encodeURIComponent(handle)}/followers`, opts),
|
|
661
|
+
{ credentials: "include", cache: "no-store", ...opts, headers }
|
|
662
|
+
);
|
|
663
|
+
return { follows: res.follows, cursor: res.cursor ?? null };
|
|
664
|
+
} catch {
|
|
665
|
+
return { follows: [], cursor: null };
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
async function getFollowing(config, handle, opts = {}) {
|
|
669
|
+
const headers = { ...opts.headers ?? {} };
|
|
670
|
+
if (opts.cookieHeader) headers.cookie = opts.cookieHeader;
|
|
671
|
+
try {
|
|
672
|
+
const res = await apiFetch(
|
|
673
|
+
config,
|
|
674
|
+
buildListPath(`/api/profile/${encodeURIComponent(handle)}/following`, opts),
|
|
675
|
+
{ credentials: "include", cache: "no-store", ...opts, headers }
|
|
676
|
+
);
|
|
677
|
+
return { follows: res.follows, cursor: res.cursor ?? null };
|
|
678
|
+
} catch {
|
|
679
|
+
return { follows: [], cursor: null };
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
async function getFollowingFeed(config, opts = {}) {
|
|
683
|
+
const params = new URLSearchParams();
|
|
684
|
+
if (opts.cursor) params.set("cursor", opts.cursor);
|
|
685
|
+
if (opts.limit) params.set("limit", String(opts.limit));
|
|
686
|
+
if (opts.categories && opts.categories.length > 0) {
|
|
687
|
+
params.set("categories", opts.categories.join(","));
|
|
688
|
+
}
|
|
689
|
+
const qs = params.toString();
|
|
690
|
+
const headers = { ...opts.headers ?? {} };
|
|
691
|
+
if (opts.cookieHeader) headers.cookie = opts.cookieHeader;
|
|
692
|
+
try {
|
|
693
|
+
const res = await apiFetch(
|
|
694
|
+
config,
|
|
695
|
+
`/api/following/feed${qs ? `?${qs}` : ""}`,
|
|
696
|
+
{ credentials: "include", cache: "no-store", ...opts, headers }
|
|
697
|
+
);
|
|
698
|
+
return { items: res.items ?? [], cursor: res.cursor ?? null };
|
|
699
|
+
} catch {
|
|
700
|
+
return { items: [], cursor: null };
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
// src/query/fetchers/follow-extras.ts
|
|
705
|
+
function buildListPath2(prefix, opts) {
|
|
706
|
+
const params = new URLSearchParams();
|
|
707
|
+
if (opts.cursor) params.set("cursor", opts.cursor);
|
|
708
|
+
if (opts.limit) params.set("limit", String(opts.limit));
|
|
709
|
+
const qs = params.toString();
|
|
710
|
+
return `${prefix}${qs ? `?${qs}` : ""}`;
|
|
711
|
+
}
|
|
712
|
+
async function fetchFollowProfilePage(config, path, opts) {
|
|
713
|
+
const headers = { ...opts.headers ?? {} };
|
|
714
|
+
if (opts.cookieHeader) headers.cookie = opts.cookieHeader;
|
|
715
|
+
try {
|
|
716
|
+
const res = await apiFetch(
|
|
717
|
+
config,
|
|
718
|
+
path,
|
|
719
|
+
{ credentials: "include", cache: "no-store", ...opts, headers }
|
|
720
|
+
);
|
|
721
|
+
return { items: res.items ?? [], cursor: res.cursor ?? null };
|
|
722
|
+
} catch {
|
|
723
|
+
return { items: [], cursor: null };
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
async function getMutuals(config, handleOrDid, opts = {}) {
|
|
727
|
+
return fetchFollowProfilePage(
|
|
728
|
+
config,
|
|
729
|
+
buildListPath2(`/api/profile/${encodeURIComponent(handleOrDid)}/mutuals`, opts),
|
|
730
|
+
opts
|
|
731
|
+
);
|
|
732
|
+
}
|
|
733
|
+
async function getBlueskySuggestions(config, opts = {}) {
|
|
734
|
+
return fetchFollowProfilePage(config, buildListPath2("/api/me/bluesky-suggestions", opts), opts);
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
// src/query/fetchers/admin-feature-allowlists.ts
|
|
738
|
+
async function listFeatureAllowlist(config, flag, opts = {}) {
|
|
739
|
+
const headers = { ...opts.headers ?? {} };
|
|
740
|
+
if (opts.cookieHeader) headers.cookie = opts.cookieHeader;
|
|
741
|
+
try {
|
|
742
|
+
const res = await apiFetch(
|
|
743
|
+
config,
|
|
744
|
+
`/api/admin/feature-allowlists/${encodeURIComponent(flag)}`,
|
|
745
|
+
{ credentials: "include", cache: "no-store", ...opts, headers }
|
|
746
|
+
);
|
|
747
|
+
return { items: res.items ?? [] };
|
|
748
|
+
} catch {
|
|
749
|
+
return { items: [] };
|
|
750
|
+
}
|
|
751
|
+
}
|
|
752
|
+
function addFeatureAllowlist(config, flag, did, opts = {}) {
|
|
753
|
+
const { note, ...rest } = opts;
|
|
754
|
+
return apiWrite(config, `/api/admin/feature-allowlists/${encodeURIComponent(flag)}`, "POST", {
|
|
755
|
+
body: note !== void 0 ? { did, note } : { did },
|
|
756
|
+
...rest
|
|
757
|
+
});
|
|
758
|
+
}
|
|
759
|
+
function removeFeatureAllowlist(config, flag, did, opts = {}) {
|
|
760
|
+
return apiWrite(
|
|
761
|
+
config,
|
|
762
|
+
`/api/admin/feature-allowlists/${encodeURIComponent(flag)}/${encodeURIComponent(did)}`,
|
|
763
|
+
"DELETE",
|
|
764
|
+
opts
|
|
765
|
+
);
|
|
766
|
+
}
|
|
632
767
|
|
|
633
768
|
// src/query/fetchers/activity.ts
|
|
634
769
|
async function fetchHeatmapData(config, handleOrDid, days, options = {}) {
|
|
@@ -944,7 +1079,16 @@ var sifaQueryKeys = {
|
|
|
944
1079
|
},
|
|
945
1080
|
follow: {
|
|
946
1081
|
all: () => ["sifa", "follow"],
|
|
947
|
-
following: (opts) => ["sifa", "follow", "following", opts]
|
|
1082
|
+
following: (opts) => ["sifa", "follow", "following", opts],
|
|
1083
|
+
followers: (handle) => ["sifa", "follow", "followers", handle],
|
|
1084
|
+
followingOf: (handle) => ["sifa", "follow", "following-of", handle],
|
|
1085
|
+
feed: (opts) => ["sifa", "follow", "feed", opts],
|
|
1086
|
+
mutuals: (handle) => ["sifa", "follow", "mutuals", handle],
|
|
1087
|
+
blueskySuggestions: () => ["sifa", "follow", "bluesky-suggestions"]
|
|
1088
|
+
},
|
|
1089
|
+
admin: {
|
|
1090
|
+
all: () => ["sifa", "admin"],
|
|
1091
|
+
featureAllowlist: (flag) => ["sifa", "admin", "feature-allowlist", flag]
|
|
948
1092
|
},
|
|
949
1093
|
stats: {
|
|
950
1094
|
all: () => ["sifa", "stats"],
|
|
@@ -1715,6 +1859,181 @@ function useFollowing(opts = {}, options) {
|
|
|
1715
1859
|
...options
|
|
1716
1860
|
});
|
|
1717
1861
|
}
|
|
1862
|
+
function useFollow(options) {
|
|
1863
|
+
const config = useSifaConfig();
|
|
1864
|
+
const queryClient = useQueryClient();
|
|
1865
|
+
return useMutation({
|
|
1866
|
+
mutationFn: ({ handle, note }) => followUser(config, handle, { note }),
|
|
1867
|
+
onSuccess: async (result, variables, onMutateResult, context) => {
|
|
1868
|
+
if (result.success) {
|
|
1869
|
+
await queryClient.invalidateQueries({ queryKey: sifaQueryKeys.follow.all() });
|
|
1870
|
+
}
|
|
1871
|
+
await options?.onSuccess?.(result, variables, onMutateResult, context);
|
|
1872
|
+
},
|
|
1873
|
+
onError: async (error, variables, onMutateResult, context) => {
|
|
1874
|
+
await queryClient.invalidateQueries({ queryKey: sifaQueryKeys.follow.all() });
|
|
1875
|
+
await options?.onError?.(error, variables, onMutateResult, context);
|
|
1876
|
+
},
|
|
1877
|
+
...options
|
|
1878
|
+
});
|
|
1879
|
+
}
|
|
1880
|
+
function useUnfollow(options) {
|
|
1881
|
+
const config = useSifaConfig();
|
|
1882
|
+
const queryClient = useQueryClient();
|
|
1883
|
+
return useMutation({
|
|
1884
|
+
mutationFn: ({ handle }) => unfollowUser(config, handle),
|
|
1885
|
+
onSuccess: async (result, variables, onMutateResult, context) => {
|
|
1886
|
+
if (result.success) {
|
|
1887
|
+
await queryClient.invalidateQueries({ queryKey: sifaQueryKeys.follow.all() });
|
|
1888
|
+
}
|
|
1889
|
+
await options?.onSuccess?.(result, variables, onMutateResult, context);
|
|
1890
|
+
},
|
|
1891
|
+
onError: async (error, variables, onMutateResult, context) => {
|
|
1892
|
+
await queryClient.invalidateQueries({ queryKey: sifaQueryKeys.follow.all() });
|
|
1893
|
+
await options?.onError?.(error, variables, onMutateResult, context);
|
|
1894
|
+
},
|
|
1895
|
+
...options
|
|
1896
|
+
});
|
|
1897
|
+
}
|
|
1898
|
+
function useFollowers(handle, opts = {}, options) {
|
|
1899
|
+
const config = useSifaConfig();
|
|
1900
|
+
return useInfiniteQuery({
|
|
1901
|
+
queryKey: sifaQueryKeys.follow.followers(handle),
|
|
1902
|
+
queryFn: ({ pageParam }) => getFollowers(config, handle, { ...opts, cursor: pageParam }),
|
|
1903
|
+
initialPageParam: void 0,
|
|
1904
|
+
getNextPageParam: (lastPage) => lastPage.cursor ?? void 0,
|
|
1905
|
+
enabled: handle.length > 0,
|
|
1906
|
+
...options
|
|
1907
|
+
});
|
|
1908
|
+
}
|
|
1909
|
+
function useFollowingList(handle, opts = {}, options) {
|
|
1910
|
+
const config = useSifaConfig();
|
|
1911
|
+
return useInfiniteQuery({
|
|
1912
|
+
queryKey: sifaQueryKeys.follow.followingOf(handle),
|
|
1913
|
+
queryFn: ({ pageParam }) => getFollowing(config, handle, { ...opts, cursor: pageParam }),
|
|
1914
|
+
initialPageParam: void 0,
|
|
1915
|
+
getNextPageParam: (lastPage) => lastPage.cursor ?? void 0,
|
|
1916
|
+
enabled: handle.length > 0,
|
|
1917
|
+
...options
|
|
1918
|
+
});
|
|
1919
|
+
}
|
|
1920
|
+
function useFollowingFeed(opts = {}, options) {
|
|
1921
|
+
const config = useSifaConfig();
|
|
1922
|
+
const keyOpts = {
|
|
1923
|
+
limit: opts.limit,
|
|
1924
|
+
categories: opts.categories
|
|
1925
|
+
};
|
|
1926
|
+
return useInfiniteQuery({
|
|
1927
|
+
queryKey: sifaQueryKeys.follow.feed(keyOpts),
|
|
1928
|
+
queryFn: ({ pageParam }) => getFollowingFeed(config, { ...opts, cursor: pageParam }),
|
|
1929
|
+
initialPageParam: void 0,
|
|
1930
|
+
getNextPageParam: (lastPage) => lastPage.cursor ?? void 0,
|
|
1931
|
+
...options
|
|
1932
|
+
});
|
|
1933
|
+
}
|
|
1934
|
+
function useMutuals(handleOrDid, opts = {}, options) {
|
|
1935
|
+
const config = useSifaConfig();
|
|
1936
|
+
return useInfiniteQuery({
|
|
1937
|
+
queryKey: sifaQueryKeys.follow.mutuals(handleOrDid),
|
|
1938
|
+
queryFn: ({ pageParam }) => getMutuals(config, handleOrDid, { ...opts, cursor: pageParam }),
|
|
1939
|
+
initialPageParam: void 0,
|
|
1940
|
+
getNextPageParam: (lastPage) => lastPage.cursor ?? void 0,
|
|
1941
|
+
enabled: handleOrDid.length > 0,
|
|
1942
|
+
...options
|
|
1943
|
+
});
|
|
1944
|
+
}
|
|
1945
|
+
function useBlueskySuggestions(opts = {}, options) {
|
|
1946
|
+
const config = useSifaConfig();
|
|
1947
|
+
return useInfiniteQuery({
|
|
1948
|
+
queryKey: sifaQueryKeys.follow.blueskySuggestions(),
|
|
1949
|
+
queryFn: ({ pageParam }) => getBlueskySuggestions(config, { ...opts, cursor: pageParam }),
|
|
1950
|
+
initialPageParam: void 0,
|
|
1951
|
+
getNextPageParam: (lastPage) => lastPage.cursor ?? void 0,
|
|
1952
|
+
...options
|
|
1953
|
+
});
|
|
1954
|
+
}
|
|
1955
|
+
function useFeatureAllowlist(flag, options) {
|
|
1956
|
+
const config = useSifaConfig();
|
|
1957
|
+
return useQuery({
|
|
1958
|
+
queryKey: sifaQueryKeys.admin.featureAllowlist(flag),
|
|
1959
|
+
queryFn: () => listFeatureAllowlist(config, flag),
|
|
1960
|
+
...options
|
|
1961
|
+
});
|
|
1962
|
+
}
|
|
1963
|
+
function useAddFeatureAllowlist(flag, options) {
|
|
1964
|
+
const config = useSifaConfig();
|
|
1965
|
+
const queryClient = useQueryClient();
|
|
1966
|
+
const key = sifaQueryKeys.admin.featureAllowlist(flag);
|
|
1967
|
+
return useMutation({
|
|
1968
|
+
mutationFn: ({ did, note }) => addFeatureAllowlist(config, flag, did, { note }),
|
|
1969
|
+
onMutate: async ({ did, note }) => {
|
|
1970
|
+
await queryClient.cancelQueries({ queryKey: key });
|
|
1971
|
+
const previous = queryClient.getQueryData(key);
|
|
1972
|
+
const optimisticEntry = {
|
|
1973
|
+
did,
|
|
1974
|
+
addedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
1975
|
+
note: note ?? null
|
|
1976
|
+
};
|
|
1977
|
+
const next = previous ? { items: [optimisticEntry, ...previous.items.filter((e) => e.did !== did)] } : { items: [optimisticEntry] };
|
|
1978
|
+
queryClient.setQueryData(key, next);
|
|
1979
|
+
return { previous };
|
|
1980
|
+
},
|
|
1981
|
+
onSuccess: async (result, variables, onMutateResult, context) => {
|
|
1982
|
+
if (!result.success && onMutateResult?.previous) {
|
|
1983
|
+
queryClient.setQueryData(key, onMutateResult.previous);
|
|
1984
|
+
}
|
|
1985
|
+
await options?.onSuccess?.(result, variables, onMutateResult, context);
|
|
1986
|
+
},
|
|
1987
|
+
onError: async (error, variables, onMutateResult, context) => {
|
|
1988
|
+
if (onMutateResult?.previous) {
|
|
1989
|
+
queryClient.setQueryData(key, onMutateResult.previous);
|
|
1990
|
+
}
|
|
1991
|
+
await options?.onError?.(error, variables, onMutateResult, context);
|
|
1992
|
+
},
|
|
1993
|
+
onSettled: async (result, error, variables, onMutateResult, context) => {
|
|
1994
|
+
await queryClient.invalidateQueries({ queryKey: key });
|
|
1995
|
+
await options?.onSettled?.(result, error, variables, onMutateResult, context);
|
|
1996
|
+
},
|
|
1997
|
+
...options
|
|
1998
|
+
});
|
|
1999
|
+
}
|
|
2000
|
+
function useRemoveFeatureAllowlist(flag, options) {
|
|
2001
|
+
const config = useSifaConfig();
|
|
2002
|
+
const queryClient = useQueryClient();
|
|
2003
|
+
const key = sifaQueryKeys.admin.featureAllowlist(flag);
|
|
2004
|
+
return useMutation(
|
|
2005
|
+
{
|
|
2006
|
+
mutationFn: ({ did }) => removeFeatureAllowlist(config, flag, did),
|
|
2007
|
+
onMutate: async ({ did }) => {
|
|
2008
|
+
await queryClient.cancelQueries({ queryKey: key });
|
|
2009
|
+
const previous = queryClient.getQueryData(key);
|
|
2010
|
+
if (previous) {
|
|
2011
|
+
queryClient.setQueryData(key, {
|
|
2012
|
+
items: previous.items.filter((e) => e.did !== did)
|
|
2013
|
+
});
|
|
2014
|
+
}
|
|
2015
|
+
return { previous };
|
|
2016
|
+
},
|
|
2017
|
+
onSuccess: async (result, variables, onMutateResult, context) => {
|
|
2018
|
+
if (!result.success && onMutateResult?.previous) {
|
|
2019
|
+
queryClient.setQueryData(key, onMutateResult.previous);
|
|
2020
|
+
}
|
|
2021
|
+
await options?.onSuccess?.(result, variables, onMutateResult, context);
|
|
2022
|
+
},
|
|
2023
|
+
onError: async (error, variables, onMutateResult, context) => {
|
|
2024
|
+
if (onMutateResult?.previous) {
|
|
2025
|
+
queryClient.setQueryData(key, onMutateResult.previous);
|
|
2026
|
+
}
|
|
2027
|
+
await options?.onError?.(error, variables, onMutateResult, context);
|
|
2028
|
+
},
|
|
2029
|
+
onSettled: async (result, error, variables, onMutateResult, context) => {
|
|
2030
|
+
await queryClient.invalidateQueries({ queryKey: key });
|
|
2031
|
+
await options?.onSettled?.(result, error, variables, onMutateResult, context);
|
|
2032
|
+
},
|
|
2033
|
+
...options
|
|
2034
|
+
}
|
|
2035
|
+
);
|
|
2036
|
+
}
|
|
1718
2037
|
function useHeatmapData(handleOrDid, days, options) {
|
|
1719
2038
|
const config = useSifaConfig();
|
|
1720
2039
|
return useQuery({
|
|
@@ -1881,6 +2200,6 @@ function useDeleteAccount(options) {
|
|
|
1881
2200
|
});
|
|
1882
2201
|
}
|
|
1883
2202
|
|
|
1884
|
-
export { ApiError, HIDDEN_ITEM_SOURCES, HIDDEN_ITEM_TYPES, QUOTED_POSTS_BATCH_MAX, SifaProvider, apiFetch, apiFetchOrNull, apiWrite, apiWriteCreate, bulkHideProfileItems, bulkHideStandardPublications, bulkUnhideProfileItems, bulkUnhideStandardPublications, castRoadmapVote, checkAppAccount, checkNetworkMapJobStatus, createEducation, createEndorsement, createExternalAccount, createPosition, createProfileLocation, createReaction, createRecord, createSkill, deleteAccount, deleteAvatarOverride, deleteEducation, deleteExternalAccount, deletePosition, deleteProfileLocation, deleteReaction, deleteRecord, deleteSkill, fetchActivityFeed, fetchActivityTeaser, fetchAppsRegistry, fetchAtFundLink, fetchEndorsementCount, fetchExternalAccounts, fetchFeaturedProfile, fetchFollowing, fetchHeatmapData, fetchHiddenApps, fetchMyRoadmapVotes, fetchNetworkMap, fetchNetworkStreamCount, fetchProfile, fetchReactionStatus, fetchRoadmapVotes, fetchSearchFilters, fetchSearchProfiles, fetchSimilarProfiles, fetchSkillSuggestions, fetchStats, fetchSuggestionCount, fetchSuggestions, hideKeytraceClaim, hideOrcidPublication, hideProfileItem, hideSifaPublication, hideStandardPublication, initiateNetworkMapGeneration, isNetworkMapResponse, linkSkillToPosition, refreshOrcidPublications, refreshPds, resetProfile, resolveQuotedPosts, retractRoadmapVote, searchSkills, setExternalAccountPrimary, setPositionPrimary, sifaQueryKeys, unhideKeytraceClaim, unhideOrcidPublication, unhideProfileItem, unhideSifaPublication, unhideStandardPublication, unlinkSkillFromPosition, unsetExternalAccountPrimary, unsetPositionPrimary, updateEducation, updateExternalAccount, updatePosition, updateProfileLocation, updateProfileOverride, updateProfileSelf, updateRecord, updateSkill, uploadAvatar, useActivityFeed, useActivityTeaser, useAppAccountCheck, useAppsRegistry, useAtFundLink, useBulkHideProfileItems, useBulkHideStandardPublications, useBulkUnhideProfileItems, useBulkUnhideStandardPublications, useCanonicalSkillSearch, useCastRoadmapVote, useCreateEducation, useCreateEndorsement, useCreateExternalAccount, useCreatePosition, useCreateProfileLocation, useCreateReaction, useCreateRecord, useCreateSkill, useDeleteAccount, useDeleteAvatarOverride, useDeleteEducation, useDeleteExternalAccount, useDeletePosition, useDeleteProfileLocation, useDeleteReaction, useDeleteRecord, useDeleteSkill, useEndorsementCount, useExternalAccounts, useFeaturedProfile, useFollowing, useHeatmapData, useHiddenApps, useHideKeytraceClaim, useHideOrcidPublication, useHideProfileItem, useHideSifaPublication, useHideStandardPublication, useLinkSkillToPosition, useMyRoadmapVotes, useNetworkStreamCount, useProfile, useReactionStatus, useRefreshOrcidPublications, useRefreshPds, useResetProfile, useRetractRoadmapVote, useRoadmapVotes, useSearchFilters, useSearchProfiles, useSetExternalAccountPrimary, useSetPositionPrimary, useSifaConfig, useSimilarProfiles, useSkillSuggestions, useStats, useSuggestionCount, useSuggestions, useUnhideKeytraceClaim, useUnhideOrcidPublication, useUnhideProfileItem, useUnhideSifaPublication, useUnhideStandardPublication, useUnlinkSkillFromPosition, useUnsetExternalAccountPrimary, useUnsetPositionPrimary, useUpdateEducation, useUpdateExternalAccount, useUpdatePosition, useUpdateProfileLocation, useUpdateProfileOverride, useUpdateProfileSelf, useUpdateRecord, useUpdateSkill, useUploadAvatar, useVerifyExternalAccount, verifyExternalAccount };
|
|
2203
|
+
export { ApiError, HIDDEN_ITEM_SOURCES, HIDDEN_ITEM_TYPES, QUOTED_POSTS_BATCH_MAX, SifaProvider, addFeatureAllowlist, apiFetch, apiFetchOrNull, apiWrite, apiWriteCreate, bulkHideProfileItems, bulkHideStandardPublications, bulkUnhideProfileItems, bulkUnhideStandardPublications, castRoadmapVote, checkAppAccount, checkNetworkMapJobStatus, createEducation, createEndorsement, createExternalAccount, createPosition, createProfileLocation, createReaction, createRecord, createSkill, deleteAccount, deleteAvatarOverride, deleteEducation, deleteExternalAccount, deletePosition, deleteProfileLocation, deleteReaction, deleteRecord, deleteSkill, fetchActivityFeed, fetchActivityTeaser, fetchAppsRegistry, fetchAtFundLink, fetchEndorsementCount, fetchExternalAccounts, fetchFeaturedProfile, fetchFollowing, fetchHeatmapData, fetchHiddenApps, fetchMyRoadmapVotes, fetchNetworkMap, fetchNetworkStreamCount, fetchProfile, fetchReactionStatus, fetchRoadmapVotes, fetchSearchFilters, fetchSearchProfiles, fetchSimilarProfiles, fetchSkillSuggestions, fetchStats, fetchSuggestionCount, fetchSuggestions, followUser, getBlueskySuggestions, getFollowers, getFollowing, getFollowingFeed, getMutuals, hideKeytraceClaim, hideOrcidPublication, hideProfileItem, hideSifaPublication, hideStandardPublication, initiateNetworkMapGeneration, isNetworkMapResponse, linkSkillToPosition, listFeatureAllowlist, refreshOrcidPublications, refreshPds, removeFeatureAllowlist, resetProfile, resolveQuotedPosts, retractRoadmapVote, searchSkills, setExternalAccountPrimary, setPositionPrimary, sifaQueryKeys, unfollowUser, unhideKeytraceClaim, unhideOrcidPublication, unhideProfileItem, unhideSifaPublication, unhideStandardPublication, unlinkSkillFromPosition, unsetExternalAccountPrimary, unsetPositionPrimary, updateEducation, updateExternalAccount, updatePosition, updateProfileLocation, updateProfileOverride, updateProfileSelf, updateRecord, updateSkill, uploadAvatar, useActivityFeed, useActivityTeaser, useAddFeatureAllowlist, useAppAccountCheck, useAppsRegistry, useAtFundLink, useBlueskySuggestions, useBulkHideProfileItems, useBulkHideStandardPublications, useBulkUnhideProfileItems, useBulkUnhideStandardPublications, useCanonicalSkillSearch, useCastRoadmapVote, useCreateEducation, useCreateEndorsement, useCreateExternalAccount, useCreatePosition, useCreateProfileLocation, useCreateReaction, useCreateRecord, useCreateSkill, useDeleteAccount, useDeleteAvatarOverride, useDeleteEducation, useDeleteExternalAccount, useDeletePosition, useDeleteProfileLocation, useDeleteReaction, useDeleteRecord, useDeleteSkill, useEndorsementCount, useExternalAccounts, useFeatureAllowlist, useFeaturedProfile, useFollow, useFollowers, useFollowing, useFollowingFeed, useFollowingList, useHeatmapData, useHiddenApps, useHideKeytraceClaim, useHideOrcidPublication, useHideProfileItem, useHideSifaPublication, useHideStandardPublication, useLinkSkillToPosition, useMutuals, useMyRoadmapVotes, useNetworkStreamCount, useProfile, useReactionStatus, useRefreshOrcidPublications, useRefreshPds, useRemoveFeatureAllowlist, useResetProfile, useRetractRoadmapVote, useRoadmapVotes, useSearchFilters, useSearchProfiles, useSetExternalAccountPrimary, useSetPositionPrimary, useSifaConfig, useSimilarProfiles, useSkillSuggestions, useStats, useSuggestionCount, useSuggestions, useUnfollow, useUnhideKeytraceClaim, useUnhideOrcidPublication, useUnhideProfileItem, useUnhideSifaPublication, useUnhideStandardPublication, useUnlinkSkillFromPosition, useUnsetExternalAccountPrimary, useUnsetPositionPrimary, useUpdateEducation, useUpdateExternalAccount, useUpdatePosition, useUpdateProfileLocation, useUpdateProfileOverride, useUpdateProfileSelf, useUpdateRecord, useUpdateSkill, useUploadAvatar, useVerifyExternalAccount, verifyExternalAccount };
|
|
1885
2204
|
//# sourceMappingURL=index.js.map
|
|
1886
2205
|
//# sourceMappingURL=index.js.map
|