@singi-labs/sifa-sdk 0.12.19 → 0.12.21
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/{adult-content-B06bKHpA.d.cts → adult-content-C9gi0C_Q.d.cts} +22 -1
- package/dist/{adult-content-B06bKHpA.d.ts → adult-content-C9gi0C_Q.d.ts} +22 -1
- package/dist/{index-nBCabKk0.d.cts → index-68tJSEtA.d.cts} +2 -2
- package/dist/{index-QUCsiCnz.d.ts → index-B4NfsdTi.d.ts} +2 -2
- package/dist/{index-DrOzgNB8.d.ts → index-BEDyt4ZP.d.ts} +2 -2
- package/dist/{index-NMOaWN-G.d.cts → index-Cbjiqz7Y.d.cts} +2 -2
- package/dist/index.cjs +47 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +32 -3
- package/dist/index.d.ts +32 -3
- package/dist/index.js +47 -2
- package/dist/index.js.map +1 -1
- package/dist/{org-UaNOo0ya.d.cts → org-BX4WZoOT.d.cts} +1 -1
- package/dist/{org-DKbNPMry.d.ts → org-lScz_q2Z.d.ts} +1 -1
- package/dist/query/fetchers/index.d.cts +3 -3
- package/dist/query/fetchers/index.d.ts +3 -3
- package/dist/query/hooks/index.d.cts +3 -3
- package/dist/query/hooks/index.d.ts +3 -3
- package/dist/query/index.d.cts +5 -5
- package/dist/query/index.d.ts +5 -5
- package/dist/schemas/index.cjs +23 -0
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +13 -0
- package/dist/schemas/index.d.ts +13 -0
- package/dist/schemas/index.js +23 -0
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/write/index.cjs +15 -0
- package/dist/schemas/write/index.cjs.map +1 -1
- package/dist/schemas/write/index.d.cts +13 -7
- package/dist/schemas/write/index.d.ts +13 -7
- package/dist/schemas/write/index.js +15 -0
- package/dist/schemas/write/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -456,6 +456,23 @@ interface ProfileOverrideSource {
|
|
|
456
456
|
displayName?: string;
|
|
457
457
|
avatarUrl?: string;
|
|
458
458
|
}
|
|
459
|
+
/**
|
|
460
|
+
* A structured physical address on the org view. Mirrors
|
|
461
|
+
* `community.lexicon.location.address`; every field is optional.
|
|
462
|
+
*/
|
|
463
|
+
interface OrgAddressView {
|
|
464
|
+
country: string | null;
|
|
465
|
+
postalCode: string | null;
|
|
466
|
+
region: string | null;
|
|
467
|
+
locality: string | null;
|
|
468
|
+
street: string | null;
|
|
469
|
+
name: string | null;
|
|
470
|
+
}
|
|
471
|
+
/** A featured link on the org view. Both `name` and `url` are present. */
|
|
472
|
+
interface OrgLinkView {
|
|
473
|
+
name: string;
|
|
474
|
+
url: string;
|
|
475
|
+
}
|
|
459
476
|
/**
|
|
460
477
|
* The org-profile fields exposed on the profile resolve when the org rendering
|
|
461
478
|
* floor is met. Narrow on purpose: `contact` is never included (not rendered
|
|
@@ -468,6 +485,10 @@ interface OrgProfileView {
|
|
|
468
485
|
/** Blob CID (or resolved URL) of the org logo, when present. */
|
|
469
486
|
logoBlob: string | null;
|
|
470
487
|
entityRefs: string[] | null;
|
|
488
|
+
addresses: OrgAddressView[] | null;
|
|
489
|
+
/** Self-selected headcount range (declared bucket, never calculated). */
|
|
490
|
+
companySize: string | null;
|
|
491
|
+
links: OrgLinkView[] | null;
|
|
471
492
|
}
|
|
472
493
|
/**
|
|
473
494
|
* A company entity recognized purely from the handle's registrable domain
|
|
@@ -918,4 +939,4 @@ declare function hasAdultContent(item: {
|
|
|
918
939
|
labels?: ActivityLabel[];
|
|
919
940
|
}): boolean;
|
|
920
941
|
|
|
921
|
-
export { type
|
|
942
|
+
export { type ProfilePresentation as $, type AdultContentLabel as A, type InvolvementView as B, type CoSpeaker as C, type DurationView as D, type ExternalAccount as E, type FeedItem as F, type LanguageProficiency as G, type HonorView as H, type IndustryDomain as I, type LanguageView as J, type OrgFloorVerdict as K, type LocationValue as L, type OrgLinkView as M, type OrgProfileView as N, type OrgAddressView as O, type ProfileSkill as P, type PositionView as Q, type PresentationDeliveryView as R, type SkillSuggestion as S, type PresentationLinkView as T, type PresentationView as U, type ProfileCourse as V, type ProfileIndustry as W, type ProfileInvolvementLink as X, type ProfileLocation as Y, type ProfileLocationView as Z, type ProfileOverrideSource as _, type ActivityLabel as a, type ProfileView as a0, type ProfileVolunteering as a1, type ProjectView as a2, type PublicationContributor as a3, type PublicationView as a4, type RecognizedEntity as a5, type SkillRef as a6, type SkillView as a7, type TrustStat as a8, type VerifiedAccount as a9, type VolunteeringView as aa, hasAdultContent as ab, type ProfilePresentationDelivery as b, type PdsProviderInfo as c, type Profile as d, type ProfilePosition as e, type ProfileCertification as f, type ProfileEducation as g, type ProfileHonor as h, type ProfileLanguage as i, type ProfileProject as j, type ProfilePublication as k, type ProfileInvolvement as l, ADULT_CONTENT_LABELS as m, type ActiveApp as n, type ActiveAppView as o, type AtfundLinkView as p, type CertificationView as q, type CoSpeakerView as r, type ContributorView as s, type CourseView as t, type EducationView as u, type Endorsement as v, type EndorsementData as w, type ExternalAccountKeytraceClaim as x, type ExternalAccountView as y, type InvolvementLinkView as z };
|
|
@@ -456,6 +456,23 @@ interface ProfileOverrideSource {
|
|
|
456
456
|
displayName?: string;
|
|
457
457
|
avatarUrl?: string;
|
|
458
458
|
}
|
|
459
|
+
/**
|
|
460
|
+
* A structured physical address on the org view. Mirrors
|
|
461
|
+
* `community.lexicon.location.address`; every field is optional.
|
|
462
|
+
*/
|
|
463
|
+
interface OrgAddressView {
|
|
464
|
+
country: string | null;
|
|
465
|
+
postalCode: string | null;
|
|
466
|
+
region: string | null;
|
|
467
|
+
locality: string | null;
|
|
468
|
+
street: string | null;
|
|
469
|
+
name: string | null;
|
|
470
|
+
}
|
|
471
|
+
/** A featured link on the org view. Both `name` and `url` are present. */
|
|
472
|
+
interface OrgLinkView {
|
|
473
|
+
name: string;
|
|
474
|
+
url: string;
|
|
475
|
+
}
|
|
459
476
|
/**
|
|
460
477
|
* The org-profile fields exposed on the profile resolve when the org rendering
|
|
461
478
|
* floor is met. Narrow on purpose: `contact` is never included (not rendered
|
|
@@ -468,6 +485,10 @@ interface OrgProfileView {
|
|
|
468
485
|
/** Blob CID (or resolved URL) of the org logo, when present. */
|
|
469
486
|
logoBlob: string | null;
|
|
470
487
|
entityRefs: string[] | null;
|
|
488
|
+
addresses: OrgAddressView[] | null;
|
|
489
|
+
/** Self-selected headcount range (declared bucket, never calculated). */
|
|
490
|
+
companySize: string | null;
|
|
491
|
+
links: OrgLinkView[] | null;
|
|
471
492
|
}
|
|
472
493
|
/**
|
|
473
494
|
* A company entity recognized purely from the handle's registrable domain
|
|
@@ -918,4 +939,4 @@ declare function hasAdultContent(item: {
|
|
|
918
939
|
labels?: ActivityLabel[];
|
|
919
940
|
}): boolean;
|
|
920
941
|
|
|
921
|
-
export { type
|
|
942
|
+
export { type ProfilePresentation as $, type AdultContentLabel as A, type InvolvementView as B, type CoSpeaker as C, type DurationView as D, type ExternalAccount as E, type FeedItem as F, type LanguageProficiency as G, type HonorView as H, type IndustryDomain as I, type LanguageView as J, type OrgFloorVerdict as K, type LocationValue as L, type OrgLinkView as M, type OrgProfileView as N, type OrgAddressView as O, type ProfileSkill as P, type PositionView as Q, type PresentationDeliveryView as R, type SkillSuggestion as S, type PresentationLinkView as T, type PresentationView as U, type ProfileCourse as V, type ProfileIndustry as W, type ProfileInvolvementLink as X, type ProfileLocation as Y, type ProfileLocationView as Z, type ProfileOverrideSource as _, type ActivityLabel as a, type ProfileView as a0, type ProfileVolunteering as a1, type ProjectView as a2, type PublicationContributor as a3, type PublicationView as a4, type RecognizedEntity as a5, type SkillRef as a6, type SkillView as a7, type TrustStat as a8, type VerifiedAccount as a9, type VolunteeringView as aa, hasAdultContent as ab, type ProfilePresentationDelivery as b, type PdsProviderInfo as c, type Profile as d, type ProfilePosition as e, type ProfileCertification as f, type ProfileEducation as g, type ProfileHonor as h, type ProfileLanguage as i, type ProfileProject as j, type ProfilePublication as k, type ProfileInvolvement as l, ADULT_CONTENT_LABELS as m, type ActiveApp as n, type ActiveAppView as o, type AtfundLinkView as p, type CertificationView as q, type CoSpeakerView as r, type ContributorView as s, type CourseView as t, type EducationView as u, type Endorsement as v, type EndorsementData as w, type ExternalAccountKeytraceClaim as x, type ExternalAccountView as y, type InvolvementLinkView as z };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { S as SifaApiConfig, s as sifaQueryKeys, W as WriteResult, ae as RefreshPdsResult, at as UpdateProfileOverrideInput, au as UpdateProfileSelfInput, av as UploadAvatarResult, j as CreateResult, a2 as ProfileLocationInput, k as ExternalAccountInput, i as CreateExternalAccountResult, aw as VerifyExternalAccountResult, E as EndorsementInput, ad as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, P as HideProfileItemInput, aq as StatsResponse, g as AppRegistryEntry, M as HiddenApp, w as FilterOptions, al as SearchFilters, am as SearchResponse, ap as SkillSearchResult, l as FeaturedProfile, ao as SimilarProfile, v as FetchSuggestionsOptions, as as SuggestionsResponse, G as FollowUserResult, o as FetchFollowListOptions, x as FollowListPage, H as FollowingResponse, q as FetchFollowingFeedOptions, p as FetchFollowProfilePageOptions, z as FollowProfilePageResponse, F as FeatureAllowlistResponse, m as FetchActivityFeedOptions, b as ActivityFeedResponse, e as ActivityTeaserResponse, L as HeatmapResponse, a as AccountCheckResult, ac as ReactionStatus, ab as ReactionResult, aa as ReactionError, ak as RoadmapVotesResponse, C as CastRoadmapVoteResult, D as DeleteAccountResult, af as ResetProfileResult, T as OrgClaimResult, _ as OrgProfileUpdateResult, U as OrgDomainChallengeResult, V as OrgDomainVerifyResult, X as OrgNotificationEmailAddResult, Y as OrgNotificationEmailRemoveResult } from './org-
|
|
3
|
+
import { S as SifaApiConfig, s as sifaQueryKeys, W as WriteResult, ae as RefreshPdsResult, at as UpdateProfileOverrideInput, au as UpdateProfileSelfInput, av as UploadAvatarResult, j as CreateResult, a2 as ProfileLocationInput, k as ExternalAccountInput, i as CreateExternalAccountResult, aw as VerifyExternalAccountResult, E as EndorsementInput, ad as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, P as HideProfileItemInput, aq as StatsResponse, g as AppRegistryEntry, M as HiddenApp, w as FilterOptions, al as SearchFilters, am as SearchResponse, ap as SkillSearchResult, l as FeaturedProfile, ao as SimilarProfile, v as FetchSuggestionsOptions, as as SuggestionsResponse, G as FollowUserResult, o as FetchFollowListOptions, x as FollowListPage, H as FollowingResponse, q as FetchFollowingFeedOptions, p as FetchFollowProfilePageOptions, z as FollowProfilePageResponse, F as FeatureAllowlistResponse, m as FetchActivityFeedOptions, b as ActivityFeedResponse, e as ActivityTeaserResponse, L as HeatmapResponse, a as AccountCheckResult, ac as ReactionStatus, ab as ReactionResult, aa as ReactionError, ak as RoadmapVotesResponse, C as CastRoadmapVoteResult, D as DeleteAccountResult, af as ResetProfileResult, T as OrgClaimResult, _ as OrgProfileUpdateResult, U as OrgDomainChallengeResult, V as OrgDomainVerifyResult, X as OrgNotificationEmailAddResult, Y as OrgNotificationEmailRemoveResult } from './org-BX4WZoOT.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 { d as Profile,
|
|
6
|
+
import { d as Profile, a0 as ProfileView, e as ProfilePosition, a6 as SkillRef, E as ExternalAccount, S as SkillSuggestion, K as OrgFloorVerdict } from './adult-content-C9gi0C_Q.cjs';
|
|
7
7
|
import { m as EntitySearchResponse, E as EntitySearchResult, g as EntityMintDomainResponse, k as EntityResolveDomainResponse, r as EntitySelectResponse, p as EntitySelectRequest, F as FollowFeedPage, c as FeatureFlag } from './feed-D2ZV8Eaj.cjs';
|
|
8
8
|
import { O as OrgClaimRequestInput, h as OrgProfileUpdateRequestInput, b as OrgDomainChallengeRequestInput, d as OrgDomainVerifyRequestInput, f as OrgNotificationEmailRequestInput } from './org-settings-CmaSX5ZI.cjs';
|
|
9
9
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { S as SifaApiConfig, s as sifaQueryKeys, W as WriteResult, ae as RefreshPdsResult, at as UpdateProfileOverrideInput, au as UpdateProfileSelfInput, av as UploadAvatarResult, j as CreateResult, a2 as ProfileLocationInput, k as ExternalAccountInput, i as CreateExternalAccountResult, aw as VerifyExternalAccountResult, E as EndorsementInput, ad as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, P as HideProfileItemInput, aq as StatsResponse, g as AppRegistryEntry, M as HiddenApp, w as FilterOptions, al as SearchFilters, am as SearchResponse, ap as SkillSearchResult, l as FeaturedProfile, ao as SimilarProfile, v as FetchSuggestionsOptions, as as SuggestionsResponse, G as FollowUserResult, o as FetchFollowListOptions, x as FollowListPage, H as FollowingResponse, q as FetchFollowingFeedOptions, p as FetchFollowProfilePageOptions, z as FollowProfilePageResponse, F as FeatureAllowlistResponse, m as FetchActivityFeedOptions, b as ActivityFeedResponse, e as ActivityTeaserResponse, L as HeatmapResponse, a as AccountCheckResult, ac as ReactionStatus, ab as ReactionResult, aa as ReactionError, ak as RoadmapVotesResponse, C as CastRoadmapVoteResult, D as DeleteAccountResult, af as ResetProfileResult, T as OrgClaimResult, _ as OrgProfileUpdateResult, U as OrgDomainChallengeResult, V as OrgDomainVerifyResult, X as OrgNotificationEmailAddResult, Y as OrgNotificationEmailRemoveResult } from './org-
|
|
3
|
+
import { S as SifaApiConfig, s as sifaQueryKeys, W as WriteResult, ae as RefreshPdsResult, at as UpdateProfileOverrideInput, au as UpdateProfileSelfInput, av as UploadAvatarResult, j as CreateResult, a2 as ProfileLocationInput, k as ExternalAccountInput, i as CreateExternalAccountResult, aw as VerifyExternalAccountResult, E as EndorsementInput, ad as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, P as HideProfileItemInput, aq as StatsResponse, g as AppRegistryEntry, M as HiddenApp, w as FilterOptions, al as SearchFilters, am as SearchResponse, ap as SkillSearchResult, l as FeaturedProfile, ao as SimilarProfile, v as FetchSuggestionsOptions, as as SuggestionsResponse, G as FollowUserResult, o as FetchFollowListOptions, x as FollowListPage, H as FollowingResponse, q as FetchFollowingFeedOptions, p as FetchFollowProfilePageOptions, z as FollowProfilePageResponse, F as FeatureAllowlistResponse, m as FetchActivityFeedOptions, b as ActivityFeedResponse, e as ActivityTeaserResponse, L as HeatmapResponse, a as AccountCheckResult, ac as ReactionStatus, ab as ReactionResult, aa as ReactionError, ak as RoadmapVotesResponse, C as CastRoadmapVoteResult, D as DeleteAccountResult, af as ResetProfileResult, T as OrgClaimResult, _ as OrgProfileUpdateResult, U as OrgDomainChallengeResult, V as OrgDomainVerifyResult, X as OrgNotificationEmailAddResult, Y as OrgNotificationEmailRemoveResult } from './org-lScz_q2Z.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 { d as Profile,
|
|
6
|
+
import { d as Profile, a0 as ProfileView, e as ProfilePosition, a6 as SkillRef, E as ExternalAccount, S as SkillSuggestion, K as OrgFloorVerdict } from './adult-content-C9gi0C_Q.js';
|
|
7
7
|
import { m as EntitySearchResponse, E as EntitySearchResult, g as EntityMintDomainResponse, k as EntityResolveDomainResponse, r as EntitySelectResponse, p as EntitySelectRequest, F as FollowFeedPage, c as FeatureFlag } from './feed-D2ZV8Eaj.js';
|
|
8
8
|
import { O as OrgClaimRequestInput, h as OrgProfileUpdateRequestInput, b as OrgDomainChallengeRequestInput, d as OrgDomainVerifyRequestInput, f as OrgNotificationEmailRequestInput } from './org-settings-CmaSX5ZI.js';
|
|
9
9
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as SifaApiConfig, A as ApiFetchOptions, j as CreateResult, W as WriteResult } from './org-
|
|
2
|
-
import { d as Profile,
|
|
1
|
+
import { S as SifaApiConfig, A as ApiFetchOptions, j as CreateResult, W as WriteResult } from './org-lScz_q2Z.js';
|
|
2
|
+
import { d as Profile, a0 as ProfileView, e as ProfilePosition, a6 as SkillRef } from './adult-content-C9gi0C_Q.js';
|
|
3
3
|
import { m as EntitySearchResponse, E as EntitySearchResult, g as EntityMintDomainResponse, k as EntityResolveDomainResponse, p as EntitySelectRequest, r as EntitySelectResponse } from './feed-D2ZV8Eaj.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as SifaApiConfig, A as ApiFetchOptions, j as CreateResult, W as WriteResult } from './org-
|
|
2
|
-
import { d as Profile,
|
|
1
|
+
import { S as SifaApiConfig, A as ApiFetchOptions, j as CreateResult, W as WriteResult } from './org-BX4WZoOT.cjs';
|
|
2
|
+
import { d as Profile, a0 as ProfileView, e as ProfilePosition, a6 as SkillRef } from './adult-content-C9gi0C_Q.cjs';
|
|
3
3
|
import { m as EntitySearchResponse, E as EntitySearchResult, g as EntityMintDomainResponse, k as EntityResolveDomainResponse, p as EntitySelectRequest, r as EntitySelectResponse } from './feed-D2ZV8Eaj.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
package/dist/index.cjs
CHANGED
|
@@ -2828,6 +2828,12 @@ var streamSourceSchema = zod.z.object({
|
|
|
2828
2828
|
label: zod.z.string(),
|
|
2829
2829
|
color: zod.z.string()
|
|
2830
2830
|
});
|
|
2831
|
+
var streamAuthorSchema = zod.z.object({
|
|
2832
|
+
did: zod.z.string().optional(),
|
|
2833
|
+
handle: zod.z.string().optional(),
|
|
2834
|
+
displayName: zod.z.string().optional(),
|
|
2835
|
+
avatar: zod.z.string().optional()
|
|
2836
|
+
});
|
|
2831
2837
|
var streamThemeSchema = zod.z.object({
|
|
2832
2838
|
background: rgbColorSchema,
|
|
2833
2839
|
foreground: rgbColorSchema,
|
|
@@ -3010,6 +3016,7 @@ var streamCardVMSchema = zod.z.lazy(
|
|
|
3010
3016
|
cid: zod.z.string(),
|
|
3011
3017
|
verb: streamVerbSchema,
|
|
3012
3018
|
source: streamSourceSchema,
|
|
3019
|
+
author: streamAuthorSchema.optional(),
|
|
3013
3020
|
tier: zod.z.enum(["creation", "action", "filtered"]),
|
|
3014
3021
|
timestamp: zod.z.string(),
|
|
3015
3022
|
title: zod.z.string(),
|
|
@@ -3175,6 +3182,19 @@ function buildSource(item, options) {
|
|
|
3175
3182
|
color: options.resolveSourceColor?.(item.appId) ?? DEFAULT_SOURCE_COLOR
|
|
3176
3183
|
};
|
|
3177
3184
|
}
|
|
3185
|
+
function buildAuthor(item) {
|
|
3186
|
+
const did = didFromUri(item.uri);
|
|
3187
|
+
const handle = asNonEmptyString(item.authorHandle);
|
|
3188
|
+
const displayName = asNonEmptyString(item.authorDisplayName);
|
|
3189
|
+
const avatar = asNonEmptyString(item.authorAvatar);
|
|
3190
|
+
if (!did && !handle && !displayName && !avatar) return void 0;
|
|
3191
|
+
const author = {};
|
|
3192
|
+
if (did) author.did = did;
|
|
3193
|
+
if (handle) author.handle = handle;
|
|
3194
|
+
if (displayName) author.displayName = displayName;
|
|
3195
|
+
if (avatar) author.avatar = avatar;
|
|
3196
|
+
return author;
|
|
3197
|
+
}
|
|
3178
3198
|
var TITLE_BY_VERB = {
|
|
3179
3199
|
posted: () => "Posted",
|
|
3180
3200
|
reposted: () => "Reposted",
|
|
@@ -3706,6 +3726,8 @@ function toStreamCardVM(item, options = {}) {
|
|
|
3706
3726
|
timestamp,
|
|
3707
3727
|
title: buildTitle(verb, source.label)
|
|
3708
3728
|
};
|
|
3729
|
+
const author = buildAuthor(item);
|
|
3730
|
+
if (author) vm.author = author;
|
|
3709
3731
|
const theme = readTheme(record);
|
|
3710
3732
|
if (theme) vm.theme = theme;
|
|
3711
3733
|
if (record) {
|
|
@@ -4232,6 +4254,18 @@ var EndorsementRecordSchema = zod.z.object({
|
|
|
4232
4254
|
comment: zod.z.string().refine(maxGraphemes(300)).max(3e3).optional(),
|
|
4233
4255
|
createdAt: datetimeSchema
|
|
4234
4256
|
});
|
|
4257
|
+
var orgAddressSchema = zod.z.object({
|
|
4258
|
+
country: zod.z.string().optional(),
|
|
4259
|
+
postalCode: zod.z.string().optional(),
|
|
4260
|
+
region: zod.z.string().optional(),
|
|
4261
|
+
locality: zod.z.string().optional(),
|
|
4262
|
+
street: zod.z.string().optional(),
|
|
4263
|
+
name: zod.z.string().optional()
|
|
4264
|
+
});
|
|
4265
|
+
var orgLinkSchema = zod.z.object({
|
|
4266
|
+
name: zod.z.string().refine(maxGraphemes(60)).max(600),
|
|
4267
|
+
url: uriSchema.max(2048)
|
|
4268
|
+
});
|
|
4235
4269
|
var OrgProfileRecordSchema = zod.z.object({
|
|
4236
4270
|
name: zod.z.string().min(1).refine(maxGraphemes(200)).max(2e3),
|
|
4237
4271
|
description: zod.z.string().refine(maxGraphemes(5e3)).max(5e4).optional(),
|
|
@@ -4241,6 +4275,17 @@ var OrgProfileRecordSchema = zod.z.object({
|
|
|
4241
4275
|
entityRefs: zod.z.array(uriSchema).max(20).optional(),
|
|
4242
4276
|
/** Contact email. NOT rendered publicly; validated as email at the app layer. */
|
|
4243
4277
|
contact: zod.z.string().optional(),
|
|
4278
|
+
/** Physical addresses (headquarters, offices). */
|
|
4279
|
+
addresses: zod.z.array(orgAddressSchema).max(10).optional(),
|
|
4280
|
+
/**
|
|
4281
|
+
* Self-selected headcount range (a declared bucket, never a calculated count).
|
|
4282
|
+
* Open enum (bare-string knownValues in the lexicon): `1-10`, `11-50`,
|
|
4283
|
+
* `51-200`, `201-500`, `501-1000`, `1001-5000`, `5001-10000`, `10001+`. Any
|
|
4284
|
+
* string is accepted so future ranges do not break older records.
|
|
4285
|
+
*/
|
|
4286
|
+
companySize: zod.z.string().optional(),
|
|
4287
|
+
/** Featured links or content surfaced on the org profile. */
|
|
4288
|
+
links: zod.z.array(orgLinkSchema).max(10).optional(),
|
|
4244
4289
|
labels: selfLabelsSchema.optional(),
|
|
4245
4290
|
createdAt: datetimeSchema
|
|
4246
4291
|
});
|
|
@@ -4575,7 +4620,7 @@ var ProfileVolunteeringRecordSchema = zod.z.object({
|
|
|
4575
4620
|
});
|
|
4576
4621
|
|
|
4577
4622
|
// src/index.ts
|
|
4578
|
-
var SIFA_SDK_VERSION = "0.12.
|
|
4623
|
+
var SIFA_SDK_VERSION = "0.12.21";
|
|
4579
4624
|
|
|
4580
4625
|
exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
|
|
4581
4626
|
exports.ACTIVITY_VERBS = ACTIVITY_VERBS;
|
|
@@ -4800,6 +4845,7 @@ exports.sortPositions = sortPositions;
|
|
|
4800
4845
|
exports.sortProjects = sortProjects;
|
|
4801
4846
|
exports.sortPublications = sortPublications;
|
|
4802
4847
|
exports.streamAddressSchema = streamAddressSchema;
|
|
4848
|
+
exports.streamAuthorSchema = streamAuthorSchema;
|
|
4803
4849
|
exports.streamCardBodySchema = streamCardBodySchema;
|
|
4804
4850
|
exports.streamCardSubjectSchema = streamCardSubjectSchema;
|
|
4805
4851
|
exports.streamCardVMSchema = streamCardVMSchema;
|