@singi-labs/sifa-sdk 0.12.4 → 0.12.6

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-COjgkXRe.d.cts → index-CUUZmpCG.d.cts} +13 -4
  4. package/dist/{index-tkWmoZAu.d.ts → index-DS4b3pZJ.d.ts} +13 -4
  5. package/dist/{index-BLv2bK_K.d.ts → index-Dxwi4T3Z.d.ts} +16 -3
  6. package/dist/{index-HTTNUcN4.d.cts → index-Dz00ddQP.d.cts} +16 -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-0DdoEMXx.d.cts} +32 -3
  14. package/dist/{org-BZcAnLab.d.ts → org-DxfxHBN8.d.ts} +32 -3
  15. package/dist/query/fetchers/index.cjs +24 -4
  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 +24 -5
  20. package/dist/query/fetchers/index.js.map +1 -1
  21. package/dist/query/hooks/index.cjs +35 -4
  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 +35 -5
  26. package/dist/query/hooks/index.js.map +1 -1
  27. package/dist/query/index.cjs +34 -4
  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 +33 -5
  32. package/dist/query/index.js.map +1 -1
  33. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- import { S as SifaApiConfig, A as ApiFetchOptions, j as CreateResult, W as WriteResult } from './org-BZcAnLab.js';
2
- import { d as Profile, e as ProfilePosition, G as SkillRef } from './adult-content-n2uy3rT3.js';
1
+ import { S as SifaApiConfig, A as ApiFetchOptions, j as CreateResult, W as WriteResult } from './org-DxfxHBN8.js';
2
+ import { d as Profile, _ as ProfileView, e as ProfilePosition, a3 as SkillRef } from './adult-content-BOY_T6j3.js';
3
3
  import { m as EntitySearchResponse, E as EntitySearchResult, g as EntityMintDomainResponse, k as EntityResolveDomainResponse, p as EntitySelectRequest, r as EntitySelectResponse } from './feed-D2ZV8Eaj.js';
4
4
 
5
5
  /**
@@ -18,6 +18,19 @@ declare function fetchProfile(config: SifaApiConfig, handleOrDid: string, option
18
18
  */
19
19
  declare function fetchAtFundLink(config: SifaApiConfig, did: string, options?: ApiFetchOptions): Promise<string | null>;
20
20
 
21
+ /**
22
+ * Read the aggregated public profile view via the `id.sifa.getProfileView`
23
+ * XRPC query. This is the AppView-only join (positions, education, skills,
24
+ * endorsements, and more) exposed as a standard lexicon method, distinct from
25
+ * the internal `/api/profile/*` REST surface.
26
+ *
27
+ * Returns `null` when the AppView has no profile for the actor
28
+ * (`ProfileNotFound`). Throws {@link ApiError} on other non-2xx responses.
29
+ *
30
+ * Server-callable (Next.js RSC) and client-callable (Expo, browser).
31
+ */
32
+ declare function fetchGetProfileView(config: SifaApiConfig, actor: string, options?: ApiFetchOptions): Promise<ProfileView | null>;
33
+
21
34
  /**
22
35
  * Create a new `id.sifa.profile.position` record on the authenticated
23
36
  * user's PDS. The AppView signs and writes via the user's OAuth session.
@@ -258,4 +271,4 @@ declare function checkNetworkMapJobStatus(config: SifaApiConfig, jobId: string,
258
271
  */
259
272
  declare function fetchNetworkMap(config: SifaApiConfig, options?: ApiFetchOptions): Promise<NetworkMapResponse | null>;
260
273
 
261
- export { resolveEntityDomain as A, revealMarqueDomain as B, selectEntity as C, setPositionPrimary as D, unhideKeytraceClaim as E, type FetchNetworkStreamCountOptions as F, unlinkSkillFromPosition as G, unrevealMarqueDomain as H, unsetPositionPrimary as I, updateEducation as J, updatePosition as K, updateRecord as L, updateSkill as M, type NetworkMapEdge as N, type NetworkMapGenerationJob as a, type NetworkMapGraphData as b, type NetworkMapNode as c, type NetworkMapPendingJob as d, type NetworkMapResponse as e, checkNetworkMapJobStatus as f, createEducation as g, createPosition as h, createRecord as i, createSkill as j, deleteEducation as k, deletePosition as l, deleteRecord as m, deleteSkill as n, fetchAtFundLink as o, fetchEndorsementCount as p, fetchEntitySearch as q, fetchNetworkMap as r, fetchNetworkStreamCount as s, fetchProfile as t, hideKeytraceClaim as u, importSearchEntities as v, initiateNetworkMapGeneration as w, isNetworkMapResponse as x, linkSkillToPosition as y, mintEntityDomain as z };
274
+ export { mintEntityDomain as A, resolveEntityDomain as B, revealMarqueDomain as C, selectEntity as D, setPositionPrimary as E, type FetchNetworkStreamCountOptions as F, unhideKeytraceClaim as G, unlinkSkillFromPosition as H, unrevealMarqueDomain as I, unsetPositionPrimary as J, updateEducation as K, updatePosition as L, updateRecord as M, type NetworkMapEdge as N, updateSkill as O, type NetworkMapGenerationJob as a, type NetworkMapGraphData as b, type NetworkMapNode as c, type NetworkMapPendingJob as d, type NetworkMapResponse as e, checkNetworkMapJobStatus as f, createEducation as g, createPosition as h, createRecord as i, createSkill as j, deleteEducation as k, deletePosition as l, deleteRecord as m, deleteSkill as n, fetchAtFundLink as o, fetchEndorsementCount as p, fetchEntitySearch as q, fetchGetProfileView as r, fetchNetworkMap as s, fetchNetworkStreamCount as t, fetchProfile as u, hideKeytraceClaim as v, importSearchEntities as w, initiateNetworkMapGeneration as x, isNetworkMapResponse as y, linkSkillToPosition as z };
@@ -1,5 +1,5 @@
1
- import { S as SifaApiConfig, A as ApiFetchOptions, j as CreateResult, W as WriteResult } from './org-lIB6pSYc.cjs';
2
- import { d as Profile, e as ProfilePosition, G as SkillRef } from './adult-content-n2uy3rT3.cjs';
1
+ import { S as SifaApiConfig, A as ApiFetchOptions, j as CreateResult, W as WriteResult } from './org-0DdoEMXx.cjs';
2
+ import { d as Profile, _ as ProfileView, e as ProfilePosition, a3 as SkillRef } from './adult-content-BOY_T6j3.cjs';
3
3
  import { m as EntitySearchResponse, E as EntitySearchResult, g as EntityMintDomainResponse, k as EntityResolveDomainResponse, p as EntitySelectRequest, r as EntitySelectResponse } from './feed-D2ZV8Eaj.cjs';
4
4
 
5
5
  /**
@@ -18,6 +18,19 @@ declare function fetchProfile(config: SifaApiConfig, handleOrDid: string, option
18
18
  */
19
19
  declare function fetchAtFundLink(config: SifaApiConfig, did: string, options?: ApiFetchOptions): Promise<string | null>;
20
20
 
21
+ /**
22
+ * Read the aggregated public profile view via the `id.sifa.getProfileView`
23
+ * XRPC query. This is the AppView-only join (positions, education, skills,
24
+ * endorsements, and more) exposed as a standard lexicon method, distinct from
25
+ * the internal `/api/profile/*` REST surface.
26
+ *
27
+ * Returns `null` when the AppView has no profile for the actor
28
+ * (`ProfileNotFound`). Throws {@link ApiError} on other non-2xx responses.
29
+ *
30
+ * Server-callable (Next.js RSC) and client-callable (Expo, browser).
31
+ */
32
+ declare function fetchGetProfileView(config: SifaApiConfig, actor: string, options?: ApiFetchOptions): Promise<ProfileView | null>;
33
+
21
34
  /**
22
35
  * Create a new `id.sifa.profile.position` record on the authenticated
23
36
  * user's PDS. The AppView signs and writes via the user's OAuth session.
@@ -258,4 +271,4 @@ declare function checkNetworkMapJobStatus(config: SifaApiConfig, jobId: string,
258
271
  */
259
272
  declare function fetchNetworkMap(config: SifaApiConfig, options?: ApiFetchOptions): Promise<NetworkMapResponse | null>;
260
273
 
261
- export { resolveEntityDomain as A, revealMarqueDomain as B, selectEntity as C, setPositionPrimary as D, unhideKeytraceClaim as E, type FetchNetworkStreamCountOptions as F, unlinkSkillFromPosition as G, unrevealMarqueDomain as H, unsetPositionPrimary as I, updateEducation as J, updatePosition as K, updateRecord as L, updateSkill as M, type NetworkMapEdge as N, type NetworkMapGenerationJob as a, type NetworkMapGraphData as b, type NetworkMapNode as c, type NetworkMapPendingJob as d, type NetworkMapResponse as e, checkNetworkMapJobStatus as f, createEducation as g, createPosition as h, createRecord as i, createSkill as j, deleteEducation as k, deletePosition as l, deleteRecord as m, deleteSkill as n, fetchAtFundLink as o, fetchEndorsementCount as p, fetchEntitySearch as q, fetchNetworkMap as r, fetchNetworkStreamCount as s, fetchProfile as t, hideKeytraceClaim as u, importSearchEntities as v, initiateNetworkMapGeneration as w, isNetworkMapResponse as x, linkSkillToPosition as y, mintEntityDomain as z };
274
+ export { mintEntityDomain as A, resolveEntityDomain as B, revealMarqueDomain as C, selectEntity as D, setPositionPrimary as E, type FetchNetworkStreamCountOptions as F, unhideKeytraceClaim as G, unlinkSkillFromPosition as H, unrevealMarqueDomain as I, unsetPositionPrimary as J, updateEducation as K, updatePosition as L, updateRecord as M, type NetworkMapEdge as N, updateSkill as O, type NetworkMapGenerationJob as a, type NetworkMapGraphData as b, type NetworkMapNode as c, type NetworkMapPendingJob as d, type NetworkMapResponse as e, checkNetworkMapJobStatus as f, createEducation as g, createPosition as h, createRecord as i, createSkill as j, deleteEducation as k, deletePosition as l, deleteRecord as m, deleteSkill as n, fetchAtFundLink as o, fetchEndorsementCount as p, fetchEntitySearch as q, fetchGetProfileView as r, fetchNetworkMap as s, fetchNetworkStreamCount as t, fetchProfile as u, hideKeytraceClaim as v, importSearchEntities as w, initiateNetworkMapGeneration as x, isNetworkMapResponse as y, linkSkillToPosition as z };
package/dist/index.cjs CHANGED
@@ -3432,7 +3432,7 @@ var ProfileVolunteeringRecordSchema = zod.z.object({
3432
3432
  });
3433
3433
 
3434
3434
  // src/index.ts
3435
- var SIFA_SDK_VERSION = "0.12.4";
3435
+ var SIFA_SDK_VERSION = "0.12.6";
3436
3436
 
3437
3437
  exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
3438
3438
  exports.ACTIVITY_VISIBILITY_RULES = ACTIVITY_VISIBILITY_RULES;