@singi-labs/sifa-sdk 0.12.50 → 0.12.52
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/{index-10rMsh0Y.d.cts → index-B-BExLL4.d.cts} +27 -3
- package/dist/{index-CxZBzRTC.d.cts → index-B1F632lI.d.cts} +3 -3
- package/dist/{index-KQD7YLsb.d.ts → index-BeiqwDak.d.ts} +27 -3
- package/dist/{index-CatO6M_Y.d.ts → index-D9_yFc0m.d.ts} +3 -3
- package/dist/index.cjs +218 -29
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +216 -30
- package/dist/index.js.map +1 -1
- package/dist/{org-8ysVY69a.d.ts → org-lRzEl8je.d.ts} +51 -3
- package/dist/{org-Be0SH7dO.d.cts → org-xybLlTXW.d.cts} +51 -3
- package/dist/{profile-summary-DyX9EJzZ.d.ts → profile-summary-elBg0fG6.d.ts} +1 -1
- package/dist/{profile-summary-DReI-P0i.d.cts → profile-summary-jUtrgYrA.d.cts} +1 -1
- package/dist/query/fetchers/index.cjs +24 -0
- package/dist/query/fetchers/index.cjs.map +1 -1
- package/dist/query/fetchers/index.d.cts +4 -4
- package/dist/query/fetchers/index.d.ts +4 -4
- package/dist/query/fetchers/index.js +22 -1
- package/dist/query/fetchers/index.js.map +1 -1
- package/dist/query/hooks/index.cjs +44 -0
- package/dist/query/hooks/index.cjs.map +1 -1
- package/dist/query/hooks/index.d.cts +3 -3
- package/dist/query/hooks/index.d.ts +3 -3
- package/dist/query/hooks/index.js +43 -1
- package/dist/query/hooks/index.js.map +1 -1
- package/dist/query/index.cjs +48 -0
- package/dist/query/index.cjs.map +1 -1
- package/dist/query/index.d.cts +7 -7
- package/dist/query/index.d.ts +7 -7
- package/dist/query/index.js +44 -1
- package/dist/query/index.js.map +1 -1
- package/dist/schemas/index.cjs +32 -28
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +1 -1
- package/dist/schemas/index.d.ts +1 -1
- package/dist/schemas/index.js +32 -28
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/write/index.cjs +23 -17
- package/dist/schemas/write/index.cjs.map +1 -1
- package/dist/schemas/write/index.d.cts +9 -0
- package/dist/schemas/write/index.d.ts +9 -0
- package/dist/schemas/write/index.js +23 -17
- package/dist/schemas/write/index.js.map +1 -1
- package/dist/{shared-CqayM24g.d.cts → shared-B9ng04Kt.d.cts} +9 -0
- package/dist/{shared-CqayM24g.d.ts → shared-B9ng04Kt.d.ts} +9 -0
- package/dist/{adult-content-BUgP8bpf.d.cts → types-CmS4Argp.d.cts} +153 -1
- package/dist/{adult-content-BUgP8bpf.d.ts → types-CmS4Argp.d.ts} +153 -1
- package/package.json +1 -1
package/dist/query/index.cjs
CHANGED
|
@@ -1405,6 +1405,23 @@ function deleteAccount(config, deletePdsData, options = {}) {
|
|
|
1405
1405
|
);
|
|
1406
1406
|
}
|
|
1407
1407
|
|
|
1408
|
+
// src/query/fetchers/repo-inventory.ts
|
|
1409
|
+
function fetchRepoInventory(config, options = {}) {
|
|
1410
|
+
return apiFetch(config, "/api/me/repo-inventory", {
|
|
1411
|
+
credentials: "include",
|
|
1412
|
+
...options
|
|
1413
|
+
});
|
|
1414
|
+
}
|
|
1415
|
+
function deleteRepoRecords(config, input, options = {}) {
|
|
1416
|
+
return apiWrite(config, "/api/me/repo-delete", "POST", {
|
|
1417
|
+
body: input,
|
|
1418
|
+
...options
|
|
1419
|
+
});
|
|
1420
|
+
}
|
|
1421
|
+
function repoExportUrl(config) {
|
|
1422
|
+
return `${config.baseUrl}/api/me/repo-export`;
|
|
1423
|
+
}
|
|
1424
|
+
|
|
1408
1425
|
// src/query/fetchers/network-map.ts
|
|
1409
1426
|
function isNetworkMapResponse(value) {
|
|
1410
1427
|
return "graph" in value;
|
|
@@ -1533,6 +1550,10 @@ var sifaQueryKeys = {
|
|
|
1533
1550
|
all: () => ["sifa", "bsky-preferences"],
|
|
1534
1551
|
contentLabels: () => ["sifa", "bsky-preferences", "content-labels"]
|
|
1535
1552
|
},
|
|
1553
|
+
repoInventory: {
|
|
1554
|
+
all: () => ["sifa", "repo-inventory"],
|
|
1555
|
+
list: () => ["sifa", "repo-inventory", "list"]
|
|
1556
|
+
},
|
|
1536
1557
|
destructive: {
|
|
1537
1558
|
all: () => ["sifa", "destructive"],
|
|
1538
1559
|
wipePreview: () => ["sifa", "destructive", "wipe-preview"]
|
|
@@ -2873,6 +2894,28 @@ function useDeleteAccount(options) {
|
|
|
2873
2894
|
...options
|
|
2874
2895
|
});
|
|
2875
2896
|
}
|
|
2897
|
+
function useRepoInventory(options) {
|
|
2898
|
+
const config = useSifaConfig();
|
|
2899
|
+
return reactQuery.useQuery({
|
|
2900
|
+
queryKey: sifaQueryKeys.repoInventory.list(),
|
|
2901
|
+
queryFn: () => fetchRepoInventory(config),
|
|
2902
|
+
staleTime: 0,
|
|
2903
|
+
gcTime: 0,
|
|
2904
|
+
...options
|
|
2905
|
+
});
|
|
2906
|
+
}
|
|
2907
|
+
function useDeleteRepoRecords(options) {
|
|
2908
|
+
const config = useSifaConfig();
|
|
2909
|
+
const queryClient = reactQuery.useQueryClient();
|
|
2910
|
+
return reactQuery.useMutation({
|
|
2911
|
+
mutationFn: (input) => deleteRepoRecords(config, input),
|
|
2912
|
+
onSuccess: async (result, variables, onMutateResult, context) => {
|
|
2913
|
+
await queryClient.invalidateQueries({ queryKey: sifaQueryKeys.all() });
|
|
2914
|
+
await options?.onSuccess?.(result, variables, onMutateResult, context);
|
|
2915
|
+
},
|
|
2916
|
+
...options
|
|
2917
|
+
});
|
|
2918
|
+
}
|
|
2876
2919
|
|
|
2877
2920
|
// src/cards/adult-content.ts
|
|
2878
2921
|
var ADULT_CONTENT_LABELS = ["porn", "sexual", "nudity", "graphic-media"];
|
|
@@ -3096,6 +3139,7 @@ exports.deletePosition = deletePosition;
|
|
|
3096
3139
|
exports.deleteProfileLocation = deleteProfileLocation;
|
|
3097
3140
|
exports.deleteReaction = deleteReaction;
|
|
3098
3141
|
exports.deleteRecord = deleteRecord;
|
|
3142
|
+
exports.deleteRepoRecords = deleteRepoRecords;
|
|
3099
3143
|
exports.deleteSkill = deleteSkill;
|
|
3100
3144
|
exports.dismissConfirmation = dismissConfirmation;
|
|
3101
3145
|
exports.dismissEndorsement = dismissEndorsement;
|
|
@@ -3123,6 +3167,7 @@ exports.fetchPendingEndorsements = fetchPendingEndorsements;
|
|
|
3123
3167
|
exports.fetchProfile = fetchProfile;
|
|
3124
3168
|
exports.fetchProfileSummary = fetchProfileSummary;
|
|
3125
3169
|
exports.fetchReactionStatus = fetchReactionStatus;
|
|
3170
|
+
exports.fetchRepoInventory = fetchRepoInventory;
|
|
3126
3171
|
exports.fetchResolveActor = fetchResolveActor;
|
|
3127
3172
|
exports.fetchRoadmapVotes = fetchRoadmapVotes;
|
|
3128
3173
|
exports.fetchSearchFilters = fetchSearchFilters;
|
|
@@ -3155,6 +3200,7 @@ exports.refreshOrcidPublications = refreshOrcidPublications;
|
|
|
3155
3200
|
exports.refreshPds = refreshPds;
|
|
3156
3201
|
exports.removeFeatureAllowlist = removeFeatureAllowlist;
|
|
3157
3202
|
exports.removeOrgNotificationEmail = removeOrgNotificationEmail;
|
|
3203
|
+
exports.repoExportUrl = repoExportUrl;
|
|
3158
3204
|
exports.requestOrgDomainChallenge = requestOrgDomainChallenge;
|
|
3159
3205
|
exports.resetProfile = resetProfile;
|
|
3160
3206
|
exports.resolveEntityDomain = resolveEntityDomain;
|
|
@@ -3226,6 +3272,7 @@ exports.useDeletePosition = useDeletePosition;
|
|
|
3226
3272
|
exports.useDeleteProfileLocation = useDeleteProfileLocation;
|
|
3227
3273
|
exports.useDeleteReaction = useDeleteReaction;
|
|
3228
3274
|
exports.useDeleteRecord = useDeleteRecord;
|
|
3275
|
+
exports.useDeleteRepoRecords = useDeleteRepoRecords;
|
|
3229
3276
|
exports.useDeleteSkill = useDeleteSkill;
|
|
3230
3277
|
exports.useDismissConfirmation = useDismissConfirmation;
|
|
3231
3278
|
exports.useDismissEndorsement = useDismissEndorsement;
|
|
@@ -3267,6 +3314,7 @@ exports.useRefreshOrcidPublications = useRefreshOrcidPublications;
|
|
|
3267
3314
|
exports.useRefreshPds = useRefreshPds;
|
|
3268
3315
|
exports.useRemoveFeatureAllowlist = useRemoveFeatureAllowlist;
|
|
3269
3316
|
exports.useRemoveOrgNotificationEmail = useRemoveOrgNotificationEmail;
|
|
3317
|
+
exports.useRepoInventory = useRepoInventory;
|
|
3270
3318
|
exports.useResetProfile = useResetProfile;
|
|
3271
3319
|
exports.useResolveEntityDomain = useResolveEntityDomain;
|
|
3272
3320
|
exports.useRetractRoadmapVote = useRetractRoadmapVote;
|