@singi-labs/sifa-sdk 0.19.67 → 0.19.69
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.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{org-B_0EMNuF.d.cts → org-DLl_2oY6.d.cts} +12 -0
- package/dist/{org--5MN6Ev4.d.ts → org-PkrUsjXq.d.ts} +12 -0
- package/dist/query/fetchers/index.cjs +12 -0
- package/dist/query/fetchers/index.cjs.map +1 -1
- package/dist/query/fetchers/index.d.cts +1 -1
- package/dist/query/fetchers/index.d.ts +1 -1
- package/dist/query/fetchers/org-attestations.js +120 -0
- package/dist/query/fetchers/org-attestations.js.map +1 -0
- package/dist/query/fetchers/verification.js +49 -0
- package/dist/query/fetchers/verification.js.map +1 -0
- package/dist/query/hooks/index.cjs +239 -0
- package/dist/query/hooks/index.cjs.map +1 -1
- package/dist/query/hooks/index.d.cts +2 -2
- package/dist/query/hooks/index.d.ts +2 -2
- package/dist/query/hooks/index.js +18 -0
- package/dist/query/hooks/index.js.map +1 -1
- package/dist/query/hooks/use-org-attestations.js +108 -0
- package/dist/query/hooks/use-org-attestations.js.map +1 -0
- package/dist/query/hooks/use-verification.js +19 -0
- package/dist/query/hooks/use-verification.js.map +1 -0
- package/dist/query/index.cjs +259 -0
- package/dist/query/index.cjs.map +1 -1
- package/dist/query/index.d.cts +3 -3
- package/dist/query/index.d.ts +3 -3
- package/dist/query/index.js +48 -0
- package/dist/query/index.js.map +1 -1
- package/dist/query/keys.js +12 -0
- package/dist/query/keys.js.map +1 -1
- package/dist/{use-org-notification-emails-B4INNGOe.d.cts → use-org-notification-emails-CcOMI3qF.d.cts} +201 -3
- package/dist/{use-org-notification-emails-DZ0oVtiX.d.ts → use-org-notification-emails-i5dhCaw8.d.ts} +201 -3
- package/package.json +1 -1
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { K as SifaApiConfig,
|
|
3
|
+
import { K as SifaApiConfig, M as ApiFetchOptions, W as WriteResult, n as ProfileView, N as CreateResult, Q as FilterOptions, S as SearchFilters, X as SearchResponse, Y as SkillSearchResult, a5 as CompanySearchFilters, a6 as CompanySearchResponse, t as RepoDeleteResult, w as RepoInventory } from './types-BV-qBo9i.cjs';
|
|
4
4
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
5
5
|
import { UseQueryOptions, UseMutationOptions, UseInfiniteQueryOptions, InfiniteData } from '@tanstack/react-query';
|
|
6
6
|
import { c as Profile, d as ProfilePosition, U as SkillRef, p as ExternalAccount, V as SkillSuggestion, s as OrgFloorVerdict } from './index-syVBnrbI.cjs';
|
|
7
|
-
import { s as sifaQueryKeys, aD as RefreshPdsResult, aU as UpdateProfileOverrideInput, aV as UpdateProfileSelfInput, aW as UploadAvatarResult, aX as UploadPronunciationAudioResult, an as PrimarySection, aO as SubCategoryBulkResult, as as ProfileLocationInput, o as ExternalAccountInput, m as CreateExternalAccountResult, aY as VerifyExternalAccountResult, E as EndorsementInput, k as ConfirmationInput, l as ConfirmationSubjectInput, Z as GivenConfirmation, am as PendingConfirmationsPage, a8 as InboxCounts, n as DismissUnlinkedPositionInput, aT as UnlinkedPositionsResult, ao as ProfileCompleteness, aC as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, a7 as HideProfileItemInput, a2 as HiddenActivityItem, a6 as HideActivityItemInput, aR as UnhideActivityItemInput, aN as StatsResponse, h as AppRegistryEntry, a3 as HiddenApp, b as AccountSummary, p as FeaturedProfile, aM as SimilarProfile, L as FetchSuggestionsOptions, aQ as SuggestionsResponse, Q as FollowUserResult, v as FetchFollowListOptions, N as FollowListPage, W as FollowingResponse, x as FetchFollowingFeedOptions, U as FollowingFeedResponse, V as FollowingFeedVersion, w as FetchFollowProfilePageOptions, P as FollowProfilePageResponse, F as FeatureAllowlistResponse, g as AdminReviewQueues, r as FetchActivityFeedOptions, c as ActivityFeedResponse, f as ActivityTeaserResponse, a1 as HeatmapResponse, aa as MyGithubPullRequestsResponse, A as AccountCheckResult, aB as ReactionStatus, aA as ReactionResult, az as ReactionError, aK as RoadmapVotesResponse, i as CastRoadmapVoteResult, D as DeleteAccountResult, aF as ResetProfileResult, aZ as WipePreview, aE as RepoDeleteInput, ac as OrgClaimResult, ai as OrgProfileUpdateResult, ad as OrgDomainChallengeResult, ae as OrgDomainVerifyResult, af as OrgNotificationEmailAddResult, ag as OrgNotificationEmailRemoveResult } from './org-
|
|
7
|
+
import { s as sifaQueryKeys, aD as RefreshPdsResult, aU as UpdateProfileOverrideInput, aV as UpdateProfileSelfInput, aW as UploadAvatarResult, aX as UploadPronunciationAudioResult, an as PrimarySection, aO as SubCategoryBulkResult, as as ProfileLocationInput, o as ExternalAccountInput, m as CreateExternalAccountResult, aY as VerifyExternalAccountResult, E as EndorsementInput, k as ConfirmationInput, l as ConfirmationSubjectInput, Z as GivenConfirmation, am as PendingConfirmationsPage, a8 as InboxCounts, n as DismissUnlinkedPositionInput, aT as UnlinkedPositionsResult, ao as ProfileCompleteness, aC as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, a7 as HideProfileItemInput, a2 as HiddenActivityItem, a6 as HideActivityItemInput, aR as UnhideActivityItemInput, aN as StatsResponse, h as AppRegistryEntry, a3 as HiddenApp, b as AccountSummary, p as FeaturedProfile, aM as SimilarProfile, L as FetchSuggestionsOptions, aQ as SuggestionsResponse, Q as FollowUserResult, v as FetchFollowListOptions, N as FollowListPage, W as FollowingResponse, x as FetchFollowingFeedOptions, U as FollowingFeedResponse, V as FollowingFeedVersion, w as FetchFollowProfilePageOptions, P as FollowProfilePageResponse, F as FeatureAllowlistResponse, g as AdminReviewQueues, r as FetchActivityFeedOptions, c as ActivityFeedResponse, f as ActivityTeaserResponse, a1 as HeatmapResponse, aa as MyGithubPullRequestsResponse, A as AccountCheckResult, aB as ReactionStatus, aA as ReactionResult, az as ReactionError, aK as RoadmapVotesResponse, i as CastRoadmapVoteResult, D as DeleteAccountResult, aF as ResetProfileResult, aZ as WipePreview, aE as RepoDeleteInput, ac as OrgClaimResult, ai as OrgProfileUpdateResult, ad as OrgDomainChallengeResult, ae as OrgDomainVerifyResult, af as OrgNotificationEmailAddResult, ag as OrgNotificationEmailRemoveResult } from './org-DLl_2oY6.cjs';
|
|
8
|
+
import { z } from 'zod';
|
|
8
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-CQ3DTTak.cjs';
|
|
9
10
|
import { O as OrgClaimRequestInput, a as OrgProfileUpdateRequestInput, b as OrgDomainChallengeRequestInput, c as OrgDomainVerifyRequestInput, d as OrgNotificationEmailRequestInput } from './org-settings-C73Sin5E.cjs';
|
|
10
11
|
|
|
@@ -32,6 +33,163 @@ declare function SifaProvider({ config, children }: SifaProviderProps): react.JS
|
|
|
32
33
|
*/
|
|
33
34
|
declare function useSifaConfig(): SifaApiConfig;
|
|
34
35
|
|
|
36
|
+
/**
|
|
37
|
+
* Every kind of fact the employment-verification log can hold. Mirrors
|
|
38
|
+
* `VERIFICATION_EVENT_KINDS` in sifa-api. Kept open (`z.string()`) on the
|
|
39
|
+
* wire so a kind the AppView adds later does not break older clients; the
|
|
40
|
+
* union is the set a client can render specific copy for today.
|
|
41
|
+
*/
|
|
42
|
+
declare const VERIFICATION_EVENT_KINDS: readonly ["mailbox_verified", "domain_recognized", "reverified", "reverification_failed", "org_confirmed", "org_status_changed", "org_revoked", "peer_vouched", "peer_withdrawn"];
|
|
43
|
+
type VerificationEventKind = (typeof VERIFICATION_EVENT_KINDS)[number];
|
|
44
|
+
/**
|
|
45
|
+
* One entry of a position's verification log, newest first, as the AppView
|
|
46
|
+
* returns it. `emailAddress` is present only when the signed-in viewer owns
|
|
47
|
+
* the profile; everyone else gets the domain at most. An AppView READ shape,
|
|
48
|
+
* not a PDS record: the log lives in Sifa's database. Unknown extra fields
|
|
49
|
+
* pass through so the shape stays additive.
|
|
50
|
+
*/
|
|
51
|
+
declare const VerificationLogEntrySchema: z.ZodObject<{
|
|
52
|
+
id: z.ZodNumber;
|
|
53
|
+
kind: z.ZodString;
|
|
54
|
+
occurredAt: z.ZodString;
|
|
55
|
+
entityId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
56
|
+
emailDomain: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
57
|
+
emailAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
|
+
meta: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
59
|
+
}, z.core.$loose>;
|
|
60
|
+
declare const VerificationLogSchema: z.ZodObject<{
|
|
61
|
+
events: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
62
|
+
id: z.ZodNumber;
|
|
63
|
+
kind: z.ZodString;
|
|
64
|
+
occurredAt: z.ZodString;
|
|
65
|
+
entityId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
66
|
+
emailDomain: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
67
|
+
emailAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
68
|
+
meta: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
69
|
+
}, z.core.$loose>>>;
|
|
70
|
+
}, z.core.$strip>;
|
|
71
|
+
type VerificationLogEntry = z.infer<typeof VerificationLogEntrySchema>;
|
|
72
|
+
type VerificationLog = z.infer<typeof VerificationLogSchema>;
|
|
73
|
+
/** Options for {@link fetchVerificationLog}, adding the RSC cookie-forwarding escape hatch. */
|
|
74
|
+
interface FetchVerificationLogOptions extends ApiFetchOptions {
|
|
75
|
+
/**
|
|
76
|
+
* Pass the caller's `Cookie` header on Next.js RSC server-side calls, so
|
|
77
|
+
* the owner sees full addresses. `credentials: 'include'` does not propagate
|
|
78
|
+
* browser cookies in RSC.
|
|
79
|
+
*/
|
|
80
|
+
cookieHeader?: string;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* The verification log of one position, newest first. Public: anyone can read
|
|
84
|
+
* it, the AppView strips the addresses for everyone but the owner.
|
|
85
|
+
*
|
|
86
|
+
* Resolves to an empty log on any failure (network, non-2xx, malformed body)
|
|
87
|
+
* by design, the same contract as the confirmation fetchers: the log is a
|
|
88
|
+
* detail panel on a profile, and a broken panel must never take the profile
|
|
89
|
+
* down with it. Callers that need to distinguish "empty" from "failed" use
|
|
90
|
+
* `apiFetch` directly.
|
|
91
|
+
*/
|
|
92
|
+
declare function fetchVerificationLog(config: SifaApiConfig, did: string, positionRkey: string, options?: FetchVerificationLogOptions): Promise<VerificationLog>;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Organization employment attestations (sifa-workspace#623). The org side
|
|
96
|
+
* writes `id.sifa.org.employmentAttestation` records through the AppView,
|
|
97
|
+
* which indexes them at once; the employee side asks for one.
|
|
98
|
+
*
|
|
99
|
+
* These are AppView READ and WRITE shapes, not PDS records: the record itself
|
|
100
|
+
* is built server-side from the input, so a client never assembles one.
|
|
101
|
+
*/
|
|
102
|
+
type AttestationStatus = 'current' | 'past';
|
|
103
|
+
/** Body accepted by {@link createOrgAttestation}. */
|
|
104
|
+
interface CreateOrgAttestationInput {
|
|
105
|
+
subjectDid: string;
|
|
106
|
+
status: AttestationStatus;
|
|
107
|
+
/** Portable entity id (Wikidata, ROR, LEI or sifa.id/company URI); omit to attest at the account. */
|
|
108
|
+
entityRef?: string;
|
|
109
|
+
title?: string;
|
|
110
|
+
/** YYYY-MM or YYYY-MM-DD. */
|
|
111
|
+
startedAt?: string;
|
|
112
|
+
endedAt?: string;
|
|
113
|
+
/** AT-URI of one of the subject's own positions; omit to attest employment at the entity. */
|
|
114
|
+
positionUri?: string;
|
|
115
|
+
positionCid?: string;
|
|
116
|
+
comment?: string;
|
|
117
|
+
}
|
|
118
|
+
interface CreateOrgAttestationResult {
|
|
119
|
+
uri: string;
|
|
120
|
+
rkey: string;
|
|
121
|
+
renderState: string;
|
|
122
|
+
matchedRkeys: string[];
|
|
123
|
+
/** True when an equivalent attestation already existed and nothing was written. */
|
|
124
|
+
existing: boolean;
|
|
125
|
+
}
|
|
126
|
+
declare function createOrgAttestation(config: SifaApiConfig, input: CreateOrgAttestationInput, options?: ApiFetchOptions): Promise<WriteResult<CreateOrgAttestationResult>>;
|
|
127
|
+
/** Offboarding: the record stays, its status becomes past with an end date. */
|
|
128
|
+
declare function offboardOrgAttestation(config: SifaApiConfig, rkey: string, input: {
|
|
129
|
+
endedAt?: string;
|
|
130
|
+
}, options?: ApiFetchOptions): Promise<WriteResult>;
|
|
131
|
+
/** Revocation: deletes the record; the subject's log keeps an org_revoked entry. */
|
|
132
|
+
declare function revokeOrgAttestation(config: SifaApiConfig, rkey: string, options?: ApiFetchOptions): Promise<WriteResult>;
|
|
133
|
+
declare const OrgAttestationSchema: z.ZodObject<{
|
|
134
|
+
rkey: z.ZodString;
|
|
135
|
+
uri: z.ZodString;
|
|
136
|
+
subjectDid: z.ZodString;
|
|
137
|
+
subjectHandle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
138
|
+
subjectDisplayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
139
|
+
subjectAvatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
140
|
+
status: z.ZodString;
|
|
141
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
142
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
143
|
+
startedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
144
|
+
endedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
145
|
+
positionUri: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
146
|
+
renderState: z.ZodString;
|
|
147
|
+
matchedRkeys: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
148
|
+
createdAt: z.ZodString;
|
|
149
|
+
}, z.core.$loose>;
|
|
150
|
+
type OrgAttestation = z.infer<typeof OrgAttestationSchema>;
|
|
151
|
+
declare const AttestationRequestSchema: z.ZodObject<{
|
|
152
|
+
id: z.ZodNumber;
|
|
153
|
+
subjectDid: z.ZodString;
|
|
154
|
+
subjectHandle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
155
|
+
subjectDisplayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
156
|
+
subjectAvatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
157
|
+
positionRkey: z.ZodString;
|
|
158
|
+
positionTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
159
|
+
positionStartedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
160
|
+
positionEndedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
161
|
+
note: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
162
|
+
status: z.ZodString;
|
|
163
|
+
createdAt: z.ZodString;
|
|
164
|
+
}, z.core.$loose>;
|
|
165
|
+
type AttestationRequest = z.infer<typeof AttestationRequestSchema>;
|
|
166
|
+
/** Options for the org-side reads, adding the RSC cookie-forwarding escape hatch. */
|
|
167
|
+
interface FetchOrgAttestationOptions extends ApiFetchOptions {
|
|
168
|
+
cookieHeader?: string;
|
|
169
|
+
}
|
|
170
|
+
/** Every attestation the signed-in organization wrote, newest first. Empty on failure. */
|
|
171
|
+
declare function fetchOrgAttestations(config: SifaApiConfig, options?: FetchOrgAttestationOptions): Promise<{
|
|
172
|
+
attestations: OrgAttestation[];
|
|
173
|
+
}>;
|
|
174
|
+
/** Pending confirmation requests addressed to the signed-in organization. Empty on failure. */
|
|
175
|
+
declare function fetchAttestationRequests(config: SifaApiConfig, options?: FetchOrgAttestationOptions): Promise<{
|
|
176
|
+
requests: AttestationRequest[];
|
|
177
|
+
}>;
|
|
178
|
+
declare function rejectAttestationRequest(config: SifaApiConfig, id: number, options?: ApiFetchOptions): Promise<WriteResult>;
|
|
179
|
+
/** Body accepted by {@link requestEmploymentConfirmation}. */
|
|
180
|
+
interface RequestEmploymentConfirmationInput {
|
|
181
|
+
positionRkey: string;
|
|
182
|
+
note?: string;
|
|
183
|
+
}
|
|
184
|
+
interface RequestEmploymentConfirmationResult {
|
|
185
|
+
orgDid: string;
|
|
186
|
+
id: number;
|
|
187
|
+
/** False when a request was already pending; the same one is returned. */
|
|
188
|
+
created: boolean;
|
|
189
|
+
}
|
|
190
|
+
/** Employee side: ask the organization behind one of your positions to confirm it. */
|
|
191
|
+
declare function requestEmploymentConfirmation(config: SifaApiConfig, input: RequestEmploymentConfirmationInput, options?: ApiFetchOptions): Promise<WriteResult<RequestEmploymentConfirmationResult>>;
|
|
192
|
+
|
|
35
193
|
/**
|
|
36
194
|
* React hook that reads an aggregated profile by handle or DID via
|
|
37
195
|
* TanStack Query. Returns `null` data when the profile does not exist.
|
|
@@ -273,6 +431,46 @@ declare function useRevokeConfirmation(claimerHandleOrDid: string | null, option
|
|
|
273
431
|
*/
|
|
274
432
|
declare function useInboxCounts(options?: Omit<UseQueryOptions<InboxCounts, Error, InboxCounts, ReturnType<typeof sifaQueryKeys.inbox.counts>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<InboxCounts, Error>;
|
|
275
433
|
|
|
434
|
+
/**
|
|
435
|
+
* The verification log of one position. Returns an empty log on error, so a
|
|
436
|
+
* panel can render "no verification yet" without special-casing failure.
|
|
437
|
+
*/
|
|
438
|
+
declare function useVerificationLog(did: string, positionRkey: string, options?: Omit<UseQueryOptions<VerificationLog, Error, VerificationLog, ReturnType<typeof sifaQueryKeys.verification.log>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<{
|
|
439
|
+
events: {
|
|
440
|
+
[x: string]: unknown;
|
|
441
|
+
id: number;
|
|
442
|
+
kind: string;
|
|
443
|
+
occurredAt: string;
|
|
444
|
+
entityId: number | null;
|
|
445
|
+
emailDomain: string | null;
|
|
446
|
+
meta: Record<string, unknown>;
|
|
447
|
+
emailAddress?: string | null | undefined;
|
|
448
|
+
}[];
|
|
449
|
+
}, Error>;
|
|
450
|
+
|
|
451
|
+
type Attestations = {
|
|
452
|
+
attestations: OrgAttestation[];
|
|
453
|
+
};
|
|
454
|
+
type Requests = {
|
|
455
|
+
requests: AttestationRequest[];
|
|
456
|
+
};
|
|
457
|
+
/** Every attestation the signed-in organization wrote. */
|
|
458
|
+
declare function useOrgAttestations(options?: Omit<UseQueryOptions<Attestations, Error, Attestations, ReturnType<typeof sifaQueryKeys.org.attestations>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<Attestations, Error>;
|
|
459
|
+
/** Pending confirmation requests addressed to the signed-in organization. */
|
|
460
|
+
declare function useAttestationRequests(options?: Omit<UseQueryOptions<Requests, Error, Requests, ReturnType<typeof sifaQueryKeys.org.attestationRequests>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<Requests, Error>;
|
|
461
|
+
declare function useCreateOrgAttestation(options?: Omit<UseMutationOptions<WriteResult<CreateOrgAttestationResult>, Error, CreateOrgAttestationInput>, 'mutationFn'>): _tanstack_react_query.UseMutationResult<WriteResult<CreateOrgAttestationResult>, Error, CreateOrgAttestationInput, unknown>;
|
|
462
|
+
declare function useOffboardOrgAttestation(options?: Omit<UseMutationOptions<WriteResult, Error, {
|
|
463
|
+
rkey: string;
|
|
464
|
+
endedAt?: string;
|
|
465
|
+
}>, 'mutationFn'>): _tanstack_react_query.UseMutationResult<WriteResult, Error, {
|
|
466
|
+
rkey: string;
|
|
467
|
+
endedAt?: string;
|
|
468
|
+
}, unknown>;
|
|
469
|
+
declare function useRevokeOrgAttestation(options?: Omit<UseMutationOptions<WriteResult, Error, string>, 'mutationFn'>): _tanstack_react_query.UseMutationResult<WriteResult, Error, string, unknown>;
|
|
470
|
+
declare function useRejectAttestationRequest(options?: Omit<UseMutationOptions<WriteResult, Error, number>, 'mutationFn'>): _tanstack_react_query.UseMutationResult<WriteResult, Error, number, unknown>;
|
|
471
|
+
/** Employee side: ask the organization behind a position to confirm it. */
|
|
472
|
+
declare function useRequestEmploymentConfirmation(options?: Omit<UseMutationOptions<WriteResult<RequestEmploymentConfirmationResult>, Error, RequestEmploymentConfirmationInput>, 'mutationFn'>): _tanstack_react_query.UseMutationResult<WriteResult<RequestEmploymentConfirmationResult>, Error, RequestEmploymentConfirmationInput, unknown>;
|
|
473
|
+
|
|
276
474
|
/**
|
|
277
475
|
* Positions on the signed-in user's profile whose company is not yet linked to a
|
|
278
476
|
* canonical entity, for the unified Inbox. Returns an empty list when signed out
|
|
@@ -902,4 +1100,4 @@ declare function useRemoveOrgNotificationEmail(options?: Omit<UseMutationOptions
|
|
|
902
1100
|
email: string;
|
|
903
1101
|
}, unknown>;
|
|
904
1102
|
|
|
905
|
-
export {
|
|
1103
|
+
export { useAtFundLink as $, type AddFeatureAllowlistVariables as A, VerificationLogSchema as B, type CreateOrgAttestationInput as C, type DeleteReactionVariables as D, createOrgAttestation as E, type FetchOrgAttestationOptions as F, fetchAttestationRequests as G, fetchOrgAttestations as H, fetchVerificationLog as I, offboardOrgAttestation as J, rejectAttestationRequest as K, requestEmploymentConfirmation as L, revokeOrgAttestation as M, useAccounts as N, type OrgAttestation as O, type PositionSkillLinkVariables as P, useActivityFeed as Q, type RemoveFeatureAllowlistVariables as R, SifaProvider as S, useActivityTeaser as T, type UnfollowVariables as U, VERIFICATION_EVENT_KINDS as V, useAddFeatureAllowlist as W, useAddOrgNotificationEmail as X, useAdminReviewQueues as Y, useAppAccountCheck as Z, useAppsRegistry as _, type AttestationRequest as a, useOrgAttestations as a$, useAttestationRequests as a0, useBlueskySuggestions as a1, useBulkHideProfileItems as a2, useBulkHideStandardPublications as a3, useBulkUnhideProfileItems as a4, useBulkUnhideStandardPublications as a5, useCanonicalSkillSearch as a6, useCastRoadmapVote as a7, useCreateConfirmation as a8, useCreateEducation as a9, useFeaturedProfile as aA, useFollow as aB, useFollowers as aC, useFollowing as aD, useFollowingFeed as aE, useFollowingFeedVersion as aF, useFollowingList as aG, useGetProfileView as aH, useGivenConfirmations as aI, useHeatmapData as aJ, useHiddenActivityItems as aK, useHiddenApps as aL, useHideActivityItem as aM, useHideKeytraceClaim as aN, useHideOrcidPublication as aO, useHideProfileItem as aP, useHideSifaPublication as aQ, useHideStandardPublication as aR, useImportSearchEntities as aS, useInboxCounts as aT, useLinkSkillToPosition as aU, useMintEntityDomain as aV, useMutuals as aW, useMyGithubPullRequests as aX, useMyRoadmapVotes as aY, useNetworkStreamCount as aZ, useOffboardOrgAttestation as a_, useCreateEndorsement as aa, useCreateExternalAccount as ab, useCreateOrgAttestation as ac, useCreatePosition as ad, useCreateProfileLocation as ae, useCreateReaction as af, useCreateRecord as ag, useCreateSkill as ah, useDebouncedValue as ai, useDeleteAccount as aj, useDeleteAvatarOverride as ak, useDeleteEducation as al, useDeleteExternalAccount as am, useDeleteNamePronunciationAudio as an, useDeletePosition as ao, useDeleteProfileLocation as ap, useDeleteReaction as aq, useDeleteRecord as ar, useDeleteRepoRecords as as, useDeleteSkill as at, useDismissConfirmation as au, useDismissUnlinkedPosition as av, useEndorsementCount as aw, useEntitySearch as ax, useExternalAccounts as ay, useFeatureAllowlist as az, AttestationRequestSchema as b, useOrgClaim as b0, useOrgDomainChallenge as b1, useOrgDomainVerify as b2, useOrgProfile as b3, usePendingConfirmations as b4, useProfile as b5, useProfileCompleteness as b6, useReactionStatus as b7, useRefreshOrcidPublications as b8, useRefreshPds as b9, useUnhideKeytraceClaim as bA, useUnhideOrcidPublication as bB, useUnhideProfileItem as bC, useUnhideSifaPublication as bD, useUnhideStandardPublication as bE, useUnlinkSkillFromPosition as bF, useUnlinkedPositions as bG, useUnrevealMarqueDomain as bH, useUnsetExternalAccountPrimary as bI, useUnsetPositionPrimary as bJ, useUnsetSectionPrimary as bK, useUpdateEducation as bL, useUpdateExternalAccount as bM, useUpdateOrgProfile as bN, useUpdatePosition as bO, useUpdateProfileLocation as bP, useUpdateProfileOverride as bQ, useUpdateProfileSelf as bR, useUpdateRecord as bS, useUpdateSkill as bT, useUpdateSkillSubCategories as bU, useUploadAvatar as bV, useUploadNamePronunciationAudio as bW, useVerificationLog as bX, useVerifyExternalAccount as bY, useWipePreview as bZ, useSearchCompanies as b_, useRejectAttestationRequest as ba, useRemoveFeatureAllowlist as bb, useRemoveOrgNotificationEmail as bc, useRepoInventory as bd, useRequestEmploymentConfirmation as be, useResetProfile as bf, useResolveEntityDomain as bg, useRetractRoadmapVote as bh, useRevealMarqueDomain as bi, useRevokeConfirmation as bj, useRevokeOrgAttestation as bk, useRoadmapVotes as bl, useSearchFilters as bm, useSearchProfiles as bn, useSelectEntity as bo, useSetExternalAccountPrimary as bp, useSetPositionPrimary as bq, useSetSectionPrimary as br, useSifaConfig as bs, useSimilarProfiles as bt, useSkillSuggestions as bu, useStats as bv, useSuggestionCount as bw, useSuggestions as bx, useUnfollow as by, useUnhideActivityItem as bz, type AttestationStatus as c, type CreateOrgAttestationResult as d, type CreateReactionVariables as e, type CreateRecordVariables as f, type DeleteRecordVariables as g, type FetchVerificationLogOptions as h, type FollowVariables as i, OrgAttestationSchema as j, type RequestEmploymentConfirmationInput as k, type RequestEmploymentConfirmationResult as l, type SifaProviderProps as m, type UpdateEducationVariables as n, type UpdateExternalAccountVariables as o, type UpdatePositionVariables as p, type UpdateProfileLocationVariables as q, type UpdateRecordVariables as r, type UpdateSkillSubCategoriesVariables as s, type UpdateSkillVariables as t, type UseEntitySearchOptions as u, type UseMyGithubPullRequestsParams as v, type VerificationEventKind as w, type VerificationLog as x, type VerificationLogEntry as y, VerificationLogEntrySchema as z };
|
package/dist/{use-org-notification-emails-DZ0oVtiX.d.ts → use-org-notification-emails-i5dhCaw8.d.ts}
RENAMED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { K as SifaApiConfig,
|
|
3
|
+
import { K as SifaApiConfig, M as ApiFetchOptions, W as WriteResult, n as ProfileView, N as CreateResult, Q as FilterOptions, S as SearchFilters, X as SearchResponse, Y as SkillSearchResult, a5 as CompanySearchFilters, a6 as CompanySearchResponse, t as RepoDeleteResult, w as RepoInventory } from './types-Jb4KKbn9.js';
|
|
4
4
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
5
5
|
import { UseQueryOptions, UseMutationOptions, UseInfiniteQueryOptions, InfiniteData } from '@tanstack/react-query';
|
|
6
6
|
import { c as Profile, d as ProfilePosition, U as SkillRef, p as ExternalAccount, V as SkillSuggestion, s as OrgFloorVerdict } from './index-IeuOpcIB.js';
|
|
7
|
-
import { s as sifaQueryKeys, aD as RefreshPdsResult, aU as UpdateProfileOverrideInput, aV as UpdateProfileSelfInput, aW as UploadAvatarResult, aX as UploadPronunciationAudioResult, an as PrimarySection, aO as SubCategoryBulkResult, as as ProfileLocationInput, o as ExternalAccountInput, m as CreateExternalAccountResult, aY as VerifyExternalAccountResult, E as EndorsementInput, k as ConfirmationInput, l as ConfirmationSubjectInput, Z as GivenConfirmation, am as PendingConfirmationsPage, a8 as InboxCounts, n as DismissUnlinkedPositionInput, aT as UnlinkedPositionsResult, ao as ProfileCompleteness, aC as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, a7 as HideProfileItemInput, a2 as HiddenActivityItem, a6 as HideActivityItemInput, aR as UnhideActivityItemInput, aN as StatsResponse, h as AppRegistryEntry, a3 as HiddenApp, b as AccountSummary, p as FeaturedProfile, aM as SimilarProfile, L as FetchSuggestionsOptions, aQ as SuggestionsResponse, Q as FollowUserResult, v as FetchFollowListOptions, N as FollowListPage, W as FollowingResponse, x as FetchFollowingFeedOptions, U as FollowingFeedResponse, V as FollowingFeedVersion, w as FetchFollowProfilePageOptions, P as FollowProfilePageResponse, F as FeatureAllowlistResponse, g as AdminReviewQueues, r as FetchActivityFeedOptions, c as ActivityFeedResponse, f as ActivityTeaserResponse, a1 as HeatmapResponse, aa as MyGithubPullRequestsResponse, A as AccountCheckResult, aB as ReactionStatus, aA as ReactionResult, az as ReactionError, aK as RoadmapVotesResponse, i as CastRoadmapVoteResult, D as DeleteAccountResult, aF as ResetProfileResult, aZ as WipePreview, aE as RepoDeleteInput, ac as OrgClaimResult, ai as OrgProfileUpdateResult, ad as OrgDomainChallengeResult, ae as OrgDomainVerifyResult, af as OrgNotificationEmailAddResult, ag as OrgNotificationEmailRemoveResult } from './org
|
|
7
|
+
import { s as sifaQueryKeys, aD as RefreshPdsResult, aU as UpdateProfileOverrideInput, aV as UpdateProfileSelfInput, aW as UploadAvatarResult, aX as UploadPronunciationAudioResult, an as PrimarySection, aO as SubCategoryBulkResult, as as ProfileLocationInput, o as ExternalAccountInput, m as CreateExternalAccountResult, aY as VerifyExternalAccountResult, E as EndorsementInput, k as ConfirmationInput, l as ConfirmationSubjectInput, Z as GivenConfirmation, am as PendingConfirmationsPage, a8 as InboxCounts, n as DismissUnlinkedPositionInput, aT as UnlinkedPositionsResult, ao as ProfileCompleteness, aC as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, a7 as HideProfileItemInput, a2 as HiddenActivityItem, a6 as HideActivityItemInput, aR as UnhideActivityItemInput, aN as StatsResponse, h as AppRegistryEntry, a3 as HiddenApp, b as AccountSummary, p as FeaturedProfile, aM as SimilarProfile, L as FetchSuggestionsOptions, aQ as SuggestionsResponse, Q as FollowUserResult, v as FetchFollowListOptions, N as FollowListPage, W as FollowingResponse, x as FetchFollowingFeedOptions, U as FollowingFeedResponse, V as FollowingFeedVersion, w as FetchFollowProfilePageOptions, P as FollowProfilePageResponse, F as FeatureAllowlistResponse, g as AdminReviewQueues, r as FetchActivityFeedOptions, c as ActivityFeedResponse, f as ActivityTeaserResponse, a1 as HeatmapResponse, aa as MyGithubPullRequestsResponse, A as AccountCheckResult, aB as ReactionStatus, aA as ReactionResult, az as ReactionError, aK as RoadmapVotesResponse, i as CastRoadmapVoteResult, D as DeleteAccountResult, aF as ResetProfileResult, aZ as WipePreview, aE as RepoDeleteInput, ac as OrgClaimResult, ai as OrgProfileUpdateResult, ad as OrgDomainChallengeResult, ae as OrgDomainVerifyResult, af as OrgNotificationEmailAddResult, ag as OrgNotificationEmailRemoveResult } from './org-PkrUsjXq.js';
|
|
8
|
+
import { z } from 'zod';
|
|
8
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-ceqefXAw.js';
|
|
9
10
|
import { O as OrgClaimRequestInput, h as OrgProfileUpdateRequestInput, b as OrgDomainChallengeRequestInput, d as OrgDomainVerifyRequestInput, f as OrgNotificationEmailRequestInput } from './org-settings-BShvhyFp.js';
|
|
10
11
|
|
|
@@ -32,6 +33,163 @@ declare function SifaProvider({ config, children }: SifaProviderProps): react.JS
|
|
|
32
33
|
*/
|
|
33
34
|
declare function useSifaConfig(): SifaApiConfig;
|
|
34
35
|
|
|
36
|
+
/**
|
|
37
|
+
* Every kind of fact the employment-verification log can hold. Mirrors
|
|
38
|
+
* `VERIFICATION_EVENT_KINDS` in sifa-api. Kept open (`z.string()`) on the
|
|
39
|
+
* wire so a kind the AppView adds later does not break older clients; the
|
|
40
|
+
* union is the set a client can render specific copy for today.
|
|
41
|
+
*/
|
|
42
|
+
declare const VERIFICATION_EVENT_KINDS: readonly ["mailbox_verified", "domain_recognized", "reverified", "reverification_failed", "org_confirmed", "org_status_changed", "org_revoked", "peer_vouched", "peer_withdrawn"];
|
|
43
|
+
type VerificationEventKind = (typeof VERIFICATION_EVENT_KINDS)[number];
|
|
44
|
+
/**
|
|
45
|
+
* One entry of a position's verification log, newest first, as the AppView
|
|
46
|
+
* returns it. `emailAddress` is present only when the signed-in viewer owns
|
|
47
|
+
* the profile; everyone else gets the domain at most. An AppView READ shape,
|
|
48
|
+
* not a PDS record: the log lives in Sifa's database. Unknown extra fields
|
|
49
|
+
* pass through so the shape stays additive.
|
|
50
|
+
*/
|
|
51
|
+
declare const VerificationLogEntrySchema: z.ZodObject<{
|
|
52
|
+
id: z.ZodNumber;
|
|
53
|
+
kind: z.ZodString;
|
|
54
|
+
occurredAt: z.ZodString;
|
|
55
|
+
entityId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
56
|
+
emailDomain: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
57
|
+
emailAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
|
+
meta: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
59
|
+
}, z.core.$loose>;
|
|
60
|
+
declare const VerificationLogSchema: z.ZodObject<{
|
|
61
|
+
events: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
62
|
+
id: z.ZodNumber;
|
|
63
|
+
kind: z.ZodString;
|
|
64
|
+
occurredAt: z.ZodString;
|
|
65
|
+
entityId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
66
|
+
emailDomain: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
67
|
+
emailAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
68
|
+
meta: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
69
|
+
}, z.core.$loose>>>;
|
|
70
|
+
}, z.core.$strip>;
|
|
71
|
+
type VerificationLogEntry = z.infer<typeof VerificationLogEntrySchema>;
|
|
72
|
+
type VerificationLog = z.infer<typeof VerificationLogSchema>;
|
|
73
|
+
/** Options for {@link fetchVerificationLog}, adding the RSC cookie-forwarding escape hatch. */
|
|
74
|
+
interface FetchVerificationLogOptions extends ApiFetchOptions {
|
|
75
|
+
/**
|
|
76
|
+
* Pass the caller's `Cookie` header on Next.js RSC server-side calls, so
|
|
77
|
+
* the owner sees full addresses. `credentials: 'include'` does not propagate
|
|
78
|
+
* browser cookies in RSC.
|
|
79
|
+
*/
|
|
80
|
+
cookieHeader?: string;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* The verification log of one position, newest first. Public: anyone can read
|
|
84
|
+
* it, the AppView strips the addresses for everyone but the owner.
|
|
85
|
+
*
|
|
86
|
+
* Resolves to an empty log on any failure (network, non-2xx, malformed body)
|
|
87
|
+
* by design, the same contract as the confirmation fetchers: the log is a
|
|
88
|
+
* detail panel on a profile, and a broken panel must never take the profile
|
|
89
|
+
* down with it. Callers that need to distinguish "empty" from "failed" use
|
|
90
|
+
* `apiFetch` directly.
|
|
91
|
+
*/
|
|
92
|
+
declare function fetchVerificationLog(config: SifaApiConfig, did: string, positionRkey: string, options?: FetchVerificationLogOptions): Promise<VerificationLog>;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Organization employment attestations (sifa-workspace#623). The org side
|
|
96
|
+
* writes `id.sifa.org.employmentAttestation` records through the AppView,
|
|
97
|
+
* which indexes them at once; the employee side asks for one.
|
|
98
|
+
*
|
|
99
|
+
* These are AppView READ and WRITE shapes, not PDS records: the record itself
|
|
100
|
+
* is built server-side from the input, so a client never assembles one.
|
|
101
|
+
*/
|
|
102
|
+
type AttestationStatus = 'current' | 'past';
|
|
103
|
+
/** Body accepted by {@link createOrgAttestation}. */
|
|
104
|
+
interface CreateOrgAttestationInput {
|
|
105
|
+
subjectDid: string;
|
|
106
|
+
status: AttestationStatus;
|
|
107
|
+
/** Portable entity id (Wikidata, ROR, LEI or sifa.id/company URI); omit to attest at the account. */
|
|
108
|
+
entityRef?: string;
|
|
109
|
+
title?: string;
|
|
110
|
+
/** YYYY-MM or YYYY-MM-DD. */
|
|
111
|
+
startedAt?: string;
|
|
112
|
+
endedAt?: string;
|
|
113
|
+
/** AT-URI of one of the subject's own positions; omit to attest employment at the entity. */
|
|
114
|
+
positionUri?: string;
|
|
115
|
+
positionCid?: string;
|
|
116
|
+
comment?: string;
|
|
117
|
+
}
|
|
118
|
+
interface CreateOrgAttestationResult {
|
|
119
|
+
uri: string;
|
|
120
|
+
rkey: string;
|
|
121
|
+
renderState: string;
|
|
122
|
+
matchedRkeys: string[];
|
|
123
|
+
/** True when an equivalent attestation already existed and nothing was written. */
|
|
124
|
+
existing: boolean;
|
|
125
|
+
}
|
|
126
|
+
declare function createOrgAttestation(config: SifaApiConfig, input: CreateOrgAttestationInput, options?: ApiFetchOptions): Promise<WriteResult<CreateOrgAttestationResult>>;
|
|
127
|
+
/** Offboarding: the record stays, its status becomes past with an end date. */
|
|
128
|
+
declare function offboardOrgAttestation(config: SifaApiConfig, rkey: string, input: {
|
|
129
|
+
endedAt?: string;
|
|
130
|
+
}, options?: ApiFetchOptions): Promise<WriteResult>;
|
|
131
|
+
/** Revocation: deletes the record; the subject's log keeps an org_revoked entry. */
|
|
132
|
+
declare function revokeOrgAttestation(config: SifaApiConfig, rkey: string, options?: ApiFetchOptions): Promise<WriteResult>;
|
|
133
|
+
declare const OrgAttestationSchema: z.ZodObject<{
|
|
134
|
+
rkey: z.ZodString;
|
|
135
|
+
uri: z.ZodString;
|
|
136
|
+
subjectDid: z.ZodString;
|
|
137
|
+
subjectHandle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
138
|
+
subjectDisplayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
139
|
+
subjectAvatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
140
|
+
status: z.ZodString;
|
|
141
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
142
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
143
|
+
startedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
144
|
+
endedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
145
|
+
positionUri: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
146
|
+
renderState: z.ZodString;
|
|
147
|
+
matchedRkeys: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
148
|
+
createdAt: z.ZodString;
|
|
149
|
+
}, z.core.$loose>;
|
|
150
|
+
type OrgAttestation = z.infer<typeof OrgAttestationSchema>;
|
|
151
|
+
declare const AttestationRequestSchema: z.ZodObject<{
|
|
152
|
+
id: z.ZodNumber;
|
|
153
|
+
subjectDid: z.ZodString;
|
|
154
|
+
subjectHandle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
155
|
+
subjectDisplayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
156
|
+
subjectAvatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
157
|
+
positionRkey: z.ZodString;
|
|
158
|
+
positionTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
159
|
+
positionStartedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
160
|
+
positionEndedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
161
|
+
note: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
162
|
+
status: z.ZodString;
|
|
163
|
+
createdAt: z.ZodString;
|
|
164
|
+
}, z.core.$loose>;
|
|
165
|
+
type AttestationRequest = z.infer<typeof AttestationRequestSchema>;
|
|
166
|
+
/** Options for the org-side reads, adding the RSC cookie-forwarding escape hatch. */
|
|
167
|
+
interface FetchOrgAttestationOptions extends ApiFetchOptions {
|
|
168
|
+
cookieHeader?: string;
|
|
169
|
+
}
|
|
170
|
+
/** Every attestation the signed-in organization wrote, newest first. Empty on failure. */
|
|
171
|
+
declare function fetchOrgAttestations(config: SifaApiConfig, options?: FetchOrgAttestationOptions): Promise<{
|
|
172
|
+
attestations: OrgAttestation[];
|
|
173
|
+
}>;
|
|
174
|
+
/** Pending confirmation requests addressed to the signed-in organization. Empty on failure. */
|
|
175
|
+
declare function fetchAttestationRequests(config: SifaApiConfig, options?: FetchOrgAttestationOptions): Promise<{
|
|
176
|
+
requests: AttestationRequest[];
|
|
177
|
+
}>;
|
|
178
|
+
declare function rejectAttestationRequest(config: SifaApiConfig, id: number, options?: ApiFetchOptions): Promise<WriteResult>;
|
|
179
|
+
/** Body accepted by {@link requestEmploymentConfirmation}. */
|
|
180
|
+
interface RequestEmploymentConfirmationInput {
|
|
181
|
+
positionRkey: string;
|
|
182
|
+
note?: string;
|
|
183
|
+
}
|
|
184
|
+
interface RequestEmploymentConfirmationResult {
|
|
185
|
+
orgDid: string;
|
|
186
|
+
id: number;
|
|
187
|
+
/** False when a request was already pending; the same one is returned. */
|
|
188
|
+
created: boolean;
|
|
189
|
+
}
|
|
190
|
+
/** Employee side: ask the organization behind one of your positions to confirm it. */
|
|
191
|
+
declare function requestEmploymentConfirmation(config: SifaApiConfig, input: RequestEmploymentConfirmationInput, options?: ApiFetchOptions): Promise<WriteResult<RequestEmploymentConfirmationResult>>;
|
|
192
|
+
|
|
35
193
|
/**
|
|
36
194
|
* React hook that reads an aggregated profile by handle or DID via
|
|
37
195
|
* TanStack Query. Returns `null` data when the profile does not exist.
|
|
@@ -273,6 +431,46 @@ declare function useRevokeConfirmation(claimerHandleOrDid: string | null, option
|
|
|
273
431
|
*/
|
|
274
432
|
declare function useInboxCounts(options?: Omit<UseQueryOptions<InboxCounts, Error, InboxCounts, ReturnType<typeof sifaQueryKeys.inbox.counts>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<InboxCounts, Error>;
|
|
275
433
|
|
|
434
|
+
/**
|
|
435
|
+
* The verification log of one position. Returns an empty log on error, so a
|
|
436
|
+
* panel can render "no verification yet" without special-casing failure.
|
|
437
|
+
*/
|
|
438
|
+
declare function useVerificationLog(did: string, positionRkey: string, options?: Omit<UseQueryOptions<VerificationLog, Error, VerificationLog, ReturnType<typeof sifaQueryKeys.verification.log>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<{
|
|
439
|
+
events: {
|
|
440
|
+
[x: string]: unknown;
|
|
441
|
+
id: number;
|
|
442
|
+
kind: string;
|
|
443
|
+
occurredAt: string;
|
|
444
|
+
entityId: number | null;
|
|
445
|
+
emailDomain: string | null;
|
|
446
|
+
meta: Record<string, unknown>;
|
|
447
|
+
emailAddress?: string | null | undefined;
|
|
448
|
+
}[];
|
|
449
|
+
}, Error>;
|
|
450
|
+
|
|
451
|
+
type Attestations = {
|
|
452
|
+
attestations: OrgAttestation[];
|
|
453
|
+
};
|
|
454
|
+
type Requests = {
|
|
455
|
+
requests: AttestationRequest[];
|
|
456
|
+
};
|
|
457
|
+
/** Every attestation the signed-in organization wrote. */
|
|
458
|
+
declare function useOrgAttestations(options?: Omit<UseQueryOptions<Attestations, Error, Attestations, ReturnType<typeof sifaQueryKeys.org.attestations>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<Attestations, Error>;
|
|
459
|
+
/** Pending confirmation requests addressed to the signed-in organization. */
|
|
460
|
+
declare function useAttestationRequests(options?: Omit<UseQueryOptions<Requests, Error, Requests, ReturnType<typeof sifaQueryKeys.org.attestationRequests>>, 'queryKey' | 'queryFn'>): _tanstack_react_query.UseQueryResult<Requests, Error>;
|
|
461
|
+
declare function useCreateOrgAttestation(options?: Omit<UseMutationOptions<WriteResult<CreateOrgAttestationResult>, Error, CreateOrgAttestationInput>, 'mutationFn'>): _tanstack_react_query.UseMutationResult<WriteResult<CreateOrgAttestationResult>, Error, CreateOrgAttestationInput, unknown>;
|
|
462
|
+
declare function useOffboardOrgAttestation(options?: Omit<UseMutationOptions<WriteResult, Error, {
|
|
463
|
+
rkey: string;
|
|
464
|
+
endedAt?: string;
|
|
465
|
+
}>, 'mutationFn'>): _tanstack_react_query.UseMutationResult<WriteResult, Error, {
|
|
466
|
+
rkey: string;
|
|
467
|
+
endedAt?: string;
|
|
468
|
+
}, unknown>;
|
|
469
|
+
declare function useRevokeOrgAttestation(options?: Omit<UseMutationOptions<WriteResult, Error, string>, 'mutationFn'>): _tanstack_react_query.UseMutationResult<WriteResult, Error, string, unknown>;
|
|
470
|
+
declare function useRejectAttestationRequest(options?: Omit<UseMutationOptions<WriteResult, Error, number>, 'mutationFn'>): _tanstack_react_query.UseMutationResult<WriteResult, Error, number, unknown>;
|
|
471
|
+
/** Employee side: ask the organization behind a position to confirm it. */
|
|
472
|
+
declare function useRequestEmploymentConfirmation(options?: Omit<UseMutationOptions<WriteResult<RequestEmploymentConfirmationResult>, Error, RequestEmploymentConfirmationInput>, 'mutationFn'>): _tanstack_react_query.UseMutationResult<WriteResult<RequestEmploymentConfirmationResult>, Error, RequestEmploymentConfirmationInput, unknown>;
|
|
473
|
+
|
|
276
474
|
/**
|
|
277
475
|
* Positions on the signed-in user's profile whose company is not yet linked to a
|
|
278
476
|
* canonical entity, for the unified Inbox. Returns an empty list when signed out
|
|
@@ -902,4 +1100,4 @@ declare function useRemoveOrgNotificationEmail(options?: Omit<UseMutationOptions
|
|
|
902
1100
|
email: string;
|
|
903
1101
|
}, unknown>;
|
|
904
1102
|
|
|
905
|
-
export {
|
|
1103
|
+
export { useAtFundLink as $, type AddFeatureAllowlistVariables as A, VerificationLogSchema as B, type CreateOrgAttestationInput as C, type DeleteReactionVariables as D, createOrgAttestation as E, type FetchOrgAttestationOptions as F, fetchAttestationRequests as G, fetchOrgAttestations as H, fetchVerificationLog as I, offboardOrgAttestation as J, rejectAttestationRequest as K, requestEmploymentConfirmation as L, revokeOrgAttestation as M, useAccounts as N, type OrgAttestation as O, type PositionSkillLinkVariables as P, useActivityFeed as Q, type RemoveFeatureAllowlistVariables as R, SifaProvider as S, useActivityTeaser as T, type UnfollowVariables as U, VERIFICATION_EVENT_KINDS as V, useAddFeatureAllowlist as W, useAddOrgNotificationEmail as X, useAdminReviewQueues as Y, useAppAccountCheck as Z, useAppsRegistry as _, type AttestationRequest as a, useOrgAttestations as a$, useAttestationRequests as a0, useBlueskySuggestions as a1, useBulkHideProfileItems as a2, useBulkHideStandardPublications as a3, useBulkUnhideProfileItems as a4, useBulkUnhideStandardPublications as a5, useCanonicalSkillSearch as a6, useCastRoadmapVote as a7, useCreateConfirmation as a8, useCreateEducation as a9, useFeaturedProfile as aA, useFollow as aB, useFollowers as aC, useFollowing as aD, useFollowingFeed as aE, useFollowingFeedVersion as aF, useFollowingList as aG, useGetProfileView as aH, useGivenConfirmations as aI, useHeatmapData as aJ, useHiddenActivityItems as aK, useHiddenApps as aL, useHideActivityItem as aM, useHideKeytraceClaim as aN, useHideOrcidPublication as aO, useHideProfileItem as aP, useHideSifaPublication as aQ, useHideStandardPublication as aR, useImportSearchEntities as aS, useInboxCounts as aT, useLinkSkillToPosition as aU, useMintEntityDomain as aV, useMutuals as aW, useMyGithubPullRequests as aX, useMyRoadmapVotes as aY, useNetworkStreamCount as aZ, useOffboardOrgAttestation as a_, useCreateEndorsement as aa, useCreateExternalAccount as ab, useCreateOrgAttestation as ac, useCreatePosition as ad, useCreateProfileLocation as ae, useCreateReaction as af, useCreateRecord as ag, useCreateSkill as ah, useDebouncedValue as ai, useDeleteAccount as aj, useDeleteAvatarOverride as ak, useDeleteEducation as al, useDeleteExternalAccount as am, useDeleteNamePronunciationAudio as an, useDeletePosition as ao, useDeleteProfileLocation as ap, useDeleteReaction as aq, useDeleteRecord as ar, useDeleteRepoRecords as as, useDeleteSkill as at, useDismissConfirmation as au, useDismissUnlinkedPosition as av, useEndorsementCount as aw, useEntitySearch as ax, useExternalAccounts as ay, useFeatureAllowlist as az, AttestationRequestSchema as b, useOrgClaim as b0, useOrgDomainChallenge as b1, useOrgDomainVerify as b2, useOrgProfile as b3, usePendingConfirmations as b4, useProfile as b5, useProfileCompleteness as b6, useReactionStatus as b7, useRefreshOrcidPublications as b8, useRefreshPds as b9, useUnhideKeytraceClaim as bA, useUnhideOrcidPublication as bB, useUnhideProfileItem as bC, useUnhideSifaPublication as bD, useUnhideStandardPublication as bE, useUnlinkSkillFromPosition as bF, useUnlinkedPositions as bG, useUnrevealMarqueDomain as bH, useUnsetExternalAccountPrimary as bI, useUnsetPositionPrimary as bJ, useUnsetSectionPrimary as bK, useUpdateEducation as bL, useUpdateExternalAccount as bM, useUpdateOrgProfile as bN, useUpdatePosition as bO, useUpdateProfileLocation as bP, useUpdateProfileOverride as bQ, useUpdateProfileSelf as bR, useUpdateRecord as bS, useUpdateSkill as bT, useUpdateSkillSubCategories as bU, useUploadAvatar as bV, useUploadNamePronunciationAudio as bW, useVerificationLog as bX, useVerifyExternalAccount as bY, useWipePreview as bZ, useSearchCompanies as b_, useRejectAttestationRequest as ba, useRemoveFeatureAllowlist as bb, useRemoveOrgNotificationEmail as bc, useRepoInventory as bd, useRequestEmploymentConfirmation as be, useResetProfile as bf, useResolveEntityDomain as bg, useRetractRoadmapVote as bh, useRevealMarqueDomain as bi, useRevokeConfirmation as bj, useRevokeOrgAttestation as bk, useRoadmapVotes as bl, useSearchFilters as bm, useSearchProfiles as bn, useSelectEntity as bo, useSetExternalAccountPrimary as bp, useSetPositionPrimary as bq, useSetSectionPrimary as br, useSifaConfig as bs, useSimilarProfiles as bt, useSkillSuggestions as bu, useStats as bv, useSuggestionCount as bw, useSuggestions as bx, useUnfollow as by, useUnhideActivityItem as bz, type AttestationStatus as c, type CreateOrgAttestationResult as d, type CreateReactionVariables as e, type CreateRecordVariables as f, type DeleteRecordVariables as g, type FetchVerificationLogOptions as h, type FollowVariables as i, OrgAttestationSchema as j, type RequestEmploymentConfirmationInput as k, type RequestEmploymentConfirmationResult as l, type SifaProviderProps as m, type UpdateEducationVariables as n, type UpdateExternalAccountVariables as o, type UpdatePositionVariables as p, type UpdateProfileLocationVariables as q, type UpdateRecordVariables as r, type UpdateSkillSubCategoriesVariables as s, type UpdateSkillVariables as t, type UseEntitySearchOptions as u, type UseMyGithubPullRequestsParams as v, type VerificationEventKind as w, type VerificationLog as x, type VerificationLogEntry as y, VerificationLogEntrySchema as z };
|
package/package.json
CHANGED