@singi-labs/sifa-sdk 0.19.37 → 0.19.38
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/{network-map-DUm6FBXt.d.cts → network-map-B0bp4-ex.d.cts} +47 -1
- package/dist/{network-map-DzVNvC9g.d.ts → network-map-C-y5XxLI.d.ts} +47 -1
- package/dist/query/fetchers/index.cjs +30 -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/index.js +28 -1
- package/dist/query/fetchers/index.js.map +1 -1
- package/dist/query/index.cjs +30 -0
- package/dist/query/index.cjs.map +1 -1
- package/dist/query/index.d.cts +2 -2
- package/dist/query/index.d.ts +2 -2
- package/dist/query/index.js +28 -1
- package/dist/query/index.js.map +1 -1
- package/dist/rpg/index.cjs +122 -0
- package/dist/rpg/index.cjs.map +1 -0
- package/dist/rpg/index.d.cts +74 -0
- package/dist/rpg/index.d.ts +74 -0
- package/dist/rpg/index.js +117 -0
- package/dist/rpg/index.js.map +1 -0
- package/package.json +11 -1
package/dist/index.cjs
CHANGED
|
@@ -7008,7 +7008,7 @@ function describeSifaRecord(collection, value) {
|
|
|
7008
7008
|
}
|
|
7009
7009
|
|
|
7010
7010
|
// src/index.ts
|
|
7011
|
-
var SIFA_SDK_VERSION = "0.19.
|
|
7011
|
+
var SIFA_SDK_VERSION = "0.19.38";
|
|
7012
7012
|
|
|
7013
7013
|
exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
|
|
7014
7014
|
exports.ACTIVITY_VERBS = ACTIVITY_VERBS;
|
package/dist/index.js
CHANGED
|
@@ -7006,7 +7006,7 @@ function describeSifaRecord(collection, value) {
|
|
|
7006
7006
|
}
|
|
7007
7007
|
|
|
7008
7008
|
// src/index.ts
|
|
7009
|
-
var SIFA_SDK_VERSION = "0.19.
|
|
7009
|
+
var SIFA_SDK_VERSION = "0.19.38";
|
|
7010
7010
|
|
|
7011
7011
|
export { ACTIVITY_TIERS, ACTIVITY_VERBS, ACTIVITY_VISIBILITY_RULES, ADULT_CONTENT_LABELS, ALL_SECTIONS, APP_CATEGORIES, APP_CATEGORY_IDS, APP_CATEGORY_MAP, APP_URL_PATTERNS, ARTIFACT_LINK_KIND_LABELS, ARTIFACT_LINK_KIND_OPTIONS, ArtifactLinkSchema, AtmosphereFeedItemSchema, BlobRefSchema, CALENDAR_EVENT_MODE_LABELS, CALENDAR_EVENT_STATUS_LABELS, CATEGORY_LABELS, CATEGORY_ORDER, COLLECTION_TO_APP, COMPANY_OPTIONAL_EMPLOYMENT_TYPES, COMPANY_PAGE_MIN_FIRMOGRAPHIC_FIELDS, COMPLETENESS_MAX_SCORE, CONTINENTS, COUNTRIES, COURSE_ROLE_LABELS, COURSE_ROLE_OPTIONS, COURSE_ROLE_TAKEN, COURSE_ROLE_TAUGHT, COURSE_ROLE_TEACHING_ASSISTANT, DIMENSIONS_MAX_SCORE, EMPLOYMENT_TYPE_GROUPS, EMPLOYMENT_TYPE_LABELS, ENTITY_REF_ANCHORS, EQF_LEVEL_LABELS, EQF_LEVEL_OPTIONS, EndorsementConfirmationRecordSchema, EndorsementRecordSchema, EntityImportSearchResponseSchema, EntityMintDomainResponseSchema, EntityResolveDomainRequestSchema, EntityResolveDomainResponseSchema, EntitySearchResponseSchema, EntitySearchResultSchema, EntitySelectRequestSchema, EntitySelectResponseSchema, FEATURE_FLAGS, FeatureAllowlistEntrySchema, FeedActorSchema, FollowFeedItemSchema, FollowFeedPageSchema, FollowProfilePageSchema, FollowProfileSchema, GraphFollowRecordSchema, INDUSTRY_LABELS, INDUSTRY_OPTIONS, INVESTMENT_ROLE_LABELS, INVESTMENT_ROLE_OPTIONS, INVESTMENT_STAGE_LABELS, INVESTMENT_STAGE_OPTIONS, INVESTMENT_STATUS_LABELS, INVESTMENT_STATUS_OPTIONS, INVOLVEMENT_HEADING_ORDER, INVOLVEMENT_KIND_HEADINGS, INVOLVEMENT_KIND_LABELS, INVOLVEMENT_KIND_OPTIONS, InvestmentAmountSchema, MIN_SKILLS, ON_BEHALF_OF_EMPLOYMENT_TYPES, OPEN_TO_GROUP_LABELS, OPEN_TO_OPTIONS, OPEN_TO_TOKENS, OPEN_TO_TOKEN_LABELS, OPEN_TO_TOKEN_TO_VALUE, OPEN_TO_VALUE_TO_TOKEN, OrgEmploymentAttestationRecordSchema, OrgProfileRecordSchema, PLATFORM_LABELS, PLATFORM_OPTIONS, PRESENTATION_LINK_TYPE_LABELS, PRESENTATION_LINK_TYPE_OPTIONS, PRESENTATION_ROLE_LABELS, PRESENTATION_ROLE_OPTIONS, PROFILE_INVESTMENT_NSID, PROFILE_INVOLVEMENT_NSID, PROJECT_ROLES, PUBLICATION_TYPE_LABELS, PUBLICATION_TYPE_OPTIONS, PUBLISHERS, PresentationDurationSchema, PresentationLinkSchema, ProfileCertificationRecordSchema, ProfileCourseRecordSchema, ProfileEducationRecordSchema, ProfileExternalAccountRecordSchema, ProfileHonorRecordSchema, ProfileInvestmentRecordSchema, ProfileInvolvementRecordSchema, ProfileLanguageRecordSchema, ProfilePositionRecordSchema, ProfilePresentationDeliveryRecordSchema, ProfilePresentationRecordSchema, ProfileProjectRecordSchema, ProfilePublicationRecordSchema, ProfileSelfRecordSchema, ProfileSkillRecordSchema, ProfileVolunteeringRecordSchema, PublicationAuthorSchema, ROADMAP_ISSUES_REPO, ROADMAP_ITEM_META, RelatedIdentifierSchema, SEARCH_FILTER_DEFS, SECTION_GROUPS, SECTION_LABELS, SELF_APP_ID, SIFA_REPO_GROUPS, SIFA_SDK_VERSION, SKILL_CATEGORIES, STANDARD_PUBLISHER_ID, STREAM_VERBS, SifaFeedItemSchema, VERIFICATION_PROVIDERS, WORKPLACE_TYPE_LABELS, WORKPLACE_TYPE_OPTIONS, actorShowsIdentity, agentRefSchema, atUriSchema, buildMetaDescription, buildProfileHighlights, buildTalkSlug, categoryForApp, certDateExtractor, cidSchema, classifyEntityRef, collapseContributors, completenessPercent, completenessScore, contrastRatio, countFilledDimensions, countRecentActivity, countryCodeToFlag, dateRangeExtractor, datetimeSchema, decodeFeedCursor, dedupeSkills, describeSifaRecord, detectPdsProvider, didSchema, dimensionsFromInputs, durationFromMinutes, encodeFeedCursor, entityDisambiguationLabel, entityResultKey, excludeSelfApp, externalRecordRefSchema, filterHidden, findIndustry, formatCompanyName, formatDateRange, formatDisplayUrl, formatDistanceToNow, formatEventDate, formatIsoTitle, formatLocation, formatPresentationDuration, formatRelationship, formatRelativeTime, formatSingleDate, formatSpanDate, formatTimelineDate, getActivityTaxonomyVersion, getActivityTier, getActivityVerbsVersion, getAppCategoryIcon, getAppIdForCollection, getArtifactLinkKindLabel, getCalendarEventModeLabel, getCalendarEventStatusLabel, getContinent, getCourseRoleLabel, getDisplayLabel, getEmploymentTypeLabel, getEqfLevelLabel, getFaviconUrl, getFilledDimensionsMap, getHandleStem, getIndustryLabel, getIndustryLabelKey, getInvestmentRoleLabel, getInvestmentStageLabel, getInvestmentStatusLabel, getInvolvementKindHeading, getInvolvementKindLabel, getLexiconEntry, getOpenToLabelKey, getPdsDisplayName, getPlatformLabel, getPresentationLinkTypeLabel, getPresentationRoleLabel, getPublicationTypeLabel, getPublisherByHost, getPublisherById, getPublisherFromSiteUrl, getTierMeta, getVerificationProvider, getVisibleSectionIds, getWorkplaceTypeLabel, groupInvolvementByHeading, groupPublicationVersions, groupSkillsByCategory, groupSkillsBySubCategory, groupSkillsForDisplay, hasAdultContent, hasPersonalProfileContent, hoistPrimary, isAppCategory, isCompanyPageIndexable, isCompanyRequired, isKnownAppId, isKnownPlatform, isKnownVerificationProvider, isLinked, isOnBehalfOfApplicable, isPseudoEmployer, isRegistrableDomainHandle, isRelationalActivity, isRoleLineRedundant, isSectionPopulated, isSelfAuthoredRich, isTeachingCourse, isValidRgbColor, isVisibleActivityItem, languageTagSchema, lexiconDateExtractor, limitCombiningMarks, locationSegments, looksLikeDomain, makeGraphFollowRecordSchema, maxGraphemes, meetsContrastAA, normalizeCompanyKey, normalizeDoi, normalizeLegalForm, normalizeOpenTo, normalizePlatformId, normalizePresentationMode, normalizePresentationRole, normalizeSkillCategory, normalizeWorkplaceTypes, openToTokenToValue, openToValueToToken, parseEndorsementComment, parseIntendedAudiences, parseLocationString, parsePresentationDuration, parseTalkRkey, partialDateSchema, pdsProviderFromApi, pickPrimaryFlagged, pickPrimaryPosition, presentationCsvRowToRecord, presentationDeliveryCsvRowToRecord, primaryVerification, profileToDimensionInputs, qualifiesAsOrg, readEqfLevel, relativeLuminance, renderAsLine, rendersCompanyProfile, rendersPersonalProfile, repoGroupForCollection, resolveAccountFacetMode, resolveAgentRef, resolveCardHealth, resolveCardUrl, resolveEmbed, resolveVerifierProvider, rgbToString, roadmapIssueUrl, sanitizeDisplayText, sanitizeHandleInput, searchResultDisambiguation, selfLabelsSchema, shouldRenderHighlights, singleDateExtractor, skillRefSchema, slugifyTitle, sortByActiveDateRange, sortByDateDesc, sortCertifications, sortEducation, sortHonors, sortLanguages, sortLanguagesByProficiency, sortPositions, sortProjects, sortPublications, splitCoursesByRole, streamAddressSchema, streamAuthorSchema, streamCardBodySchema, streamCardSubjectSchema, streamCardVMSchema, streamExternalLinkSchema, streamGeoSchema, streamMediaSchema, streamRichSegmentSchema, streamSourceSchema, streamThemeSchema, streamVerbSchema, stripHtmlToText, strongRefSchema, suggestEqfLevelFromDegree, summarizePresentationDeliveries, summarizeProfileView, toStreamCardVM, toStreamCardVMs, truncateGraphemes, uriSchema, verbForCollection, visibleItems, youtubeThumbnailUrl, youtubeVideoId };
|
|
7012
7012
|
//# sourceMappingURL=index.js.map
|
|
@@ -2,6 +2,7 @@ import { c as Profile, d as ProfilePosition, S as SkillRef, w as PresentationLin
|
|
|
2
2
|
import { K as SifaApiConfig, M as ApiFetchOptions, n as ProfileView, N as CreateResult, W as WriteResult } from './types-DAGqE0b9.cjs';
|
|
3
3
|
import { S as SummarizeProfileViewOptions, P as ProfileSummary } from './profile-summary-C_wdHGj6.cjs';
|
|
4
4
|
import { i as EntitySearchResponse, E as EntitySearchResult, c as EntityMintDomainResponse, g as EntityResolveDomainResponse, l as EntitySelectRequest, n as EntitySelectResponse } from './follow-profile-D1l6pulB.cjs';
|
|
5
|
+
import { z } from 'zod';
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* Read the aggregated profile for a handle or DID.
|
|
@@ -388,6 +389,51 @@ declare function resolveEntityDomain(config: SifaApiConfig, domain: string, opti
|
|
|
388
389
|
*/
|
|
389
390
|
declare function mintEntityDomain(config: SifaApiConfig, domain: string, options?: ApiFetchOptions): Promise<EntityMintDomainResponse>;
|
|
390
391
|
|
|
392
|
+
/** One rpg.actor item and the viewer's progress on it, as served by `GET /api/rpg/status`. */
|
|
393
|
+
declare const RpgItemStatusSchema: z.ZodObject<{
|
|
394
|
+
id: z.ZodString;
|
|
395
|
+
title: z.ZodString;
|
|
396
|
+
description: z.ZodString;
|
|
397
|
+
category: z.ZodString;
|
|
398
|
+
earned: z.ZodBoolean;
|
|
399
|
+
state: z.ZodEnum<{
|
|
400
|
+
claimed: "claimed";
|
|
401
|
+
earned: "earned";
|
|
402
|
+
locked: "locked";
|
|
403
|
+
given: "given";
|
|
404
|
+
}>;
|
|
405
|
+
iconUrl: z.ZodNullable<z.ZodString>;
|
|
406
|
+
}, z.core.$strip>;
|
|
407
|
+
type RpgItemStatus = z.infer<typeof RpgItemStatusSchema>;
|
|
408
|
+
declare const RpgStatusResponseSchema: z.ZodObject<{
|
|
409
|
+
hasCharacter: z.ZodBoolean;
|
|
410
|
+
canWriteItems: z.ZodBoolean;
|
|
411
|
+
items: z.ZodArray<z.ZodObject<{
|
|
412
|
+
id: z.ZodString;
|
|
413
|
+
title: z.ZodString;
|
|
414
|
+
description: z.ZodString;
|
|
415
|
+
category: z.ZodString;
|
|
416
|
+
earned: z.ZodBoolean;
|
|
417
|
+
state: z.ZodEnum<{
|
|
418
|
+
claimed: "claimed";
|
|
419
|
+
earned: "earned";
|
|
420
|
+
locked: "locked";
|
|
421
|
+
given: "given";
|
|
422
|
+
}>;
|
|
423
|
+
iconUrl: z.ZodNullable<z.ZodString>;
|
|
424
|
+
}, z.core.$strip>>;
|
|
425
|
+
}, z.core.$strip>;
|
|
426
|
+
type RpgStatusResponse = z.infer<typeof RpgStatusResponseSchema>;
|
|
427
|
+
interface FetchRpgStatusOptions extends ApiFetchOptions {
|
|
428
|
+
/** Forwarded as the `cookie` header for server-side (SSR) calls. */
|
|
429
|
+
cookieHeader?: string;
|
|
430
|
+
}
|
|
431
|
+
/**
|
|
432
|
+
* Fetch the authenticated viewer's rpg.actor item status. Auth-scoped: relies
|
|
433
|
+
* on the session cookie (`credentials: 'include'`).
|
|
434
|
+
*/
|
|
435
|
+
declare function fetchRpgStatus(config: SifaApiConfig, options?: FetchRpgStatusOptions): Promise<RpgStatusResponse>;
|
|
436
|
+
|
|
391
437
|
/**
|
|
392
438
|
* Counts confirmed endorsements received by a DID. The backend's
|
|
393
439
|
* `GET /api/endorsement/:did` already returns only confirmed endorsements
|
|
@@ -509,4 +555,4 @@ declare function checkNetworkMapJobStatus(config: SifaApiConfig, jobId: string,
|
|
|
509
555
|
*/
|
|
510
556
|
declare function fetchNetworkMap(config: SifaApiConfig, options?: ApiFetchOptions): Promise<NetworkMapResponse | null>;
|
|
511
557
|
|
|
512
|
-
export {
|
|
558
|
+
export { isNetworkMapResponse as $, deletePosition as A, deleteRecord as B, dismissEndorsement as C, type DismissEndorsementInput as D, fetchAtFundLink as E, type FetchNetworkStreamCountOptions as F, fetchEndorsementCount as G, fetchEntitySearch as H, fetchGetProfileView as I, fetchNetworkMap as J, fetchNetworkStreamCount as K, fetchPendingEndorsements as L, fetchProfile as M, type NetworkMapEdge as N, fetchProfileSummary as O, type PendingEndorsementsPage as P, fetchReceivedEndorsements as Q, type ReceivedEndorsementsPage as R, type SpeakerCard as S, type TalkEvent as T, fetchReciprocityCandidate as U, fetchRpgStatus as V, fetchSpeakers as W, fetchTalks as X, hideKeytraceClaim as Y, importSearchEntities as Z, initiateNetworkMapGeneration as _, type ReciprocityCandidate as a, linkSkillToPosition as a0, mintEntityDomain as a1, resolveEntityDomain as a2, revealMarqueDomain as a3, selectEntity as a4, setPositionPrimary as a5, unhideKeytraceClaim as a6, unlinkSkillFromPosition as a7, unrevealMarqueDomain as a8, unsetPositionPrimary as a9, updateEducation as aa, updatePosition as ab, updateRecord as ac, type FetchPendingEndorsementsOptions as b, type FetchRpgStatusOptions as c, type NetworkMapGenerationJob as d, type NetworkMapGraphData as e, type NetworkMapNode as f, type NetworkMapPendingJob as g, type NetworkMapResponse as h, type PendingEndorsement as i, type ReceivedEndorsement as j, type ReciprocitySkill as k, type RpgItemStatus as l, RpgItemStatusSchema as m, type RpgStatusResponse as n, RpgStatusResponseSchema as o, type SpeakerDirectoryFilters as p, type SpeakerGroup as q, type SpeakersResponse as r, type TalkRow as s, type TalkSpeaker as t, type TalksResponse as u, checkNetworkMapJobStatus as v, createEducation as w, createPosition as x, createRecord as y, deleteEducation as z };
|
|
@@ -2,6 +2,7 @@ import { c as Profile, d as ProfilePosition, S as SkillRef, w as PresentationLin
|
|
|
2
2
|
import { K as SifaApiConfig, M as ApiFetchOptions, n as ProfileView, N as CreateResult, W as WriteResult } from './types-CK8KgdqA.js';
|
|
3
3
|
import { S as SummarizeProfileViewOptions, P as ProfileSummary } from './profile-summary-Qtfk-52i.js';
|
|
4
4
|
import { i as EntitySearchResponse, E as EntitySearchResult, c as EntityMintDomainResponse, g as EntityResolveDomainResponse, l as EntitySelectRequest, n as EntitySelectResponse } from './follow-profile-D1l6pulB.js';
|
|
5
|
+
import { z } from 'zod';
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* Read the aggregated profile for a handle or DID.
|
|
@@ -388,6 +389,51 @@ declare function resolveEntityDomain(config: SifaApiConfig, domain: string, opti
|
|
|
388
389
|
*/
|
|
389
390
|
declare function mintEntityDomain(config: SifaApiConfig, domain: string, options?: ApiFetchOptions): Promise<EntityMintDomainResponse>;
|
|
390
391
|
|
|
392
|
+
/** One rpg.actor item and the viewer's progress on it, as served by `GET /api/rpg/status`. */
|
|
393
|
+
declare const RpgItemStatusSchema: z.ZodObject<{
|
|
394
|
+
id: z.ZodString;
|
|
395
|
+
title: z.ZodString;
|
|
396
|
+
description: z.ZodString;
|
|
397
|
+
category: z.ZodString;
|
|
398
|
+
earned: z.ZodBoolean;
|
|
399
|
+
state: z.ZodEnum<{
|
|
400
|
+
claimed: "claimed";
|
|
401
|
+
earned: "earned";
|
|
402
|
+
locked: "locked";
|
|
403
|
+
given: "given";
|
|
404
|
+
}>;
|
|
405
|
+
iconUrl: z.ZodNullable<z.ZodString>;
|
|
406
|
+
}, z.core.$strip>;
|
|
407
|
+
type RpgItemStatus = z.infer<typeof RpgItemStatusSchema>;
|
|
408
|
+
declare const RpgStatusResponseSchema: z.ZodObject<{
|
|
409
|
+
hasCharacter: z.ZodBoolean;
|
|
410
|
+
canWriteItems: z.ZodBoolean;
|
|
411
|
+
items: z.ZodArray<z.ZodObject<{
|
|
412
|
+
id: z.ZodString;
|
|
413
|
+
title: z.ZodString;
|
|
414
|
+
description: z.ZodString;
|
|
415
|
+
category: z.ZodString;
|
|
416
|
+
earned: z.ZodBoolean;
|
|
417
|
+
state: z.ZodEnum<{
|
|
418
|
+
claimed: "claimed";
|
|
419
|
+
earned: "earned";
|
|
420
|
+
locked: "locked";
|
|
421
|
+
given: "given";
|
|
422
|
+
}>;
|
|
423
|
+
iconUrl: z.ZodNullable<z.ZodString>;
|
|
424
|
+
}, z.core.$strip>>;
|
|
425
|
+
}, z.core.$strip>;
|
|
426
|
+
type RpgStatusResponse = z.infer<typeof RpgStatusResponseSchema>;
|
|
427
|
+
interface FetchRpgStatusOptions extends ApiFetchOptions {
|
|
428
|
+
/** Forwarded as the `cookie` header for server-side (SSR) calls. */
|
|
429
|
+
cookieHeader?: string;
|
|
430
|
+
}
|
|
431
|
+
/**
|
|
432
|
+
* Fetch the authenticated viewer's rpg.actor item status. Auth-scoped: relies
|
|
433
|
+
* on the session cookie (`credentials: 'include'`).
|
|
434
|
+
*/
|
|
435
|
+
declare function fetchRpgStatus(config: SifaApiConfig, options?: FetchRpgStatusOptions): Promise<RpgStatusResponse>;
|
|
436
|
+
|
|
391
437
|
/**
|
|
392
438
|
* Counts confirmed endorsements received by a DID. The backend's
|
|
393
439
|
* `GET /api/endorsement/:did` already returns only confirmed endorsements
|
|
@@ -509,4 +555,4 @@ declare function checkNetworkMapJobStatus(config: SifaApiConfig, jobId: string,
|
|
|
509
555
|
*/
|
|
510
556
|
declare function fetchNetworkMap(config: SifaApiConfig, options?: ApiFetchOptions): Promise<NetworkMapResponse | null>;
|
|
511
557
|
|
|
512
|
-
export {
|
|
558
|
+
export { isNetworkMapResponse as $, deletePosition as A, deleteRecord as B, dismissEndorsement as C, type DismissEndorsementInput as D, fetchAtFundLink as E, type FetchNetworkStreamCountOptions as F, fetchEndorsementCount as G, fetchEntitySearch as H, fetchGetProfileView as I, fetchNetworkMap as J, fetchNetworkStreamCount as K, fetchPendingEndorsements as L, fetchProfile as M, type NetworkMapEdge as N, fetchProfileSummary as O, type PendingEndorsementsPage as P, fetchReceivedEndorsements as Q, type ReceivedEndorsementsPage as R, type SpeakerCard as S, type TalkEvent as T, fetchReciprocityCandidate as U, fetchRpgStatus as V, fetchSpeakers as W, fetchTalks as X, hideKeytraceClaim as Y, importSearchEntities as Z, initiateNetworkMapGeneration as _, type ReciprocityCandidate as a, linkSkillToPosition as a0, mintEntityDomain as a1, resolveEntityDomain as a2, revealMarqueDomain as a3, selectEntity as a4, setPositionPrimary as a5, unhideKeytraceClaim as a6, unlinkSkillFromPosition as a7, unrevealMarqueDomain as a8, unsetPositionPrimary as a9, updateEducation as aa, updatePosition as ab, updateRecord as ac, type FetchPendingEndorsementsOptions as b, type FetchRpgStatusOptions as c, type NetworkMapGenerationJob as d, type NetworkMapGraphData as e, type NetworkMapNode as f, type NetworkMapPendingJob as g, type NetworkMapResponse as h, type PendingEndorsement as i, type ReceivedEndorsement as j, type ReciprocitySkill as k, type RpgItemStatus as l, RpgItemStatusSchema as m, type RpgStatusResponse as n, RpgStatusResponseSchema as o, type SpeakerDirectoryFilters as p, type SpeakerGroup as q, type SpeakersResponse as r, type TalkRow as s, type TalkSpeaker as t, type TalksResponse as u, checkNetworkMapJobStatus as v, createEducation as w, createPosition as x, createRecord as y, deleteEducation as z };
|
|
@@ -1266,6 +1266,33 @@ async function fetchMyGithubPullRequests(config, options = {}) {
|
|
|
1266
1266
|
);
|
|
1267
1267
|
return MyGithubPullRequestsResponseSchema.parse(data);
|
|
1268
1268
|
}
|
|
1269
|
+
var RpgItemStatusSchema = zod.z.object({
|
|
1270
|
+
id: zod.z.string(),
|
|
1271
|
+
title: zod.z.string(),
|
|
1272
|
+
description: zod.z.string(),
|
|
1273
|
+
category: zod.z.string(),
|
|
1274
|
+
earned: zod.z.boolean(),
|
|
1275
|
+
state: zod.z.enum(["locked", "earned", "given", "claimed"]),
|
|
1276
|
+
iconUrl: zod.z.string().url().nullable()
|
|
1277
|
+
});
|
|
1278
|
+
var RpgStatusResponseSchema = zod.z.object({
|
|
1279
|
+
hasCharacter: zod.z.boolean(),
|
|
1280
|
+
/** True when the user granted the `repo:equipment.rpg.item` OAuth scope. */
|
|
1281
|
+
canWriteItems: zod.z.boolean(),
|
|
1282
|
+
items: zod.z.array(RpgItemStatusSchema)
|
|
1283
|
+
});
|
|
1284
|
+
async function fetchRpgStatus(config, options = {}) {
|
|
1285
|
+
const { cookieHeader, ...fetchOptions } = options;
|
|
1286
|
+
const headers = { ...options.headers ?? {} };
|
|
1287
|
+
if (cookieHeader) headers.cookie = cookieHeader;
|
|
1288
|
+
const data = await apiFetch(config, "/api/rpg/status", {
|
|
1289
|
+
credentials: "include",
|
|
1290
|
+
cache: "no-store",
|
|
1291
|
+
...fetchOptions,
|
|
1292
|
+
headers
|
|
1293
|
+
});
|
|
1294
|
+
return RpgStatusResponseSchema.parse(data);
|
|
1295
|
+
}
|
|
1269
1296
|
|
|
1270
1297
|
// src/query/fetchers/endorsement.ts
|
|
1271
1298
|
async function fetchEndorsementCount(config, did, options = {}) {
|
|
@@ -2008,6 +2035,8 @@ exports.HIDDEN_ITEM_SOURCES = HIDDEN_ITEM_SOURCES;
|
|
|
2008
2035
|
exports.HIDDEN_ITEM_TYPES = HIDDEN_ITEM_TYPES;
|
|
2009
2036
|
exports.PROFILE_COMPLETENESS_SIGNALS = PROFILE_COMPLETENESS_SIGNALS;
|
|
2010
2037
|
exports.QUOTED_POSTS_BATCH_MAX = QUOTED_POSTS_BATCH_MAX;
|
|
2038
|
+
exports.RpgItemStatusSchema = RpgItemStatusSchema;
|
|
2039
|
+
exports.RpgStatusResponseSchema = RpgStatusResponseSchema;
|
|
2011
2040
|
exports.addFeatureAllowlist = addFeatureAllowlist;
|
|
2012
2041
|
exports.addOrgNotificationEmail = addOrgNotificationEmail;
|
|
2013
2042
|
exports.apiFetch = apiFetch;
|
|
@@ -2078,6 +2107,7 @@ exports.fetchReceivedEndorsements = fetchReceivedEndorsements;
|
|
|
2078
2107
|
exports.fetchReciprocityCandidate = fetchReciprocityCandidate;
|
|
2079
2108
|
exports.fetchRepoInventory = fetchRepoInventory;
|
|
2080
2109
|
exports.fetchRoadmapVotes = fetchRoadmapVotes;
|
|
2110
|
+
exports.fetchRpgStatus = fetchRpgStatus;
|
|
2081
2111
|
exports.fetchSearchCompanies = fetchSearchCompanies;
|
|
2082
2112
|
exports.fetchSearchFilters = fetchSearchFilters;
|
|
2083
2113
|
exports.fetchSearchProfiles = fetchSearchProfiles;
|