@domino-sdk/relay 1.0.0-next.2 → 1.0.0-next.34

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.
Files changed (61) hide show
  1. package/README.md +13 -1
  2. package/build.mjs +18 -1
  3. package/dist/activity-B8k9Sa_a.d.ts +9112 -0
  4. package/dist/authoring.d.ts +1355 -182
  5. package/dist/authoring.js +658 -225
  6. package/dist/automatic-outcomes-B1xrETxm.d.ts +758 -0
  7. package/dist/avatar.d.ts +29 -0
  8. package/dist/avatar.js +21 -0
  9. package/dist/browser-J7tUpXxy.d.ts +4154 -0
  10. package/dist/browser.d.ts +11 -4580
  11. package/dist/browser.js +8 -6
  12. package/dist/capability-error-DNMwKmlL.d.ts +458 -0
  13. package/dist/chunk-36HTX2BM.js +1223 -0
  14. package/dist/chunk-6QJ3LADK.js +112 -0
  15. package/dist/chunk-BGGKNIRP.js +171 -0
  16. package/dist/chunk-EYH5RDIE.js +496 -0
  17. package/dist/chunk-GQKYAQM6.js +84 -0
  18. package/dist/chunk-GUP7YRR4.js +42 -0
  19. package/dist/chunk-GZ6FJAXN.js +1659 -0
  20. package/dist/chunk-JON5SESL.js +2986 -0
  21. package/dist/chunk-MC6V6VMG.js +49 -0
  22. package/dist/chunk-NPGENI7K.js +37 -0
  23. package/dist/chunk-V7UKZLHA.js +35 -0
  24. package/dist/chunk-VFHHLN6A.js +284 -0
  25. package/dist/chunk-WJSSJ7AF.js +151 -0
  26. package/dist/{chunk-VH4OQ5VX.js → chunk-XFMSUPNS.js} +26 -5
  27. package/dist/{chunk-FDWRBMB3.js → chunk-ZVIRG24J.js} +150 -33
  28. package/dist/client-XiuFnug_.d.ts +4262 -0
  29. package/dist/groups-Ck-OxzjD.d.ts +2449 -0
  30. package/dist/identity-integration-GxAHdKR2.d.ts +58 -0
  31. package/dist/images-Dv-P5VBw.d.ts +234 -0
  32. package/dist/index.d.ts +15 -13115
  33. package/dist/index.js +30 -689
  34. package/dist/internal.d.ts +159 -0
  35. package/dist/internal.js +79 -0
  36. package/dist/offers-Cy-e4o5x.d.ts +431 -0
  37. package/dist/outcomes-kVB-Juzs.d.ts +4902 -0
  38. package/dist/pages-BBYD21IE.d.ts +359 -0
  39. package/dist/participant-rewards-3duLb8YJ.d.ts +668 -0
  40. package/dist/portal-proxy.js +26 -9
  41. package/dist/profiles-D2aFcOxu.d.ts +297 -0
  42. package/dist/react/index.d.ts +3378 -3318
  43. package/dist/react/index.js +1635 -783
  44. package/dist/request-error-DWduJCGV.d.ts +62 -0
  45. package/dist/schema-DfJzH2ci.d.ts +5644 -0
  46. package/dist/schema.d.ts +15 -3388
  47. package/dist/schema.js +790 -3
  48. package/dist/server/index.d.ts +81498 -0
  49. package/dist/server/index.js +2520 -0
  50. package/dist/streaks-CWyq8Px5.d.ts +71 -0
  51. package/dist/submission-input-BZkm6ohU.d.ts +290 -0
  52. package/dist/units-CwgsPB_r.d.ts +9 -0
  53. package/dist/vite.d.ts +1 -1
  54. package/dist/vite.js +1 -0
  55. package/dist/wallet-YssWxGg8.d.ts +228 -0
  56. package/package.json +24 -5
  57. package/dist/chunk-4KNTMNXA.js +0 -1847
  58. package/dist/chunk-B76BAJ25.js +0 -624
  59. package/dist/chunk-NKGJEYZM.js +0 -1833
  60. package/dist/chunk-ONDBQSMU.js +0 -373
  61. package/dist/submission-input-JDwq3EVK.d.ts +0 -4986
package/dist/schema.d.ts CHANGED
@@ -1,3392 +1,19 @@
1
+ export { i as AccountRole, j as AppIdentityKind, A as Attempt, a as AttemptStatus, B as Bound, C as Condition, k as ContentBody, l as ContentMetricName, m as ContentPerformanceSnapshot, D as DataLeaves, n as Decision, E as Entitlement, o as EntitlementCorrection, p as EntitlementState, b as EvaluatorProgress, I as IdentityKind, K as KnownAttemptStatus, q as KnownIdentityKind, c as KnownTrackerSkipCode, r as MemberIdentity, s as MemberPage, M as MemberProgress, O as OpenIdentityKind, P as PhotoResult, t as PickupAvailability, u as PublishedRelease, v as QuestAvailability, Q as QuestBudgetView, w as QuestDescription, d as QuestPresentation, e as QuestProfile, x as QuestSettingsInput, f as QuizEvidence, y as ReleaseInput, z as ReviewPage, R as Reward, F as RoleOf, G as Snapshot, H as SourceRoles, S as SubmissionEvidence, g as SubmitInput, J as TextResult, L as TextReviewInput, N as TieredRewardDefinition, T as TieredRewardReference, U as Tracker, V as TrackerAccount, W as TrackerAttribution, X as TrackerBound, Y as TrackerCondition, Z as TrackerContent, _ as TrackerContentQuery, $ as TrackerData, a0 as TrackerDataIssue, a1 as TrackerDataSchema, a2 as TrackerDefinition, a3 as TrackerDefinitionResponse, a4 as TrackerOutcome, a5 as TrackerOutcomeQuery, a6 as TrackerPage, a7 as TrackerPreview, a8 as TrackerPreviewInput, a9 as TrackerQuery, aa as TrackerReadQuery, ab as TrackerReader, ac as TrackerRecord, h as TrackerSkipCode, ad as TrackerSource, ae as TrackerSourceKind, af as TrackerSourceResponse, ag as TrackerStatus, ah as TrackerTriggerContext, ai as TrackerTriggerMode, aj as TrackerTriggerPolicy, ak as TrackerWhere, al as TriggerEnrollment, am as TriggerHistorical, an as TriggerSince, ao as TypedTrackerRecord, ap as Where, aq as WhereSetting, ar as WithAccountRoles, as as WithContent, at as WithRecordData, au as XContentMetric, av as XTweet, aw as accountRoleSchema, ax as appIdentityKindSchema, ay as artifactSchema, az as attemptSchema, aA as batchReleaseSchema, aB as beginHandoverSchema, aC as beneficiaryRole, aD as completionRecordSchema, aE as configurePickupSchema, aF as confirmHandoverSchema, aG as contentMetricNameSchema, aH as contentPerformancePageSchema, aI as contentPerformanceQuerySchema, aJ as contentPerformanceSnapshotSchema, aK as createStockItemSchema, aL as customContentSchema, aM as customSourceSchema, aN as decisionSchema, aO as defaultTriggerMode, aP as deferPolicy, aQ as entitlementCorrectionSchema, aR as entitlementRecoverySchema, aS as entitlementSchema, aT as entitlementStateSchema, aU as errorSchema, aV as evaluatorProgressSchema, aW as evaluatorProtocol, aX as evaluatorProtocolSchema, aY as eventSchema, aZ as evidenceSchema, a_ as identityKindSchema, a$ as integrationRewardSchema, b0 as isAppIdentityKind, b1 as isKnownTrackerSource, b2 as knownIdentityKinds, b3 as mediaUrlSchema, b4 as memberIdentitySchema, b5 as memberListSchema, b6 as memberPageSchema, b7 as memberProgressSchema, b8 as openIdentityKindSchema, b9 as photoResultSchema, ba as pickupAllocationSchema, bb as pickupAvailabilitySchema, bc as pickupCatalogSchema, bd as pickupPolicySchema, be as pickupSelectionSchema, bf as pointsRewardSchema, bg as publishedReleaseSchema, bh as publishedTrackerSchema, bi as questAvailabilitySchema, bj as questBudgetViewSchema, bk as questDescriptionSchema, bl as questPresentationSchema, bm as questProfileSchema, bn as questSettingsInputSchema, bo as quizAnswersSchema, bp as quizEvidenceSchema, bq as releaseSchema, br as reservationSchema, bs as reviewItemSchema, bt as reviewListSchema, bu as reviewModeSchema, bv as reviewPageSchema, bw as rewardBundleSchema, bx as rewardKey, by as rewardSchema, bz as snapshotSchema, bA as sourceContent, bB as sourceIdentities, bC as staffDecisionSchema, bD as stockItemSchema, bE as stockSchema, bF as storedQuestDescriptionSchema, bG as storedReviewModeSchema, bH as submissionEvidenceSchema, bI as submitSchema, bJ as templateSchema, bK as textResultSchema, bL as textReviewInputSchema, bM as tierRewardSchema, bN as tieredRewardDefinitionSchema, bO as tieredRewardReferenceSchema, bP as trackerAccountSchema, bQ as trackerArtifactSchema, bR as trackerAttributionSchema, bS as trackerBoundSchema, bT as trackerConditionSchema, bU as trackerContentQuerySchema, bV as trackerContentReadSchema, bW as trackerContentSchema, bX as trackerContentStageSchema, bY as trackerControlSchema, bZ as trackerDataMaxBranches, b_ as trackerDataMaxEntries, b$ as trackerDataSchemaSchema, c0 as trackerDefinitionResponseSchema, c1 as trackerDefinitionSchema, c2 as trackerEvidenceSchema, c3 as trackerIngestResultSchema, c4 as trackerIngestSchema, c5 as trackerOutcomePageSchema, c6 as trackerOutcomeQuerySchema, c7 as trackerOutcomeRetrySchema, c8 as trackerOutcomeSchema, c9 as trackerPageSchema, ca as trackerPreviewInputSchema, cb as trackerPreviewLimits, cc as trackerPreviewSchema, cd as trackerQuerySchema, ce as trackerRecordAccountSchema, cf as trackerRecordInputSchema, cg as trackerRecordSchema, ch as trackerSkipCodes, ci as trackerSourceKinds, cj as trackerSourceResponseSchema, ck as trackerSourceSchema, cl as trackerStatusSchema, cm as trackerSummarySchema, cn as trackerTriggerContextSchema, co as trackerTriggerModeSchema, cp as trackerTriggerPolicySchema, cq as trackerTriggerRecordSchema, cr as trackerWhereSchema, cs as triggerAdmission, ct as triggerEnrollmentSchema, cu as triggerHistoricalSchema, cv as triggerMode, cw as triggerSchema, cx as triggerSinceSchema, cy as whereConditions, cz as whereSettings, cA as xAccountRoles, cB as xContentBodySchema, cC as xContentMetrics, cD as xSearchSourceSchema, cE as xTweetSchema } from './schema-DfJzH2ci.js';
2
+ export { A as AccountConnection, a as AuthProvider, D as DiscordMember, d as DiscordMessage, e as DiscordMessageData, f as DiscordMessageTextData, g as DiscordReactionData, h as DiscordReader, M as MissingPrerequisite, P as Prerequisite, T as TextEvidence, b as TextOptions, U as UrlEvidence, c as UrlOptions, V as ValueEvidence, i as accountConnectionSchema, j as authProviderSchema, k as balanceAtLeast, l as balancePrerequisiteSchema, m as completed, n as completionPrerequisiteSchema, o as discordMemberInputSchema, p as discordMemberSchema, q as discordMessageDataSchema, r as discordMessageInputSchema, s as discordMessageSchema, t as discordMessageTextDataSchema, u as discordMessagesSourceSchema, v as discordReactionDataSchema, w as discordReactionsSourceSchema, x as discordResourceSourceSchema, y as discordRewardSchema, z as groupPrerequisiteSchema, B as inGroup, C as missingPrerequisiteSchema, E as prerequisiteSchema, F as textEvidenceSchema, G as textOptionsSchema, H as urlEvidenceSchema, I as urlOptionsSchema, J as validateSubmissionValue, K as valueEvidenceSchema, L as xPostId } from './submission-input-BZkm6ohU.js';
3
+ export { E as ExchangeInput, M as MemberSummary, P as Page, a as PageQuery, b as ParticipantActivity, c as ParticipantPrincipal, d as ParticipantSession, R as RelayEvent, S as Session, e as authScopeSchema, f as exchangeResultSchema, g as exchangeSchema, k as knownRelayEventSchema, m as memberSummarySchema, p as pageCursorSchema, h as pageQuerySchema, i as participantActivityQuerySchema, j as participantActivitySchema, l as participantPrincipalSchema, n as participantSessionSchema, o as principalSchema, r as relayEventSchema, s as sessionMember, q as sessionSchema } from './pages-BBYD21IE.js';
4
+ export { C as CalendarPeriod, D as DeploymentPreview, a as DeploymentRecord, P as ProjectCalendar, b as ProjectCalendarInput, c as activityTypeSchema, d as activityTypes, e as calendarPeriodSchema, f as canonicalTimeZone, g as deploymentPreviewSchema, h as deploymentRecordSchema, i as deploymentResultSchema, j as deploymentSourceSchema, p as projectCalendarDeclarationSchema, k as projectCalendarInputSchema, l as projectCalendarSchema, m as projectCatalogArtifactSchema, n as projectDeploymentSchema, o as promoteDeploymentSchema, q as publishDeploymentSchema, r as refuseStreakTimeZone, s as refuseWindowTimeZone, t as rejectDeploymentSchema, u as rollbackDeploymentSchema, v as submitDeploymentSchema, w as timeZoneNameSchema, x as timeZoneSchema } from './activity-B8k9Sa_a.js';
5
+ export { A as AvailabilityWindow, C as CampaignDefinition, a as CampaignEnrollment, b as CampaignEnrollmentInput, c as CampaignView, d as CampaignWithdrawalInput, E as EngagementBudget, q as EngagementDefinition, K as KnownPointEntryKind, L as LeaderboardDefinition, e as LeaderboardPage, f as LeaderboardPlacement, g as LeaderboardQuery, r as LeaderboardSettlement, s as LeaderboardSettlementPolicy, t as LeaderboardSettlementSummary, u as ManagedPointLedger, M as MemberCampaignEnrollmentInput, h as MemberCampaignWithdrawalInput, P as PointBalance, i as PointBalances, j as PointEntry, k as PointEntryKind, l as PointHistoryPage, m as PointHistoryQuery, v as PointLedger, n as PointLedgerReference, o as ProjectGroup, p as ProjectGroupReference, R as ReferralDefinition, w as availabilityWindowSchema, x as campaignDefinitionSchema, y as campaignEnrollmentInputSchema, z as campaignEnrollmentSchema, B as campaignViewSchema, D as campaignWithdrawalInputSchema, F as createPointLedgerSchema, G as defineCampaign, H as defineGroup, I as engagementArtifactSchema, J as engagementBoundaryPageSchema, N as engagementBudgetSchema, O as engagementChangePreviewInputSchema, Q as engagementChangePreviewSchema, S as engagementChangeSchema, T as engagementDefinitionSchema, U as engagementDeploymentEntrySchema, V as engagementPageQuerySchema, W as engagementPageSchema, X as engagementPublishSchema, Y as engagementRuleSchema, Z as engagementScoreInputSchema, _ as engagementScoreSchema, $ as engagementSettlementSchema, a0 as engagementVersionPageSchema, a1 as engagementVersionQuerySchema, a2 as leaderboardArtifactSchema, a3 as leaderboardAuthoringSchema, a4 as leaderboardDefinitionSchema, a5 as leaderboardExclusionSchema, a6 as leaderboardGroupSchema, a7 as leaderboardPageSchema, a8 as leaderboardPlacementSchema, a9 as leaderboardPreviewSchema, aa as leaderboardPrizeRewardSchema, ab as leaderboardPrizeSchema, ac as leaderboardQuerySchema, ad as leaderboardRowSchema, ae as leaderboardSettlementApprovalSchema, af as leaderboardSettlementPolicySchema, ag as leaderboardSettlementRowSchema, ah as leaderboardSettlementSchema, ai as leaderboardSettlementStatusSchema, aj as leaderboardSettlementSummarySchema, ak as leaderboardWindowSchema, al as managedPointLedgerSchema, am as memberCampaignEnrollmentInputSchema, an as memberCampaignWithdrawalInputSchema, ao as pointBalanceSchema, ap as pointBalancesSchema, aq as pointEntrySchema, ar as pointHistoryPageSchema, as as pointHistoryQuerySchema, at as pointLedgerArtifactSchema, au as pointLedgerDeclarationSchema, av as pointLedgerPropertiesSchema, aw as pointLedgerReferenceSchema, ax as pointLedgerSchema, ay as pointsAccountSchema, az as pointsEntrySchema, aA as pointsMutationSchema, aB as pointsResultSchema, aC as projectGroupKey, aD as projectGroupSchema, aE as publishedLeaderboardSchema, aF as publishedReferralSchema, aG as referralAcceptSchema, aH as referralAccountSchema, aI as referralArtifactSchema, aJ as referralAuthoringSchema, aK as referralControlSchema, aL as referralDefinitionSchema, aM as referralHistorySchema, aN as referralManagementSchema, aO as referralRelationshipSchema, aP as referralSummarySchema } from './groups-Ck-OxzjD.js';
6
+ export { C as ContentMetric, j as ContentPerformancePolicy, M as MemberEnrollmentInput, k as QuestCatalog, Q as QuestClaimInput, l as QuestDraft, a as QuestEnrollment, b as QuestEnrollmentInput, m as QuestInstance, c as QuestInteraction, d as QuestOutcome, e as QuestOutcomePage, f as QuestOutcomeQuery, g as QuestOutcomeState, h as QuestRewardView, i as QuestView, R as RewardDelivery, n as RewardDeliveryAction, o as allocateQuestSchema, p as allocatedQuestSchema, q as catalogDeploymentPreviewSchema, r as catalogDeploymentSchema, s as collectionSlotDeclarationSchema, t as collectionSlotSchema, u as collectionViewSchema, v as contentMetricSchema, w as contentMetricsSchema, x as contentPerformancePolicySchema, y as contentQualificationDecisionSchema, z as contentQualificationPageSchema, A as contentQualificationQuerySchema, B as contentQualificationSchema, D as interactionSchema, E as knownRewardDeliverySchema, F as memberEnrollmentInputSchema, G as publishQuestDraftSchema, H as questCatalogSchema, I as questClaimInputSchema, J as questCollectionSchema, K as questDraftChangesSchema, L as questDraftSchema, N as questEnrollmentInputSchema, O as questEnrollmentSchema, P as questExperienceSchema, S as questInstanceSchema, T as questInteraction, U as questOutcomePageSchema, V as questOutcomeQuerySchema, W as questOutcomeSchema, X as questPublicationPreviewSchema, Y as questRewardViewSchema, Z as questTypeVersionSchema, _ as questViewSchema, $ as rewardDeliveriesSchema, a0 as rewardDeliverySchema, a1 as roleReconciliationSchema, a2 as saveQuestDraftSchema } from './outcomes-kVB-Juzs.js';
7
+ export { A as AutomaticCatchUpPreview, a as AutomaticEvent, b as AutomaticOutcome, C as CollectionPass, c as CounterAchievement, d as CounterPolicy, e as CounterProgress, f as automaticCatchUpConfirmSchema, g as automaticCatchUpInputSchema, h as automaticCatchUpPreviewSchema, i as automaticCatchUpResultSchema, j as automaticEventSchema, k as automaticOutcomePageSchema, l as automaticOutcomeQuerySchema, m as automaticOutcomeSchema, n as automaticSchedulingPageSchema, o as automaticSchedulingQuerySchema, p as automaticSchedulingRetrySchema, q as automaticSchedulingSchema, r as collectionBeginSchema, s as collectionCodeSchema, t as collectionPassSchema, u as collectionPreviewSchema, v as collectionResolveSchema, w as counterAchievementSchema, x as counterContributionSchema, y as counterGoalSchema, z as counterHistoryQuerySchema, B as counterHistorySchema, D as counterModerationResultSchema, E as counterModerationSchema, F as counterPolicySchema, G as counterProgressSchema, H as counterWindowSchema } from './automatic-outcomes-B1xrETxm.js';
8
+ export { B as Budget, C as CapabilityErrorCode, a as CapabilityFailure, E as EvaluatorIntegrationProvider, I as IntegerSettings, b as IntegrationModule, c as IntegrationProvider, K as KnownCapabilityErrorCode, P as ProjectIntegration, R as ResourceOption, d as ResourceSource, S as Setting, e as SettingField, f as SettingsValues, X as XConnection, g as XPost, h as XProfile, i as XReader, j as budgetSchema, k as capabilityErrorCodes, l as capabilityFailureSchema, m as compatibleSettingKinds, n as completionKeySchema, o as completionPolicySchema, p as discordServerSchema, q as evaluatorIntegrationProviderSchema, r as integrationProviderSchema, s as missingResourceSettings, t as parseSettings, u as projectIntegrationSchema, v as resourceOptionsSchema, w as resourceRequestSchema, x as resourceSourceSchema, y as settingFieldSchema, z as settingsFieldsSchema, A as settingsValuesSchema, D as xConnectionSchema, F as xIdSchema, G as xPostSchema, H as xProfileSchema, J as xRequestSchema } from './capability-error-DNMwKmlL.js';
9
+ export { E as Extracted, I as ImageAssetArtifact, a as ImageComparison, b as ImageExtraction, c as ImageFields, d as ImageInspection, e as ImageReader, f as ImageReference, g as ImageRequest, h as ImageSightings, P as PublishedImage, i as imageAssetArtifactSchema, j as imageComparisonSchema, k as imageExtractionSchema, l as imageFieldSchema, m as imageFieldsSchema, n as imageInspectionSchema, o as imageReferenceSchema, p as imageRequestSchema, q as imageSightingsSchema, r as imageUploadRequestSchema, s as imageUploadsSchema, t as publishedImageSchema } from './images-Dv-P5VBw.js';
10
+ export { O as Offer, d as OfferAuthoring, a as OfferDefinition, b as OfferPrice, R as RedeemOfferInput, c as Redemption, e as defineOffer, o as offerArtifactSchema, f as offerAuthoringSchema, g as offerAvailabilitySchema, h as offerControlSchema, i as offerDefinitionSchema, j as offerLimitSchema, k as offerPriceSchema, l as offerSchema, r as redeemOfferSchema, m as redemptionCancellationSchema, n as redemptionSchema } from './offers-Cy-e4o5x.js';
11
+ export { h as AVATAR_UPLOAD_LIMIT, A as AvatarProvider, M as ManagedProfile, O as OwnProfile, P as ProfileAvatar, a as ProfileCompletion, b as ProfileCompletionPage, c as ProfileCompletionQuery, i as ProfileDefaultProvider, j as ProfileDefaults, k as ProfileModeration, d as ProfileReferral, l as ProfileSettings, m as ProfileSettingsInput, e as ProfileSummary, f as ProfileUpdate, g as ProfileVisibility, n as avatarProviderSchema, o as avatarSeedSchema, p as avatarUploadTypes, q as displayNameSchema, r as managedProfileSchema, s as ownProfileSchema, t as profileAvatarSchema, u as profileCompletionPageSchema, v as profileCompletionQuerySchema, w as profileCompletionSchema, x as profileDefaultProviderSchema, y as profileDefaultsSchema, z as profileModerationSchema, B as profileReferralSchema, C as profileSettingsInputSchema, D as profileSettingsSchema, E as profileSummarySchema, F as profileUpdateSchema, G as profileVisibilitySchema } from './profiles-D2aFcOxu.js';
12
+ export { Q as QuizContent, a as StreakPolicy, S as StreakProgress, q as quizChoiceSchema, b as quizContentSchema, c as quizQuestionSchema, d as quizQuestionsSchema, s as streakPolicySchema, e as streakProgressSchema } from './streaks-CWyq8Px5.js';
13
+ export { P as ParticipantDelivery, p as participantDeliveriesSchema, a as participantDeliverySchema, b as participantEntitlementsSchema } from './participant-rewards-3duLb8YJ.js';
14
+ export { C as CosmosChain, h as CosmosDenom, a as CosmosNetwork, E as EvmChainId, L as LinkedWallet, i as WALLETS_PER_CHAIN, W as WalletAddressInput, j as WalletBalance, k as WalletBalanceQuery, b as WalletChain, c as WalletMessageChallenge, l as WalletReader, d as WalletSignInNetwork, e as WalletSignature, f as WalletSigner, g as WalletUnlinkInput, m as caip10, n as cosmosAddressSchema, o as cosmosChain, p as cosmosDenomSchema, q as cosmosNetworkSchema, r as evmAddressSchema, s as evmChainIdSchema, t as isEvmChainId, u as linkedWalletSchema, v as solanaAddressSchema, w as solanaMainnet, x as walletAddressInput, y as walletAddressInputSchema, z as walletBalanceSchema, A as walletChainSchema, B as walletMessageChallengeSchema, D as walletSignInFamilies, F as walletSignInNetwork, G as walletSignInNetworkSchema, H as walletSignInNetworksSchema, I as walletSignatureSchema, J as walletUnlinkInputSchema } from './wallet-YssWxGg8.js';
1
15
  import { z } from 'zod';
2
16
 
3
17
  declare const identifier: z.ZodString;
4
18
 
5
- declare const pointsRewardSchema: z.ZodObject<{
6
- kind: z.ZodDefault<z.ZodLiteral<"points">>;
7
- balance: z.ZodString;
8
- amount: z.ZodNumber;
9
- }, z.core.$strict>;
10
- declare const tieredRewardDefinitionSchema: z.ZodObject<{
11
- id: z.ZodString;
12
- title: z.ZodString;
13
- tiers: z.ZodArray<z.ZodObject<{
14
- id: z.ZodString;
15
- title: z.ZodString;
16
- }, z.core.$strict>>;
17
- inventory: z.ZodObject<{
18
- kind: z.ZodLiteral<"untracked">;
19
- }, z.core.$strict>;
20
- fulfillment: z.ZodObject<{
21
- kind: z.ZodLiteral<"staff-handover">;
22
- }, z.core.$strict>;
23
- }, z.core.$strict>;
24
- type TieredRewardDefinition = z.infer<typeof tieredRewardDefinitionSchema>;
25
- /**
26
- * A tiered reward's stored ID with its authoring key, null for rewards created
27
- * without one. Reads name tiered rewards by ID (`reward.id`); match them against
28
- * `key` rather than comparing an ID with the key given to defineTieredReward.
29
- */
30
- declare const tieredRewardReferenceSchema: z.ZodObject<{
31
- id: z.ZodString;
32
- key: z.ZodNullable<z.ZodString>;
33
- }, z.core.$strip>;
34
- type TieredRewardReference = z.infer<typeof tieredRewardReferenceSchema>;
35
- declare const tierRewardSchema: z.ZodObject<{
36
- kind: z.ZodLiteral<"tier">;
37
- reward: z.ZodObject<{
38
- id: z.ZodString;
39
- title: z.ZodString;
40
- tiers: z.ZodArray<z.ZodObject<{
41
- id: z.ZodString;
42
- title: z.ZodString;
43
- }, z.core.$strict>>;
44
- inventory: z.ZodObject<{
45
- kind: z.ZodLiteral<"untracked">;
46
- }, z.core.$strict>;
47
- fulfillment: z.ZodObject<{
48
- kind: z.ZodLiteral<"staff-handover">;
49
- }, z.core.$strict>;
50
- }, z.core.$strict>;
51
- tier: z.ZodString;
52
- }, z.core.$strict>;
53
- declare const integrationRewardSchema: z.ZodObject<{
54
- kind: z.ZodLiteral<"integration">;
55
- provider: z.ZodLiteral<"discord">;
56
- action: z.ZodLiteral<"grant-role">;
57
- roleId: z.ZodString;
58
- }, z.core.$strict>;
59
- declare const rewardSchema: z.ZodUnion<readonly [z.ZodObject<{
60
- kind: z.ZodDefault<z.ZodLiteral<"points">>;
61
- balance: z.ZodString;
62
- amount: z.ZodNumber;
63
- }, z.core.$strict>, z.ZodObject<{
64
- kind: z.ZodLiteral<"tier">;
65
- reward: z.ZodObject<{
66
- id: z.ZodString;
67
- title: z.ZodString;
68
- tiers: z.ZodArray<z.ZodObject<{
69
- id: z.ZodString;
70
- title: z.ZodString;
71
- }, z.core.$strict>>;
72
- inventory: z.ZodObject<{
73
- kind: z.ZodLiteral<"untracked">;
74
- }, z.core.$strict>;
75
- fulfillment: z.ZodObject<{
76
- kind: z.ZodLiteral<"staff-handover">;
77
- }, z.core.$strict>;
78
- }, z.core.$strict>;
79
- tier: z.ZodString;
80
- }, z.core.$strict>, z.ZodObject<{
81
- kind: z.ZodLiteral<"integration">;
82
- provider: z.ZodLiteral<"discord">;
83
- action: z.ZodLiteral<"grant-role">;
84
- roleId: z.ZodString;
85
- }, z.core.$strict>]>;
86
- type Reward = z.infer<typeof rewardSchema>;
87
- declare function rewardKey(reward: Reward): string;
88
- declare const triggerSchema: z.ZodUnion<readonly [z.ZodObject<{
89
- kind: z.ZodLiteral<"manual">;
90
- input: z.ZodLiteral<"text">;
91
- constraints: z.ZodObject<{
92
- required: z.ZodDefault<z.ZodBoolean>;
93
- minLength: z.ZodDefault<z.ZodNumber>;
94
- maxLength: z.ZodDefault<z.ZodNumber>;
95
- }, z.core.$strict>;
96
- actor: z.ZodOptional<z.ZodEnum<{
97
- staff: "staff";
98
- member: "member";
99
- }>>;
100
- }, z.core.$strict>, z.ZodObject<{
101
- kind: z.ZodLiteral<"manual">;
102
- input: z.ZodLiteral<"url">;
103
- constraints: z.ZodObject<{
104
- required: z.ZodDefault<z.ZodBoolean>;
105
- allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
106
- }, z.core.$strict>;
107
- actor: z.ZodOptional<z.ZodEnum<{
108
- staff: "staff";
109
- member: "member";
110
- }>>;
111
- }, z.core.$strict>, z.ZodObject<{
112
- kind: z.ZodLiteral<"manual">;
113
- input: z.ZodEnum<{
114
- photo: "photo";
115
- quiz: "quiz";
116
- none: "none";
117
- }>;
118
- actor: z.ZodOptional<z.ZodEnum<{
119
- staff: "staff";
120
- member: "member";
121
- }>>;
122
- }, z.core.$strict>, z.ZodObject<{
123
- kind: z.ZodLiteral<"automatic">;
124
- observation: z.ZodOptional<z.ZodObject<{
125
- source: z.ZodString;
126
- type: z.ZodString;
127
- }, z.core.$strict>>;
128
- content: z.ZodOptional<z.ZodObject<{
129
- tracker: z.ZodString;
130
- window: z.ZodObject<{
131
- start: z.ZodNumber;
132
- end: z.ZodOptional<z.ZodNumber>;
133
- }, z.core.$strict>;
134
- enrollment: z.ZodDefault<z.ZodEnum<{
135
- required: "required";
136
- none: "none";
137
- }>>;
138
- posts: z.ZodDefault<z.ZodEnum<{
139
- "after-enrollment": "after-enrollment";
140
- "since-start": "since-start";
141
- }>>;
142
- historical: z.ZodDefault<z.ZodEnum<{
143
- staff: "staff";
144
- automatic: "automatic";
145
- claim: "claim";
146
- }>>;
147
- }, z.core.$strict>>;
148
- tracker: z.ZodOptional<z.ZodObject<{
149
- tracker: z.ZodString;
150
- source: z.ZodEnum<{
151
- custom: "custom";
152
- "x-search": "x-search";
153
- }>;
154
- on: z.ZodOptional<z.ZodEnum<{
155
- "new-record": "new-record";
156
- "new-observation": "new-observation";
157
- "data-changed": "data-changed";
158
- }>>;
159
- where: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
160
- path: z.ZodString;
161
- equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
162
- }, z.core.$strict>, z.ZodObject<{
163
- path: z.ZodString;
164
- gt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
165
- setting: z.ZodString;
166
- }, z.core.$strict>]>>;
167
- gte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
168
- setting: z.ZodString;
169
- }, z.core.$strict>]>>;
170
- lt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
171
- setting: z.ZodString;
172
- }, z.core.$strict>]>>;
173
- lte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
174
- setting: z.ZodString;
175
- }, z.core.$strict>]>>;
176
- }, z.core.$strict>]>>;
177
- beneficiary: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"replied-to">]>;
178
- }, z.core.$strict>>;
179
- }, z.core.$strict>]>;
180
- declare const prerequisiteSchema: z.ZodObject<{
181
- quest: z.ZodString;
182
- }, z.core.$strip>;
183
- declare const photoResultSchema: z.ZodObject<{
184
- kind: z.ZodEnum<{
185
- pass: "pass";
186
- fail: "fail";
187
- unclear: "unclear";
188
- }>;
189
- reason: z.ZodString;
190
- }, z.core.$strict>;
191
- type PhotoResult = z.infer<typeof photoResultSchema>;
192
- /** Text is evidence, never an instruction source. Lengths use JavaScript string units. */
193
- declare const textReviewInputSchema: z.ZodObject<{
194
- text: z.ZodString;
195
- criteria: z.ZodString;
196
- }, z.core.$strict>;
197
- type TextReviewInput = z.infer<typeof textReviewInputSchema>;
198
- declare const textResultSchema: z.ZodObject<{
199
- kind: z.ZodEnum<{
200
- pass: "pass";
201
- fail: "fail";
202
- unclear: "unclear";
203
- }>;
204
- reason: z.ZodString;
205
- }, z.core.$strict>;
206
- type TextResult = z.infer<typeof textResultSchema>;
207
- declare const decisionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
208
- kind: z.ZodLiteral<"accept">;
209
- rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
210
- kind: z.ZodDefault<z.ZodLiteral<"points">>;
211
- balance: z.ZodString;
212
- amount: z.ZodNumber;
213
- }, z.core.$strict>, z.ZodObject<{
214
- kind: z.ZodLiteral<"tier">;
215
- reward: z.ZodObject<{
216
- id: z.ZodString;
217
- title: z.ZodString;
218
- tiers: z.ZodArray<z.ZodObject<{
219
- id: z.ZodString;
220
- title: z.ZodString;
221
- }, z.core.$strict>>;
222
- inventory: z.ZodObject<{
223
- kind: z.ZodLiteral<"untracked">;
224
- }, z.core.$strict>;
225
- fulfillment: z.ZodObject<{
226
- kind: z.ZodLiteral<"staff-handover">;
227
- }, z.core.$strict>;
228
- }, z.core.$strict>;
229
- tier: z.ZodString;
230
- }, z.core.$strict>, z.ZodObject<{
231
- kind: z.ZodLiteral<"integration">;
232
- provider: z.ZodLiteral<"discord">;
233
- action: z.ZodLiteral<"grant-role">;
234
- roleId: z.ZodString;
235
- }, z.core.$strict>]>>;
236
- completionKey: z.ZodOptional<z.ZodString>;
237
- }, z.core.$strict>, z.ZodObject<{
238
- kind: z.ZodLiteral<"reject">;
239
- reason: z.ZodString;
240
- }, z.core.$strict>, z.ZodObject<{
241
- kind: z.ZodLiteral<"review">;
242
- reason: z.ZodString;
243
- rewards: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
244
- kind: z.ZodDefault<z.ZodLiteral<"points">>;
245
- balance: z.ZodString;
246
- amount: z.ZodNumber;
247
- }, z.core.$strict>, z.ZodObject<{
248
- kind: z.ZodLiteral<"tier">;
249
- reward: z.ZodObject<{
250
- id: z.ZodString;
251
- title: z.ZodString;
252
- tiers: z.ZodArray<z.ZodObject<{
253
- id: z.ZodString;
254
- title: z.ZodString;
255
- }, z.core.$strict>>;
256
- inventory: z.ZodObject<{
257
- kind: z.ZodLiteral<"untracked">;
258
- }, z.core.$strict>;
259
- fulfillment: z.ZodObject<{
260
- kind: z.ZodLiteral<"staff-handover">;
261
- }, z.core.$strict>;
262
- }, z.core.$strict>;
263
- tier: z.ZodString;
264
- }, z.core.$strict>, z.ZodObject<{
265
- kind: z.ZodLiteral<"integration">;
266
- provider: z.ZodLiteral<"discord">;
267
- action: z.ZodLiteral<"grant-role">;
268
- roleId: z.ZodString;
269
- }, z.core.$strict>]>>>;
270
- completionKey: z.ZodOptional<z.ZodString>;
271
- }, z.core.$strict>], "kind">;
272
- type Decision = z.infer<typeof decisionSchema>;
273
- declare const reviewModeSchema: z.ZodEnum<{
274
- "workers-ai": "workers-ai";
275
- }>;
276
- declare const storedReviewModeSchema: z.ZodEnum<{
277
- "workers-ai": "workers-ai";
278
- "fixture-pass": "fixture-pass";
279
- "fixture-fail": "fixture-fail";
280
- "fixture-unclear": "fixture-unclear";
281
- "fixture-error": "fixture-error";
282
- }>;
283
- declare const rewardBundleSchema: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
284
- kind: z.ZodDefault<z.ZodLiteral<"points">>;
285
- balance: z.ZodString;
286
- amount: z.ZodNumber;
287
- }, z.core.$strict>, z.ZodObject<{
288
- kind: z.ZodLiteral<"tier">;
289
- reward: z.ZodObject<{
290
- id: z.ZodString;
291
- title: z.ZodString;
292
- tiers: z.ZodArray<z.ZodObject<{
293
- id: z.ZodString;
294
- title: z.ZodString;
295
- }, z.core.$strict>>;
296
- inventory: z.ZodObject<{
297
- kind: z.ZodLiteral<"untracked">;
298
- }, z.core.$strict>;
299
- fulfillment: z.ZodObject<{
300
- kind: z.ZodLiteral<"staff-handover">;
301
- }, z.core.$strict>;
302
- }, z.core.$strict>;
303
- tier: z.ZodString;
304
- }, z.core.$strict>, z.ZodObject<{
305
- kind: z.ZodLiteral<"integration">;
306
- provider: z.ZodLiteral<"discord">;
307
- action: z.ZodLiteral<"grant-role">;
308
- roleId: z.ZodString;
309
- }, z.core.$strict>]>>;
310
- declare const mediaUrlSchema: z.ZodString;
311
- declare const questPresentationSchema: z.ZodObject<{
312
- quiz: z.ZodOptional<z.ZodArray<z.ZodObject<{
313
- id: z.ZodString;
314
- prompt: z.ZodString;
315
- choices: z.ZodArray<z.ZodObject<{
316
- id: z.ZodString;
317
- label: z.ZodString;
318
- }, z.core.$strict>>;
319
- }, z.core.$strict>>>;
320
- instructions: z.ZodOptional<z.ZodString>;
321
- video: z.ZodOptional<z.ZodObject<{
322
- url: z.ZodString;
323
- poster: z.ZodOptional<z.ZodString>;
324
- captions: z.ZodOptional<z.ZodObject<{
325
- url: z.ZodString;
326
- language: z.ZodString;
327
- label: z.ZodString;
328
- }, z.core.$strict>>;
329
- }, z.core.$strict>>;
330
- }, z.core.$strict>;
331
- type QuestPresentation = z.infer<typeof questPresentationSchema>;
332
- /**
333
- * How a quest appears on participant profiles. Hidden by default: a completion can reveal what a
334
- * member holds or did, so each quest opts in.
335
- */
336
- declare const questProfileSchema: z.ZodObject<{
337
- visible: z.ZodBoolean;
338
- }, z.core.$strict>;
339
- type QuestProfile = z.infer<typeof questProfileSchema>;
340
- declare const questDescriptionSchema: z.ZodObject<{
341
- quest: z.ZodString;
342
- runtimeVersion: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
343
- title: z.ZodString;
344
- presentation: z.ZodDefault<z.ZodObject<{
345
- quiz: z.ZodOptional<z.ZodArray<z.ZodObject<{
346
- id: z.ZodString;
347
- prompt: z.ZodString;
348
- choices: z.ZodArray<z.ZodObject<{
349
- id: z.ZodString;
350
- label: z.ZodString;
351
- }, z.core.$strict>>;
352
- }, z.core.$strict>>>;
353
- instructions: z.ZodOptional<z.ZodString>;
354
- video: z.ZodOptional<z.ZodObject<{
355
- url: z.ZodString;
356
- poster: z.ZodOptional<z.ZodString>;
357
- captions: z.ZodOptional<z.ZodObject<{
358
- url: z.ZodString;
359
- language: z.ZodString;
360
- label: z.ZodString;
361
- }, z.core.$strict>>;
362
- }, z.core.$strict>>;
363
- }, z.core.$strict>>;
364
- integrations: z.ZodDefault<z.ZodArray<z.ZodEnum<{
365
- discord: "discord";
366
- }>>>;
367
- fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
368
- kind: z.ZodLiteral<"point-ledger">;
369
- default: z.ZodString;
370
- label: z.ZodString;
371
- description: z.ZodOptional<z.ZodString>;
372
- }, z.core.$strict>, z.ZodObject<{
373
- kind: z.ZodLiteral<"datetime">;
374
- default: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<string, string>>;
375
- label: z.ZodString;
376
- description: z.ZodOptional<z.ZodString>;
377
- }, z.core.$strict>, z.ZodObject<{
378
- kind: z.ZodLiteral<"resource">;
379
- default: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
380
- source: z.ZodUnion<readonly [z.ZodObject<{
381
- provider: z.ZodLiteral<"domino">;
382
- resource: z.ZodLiteral<"point-ledger">;
383
- }, z.core.$strict>, z.ZodObject<{
384
- provider: z.ZodLiteral<"discord">;
385
- resource: z.ZodLiteral<"channel">;
386
- types: z.ZodArray<z.ZodEnum<{
387
- text: "text";
388
- announcement: "announcement";
389
- }>>;
390
- }, z.core.$strict>, z.ZodObject<{
391
- provider: z.ZodLiteral<"discord">;
392
- resource: z.ZodLiteral<"role">;
393
- assignable: z.ZodDefault<z.ZodBoolean>;
394
- }, z.core.$strict>]>;
395
- label: z.ZodString;
396
- description: z.ZodOptional<z.ZodString>;
397
- }, z.core.$strict>, z.ZodObject<{
398
- kind: z.ZodLiteral<"quiz">;
399
- default: z.ZodArray<z.ZodObject<{
400
- id: z.ZodString;
401
- prompt: z.ZodString;
402
- choices: z.ZodArray<z.ZodObject<{
403
- id: z.ZodString;
404
- label: z.ZodString;
405
- }, z.core.$strict>>;
406
- correct: z.ZodString;
407
- }, z.core.$strict>>;
408
- label: z.ZodString;
409
- description: z.ZodOptional<z.ZodString>;
410
- }, z.core.$strict>, z.ZodObject<{
411
- kind: z.ZodLiteral<"text">;
412
- default: z.ZodString;
413
- minLength: z.ZodNumber;
414
- maxLength: z.ZodNumber;
415
- multiline: z.ZodBoolean;
416
- label: z.ZodString;
417
- description: z.ZodOptional<z.ZodString>;
418
- }, z.core.$strict>, z.ZodObject<{
419
- kind: z.ZodLiteral<"integer">;
420
- default: z.ZodNumber;
421
- min: z.ZodNumber;
422
- max: z.ZodNumber;
423
- label: z.ZodString;
424
- description: z.ZodOptional<z.ZodString>;
425
- }, z.core.$strict>, z.ZodObject<{
426
- kind: z.ZodLiteral<"boolean">;
427
- default: z.ZodBoolean;
428
- label: z.ZodString;
429
- description: z.ZodOptional<z.ZodString>;
430
- }, z.core.$strict>, z.ZodObject<{
431
- kind: z.ZodLiteral<"choice">;
432
- default: z.ZodString;
433
- options: z.ZodArray<z.ZodString>;
434
- label: z.ZodString;
435
- description: z.ZodOptional<z.ZodString>;
436
- }, z.core.$strict>], "kind">>;
437
- values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodObject<{
438
- id: z.ZodString;
439
- prompt: z.ZodString;
440
- choices: z.ZodArray<z.ZodObject<{
441
- id: z.ZodString;
442
- label: z.ZodString;
443
- }, z.core.$strict>>;
444
- correct: z.ZodString;
445
- }, z.core.$strict>>]>>;
446
- rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
447
- kind: z.ZodDefault<z.ZodLiteral<"points">>;
448
- balance: z.ZodString;
449
- amount: z.ZodNumber;
450
- }, z.core.$strict>, z.ZodObject<{
451
- kind: z.ZodLiteral<"tier">;
452
- reward: z.ZodObject<{
453
- id: z.ZodString;
454
- title: z.ZodString;
455
- tiers: z.ZodArray<z.ZodObject<{
456
- id: z.ZodString;
457
- title: z.ZodString;
458
- }, z.core.$strict>>;
459
- inventory: z.ZodObject<{
460
- kind: z.ZodLiteral<"untracked">;
461
- }, z.core.$strict>;
462
- fulfillment: z.ZodObject<{
463
- kind: z.ZodLiteral<"staff-handover">;
464
- }, z.core.$strict>;
465
- }, z.core.$strict>;
466
- tier: z.ZodString;
467
- }, z.core.$strict>, z.ZodObject<{
468
- kind: z.ZodLiteral<"integration">;
469
- provider: z.ZodLiteral<"discord">;
470
- action: z.ZodLiteral<"grant-role">;
471
- roleId: z.ZodString;
472
- }, z.core.$strict>]>>;
473
- humanReview: z.ZodBoolean;
474
- trigger: z.ZodUnion<readonly [z.ZodObject<{
475
- kind: z.ZodLiteral<"manual">;
476
- input: z.ZodLiteral<"text">;
477
- constraints: z.ZodObject<{
478
- required: z.ZodDefault<z.ZodBoolean>;
479
- minLength: z.ZodDefault<z.ZodNumber>;
480
- maxLength: z.ZodDefault<z.ZodNumber>;
481
- }, z.core.$strict>;
482
- actor: z.ZodOptional<z.ZodEnum<{
483
- staff: "staff";
484
- member: "member";
485
- }>>;
486
- }, z.core.$strict>, z.ZodObject<{
487
- kind: z.ZodLiteral<"manual">;
488
- input: z.ZodLiteral<"url">;
489
- constraints: z.ZodObject<{
490
- required: z.ZodDefault<z.ZodBoolean>;
491
- allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
492
- }, z.core.$strict>;
493
- actor: z.ZodOptional<z.ZodEnum<{
494
- staff: "staff";
495
- member: "member";
496
- }>>;
497
- }, z.core.$strict>, z.ZodObject<{
498
- kind: z.ZodLiteral<"manual">;
499
- input: z.ZodEnum<{
500
- photo: "photo";
501
- quiz: "quiz";
502
- none: "none";
503
- }>;
504
- actor: z.ZodOptional<z.ZodEnum<{
505
- staff: "staff";
506
- member: "member";
507
- }>>;
508
- }, z.core.$strict>, z.ZodObject<{
509
- kind: z.ZodLiteral<"automatic">;
510
- observation: z.ZodOptional<z.ZodObject<{
511
- source: z.ZodString;
512
- type: z.ZodString;
513
- }, z.core.$strict>>;
514
- content: z.ZodOptional<z.ZodObject<{
515
- tracker: z.ZodString;
516
- window: z.ZodObject<{
517
- start: z.ZodNumber;
518
- end: z.ZodOptional<z.ZodNumber>;
519
- }, z.core.$strict>;
520
- enrollment: z.ZodDefault<z.ZodEnum<{
521
- required: "required";
522
- none: "none";
523
- }>>;
524
- posts: z.ZodDefault<z.ZodEnum<{
525
- "after-enrollment": "after-enrollment";
526
- "since-start": "since-start";
527
- }>>;
528
- historical: z.ZodDefault<z.ZodEnum<{
529
- staff: "staff";
530
- automatic: "automatic";
531
- claim: "claim";
532
- }>>;
533
- }, z.core.$strict>>;
534
- tracker: z.ZodOptional<z.ZodObject<{
535
- tracker: z.ZodString;
536
- source: z.ZodEnum<{
537
- custom: "custom";
538
- "x-search": "x-search";
539
- }>;
540
- on: z.ZodOptional<z.ZodEnum<{
541
- "new-record": "new-record";
542
- "new-observation": "new-observation";
543
- "data-changed": "data-changed";
544
- }>>;
545
- where: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
546
- path: z.ZodString;
547
- equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
548
- }, z.core.$strict>, z.ZodObject<{
549
- path: z.ZodString;
550
- gt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
551
- setting: z.ZodString;
552
- }, z.core.$strict>]>>;
553
- gte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
554
- setting: z.ZodString;
555
- }, z.core.$strict>]>>;
556
- lt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
557
- setting: z.ZodString;
558
- }, z.core.$strict>]>>;
559
- lte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
560
- setting: z.ZodString;
561
- }, z.core.$strict>]>>;
562
- }, z.core.$strict>]>>;
563
- beneficiary: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"replied-to">]>;
564
- }, z.core.$strict>>;
565
- }, z.core.$strict>]>;
566
- performance: z.ZodOptional<z.ZodObject<{
567
- metrics: z.ZodArray<z.ZodEnum<{
568
- likes: "likes";
569
- replies: "replies";
570
- reposts: "reposts";
571
- quotes: "quotes";
572
- views: "views";
573
- bookmarks: "bookmarks";
574
- }>>;
575
- maxAgeMs: z.ZodDefault<z.ZodNumber>;
576
- }, z.core.$strict>>;
577
- requires: z.ZodDefault<z.ZodArray<z.ZodObject<{
578
- quest: z.ZodString;
579
- }, z.core.$strip>>>;
580
- completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
581
- kind: z.ZodLiteral<"streak">;
582
- days: z.ZodNumber;
583
- timeZone: z.ZodString;
584
- }, z.core.$strict>, z.ZodObject<{
585
- kind: z.ZodLiteral<"once">;
586
- }, z.core.$strict>, z.ZodObject<{
587
- kind: z.ZodLiteral<"keyed">;
588
- }, z.core.$strict>], "kind">;
589
- visibility: z.ZodDefault<z.ZodEnum<{
590
- visible: "visible";
591
- hidden: "hidden";
592
- }>>;
593
- profile: z.ZodOptional<z.ZodObject<{
594
- visible: z.ZodBoolean;
595
- }, z.core.$strict>>;
596
- budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
597
- id: z.ZodString;
598
- scope: z.ZodEnum<{
599
- member: "member";
600
- project: "project";
601
- }>;
602
- period: z.ZodEnum<{
603
- lifetime: "lifetime";
604
- day: "day";
605
- week: "week";
606
- }>;
607
- limit: z.ZodNumber;
608
- cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
609
- balance: z.ZodString;
610
- }, z.core.$strict>]>;
611
- }, z.core.$strict>>>;
612
- }, z.core.$strict>;
613
- type QuestDescription = z.infer<typeof questDescriptionSchema>;
614
- declare const artifactSchema: z.ZodObject<{
615
- code: z.ZodString;
616
- }, z.core.$strict>;
617
- declare const releaseSchema: z.ZodObject<{
618
- code: z.ZodString;
619
- settings: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodObject<{
620
- id: z.ZodString;
621
- prompt: z.ZodString;
622
- choices: z.ZodArray<z.ZodObject<{
623
- id: z.ZodString;
624
- label: z.ZodString;
625
- }, z.core.$strict>>;
626
- correct: z.ZodString;
627
- }, z.core.$strict>>]>>;
628
- provider: z.ZodEnum<{
629
- "workers-ai": "workers-ai";
630
- }>;
631
- expectedRelease: z.ZodOptional<z.ZodNullable<z.ZodString>>;
632
- settingRenames: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
633
- }, z.core.$strict>;
634
- declare const batchReleaseSchema: z.ZodObject<{
635
- releases: z.ZodArray<z.ZodObject<{
636
- code: z.ZodString;
637
- settings: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodObject<{
638
- id: z.ZodString;
639
- prompt: z.ZodString;
640
- choices: z.ZodArray<z.ZodObject<{
641
- id: z.ZodString;
642
- label: z.ZodString;
643
- }, z.core.$strict>>;
644
- correct: z.ZodString;
645
- }, z.core.$strict>>]>>;
646
- provider: z.ZodEnum<{
647
- "workers-ai": "workers-ai";
648
- }>;
649
- expectedRelease: z.ZodOptional<z.ZodNullable<z.ZodString>>;
650
- settingRenames: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
651
- }, z.core.$strict>>;
652
- }, z.core.$strict>;
653
- type ReleaseInput = z.infer<typeof releaseSchema>;
654
- declare const questSettingsInputSchema: z.ZodObject<{
655
- quest: z.ZodString;
656
- expectedRelease: z.ZodString;
657
- set: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodObject<{
658
- id: z.ZodString;
659
- prompt: z.ZodString;
660
- choices: z.ZodArray<z.ZodObject<{
661
- id: z.ZodString;
662
- label: z.ZodString;
663
- }, z.core.$strict>>;
664
- correct: z.ZodString;
665
- }, z.core.$strict>>]>>;
666
- reset: z.ZodArray<z.ZodString>;
667
- }, z.core.$strict>;
668
- type QuestSettingsInput = z.infer<typeof questSettingsInputSchema>;
669
- declare const publishedReleaseSchema: z.ZodUnion<readonly [z.ZodObject<{
670
- quest: z.ZodString;
671
- runtimeVersion: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
672
- title: z.ZodString;
673
- presentation: z.ZodDefault<z.ZodObject<{
674
- quiz: z.ZodOptional<z.ZodArray<z.ZodObject<{
675
- id: z.ZodString;
676
- prompt: z.ZodString;
677
- choices: z.ZodArray<z.ZodObject<{
678
- id: z.ZodString;
679
- label: z.ZodString;
680
- }, z.core.$strict>>;
681
- }, z.core.$strict>>>;
682
- instructions: z.ZodOptional<z.ZodString>;
683
- video: z.ZodOptional<z.ZodObject<{
684
- url: z.ZodString;
685
- poster: z.ZodOptional<z.ZodString>;
686
- captions: z.ZodOptional<z.ZodObject<{
687
- url: z.ZodString;
688
- language: z.ZodString;
689
- label: z.ZodString;
690
- }, z.core.$strict>>;
691
- }, z.core.$strict>>;
692
- }, z.core.$strict>>;
693
- integrations: z.ZodDefault<z.ZodArray<z.ZodEnum<{
694
- discord: "discord";
695
- }>>>;
696
- fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
697
- kind: z.ZodLiteral<"point-ledger">;
698
- default: z.ZodString;
699
- label: z.ZodString;
700
- description: z.ZodOptional<z.ZodString>;
701
- }, z.core.$strict>, z.ZodObject<{
702
- kind: z.ZodLiteral<"datetime">;
703
- default: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<string, string>>;
704
- label: z.ZodString;
705
- description: z.ZodOptional<z.ZodString>;
706
- }, z.core.$strict>, z.ZodObject<{
707
- kind: z.ZodLiteral<"resource">;
708
- default: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
709
- source: z.ZodUnion<readonly [z.ZodObject<{
710
- provider: z.ZodLiteral<"domino">;
711
- resource: z.ZodLiteral<"point-ledger">;
712
- }, z.core.$strict>, z.ZodObject<{
713
- provider: z.ZodLiteral<"discord">;
714
- resource: z.ZodLiteral<"channel">;
715
- types: z.ZodArray<z.ZodEnum<{
716
- text: "text";
717
- announcement: "announcement";
718
- }>>;
719
- }, z.core.$strict>, z.ZodObject<{
720
- provider: z.ZodLiteral<"discord">;
721
- resource: z.ZodLiteral<"role">;
722
- assignable: z.ZodDefault<z.ZodBoolean>;
723
- }, z.core.$strict>]>;
724
- label: z.ZodString;
725
- description: z.ZodOptional<z.ZodString>;
726
- }, z.core.$strict>, z.ZodObject<{
727
- kind: z.ZodLiteral<"quiz">;
728
- default: z.ZodArray<z.ZodObject<{
729
- id: z.ZodString;
730
- prompt: z.ZodString;
731
- choices: z.ZodArray<z.ZodObject<{
732
- id: z.ZodString;
733
- label: z.ZodString;
734
- }, z.core.$strict>>;
735
- correct: z.ZodString;
736
- }, z.core.$strict>>;
737
- label: z.ZodString;
738
- description: z.ZodOptional<z.ZodString>;
739
- }, z.core.$strict>, z.ZodObject<{
740
- kind: z.ZodLiteral<"text">;
741
- default: z.ZodString;
742
- minLength: z.ZodNumber;
743
- maxLength: z.ZodNumber;
744
- multiline: z.ZodBoolean;
745
- label: z.ZodString;
746
- description: z.ZodOptional<z.ZodString>;
747
- }, z.core.$strict>, z.ZodObject<{
748
- kind: z.ZodLiteral<"integer">;
749
- default: z.ZodNumber;
750
- min: z.ZodNumber;
751
- max: z.ZodNumber;
752
- label: z.ZodString;
753
- description: z.ZodOptional<z.ZodString>;
754
- }, z.core.$strict>, z.ZodObject<{
755
- kind: z.ZodLiteral<"boolean">;
756
- default: z.ZodBoolean;
757
- label: z.ZodString;
758
- description: z.ZodOptional<z.ZodString>;
759
- }, z.core.$strict>, z.ZodObject<{
760
- kind: z.ZodLiteral<"choice">;
761
- default: z.ZodString;
762
- options: z.ZodArray<z.ZodString>;
763
- label: z.ZodString;
764
- description: z.ZodOptional<z.ZodString>;
765
- }, z.core.$strict>], "kind">>;
766
- values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodObject<{
767
- id: z.ZodString;
768
- prompt: z.ZodString;
769
- choices: z.ZodArray<z.ZodObject<{
770
- id: z.ZodString;
771
- label: z.ZodString;
772
- }, z.core.$strict>>;
773
- correct: z.ZodString;
774
- }, z.core.$strict>>]>>;
775
- rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
776
- kind: z.ZodDefault<z.ZodLiteral<"points">>;
777
- balance: z.ZodString;
778
- amount: z.ZodNumber;
779
- }, z.core.$strict>, z.ZodObject<{
780
- kind: z.ZodLiteral<"tier">;
781
- reward: z.ZodObject<{
782
- id: z.ZodString;
783
- title: z.ZodString;
784
- tiers: z.ZodArray<z.ZodObject<{
785
- id: z.ZodString;
786
- title: z.ZodString;
787
- }, z.core.$strict>>;
788
- inventory: z.ZodObject<{
789
- kind: z.ZodLiteral<"untracked">;
790
- }, z.core.$strict>;
791
- fulfillment: z.ZodObject<{
792
- kind: z.ZodLiteral<"staff-handover">;
793
- }, z.core.$strict>;
794
- }, z.core.$strict>;
795
- tier: z.ZodString;
796
- }, z.core.$strict>, z.ZodObject<{
797
- kind: z.ZodLiteral<"integration">;
798
- provider: z.ZodLiteral<"discord">;
799
- action: z.ZodLiteral<"grant-role">;
800
- roleId: z.ZodString;
801
- }, z.core.$strict>]>>;
802
- humanReview: z.ZodBoolean;
803
- trigger: z.ZodUnion<readonly [z.ZodObject<{
804
- kind: z.ZodLiteral<"manual">;
805
- input: z.ZodLiteral<"text">;
806
- constraints: z.ZodObject<{
807
- required: z.ZodDefault<z.ZodBoolean>;
808
- minLength: z.ZodDefault<z.ZodNumber>;
809
- maxLength: z.ZodDefault<z.ZodNumber>;
810
- }, z.core.$strict>;
811
- actor: z.ZodOptional<z.ZodEnum<{
812
- staff: "staff";
813
- member: "member";
814
- }>>;
815
- }, z.core.$strict>, z.ZodObject<{
816
- kind: z.ZodLiteral<"manual">;
817
- input: z.ZodLiteral<"url">;
818
- constraints: z.ZodObject<{
819
- required: z.ZodDefault<z.ZodBoolean>;
820
- allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
821
- }, z.core.$strict>;
822
- actor: z.ZodOptional<z.ZodEnum<{
823
- staff: "staff";
824
- member: "member";
825
- }>>;
826
- }, z.core.$strict>, z.ZodObject<{
827
- kind: z.ZodLiteral<"manual">;
828
- input: z.ZodEnum<{
829
- photo: "photo";
830
- quiz: "quiz";
831
- none: "none";
832
- }>;
833
- actor: z.ZodOptional<z.ZodEnum<{
834
- staff: "staff";
835
- member: "member";
836
- }>>;
837
- }, z.core.$strict>, z.ZodObject<{
838
- kind: z.ZodLiteral<"automatic">;
839
- observation: z.ZodOptional<z.ZodObject<{
840
- source: z.ZodString;
841
- type: z.ZodString;
842
- }, z.core.$strict>>;
843
- content: z.ZodOptional<z.ZodObject<{
844
- tracker: z.ZodString;
845
- window: z.ZodObject<{
846
- start: z.ZodNumber;
847
- end: z.ZodOptional<z.ZodNumber>;
848
- }, z.core.$strict>;
849
- enrollment: z.ZodDefault<z.ZodEnum<{
850
- required: "required";
851
- none: "none";
852
- }>>;
853
- posts: z.ZodDefault<z.ZodEnum<{
854
- "after-enrollment": "after-enrollment";
855
- "since-start": "since-start";
856
- }>>;
857
- historical: z.ZodDefault<z.ZodEnum<{
858
- staff: "staff";
859
- automatic: "automatic";
860
- claim: "claim";
861
- }>>;
862
- }, z.core.$strict>>;
863
- tracker: z.ZodOptional<z.ZodObject<{
864
- tracker: z.ZodString;
865
- source: z.ZodEnum<{
866
- custom: "custom";
867
- "x-search": "x-search";
868
- }>;
869
- on: z.ZodOptional<z.ZodEnum<{
870
- "new-record": "new-record";
871
- "new-observation": "new-observation";
872
- "data-changed": "data-changed";
873
- }>>;
874
- where: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
875
- path: z.ZodString;
876
- equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
877
- }, z.core.$strict>, z.ZodObject<{
878
- path: z.ZodString;
879
- gt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
880
- setting: z.ZodString;
881
- }, z.core.$strict>]>>;
882
- gte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
883
- setting: z.ZodString;
884
- }, z.core.$strict>]>>;
885
- lt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
886
- setting: z.ZodString;
887
- }, z.core.$strict>]>>;
888
- lte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
889
- setting: z.ZodString;
890
- }, z.core.$strict>]>>;
891
- }, z.core.$strict>]>>;
892
- beneficiary: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"replied-to">]>;
893
- }, z.core.$strict>>;
894
- }, z.core.$strict>]>;
895
- performance: z.ZodOptional<z.ZodObject<{
896
- metrics: z.ZodArray<z.ZodEnum<{
897
- likes: "likes";
898
- replies: "replies";
899
- reposts: "reposts";
900
- quotes: "quotes";
901
- views: "views";
902
- bookmarks: "bookmarks";
903
- }>>;
904
- maxAgeMs: z.ZodDefault<z.ZodNumber>;
905
- }, z.core.$strict>>;
906
- requires: z.ZodDefault<z.ZodArray<z.ZodObject<{
907
- quest: z.ZodString;
908
- }, z.core.$strip>>>;
909
- completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
910
- kind: z.ZodLiteral<"streak">;
911
- days: z.ZodNumber;
912
- timeZone: z.ZodString;
913
- }, z.core.$strict>, z.ZodObject<{
914
- kind: z.ZodLiteral<"once">;
915
- }, z.core.$strict>, z.ZodObject<{
916
- kind: z.ZodLiteral<"keyed">;
917
- }, z.core.$strict>], "kind">;
918
- visibility: z.ZodDefault<z.ZodEnum<{
919
- visible: "visible";
920
- hidden: "hidden";
921
- }>>;
922
- profile: z.ZodOptional<z.ZodObject<{
923
- visible: z.ZodBoolean;
924
- }, z.core.$strict>>;
925
- budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
926
- id: z.ZodString;
927
- scope: z.ZodEnum<{
928
- member: "member";
929
- project: "project";
930
- }>;
931
- period: z.ZodEnum<{
932
- lifetime: "lifetime";
933
- day: "day";
934
- week: "week";
935
- }>;
936
- limit: z.ZodNumber;
937
- cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
938
- balance: z.ZodString;
939
- }, z.core.$strict>]>;
940
- }, z.core.$strict>>>;
941
- key: z.ZodOptional<z.ZodString>;
942
- code: z.ZodString;
943
- provider: z.ZodEnum<{
944
- "workers-ai": "workers-ai";
945
- "fixture-pass": "fixture-pass";
946
- "fixture-fail": "fixture-fail";
947
- "fixture-unclear": "fixture-unclear";
948
- "fixture-error": "fixture-error";
949
- }>;
950
- id: z.ZodString;
951
- createdAt: z.ZodNumber;
952
- legacy: z.ZodDefault<z.ZodBoolean>;
953
- origin: z.ZodOptional<z.ZodObject<{
954
- typeVersion: z.ZodString;
955
- }, z.core.$strict>>;
956
- lifecycle: z.ZodDefault<z.ZodEnum<{
957
- paused: "paused";
958
- active: "active";
959
- archived: "archived";
960
- }>>;
961
- configuration: z.ZodOptional<z.ZodObject<{
962
- defaults: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodObject<{
963
- id: z.ZodString;
964
- prompt: z.ZodString;
965
- choices: z.ZodArray<z.ZodObject<{
966
- id: z.ZodString;
967
- label: z.ZodString;
968
- }, z.core.$strict>>;
969
- correct: z.ZodString;
970
- }, z.core.$strict>>]>>;
971
- overrides: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodObject<{
972
- id: z.ZodString;
973
- prompt: z.ZodString;
974
- choices: z.ZodArray<z.ZodObject<{
975
- id: z.ZodString;
976
- label: z.ZodString;
977
- }, z.core.$strict>>;
978
- correct: z.ZodString;
979
- }, z.core.$strict>>]>>;
980
- preserved: z.ZodArray<z.ZodString>;
981
- }, z.core.$strict>>;
982
- }, z.core.$strict>, z.ZodPipe<z.ZodObject<{
983
- quest: z.ZodString;
984
- title: z.ZodString;
985
- criteria: z.ZodString;
986
- humanReview: z.ZodBoolean;
987
- rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
988
- kind: z.ZodDefault<z.ZodLiteral<"points">>;
989
- balance: z.ZodString;
990
- amount: z.ZodNumber;
991
- }, z.core.$strict>, z.ZodObject<{
992
- kind: z.ZodLiteral<"tier">;
993
- reward: z.ZodObject<{
994
- id: z.ZodString;
995
- title: z.ZodString;
996
- tiers: z.ZodArray<z.ZodObject<{
997
- id: z.ZodString;
998
- title: z.ZodString;
999
- }, z.core.$strict>>;
1000
- inventory: z.ZodObject<{
1001
- kind: z.ZodLiteral<"untracked">;
1002
- }, z.core.$strict>;
1003
- fulfillment: z.ZodObject<{
1004
- kind: z.ZodLiteral<"staff-handover">;
1005
- }, z.core.$strict>;
1006
- }, z.core.$strict>;
1007
- tier: z.ZodString;
1008
- }, z.core.$strict>, z.ZodObject<{
1009
- kind: z.ZodLiteral<"integration">;
1010
- provider: z.ZodLiteral<"discord">;
1011
- action: z.ZodLiteral<"grant-role">;
1012
- roleId: z.ZodString;
1013
- }, z.core.$strict>]>>;
1014
- code: z.ZodString;
1015
- provider: z.ZodEnum<{
1016
- "workers-ai": "workers-ai";
1017
- "fixture-pass": "fixture-pass";
1018
- "fixture-fail": "fixture-fail";
1019
- "fixture-unclear": "fixture-unclear";
1020
- "fixture-error": "fixture-error";
1021
- }>;
1022
- id: z.ZodString;
1023
- createdAt: z.ZodNumber;
1024
- }, z.core.$strip>, z.ZodTransform<{
1025
- quest: string;
1026
- runtimeVersion: 1 | 2;
1027
- title: string;
1028
- presentation: {
1029
- quiz?: {
1030
- id: string;
1031
- prompt: string;
1032
- choices: {
1033
- id: string;
1034
- label: string;
1035
- }[];
1036
- }[] | undefined;
1037
- instructions?: string | undefined;
1038
- video?: {
1039
- url: string;
1040
- poster?: string | undefined;
1041
- captions?: {
1042
- url: string;
1043
- language: string;
1044
- label: string;
1045
- } | undefined;
1046
- } | undefined;
1047
- };
1048
- integrations: "discord"[];
1049
- fields: Record<string, {
1050
- kind: "point-ledger";
1051
- default: string;
1052
- label: string;
1053
- description?: string | undefined;
1054
- } | {
1055
- kind: "datetime";
1056
- default: string;
1057
- label: string;
1058
- description?: string | undefined;
1059
- } | {
1060
- kind: "resource";
1061
- default: string;
1062
- source: {
1063
- provider: "domino";
1064
- resource: "point-ledger";
1065
- } | {
1066
- provider: "discord";
1067
- resource: "channel";
1068
- types: ("text" | "announcement")[];
1069
- } | {
1070
- provider: "discord";
1071
- resource: "role";
1072
- assignable: boolean;
1073
- };
1074
- label: string;
1075
- description?: string | undefined;
1076
- } | {
1077
- kind: "quiz";
1078
- default: {
1079
- id: string;
1080
- prompt: string;
1081
- choices: {
1082
- id: string;
1083
- label: string;
1084
- }[];
1085
- correct: string;
1086
- }[];
1087
- label: string;
1088
- description?: string | undefined;
1089
- } | {
1090
- kind: "text";
1091
- default: string;
1092
- minLength: number;
1093
- maxLength: number;
1094
- multiline: boolean;
1095
- label: string;
1096
- description?: string | undefined;
1097
- } | {
1098
- kind: "integer";
1099
- default: number;
1100
- min: number;
1101
- max: number;
1102
- label: string;
1103
- description?: string | undefined;
1104
- } | {
1105
- kind: "boolean";
1106
- default: boolean;
1107
- label: string;
1108
- description?: string | undefined;
1109
- } | {
1110
- kind: "choice";
1111
- default: string;
1112
- options: string[];
1113
- label: string;
1114
- description?: string | undefined;
1115
- }>;
1116
- values: Record<string, string | number | boolean | {
1117
- id: string;
1118
- prompt: string;
1119
- choices: {
1120
- id: string;
1121
- label: string;
1122
- }[];
1123
- correct: string;
1124
- }[]>;
1125
- rewards: ({
1126
- kind: "tier";
1127
- reward: {
1128
- id: string;
1129
- title: string;
1130
- tiers: {
1131
- id: string;
1132
- title: string;
1133
- }[];
1134
- inventory: {
1135
- kind: "untracked";
1136
- };
1137
- fulfillment: {
1138
- kind: "staff-handover";
1139
- };
1140
- };
1141
- tier: string;
1142
- } | {
1143
- kind: "points";
1144
- balance: string;
1145
- amount: number;
1146
- } | {
1147
- kind: "integration";
1148
- provider: "discord";
1149
- action: "grant-role";
1150
- roleId: string;
1151
- })[];
1152
- humanReview: boolean;
1153
- trigger: {
1154
- kind: "automatic";
1155
- observation?: {
1156
- source: string;
1157
- type: string;
1158
- } | undefined;
1159
- content?: {
1160
- tracker: string;
1161
- window: {
1162
- start: number;
1163
- end?: number | undefined;
1164
- };
1165
- enrollment: "required" | "none";
1166
- posts: "after-enrollment" | "since-start";
1167
- historical: "staff" | "automatic" | "claim";
1168
- } | undefined;
1169
- tracker?: {
1170
- tracker: string;
1171
- source: "custom" | "x-search";
1172
- beneficiary: string;
1173
- on?: "new-record" | "new-observation" | "data-changed" | undefined;
1174
- where?: {
1175
- path: string;
1176
- gt?: number | {
1177
- setting: string;
1178
- } | undefined;
1179
- gte?: number | {
1180
- setting: string;
1181
- } | undefined;
1182
- lt?: number | {
1183
- setting: string;
1184
- } | undefined;
1185
- lte?: number | {
1186
- setting: string;
1187
- } | undefined;
1188
- } | {
1189
- path: string;
1190
- equals: string | number | boolean;
1191
- } | undefined;
1192
- } | undefined;
1193
- } | {
1194
- kind: "manual";
1195
- input: "text";
1196
- constraints: {
1197
- required: boolean;
1198
- minLength: number;
1199
- maxLength: number;
1200
- };
1201
- actor?: "staff" | "member" | undefined;
1202
- } | {
1203
- kind: "manual";
1204
- input: "url";
1205
- constraints: {
1206
- required: boolean;
1207
- allowedHosts?: string[] | undefined;
1208
- };
1209
- actor?: "staff" | "member" | undefined;
1210
- } | {
1211
- kind: "manual";
1212
- input: "photo" | "quiz" | "none";
1213
- actor?: "staff" | "member" | undefined;
1214
- };
1215
- requires: {
1216
- quest: string;
1217
- }[];
1218
- completion: {
1219
- kind: "streak";
1220
- days: number;
1221
- timeZone: string;
1222
- } | {
1223
- kind: "once";
1224
- } | {
1225
- kind: "keyed";
1226
- };
1227
- visibility: "visible" | "hidden";
1228
- budgets: {
1229
- id: string;
1230
- scope: "member" | "project";
1231
- period: "lifetime" | "day" | "week";
1232
- limit: number;
1233
- cost: number | {
1234
- balance: string;
1235
- };
1236
- }[];
1237
- code: string;
1238
- provider: "workers-ai" | "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error";
1239
- id: string;
1240
- createdAt: number;
1241
- legacy: boolean;
1242
- lifecycle: "paused" | "active" | "archived";
1243
- performance?: {
1244
- metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
1245
- maxAgeMs: number;
1246
- } | undefined;
1247
- profile?: {
1248
- visible: boolean;
1249
- } | undefined;
1250
- key?: string | undefined;
1251
- origin?: {
1252
- typeVersion: string;
1253
- } | undefined;
1254
- configuration?: {
1255
- defaults: Record<string, string | number | boolean | {
1256
- id: string;
1257
- prompt: string;
1258
- choices: {
1259
- id: string;
1260
- label: string;
1261
- }[];
1262
- correct: string;
1263
- }[]>;
1264
- overrides: Record<string, string | number | boolean | {
1265
- id: string;
1266
- prompt: string;
1267
- choices: {
1268
- id: string;
1269
- label: string;
1270
- }[];
1271
- correct: string;
1272
- }[]>;
1273
- preserved: string[];
1274
- } | undefined;
1275
- }, {
1276
- quest: string;
1277
- title: string;
1278
- criteria: string;
1279
- humanReview: boolean;
1280
- rewards: ({
1281
- kind: "tier";
1282
- reward: {
1283
- id: string;
1284
- title: string;
1285
- tiers: {
1286
- id: string;
1287
- title: string;
1288
- }[];
1289
- inventory: {
1290
- kind: "untracked";
1291
- };
1292
- fulfillment: {
1293
- kind: "staff-handover";
1294
- };
1295
- };
1296
- tier: string;
1297
- } | {
1298
- kind: "points";
1299
- balance: string;
1300
- amount: number;
1301
- } | {
1302
- kind: "integration";
1303
- provider: "discord";
1304
- action: "grant-role";
1305
- roleId: string;
1306
- })[];
1307
- code: string;
1308
- provider: "workers-ai" | "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error";
1309
- id: string;
1310
- createdAt: number;
1311
- }>>]>;
1312
- type PublishedRelease = z.infer<typeof publishedReleaseSchema>;
1313
- declare const templateSchema: z.ZodObject<{
1314
- code: z.ZodString;
1315
- definition: z.ZodObject<{
1316
- quest: z.ZodString;
1317
- runtimeVersion: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
1318
- title: z.ZodString;
1319
- presentation: z.ZodDefault<z.ZodObject<{
1320
- quiz: z.ZodOptional<z.ZodArray<z.ZodObject<{
1321
- id: z.ZodString;
1322
- prompt: z.ZodString;
1323
- choices: z.ZodArray<z.ZodObject<{
1324
- id: z.ZodString;
1325
- label: z.ZodString;
1326
- }, z.core.$strict>>;
1327
- }, z.core.$strict>>>;
1328
- instructions: z.ZodOptional<z.ZodString>;
1329
- video: z.ZodOptional<z.ZodObject<{
1330
- url: z.ZodString;
1331
- poster: z.ZodOptional<z.ZodString>;
1332
- captions: z.ZodOptional<z.ZodObject<{
1333
- url: z.ZodString;
1334
- language: z.ZodString;
1335
- label: z.ZodString;
1336
- }, z.core.$strict>>;
1337
- }, z.core.$strict>>;
1338
- }, z.core.$strict>>;
1339
- integrations: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1340
- discord: "discord";
1341
- }>>>;
1342
- fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
1343
- kind: z.ZodLiteral<"point-ledger">;
1344
- default: z.ZodString;
1345
- label: z.ZodString;
1346
- description: z.ZodOptional<z.ZodString>;
1347
- }, z.core.$strict>, z.ZodObject<{
1348
- kind: z.ZodLiteral<"datetime">;
1349
- default: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<string, string>>;
1350
- label: z.ZodString;
1351
- description: z.ZodOptional<z.ZodString>;
1352
- }, z.core.$strict>, z.ZodObject<{
1353
- kind: z.ZodLiteral<"resource">;
1354
- default: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
1355
- source: z.ZodUnion<readonly [z.ZodObject<{
1356
- provider: z.ZodLiteral<"domino">;
1357
- resource: z.ZodLiteral<"point-ledger">;
1358
- }, z.core.$strict>, z.ZodObject<{
1359
- provider: z.ZodLiteral<"discord">;
1360
- resource: z.ZodLiteral<"channel">;
1361
- types: z.ZodArray<z.ZodEnum<{
1362
- text: "text";
1363
- announcement: "announcement";
1364
- }>>;
1365
- }, z.core.$strict>, z.ZodObject<{
1366
- provider: z.ZodLiteral<"discord">;
1367
- resource: z.ZodLiteral<"role">;
1368
- assignable: z.ZodDefault<z.ZodBoolean>;
1369
- }, z.core.$strict>]>;
1370
- label: z.ZodString;
1371
- description: z.ZodOptional<z.ZodString>;
1372
- }, z.core.$strict>, z.ZodObject<{
1373
- kind: z.ZodLiteral<"quiz">;
1374
- default: z.ZodArray<z.ZodObject<{
1375
- id: z.ZodString;
1376
- prompt: z.ZodString;
1377
- choices: z.ZodArray<z.ZodObject<{
1378
- id: z.ZodString;
1379
- label: z.ZodString;
1380
- }, z.core.$strict>>;
1381
- correct: z.ZodString;
1382
- }, z.core.$strict>>;
1383
- label: z.ZodString;
1384
- description: z.ZodOptional<z.ZodString>;
1385
- }, z.core.$strict>, z.ZodObject<{
1386
- kind: z.ZodLiteral<"text">;
1387
- default: z.ZodString;
1388
- minLength: z.ZodNumber;
1389
- maxLength: z.ZodNumber;
1390
- multiline: z.ZodBoolean;
1391
- label: z.ZodString;
1392
- description: z.ZodOptional<z.ZodString>;
1393
- }, z.core.$strict>, z.ZodObject<{
1394
- kind: z.ZodLiteral<"integer">;
1395
- default: z.ZodNumber;
1396
- min: z.ZodNumber;
1397
- max: z.ZodNumber;
1398
- label: z.ZodString;
1399
- description: z.ZodOptional<z.ZodString>;
1400
- }, z.core.$strict>, z.ZodObject<{
1401
- kind: z.ZodLiteral<"boolean">;
1402
- default: z.ZodBoolean;
1403
- label: z.ZodString;
1404
- description: z.ZodOptional<z.ZodString>;
1405
- }, z.core.$strict>, z.ZodObject<{
1406
- kind: z.ZodLiteral<"choice">;
1407
- default: z.ZodString;
1408
- options: z.ZodArray<z.ZodString>;
1409
- label: z.ZodString;
1410
- description: z.ZodOptional<z.ZodString>;
1411
- }, z.core.$strict>], "kind">>;
1412
- values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodObject<{
1413
- id: z.ZodString;
1414
- prompt: z.ZodString;
1415
- choices: z.ZodArray<z.ZodObject<{
1416
- id: z.ZodString;
1417
- label: z.ZodString;
1418
- }, z.core.$strict>>;
1419
- correct: z.ZodString;
1420
- }, z.core.$strict>>]>>;
1421
- rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1422
- kind: z.ZodDefault<z.ZodLiteral<"points">>;
1423
- balance: z.ZodString;
1424
- amount: z.ZodNumber;
1425
- }, z.core.$strict>, z.ZodObject<{
1426
- kind: z.ZodLiteral<"tier">;
1427
- reward: z.ZodObject<{
1428
- id: z.ZodString;
1429
- title: z.ZodString;
1430
- tiers: z.ZodArray<z.ZodObject<{
1431
- id: z.ZodString;
1432
- title: z.ZodString;
1433
- }, z.core.$strict>>;
1434
- inventory: z.ZodObject<{
1435
- kind: z.ZodLiteral<"untracked">;
1436
- }, z.core.$strict>;
1437
- fulfillment: z.ZodObject<{
1438
- kind: z.ZodLiteral<"staff-handover">;
1439
- }, z.core.$strict>;
1440
- }, z.core.$strict>;
1441
- tier: z.ZodString;
1442
- }, z.core.$strict>, z.ZodObject<{
1443
- kind: z.ZodLiteral<"integration">;
1444
- provider: z.ZodLiteral<"discord">;
1445
- action: z.ZodLiteral<"grant-role">;
1446
- roleId: z.ZodString;
1447
- }, z.core.$strict>]>>;
1448
- humanReview: z.ZodBoolean;
1449
- trigger: z.ZodUnion<readonly [z.ZodObject<{
1450
- kind: z.ZodLiteral<"manual">;
1451
- input: z.ZodLiteral<"text">;
1452
- constraints: z.ZodObject<{
1453
- required: z.ZodDefault<z.ZodBoolean>;
1454
- minLength: z.ZodDefault<z.ZodNumber>;
1455
- maxLength: z.ZodDefault<z.ZodNumber>;
1456
- }, z.core.$strict>;
1457
- actor: z.ZodOptional<z.ZodEnum<{
1458
- staff: "staff";
1459
- member: "member";
1460
- }>>;
1461
- }, z.core.$strict>, z.ZodObject<{
1462
- kind: z.ZodLiteral<"manual">;
1463
- input: z.ZodLiteral<"url">;
1464
- constraints: z.ZodObject<{
1465
- required: z.ZodDefault<z.ZodBoolean>;
1466
- allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
1467
- }, z.core.$strict>;
1468
- actor: z.ZodOptional<z.ZodEnum<{
1469
- staff: "staff";
1470
- member: "member";
1471
- }>>;
1472
- }, z.core.$strict>, z.ZodObject<{
1473
- kind: z.ZodLiteral<"manual">;
1474
- input: z.ZodEnum<{
1475
- photo: "photo";
1476
- quiz: "quiz";
1477
- none: "none";
1478
- }>;
1479
- actor: z.ZodOptional<z.ZodEnum<{
1480
- staff: "staff";
1481
- member: "member";
1482
- }>>;
1483
- }, z.core.$strict>, z.ZodObject<{
1484
- kind: z.ZodLiteral<"automatic">;
1485
- observation: z.ZodOptional<z.ZodObject<{
1486
- source: z.ZodString;
1487
- type: z.ZodString;
1488
- }, z.core.$strict>>;
1489
- content: z.ZodOptional<z.ZodObject<{
1490
- tracker: z.ZodString;
1491
- window: z.ZodObject<{
1492
- start: z.ZodNumber;
1493
- end: z.ZodOptional<z.ZodNumber>;
1494
- }, z.core.$strict>;
1495
- enrollment: z.ZodDefault<z.ZodEnum<{
1496
- required: "required";
1497
- none: "none";
1498
- }>>;
1499
- posts: z.ZodDefault<z.ZodEnum<{
1500
- "after-enrollment": "after-enrollment";
1501
- "since-start": "since-start";
1502
- }>>;
1503
- historical: z.ZodDefault<z.ZodEnum<{
1504
- staff: "staff";
1505
- automatic: "automatic";
1506
- claim: "claim";
1507
- }>>;
1508
- }, z.core.$strict>>;
1509
- tracker: z.ZodOptional<z.ZodObject<{
1510
- tracker: z.ZodString;
1511
- source: z.ZodEnum<{
1512
- custom: "custom";
1513
- "x-search": "x-search";
1514
- }>;
1515
- on: z.ZodOptional<z.ZodEnum<{
1516
- "new-record": "new-record";
1517
- "new-observation": "new-observation";
1518
- "data-changed": "data-changed";
1519
- }>>;
1520
- where: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1521
- path: z.ZodString;
1522
- equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
1523
- }, z.core.$strict>, z.ZodObject<{
1524
- path: z.ZodString;
1525
- gt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1526
- setting: z.ZodString;
1527
- }, z.core.$strict>]>>;
1528
- gte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1529
- setting: z.ZodString;
1530
- }, z.core.$strict>]>>;
1531
- lt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1532
- setting: z.ZodString;
1533
- }, z.core.$strict>]>>;
1534
- lte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1535
- setting: z.ZodString;
1536
- }, z.core.$strict>]>>;
1537
- }, z.core.$strict>]>>;
1538
- beneficiary: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"replied-to">]>;
1539
- }, z.core.$strict>>;
1540
- }, z.core.$strict>]>;
1541
- performance: z.ZodOptional<z.ZodObject<{
1542
- metrics: z.ZodArray<z.ZodEnum<{
1543
- likes: "likes";
1544
- replies: "replies";
1545
- reposts: "reposts";
1546
- quotes: "quotes";
1547
- views: "views";
1548
- bookmarks: "bookmarks";
1549
- }>>;
1550
- maxAgeMs: z.ZodDefault<z.ZodNumber>;
1551
- }, z.core.$strict>>;
1552
- requires: z.ZodDefault<z.ZodArray<z.ZodObject<{
1553
- quest: z.ZodString;
1554
- }, z.core.$strip>>>;
1555
- completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
1556
- kind: z.ZodLiteral<"streak">;
1557
- days: z.ZodNumber;
1558
- timeZone: z.ZodString;
1559
- }, z.core.$strict>, z.ZodObject<{
1560
- kind: z.ZodLiteral<"once">;
1561
- }, z.core.$strict>, z.ZodObject<{
1562
- kind: z.ZodLiteral<"keyed">;
1563
- }, z.core.$strict>], "kind">;
1564
- visibility: z.ZodDefault<z.ZodEnum<{
1565
- visible: "visible";
1566
- hidden: "hidden";
1567
- }>>;
1568
- profile: z.ZodOptional<z.ZodObject<{
1569
- visible: z.ZodBoolean;
1570
- }, z.core.$strict>>;
1571
- budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
1572
- id: z.ZodString;
1573
- scope: z.ZodEnum<{
1574
- member: "member";
1575
- project: "project";
1576
- }>;
1577
- period: z.ZodEnum<{
1578
- lifetime: "lifetime";
1579
- day: "day";
1580
- week: "week";
1581
- }>;
1582
- limit: z.ZodNumber;
1583
- cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1584
- balance: z.ZodString;
1585
- }, z.core.$strict>]>;
1586
- }, z.core.$strict>>>;
1587
- }, z.core.$strict>;
1588
- }, z.core.$strip>;
1589
- declare const quizAnswersSchema: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<{
1590
- [k: string]: string;
1591
- }, Record<string, string>>>;
1592
- declare const quizEvidenceSchema: z.ZodObject<{
1593
- kind: z.ZodLiteral<"quiz">;
1594
- release: z.ZodOptional<z.ZodString>;
1595
- answers: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<{
1596
- [k: string]: string;
1597
- }, Record<string, string>>>;
1598
- }, z.core.$strict>;
1599
- type QuizEvidence = z.infer<typeof quizEvidenceSchema>;
1600
- declare const submissionEvidenceSchema: z.ZodUnion<readonly [z.ZodObject<{
1601
- kind: z.ZodLiteral<"quiz">;
1602
- release: z.ZodOptional<z.ZodString>;
1603
- answers: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<{
1604
- [k: string]: string;
1605
- }, Record<string, string>>>;
1606
- }, z.core.$strict>, z.ZodObject<{
1607
- kind: z.ZodLiteral<"text">;
1608
- value: z.ZodString;
1609
- }, z.core.$strict>, z.ZodObject<{
1610
- kind: z.ZodLiteral<"url">;
1611
- value: z.ZodString;
1612
- }, z.core.$strict>]>;
1613
- type SubmissionEvidence = z.infer<typeof submissionEvidenceSchema>;
1614
- declare const submitSchema: z.ZodObject<{
1615
- actionId: z.ZodString;
1616
- quest: z.ZodString;
1617
- member: z.ZodString;
1618
- evidence: z.ZodOptional<z.ZodString>;
1619
- input: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1620
- kind: z.ZodLiteral<"quiz">;
1621
- release: z.ZodOptional<z.ZodString>;
1622
- answers: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<{
1623
- [k: string]: string;
1624
- }, Record<string, string>>>;
1625
- }, z.core.$strict>, z.ZodObject<{
1626
- kind: z.ZodLiteral<"text">;
1627
- value: z.ZodString;
1628
- }, z.core.$strict>, z.ZodObject<{
1629
- kind: z.ZodLiteral<"url">;
1630
- value: z.ZodString;
1631
- }, z.core.$strict>]>>;
1632
- release: z.ZodOptional<z.ZodString>;
1633
- faultAfterReview: z.ZodOptional<z.ZodBoolean>;
1634
- }, z.core.$strict>;
1635
- type SubmitInput = z.infer<typeof submitSchema>;
1636
- declare const attemptSchema: z.ZodObject<{
1637
- id: z.ZodString;
1638
- release: z.ZodString;
1639
- quest: z.ZodString;
1640
- member: z.ZodString;
1641
- evidence: z.ZodNullable<z.ZodString>;
1642
- input: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1643
- kind: z.ZodLiteral<"quiz">;
1644
- release: z.ZodOptional<z.ZodString>;
1645
- answers: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<{
1646
- [k: string]: string;
1647
- }, Record<string, string>>>;
1648
- }, z.core.$strict>, z.ZodObject<{
1649
- kind: z.ZodLiteral<"text">;
1650
- value: z.ZodString;
1651
- }, z.core.$strict>, z.ZodObject<{
1652
- kind: z.ZodLiteral<"url">;
1653
- value: z.ZodString;
1654
- }, z.core.$strict>]>>;
1655
- status: z.ZodEnum<{
1656
- "needs-review": "needs-review";
1657
- failed: "failed";
1658
- queued: "queued";
1659
- evaluating: "evaluating";
1660
- accepted: "accepted";
1661
- progressed: "progressed";
1662
- rejected: "rejected";
1663
- }>;
1664
- reason: z.ZodNullable<z.ZodString>;
1665
- retries: z.ZodNumber;
1666
- generation: z.ZodNumber;
1667
- completion: z.ZodNullable<z.ZodString>;
1668
- reviewRewards: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1669
- kind: z.ZodDefault<z.ZodLiteral<"points">>;
1670
- balance: z.ZodString;
1671
- amount: z.ZodNumber;
1672
- }, z.core.$strict>, z.ZodObject<{
1673
- kind: z.ZodLiteral<"tier">;
1674
- reward: z.ZodObject<{
1675
- id: z.ZodString;
1676
- title: z.ZodString;
1677
- tiers: z.ZodArray<z.ZodObject<{
1678
- id: z.ZodString;
1679
- title: z.ZodString;
1680
- }, z.core.$strict>>;
1681
- inventory: z.ZodObject<{
1682
- kind: z.ZodLiteral<"untracked">;
1683
- }, z.core.$strict>;
1684
- fulfillment: z.ZodObject<{
1685
- kind: z.ZodLiteral<"staff-handover">;
1686
- }, z.core.$strict>;
1687
- }, z.core.$strict>;
1688
- tier: z.ZodString;
1689
- }, z.core.$strict>, z.ZodObject<{
1690
- kind: z.ZodLiteral<"integration">;
1691
- provider: z.ZodLiteral<"discord">;
1692
- action: z.ZodLiteral<"grant-role">;
1693
- roleId: z.ZodString;
1694
- }, z.core.$strict>]>>>>;
1695
- createdAt: z.ZodNumber;
1696
- }, z.core.$strip>;
1697
- type Attempt = z.infer<typeof attemptSchema>;
1698
- declare const eventSchema: z.ZodObject<{
1699
- id: z.ZodNumber;
1700
- attempt: z.ZodNullable<z.ZodString>;
1701
- kind: z.ZodString;
1702
- detail: z.ZodString;
1703
- actor: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1704
- at: z.ZodNumber;
1705
- }, z.core.$strip>;
1706
- declare const pickupSelectionSchema: z.ZodObject<{
1707
- item: z.ZodString;
1708
- revision: z.ZodNumber;
1709
- }, z.core.$strict>;
1710
- declare const pickupAllocationSchema: z.ZodObject<{
1711
- item: z.ZodString;
1712
- label: z.ZodString;
1713
- }, z.core.$strict>;
1714
- declare const pickupPolicySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1715
- kind: z.ZodLiteral<"untracked">;
1716
- }, z.core.$strict>, z.ZodObject<{
1717
- kind: z.ZodLiteral<"at-pickup">;
1718
- tiers: z.ZodArray<z.ZodObject<{
1719
- tier: z.ZodString;
1720
- variants: z.ZodArray<z.ZodObject<{
1721
- item: z.ZodString;
1722
- label: z.ZodString;
1723
- }, z.core.$strict>>;
1724
- }, z.core.$strict>>;
1725
- }, z.core.$strict>], "kind">;
1726
- declare const pickupCatalogSchema: z.ZodObject<{
1727
- reward: z.ZodObject<{
1728
- id: z.ZodString;
1729
- title: z.ZodString;
1730
- tiers: z.ZodArray<z.ZodObject<{
1731
- id: z.ZodString;
1732
- title: z.ZodString;
1733
- }, z.core.$strict>>;
1734
- inventory: z.ZodObject<{
1735
- kind: z.ZodLiteral<"untracked">;
1736
- }, z.core.$strict>;
1737
- fulfillment: z.ZodObject<{
1738
- kind: z.ZodLiteral<"staff-handover">;
1739
- }, z.core.$strict>;
1740
- }, z.core.$strict>;
1741
- revision: z.ZodNumber;
1742
- policy: z.ZodDiscriminatedUnion<[z.ZodObject<{
1743
- kind: z.ZodLiteral<"untracked">;
1744
- }, z.core.$strict>, z.ZodObject<{
1745
- kind: z.ZodLiteral<"at-pickup">;
1746
- tiers: z.ZodArray<z.ZodObject<{
1747
- tier: z.ZodString;
1748
- variants: z.ZodArray<z.ZodObject<{
1749
- item: z.ZodString;
1750
- label: z.ZodString;
1751
- }, z.core.$strict>>;
1752
- }, z.core.$strict>>;
1753
- }, z.core.$strict>], "kind">;
1754
- }, z.core.$strip>;
1755
- declare const pickupAvailabilitySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1756
- kind: z.ZodLiteral<"untracked">;
1757
- }, z.core.$strict>, z.ZodObject<{
1758
- kind: z.ZodLiteral<"at-pickup">;
1759
- revision: z.ZodNumber;
1760
- variants: z.ZodArray<z.ZodObject<{
1761
- item: z.ZodString;
1762
- label: z.ZodString;
1763
- available: z.ZodNumber;
1764
- }, z.core.$strict>>;
1765
- }, z.core.$strict>], "kind">;
1766
- type PickupAvailability = z.infer<typeof pickupAvailabilitySchema>;
1767
- declare const configurePickupSchema: z.ZodObject<{
1768
- reward: z.ZodString;
1769
- revision: z.ZodNumber;
1770
- actionId: z.ZodString;
1771
- policy: z.ZodDiscriminatedUnion<[z.ZodObject<{
1772
- kind: z.ZodLiteral<"untracked">;
1773
- }, z.core.$strict>, z.ZodObject<{
1774
- kind: z.ZodLiteral<"at-pickup">;
1775
- tiers: z.ZodArray<z.ZodObject<{
1776
- tier: z.ZodString;
1777
- variants: z.ZodArray<z.ZodObject<{
1778
- label: z.ZodString;
1779
- item: z.ZodOptional<z.ZodString>;
1780
- }, z.core.$strict>>;
1781
- }, z.core.$strict>>;
1782
- }, z.core.$strict>], "kind">;
1783
- }, z.core.$strict>;
1784
- declare const entitlementSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1785
- status: z.ZodLiteral<"available">;
1786
- id: z.ZodString;
1787
- member: z.ZodString;
1788
- reward: z.ZodObject<{
1789
- id: z.ZodString;
1790
- title: z.ZodString;
1791
- tiers: z.ZodArray<z.ZodObject<{
1792
- id: z.ZodString;
1793
- title: z.ZodString;
1794
- }, z.core.$strict>>;
1795
- inventory: z.ZodObject<{
1796
- kind: z.ZodLiteral<"untracked">;
1797
- }, z.core.$strict>;
1798
- fulfillment: z.ZodObject<{
1799
- kind: z.ZodLiteral<"staff-handover">;
1800
- }, z.core.$strict>;
1801
- }, z.core.$strict>;
1802
- earnedTier: z.ZodString;
1803
- tier: z.ZodString;
1804
- revision: z.ZodNumber;
1805
- }, z.core.$strict>, z.ZodObject<{
1806
- status: z.ZodLiteral<"handing-over">;
1807
- handover: z.ZodString;
1808
- startedAt: z.ZodNumber;
1809
- allocation: z.ZodOptional<z.ZodObject<{
1810
- item: z.ZodString;
1811
- label: z.ZodString;
1812
- }, z.core.$strict>>;
1813
- id: z.ZodString;
1814
- member: z.ZodString;
1815
- reward: z.ZodObject<{
1816
- id: z.ZodString;
1817
- title: z.ZodString;
1818
- tiers: z.ZodArray<z.ZodObject<{
1819
- id: z.ZodString;
1820
- title: z.ZodString;
1821
- }, z.core.$strict>>;
1822
- inventory: z.ZodObject<{
1823
- kind: z.ZodLiteral<"untracked">;
1824
- }, z.core.$strict>;
1825
- fulfillment: z.ZodObject<{
1826
- kind: z.ZodLiteral<"staff-handover">;
1827
- }, z.core.$strict>;
1828
- }, z.core.$strict>;
1829
- earnedTier: z.ZodString;
1830
- tier: z.ZodString;
1831
- revision: z.ZodNumber;
1832
- }, z.core.$strict>, z.ZodObject<{
1833
- status: z.ZodLiteral<"collected">;
1834
- handover: z.ZodString;
1835
- startedAt: z.ZodNumber;
1836
- allocation: z.ZodOptional<z.ZodObject<{
1837
- item: z.ZodString;
1838
- label: z.ZodString;
1839
- }, z.core.$strict>>;
1840
- collectedAt: z.ZodNumber;
1841
- id: z.ZodString;
1842
- member: z.ZodString;
1843
- reward: z.ZodObject<{
1844
- id: z.ZodString;
1845
- title: z.ZodString;
1846
- tiers: z.ZodArray<z.ZodObject<{
1847
- id: z.ZodString;
1848
- title: z.ZodString;
1849
- }, z.core.$strict>>;
1850
- inventory: z.ZodObject<{
1851
- kind: z.ZodLiteral<"untracked">;
1852
- }, z.core.$strict>;
1853
- fulfillment: z.ZodObject<{
1854
- kind: z.ZodLiteral<"staff-handover">;
1855
- }, z.core.$strict>;
1856
- }, z.core.$strict>;
1857
- earnedTier: z.ZodString;
1858
- tier: z.ZodString;
1859
- revision: z.ZodNumber;
1860
- }, z.core.$strict>], "status">;
1861
- type Entitlement = z.infer<typeof entitlementSchema>;
1862
- declare const beginHandoverSchema: z.ZodObject<{
1863
- actionId: z.ZodString;
1864
- revision: z.ZodNumber;
1865
- selection: z.ZodOptional<z.ZodObject<{
1866
- item: z.ZodString;
1867
- revision: z.ZodNumber;
1868
- }, z.core.$strict>>;
1869
- }, z.core.$strict>;
1870
- declare const confirmHandoverSchema: z.ZodObject<{
1871
- actionId: z.ZodString;
1872
- handover: z.ZodString;
1873
- }, z.core.$strict>;
1874
- declare const completionRecordSchema: z.ZodObject<{
1875
- key: z.ZodDefault<z.ZodString>;
1876
- id: z.ZodString;
1877
- quest: z.ZodString;
1878
- member: z.ZodString;
1879
- }, z.core.$strip>;
1880
- declare const questAvailabilitySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1881
- kind: z.ZodLiteral<"available">;
1882
- input: z.ZodEnum<{
1883
- text: "text";
1884
- url: "url";
1885
- photo: "photo";
1886
- quiz: "quiz";
1887
- none: "none";
1888
- }>;
1889
- }, z.core.$strict>, z.ZodObject<{
1890
- kind: z.ZodLiteral<"completed">;
1891
- }, z.core.$strict>, z.ZodObject<{
1892
- kind: z.ZodLiteral<"locked">;
1893
- missing: z.ZodArray<z.ZodObject<{
1894
- quest: z.ZodString;
1895
- title: z.ZodString;
1896
- }, z.core.$strip>>;
1897
- }, z.core.$strict>, z.ZodObject<{
1898
- kind: z.ZodLiteral<"staff-required">;
1899
- }, z.core.$strict>, z.ZodObject<{
1900
- kind: z.ZodLiteral<"automatic">;
1901
- observation: z.ZodOptional<z.ZodObject<{
1902
- source: z.ZodString;
1903
- type: z.ZodString;
1904
- }, z.core.$strict>>;
1905
- }, z.core.$strict>, z.ZodObject<{
1906
- kind: z.ZodLiteral<"checking">;
1907
- attempt: z.ZodString;
1908
- }, z.core.$strict>, z.ZodObject<{
1909
- kind: z.ZodLiteral<"needs-review">;
1910
- attempt: z.ZodString;
1911
- }, z.core.$strict>, z.ZodObject<{
1912
- kind: z.ZodLiteral<"retryable">;
1913
- attempt: z.ZodString;
1914
- }, z.core.$strict>], "kind">;
1915
- type QuestAvailability = z.infer<typeof questAvailabilitySchema>;
1916
- declare const memberProgressSchema: z.ZodObject<{
1917
- member: z.ZodString;
1918
- quests: z.ZodArray<z.ZodObject<{
1919
- quest: z.ZodString;
1920
- key: z.ZodOptional<z.ZodString>;
1921
- release: z.ZodOptional<z.ZodString>;
1922
- title: z.ZodString;
1923
- presentation: z.ZodDefault<z.ZodObject<{
1924
- quiz: z.ZodOptional<z.ZodArray<z.ZodObject<{
1925
- id: z.ZodString;
1926
- prompt: z.ZodString;
1927
- choices: z.ZodArray<z.ZodObject<{
1928
- id: z.ZodString;
1929
- label: z.ZodString;
1930
- }, z.core.$strict>>;
1931
- }, z.core.$strict>>>;
1932
- instructions: z.ZodOptional<z.ZodString>;
1933
- video: z.ZodOptional<z.ZodObject<{
1934
- url: z.ZodString;
1935
- poster: z.ZodOptional<z.ZodString>;
1936
- captions: z.ZodOptional<z.ZodObject<{
1937
- url: z.ZodString;
1938
- language: z.ZodString;
1939
- label: z.ZodString;
1940
- }, z.core.$strict>>;
1941
- }, z.core.$strict>>;
1942
- }, z.core.$strict>>;
1943
- connections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1944
- discord: "discord";
1945
- x: "x";
1946
- google: "google";
1947
- apple: "apple";
1948
- }>>>;
1949
- trigger: z.ZodUnion<readonly [z.ZodObject<{
1950
- kind: z.ZodLiteral<"manual">;
1951
- input: z.ZodLiteral<"text">;
1952
- constraints: z.ZodObject<{
1953
- required: z.ZodDefault<z.ZodBoolean>;
1954
- minLength: z.ZodDefault<z.ZodNumber>;
1955
- maxLength: z.ZodDefault<z.ZodNumber>;
1956
- }, z.core.$strict>;
1957
- actor: z.ZodOptional<z.ZodEnum<{
1958
- staff: "staff";
1959
- member: "member";
1960
- }>>;
1961
- }, z.core.$strict>, z.ZodObject<{
1962
- kind: z.ZodLiteral<"manual">;
1963
- input: z.ZodLiteral<"url">;
1964
- constraints: z.ZodObject<{
1965
- required: z.ZodDefault<z.ZodBoolean>;
1966
- allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
1967
- }, z.core.$strict>;
1968
- actor: z.ZodOptional<z.ZodEnum<{
1969
- staff: "staff";
1970
- member: "member";
1971
- }>>;
1972
- }, z.core.$strict>, z.ZodObject<{
1973
- kind: z.ZodLiteral<"manual">;
1974
- input: z.ZodEnum<{
1975
- photo: "photo";
1976
- quiz: "quiz";
1977
- none: "none";
1978
- }>;
1979
- actor: z.ZodOptional<z.ZodEnum<{
1980
- staff: "staff";
1981
- member: "member";
1982
- }>>;
1983
- }, z.core.$strict>, z.ZodObject<{
1984
- kind: z.ZodLiteral<"automatic">;
1985
- observation: z.ZodOptional<z.ZodObject<{
1986
- source: z.ZodString;
1987
- type: z.ZodString;
1988
- }, z.core.$strict>>;
1989
- content: z.ZodOptional<z.ZodObject<{
1990
- tracker: z.ZodString;
1991
- window: z.ZodObject<{
1992
- start: z.ZodNumber;
1993
- end: z.ZodOptional<z.ZodNumber>;
1994
- }, z.core.$strict>;
1995
- enrollment: z.ZodDefault<z.ZodEnum<{
1996
- required: "required";
1997
- none: "none";
1998
- }>>;
1999
- posts: z.ZodDefault<z.ZodEnum<{
2000
- "after-enrollment": "after-enrollment";
2001
- "since-start": "since-start";
2002
- }>>;
2003
- historical: z.ZodDefault<z.ZodEnum<{
2004
- staff: "staff";
2005
- automatic: "automatic";
2006
- claim: "claim";
2007
- }>>;
2008
- }, z.core.$strict>>;
2009
- tracker: z.ZodOptional<z.ZodObject<{
2010
- tracker: z.ZodString;
2011
- source: z.ZodEnum<{
2012
- custom: "custom";
2013
- "x-search": "x-search";
2014
- }>;
2015
- on: z.ZodOptional<z.ZodEnum<{
2016
- "new-record": "new-record";
2017
- "new-observation": "new-observation";
2018
- "data-changed": "data-changed";
2019
- }>>;
2020
- where: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
2021
- path: z.ZodString;
2022
- equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
2023
- }, z.core.$strict>, z.ZodObject<{
2024
- path: z.ZodString;
2025
- gt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
2026
- setting: z.ZodString;
2027
- }, z.core.$strict>]>>;
2028
- gte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
2029
- setting: z.ZodString;
2030
- }, z.core.$strict>]>>;
2031
- lt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
2032
- setting: z.ZodString;
2033
- }, z.core.$strict>]>>;
2034
- lte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
2035
- setting: z.ZodString;
2036
- }, z.core.$strict>]>>;
2037
- }, z.core.$strict>]>>;
2038
- beneficiary: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"replied-to">]>;
2039
- }, z.core.$strict>>;
2040
- }, z.core.$strict>]>;
2041
- availability: z.ZodDiscriminatedUnion<[z.ZodObject<{
2042
- kind: z.ZodLiteral<"available">;
2043
- input: z.ZodEnum<{
2044
- text: "text";
2045
- url: "url";
2046
- photo: "photo";
2047
- quiz: "quiz";
2048
- none: "none";
2049
- }>;
2050
- }, z.core.$strict>, z.ZodObject<{
2051
- kind: z.ZodLiteral<"completed">;
2052
- }, z.core.$strict>, z.ZodObject<{
2053
- kind: z.ZodLiteral<"locked">;
2054
- missing: z.ZodArray<z.ZodObject<{
2055
- quest: z.ZodString;
2056
- title: z.ZodString;
2057
- }, z.core.$strip>>;
2058
- }, z.core.$strict>, z.ZodObject<{
2059
- kind: z.ZodLiteral<"staff-required">;
2060
- }, z.core.$strict>, z.ZodObject<{
2061
- kind: z.ZodLiteral<"automatic">;
2062
- observation: z.ZodOptional<z.ZodObject<{
2063
- source: z.ZodString;
2064
- type: z.ZodString;
2065
- }, z.core.$strict>>;
2066
- }, z.core.$strict>, z.ZodObject<{
2067
- kind: z.ZodLiteral<"checking">;
2068
- attempt: z.ZodString;
2069
- }, z.core.$strict>, z.ZodObject<{
2070
- kind: z.ZodLiteral<"needs-review">;
2071
- attempt: z.ZodString;
2072
- }, z.core.$strict>, z.ZodObject<{
2073
- kind: z.ZodLiteral<"retryable">;
2074
- attempt: z.ZodString;
2075
- }, z.core.$strict>], "kind">;
2076
- completed: z.ZodBoolean;
2077
- completion: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
2078
- kind: z.ZodLiteral<"streak">;
2079
- days: z.ZodNumber;
2080
- timeZone: z.ZodString;
2081
- }, z.core.$strict>, z.ZodObject<{
2082
- kind: z.ZodLiteral<"once">;
2083
- }, z.core.$strict>, z.ZodObject<{
2084
- kind: z.ZodLiteral<"keyed">;
2085
- }, z.core.$strict>], "kind">>;
2086
- streak: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2087
- goal: z.ZodNumber;
2088
- current: z.ZodNumber;
2089
- best: z.ZodNumber;
2090
- today: z.ZodString;
2091
- todayQualified: z.ZodBoolean;
2092
- timeZone: z.ZodString;
2093
- nextBoundary: z.ZodNumber;
2094
- pendingTimeZone: z.ZodNullable<z.ZodObject<{
2095
- timeZone: z.ZodString;
2096
- effectiveAt: z.ZodNumber;
2097
- }, z.core.$strip>>;
2098
- days: z.ZodArray<z.ZodObject<{
2099
- day: z.ZodNumber;
2100
- date: z.ZodString;
2101
- timeZone: z.ZodString;
2102
- occurredAt: z.ZodNumber;
2103
- }, z.core.$strip>>;
2104
- milestone: z.ZodDiscriminatedUnion<[z.ZodObject<{
2105
- status: z.ZodLiteral<"pending">;
2106
- }, z.core.$strip>, z.ZodObject<{
2107
- status: z.ZodLiteral<"awarded">;
2108
- completion: z.ZodString;
2109
- achievedAt: z.ZodNumber;
2110
- }, z.core.$strip>, z.ZodObject<{
2111
- status: z.ZodLiteral<"budget-exhausted">;
2112
- budget: z.ZodString;
2113
- achievedAt: z.ZodNumber;
2114
- }, z.core.$strip>], "status">;
2115
- }, z.core.$strip>>>;
2116
- completionCount: z.ZodDefault<z.ZodNumber>;
2117
- visibility: z.ZodDefault<z.ZodEnum<{
2118
- visible: "visible";
2119
- hidden: "hidden";
2120
- }>>;
2121
- missing: z.ZodArray<z.ZodObject<{
2122
- quest: z.ZodString;
2123
- title: z.ZodString;
2124
- }, z.core.$strip>>;
2125
- attempt: z.ZodNullable<z.ZodObject<{
2126
- id: z.ZodString;
2127
- release: z.ZodString;
2128
- quest: z.ZodString;
2129
- member: z.ZodString;
2130
- evidence: z.ZodNullable<z.ZodString>;
2131
- input: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
2132
- kind: z.ZodLiteral<"quiz">;
2133
- release: z.ZodOptional<z.ZodString>;
2134
- answers: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<{
2135
- [k: string]: string;
2136
- }, Record<string, string>>>;
2137
- }, z.core.$strict>, z.ZodObject<{
2138
- kind: z.ZodLiteral<"text">;
2139
- value: z.ZodString;
2140
- }, z.core.$strict>, z.ZodObject<{
2141
- kind: z.ZodLiteral<"url">;
2142
- value: z.ZodString;
2143
- }, z.core.$strict>]>>;
2144
- status: z.ZodEnum<{
2145
- "needs-review": "needs-review";
2146
- failed: "failed";
2147
- queued: "queued";
2148
- evaluating: "evaluating";
2149
- accepted: "accepted";
2150
- progressed: "progressed";
2151
- rejected: "rejected";
2152
- }>;
2153
- reason: z.ZodNullable<z.ZodString>;
2154
- retries: z.ZodNumber;
2155
- generation: z.ZodNumber;
2156
- completion: z.ZodNullable<z.ZodString>;
2157
- reviewRewards: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2158
- kind: z.ZodDefault<z.ZodLiteral<"points">>;
2159
- balance: z.ZodString;
2160
- amount: z.ZodNumber;
2161
- }, z.core.$strict>, z.ZodObject<{
2162
- kind: z.ZodLiteral<"tier">;
2163
- reward: z.ZodObject<{
2164
- id: z.ZodString;
2165
- title: z.ZodString;
2166
- tiers: z.ZodArray<z.ZodObject<{
2167
- id: z.ZodString;
2168
- title: z.ZodString;
2169
- }, z.core.$strict>>;
2170
- inventory: z.ZodObject<{
2171
- kind: z.ZodLiteral<"untracked">;
2172
- }, z.core.$strict>;
2173
- fulfillment: z.ZodObject<{
2174
- kind: z.ZodLiteral<"staff-handover">;
2175
- }, z.core.$strict>;
2176
- }, z.core.$strict>;
2177
- tier: z.ZodString;
2178
- }, z.core.$strict>, z.ZodObject<{
2179
- kind: z.ZodLiteral<"integration">;
2180
- provider: z.ZodLiteral<"discord">;
2181
- action: z.ZodLiteral<"grant-role">;
2182
- roleId: z.ZodString;
2183
- }, z.core.$strict>]>>>>;
2184
- createdAt: z.ZodNumber;
2185
- }, z.core.$strip>>;
2186
- }, z.core.$strip>>;
2187
- entitlements: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2188
- status: z.ZodLiteral<"available">;
2189
- id: z.ZodString;
2190
- member: z.ZodString;
2191
- reward: z.ZodObject<{
2192
- id: z.ZodString;
2193
- title: z.ZodString;
2194
- tiers: z.ZodArray<z.ZodObject<{
2195
- id: z.ZodString;
2196
- title: z.ZodString;
2197
- }, z.core.$strict>>;
2198
- inventory: z.ZodObject<{
2199
- kind: z.ZodLiteral<"untracked">;
2200
- }, z.core.$strict>;
2201
- fulfillment: z.ZodObject<{
2202
- kind: z.ZodLiteral<"staff-handover">;
2203
- }, z.core.$strict>;
2204
- }, z.core.$strict>;
2205
- earnedTier: z.ZodString;
2206
- tier: z.ZodString;
2207
- revision: z.ZodNumber;
2208
- }, z.core.$strict>, z.ZodObject<{
2209
- status: z.ZodLiteral<"handing-over">;
2210
- handover: z.ZodString;
2211
- startedAt: z.ZodNumber;
2212
- allocation: z.ZodOptional<z.ZodObject<{
2213
- item: z.ZodString;
2214
- label: z.ZodString;
2215
- }, z.core.$strict>>;
2216
- id: z.ZodString;
2217
- member: z.ZodString;
2218
- reward: z.ZodObject<{
2219
- id: z.ZodString;
2220
- title: z.ZodString;
2221
- tiers: z.ZodArray<z.ZodObject<{
2222
- id: z.ZodString;
2223
- title: z.ZodString;
2224
- }, z.core.$strict>>;
2225
- inventory: z.ZodObject<{
2226
- kind: z.ZodLiteral<"untracked">;
2227
- }, z.core.$strict>;
2228
- fulfillment: z.ZodObject<{
2229
- kind: z.ZodLiteral<"staff-handover">;
2230
- }, z.core.$strict>;
2231
- }, z.core.$strict>;
2232
- earnedTier: z.ZodString;
2233
- tier: z.ZodString;
2234
- revision: z.ZodNumber;
2235
- }, z.core.$strict>, z.ZodObject<{
2236
- status: z.ZodLiteral<"collected">;
2237
- handover: z.ZodString;
2238
- startedAt: z.ZodNumber;
2239
- allocation: z.ZodOptional<z.ZodObject<{
2240
- item: z.ZodString;
2241
- label: z.ZodString;
2242
- }, z.core.$strict>>;
2243
- collectedAt: z.ZodNumber;
2244
- id: z.ZodString;
2245
- member: z.ZodString;
2246
- reward: z.ZodObject<{
2247
- id: z.ZodString;
2248
- title: z.ZodString;
2249
- tiers: z.ZodArray<z.ZodObject<{
2250
- id: z.ZodString;
2251
- title: z.ZodString;
2252
- }, z.core.$strict>>;
2253
- inventory: z.ZodObject<{
2254
- kind: z.ZodLiteral<"untracked">;
2255
- }, z.core.$strict>;
2256
- fulfillment: z.ZodObject<{
2257
- kind: z.ZodLiteral<"staff-handover">;
2258
- }, z.core.$strict>;
2259
- }, z.core.$strict>;
2260
- earnedTier: z.ZodString;
2261
- tier: z.ZodString;
2262
- revision: z.ZodNumber;
2263
- }, z.core.$strict>], "status">>;
2264
- }, z.core.$strip>;
2265
- declare const snapshotSchema: z.ZodObject<{
2266
- releases: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2267
- quest: z.ZodString;
2268
- runtimeVersion: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
2269
- title: z.ZodString;
2270
- presentation: z.ZodDefault<z.ZodObject<{
2271
- quiz: z.ZodOptional<z.ZodArray<z.ZodObject<{
2272
- id: z.ZodString;
2273
- prompt: z.ZodString;
2274
- choices: z.ZodArray<z.ZodObject<{
2275
- id: z.ZodString;
2276
- label: z.ZodString;
2277
- }, z.core.$strict>>;
2278
- }, z.core.$strict>>>;
2279
- instructions: z.ZodOptional<z.ZodString>;
2280
- video: z.ZodOptional<z.ZodObject<{
2281
- url: z.ZodString;
2282
- poster: z.ZodOptional<z.ZodString>;
2283
- captions: z.ZodOptional<z.ZodObject<{
2284
- url: z.ZodString;
2285
- language: z.ZodString;
2286
- label: z.ZodString;
2287
- }, z.core.$strict>>;
2288
- }, z.core.$strict>>;
2289
- }, z.core.$strict>>;
2290
- integrations: z.ZodDefault<z.ZodArray<z.ZodEnum<{
2291
- discord: "discord";
2292
- }>>>;
2293
- fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2294
- kind: z.ZodLiteral<"point-ledger">;
2295
- default: z.ZodString;
2296
- label: z.ZodString;
2297
- description: z.ZodOptional<z.ZodString>;
2298
- }, z.core.$strict>, z.ZodObject<{
2299
- kind: z.ZodLiteral<"datetime">;
2300
- default: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<string, string>>;
2301
- label: z.ZodString;
2302
- description: z.ZodOptional<z.ZodString>;
2303
- }, z.core.$strict>, z.ZodObject<{
2304
- kind: z.ZodLiteral<"resource">;
2305
- default: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
2306
- source: z.ZodUnion<readonly [z.ZodObject<{
2307
- provider: z.ZodLiteral<"domino">;
2308
- resource: z.ZodLiteral<"point-ledger">;
2309
- }, z.core.$strict>, z.ZodObject<{
2310
- provider: z.ZodLiteral<"discord">;
2311
- resource: z.ZodLiteral<"channel">;
2312
- types: z.ZodArray<z.ZodEnum<{
2313
- text: "text";
2314
- announcement: "announcement";
2315
- }>>;
2316
- }, z.core.$strict>, z.ZodObject<{
2317
- provider: z.ZodLiteral<"discord">;
2318
- resource: z.ZodLiteral<"role">;
2319
- assignable: z.ZodDefault<z.ZodBoolean>;
2320
- }, z.core.$strict>]>;
2321
- label: z.ZodString;
2322
- description: z.ZodOptional<z.ZodString>;
2323
- }, z.core.$strict>, z.ZodObject<{
2324
- kind: z.ZodLiteral<"quiz">;
2325
- default: z.ZodArray<z.ZodObject<{
2326
- id: z.ZodString;
2327
- prompt: z.ZodString;
2328
- choices: z.ZodArray<z.ZodObject<{
2329
- id: z.ZodString;
2330
- label: z.ZodString;
2331
- }, z.core.$strict>>;
2332
- correct: z.ZodString;
2333
- }, z.core.$strict>>;
2334
- label: z.ZodString;
2335
- description: z.ZodOptional<z.ZodString>;
2336
- }, z.core.$strict>, z.ZodObject<{
2337
- kind: z.ZodLiteral<"text">;
2338
- default: z.ZodString;
2339
- minLength: z.ZodNumber;
2340
- maxLength: z.ZodNumber;
2341
- multiline: z.ZodBoolean;
2342
- label: z.ZodString;
2343
- description: z.ZodOptional<z.ZodString>;
2344
- }, z.core.$strict>, z.ZodObject<{
2345
- kind: z.ZodLiteral<"integer">;
2346
- default: z.ZodNumber;
2347
- min: z.ZodNumber;
2348
- max: z.ZodNumber;
2349
- label: z.ZodString;
2350
- description: z.ZodOptional<z.ZodString>;
2351
- }, z.core.$strict>, z.ZodObject<{
2352
- kind: z.ZodLiteral<"boolean">;
2353
- default: z.ZodBoolean;
2354
- label: z.ZodString;
2355
- description: z.ZodOptional<z.ZodString>;
2356
- }, z.core.$strict>, z.ZodObject<{
2357
- kind: z.ZodLiteral<"choice">;
2358
- default: z.ZodString;
2359
- options: z.ZodArray<z.ZodString>;
2360
- label: z.ZodString;
2361
- description: z.ZodOptional<z.ZodString>;
2362
- }, z.core.$strict>], "kind">>;
2363
- values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodObject<{
2364
- id: z.ZodString;
2365
- prompt: z.ZodString;
2366
- choices: z.ZodArray<z.ZodObject<{
2367
- id: z.ZodString;
2368
- label: z.ZodString;
2369
- }, z.core.$strict>>;
2370
- correct: z.ZodString;
2371
- }, z.core.$strict>>]>>;
2372
- rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2373
- kind: z.ZodDefault<z.ZodLiteral<"points">>;
2374
- balance: z.ZodString;
2375
- amount: z.ZodNumber;
2376
- }, z.core.$strict>, z.ZodObject<{
2377
- kind: z.ZodLiteral<"tier">;
2378
- reward: z.ZodObject<{
2379
- id: z.ZodString;
2380
- title: z.ZodString;
2381
- tiers: z.ZodArray<z.ZodObject<{
2382
- id: z.ZodString;
2383
- title: z.ZodString;
2384
- }, z.core.$strict>>;
2385
- inventory: z.ZodObject<{
2386
- kind: z.ZodLiteral<"untracked">;
2387
- }, z.core.$strict>;
2388
- fulfillment: z.ZodObject<{
2389
- kind: z.ZodLiteral<"staff-handover">;
2390
- }, z.core.$strict>;
2391
- }, z.core.$strict>;
2392
- tier: z.ZodString;
2393
- }, z.core.$strict>, z.ZodObject<{
2394
- kind: z.ZodLiteral<"integration">;
2395
- provider: z.ZodLiteral<"discord">;
2396
- action: z.ZodLiteral<"grant-role">;
2397
- roleId: z.ZodString;
2398
- }, z.core.$strict>]>>;
2399
- humanReview: z.ZodBoolean;
2400
- trigger: z.ZodUnion<readonly [z.ZodObject<{
2401
- kind: z.ZodLiteral<"manual">;
2402
- input: z.ZodLiteral<"text">;
2403
- constraints: z.ZodObject<{
2404
- required: z.ZodDefault<z.ZodBoolean>;
2405
- minLength: z.ZodDefault<z.ZodNumber>;
2406
- maxLength: z.ZodDefault<z.ZodNumber>;
2407
- }, z.core.$strict>;
2408
- actor: z.ZodOptional<z.ZodEnum<{
2409
- staff: "staff";
2410
- member: "member";
2411
- }>>;
2412
- }, z.core.$strict>, z.ZodObject<{
2413
- kind: z.ZodLiteral<"manual">;
2414
- input: z.ZodLiteral<"url">;
2415
- constraints: z.ZodObject<{
2416
- required: z.ZodDefault<z.ZodBoolean>;
2417
- allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
2418
- }, z.core.$strict>;
2419
- actor: z.ZodOptional<z.ZodEnum<{
2420
- staff: "staff";
2421
- member: "member";
2422
- }>>;
2423
- }, z.core.$strict>, z.ZodObject<{
2424
- kind: z.ZodLiteral<"manual">;
2425
- input: z.ZodEnum<{
2426
- photo: "photo";
2427
- quiz: "quiz";
2428
- none: "none";
2429
- }>;
2430
- actor: z.ZodOptional<z.ZodEnum<{
2431
- staff: "staff";
2432
- member: "member";
2433
- }>>;
2434
- }, z.core.$strict>, z.ZodObject<{
2435
- kind: z.ZodLiteral<"automatic">;
2436
- observation: z.ZodOptional<z.ZodObject<{
2437
- source: z.ZodString;
2438
- type: z.ZodString;
2439
- }, z.core.$strict>>;
2440
- content: z.ZodOptional<z.ZodObject<{
2441
- tracker: z.ZodString;
2442
- window: z.ZodObject<{
2443
- start: z.ZodNumber;
2444
- end: z.ZodOptional<z.ZodNumber>;
2445
- }, z.core.$strict>;
2446
- enrollment: z.ZodDefault<z.ZodEnum<{
2447
- required: "required";
2448
- none: "none";
2449
- }>>;
2450
- posts: z.ZodDefault<z.ZodEnum<{
2451
- "after-enrollment": "after-enrollment";
2452
- "since-start": "since-start";
2453
- }>>;
2454
- historical: z.ZodDefault<z.ZodEnum<{
2455
- staff: "staff";
2456
- automatic: "automatic";
2457
- claim: "claim";
2458
- }>>;
2459
- }, z.core.$strict>>;
2460
- tracker: z.ZodOptional<z.ZodObject<{
2461
- tracker: z.ZodString;
2462
- source: z.ZodEnum<{
2463
- custom: "custom";
2464
- "x-search": "x-search";
2465
- }>;
2466
- on: z.ZodOptional<z.ZodEnum<{
2467
- "new-record": "new-record";
2468
- "new-observation": "new-observation";
2469
- "data-changed": "data-changed";
2470
- }>>;
2471
- where: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
2472
- path: z.ZodString;
2473
- equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
2474
- }, z.core.$strict>, z.ZodObject<{
2475
- path: z.ZodString;
2476
- gt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
2477
- setting: z.ZodString;
2478
- }, z.core.$strict>]>>;
2479
- gte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
2480
- setting: z.ZodString;
2481
- }, z.core.$strict>]>>;
2482
- lt: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
2483
- setting: z.ZodString;
2484
- }, z.core.$strict>]>>;
2485
- lte: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
2486
- setting: z.ZodString;
2487
- }, z.core.$strict>]>>;
2488
- }, z.core.$strict>]>>;
2489
- beneficiary: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"replied-to">]>;
2490
- }, z.core.$strict>>;
2491
- }, z.core.$strict>]>;
2492
- performance: z.ZodOptional<z.ZodObject<{
2493
- metrics: z.ZodArray<z.ZodEnum<{
2494
- likes: "likes";
2495
- replies: "replies";
2496
- reposts: "reposts";
2497
- quotes: "quotes";
2498
- views: "views";
2499
- bookmarks: "bookmarks";
2500
- }>>;
2501
- maxAgeMs: z.ZodDefault<z.ZodNumber>;
2502
- }, z.core.$strict>>;
2503
- requires: z.ZodDefault<z.ZodArray<z.ZodObject<{
2504
- quest: z.ZodString;
2505
- }, z.core.$strip>>>;
2506
- completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
2507
- kind: z.ZodLiteral<"streak">;
2508
- days: z.ZodNumber;
2509
- timeZone: z.ZodString;
2510
- }, z.core.$strict>, z.ZodObject<{
2511
- kind: z.ZodLiteral<"once">;
2512
- }, z.core.$strict>, z.ZodObject<{
2513
- kind: z.ZodLiteral<"keyed">;
2514
- }, z.core.$strict>], "kind">;
2515
- visibility: z.ZodDefault<z.ZodEnum<{
2516
- visible: "visible";
2517
- hidden: "hidden";
2518
- }>>;
2519
- profile: z.ZodOptional<z.ZodObject<{
2520
- visible: z.ZodBoolean;
2521
- }, z.core.$strict>>;
2522
- budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
2523
- id: z.ZodString;
2524
- scope: z.ZodEnum<{
2525
- member: "member";
2526
- project: "project";
2527
- }>;
2528
- period: z.ZodEnum<{
2529
- lifetime: "lifetime";
2530
- day: "day";
2531
- week: "week";
2532
- }>;
2533
- limit: z.ZodNumber;
2534
- cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
2535
- balance: z.ZodString;
2536
- }, z.core.$strict>]>;
2537
- }, z.core.$strict>>>;
2538
- key: z.ZodOptional<z.ZodString>;
2539
- code: z.ZodString;
2540
- provider: z.ZodEnum<{
2541
- "workers-ai": "workers-ai";
2542
- "fixture-pass": "fixture-pass";
2543
- "fixture-fail": "fixture-fail";
2544
- "fixture-unclear": "fixture-unclear";
2545
- "fixture-error": "fixture-error";
2546
- }>;
2547
- id: z.ZodString;
2548
- createdAt: z.ZodNumber;
2549
- legacy: z.ZodDefault<z.ZodBoolean>;
2550
- origin: z.ZodOptional<z.ZodObject<{
2551
- typeVersion: z.ZodString;
2552
- }, z.core.$strict>>;
2553
- lifecycle: z.ZodDefault<z.ZodEnum<{
2554
- paused: "paused";
2555
- active: "active";
2556
- archived: "archived";
2557
- }>>;
2558
- configuration: z.ZodOptional<z.ZodObject<{
2559
- defaults: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodObject<{
2560
- id: z.ZodString;
2561
- prompt: z.ZodString;
2562
- choices: z.ZodArray<z.ZodObject<{
2563
- id: z.ZodString;
2564
- label: z.ZodString;
2565
- }, z.core.$strict>>;
2566
- correct: z.ZodString;
2567
- }, z.core.$strict>>]>>;
2568
- overrides: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodObject<{
2569
- id: z.ZodString;
2570
- prompt: z.ZodString;
2571
- choices: z.ZodArray<z.ZodObject<{
2572
- id: z.ZodString;
2573
- label: z.ZodString;
2574
- }, z.core.$strict>>;
2575
- correct: z.ZodString;
2576
- }, z.core.$strict>>]>>;
2577
- preserved: z.ZodArray<z.ZodString>;
2578
- }, z.core.$strict>>;
2579
- }, z.core.$strict>, z.ZodPipe<z.ZodObject<{
2580
- quest: z.ZodString;
2581
- title: z.ZodString;
2582
- criteria: z.ZodString;
2583
- humanReview: z.ZodBoolean;
2584
- rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2585
- kind: z.ZodDefault<z.ZodLiteral<"points">>;
2586
- balance: z.ZodString;
2587
- amount: z.ZodNumber;
2588
- }, z.core.$strict>, z.ZodObject<{
2589
- kind: z.ZodLiteral<"tier">;
2590
- reward: z.ZodObject<{
2591
- id: z.ZodString;
2592
- title: z.ZodString;
2593
- tiers: z.ZodArray<z.ZodObject<{
2594
- id: z.ZodString;
2595
- title: z.ZodString;
2596
- }, z.core.$strict>>;
2597
- inventory: z.ZodObject<{
2598
- kind: z.ZodLiteral<"untracked">;
2599
- }, z.core.$strict>;
2600
- fulfillment: z.ZodObject<{
2601
- kind: z.ZodLiteral<"staff-handover">;
2602
- }, z.core.$strict>;
2603
- }, z.core.$strict>;
2604
- tier: z.ZodString;
2605
- }, z.core.$strict>, z.ZodObject<{
2606
- kind: z.ZodLiteral<"integration">;
2607
- provider: z.ZodLiteral<"discord">;
2608
- action: z.ZodLiteral<"grant-role">;
2609
- roleId: z.ZodString;
2610
- }, z.core.$strict>]>>;
2611
- code: z.ZodString;
2612
- provider: z.ZodEnum<{
2613
- "workers-ai": "workers-ai";
2614
- "fixture-pass": "fixture-pass";
2615
- "fixture-fail": "fixture-fail";
2616
- "fixture-unclear": "fixture-unclear";
2617
- "fixture-error": "fixture-error";
2618
- }>;
2619
- id: z.ZodString;
2620
- createdAt: z.ZodNumber;
2621
- }, z.core.$strip>, z.ZodTransform<{
2622
- quest: string;
2623
- runtimeVersion: 1 | 2;
2624
- title: string;
2625
- presentation: {
2626
- quiz?: {
2627
- id: string;
2628
- prompt: string;
2629
- choices: {
2630
- id: string;
2631
- label: string;
2632
- }[];
2633
- }[] | undefined;
2634
- instructions?: string | undefined;
2635
- video?: {
2636
- url: string;
2637
- poster?: string | undefined;
2638
- captions?: {
2639
- url: string;
2640
- language: string;
2641
- label: string;
2642
- } | undefined;
2643
- } | undefined;
2644
- };
2645
- integrations: "discord"[];
2646
- fields: Record<string, {
2647
- kind: "point-ledger";
2648
- default: string;
2649
- label: string;
2650
- description?: string | undefined;
2651
- } | {
2652
- kind: "datetime";
2653
- default: string;
2654
- label: string;
2655
- description?: string | undefined;
2656
- } | {
2657
- kind: "resource";
2658
- default: string;
2659
- source: {
2660
- provider: "domino";
2661
- resource: "point-ledger";
2662
- } | {
2663
- provider: "discord";
2664
- resource: "channel";
2665
- types: ("text" | "announcement")[];
2666
- } | {
2667
- provider: "discord";
2668
- resource: "role";
2669
- assignable: boolean;
2670
- };
2671
- label: string;
2672
- description?: string | undefined;
2673
- } | {
2674
- kind: "quiz";
2675
- default: {
2676
- id: string;
2677
- prompt: string;
2678
- choices: {
2679
- id: string;
2680
- label: string;
2681
- }[];
2682
- correct: string;
2683
- }[];
2684
- label: string;
2685
- description?: string | undefined;
2686
- } | {
2687
- kind: "text";
2688
- default: string;
2689
- minLength: number;
2690
- maxLength: number;
2691
- multiline: boolean;
2692
- label: string;
2693
- description?: string | undefined;
2694
- } | {
2695
- kind: "integer";
2696
- default: number;
2697
- min: number;
2698
- max: number;
2699
- label: string;
2700
- description?: string | undefined;
2701
- } | {
2702
- kind: "boolean";
2703
- default: boolean;
2704
- label: string;
2705
- description?: string | undefined;
2706
- } | {
2707
- kind: "choice";
2708
- default: string;
2709
- options: string[];
2710
- label: string;
2711
- description?: string | undefined;
2712
- }>;
2713
- values: Record<string, string | number | boolean | {
2714
- id: string;
2715
- prompt: string;
2716
- choices: {
2717
- id: string;
2718
- label: string;
2719
- }[];
2720
- correct: string;
2721
- }[]>;
2722
- rewards: ({
2723
- kind: "tier";
2724
- reward: {
2725
- id: string;
2726
- title: string;
2727
- tiers: {
2728
- id: string;
2729
- title: string;
2730
- }[];
2731
- inventory: {
2732
- kind: "untracked";
2733
- };
2734
- fulfillment: {
2735
- kind: "staff-handover";
2736
- };
2737
- };
2738
- tier: string;
2739
- } | {
2740
- kind: "points";
2741
- balance: string;
2742
- amount: number;
2743
- } | {
2744
- kind: "integration";
2745
- provider: "discord";
2746
- action: "grant-role";
2747
- roleId: string;
2748
- })[];
2749
- humanReview: boolean;
2750
- trigger: {
2751
- kind: "automatic";
2752
- observation?: {
2753
- source: string;
2754
- type: string;
2755
- } | undefined;
2756
- content?: {
2757
- tracker: string;
2758
- window: {
2759
- start: number;
2760
- end?: number | undefined;
2761
- };
2762
- enrollment: "required" | "none";
2763
- posts: "after-enrollment" | "since-start";
2764
- historical: "staff" | "automatic" | "claim";
2765
- } | undefined;
2766
- tracker?: {
2767
- tracker: string;
2768
- source: "custom" | "x-search";
2769
- beneficiary: string;
2770
- on?: "new-record" | "new-observation" | "data-changed" | undefined;
2771
- where?: {
2772
- path: string;
2773
- gt?: number | {
2774
- setting: string;
2775
- } | undefined;
2776
- gte?: number | {
2777
- setting: string;
2778
- } | undefined;
2779
- lt?: number | {
2780
- setting: string;
2781
- } | undefined;
2782
- lte?: number | {
2783
- setting: string;
2784
- } | undefined;
2785
- } | {
2786
- path: string;
2787
- equals: string | number | boolean;
2788
- } | undefined;
2789
- } | undefined;
2790
- } | {
2791
- kind: "manual";
2792
- input: "text";
2793
- constraints: {
2794
- required: boolean;
2795
- minLength: number;
2796
- maxLength: number;
2797
- };
2798
- actor?: "staff" | "member" | undefined;
2799
- } | {
2800
- kind: "manual";
2801
- input: "url";
2802
- constraints: {
2803
- required: boolean;
2804
- allowedHosts?: string[] | undefined;
2805
- };
2806
- actor?: "staff" | "member" | undefined;
2807
- } | {
2808
- kind: "manual";
2809
- input: "photo" | "quiz" | "none";
2810
- actor?: "staff" | "member" | undefined;
2811
- };
2812
- requires: {
2813
- quest: string;
2814
- }[];
2815
- completion: {
2816
- kind: "streak";
2817
- days: number;
2818
- timeZone: string;
2819
- } | {
2820
- kind: "once";
2821
- } | {
2822
- kind: "keyed";
2823
- };
2824
- visibility: "visible" | "hidden";
2825
- budgets: {
2826
- id: string;
2827
- scope: "member" | "project";
2828
- period: "lifetime" | "day" | "week";
2829
- limit: number;
2830
- cost: number | {
2831
- balance: string;
2832
- };
2833
- }[];
2834
- code: string;
2835
- provider: "workers-ai" | "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error";
2836
- id: string;
2837
- createdAt: number;
2838
- legacy: boolean;
2839
- lifecycle: "paused" | "active" | "archived";
2840
- performance?: {
2841
- metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
2842
- maxAgeMs: number;
2843
- } | undefined;
2844
- profile?: {
2845
- visible: boolean;
2846
- } | undefined;
2847
- key?: string | undefined;
2848
- origin?: {
2849
- typeVersion: string;
2850
- } | undefined;
2851
- configuration?: {
2852
- defaults: Record<string, string | number | boolean | {
2853
- id: string;
2854
- prompt: string;
2855
- choices: {
2856
- id: string;
2857
- label: string;
2858
- }[];
2859
- correct: string;
2860
- }[]>;
2861
- overrides: Record<string, string | number | boolean | {
2862
- id: string;
2863
- prompt: string;
2864
- choices: {
2865
- id: string;
2866
- label: string;
2867
- }[];
2868
- correct: string;
2869
- }[]>;
2870
- preserved: string[];
2871
- } | undefined;
2872
- }, {
2873
- quest: string;
2874
- title: string;
2875
- criteria: string;
2876
- humanReview: boolean;
2877
- rewards: ({
2878
- kind: "tier";
2879
- reward: {
2880
- id: string;
2881
- title: string;
2882
- tiers: {
2883
- id: string;
2884
- title: string;
2885
- }[];
2886
- inventory: {
2887
- kind: "untracked";
2888
- };
2889
- fulfillment: {
2890
- kind: "staff-handover";
2891
- };
2892
- };
2893
- tier: string;
2894
- } | {
2895
- kind: "points";
2896
- balance: string;
2897
- amount: number;
2898
- } | {
2899
- kind: "integration";
2900
- provider: "discord";
2901
- action: "grant-role";
2902
- roleId: string;
2903
- })[];
2904
- code: string;
2905
- provider: "workers-ai" | "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error";
2906
- id: string;
2907
- createdAt: number;
2908
- }>>]>>;
2909
- completions: z.ZodArray<z.ZodObject<{
2910
- key: z.ZodDefault<z.ZodString>;
2911
- id: z.ZodString;
2912
- quest: z.ZodString;
2913
- member: z.ZodString;
2914
- }, z.core.$strip>>;
2915
- entitlements: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2916
- status: z.ZodLiteral<"available">;
2917
- id: z.ZodString;
2918
- member: z.ZodString;
2919
- reward: z.ZodObject<{
2920
- id: z.ZodString;
2921
- title: z.ZodString;
2922
- tiers: z.ZodArray<z.ZodObject<{
2923
- id: z.ZodString;
2924
- title: z.ZodString;
2925
- }, z.core.$strict>>;
2926
- inventory: z.ZodObject<{
2927
- kind: z.ZodLiteral<"untracked">;
2928
- }, z.core.$strict>;
2929
- fulfillment: z.ZodObject<{
2930
- kind: z.ZodLiteral<"staff-handover">;
2931
- }, z.core.$strict>;
2932
- }, z.core.$strict>;
2933
- earnedTier: z.ZodString;
2934
- tier: z.ZodString;
2935
- revision: z.ZodNumber;
2936
- }, z.core.$strict>, z.ZodObject<{
2937
- status: z.ZodLiteral<"handing-over">;
2938
- handover: z.ZodString;
2939
- startedAt: z.ZodNumber;
2940
- allocation: z.ZodOptional<z.ZodObject<{
2941
- item: z.ZodString;
2942
- label: z.ZodString;
2943
- }, z.core.$strict>>;
2944
- id: z.ZodString;
2945
- member: z.ZodString;
2946
- reward: z.ZodObject<{
2947
- id: z.ZodString;
2948
- title: z.ZodString;
2949
- tiers: z.ZodArray<z.ZodObject<{
2950
- id: z.ZodString;
2951
- title: z.ZodString;
2952
- }, z.core.$strict>>;
2953
- inventory: z.ZodObject<{
2954
- kind: z.ZodLiteral<"untracked">;
2955
- }, z.core.$strict>;
2956
- fulfillment: z.ZodObject<{
2957
- kind: z.ZodLiteral<"staff-handover">;
2958
- }, z.core.$strict>;
2959
- }, z.core.$strict>;
2960
- earnedTier: z.ZodString;
2961
- tier: z.ZodString;
2962
- revision: z.ZodNumber;
2963
- }, z.core.$strict>, z.ZodObject<{
2964
- status: z.ZodLiteral<"collected">;
2965
- handover: z.ZodString;
2966
- startedAt: z.ZodNumber;
2967
- allocation: z.ZodOptional<z.ZodObject<{
2968
- item: z.ZodString;
2969
- label: z.ZodString;
2970
- }, z.core.$strict>>;
2971
- collectedAt: z.ZodNumber;
2972
- id: z.ZodString;
2973
- member: z.ZodString;
2974
- reward: z.ZodObject<{
2975
- id: z.ZodString;
2976
- title: z.ZodString;
2977
- tiers: z.ZodArray<z.ZodObject<{
2978
- id: z.ZodString;
2979
- title: z.ZodString;
2980
- }, z.core.$strict>>;
2981
- inventory: z.ZodObject<{
2982
- kind: z.ZodLiteral<"untracked">;
2983
- }, z.core.$strict>;
2984
- fulfillment: z.ZodObject<{
2985
- kind: z.ZodLiteral<"staff-handover">;
2986
- }, z.core.$strict>;
2987
- }, z.core.$strict>;
2988
- earnedTier: z.ZodString;
2989
- tier: z.ZodString;
2990
- revision: z.ZodNumber;
2991
- }, z.core.$strict>], "status">>;
2992
- attempts: z.ZodArray<z.ZodObject<{
2993
- id: z.ZodString;
2994
- release: z.ZodString;
2995
- quest: z.ZodString;
2996
- member: z.ZodString;
2997
- evidence: z.ZodNullable<z.ZodString>;
2998
- input: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
2999
- kind: z.ZodLiteral<"quiz">;
3000
- release: z.ZodOptional<z.ZodString>;
3001
- answers: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<{
3002
- [k: string]: string;
3003
- }, Record<string, string>>>;
3004
- }, z.core.$strict>, z.ZodObject<{
3005
- kind: z.ZodLiteral<"text">;
3006
- value: z.ZodString;
3007
- }, z.core.$strict>, z.ZodObject<{
3008
- kind: z.ZodLiteral<"url">;
3009
- value: z.ZodString;
3010
- }, z.core.$strict>]>>;
3011
- status: z.ZodEnum<{
3012
- "needs-review": "needs-review";
3013
- failed: "failed";
3014
- queued: "queued";
3015
- evaluating: "evaluating";
3016
- accepted: "accepted";
3017
- progressed: "progressed";
3018
- rejected: "rejected";
3019
- }>;
3020
- reason: z.ZodNullable<z.ZodString>;
3021
- retries: z.ZodNumber;
3022
- generation: z.ZodNumber;
3023
- completion: z.ZodNullable<z.ZodString>;
3024
- reviewRewards: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
3025
- kind: z.ZodDefault<z.ZodLiteral<"points">>;
3026
- balance: z.ZodString;
3027
- amount: z.ZodNumber;
3028
- }, z.core.$strict>, z.ZodObject<{
3029
- kind: z.ZodLiteral<"tier">;
3030
- reward: z.ZodObject<{
3031
- id: z.ZodString;
3032
- title: z.ZodString;
3033
- tiers: z.ZodArray<z.ZodObject<{
3034
- id: z.ZodString;
3035
- title: z.ZodString;
3036
- }, z.core.$strict>>;
3037
- inventory: z.ZodObject<{
3038
- kind: z.ZodLiteral<"untracked">;
3039
- }, z.core.$strict>;
3040
- fulfillment: z.ZodObject<{
3041
- kind: z.ZodLiteral<"staff-handover">;
3042
- }, z.core.$strict>;
3043
- }, z.core.$strict>;
3044
- tier: z.ZodString;
3045
- }, z.core.$strict>, z.ZodObject<{
3046
- kind: z.ZodLiteral<"integration">;
3047
- provider: z.ZodLiteral<"discord">;
3048
- action: z.ZodLiteral<"grant-role">;
3049
- roleId: z.ZodString;
3050
- }, z.core.$strict>]>>>>;
3051
- createdAt: z.ZodNumber;
3052
- }, z.core.$strip>>;
3053
- balances: z.ZodArray<z.ZodObject<{
3054
- member: z.ZodString;
3055
- balance: z.ZodString;
3056
- earned: z.ZodNumber;
3057
- held: z.ZodNumber;
3058
- available: z.ZodNumber;
3059
- }, z.core.$strip>>;
3060
- events: z.ZodArray<z.ZodObject<{
3061
- id: z.ZodNumber;
3062
- attempt: z.ZodNullable<z.ZodString>;
3063
- kind: z.ZodString;
3064
- detail: z.ZodString;
3065
- actor: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3066
- at: z.ZodNumber;
3067
- }, z.core.$strip>>;
3068
- }, z.core.$strip>;
3069
- type Snapshot = z.infer<typeof snapshotSchema>;
3070
- declare const evidenceSchema: z.ZodObject<{
3071
- id: z.ZodString;
3072
- member: z.ZodString;
3073
- type: z.ZodEnum<{
3074
- "image/jpeg": "image/jpeg";
3075
- "image/png": "image/png";
3076
- }>;
3077
- size: z.ZodNumber;
3078
- }, z.core.$strip>;
3079
- declare const errorSchema: z.ZodObject<{
3080
- error: z.ZodString;
3081
- code: z.ZodOptional<z.ZodEnum<{
3082
- "stale-quiz": "stale-quiz";
3083
- "quest-updated": "quest-updated";
3084
- "invalid-submission": "invalid-submission";
3085
- }>>;
3086
- missing: z.ZodOptional<z.ZodArray<z.ZodObject<{
3087
- quest: z.ZodString;
3088
- title: z.ZodString;
3089
- }, z.core.$strip>>>;
3090
- }, z.core.$strip>;
3091
- declare const staffDecisionSchema: z.ZodObject<{
3092
- actionId: z.ZodString;
3093
- generation: z.ZodNumber;
3094
- decision: z.ZodEnum<{
3095
- accept: "accept";
3096
- reject: "reject";
3097
- }>;
3098
- reason: z.ZodString;
3099
- }, z.core.$strict>;
3100
- declare const stockSchema: z.ZodObject<{
3101
- item: z.ZodString;
3102
- quantity: z.ZodNumber;
3103
- }, z.core.$strict>;
3104
- declare const reservationSchema: z.ZodObject<{
3105
- actionId: z.ZodString;
3106
- member: z.ZodString;
3107
- item: z.ZodString;
3108
- balance: z.ZodString;
3109
- price: z.ZodNumber;
3110
- }, z.core.$strict>;
3111
- type MemberProgress = z.infer<typeof memberProgressSchema>;
3112
- declare const reviewListSchema: z.ZodObject<{
3113
- member: z.ZodOptional<z.ZodString>;
3114
- quest: z.ZodOptional<z.ZodString>;
3115
- limit: z.ZodDefault<z.ZodNumber>;
3116
- cursor: z.ZodOptional<z.ZodString>;
3117
- }, z.core.$strict>;
3118
- declare const memberListSchema: z.ZodObject<{
3119
- prefix: z.ZodOptional<z.ZodString>;
3120
- limit: z.ZodDefault<z.ZodNumber>;
3121
- cursor: z.ZodOptional<z.ZodString>;
3122
- }, z.core.$strict>;
3123
- declare const reviewItemSchema: z.ZodObject<{
3124
- attempt: z.ZodObject<{
3125
- id: z.ZodString;
3126
- release: z.ZodString;
3127
- quest: z.ZodString;
3128
- member: z.ZodString;
3129
- evidence: z.ZodNullable<z.ZodString>;
3130
- input: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
3131
- kind: z.ZodLiteral<"quiz">;
3132
- release: z.ZodOptional<z.ZodString>;
3133
- answers: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<{
3134
- [k: string]: string;
3135
- }, Record<string, string>>>;
3136
- }, z.core.$strict>, z.ZodObject<{
3137
- kind: z.ZodLiteral<"text">;
3138
- value: z.ZodString;
3139
- }, z.core.$strict>, z.ZodObject<{
3140
- kind: z.ZodLiteral<"url">;
3141
- value: z.ZodString;
3142
- }, z.core.$strict>]>>;
3143
- status: z.ZodEnum<{
3144
- "needs-review": "needs-review";
3145
- failed: "failed";
3146
- queued: "queued";
3147
- evaluating: "evaluating";
3148
- accepted: "accepted";
3149
- progressed: "progressed";
3150
- rejected: "rejected";
3151
- }>;
3152
- reason: z.ZodNullable<z.ZodString>;
3153
- retries: z.ZodNumber;
3154
- generation: z.ZodNumber;
3155
- completion: z.ZodNullable<z.ZodString>;
3156
- reviewRewards: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
3157
- kind: z.ZodDefault<z.ZodLiteral<"points">>;
3158
- balance: z.ZodString;
3159
- amount: z.ZodNumber;
3160
- }, z.core.$strict>, z.ZodObject<{
3161
- kind: z.ZodLiteral<"tier">;
3162
- reward: z.ZodObject<{
3163
- id: z.ZodString;
3164
- title: z.ZodString;
3165
- tiers: z.ZodArray<z.ZodObject<{
3166
- id: z.ZodString;
3167
- title: z.ZodString;
3168
- }, z.core.$strict>>;
3169
- inventory: z.ZodObject<{
3170
- kind: z.ZodLiteral<"untracked">;
3171
- }, z.core.$strict>;
3172
- fulfillment: z.ZodObject<{
3173
- kind: z.ZodLiteral<"staff-handover">;
3174
- }, z.core.$strict>;
3175
- }, z.core.$strict>;
3176
- tier: z.ZodString;
3177
- }, z.core.$strict>, z.ZodObject<{
3178
- kind: z.ZodLiteral<"integration">;
3179
- provider: z.ZodLiteral<"discord">;
3180
- action: z.ZodLiteral<"grant-role">;
3181
- roleId: z.ZodString;
3182
- }, z.core.$strict>]>>>>;
3183
- createdAt: z.ZodNumber;
3184
- }, z.core.$strip>;
3185
- title: z.ZodString;
3186
- checks: z.ZodArray<z.ZodObject<{
3187
- criteria: z.ZodString;
3188
- result: z.ZodObject<{
3189
- kind: z.ZodEnum<{
3190
- pass: "pass";
3191
- fail: "fail";
3192
- unclear: "unclear";
3193
- }>;
3194
- reason: z.ZodString;
3195
- }, z.core.$strict>;
3196
- }, z.core.$strip>>;
3197
- }, z.core.$strip>;
3198
- declare const reviewPageSchema: z.ZodObject<{
3199
- items: z.ZodArray<z.ZodObject<{
3200
- attempt: z.ZodObject<{
3201
- id: z.ZodString;
3202
- release: z.ZodString;
3203
- quest: z.ZodString;
3204
- member: z.ZodString;
3205
- evidence: z.ZodNullable<z.ZodString>;
3206
- input: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
3207
- kind: z.ZodLiteral<"quiz">;
3208
- release: z.ZodOptional<z.ZodString>;
3209
- answers: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<{
3210
- [k: string]: string;
3211
- }, Record<string, string>>>;
3212
- }, z.core.$strict>, z.ZodObject<{
3213
- kind: z.ZodLiteral<"text">;
3214
- value: z.ZodString;
3215
- }, z.core.$strict>, z.ZodObject<{
3216
- kind: z.ZodLiteral<"url">;
3217
- value: z.ZodString;
3218
- }, z.core.$strict>]>>;
3219
- status: z.ZodEnum<{
3220
- "needs-review": "needs-review";
3221
- failed: "failed";
3222
- queued: "queued";
3223
- evaluating: "evaluating";
3224
- accepted: "accepted";
3225
- progressed: "progressed";
3226
- rejected: "rejected";
3227
- }>;
3228
- reason: z.ZodNullable<z.ZodString>;
3229
- retries: z.ZodNumber;
3230
- generation: z.ZodNumber;
3231
- completion: z.ZodNullable<z.ZodString>;
3232
- reviewRewards: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
3233
- kind: z.ZodDefault<z.ZodLiteral<"points">>;
3234
- balance: z.ZodString;
3235
- amount: z.ZodNumber;
3236
- }, z.core.$strict>, z.ZodObject<{
3237
- kind: z.ZodLiteral<"tier">;
3238
- reward: z.ZodObject<{
3239
- id: z.ZodString;
3240
- title: z.ZodString;
3241
- tiers: z.ZodArray<z.ZodObject<{
3242
- id: z.ZodString;
3243
- title: z.ZodString;
3244
- }, z.core.$strict>>;
3245
- inventory: z.ZodObject<{
3246
- kind: z.ZodLiteral<"untracked">;
3247
- }, z.core.$strict>;
3248
- fulfillment: z.ZodObject<{
3249
- kind: z.ZodLiteral<"staff-handover">;
3250
- }, z.core.$strict>;
3251
- }, z.core.$strict>;
3252
- tier: z.ZodString;
3253
- }, z.core.$strict>, z.ZodObject<{
3254
- kind: z.ZodLiteral<"integration">;
3255
- provider: z.ZodLiteral<"discord">;
3256
- action: z.ZodLiteral<"grant-role">;
3257
- roleId: z.ZodString;
3258
- }, z.core.$strict>]>>>>;
3259
- createdAt: z.ZodNumber;
3260
- }, z.core.$strip>;
3261
- title: z.ZodString;
3262
- checks: z.ZodArray<z.ZodObject<{
3263
- criteria: z.ZodString;
3264
- result: z.ZodObject<{
3265
- kind: z.ZodEnum<{
3266
- pass: "pass";
3267
- fail: "fail";
3268
- unclear: "unclear";
3269
- }>;
3270
- reason: z.ZodString;
3271
- }, z.core.$strict>;
3272
- }, z.core.$strip>>;
3273
- }, z.core.$strip>>;
3274
- nextCursor: z.ZodNullable<z.ZodString>;
3275
- }, z.core.$strip>;
3276
- declare const memberPageSchema: z.ZodObject<{
3277
- items: z.ZodArray<z.ZodObject<{
3278
- member: z.ZodString;
3279
- }, z.core.$strip>>;
3280
- nextCursor: z.ZodNullable<z.ZodString>;
3281
- }, z.core.$strip>;
3282
- type ReviewPage = z.infer<typeof reviewPageSchema>;
3283
- type MemberPage = z.infer<typeof memberPageSchema>;
3284
- declare const createStockItemSchema: z.ZodObject<{
3285
- actionId: z.ZodString;
3286
- name: z.ZodString;
3287
- }, z.core.$strict>;
3288
- declare const stockItemSchema: z.ZodObject<{
3289
- id: z.ZodString;
3290
- name: z.ZodString;
3291
- }, z.core.$strip>;
3292
- /** Immutable performance input, including the content-approved reward selection. */
3293
- declare const contentPerformanceSnapshotSchema: z.ZodObject<{
3294
- contentAttempt: z.ZodString;
3295
- observation: z.ZodString;
3296
- observedAt: z.ZodNumber;
3297
- metrics: z.ZodRecord<z.ZodEnum<{
3298
- likes: "likes";
3299
- replies: "replies";
3300
- reposts: "reposts";
3301
- quotes: "quotes";
3302
- views: "views";
3303
- bookmarks: "bookmarks";
3304
- }> & z.core.$partial, z.ZodNumber>;
3305
- rewards: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
3306
- kind: z.ZodDefault<z.ZodLiteral<"points">>;
3307
- balance: z.ZodString;
3308
- amount: z.ZodNumber;
3309
- }, z.core.$strict>, z.ZodObject<{
3310
- kind: z.ZodLiteral<"tier">;
3311
- reward: z.ZodObject<{
3312
- id: z.ZodString;
3313
- title: z.ZodString;
3314
- tiers: z.ZodArray<z.ZodObject<{
3315
- id: z.ZodString;
3316
- title: z.ZodString;
3317
- }, z.core.$strict>>;
3318
- inventory: z.ZodObject<{
3319
- kind: z.ZodLiteral<"untracked">;
3320
- }, z.core.$strict>;
3321
- fulfillment: z.ZodObject<{
3322
- kind: z.ZodLiteral<"staff-handover">;
3323
- }, z.core.$strict>;
3324
- }, z.core.$strict>;
3325
- tier: z.ZodString;
3326
- }, z.core.$strict>, z.ZodObject<{
3327
- kind: z.ZodLiteral<"integration">;
3328
- provider: z.ZodLiteral<"discord">;
3329
- action: z.ZodLiteral<"grant-role">;
3330
- roleId: z.ZodString;
3331
- }, z.core.$strict>]>>;
3332
- }, z.core.$strict>;
3333
- type ContentPerformanceSnapshot = z.infer<typeof contentPerformanceSnapshotSchema>;
3334
- declare const contentPerformanceQuerySchema: z.ZodObject<{
3335
- quest: z.ZodString;
3336
- member: z.ZodOptional<z.ZodString>;
3337
- before: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
3338
- content: z.ZodString;
3339
- }, z.core.$strict>;
3340
- declare const contentPerformancePageSchema: z.ZodObject<{
3341
- current: z.ZodObject<{
3342
- state: z.ZodEnum<{
3343
- pending: "pending";
3344
- superseded: "superseded";
3345
- qualified: "qualified";
3346
- unqualified: "unqualified";
3347
- "needs-review": "needs-review";
3348
- failed: "failed";
3349
- "content-pending": "content-pending";
3350
- "content-unqualified": "content-unqualified";
3351
- waiting: "waiting";
3352
- }>;
3353
- reason: z.ZodNullable<z.ZodString>;
3354
- contentAttempt: z.ZodString;
3355
- attempt: z.ZodNullable<z.ZodString>;
3356
- reward: z.ZodObject<{
3357
- attempt: z.ZodNullable<z.ZodString>;
3358
- completion: z.ZodNullable<z.ZodString>;
3359
- state: z.ZodEnum<{
3360
- excluded: "excluded";
3361
- unresolved: "unresolved";
3362
- awarded: "awarded";
3363
- }>;
3364
- }, z.core.$strict>;
3365
- }, z.core.$strict>;
3366
- items: z.ZodArray<z.ZodObject<{
3367
- attempt: z.ZodString;
3368
- contentAttempt: z.ZodString;
3369
- observation: z.ZodString;
3370
- observedAt: z.ZodNumber;
3371
- metrics: z.ZodRecord<z.ZodEnum<{
3372
- likes: "likes";
3373
- replies: "replies";
3374
- reposts: "reposts";
3375
- quotes: "quotes";
3376
- views: "views";
3377
- bookmarks: "bookmarks";
3378
- }> & z.core.$partial, z.ZodNumber>;
3379
- state: z.ZodEnum<{
3380
- pending: "pending";
3381
- superseded: "superseded";
3382
- qualified: "qualified";
3383
- unqualified: "unqualified";
3384
- "needs-review": "needs-review";
3385
- failed: "failed";
3386
- }>;
3387
- reason: z.ZodNullable<z.ZodString>;
3388
- }, z.core.$strict>>;
3389
- next: z.ZodNullable<z.ZodNumber>;
3390
- }, z.core.$strict>;
3391
-
3392
- export { type Attempt, type ContentPerformanceSnapshot, type Decision, type Entitlement, type MemberPage, type MemberProgress, type PhotoResult, type PickupAvailability, type PublishedRelease, type QuestAvailability, type QuestDescription, type QuestPresentation, type QuestProfile, type QuestSettingsInput, type QuizEvidence, type ReleaseInput, type ReviewPage, type Reward, type Snapshot, type SubmissionEvidence, type SubmitInput, type TextResult, type TextReviewInput, type TieredRewardDefinition, type TieredRewardReference, artifactSchema, attemptSchema, batchReleaseSchema, beginHandoverSchema, completionRecordSchema, configurePickupSchema, confirmHandoverSchema, contentPerformancePageSchema, contentPerformanceQuerySchema, contentPerformanceSnapshotSchema, createStockItemSchema, decisionSchema, entitlementSchema, errorSchema, eventSchema, evidenceSchema, identifier, integrationRewardSchema, mediaUrlSchema, memberListSchema, memberPageSchema, memberProgressSchema, photoResultSchema, pickupAllocationSchema, pickupAvailabilitySchema, pickupCatalogSchema, pickupPolicySchema, pickupSelectionSchema, pointsRewardSchema, prerequisiteSchema, publishedReleaseSchema, questAvailabilitySchema, questDescriptionSchema, questPresentationSchema, questProfileSchema, questSettingsInputSchema, quizAnswersSchema, quizEvidenceSchema, releaseSchema, reservationSchema, reviewItemSchema, reviewListSchema, reviewModeSchema, reviewPageSchema, rewardBundleSchema, rewardKey, rewardSchema, snapshotSchema, staffDecisionSchema, stockItemSchema, stockSchema, storedReviewModeSchema, submissionEvidenceSchema, submitSchema, templateSchema, textResultSchema, textReviewInputSchema, tierRewardSchema, tieredRewardDefinitionSchema, tieredRewardReferenceSchema, triggerSchema };
19
+ export { identifier };