@singi-labs/sifa-sdk 0.19.59 → 0.19.61
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/import/presentation-csv.js +12 -1
- package/dist/import/presentation-csv.js.map +1 -1
- package/dist/{index-CT-A3BEe.d.ts → index-IeuOpcIB.d.ts} +24 -1
- package/dist/{index-BeQbepFn.d.cts → index-syVBnrbI.d.cts} +24 -1
- package/dist/index.cjs +13 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -6
- package/dist/index.d.ts +8 -6
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/jsonld/index.d.cts +1 -1
- package/dist/jsonld/index.d.ts +1 -1
- package/dist/{network-map-DHOOMSCP.d.cts → network-map-Bw_rIDtH.d.cts} +3 -3
- package/dist/{network-map-CKF7Yozc.d.ts → network-map-DUam4K3f.d.ts} +3 -3
- package/dist/{org-CelDIOiN.d.ts → org--5MN6Ev4.d.ts} +15 -3
- package/dist/{org-Bq3HbpLD.d.cts → org-B_0EMNuF.d.cts} +15 -3
- package/dist/{profile-summary-CD3-QflX.d.cts → profile-summary-CU4sWBzF.d.cts} +1 -1
- package/dist/{profile-summary-CyRzFe7f.d.ts → profile-summary-RT-roUtM.d.ts} +1 -1
- package/dist/query/fetchers/confirmations.js +16 -0
- package/dist/query/fetchers/confirmations.js.map +1 -1
- package/dist/query/fetchers/index.cjs +16 -0
- package/dist/query/fetchers/index.cjs.map +1 -1
- package/dist/query/fetchers/index.d.cts +6 -6
- package/dist/query/fetchers/index.d.ts +6 -6
- package/dist/query/fetchers/index.js +2 -0
- package/dist/query/fetchers/index.js.map +1 -1
- package/dist/query/hooks/index.cjs.map +1 -1
- package/dist/query/hooks/index.d.cts +4 -4
- package/dist/query/hooks/index.d.ts +4 -4
- package/dist/query/index.cjs +16 -0
- package/dist/query/index.cjs.map +1 -1
- package/dist/query/index.d.cts +9 -9
- package/dist/query/index.d.ts +9 -9
- package/dist/query/index.js +2 -0
- package/dist/query/index.js.map +1 -1
- package/dist/resume/index.d.cts +1 -1
- package/dist/resume/index.d.ts +1 -1
- package/dist/schemas/confirmation.js +8 -1
- package/dist/schemas/confirmation.js.map +1 -1
- package/dist/schemas/index.cjs +8 -1
- 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/types/index.js.map +1 -1
- package/dist/{types-BHnGSJ3z.d.cts → types-BV-qBo9i.d.cts} +1 -1
- package/dist/{types-BKEBVobU.d.ts → types-Jb4KKbn9.d.ts} +1 -1
- package/dist/{use-org-notification-emails-BTR2Yxq8.d.cts → use-org-notification-emails-B8e4vgs-.d.cts} +3 -3
- package/dist/{use-org-notification-emails-DDIi6giD.d.ts → use-org-notification-emails-CbQ3Kz96.d.ts} +3 -3
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { P as ProfileSkill, a as ProfilePresentationDelivery, L as LocationValue, b as PdsProviderInfo, c as Profile, A as AccountFacetMode, d as ProfilePosition, e as ProfileCertification, f as ProfileEducation, g as ProfileHonor, h as ProfileLanguage, i as ProfileProject, j as ProfilePublication, k as ProfileInvolvement, R as RelatedIdentifier } from './index-
|
|
2
|
-
export { l as ActiveApp, m as ActorCard, n as AuthorSuggestion, C as CoSpeaker, E as Endorsement, o as EndorsementData, p as ExternalAccount, q as ExternalAccountKeytraceClaim, F as FeedItem, r as LanguageProficiency, O as OrgAddressView, s as OrgFloorVerdict, t as OrgLinkView, u as OrgProfileView, v as PROJECT_ROLES, w as
|
|
3
|
-
import { S as SearchFilters } from './types-
|
|
4
|
-
export { A as ADULT_CONTENT_LABELS, a as ActiveAppView, b as ActivityLabel, c as AdultContentLabel, d as AtfundLinkView, C as CertificationView, e as CoSpeakerView, f as ContributorView, g as CourseView, D as DurationView, E as EducationView, h as ExternalAccountView, H as HonorView, I as IndustryDomain, i as InvolvementLinkView, j as InvolvementView, L as LanguageView, P as PositionView, k as PresentationDeliveryView, l as PresentationView, m as ProfileLocationView, n as ProfileView, o as ProjectMemberView, p as ProjectView, q as PublicationView, R as RepoCollectionGroup, r as RepoDeleteOutcome, s as RepoDeleteRecordResult, t as RepoDeleteResult, u as RepoGroupDefinition, v as RepoGroupId, w as RepoInventory, x as RepoRecordLabel, y as RepoRecordSummary, z as SIFA_REPO_GROUPS, B as SkillView, V as VolunteeringView, F as describeSifaRecord, G as hasAdultContent, J as repoGroupForCollection } from './types-
|
|
1
|
+
import { P as ProfileSkill, a as ProfilePresentationDelivery, L as LocationValue, b as PdsProviderInfo, c as Profile, A as AccountFacetMode, d as ProfilePosition, e as ProfileCertification, f as ProfileEducation, g as ProfileHonor, h as ProfileLanguage, i as ProfileProject, j as ProfilePublication, k as ProfileInvolvement, R as RelatedIdentifier } from './index-syVBnrbI.cjs';
|
|
2
|
+
export { l as ActiveApp, m as ActorCard, n as AuthorSuggestion, C as CoSpeaker, E as Endorsement, o as EndorsementData, p as ExternalAccount, q as ExternalAccountKeytraceClaim, F as FeedItem, r as LanguageProficiency, O as OrgAddressView, s as OrgFloorVerdict, t as OrgLinkView, u as OrgProfileView, v as PROJECT_ROLES, w as PositionConfirmations, x as PositionViewerConfirmation, y as PresentationLinkView, z as ProfileCourse, B as ProfileIndustry, D as ProfileInvestment, G as ProfileInvestmentLink, H as ProfileInvolvementLink, I as ProfileLocation, J as ProfileOverrideSource, K as ProfilePresentation, M as ProfileVolunteering, N as ProjectMemberCard, Q as ProjectRole, S as PublicationContributor, T as RecognizedEntity, U as SkillRef, V as SkillSuggestion, W as TrustStat, X as VerifiedAccount } from './index-syVBnrbI.cjs';
|
|
3
|
+
import { S as SearchFilters } from './types-BV-qBo9i.cjs';
|
|
4
|
+
export { A as ADULT_CONTENT_LABELS, a as ActiveAppView, b as ActivityLabel, c as AdultContentLabel, d as AtfundLinkView, C as CertificationView, e as CoSpeakerView, f as ContributorView, g as CourseView, D as DurationView, E as EducationView, h as ExternalAccountView, H as HonorView, I as IndustryDomain, i as InvolvementLinkView, j as InvolvementView, L as LanguageView, P as PositionView, k as PresentationDeliveryView, l as PresentationView, m as ProfileLocationView, n as ProfileView, o as ProjectMemberView, p as ProjectView, q as PublicationView, R as RepoCollectionGroup, r as RepoDeleteOutcome, s as RepoDeleteRecordResult, t as RepoDeleteResult, u as RepoGroupDefinition, v as RepoGroupId, w as RepoInventory, x as RepoRecordLabel, y as RepoRecordSummary, z as SIFA_REPO_GROUPS, B as SkillView, V as VolunteeringView, F as describeSifaRecord, G as hasAdultContent, J as repoGroupForCollection } from './types-BV-qBo9i.cjs';
|
|
5
5
|
import { A as AgentRef } from './verification-providers-7il3kPQS.cjs';
|
|
6
6
|
export { a as AccountVerification, V as VERIFICATION_PROVIDERS, b as VerificationProvider, c as VerificationProviderId, d as VerificationSource, e as agentRefSchema, f as atUriSchema, g as cidSchema, h as datetimeSchema, i as didSchema, j as externalRecordRefSchema, k as getVerificationProvider, l as isKnownVerificationProvider, m as languageTagSchema, n as maxGraphemes, p as partialDateSchema, o as primaryVerification, r as resolveVerifierProvider, s as selfLabelsSchema, q as skillRefSchema, t as strongRefSchema, u as uriSchema } from './verification-providers-7il3kPQS.cjs';
|
|
7
7
|
import { P as PresentationDuration, a as ProfilePresentationDeliveryRecord, b as ProfilePresentationRecord, O as OrgProfileRecord } from './profile-investment-BiHM7C5q.cjs';
|
|
8
8
|
export { A as ArtifactLink, c as ArtifactLinkSchema, d as AtmosphereFeedItem, e as AtmosphereFeedItemSchema, B as BlobRef, f as BlobRefSchema, E as EndorsementConfirmationRecord, g as EndorsementConfirmationRecordSchema, h as EndorsementRecord, i as EndorsementRecordSchema, F as FeedActor, j as FeedActorSchema, k as FeedCursor, l as FollowFeedItem, m as FollowFeedItemSchema, n as FollowFeedPage, o as FollowFeedPageSchema, G as GraphFollowRecord, p as GraphFollowRecordSchema, I as InvestmentAmountSchema, q as OrgEmploymentAttestationRecord, r as OrgEmploymentAttestationRecordSchema, s as OrgProfileRecordSchema, t as PROFILE_INVESTMENT_NSID, u as PROFILE_INVOLVEMENT_NSID, v as PresentationDurationSchema, w as PresentationLink, x as PresentationLinkSchema, y as ProfileCertificationRecord, z as ProfileCertificationRecordSchema, C as ProfileCourseRecord, D as ProfileCourseRecordSchema, H as ProfileEducationRecord, J as ProfileEducationRecordSchema, K as ProfileExternalAccountRecord, L as ProfileExternalAccountRecordSchema, M as ProfileHonorRecord, N as ProfileHonorRecordSchema, Q as ProfileInvestmentRecordSchema, R as ProfileInvolvementRecord, S as ProfileInvolvementRecordSchema, T as ProfileLanguageRecord, U as ProfileLanguageRecordSchema, V as ProfilePositionRecord, W as ProfilePositionRecordSchema, X as ProfilePresentationDeliveryRecordSchema, Y as ProfilePresentationRecordSchema, Z as ProfileProjectRecord, _ as ProfileProjectRecordSchema, $ as ProfilePublicationRecord, a0 as ProfilePublicationRecordSchema, a1 as ProfileSelfRecord, a2 as ProfileSelfRecordSchema, a3 as ProfileSkillRecord, a4 as ProfileSkillRecordSchema, a5 as ProfileVolunteeringRecord, a6 as ProfileVolunteeringRecordSchema, a7 as PublicationAuthor, a8 as PublicationAuthorSchema, a9 as RelatedIdentifierSchema, aa as SifaFeedItem, ab as SifaFeedItemSchema, ac as decodeFeedCursor, ad as encodeFeedCursor, ae as makeGraphFollowRecordSchema } from './profile-investment-BiHM7C5q.cjs';
|
|
9
9
|
import { z } from 'zod';
|
|
10
|
-
export { P as ProfileSummary, S as SummarizeProfileViewOptions, s as summarizeProfileView } from './profile-summary-
|
|
10
|
+
export { P as ProfileSummary, S as SummarizeProfileViewOptions, s as summarizeProfileView } from './profile-summary-CU4sWBzF.cjs';
|
|
11
11
|
import { E as EntitySearchResult } from './follow-profile-CQ3DTTak.cjs';
|
|
12
12
|
export { a as EntityImportSearchResponse, b as EntityImportSearchResponseSchema, c as EntityMintDomainResponse, d as EntityMintDomainResponseSchema, e as EntityResolveDomainRequest, f as EntityResolveDomainRequestSchema, g as EntityResolveDomainResponse, h as EntityResolveDomainResponseSchema, i as EntitySearchResponse, j as EntitySearchResponseSchema, k as EntitySearchResultSchema, l as EntitySelectRequest, m as EntitySelectRequestSchema, n as EntitySelectResponse, o as EntitySelectResponseSchema, F as FEATURE_FLAGS, p as FeatureAllowlistEntry, q as FeatureAllowlistEntrySchema, r as FeatureFlag, s as FollowProfileItem, t as FollowProfilePage, u as FollowProfilePageSchema, v as FollowProfileSchema } from './follow-profile-CQ3DTTak.cjs';
|
|
13
13
|
|
|
@@ -1354,7 +1354,9 @@ declare function meetsContrastAA(foreground: RgbColor, background: RgbColor): bo
|
|
|
1354
1354
|
type CsvRow = Record<string, string | undefined>;
|
|
1355
1355
|
/**
|
|
1356
1356
|
* Parse a free-text duration into minutes: a single value ("30 min", "30
|
|
1357
|
-
* minutes", "30") or a range ("20-30 min", "20 to 30 minutes",
|
|
1357
|
+
* minutes", "30", "3 hours") or a range ("20-30 min", "20 to 30 minutes",
|
|
1358
|
+
* "40 minutes - 4 hours"). Hours convert to minutes. A number without a unit
|
|
1359
|
+
* takes the unit of the next number ("2-3 hours" is 120 to 180), else minutes.
|
|
1358
1360
|
* Returns undefined when no usable number is present. A second number is used
|
|
1359
1361
|
* as the upper bound only when it is greater than or equal to the first.
|
|
1360
1362
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { P as ProfileSkill, a as ProfilePresentationDelivery, L as LocationValue, b as PdsProviderInfo, c as Profile, A as AccountFacetMode, d as ProfilePosition, e as ProfileCertification, f as ProfileEducation, g as ProfileHonor, h as ProfileLanguage, i as ProfileProject, j as ProfilePublication, k as ProfileInvolvement, R as RelatedIdentifier } from './index-
|
|
2
|
-
export { l as ActiveApp, m as ActorCard, n as AuthorSuggestion, C as CoSpeaker, E as Endorsement, o as EndorsementData, p as ExternalAccount, q as ExternalAccountKeytraceClaim, F as FeedItem, r as LanguageProficiency, O as OrgAddressView, s as OrgFloorVerdict, t as OrgLinkView, u as OrgProfileView, v as PROJECT_ROLES, w as
|
|
3
|
-
import { S as SearchFilters } from './types-
|
|
4
|
-
export { A as ADULT_CONTENT_LABELS, a as ActiveAppView, b as ActivityLabel, c as AdultContentLabel, d as AtfundLinkView, C as CertificationView, e as CoSpeakerView, f as ContributorView, g as CourseView, D as DurationView, E as EducationView, h as ExternalAccountView, H as HonorView, I as IndustryDomain, i as InvolvementLinkView, j as InvolvementView, L as LanguageView, P as PositionView, k as PresentationDeliveryView, l as PresentationView, m as ProfileLocationView, n as ProfileView, o as ProjectMemberView, p as ProjectView, q as PublicationView, R as RepoCollectionGroup, r as RepoDeleteOutcome, s as RepoDeleteRecordResult, t as RepoDeleteResult, u as RepoGroupDefinition, v as RepoGroupId, w as RepoInventory, x as RepoRecordLabel, y as RepoRecordSummary, z as SIFA_REPO_GROUPS, B as SkillView, V as VolunteeringView, F as describeSifaRecord, G as hasAdultContent, J as repoGroupForCollection } from './types-
|
|
1
|
+
import { P as ProfileSkill, a as ProfilePresentationDelivery, L as LocationValue, b as PdsProviderInfo, c as Profile, A as AccountFacetMode, d as ProfilePosition, e as ProfileCertification, f as ProfileEducation, g as ProfileHonor, h as ProfileLanguage, i as ProfileProject, j as ProfilePublication, k as ProfileInvolvement, R as RelatedIdentifier } from './index-IeuOpcIB.js';
|
|
2
|
+
export { l as ActiveApp, m as ActorCard, n as AuthorSuggestion, C as CoSpeaker, E as Endorsement, o as EndorsementData, p as ExternalAccount, q as ExternalAccountKeytraceClaim, F as FeedItem, r as LanguageProficiency, O as OrgAddressView, s as OrgFloorVerdict, t as OrgLinkView, u as OrgProfileView, v as PROJECT_ROLES, w as PositionConfirmations, x as PositionViewerConfirmation, y as PresentationLinkView, z as ProfileCourse, B as ProfileIndustry, D as ProfileInvestment, G as ProfileInvestmentLink, H as ProfileInvolvementLink, I as ProfileLocation, J as ProfileOverrideSource, K as ProfilePresentation, M as ProfileVolunteering, N as ProjectMemberCard, Q as ProjectRole, S as PublicationContributor, T as RecognizedEntity, U as SkillRef, V as SkillSuggestion, W as TrustStat, X as VerifiedAccount } from './index-IeuOpcIB.js';
|
|
3
|
+
import { S as SearchFilters } from './types-Jb4KKbn9.js';
|
|
4
|
+
export { A as ADULT_CONTENT_LABELS, a as ActiveAppView, b as ActivityLabel, c as AdultContentLabel, d as AtfundLinkView, C as CertificationView, e as CoSpeakerView, f as ContributorView, g as CourseView, D as DurationView, E as EducationView, h as ExternalAccountView, H as HonorView, I as IndustryDomain, i as InvolvementLinkView, j as InvolvementView, L as LanguageView, P as PositionView, k as PresentationDeliveryView, l as PresentationView, m as ProfileLocationView, n as ProfileView, o as ProjectMemberView, p as ProjectView, q as PublicationView, R as RepoCollectionGroup, r as RepoDeleteOutcome, s as RepoDeleteRecordResult, t as RepoDeleteResult, u as RepoGroupDefinition, v as RepoGroupId, w as RepoInventory, x as RepoRecordLabel, y as RepoRecordSummary, z as SIFA_REPO_GROUPS, B as SkillView, V as VolunteeringView, F as describeSifaRecord, G as hasAdultContent, J as repoGroupForCollection } from './types-Jb4KKbn9.js';
|
|
5
5
|
import { A as AgentRef } from './verification-providers-7il3kPQS.js';
|
|
6
6
|
export { a as AccountVerification, V as VERIFICATION_PROVIDERS, b as VerificationProvider, c as VerificationProviderId, d as VerificationSource, e as agentRefSchema, f as atUriSchema, g as cidSchema, h as datetimeSchema, i as didSchema, j as externalRecordRefSchema, k as getVerificationProvider, l as isKnownVerificationProvider, m as languageTagSchema, n as maxGraphemes, p as partialDateSchema, o as primaryVerification, r as resolveVerifierProvider, s as selfLabelsSchema, q as skillRefSchema, t as strongRefSchema, u as uriSchema } from './verification-providers-7il3kPQS.js';
|
|
7
7
|
import { P as PresentationDuration, a as ProfilePresentationDeliveryRecord, b as ProfilePresentationRecord, O as OrgProfileRecord } from './profile-investment-BiHM7C5q.js';
|
|
8
8
|
export { A as ArtifactLink, c as ArtifactLinkSchema, d as AtmosphereFeedItem, e as AtmosphereFeedItemSchema, B as BlobRef, f as BlobRefSchema, E as EndorsementConfirmationRecord, g as EndorsementConfirmationRecordSchema, h as EndorsementRecord, i as EndorsementRecordSchema, F as FeedActor, j as FeedActorSchema, k as FeedCursor, l as FollowFeedItem, m as FollowFeedItemSchema, n as FollowFeedPage, o as FollowFeedPageSchema, G as GraphFollowRecord, p as GraphFollowRecordSchema, I as InvestmentAmountSchema, q as OrgEmploymentAttestationRecord, r as OrgEmploymentAttestationRecordSchema, s as OrgProfileRecordSchema, t as PROFILE_INVESTMENT_NSID, u as PROFILE_INVOLVEMENT_NSID, v as PresentationDurationSchema, w as PresentationLink, x as PresentationLinkSchema, y as ProfileCertificationRecord, z as ProfileCertificationRecordSchema, C as ProfileCourseRecord, D as ProfileCourseRecordSchema, H as ProfileEducationRecord, J as ProfileEducationRecordSchema, K as ProfileExternalAccountRecord, L as ProfileExternalAccountRecordSchema, M as ProfileHonorRecord, N as ProfileHonorRecordSchema, Q as ProfileInvestmentRecordSchema, R as ProfileInvolvementRecord, S as ProfileInvolvementRecordSchema, T as ProfileLanguageRecord, U as ProfileLanguageRecordSchema, V as ProfilePositionRecord, W as ProfilePositionRecordSchema, X as ProfilePresentationDeliveryRecordSchema, Y as ProfilePresentationRecordSchema, Z as ProfileProjectRecord, _ as ProfileProjectRecordSchema, $ as ProfilePublicationRecord, a0 as ProfilePublicationRecordSchema, a1 as ProfileSelfRecord, a2 as ProfileSelfRecordSchema, a3 as ProfileSkillRecord, a4 as ProfileSkillRecordSchema, a5 as ProfileVolunteeringRecord, a6 as ProfileVolunteeringRecordSchema, a7 as PublicationAuthor, a8 as PublicationAuthorSchema, a9 as RelatedIdentifierSchema, aa as SifaFeedItem, ab as SifaFeedItemSchema, ac as decodeFeedCursor, ad as encodeFeedCursor, ae as makeGraphFollowRecordSchema } from './profile-investment-BiHM7C5q.js';
|
|
9
9
|
import { z } from 'zod';
|
|
10
|
-
export { P as ProfileSummary, S as SummarizeProfileViewOptions, s as summarizeProfileView } from './profile-summary-
|
|
10
|
+
export { P as ProfileSummary, S as SummarizeProfileViewOptions, s as summarizeProfileView } from './profile-summary-RT-roUtM.js';
|
|
11
11
|
import { E as EntitySearchResult } from './follow-profile-ceqefXAw.js';
|
|
12
12
|
export { a as EntityImportSearchResponse, b as EntityImportSearchResponseSchema, c as EntityMintDomainResponse, d as EntityMintDomainResponseSchema, e as EntityResolveDomainRequest, f as EntityResolveDomainRequestSchema, g as EntityResolveDomainResponse, h as EntityResolveDomainResponseSchema, i as EntitySearchResponse, j as EntitySearchResponseSchema, k as EntitySearchResultSchema, l as EntitySelectRequest, m as EntitySelectRequestSchema, n as EntitySelectResponse, o as EntitySelectResponseSchema, F as FEATURE_FLAGS, p as FeatureAllowlistEntry, q as FeatureAllowlistEntrySchema, r as FeatureFlag, s as FollowProfileItem, t as FollowProfilePage, u as FollowProfilePageSchema, v as FollowProfileSchema } from './follow-profile-ceqefXAw.js';
|
|
13
13
|
|
|
@@ -1354,7 +1354,9 @@ declare function meetsContrastAA(foreground: RgbColor, background: RgbColor): bo
|
|
|
1354
1354
|
type CsvRow = Record<string, string | undefined>;
|
|
1355
1355
|
/**
|
|
1356
1356
|
* Parse a free-text duration into minutes: a single value ("30 min", "30
|
|
1357
|
-
* minutes", "30") or a range ("20-30 min", "20 to 30 minutes",
|
|
1357
|
+
* minutes", "30", "3 hours") or a range ("20-30 min", "20 to 30 minutes",
|
|
1358
|
+
* "40 minutes - 4 hours"). Hours convert to minutes. A number without a unit
|
|
1359
|
+
* takes the unit of the next number ("2-3 hours" is 120 to 180), else minutes.
|
|
1358
1360
|
* Returns undefined when no usable number is present. A second number is used
|
|
1359
1361
|
* as the upper bound only when it is greater than or equal to the first.
|
|
1360
1362
|
*/
|
package/dist/index.js
CHANGED
|
@@ -353,7 +353,7 @@ import {
|
|
|
353
353
|
roadmapIssueUrl
|
|
354
354
|
} from "./roadmap/index.js";
|
|
355
355
|
import { SIFA_REPO_GROUPS, describeSifaRecord, repoGroupForCollection } from "./repo/index.js";
|
|
356
|
-
var SIFA_SDK_VERSION = "0.19.
|
|
356
|
+
var SIFA_SDK_VERSION = "0.19.61";
|
|
357
357
|
export {
|
|
358
358
|
ACTIVITY_TIERS,
|
|
359
359
|
ACTIVITY_VERBS,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["/**\n * Sifa SDK -- public client library for the Sifa AppView on AT Protocol.\n *\n * Pre-1.0: the public API is unstable and may change in any minor release.\n *\n * @see https://github.com/singi-labs/sifa-sdk\n */\n\ndeclare const __SIFA_SDK_VERSION__: string;\n\nexport const SIFA_SDK_VERSION: string = __SIFA_SDK_VERSION__;\n\nexport type {\n ActiveApp,\n Endorsement,\n EndorsementData,\n ExternalAccount,\n ExternalAccountKeytraceClaim,\n FeedItem,\n LanguageProficiency,\n LocationValue,\n OrgAddressView,\n OrgFloorVerdict,\n OrgLinkView,\n OrgProfileView,\n RecognizedEntity,\n PdsProviderInfo,\n PresentationLinkView,\n Profile,\n ProfileCertification,\n ProfileCourse,\n ProfileEducation,\n ProfileHonor,\n ProfileIndustry,\n ProfileInvestment,\n ProfileInvestmentLink,\n ProfileInvolvement,\n ProfileInvolvementLink,\n ProfileLanguage,\n ProfileLocation,\n ProfileOverrideSource,\n ProfilePosition,\n ProfilePresentation,\n CoSpeaker,\n ActorCard,\n AuthorSuggestion,\n ProjectMemberCard,\n ProjectRole,\n ProfilePresentationDelivery,\n ProfileProject,\n ProfilePublication,\n ProfileSkill,\n ProfileVolunteering,\n PublicationContributor,\n RelatedIdentifier,\n SkillRef,\n SkillSuggestion,\n TrustStat,\n VerifiedAccount,\n AccountFacetMode,\n} from './types/index.js';\n\n// Aggregated public profile view (`id.sifa.getProfileView` XRPC query).\nexport type {\n ProfileView,\n IndustryDomain,\n ProfileLocationView,\n PositionView,\n EducationView,\n SkillView,\n CertificationView,\n ProjectView,\n VolunteeringView,\n InvolvementView,\n InvolvementLinkView,\n PublicationView,\n ContributorView,\n CourseView,\n DurationView,\n CoSpeakerView,\n ProjectMemberView,\n PresentationDeliveryView,\n PresentationView,\n HonorView,\n LanguageView,\n ExternalAccountView,\n ActiveAppView,\n AtfundLinkView,\n} from './types/profile-view.js';\n\nexport { PROJECT_ROLES } from './types/index.js';\n\nexport {\n ACTIVITY_TIERS,\n APP_CATEGORIES,\n APP_CATEGORY_IDS,\n APP_CATEGORY_MAP,\n CATEGORY_LABELS,\n normalizeSkillCategory,\n CATEGORY_ORDER,\n CONTINENTS,\n COMPANY_OPTIONAL_EMPLOYMENT_TYPES,\n COUNTRIES,\n CALENDAR_EVENT_MODE_LABELS,\n CALENDAR_EVENT_STATUS_LABELS,\n PRESENTATION_LINK_TYPE_LABELS,\n PRESENTATION_LINK_TYPE_OPTIONS,\n PRESENTATION_ROLE_LABELS,\n PRESENTATION_ROLE_OPTIONS,\n PUBLICATION_TYPE_LABELS,\n PUBLICATION_TYPE_OPTIONS,\n EMPLOYMENT_TYPE_GROUPS,\n INVESTMENT_ROLE_OPTIONS,\n INVESTMENT_ROLE_LABELS,\n INVESTMENT_STAGE_OPTIONS,\n INVESTMENT_STAGE_LABELS,\n INVESTMENT_STATUS_OPTIONS,\n INVESTMENT_STATUS_LABELS,\n ON_BEHALF_OF_EMPLOYMENT_TYPES,\n EMPLOYMENT_TYPE_LABELS,\n INDUSTRY_OPTIONS,\n INDUSTRY_LABELS,\n getIndustryLabel,\n SEARCH_FILTER_DEFS,\n OPEN_TO_OPTIONS,\n OPEN_TO_TOKEN_LABELS,\n OPEN_TO_GROUP_LABELS,\n OPEN_TO_TOKENS,\n OPEN_TO_TOKEN_TO_VALUE,\n OPEN_TO_VALUE_TO_TOKEN,\n categoryForApp,\n findIndustry,\n getActivityTaxonomyVersion,\n getActivityTier,\n isRelationalActivity,\n getCalendarEventModeLabel,\n getCalendarEventStatusLabel,\n getPresentationLinkTypeLabel,\n getPresentationRoleLabel,\n getPublicationTypeLabel,\n getAppCategoryIcon,\n getEmploymentTypeLabel,\n isCompanyRequired,\n getInvestmentRoleLabel,\n getInvestmentStageLabel,\n getInvestmentStatusLabel,\n isOnBehalfOfApplicable,\n getIndustryLabelKey,\n getLexiconEntry,\n getOpenToLabelKey,\n normalizeOpenTo,\n openToTokenToValue,\n openToValueToToken,\n getTierMeta,\n getWorkplaceTypeLabel,\n normalizeWorkplaceTypes,\n isAppCategory,\n isKnownAppId,\n PLATFORM_LABELS,\n PLATFORM_OPTIONS,\n SKILL_CATEGORIES,\n WORKPLACE_TYPE_LABELS,\n WORKPLACE_TYPE_OPTIONS,\n dedupeSkills,\n getContinent,\n getFaviconUrl,\n getPlatformLabel,\n groupSkillsByCategory,\n groupSkillsBySubCategory,\n groupSkillsForDisplay,\n isKnownPlatform,\n normalizePlatformId,\n type ActivityTaxonomy,\n type ActivityTier,\n type AppCategoryId,\n type ContinentCode,\n type EmploymentTypeGroup,\n type EmploymentTypeOption,\n type InvestmentOption,\n type IndustryOption,\n type KnownAppId,\n type LexiconEntry,\n type MergedProfileSkill,\n type PresentationLinkTypeOption,\n type PresentationRoleOption,\n type PublicationTypeOption,\n INVOLVEMENT_KIND_OPTIONS,\n INVOLVEMENT_KIND_LABELS,\n INVOLVEMENT_KIND_HEADINGS,\n getInvolvementKindHeading,\n getInvolvementKindLabel,\n COURSE_ROLE_OPTIONS,\n COURSE_ROLE_LABELS,\n COURSE_ROLE_TAKEN,\n COURSE_ROLE_TAUGHT,\n COURSE_ROLE_TEACHING_ASSISTANT,\n getCourseRoleLabel,\n isTeachingCourse,\n splitCoursesByRole,\n type CourseRoleOption,\n EQF_LEVEL_LABELS,\n EQF_LEVEL_OPTIONS,\n getEducationLevelDisplay,\n getEqfLevelLabel,\n readEqfLevel,\n suggestEqfLevelFromDegree,\n type EqfLevel,\n type EqfLevelOption,\n ARTIFACT_LINK_KIND_OPTIONS,\n ARTIFACT_LINK_KIND_LABELS,\n getArtifactLinkKindLabel,\n VERIFICATION_PROVIDERS,\n getVerificationProvider,\n isKnownVerificationProvider,\n resolveVerifierProvider,\n primaryVerification,\n type AccountVerification,\n type VerificationProvider,\n type VerificationProviderId,\n type VerificationSource,\n type InvolvementKindOption,\n type ArtifactLinkKindOption,\n type OpenToGroup,\n type OpenToOption,\n type PlatformId,\n type SearchFilterControl,\n type SearchFilterDef,\n type SearchFilterOptionSource,\n type SkillCategory,\n type TierMeta,\n type WorkplaceTypeOption,\n} from './taxonomy/index.js';\n\nexport {\n certDateExtractor,\n contrastRatio,\n countryCodeToFlag,\n dateRangeExtractor,\n detectPdsProvider,\n formatCompanyName,\n formatCredentialDateRange,\n formatDateRange,\n formatPositionDateRange,\n formatDisplayUrl,\n formatDistanceToNow,\n formatIsoTitle,\n formatLocation,\n formatPresentationDuration,\n formatRelativeTime,\n formatTimelineDate,\n getDisplayLabel,\n getHandleStem,\n getPdsDisplayName,\n isValidRgbColor,\n lexiconDateExtractor,\n limitCombiningMarks,\n locationSegments,\n meetsContrastAA,\n normalizeCompanyKey,\n normalizeLegalForm,\n parseLocationString,\n parseTalkRkey,\n pdsProviderFromApi,\n relativeLuminance,\n resolveEmbed,\n youtubeVideoId,\n youtubeThumbnailUrl,\n rgbToString,\n sanitizeDisplayText,\n normalizeDoi,\n formatRelationship,\n parseEndorsementComment,\n sanitizeHandleInput,\n singleDateExtractor,\n slugifyTitle,\n buildMetaDescription,\n buildTalkSlug,\n sortByDateDesc,\n summarizePresentationDeliveries,\n truncateGraphemes,\n collapseContributors,\n type CollapseContributorsOptions,\n type CollapsedContributors,\n type EmbedResult,\n type ParsedEndorsementComment,\n type PdsProvider,\n type PresentationDeliverySummary,\n type RgbColor,\n} from './format/index.js';\n\nexport {\n parsePresentationDuration,\n durationFromMinutes,\n parseIntendedAudiences,\n stripHtmlToText,\n normalizePresentationRole,\n normalizePresentationMode,\n presentationCsvRowToRecord,\n presentationDeliveryCsvRowToRecord,\n type CsvRow,\n type ParsedPresentation,\n type ParsedDelivery,\n} from './import/index.js';\n\nexport {\n ACTIVITY_VISIBILITY_RULES,\n ADULT_CONTENT_LABELS,\n APP_URL_PATTERNS,\n COLLECTION_TO_APP,\n getAppIdForCollection,\n hasAdultContent,\n isVisibleActivityItem,\n resolveCardHealth,\n resolveCardUrl,\n type ActivityItemForUrl,\n type ActivityLabel,\n type AdultContentLabel,\n type AppUrlPatterns,\n type CardHealth,\n type CardHealthStrategy,\n} from './cards/index.js';\n\nexport {\n PUBLISHERS,\n STANDARD_PUBLISHER_ID,\n getPublisherById,\n getPublisherByHost,\n getPublisherFromSiteUrl,\n type Publisher,\n} from './publishers/index.js';\n\n// Shared activity-stream view-model: the normalized, framework-free feed both\n// sifa-web (React cards) and page.sifa.id (string-HTML renderer) consume.\nexport {\n ACTIVITY_VERBS,\n STREAM_VERBS,\n getActivityVerbsVersion,\n streamVerbSchema,\n verbForCollection,\n streamAddressSchema,\n streamAuthorSchema,\n streamCardBodySchema,\n streamCardSubjectSchema,\n streamCardVMSchema,\n streamExternalLinkSchema,\n streamGeoSchema,\n streamMediaSchema,\n streamRichSegmentSchema,\n streamSourceSchema,\n streamThemeSchema,\n isSelfAuthoredRich,\n renderAsLine,\n streamCardBodyContent,\n streamCardContent,\n streamCardSubjectText,\n toStreamCardVM,\n toStreamCardVMs,\n type ActivityItem,\n type StreamCardContent,\n type ActivityVerbMap,\n type StreamAddress,\n type StreamAuthor,\n type StreamCardBody,\n type StreamCardSubject,\n type StreamCardVM,\n type StreamExternalLink,\n type StreamGeo,\n type StreamMedia,\n type StreamMediaBase,\n type StreamMediaBlob,\n type StreamMediaResolved,\n type StreamRichSegment,\n type StreamSource,\n type StreamTheme,\n type StreamVerb,\n type ToStreamCardVMOptions,\n} from './stream/index.js';\n\nexport {\n COMPLETENESS_MAX_SCORE,\n completenessPercent,\n completenessScore,\n DIMENSIONS_MAX_SCORE,\n MIN_SKILLS,\n countFilledDimensions,\n dimensionsFromInputs,\n getFilledDimensionsMap,\n pickPrimaryPosition,\n DATE_LOOKAHEAD_MONTHS,\n isBeyondLookahead,\n isUpcomingStart,\n type DateLookaheadKind,\n pickPrimaryFlagged,\n summarizeProfileView,\n profileToDimensionInputs,\n isPseudoEmployer,\n looksLikeDomain,\n entityDisambiguationLabel,\n searchResultDisambiguation,\n entityResultKey,\n classifyEntityRef,\n isLinked,\n ENTITY_REF_ANCHORS,\n qualifiesAsOrg,\n isRegistrableDomainHandle,\n hasPersonalProfileContent,\n rendersPersonalProfile,\n rendersCompanyProfile,\n resolveAccountFacetMode,\n isCompanyPageIndexable,\n companyPageRichness,\n COMPANY_PAGE_MIN_FIRMOGRAPHIC_FIELDS,\n COMPANY_PAGE_MIN_DESCRIPTION_LENGTH,\n COMPANY_PAGE_ROSTER_MIN_MEMBERS,\n countRecentActivity,\n followingFeedFallbackApp,\n SELF_APP_ID,\n excludeSelfApp,\n actorShowsIdentity,\n type DailyActivityCount,\n type AppWithId,\n type DimensionKey,\n type DimensionMap,\n type PrimaryPositionCandidate,\n type PrimaryFlagCandidate,\n type ProfileSummary,\n type SummarizeProfileViewOptions,\n type ProfileCompletion,\n type ProfileDimensionInputs,\n type DisambiguationFields,\n type EntityRefAnchor,\n type CompanyFirmographics,\n type CompanyHqFacts,\n type PersonalFacetContent,\n resolveAgentRef,\n type AgentRefFlat,\n} from './logic/index.js';\n\n// Profile section model: which sections render, in what order, their nav\n// grouping, per-section sorts, and involvement grouping. Shared by the HTML\n// profile page, the Markdown/DOCX/print exports, and the personal-site renderer.\nexport {\n ALL_SECTIONS,\n INVOLVEMENT_HEADING_ORDER,\n SECTION_GROUPS,\n SECTION_LABELS,\n filterHidden,\n getVisibleSectionIds,\n groupInvolvementByHeading,\n groupPublicationVersions,\n type GroupPublicationVersionsOptions,\n type PublicationVersionGroup,\n type VersionablePublication,\n hoistPrimary,\n isRoleLineRedundant,\n isSectionPopulated,\n sortByActiveDateRange,\n sortCertifications,\n sortEducation,\n sortHonors,\n sortLanguages,\n sortLanguagesByProficiency,\n sortPositions,\n sortProjects,\n sortPublications,\n visibleItems,\n type InvolvementGroup,\n type SectionGroupId,\n type SectionId,\n} from './profile/index.js';\n\n// Profile \"Highlights\" block: selection + labeling of the one ongoing (or\n// most-recent) record per section. Shared by the sifa-web profile page and the\n// personal-site renderer so the two surfaces never diverge on what's featured.\nexport {\n buildProfileHighlights,\n shouldRenderHighlights,\n formatSpanDate,\n formatSingleDate,\n formatEventDate,\n type ProfileHighlightsInput,\n type ProfileHighlightSection,\n type ProfileHighlightStatus,\n type ProfileHighlightTile,\n type BuildProfileHighlightsOptions,\n} from './profile/index.js';\n\nexport {\n AtmosphereFeedItemSchema,\n BlobRefSchema,\n EndorsementConfirmationRecordSchema,\n EndorsementRecordSchema,\n OrgProfileRecordSchema,\n OrgEmploymentAttestationRecordSchema,\n EntitySearchResultSchema,\n EntitySearchResponseSchema,\n EntitySelectRequestSchema,\n EntitySelectResponseSchema,\n EntityImportSearchResponseSchema,\n EntityResolveDomainRequestSchema,\n EntityResolveDomainResponseSchema,\n EntityMintDomainResponseSchema,\n FEATURE_FLAGS,\n FeatureAllowlistEntrySchema,\n FeedActorSchema,\n FollowFeedItemSchema,\n FollowFeedPageSchema,\n FollowProfilePageSchema,\n FollowProfileSchema,\n GraphFollowRecordSchema,\n PresentationDurationSchema,\n PresentationLinkSchema,\n ProfileCertificationRecordSchema,\n ProfileCourseRecordSchema,\n ProfileEducationRecordSchema,\n ProfileExternalAccountRecordSchema,\n ProfileHonorRecordSchema,\n ProfileInvestmentRecordSchema,\n InvestmentAmountSchema,\n PROFILE_INVESTMENT_NSID,\n ProfileInvolvementRecordSchema,\n ArtifactLinkSchema,\n PROFILE_INVOLVEMENT_NSID,\n ProfileLanguageRecordSchema,\n ProfilePositionRecordSchema,\n ProfilePresentationDeliveryRecordSchema,\n ProfilePresentationRecordSchema,\n ProfileProjectRecordSchema,\n ProfilePublicationRecordSchema,\n RelatedIdentifierSchema,\n ProfileSelfRecordSchema,\n ProfileSkillRecordSchema,\n ProfileVolunteeringRecordSchema,\n PublicationAuthorSchema,\n SifaFeedItemSchema,\n atUriSchema,\n cidSchema,\n datetimeSchema,\n decodeFeedCursor,\n didSchema,\n encodeFeedCursor,\n externalRecordRefSchema,\n languageTagSchema,\n makeGraphFollowRecordSchema,\n maxGraphemes,\n partialDateSchema,\n selfLabelsSchema,\n skillRefSchema,\n strongRefSchema,\n uriSchema,\n type AtmosphereFeedItem,\n type BlobRef,\n type EndorsementConfirmationRecord,\n type EndorsementRecord,\n type OrgProfileRecord,\n type OrgEmploymentAttestationRecord,\n type EntitySearchResult,\n type EntitySearchResponse,\n type EntitySelectRequest,\n type EntitySelectResponse,\n type EntityImportSearchResponse,\n type EntityResolveDomainRequest,\n type EntityResolveDomainResponse,\n type EntityMintDomainResponse,\n type FeatureAllowlistEntry,\n type FeatureFlag,\n type FeedActor,\n type FeedCursor,\n type FollowFeedItem,\n type FollowFeedPage,\n type FollowProfileItem,\n type FollowProfilePage,\n type GraphFollowRecord,\n type SifaFeedItem,\n type ProfileCertificationRecord,\n type ProfileCourseRecord,\n type ProfileEducationRecord,\n type ProfileExternalAccountRecord,\n type ProfileHonorRecord,\n type ProfileInvolvementRecord,\n type ArtifactLink,\n type ProfileLanguageRecord,\n type PresentationDuration,\n type PresentationLink,\n type ProfilePositionRecord,\n type ProfilePresentationDeliveryRecord,\n type ProfilePresentationRecord,\n type ProfileProjectRecord,\n type ProfilePublicationRecord,\n type ProfileSelfRecord,\n type ProfileSkillRecord,\n type ProfileVolunteeringRecord,\n type PublicationAuthor,\n agentRefSchema,\n type AgentRef,\n} from './schemas/index.js';\n\nexport {\n ROADMAP_ITEM_META,\n ROADMAP_ISSUES_REPO,\n roadmapIssueUrl,\n type RoadmapItemMeta,\n} from './roadmap/index.js';\n\nexport type {\n LocationSegment,\n LocationSegmentKind,\n LocationSegmentsOptions,\n} from './format/index.js';\n\nexport type { DisplayUrl, FormatDisplayUrlOptions, UrlPathPolicy } from './format/index.js';\n\nexport { SIFA_REPO_GROUPS, describeSifaRecord, repoGroupForCollection } from './repo/index.js';\nexport type {\n RepoCollectionGroup,\n RepoDeleteOutcome,\n RepoDeleteRecordResult,\n RepoDeleteResult,\n RepoGroupDefinition,\n RepoGroupId,\n RepoInventory,\n RepoRecordLabel,\n RepoRecordSummary,\n} from './repo/index.js';\n"],"mappings":";AA0FA,SAAS,qBAAqB;AAE9B;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAeA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAEA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAGA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAgBK;AAEP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAQK;AAEP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAIK;AAEP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAOK;AAEP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AAIP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAoBK;AAEP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAEA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAgBA;AAAA,OAEK;AAKP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAIA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAIK;AAKP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAMK;AAEP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EA4CA;AAAA,OAEK;AAEP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AAUP,SAAS,kBAAkB,oBAAoB,8BAA8B;AA1lBtE,IAAM,mBAA2B;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["/**\n * Sifa SDK -- public client library for the Sifa AppView on AT Protocol.\n *\n * Pre-1.0: the public API is unstable and may change in any minor release.\n *\n * @see https://github.com/singi-labs/sifa-sdk\n */\n\ndeclare const __SIFA_SDK_VERSION__: string;\n\nexport const SIFA_SDK_VERSION: string = __SIFA_SDK_VERSION__;\n\nexport type {\n ActiveApp,\n Endorsement,\n EndorsementData,\n ExternalAccount,\n ExternalAccountKeytraceClaim,\n FeedItem,\n LanguageProficiency,\n LocationValue,\n OrgAddressView,\n OrgFloorVerdict,\n OrgLinkView,\n OrgProfileView,\n RecognizedEntity,\n PdsProviderInfo,\n PresentationLinkView,\n Profile,\n ProfileCertification,\n ProfileCourse,\n ProfileEducation,\n ProfileHonor,\n ProfileIndustry,\n ProfileInvestment,\n ProfileInvestmentLink,\n ProfileInvolvement,\n ProfileInvolvementLink,\n ProfileLanguage,\n ProfileLocation,\n ProfileOverrideSource,\n ProfilePosition,\n PositionConfirmations,\n PositionViewerConfirmation,\n ProfilePresentation,\n CoSpeaker,\n ActorCard,\n AuthorSuggestion,\n ProjectMemberCard,\n ProjectRole,\n ProfilePresentationDelivery,\n ProfileProject,\n ProfilePublication,\n ProfileSkill,\n ProfileVolunteering,\n PublicationContributor,\n RelatedIdentifier,\n SkillRef,\n SkillSuggestion,\n TrustStat,\n VerifiedAccount,\n AccountFacetMode,\n} from './types/index.js';\n\n// Aggregated public profile view (`id.sifa.getProfileView` XRPC query).\nexport type {\n ProfileView,\n IndustryDomain,\n ProfileLocationView,\n PositionView,\n EducationView,\n SkillView,\n CertificationView,\n ProjectView,\n VolunteeringView,\n InvolvementView,\n InvolvementLinkView,\n PublicationView,\n ContributorView,\n CourseView,\n DurationView,\n CoSpeakerView,\n ProjectMemberView,\n PresentationDeliveryView,\n PresentationView,\n HonorView,\n LanguageView,\n ExternalAccountView,\n ActiveAppView,\n AtfundLinkView,\n} from './types/profile-view.js';\n\nexport { PROJECT_ROLES } from './types/index.js';\n\nexport {\n ACTIVITY_TIERS,\n APP_CATEGORIES,\n APP_CATEGORY_IDS,\n APP_CATEGORY_MAP,\n CATEGORY_LABELS,\n normalizeSkillCategory,\n CATEGORY_ORDER,\n CONTINENTS,\n COMPANY_OPTIONAL_EMPLOYMENT_TYPES,\n COUNTRIES,\n CALENDAR_EVENT_MODE_LABELS,\n CALENDAR_EVENT_STATUS_LABELS,\n PRESENTATION_LINK_TYPE_LABELS,\n PRESENTATION_LINK_TYPE_OPTIONS,\n PRESENTATION_ROLE_LABELS,\n PRESENTATION_ROLE_OPTIONS,\n PUBLICATION_TYPE_LABELS,\n PUBLICATION_TYPE_OPTIONS,\n EMPLOYMENT_TYPE_GROUPS,\n INVESTMENT_ROLE_OPTIONS,\n INVESTMENT_ROLE_LABELS,\n INVESTMENT_STAGE_OPTIONS,\n INVESTMENT_STAGE_LABELS,\n INVESTMENT_STATUS_OPTIONS,\n INVESTMENT_STATUS_LABELS,\n ON_BEHALF_OF_EMPLOYMENT_TYPES,\n EMPLOYMENT_TYPE_LABELS,\n INDUSTRY_OPTIONS,\n INDUSTRY_LABELS,\n getIndustryLabel,\n SEARCH_FILTER_DEFS,\n OPEN_TO_OPTIONS,\n OPEN_TO_TOKEN_LABELS,\n OPEN_TO_GROUP_LABELS,\n OPEN_TO_TOKENS,\n OPEN_TO_TOKEN_TO_VALUE,\n OPEN_TO_VALUE_TO_TOKEN,\n categoryForApp,\n findIndustry,\n getActivityTaxonomyVersion,\n getActivityTier,\n isRelationalActivity,\n getCalendarEventModeLabel,\n getCalendarEventStatusLabel,\n getPresentationLinkTypeLabel,\n getPresentationRoleLabel,\n getPublicationTypeLabel,\n getAppCategoryIcon,\n getEmploymentTypeLabel,\n isCompanyRequired,\n getInvestmentRoleLabel,\n getInvestmentStageLabel,\n getInvestmentStatusLabel,\n isOnBehalfOfApplicable,\n getIndustryLabelKey,\n getLexiconEntry,\n getOpenToLabelKey,\n normalizeOpenTo,\n openToTokenToValue,\n openToValueToToken,\n getTierMeta,\n getWorkplaceTypeLabel,\n normalizeWorkplaceTypes,\n isAppCategory,\n isKnownAppId,\n PLATFORM_LABELS,\n PLATFORM_OPTIONS,\n SKILL_CATEGORIES,\n WORKPLACE_TYPE_LABELS,\n WORKPLACE_TYPE_OPTIONS,\n dedupeSkills,\n getContinent,\n getFaviconUrl,\n getPlatformLabel,\n groupSkillsByCategory,\n groupSkillsBySubCategory,\n groupSkillsForDisplay,\n isKnownPlatform,\n normalizePlatformId,\n type ActivityTaxonomy,\n type ActivityTier,\n type AppCategoryId,\n type ContinentCode,\n type EmploymentTypeGroup,\n type EmploymentTypeOption,\n type InvestmentOption,\n type IndustryOption,\n type KnownAppId,\n type LexiconEntry,\n type MergedProfileSkill,\n type PresentationLinkTypeOption,\n type PresentationRoleOption,\n type PublicationTypeOption,\n INVOLVEMENT_KIND_OPTIONS,\n INVOLVEMENT_KIND_LABELS,\n INVOLVEMENT_KIND_HEADINGS,\n getInvolvementKindHeading,\n getInvolvementKindLabel,\n COURSE_ROLE_OPTIONS,\n COURSE_ROLE_LABELS,\n COURSE_ROLE_TAKEN,\n COURSE_ROLE_TAUGHT,\n COURSE_ROLE_TEACHING_ASSISTANT,\n getCourseRoleLabel,\n isTeachingCourse,\n splitCoursesByRole,\n type CourseRoleOption,\n EQF_LEVEL_LABELS,\n EQF_LEVEL_OPTIONS,\n getEducationLevelDisplay,\n getEqfLevelLabel,\n readEqfLevel,\n suggestEqfLevelFromDegree,\n type EqfLevel,\n type EqfLevelOption,\n ARTIFACT_LINK_KIND_OPTIONS,\n ARTIFACT_LINK_KIND_LABELS,\n getArtifactLinkKindLabel,\n VERIFICATION_PROVIDERS,\n getVerificationProvider,\n isKnownVerificationProvider,\n resolveVerifierProvider,\n primaryVerification,\n type AccountVerification,\n type VerificationProvider,\n type VerificationProviderId,\n type VerificationSource,\n type InvolvementKindOption,\n type ArtifactLinkKindOption,\n type OpenToGroup,\n type OpenToOption,\n type PlatformId,\n type SearchFilterControl,\n type SearchFilterDef,\n type SearchFilterOptionSource,\n type SkillCategory,\n type TierMeta,\n type WorkplaceTypeOption,\n} from './taxonomy/index.js';\n\nexport {\n certDateExtractor,\n contrastRatio,\n countryCodeToFlag,\n dateRangeExtractor,\n detectPdsProvider,\n formatCompanyName,\n formatCredentialDateRange,\n formatDateRange,\n formatPositionDateRange,\n formatDisplayUrl,\n formatDistanceToNow,\n formatIsoTitle,\n formatLocation,\n formatPresentationDuration,\n formatRelativeTime,\n formatTimelineDate,\n getDisplayLabel,\n getHandleStem,\n getPdsDisplayName,\n isValidRgbColor,\n lexiconDateExtractor,\n limitCombiningMarks,\n locationSegments,\n meetsContrastAA,\n normalizeCompanyKey,\n normalizeLegalForm,\n parseLocationString,\n parseTalkRkey,\n pdsProviderFromApi,\n relativeLuminance,\n resolveEmbed,\n youtubeVideoId,\n youtubeThumbnailUrl,\n rgbToString,\n sanitizeDisplayText,\n normalizeDoi,\n formatRelationship,\n parseEndorsementComment,\n sanitizeHandleInput,\n singleDateExtractor,\n slugifyTitle,\n buildMetaDescription,\n buildTalkSlug,\n sortByDateDesc,\n summarizePresentationDeliveries,\n truncateGraphemes,\n collapseContributors,\n type CollapseContributorsOptions,\n type CollapsedContributors,\n type EmbedResult,\n type ParsedEndorsementComment,\n type PdsProvider,\n type PresentationDeliverySummary,\n type RgbColor,\n} from './format/index.js';\n\nexport {\n parsePresentationDuration,\n durationFromMinutes,\n parseIntendedAudiences,\n stripHtmlToText,\n normalizePresentationRole,\n normalizePresentationMode,\n presentationCsvRowToRecord,\n presentationDeliveryCsvRowToRecord,\n type CsvRow,\n type ParsedPresentation,\n type ParsedDelivery,\n} from './import/index.js';\n\nexport {\n ACTIVITY_VISIBILITY_RULES,\n ADULT_CONTENT_LABELS,\n APP_URL_PATTERNS,\n COLLECTION_TO_APP,\n getAppIdForCollection,\n hasAdultContent,\n isVisibleActivityItem,\n resolveCardHealth,\n resolveCardUrl,\n type ActivityItemForUrl,\n type ActivityLabel,\n type AdultContentLabel,\n type AppUrlPatterns,\n type CardHealth,\n type CardHealthStrategy,\n} from './cards/index.js';\n\nexport {\n PUBLISHERS,\n STANDARD_PUBLISHER_ID,\n getPublisherById,\n getPublisherByHost,\n getPublisherFromSiteUrl,\n type Publisher,\n} from './publishers/index.js';\n\n// Shared activity-stream view-model: the normalized, framework-free feed both\n// sifa-web (React cards) and page.sifa.id (string-HTML renderer) consume.\nexport {\n ACTIVITY_VERBS,\n STREAM_VERBS,\n getActivityVerbsVersion,\n streamVerbSchema,\n verbForCollection,\n streamAddressSchema,\n streamAuthorSchema,\n streamCardBodySchema,\n streamCardSubjectSchema,\n streamCardVMSchema,\n streamExternalLinkSchema,\n streamGeoSchema,\n streamMediaSchema,\n streamRichSegmentSchema,\n streamSourceSchema,\n streamThemeSchema,\n isSelfAuthoredRich,\n renderAsLine,\n streamCardBodyContent,\n streamCardContent,\n streamCardSubjectText,\n toStreamCardVM,\n toStreamCardVMs,\n type ActivityItem,\n type StreamCardContent,\n type ActivityVerbMap,\n type StreamAddress,\n type StreamAuthor,\n type StreamCardBody,\n type StreamCardSubject,\n type StreamCardVM,\n type StreamExternalLink,\n type StreamGeo,\n type StreamMedia,\n type StreamMediaBase,\n type StreamMediaBlob,\n type StreamMediaResolved,\n type StreamRichSegment,\n type StreamSource,\n type StreamTheme,\n type StreamVerb,\n type ToStreamCardVMOptions,\n} from './stream/index.js';\n\nexport {\n COMPLETENESS_MAX_SCORE,\n completenessPercent,\n completenessScore,\n DIMENSIONS_MAX_SCORE,\n MIN_SKILLS,\n countFilledDimensions,\n dimensionsFromInputs,\n getFilledDimensionsMap,\n pickPrimaryPosition,\n DATE_LOOKAHEAD_MONTHS,\n isBeyondLookahead,\n isUpcomingStart,\n type DateLookaheadKind,\n pickPrimaryFlagged,\n summarizeProfileView,\n profileToDimensionInputs,\n isPseudoEmployer,\n looksLikeDomain,\n entityDisambiguationLabel,\n searchResultDisambiguation,\n entityResultKey,\n classifyEntityRef,\n isLinked,\n ENTITY_REF_ANCHORS,\n qualifiesAsOrg,\n isRegistrableDomainHandle,\n hasPersonalProfileContent,\n rendersPersonalProfile,\n rendersCompanyProfile,\n resolveAccountFacetMode,\n isCompanyPageIndexable,\n companyPageRichness,\n COMPANY_PAGE_MIN_FIRMOGRAPHIC_FIELDS,\n COMPANY_PAGE_MIN_DESCRIPTION_LENGTH,\n COMPANY_PAGE_ROSTER_MIN_MEMBERS,\n countRecentActivity,\n followingFeedFallbackApp,\n SELF_APP_ID,\n excludeSelfApp,\n actorShowsIdentity,\n type DailyActivityCount,\n type AppWithId,\n type DimensionKey,\n type DimensionMap,\n type PrimaryPositionCandidate,\n type PrimaryFlagCandidate,\n type ProfileSummary,\n type SummarizeProfileViewOptions,\n type ProfileCompletion,\n type ProfileDimensionInputs,\n type DisambiguationFields,\n type EntityRefAnchor,\n type CompanyFirmographics,\n type CompanyHqFacts,\n type PersonalFacetContent,\n resolveAgentRef,\n type AgentRefFlat,\n} from './logic/index.js';\n\n// Profile section model: which sections render, in what order, their nav\n// grouping, per-section sorts, and involvement grouping. Shared by the HTML\n// profile page, the Markdown/DOCX/print exports, and the personal-site renderer.\nexport {\n ALL_SECTIONS,\n INVOLVEMENT_HEADING_ORDER,\n SECTION_GROUPS,\n SECTION_LABELS,\n filterHidden,\n getVisibleSectionIds,\n groupInvolvementByHeading,\n groupPublicationVersions,\n type GroupPublicationVersionsOptions,\n type PublicationVersionGroup,\n type VersionablePublication,\n hoistPrimary,\n isRoleLineRedundant,\n isSectionPopulated,\n sortByActiveDateRange,\n sortCertifications,\n sortEducation,\n sortHonors,\n sortLanguages,\n sortLanguagesByProficiency,\n sortPositions,\n sortProjects,\n sortPublications,\n visibleItems,\n type InvolvementGroup,\n type SectionGroupId,\n type SectionId,\n} from './profile/index.js';\n\n// Profile \"Highlights\" block: selection + labeling of the one ongoing (or\n// most-recent) record per section. Shared by the sifa-web profile page and the\n// personal-site renderer so the two surfaces never diverge on what's featured.\nexport {\n buildProfileHighlights,\n shouldRenderHighlights,\n formatSpanDate,\n formatSingleDate,\n formatEventDate,\n type ProfileHighlightsInput,\n type ProfileHighlightSection,\n type ProfileHighlightStatus,\n type ProfileHighlightTile,\n type BuildProfileHighlightsOptions,\n} from './profile/index.js';\n\nexport {\n AtmosphereFeedItemSchema,\n BlobRefSchema,\n EndorsementConfirmationRecordSchema,\n EndorsementRecordSchema,\n OrgProfileRecordSchema,\n OrgEmploymentAttestationRecordSchema,\n EntitySearchResultSchema,\n EntitySearchResponseSchema,\n EntitySelectRequestSchema,\n EntitySelectResponseSchema,\n EntityImportSearchResponseSchema,\n EntityResolveDomainRequestSchema,\n EntityResolveDomainResponseSchema,\n EntityMintDomainResponseSchema,\n FEATURE_FLAGS,\n FeatureAllowlistEntrySchema,\n FeedActorSchema,\n FollowFeedItemSchema,\n FollowFeedPageSchema,\n FollowProfilePageSchema,\n FollowProfileSchema,\n GraphFollowRecordSchema,\n PresentationDurationSchema,\n PresentationLinkSchema,\n ProfileCertificationRecordSchema,\n ProfileCourseRecordSchema,\n ProfileEducationRecordSchema,\n ProfileExternalAccountRecordSchema,\n ProfileHonorRecordSchema,\n ProfileInvestmentRecordSchema,\n InvestmentAmountSchema,\n PROFILE_INVESTMENT_NSID,\n ProfileInvolvementRecordSchema,\n ArtifactLinkSchema,\n PROFILE_INVOLVEMENT_NSID,\n ProfileLanguageRecordSchema,\n ProfilePositionRecordSchema,\n ProfilePresentationDeliveryRecordSchema,\n ProfilePresentationRecordSchema,\n ProfileProjectRecordSchema,\n ProfilePublicationRecordSchema,\n RelatedIdentifierSchema,\n ProfileSelfRecordSchema,\n ProfileSkillRecordSchema,\n ProfileVolunteeringRecordSchema,\n PublicationAuthorSchema,\n SifaFeedItemSchema,\n atUriSchema,\n cidSchema,\n datetimeSchema,\n decodeFeedCursor,\n didSchema,\n encodeFeedCursor,\n externalRecordRefSchema,\n languageTagSchema,\n makeGraphFollowRecordSchema,\n maxGraphemes,\n partialDateSchema,\n selfLabelsSchema,\n skillRefSchema,\n strongRefSchema,\n uriSchema,\n type AtmosphereFeedItem,\n type BlobRef,\n type EndorsementConfirmationRecord,\n type EndorsementRecord,\n type OrgProfileRecord,\n type OrgEmploymentAttestationRecord,\n type EntitySearchResult,\n type EntitySearchResponse,\n type EntitySelectRequest,\n type EntitySelectResponse,\n type EntityImportSearchResponse,\n type EntityResolveDomainRequest,\n type EntityResolveDomainResponse,\n type EntityMintDomainResponse,\n type FeatureAllowlistEntry,\n type FeatureFlag,\n type FeedActor,\n type FeedCursor,\n type FollowFeedItem,\n type FollowFeedPage,\n type FollowProfileItem,\n type FollowProfilePage,\n type GraphFollowRecord,\n type SifaFeedItem,\n type ProfileCertificationRecord,\n type ProfileCourseRecord,\n type ProfileEducationRecord,\n type ProfileExternalAccountRecord,\n type ProfileHonorRecord,\n type ProfileInvolvementRecord,\n type ArtifactLink,\n type ProfileLanguageRecord,\n type PresentationDuration,\n type PresentationLink,\n type ProfilePositionRecord,\n type ProfilePresentationDeliveryRecord,\n type ProfilePresentationRecord,\n type ProfileProjectRecord,\n type ProfilePublicationRecord,\n type ProfileSelfRecord,\n type ProfileSkillRecord,\n type ProfileVolunteeringRecord,\n type PublicationAuthor,\n agentRefSchema,\n type AgentRef,\n} from './schemas/index.js';\n\nexport {\n ROADMAP_ITEM_META,\n ROADMAP_ISSUES_REPO,\n roadmapIssueUrl,\n type RoadmapItemMeta,\n} from './roadmap/index.js';\n\nexport type {\n LocationSegment,\n LocationSegmentKind,\n LocationSegmentsOptions,\n} from './format/index.js';\n\nexport type { DisplayUrl, FormatDisplayUrlOptions, UrlPathPolicy } from './format/index.js';\n\nexport { SIFA_REPO_GROUPS, describeSifaRecord, repoGroupForCollection } from './repo/index.js';\nexport type {\n RepoCollectionGroup,\n RepoDeleteOutcome,\n RepoDeleteRecordResult,\n RepoDeleteResult,\n RepoGroupDefinition,\n RepoGroupId,\n RepoInventory,\n RepoRecordLabel,\n RepoRecordSummary,\n} from './repo/index.js';\n"],"mappings":";AA4FA,SAAS,qBAAqB;AAE9B;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAeA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAEA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAGA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAgBK;AAEP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAQK;AAEP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAIK;AAEP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAOK;AAEP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AAIP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAoBK;AAEP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAEA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAgBA;AAAA,OAEK;AAKP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAIA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAIK;AAKP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAMK;AAEP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EA4CA;AAAA,OAEK;AAEP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AAUP,SAAS,kBAAkB,oBAAoB,8BAA8B;AA5lBtE,IAAM,mBAA2B;","names":[]}
|
package/dist/jsonld/index.d.cts
CHANGED
package/dist/jsonld/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as Profile, d as ProfilePosition,
|
|
2
|
-
import { K as SifaApiConfig, M as ApiFetchOptions, n as ProfileView, N as CreateResult, W as WriteResult } from './types-
|
|
3
|
-
import { S as SummarizeProfileViewOptions, P as ProfileSummary } from './profile-summary-
|
|
1
|
+
import { c as Profile, d as ProfilePosition, U as SkillRef, y as PresentationLinkView } from './index-syVBnrbI.cjs';
|
|
2
|
+
import { K as SifaApiConfig, M as ApiFetchOptions, n as ProfileView, N as CreateResult, W as WriteResult } from './types-BV-qBo9i.cjs';
|
|
3
|
+
import { S as SummarizeProfileViewOptions, P as ProfileSummary } from './profile-summary-CU4sWBzF.cjs';
|
|
4
4
|
import { i as EntitySearchResponse, E as EntitySearchResult, c as EntityMintDomainResponse, g as EntityResolveDomainResponse, l as EntitySelectRequest, n as EntitySelectResponse } from './follow-profile-CQ3DTTak.cjs';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as Profile, d as ProfilePosition,
|
|
2
|
-
import { K as SifaApiConfig, M as ApiFetchOptions, n as ProfileView, N as CreateResult, W as WriteResult } from './types-
|
|
3
|
-
import { S as SummarizeProfileViewOptions, P as ProfileSummary } from './profile-summary-
|
|
1
|
+
import { c as Profile, d as ProfilePosition, U as SkillRef, y as PresentationLinkView } from './index-IeuOpcIB.js';
|
|
2
|
+
import { K as SifaApiConfig, M as ApiFetchOptions, n as ProfileView, N as CreateResult, W as WriteResult } from './types-Jb4KKbn9.js';
|
|
3
|
+
import { S as SummarizeProfileViewOptions, P as ProfileSummary } from './profile-summary-RT-roUtM.js';
|
|
4
4
|
import { i as EntitySearchResponse, E as EntitySearchResult, c as EntityMintDomainResponse, g as EntityResolveDomainResponse, l as EntitySelectRequest, n as EntitySelectResponse } from './follow-profile-ceqefXAw.js';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { W as WriteResult, K as SifaApiConfig, M as ApiFetchOptions, N as CreateResult, b as ActivityLabel, t as RepoDeleteResult, w as RepoInventory } from './types-
|
|
2
|
-
import { p as ExternalAccount } from './index-
|
|
1
|
+
import { W as WriteResult, K as SifaApiConfig, M as ApiFetchOptions, N as CreateResult, b as ActivityLabel, t as RepoDeleteResult, w as RepoInventory } from './types-Jb4KKbn9.js';
|
|
2
|
+
import { p as ExternalAccount, x as PositionViewerConfirmation } from './index-IeuOpcIB.js';
|
|
3
3
|
import { a as AccountVerification } from './verification-providers-7il3kPQS.js';
|
|
4
4
|
import { s as FollowProfileItem, p as FeatureAllowlistEntry, r as FeatureFlag } from './follow-profile-ceqefXAw.js';
|
|
5
5
|
import { z } from 'zod';
|
|
@@ -373,6 +373,18 @@ declare function fetchPendingConfirmations(config: SifaApiConfig, options?: Fetc
|
|
|
373
373
|
declare function fetchGivenConfirmations(config: SifaApiConfig, options?: FetchConfirmationsOptions): Promise<{
|
|
374
374
|
confirmations: GivenConfirmation[];
|
|
375
375
|
}>;
|
|
376
|
+
/**
|
|
377
|
+
* What the signed-in viewer can do with each of someone's positions, keyed by
|
|
378
|
+
* position rkey: `available` (they have a reason to know it and can confirm)
|
|
379
|
+
* or `confirmed` (they already did and can withdraw). Positions with neither
|
|
380
|
+
* are absent.
|
|
381
|
+
*
|
|
382
|
+
* The viewer-scoped half of `ProfilePosition.viewerConfirmation`, for a caller
|
|
383
|
+
* that fetches the profile itself viewer-neutral (for example to share a
|
|
384
|
+
* cache). Returns an empty map on failure, so the confirm action degrades to
|
|
385
|
+
* not being offered.
|
|
386
|
+
*/
|
|
387
|
+
declare function fetchViewerPositionConfirmations(config: SifaApiConfig, ownerDid: string, options?: FetchConfirmationsOptions): Promise<Record<string, PositionViewerConfirmation>>;
|
|
376
388
|
/**
|
|
377
389
|
* Affirm that a record naming you is accurate, writing an `id.sifa.confirmation`
|
|
378
390
|
* to your own PDS. Until this exists the claim renders as a bare handle with no
|
|
@@ -1774,4 +1786,4 @@ declare function addOrgNotificationEmail(config: SifaApiConfig, body: OrgNotific
|
|
|
1774
1786
|
*/
|
|
1775
1787
|
declare function removeOrgNotificationEmail(config: SifaApiConfig, body: OrgNotificationEmailRequestInput, options?: Omit<ApiFetchOptions, 'method' | 'body'>): Promise<WriteResult<Partial<OrgNotificationEmailRemoveResult>>>;
|
|
1776
1788
|
|
|
1777
|
-
export { HIDDEN_ITEM_TYPES as $, type AccountCheckResult as A, type BulkHideProfileItemInput as B, type ConfirmEndorsementInput as C, type DeleteAccountResult as D, type EndorsementInput as E, type FeatureAllowlistResponse as F, type FetchInboxCountsOptions as G, type FetchMyGithubPullRequestsOptions as H, type FetchMyRoadmapVotesOptions as I, type FetchProfileCompletenessOptions as J, type FetchReactionStatusOptions as K, type FetchSuggestionsOptions as L, type FetchUnlinkedPositionsOptions as M, type FollowListPage as N, type FollowProfile as O, type FollowProfilePageResponse as P, type FollowUserResult as Q, type FollowingFeedApp as R, type FollowingFeedBuild as S, type FollowingFeedEmptyReason as T, type FollowingFeedResponse as U, type FollowingFeedVersion as V, type FollowingResponse as W, type GetAdminReviewQueuesOptions as X, type GithubPullRequest as Y, type GivenConfirmation as Z, HIDDEN_ITEM_SOURCES as _, type ConfirmEndorsementResult as a, addOrgNotificationEmail as a$, type HeatmapDay as a0, type HeatmapResponse as a1, type HiddenActivityItem as a2, type HiddenApp as a3, type HiddenItemSource as a4, type HiddenItemType as a5, type HideActivityItemInput as a6, type HideProfileItemInput as a7, type InboxCounts as a8, type ListFeatureAllowlistOptions as a9, type ReactionResult as aA, type ReactionStatus as aB, type RefreshOrcidPublicationsResult as aC, type RefreshPdsResult as aD, type RepoDeleteInput as aE, type ResetProfileResult as aF, type ResolveQuotedPostsOptions as aG, type RoadmapVoteError as aH, type RoadmapVoteResult as aI, type RoadmapVoter as aJ, type RoadmapVotesResponse as aK, type SifaQueryKey as aL, type SimilarProfile as aM, type StatsResponse as aN, type SubCategoryBulkResult as aO, type SuggestionProfile as aP, type SuggestionsResponse as aQ, type UnhideActivityItemInput as aR, type UnlinkedPosition as aS, type UnlinkedPositionsResult as aT, type UpdateProfileOverrideInput as aU, type UpdateProfileSelfInput as aV, type UploadAvatarResult as aW, type UploadPronunciationAudioResult as aX, type VerifyExternalAccountResult as aY, type WipePreview as aZ, addFeatureAllowlist as a_, type MyGithubPullRequestsResponse as aa, type OrgClaimBinding as ab, type OrgClaimResult as ac, type OrgDomainChallengeResult as ad, type OrgDomainVerifyResult as ae, type OrgNotificationEmailAddResult as af, type OrgNotificationEmailRemoveResult as ag, type OrgProfileEcho as ah, type OrgProfileUpdateResult as ai, PROFILE_COMPLETENESS_SIGNALS as aj, type PdsWipeOutcome as ak, type PendingConfirmation as al, type PendingConfirmationsPage as am, type PrimarySection as an, type ProfileCompleteness as ao, type ProfileCompletenessSignal as ap, type ProfileIndustryInput as aq, type ProfileLocationAddress as ar, type ProfileLocationInput as as, type ProfileSelfLocation as at, QUOTED_POSTS_BATCH_MAX as au, type QuotedPostAuthor as av, type QuotedPostImage as aw, type QuotedPostResult as ax, type QuotedPostView as ay, type ReactionError as az, type AccountSummary as b,
|
|
1789
|
+
export { HIDDEN_ITEM_TYPES as $, type AccountCheckResult as A, type BulkHideProfileItemInput as B, type ConfirmEndorsementInput as C, type DeleteAccountResult as D, type EndorsementInput as E, type FeatureAllowlistResponse as F, type FetchInboxCountsOptions as G, type FetchMyGithubPullRequestsOptions as H, type FetchMyRoadmapVotesOptions as I, type FetchProfileCompletenessOptions as J, type FetchReactionStatusOptions as K, type FetchSuggestionsOptions as L, type FetchUnlinkedPositionsOptions as M, type FollowListPage as N, type FollowProfile as O, type FollowProfilePageResponse as P, type FollowUserResult as Q, type FollowingFeedApp as R, type FollowingFeedBuild as S, type FollowingFeedEmptyReason as T, type FollowingFeedResponse as U, type FollowingFeedVersion as V, type FollowingResponse as W, type GetAdminReviewQueuesOptions as X, type GithubPullRequest as Y, type GivenConfirmation as Z, HIDDEN_ITEM_SOURCES as _, type ConfirmEndorsementResult as a, addOrgNotificationEmail as a$, type HeatmapDay as a0, type HeatmapResponse as a1, type HiddenActivityItem as a2, type HiddenApp as a3, type HiddenItemSource as a4, type HiddenItemType as a5, type HideActivityItemInput as a6, type HideProfileItemInput as a7, type InboxCounts as a8, type ListFeatureAllowlistOptions as a9, type ReactionResult as aA, type ReactionStatus as aB, type RefreshOrcidPublicationsResult as aC, type RefreshPdsResult as aD, type RepoDeleteInput as aE, type ResetProfileResult as aF, type ResolveQuotedPostsOptions as aG, type RoadmapVoteError as aH, type RoadmapVoteResult as aI, type RoadmapVoter as aJ, type RoadmapVotesResponse as aK, type SifaQueryKey as aL, type SimilarProfile as aM, type StatsResponse as aN, type SubCategoryBulkResult as aO, type SuggestionProfile as aP, type SuggestionsResponse as aQ, type UnhideActivityItemInput as aR, type UnlinkedPosition as aS, type UnlinkedPositionsResult as aT, type UpdateProfileOverrideInput as aU, type UpdateProfileSelfInput as aV, type UploadAvatarResult as aW, type UploadPronunciationAudioResult as aX, type VerifyExternalAccountResult as aY, type WipePreview as aZ, addFeatureAllowlist as a_, type MyGithubPullRequestsResponse as aa, type OrgClaimBinding as ab, type OrgClaimResult as ac, type OrgDomainChallengeResult as ad, type OrgDomainVerifyResult as ae, type OrgNotificationEmailAddResult as af, type OrgNotificationEmailRemoveResult as ag, type OrgProfileEcho as ah, type OrgProfileUpdateResult as ai, PROFILE_COMPLETENESS_SIGNALS as aj, type PdsWipeOutcome as ak, type PendingConfirmation as al, type PendingConfirmationsPage as am, type PrimarySection as an, type ProfileCompleteness as ao, type ProfileCompletenessSignal as ap, type ProfileIndustryInput as aq, type ProfileLocationAddress as ar, type ProfileLocationInput as as, type ProfileSelfLocation as at, QUOTED_POSTS_BATCH_MAX as au, type QuotedPostAuthor as av, type QuotedPostImage as aw, type QuotedPostResult as ax, type QuotedPostView as ay, type ReactionError as az, type AccountSummary as b, listFeatureAllowlist as b$, bulkHideProfileItems as b0, bulkHideStandardPublications as b1, bulkUnhideProfileItems as b2, bulkUnhideStandardPublications as b3, castRoadmapVote as b4, checkAppAccount as b5, confirmEndorsement as b6, createConfirmation as b7, createEndorsement as b8, createExternalAccount as b9, fetchInboxCounts as bA, fetchMyGithubPullRequests as bB, fetchMyRoadmapVotes as bC, fetchPendingConfirmations as bD, fetchProfileCompleteness as bE, fetchReactionStatus as bF, fetchRepoInventory as bG, fetchRoadmapVotes as bH, fetchSimilarProfiles as bI, fetchStats as bJ, fetchSuggestionCount as bK, fetchSuggestions as bL, fetchUnlinkedPositions as bM, fetchViewerPositionConfirmations as bN, fetchWipePreview as bO, followUser as bP, getAdminReviewQueues as bQ, getBlueskySuggestions as bR, getFollowers as bS, getFollowing as bT, getMutuals as bU, hideActivityItem as bV, hideOrcidPublication as bW, hideProfileItem as bX, hideSifaPublication as bY, hideStandardPublication as bZ, isNewerFollowingFeed as b_, createProfileLocation as ba, createReaction as bb, createSkill as bc, deleteAccount as bd, deleteAvatarOverride as be, deleteExternalAccount as bf, deleteNamePronunciationAudio as bg, deleteProfileLocation as bh, deleteReaction as bi, deleteRepoRecords as bj, deleteSkill as bk, dismissConfirmation as bl, dismissUnlinkedPosition as bm, fetchAccounts as bn, fetchActivityFeed as bo, fetchActivityTeaser as bp, fetchAppsRegistry as bq, fetchExternalAccounts as br, fetchFeaturedProfile as bs, fetchFollowing as bt, fetchFollowingFeed as bu, fetchFollowingFeedVersion as bv, fetchGivenConfirmations as bw, fetchHeatmapData as bx, fetchHiddenActivityItems as by, fetchHiddenApps as bz, type ActivityFeedResponse as c, refreshOrcidPublications as c0, refreshPds as c1, removeFeatureAllowlist as c2, removeOrgNotificationEmail as c3, repoExportUrl as c4, requestOrgDomainChallenge as c5, resetProfile as c6, resolveQuotedPosts as c7, retractRoadmapVote as c8, revokeConfirmation as c9, setExternalAccountPrimary as ca, setSectionPrimary as cb, submitOrgClaim as cc, switchAccount as cd, unfollowUser as ce, unhideActivityItem as cf, unhideOrcidPublication as cg, unhideProfileItem as ch, unhideSifaPublication as ci, unhideStandardPublication as cj, unsetExternalAccountPrimary as ck, unsetSectionPrimary as cl, updateExternalAccount as cm, updateOrgProfile as cn, updateProfileLocation as co, updateProfileOverride as cp, updateProfileSelf as cq, updateSkill as cr, updateSkillSubCategories as cs, uploadAvatar as ct, uploadNamePronunciationAudio as cu, verifyExternalAccount as cv, verifyOrgDomain as cw, type ActivityItem as d, type ActivityItemLinkHealth as e, type ActivityTeaserResponse as f, type AdminReviewQueues as g, type AppRegistryEntry as h, type CastRoadmapVoteResult as i, type CheckAppAccountOptions as j, type ConfirmationInput as k, type ConfirmationSubjectInput as l, type CreateExternalAccountResult as m, type DismissUnlinkedPositionInput as n, type ExternalAccountInput as o, type FeaturedProfile as p, type FetchAccountsOptions as q, type FetchActivityFeedOptions as r, sifaQueryKeys as s, type FetchActivityTeaserOptions as t, type FetchConfirmationsOptions as u, type FetchFollowListOptions as v, type FetchFollowProfilePageOptions as w, type FetchFollowingFeedOptions as x, type FetchHiddenActivityItemsOptions as y, type FetchHiddenAppsOptions as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { W as WriteResult, K as SifaApiConfig, M as ApiFetchOptions, N as CreateResult, b as ActivityLabel, t as RepoDeleteResult, w as RepoInventory } from './types-
|
|
2
|
-
import { p as ExternalAccount } from './index-
|
|
1
|
+
import { W as WriteResult, K as SifaApiConfig, M as ApiFetchOptions, N as CreateResult, b as ActivityLabel, t as RepoDeleteResult, w as RepoInventory } from './types-BV-qBo9i.cjs';
|
|
2
|
+
import { p as ExternalAccount, x as PositionViewerConfirmation } from './index-syVBnrbI.cjs';
|
|
3
3
|
import { a as AccountVerification } from './verification-providers-7il3kPQS.cjs';
|
|
4
4
|
import { s as FollowProfileItem, p as FeatureAllowlistEntry, r as FeatureFlag } from './follow-profile-CQ3DTTak.cjs';
|
|
5
5
|
import { z } from 'zod';
|
|
@@ -373,6 +373,18 @@ declare function fetchPendingConfirmations(config: SifaApiConfig, options?: Fetc
|
|
|
373
373
|
declare function fetchGivenConfirmations(config: SifaApiConfig, options?: FetchConfirmationsOptions): Promise<{
|
|
374
374
|
confirmations: GivenConfirmation[];
|
|
375
375
|
}>;
|
|
376
|
+
/**
|
|
377
|
+
* What the signed-in viewer can do with each of someone's positions, keyed by
|
|
378
|
+
* position rkey: `available` (they have a reason to know it and can confirm)
|
|
379
|
+
* or `confirmed` (they already did and can withdraw). Positions with neither
|
|
380
|
+
* are absent.
|
|
381
|
+
*
|
|
382
|
+
* The viewer-scoped half of `ProfilePosition.viewerConfirmation`, for a caller
|
|
383
|
+
* that fetches the profile itself viewer-neutral (for example to share a
|
|
384
|
+
* cache). Returns an empty map on failure, so the confirm action degrades to
|
|
385
|
+
* not being offered.
|
|
386
|
+
*/
|
|
387
|
+
declare function fetchViewerPositionConfirmations(config: SifaApiConfig, ownerDid: string, options?: FetchConfirmationsOptions): Promise<Record<string, PositionViewerConfirmation>>;
|
|
376
388
|
/**
|
|
377
389
|
* Affirm that a record naming you is accurate, writing an `id.sifa.confirmation`
|
|
378
390
|
* to your own PDS. Until this exists the claim renders as a bare handle with no
|
|
@@ -1774,4 +1786,4 @@ declare function addOrgNotificationEmail(config: SifaApiConfig, body: OrgNotific
|
|
|
1774
1786
|
*/
|
|
1775
1787
|
declare function removeOrgNotificationEmail(config: SifaApiConfig, body: OrgNotificationEmailRequestInput, options?: Omit<ApiFetchOptions, 'method' | 'body'>): Promise<WriteResult<Partial<OrgNotificationEmailRemoveResult>>>;
|
|
1776
1788
|
|
|
1777
|
-
export { HIDDEN_ITEM_TYPES as $, type AccountCheckResult as A, type BulkHideProfileItemInput as B, type ConfirmEndorsementInput as C, type DeleteAccountResult as D, type EndorsementInput as E, type FeatureAllowlistResponse as F, type FetchInboxCountsOptions as G, type FetchMyGithubPullRequestsOptions as H, type FetchMyRoadmapVotesOptions as I, type FetchProfileCompletenessOptions as J, type FetchReactionStatusOptions as K, type FetchSuggestionsOptions as L, type FetchUnlinkedPositionsOptions as M, type FollowListPage as N, type FollowProfile as O, type FollowProfilePageResponse as P, type FollowUserResult as Q, type FollowingFeedApp as R, type FollowingFeedBuild as S, type FollowingFeedEmptyReason as T, type FollowingFeedResponse as U, type FollowingFeedVersion as V, type FollowingResponse as W, type GetAdminReviewQueuesOptions as X, type GithubPullRequest as Y, type GivenConfirmation as Z, HIDDEN_ITEM_SOURCES as _, type ConfirmEndorsementResult as a, addOrgNotificationEmail as a$, type HeatmapDay as a0, type HeatmapResponse as a1, type HiddenActivityItem as a2, type HiddenApp as a3, type HiddenItemSource as a4, type HiddenItemType as a5, type HideActivityItemInput as a6, type HideProfileItemInput as a7, type InboxCounts as a8, type ListFeatureAllowlistOptions as a9, type ReactionResult as aA, type ReactionStatus as aB, type RefreshOrcidPublicationsResult as aC, type RefreshPdsResult as aD, type RepoDeleteInput as aE, type ResetProfileResult as aF, type ResolveQuotedPostsOptions as aG, type RoadmapVoteError as aH, type RoadmapVoteResult as aI, type RoadmapVoter as aJ, type RoadmapVotesResponse as aK, type SifaQueryKey as aL, type SimilarProfile as aM, type StatsResponse as aN, type SubCategoryBulkResult as aO, type SuggestionProfile as aP, type SuggestionsResponse as aQ, type UnhideActivityItemInput as aR, type UnlinkedPosition as aS, type UnlinkedPositionsResult as aT, type UpdateProfileOverrideInput as aU, type UpdateProfileSelfInput as aV, type UploadAvatarResult as aW, type UploadPronunciationAudioResult as aX, type VerifyExternalAccountResult as aY, type WipePreview as aZ, addFeatureAllowlist as a_, type MyGithubPullRequestsResponse as aa, type OrgClaimBinding as ab, type OrgClaimResult as ac, type OrgDomainChallengeResult as ad, type OrgDomainVerifyResult as ae, type OrgNotificationEmailAddResult as af, type OrgNotificationEmailRemoveResult as ag, type OrgProfileEcho as ah, type OrgProfileUpdateResult as ai, PROFILE_COMPLETENESS_SIGNALS as aj, type PdsWipeOutcome as ak, type PendingConfirmation as al, type PendingConfirmationsPage as am, type PrimarySection as an, type ProfileCompleteness as ao, type ProfileCompletenessSignal as ap, type ProfileIndustryInput as aq, type ProfileLocationAddress as ar, type ProfileLocationInput as as, type ProfileSelfLocation as at, QUOTED_POSTS_BATCH_MAX as au, type QuotedPostAuthor as av, type QuotedPostImage as aw, type QuotedPostResult as ax, type QuotedPostView as ay, type ReactionError as az, type AccountSummary as b,
|
|
1789
|
+
export { HIDDEN_ITEM_TYPES as $, type AccountCheckResult as A, type BulkHideProfileItemInput as B, type ConfirmEndorsementInput as C, type DeleteAccountResult as D, type EndorsementInput as E, type FeatureAllowlistResponse as F, type FetchInboxCountsOptions as G, type FetchMyGithubPullRequestsOptions as H, type FetchMyRoadmapVotesOptions as I, type FetchProfileCompletenessOptions as J, type FetchReactionStatusOptions as K, type FetchSuggestionsOptions as L, type FetchUnlinkedPositionsOptions as M, type FollowListPage as N, type FollowProfile as O, type FollowProfilePageResponse as P, type FollowUserResult as Q, type FollowingFeedApp as R, type FollowingFeedBuild as S, type FollowingFeedEmptyReason as T, type FollowingFeedResponse as U, type FollowingFeedVersion as V, type FollowingResponse as W, type GetAdminReviewQueuesOptions as X, type GithubPullRequest as Y, type GivenConfirmation as Z, HIDDEN_ITEM_SOURCES as _, type ConfirmEndorsementResult as a, addOrgNotificationEmail as a$, type HeatmapDay as a0, type HeatmapResponse as a1, type HiddenActivityItem as a2, type HiddenApp as a3, type HiddenItemSource as a4, type HiddenItemType as a5, type HideActivityItemInput as a6, type HideProfileItemInput as a7, type InboxCounts as a8, type ListFeatureAllowlistOptions as a9, type ReactionResult as aA, type ReactionStatus as aB, type RefreshOrcidPublicationsResult as aC, type RefreshPdsResult as aD, type RepoDeleteInput as aE, type ResetProfileResult as aF, type ResolveQuotedPostsOptions as aG, type RoadmapVoteError as aH, type RoadmapVoteResult as aI, type RoadmapVoter as aJ, type RoadmapVotesResponse as aK, type SifaQueryKey as aL, type SimilarProfile as aM, type StatsResponse as aN, type SubCategoryBulkResult as aO, type SuggestionProfile as aP, type SuggestionsResponse as aQ, type UnhideActivityItemInput as aR, type UnlinkedPosition as aS, type UnlinkedPositionsResult as aT, type UpdateProfileOverrideInput as aU, type UpdateProfileSelfInput as aV, type UploadAvatarResult as aW, type UploadPronunciationAudioResult as aX, type VerifyExternalAccountResult as aY, type WipePreview as aZ, addFeatureAllowlist as a_, type MyGithubPullRequestsResponse as aa, type OrgClaimBinding as ab, type OrgClaimResult as ac, type OrgDomainChallengeResult as ad, type OrgDomainVerifyResult as ae, type OrgNotificationEmailAddResult as af, type OrgNotificationEmailRemoveResult as ag, type OrgProfileEcho as ah, type OrgProfileUpdateResult as ai, PROFILE_COMPLETENESS_SIGNALS as aj, type PdsWipeOutcome as ak, type PendingConfirmation as al, type PendingConfirmationsPage as am, type PrimarySection as an, type ProfileCompleteness as ao, type ProfileCompletenessSignal as ap, type ProfileIndustryInput as aq, type ProfileLocationAddress as ar, type ProfileLocationInput as as, type ProfileSelfLocation as at, QUOTED_POSTS_BATCH_MAX as au, type QuotedPostAuthor as av, type QuotedPostImage as aw, type QuotedPostResult as ax, type QuotedPostView as ay, type ReactionError as az, type AccountSummary as b, listFeatureAllowlist as b$, bulkHideProfileItems as b0, bulkHideStandardPublications as b1, bulkUnhideProfileItems as b2, bulkUnhideStandardPublications as b3, castRoadmapVote as b4, checkAppAccount as b5, confirmEndorsement as b6, createConfirmation as b7, createEndorsement as b8, createExternalAccount as b9, fetchInboxCounts as bA, fetchMyGithubPullRequests as bB, fetchMyRoadmapVotes as bC, fetchPendingConfirmations as bD, fetchProfileCompleteness as bE, fetchReactionStatus as bF, fetchRepoInventory as bG, fetchRoadmapVotes as bH, fetchSimilarProfiles as bI, fetchStats as bJ, fetchSuggestionCount as bK, fetchSuggestions as bL, fetchUnlinkedPositions as bM, fetchViewerPositionConfirmations as bN, fetchWipePreview as bO, followUser as bP, getAdminReviewQueues as bQ, getBlueskySuggestions as bR, getFollowers as bS, getFollowing as bT, getMutuals as bU, hideActivityItem as bV, hideOrcidPublication as bW, hideProfileItem as bX, hideSifaPublication as bY, hideStandardPublication as bZ, isNewerFollowingFeed as b_, createProfileLocation as ba, createReaction as bb, createSkill as bc, deleteAccount as bd, deleteAvatarOverride as be, deleteExternalAccount as bf, deleteNamePronunciationAudio as bg, deleteProfileLocation as bh, deleteReaction as bi, deleteRepoRecords as bj, deleteSkill as bk, dismissConfirmation as bl, dismissUnlinkedPosition as bm, fetchAccounts as bn, fetchActivityFeed as bo, fetchActivityTeaser as bp, fetchAppsRegistry as bq, fetchExternalAccounts as br, fetchFeaturedProfile as bs, fetchFollowing as bt, fetchFollowingFeed as bu, fetchFollowingFeedVersion as bv, fetchGivenConfirmations as bw, fetchHeatmapData as bx, fetchHiddenActivityItems as by, fetchHiddenApps as bz, type ActivityFeedResponse as c, refreshOrcidPublications as c0, refreshPds as c1, removeFeatureAllowlist as c2, removeOrgNotificationEmail as c3, repoExportUrl as c4, requestOrgDomainChallenge as c5, resetProfile as c6, resolveQuotedPosts as c7, retractRoadmapVote as c8, revokeConfirmation as c9, setExternalAccountPrimary as ca, setSectionPrimary as cb, submitOrgClaim as cc, switchAccount as cd, unfollowUser as ce, unhideActivityItem as cf, unhideOrcidPublication as cg, unhideProfileItem as ch, unhideSifaPublication as ci, unhideStandardPublication as cj, unsetExternalAccountPrimary as ck, unsetSectionPrimary as cl, updateExternalAccount as cm, updateOrgProfile as cn, updateProfileLocation as co, updateProfileOverride as cp, updateProfileSelf as cq, updateSkill as cr, updateSkillSubCategories as cs, uploadAvatar as ct, uploadNamePronunciationAudio as cu, verifyExternalAccount as cv, verifyOrgDomain as cw, type ActivityItem as d, type ActivityItemLinkHealth as e, type ActivityTeaserResponse as f, type AdminReviewQueues as g, type AppRegistryEntry as h, type CastRoadmapVoteResult as i, type CheckAppAccountOptions as j, type ConfirmationInput as k, type ConfirmationSubjectInput as l, type CreateExternalAccountResult as m, type DismissUnlinkedPositionInput as n, type ExternalAccountInput as o, type FeaturedProfile as p, type FetchAccountsOptions as q, type FetchActivityFeedOptions as r, sifaQueryKeys as s, type FetchActivityTeaserOptions as t, type FetchConfirmationsOptions as u, type FetchFollowListOptions as v, type FetchFollowProfilePageOptions as w, type FetchFollowingFeedOptions as x, type FetchHiddenActivityItemsOptions as y, type FetchHiddenAppsOptions as z };
|
|
@@ -36,6 +36,21 @@ async function fetchGivenConfirmations(config, options = {}) {
|
|
|
36
36
|
return { confirmations: [] };
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
+
async function fetchViewerPositionConfirmations(config, ownerDid, options = {}) {
|
|
40
|
+
const { cookieHeader, ...rest } = options;
|
|
41
|
+
const headers = { ...rest.headers ?? {} };
|
|
42
|
+
if (cookieHeader) headers.cookie = cookieHeader;
|
|
43
|
+
try {
|
|
44
|
+
const data = await apiFetch(
|
|
45
|
+
config,
|
|
46
|
+
`/api/confirmations/positions/${encodeURIComponent(ownerDid)}`,
|
|
47
|
+
{ cache: "no-store", credentials: "include", timeoutMs: 5e3, ...rest, headers }
|
|
48
|
+
);
|
|
49
|
+
return data?.positions ?? {};
|
|
50
|
+
} catch {
|
|
51
|
+
return {};
|
|
52
|
+
}
|
|
53
|
+
}
|
|
39
54
|
function createConfirmation(config, data, options = {}) {
|
|
40
55
|
return apiWriteCreate(config, "/api/confirmation", data, options);
|
|
41
56
|
}
|
|
@@ -50,6 +65,7 @@ export {
|
|
|
50
65
|
dismissConfirmation,
|
|
51
66
|
fetchGivenConfirmations,
|
|
52
67
|
fetchPendingConfirmations,
|
|
68
|
+
fetchViewerPositionConfirmations,
|
|
53
69
|
revokeConfirmation
|
|
54
70
|
};
|
|
55
71
|
//# sourceMappingURL=confirmations.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/query/fetchers/confirmations.ts"],"sourcesContent":["import {\n apiFetch,\n apiWrite,\n apiWriteCreate,\n type ApiFetchOptions,\n type CreateResult,\n type SifaApiConfig,\n type WriteResult,\n} from '../client.js';\n\n/** A claim naming the signed-in user that they have neither confirmed nor dismissed. */\nexport interface PendingConfirmation {\n /** DID of the person who wrote the claim. */\n claimerDid: string;\n /**\n * Claimer's handle, when the AppView has resolved one. Absent when they have\n * no Sifa profile: a claim can be written by any AT Protocol app, so the UI\n * needs a fallback for having no name to show.\n */\n claimerHandle?: string;\n claimerDisplayName?: string;\n claimerAvatar?: string;\n /** AT-URI of the record that names you. The confirm mutation needs a strongRef. */\n subjectUri: string;\n /**\n * CID of that record, when the AppView has it. Often absent, since a record\n * indexed from another app can arrive without one. Pass it through when\n * present; the AppView resolves it from the claimer's PDS when it is not.\n * Never substitute a different record's CID.\n */\n subjectCid?: string;\n relation: string;\n /** Name or title the subject record carries right now, for display and snapshotting. */\n subjectName: string;\n /** Role the claimer assigned you, for `projectMember`. Display only. */\n role?: string;\n title?: string;\n createdAt: string;\n}\n\nexport interface PendingConfirmationsPage {\n confirmations: PendingConfirmation[];\n cursor?: string;\n}\n\n/**\n * A confirmation the signed-in user has already given.\n *\n * This is an AppView READ shape, not a PDS record, so it is a hand-written\n * interface like {@link PendingConfirmation} and {@link PendingConfirmation}'s\n * siblings -- the Zod schemas in `../schemas` validate lexicon record writes,\n * not these read DTOs. Fields are additive and passed through verbatim.\n */\nexport interface GivenConfirmation {\n subjectUri: string;\n claimerDid: string;\n claimerHandle?: string;\n /** Claimer's display name (Sifa override wins), for naming them without a handle. */\n claimerDisplayName?: string;\n relation: string;\n /** The name as it stood when confirmed, so a rename shows as a difference. */\n subjectName: string;\n /** The name the record carries now. Absent when the claim no longer exists. */\n currentName?: string;\n /** The record changed materially after it was confirmed. */\n confirmedStale: boolean;\n /** They removed you from the record, or deleted it. Nothing left to withdraw. */\n claimWithdrawn: boolean;\n createdAt: string;\n}\n\n/** Body accepted by {@link createConfirmation}. */\nexport interface ConfirmationInput {\n subjectUri: string;\n subjectCid?: string;\n relation: string;\n /**\n * Snapshot of the subject's name at confirmation time. Stored in your own\n * repo, out of the claimer's reach, so a later rename is detectable.\n */\n subjectName?: string;\n}\n\n/** Body accepted by {@link dismissConfirmation} and {@link revokeConfirmation}. */\nexport interface ConfirmationSubjectInput {\n subjectUri: string;\n}\n\n/** Options for the read fetchers, adding the RSC cookie-forwarding escape hatch. */\nexport interface FetchConfirmationsOptions extends ApiFetchOptions {\n /**\n * Pass the caller's `Cookie` header on Next.js RSC server-side calls.\n * `credentials: 'include'` does NOT propagate browser cookies in RSC,\n * so authenticated server fetches must forward the header explicitly.\n */\n cookieHeader?: string;\n}\n\n/**\n * Claims awaiting the signed-in user's decision. Requires credentials -- the\n * AppView reads the subject DID from the session, not from a parameter, so\n * there is no way to read someone else's inbox.\n *\n * Returns an empty page on failure so a broken inbox degrades to \"nothing\n * pending\" rather than breaking the surface hosting it.\n */\nexport async function fetchPendingConfirmations(\n config: SifaApiConfig,\n options: FetchConfirmationsOptions = {},\n): Promise<PendingConfirmationsPage> {\n const { cookieHeader, ...rest } = options;\n const headers: Record<string, string> = { ...(rest.headers ?? {}) };\n if (cookieHeader) headers.cookie = cookieHeader;\n try {\n const data = await apiFetch<PendingConfirmationsPage>(config, '/api/confirmations/pending', {\n cache: 'no-store',\n credentials: 'include',\n timeoutMs: 5000,\n ...rest,\n headers,\n });\n return { confirmations: data?.confirmations ?? [], cursor: data?.cursor };\n } catch {\n return { confirmations: [] };\n }\n}\n\n/**\n * Confirmations the signed-in user has already given.\n *\n * The surface for changing your mind. Without it a confirmation is one-way in\n * practice: the inbox lists only claims you have not answered, so once answered\n * there is nowhere to see it, let alone withdraw it.\n *\n * Returns an empty list on failure, matching the pending inbox: a broken list\n * should not break the page hosting it.\n */\nexport async function fetchGivenConfirmations(\n config: SifaApiConfig,\n options: FetchConfirmationsOptions = {},\n): Promise<{ confirmations: GivenConfirmation[] }> {\n const { cookieHeader, ...rest } = options;\n const headers: Record<string, string> = { ...(rest.headers ?? {}) };\n if (cookieHeader) headers.cookie = cookieHeader;\n try {\n const data = await apiFetch<{ confirmations: GivenConfirmation[] }>(\n config,\n '/api/confirmations/mine',\n { cache: 'no-store', credentials: 'include', timeoutMs: 5000, ...rest, headers },\n );\n return { confirmations: data?.confirmations ?? [] };\n } catch {\n return { confirmations: [] };\n }\n}\n\n/**\n * Affirm that a record naming you is accurate, writing an `id.sifa.confirmation`\n * to your own PDS. Until this exists the claim renders as a bare handle with no\n * display name, avatar, or link back to you.\n *\n * Confirming does not put the claimer's record on your profile. That record\n * lives in their repository and they can rename it at will; keeping your own\n * entry is a separate, deliberate step.\n */\nexport function createConfirmation(\n config: SifaApiConfig,\n data: ConfirmationInput,\n options: ApiFetchOptions = {},\n): Promise<CreateResult> {\n return apiWriteCreate(config, '/api/confirmation', data, options);\n}\n\n/**\n * Take a claim out of the inbox without confirming it.\n *\n * This writes nothing to any PDS. A claim only gains your identity once you\n * have confirmed it, so declining is already the default state -- the dismissal\n * is a local flag that stops it reappearing, not a published rejection the\n * claimer can read.\n */\nexport function dismissConfirmation(\n config: SifaApiConfig,\n data: ConfirmationSubjectInput,\n options: ApiFetchOptions = {},\n): Promise<WriteResult> {\n return apiWrite(config, '/api/confirmation/dismiss', 'POST', { body: data, ...options });\n}\n\n/**\n * Withdraw a confirmation you previously gave, deleting the record from your\n * PDS. The claim reverts to rendering as a bare handle.\n *\n * The usual reason is drift: the claimer renamed the project or changed the\n * role after you confirmed, so what you affirmed is no longer what is shown.\n * Also writes a dismissal, or the still-live claim returns to your inbox.\n */\nexport function revokeConfirmation(\n config: SifaApiConfig,\n data: ConfirmationSubjectInput,\n options: ApiFetchOptions = {},\n): Promise<WriteResult> {\n return apiWrite(config, '/api/confirmation/revoke', 'POST', { body: data, ...options });\n}\n"],"mappings":";AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OAKK;AAkGP,eAAsB,0BACpB,QACA,UAAqC,CAAC,GACH;AACnC,QAAM,EAAE,cAAc,GAAG,KAAK,IAAI;AAClC,QAAM,UAAkC,EAAE,GAAI,KAAK,WAAW,CAAC,EAAG;AAClE,MAAI,aAAc,SAAQ,SAAS;AACnC,MAAI;AACF,UAAM,OAAO,MAAM,SAAmC,QAAQ,8BAA8B;AAAA,MAC1F,OAAO;AAAA,MACP,aAAa;AAAA,MACb,WAAW;AAAA,MACX,GAAG;AAAA,MACH;AAAA,IACF,CAAC;AACD,WAAO,EAAE,eAAe,MAAM,iBAAiB,CAAC,GAAG,QAAQ,MAAM,OAAO;AAAA,EAC1E,QAAQ;AACN,WAAO,EAAE,eAAe,CAAC,EAAE;AAAA,EAC7B;AACF;AAYA,eAAsB,wBACpB,QACA,UAAqC,CAAC,GACW;AACjD,QAAM,EAAE,cAAc,GAAG,KAAK,IAAI;AAClC,QAAM,UAAkC,EAAE,GAAI,KAAK,WAAW,CAAC,EAAG;AAClE,MAAI,aAAc,SAAQ,SAAS;AACnC,MAAI;AACF,UAAM,OAAO,MAAM;AAAA,MACjB;AAAA,MACA;AAAA,MACA,EAAE,OAAO,YAAY,aAAa,WAAW,WAAW,KAAM,GAAG,MAAM,QAAQ;AAAA,IACjF;AACA,WAAO,EAAE,eAAe,MAAM,iBAAiB,CAAC,EAAE;AAAA,EACpD,QAAQ;AACN,WAAO,EAAE,eAAe,CAAC,EAAE;AAAA,EAC7B;AACF;AAWO,SAAS,mBACd,QACA,MACA,UAA2B,CAAC,GACL;AACvB,SAAO,eAAe,QAAQ,qBAAqB,MAAM,OAAO;AAClE;AAUO,SAAS,oBACd,QACA,MACA,UAA2B,CAAC,GACN;AACtB,SAAO,SAAS,QAAQ,6BAA6B,QAAQ,EAAE,MAAM,MAAM,GAAG,QAAQ,CAAC;AACzF;AAUO,SAAS,mBACd,QACA,MACA,UAA2B,CAAC,GACN;AACtB,SAAO,SAAS,QAAQ,4BAA4B,QAAQ,EAAE,MAAM,MAAM,GAAG,QAAQ,CAAC;AACxF;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../../src/query/fetchers/confirmations.ts"],"sourcesContent":["import {\n apiFetch,\n apiWrite,\n apiWriteCreate,\n type ApiFetchOptions,\n type CreateResult,\n type SifaApiConfig,\n type WriteResult,\n} from '../client.js';\nimport type { PositionViewerConfirmation } from '../../types/index.js';\n\n/** A claim naming the signed-in user that they have neither confirmed nor dismissed. */\nexport interface PendingConfirmation {\n /** DID of the person who wrote the claim. */\n claimerDid: string;\n /**\n * Claimer's handle, when the AppView has resolved one. Absent when they have\n * no Sifa profile: a claim can be written by any AT Protocol app, so the UI\n * needs a fallback for having no name to show.\n */\n claimerHandle?: string;\n claimerDisplayName?: string;\n claimerAvatar?: string;\n /** AT-URI of the record that names you. The confirm mutation needs a strongRef. */\n subjectUri: string;\n /**\n * CID of that record, when the AppView has it. Often absent, since a record\n * indexed from another app can arrive without one. Pass it through when\n * present; the AppView resolves it from the claimer's PDS when it is not.\n * Never substitute a different record's CID.\n */\n subjectCid?: string;\n relation: string;\n /** Name or title the subject record carries right now, for display and snapshotting. */\n subjectName: string;\n /** Role the claimer assigned you, for `projectMember`. Display only. */\n role?: string;\n title?: string;\n createdAt: string;\n}\n\nexport interface PendingConfirmationsPage {\n confirmations: PendingConfirmation[];\n cursor?: string;\n}\n\n/**\n * A confirmation the signed-in user has already given.\n *\n * This is an AppView READ shape, not a PDS record, so it is a hand-written\n * interface like {@link PendingConfirmation} and {@link PendingConfirmation}'s\n * siblings -- the Zod schemas in `../schemas` validate lexicon record writes,\n * not these read DTOs. Fields are additive and passed through verbatim.\n */\nexport interface GivenConfirmation {\n subjectUri: string;\n claimerDid: string;\n claimerHandle?: string;\n /** Claimer's display name (Sifa override wins), for naming them without a handle. */\n claimerDisplayName?: string;\n relation: string;\n /** The name as it stood when confirmed, so a rename shows as a difference. */\n subjectName: string;\n /** The name the record carries now. Absent when the claim no longer exists. */\n currentName?: string;\n /** The record changed materially after it was confirmed. */\n confirmedStale: boolean;\n /** They removed you from the record, or deleted it. Nothing left to withdraw. */\n claimWithdrawn: boolean;\n createdAt: string;\n}\n\n/** Body accepted by {@link createConfirmation}. */\nexport interface ConfirmationInput {\n subjectUri: string;\n subjectCid?: string;\n relation: string;\n /**\n * Snapshot of the subject's name at confirmation time. Stored in your own\n * repo, out of the claimer's reach, so a later rename is detectable.\n */\n subjectName?: string;\n}\n\n/** Body accepted by {@link dismissConfirmation} and {@link revokeConfirmation}. */\nexport interface ConfirmationSubjectInput {\n subjectUri: string;\n}\n\n/** Options for the read fetchers, adding the RSC cookie-forwarding escape hatch. */\nexport interface FetchConfirmationsOptions extends ApiFetchOptions {\n /**\n * Pass the caller's `Cookie` header on Next.js RSC server-side calls.\n * `credentials: 'include'` does NOT propagate browser cookies in RSC,\n * so authenticated server fetches must forward the header explicitly.\n */\n cookieHeader?: string;\n}\n\n/**\n * Claims awaiting the signed-in user's decision. Requires credentials -- the\n * AppView reads the subject DID from the session, not from a parameter, so\n * there is no way to read someone else's inbox.\n *\n * Returns an empty page on failure so a broken inbox degrades to \"nothing\n * pending\" rather than breaking the surface hosting it.\n */\nexport async function fetchPendingConfirmations(\n config: SifaApiConfig,\n options: FetchConfirmationsOptions = {},\n): Promise<PendingConfirmationsPage> {\n const { cookieHeader, ...rest } = options;\n const headers: Record<string, string> = { ...(rest.headers ?? {}) };\n if (cookieHeader) headers.cookie = cookieHeader;\n try {\n const data = await apiFetch<PendingConfirmationsPage>(config, '/api/confirmations/pending', {\n cache: 'no-store',\n credentials: 'include',\n timeoutMs: 5000,\n ...rest,\n headers,\n });\n return { confirmations: data?.confirmations ?? [], cursor: data?.cursor };\n } catch {\n return { confirmations: [] };\n }\n}\n\n/**\n * Confirmations the signed-in user has already given.\n *\n * The surface for changing your mind. Without it a confirmation is one-way in\n * practice: the inbox lists only claims you have not answered, so once answered\n * there is nowhere to see it, let alone withdraw it.\n *\n * Returns an empty list on failure, matching the pending inbox: a broken list\n * should not break the page hosting it.\n */\nexport async function fetchGivenConfirmations(\n config: SifaApiConfig,\n options: FetchConfirmationsOptions = {},\n): Promise<{ confirmations: GivenConfirmation[] }> {\n const { cookieHeader, ...rest } = options;\n const headers: Record<string, string> = { ...(rest.headers ?? {}) };\n if (cookieHeader) headers.cookie = cookieHeader;\n try {\n const data = await apiFetch<{ confirmations: GivenConfirmation[] }>(\n config,\n '/api/confirmations/mine',\n { cache: 'no-store', credentials: 'include', timeoutMs: 5000, ...rest, headers },\n );\n return { confirmations: data?.confirmations ?? [] };\n } catch {\n return { confirmations: [] };\n }\n}\n\n/**\n * What the signed-in viewer can do with each of someone's positions, keyed by\n * position rkey: `available` (they have a reason to know it and can confirm)\n * or `confirmed` (they already did and can withdraw). Positions with neither\n * are absent.\n *\n * The viewer-scoped half of `ProfilePosition.viewerConfirmation`, for a caller\n * that fetches the profile itself viewer-neutral (for example to share a\n * cache). Returns an empty map on failure, so the confirm action degrades to\n * not being offered.\n */\nexport async function fetchViewerPositionConfirmations(\n config: SifaApiConfig,\n ownerDid: string,\n options: FetchConfirmationsOptions = {},\n): Promise<Record<string, PositionViewerConfirmation>> {\n const { cookieHeader, ...rest } = options;\n const headers: Record<string, string> = { ...(rest.headers ?? {}) };\n if (cookieHeader) headers.cookie = cookieHeader;\n try {\n const data = await apiFetch<{ positions?: Record<string, PositionViewerConfirmation> }>(\n config,\n `/api/confirmations/positions/${encodeURIComponent(ownerDid)}`,\n { cache: 'no-store', credentials: 'include', timeoutMs: 5000, ...rest, headers },\n );\n return data?.positions ?? {};\n } catch {\n return {};\n }\n}\n\n/**\n * Affirm that a record naming you is accurate, writing an `id.sifa.confirmation`\n * to your own PDS. Until this exists the claim renders as a bare handle with no\n * display name, avatar, or link back to you.\n *\n * Confirming does not put the claimer's record on your profile. That record\n * lives in their repository and they can rename it at will; keeping your own\n * entry is a separate, deliberate step.\n */\nexport function createConfirmation(\n config: SifaApiConfig,\n data: ConfirmationInput,\n options: ApiFetchOptions = {},\n): Promise<CreateResult> {\n return apiWriteCreate(config, '/api/confirmation', data, options);\n}\n\n/**\n * Take a claim out of the inbox without confirming it.\n *\n * This writes nothing to any PDS. A claim only gains your identity once you\n * have confirmed it, so declining is already the default state -- the dismissal\n * is a local flag that stops it reappearing, not a published rejection the\n * claimer can read.\n */\nexport function dismissConfirmation(\n config: SifaApiConfig,\n data: ConfirmationSubjectInput,\n options: ApiFetchOptions = {},\n): Promise<WriteResult> {\n return apiWrite(config, '/api/confirmation/dismiss', 'POST', { body: data, ...options });\n}\n\n/**\n * Withdraw a confirmation you previously gave, deleting the record from your\n * PDS. The claim reverts to rendering as a bare handle.\n *\n * The usual reason is drift: the claimer renamed the project or changed the\n * role after you confirmed, so what you affirmed is no longer what is shown.\n * Also writes a dismissal, or the still-live claim returns to your inbox.\n */\nexport function revokeConfirmation(\n config: SifaApiConfig,\n data: ConfirmationSubjectInput,\n options: ApiFetchOptions = {},\n): Promise<WriteResult> {\n return apiWrite(config, '/api/confirmation/revoke', 'POST', { body: data, ...options });\n}\n"],"mappings":";AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OAKK;AAmGP,eAAsB,0BACpB,QACA,UAAqC,CAAC,GACH;AACnC,QAAM,EAAE,cAAc,GAAG,KAAK,IAAI;AAClC,QAAM,UAAkC,EAAE,GAAI,KAAK,WAAW,CAAC,EAAG;AAClE,MAAI,aAAc,SAAQ,SAAS;AACnC,MAAI;AACF,UAAM,OAAO,MAAM,SAAmC,QAAQ,8BAA8B;AAAA,MAC1F,OAAO;AAAA,MACP,aAAa;AAAA,MACb,WAAW;AAAA,MACX,GAAG;AAAA,MACH;AAAA,IACF,CAAC;AACD,WAAO,EAAE,eAAe,MAAM,iBAAiB,CAAC,GAAG,QAAQ,MAAM,OAAO;AAAA,EAC1E,QAAQ;AACN,WAAO,EAAE,eAAe,CAAC,EAAE;AAAA,EAC7B;AACF;AAYA,eAAsB,wBACpB,QACA,UAAqC,CAAC,GACW;AACjD,QAAM,EAAE,cAAc,GAAG,KAAK,IAAI;AAClC,QAAM,UAAkC,EAAE,GAAI,KAAK,WAAW,CAAC,EAAG;AAClE,MAAI,aAAc,SAAQ,SAAS;AACnC,MAAI;AACF,UAAM,OAAO,MAAM;AAAA,MACjB;AAAA,MACA;AAAA,MACA,EAAE,OAAO,YAAY,aAAa,WAAW,WAAW,KAAM,GAAG,MAAM,QAAQ;AAAA,IACjF;AACA,WAAO,EAAE,eAAe,MAAM,iBAAiB,CAAC,EAAE;AAAA,EACpD,QAAQ;AACN,WAAO,EAAE,eAAe,CAAC,EAAE;AAAA,EAC7B;AACF;AAaA,eAAsB,iCACpB,QACA,UACA,UAAqC,CAAC,GACe;AACrD,QAAM,EAAE,cAAc,GAAG,KAAK,IAAI;AAClC,QAAM,UAAkC,EAAE,GAAI,KAAK,WAAW,CAAC,EAAG;AAClE,MAAI,aAAc,SAAQ,SAAS;AACnC,MAAI;AACF,UAAM,OAAO,MAAM;AAAA,MACjB;AAAA,MACA,gCAAgC,mBAAmB,QAAQ,CAAC;AAAA,MAC5D,EAAE,OAAO,YAAY,aAAa,WAAW,WAAW,KAAM,GAAG,MAAM,QAAQ;AAAA,IACjF;AACA,WAAO,MAAM,aAAa,CAAC;AAAA,EAC7B,QAAQ;AACN,WAAO,CAAC;AAAA,EACV;AACF;AAWO,SAAS,mBACd,QACA,MACA,UAA2B,CAAC,GACL;AACvB,SAAO,eAAe,QAAQ,qBAAqB,MAAM,OAAO;AAClE;AAUO,SAAS,oBACd,QACA,MACA,UAA2B,CAAC,GACN;AACtB,SAAO,SAAS,QAAQ,6BAA6B,QAAQ,EAAE,MAAM,MAAM,GAAG,QAAQ,CAAC;AACzF;AAUO,SAAS,mBACd,QACA,MACA,UAA2B,CAAC,GACN;AACtB,SAAO,SAAS,QAAQ,4BAA4B,QAAQ,EAAE,MAAM,MAAM,GAAG,QAAQ,CAAC;AACxF;","names":[]}
|
|
@@ -550,6 +550,21 @@ async function fetchGivenConfirmations(config, options = {}) {
|
|
|
550
550
|
return { confirmations: [] };
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
|
+
async function fetchViewerPositionConfirmations(config, ownerDid, options = {}) {
|
|
554
|
+
const { cookieHeader, ...rest } = options;
|
|
555
|
+
const headers = { ...rest.headers ?? {} };
|
|
556
|
+
if (cookieHeader) headers.cookie = cookieHeader;
|
|
557
|
+
try {
|
|
558
|
+
const data = await apiFetch(
|
|
559
|
+
config,
|
|
560
|
+
`/api/confirmations/positions/${encodeURIComponent(ownerDid)}`,
|
|
561
|
+
{ cache: "no-store", credentials: "include", timeoutMs: 5e3, ...rest, headers }
|
|
562
|
+
);
|
|
563
|
+
return data?.positions ?? {};
|
|
564
|
+
} catch {
|
|
565
|
+
return {};
|
|
566
|
+
}
|
|
567
|
+
}
|
|
553
568
|
function createConfirmation(config, data, options = {}) {
|
|
554
569
|
return apiWriteCreate(config, "/api/confirmation", data, options);
|
|
555
570
|
}
|
|
@@ -2194,6 +2209,7 @@ exports.fetchSuggestionCount = fetchSuggestionCount;
|
|
|
2194
2209
|
exports.fetchSuggestions = fetchSuggestions;
|
|
2195
2210
|
exports.fetchTalks = fetchTalks;
|
|
2196
2211
|
exports.fetchUnlinkedPositions = fetchUnlinkedPositions;
|
|
2212
|
+
exports.fetchViewerPositionConfirmations = fetchViewerPositionConfirmations;
|
|
2197
2213
|
exports.fetchWipePreview = fetchWipePreview;
|
|
2198
2214
|
exports.followUser = followUser;
|
|
2199
2215
|
exports.getAdminReviewQueues = getAdminReviewQueues;
|