@singi-labs/sifa-sdk 0.12.52 → 0.12.54

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.
@@ -1,7 +1,7 @@
1
- import { S as SifaApiConfig, A as ApiFetchOptions, C as CreateResult, W as WriteResult } from './org-lRzEl8je.js';
2
- import { f as Profile, P as ProfileView, h as ProfilePosition, am as SkillRef } from './types-CmS4Argp.js';
1
+ import { S as SifaApiConfig, A as ApiFetchOptions, C as CreateResult, W as WriteResult } from './org-5Y81k-Mb.js';
2
+ import { f as Profile, P as ProfileView, h as ProfilePosition, am as SkillRef } from './types-CBH2gyTz.js';
3
3
  import { i as EntitySearchResponse, k as EntitySearchResult, c as EntityMintDomainResponse, g as EntityResolveDomainResponse, m as EntitySelectRequest, o as EntitySelectResponse } from './feed-dOSy_48Z.js';
4
- import { S as SummarizeProfileViewOptions, P as ProfileSummary } from './profile-summary-elBg0fG6.js';
4
+ import { S as SummarizeProfileViewOptions, P as ProfileSummary } from './profile-summary-BLpekZzZ.js';
5
5
 
6
6
  /**
7
7
  * Read the aggregated profile for a handle or DID.
@@ -1,9 +1,9 @@
1
1
  import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
- import { S as SifaApiConfig, s as sifaQueryKeys, W as WriteResult, aq as RefreshPdsResult, aH as UpdateProfileOverrideInput, aI as UpdateProfileSelfInput, aJ as UploadAvatarResult, C as CreateResult, aE as SubCategoryBulkResult, ae as ProfileLocationInput, p as ExternalAccountInput, o as CreateExternalAccountResult, aK as VerifyExternalAccountResult, E as EndorsementInput, m as ConfirmationInput, n as ConfirmationSubjectInput, Q as GivenConfirmation, ab as PendingConfirmationsPage, ap as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, _ as HideProfileItemInput, aD as StatsResponse, j as AppRegistryEntry, X as HiddenApp, I as FilterOptions, ay as SearchFilters, az as SearchResponse, aC as SkillSearchResult, q as FeaturedProfile, aB as SimilarProfile, H as FetchSuggestionsOptions, aG as SuggestionsResponse, M as FollowUserResult, u as FetchFollowListOptions, J as FollowListPage, N as FollowingResponse, w as FetchFollowingFeedOptions, v as FetchFollowProfilePageOptions, L as FollowProfilePageResponse, F as FeatureAllowlistResponse, h as AdminReviewQueues, r as FetchActivityFeedOptions, d as ActivityFeedResponse, g as ActivityTeaserResponse, V as HeatmapResponse, a0 as MyGithubPullRequestsResponse, c as AccountCheckResult, ao as ReactionStatus, an as ReactionResult, am as ReactionError, ax as RoadmapVotesResponse, k as CastRoadmapVoteResult, D as DeleteAccountResult, as as ResetProfileResult, aL as WipePreview, ar as RepoDeleteInput, a2 as OrgClaimResult, a8 as OrgProfileUpdateResult, a3 as OrgDomainChallengeResult, a4 as OrgDomainVerifyResult, a5 as OrgNotificationEmailAddResult, a6 as OrgNotificationEmailRemoveResult } from './org-xybLlTXW.cjs';
3
+ import { S as SifaApiConfig, s as sifaQueryKeys, W as WriteResult, aq as RefreshPdsResult, aH as UpdateProfileOverrideInput, aI as UpdateProfileSelfInput, aJ as UploadAvatarResult, C as CreateResult, aE as SubCategoryBulkResult, ae as ProfileLocationInput, p as ExternalAccountInput, o as CreateExternalAccountResult, aK as VerifyExternalAccountResult, E as EndorsementInput, m as ConfirmationInput, n as ConfirmationSubjectInput, Q as GivenConfirmation, ab as PendingConfirmationsPage, ap as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, _ as HideProfileItemInput, aD as StatsResponse, j as AppRegistryEntry, X as HiddenApp, I as FilterOptions, ay as SearchFilters, az as SearchResponse, aC as SkillSearchResult, q as FeaturedProfile, aB as SimilarProfile, H as FetchSuggestionsOptions, aG as SuggestionsResponse, M as FollowUserResult, u as FetchFollowListOptions, J as FollowListPage, N as FollowingResponse, w as FetchFollowingFeedOptions, v as FetchFollowProfilePageOptions, L as FollowProfilePageResponse, F as FeatureAllowlistResponse, h as AdminReviewQueues, r as FetchActivityFeedOptions, d as ActivityFeedResponse, g as ActivityTeaserResponse, V as HeatmapResponse, a0 as MyGithubPullRequestsResponse, c as AccountCheckResult, ao as ReactionStatus, an as ReactionResult, am as ReactionError, ax as RoadmapVotesResponse, k as CastRoadmapVoteResult, D as DeleteAccountResult, as as ResetProfileResult, aL as WipePreview, ar as RepoDeleteInput, a2 as OrgClaimResult, a8 as OrgProfileUpdateResult, a3 as OrgDomainChallengeResult, a4 as OrgDomainVerifyResult, a5 as OrgNotificationEmailAddResult, a6 as OrgNotificationEmailRemoveResult } from './org-CuCqMJBE.cjs';
4
4
  import * as _tanstack_react_query from '@tanstack/react-query';
5
5
  import { UseQueryOptions, UseMutationOptions, UseInfiniteQueryOptions, InfiniteData } from '@tanstack/react-query';
6
- import { f as Profile, P as ProfileView, h as ProfilePosition, am as SkillRef, E as ExternalAccount, S as SkillSuggestion, R as RepoDeleteResult, b as RepoInventory, T as OrgFloorVerdict } from './types-CmS4Argp.cjs';
6
+ import { f as Profile, P as ProfileView, h as ProfilePosition, am as SkillRef, E as ExternalAccount, S as SkillSuggestion, R as RepoDeleteResult, b as RepoInventory, T as OrgFloorVerdict } from './types-CBH2gyTz.cjs';
7
7
  import { i as EntitySearchResponse, k as EntitySearchResult, c as EntityMintDomainResponse, g as EntityResolveDomainResponse, o as EntitySelectResponse, m as EntitySelectRequest, y as FollowFeedPage, s as FeatureFlag } from './feed-dOSy_48Z.cjs';
8
8
  import { O as OrgClaimRequestInput, h as OrgProfileUpdateRequestInput, b as OrgDomainChallengeRequestInput, d as OrgDomainVerifyRequestInput, f as OrgNotificationEmailRequestInput } from './org-settings-B8e01iZx.cjs';
9
9
 
@@ -1,9 +1,9 @@
1
1
  import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
- import { S as SifaApiConfig, s as sifaQueryKeys, W as WriteResult, aq as RefreshPdsResult, aH as UpdateProfileOverrideInput, aI as UpdateProfileSelfInput, aJ as UploadAvatarResult, C as CreateResult, aE as SubCategoryBulkResult, ae as ProfileLocationInput, p as ExternalAccountInput, o as CreateExternalAccountResult, aK as VerifyExternalAccountResult, E as EndorsementInput, m as ConfirmationInput, n as ConfirmationSubjectInput, Q as GivenConfirmation, ab as PendingConfirmationsPage, ap as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, _ as HideProfileItemInput, aD as StatsResponse, j as AppRegistryEntry, X as HiddenApp, I as FilterOptions, ay as SearchFilters, az as SearchResponse, aC as SkillSearchResult, q as FeaturedProfile, aB as SimilarProfile, H as FetchSuggestionsOptions, aG as SuggestionsResponse, M as FollowUserResult, u as FetchFollowListOptions, J as FollowListPage, N as FollowingResponse, w as FetchFollowingFeedOptions, v as FetchFollowProfilePageOptions, L as FollowProfilePageResponse, F as FeatureAllowlistResponse, h as AdminReviewQueues, r as FetchActivityFeedOptions, d as ActivityFeedResponse, g as ActivityTeaserResponse, V as HeatmapResponse, a0 as MyGithubPullRequestsResponse, c as AccountCheckResult, ao as ReactionStatus, an as ReactionResult, am as ReactionError, ax as RoadmapVotesResponse, k as CastRoadmapVoteResult, D as DeleteAccountResult, as as ResetProfileResult, aL as WipePreview, ar as RepoDeleteInput, a2 as OrgClaimResult, a8 as OrgProfileUpdateResult, a3 as OrgDomainChallengeResult, a4 as OrgDomainVerifyResult, a5 as OrgNotificationEmailAddResult, a6 as OrgNotificationEmailRemoveResult } from './org-lRzEl8je.js';
3
+ import { S as SifaApiConfig, s as sifaQueryKeys, W as WriteResult, aq as RefreshPdsResult, aH as UpdateProfileOverrideInput, aI as UpdateProfileSelfInput, aJ as UploadAvatarResult, C as CreateResult, aE as SubCategoryBulkResult, ae as ProfileLocationInput, p as ExternalAccountInput, o as CreateExternalAccountResult, aK as VerifyExternalAccountResult, E as EndorsementInput, m as ConfirmationInput, n as ConfirmationSubjectInput, Q as GivenConfirmation, ab as PendingConfirmationsPage, ap as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, _ as HideProfileItemInput, aD as StatsResponse, j as AppRegistryEntry, X as HiddenApp, I as FilterOptions, ay as SearchFilters, az as SearchResponse, aC as SkillSearchResult, q as FeaturedProfile, aB as SimilarProfile, H as FetchSuggestionsOptions, aG as SuggestionsResponse, M as FollowUserResult, u as FetchFollowListOptions, J as FollowListPage, N as FollowingResponse, w as FetchFollowingFeedOptions, v as FetchFollowProfilePageOptions, L as FollowProfilePageResponse, F as FeatureAllowlistResponse, h as AdminReviewQueues, r as FetchActivityFeedOptions, d as ActivityFeedResponse, g as ActivityTeaserResponse, V as HeatmapResponse, a0 as MyGithubPullRequestsResponse, c as AccountCheckResult, ao as ReactionStatus, an as ReactionResult, am as ReactionError, ax as RoadmapVotesResponse, k as CastRoadmapVoteResult, D as DeleteAccountResult, as as ResetProfileResult, aL as WipePreview, ar as RepoDeleteInput, a2 as OrgClaimResult, a8 as OrgProfileUpdateResult, a3 as OrgDomainChallengeResult, a4 as OrgDomainVerifyResult, a5 as OrgNotificationEmailAddResult, a6 as OrgNotificationEmailRemoveResult } from './org-5Y81k-Mb.js';
4
4
  import * as _tanstack_react_query from '@tanstack/react-query';
5
5
  import { UseQueryOptions, UseMutationOptions, UseInfiniteQueryOptions, InfiniteData } from '@tanstack/react-query';
6
- import { f as Profile, P as ProfileView, h as ProfilePosition, am as SkillRef, E as ExternalAccount, S as SkillSuggestion, R as RepoDeleteResult, b as RepoInventory, T as OrgFloorVerdict } from './types-CmS4Argp.js';
6
+ import { f as Profile, P as ProfileView, h as ProfilePosition, am as SkillRef, E as ExternalAccount, S as SkillSuggestion, R as RepoDeleteResult, b as RepoInventory, T as OrgFloorVerdict } from './types-CBH2gyTz.js';
7
7
  import { i as EntitySearchResponse, k as EntitySearchResult, c as EntityMintDomainResponse, g as EntityResolveDomainResponse, o as EntitySelectResponse, m as EntitySelectRequest, y as FollowFeedPage, s as FeatureFlag } from './feed-dOSy_48Z.js';
8
8
  import { O as OrgClaimRequestInput, h as OrgProfileUpdateRequestInput, b as OrgDomainChallengeRequestInput, d as OrgDomainVerifyRequestInput, f as OrgNotificationEmailRequestInput } from './org-settings-B8e01iZx.js';
9
9
 
@@ -1,7 +1,7 @@
1
- import { S as SifaApiConfig, A as ApiFetchOptions, C as CreateResult, W as WriteResult } from './org-xybLlTXW.cjs';
2
- import { f as Profile, P as ProfileView, h as ProfilePosition, am as SkillRef } from './types-CmS4Argp.cjs';
1
+ import { S as SifaApiConfig, A as ApiFetchOptions, C as CreateResult, W as WriteResult } from './org-CuCqMJBE.cjs';
2
+ import { f as Profile, P as ProfileView, h as ProfilePosition, am as SkillRef } from './types-CBH2gyTz.cjs';
3
3
  import { i as EntitySearchResponse, k as EntitySearchResult, c as EntityMintDomainResponse, g as EntityResolveDomainResponse, m as EntitySelectRequest, o as EntitySelectResponse } from './feed-dOSy_48Z.cjs';
4
- import { S as SummarizeProfileViewOptions, P as ProfileSummary } from './profile-summary-jUtrgYrA.cjs';
4
+ import { S as SummarizeProfileViewOptions, P as ProfileSummary } from './profile-summary-Cpth2lfs.cjs';
5
5
 
6
6
  /**
7
7
  * Read the aggregated profile for a handle or DID.
package/dist/index.cjs CHANGED
@@ -5452,19 +5452,16 @@ var SIFA_REPO_GROUPS = [
5452
5452
  ]
5453
5453
  },
5454
5454
  {
5455
- id: "connections",
5455
+ id: "people",
5456
5456
  collections: ["id.sifa.graph.follow", "id.sifa.graph.connection", "id.sifa.confirmation"]
5457
5457
  },
5458
+ // The id.sifa.auth* lexicons are `permission-set` definitions -- OAuth scope
5459
+ // identifiers published to the authority PDS and referenced from the API's
5460
+ // scope builder. Nothing writes them into a user's repo, so listing them here
5461
+ // promised a consent-management surface that could only ever be empty.
5458
5462
  {
5459
- id: "consents-access",
5460
- collections: [
5461
- "id.sifa.authProfile",
5462
- "id.sifa.authProfileAccess",
5463
- "id.sifa.authConnection",
5464
- "id.sifa.authMeet",
5465
- "id.sifa.authProject",
5466
- "id.sifa.meeting"
5467
- ]
5463
+ id: "meetings",
5464
+ collections: ["id.sifa.meeting"]
5468
5465
  }
5469
5466
  ];
5470
5467
  var GROUP_BY_COLLECTION = new Map(
@@ -5479,7 +5476,10 @@ function repoGroupForCollection(collection) {
5479
5476
  // src/repo/labels.ts
5480
5477
  var LABEL_RULES = {
5481
5478
  "id.sifa.profile.self": { primary: ["headline"] },
5482
- "id.sifa.profile.location": { primary: ["locality", "region", "country"] },
5479
+ "id.sifa.profile.location": {
5480
+ primary: ["address.locality", "address.region", "address.country"],
5481
+ secondary: ["address.country"]
5482
+ },
5483
5483
  "id.sifa.profile.language": { primary: ["name"], secondary: ["proficiency"] },
5484
5484
  "id.sifa.profile.externalAccount": { primary: ["label", "platform"], secondary: ["url"] },
5485
5485
  "id.sifa.org.profile": { primary: ["name"] },
@@ -5552,9 +5552,17 @@ var LABEL_RULES = {
5552
5552
  function collectionLeaf(collection) {
5553
5553
  return collection.slice(collection.lastIndexOf(".") + 1);
5554
5554
  }
5555
+ function valueAtPath(record, path) {
5556
+ let current = record;
5557
+ for (const segment of path.split(".")) {
5558
+ if (typeof current !== "object" || current === null) return void 0;
5559
+ current = current[segment];
5560
+ }
5561
+ return current;
5562
+ }
5555
5563
  function pickString(record, fields) {
5556
5564
  for (const field of fields) {
5557
- const raw = record[field];
5565
+ const raw = valueAtPath(record, field);
5558
5566
  if (typeof raw !== "string") continue;
5559
5567
  const trimmed = raw.trim();
5560
5568
  if (trimmed.length > 0) return trimmed;
@@ -5564,11 +5572,12 @@ function pickString(record, fields) {
5564
5572
  function describeSifaRecord(collection, value) {
5565
5573
  const leaf = collectionLeaf(collection);
5566
5574
  const rule = LABEL_RULES[collection];
5567
- if (!rule || typeof value !== "object" || value === null) return { primary: leaf };
5575
+ if (!rule || typeof value !== "object" || value === null) {
5576
+ return { primary: leaf, isFallback: true };
5577
+ }
5568
5578
  const record = value;
5569
- const label = {
5570
- primary: (rule.primary && pickString(record, rule.primary)) ?? leaf
5571
- };
5579
+ const primary = rule.primary && pickString(record, rule.primary);
5580
+ const label = primary ? { primary } : { primary: leaf, isFallback: true };
5572
5581
  const secondary = rule.secondary && pickString(record, rule.secondary);
5573
5582
  if (secondary !== void 0 && secondary !== label.primary) label.secondary = secondary;
5574
5583
  const date = rule.date && pickString(record, rule.date);
@@ -5579,7 +5588,7 @@ function describeSifaRecord(collection, value) {
5579
5588
  }
5580
5589
 
5581
5590
  // src/index.ts
5582
- var SIFA_SDK_VERSION = "0.12.52";
5591
+ var SIFA_SDK_VERSION = "0.12.54";
5583
5592
 
5584
5593
  exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
5585
5594
  exports.ACTIVITY_VERBS = ACTIVITY_VERBS;