@singi-labs/sifa-sdk 0.19.72 → 0.19.74

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.
@@ -1,6 +1,6 @@
1
1
  import { K as SifaApiConfig, M as ApiFetchOptions, N as CreateResult, W as WriteResult } from '../../types-DXep6553.cjs';
2
2
  export { O as ApiError, a5 as CompanySearchFilters, a6 as CompanySearchResponse, a7 as CompanySearchResult, Q as FilterOptions, T as ProfileSearchResult, U as ProfileSearchSuggestion, S as SearchFilters, X as SearchResponse, Y as SkillSearchResult, Z as apiFetch, _ as apiFetchOrNull, $ as apiWrite, a0 as apiWriteCreate, a8 as fetchSearchCompanies, a1 as fetchSearchFilters, a2 as fetchSearchProfiles, a3 as fetchSkillSuggestions, a4 as searchSkills } from '../../types-DXep6553.cjs';
3
- export { D as DismissEndorsementInput, F as FetchNetworkStreamCountOptions, b as FetchPendingEndorsementsOptions, c as FetchRpgStatusOptions, N as NetworkMapEdge, d as NetworkMapGenerationJob, e as NetworkMapGraphData, f as NetworkMapNode, g as NetworkMapPendingJob, h as NetworkMapResponse, i as PendingEndorsement, P as PendingEndorsementsPage, j as ReceivedEndorsement, R as ReceivedEndorsementsPage, a as ReciprocityCandidate, k as ReciprocitySkill, l as RpgItemStatus, m as RpgItemStatusSchema, n as RpgStatusResponse, o as RpgStatusResponseSchema, S as SpeakerCard, p as SpeakerDirectoryFilters, q as SpeakerGroup, r as SpeakersResponse, T as TalkEvent, s as TalkRow, t as TalkSpeaker, u as TalksResponse, v as checkNetworkMapJobStatus, w as createEducation, x as createPosition, y as createRecord, z as deleteEducation, A as deletePosition, B as deleteRecord, C as dismissEndorsement, E as fetchAtFundLink, G as fetchEndorsementCount, H as fetchEntitySearch, I as fetchGetProfileView, J as fetchNetworkMap, K as fetchNetworkStreamCount, L as fetchPendingEndorsements, M as fetchProfile, O as fetchProfileSummary, Q as fetchReceivedEndorsements, U as fetchReciprocityCandidate, V as fetchRpgStatus, W as fetchSpeakers, X as fetchTalks, Y as hideKeytraceClaim, Z as importSearchEntities, _ as initiateNetworkMapGeneration, $ as isNetworkMapResponse, a0 as linkSkillToPosition, a3 as revealMarqueDomain, a4 as selectEntity, a5 as setPositionPrimary, a6 as unhideKeytraceClaim, a7 as unlinkSkillFromPosition, a8 as unrevealMarqueDomain, a9 as unsetPositionPrimary, aa as updateEducation, ab as updatePosition, ac as updateRecord } from '../../network-map-DfXwB2Eq.cjs';
3
+ export { D as DismissEndorsementInput, F as FetchNetworkStreamCountOptions, b as FetchPendingEndorsementsOptions, c as FetchRpgStatusOptions, N as NetworkMapEdge, d as NetworkMapGenerationJob, e as NetworkMapGraphData, f as NetworkMapNode, g as NetworkMapPendingJob, h as NetworkMapResponse, i as PendingEndorsement, P as PendingEndorsementsPage, j as ReceivedEndorsement, R as ReceivedEndorsementsPage, a as ReciprocityCandidate, k as ReciprocitySkill, l as RpgItemStatus, m as RpgItemStatusSchema, n as RpgStatusResponse, o as RpgStatusResponseSchema, S as SpeakerCard, p as SpeakerDirectoryFilters, q as SpeakerGroup, r as SpeakersResponse, T as TalkEvent, s as TalkRow, t as TalkSpeaker, u as TalksResponse, v as checkNetworkMapJobStatus, w as createEducation, x as createPosition, y as createRecord, z as deleteEducation, A as deletePosition, B as deleteRecord, C as dismissEndorsement, E as fetchAtFundLink, G as fetchEndorsementCount, H as fetchEntitySearch, I as fetchGetProfileView, J as fetchNetworkMap, K as fetchNetworkStreamCount, L as fetchPendingEndorsements, M as fetchProfile, O as fetchProfileSummary, Q as fetchReceivedEndorsements, U as fetchReciprocityCandidate, V as fetchRpgStatus, W as fetchSpeakers, X as fetchTalks, Y as hideKeytraceClaim, Z as importSearchEntities, _ as initiateNetworkMapGeneration, $ as isNetworkMapResponse, a0 as linkSkillToPosition, a3 as revealMarqueDomain, a4 as selectEntity, a5 as setPositionPrimary, a6 as unhideKeytraceClaim, a7 as unlinkSkillFromPosition, a8 as unrevealMarqueDomain, a9 as unsetPositionPrimary, aa as updateEducation, ab as updatePosition, ac as updateRecord } from '../../network-map-BRBzAHrT.cjs';
4
4
  export { A as AccountCheckResult, b as AccountSummary, c as ActivityFeedResponse, d as ActivityItem, e as ActivityItemLinkHealth, f as ActivityTeaserResponse, g as AdminReviewQueues, h as AppRegistryEntry, B as BulkHideProfileItemInput, i as CastRoadmapVoteResult, j as CheckAppAccountOptions, C as ConfirmEndorsementInput, k as ConfirmationInput, l as ConfirmationSubjectInput, m as CreateExternalAccountResult, D as DeleteAccountResult, n as DismissUnlinkedPositionInput, E as EndorsementInput, o as ExternalAccountInput, F as FeatureAllowlistResponse, p as FeaturedProfile, q as FetchAccountsOptions, r as FetchActivityFeedOptions, t as FetchActivityTeaserOptions, u as FetchConfirmationsOptions, v as FetchFollowListOptions, w as FetchFollowProfilePageOptions, x as FetchFollowingFeedOptions, y as FetchHiddenActivityItemsOptions, z as FetchHiddenAppsOptions, G as FetchInboxCountsOptions, H as FetchMyGithubPullRequestsOptions, I as FetchMyRoadmapVotesOptions, J as FetchProfileCompletenessOptions, K as FetchReactionStatusOptions, L as FetchSuggestionsOptions, M as FetchUnlinkedPositionsOptions, N as FollowListPage, O as FollowProfile, P as FollowProfilePageResponse, Q as FollowUserResult, R as FollowingFeedApp, S as FollowingFeedBuild, T as FollowingFeedEmptyReason, U as FollowingFeedResponse, V as FollowingFeedVersion, W as FollowingResponse, X as GetAdminReviewQueuesOptions, Y as GithubPullRequest, Z as GivenConfirmation, _ as HIDDEN_ITEM_SOURCES, $ as HIDDEN_ITEM_TYPES, a0 as HeatmapDay, a1 as HeatmapResponse, a2 as HiddenActivityItem, a3 as HiddenApp, a4 as HiddenItemSource, a5 as HiddenItemType, a6 as HideActivityItemInput, a7 as HideProfileItemInput, a8 as InboxCounts, a9 as ListFeatureAllowlistOptions, aa as MyGithubPullRequestsResponse, ab as OrgClaimBinding, ac as OrgClaimResult, ad as OrgDomainChallengeResult, ae as OrgDomainVerifyResult, af as OrgNotificationEmailAddResult, ag as OrgNotificationEmailRemoveResult, ah as OrgProfileEcho, ai as OrgProfileUpdateResult, aj as PROFILE_COMPLETENESS_SIGNALS, ak as PdsWipeOutcome, al as PendingConfirmation, am as PendingConfirmationsPage, an as PrimarySection, ao as ProfileCompleteness, ap as ProfileCompletenessSignal, aq as ProfileIndustryInput, ar as ProfileLocationAddress, as as ProfileLocationInput, at as ProfileSelfLocation, au as QUOTED_POSTS_BATCH_MAX, av as QuotedPostAuthor, aw as QuotedPostImage, ax as QuotedPostResult, ay as QuotedPostView, az as ReactionError, aA as ReactionResult, aB as ReactionStatus, aC as RefreshOrcidPublicationsResult, aD as RefreshPdsResult, aE as RepoDeleteInput, aF as ResetProfileResult, aG as ResolveQuotedPostsOptions, aH as RoadmapVoteError, aI as RoadmapVoteResult, aJ as RoadmapVoter, aK as RoadmapVotesResponse, aL as SifaQueryKey, aM as SimilarProfile, aN as StatsResponse, aP as SuggestionProfile, aQ as SuggestionsResponse, aR as UnhideActivityItemInput, aS as UnlinkedPosition, aT as UnlinkedPositionsResult, aU as UpdateProfileOverrideInput, aV as UpdateProfileSelfInput, aW as UploadAvatarResult, aX as UploadPronunciationAudioResult, aY as VerifyExternalAccountResult, aZ as WipePreview, a_ as addFeatureAllowlist, a$ as addOrgNotificationEmail, b0 as bulkHideProfileItems, b1 as bulkHideStandardPublications, b2 as bulkUnhideProfileItems, b3 as bulkUnhideStandardPublications, b4 as castRoadmapVote, b5 as checkAppAccount, b6 as confirmEndorsement, b7 as createConfirmation, b8 as createEndorsement, b9 as createExternalAccount, ba as createProfileLocation, bb as createReaction, bc as createSkill, bd as deleteAccount, be as deleteAvatarOverride, bf as deleteExternalAccount, bg as deleteNamePronunciationAudio, bh as deleteProfileLocation, bi as deleteReaction, bj as deleteRepoRecords, bk as deleteSkill, bl as dismissConfirmation, bm as dismissUnlinkedPosition, bn as fetchAccounts, bo as fetchActivityFeed, bp as fetchActivityTeaser, bq as fetchAppsRegistry, br as fetchExternalAccounts, bs as fetchFeaturedProfile, bt as fetchFollowing, bu as fetchFollowingFeed, bv as fetchFollowingFeedVersion, bw as fetchGivenConfirmations, bx as fetchHeatmapData, by as fetchHiddenActivityItems, bz as fetchHiddenApps, bA as fetchInboxCounts, bB as fetchMyGithubPullRequests, bC as fetchMyRoadmapVotes, bD as fetchPendingConfirmations, bE as fetchProfileCompleteness, bF as fetchReactionStatus, bG as fetchRepoInventory, bH as fetchRoadmapVotes, bI as fetchSimilarProfiles, bJ as fetchStats, bK as fetchSuggestionCount, bL as fetchSuggestions, bM as fetchUnlinkedPositions, bN as fetchViewerPositionConfirmations, bO as fetchWipePreview, bP as followUser, bQ as getAdminReviewQueues, bR as getBlueskySuggestions, bS as getFollowers, bT as getFollowing, bU as getMutuals, bV as hideActivityItem, bW as hideOrcidPublication, bX as hideProfileItem, bY as hideSifaPublication, bZ as hideStandardPublication, b_ as isNewerFollowingFeed, b$ as listFeatureAllowlist, c0 as refreshOrcidPublications, c1 as refreshPds, c2 as removeFeatureAllowlist, c3 as removeOrgNotificationEmail, c4 as repoExportUrl, c5 as requestOrgDomainChallenge, c6 as resetProfile, c7 as resolveQuotedPosts, c8 as retractRoadmapVote, c9 as revokeConfirmation, ca as setExternalAccountPrimary, cb as setSectionPrimary, s as sifaQueryKeys, cc as submitOrgClaim, cd as switchAccount, ce as unfollowUser, cf as unhideActivityItem, cg as unhideOrcidPublication, ch as unhideProfileItem, ci as unhideSifaPublication, cj as unhideStandardPublication, ck as unsetExternalAccountPrimary, cl as unsetSectionPrimary, cm as updateExternalAccount, cn as updateOrgProfile, co as updateProfileLocation, cp as updateProfileOverride, cq as updateProfileSelf, cr as updateSkill, ct as uploadAvatar, cu as uploadNamePronunciationAudio, cv as verifyExternalAccount, cw as verifyOrgDomain } from '../../org-A9Tz-Uv9.cjs';
5
5
  import '../../index-BzkaABDb.cjs';
6
6
  import '../../verification-providers-7il3kPQS.cjs';
@@ -1,6 +1,6 @@
1
1
  import { K as SifaApiConfig, M as ApiFetchOptions, N as CreateResult, W as WriteResult } from '../../types-DxMMqOJo.js';
2
2
  export { O as ApiError, a5 as CompanySearchFilters, a6 as CompanySearchResponse, a7 as CompanySearchResult, Q as FilterOptions, T as ProfileSearchResult, U as ProfileSearchSuggestion, S as SearchFilters, X as SearchResponse, Y as SkillSearchResult, Z as apiFetch, _ as apiFetchOrNull, $ as apiWrite, a0 as apiWriteCreate, a8 as fetchSearchCompanies, a1 as fetchSearchFilters, a2 as fetchSearchProfiles, a3 as fetchSkillSuggestions, a4 as searchSkills } from '../../types-DxMMqOJo.js';
3
- export { D as DismissEndorsementInput, F as FetchNetworkStreamCountOptions, b as FetchPendingEndorsementsOptions, c as FetchRpgStatusOptions, N as NetworkMapEdge, d as NetworkMapGenerationJob, e as NetworkMapGraphData, f as NetworkMapNode, g as NetworkMapPendingJob, h as NetworkMapResponse, i as PendingEndorsement, P as PendingEndorsementsPage, j as ReceivedEndorsement, R as ReceivedEndorsementsPage, a as ReciprocityCandidate, k as ReciprocitySkill, l as RpgItemStatus, m as RpgItemStatusSchema, n as RpgStatusResponse, o as RpgStatusResponseSchema, S as SpeakerCard, p as SpeakerDirectoryFilters, q as SpeakerGroup, r as SpeakersResponse, T as TalkEvent, s as TalkRow, t as TalkSpeaker, u as TalksResponse, v as checkNetworkMapJobStatus, w as createEducation, x as createPosition, y as createRecord, z as deleteEducation, A as deletePosition, B as deleteRecord, C as dismissEndorsement, E as fetchAtFundLink, G as fetchEndorsementCount, H as fetchEntitySearch, I as fetchGetProfileView, J as fetchNetworkMap, K as fetchNetworkStreamCount, L as fetchPendingEndorsements, M as fetchProfile, O as fetchProfileSummary, Q as fetchReceivedEndorsements, U as fetchReciprocityCandidate, V as fetchRpgStatus, W as fetchSpeakers, X as fetchTalks, Y as hideKeytraceClaim, Z as importSearchEntities, _ as initiateNetworkMapGeneration, $ as isNetworkMapResponse, a0 as linkSkillToPosition, a3 as revealMarqueDomain, a4 as selectEntity, a5 as setPositionPrimary, a6 as unhideKeytraceClaim, a7 as unlinkSkillFromPosition, a8 as unrevealMarqueDomain, a9 as unsetPositionPrimary, aa as updateEducation, ab as updatePosition, ac as updateRecord } from '../../network-map-D-VXi2yc.js';
3
+ export { D as DismissEndorsementInput, F as FetchNetworkStreamCountOptions, b as FetchPendingEndorsementsOptions, c as FetchRpgStatusOptions, N as NetworkMapEdge, d as NetworkMapGenerationJob, e as NetworkMapGraphData, f as NetworkMapNode, g as NetworkMapPendingJob, h as NetworkMapResponse, i as PendingEndorsement, P as PendingEndorsementsPage, j as ReceivedEndorsement, R as ReceivedEndorsementsPage, a as ReciprocityCandidate, k as ReciprocitySkill, l as RpgItemStatus, m as RpgItemStatusSchema, n as RpgStatusResponse, o as RpgStatusResponseSchema, S as SpeakerCard, p as SpeakerDirectoryFilters, q as SpeakerGroup, r as SpeakersResponse, T as TalkEvent, s as TalkRow, t as TalkSpeaker, u as TalksResponse, v as checkNetworkMapJobStatus, w as createEducation, x as createPosition, y as createRecord, z as deleteEducation, A as deletePosition, B as deleteRecord, C as dismissEndorsement, E as fetchAtFundLink, G as fetchEndorsementCount, H as fetchEntitySearch, I as fetchGetProfileView, J as fetchNetworkMap, K as fetchNetworkStreamCount, L as fetchPendingEndorsements, M as fetchProfile, O as fetchProfileSummary, Q as fetchReceivedEndorsements, U as fetchReciprocityCandidate, V as fetchRpgStatus, W as fetchSpeakers, X as fetchTalks, Y as hideKeytraceClaim, Z as importSearchEntities, _ as initiateNetworkMapGeneration, $ as isNetworkMapResponse, a0 as linkSkillToPosition, a3 as revealMarqueDomain, a4 as selectEntity, a5 as setPositionPrimary, a6 as unhideKeytraceClaim, a7 as unlinkSkillFromPosition, a8 as unrevealMarqueDomain, a9 as unsetPositionPrimary, aa as updateEducation, ab as updatePosition, ac as updateRecord } from '../../network-map-DIUQSB0r.js';
4
4
  export { A as AccountCheckResult, b as AccountSummary, c as ActivityFeedResponse, d as ActivityItem, e as ActivityItemLinkHealth, f as ActivityTeaserResponse, g as AdminReviewQueues, h as AppRegistryEntry, B as BulkHideProfileItemInput, i as CastRoadmapVoteResult, j as CheckAppAccountOptions, C as ConfirmEndorsementInput, k as ConfirmationInput, l as ConfirmationSubjectInput, m as CreateExternalAccountResult, D as DeleteAccountResult, n as DismissUnlinkedPositionInput, E as EndorsementInput, o as ExternalAccountInput, F as FeatureAllowlistResponse, p as FeaturedProfile, q as FetchAccountsOptions, r as FetchActivityFeedOptions, t as FetchActivityTeaserOptions, u as FetchConfirmationsOptions, v as FetchFollowListOptions, w as FetchFollowProfilePageOptions, x as FetchFollowingFeedOptions, y as FetchHiddenActivityItemsOptions, z as FetchHiddenAppsOptions, G as FetchInboxCountsOptions, H as FetchMyGithubPullRequestsOptions, I as FetchMyRoadmapVotesOptions, J as FetchProfileCompletenessOptions, K as FetchReactionStatusOptions, L as FetchSuggestionsOptions, M as FetchUnlinkedPositionsOptions, N as FollowListPage, O as FollowProfile, P as FollowProfilePageResponse, Q as FollowUserResult, R as FollowingFeedApp, S as FollowingFeedBuild, T as FollowingFeedEmptyReason, U as FollowingFeedResponse, V as FollowingFeedVersion, W as FollowingResponse, X as GetAdminReviewQueuesOptions, Y as GithubPullRequest, Z as GivenConfirmation, _ as HIDDEN_ITEM_SOURCES, $ as HIDDEN_ITEM_TYPES, a0 as HeatmapDay, a1 as HeatmapResponse, a2 as HiddenActivityItem, a3 as HiddenApp, a4 as HiddenItemSource, a5 as HiddenItemType, a6 as HideActivityItemInput, a7 as HideProfileItemInput, a8 as InboxCounts, a9 as ListFeatureAllowlistOptions, aa as MyGithubPullRequestsResponse, ab as OrgClaimBinding, ac as OrgClaimResult, ad as OrgDomainChallengeResult, ae as OrgDomainVerifyResult, af as OrgNotificationEmailAddResult, ag as OrgNotificationEmailRemoveResult, ah as OrgProfileEcho, ai as OrgProfileUpdateResult, aj as PROFILE_COMPLETENESS_SIGNALS, ak as PdsWipeOutcome, al as PendingConfirmation, am as PendingConfirmationsPage, an as PrimarySection, ao as ProfileCompleteness, ap as ProfileCompletenessSignal, aq as ProfileIndustryInput, ar as ProfileLocationAddress, as as ProfileLocationInput, at as ProfileSelfLocation, au as QUOTED_POSTS_BATCH_MAX, av as QuotedPostAuthor, aw as QuotedPostImage, ax as QuotedPostResult, ay as QuotedPostView, az as ReactionError, aA as ReactionResult, aB as ReactionStatus, aC as RefreshOrcidPublicationsResult, aD as RefreshPdsResult, aE as RepoDeleteInput, aF as ResetProfileResult, aG as ResolveQuotedPostsOptions, aH as RoadmapVoteError, aI as RoadmapVoteResult, aJ as RoadmapVoter, aK as RoadmapVotesResponse, aL as SifaQueryKey, aM as SimilarProfile, aN as StatsResponse, aP as SuggestionProfile, aQ as SuggestionsResponse, aR as UnhideActivityItemInput, aS as UnlinkedPosition, aT as UnlinkedPositionsResult, aU as UpdateProfileOverrideInput, aV as UpdateProfileSelfInput, aW as UploadAvatarResult, aX as UploadPronunciationAudioResult, aY as VerifyExternalAccountResult, aZ as WipePreview, a_ as addFeatureAllowlist, a$ as addOrgNotificationEmail, b0 as bulkHideProfileItems, b1 as bulkHideStandardPublications, b2 as bulkUnhideProfileItems, b3 as bulkUnhideStandardPublications, b4 as castRoadmapVote, b5 as checkAppAccount, b6 as confirmEndorsement, b7 as createConfirmation, b8 as createEndorsement, b9 as createExternalAccount, ba as createProfileLocation, bb as createReaction, bc as createSkill, bd as deleteAccount, be as deleteAvatarOverride, bf as deleteExternalAccount, bg as deleteNamePronunciationAudio, bh as deleteProfileLocation, bi as deleteReaction, bj as deleteRepoRecords, bk as deleteSkill, bl as dismissConfirmation, bm as dismissUnlinkedPosition, bn as fetchAccounts, bo as fetchActivityFeed, bp as fetchActivityTeaser, bq as fetchAppsRegistry, br as fetchExternalAccounts, bs as fetchFeaturedProfile, bt as fetchFollowing, bu as fetchFollowingFeed, bv as fetchFollowingFeedVersion, bw as fetchGivenConfirmations, bx as fetchHeatmapData, by as fetchHiddenActivityItems, bz as fetchHiddenApps, bA as fetchInboxCounts, bB as fetchMyGithubPullRequests, bC as fetchMyRoadmapVotes, bD as fetchPendingConfirmations, bE as fetchProfileCompleteness, bF as fetchReactionStatus, bG as fetchRepoInventory, bH as fetchRoadmapVotes, bI as fetchSimilarProfiles, bJ as fetchStats, bK as fetchSuggestionCount, bL as fetchSuggestions, bM as fetchUnlinkedPositions, bN as fetchViewerPositionConfirmations, bO as fetchWipePreview, bP as followUser, bQ as getAdminReviewQueues, bR as getBlueskySuggestions, bS as getFollowers, bT as getFollowing, bU as getMutuals, bV as hideActivityItem, bW as hideOrcidPublication, bX as hideProfileItem, bY as hideSifaPublication, bZ as hideStandardPublication, b_ as isNewerFollowingFeed, b$ as listFeatureAllowlist, c0 as refreshOrcidPublications, c1 as refreshPds, c2 as removeFeatureAllowlist, c3 as removeOrgNotificationEmail, c4 as repoExportUrl, c5 as requestOrgDomainChallenge, c6 as resetProfile, c7 as resolveQuotedPosts, c8 as retractRoadmapVote, c9 as revokeConfirmation, ca as setExternalAccountPrimary, cb as setSectionPrimary, s as sifaQueryKeys, cc as submitOrgClaim, cd as switchAccount, ce as unfollowUser, cf as unhideActivityItem, cg as unhideOrcidPublication, ch as unhideProfileItem, ci as unhideSifaPublication, cj as unhideStandardPublication, ck as unsetExternalAccountPrimary, cl as unsetSectionPrimary, cm as updateExternalAccount, cn as updateOrgProfile, co as updateProfileLocation, cp as updateProfileOverride, cq as updateProfileSelf, cr as updateSkill, ct as uploadAvatar, cu as uploadNamePronunciationAudio, cv as verifyExternalAccount, cw as verifyOrgDomain } from '../../org-Spq8yU-B.js';
5
5
  import '../../index-BFdNI6jA.js';
6
6
  import '../../verification-providers-7il3kPQS.js';
@@ -8,6 +8,11 @@ var RpgItemStatusSchema = z.object({
8
8
  category: z.string(),
9
9
  earned: z.boolean(),
10
10
  state: z.enum(["locked", "earned", "given", "claimed"]),
11
+ /**
12
+ * True when the viewer's rpg.actor character wears this (claimed) item.
13
+ * Defaults to false for an older API that does not send it.
14
+ */
15
+ worn: z.boolean().default(false),
11
16
  iconUrl: z.string().url().nullable()
12
17
  });
13
18
  var RpgStatusResponseSchema = z.object({
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/query/fetchers/rpg.ts"],"sourcesContent":["import { z } from 'zod';\n\nimport { apiFetch, type ApiFetchOptions, type SifaApiConfig } from '../client.js';\n\n/** One rpg.actor item and the viewer's progress on it, as served by `GET /api/rpg/status`. */\nexport const RpgItemStatusSchema = z.object({\n id: z.string(),\n title: z.string(),\n description: z.string(),\n category: z.string(),\n earned: z.boolean(),\n state: z.enum(['locked', 'earned', 'given', 'claimed']),\n iconUrl: z.string().url().nullable(),\n});\nexport type RpgItemStatus = z.infer<typeof RpgItemStatusSchema>;\n\nexport const RpgStatusResponseSchema = z.object({\n hasCharacter: z.boolean(),\n /** True when the user granted the `repo:equipment.rpg.item` OAuth scope. */\n canWriteItems: z.boolean(),\n /** True when collecting (Sifa writing the gift) is switched on for this user. */\n canCollect: z.boolean().default(false),\n items: z.array(RpgItemStatusSchema),\n});\nexport type RpgStatusResponse = z.infer<typeof RpgStatusResponseSchema>;\n\nexport interface FetchRpgStatusOptions extends ApiFetchOptions {\n /** Forwarded as the `cookie` header for server-side (SSR) calls. */\n cookieHeader?: string;\n}\n\n/**\n * Fetch the authenticated viewer's rpg.actor item status. Auth-scoped: relies\n * on the session cookie (`credentials: 'include'`).\n */\nexport async function fetchRpgStatus(\n config: SifaApiConfig,\n options: FetchRpgStatusOptions = {},\n): Promise<RpgStatusResponse> {\n const { cookieHeader, ...fetchOptions } = options;\n\n const headers: Record<string, string> = { ...(options.headers ?? {}) };\n if (cookieHeader) headers.cookie = cookieHeader;\n\n const data = await apiFetch<unknown>(config, '/api/rpg/status', {\n credentials: 'include',\n cache: 'no-store',\n ...fetchOptions,\n headers,\n });\n\n return RpgStatusResponseSchema.parse(data);\n}\n"],"mappings":";AAAA,SAAS,SAAS;AAElB,SAAS,gBAA0D;AAG5D,IAAM,sBAAsB,EAAE,OAAO;AAAA,EAC1C,IAAI,EAAE,OAAO;AAAA,EACb,OAAO,EAAE,OAAO;AAAA,EAChB,aAAa,EAAE,OAAO;AAAA,EACtB,UAAU,EAAE,OAAO;AAAA,EACnB,QAAQ,EAAE,QAAQ;AAAA,EAClB,OAAO,EAAE,KAAK,CAAC,UAAU,UAAU,SAAS,SAAS,CAAC;AAAA,EACtD,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS;AACrC,CAAC;AAGM,IAAM,0BAA0B,EAAE,OAAO;AAAA,EAC9C,cAAc,EAAE,QAAQ;AAAA;AAAA,EAExB,eAAe,EAAE,QAAQ;AAAA;AAAA,EAEzB,YAAY,EAAE,QAAQ,EAAE,QAAQ,KAAK;AAAA,EACrC,OAAO,EAAE,MAAM,mBAAmB;AACpC,CAAC;AAYD,eAAsB,eACpB,QACA,UAAiC,CAAC,GACN;AAC5B,QAAM,EAAE,cAAc,GAAG,aAAa,IAAI;AAE1C,QAAM,UAAkC,EAAE,GAAI,QAAQ,WAAW,CAAC,EAAG;AACrE,MAAI,aAAc,SAAQ,SAAS;AAEnC,QAAM,OAAO,MAAM,SAAkB,QAAQ,mBAAmB;AAAA,IAC9D,aAAa;AAAA,IACb,OAAO;AAAA,IACP,GAAG;AAAA,IACH;AAAA,EACF,CAAC;AAED,SAAO,wBAAwB,MAAM,IAAI;AAC3C;","names":[]}
1
+ {"version":3,"sources":["../../../src/query/fetchers/rpg.ts"],"sourcesContent":["import { z } from 'zod';\n\nimport { apiFetch, type ApiFetchOptions, type SifaApiConfig } from '../client.js';\n\n/** One rpg.actor item and the viewer's progress on it, as served by `GET /api/rpg/status`. */\nexport const RpgItemStatusSchema = z.object({\n id: z.string(),\n title: z.string(),\n description: z.string(),\n category: z.string(),\n earned: z.boolean(),\n state: z.enum(['locked', 'earned', 'given', 'claimed']),\n /**\n * True when the viewer's rpg.actor character wears this (claimed) item.\n * Defaults to false for an older API that does not send it.\n */\n worn: z.boolean().default(false),\n iconUrl: z.string().url().nullable(),\n});\nexport type RpgItemStatus = z.infer<typeof RpgItemStatusSchema>;\n\nexport const RpgStatusResponseSchema = z.object({\n hasCharacter: z.boolean(),\n /** True when the user granted the `repo:equipment.rpg.item` OAuth scope. */\n canWriteItems: z.boolean(),\n /** True when collecting (Sifa writing the gift) is switched on for this user. */\n canCollect: z.boolean().default(false),\n items: z.array(RpgItemStatusSchema),\n});\nexport type RpgStatusResponse = z.infer<typeof RpgStatusResponseSchema>;\n\nexport interface FetchRpgStatusOptions extends ApiFetchOptions {\n /** Forwarded as the `cookie` header for server-side (SSR) calls. */\n cookieHeader?: string;\n}\n\n/**\n * Fetch the authenticated viewer's rpg.actor item status. Auth-scoped: relies\n * on the session cookie (`credentials: 'include'`).\n */\nexport async function fetchRpgStatus(\n config: SifaApiConfig,\n options: FetchRpgStatusOptions = {},\n): Promise<RpgStatusResponse> {\n const { cookieHeader, ...fetchOptions } = options;\n\n const headers: Record<string, string> = { ...(options.headers ?? {}) };\n if (cookieHeader) headers.cookie = cookieHeader;\n\n const data = await apiFetch<unknown>(config, '/api/rpg/status', {\n credentials: 'include',\n cache: 'no-store',\n ...fetchOptions,\n headers,\n });\n\n return RpgStatusResponseSchema.parse(data);\n}\n"],"mappings":";AAAA,SAAS,SAAS;AAElB,SAAS,gBAA0D;AAG5D,IAAM,sBAAsB,EAAE,OAAO;AAAA,EAC1C,IAAI,EAAE,OAAO;AAAA,EACb,OAAO,EAAE,OAAO;AAAA,EAChB,aAAa,EAAE,OAAO;AAAA,EACtB,UAAU,EAAE,OAAO;AAAA,EACnB,QAAQ,EAAE,QAAQ;AAAA,EAClB,OAAO,EAAE,KAAK,CAAC,UAAU,UAAU,SAAS,SAAS,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA,EAKtD,MAAM,EAAE,QAAQ,EAAE,QAAQ,KAAK;AAAA,EAC/B,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS;AACrC,CAAC;AAGM,IAAM,0BAA0B,EAAE,OAAO;AAAA,EAC9C,cAAc,EAAE,QAAQ;AAAA;AAAA,EAExB,eAAe,EAAE,QAAQ;AAAA;AAAA,EAEzB,YAAY,EAAE,QAAQ,EAAE,QAAQ,KAAK;AAAA,EACrC,OAAO,EAAE,MAAM,mBAAmB;AACpC,CAAC;AAYD,eAAsB,eACpB,QACA,UAAiC,CAAC,GACN;AAC5B,QAAM,EAAE,cAAc,GAAG,aAAa,IAAI;AAE1C,QAAM,UAAkC,EAAE,GAAI,QAAQ,WAAW,CAAC,EAAG;AACrE,MAAI,aAAc,SAAQ,SAAS;AAEnC,QAAM,OAAO,MAAM,SAAkB,QAAQ,mBAAmB;AAAA,IAC9D,aAAa;AAAA,IACb,OAAO;AAAA,IACP,GAAG;AAAA,IACH;AAAA,EACF,CAAC;AAED,SAAO,wBAAwB,MAAM,IAAI;AAC3C;","names":[]}
@@ -1680,6 +1680,11 @@ var RpgItemStatusSchema = zod.z.object({
1680
1680
  category: zod.z.string(),
1681
1681
  earned: zod.z.boolean(),
1682
1682
  state: zod.z.enum(["locked", "earned", "given", "claimed"]),
1683
+ /**
1684
+ * True when the viewer's rpg.actor character wears this (claimed) item.
1685
+ * Defaults to false for an older API that does not send it.
1686
+ */
1687
+ worn: zod.z.boolean().default(false),
1683
1688
  iconUrl: zod.z.string().url().nullable()
1684
1689
  });
1685
1690
  var RpgStatusResponseSchema = zod.z.object({