@singi-labs/sifa-sdk 0.12.53 → 0.12.55
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-BeiqwDak.d.ts → index-Cd_heN1n.d.ts} +2 -2
- package/dist/{index-B1F632lI.d.cts → index-DZGw-VDY.d.cts} +3 -3
- package/dist/{index-D9_yFc0m.d.ts → index-GmKuSxp6.d.ts} +3 -3
- package/dist/{index-B-BExLL4.d.cts → index-mXTN0GbN.d.cts} +2 -2
- package/dist/index.cjs +18 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +18 -16
- package/dist/index.js.map +1 -1
- package/dist/{org-xybLlTXW.d.cts → org-CHVTcTcj.d.cts} +1 -1
- package/dist/{org-lRzEl8je.d.ts → org-fq2Xwg6Q.d.ts} +1 -1
- package/dist/{profile-summary-elBg0fG6.d.ts → profile-summary-BS2GPBxw.d.ts} +1 -1
- package/dist/{profile-summary-jUtrgYrA.d.cts → profile-summary-CdLI8k7M.d.cts} +1 -1
- package/dist/query/fetchers/index.d.cts +4 -4
- package/dist/query/fetchers/index.d.ts +4 -4
- package/dist/query/hooks/index.d.cts +3 -3
- package/dist/query/hooks/index.d.ts +3 -3
- package/dist/query/index.d.cts +7 -7
- package/dist/query/index.d.ts +7 -7
- package/dist/{types-CmS4Argp.d.cts → types-Vf-kTiu1.d.cts} +23 -1
- package/dist/{types-CmS4Argp.d.ts → types-Vf-kTiu1.d.ts} +23 -1
- package/package.json +1 -1
|
@@ -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-
|
|
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-fq2Xwg6Q.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-
|
|
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-Vf-kTiu1.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-
|
|
2
|
-
import { f as Profile, P as ProfileView, h as ProfilePosition, am as SkillRef } from './types-
|
|
1
|
+
import { S as SifaApiConfig, A as ApiFetchOptions, C as CreateResult, W as WriteResult } from './org-CHVTcTcj.cjs';
|
|
2
|
+
import { f as Profile, P as ProfileView, h as ProfilePosition, am as SkillRef } from './types-Vf-kTiu1.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-
|
|
4
|
+
import { S as SummarizeProfileViewOptions, P as ProfileSummary } from './profile-summary-CdLI8k7M.cjs';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Read the aggregated profile for a handle or DID.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { S as SifaApiConfig, A as ApiFetchOptions, C as CreateResult, W as WriteResult } from './org-
|
|
2
|
-
import { f as Profile, P as ProfileView, h as ProfilePosition, am as SkillRef } from './types-
|
|
1
|
+
import { S as SifaApiConfig, A as ApiFetchOptions, C as CreateResult, W as WriteResult } from './org-fq2Xwg6Q.js';
|
|
2
|
+
import { f as Profile, P as ProfileView, h as ProfilePosition, am as SkillRef } from './types-Vf-kTiu1.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-
|
|
4
|
+
import { S as SummarizeProfileViewOptions, P as ProfileSummary } from './profile-summary-BS2GPBxw.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-
|
|
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-CHVTcTcj.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-
|
|
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-Vf-kTiu1.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
|
|
package/dist/index.cjs
CHANGED
|
@@ -5452,19 +5452,16 @@ var SIFA_REPO_GROUPS = [
|
|
|
5452
5452
|
]
|
|
5453
5453
|
},
|
|
5454
5454
|
{
|
|
5455
|
-
id: "
|
|
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: "
|
|
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(
|
|
@@ -5539,12 +5536,16 @@ var LABEL_RULES = {
|
|
|
5539
5536
|
},
|
|
5540
5537
|
"id.sifa.profile.presentation": { primary: ["title", "label"] },
|
|
5541
5538
|
"id.sifa.profile.presentationDelivery": {
|
|
5542
|
-
|
|
5539
|
+
// A delivery without its own title is identified by the event it happened
|
|
5540
|
+
// at. Falling straight to the leaf gave a run of rows all reading "a time
|
|
5541
|
+
// you gave a talk", with the one distinguishing fact demoted underneath.
|
|
5542
|
+
primary: ["title", "eventName"],
|
|
5543
5543
|
secondary: ["eventName"],
|
|
5544
5544
|
date: ["date"]
|
|
5545
5545
|
},
|
|
5546
5546
|
"id.sifa.profile.honor": { primary: ["title"], secondary: ["issuer"], date: ["awardedAt"] },
|
|
5547
5547
|
"id.sifa.graph.follow": { subjectDid: ["subject"] },
|
|
5548
|
+
"id.sifa.meeting": { subjectDid: ["subject"] },
|
|
5548
5549
|
"id.sifa.graph.connection": { subjectDid: ["subject"] },
|
|
5549
5550
|
"id.sifa.confirmation": {
|
|
5550
5551
|
primary: ["subjectName"],
|
|
@@ -5575,11 +5576,12 @@ function pickString(record, fields) {
|
|
|
5575
5576
|
function describeSifaRecord(collection, value) {
|
|
5576
5577
|
const leaf = collectionLeaf(collection);
|
|
5577
5578
|
const rule = LABEL_RULES[collection];
|
|
5578
|
-
if (!rule || typeof value !== "object" || value === null)
|
|
5579
|
+
if (!rule || typeof value !== "object" || value === null) {
|
|
5580
|
+
return { primary: leaf, isFallback: true };
|
|
5581
|
+
}
|
|
5579
5582
|
const record = value;
|
|
5580
|
-
const
|
|
5581
|
-
|
|
5582
|
-
};
|
|
5583
|
+
const primary = rule.primary && pickString(record, rule.primary);
|
|
5584
|
+
const label = primary ? { primary } : { primary: leaf, isFallback: true };
|
|
5583
5585
|
const secondary = rule.secondary && pickString(record, rule.secondary);
|
|
5584
5586
|
if (secondary !== void 0 && secondary !== label.primary) label.secondary = secondary;
|
|
5585
5587
|
const date = rule.date && pickString(record, rule.date);
|
|
@@ -5590,7 +5592,7 @@ function describeSifaRecord(collection, value) {
|
|
|
5590
5592
|
}
|
|
5591
5593
|
|
|
5592
5594
|
// src/index.ts
|
|
5593
|
-
var SIFA_SDK_VERSION = "0.12.
|
|
5595
|
+
var SIFA_SDK_VERSION = "0.12.55";
|
|
5594
5596
|
|
|
5595
5597
|
exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
|
|
5596
5598
|
exports.ACTIVITY_VERBS = ACTIVITY_VERBS;
|