@singi-labs/sifa-sdk 0.22.0 → 0.23.0

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 (65) hide show
  1. package/dist/{follow-profile-CgLLLQtJ.d.cts → follow-profile-BG_6eZwW.d.cts} +1 -1
  2. package/dist/{follow-profile-CVcA2w1v.d.ts → follow-profile-DGZzB5iM.d.ts} +1 -1
  3. package/dist/{index-BQAKeEoj.d.cts → index-BKvI1Bvg.d.cts} +1 -1
  4. package/dist/{index-DDh2RLvx.d.ts → index-BR8LDBo1.d.ts} +1 -1
  5. package/dist/index.cjs +30 -7
  6. package/dist/index.cjs.map +1 -1
  7. package/dist/index.d.cts +11 -11
  8. package/dist/index.d.ts +11 -11
  9. package/dist/index.js +3 -1
  10. package/dist/index.js.map +1 -1
  11. package/dist/jsonld/index.d.cts +2 -2
  12. package/dist/jsonld/index.d.ts +2 -2
  13. package/dist/{network-map-2OKh3wSB.d.ts → network-map-CMyjk6jc.d.ts} +4 -4
  14. package/dist/{network-map-DJonNOl0.d.cts → network-map-CqLYThmY.d.cts} +4 -4
  15. package/dist/{org-settings-BShvhyFp.d.ts → org-settings-BliQdqbB.d.cts} +57 -1
  16. package/dist/{profile-investment-QSwX2GL5.d.cts → profile-investment-BmuXFlZw.d.cts} +2 -0
  17. package/dist/{profile-investment-QSwX2GL5.d.ts → profile-investment-BmuXFlZw.d.ts} +2 -0
  18. package/dist/{org-settings-C73Sin5E.d.cts → profile-self-D59D_rhI.d.ts} +57 -1
  19. package/dist/{profile-summary-BCOKt3qS.d.cts → profile-summary-CoTNGDpt.d.cts} +1 -1
  20. package/dist/{profile-summary-DF8-evvA.d.ts → profile-summary-Sv6rqQbx.d.ts} +1 -1
  21. package/dist/publishing/index.cjs +21 -1
  22. package/dist/publishing/index.cjs.map +1 -1
  23. package/dist/query/fetchers/index.cjs +21 -1
  24. package/dist/query/fetchers/index.cjs.map +1 -1
  25. package/dist/query/fetchers/index.d.cts +9 -9
  26. package/dist/query/fetchers/index.d.ts +9 -9
  27. package/dist/query/fetchers/profile-mutations.js.map +1 -1
  28. package/dist/query/hooks/index.cjs +21 -1
  29. package/dist/query/hooks/index.cjs.map +1 -1
  30. package/dist/query/hooks/index.d.cts +7 -7
  31. package/dist/query/hooks/index.d.ts +7 -7
  32. package/dist/query/index.cjs.map +1 -1
  33. package/dist/query/index.d.cts +12 -12
  34. package/dist/query/index.d.ts +12 -12
  35. package/dist/resume/index.d.cts +2 -2
  36. package/dist/resume/index.d.ts +2 -2
  37. package/dist/schemas/index.cjs +29 -6
  38. package/dist/schemas/index.cjs.map +1 -1
  39. package/dist/schemas/index.d.cts +3 -3
  40. package/dist/schemas/index.d.ts +3 -3
  41. package/dist/schemas/index.js +2 -0
  42. package/dist/schemas/index.js.map +1 -1
  43. package/dist/schemas/profile-self.js +18 -6
  44. package/dist/schemas/profile-self.js.map +1 -1
  45. package/dist/schemas/shared.js +28 -1
  46. package/dist/schemas/shared.js.map +1 -1
  47. package/dist/schemas/write/index.cjs +33 -6
  48. package/dist/schemas/write/index.cjs.map +1 -1
  49. package/dist/schemas/write/index.d.cts +2 -45
  50. package/dist/schemas/write/index.d.ts +2 -45
  51. package/dist/schemas/write/index.js +5 -1
  52. package/dist/schemas/write/index.js.map +1 -1
  53. package/dist/schemas/write/profile-self.js +19 -5
  54. package/dist/schemas/write/profile-self.js.map +1 -1
  55. package/dist/testing/index.d.cts +2 -2
  56. package/dist/testing/index.d.ts +2 -2
  57. package/dist/{types-JydVIhN5.d.cts → types-BC4A9-W9.d.cts} +2 -2
  58. package/dist/{types-CkomzDlY.d.ts → types-CcVRIHcX.d.ts} +2 -2
  59. package/dist/{use-user-settings-DQ6Dyby7.d.ts → use-user-settings-CI9eZQpp.d.ts} +11 -6
  60. package/dist/{use-user-settings-Bn6g8bgr.d.cts → use-user-settings-CfQKSBAC.d.cts} +11 -6
  61. package/dist/{user-settings-BdNrDa9O.d.ts → user-settings-BVFxLAOa.d.cts} +6 -11
  62. package/dist/{user-settings-C8JUD4DM.d.cts → user-settings-C65eFsPR.d.ts} +6 -11
  63. package/dist/{verification-providers-DeyGqaoC.d.cts → verification-providers-DQLIOSCK.d.cts} +7 -1
  64. package/dist/{verification-providers-DeyGqaoC.d.ts → verification-providers-DQLIOSCK.d.ts} +7 -1
  65. package/package.json +1 -1
@@ -1,13 +1,20 @@
1
1
  // src/schemas/write/profile-self.ts
2
2
  import { z } from "zod";
3
3
  import { RPG_AVATAR_SOURCE } from "../../rpg/avatar.js";
4
+ import {
5
+ profileAboutSchema,
6
+ profileDisplayNameSchema,
7
+ profileHeadlineSchema,
8
+ profileNameSchema,
9
+ profilePronounsSchema
10
+ } from "../shared.js";
4
11
  import { writeLocationSchema } from "./shared.js";
5
12
  var ProfileSelfWriteSchema = z.object({
6
- headline: z.string().max(300).optional(),
7
- about: z.string().max(5e4).optional(),
8
- givenName: z.string().max(640).optional(),
9
- familyName: z.string().max(640).optional(),
10
- namePronunciation: z.string().max(640).optional(),
13
+ headline: profileHeadlineSchema.optional(),
14
+ about: profileAboutSchema.optional(),
15
+ givenName: profileNameSchema.optional(),
16
+ familyName: profileNameSchema.optional(),
17
+ namePronunciation: profileNameSchema.optional(),
11
18
  industries: z.array(
12
19
  z.object({
13
20
  industry: z.string().max(100),
@@ -29,7 +36,14 @@ var ProfileSelfWriteSchema = z.object({
29
36
  */
30
37
  avatarSource: z.enum([RPG_AVATAR_SOURCE]).nullable().optional()
31
38
  }).passthrough();
39
+ var ProfileOverrideWriteSchema = z.object({
40
+ headline: profileHeadlineSchema.nullish(),
41
+ about: profileAboutSchema.nullish(),
42
+ displayName: profileDisplayNameSchema.nullish(),
43
+ pronouns: profilePronounsSchema.nullish()
44
+ });
32
45
  export {
46
+ ProfileOverrideWriteSchema,
33
47
  ProfileSelfWriteSchema
34
48
  };
35
49
  //# sourceMappingURL=profile-self.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/schemas/write/profile-self.ts"],"sourcesContent":["import { z } from 'zod';\n\nimport { RPG_AVATAR_SOURCE } from '../../rpg/avatar.js';\nimport { writeLocationSchema } from './shared.js';\n\n/**\n * Schema enforced by `POST /profile/self` on sifa-api.\n *\n * `.passthrough()` so the API accepts fields not yet enumerated here (used for\n * gradual rollout of new profile-self keys without requiring lockstep bumps\n * between web/api). Note this means client validation on this schema will\n * NEVER reject \"unknown\" fields — the divergence is intentional.\n *\n * Grapheme caps (e.g. 64 on given/familyName) are enforced client-side by the\n * SDK's lexicon schema; the write schema only guards the byte-length ceiling.\n */\nexport const ProfileSelfWriteSchema = z\n .object({\n headline: z.string().max(300).optional(),\n about: z.string().max(50000).optional(),\n givenName: z.string().max(640).optional(),\n familyName: z.string().max(640).optional(),\n namePronunciation: z.string().max(640).optional(),\n industries: z\n .array(\n z.object({\n industry: z.string().max(100),\n domain: z.string().max(100).optional(),\n }),\n )\n .max(10)\n .optional(),\n location: writeLocationSchema,\n openTo: z.array(z.string()).max(10).optional(),\n preferredWorkplace: z.array(z.string()).max(5).optional(),\n availableFromUtc: z.number().int().min(0).max(23).optional(),\n availableToUtc: z.number().int().min(0).max(23).optional(),\n langs: z.array(z.string()).max(3).optional(),\n discoverable: z.boolean().optional(),\n /**\n * `actor.rpg.sprite` uses the user's rpg.actor character as their avatar;\n * `null` turns it off (the uploaded avatar, or the Bluesky one, comes\n * back). Omitted leaves the current choice unchanged. Only values Sifa can\n * render are accepted.\n */\n avatarSource: z.enum([RPG_AVATAR_SOURCE]).nullable().optional(),\n })\n .passthrough();\n\nexport type ProfileSelfWriteInput = z.infer<typeof ProfileSelfWriteSchema>;\n"],"mappings":";AAAA,SAAS,SAAS;AAElB,SAAS,yBAAyB;AAClC,SAAS,2BAA2B;AAa7B,IAAM,yBAAyB,EACnC,OAAO;AAAA,EACN,UAAU,EAAE,OAAO,EAAE,IAAI,GAAG,EAAE,SAAS;AAAA,EACvC,OAAO,EAAE,OAAO,EAAE,IAAI,GAAK,EAAE,SAAS;AAAA,EACtC,WAAW,EAAE,OAAO,EAAE,IAAI,GAAG,EAAE,SAAS;AAAA,EACxC,YAAY,EAAE,OAAO,EAAE,IAAI,GAAG,EAAE,SAAS;AAAA,EACzC,mBAAmB,EAAE,OAAO,EAAE,IAAI,GAAG,EAAE,SAAS;AAAA,EAChD,YAAY,EACT;AAAA,IACC,EAAE,OAAO;AAAA,MACP,UAAU,EAAE,OAAO,EAAE,IAAI,GAAG;AAAA,MAC5B,QAAQ,EAAE,OAAO,EAAE,IAAI,GAAG,EAAE,SAAS;AAAA,IACvC,CAAC;AAAA,EACH,EACC,IAAI,EAAE,EACN,SAAS;AAAA,EACZ,UAAU;AAAA,EACV,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,EAAE,EAAE,SAAS;AAAA,EAC7C,oBAAoB,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,EAAE,SAAS;AAAA,EACxD,kBAAkB,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE,SAAS;AAAA,EAC3D,gBAAgB,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE,SAAS;AAAA,EACzD,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,EAAE,SAAS;AAAA,EAC3C,cAAc,EAAE,QAAQ,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOnC,cAAc,EAAE,KAAK,CAAC,iBAAiB,CAAC,EAAE,SAAS,EAAE,SAAS;AAChE,CAAC,EACA,YAAY;","names":[]}
1
+ {"version":3,"sources":["../../../src/schemas/write/profile-self.ts"],"sourcesContent":["import { z } from 'zod';\n\nimport { RPG_AVATAR_SOURCE } from '../../rpg/avatar.js';\nimport {\n profileAboutSchema,\n profileDisplayNameSchema,\n profileHeadlineSchema,\n profileNameSchema,\n profilePronounsSchema,\n} from '../shared.js';\nimport { writeLocationSchema } from './shared.js';\n\n/**\n * Schema enforced by `POST /profile/self` on sifa-api.\n *\n * `.passthrough()` so the API accepts fields not yet enumerated here (used for\n * gradual rollout of new profile-self keys without requiring lockstep bumps\n * between web/api). Note this means client validation on this schema will\n * NEVER reject \"unknown\" fields — the divergence is intentional.\n *\n * headline, about, givenName, familyName and namePronunciation match the\n * `id.sifa.profile.self` lexicon's grapheme and UTF-8 byte limits. Other fields\n * (for example `langs` formats) are not checked against the lexicon here.\n */\nexport const ProfileSelfWriteSchema = z\n .object({\n headline: profileHeadlineSchema.optional(),\n about: profileAboutSchema.optional(),\n givenName: profileNameSchema.optional(),\n familyName: profileNameSchema.optional(),\n namePronunciation: profileNameSchema.optional(),\n industries: z\n .array(\n z.object({\n industry: z.string().max(100),\n domain: z.string().max(100).optional(),\n }),\n )\n .max(10)\n .optional(),\n location: writeLocationSchema,\n openTo: z.array(z.string()).max(10).optional(),\n preferredWorkplace: z.array(z.string()).max(5).optional(),\n availableFromUtc: z.number().int().min(0).max(23).optional(),\n availableToUtc: z.number().int().min(0).max(23).optional(),\n langs: z.array(z.string()).max(3).optional(),\n discoverable: z.boolean().optional(),\n /**\n * `actor.rpg.sprite` uses the user's rpg.actor character as their avatar;\n * `null` turns it off (the uploaded avatar, or the Bluesky one, comes\n * back). Omitted leaves the current choice unchanged. Only values Sifa can\n * render are accepted.\n */\n avatarSource: z.enum([RPG_AVATAR_SOURCE]).nullable().optional(),\n })\n .passthrough();\n\nexport type ProfileSelfWriteInput = z.infer<typeof ProfileSelfWriteSchema>;\n\n/**\n * Override fields validated by sifa-api's profile override route. `displayName`\n * and `pronouns` are not part of `ProfileSelfWriteSchema`; every field is\n * nullish (`null` clears an override). Limits mirror `id.sifa.profile.self`.\n */\nexport const ProfileOverrideWriteSchema = z.object({\n headline: profileHeadlineSchema.nullish(),\n about: profileAboutSchema.nullish(),\n displayName: profileDisplayNameSchema.nullish(),\n pronouns: profilePronounsSchema.nullish(),\n});\n\nexport type ProfileOverrideWriteInput = z.infer<typeof ProfileOverrideWriteSchema>;\n"],"mappings":";AAAA,SAAS,SAAS;AAElB,SAAS,yBAAyB;AAClC;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,2BAA2B;AAc7B,IAAM,yBAAyB,EACnC,OAAO;AAAA,EACN,UAAU,sBAAsB,SAAS;AAAA,EACzC,OAAO,mBAAmB,SAAS;AAAA,EACnC,WAAW,kBAAkB,SAAS;AAAA,EACtC,YAAY,kBAAkB,SAAS;AAAA,EACvC,mBAAmB,kBAAkB,SAAS;AAAA,EAC9C,YAAY,EACT;AAAA,IACC,EAAE,OAAO;AAAA,MACP,UAAU,EAAE,OAAO,EAAE,IAAI,GAAG;AAAA,MAC5B,QAAQ,EAAE,OAAO,EAAE,IAAI,GAAG,EAAE,SAAS;AAAA,IACvC,CAAC;AAAA,EACH,EACC,IAAI,EAAE,EACN,SAAS;AAAA,EACZ,UAAU;AAAA,EACV,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,EAAE,EAAE,SAAS;AAAA,EAC7C,oBAAoB,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,EAAE,SAAS;AAAA,EACxD,kBAAkB,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE,SAAS;AAAA,EAC3D,gBAAgB,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE,SAAS;AAAA,EACzD,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,EAAE,SAAS;AAAA,EAC3C,cAAc,EAAE,QAAQ,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOnC,cAAc,EAAE,KAAK,CAAC,iBAAiB,CAAC,EAAE,SAAS,EAAE,SAAS;AAChE,CAAC,EACA,YAAY;AASR,IAAM,6BAA6B,EAAE,OAAO;AAAA,EACjD,UAAU,sBAAsB,QAAQ;AAAA,EACxC,OAAO,mBAAmB,QAAQ;AAAA,EAClC,aAAa,yBAAyB,QAAQ;AAAA,EAC9C,UAAU,sBAAsB,QAAQ;AAC1C,CAAC;","names":[]}
@@ -1,7 +1,7 @@
1
1
  import { E as ExportContact } from '../export-contact-D_krcTBH.cjs';
2
- import { c as Profile } from '../index-BQAKeEoj.cjs';
2
+ import { c as Profile } from '../index-BKvI1Bvg.cjs';
3
3
  import 'zod';
4
- import '../verification-providers-DeyGqaoC.cjs';
4
+ import '../verification-providers-DQLIOSCK.cjs';
5
5
 
6
6
  /**
7
7
  * Shared test data for the apps built on the SDK.
@@ -1,7 +1,7 @@
1
1
  import { E as ExportContact } from '../export-contact-D_krcTBH.js';
2
- import { c as Profile } from '../index-DDh2RLvx.js';
2
+ import { c as Profile } from '../index-BR8LDBo1.js';
3
3
  import 'zod';
4
- import '../verification-providers-DeyGqaoC.js';
4
+ import '../verification-providers-DQLIOSCK.js';
5
5
 
6
6
  /**
7
7
  * Shared test data for the apps built on the SDK.
@@ -1,5 +1,5 @@
1
- import { D as PresentationLinkView, b as PdsProviderInfo, Z as SkillSuggestion } from './index-BQAKeEoj.cjs';
2
- import { a as AccountVerification } from './verification-providers-DeyGqaoC.cjs';
1
+ import { D as PresentationLinkView, b as PdsProviderInfo, Z as SkillSuggestion } from './index-BKvI1Bvg.cjs';
2
+ import { a as AccountVerification } from './verification-providers-DQLIOSCK.cjs';
3
3
  import { z } from 'zod';
4
4
 
5
5
  /**
@@ -1,5 +1,5 @@
1
- import { D as PresentationLinkView, b as PdsProviderInfo, Z as SkillSuggestion } from './index-DDh2RLvx.js';
2
- import { a as AccountVerification } from './verification-providers-DeyGqaoC.js';
1
+ import { D as PresentationLinkView, b as PdsProviderInfo, Z as SkillSuggestion } from './index-BR8LDBo1.js';
2
+ import { a as AccountVerification } from './verification-providers-DQLIOSCK.js';
3
3
  import { z } from 'zod';
4
4
 
5
5
  /**
@@ -1,13 +1,13 @@
1
1
  import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
- import { a1 as SifaApiConfig, a0 as ApiFetchOptions, a2 as WriteResult, o as ProfileView, a3 as CreateResult, a5 as FilterOptions, S as SearchFilters, a8 as SearchResponse, a9 as SkillSearchResult, ai as CompanySearchFilters, aj as CompanySearchResponse, u as RepoDeleteResult, x as RepoInventory } from './types-CkomzDlY.js';
3
+ import { a1 as SifaApiConfig, a0 as ApiFetchOptions, a2 as WriteResult, o as ProfileView, a3 as CreateResult, a5 as FilterOptions, S as SearchFilters, a8 as SearchResponse, a9 as SkillSearchResult, ai as CompanySearchFilters, aj as CompanySearchResponse, u as RepoDeleteResult, x as RepoInventory } from './types-CcVRIHcX.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, Y as SkillRef, p as ExternalAccount, Z as SkillSuggestion, s as OrgFloorVerdict } from './index-DDh2RLvx.js';
7
- import { s as sifaQueryKeys, aJ as RefreshPdsResult, b9 as UpdateProfileOverrideInput, ba as UpdateProfileSelfInput, bb as UploadAvatarResult, bc as UploadPronunciationAudioResult, at as PrimarySection, b2 as SubCategoryBulkResult, ay as ProfileLocationInput, q as ExternalAccountInput, n as CreateExternalAccountResult, bg as VerifyExternalAccountResult, E as EndorsementInput, l as ConfirmationInput, m as ConfirmationSubjectInput, a3 as GivenConfirmation, as as PendingConfirmationsPage, ae as InboxCounts, p as DismissUnlinkedPositionInput, b7 as UnlinkedPositionsResult, o as DismissCompletenessSignalInput, au as ProfileCompleteness, aU as RpgClaimableResponse, aY as RpgStatusResponse, aI as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, ad as HideProfileItemInput, a8 as HiddenActivityItem, ac as HideActivityItemInput, b5 as UnhideActivityItemInput, f as ActivityPreferences, b0 as SiteActivityPresetResponse, b8 as UpdateActivityPreferencesInput, b1 as StatsResponse, i as AppRegistryEntry, a9 as HiddenApp, b as AccountSummary, r as FeaturedProfile, a$ as SimilarProfile, Q as FetchSuggestionsOptions, b4 as SuggestionsResponse, W as FollowUserResult, y as FetchFollowListOptions, T as FollowListPage, a0 as FollowingResponse, G as FetchFollowingFeedOptions, _ as FollowingFeedResponse, $ as FollowingFeedVersion, z as FetchFollowProfilePageOptions, V as FollowProfilePageResponse, F as FeatureAllowlistResponse, h as AdminReviewQueues, u as FetchActivityFeedOptions, c as ActivityFeedResponse, g as ActivityTeaserResponse, a7 as HeatmapResponse, ag as MyGithubPullRequestsResponse, A as AccountCheckResult, aH as ReactionStatus, aG as ReactionResult, aF as ReactionError, j as CastRoadmapVoteResult, aQ as RoadmapItemRef, D as DeleteAccountResult, aL as ResetProfileResult, bh as WipePreview, aK as RepoDeleteInput, ai as OrgClaimResult, ao as OrgProfileUpdateResult, aj as OrgDomainChallengeResult, ak as OrgDomainVerifyResult, al as OrgNotificationEmailAddResult, am as OrgNotificationEmailRemoveResult, bd as UserSettings } from './user-settings-BdNrDa9O.js';
6
+ import { c as Profile, d as ProfilePosition, Y as SkillRef, p as ExternalAccount, Z as SkillSuggestion, s as OrgFloorVerdict } from './index-BR8LDBo1.js';
7
+ import { s as sifaQueryKeys, aJ as RefreshPdsResult, b9 as UpdateProfileOverrideInput, ba as UpdateProfileSelfInput, bb as UploadAvatarResult, bc as UploadPronunciationAudioResult, at as PrimarySection, b2 as SubCategoryBulkResult, ay as ProfileLocationInput, q as ExternalAccountInput, n as CreateExternalAccountResult, bg as VerifyExternalAccountResult, E as EndorsementInput, l as ConfirmationInput, m as ConfirmationSubjectInput, a3 as GivenConfirmation, as as PendingConfirmationsPage, ae as InboxCounts, p as DismissUnlinkedPositionInput, b7 as UnlinkedPositionsResult, o as DismissCompletenessSignalInput, au as ProfileCompleteness, aU as RpgClaimableResponse, aY as RpgStatusResponse, aI as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, ad as HideProfileItemInput, a8 as HiddenActivityItem, ac as HideActivityItemInput, b5 as UnhideActivityItemInput, f as ActivityPreferences, b0 as SiteActivityPresetResponse, b8 as UpdateActivityPreferencesInput, b1 as StatsResponse, i as AppRegistryEntry, a9 as HiddenApp, b as AccountSummary, r as FeaturedProfile, a$ as SimilarProfile, Q as FetchSuggestionsOptions, b4 as SuggestionsResponse, W as FollowUserResult, y as FetchFollowListOptions, T as FollowListPage, a0 as FollowingResponse, G as FetchFollowingFeedOptions, _ as FollowingFeedResponse, $ as FollowingFeedVersion, z as FetchFollowProfilePageOptions, V as FollowProfilePageResponse, F as FeatureAllowlistResponse, h as AdminReviewQueues, u as FetchActivityFeedOptions, c as ActivityFeedResponse, g as ActivityTeaserResponse, a7 as HeatmapResponse, ag as MyGithubPullRequestsResponse, A as AccountCheckResult, aH as ReactionStatus, aG as ReactionResult, aF as ReactionError, j as CastRoadmapVoteResult, aQ as RoadmapItemRef, D as DeleteAccountResult, aL as ResetProfileResult, bh as WipePreview, aK as RepoDeleteInput, ai as OrgClaimResult, ao as OrgProfileUpdateResult, aj as OrgDomainChallengeResult, ak as OrgDomainVerifyResult, al as OrgNotificationEmailAddResult, am as OrgNotificationEmailRemoveResult, bd as UserSettings } from './user-settings-C65eFsPR.js';
8
8
  import { z } from 'zod';
9
- import { i as EntitySearchResponse, E as EntitySearchResult, c as EntityMintDomainResponse, g as EntityResolveDomainResponse, n as EntitySelectResponse, l as EntitySelectRequest, r as FeatureFlag } from './follow-profile-CVcA2w1v.js';
10
- import { O as OrgClaimRequestInput, h as OrgProfileUpdateRequestInput, b as OrgDomainChallengeRequestInput, d as OrgDomainVerifyRequestInput, f as OrgNotificationEmailRequestInput } from './org-settings-BShvhyFp.js';
9
+ import { i as EntitySearchResponse, E as EntitySearchResult, c as EntityMintDomainResponse, g as EntityResolveDomainResponse, n as EntitySelectResponse, l as EntitySelectRequest, r as FeatureFlag } from './follow-profile-DGZzB5iM.js';
10
+ import { O as OrgClaimRequestInput, h as OrgProfileUpdateRequestInput, b as OrgDomainChallengeRequestInput, d as OrgDomainVerifyRequestInput, f as OrgNotificationEmailRequestInput } from './profile-self-D59D_rhI.js';
11
11
 
12
12
  interface SifaProviderProps {
13
13
  config: SifaApiConfig;
@@ -274,7 +274,12 @@ declare function useGetProfileView(actor: string | undefined | null, options?: O
274
274
  */
275
275
  declare function useUpdateProfileSelf(ownerHandleOrDid: string, options?: Omit<UseMutationOptions<WriteResult, Error, UpdateProfileSelfInput>, 'mutationFn'>): _tanstack_react_query.UseMutationResult<WriteResult, Error, UpdateProfileSelfInput, unknown>;
276
276
  /** React hook for updating the authenticated user's profile override fields. */
277
- declare function useUpdateProfileOverride(ownerHandleOrDid: string, options?: Omit<UseMutationOptions<WriteResult, Error, UpdateProfileOverrideInput>, 'mutationFn'>): _tanstack_react_query.UseMutationResult<WriteResult, Error, UpdateProfileOverrideInput, unknown>;
277
+ declare function useUpdateProfileOverride(ownerHandleOrDid: string, options?: Omit<UseMutationOptions<WriteResult, Error, UpdateProfileOverrideInput>, 'mutationFn'>): _tanstack_react_query.UseMutationResult<WriteResult, Error, {
278
+ headline?: string | null | undefined;
279
+ about?: string | null | undefined;
280
+ displayName?: string | null | undefined;
281
+ pronouns?: string | null | undefined;
282
+ }, unknown>;
278
283
  /** React hook for re-pulling the authenticated user's PDS-side profile. */
279
284
  declare function useRefreshPds(ownerHandleOrDid: string, options?: Omit<UseMutationOptions<RefreshPdsResult, Error, void>, 'mutationFn'>): _tanstack_react_query.UseMutationResult<RefreshPdsResult, Error, void, unknown>;
280
285
  /**
@@ -1,13 +1,13 @@
1
1
  import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
- import { a1 as SifaApiConfig, a0 as ApiFetchOptions, a2 as WriteResult, o as ProfileView, a3 as CreateResult, a5 as FilterOptions, S as SearchFilters, a8 as SearchResponse, a9 as SkillSearchResult, ai as CompanySearchFilters, aj as CompanySearchResponse, u as RepoDeleteResult, x as RepoInventory } from './types-JydVIhN5.cjs';
3
+ import { a1 as SifaApiConfig, a0 as ApiFetchOptions, a2 as WriteResult, o as ProfileView, a3 as CreateResult, a5 as FilterOptions, S as SearchFilters, a8 as SearchResponse, a9 as SkillSearchResult, ai as CompanySearchFilters, aj as CompanySearchResponse, u as RepoDeleteResult, x as RepoInventory } from './types-BC4A9-W9.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, Y as SkillRef, p as ExternalAccount, Z as SkillSuggestion, s as OrgFloorVerdict } from './index-BQAKeEoj.cjs';
7
- import { s as sifaQueryKeys, aJ as RefreshPdsResult, b9 as UpdateProfileOverrideInput, ba as UpdateProfileSelfInput, bb as UploadAvatarResult, bc as UploadPronunciationAudioResult, at as PrimarySection, b2 as SubCategoryBulkResult, ay as ProfileLocationInput, q as ExternalAccountInput, n as CreateExternalAccountResult, bg as VerifyExternalAccountResult, E as EndorsementInput, l as ConfirmationInput, m as ConfirmationSubjectInput, a3 as GivenConfirmation, as as PendingConfirmationsPage, ae as InboxCounts, p as DismissUnlinkedPositionInput, b7 as UnlinkedPositionsResult, o as DismissCompletenessSignalInput, au as ProfileCompleteness, aU as RpgClaimableResponse, aY as RpgStatusResponse, aI as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, ad as HideProfileItemInput, a8 as HiddenActivityItem, ac as HideActivityItemInput, b5 as UnhideActivityItemInput, f as ActivityPreferences, b0 as SiteActivityPresetResponse, b8 as UpdateActivityPreferencesInput, b1 as StatsResponse, i as AppRegistryEntry, a9 as HiddenApp, b as AccountSummary, r as FeaturedProfile, a$ as SimilarProfile, Q as FetchSuggestionsOptions, b4 as SuggestionsResponse, W as FollowUserResult, y as FetchFollowListOptions, T as FollowListPage, a0 as FollowingResponse, G as FetchFollowingFeedOptions, _ as FollowingFeedResponse, $ as FollowingFeedVersion, z as FetchFollowProfilePageOptions, V as FollowProfilePageResponse, F as FeatureAllowlistResponse, h as AdminReviewQueues, u as FetchActivityFeedOptions, c as ActivityFeedResponse, g as ActivityTeaserResponse, a7 as HeatmapResponse, ag as MyGithubPullRequestsResponse, A as AccountCheckResult, aH as ReactionStatus, aG as ReactionResult, aF as ReactionError, j as CastRoadmapVoteResult, aQ as RoadmapItemRef, D as DeleteAccountResult, aL as ResetProfileResult, bh as WipePreview, aK as RepoDeleteInput, ai as OrgClaimResult, ao as OrgProfileUpdateResult, aj as OrgDomainChallengeResult, ak as OrgDomainVerifyResult, al as OrgNotificationEmailAddResult, am as OrgNotificationEmailRemoveResult, bd as UserSettings } from './user-settings-C8JUD4DM.cjs';
6
+ import { c as Profile, d as ProfilePosition, Y as SkillRef, p as ExternalAccount, Z as SkillSuggestion, s as OrgFloorVerdict } from './index-BKvI1Bvg.cjs';
7
+ import { s as sifaQueryKeys, aJ as RefreshPdsResult, b9 as UpdateProfileOverrideInput, ba as UpdateProfileSelfInput, bb as UploadAvatarResult, bc as UploadPronunciationAudioResult, at as PrimarySection, b2 as SubCategoryBulkResult, ay as ProfileLocationInput, q as ExternalAccountInput, n as CreateExternalAccountResult, bg as VerifyExternalAccountResult, E as EndorsementInput, l as ConfirmationInput, m as ConfirmationSubjectInput, a3 as GivenConfirmation, as as PendingConfirmationsPage, ae as InboxCounts, p as DismissUnlinkedPositionInput, b7 as UnlinkedPositionsResult, o as DismissCompletenessSignalInput, au as ProfileCompleteness, aU as RpgClaimableResponse, aY as RpgStatusResponse, aI as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, ad as HideProfileItemInput, a8 as HiddenActivityItem, ac as HideActivityItemInput, b5 as UnhideActivityItemInput, f as ActivityPreferences, b0 as SiteActivityPresetResponse, b8 as UpdateActivityPreferencesInput, b1 as StatsResponse, i as AppRegistryEntry, a9 as HiddenApp, b as AccountSummary, r as FeaturedProfile, a$ as SimilarProfile, Q as FetchSuggestionsOptions, b4 as SuggestionsResponse, W as FollowUserResult, y as FetchFollowListOptions, T as FollowListPage, a0 as FollowingResponse, G as FetchFollowingFeedOptions, _ as FollowingFeedResponse, $ as FollowingFeedVersion, z as FetchFollowProfilePageOptions, V as FollowProfilePageResponse, F as FeatureAllowlistResponse, h as AdminReviewQueues, u as FetchActivityFeedOptions, c as ActivityFeedResponse, g as ActivityTeaserResponse, a7 as HeatmapResponse, ag as MyGithubPullRequestsResponse, A as AccountCheckResult, aH as ReactionStatus, aG as ReactionResult, aF as ReactionError, j as CastRoadmapVoteResult, aQ as RoadmapItemRef, D as DeleteAccountResult, aL as ResetProfileResult, bh as WipePreview, aK as RepoDeleteInput, ai as OrgClaimResult, ao as OrgProfileUpdateResult, aj as OrgDomainChallengeResult, ak as OrgDomainVerifyResult, al as OrgNotificationEmailAddResult, am as OrgNotificationEmailRemoveResult, bd as UserSettings } from './user-settings-BVFxLAOa.cjs';
8
8
  import { z } from 'zod';
9
- import { i as EntitySearchResponse, E as EntitySearchResult, c as EntityMintDomainResponse, g as EntityResolveDomainResponse, n as EntitySelectResponse, l as EntitySelectRequest, r as FeatureFlag } from './follow-profile-CgLLLQtJ.cjs';
10
- import { O as OrgClaimRequestInput, a as OrgProfileUpdateRequestInput, b as OrgDomainChallengeRequestInput, c as OrgDomainVerifyRequestInput, d as OrgNotificationEmailRequestInput } from './org-settings-C73Sin5E.cjs';
9
+ import { i as EntitySearchResponse, E as EntitySearchResult, c as EntityMintDomainResponse, g as EntityResolveDomainResponse, n as EntitySelectResponse, l as EntitySelectRequest, r as FeatureFlag } from './follow-profile-BG_6eZwW.cjs';
10
+ import { O as OrgClaimRequestInput, a as OrgProfileUpdateRequestInput, b as OrgDomainChallengeRequestInput, c as OrgDomainVerifyRequestInput, d as OrgNotificationEmailRequestInput } from './org-settings-BliQdqbB.cjs';
11
11
 
12
12
  interface SifaProviderProps {
13
13
  config: SifaApiConfig;
@@ -274,7 +274,12 @@ declare function useGetProfileView(actor: string | undefined | null, options?: O
274
274
  */
275
275
  declare function useUpdateProfileSelf(ownerHandleOrDid: string, options?: Omit<UseMutationOptions<WriteResult, Error, UpdateProfileSelfInput>, 'mutationFn'>): _tanstack_react_query.UseMutationResult<WriteResult, Error, UpdateProfileSelfInput, unknown>;
276
276
  /** React hook for updating the authenticated user's profile override fields. */
277
- declare function useUpdateProfileOverride(ownerHandleOrDid: string, options?: Omit<UseMutationOptions<WriteResult, Error, UpdateProfileOverrideInput>, 'mutationFn'>): _tanstack_react_query.UseMutationResult<WriteResult, Error, UpdateProfileOverrideInput, unknown>;
277
+ declare function useUpdateProfileOverride(ownerHandleOrDid: string, options?: Omit<UseMutationOptions<WriteResult, Error, UpdateProfileOverrideInput>, 'mutationFn'>): _tanstack_react_query.UseMutationResult<WriteResult, Error, {
278
+ headline?: string | null | undefined;
279
+ about?: string | null | undefined;
280
+ displayName?: string | null | undefined;
281
+ pronouns?: string | null | undefined;
282
+ }, unknown>;
278
283
  /** React hook for re-pulling the authenticated user's PDS-side profile. */
279
284
  declare function useRefreshPds(ownerHandleOrDid: string, options?: Omit<UseMutationOptions<RefreshPdsResult, Error, void>, 'mutationFn'>): _tanstack_react_query.UseMutationResult<RefreshPdsResult, Error, void, unknown>;
280
285
  /**
@@ -1,9 +1,9 @@
1
- import { a2 as WriteResult, a1 as SifaApiConfig, a0 as ApiFetchOptions, a3 as CreateResult, K as SiteActivityPreset, b as ActivityLabel, u as RepoDeleteResult, x as RepoInventory } from './types-CkomzDlY.js';
2
- import { p as ExternalAccount, B as PositionViewerConfirmation } from './index-DDh2RLvx.js';
3
- import { a as AccountVerification } from './verification-providers-DeyGqaoC.js';
4
- import { s as FollowProfileItem, p as FeatureAllowlistEntry, r as FeatureFlag } from './follow-profile-CVcA2w1v.js';
1
+ import { a2 as WriteResult, a1 as SifaApiConfig, a0 as ApiFetchOptions, a3 as CreateResult, K as SiteActivityPreset, b as ActivityLabel, u as RepoDeleteResult, x as RepoInventory } from './types-BC4A9-W9.cjs';
2
+ import { P as ProfileOverrideWriteInput, d as OrgNotificationEmailRequestInput, b as OrgDomainChallengeRequestInput, O as OrgClaimRequestInput, a as OrgProfileUpdateRequestInput, c as OrgDomainVerifyRequestInput } from './org-settings-BliQdqbB.cjs';
3
+ import { p as ExternalAccount, B as PositionViewerConfirmation } from './index-BKvI1Bvg.cjs';
4
+ import { a as AccountVerification } from './verification-providers-DQLIOSCK.cjs';
5
+ import { s as FollowProfileItem, p as FeatureAllowlistEntry, r as FeatureFlag } from './follow-profile-BG_6eZwW.cjs';
5
6
  import { z } from 'zod';
6
- import { f as OrgNotificationEmailRequestInput, b as OrgDomainChallengeRequestInput, O as OrgClaimRequestInput, h as OrgProfileUpdateRequestInput, d as OrgDomainVerifyRequestInput } from './org-settings-BShvhyFp.js';
7
7
 
8
8
  /** Industry/domain entry on the profile self record. */
9
9
  interface ProfileIndustryInput {
@@ -50,12 +50,7 @@ interface UpdateProfileSelfInput {
50
50
  /** Update the authenticated user's `id.sifa.profile.self` record. */
51
51
  declare function updateProfileSelf(config: SifaApiConfig, data: UpdateProfileSelfInput, options?: ApiFetchOptions): Promise<WriteResult>;
52
52
  /** Body accepted by {@link updateProfileOverride}. */
53
- interface UpdateProfileOverrideInput {
54
- headline?: string | null;
55
- about?: string | null;
56
- displayName?: string | null;
57
- pronouns?: string | null;
58
- }
53
+ type UpdateProfileOverrideInput = ProfileOverrideWriteInput;
59
54
  /**
60
55
  * Override aggregated profile fields with sifa-specific values. `null`
61
56
  * clears the override and falls back to the upstream PDS value.
@@ -1,9 +1,9 @@
1
- import { a2 as WriteResult, a1 as SifaApiConfig, a0 as ApiFetchOptions, a3 as CreateResult, K as SiteActivityPreset, b as ActivityLabel, u as RepoDeleteResult, x as RepoInventory } from './types-JydVIhN5.cjs';
2
- import { p as ExternalAccount, B as PositionViewerConfirmation } from './index-BQAKeEoj.cjs';
3
- import { a as AccountVerification } from './verification-providers-DeyGqaoC.cjs';
4
- import { s as FollowProfileItem, p as FeatureAllowlistEntry, r as FeatureFlag } from './follow-profile-CgLLLQtJ.cjs';
1
+ import { a2 as WriteResult, a1 as SifaApiConfig, a0 as ApiFetchOptions, a3 as CreateResult, K as SiteActivityPreset, b as ActivityLabel, u as RepoDeleteResult, x as RepoInventory } from './types-CcVRIHcX.js';
2
+ import { P as ProfileOverrideWriteInput, f as OrgNotificationEmailRequestInput, b as OrgDomainChallengeRequestInput, O as OrgClaimRequestInput, h as OrgProfileUpdateRequestInput, d as OrgDomainVerifyRequestInput } from './profile-self-D59D_rhI.js';
3
+ import { p as ExternalAccount, B as PositionViewerConfirmation } from './index-BR8LDBo1.js';
4
+ import { a as AccountVerification } from './verification-providers-DQLIOSCK.js';
5
+ import { s as FollowProfileItem, p as FeatureAllowlistEntry, r as FeatureFlag } from './follow-profile-DGZzB5iM.js';
5
6
  import { z } from 'zod';
6
- import { d as OrgNotificationEmailRequestInput, b as OrgDomainChallengeRequestInput, O as OrgClaimRequestInput, a as OrgProfileUpdateRequestInput, c as OrgDomainVerifyRequestInput } from './org-settings-C73Sin5E.cjs';
7
7
 
8
8
  /** Industry/domain entry on the profile self record. */
9
9
  interface ProfileIndustryInput {
@@ -50,12 +50,7 @@ interface UpdateProfileSelfInput {
50
50
  /** Update the authenticated user's `id.sifa.profile.self` record. */
51
51
  declare function updateProfileSelf(config: SifaApiConfig, data: UpdateProfileSelfInput, options?: ApiFetchOptions): Promise<WriteResult>;
52
52
  /** Body accepted by {@link updateProfileOverride}. */
53
- interface UpdateProfileOverrideInput {
54
- headline?: string | null;
55
- about?: string | null;
56
- displayName?: string | null;
57
- pronouns?: string | null;
58
- }
53
+ type UpdateProfileOverrideInput = ProfileOverrideWriteInput;
59
54
  /**
60
55
  * Override aggregated profile fields with sifa-specific values. `null`
61
56
  * clears the override and falls back to the upstream PDS value.
@@ -8,6 +8,12 @@ import { z } from 'zod';
8
8
  * count as one unit each. We use `Intl.Segmenter` to enforce this correctly.
9
9
  */
10
10
  declare function maxGraphemes(max: number): (value: string) => boolean;
11
+ /**
12
+ * Byte-length refinement matching the AT Protocol lexicon string `maxLength`
13
+ * constraint, which counts UTF-8 bytes (not UTF-16 code units). Uses
14
+ * `TextEncoder` rather than `Buffer` so it also runs in browsers.
15
+ */
16
+ declare function maxBytes(max: number): (value: string) => boolean;
11
17
  /** Decentralized identifier, AT Protocol `format: did`. */
12
18
  declare const didSchema: z.ZodString;
13
19
  /** RFC 3339 datetime with timezone offset, AT Protocol `format: datetime`. */
@@ -209,4 +215,4 @@ declare function resolveVerificationBadges(input: {
209
215
  blueskyVerifiedAt?: string | null;
210
216
  }): AccountVerification[];
211
217
 
212
- export { type AgentRef as A, VERIFICATION_PROVIDERS as V, type AccountVerification as a, type VerificationProvider as b, type VerificationProviderId as c, type VerificationSource as d, type VerifierListItem as e, agentRefSchema as f, atUriSchema as g, buildVerifierListMembers as h, cidSchema as i, datetimeSchema as j, didSchema as k, externalRecordRefSchema as l, getVerificationProvider as m, isKnownVerificationProvider as n, languageTagSchema as o, maxGraphemes as p, partialDateSchema as q, primaryVerification as r, resolveVerificationBadges as s, resolveVerifierProvider as t, selfLabelsSchema as u, skillRefSchema as v, strongRefSchema as w, uriSchema as x, verificationLabel as y };
218
+ export { type AgentRef as A, VERIFICATION_PROVIDERS as V, type AccountVerification as a, type VerificationProvider as b, type VerificationProviderId as c, type VerificationSource as d, type VerifierListItem as e, agentRefSchema as f, atUriSchema as g, buildVerifierListMembers as h, cidSchema as i, datetimeSchema as j, didSchema as k, externalRecordRefSchema as l, getVerificationProvider as m, isKnownVerificationProvider as n, languageTagSchema as o, maxBytes as p, maxGraphemes as q, partialDateSchema as r, primaryVerification as s, resolveVerificationBadges as t, resolveVerifierProvider as u, selfLabelsSchema as v, skillRefSchema as w, strongRefSchema as x, uriSchema as y, verificationLabel as z };
@@ -8,6 +8,12 @@ import { z } from 'zod';
8
8
  * count as one unit each. We use `Intl.Segmenter` to enforce this correctly.
9
9
  */
10
10
  declare function maxGraphemes(max: number): (value: string) => boolean;
11
+ /**
12
+ * Byte-length refinement matching the AT Protocol lexicon string `maxLength`
13
+ * constraint, which counts UTF-8 bytes (not UTF-16 code units). Uses
14
+ * `TextEncoder` rather than `Buffer` so it also runs in browsers.
15
+ */
16
+ declare function maxBytes(max: number): (value: string) => boolean;
11
17
  /** Decentralized identifier, AT Protocol `format: did`. */
12
18
  declare const didSchema: z.ZodString;
13
19
  /** RFC 3339 datetime with timezone offset, AT Protocol `format: datetime`. */
@@ -209,4 +215,4 @@ declare function resolveVerificationBadges(input: {
209
215
  blueskyVerifiedAt?: string | null;
210
216
  }): AccountVerification[];
211
217
 
212
- export { type AgentRef as A, VERIFICATION_PROVIDERS as V, type AccountVerification as a, type VerificationProvider as b, type VerificationProviderId as c, type VerificationSource as d, type VerifierListItem as e, agentRefSchema as f, atUriSchema as g, buildVerifierListMembers as h, cidSchema as i, datetimeSchema as j, didSchema as k, externalRecordRefSchema as l, getVerificationProvider as m, isKnownVerificationProvider as n, languageTagSchema as o, maxGraphemes as p, partialDateSchema as q, primaryVerification as r, resolveVerificationBadges as s, resolveVerifierProvider as t, selfLabelsSchema as u, skillRefSchema as v, strongRefSchema as w, uriSchema as x, verificationLabel as y };
218
+ export { type AgentRef as A, VERIFICATION_PROVIDERS as V, type AccountVerification as a, type VerificationProvider as b, type VerificationProviderId as c, type VerificationSource as d, type VerifierListItem as e, agentRefSchema as f, atUriSchema as g, buildVerifierListMembers as h, cidSchema as i, datetimeSchema as j, didSchema as k, externalRecordRefSchema as l, getVerificationProvider as m, isKnownVerificationProvider as n, languageTagSchema as o, maxBytes as p, maxGraphemes as q, partialDateSchema as r, primaryVerification as s, resolveVerificationBadges as t, resolveVerifierProvider as u, selfLabelsSchema as v, skillRefSchema as w, strongRefSchema as x, uriSchema as y, verificationLabel as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@singi-labs/sifa-sdk",
3
- "version": "0.22.0",
3
+ "version": "0.23.0",
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",