@singi-labs/sifa-sdk 0.18.18 → 0.18.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/dist/{index-E2qQbMnv.d.ts → index-66ul8ibE.d.cts} +50 -0
  2. package/dist/{index-E2qQbMnv.d.cts → index-C13I8diU.d.ts} +50 -0
  3. package/dist/index.cjs +1 -1
  4. package/dist/index.cjs.map +1 -1
  5. package/dist/index.d.cts +8 -6
  6. package/dist/index.d.ts +8 -6
  7. package/dist/index.js +1 -1
  8. package/dist/index.js.map +1 -1
  9. package/dist/jsonld/index.d.cts +3 -1
  10. package/dist/jsonld/index.d.ts +3 -1
  11. package/dist/{network-map-BYdQF1tr.d.ts → network-map-DSfk3Xy7.d.ts} +4 -4
  12. package/dist/{network-map-BdDqR9-B.d.cts → network-map-vQIw-05X.d.cts} +4 -4
  13. package/dist/{org-BftCzySH.d.ts → org-1bHLKAz5.d.ts} +13 -4
  14. package/dist/{org-DhAmipS-.d.cts → org-DRb5WQq3.d.cts} +13 -4
  15. package/dist/{org-settings-CZ_tmAYl.d.cts → org-settings-B8e01iZx.d.cts} +1 -1
  16. package/dist/{org-settings-CZ_tmAYl.d.ts → org-settings-B8e01iZx.d.ts} +1 -1
  17. package/dist/{profile-investment-vmHROP_v.d.cts → profile-investment-Bvulg_jG.d.cts} +1 -85
  18. package/dist/{profile-investment-vmHROP_v.d.ts → profile-investment-Bvulg_jG.d.ts} +1 -85
  19. package/dist/{profile-summary-CKAuwczF.d.ts → profile-summary-CjhrwYBp.d.ts} +1 -1
  20. package/dist/{profile-summary-BeiM3TmH.d.cts → profile-summary-DMaGicYm.d.cts} +1 -1
  21. package/dist/query/fetchers/index.cjs.map +1 -1
  22. package/dist/query/fetchers/index.d.cts +9 -8
  23. package/dist/query/fetchers/index.d.ts +9 -8
  24. package/dist/query/fetchers/index.js.map +1 -1
  25. package/dist/query/hooks/index.cjs.map +1 -1
  26. package/dist/query/hooks/index.d.cts +8 -7
  27. package/dist/query/hooks/index.d.ts +8 -7
  28. package/dist/query/hooks/index.js.map +1 -1
  29. package/dist/query/index.cjs.map +1 -1
  30. package/dist/query/index.d.cts +10 -9
  31. package/dist/query/index.d.ts +10 -9
  32. package/dist/query/index.js.map +1 -1
  33. package/dist/resume/index.d.cts +3 -1
  34. package/dist/resume/index.d.ts +3 -1
  35. package/dist/schemas/index.d.cts +2 -1
  36. package/dist/schemas/index.d.ts +2 -1
  37. package/dist/schemas/write/index.d.cts +1 -1
  38. package/dist/schemas/write/index.d.ts +1 -1
  39. package/dist/shared-v0vl5hov.d.cts +87 -0
  40. package/dist/shared-v0vl5hov.d.ts +87 -0
  41. package/dist/{types-2qTC_DBy.d.cts → types-CDrbMqyV.d.cts} +1 -1
  42. package/dist/{types-CLrLfvXz.d.ts → types-YpOch4Ho.d.ts} +1 -1
  43. package/dist/{use-org-notification-emails-CxBtveF9.d.ts → use-org-notification-emails-BbwXKpDF.d.ts} +4 -4
  44. package/dist/{use-org-notification-emails-CR2PDfjF.d.cts → use-org-notification-emails-DZIXFGSp.d.cts} +4 -4
  45. package/package.json +1 -1
@@ -1,4 +1,6 @@
1
- import { L as LocationValue, d as ProfilePosition, f as ProfileEducation, P as ProfileSkill, e as ProfileCertification, i as ProfileProject, j as ProfilePublication, J as ProfileVolunteering, g as ProfileHonor, h as ProfileLanguage, p as ExternalAccount } from '../index-E2qQbMnv.cjs';
1
+ import { L as LocationValue, d as ProfilePosition, f as ProfileEducation, P as ProfileSkill, e as ProfileCertification, i as ProfileProject, j as ProfilePublication, J as ProfileVolunteering, g as ProfileHonor, h as ProfileLanguage, p as ExternalAccount } from '../index-66ul8ibE.cjs';
2
+ import '../shared-v0vl5hov.cjs';
3
+ import 'zod';
2
4
 
3
5
  /**
4
6
  * JSON Resume v1.0.0 emitter for a Sifa profile.
@@ -1,4 +1,6 @@
1
- import { L as LocationValue, d as ProfilePosition, f as ProfileEducation, P as ProfileSkill, e as ProfileCertification, i as ProfileProject, j as ProfilePublication, J as ProfileVolunteering, g as ProfileHonor, h as ProfileLanguage, p as ExternalAccount } from '../index-E2qQbMnv.js';
1
+ import { L as LocationValue, d as ProfilePosition, f as ProfileEducation, P as ProfileSkill, e as ProfileCertification, i as ProfileProject, j as ProfilePublication, J as ProfileVolunteering, g as ProfileHonor, h as ProfileLanguage, p as ExternalAccount } from '../index-C13I8diU.js';
2
+ import '../shared-v0vl5hov.js';
3
+ import 'zod';
2
4
 
3
5
  /**
4
6
  * JSON Resume v1.0.0 emitter for a Sifa profile.
@@ -1,6 +1,7 @@
1
- export { A as AgentRef, c as ArtifactLink, d as ArtifactLinkSchema, B as BlobRef, e as BlobRefSchema, E as EndorsementConfirmationRecord, f as EndorsementConfirmationRecordSchema, g as EndorsementRecord, h as EndorsementRecordSchema, G as GraphFollowRecord, i as GraphFollowRecordSchema, I as InvestmentAmountSchema, j as OrgEmploymentAttestationRecord, k as OrgEmploymentAttestationRecordSchema, O as OrgProfileRecord, l as OrgProfileRecordSchema, m as PROFILE_INVESTMENT_NSID, n as PROFILE_INVOLVEMENT_NSID, P as PresentationDuration, o as PresentationDurationSchema, p as PresentationLink, q as PresentationLinkSchema, r as ProfileCertificationRecord, s as ProfileCertificationRecordSchema, t as ProfileCourseRecord, u as ProfileCourseRecordSchema, v as ProfileEducationRecord, w as ProfileEducationRecordSchema, x as ProfileExternalAccountRecord, y as ProfileExternalAccountRecordSchema, z as ProfileHonorRecord, C as ProfileHonorRecordSchema, af as ProfileInvestmentRecord, D as ProfileInvestmentRecordSchema, F as ProfileInvolvementRecord, H as ProfileInvolvementRecordSchema, J as ProfileLanguageRecord, K as ProfileLanguageRecordSchema, L as ProfilePositionRecord, M as ProfilePositionRecordSchema, a as ProfilePresentationDeliveryRecord, N as ProfilePresentationDeliveryRecordSchema, b as ProfilePresentationRecord, Q as ProfilePresentationRecordSchema, R as ProfileProjectRecord, S as ProfileProjectRecordSchema, T as ProfilePublicationRecord, U as ProfilePublicationRecordSchema, V as ProfileSelfRecord, W as ProfileSelfRecordSchema, X as ProfileSkillRecord, Y as ProfileSkillRecordSchema, Z as ProfileVolunteeringRecord, _ as ProfileVolunteeringRecordSchema, $ as PublicationAuthor, a0 as PublicationAuthorSchema, a1 as agentRefSchema, a2 as atUriSchema, a3 as cidSchema, a4 as datetimeSchema, a5 as didSchema, a6 as externalRecordRefSchema, a7 as languageTagSchema, a8 as makeGraphFollowRecordSchema, a9 as maxGraphemes, aa as partialDateSchema, ab as selfLabelsSchema, ac as skillRefSchema, ad as strongRefSchema, ae as uriSchema } from '../profile-investment-vmHROP_v.cjs';
1
+ export { A as ArtifactLink, c as ArtifactLinkSchema, B as BlobRef, d as BlobRefSchema, E as EndorsementConfirmationRecord, e as EndorsementConfirmationRecordSchema, f as EndorsementRecord, g as EndorsementRecordSchema, G as GraphFollowRecord, h as GraphFollowRecordSchema, I as InvestmentAmountSchema, i as OrgEmploymentAttestationRecord, j as OrgEmploymentAttestationRecordSchema, O as OrgProfileRecord, k as OrgProfileRecordSchema, l as PROFILE_INVESTMENT_NSID, m as PROFILE_INVOLVEMENT_NSID, P as PresentationDuration, n as PresentationDurationSchema, o as PresentationLink, p as PresentationLinkSchema, q as ProfileCertificationRecord, r as ProfileCertificationRecordSchema, s as ProfileCourseRecord, t as ProfileCourseRecordSchema, u as ProfileEducationRecord, v as ProfileEducationRecordSchema, w as ProfileExternalAccountRecord, x as ProfileExternalAccountRecordSchema, y as ProfileHonorRecord, z as ProfileHonorRecordSchema, a1 as ProfileInvestmentRecord, C as ProfileInvestmentRecordSchema, D as ProfileInvolvementRecord, F as ProfileInvolvementRecordSchema, H as ProfileLanguageRecord, J as ProfileLanguageRecordSchema, K as ProfilePositionRecord, L as ProfilePositionRecordSchema, a as ProfilePresentationDeliveryRecord, M as ProfilePresentationDeliveryRecordSchema, b as ProfilePresentationRecord, N as ProfilePresentationRecordSchema, Q as ProfileProjectRecord, R as ProfileProjectRecordSchema, S as ProfilePublicationRecord, T as ProfilePublicationRecordSchema, U as ProfileSelfRecord, V as ProfileSelfRecordSchema, W as ProfileSkillRecord, X as ProfileSkillRecordSchema, Y as ProfileVolunteeringRecord, Z as ProfileVolunteeringRecordSchema, _ as PublicationAuthor, $ as PublicationAuthorSchema, a0 as makeGraphFollowRecordSchema } from '../profile-investment-Bvulg_jG.cjs';
2
2
  export { A as AtmosphereFeedItem, a as AtmosphereFeedItemSchema, b as EntityImportSearchResponse, c as EntityImportSearchResponseSchema, d as EntityMintDomainResponse, e as EntityMintDomainResponseSchema, f as EntityResolveDomainRequest, g as EntityResolveDomainRequestSchema, h as EntityResolveDomainResponse, i as EntityResolveDomainResponseSchema, j as EntitySearchResponse, k as EntitySearchResponseSchema, E as EntitySearchResult, l as EntitySearchResultSchema, m as EntitySelectRequest, n as EntitySelectRequestSchema, o as EntitySelectResponse, p as EntitySelectResponseSchema, F as FEATURE_FLAGS, q as FeatureAllowlistEntry, r as FeatureAllowlistEntrySchema, s as FeatureFlag, t as FeedActor, u as FeedActorSchema, v as FeedCursor, w as FollowFeedItem, x as FollowFeedItemSchema, y as FollowFeedPage, z as FollowFeedPageSchema, B as FollowProfileItem, C as FollowProfilePage, D as FollowProfilePageSchema, G as FollowProfileSchema, S as SifaFeedItem, H as SifaFeedItemSchema, I as decodeFeedCursor, J as encodeFeedCursor } from '../feed-BMm9Pkew.cjs';
3
3
  import { z } from 'zod';
4
+ export { A as AgentRef, a as agentRefSchema, b as atUriSchema, c as cidSchema, d as datetimeSchema, e as didSchema, f as externalRecordRefSchema, l as languageTagSchema, m as maxGraphemes, p as partialDateSchema, s as selfLabelsSchema, g as skillRefSchema, h as strongRefSchema, u as uriSchema } from '../shared-v0vl5hov.cjs';
4
5
 
5
6
  /**
6
7
  * Relations shipped today. The lexicon declares these as `knownValues`, not an
@@ -1,6 +1,7 @@
1
- export { A as AgentRef, c as ArtifactLink, d as ArtifactLinkSchema, B as BlobRef, e as BlobRefSchema, E as EndorsementConfirmationRecord, f as EndorsementConfirmationRecordSchema, g as EndorsementRecord, h as EndorsementRecordSchema, G as GraphFollowRecord, i as GraphFollowRecordSchema, I as InvestmentAmountSchema, j as OrgEmploymentAttestationRecord, k as OrgEmploymentAttestationRecordSchema, O as OrgProfileRecord, l as OrgProfileRecordSchema, m as PROFILE_INVESTMENT_NSID, n as PROFILE_INVOLVEMENT_NSID, P as PresentationDuration, o as PresentationDurationSchema, p as PresentationLink, q as PresentationLinkSchema, r as ProfileCertificationRecord, s as ProfileCertificationRecordSchema, t as ProfileCourseRecord, u as ProfileCourseRecordSchema, v as ProfileEducationRecord, w as ProfileEducationRecordSchema, x as ProfileExternalAccountRecord, y as ProfileExternalAccountRecordSchema, z as ProfileHonorRecord, C as ProfileHonorRecordSchema, af as ProfileInvestmentRecord, D as ProfileInvestmentRecordSchema, F as ProfileInvolvementRecord, H as ProfileInvolvementRecordSchema, J as ProfileLanguageRecord, K as ProfileLanguageRecordSchema, L as ProfilePositionRecord, M as ProfilePositionRecordSchema, a as ProfilePresentationDeliveryRecord, N as ProfilePresentationDeliveryRecordSchema, b as ProfilePresentationRecord, Q as ProfilePresentationRecordSchema, R as ProfileProjectRecord, S as ProfileProjectRecordSchema, T as ProfilePublicationRecord, U as ProfilePublicationRecordSchema, V as ProfileSelfRecord, W as ProfileSelfRecordSchema, X as ProfileSkillRecord, Y as ProfileSkillRecordSchema, Z as ProfileVolunteeringRecord, _ as ProfileVolunteeringRecordSchema, $ as PublicationAuthor, a0 as PublicationAuthorSchema, a1 as agentRefSchema, a2 as atUriSchema, a3 as cidSchema, a4 as datetimeSchema, a5 as didSchema, a6 as externalRecordRefSchema, a7 as languageTagSchema, a8 as makeGraphFollowRecordSchema, a9 as maxGraphemes, aa as partialDateSchema, ab as selfLabelsSchema, ac as skillRefSchema, ad as strongRefSchema, ae as uriSchema } from '../profile-investment-vmHROP_v.js';
1
+ export { A as ArtifactLink, c as ArtifactLinkSchema, B as BlobRef, d as BlobRefSchema, E as EndorsementConfirmationRecord, e as EndorsementConfirmationRecordSchema, f as EndorsementRecord, g as EndorsementRecordSchema, G as GraphFollowRecord, h as GraphFollowRecordSchema, I as InvestmentAmountSchema, i as OrgEmploymentAttestationRecord, j as OrgEmploymentAttestationRecordSchema, O as OrgProfileRecord, k as OrgProfileRecordSchema, l as PROFILE_INVESTMENT_NSID, m as PROFILE_INVOLVEMENT_NSID, P as PresentationDuration, n as PresentationDurationSchema, o as PresentationLink, p as PresentationLinkSchema, q as ProfileCertificationRecord, r as ProfileCertificationRecordSchema, s as ProfileCourseRecord, t as ProfileCourseRecordSchema, u as ProfileEducationRecord, v as ProfileEducationRecordSchema, w as ProfileExternalAccountRecord, x as ProfileExternalAccountRecordSchema, y as ProfileHonorRecord, z as ProfileHonorRecordSchema, a1 as ProfileInvestmentRecord, C as ProfileInvestmentRecordSchema, D as ProfileInvolvementRecord, F as ProfileInvolvementRecordSchema, H as ProfileLanguageRecord, J as ProfileLanguageRecordSchema, K as ProfilePositionRecord, L as ProfilePositionRecordSchema, a as ProfilePresentationDeliveryRecord, M as ProfilePresentationDeliveryRecordSchema, b as ProfilePresentationRecord, N as ProfilePresentationRecordSchema, Q as ProfileProjectRecord, R as ProfileProjectRecordSchema, S as ProfilePublicationRecord, T as ProfilePublicationRecordSchema, U as ProfileSelfRecord, V as ProfileSelfRecordSchema, W as ProfileSkillRecord, X as ProfileSkillRecordSchema, Y as ProfileVolunteeringRecord, Z as ProfileVolunteeringRecordSchema, _ as PublicationAuthor, $ as PublicationAuthorSchema, a0 as makeGraphFollowRecordSchema } from '../profile-investment-Bvulg_jG.js';
2
2
  export { A as AtmosphereFeedItem, a as AtmosphereFeedItemSchema, b as EntityImportSearchResponse, c as EntityImportSearchResponseSchema, d as EntityMintDomainResponse, e as EntityMintDomainResponseSchema, f as EntityResolveDomainRequest, g as EntityResolveDomainRequestSchema, h as EntityResolveDomainResponse, i as EntityResolveDomainResponseSchema, j as EntitySearchResponse, k as EntitySearchResponseSchema, E as EntitySearchResult, l as EntitySearchResultSchema, m as EntitySelectRequest, n as EntitySelectRequestSchema, o as EntitySelectResponse, p as EntitySelectResponseSchema, F as FEATURE_FLAGS, q as FeatureAllowlistEntry, r as FeatureAllowlistEntrySchema, s as FeatureFlag, t as FeedActor, u as FeedActorSchema, v as FeedCursor, w as FollowFeedItem, x as FollowFeedItemSchema, y as FollowFeedPage, z as FollowFeedPageSchema, B as FollowProfileItem, C as FollowProfilePage, D as FollowProfilePageSchema, G as FollowProfileSchema, S as SifaFeedItem, H as SifaFeedItemSchema, I as decodeFeedCursor, J as encodeFeedCursor } from '../feed-BMm9Pkew.js';
3
3
  import { z } from 'zod';
4
+ export { A as AgentRef, a as agentRefSchema, b as atUriSchema, c as cidSchema, d as datetimeSchema, e as didSchema, f as externalRecordRefSchema, l as languageTagSchema, m as maxGraphemes, p as partialDateSchema, s as selfLabelsSchema, g as skillRefSchema, h as strongRefSchema, u as uriSchema } from '../shared-v0vl5hov.js';
4
5
 
5
6
  /**
6
7
  * Relations shipped today. The lexicon declares these as `knownValues`, not an
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- export { O as OrgClaimRequestInput, e as OrgClaimRequestSchema, b as OrgDomainChallengeRequestInput, f as OrgDomainChallengeRequestSchema, c as OrgDomainVerifyRequestInput, g as OrgDomainVerifyRequestSchema, d as OrgNotificationEmailRequestInput, h as OrgNotificationEmailRequestSchema, a as OrgProfileUpdateRequestInput, i as OrgProfileUpdateRequestSchema } from '../../org-settings-CZ_tmAYl.cjs';
2
+ export { O as OrgClaimRequestInput, a as OrgClaimRequestSchema, b as OrgDomainChallengeRequestInput, c as OrgDomainChallengeRequestSchema, d as OrgDomainVerifyRequestInput, e as OrgDomainVerifyRequestSchema, f as OrgNotificationEmailRequestInput, g as OrgNotificationEmailRequestSchema, h as OrgProfileUpdateRequestInput, i as OrgProfileUpdateRequestSchema } from '../../org-settings-B8e01iZx.cjs';
3
3
 
4
4
  /** Prepend `https://` if no scheme is present. */
5
5
  declare function normalizeUrl(val: string): string;
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- export { O as OrgClaimRequestInput, e as OrgClaimRequestSchema, b as OrgDomainChallengeRequestInput, f as OrgDomainChallengeRequestSchema, c as OrgDomainVerifyRequestInput, g as OrgDomainVerifyRequestSchema, d as OrgNotificationEmailRequestInput, h as OrgNotificationEmailRequestSchema, a as OrgProfileUpdateRequestInput, i as OrgProfileUpdateRequestSchema } from '../../org-settings-CZ_tmAYl.js';
2
+ export { O as OrgClaimRequestInput, a as OrgClaimRequestSchema, b as OrgDomainChallengeRequestInput, c as OrgDomainChallengeRequestSchema, d as OrgDomainVerifyRequestInput, e as OrgDomainVerifyRequestSchema, f as OrgNotificationEmailRequestInput, g as OrgNotificationEmailRequestSchema, h as OrgProfileUpdateRequestInput, i as OrgProfileUpdateRequestSchema } from '../../org-settings-B8e01iZx.js';
3
3
 
4
4
  /** Prepend `https://` if no scheme is present. */
5
5
  declare function normalizeUrl(val: string): string;
@@ -0,0 +1,87 @@
1
+ import { z } from 'zod';
2
+
3
+ /**
4
+ * Grapheme-aware refinement matching the AT Protocol lexicon `maxGraphemes`
5
+ * constraint. JS strings are sequences of UTF-16 code units, but lexicon
6
+ * `maxGraphemes` counts user-perceived characters (grapheme clusters), so
7
+ * emoji sequences, regional indicators, ZWJ joins, and combining marks all
8
+ * count as one unit each. We use `Intl.Segmenter` to enforce this correctly.
9
+ */
10
+ declare function maxGraphemes(max: number): (value: string) => boolean;
11
+ /** Decentralized identifier, AT Protocol `format: did`. */
12
+ declare const didSchema: z.ZodString;
13
+ /** RFC 3339 datetime with timezone offset, AT Protocol `format: datetime`. */
14
+ declare const datetimeSchema: z.ZodString;
15
+ /**
16
+ * Freeform calendar date for user-facing profile dates (start/end, issued,
17
+ * completed, awarded, published, etc.). Accepts a bare year, year-month,
18
+ * year-month-day, or a full datetime (so a legacy record's RFC-3339 date maps
19
+ * through on backfill without loss). NOT strict `datetime` -- users typically
20
+ * remember only month/year, and LinkedIn-importer writes carry partial dates,
21
+ * so the lexicons document these as freeform `YYYY-MM` / `YYYY-MM-DD`. Record
22
+ * metadata like `createdAt` stays on `datetimeSchema`.
23
+ */
24
+ declare const partialDateSchema: z.ZodString;
25
+ /** Generic AT-URI, AT Protocol `format: at-uri`. */
26
+ declare const atUriSchema: z.ZodString;
27
+ /** Content identifier, AT Protocol `format: cid`. Loose validation -- accepts CIDv0 and CIDv1. */
28
+ declare const cidSchema: z.ZodString;
29
+ /** BCP 47 language tag, AT Protocol `format: language`. */
30
+ declare const languageTagSchema: z.ZodString;
31
+ /** Generic URI, AT Protocol `format: uri`. */
32
+ declare const uriSchema: z.ZodString;
33
+ /**
34
+ * StrongRef shape from `com.atproto.repo.strongRef` -- pins a record by both
35
+ * AT-URI (identity) and CID (version).
36
+ */
37
+ declare const strongRefSchema: z.ZodObject<{
38
+ uri: z.ZodString;
39
+ cid: z.ZodString;
40
+ }, z.core.$strip>;
41
+ /**
42
+ * Reference to an `id.sifa.profile.skill` record by AT-URI. Mirrors
43
+ * `id.sifa.defs#skillRef`, which carries no CID at all: skills are mutable
44
+ * records in the same user's repo, so the reference resolves live and tracks
45
+ * edits to the target.
46
+ */
47
+ declare const skillRefSchema: z.ZodObject<{
48
+ uri: z.ZodString;
49
+ }, z.core.$strip>;
50
+ /**
51
+ * Reference to a record by AT-URI, with an optional CID. Mirrors
52
+ * `id.sifa.defs#externalRecordRef`. Unlike a strongRef the CID is optional:
53
+ * consumers resolve the AT-URI live so the reference tracks edits to the
54
+ * target, and the CID is a best-effort integrity hint only.
55
+ */
56
+ declare const externalRecordRefSchema: z.ZodObject<{
57
+ uri: z.ZodString;
58
+ cid: z.ZodOptional<z.ZodString>;
59
+ }, z.core.$strip>;
60
+ /**
61
+ * Shared reference to an organization or person named by a record. Mirrors
62
+ * `id.sifa.defs#agentRef`. `name` is a point-in-time snapshot label captured
63
+ * when the record was saved; `did` and `entityRef` are the durable identity and
64
+ * should be resolved live. `name` is required so an empty object cannot validate
65
+ * as a no-op. `.passthrough()` (not `.strict()`): external apps may emit fields a
66
+ * newer schema will define, and dropping them on a round-trip would silently
67
+ * lose data.
68
+ */
69
+ declare const agentRefSchema: z.ZodObject<{
70
+ name: z.ZodString;
71
+ did: z.ZodOptional<z.ZodString>;
72
+ entityRef: z.ZodOptional<z.ZodString>;
73
+ }, z.core.$loose>;
74
+ type AgentRef = z.infer<typeof agentRefSchema>;
75
+ /**
76
+ * Self-labels shape from `com.atproto.label.defs#selfLabels`. Modelled
77
+ * permissively because clients rarely construct this directly; the AppView
78
+ * handles label validation.
79
+ */
80
+ declare const selfLabelsSchema: z.ZodObject<{
81
+ $type: z.ZodOptional<z.ZodLiteral<"com.atproto.label.defs#selfLabels">>;
82
+ values: z.ZodArray<z.ZodObject<{
83
+ val: z.ZodString;
84
+ }, z.core.$strip>>;
85
+ }, z.core.$strip>;
86
+
87
+ export { type AgentRef as A, agentRefSchema as a, atUriSchema as b, cidSchema as c, datetimeSchema as d, didSchema as e, externalRecordRefSchema as f, skillRefSchema as g, strongRefSchema as h, languageTagSchema as l, maxGraphemes as m, partialDateSchema as p, selfLabelsSchema as s, uriSchema as u };
@@ -0,0 +1,87 @@
1
+ import { z } from 'zod';
2
+
3
+ /**
4
+ * Grapheme-aware refinement matching the AT Protocol lexicon `maxGraphemes`
5
+ * constraint. JS strings are sequences of UTF-16 code units, but lexicon
6
+ * `maxGraphemes` counts user-perceived characters (grapheme clusters), so
7
+ * emoji sequences, regional indicators, ZWJ joins, and combining marks all
8
+ * count as one unit each. We use `Intl.Segmenter` to enforce this correctly.
9
+ */
10
+ declare function maxGraphemes(max: number): (value: string) => boolean;
11
+ /** Decentralized identifier, AT Protocol `format: did`. */
12
+ declare const didSchema: z.ZodString;
13
+ /** RFC 3339 datetime with timezone offset, AT Protocol `format: datetime`. */
14
+ declare const datetimeSchema: z.ZodString;
15
+ /**
16
+ * Freeform calendar date for user-facing profile dates (start/end, issued,
17
+ * completed, awarded, published, etc.). Accepts a bare year, year-month,
18
+ * year-month-day, or a full datetime (so a legacy record's RFC-3339 date maps
19
+ * through on backfill without loss). NOT strict `datetime` -- users typically
20
+ * remember only month/year, and LinkedIn-importer writes carry partial dates,
21
+ * so the lexicons document these as freeform `YYYY-MM` / `YYYY-MM-DD`. Record
22
+ * metadata like `createdAt` stays on `datetimeSchema`.
23
+ */
24
+ declare const partialDateSchema: z.ZodString;
25
+ /** Generic AT-URI, AT Protocol `format: at-uri`. */
26
+ declare const atUriSchema: z.ZodString;
27
+ /** Content identifier, AT Protocol `format: cid`. Loose validation -- accepts CIDv0 and CIDv1. */
28
+ declare const cidSchema: z.ZodString;
29
+ /** BCP 47 language tag, AT Protocol `format: language`. */
30
+ declare const languageTagSchema: z.ZodString;
31
+ /** Generic URI, AT Protocol `format: uri`. */
32
+ declare const uriSchema: z.ZodString;
33
+ /**
34
+ * StrongRef shape from `com.atproto.repo.strongRef` -- pins a record by both
35
+ * AT-URI (identity) and CID (version).
36
+ */
37
+ declare const strongRefSchema: z.ZodObject<{
38
+ uri: z.ZodString;
39
+ cid: z.ZodString;
40
+ }, z.core.$strip>;
41
+ /**
42
+ * Reference to an `id.sifa.profile.skill` record by AT-URI. Mirrors
43
+ * `id.sifa.defs#skillRef`, which carries no CID at all: skills are mutable
44
+ * records in the same user's repo, so the reference resolves live and tracks
45
+ * edits to the target.
46
+ */
47
+ declare const skillRefSchema: z.ZodObject<{
48
+ uri: z.ZodString;
49
+ }, z.core.$strip>;
50
+ /**
51
+ * Reference to a record by AT-URI, with an optional CID. Mirrors
52
+ * `id.sifa.defs#externalRecordRef`. Unlike a strongRef the CID is optional:
53
+ * consumers resolve the AT-URI live so the reference tracks edits to the
54
+ * target, and the CID is a best-effort integrity hint only.
55
+ */
56
+ declare const externalRecordRefSchema: z.ZodObject<{
57
+ uri: z.ZodString;
58
+ cid: z.ZodOptional<z.ZodString>;
59
+ }, z.core.$strip>;
60
+ /**
61
+ * Shared reference to an organization or person named by a record. Mirrors
62
+ * `id.sifa.defs#agentRef`. `name` is a point-in-time snapshot label captured
63
+ * when the record was saved; `did` and `entityRef` are the durable identity and
64
+ * should be resolved live. `name` is required so an empty object cannot validate
65
+ * as a no-op. `.passthrough()` (not `.strict()`): external apps may emit fields a
66
+ * newer schema will define, and dropping them on a round-trip would silently
67
+ * lose data.
68
+ */
69
+ declare const agentRefSchema: z.ZodObject<{
70
+ name: z.ZodString;
71
+ did: z.ZodOptional<z.ZodString>;
72
+ entityRef: z.ZodOptional<z.ZodString>;
73
+ }, z.core.$loose>;
74
+ type AgentRef = z.infer<typeof agentRefSchema>;
75
+ /**
76
+ * Self-labels shape from `com.atproto.label.defs#selfLabels`. Modelled
77
+ * permissively because clients rarely construct this directly; the AppView
78
+ * handles label validation.
79
+ */
80
+ declare const selfLabelsSchema: z.ZodObject<{
81
+ $type: z.ZodOptional<z.ZodLiteral<"com.atproto.label.defs#selfLabels">>;
82
+ values: z.ZodArray<z.ZodObject<{
83
+ val: z.ZodString;
84
+ }, z.core.$strip>>;
85
+ }, z.core.$strip>;
86
+
87
+ export { type AgentRef as A, agentRefSchema as a, atUriSchema as b, cidSchema as c, datetimeSchema as d, didSchema as e, externalRecordRefSchema as f, skillRefSchema as g, strongRefSchema as h, languageTagSchema as l, maxGraphemes as m, partialDateSchema as p, selfLabelsSchema as s, uriSchema as u };
@@ -1,4 +1,4 @@
1
- import { w as PresentationLinkView, b as PdsProviderInfo } from './index-E2qQbMnv.cjs';
1
+ import { w as PresentationLinkView, b as PdsProviderInfo } from './index-66ul8ibE.cjs';
2
2
 
3
3
  /**
4
4
  * Types for the `id.sifa.getProfileView` XRPC query: the aggregated public
@@ -1,4 +1,4 @@
1
- import { w as PresentationLinkView, b as PdsProviderInfo } from './index-E2qQbMnv.js';
1
+ import { w as PresentationLinkView, b as PdsProviderInfo } from './index-C13I8diU.js';
2
2
 
3
3
  /**
4
4
  * Types for the `id.sifa.getProfileView` XRPC query: the aggregated public
@@ -1,12 +1,12 @@
1
1
  import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
- import { S as SifaApiConfig, s as sifaQueryKeys, W as WriteResult, aF as RefreshPdsResult, aZ as UpdateProfileOverrideInput, a_ as UpdateProfileSelfInput, a$ as UploadAvatarResult, b0 as UploadPronunciationAudioResult, C as CreateResult, ao as PrimarySection, aT as SubCategoryBulkResult, at as ProfileLocationInput, r as ExternalAccountInput, p as CreateExternalAccountResult, b1 as VerifyExternalAccountResult, E as EndorsementInput, n as ConfirmationInput, o as ConfirmationSubjectInput, _ as GivenConfirmation, an as PendingConfirmationsPage, a9 as InboxCounts, q as DismissUnlinkedPositionInput, aY as UnlinkedPositionsResult, ap as ProfileCompleteness, aE as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, a8 as HideProfileItemInput, a3 as HiddenActivityItem, a7 as HideActivityItemInput, aW as UnhideActivityItemInput, aS as StatsResponse, k as AppRegistryEntry, a4 as HiddenApp, d as AccountSummary, Q as FilterOptions, aN as SearchFilters, aO as SearchResponse, aR as SkillSearchResult, cH as CompanySearchFilters, cI as CompanySearchResponse, t as FeaturedProfile, aQ as SimilarProfile, O as FetchSuggestionsOptions, aV as SuggestionsResponse, V as FollowUserResult, y as FetchFollowListOptions, R as FollowListPage, X as FollowingResponse, G as FetchFollowingFeedOptions, z as FetchFollowProfilePageOptions, U as FollowProfilePageResponse, F as FeatureAllowlistResponse, i as AdminReviewQueues, v as FetchActivityFeedOptions, e as ActivityFeedResponse, h as ActivityTeaserResponse, a2 as HeatmapResponse, ab as MyGithubPullRequestsResponse, c as AccountCheckResult, aD as ReactionStatus, aC as ReactionResult, aB as ReactionError, aM as RoadmapVotesResponse, l as CastRoadmapVoteResult, D as DeleteAccountResult, aH as ResetProfileResult, b2 as WipePreview, aG as RepoDeleteInput, ad as OrgClaimResult, aj as OrgProfileUpdateResult, ae as OrgDomainChallengeResult, af as OrgDomainVerifyResult, ag as OrgNotificationEmailAddResult, ah as OrgNotificationEmailRemoveResult } from './org-BftCzySH.js';
3
+ import { S as SifaApiConfig, s as sifaQueryKeys, W as WriteResult, aF as RefreshPdsResult, aZ as UpdateProfileOverrideInput, a_ as UpdateProfileSelfInput, a$ as UploadAvatarResult, b0 as UploadPronunciationAudioResult, C as CreateResult, ao as PrimarySection, aT as SubCategoryBulkResult, at as ProfileLocationInput, r as ExternalAccountInput, p as CreateExternalAccountResult, b1 as VerifyExternalAccountResult, E as EndorsementInput, n as ConfirmationInput, o as ConfirmationSubjectInput, _ as GivenConfirmation, an as PendingConfirmationsPage, a9 as InboxCounts, q as DismissUnlinkedPositionInput, aY as UnlinkedPositionsResult, ap as ProfileCompleteness, aE as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, a8 as HideProfileItemInput, a3 as HiddenActivityItem, a7 as HideActivityItemInput, aW as UnhideActivityItemInput, aS as StatsResponse, k as AppRegistryEntry, a4 as HiddenApp, d as AccountSummary, Q as FilterOptions, aN as SearchFilters, aO as SearchResponse, aR as SkillSearchResult, cH as CompanySearchFilters, cI as CompanySearchResponse, t as FeaturedProfile, aQ as SimilarProfile, O as FetchSuggestionsOptions, aV as SuggestionsResponse, V as FollowUserResult, y as FetchFollowListOptions, R as FollowListPage, X as FollowingResponse, G as FetchFollowingFeedOptions, z as FetchFollowProfilePageOptions, U as FollowProfilePageResponse, F as FeatureAllowlistResponse, i as AdminReviewQueues, v as FetchActivityFeedOptions, e as ActivityFeedResponse, h as ActivityTeaserResponse, a2 as HeatmapResponse, ab as MyGithubPullRequestsResponse, c as AccountCheckResult, aD as ReactionStatus, aC as ReactionResult, aB as ReactionError, aM as RoadmapVotesResponse, l as CastRoadmapVoteResult, D as DeleteAccountResult, aH as ResetProfileResult, b2 as WipePreview, aG as RepoDeleteInput, ad as OrgClaimResult, aj as OrgProfileUpdateResult, ae as OrgDomainChallengeResult, af as OrgDomainVerifyResult, ag as OrgNotificationEmailAddResult, ah as OrgNotificationEmailRemoveResult } from './org-1bHLKAz5.js';
4
4
  import * as _tanstack_react_query from '@tanstack/react-query';
5
5
  import { UseQueryOptions, UseMutationOptions, UseInfiniteQueryOptions, InfiniteData } from '@tanstack/react-query';
6
- import { c as Profile, d as ProfilePosition, S as SkillRef, p as ExternalAccount, Q as SkillSuggestion, s as OrgFloorVerdict } from './index-E2qQbMnv.js';
7
- import { n as ProfileView, t as RepoDeleteResult, w as RepoInventory } from './types-CLrLfvXz.js';
6
+ import { c as Profile, d as ProfilePosition, S as SkillRef, p as ExternalAccount, Q as SkillSuggestion, s as OrgFloorVerdict } from './index-C13I8diU.js';
7
+ import { n as ProfileView, t as RepoDeleteResult, w as RepoInventory } from './types-YpOch4Ho.js';
8
8
  import { j as EntitySearchResponse, E as EntitySearchResult, d as EntityMintDomainResponse, h as EntityResolveDomainResponse, o as EntitySelectResponse, m as EntitySelectRequest, y as FollowFeedPage, s as FeatureFlag } from './feed-BMm9Pkew.js';
9
- import { O as OrgClaimRequestInput, a as OrgProfileUpdateRequestInput, b as OrgDomainChallengeRequestInput, c as OrgDomainVerifyRequestInput, d as OrgNotificationEmailRequestInput } from './org-settings-CZ_tmAYl.js';
9
+ import { O as OrgClaimRequestInput, h as OrgProfileUpdateRequestInput, b as OrgDomainChallengeRequestInput, d as OrgDomainVerifyRequestInput, f as OrgNotificationEmailRequestInput } from './org-settings-B8e01iZx.js';
10
10
 
11
11
  interface SifaProviderProps {
12
12
  config: SifaApiConfig;
@@ -1,12 +1,12 @@
1
1
  import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
- import { S as SifaApiConfig, s as sifaQueryKeys, W as WriteResult, aF as RefreshPdsResult, aZ as UpdateProfileOverrideInput, a_ as UpdateProfileSelfInput, a$ as UploadAvatarResult, b0 as UploadPronunciationAudioResult, C as CreateResult, ao as PrimarySection, aT as SubCategoryBulkResult, at as ProfileLocationInput, r as ExternalAccountInput, p as CreateExternalAccountResult, b1 as VerifyExternalAccountResult, E as EndorsementInput, n as ConfirmationInput, o as ConfirmationSubjectInput, _ as GivenConfirmation, an as PendingConfirmationsPage, a9 as InboxCounts, q as DismissUnlinkedPositionInput, aY as UnlinkedPositionsResult, ap as ProfileCompleteness, aE as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, a8 as HideProfileItemInput, a3 as HiddenActivityItem, a7 as HideActivityItemInput, aW as UnhideActivityItemInput, aS as StatsResponse, k as AppRegistryEntry, a4 as HiddenApp, d as AccountSummary, Q as FilterOptions, aN as SearchFilters, aO as SearchResponse, aR as SkillSearchResult, cH as CompanySearchFilters, cI as CompanySearchResponse, t as FeaturedProfile, aQ as SimilarProfile, O as FetchSuggestionsOptions, aV as SuggestionsResponse, V as FollowUserResult, y as FetchFollowListOptions, R as FollowListPage, X as FollowingResponse, G as FetchFollowingFeedOptions, z as FetchFollowProfilePageOptions, U as FollowProfilePageResponse, F as FeatureAllowlistResponse, i as AdminReviewQueues, v as FetchActivityFeedOptions, e as ActivityFeedResponse, h as ActivityTeaserResponse, a2 as HeatmapResponse, ab as MyGithubPullRequestsResponse, c as AccountCheckResult, aD as ReactionStatus, aC as ReactionResult, aB as ReactionError, aM as RoadmapVotesResponse, l as CastRoadmapVoteResult, D as DeleteAccountResult, aH as ResetProfileResult, b2 as WipePreview, aG as RepoDeleteInput, ad as OrgClaimResult, aj as OrgProfileUpdateResult, ae as OrgDomainChallengeResult, af as OrgDomainVerifyResult, ag as OrgNotificationEmailAddResult, ah as OrgNotificationEmailRemoveResult } from './org-DhAmipS-.cjs';
3
+ import { S as SifaApiConfig, s as sifaQueryKeys, W as WriteResult, aF as RefreshPdsResult, aZ as UpdateProfileOverrideInput, a_ as UpdateProfileSelfInput, a$ as UploadAvatarResult, b0 as UploadPronunciationAudioResult, C as CreateResult, ao as PrimarySection, aT as SubCategoryBulkResult, at as ProfileLocationInput, r as ExternalAccountInput, p as CreateExternalAccountResult, b1 as VerifyExternalAccountResult, E as EndorsementInput, n as ConfirmationInput, o as ConfirmationSubjectInput, _ as GivenConfirmation, an as PendingConfirmationsPage, a9 as InboxCounts, q as DismissUnlinkedPositionInput, aY as UnlinkedPositionsResult, ap as ProfileCompleteness, aE as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, a8 as HideProfileItemInput, a3 as HiddenActivityItem, a7 as HideActivityItemInput, aW as UnhideActivityItemInput, aS as StatsResponse, k as AppRegistryEntry, a4 as HiddenApp, d as AccountSummary, Q as FilterOptions, aN as SearchFilters, aO as SearchResponse, aR as SkillSearchResult, cH as CompanySearchFilters, cI as CompanySearchResponse, t as FeaturedProfile, aQ as SimilarProfile, O as FetchSuggestionsOptions, aV as SuggestionsResponse, V as FollowUserResult, y as FetchFollowListOptions, R as FollowListPage, X as FollowingResponse, G as FetchFollowingFeedOptions, z as FetchFollowProfilePageOptions, U as FollowProfilePageResponse, F as FeatureAllowlistResponse, i as AdminReviewQueues, v as FetchActivityFeedOptions, e as ActivityFeedResponse, h as ActivityTeaserResponse, a2 as HeatmapResponse, ab as MyGithubPullRequestsResponse, c as AccountCheckResult, aD as ReactionStatus, aC as ReactionResult, aB as ReactionError, aM as RoadmapVotesResponse, l as CastRoadmapVoteResult, D as DeleteAccountResult, aH as ResetProfileResult, b2 as WipePreview, aG as RepoDeleteInput, ad as OrgClaimResult, aj as OrgProfileUpdateResult, ae as OrgDomainChallengeResult, af as OrgDomainVerifyResult, ag as OrgNotificationEmailAddResult, ah as OrgNotificationEmailRemoveResult } from './org-DRb5WQq3.cjs';
4
4
  import * as _tanstack_react_query from '@tanstack/react-query';
5
5
  import { UseQueryOptions, UseMutationOptions, UseInfiniteQueryOptions, InfiniteData } from '@tanstack/react-query';
6
- import { c as Profile, d as ProfilePosition, S as SkillRef, p as ExternalAccount, Q as SkillSuggestion, s as OrgFloorVerdict } from './index-E2qQbMnv.cjs';
7
- import { n as ProfileView, t as RepoDeleteResult, w as RepoInventory } from './types-2qTC_DBy.cjs';
6
+ import { c as Profile, d as ProfilePosition, S as SkillRef, p as ExternalAccount, Q as SkillSuggestion, s as OrgFloorVerdict } from './index-66ul8ibE.cjs';
7
+ import { n as ProfileView, t as RepoDeleteResult, w as RepoInventory } from './types-CDrbMqyV.cjs';
8
8
  import { j as EntitySearchResponse, E as EntitySearchResult, d as EntityMintDomainResponse, h as EntityResolveDomainResponse, o as EntitySelectResponse, m as EntitySelectRequest, y as FollowFeedPage, s as FeatureFlag } from './feed-BMm9Pkew.cjs';
9
- import { O as OrgClaimRequestInput, a as OrgProfileUpdateRequestInput, b as OrgDomainChallengeRequestInput, c as OrgDomainVerifyRequestInput, d as OrgNotificationEmailRequestInput } from './org-settings-CZ_tmAYl.cjs';
9
+ import { O as OrgClaimRequestInput, h as OrgProfileUpdateRequestInput, b as OrgDomainChallengeRequestInput, d as OrgDomainVerifyRequestInput, f as OrgNotificationEmailRequestInput } from './org-settings-B8e01iZx.cjs';
10
10
 
11
11
  interface SifaProviderProps {
12
12
  config: SifaApiConfig;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@singi-labs/sifa-sdk",
3
- "version": "0.18.18",
3
+ "version": "0.18.20",
4
4
  "description": "Sifa SDK — public client library for the Sifa AppView on AT Protocol. Shared by sifa-web and sifa-app.",
5
5
  "license": "MIT",
6
6
  "type": "module",