@singi-labs/sifa-sdk 0.11.30 → 0.11.31
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-C34UkvI6.d.cts → adult-content-BO4nea-m.d.cts} +15 -3
- package/dist/{adult-content-C34UkvI6.d.ts → adult-content-BO4nea-m.d.ts} +15 -3
- package/dist/{index-kI-vBdnE.d.cts → index-BeAu_9VV.d.cts} +2 -2
- package/dist/{index-wv9ynfAS.d.ts → index-BjzvRGGZ.d.ts} +2 -2
- package/dist/{index-D8RLonDG.d.cts → index-D6ZKjuEo.d.cts} +2 -2
- package/dist/{index-OH2lArWp.d.ts → index-DUSGkW3U.d.ts} +2 -2
- package/dist/index.cjs +31 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +31 -16
- package/dist/index.js.map +1 -1
- package/dist/{keys-CA2WLIM6.d.cts → keys-B9_KrPw_.d.cts} +1 -1
- package/dist/{keys-BAdZNl3S.d.ts → keys-Cy0T900D.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 +30 -15
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.js +30 -15
- package/dist/schemas/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -114,7 +114,19 @@ interface ProfileLocation {
|
|
|
114
114
|
interface ProfileCertification {
|
|
115
115
|
rkey: string;
|
|
116
116
|
name: string;
|
|
117
|
-
|
|
117
|
+
/**
|
|
118
|
+
* Issuing organization. The write contract names this field `authority`
|
|
119
|
+
* everywhere (record schema, DB column, PDS record); the AppView read view
|
|
120
|
+
* emits `authority` as the canonical field (#249). Optional during the
|
|
121
|
+
* deprecation window while consumers migrate off the legacy `issuingOrg`
|
|
122
|
+
* alias below.
|
|
123
|
+
*/
|
|
124
|
+
authority?: string;
|
|
125
|
+
/**
|
|
126
|
+
* @deprecated Legacy read-view alias for {@link authority} (#249). Carries the
|
|
127
|
+
* same value; will be dropped once web + SDK consumers read `authority`.
|
|
128
|
+
*/
|
|
129
|
+
issuingOrg?: string;
|
|
118
130
|
/**
|
|
119
131
|
* Portable org entity identifier (Wikidata/ROR/LEI URI) linking the issuing
|
|
120
132
|
* organization to a resolved entity (#159/#241). Absent for free-text entries.
|
|
@@ -123,9 +135,9 @@ interface ProfileCertification {
|
|
|
123
135
|
entityRef?: string;
|
|
124
136
|
/**
|
|
125
137
|
* Resolved current canonical name of the durably-linked issuing organization
|
|
126
|
-
* (#252), computed by the AppView at read time. Render this over `
|
|
138
|
+
* (#252), computed by the AppView at read time. Render this over `authority`
|
|
127
139
|
* for a linked entry. Absent for free-text or unresolved entries (fall back to
|
|
128
|
-
* `
|
|
140
|
+
* `authority`).
|
|
129
141
|
*/
|
|
130
142
|
entityName?: string;
|
|
131
143
|
issueDate?: string;
|
|
@@ -114,7 +114,19 @@ interface ProfileLocation {
|
|
|
114
114
|
interface ProfileCertification {
|
|
115
115
|
rkey: string;
|
|
116
116
|
name: string;
|
|
117
|
-
|
|
117
|
+
/**
|
|
118
|
+
* Issuing organization. The write contract names this field `authority`
|
|
119
|
+
* everywhere (record schema, DB column, PDS record); the AppView read view
|
|
120
|
+
* emits `authority` as the canonical field (#249). Optional during the
|
|
121
|
+
* deprecation window while consumers migrate off the legacy `issuingOrg`
|
|
122
|
+
* alias below.
|
|
123
|
+
*/
|
|
124
|
+
authority?: string;
|
|
125
|
+
/**
|
|
126
|
+
* @deprecated Legacy read-view alias for {@link authority} (#249). Carries the
|
|
127
|
+
* same value; will be dropped once web + SDK consumers read `authority`.
|
|
128
|
+
*/
|
|
129
|
+
issuingOrg?: string;
|
|
118
130
|
/**
|
|
119
131
|
* Portable org entity identifier (Wikidata/ROR/LEI URI) linking the issuing
|
|
120
132
|
* organization to a resolved entity (#159/#241). Absent for free-text entries.
|
|
@@ -123,9 +135,9 @@ interface ProfileCertification {
|
|
|
123
135
|
entityRef?: string;
|
|
124
136
|
/**
|
|
125
137
|
* Resolved current canonical name of the durably-linked issuing organization
|
|
126
|
-
* (#252), computed by the AppView at read time. Render this over `
|
|
138
|
+
* (#252), computed by the AppView at read time. Render this over `authority`
|
|
127
139
|
* for a linked entry. Absent for free-text or unresolved entries (fall back to
|
|
128
|
-
* `
|
|
140
|
+
* `authority`).
|
|
129
141
|
*/
|
|
130
142
|
entityName?: string;
|
|
131
143
|
issueDate?: string;
|
|
@@ -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, a5 as RefreshPdsResult, aj as UpdateProfileOverrideInput, ak as UpdateProfileSelfInput, al as UploadAvatarResult, j as CreateResult, U as ProfileLocationInput, k as ExternalAccountInput, i as CreateExternalAccountResult, am as VerifyExternalAccountResult, E as EndorsementInput, a4 as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, P as HideProfileItemInput, ag as StatsResponse, g as AppRegistryEntry, M as HiddenApp, w as FilterOptions, ab as SearchFilters, ac as SearchResponse, af as SkillSearchResult, l as FeaturedProfile, ae as SimilarProfile, v as FetchSuggestionsOptions, ai 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, a3 as ReactionStatus, a2 as ReactionResult, a1 as ReactionError, aa as RoadmapVotesResponse, C as CastRoadmapVoteResult, D as DeleteAccountResult } from './keys-
|
|
3
|
+
import { S as SifaApiConfig, s as sifaQueryKeys, W as WriteResult, a5 as RefreshPdsResult, aj as UpdateProfileOverrideInput, ak as UpdateProfileSelfInput, al as UploadAvatarResult, j as CreateResult, U as ProfileLocationInput, k as ExternalAccountInput, i as CreateExternalAccountResult, am as VerifyExternalAccountResult, E as EndorsementInput, a4 as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, P as HideProfileItemInput, ag as StatsResponse, g as AppRegistryEntry, M as HiddenApp, w as FilterOptions, ab as SearchFilters, ac as SearchResponse, af as SkillSearchResult, l as FeaturedProfile, ae as SimilarProfile, v as FetchSuggestionsOptions, ai 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, a3 as ReactionStatus, a2 as ReactionResult, a1 as ReactionError, aa as RoadmapVotesResponse, C as CastRoadmapVoteResult, D as DeleteAccountResult } from './keys-B9_KrPw_.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, v as ProfilePosition, D as SkillRef, E as ExternalAccount, S as SkillSuggestion } from './adult-content-
|
|
6
|
+
import { d as Profile, v as ProfilePosition, D as SkillRef, E as ExternalAccount, S as SkillSuggestion } from './adult-content-BO4nea-m.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
|
|
|
9
9
|
interface SifaProviderProps {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as SifaApiConfig, A as ApiFetchOptions, j as CreateResult, W as WriteResult } from './keys-
|
|
2
|
-
import { d as Profile, v as ProfilePosition, D as SkillRef } from './adult-content-
|
|
1
|
+
import { S as SifaApiConfig, A as ApiFetchOptions, j as CreateResult, W as WriteResult } from './keys-Cy0T900D.js';
|
|
2
|
+
import { d as Profile, v as ProfilePosition, D as SkillRef } from './adult-content-BO4nea-m.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 './keys-
|
|
2
|
-
import { d as Profile, v as ProfilePosition, D as SkillRef } from './adult-content-
|
|
1
|
+
import { S as SifaApiConfig, A as ApiFetchOptions, j as CreateResult, W as WriteResult } from './keys-B9_KrPw_.cjs';
|
|
2
|
+
import { d as Profile, v as ProfilePosition, D as SkillRef } from './adult-content-BO4nea-m.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
|
/**
|
|
@@ -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, a5 as RefreshPdsResult, aj as UpdateProfileOverrideInput, ak as UpdateProfileSelfInput, al as UploadAvatarResult, j as CreateResult, U as ProfileLocationInput, k as ExternalAccountInput, i as CreateExternalAccountResult, am as VerifyExternalAccountResult, E as EndorsementInput, a4 as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, P as HideProfileItemInput, ag as StatsResponse, g as AppRegistryEntry, M as HiddenApp, w as FilterOptions, ab as SearchFilters, ac as SearchResponse, af as SkillSearchResult, l as FeaturedProfile, ae as SimilarProfile, v as FetchSuggestionsOptions, ai 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, a3 as ReactionStatus, a2 as ReactionResult, a1 as ReactionError, aa as RoadmapVotesResponse, C as CastRoadmapVoteResult, D as DeleteAccountResult } from './keys-
|
|
3
|
+
import { S as SifaApiConfig, s as sifaQueryKeys, W as WriteResult, a5 as RefreshPdsResult, aj as UpdateProfileOverrideInput, ak as UpdateProfileSelfInput, al as UploadAvatarResult, j as CreateResult, U as ProfileLocationInput, k as ExternalAccountInput, i as CreateExternalAccountResult, am as VerifyExternalAccountResult, E as EndorsementInput, a4 as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, P as HideProfileItemInput, ag as StatsResponse, g as AppRegistryEntry, M as HiddenApp, w as FilterOptions, ab as SearchFilters, ac as SearchResponse, af as SkillSearchResult, l as FeaturedProfile, ae as SimilarProfile, v as FetchSuggestionsOptions, ai 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, a3 as ReactionStatus, a2 as ReactionResult, a1 as ReactionError, aa as RoadmapVotesResponse, C as CastRoadmapVoteResult, D as DeleteAccountResult } from './keys-Cy0T900D.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, v as ProfilePosition, D as SkillRef, E as ExternalAccount, S as SkillSuggestion } from './adult-content-
|
|
6
|
+
import { d as Profile, v as ProfilePosition, D as SkillRef, E as ExternalAccount, S as SkillSuggestion } from './adult-content-BO4nea-m.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
|
|
|
9
9
|
interface SifaProviderProps {
|
package/dist/index.cjs
CHANGED
|
@@ -2903,8 +2903,10 @@ var ProfileCertificationRecordSchema = zod.z.object({
|
|
|
2903
2903
|
entityRef: zod.z.string().url().refine((s) => /^https?:\/\//i.test(s), { message: "entityRef must be an http(s) URL" }).max(2048).optional(),
|
|
2904
2904
|
credentialId: zod.z.string().refine(maxGraphemes(100)).max(1e3).optional(),
|
|
2905
2905
|
credentialUrl: uriSchema.optional(),
|
|
2906
|
-
|
|
2907
|
-
|
|
2906
|
+
// Freeform YYYY-MM or YYYY-MM-DD (not a strict datetime) so partial dates
|
|
2907
|
+
// and LinkedIn-importer writes are accepted. See sifa-lexicons#256.
|
|
2908
|
+
issuedAt: zod.z.string().optional(),
|
|
2909
|
+
expiresAt: zod.z.string().optional(),
|
|
2908
2910
|
labels: selfLabelsSchema.optional(),
|
|
2909
2911
|
createdAt: datetimeSchema
|
|
2910
2912
|
});
|
|
@@ -2919,9 +2921,10 @@ var ProfileCourseRecordSchema = zod.z.object({
|
|
|
2919
2921
|
// AT-URI of the associated id.sifa.profile.certification record. Plain
|
|
2920
2922
|
// at-uri (not a strongRef) so the link tracks the live certification.
|
|
2921
2923
|
credential: atUriSchema.optional(),
|
|
2922
|
-
// Date the course was completed.
|
|
2923
|
-
//
|
|
2924
|
-
|
|
2924
|
+
// Date the course was completed. Freeform YYYY-MM or YYYY-MM-DD (not a strict
|
|
2925
|
+
// datetime) so month-granularity and partial dates are accepted. See
|
|
2926
|
+
// sifa-lexicons#256.
|
|
2927
|
+
completedAt: zod.z.string().optional(),
|
|
2925
2928
|
createdAt: datetimeSchema
|
|
2926
2929
|
});
|
|
2927
2930
|
var ProfileEducationRecordSchema = zod.z.object({
|
|
@@ -2936,8 +2939,10 @@ var ProfileEducationRecordSchema = zod.z.object({
|
|
|
2936
2939
|
activities: zod.z.string().refine(maxGraphemes(1e3)).max(1e4).optional(),
|
|
2937
2940
|
description: zod.z.string().refine(maxGraphemes(5e3)).max(5e4).optional(),
|
|
2938
2941
|
location: zod.z.unknown().optional(),
|
|
2939
|
-
|
|
2940
|
-
|
|
2942
|
+
// Freeform YYYY-MM or YYYY-MM-DD (not a strict datetime) so partial dates
|
|
2943
|
+
// and LinkedIn-importer writes are accepted. See sifa-lexicons#256.
|
|
2944
|
+
startedAt: zod.z.string().optional(),
|
|
2945
|
+
endedAt: zod.z.string().optional(),
|
|
2941
2946
|
labels: selfLabelsSchema.optional(),
|
|
2942
2947
|
createdAt: datetimeSchema
|
|
2943
2948
|
});
|
|
@@ -2957,7 +2962,9 @@ var ProfileHonorRecordSchema = zod.z.object({
|
|
|
2957
2962
|
// Constrained to http(s) so a script-bearing scheme is never a valid ref (#159).
|
|
2958
2963
|
entityRef: zod.z.string().url().refine((s) => /^https?:\/\//i.test(s), { message: "entityRef must be an http(s) URL" }).max(2048).optional(),
|
|
2959
2964
|
description: zod.z.string().refine(maxGraphemes(5e3)).max(5e4).optional(),
|
|
2960
|
-
|
|
2965
|
+
// Freeform YYYY-MM or YYYY-MM-DD (not a strict datetime) so partial dates
|
|
2966
|
+
// and LinkedIn-importer writes are accepted. See sifa-lexicons#256.
|
|
2967
|
+
awardedAt: zod.z.string().optional(),
|
|
2961
2968
|
createdAt: datetimeSchema
|
|
2962
2969
|
});
|
|
2963
2970
|
var PROFILE_INVOLVEMENT_NSID = "id.sifa.profile.involvement";
|
|
@@ -3003,8 +3010,10 @@ var ProfilePositionRecordSchema = zod.z.object({
|
|
|
3003
3010
|
employmentType: zod.z.string().optional(),
|
|
3004
3011
|
workplaceType: zod.z.string().optional(),
|
|
3005
3012
|
location: zod.z.unknown().optional(),
|
|
3006
|
-
|
|
3007
|
-
|
|
3013
|
+
// Freeform YYYY-MM or YYYY-MM-DD (not a strict datetime) so partial dates
|
|
3014
|
+
// and LinkedIn-importer writes are accepted. See sifa-lexicons#256.
|
|
3015
|
+
startedAt: zod.z.string(),
|
|
3016
|
+
endedAt: zod.z.string().optional(),
|
|
3008
3017
|
skills: zod.z.array(strongRefSchema).max(50).optional(),
|
|
3009
3018
|
labels: selfLabelsSchema.optional(),
|
|
3010
3019
|
createdAt: datetimeSchema
|
|
@@ -3056,8 +3065,10 @@ var ProfileProjectRecordSchema = zod.z.object({
|
|
|
3056
3065
|
description: zod.z.string().refine(maxGraphemes(5e3)).max(5e4).optional(),
|
|
3057
3066
|
url: uriSchema.optional(),
|
|
3058
3067
|
position: strongRefSchema.optional(),
|
|
3059
|
-
|
|
3060
|
-
|
|
3068
|
+
// Freeform YYYY-MM or YYYY-MM-DD (not a strict datetime) so partial dates
|
|
3069
|
+
// and LinkedIn-importer writes are accepted. See sifa-lexicons#256.
|
|
3070
|
+
startedAt: zod.z.string().optional(),
|
|
3071
|
+
endedAt: zod.z.string().optional(),
|
|
3061
3072
|
labels: selfLabelsSchema.optional(),
|
|
3062
3073
|
createdAt: datetimeSchema
|
|
3063
3074
|
});
|
|
@@ -3072,7 +3083,9 @@ var ProfilePublicationRecordSchema = zod.z.object({
|
|
|
3072
3083
|
url: uriSchema.optional(),
|
|
3073
3084
|
description: zod.z.string().refine(maxGraphemes(5e3)).max(5e4).optional(),
|
|
3074
3085
|
authors: zod.z.array(PublicationAuthorSchema).max(50).optional(),
|
|
3075
|
-
|
|
3086
|
+
// Freeform YYYY-MM or YYYY-MM-DD (not a strict datetime) so partial dates
|
|
3087
|
+
// and LinkedIn-importer writes are accepted. See sifa-lexicons#256.
|
|
3088
|
+
publishedAt: zod.z.string().optional(),
|
|
3076
3089
|
createdAt: datetimeSchema
|
|
3077
3090
|
});
|
|
3078
3091
|
var ProfileSelfRecordSchema = zod.z.object({
|
|
@@ -3103,13 +3116,15 @@ var ProfileVolunteeringRecordSchema = zod.z.object({
|
|
|
3103
3116
|
role: zod.z.string().refine(maxGraphemes(100)).max(1e3).optional(),
|
|
3104
3117
|
cause: zod.z.string().refine(maxGraphemes(100)).max(1e3).optional(),
|
|
3105
3118
|
description: zod.z.string().refine(maxGraphemes(5e3)).max(5e4).optional(),
|
|
3106
|
-
|
|
3107
|
-
|
|
3119
|
+
// Freeform YYYY-MM or YYYY-MM-DD (not a strict datetime) so partial dates
|
|
3120
|
+
// and LinkedIn-importer writes are accepted. See sifa-lexicons#256.
|
|
3121
|
+
startedAt: zod.z.string().optional(),
|
|
3122
|
+
endedAt: zod.z.string().optional(),
|
|
3108
3123
|
createdAt: datetimeSchema
|
|
3109
3124
|
});
|
|
3110
3125
|
|
|
3111
3126
|
// src/index.ts
|
|
3112
|
-
var SIFA_SDK_VERSION = "0.11.
|
|
3127
|
+
var SIFA_SDK_VERSION = "0.11.31";
|
|
3113
3128
|
|
|
3114
3129
|
exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
|
|
3115
3130
|
exports.ACTIVITY_VISIBILITY_RULES = ACTIVITY_VISIBILITY_RULES;
|