@singi-labs/sifa-sdk 0.12.4 → 0.12.5

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.
Files changed (33) hide show
  1. package/dist/{adult-content-n2uy3rT3.d.cts → adult-content-BOY_T6j3.d.cts} +265 -1
  2. package/dist/{adult-content-n2uy3rT3.d.ts → adult-content-BOY_T6j3.d.ts} +265 -1
  3. package/dist/{index-HTTNUcN4.d.cts → index-BJV2XHOP.d.cts} +16 -3
  4. package/dist/{index-BLv2bK_K.d.ts → index-C1SIpwOj.d.ts} +16 -3
  5. package/dist/{index-tkWmoZAu.d.ts → index-m5MELVUQ.d.ts} +12 -3
  6. package/dist/{index-COjgkXRe.d.cts → index-xcu81B4E.d.cts} +12 -3
  7. package/dist/index.cjs +1 -1
  8. package/dist/index.cjs.map +1 -1
  9. package/dist/index.d.cts +2 -2
  10. package/dist/index.d.ts +2 -2
  11. package/dist/index.js +1 -1
  12. package/dist/index.js.map +1 -1
  13. package/dist/{org-lIB6pSYc.d.cts → org-92bvwL8H.d.cts} +2 -1
  14. package/dist/{org-BZcAnLab.d.ts → org-Bxz__jbx.d.ts} +2 -1
  15. package/dist/query/fetchers/index.cjs +15 -0
  16. package/dist/query/fetchers/index.cjs.map +1 -1
  17. package/dist/query/fetchers/index.d.cts +3 -3
  18. package/dist/query/fetchers/index.d.ts +3 -3
  19. package/dist/query/fetchers/index.js +15 -1
  20. package/dist/query/fetchers/index.js.map +1 -1
  21. package/dist/query/hooks/index.cjs +26 -0
  22. package/dist/query/hooks/index.cjs.map +1 -1
  23. package/dist/query/hooks/index.d.cts +3 -3
  24. package/dist/query/hooks/index.d.ts +3 -3
  25. package/dist/query/hooks/index.js +26 -1
  26. package/dist/query/hooks/index.js.map +1 -1
  27. package/dist/query/index.cjs +25 -0
  28. package/dist/query/index.cjs.map +1 -1
  29. package/dist/query/index.d.cts +5 -5
  30. package/dist/query/index.d.ts +5 -5
  31. package/dist/query/index.js +24 -1
  32. package/dist/query/index.js.map +1 -1
  33. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { E as ExternalAccount, S as SkillSuggestion, a as ActivityLabel } from './adult-content-n2uy3rT3.cjs';
1
+ import { E as ExternalAccount, S as SkillSuggestion, a as ActivityLabel } from './adult-content-BOY_T6j3.cjs';
2
2
  import { F as FollowFeedPage, a as FollowProfileItem, b as FeatureAllowlistEntry, c as FeatureFlag } from './feed-D2ZV8Eaj.cjs';
3
3
  import { f as OrgNotificationEmailRequestInput, b as OrgDomainChallengeRequestInput, O as OrgClaimRequestInput, h as OrgProfileUpdateRequestInput, d as OrgDomainVerifyRequestInput } from './org-settings-CmaSX5ZI.cjs';
4
4
 
@@ -1079,6 +1079,7 @@ declare const sifaQueryKeys: {
1079
1079
  readonly all: () => readonly ["sifa", "profile"];
1080
1080
  readonly byHandle: (handleOrDid: string) => readonly ["sifa", "profile", string];
1081
1081
  readonly atFundLink: (did: string) => readonly ["sifa", "profile", "at-fund-link", string];
1082
+ readonly view: (actor: string) => readonly ["sifa", "profile", "view", string];
1082
1083
  readonly externalAccounts: (handleOrDid: string) => readonly ["sifa", "profile", "external-accounts", string];
1083
1084
  };
1084
1085
  readonly position: {
@@ -1,4 +1,4 @@
1
- import { E as ExternalAccount, S as SkillSuggestion, a as ActivityLabel } from './adult-content-n2uy3rT3.js';
1
+ import { E as ExternalAccount, S as SkillSuggestion, a as ActivityLabel } from './adult-content-BOY_T6j3.js';
2
2
  import { F as FollowFeedPage, a as FollowProfileItem, b as FeatureAllowlistEntry, c as FeatureFlag } from './feed-D2ZV8Eaj.js';
3
3
  import { f as OrgNotificationEmailRequestInput, b as OrgDomainChallengeRequestInput, O as OrgClaimRequestInput, h as OrgProfileUpdateRequestInput, d as OrgDomainVerifyRequestInput } from './org-settings-CmaSX5ZI.js';
4
4
 
@@ -1079,6 +1079,7 @@ declare const sifaQueryKeys: {
1079
1079
  readonly all: () => readonly ["sifa", "profile"];
1080
1080
  readonly byHandle: (handleOrDid: string) => readonly ["sifa", "profile", string];
1081
1081
  readonly atFundLink: (did: string) => readonly ["sifa", "profile", "at-fund-link", string];
1082
+ readonly view: (actor: string) => readonly ["sifa", "profile", "view", string];
1082
1083
  readonly externalAccounts: (handleOrDid: string) => readonly ["sifa", "profile", "external-accounts", string];
1083
1084
  };
1084
1085
  readonly position: {
@@ -132,6 +132,19 @@ async function fetchAtFundLink(config, did, options = {}) {
132
132
  }
133
133
  }
134
134
 
135
+ // src/query/fetchers/get-profile-view.ts
136
+ async function fetchGetProfileView(config, actor, options = {}) {
137
+ const path = `/xrpc/id.sifa.getProfileView?actor=${encodeIdentifier(actor)}`;
138
+ try {
139
+ return await apiFetch(config, path, { retryOn429: true, ...options });
140
+ } catch (e) {
141
+ if (e instanceof ApiError && e.status === 400 && typeof e.body === "object" && e.body !== null && e.body.error === "ProfileNotFound") {
142
+ return null;
143
+ }
144
+ throw e;
145
+ }
146
+ }
147
+
135
148
  // src/query/fetchers/profile-mutations.ts
136
149
  function updateProfileSelf(config, data, options = {}) {
137
150
  return apiWrite(config, "/api/profile/self", "PUT", { body: data, ...options });
@@ -1227,6 +1240,7 @@ var sifaQueryKeys = {
1227
1240
  all: () => ["sifa", "profile"],
1228
1241
  byHandle: (handleOrDid) => ["sifa", "profile", handleOrDid],
1229
1242
  atFundLink: (did) => ["sifa", "profile", "at-fund-link", did],
1243
+ view: (actor) => ["sifa", "profile", "view", actor],
1230
1244
  externalAccounts: (handleOrDid) => ["sifa", "profile", "external-accounts", handleOrDid]
1231
1245
  },
1232
1246
  position: {
@@ -1346,6 +1360,7 @@ exports.fetchEntitySearch = fetchEntitySearch;
1346
1360
  exports.fetchExternalAccounts = fetchExternalAccounts;
1347
1361
  exports.fetchFeaturedProfile = fetchFeaturedProfile;
1348
1362
  exports.fetchFollowing = fetchFollowing;
1363
+ exports.fetchGetProfileView = fetchGetProfileView;
1349
1364
  exports.fetchHeatmapData = fetchHeatmapData;
1350
1365
  exports.fetchHiddenApps = fetchHiddenApps;
1351
1366
  exports.fetchMyRoadmapVotes = fetchMyRoadmapVotes;