@singi-labs/sifa-sdk 0.5.0 → 0.6.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.
- package/dist/index-IDRpze8y.d.cts +253 -0
- package/dist/index-IDRpze8y.d.ts +253 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +3 -253
- package/dist/index.d.ts +3 -253
- package/dist/index.js +1 -1
- package/dist/query/index.cjs +161 -0
- package/dist/query/index.cjs.map +1 -0
- package/dist/query/index.d.cts +168 -0
- package/dist/query/index.d.ts +168 -0
- package/dist/query/index.js +150 -0
- package/dist/query/index.js.map +1 -0
- package/package.json +35 -7
package/dist/index.d.cts
CHANGED
|
@@ -1,258 +1,8 @@
|
|
|
1
|
+
import { a as ProfileSkill, L as LocationValue, b as PdsProviderInfo } from './index-IDRpze8y.cjs';
|
|
2
|
+
export { A as ActiveApp, E as Endorsement, c as EndorsementData, d as ExternalAccount, e as ExternalAccountKeytraceClaim, F as FeedItem, f as LanguageProficiency, P as Profile, g as ProfileCertification, h as ProfileCourse, i as ProfileEducation, j as ProfileHonor, k as ProfileIndustry, l as ProfileLanguage, m as ProfileLocation, n as ProfileOverrideSource, o as ProfilePosition, p as ProfileProject, q as ProfilePublication, r as ProfileVolunteering, s as PublicationContributor, S as SkillRef, t as SkillSuggestion, T as TrustStat, V as VerifiedAccount } from './index-IDRpze8y.cjs';
|
|
1
3
|
export { EndorsementConfirmationRecord, EndorsementConfirmationRecordSchema, EndorsementRecord, EndorsementRecordSchema, GraphFollowRecord, GraphFollowRecordSchema, ProfileCertificationRecord, ProfileCertificationRecordSchema, ProfileCourseRecord, ProfileCourseRecordSchema, ProfileEducationRecord, ProfileEducationRecordSchema, ProfileExternalAccountRecord, ProfileExternalAccountRecordSchema, ProfileHonorRecord, ProfileHonorRecordSchema, ProfileLanguageRecord, ProfileLanguageRecordSchema, ProfilePositionRecord, ProfilePositionRecordSchema, ProfileProjectRecord, ProfileProjectRecordSchema, ProfilePublicationRecord, ProfilePublicationRecordSchema, ProfileSelfRecord, ProfileSelfRecordSchema, ProfileSkillRecord, ProfileSkillRecordSchema, ProfileVolunteeringRecord, ProfileVolunteeringRecordSchema, PublicationAuthor, PublicationAuthorSchema, atUriSchema, cidSchema, datetimeSchema, didSchema, languageTagSchema, maxGraphemes, selfLabelsSchema, strongRefSchema, uriSchema } from './schemas/index.cjs';
|
|
2
4
|
import 'zod';
|
|
3
5
|
|
|
4
|
-
interface LocationValue {
|
|
5
|
-
city?: string;
|
|
6
|
-
/** community.lexicon.location.address field -- preferred over `city`. */
|
|
7
|
-
locality?: string;
|
|
8
|
-
region?: string;
|
|
9
|
-
country: string;
|
|
10
|
-
countryCode?: string;
|
|
11
|
-
postalCode?: string;
|
|
12
|
-
geonameId?: number;
|
|
13
|
-
}
|
|
14
|
-
interface SkillRef {
|
|
15
|
-
uri: string;
|
|
16
|
-
}
|
|
17
|
-
interface ProfilePosition {
|
|
18
|
-
rkey: string;
|
|
19
|
-
company: string;
|
|
20
|
-
title: string;
|
|
21
|
-
description?: string;
|
|
22
|
-
startedAt: string;
|
|
23
|
-
endedAt?: string;
|
|
24
|
-
location?: LocationValue | null;
|
|
25
|
-
employmentType?: string;
|
|
26
|
-
workplaceType?: string;
|
|
27
|
-
skills?: SkillRef[];
|
|
28
|
-
linkedSkills?: ProfileSkill[];
|
|
29
|
-
primary?: boolean;
|
|
30
|
-
}
|
|
31
|
-
interface ProfileEducation {
|
|
32
|
-
rkey: string;
|
|
33
|
-
institution: string;
|
|
34
|
-
degree?: string;
|
|
35
|
-
fieldOfStudy?: string;
|
|
36
|
-
description?: string;
|
|
37
|
-
activities?: string;
|
|
38
|
-
startedAt?: string;
|
|
39
|
-
endedAt?: string;
|
|
40
|
-
}
|
|
41
|
-
interface ProfileSkill {
|
|
42
|
-
rkey: string;
|
|
43
|
-
name: string;
|
|
44
|
-
category?: string;
|
|
45
|
-
endorsementCount?: number;
|
|
46
|
-
endorsed?: boolean;
|
|
47
|
-
activityBacked?: boolean;
|
|
48
|
-
}
|
|
49
|
-
interface SkillSuggestion {
|
|
50
|
-
canonicalName: string;
|
|
51
|
-
slug: string;
|
|
52
|
-
category: string;
|
|
53
|
-
}
|
|
54
|
-
interface Endorsement {
|
|
55
|
-
endorserDid: string;
|
|
56
|
-
endorserHandle: string;
|
|
57
|
-
endorserDisplayName?: string;
|
|
58
|
-
endorserAvatar?: string;
|
|
59
|
-
comment?: string;
|
|
60
|
-
relationshipContext?: string;
|
|
61
|
-
createdAt: string;
|
|
62
|
-
}
|
|
63
|
-
interface EndorsementData {
|
|
64
|
-
skillRkey: string;
|
|
65
|
-
comment?: string;
|
|
66
|
-
relationshipContext?: string;
|
|
67
|
-
}
|
|
68
|
-
interface ProfileLocation {
|
|
69
|
-
rkey: string;
|
|
70
|
-
type: string;
|
|
71
|
-
label?: string | null;
|
|
72
|
-
isPrimary: boolean;
|
|
73
|
-
locationCountry?: string | null;
|
|
74
|
-
locationRegion?: string | null;
|
|
75
|
-
/** Legacy alias for `locationLocality`; emitted by sifa-api during the additive response window. */
|
|
76
|
-
locationCity?: string | null;
|
|
77
|
-
/** community.lexicon.location.address field name -- prefer over `locationCity`. */
|
|
78
|
-
locationLocality?: string | null;
|
|
79
|
-
countryCode?: string | null;
|
|
80
|
-
location?: string | null;
|
|
81
|
-
}
|
|
82
|
-
interface ProfileCertification {
|
|
83
|
-
rkey: string;
|
|
84
|
-
name: string;
|
|
85
|
-
issuingOrg: string;
|
|
86
|
-
issueDate?: string;
|
|
87
|
-
expiryDate?: string;
|
|
88
|
-
credentialUrl?: string;
|
|
89
|
-
}
|
|
90
|
-
interface ProfileProject {
|
|
91
|
-
rkey: string;
|
|
92
|
-
name: string;
|
|
93
|
-
description?: string;
|
|
94
|
-
url?: string;
|
|
95
|
-
startDate?: string;
|
|
96
|
-
endDate?: string;
|
|
97
|
-
}
|
|
98
|
-
interface PublicationContributor {
|
|
99
|
-
name: string;
|
|
100
|
-
orcidId?: string;
|
|
101
|
-
did?: string;
|
|
102
|
-
handle?: string;
|
|
103
|
-
}
|
|
104
|
-
interface ProfilePublication {
|
|
105
|
-
rkey: string;
|
|
106
|
-
title: string;
|
|
107
|
-
publisher?: string;
|
|
108
|
-
date?: string;
|
|
109
|
-
url?: string;
|
|
110
|
-
description?: string;
|
|
111
|
-
source?: 'sifa' | 'standard' | 'orcid';
|
|
112
|
-
doi?: string;
|
|
113
|
-
type?: string;
|
|
114
|
-
typeLabel?: string;
|
|
115
|
-
contributors?: PublicationContributor[];
|
|
116
|
-
verified?: boolean;
|
|
117
|
-
verifiedVia?: string;
|
|
118
|
-
orcidPutCode?: number;
|
|
119
|
-
hidden?: boolean;
|
|
120
|
-
orcidCorroborated?: boolean;
|
|
121
|
-
pendingVerification?: boolean;
|
|
122
|
-
appId?: string;
|
|
123
|
-
}
|
|
124
|
-
interface ProfileVolunteering {
|
|
125
|
-
rkey: string;
|
|
126
|
-
organization: string;
|
|
127
|
-
role?: string;
|
|
128
|
-
cause?: string;
|
|
129
|
-
startDate?: string;
|
|
130
|
-
endDate?: string;
|
|
131
|
-
description?: string;
|
|
132
|
-
}
|
|
133
|
-
interface ProfileHonor {
|
|
134
|
-
rkey: string;
|
|
135
|
-
title: string;
|
|
136
|
-
issuer?: string;
|
|
137
|
-
date?: string;
|
|
138
|
-
description?: string;
|
|
139
|
-
}
|
|
140
|
-
type LanguageProficiency = 'elementary' | 'limited_working' | 'professional_working' | 'full_professional' | 'native';
|
|
141
|
-
interface ProfileLanguage {
|
|
142
|
-
rkey: string;
|
|
143
|
-
language: string;
|
|
144
|
-
proficiency?: LanguageProficiency;
|
|
145
|
-
}
|
|
146
|
-
interface ProfileCourse {
|
|
147
|
-
rkey: string;
|
|
148
|
-
name: string;
|
|
149
|
-
institution?: string;
|
|
150
|
-
number?: string;
|
|
151
|
-
}
|
|
152
|
-
interface TrustStat {
|
|
153
|
-
key: string;
|
|
154
|
-
label: string;
|
|
155
|
-
value: number;
|
|
156
|
-
}
|
|
157
|
-
interface ActiveApp {
|
|
158
|
-
id: string;
|
|
159
|
-
name: string;
|
|
160
|
-
category: string;
|
|
161
|
-
recentCount: number;
|
|
162
|
-
latestRecordAt?: string | null;
|
|
163
|
-
}
|
|
164
|
-
interface VerifiedAccount {
|
|
165
|
-
platform: string;
|
|
166
|
-
identifier: string;
|
|
167
|
-
url?: string;
|
|
168
|
-
}
|
|
169
|
-
interface ExternalAccountKeytraceClaim {
|
|
170
|
-
rkey: string;
|
|
171
|
-
claimedAt: string;
|
|
172
|
-
}
|
|
173
|
-
interface ExternalAccount {
|
|
174
|
-
rkey: string;
|
|
175
|
-
platform: string;
|
|
176
|
-
url: string;
|
|
177
|
-
label?: string;
|
|
178
|
-
feedUrl?: string;
|
|
179
|
-
primary?: boolean;
|
|
180
|
-
verifiable: boolean;
|
|
181
|
-
verified: boolean;
|
|
182
|
-
verifiedVia?: string | null;
|
|
183
|
-
source?: 'sifa' | 'keytrace' | 'keyoxide';
|
|
184
|
-
hidden?: boolean;
|
|
185
|
-
keytraceVerified?: boolean;
|
|
186
|
-
keytraceClaim?: ExternalAccountKeytraceClaim;
|
|
187
|
-
}
|
|
188
|
-
interface FeedItem {
|
|
189
|
-
title: string;
|
|
190
|
-
excerpt: string;
|
|
191
|
-
url: string;
|
|
192
|
-
timestamp: string;
|
|
193
|
-
source: string;
|
|
194
|
-
}
|
|
195
|
-
interface PdsProviderInfo {
|
|
196
|
-
name: string;
|
|
197
|
-
host: string;
|
|
198
|
-
}
|
|
199
|
-
interface ProfileIndustry {
|
|
200
|
-
industry: string;
|
|
201
|
-
domain?: string;
|
|
202
|
-
}
|
|
203
|
-
interface ProfileOverrideSource {
|
|
204
|
-
headline?: string;
|
|
205
|
-
about?: string;
|
|
206
|
-
displayName?: string;
|
|
207
|
-
avatarUrl?: string;
|
|
208
|
-
}
|
|
209
|
-
interface Profile {
|
|
210
|
-
did: string;
|
|
211
|
-
handle: string;
|
|
212
|
-
displayName?: string;
|
|
213
|
-
avatar?: string;
|
|
214
|
-
pronouns?: string;
|
|
215
|
-
headline?: string;
|
|
216
|
-
about?: string;
|
|
217
|
-
hasHeadlineOverride?: boolean;
|
|
218
|
-
hasAboutOverride?: boolean;
|
|
219
|
-
hasDisplayNameOverride?: boolean;
|
|
220
|
-
hasAvatarUrlOverride?: boolean;
|
|
221
|
-
source?: ProfileOverrideSource;
|
|
222
|
-
industries?: ProfileIndustry[];
|
|
223
|
-
location?: LocationValue | null;
|
|
224
|
-
locations?: ProfileLocation[];
|
|
225
|
-
website?: string;
|
|
226
|
-
openTo?: string[];
|
|
227
|
-
preferredWorkplace?: string[];
|
|
228
|
-
availableFromUtc?: number;
|
|
229
|
-
availableToUtc?: number;
|
|
230
|
-
pdsProvider?: PdsProviderInfo | null;
|
|
231
|
-
claimed: boolean;
|
|
232
|
-
isOwnProfile?: boolean;
|
|
233
|
-
createdAt?: string;
|
|
234
|
-
trustStats?: TrustStat[];
|
|
235
|
-
verifiedAccounts?: VerifiedAccount[];
|
|
236
|
-
activeApps?: ActiveApp[];
|
|
237
|
-
blueskyVerified?: boolean;
|
|
238
|
-
blueskyVerifiedAt?: string | null;
|
|
239
|
-
followersCount: number;
|
|
240
|
-
followingCount: number;
|
|
241
|
-
connectionsCount: number;
|
|
242
|
-
atprotoFollowersCount?: number;
|
|
243
|
-
positions: ProfilePosition[];
|
|
244
|
-
education: ProfileEducation[];
|
|
245
|
-
skills: ProfileSkill[];
|
|
246
|
-
certifications?: ProfileCertification[];
|
|
247
|
-
projects?: ProfileProject[];
|
|
248
|
-
publications?: ProfilePublication[];
|
|
249
|
-
volunteering?: ProfileVolunteering[];
|
|
250
|
-
honors?: ProfileHonor[];
|
|
251
|
-
languages?: ProfileLanguage[];
|
|
252
|
-
courses?: ProfileCourse[];
|
|
253
|
-
externalAccounts?: ExternalAccount[];
|
|
254
|
-
}
|
|
255
|
-
|
|
256
6
|
type ContinentCode = 'AF' | 'AN' | 'AS' | 'EU' | 'NA' | 'OC' | 'SA';
|
|
257
7
|
declare const CONTINENTS: ReadonlyArray<{
|
|
258
8
|
code: ContinentCode;
|
|
@@ -512,4 +262,4 @@ declare function meetsContrastAA(foreground: RgbColor, background: RgbColor): bo
|
|
|
512
262
|
*/
|
|
513
263
|
declare const SIFA_SDK_VERSION: string;
|
|
514
264
|
|
|
515
|
-
export {
|
|
265
|
+
export { CATEGORY_LABELS, CATEGORY_ORDER, CONTINENTS, COUNTRIES, type ContinentCode, INDUSTRY_OPTIONS, type IndustryOption, LocationValue, type MergedProfileSkill, PLATFORM_LABELS, PLATFORM_OPTIONS, type PdsProvider, PdsProviderInfo, type PlatformId, ProfileSkill, type RgbColor, SIFA_SDK_VERSION, SKILL_CATEGORIES, type SkillCategory, certDateExtractor, contrastRatio, countryCodeToFlag, dateRangeExtractor, dedupeSkills, detectPdsProvider, findIndustry, formatDistanceToNow, formatLocation, formatRelativeTime, getContinent, getDisplayLabel, getFaviconUrl, getHandleStem, getIndustryLabelKey, getPdsDisplayName, getPlatformLabel, groupSkillsByCategory, isKnownPlatform, isValidRgbColor, lexiconDateExtractor, meetsContrastAA, parseLocationString, pdsProviderFromApi, relativeLuminance, rgbToString, sanitizeHandleInput, singleDateExtractor, sortByDateDesc, truncateGraphemes };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,258 +1,8 @@
|
|
|
1
|
+
import { a as ProfileSkill, L as LocationValue, b as PdsProviderInfo } from './index-IDRpze8y.js';
|
|
2
|
+
export { A as ActiveApp, E as Endorsement, c as EndorsementData, d as ExternalAccount, e as ExternalAccountKeytraceClaim, F as FeedItem, f as LanguageProficiency, P as Profile, g as ProfileCertification, h as ProfileCourse, i as ProfileEducation, j as ProfileHonor, k as ProfileIndustry, l as ProfileLanguage, m as ProfileLocation, n as ProfileOverrideSource, o as ProfilePosition, p as ProfileProject, q as ProfilePublication, r as ProfileVolunteering, s as PublicationContributor, S as SkillRef, t as SkillSuggestion, T as TrustStat, V as VerifiedAccount } from './index-IDRpze8y.js';
|
|
1
3
|
export { EndorsementConfirmationRecord, EndorsementConfirmationRecordSchema, EndorsementRecord, EndorsementRecordSchema, GraphFollowRecord, GraphFollowRecordSchema, ProfileCertificationRecord, ProfileCertificationRecordSchema, ProfileCourseRecord, ProfileCourseRecordSchema, ProfileEducationRecord, ProfileEducationRecordSchema, ProfileExternalAccountRecord, ProfileExternalAccountRecordSchema, ProfileHonorRecord, ProfileHonorRecordSchema, ProfileLanguageRecord, ProfileLanguageRecordSchema, ProfilePositionRecord, ProfilePositionRecordSchema, ProfileProjectRecord, ProfileProjectRecordSchema, ProfilePublicationRecord, ProfilePublicationRecordSchema, ProfileSelfRecord, ProfileSelfRecordSchema, ProfileSkillRecord, ProfileSkillRecordSchema, ProfileVolunteeringRecord, ProfileVolunteeringRecordSchema, PublicationAuthor, PublicationAuthorSchema, atUriSchema, cidSchema, datetimeSchema, didSchema, languageTagSchema, maxGraphemes, selfLabelsSchema, strongRefSchema, uriSchema } from './schemas/index.js';
|
|
2
4
|
import 'zod';
|
|
3
5
|
|
|
4
|
-
interface LocationValue {
|
|
5
|
-
city?: string;
|
|
6
|
-
/** community.lexicon.location.address field -- preferred over `city`. */
|
|
7
|
-
locality?: string;
|
|
8
|
-
region?: string;
|
|
9
|
-
country: string;
|
|
10
|
-
countryCode?: string;
|
|
11
|
-
postalCode?: string;
|
|
12
|
-
geonameId?: number;
|
|
13
|
-
}
|
|
14
|
-
interface SkillRef {
|
|
15
|
-
uri: string;
|
|
16
|
-
}
|
|
17
|
-
interface ProfilePosition {
|
|
18
|
-
rkey: string;
|
|
19
|
-
company: string;
|
|
20
|
-
title: string;
|
|
21
|
-
description?: string;
|
|
22
|
-
startedAt: string;
|
|
23
|
-
endedAt?: string;
|
|
24
|
-
location?: LocationValue | null;
|
|
25
|
-
employmentType?: string;
|
|
26
|
-
workplaceType?: string;
|
|
27
|
-
skills?: SkillRef[];
|
|
28
|
-
linkedSkills?: ProfileSkill[];
|
|
29
|
-
primary?: boolean;
|
|
30
|
-
}
|
|
31
|
-
interface ProfileEducation {
|
|
32
|
-
rkey: string;
|
|
33
|
-
institution: string;
|
|
34
|
-
degree?: string;
|
|
35
|
-
fieldOfStudy?: string;
|
|
36
|
-
description?: string;
|
|
37
|
-
activities?: string;
|
|
38
|
-
startedAt?: string;
|
|
39
|
-
endedAt?: string;
|
|
40
|
-
}
|
|
41
|
-
interface ProfileSkill {
|
|
42
|
-
rkey: string;
|
|
43
|
-
name: string;
|
|
44
|
-
category?: string;
|
|
45
|
-
endorsementCount?: number;
|
|
46
|
-
endorsed?: boolean;
|
|
47
|
-
activityBacked?: boolean;
|
|
48
|
-
}
|
|
49
|
-
interface SkillSuggestion {
|
|
50
|
-
canonicalName: string;
|
|
51
|
-
slug: string;
|
|
52
|
-
category: string;
|
|
53
|
-
}
|
|
54
|
-
interface Endorsement {
|
|
55
|
-
endorserDid: string;
|
|
56
|
-
endorserHandle: string;
|
|
57
|
-
endorserDisplayName?: string;
|
|
58
|
-
endorserAvatar?: string;
|
|
59
|
-
comment?: string;
|
|
60
|
-
relationshipContext?: string;
|
|
61
|
-
createdAt: string;
|
|
62
|
-
}
|
|
63
|
-
interface EndorsementData {
|
|
64
|
-
skillRkey: string;
|
|
65
|
-
comment?: string;
|
|
66
|
-
relationshipContext?: string;
|
|
67
|
-
}
|
|
68
|
-
interface ProfileLocation {
|
|
69
|
-
rkey: string;
|
|
70
|
-
type: string;
|
|
71
|
-
label?: string | null;
|
|
72
|
-
isPrimary: boolean;
|
|
73
|
-
locationCountry?: string | null;
|
|
74
|
-
locationRegion?: string | null;
|
|
75
|
-
/** Legacy alias for `locationLocality`; emitted by sifa-api during the additive response window. */
|
|
76
|
-
locationCity?: string | null;
|
|
77
|
-
/** community.lexicon.location.address field name -- prefer over `locationCity`. */
|
|
78
|
-
locationLocality?: string | null;
|
|
79
|
-
countryCode?: string | null;
|
|
80
|
-
location?: string | null;
|
|
81
|
-
}
|
|
82
|
-
interface ProfileCertification {
|
|
83
|
-
rkey: string;
|
|
84
|
-
name: string;
|
|
85
|
-
issuingOrg: string;
|
|
86
|
-
issueDate?: string;
|
|
87
|
-
expiryDate?: string;
|
|
88
|
-
credentialUrl?: string;
|
|
89
|
-
}
|
|
90
|
-
interface ProfileProject {
|
|
91
|
-
rkey: string;
|
|
92
|
-
name: string;
|
|
93
|
-
description?: string;
|
|
94
|
-
url?: string;
|
|
95
|
-
startDate?: string;
|
|
96
|
-
endDate?: string;
|
|
97
|
-
}
|
|
98
|
-
interface PublicationContributor {
|
|
99
|
-
name: string;
|
|
100
|
-
orcidId?: string;
|
|
101
|
-
did?: string;
|
|
102
|
-
handle?: string;
|
|
103
|
-
}
|
|
104
|
-
interface ProfilePublication {
|
|
105
|
-
rkey: string;
|
|
106
|
-
title: string;
|
|
107
|
-
publisher?: string;
|
|
108
|
-
date?: string;
|
|
109
|
-
url?: string;
|
|
110
|
-
description?: string;
|
|
111
|
-
source?: 'sifa' | 'standard' | 'orcid';
|
|
112
|
-
doi?: string;
|
|
113
|
-
type?: string;
|
|
114
|
-
typeLabel?: string;
|
|
115
|
-
contributors?: PublicationContributor[];
|
|
116
|
-
verified?: boolean;
|
|
117
|
-
verifiedVia?: string;
|
|
118
|
-
orcidPutCode?: number;
|
|
119
|
-
hidden?: boolean;
|
|
120
|
-
orcidCorroborated?: boolean;
|
|
121
|
-
pendingVerification?: boolean;
|
|
122
|
-
appId?: string;
|
|
123
|
-
}
|
|
124
|
-
interface ProfileVolunteering {
|
|
125
|
-
rkey: string;
|
|
126
|
-
organization: string;
|
|
127
|
-
role?: string;
|
|
128
|
-
cause?: string;
|
|
129
|
-
startDate?: string;
|
|
130
|
-
endDate?: string;
|
|
131
|
-
description?: string;
|
|
132
|
-
}
|
|
133
|
-
interface ProfileHonor {
|
|
134
|
-
rkey: string;
|
|
135
|
-
title: string;
|
|
136
|
-
issuer?: string;
|
|
137
|
-
date?: string;
|
|
138
|
-
description?: string;
|
|
139
|
-
}
|
|
140
|
-
type LanguageProficiency = 'elementary' | 'limited_working' | 'professional_working' | 'full_professional' | 'native';
|
|
141
|
-
interface ProfileLanguage {
|
|
142
|
-
rkey: string;
|
|
143
|
-
language: string;
|
|
144
|
-
proficiency?: LanguageProficiency;
|
|
145
|
-
}
|
|
146
|
-
interface ProfileCourse {
|
|
147
|
-
rkey: string;
|
|
148
|
-
name: string;
|
|
149
|
-
institution?: string;
|
|
150
|
-
number?: string;
|
|
151
|
-
}
|
|
152
|
-
interface TrustStat {
|
|
153
|
-
key: string;
|
|
154
|
-
label: string;
|
|
155
|
-
value: number;
|
|
156
|
-
}
|
|
157
|
-
interface ActiveApp {
|
|
158
|
-
id: string;
|
|
159
|
-
name: string;
|
|
160
|
-
category: string;
|
|
161
|
-
recentCount: number;
|
|
162
|
-
latestRecordAt?: string | null;
|
|
163
|
-
}
|
|
164
|
-
interface VerifiedAccount {
|
|
165
|
-
platform: string;
|
|
166
|
-
identifier: string;
|
|
167
|
-
url?: string;
|
|
168
|
-
}
|
|
169
|
-
interface ExternalAccountKeytraceClaim {
|
|
170
|
-
rkey: string;
|
|
171
|
-
claimedAt: string;
|
|
172
|
-
}
|
|
173
|
-
interface ExternalAccount {
|
|
174
|
-
rkey: string;
|
|
175
|
-
platform: string;
|
|
176
|
-
url: string;
|
|
177
|
-
label?: string;
|
|
178
|
-
feedUrl?: string;
|
|
179
|
-
primary?: boolean;
|
|
180
|
-
verifiable: boolean;
|
|
181
|
-
verified: boolean;
|
|
182
|
-
verifiedVia?: string | null;
|
|
183
|
-
source?: 'sifa' | 'keytrace' | 'keyoxide';
|
|
184
|
-
hidden?: boolean;
|
|
185
|
-
keytraceVerified?: boolean;
|
|
186
|
-
keytraceClaim?: ExternalAccountKeytraceClaim;
|
|
187
|
-
}
|
|
188
|
-
interface FeedItem {
|
|
189
|
-
title: string;
|
|
190
|
-
excerpt: string;
|
|
191
|
-
url: string;
|
|
192
|
-
timestamp: string;
|
|
193
|
-
source: string;
|
|
194
|
-
}
|
|
195
|
-
interface PdsProviderInfo {
|
|
196
|
-
name: string;
|
|
197
|
-
host: string;
|
|
198
|
-
}
|
|
199
|
-
interface ProfileIndustry {
|
|
200
|
-
industry: string;
|
|
201
|
-
domain?: string;
|
|
202
|
-
}
|
|
203
|
-
interface ProfileOverrideSource {
|
|
204
|
-
headline?: string;
|
|
205
|
-
about?: string;
|
|
206
|
-
displayName?: string;
|
|
207
|
-
avatarUrl?: string;
|
|
208
|
-
}
|
|
209
|
-
interface Profile {
|
|
210
|
-
did: string;
|
|
211
|
-
handle: string;
|
|
212
|
-
displayName?: string;
|
|
213
|
-
avatar?: string;
|
|
214
|
-
pronouns?: string;
|
|
215
|
-
headline?: string;
|
|
216
|
-
about?: string;
|
|
217
|
-
hasHeadlineOverride?: boolean;
|
|
218
|
-
hasAboutOverride?: boolean;
|
|
219
|
-
hasDisplayNameOverride?: boolean;
|
|
220
|
-
hasAvatarUrlOverride?: boolean;
|
|
221
|
-
source?: ProfileOverrideSource;
|
|
222
|
-
industries?: ProfileIndustry[];
|
|
223
|
-
location?: LocationValue | null;
|
|
224
|
-
locations?: ProfileLocation[];
|
|
225
|
-
website?: string;
|
|
226
|
-
openTo?: string[];
|
|
227
|
-
preferredWorkplace?: string[];
|
|
228
|
-
availableFromUtc?: number;
|
|
229
|
-
availableToUtc?: number;
|
|
230
|
-
pdsProvider?: PdsProviderInfo | null;
|
|
231
|
-
claimed: boolean;
|
|
232
|
-
isOwnProfile?: boolean;
|
|
233
|
-
createdAt?: string;
|
|
234
|
-
trustStats?: TrustStat[];
|
|
235
|
-
verifiedAccounts?: VerifiedAccount[];
|
|
236
|
-
activeApps?: ActiveApp[];
|
|
237
|
-
blueskyVerified?: boolean;
|
|
238
|
-
blueskyVerifiedAt?: string | null;
|
|
239
|
-
followersCount: number;
|
|
240
|
-
followingCount: number;
|
|
241
|
-
connectionsCount: number;
|
|
242
|
-
atprotoFollowersCount?: number;
|
|
243
|
-
positions: ProfilePosition[];
|
|
244
|
-
education: ProfileEducation[];
|
|
245
|
-
skills: ProfileSkill[];
|
|
246
|
-
certifications?: ProfileCertification[];
|
|
247
|
-
projects?: ProfileProject[];
|
|
248
|
-
publications?: ProfilePublication[];
|
|
249
|
-
volunteering?: ProfileVolunteering[];
|
|
250
|
-
honors?: ProfileHonor[];
|
|
251
|
-
languages?: ProfileLanguage[];
|
|
252
|
-
courses?: ProfileCourse[];
|
|
253
|
-
externalAccounts?: ExternalAccount[];
|
|
254
|
-
}
|
|
255
|
-
|
|
256
6
|
type ContinentCode = 'AF' | 'AN' | 'AS' | 'EU' | 'NA' | 'OC' | 'SA';
|
|
257
7
|
declare const CONTINENTS: ReadonlyArray<{
|
|
258
8
|
code: ContinentCode;
|
|
@@ -512,4 +262,4 @@ declare function meetsContrastAA(foreground: RgbColor, background: RgbColor): bo
|
|
|
512
262
|
*/
|
|
513
263
|
declare const SIFA_SDK_VERSION: string;
|
|
514
264
|
|
|
515
|
-
export {
|
|
265
|
+
export { CATEGORY_LABELS, CATEGORY_ORDER, CONTINENTS, COUNTRIES, type ContinentCode, INDUSTRY_OPTIONS, type IndustryOption, LocationValue, type MergedProfileSkill, PLATFORM_LABELS, PLATFORM_OPTIONS, type PdsProvider, PdsProviderInfo, type PlatformId, ProfileSkill, type RgbColor, SIFA_SDK_VERSION, SKILL_CATEGORIES, type SkillCategory, certDateExtractor, contrastRatio, countryCodeToFlag, dateRangeExtractor, dedupeSkills, detectPdsProvider, findIndustry, formatDistanceToNow, formatLocation, formatRelativeTime, getContinent, getDisplayLabel, getFaviconUrl, getHandleStem, getIndustryLabelKey, getPdsDisplayName, getPlatformLabel, groupSkillsByCategory, isKnownPlatform, isValidRgbColor, lexiconDateExtractor, meetsContrastAA, parseLocationString, pdsProviderFromApi, relativeLuminance, rgbToString, sanitizeHandleInput, singleDateExtractor, sortByDateDesc, truncateGraphemes };
|
package/dist/index.js
CHANGED
|
@@ -1086,7 +1086,7 @@ var ProfileVolunteeringRecordSchema = z.object({
|
|
|
1086
1086
|
});
|
|
1087
1087
|
|
|
1088
1088
|
// src/index.ts
|
|
1089
|
-
var SIFA_SDK_VERSION = "0.
|
|
1089
|
+
var SIFA_SDK_VERSION = "0.6.0";
|
|
1090
1090
|
|
|
1091
1091
|
export { CATEGORY_LABELS, CATEGORY_ORDER, CONTINENTS, COUNTRIES, EndorsementConfirmationRecordSchema, EndorsementRecordSchema, GraphFollowRecordSchema, INDUSTRY_OPTIONS, PLATFORM_LABELS, PLATFORM_OPTIONS, ProfileCertificationRecordSchema, ProfileCourseRecordSchema, ProfileEducationRecordSchema, ProfileExternalAccountRecordSchema, ProfileHonorRecordSchema, ProfileLanguageRecordSchema, ProfilePositionRecordSchema, ProfileProjectRecordSchema, ProfilePublicationRecordSchema, ProfileSelfRecordSchema, ProfileSkillRecordSchema, ProfileVolunteeringRecordSchema, PublicationAuthorSchema, SIFA_SDK_VERSION, SKILL_CATEGORIES, atUriSchema, certDateExtractor, cidSchema, contrastRatio, countryCodeToFlag, dateRangeExtractor, datetimeSchema, dedupeSkills, detectPdsProvider, didSchema, findIndustry, formatDistanceToNow, formatLocation, formatRelativeTime, getContinent, getDisplayLabel, getFaviconUrl, getHandleStem, getIndustryLabelKey, getPdsDisplayName, getPlatformLabel, groupSkillsByCategory, isKnownPlatform, isValidRgbColor, languageTagSchema, lexiconDateExtractor, maxGraphemes, meetsContrastAA, parseLocationString, pdsProviderFromApi, relativeLuminance, rgbToString, sanitizeHandleInput, selfLabelsSchema, singleDateExtractor, sortByDateDesc, strongRefSchema, truncateGraphemes, uriSchema };
|
|
1092
1092
|
//# sourceMappingURL=index.js.map
|