@domino-sdk/relay 0.28.0 → 0.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/authoring.d.ts +11 -3
- package/dist/authoring.js +5 -3
- package/dist/browser.d.ts +205 -189
- package/dist/browser.js +6 -6
- package/dist/{chunk-ZP43MHO3.js → chunk-5LLU7UUV.js} +42 -10
- package/dist/{chunk-IXLY3A7B.js → chunk-BE5V6RFD.js} +8 -0
- package/dist/{chunk-AL5GXMKI.js → chunk-LAKQCIHX.js} +1 -1
- package/dist/{chunk-D6BX627V.js → chunk-MRKFRCCI.js} +43 -50
- package/dist/{chunk-NHSA6ATH.js → chunk-MVCKCDNR.js} +2 -2
- package/dist/{chunk-AKB266O5.js → chunk-YKS6P4IP.js} +13 -2
- package/dist/index.d.ts +557 -494
- package/dist/index.js +20 -8
- package/dist/portal-proxy.js +3 -3
- package/dist/react/index.d.ts +201 -38
- package/dist/react/index.js +139 -18
- package/dist/schema.d.ts +27 -1
- package/dist/schema.js +3 -1
- package/dist/{submission-input-D3t8WKOk.d.ts → submission-input-C0cOmO4Q.d.ts} +15 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a7 as ValueEvidence, L as LinkedWallet, H as referralAcceptSchema, J as LeaderboardQuery, K as WalletAddressInput, M as walletSignatureSchema, N as WalletSigner, P as walletChallengeInputSchema, Q as walletProofSchema, R as AuthProvider, V as WalletSignature, Y as engagementPageQuerySchema, Z as contentQualificationQuerySchema, _ as contentAdmissionQuerySchema, $ as contentEnrollmentInputSchema, a0 as contentReleaseInputSchema } from './submission-input-
|
|
2
|
-
export { a1 as AccountConnection, A as AdmittedContent, B as Budget, C as ContentMetric, a8 as ContentPerformancePolicy, a9 as ContentPolicy, a5 as CosmosChain, a6 as CosmosNetwork, D as DiscordMember, b as DiscordMessage, aa as EngagementDefinition, ab as EvmChain, ac as EvmChainInfo, ad as ImageAssetArtifact, ae as ImageComparison, af as ImageExtraction, ag as ImageFields, ah as ImageInspection, I as ImageReader, ai as ImageReference, aj as ImageRequest, ak as ImageSightings, i as IntegrationProvider, al as LeaderboardDefinition, a4 as LeaderboardPage, O as Observation,
|
|
1
|
+
import { a7 as ValueEvidence, L as LinkedWallet, H as referralAcceptSchema, J as LeaderboardQuery, K as WalletAddressInput, M as walletSignatureSchema, N as WalletSigner, P as walletChallengeInputSchema, Q as walletProofSchema, R as AuthProvider, V as WalletSignature, Y as engagementPageQuerySchema, Z as contentQualificationQuerySchema, _ as contentAdmissionQuerySchema, $ as contentEnrollmentInputSchema, a0 as contentReleaseInputSchema } from './submission-input-C0cOmO4Q.js';
|
|
2
|
+
export { a1 as AccountConnection, A as AdmittedContent, B as Budget, C as ContentMetric, a8 as ContentPerformancePolicy, a9 as ContentPolicy, a5 as CosmosChain, a6 as CosmosNetwork, D as DiscordMember, b as DiscordMessage, aa as EngagementDefinition, ab as EvmChain, ac as EvmChainInfo, ad as ImageAssetArtifact, ae as ImageComparison, af as ImageExtraction, ag as ImageFields, ah as ImageInspection, I as ImageReader, ai as ImageReference, aj as ImageRequest, ak as ImageSightings, i as IntegrationProvider, al as LeaderboardDefinition, a4 as LeaderboardPage, am as LeaderboardPlacement, O as Observation, an as ProjectIntegration, ao as PublishedImage, ap as QuizContent, aq as ReferralDefinition, ar as ResourceOption, as as ResourceSource, at as SettingField, au as SettingsValues, S as SolanaBalance, j as StreakPolicy, av as StreakProgress, k as TextEvidence, l as TextOptions, aw as TrackerAttribution, f as TrackerBeneficiary, ax as TrackerContent, ay as TrackerContentQuery, e as TrackerDefinition, az as TrackerOutcome, aA as TrackerOutcomeQuery, aB as TrackerPreview, aC as TrackerPreviewInput, aD as TrackerQuery, a as TrackerReader, aE as TrackerRecord, aF as TrackerStatus, T as TrackerTriggerContext, g as TrackerTriggerPolicy, U as UrlEvidence, m as UrlOptions, aG as WALLETS_PER_CHAIN, d as WalletBalance, c as WalletBalanceQuery, aH as WalletChain, W as WalletConnection, aI as WalletMessageChallenge, a2 as WalletSignInNetwork, aJ as WalletUnlinkInput, aK as XConnection, aL as XPost, aM as XProfile, X as XReader, aN as XTweet, aO as accountConnectionSchema, aP as admittedContentSchema, aQ as authProviderSchema, aR as budgetSchema, aS as caip10, aT as communityTimeZoneSchema, aU as compatibleSettingKinds, aV as completionKeySchema, aW as completionPolicySchema, n as content, aX as contentAdmissionPageSchema, aY as contentAdmissionSchema, aZ as contentEnrollmentSchema, a_ as contentMetricSchema, a$ as contentMetricsSchema, b0 as contentPerformancePolicySchema, b1 as contentPolicySchema, b2 as contentQualificationDecisionSchema, b3 as contentQualificationPageSchema, b4 as contentQualificationSchema, b5 as cosmosAddressSchema, b6 as cosmosChain, b7 as cosmosNetworkSchema, p as customSource, q as defineEngagementReward, r as defineLeaderboard, s as defineReferral, t as defineTracker, u as discord, b8 as discordMemberInputSchema, b9 as discordMemberSchema, ba as discordMessageInputSchema, bb as discordMessageSchema, bc as discordReactionSchema, bd as discordServerSchema, be as engagementArtifactSchema, bf as engagementBoundaryPageSchema, bg as engagementChangePreviewInputSchema, bh as engagementChangePreviewSchema, bi as engagementChangeSchema, bj as engagementDefinitionSchema, bk as engagementDeploymentEntrySchema, bl as engagementPageSchema, bm as engagementPublishSchema, bn as engagementRuleSchema, bo as engagementScoreInputSchema, bp as engagementScoreSchema, bq as engagementSettlementSchema, br as engagementVersionPageSchema, bs as engagementVersionQuerySchema, bt as evmAddressSchema, bu as evmChainSchema, bv as evmChains, v as formatUnits, bw as imageAssetArtifactSchema, bx as imageComparisonSchema, by as imageExtractionSchema, bz as imageFieldSchema, bA as imageFieldsSchema, bB as imageInspectionSchema, bC as imageReferenceSchema, bD as imageRequestSchema, bE as imageSightingsSchema, bF as imageUploadRequestSchema, bG as imageUploadsSchema, bH as integrationProviderSchema, bI as isContentParticipantRoute, bJ as isWalletParticipantRoute, bK as isWalletSignInRoute, bL as leaderboardArtifactSchema, bM as leaderboardAuthoringSchema, bN as leaderboardDefinitionSchema, bO as leaderboardExclusionSchema, bP as leaderboardGroupSchema, bQ as leaderboardPageSchema, bR as leaderboardPlacementSchema, bS as leaderboardPreviewSchema, bT as leaderboardQuerySchema, bU as leaderboardRowSchema, bV as leaderboardWindowSchema, bW as linkedWalletSchema, bX as missingResourceSettings, bY as observationInputSchema, bZ as observationReceiptSchema, b_ as observationSchema, o as observationTriggerSchema, b$ as parseImageExtraction, c0 as parseImageResult, c1 as parseSettings, w as parseUnits, x as perContent, y as pointLedgers, c2 as pointsAccountSchema, c3 as pointsEntrySchema, c4 as pointsMutationSchema, c5 as pointsResultSchema, c6 as projectIntegrationSchema, c7 as publishedImageSchema, c8 as publishedLeaderboardSchema, c9 as publishedReferralSchema, ca as publishedTrackerSchema, cb as quizChoiceSchema, cc as quizContentSchema, cd as quizQuestionSchema, ce as quizQuestionsSchema, cf as referralAccountSchema, cg as referralArtifactSchema, ch as referralAuthoringSchema, ci as referralControlSchema, cj as referralDefinitionSchema, ck as referralHistorySchema, cl as referralManagementSchema, cm as referralRelationshipSchema, a3 as referralSummarySchema, cn as resourceOptionsSchema, co as resourceRequestSchema, cp as resourceSourceSchema, cq as settingFieldSchema, z as settings, cr as settingsFieldsSchema, cs as settingsValuesSchema, ct as solanaAddressSchema, cu as solanaBalanceSchema, cv as solanaMainnet, E as streak, cw as streakPolicySchema, cx as streakProgressSchema, cy as textEvidenceSchema, cz as textOptionsSchema, cA as trackerArtifactSchema, cB as trackerAttributionSchema, cC as trackerBeneficiarySchema, cD as trackerContentQuerySchema, cE as trackerContentReadSchema, cF as trackerContentSchema, cG as trackerControlSchema, cH as trackerDefinitionSchema, cI as trackerEvidenceSchema, cJ as trackerIngestResultSchema, cK as trackerIngestSchema, cL as trackerOutcomePageSchema, cM as trackerOutcomeQuerySchema, cN as trackerOutcomeRetrySchema, cO as trackerOutcomeSchema, cP as trackerPageSchema, cQ as trackerPreviewInputSchema, cR as trackerPreviewLimits, cS as trackerPreviewSchema, cT as trackerQuerySchema, cU as trackerRecordInputSchema, cV as trackerRecordSchema, cW as trackerSourceSchema, cX as trackerStatusSchema, cY as trackerSummarySchema, F as trackerTriggerContextSchema, cZ as trackerTriggerPolicySchema, c_ as trackerTriggerRecordSchema, c$ as urlEvidenceSchema, d0 as urlOptionsSchema, d1 as validateSubmissionValue, d2 as valueEvidenceSchema, d3 as walletAddressInput, d4 as walletAddressInputSchema, d5 as walletBalanceSchema, d6 as walletChainSchema, d7 as walletChallengeSchema, d8 as walletConnectionSchema, d9 as walletMessageChallengeSchema, da as walletSignInFamilies, db as walletSignInNetwork, dc as walletSignInNetworkSchema, dd as walletSignInNetworksSchema, de as walletUnlinkInputSchema, G as x, df as xConnectionSchema, dg as xContentBodySchema, dh as xIdSchema, di as xPostId, dj as xPostSchema, dk as xProfileSchema, dl as xRequestSchema, dm as xTweetSchema } from './submission-input-C0cOmO4Q.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { errorSchema, QuizEvidence, Attempt, SubmitInput, MemberProgress, questDescriptionSchema, PublishedRelease, ReleaseInput, beginHandoverSchema, contentPerformanceQuerySchema } from './schema.js';
|
|
5
|
-
export { ContentPerformanceSnapshot, Decision, Entitlement, MemberPage, PhotoResult, PickupAvailability, QuestAvailability, QuestDescription, QuestPresentation, QuestSettingsInput, ReviewPage, Reward, Snapshot, SubmissionEvidence, TextResult, TextReviewInput, TieredRewardDefinition, TieredRewardReference, artifactSchema, attemptSchema, batchReleaseSchema, completionRecordSchema, configurePickupSchema, confirmHandoverSchema, contentPerformancePageSchema, contentPerformanceSnapshotSchema, createStockItemSchema, decisionSchema, entitlementSchema, eventSchema, evidenceSchema, identifier, integrationRewardSchema, mediaUrlSchema, memberListSchema, memberPageSchema, memberProgressSchema, photoResultSchema, pickupAllocationSchema, pickupAvailabilitySchema, pickupCatalogSchema, pickupPolicySchema, pickupSelectionSchema, pointsRewardSchema, prerequisiteSchema, publishedReleaseSchema, questAvailabilitySchema, questPresentationSchema, 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 } from './schema.js';
|
|
5
|
+
export { ContentPerformanceSnapshot, Decision, Entitlement, MemberPage, PhotoResult, PickupAvailability, QuestAvailability, QuestDescription, QuestPresentation, QuestProfile, QuestSettingsInput, ReviewPage, Reward, Snapshot, SubmissionEvidence, TextResult, TextReviewInput, TieredRewardDefinition, TieredRewardReference, artifactSchema, attemptSchema, batchReleaseSchema, completionRecordSchema, configurePickupSchema, confirmHandoverSchema, contentPerformancePageSchema, contentPerformanceSnapshotSchema, createStockItemSchema, decisionSchema, entitlementSchema, eventSchema, evidenceSchema, identifier, integrationRewardSchema, mediaUrlSchema, memberListSchema, memberPageSchema, memberProgressSchema, photoResultSchema, pickupAllocationSchema, pickupAvailabilitySchema, pickupCatalogSchema, pickupPolicySchema, pickupSelectionSchema, pointsRewardSchema, prerequisiteSchema, publishedReleaseSchema, questAvailabilitySchema, 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 } from './schema.js';
|
|
6
6
|
|
|
7
7
|
declare class RelayError extends Error {
|
|
8
8
|
readonly status: number;
|
|
@@ -58,8 +58,8 @@ declare const sessionSchema: z.ZodObject<{
|
|
|
58
58
|
type Session = z.infer<typeof sessionSchema>;
|
|
59
59
|
/**
|
|
60
60
|
* The signed-in member (`GET /v1/me`). `avatarSeed` seeds the member's generated avatar
|
|
61
|
-
* (`defaultAvatar`):
|
|
62
|
-
*
|
|
61
|
+
* (`defaultAvatar`): an HMAC of the member ID under a per-project secret, so it is stable in the
|
|
62
|
+
* project, whatever the member links, and reveals nothing. Not strict: newer servers may add fields.
|
|
63
63
|
*/
|
|
64
64
|
declare const memberSummarySchema: z.ZodObject<{
|
|
65
65
|
member: z.ZodString;
|
|
@@ -209,13 +209,13 @@ type ProgressObserver = {
|
|
|
209
209
|
};
|
|
210
210
|
|
|
211
211
|
declare const interactionSchema: z.ZodEnum<{
|
|
212
|
-
quiz: "quiz";
|
|
213
|
-
url: "url";
|
|
214
|
-
text: "text";
|
|
215
212
|
staff: "staff";
|
|
216
|
-
|
|
213
|
+
text: "text";
|
|
214
|
+
url: "url";
|
|
217
215
|
automatic: "automatic";
|
|
218
216
|
claim: "claim";
|
|
217
|
+
quiz: "quiz";
|
|
218
|
+
photo: "photo";
|
|
219
219
|
}>;
|
|
220
220
|
type QuestInteraction = z.infer<typeof interactionSchema>;
|
|
221
221
|
declare function questInteraction(trigger: z.infer<typeof questDescriptionSchema>["trigger"]): QuestInteraction;
|
|
@@ -384,9 +384,9 @@ declare const questTypeVersionSchema: z.ZodObject<{
|
|
|
384
384
|
}, z.core.$strict>, z.ZodObject<{
|
|
385
385
|
kind: z.ZodLiteral<"manual">;
|
|
386
386
|
input: z.ZodEnum<{
|
|
387
|
+
none: "none";
|
|
387
388
|
quiz: "quiz";
|
|
388
389
|
photo: "photo";
|
|
389
|
-
none: "none";
|
|
390
390
|
}>;
|
|
391
391
|
actor: z.ZodOptional<z.ZodEnum<{
|
|
392
392
|
member: "member";
|
|
@@ -405,8 +405,8 @@ declare const questTypeVersionSchema: z.ZodObject<{
|
|
|
405
405
|
end: z.ZodOptional<z.ZodNumber>;
|
|
406
406
|
}, z.core.$strict>;
|
|
407
407
|
enrollment: z.ZodDefault<z.ZodEnum<{
|
|
408
|
-
required: "required";
|
|
409
408
|
none: "none";
|
|
409
|
+
required: "required";
|
|
410
410
|
}>>;
|
|
411
411
|
posts: z.ZodDefault<z.ZodEnum<{
|
|
412
412
|
"after-enrollment": "after-enrollment";
|
|
@@ -455,14 +455,17 @@ declare const questTypeVersionSchema: z.ZodObject<{
|
|
|
455
455
|
kind: z.ZodLiteral<"keyed">;
|
|
456
456
|
}, z.core.$strict>], "kind">;
|
|
457
457
|
visibility: z.ZodDefault<z.ZodEnum<{
|
|
458
|
-
hidden: "hidden";
|
|
459
458
|
visible: "visible";
|
|
459
|
+
hidden: "hidden";
|
|
460
460
|
}>>;
|
|
461
|
+
profile: z.ZodOptional<z.ZodObject<{
|
|
462
|
+
visible: z.ZodBoolean;
|
|
463
|
+
}, z.core.$strict>>;
|
|
461
464
|
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
462
465
|
id: z.ZodString;
|
|
463
466
|
scope: z.ZodEnum<{
|
|
464
|
-
member: "member";
|
|
465
467
|
project: "project";
|
|
468
|
+
member: "member";
|
|
466
469
|
}>;
|
|
467
470
|
period: z.ZodEnum<{
|
|
468
471
|
day: "day";
|
|
@@ -497,7 +500,7 @@ declare const collectionSlotDeclarationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
497
500
|
title: string;
|
|
498
501
|
key?: string | undefined;
|
|
499
502
|
id?: string | undefined;
|
|
500
|
-
}, "
|
|
503
|
+
}, "id" | "key"> & {
|
|
501
504
|
key: string;
|
|
502
505
|
}, {
|
|
503
506
|
title: string;
|
|
@@ -525,8 +528,8 @@ declare const questInstanceSchema: z.ZodObject<{
|
|
|
525
528
|
}, z.core.$strict>>]>>;
|
|
526
529
|
requires: z.ZodArray<z.ZodString>;
|
|
527
530
|
status: z.ZodEnum<{
|
|
528
|
-
active: "active";
|
|
529
531
|
paused: "paused";
|
|
532
|
+
active: "active";
|
|
530
533
|
archived: "archived";
|
|
531
534
|
}>;
|
|
532
535
|
}, z.core.$strict>;
|
|
@@ -546,8 +549,8 @@ declare const questDraftChangesSchema: z.ZodObject<{
|
|
|
546
549
|
}, z.core.$strict>>]>>;
|
|
547
550
|
requires: z.ZodArray<z.ZodString>;
|
|
548
551
|
status: z.ZodEnum<{
|
|
549
|
-
active: "active";
|
|
550
552
|
paused: "paused";
|
|
553
|
+
active: "active";
|
|
551
554
|
archived: "archived";
|
|
552
555
|
}>;
|
|
553
556
|
expectedRelease: z.ZodNullable<z.ZodString>;
|
|
@@ -579,8 +582,8 @@ declare const questDraftSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
579
582
|
}, z.core.$strict>>]>>;
|
|
580
583
|
requires: z.ZodArray<z.ZodString>;
|
|
581
584
|
status: z.ZodEnum<{
|
|
582
|
-
active: "active";
|
|
583
585
|
paused: "paused";
|
|
586
|
+
active: "active";
|
|
584
587
|
archived: "archived";
|
|
585
588
|
}>;
|
|
586
589
|
expectedRelease: z.ZodNullable<z.ZodString>;
|
|
@@ -613,8 +616,8 @@ declare const questDraftSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
613
616
|
}, z.core.$strict>>]>>;
|
|
614
617
|
requires: z.ZodArray<z.ZodString>;
|
|
615
618
|
status: z.ZodEnum<{
|
|
616
|
-
active: "active";
|
|
617
619
|
paused: "paused";
|
|
620
|
+
active: "active";
|
|
618
621
|
archived: "archived";
|
|
619
622
|
}>;
|
|
620
623
|
expectedRelease: z.ZodNullable<z.ZodString>;
|
|
@@ -796,9 +799,9 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
796
799
|
}, z.core.$strict>, z.ZodObject<{
|
|
797
800
|
kind: z.ZodLiteral<"manual">;
|
|
798
801
|
input: z.ZodEnum<{
|
|
802
|
+
none: "none";
|
|
799
803
|
quiz: "quiz";
|
|
800
804
|
photo: "photo";
|
|
801
|
-
none: "none";
|
|
802
805
|
}>;
|
|
803
806
|
actor: z.ZodOptional<z.ZodEnum<{
|
|
804
807
|
member: "member";
|
|
@@ -817,8 +820,8 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
817
820
|
end: z.ZodOptional<z.ZodNumber>;
|
|
818
821
|
}, z.core.$strict>;
|
|
819
822
|
enrollment: z.ZodDefault<z.ZodEnum<{
|
|
820
|
-
required: "required";
|
|
821
823
|
none: "none";
|
|
824
|
+
required: "required";
|
|
822
825
|
}>>;
|
|
823
826
|
posts: z.ZodDefault<z.ZodEnum<{
|
|
824
827
|
"after-enrollment": "after-enrollment";
|
|
@@ -867,14 +870,17 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
867
870
|
kind: z.ZodLiteral<"keyed">;
|
|
868
871
|
}, z.core.$strict>], "kind">;
|
|
869
872
|
visibility: z.ZodDefault<z.ZodEnum<{
|
|
870
|
-
hidden: "hidden";
|
|
871
873
|
visible: "visible";
|
|
874
|
+
hidden: "hidden";
|
|
872
875
|
}>>;
|
|
876
|
+
profile: z.ZodOptional<z.ZodObject<{
|
|
877
|
+
visible: z.ZodBoolean;
|
|
878
|
+
}, z.core.$strict>>;
|
|
873
879
|
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
874
880
|
id: z.ZodString;
|
|
875
881
|
scope: z.ZodEnum<{
|
|
876
|
-
member: "member";
|
|
877
882
|
project: "project";
|
|
883
|
+
member: "member";
|
|
878
884
|
}>;
|
|
879
885
|
period: z.ZodEnum<{
|
|
880
886
|
day: "day";
|
|
@@ -917,8 +923,8 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
917
923
|
}, z.core.$strict>>]>>;
|
|
918
924
|
requires: z.ZodArray<z.ZodString>;
|
|
919
925
|
status: z.ZodEnum<{
|
|
920
|
-
active: "active";
|
|
921
926
|
paused: "paused";
|
|
927
|
+
active: "active";
|
|
922
928
|
archived: "archived";
|
|
923
929
|
}>;
|
|
924
930
|
}, z.core.$strict>>;
|
|
@@ -942,8 +948,8 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
942
948
|
}, z.core.$strict>>]>>;
|
|
943
949
|
requires: z.ZodArray<z.ZodString>;
|
|
944
950
|
status: z.ZodEnum<{
|
|
945
|
-
active: "active";
|
|
946
951
|
paused: "paused";
|
|
952
|
+
active: "active";
|
|
947
953
|
archived: "archived";
|
|
948
954
|
}>;
|
|
949
955
|
expectedRelease: z.ZodNullable<z.ZodString>;
|
|
@@ -976,8 +982,8 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
976
982
|
}, z.core.$strict>>]>>;
|
|
977
983
|
requires: z.ZodArray<z.ZodString>;
|
|
978
984
|
status: z.ZodEnum<{
|
|
979
|
-
active: "active";
|
|
980
985
|
paused: "paused";
|
|
986
|
+
active: "active";
|
|
981
987
|
archived: "archived";
|
|
982
988
|
}>;
|
|
983
989
|
expectedRelease: z.ZodNullable<z.ZodString>;
|
|
@@ -1152,9 +1158,9 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
1152
1158
|
}, z.core.$strict>, z.ZodObject<{
|
|
1153
1159
|
kind: z.ZodLiteral<"manual">;
|
|
1154
1160
|
input: z.ZodEnum<{
|
|
1161
|
+
none: "none";
|
|
1155
1162
|
quiz: "quiz";
|
|
1156
1163
|
photo: "photo";
|
|
1157
|
-
none: "none";
|
|
1158
1164
|
}>;
|
|
1159
1165
|
actor: z.ZodOptional<z.ZodEnum<{
|
|
1160
1166
|
member: "member";
|
|
@@ -1173,8 +1179,8 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
1173
1179
|
end: z.ZodOptional<z.ZodNumber>;
|
|
1174
1180
|
}, z.core.$strict>;
|
|
1175
1181
|
enrollment: z.ZodDefault<z.ZodEnum<{
|
|
1176
|
-
required: "required";
|
|
1177
1182
|
none: "none";
|
|
1183
|
+
required: "required";
|
|
1178
1184
|
}>>;
|
|
1179
1185
|
posts: z.ZodDefault<z.ZodEnum<{
|
|
1180
1186
|
"after-enrollment": "after-enrollment";
|
|
@@ -1223,14 +1229,17 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
1223
1229
|
kind: z.ZodLiteral<"keyed">;
|
|
1224
1230
|
}, z.core.$strict>], "kind">;
|
|
1225
1231
|
visibility: z.ZodDefault<z.ZodEnum<{
|
|
1226
|
-
hidden: "hidden";
|
|
1227
1232
|
visible: "visible";
|
|
1233
|
+
hidden: "hidden";
|
|
1228
1234
|
}>>;
|
|
1235
|
+
profile: z.ZodOptional<z.ZodObject<{
|
|
1236
|
+
visible: z.ZodBoolean;
|
|
1237
|
+
}, z.core.$strict>>;
|
|
1229
1238
|
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1230
1239
|
id: z.ZodString;
|
|
1231
1240
|
scope: z.ZodEnum<{
|
|
1232
|
-
member: "member";
|
|
1233
1241
|
project: "project";
|
|
1242
|
+
member: "member";
|
|
1234
1243
|
}>;
|
|
1235
1244
|
period: z.ZodEnum<{
|
|
1236
1245
|
day: "day";
|
|
@@ -1258,8 +1267,8 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
1258
1267
|
typeVersion: z.ZodString;
|
|
1259
1268
|
}, z.core.$strict>>;
|
|
1260
1269
|
lifecycle: z.ZodDefault<z.ZodEnum<{
|
|
1261
|
-
active: "active";
|
|
1262
1270
|
paused: "paused";
|
|
1271
|
+
active: "active";
|
|
1263
1272
|
archived: "archived";
|
|
1264
1273
|
}>>;
|
|
1265
1274
|
configuration: z.ZodOptional<z.ZodObject<{
|
|
@@ -1327,7 +1336,7 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
1327
1336
|
createdAt: z.ZodNumber;
|
|
1328
1337
|
}, z.core.$strip>, z.ZodTransform<{
|
|
1329
1338
|
quest: string;
|
|
1330
|
-
runtimeVersion:
|
|
1339
|
+
runtimeVersion: 2 | 1;
|
|
1331
1340
|
title: string;
|
|
1332
1341
|
presentation: {
|
|
1333
1342
|
quiz?: {
|
|
@@ -1466,7 +1475,7 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
1466
1475
|
start: number;
|
|
1467
1476
|
end?: number | undefined;
|
|
1468
1477
|
};
|
|
1469
|
-
enrollment: "
|
|
1478
|
+
enrollment: "none" | "required";
|
|
1470
1479
|
posts: "after-enrollment" | "since-start";
|
|
1471
1480
|
historical: "staff" | "automatic" | "claim";
|
|
1472
1481
|
} | undefined;
|
|
@@ -1494,7 +1503,7 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
1494
1503
|
actor?: "member" | "staff" | undefined;
|
|
1495
1504
|
} | {
|
|
1496
1505
|
kind: "manual";
|
|
1497
|
-
input: "
|
|
1506
|
+
input: "none" | "quiz" | "photo";
|
|
1498
1507
|
actor?: "member" | "staff" | undefined;
|
|
1499
1508
|
};
|
|
1500
1509
|
requires: {
|
|
@@ -1510,10 +1519,10 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
1510
1519
|
} | {
|
|
1511
1520
|
kind: "keyed";
|
|
1512
1521
|
};
|
|
1513
|
-
visibility: "
|
|
1522
|
+
visibility: "visible" | "hidden";
|
|
1514
1523
|
budgets: {
|
|
1515
1524
|
id: string;
|
|
1516
|
-
scope: "
|
|
1525
|
+
scope: "project" | "member";
|
|
1517
1526
|
period: "day" | "lifetime" | "week";
|
|
1518
1527
|
limit: number;
|
|
1519
1528
|
cost: number | {
|
|
@@ -1525,11 +1534,14 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
1525
1534
|
id: string;
|
|
1526
1535
|
createdAt: number;
|
|
1527
1536
|
legacy: boolean;
|
|
1528
|
-
lifecycle: "
|
|
1537
|
+
lifecycle: "paused" | "active" | "archived";
|
|
1529
1538
|
performance?: {
|
|
1530
1539
|
metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
|
|
1531
1540
|
maxAgeMs: number;
|
|
1532
1541
|
} | undefined;
|
|
1542
|
+
profile?: {
|
|
1543
|
+
visible: boolean;
|
|
1544
|
+
} | undefined;
|
|
1533
1545
|
key?: string | undefined;
|
|
1534
1546
|
origin?: {
|
|
1535
1547
|
typeVersion: string;
|
|
@@ -1593,13 +1605,13 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
1593
1605
|
createdAt: number;
|
|
1594
1606
|
}>>]>>>;
|
|
1595
1607
|
supportedInteractions: z.ZodArray<z.ZodEnum<{
|
|
1596
|
-
quiz: "quiz";
|
|
1597
|
-
url: "url";
|
|
1598
|
-
text: "text";
|
|
1599
1608
|
staff: "staff";
|
|
1600
|
-
|
|
1609
|
+
text: "text";
|
|
1610
|
+
url: "url";
|
|
1601
1611
|
automatic: "automatic";
|
|
1602
1612
|
claim: "claim";
|
|
1613
|
+
quiz: "quiz";
|
|
1614
|
+
photo: "photo";
|
|
1603
1615
|
}>>;
|
|
1604
1616
|
}, z.core.$strip>;
|
|
1605
1617
|
declare const catalogDeploymentSchema: z.ZodObject<{
|
|
@@ -1618,7 +1630,7 @@ declare const catalogDeploymentSchema: z.ZodObject<{
|
|
|
1618
1630
|
title: string;
|
|
1619
1631
|
key?: string | undefined;
|
|
1620
1632
|
id?: string | undefined;
|
|
1621
|
-
}, "
|
|
1633
|
+
}, "id" | "key"> & {
|
|
1622
1634
|
key: string;
|
|
1623
1635
|
}, {
|
|
1624
1636
|
title: string;
|
|
@@ -1626,13 +1638,13 @@ declare const catalogDeploymentSchema: z.ZodObject<{
|
|
|
1626
1638
|
id?: string | undefined;
|
|
1627
1639
|
}>>>>;
|
|
1628
1640
|
supportedInteractions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1629
|
-
quiz: "quiz";
|
|
1630
|
-
url: "url";
|
|
1631
|
-
text: "text";
|
|
1632
1641
|
staff: "staff";
|
|
1633
|
-
|
|
1642
|
+
text: "text";
|
|
1643
|
+
url: "url";
|
|
1634
1644
|
automatic: "automatic";
|
|
1635
1645
|
claim: "claim";
|
|
1646
|
+
quiz: "quiz";
|
|
1647
|
+
photo: "photo";
|
|
1636
1648
|
}>>>;
|
|
1637
1649
|
}, z.core.$strict>;
|
|
1638
1650
|
declare const catalogDeploymentPreviewSchema: z.ZodObject<{
|
|
@@ -1802,9 +1814,9 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
|
|
|
1802
1814
|
}, z.core.$strict>, z.ZodObject<{
|
|
1803
1815
|
kind: z.ZodLiteral<"manual">;
|
|
1804
1816
|
input: z.ZodEnum<{
|
|
1817
|
+
none: "none";
|
|
1805
1818
|
quiz: "quiz";
|
|
1806
1819
|
photo: "photo";
|
|
1807
|
-
none: "none";
|
|
1808
1820
|
}>;
|
|
1809
1821
|
actor: z.ZodOptional<z.ZodEnum<{
|
|
1810
1822
|
member: "member";
|
|
@@ -1823,8 +1835,8 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
|
|
|
1823
1835
|
end: z.ZodOptional<z.ZodNumber>;
|
|
1824
1836
|
}, z.core.$strict>;
|
|
1825
1837
|
enrollment: z.ZodDefault<z.ZodEnum<{
|
|
1826
|
-
required: "required";
|
|
1827
1838
|
none: "none";
|
|
1839
|
+
required: "required";
|
|
1828
1840
|
}>>;
|
|
1829
1841
|
posts: z.ZodDefault<z.ZodEnum<{
|
|
1830
1842
|
"after-enrollment": "after-enrollment";
|
|
@@ -1873,14 +1885,17 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
|
|
|
1873
1885
|
kind: z.ZodLiteral<"keyed">;
|
|
1874
1886
|
}, z.core.$strict>], "kind">;
|
|
1875
1887
|
visibility: z.ZodDefault<z.ZodEnum<{
|
|
1876
|
-
hidden: "hidden";
|
|
1877
1888
|
visible: "visible";
|
|
1889
|
+
hidden: "hidden";
|
|
1878
1890
|
}>>;
|
|
1891
|
+
profile: z.ZodOptional<z.ZodObject<{
|
|
1892
|
+
visible: z.ZodBoolean;
|
|
1893
|
+
}, z.core.$strict>>;
|
|
1879
1894
|
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1880
1895
|
id: z.ZodString;
|
|
1881
1896
|
scope: z.ZodEnum<{
|
|
1882
|
-
member: "member";
|
|
1883
1897
|
project: "project";
|
|
1898
|
+
member: "member";
|
|
1884
1899
|
}>;
|
|
1885
1900
|
period: z.ZodEnum<{
|
|
1886
1901
|
day: "day";
|
|
@@ -1908,13 +1923,13 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
|
|
|
1908
1923
|
title: z.ZodString;
|
|
1909
1924
|
}, z.core.$strict>>;
|
|
1910
1925
|
supportedInteractions: z.ZodArray<z.ZodEnum<{
|
|
1911
|
-
quiz: "quiz";
|
|
1912
|
-
url: "url";
|
|
1913
|
-
text: "text";
|
|
1914
1926
|
staff: "staff";
|
|
1915
|
-
|
|
1927
|
+
text: "text";
|
|
1928
|
+
url: "url";
|
|
1916
1929
|
automatic: "automatic";
|
|
1917
1930
|
claim: "claim";
|
|
1931
|
+
quiz: "quiz";
|
|
1932
|
+
photo: "photo";
|
|
1918
1933
|
}>>;
|
|
1919
1934
|
}, z.core.$strip>;
|
|
1920
1935
|
declare const saveQuestDraftSchema: z.ZodObject<{
|
|
@@ -1938,8 +1953,8 @@ declare const saveQuestDraftSchema: z.ZodObject<{
|
|
|
1938
1953
|
}, z.core.$strict>>]>>;
|
|
1939
1954
|
requires: z.ZodArray<z.ZodString>;
|
|
1940
1955
|
status: z.ZodEnum<{
|
|
1941
|
-
active: "active";
|
|
1942
1956
|
paused: "paused";
|
|
1957
|
+
active: "active";
|
|
1943
1958
|
archived: "archived";
|
|
1944
1959
|
}>;
|
|
1945
1960
|
expectedRelease: z.ZodNullable<z.ZodString>;
|
|
@@ -2038,9 +2053,9 @@ declare const questViewSchema: z.ZodObject<{
|
|
|
2038
2053
|
}, z.core.$strict>, z.ZodObject<{
|
|
2039
2054
|
kind: z.ZodLiteral<"manual">;
|
|
2040
2055
|
input: z.ZodEnum<{
|
|
2056
|
+
none: "none";
|
|
2041
2057
|
quiz: "quiz";
|
|
2042
2058
|
photo: "photo";
|
|
2043
|
-
none: "none";
|
|
2044
2059
|
}>;
|
|
2045
2060
|
actor: z.ZodOptional<z.ZodEnum<{
|
|
2046
2061
|
member: "member";
|
|
@@ -2059,8 +2074,8 @@ declare const questViewSchema: z.ZodObject<{
|
|
|
2059
2074
|
end: z.ZodOptional<z.ZodNumber>;
|
|
2060
2075
|
}, z.core.$strict>;
|
|
2061
2076
|
enrollment: z.ZodDefault<z.ZodEnum<{
|
|
2062
|
-
required: "required";
|
|
2063
2077
|
none: "none";
|
|
2078
|
+
required: "required";
|
|
2064
2079
|
}>>;
|
|
2065
2080
|
posts: z.ZodDefault<z.ZodEnum<{
|
|
2066
2081
|
"after-enrollment": "after-enrollment";
|
|
@@ -2087,11 +2102,11 @@ declare const questViewSchema: z.ZodObject<{
|
|
|
2087
2102
|
availability: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2088
2103
|
kind: z.ZodLiteral<"available">;
|
|
2089
2104
|
input: z.ZodEnum<{
|
|
2090
|
-
quiz: "quiz";
|
|
2091
|
-
url: "url";
|
|
2092
2105
|
text: "text";
|
|
2093
|
-
|
|
2106
|
+
url: "url";
|
|
2094
2107
|
none: "none";
|
|
2108
|
+
quiz: "quiz";
|
|
2109
|
+
photo: "photo";
|
|
2095
2110
|
}>;
|
|
2096
2111
|
}, z.core.$strict>, z.ZodObject<{
|
|
2097
2112
|
kind: z.ZodLiteral<"completed">;
|
|
@@ -2161,8 +2176,8 @@ declare const questViewSchema: z.ZodObject<{
|
|
|
2161
2176
|
}, z.core.$strip>>>;
|
|
2162
2177
|
completionCount: z.ZodDefault<z.ZodNumber>;
|
|
2163
2178
|
visibility: z.ZodDefault<z.ZodEnum<{
|
|
2164
|
-
hidden: "hidden";
|
|
2165
2179
|
visible: "visible";
|
|
2180
|
+
hidden: "hidden";
|
|
2166
2181
|
}>>;
|
|
2167
2182
|
missing: z.ZodArray<z.ZodObject<{
|
|
2168
2183
|
quest: z.ZodString;
|
|
@@ -2189,12 +2204,12 @@ declare const questViewSchema: z.ZodObject<{
|
|
|
2189
2204
|
}, z.core.$strict>]>>;
|
|
2190
2205
|
status: z.ZodEnum<{
|
|
2191
2206
|
"needs-review": "needs-review";
|
|
2207
|
+
failed: "failed";
|
|
2192
2208
|
queued: "queued";
|
|
2193
2209
|
evaluating: "evaluating";
|
|
2194
2210
|
accepted: "accepted";
|
|
2195
2211
|
progressed: "progressed";
|
|
2196
2212
|
rejected: "rejected";
|
|
2197
|
-
failed: "failed";
|
|
2198
2213
|
}>;
|
|
2199
2214
|
reason: z.ZodNullable<z.ZodString>;
|
|
2200
2215
|
retries: z.ZodNumber;
|
|
@@ -2231,17 +2246,17 @@ declare const questViewSchema: z.ZodObject<{
|
|
|
2231
2246
|
}, z.core.$strip>>;
|
|
2232
2247
|
release: z.ZodString;
|
|
2233
2248
|
interaction: z.ZodEnum<{
|
|
2234
|
-
quiz: "quiz";
|
|
2235
|
-
url: "url";
|
|
2236
|
-
text: "text";
|
|
2237
2249
|
staff: "staff";
|
|
2238
|
-
|
|
2250
|
+
text: "text";
|
|
2251
|
+
url: "url";
|
|
2239
2252
|
automatic: "automatic";
|
|
2240
2253
|
claim: "claim";
|
|
2254
|
+
quiz: "quiz";
|
|
2255
|
+
photo: "photo";
|
|
2241
2256
|
}>;
|
|
2242
2257
|
lifecycle: z.ZodEnum<{
|
|
2243
|
-
active: "active";
|
|
2244
2258
|
paused: "paused";
|
|
2259
|
+
active: "active";
|
|
2245
2260
|
archived: "archived";
|
|
2246
2261
|
}>;
|
|
2247
2262
|
rewards: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -2327,9 +2342,9 @@ declare const collectionViewSchema: z.ZodObject<{
|
|
|
2327
2342
|
}, z.core.$strict>, z.ZodObject<{
|
|
2328
2343
|
kind: z.ZodLiteral<"manual">;
|
|
2329
2344
|
input: z.ZodEnum<{
|
|
2345
|
+
none: "none";
|
|
2330
2346
|
quiz: "quiz";
|
|
2331
2347
|
photo: "photo";
|
|
2332
|
-
none: "none";
|
|
2333
2348
|
}>;
|
|
2334
2349
|
actor: z.ZodOptional<z.ZodEnum<{
|
|
2335
2350
|
member: "member";
|
|
@@ -2348,8 +2363,8 @@ declare const collectionViewSchema: z.ZodObject<{
|
|
|
2348
2363
|
end: z.ZodOptional<z.ZodNumber>;
|
|
2349
2364
|
}, z.core.$strict>;
|
|
2350
2365
|
enrollment: z.ZodDefault<z.ZodEnum<{
|
|
2351
|
-
required: "required";
|
|
2352
2366
|
none: "none";
|
|
2367
|
+
required: "required";
|
|
2353
2368
|
}>>;
|
|
2354
2369
|
posts: z.ZodDefault<z.ZodEnum<{
|
|
2355
2370
|
"after-enrollment": "after-enrollment";
|
|
@@ -2376,11 +2391,11 @@ declare const collectionViewSchema: z.ZodObject<{
|
|
|
2376
2391
|
availability: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2377
2392
|
kind: z.ZodLiteral<"available">;
|
|
2378
2393
|
input: z.ZodEnum<{
|
|
2379
|
-
quiz: "quiz";
|
|
2380
|
-
url: "url";
|
|
2381
2394
|
text: "text";
|
|
2382
|
-
|
|
2395
|
+
url: "url";
|
|
2383
2396
|
none: "none";
|
|
2397
|
+
quiz: "quiz";
|
|
2398
|
+
photo: "photo";
|
|
2384
2399
|
}>;
|
|
2385
2400
|
}, z.core.$strict>, z.ZodObject<{
|
|
2386
2401
|
kind: z.ZodLiteral<"completed">;
|
|
@@ -2450,8 +2465,8 @@ declare const collectionViewSchema: z.ZodObject<{
|
|
|
2450
2465
|
}, z.core.$strip>>>;
|
|
2451
2466
|
completionCount: z.ZodDefault<z.ZodNumber>;
|
|
2452
2467
|
visibility: z.ZodDefault<z.ZodEnum<{
|
|
2453
|
-
hidden: "hidden";
|
|
2454
2468
|
visible: "visible";
|
|
2469
|
+
hidden: "hidden";
|
|
2455
2470
|
}>>;
|
|
2456
2471
|
missing: z.ZodArray<z.ZodObject<{
|
|
2457
2472
|
quest: z.ZodString;
|
|
@@ -2478,12 +2493,12 @@ declare const collectionViewSchema: z.ZodObject<{
|
|
|
2478
2493
|
}, z.core.$strict>]>>;
|
|
2479
2494
|
status: z.ZodEnum<{
|
|
2480
2495
|
"needs-review": "needs-review";
|
|
2496
|
+
failed: "failed";
|
|
2481
2497
|
queued: "queued";
|
|
2482
2498
|
evaluating: "evaluating";
|
|
2483
2499
|
accepted: "accepted";
|
|
2484
2500
|
progressed: "progressed";
|
|
2485
2501
|
rejected: "rejected";
|
|
2486
|
-
failed: "failed";
|
|
2487
2502
|
}>;
|
|
2488
2503
|
reason: z.ZodNullable<z.ZodString>;
|
|
2489
2504
|
retries: z.ZodNumber;
|
|
@@ -2520,17 +2535,17 @@ declare const collectionViewSchema: z.ZodObject<{
|
|
|
2520
2535
|
}, z.core.$strip>>;
|
|
2521
2536
|
release: z.ZodString;
|
|
2522
2537
|
interaction: z.ZodEnum<{
|
|
2523
|
-
quiz: "quiz";
|
|
2524
|
-
url: "url";
|
|
2525
|
-
text: "text";
|
|
2526
2538
|
staff: "staff";
|
|
2527
|
-
|
|
2539
|
+
text: "text";
|
|
2540
|
+
url: "url";
|
|
2528
2541
|
automatic: "automatic";
|
|
2529
2542
|
claim: "claim";
|
|
2543
|
+
quiz: "quiz";
|
|
2544
|
+
photo: "photo";
|
|
2530
2545
|
}>;
|
|
2531
2546
|
lifecycle: z.ZodEnum<{
|
|
2532
|
-
active: "active";
|
|
2533
2547
|
paused: "paused";
|
|
2548
|
+
active: "active";
|
|
2534
2549
|
archived: "archived";
|
|
2535
2550
|
}>;
|
|
2536
2551
|
rewards: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -2615,9 +2630,9 @@ declare const questExperienceSchema: z.ZodObject<{
|
|
|
2615
2630
|
}, z.core.$strict>, z.ZodObject<{
|
|
2616
2631
|
kind: z.ZodLiteral<"manual">;
|
|
2617
2632
|
input: z.ZodEnum<{
|
|
2633
|
+
none: "none";
|
|
2618
2634
|
quiz: "quiz";
|
|
2619
2635
|
photo: "photo";
|
|
2620
|
-
none: "none";
|
|
2621
2636
|
}>;
|
|
2622
2637
|
actor: z.ZodOptional<z.ZodEnum<{
|
|
2623
2638
|
member: "member";
|
|
@@ -2636,8 +2651,8 @@ declare const questExperienceSchema: z.ZodObject<{
|
|
|
2636
2651
|
end: z.ZodOptional<z.ZodNumber>;
|
|
2637
2652
|
}, z.core.$strict>;
|
|
2638
2653
|
enrollment: z.ZodDefault<z.ZodEnum<{
|
|
2639
|
-
required: "required";
|
|
2640
2654
|
none: "none";
|
|
2655
|
+
required: "required";
|
|
2641
2656
|
}>>;
|
|
2642
2657
|
posts: z.ZodDefault<z.ZodEnum<{
|
|
2643
2658
|
"after-enrollment": "after-enrollment";
|
|
@@ -2664,11 +2679,11 @@ declare const questExperienceSchema: z.ZodObject<{
|
|
|
2664
2679
|
availability: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2665
2680
|
kind: z.ZodLiteral<"available">;
|
|
2666
2681
|
input: z.ZodEnum<{
|
|
2667
|
-
quiz: "quiz";
|
|
2668
|
-
url: "url";
|
|
2669
2682
|
text: "text";
|
|
2670
|
-
|
|
2683
|
+
url: "url";
|
|
2671
2684
|
none: "none";
|
|
2685
|
+
quiz: "quiz";
|
|
2686
|
+
photo: "photo";
|
|
2672
2687
|
}>;
|
|
2673
2688
|
}, z.core.$strict>, z.ZodObject<{
|
|
2674
2689
|
kind: z.ZodLiteral<"completed">;
|
|
@@ -2738,8 +2753,8 @@ declare const questExperienceSchema: z.ZodObject<{
|
|
|
2738
2753
|
}, z.core.$strip>>>;
|
|
2739
2754
|
completionCount: z.ZodDefault<z.ZodNumber>;
|
|
2740
2755
|
visibility: z.ZodDefault<z.ZodEnum<{
|
|
2741
|
-
hidden: "hidden";
|
|
2742
2756
|
visible: "visible";
|
|
2757
|
+
hidden: "hidden";
|
|
2743
2758
|
}>>;
|
|
2744
2759
|
missing: z.ZodArray<z.ZodObject<{
|
|
2745
2760
|
quest: z.ZodString;
|
|
@@ -2766,12 +2781,12 @@ declare const questExperienceSchema: z.ZodObject<{
|
|
|
2766
2781
|
}, z.core.$strict>]>>;
|
|
2767
2782
|
status: z.ZodEnum<{
|
|
2768
2783
|
"needs-review": "needs-review";
|
|
2784
|
+
failed: "failed";
|
|
2769
2785
|
queued: "queued";
|
|
2770
2786
|
evaluating: "evaluating";
|
|
2771
2787
|
accepted: "accepted";
|
|
2772
2788
|
progressed: "progressed";
|
|
2773
2789
|
rejected: "rejected";
|
|
2774
|
-
failed: "failed";
|
|
2775
2790
|
}>;
|
|
2776
2791
|
reason: z.ZodNullable<z.ZodString>;
|
|
2777
2792
|
retries: z.ZodNumber;
|
|
@@ -2808,17 +2823,17 @@ declare const questExperienceSchema: z.ZodObject<{
|
|
|
2808
2823
|
}, z.core.$strip>>;
|
|
2809
2824
|
release: z.ZodString;
|
|
2810
2825
|
interaction: z.ZodEnum<{
|
|
2811
|
-
quiz: "quiz";
|
|
2812
|
-
url: "url";
|
|
2813
|
-
text: "text";
|
|
2814
2826
|
staff: "staff";
|
|
2815
|
-
|
|
2827
|
+
text: "text";
|
|
2828
|
+
url: "url";
|
|
2816
2829
|
automatic: "automatic";
|
|
2817
2830
|
claim: "claim";
|
|
2831
|
+
quiz: "quiz";
|
|
2832
|
+
photo: "photo";
|
|
2818
2833
|
}>;
|
|
2819
2834
|
lifecycle: z.ZodEnum<{
|
|
2820
|
-
active: "active";
|
|
2821
2835
|
paused: "paused";
|
|
2836
|
+
active: "active";
|
|
2822
2837
|
archived: "archived";
|
|
2823
2838
|
}>;
|
|
2824
2839
|
rewards: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -2904,9 +2919,9 @@ declare const questExperienceSchema: z.ZodObject<{
|
|
|
2904
2919
|
}, z.core.$strict>, z.ZodObject<{
|
|
2905
2920
|
kind: z.ZodLiteral<"manual">;
|
|
2906
2921
|
input: z.ZodEnum<{
|
|
2922
|
+
none: "none";
|
|
2907
2923
|
quiz: "quiz";
|
|
2908
2924
|
photo: "photo";
|
|
2909
|
-
none: "none";
|
|
2910
2925
|
}>;
|
|
2911
2926
|
actor: z.ZodOptional<z.ZodEnum<{
|
|
2912
2927
|
member: "member";
|
|
@@ -2925,8 +2940,8 @@ declare const questExperienceSchema: z.ZodObject<{
|
|
|
2925
2940
|
end: z.ZodOptional<z.ZodNumber>;
|
|
2926
2941
|
}, z.core.$strict>;
|
|
2927
2942
|
enrollment: z.ZodDefault<z.ZodEnum<{
|
|
2928
|
-
required: "required";
|
|
2929
2943
|
none: "none";
|
|
2944
|
+
required: "required";
|
|
2930
2945
|
}>>;
|
|
2931
2946
|
posts: z.ZodDefault<z.ZodEnum<{
|
|
2932
2947
|
"after-enrollment": "after-enrollment";
|
|
@@ -2953,11 +2968,11 @@ declare const questExperienceSchema: z.ZodObject<{
|
|
|
2953
2968
|
availability: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2954
2969
|
kind: z.ZodLiteral<"available">;
|
|
2955
2970
|
input: z.ZodEnum<{
|
|
2956
|
-
quiz: "quiz";
|
|
2957
|
-
url: "url";
|
|
2958
2971
|
text: "text";
|
|
2959
|
-
|
|
2972
|
+
url: "url";
|
|
2960
2973
|
none: "none";
|
|
2974
|
+
quiz: "quiz";
|
|
2975
|
+
photo: "photo";
|
|
2961
2976
|
}>;
|
|
2962
2977
|
}, z.core.$strict>, z.ZodObject<{
|
|
2963
2978
|
kind: z.ZodLiteral<"completed">;
|
|
@@ -3027,8 +3042,8 @@ declare const questExperienceSchema: z.ZodObject<{
|
|
|
3027
3042
|
}, z.core.$strip>>>;
|
|
3028
3043
|
completionCount: z.ZodDefault<z.ZodNumber>;
|
|
3029
3044
|
visibility: z.ZodDefault<z.ZodEnum<{
|
|
3030
|
-
hidden: "hidden";
|
|
3031
3045
|
visible: "visible";
|
|
3046
|
+
hidden: "hidden";
|
|
3032
3047
|
}>>;
|
|
3033
3048
|
missing: z.ZodArray<z.ZodObject<{
|
|
3034
3049
|
quest: z.ZodString;
|
|
@@ -3055,12 +3070,12 @@ declare const questExperienceSchema: z.ZodObject<{
|
|
|
3055
3070
|
}, z.core.$strict>]>>;
|
|
3056
3071
|
status: z.ZodEnum<{
|
|
3057
3072
|
"needs-review": "needs-review";
|
|
3073
|
+
failed: "failed";
|
|
3058
3074
|
queued: "queued";
|
|
3059
3075
|
evaluating: "evaluating";
|
|
3060
3076
|
accepted: "accepted";
|
|
3061
3077
|
progressed: "progressed";
|
|
3062
3078
|
rejected: "rejected";
|
|
3063
|
-
failed: "failed";
|
|
3064
3079
|
}>;
|
|
3065
3080
|
reason: z.ZodNullable<z.ZodString>;
|
|
3066
3081
|
retries: z.ZodNumber;
|
|
@@ -3097,17 +3112,17 @@ declare const questExperienceSchema: z.ZodObject<{
|
|
|
3097
3112
|
}, z.core.$strip>>;
|
|
3098
3113
|
release: z.ZodString;
|
|
3099
3114
|
interaction: z.ZodEnum<{
|
|
3100
|
-
quiz: "quiz";
|
|
3101
|
-
url: "url";
|
|
3102
|
-
text: "text";
|
|
3103
3115
|
staff: "staff";
|
|
3104
|
-
|
|
3116
|
+
text: "text";
|
|
3117
|
+
url: "url";
|
|
3105
3118
|
automatic: "automatic";
|
|
3106
3119
|
claim: "claim";
|
|
3120
|
+
quiz: "quiz";
|
|
3121
|
+
photo: "photo";
|
|
3107
3122
|
}>;
|
|
3108
3123
|
lifecycle: z.ZodEnum<{
|
|
3109
|
-
active: "active";
|
|
3110
3124
|
paused: "paused";
|
|
3125
|
+
active: "active";
|
|
3111
3126
|
archived: "archived";
|
|
3112
3127
|
}>;
|
|
3113
3128
|
rewards: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -3161,8 +3176,8 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
|
|
|
3161
3176
|
}, z.core.$strict>>]>>;
|
|
3162
3177
|
requires: z.ZodArray<z.ZodString>;
|
|
3163
3178
|
status: z.ZodEnum<{
|
|
3164
|
-
active: "active";
|
|
3165
3179
|
paused: "paused";
|
|
3180
|
+
active: "active";
|
|
3166
3181
|
archived: "archived";
|
|
3167
3182
|
}>;
|
|
3168
3183
|
expectedRelease: z.ZodNullable<z.ZodString>;
|
|
@@ -3195,8 +3210,8 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
|
|
|
3195
3210
|
}, z.core.$strict>>]>>;
|
|
3196
3211
|
requires: z.ZodArray<z.ZodString>;
|
|
3197
3212
|
status: z.ZodEnum<{
|
|
3198
|
-
active: "active";
|
|
3199
3213
|
paused: "paused";
|
|
3214
|
+
active: "active";
|
|
3200
3215
|
archived: "archived";
|
|
3201
3216
|
}>;
|
|
3202
3217
|
expectedRelease: z.ZodNullable<z.ZodString>;
|
|
@@ -3371,9 +3386,9 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
|
|
|
3371
3386
|
}, z.core.$strict>, z.ZodObject<{
|
|
3372
3387
|
kind: z.ZodLiteral<"manual">;
|
|
3373
3388
|
input: z.ZodEnum<{
|
|
3389
|
+
none: "none";
|
|
3374
3390
|
quiz: "quiz";
|
|
3375
3391
|
photo: "photo";
|
|
3376
|
-
none: "none";
|
|
3377
3392
|
}>;
|
|
3378
3393
|
actor: z.ZodOptional<z.ZodEnum<{
|
|
3379
3394
|
member: "member";
|
|
@@ -3392,8 +3407,8 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
|
|
|
3392
3407
|
end: z.ZodOptional<z.ZodNumber>;
|
|
3393
3408
|
}, z.core.$strict>;
|
|
3394
3409
|
enrollment: z.ZodDefault<z.ZodEnum<{
|
|
3395
|
-
required: "required";
|
|
3396
3410
|
none: "none";
|
|
3411
|
+
required: "required";
|
|
3397
3412
|
}>>;
|
|
3398
3413
|
posts: z.ZodDefault<z.ZodEnum<{
|
|
3399
3414
|
"after-enrollment": "after-enrollment";
|
|
@@ -3442,14 +3457,17 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
|
|
|
3442
3457
|
kind: z.ZodLiteral<"keyed">;
|
|
3443
3458
|
}, z.core.$strict>], "kind">;
|
|
3444
3459
|
visibility: z.ZodDefault<z.ZodEnum<{
|
|
3445
|
-
hidden: "hidden";
|
|
3446
3460
|
visible: "visible";
|
|
3461
|
+
hidden: "hidden";
|
|
3447
3462
|
}>>;
|
|
3463
|
+
profile: z.ZodOptional<z.ZodObject<{
|
|
3464
|
+
visible: z.ZodBoolean;
|
|
3465
|
+
}, z.core.$strict>>;
|
|
3448
3466
|
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3449
3467
|
id: z.ZodString;
|
|
3450
3468
|
scope: z.ZodEnum<{
|
|
3451
|
-
member: "member";
|
|
3452
3469
|
project: "project";
|
|
3470
|
+
member: "member";
|
|
3453
3471
|
}>;
|
|
3454
3472
|
period: z.ZodEnum<{
|
|
3455
3473
|
day: "day";
|
|
@@ -3477,8 +3495,8 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
|
|
|
3477
3495
|
typeVersion: z.ZodString;
|
|
3478
3496
|
}, z.core.$strict>>;
|
|
3479
3497
|
lifecycle: z.ZodDefault<z.ZodEnum<{
|
|
3480
|
-
active: "active";
|
|
3481
3498
|
paused: "paused";
|
|
3499
|
+
active: "active";
|
|
3482
3500
|
archived: "archived";
|
|
3483
3501
|
}>>;
|
|
3484
3502
|
configuration: z.ZodOptional<z.ZodObject<{
|
|
@@ -3546,7 +3564,7 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
|
|
|
3546
3564
|
createdAt: z.ZodNumber;
|
|
3547
3565
|
}, z.core.$strip>, z.ZodTransform<{
|
|
3548
3566
|
quest: string;
|
|
3549
|
-
runtimeVersion:
|
|
3567
|
+
runtimeVersion: 2 | 1;
|
|
3550
3568
|
title: string;
|
|
3551
3569
|
presentation: {
|
|
3552
3570
|
quiz?: {
|
|
@@ -3685,7 +3703,7 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
|
|
|
3685
3703
|
start: number;
|
|
3686
3704
|
end?: number | undefined;
|
|
3687
3705
|
};
|
|
3688
|
-
enrollment: "
|
|
3706
|
+
enrollment: "none" | "required";
|
|
3689
3707
|
posts: "after-enrollment" | "since-start";
|
|
3690
3708
|
historical: "staff" | "automatic" | "claim";
|
|
3691
3709
|
} | undefined;
|
|
@@ -3713,7 +3731,7 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
|
|
|
3713
3731
|
actor?: "member" | "staff" | undefined;
|
|
3714
3732
|
} | {
|
|
3715
3733
|
kind: "manual";
|
|
3716
|
-
input: "
|
|
3734
|
+
input: "none" | "quiz" | "photo";
|
|
3717
3735
|
actor?: "member" | "staff" | undefined;
|
|
3718
3736
|
};
|
|
3719
3737
|
requires: {
|
|
@@ -3729,10 +3747,10 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
|
|
|
3729
3747
|
} | {
|
|
3730
3748
|
kind: "keyed";
|
|
3731
3749
|
};
|
|
3732
|
-
visibility: "
|
|
3750
|
+
visibility: "visible" | "hidden";
|
|
3733
3751
|
budgets: {
|
|
3734
3752
|
id: string;
|
|
3735
|
-
scope: "
|
|
3753
|
+
scope: "project" | "member";
|
|
3736
3754
|
period: "day" | "lifetime" | "week";
|
|
3737
3755
|
limit: number;
|
|
3738
3756
|
cost: number | {
|
|
@@ -3744,11 +3762,14 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
|
|
|
3744
3762
|
id: string;
|
|
3745
3763
|
createdAt: number;
|
|
3746
3764
|
legacy: boolean;
|
|
3747
|
-
lifecycle: "
|
|
3765
|
+
lifecycle: "paused" | "active" | "archived";
|
|
3748
3766
|
performance?: {
|
|
3749
3767
|
metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
|
|
3750
3768
|
maxAgeMs: number;
|
|
3751
3769
|
} | undefined;
|
|
3770
|
+
profile?: {
|
|
3771
|
+
visible: boolean;
|
|
3772
|
+
} | undefined;
|
|
3752
3773
|
key?: string | undefined;
|
|
3753
3774
|
origin?: {
|
|
3754
3775
|
typeVersion: string;
|
|
@@ -3866,13 +3887,7 @@ declare const profileVisibilitySchema: z.ZodEnum<{
|
|
|
3866
3887
|
public: "public";
|
|
3867
3888
|
}>;
|
|
3868
3889
|
type ProfileVisibility = z.infer<typeof profileVisibilitySchema>;
|
|
3869
|
-
/**
|
|
3870
|
-
declare const profileDefaultsSchema: z.ZodEnum<{
|
|
3871
|
-
accounts: "accounts";
|
|
3872
|
-
generated: "generated";
|
|
3873
|
-
}>;
|
|
3874
|
-
type ProfileDefaults = z.infer<typeof profileDefaultsSchema>;
|
|
3875
|
-
/** Connected accounts a member can take a picture from. Only X and Discord supply defaults. */
|
|
3890
|
+
/** Connected accounts a member can take a picture from. */
|
|
3876
3891
|
declare const avatarProviderSchema: z.ZodEnum<{
|
|
3877
3892
|
discord: "discord";
|
|
3878
3893
|
x: "x";
|
|
@@ -3880,9 +3895,26 @@ declare const avatarProviderSchema: z.ZodEnum<{
|
|
|
3880
3895
|
}>;
|
|
3881
3896
|
type AvatarProvider = z.infer<typeof avatarProviderSchema>;
|
|
3882
3897
|
/**
|
|
3883
|
-
* The
|
|
3884
|
-
*
|
|
3885
|
-
|
|
3898
|
+
* The accounts that can supply a default name and picture: public personas. Google and Apple
|
|
3899
|
+
* accounts are usually a legal name and a personal photo, so they never do.
|
|
3900
|
+
*/
|
|
3901
|
+
declare const profileDefaultProviderSchema: z.ZodEnum<{
|
|
3902
|
+
discord: "discord";
|
|
3903
|
+
x: "x";
|
|
3904
|
+
}>;
|
|
3905
|
+
type ProfileDefaultProvider = z.infer<typeof profileDefaultProviderSchema>;
|
|
3906
|
+
/**
|
|
3907
|
+
* Where a profile's name and picture come from before the member chooses: the first of these
|
|
3908
|
+
* accounts the member connected that has one, in order. Empty means generated values.
|
|
3909
|
+
*/
|
|
3910
|
+
declare const profileDefaultsSchema: z.ZodArray<z.ZodEnum<{
|
|
3911
|
+
discord: "discord";
|
|
3912
|
+
x: "x";
|
|
3913
|
+
}>>;
|
|
3914
|
+
type ProfileDefaults = z.infer<typeof profileDefaultsSchema>;
|
|
3915
|
+
/**
|
|
3916
|
+
* The seed of a generated avatar (`defaultAvatar`), the same one `relay.me.get()` returns: an HMAC
|
|
3917
|
+
* of the member under the project's secret, so it reveals nothing about the member.
|
|
3886
3918
|
*/
|
|
3887
3919
|
declare const avatarSeedSchema: z.ZodString;
|
|
3888
3920
|
/**
|
|
@@ -4007,59 +4039,50 @@ declare const ownProfileSchema: z.ZodObject<{
|
|
|
4007
4039
|
}, z.core.$strip>>;
|
|
4008
4040
|
}, z.core.$strip>;
|
|
4009
4041
|
type OwnProfile = z.infer<typeof ownProfileSchema>;
|
|
4010
|
-
/** A profile
|
|
4011
|
-
declare const
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
self: z.ZodBoolean;
|
|
4032
|
-
leaderboards: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
4033
|
-
leaderboard: z.ZodString;
|
|
4034
|
-
key: z.ZodOptional<z.ZodString>;
|
|
4035
|
-
title: z.ZodString;
|
|
4036
|
-
rank: z.ZodNumber;
|
|
4037
|
-
score: z.ZodNumber;
|
|
4038
|
-
total: z.ZodNumber;
|
|
4039
|
-
}, z.core.$strip>>>;
|
|
4040
|
-
quests: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
4042
|
+
/** A page of a profile's quest completions: `limit` quests (default 20, at most 100) after `cursor`. */
|
|
4043
|
+
declare const profileCompletionQuerySchema: z.ZodObject<{
|
|
4044
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
4045
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
4046
|
+
}, z.core.$strict>;
|
|
4047
|
+
type ProfileCompletionQuery = z.input<typeof profileCompletionQuerySchema>;
|
|
4048
|
+
/** A quest the member completed, grouped over its completions. */
|
|
4049
|
+
declare const profileCompletionSchema: z.ZodObject<{
|
|
4050
|
+
quest: z.ZodString;
|
|
4051
|
+
key: z.ZodOptional<z.ZodString>;
|
|
4052
|
+
title: z.ZodString;
|
|
4053
|
+
completions: z.ZodNumber;
|
|
4054
|
+
lastCompletedAt: z.ZodNullable<z.ZodNumber>;
|
|
4055
|
+
}, z.core.$strip>;
|
|
4056
|
+
type ProfileCompletion = z.infer<typeof profileCompletionSchema>;
|
|
4057
|
+
/**
|
|
4058
|
+
* A profile's completions of the quests that show on profiles (`defineQuest({ profile: { visible:
|
|
4059
|
+
* true } })`), most recently completed first. Pass `nextCursor` as `cursor` for the next page.
|
|
4060
|
+
*/
|
|
4061
|
+
declare const profileCompletionPageSchema: z.ZodObject<{
|
|
4062
|
+
items: z.ZodArray<z.ZodObject<{
|
|
4041
4063
|
quest: z.ZodString;
|
|
4042
4064
|
key: z.ZodOptional<z.ZodString>;
|
|
4043
4065
|
title: z.ZodString;
|
|
4044
4066
|
completions: z.ZodNumber;
|
|
4045
4067
|
lastCompletedAt: z.ZodNullable<z.ZodNumber>;
|
|
4046
|
-
}, z.core.$strip>>>;
|
|
4047
|
-
referrals: z.ZodNullable<z.ZodObject<{
|
|
4048
|
-
attributed: z.ZodNumber;
|
|
4049
|
-
programs: z.ZodArray<z.ZodObject<{
|
|
4050
|
-
program: z.ZodString;
|
|
4051
|
-
key: z.ZodOptional<z.ZodString>;
|
|
4052
|
-
title: z.ZodString;
|
|
4053
|
-
qualified: z.ZodNumber;
|
|
4054
|
-
milestones: z.ZodArray<z.ZodObject<{
|
|
4055
|
-
id: z.ZodString;
|
|
4056
|
-
count: z.ZodNumber;
|
|
4057
|
-
reached: z.ZodBoolean;
|
|
4058
|
-
}, z.core.$strip>>;
|
|
4059
|
-
}, z.core.$strip>>;
|
|
4060
4068
|
}, z.core.$strip>>;
|
|
4069
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
4061
4070
|
}, z.core.$strip>;
|
|
4062
|
-
type
|
|
4071
|
+
type ProfileCompletionPage = z.infer<typeof profileCompletionPageSchema>;
|
|
4072
|
+
/** A profile's progress in one referral program: counts only, never codes or accounts. */
|
|
4073
|
+
declare const profileReferralSchema: z.ZodObject<{
|
|
4074
|
+
program: z.ZodString;
|
|
4075
|
+
key: z.ZodOptional<z.ZodString>;
|
|
4076
|
+
title: z.ZodString;
|
|
4077
|
+
invited: z.ZodNumber;
|
|
4078
|
+
qualified: z.ZodNumber;
|
|
4079
|
+
milestones: z.ZodArray<z.ZodObject<{
|
|
4080
|
+
id: z.ZodString;
|
|
4081
|
+
count: z.ZodNumber;
|
|
4082
|
+
reached: z.ZodBoolean;
|
|
4083
|
+
}, z.core.$strip>>;
|
|
4084
|
+
}, z.core.$strip>;
|
|
4085
|
+
type ProfileReferral = z.infer<typeof profileReferralSchema>;
|
|
4063
4086
|
/** A project's profile settings in one environment. */
|
|
4064
4087
|
declare const profileSettingsSchema: z.ZodObject<{
|
|
4065
4088
|
visibility: z.ZodEnum<{
|
|
@@ -4067,15 +4090,10 @@ declare const profileSettingsSchema: z.ZodObject<{
|
|
|
4067
4090
|
participants: "participants";
|
|
4068
4091
|
public: "public";
|
|
4069
4092
|
}>;
|
|
4070
|
-
defaults: z.ZodEnum<{
|
|
4071
|
-
|
|
4072
|
-
|
|
4073
|
-
}
|
|
4074
|
-
sections: z.ZodObject<{
|
|
4075
|
-
leaderboards: z.ZodBoolean;
|
|
4076
|
-
quests: z.ZodBoolean;
|
|
4077
|
-
referrals: z.ZodBoolean;
|
|
4078
|
-
}, z.core.$strip>;
|
|
4093
|
+
defaults: z.ZodArray<z.ZodEnum<{
|
|
4094
|
+
discord: "discord";
|
|
4095
|
+
x: "x";
|
|
4096
|
+
}>>;
|
|
4079
4097
|
revision: z.ZodNumber;
|
|
4080
4098
|
actor: z.ZodNullable<z.ZodString>;
|
|
4081
4099
|
updatedAt: z.ZodNullable<z.ZodNumber>;
|
|
@@ -4087,15 +4105,10 @@ declare const profileSettingsInputSchema: z.ZodObject<{
|
|
|
4087
4105
|
participants: "participants";
|
|
4088
4106
|
public: "public";
|
|
4089
4107
|
}>;
|
|
4090
|
-
defaults: z.ZodEnum<{
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
}
|
|
4094
|
-
sections: z.ZodObject<{
|
|
4095
|
-
leaderboards: z.ZodBoolean;
|
|
4096
|
-
quests: z.ZodBoolean;
|
|
4097
|
-
referrals: z.ZodBoolean;
|
|
4098
|
-
}, z.core.$strip>;
|
|
4108
|
+
defaults: z.ZodArray<z.ZodEnum<{
|
|
4109
|
+
discord: "discord";
|
|
4110
|
+
x: "x";
|
|
4111
|
+
}>>;
|
|
4099
4112
|
actionId: z.ZodString;
|
|
4100
4113
|
expectedRevision: z.ZodNumber;
|
|
4101
4114
|
reason: z.ZodString;
|
|
@@ -4160,7 +4173,10 @@ type ManagedProfile = z.infer<typeof managedProfileSchema>;
|
|
|
4160
4173
|
/** The largest avatar upload, and the types an upload can have. */
|
|
4161
4174
|
declare const AVATAR_UPLOAD_LIMIT: number;
|
|
4162
4175
|
declare const avatarUploadTypes: string[];
|
|
4163
|
-
/**
|
|
4176
|
+
/**
|
|
4177
|
+
* The profile routes hosted proxies and the API's scope selector admit, with their methods: the
|
|
4178
|
+
* member's own profile, and the reads keyed by a public profile ID.
|
|
4179
|
+
*/
|
|
4164
4180
|
declare function isProfileParticipantRoute(path: string, method: string): boolean;
|
|
4165
4181
|
|
|
4166
4182
|
declare const pointLedgerPropertiesSchema: z.ZodObject<{
|
|
@@ -4398,6 +4414,12 @@ declare function questConfiguration(release: PublishedRelease): {
|
|
|
4398
4414
|
|
|
4399
4415
|
/** Non-quest resources in the private hosted-build catalog artifact. */
|
|
4400
4416
|
declare const projectCatalogArtifactSchema: z.ZodObject<{
|
|
4417
|
+
types: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4418
|
+
code: z.ZodString;
|
|
4419
|
+
provider: z.ZodEnum<{
|
|
4420
|
+
"workers-ai": "workers-ai";
|
|
4421
|
+
}>;
|
|
4422
|
+
}, z.core.$strip>>>;
|
|
4401
4423
|
collections: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
4402
4424
|
title: z.ZodString;
|
|
4403
4425
|
key: z.ZodOptional<z.ZodString>;
|
|
@@ -4406,27 +4428,21 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
|
|
|
4406
4428
|
title: string;
|
|
4407
4429
|
key?: string | undefined;
|
|
4408
4430
|
id?: string | undefined;
|
|
4409
|
-
}, "
|
|
4431
|
+
}, "id" | "key"> & {
|
|
4410
4432
|
key: string;
|
|
4411
4433
|
}, {
|
|
4412
4434
|
title: string;
|
|
4413
4435
|
key?: string | undefined;
|
|
4414
4436
|
id?: string | undefined;
|
|
4415
4437
|
}>>>>;
|
|
4416
|
-
types: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4417
|
-
code: z.ZodString;
|
|
4418
|
-
provider: z.ZodEnum<{
|
|
4419
|
-
"workers-ai": "workers-ai";
|
|
4420
|
-
}>;
|
|
4421
|
-
}, z.core.$strip>>>;
|
|
4422
4438
|
supportedInteractions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
4423
|
-
quiz: "quiz";
|
|
4424
|
-
url: "url";
|
|
4425
|
-
text: "text";
|
|
4426
4439
|
staff: "staff";
|
|
4427
|
-
|
|
4440
|
+
text: "text";
|
|
4441
|
+
url: "url";
|
|
4428
4442
|
automatic: "automatic";
|
|
4429
4443
|
claim: "claim";
|
|
4444
|
+
quiz: "quiz";
|
|
4445
|
+
photo: "photo";
|
|
4430
4446
|
}>>>;
|
|
4431
4447
|
engagement: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4432
4448
|
code: z.ZodString;
|
|
@@ -4458,6 +4474,14 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
|
|
|
4458
4474
|
}, z.core.$strict>>>;
|
|
4459
4475
|
referrals: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
4460
4476
|
title: z.ZodString;
|
|
4477
|
+
qualification: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4478
|
+
kind: z.ZodLiteral<"signup">;
|
|
4479
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4480
|
+
kind: z.ZodLiteral<"quest">;
|
|
4481
|
+
quest: z.ZodString;
|
|
4482
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4483
|
+
kind: z.ZodLiteral<"external">;
|
|
4484
|
+
}, z.core.$strict>], "kind">;
|
|
4461
4485
|
rewards: z.ZodDefault<z.ZodObject<{
|
|
4462
4486
|
inviter: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
4463
4487
|
kind: z.ZodDefault<z.ZodLiteral<"points">>;
|
|
@@ -4504,14 +4528,6 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
|
|
|
4504
4528
|
tier: z.ZodString;
|
|
4505
4529
|
}, z.core.$strict>]>>>;
|
|
4506
4530
|
}, z.core.$strict>>;
|
|
4507
|
-
qualification: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4508
|
-
kind: z.ZodLiteral<"signup">;
|
|
4509
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
4510
|
-
kind: z.ZodLiteral<"quest">;
|
|
4511
|
-
quest: z.ZodString;
|
|
4512
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
4513
|
-
kind: z.ZodLiteral<"external">;
|
|
4514
|
-
}, z.core.$strict>], "kind">;
|
|
4515
4531
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
4516
4532
|
inviterGroup: z.ZodOptional<z.ZodString>;
|
|
4517
4533
|
milestones: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -4553,6 +4569,14 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
|
|
|
4553
4569
|
id: z.ZodOptional<z.ZodString>;
|
|
4554
4570
|
}, z.core.$strict>, z.ZodTransform<Omit<{
|
|
4555
4571
|
title: string;
|
|
4572
|
+
qualification: {
|
|
4573
|
+
kind: "signup";
|
|
4574
|
+
} | {
|
|
4575
|
+
kind: "quest";
|
|
4576
|
+
quest: string;
|
|
4577
|
+
} | {
|
|
4578
|
+
kind: "external";
|
|
4579
|
+
};
|
|
4556
4580
|
rewards: {
|
|
4557
4581
|
inviter: ({
|
|
4558
4582
|
kind: "tier";
|
|
@@ -4599,14 +4623,6 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
|
|
|
4599
4623
|
amount: number;
|
|
4600
4624
|
})[];
|
|
4601
4625
|
};
|
|
4602
|
-
qualification: {
|
|
4603
|
-
kind: "signup";
|
|
4604
|
-
} | {
|
|
4605
|
-
kind: "quest";
|
|
4606
|
-
quest: string;
|
|
4607
|
-
} | {
|
|
4608
|
-
kind: "external";
|
|
4609
|
-
};
|
|
4610
4626
|
enabled: boolean;
|
|
4611
4627
|
milestones: {
|
|
4612
4628
|
id: string;
|
|
@@ -4646,10 +4662,18 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
|
|
|
4646
4662
|
inviterGroup?: string | undefined;
|
|
4647
4663
|
key?: string | undefined;
|
|
4648
4664
|
id?: string | undefined;
|
|
4649
|
-
}, "
|
|
4665
|
+
}, "id" | "key"> & {
|
|
4650
4666
|
key: string;
|
|
4651
4667
|
}, {
|
|
4652
4668
|
title: string;
|
|
4669
|
+
qualification: {
|
|
4670
|
+
kind: "signup";
|
|
4671
|
+
} | {
|
|
4672
|
+
kind: "quest";
|
|
4673
|
+
quest: string;
|
|
4674
|
+
} | {
|
|
4675
|
+
kind: "external";
|
|
4676
|
+
};
|
|
4653
4677
|
rewards: {
|
|
4654
4678
|
inviter: ({
|
|
4655
4679
|
kind: "tier";
|
|
@@ -4696,14 +4720,6 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
|
|
|
4696
4720
|
amount: number;
|
|
4697
4721
|
})[];
|
|
4698
4722
|
};
|
|
4699
|
-
qualification: {
|
|
4700
|
-
kind: "signup";
|
|
4701
|
-
} | {
|
|
4702
|
-
kind: "quest";
|
|
4703
|
-
quest: string;
|
|
4704
|
-
} | {
|
|
4705
|
-
kind: "external";
|
|
4706
|
-
};
|
|
4707
4723
|
enabled: boolean;
|
|
4708
4724
|
milestones: {
|
|
4709
4725
|
id: string;
|
|
@@ -4843,7 +4859,7 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
|
|
|
4843
4859
|
group?: string | undefined;
|
|
4844
4860
|
key?: string | undefined;
|
|
4845
4861
|
id?: string | undefined;
|
|
4846
|
-
}, "
|
|
4862
|
+
}, "id" | "key"> & {
|
|
4847
4863
|
key: string;
|
|
4848
4864
|
}, {
|
|
4849
4865
|
title: string;
|
|
@@ -4900,6 +4916,12 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
|
|
|
4900
4916
|
}, z.core.$strict>;
|
|
4901
4917
|
/** One manifest bundle. Missing entries never delete remotely owned resources. */
|
|
4902
4918
|
declare const projectDeploymentSchema: z.ZodObject<{
|
|
4919
|
+
types: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4920
|
+
code: z.ZodString;
|
|
4921
|
+
provider: z.ZodEnum<{
|
|
4922
|
+
"workers-ai": "workers-ai";
|
|
4923
|
+
}>;
|
|
4924
|
+
}, z.core.$strip>>>;
|
|
4903
4925
|
collections: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
4904
4926
|
title: z.ZodString;
|
|
4905
4927
|
key: z.ZodOptional<z.ZodString>;
|
|
@@ -4908,27 +4930,21 @@ declare const projectDeploymentSchema: z.ZodObject<{
|
|
|
4908
4930
|
title: string;
|
|
4909
4931
|
key?: string | undefined;
|
|
4910
4932
|
id?: string | undefined;
|
|
4911
|
-
}, "
|
|
4933
|
+
}, "id" | "key"> & {
|
|
4912
4934
|
key: string;
|
|
4913
4935
|
}, {
|
|
4914
4936
|
title: string;
|
|
4915
4937
|
key?: string | undefined;
|
|
4916
4938
|
id?: string | undefined;
|
|
4917
4939
|
}>>>>;
|
|
4918
|
-
types: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4919
|
-
code: z.ZodString;
|
|
4920
|
-
provider: z.ZodEnum<{
|
|
4921
|
-
"workers-ai": "workers-ai";
|
|
4922
|
-
}>;
|
|
4923
|
-
}, z.core.$strip>>>;
|
|
4924
4940
|
supportedInteractions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
4925
|
-
quiz: "quiz";
|
|
4926
|
-
url: "url";
|
|
4927
|
-
text: "text";
|
|
4928
4941
|
staff: "staff";
|
|
4929
|
-
|
|
4942
|
+
text: "text";
|
|
4943
|
+
url: "url";
|
|
4930
4944
|
automatic: "automatic";
|
|
4931
4945
|
claim: "claim";
|
|
4946
|
+
quiz: "quiz";
|
|
4947
|
+
photo: "photo";
|
|
4932
4948
|
}>>>;
|
|
4933
4949
|
engagement: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4934
4950
|
code: z.ZodString;
|
|
@@ -4960,6 +4976,14 @@ declare const projectDeploymentSchema: z.ZodObject<{
|
|
|
4960
4976
|
}, z.core.$strict>>>;
|
|
4961
4977
|
referrals: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
4962
4978
|
title: z.ZodString;
|
|
4979
|
+
qualification: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4980
|
+
kind: z.ZodLiteral<"signup">;
|
|
4981
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4982
|
+
kind: z.ZodLiteral<"quest">;
|
|
4983
|
+
quest: z.ZodString;
|
|
4984
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4985
|
+
kind: z.ZodLiteral<"external">;
|
|
4986
|
+
}, z.core.$strict>], "kind">;
|
|
4963
4987
|
rewards: z.ZodDefault<z.ZodObject<{
|
|
4964
4988
|
inviter: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
4965
4989
|
kind: z.ZodDefault<z.ZodLiteral<"points">>;
|
|
@@ -5006,14 +5030,6 @@ declare const projectDeploymentSchema: z.ZodObject<{
|
|
|
5006
5030
|
tier: z.ZodString;
|
|
5007
5031
|
}, z.core.$strict>]>>>;
|
|
5008
5032
|
}, z.core.$strict>>;
|
|
5009
|
-
qualification: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5010
|
-
kind: z.ZodLiteral<"signup">;
|
|
5011
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
5012
|
-
kind: z.ZodLiteral<"quest">;
|
|
5013
|
-
quest: z.ZodString;
|
|
5014
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
5015
|
-
kind: z.ZodLiteral<"external">;
|
|
5016
|
-
}, z.core.$strict>], "kind">;
|
|
5017
5033
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
5018
5034
|
inviterGroup: z.ZodOptional<z.ZodString>;
|
|
5019
5035
|
milestones: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -5055,6 +5071,14 @@ declare const projectDeploymentSchema: z.ZodObject<{
|
|
|
5055
5071
|
id: z.ZodOptional<z.ZodString>;
|
|
5056
5072
|
}, z.core.$strict>, z.ZodTransform<Omit<{
|
|
5057
5073
|
title: string;
|
|
5074
|
+
qualification: {
|
|
5075
|
+
kind: "signup";
|
|
5076
|
+
} | {
|
|
5077
|
+
kind: "quest";
|
|
5078
|
+
quest: string;
|
|
5079
|
+
} | {
|
|
5080
|
+
kind: "external";
|
|
5081
|
+
};
|
|
5058
5082
|
rewards: {
|
|
5059
5083
|
inviter: ({
|
|
5060
5084
|
kind: "tier";
|
|
@@ -5101,14 +5125,6 @@ declare const projectDeploymentSchema: z.ZodObject<{
|
|
|
5101
5125
|
amount: number;
|
|
5102
5126
|
})[];
|
|
5103
5127
|
};
|
|
5104
|
-
qualification: {
|
|
5105
|
-
kind: "signup";
|
|
5106
|
-
} | {
|
|
5107
|
-
kind: "quest";
|
|
5108
|
-
quest: string;
|
|
5109
|
-
} | {
|
|
5110
|
-
kind: "external";
|
|
5111
|
-
};
|
|
5112
5128
|
enabled: boolean;
|
|
5113
5129
|
milestones: {
|
|
5114
5130
|
id: string;
|
|
@@ -5148,10 +5164,18 @@ declare const projectDeploymentSchema: z.ZodObject<{
|
|
|
5148
5164
|
inviterGroup?: string | undefined;
|
|
5149
5165
|
key?: string | undefined;
|
|
5150
5166
|
id?: string | undefined;
|
|
5151
|
-
}, "
|
|
5167
|
+
}, "id" | "key"> & {
|
|
5152
5168
|
key: string;
|
|
5153
5169
|
}, {
|
|
5154
5170
|
title: string;
|
|
5171
|
+
qualification: {
|
|
5172
|
+
kind: "signup";
|
|
5173
|
+
} | {
|
|
5174
|
+
kind: "quest";
|
|
5175
|
+
quest: string;
|
|
5176
|
+
} | {
|
|
5177
|
+
kind: "external";
|
|
5178
|
+
};
|
|
5155
5179
|
rewards: {
|
|
5156
5180
|
inviter: ({
|
|
5157
5181
|
kind: "tier";
|
|
@@ -5195,16 +5219,8 @@ declare const projectDeploymentSchema: z.ZodObject<{
|
|
|
5195
5219
|
} | {
|
|
5196
5220
|
kind: "points";
|
|
5197
5221
|
balance: string;
|
|
5198
|
-
amount: number;
|
|
5199
|
-
})[];
|
|
5200
|
-
};
|
|
5201
|
-
qualification: {
|
|
5202
|
-
kind: "signup";
|
|
5203
|
-
} | {
|
|
5204
|
-
kind: "quest";
|
|
5205
|
-
quest: string;
|
|
5206
|
-
} | {
|
|
5207
|
-
kind: "external";
|
|
5222
|
+
amount: number;
|
|
5223
|
+
})[];
|
|
5208
5224
|
};
|
|
5209
5225
|
enabled: boolean;
|
|
5210
5226
|
milestones: {
|
|
@@ -5345,7 +5361,7 @@ declare const projectDeploymentSchema: z.ZodObject<{
|
|
|
5345
5361
|
group?: string | undefined;
|
|
5346
5362
|
key?: string | undefined;
|
|
5347
5363
|
id?: string | undefined;
|
|
5348
|
-
}, "
|
|
5364
|
+
}, "id" | "key"> & {
|
|
5349
5365
|
key: string;
|
|
5350
5366
|
}, {
|
|
5351
5367
|
title: string;
|
|
@@ -5729,9 +5745,9 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
5729
5745
|
}, z.core.$strict>, z.ZodObject<{
|
|
5730
5746
|
kind: z.ZodLiteral<"manual">;
|
|
5731
5747
|
input: z.ZodEnum<{
|
|
5748
|
+
none: "none";
|
|
5732
5749
|
quiz: "quiz";
|
|
5733
5750
|
photo: "photo";
|
|
5734
|
-
none: "none";
|
|
5735
5751
|
}>;
|
|
5736
5752
|
actor: z.ZodOptional<z.ZodEnum<{
|
|
5737
5753
|
member: "member";
|
|
@@ -5750,8 +5766,8 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
5750
5766
|
end: z.ZodOptional<z.ZodNumber>;
|
|
5751
5767
|
}, z.core.$strict>;
|
|
5752
5768
|
enrollment: z.ZodDefault<z.ZodEnum<{
|
|
5753
|
-
required: "required";
|
|
5754
5769
|
none: "none";
|
|
5770
|
+
required: "required";
|
|
5755
5771
|
}>>;
|
|
5756
5772
|
posts: z.ZodDefault<z.ZodEnum<{
|
|
5757
5773
|
"after-enrollment": "after-enrollment";
|
|
@@ -5800,14 +5816,17 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
5800
5816
|
kind: z.ZodLiteral<"keyed">;
|
|
5801
5817
|
}, z.core.$strict>], "kind">;
|
|
5802
5818
|
visibility: z.ZodDefault<z.ZodEnum<{
|
|
5803
|
-
hidden: "hidden";
|
|
5804
5819
|
visible: "visible";
|
|
5820
|
+
hidden: "hidden";
|
|
5805
5821
|
}>>;
|
|
5822
|
+
profile: z.ZodOptional<z.ZodObject<{
|
|
5823
|
+
visible: z.ZodBoolean;
|
|
5824
|
+
}, z.core.$strict>>;
|
|
5806
5825
|
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
5807
5826
|
id: z.ZodString;
|
|
5808
5827
|
scope: z.ZodEnum<{
|
|
5809
|
-
member: "member";
|
|
5810
5828
|
project: "project";
|
|
5829
|
+
member: "member";
|
|
5811
5830
|
}>;
|
|
5812
5831
|
period: z.ZodEnum<{
|
|
5813
5832
|
day: "day";
|
|
@@ -5835,8 +5854,8 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
5835
5854
|
typeVersion: z.ZodString;
|
|
5836
5855
|
}, z.core.$strict>>;
|
|
5837
5856
|
lifecycle: z.ZodDefault<z.ZodEnum<{
|
|
5838
|
-
active: "active";
|
|
5839
5857
|
paused: "paused";
|
|
5858
|
+
active: "active";
|
|
5840
5859
|
archived: "archived";
|
|
5841
5860
|
}>>;
|
|
5842
5861
|
configuration: z.ZodOptional<z.ZodObject<{
|
|
@@ -5904,7 +5923,7 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
5904
5923
|
createdAt: z.ZodNumber;
|
|
5905
5924
|
}, z.core.$strip>, z.ZodTransform<{
|
|
5906
5925
|
quest: string;
|
|
5907
|
-
runtimeVersion:
|
|
5926
|
+
runtimeVersion: 2 | 1;
|
|
5908
5927
|
title: string;
|
|
5909
5928
|
presentation: {
|
|
5910
5929
|
quiz?: {
|
|
@@ -6043,7 +6062,7 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
6043
6062
|
start: number;
|
|
6044
6063
|
end?: number | undefined;
|
|
6045
6064
|
};
|
|
6046
|
-
enrollment: "
|
|
6065
|
+
enrollment: "none" | "required";
|
|
6047
6066
|
posts: "after-enrollment" | "since-start";
|
|
6048
6067
|
historical: "staff" | "automatic" | "claim";
|
|
6049
6068
|
} | undefined;
|
|
@@ -6071,7 +6090,7 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
6071
6090
|
actor?: "member" | "staff" | undefined;
|
|
6072
6091
|
} | {
|
|
6073
6092
|
kind: "manual";
|
|
6074
|
-
input: "
|
|
6093
|
+
input: "none" | "quiz" | "photo";
|
|
6075
6094
|
actor?: "member" | "staff" | undefined;
|
|
6076
6095
|
};
|
|
6077
6096
|
requires: {
|
|
@@ -6087,10 +6106,10 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
6087
6106
|
} | {
|
|
6088
6107
|
kind: "keyed";
|
|
6089
6108
|
};
|
|
6090
|
-
visibility: "
|
|
6109
|
+
visibility: "visible" | "hidden";
|
|
6091
6110
|
budgets: {
|
|
6092
6111
|
id: string;
|
|
6093
|
-
scope: "
|
|
6112
|
+
scope: "project" | "member";
|
|
6094
6113
|
period: "day" | "lifetime" | "week";
|
|
6095
6114
|
limit: number;
|
|
6096
6115
|
cost: number | {
|
|
@@ -6102,11 +6121,14 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
6102
6121
|
id: string;
|
|
6103
6122
|
createdAt: number;
|
|
6104
6123
|
legacy: boolean;
|
|
6105
|
-
lifecycle: "
|
|
6124
|
+
lifecycle: "paused" | "active" | "archived";
|
|
6106
6125
|
performance?: {
|
|
6107
6126
|
metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
|
|
6108
6127
|
maxAgeMs: number;
|
|
6109
6128
|
} | undefined;
|
|
6129
|
+
profile?: {
|
|
6130
|
+
visible: boolean;
|
|
6131
|
+
} | undefined;
|
|
6110
6132
|
key?: string | undefined;
|
|
6111
6133
|
origin?: {
|
|
6112
6134
|
typeVersion: string;
|
|
@@ -6334,9 +6356,9 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
6334
6356
|
}, z.core.$strict>, z.ZodObject<{
|
|
6335
6357
|
kind: z.ZodLiteral<"manual">;
|
|
6336
6358
|
input: z.ZodEnum<{
|
|
6359
|
+
none: "none";
|
|
6337
6360
|
quiz: "quiz";
|
|
6338
6361
|
photo: "photo";
|
|
6339
|
-
none: "none";
|
|
6340
6362
|
}>;
|
|
6341
6363
|
actor: z.ZodOptional<z.ZodEnum<{
|
|
6342
6364
|
member: "member";
|
|
@@ -6355,8 +6377,8 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
6355
6377
|
end: z.ZodOptional<z.ZodNumber>;
|
|
6356
6378
|
}, z.core.$strict>;
|
|
6357
6379
|
enrollment: z.ZodDefault<z.ZodEnum<{
|
|
6358
|
-
required: "required";
|
|
6359
6380
|
none: "none";
|
|
6381
|
+
required: "required";
|
|
6360
6382
|
}>>;
|
|
6361
6383
|
posts: z.ZodDefault<z.ZodEnum<{
|
|
6362
6384
|
"after-enrollment": "after-enrollment";
|
|
@@ -6405,14 +6427,17 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
6405
6427
|
kind: z.ZodLiteral<"keyed">;
|
|
6406
6428
|
}, z.core.$strict>], "kind">;
|
|
6407
6429
|
visibility: z.ZodDefault<z.ZodEnum<{
|
|
6408
|
-
hidden: "hidden";
|
|
6409
6430
|
visible: "visible";
|
|
6431
|
+
hidden: "hidden";
|
|
6410
6432
|
}>>;
|
|
6433
|
+
profile: z.ZodOptional<z.ZodObject<{
|
|
6434
|
+
visible: z.ZodBoolean;
|
|
6435
|
+
}, z.core.$strict>>;
|
|
6411
6436
|
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
6412
6437
|
id: z.ZodString;
|
|
6413
6438
|
scope: z.ZodEnum<{
|
|
6414
|
-
member: "member";
|
|
6415
6439
|
project: "project";
|
|
6440
|
+
member: "member";
|
|
6416
6441
|
}>;
|
|
6417
6442
|
period: z.ZodEnum<{
|
|
6418
6443
|
day: "day";
|
|
@@ -6441,13 +6466,13 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
6441
6466
|
quests: z.ZodArray<z.ZodString>;
|
|
6442
6467
|
}, z.core.$strict>>;
|
|
6443
6468
|
supportedInteractions: z.ZodArray<z.ZodEnum<{
|
|
6444
|
-
quiz: "quiz";
|
|
6445
|
-
url: "url";
|
|
6446
|
-
text: "text";
|
|
6447
6469
|
staff: "staff";
|
|
6448
|
-
|
|
6470
|
+
text: "text";
|
|
6471
|
+
url: "url";
|
|
6449
6472
|
automatic: "automatic";
|
|
6450
6473
|
claim: "claim";
|
|
6474
|
+
quiz: "quiz";
|
|
6475
|
+
photo: "photo";
|
|
6451
6476
|
}>>;
|
|
6452
6477
|
referrals: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
6453
6478
|
version: z.ZodString;
|
|
@@ -7144,9 +7169,9 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
7144
7169
|
}, z.core.$strict>, z.ZodObject<{
|
|
7145
7170
|
kind: z.ZodLiteral<"manual">;
|
|
7146
7171
|
input: z.ZodEnum<{
|
|
7172
|
+
none: "none";
|
|
7147
7173
|
quiz: "quiz";
|
|
7148
7174
|
photo: "photo";
|
|
7149
|
-
none: "none";
|
|
7150
7175
|
}>;
|
|
7151
7176
|
actor: z.ZodOptional<z.ZodEnum<{
|
|
7152
7177
|
member: "member";
|
|
@@ -7165,8 +7190,8 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
7165
7190
|
end: z.ZodOptional<z.ZodNumber>;
|
|
7166
7191
|
}, z.core.$strict>;
|
|
7167
7192
|
enrollment: z.ZodDefault<z.ZodEnum<{
|
|
7168
|
-
required: "required";
|
|
7169
7193
|
none: "none";
|
|
7194
|
+
required: "required";
|
|
7170
7195
|
}>>;
|
|
7171
7196
|
posts: z.ZodDefault<z.ZodEnum<{
|
|
7172
7197
|
"after-enrollment": "after-enrollment";
|
|
@@ -7215,14 +7240,17 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
7215
7240
|
kind: z.ZodLiteral<"keyed">;
|
|
7216
7241
|
}, z.core.$strict>], "kind">;
|
|
7217
7242
|
visibility: z.ZodDefault<z.ZodEnum<{
|
|
7218
|
-
hidden: "hidden";
|
|
7219
7243
|
visible: "visible";
|
|
7244
|
+
hidden: "hidden";
|
|
7220
7245
|
}>>;
|
|
7246
|
+
profile: z.ZodOptional<z.ZodObject<{
|
|
7247
|
+
visible: z.ZodBoolean;
|
|
7248
|
+
}, z.core.$strict>>;
|
|
7221
7249
|
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
7222
7250
|
id: z.ZodString;
|
|
7223
7251
|
scope: z.ZodEnum<{
|
|
7224
|
-
member: "member";
|
|
7225
7252
|
project: "project";
|
|
7253
|
+
member: "member";
|
|
7226
7254
|
}>;
|
|
7227
7255
|
period: z.ZodEnum<{
|
|
7228
7256
|
day: "day";
|
|
@@ -7250,8 +7278,8 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
7250
7278
|
typeVersion: z.ZodString;
|
|
7251
7279
|
}, z.core.$strict>>;
|
|
7252
7280
|
lifecycle: z.ZodDefault<z.ZodEnum<{
|
|
7253
|
-
active: "active";
|
|
7254
7281
|
paused: "paused";
|
|
7282
|
+
active: "active";
|
|
7255
7283
|
archived: "archived";
|
|
7256
7284
|
}>>;
|
|
7257
7285
|
configuration: z.ZodOptional<z.ZodObject<{
|
|
@@ -7319,7 +7347,7 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
7319
7347
|
createdAt: z.ZodNumber;
|
|
7320
7348
|
}, z.core.$strip>, z.ZodTransform<{
|
|
7321
7349
|
quest: string;
|
|
7322
|
-
runtimeVersion:
|
|
7350
|
+
runtimeVersion: 2 | 1;
|
|
7323
7351
|
title: string;
|
|
7324
7352
|
presentation: {
|
|
7325
7353
|
quiz?: {
|
|
@@ -7458,7 +7486,7 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
7458
7486
|
start: number;
|
|
7459
7487
|
end?: number | undefined;
|
|
7460
7488
|
};
|
|
7461
|
-
enrollment: "
|
|
7489
|
+
enrollment: "none" | "required";
|
|
7462
7490
|
posts: "after-enrollment" | "since-start";
|
|
7463
7491
|
historical: "staff" | "automatic" | "claim";
|
|
7464
7492
|
} | undefined;
|
|
@@ -7486,7 +7514,7 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
7486
7514
|
actor?: "member" | "staff" | undefined;
|
|
7487
7515
|
} | {
|
|
7488
7516
|
kind: "manual";
|
|
7489
|
-
input: "
|
|
7517
|
+
input: "none" | "quiz" | "photo";
|
|
7490
7518
|
actor?: "member" | "staff" | undefined;
|
|
7491
7519
|
};
|
|
7492
7520
|
requires: {
|
|
@@ -7502,10 +7530,10 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
7502
7530
|
} | {
|
|
7503
7531
|
kind: "keyed";
|
|
7504
7532
|
};
|
|
7505
|
-
visibility: "
|
|
7533
|
+
visibility: "visible" | "hidden";
|
|
7506
7534
|
budgets: {
|
|
7507
7535
|
id: string;
|
|
7508
|
-
scope: "
|
|
7536
|
+
scope: "project" | "member";
|
|
7509
7537
|
period: "day" | "lifetime" | "week";
|
|
7510
7538
|
limit: number;
|
|
7511
7539
|
cost: number | {
|
|
@@ -7517,11 +7545,14 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
7517
7545
|
id: string;
|
|
7518
7546
|
createdAt: number;
|
|
7519
7547
|
legacy: boolean;
|
|
7520
|
-
lifecycle: "
|
|
7548
|
+
lifecycle: "paused" | "active" | "archived";
|
|
7521
7549
|
performance?: {
|
|
7522
7550
|
metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
|
|
7523
7551
|
maxAgeMs: number;
|
|
7524
7552
|
} | undefined;
|
|
7553
|
+
profile?: {
|
|
7554
|
+
visible: boolean;
|
|
7555
|
+
} | undefined;
|
|
7525
7556
|
key?: string | undefined;
|
|
7526
7557
|
origin?: {
|
|
7527
7558
|
typeVersion: string;
|
|
@@ -7749,9 +7780,9 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
7749
7780
|
}, z.core.$strict>, z.ZodObject<{
|
|
7750
7781
|
kind: z.ZodLiteral<"manual">;
|
|
7751
7782
|
input: z.ZodEnum<{
|
|
7783
|
+
none: "none";
|
|
7752
7784
|
quiz: "quiz";
|
|
7753
7785
|
photo: "photo";
|
|
7754
|
-
none: "none";
|
|
7755
7786
|
}>;
|
|
7756
7787
|
actor: z.ZodOptional<z.ZodEnum<{
|
|
7757
7788
|
member: "member";
|
|
@@ -7770,8 +7801,8 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
7770
7801
|
end: z.ZodOptional<z.ZodNumber>;
|
|
7771
7802
|
}, z.core.$strict>;
|
|
7772
7803
|
enrollment: z.ZodDefault<z.ZodEnum<{
|
|
7773
|
-
required: "required";
|
|
7774
7804
|
none: "none";
|
|
7805
|
+
required: "required";
|
|
7775
7806
|
}>>;
|
|
7776
7807
|
posts: z.ZodDefault<z.ZodEnum<{
|
|
7777
7808
|
"after-enrollment": "after-enrollment";
|
|
@@ -7820,14 +7851,17 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
7820
7851
|
kind: z.ZodLiteral<"keyed">;
|
|
7821
7852
|
}, z.core.$strict>], "kind">;
|
|
7822
7853
|
visibility: z.ZodDefault<z.ZodEnum<{
|
|
7823
|
-
hidden: "hidden";
|
|
7824
7854
|
visible: "visible";
|
|
7855
|
+
hidden: "hidden";
|
|
7825
7856
|
}>>;
|
|
7857
|
+
profile: z.ZodOptional<z.ZodObject<{
|
|
7858
|
+
visible: z.ZodBoolean;
|
|
7859
|
+
}, z.core.$strict>>;
|
|
7826
7860
|
budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
7827
7861
|
id: z.ZodString;
|
|
7828
7862
|
scope: z.ZodEnum<{
|
|
7829
|
-
member: "member";
|
|
7830
7863
|
project: "project";
|
|
7864
|
+
member: "member";
|
|
7831
7865
|
}>;
|
|
7832
7866
|
period: z.ZodEnum<{
|
|
7833
7867
|
day: "day";
|
|
@@ -7856,13 +7890,13 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
7856
7890
|
quests: z.ZodArray<z.ZodString>;
|
|
7857
7891
|
}, z.core.$strict>>;
|
|
7858
7892
|
supportedInteractions: z.ZodArray<z.ZodEnum<{
|
|
7859
|
-
quiz: "quiz";
|
|
7860
|
-
url: "url";
|
|
7861
|
-
text: "text";
|
|
7862
7893
|
staff: "staff";
|
|
7863
|
-
|
|
7894
|
+
text: "text";
|
|
7895
|
+
url: "url";
|
|
7864
7896
|
automatic: "automatic";
|
|
7865
7897
|
claim: "claim";
|
|
7898
|
+
quiz: "quiz";
|
|
7899
|
+
photo: "photo";
|
|
7866
7900
|
}>>;
|
|
7867
7901
|
referrals: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
7868
7902
|
version: z.ZodString;
|
|
@@ -8496,7 +8530,7 @@ declare function createRelayClient(options: {
|
|
|
8496
8530
|
accounts: {
|
|
8497
8531
|
id: string;
|
|
8498
8532
|
program: string;
|
|
8499
|
-
kind: "
|
|
8533
|
+
kind: "fixed" | "milestone" | "bonus";
|
|
8500
8534
|
balance: string;
|
|
8501
8535
|
earned: number;
|
|
8502
8536
|
settled: number;
|
|
@@ -8670,6 +8704,20 @@ declare function createRelayClient(options: {
|
|
|
8670
8704
|
}[];
|
|
8671
8705
|
nextCursor: string | null;
|
|
8672
8706
|
}>;
|
|
8707
|
+
/**
|
|
8708
|
+
* A profile's current rank and score on `board` (`profile.id` from a leaderboard row or
|
|
8709
|
+
* `profiles.mine()`). Needs the board's access, like `standings`; a profile this viewer
|
|
8710
|
+
* cannot see is a 404, as in `profiles.get`.
|
|
8711
|
+
*/
|
|
8712
|
+
placement: (board: string, profile: string) => Promise<{
|
|
8713
|
+
leaderboard: string;
|
|
8714
|
+
title: string;
|
|
8715
|
+
profile: string;
|
|
8716
|
+
rank: number | null;
|
|
8717
|
+
score: number | null;
|
|
8718
|
+
total: number;
|
|
8719
|
+
key?: string | undefined;
|
|
8720
|
+
}>;
|
|
8673
8721
|
};
|
|
8674
8722
|
/**
|
|
8675
8723
|
* Participant profiles: the display name and avatar other participants see where the project
|
|
@@ -8694,7 +8742,7 @@ declare function createRelayClient(options: {
|
|
|
8694
8742
|
seed: string;
|
|
8695
8743
|
};
|
|
8696
8744
|
displayName: string | null;
|
|
8697
|
-
avatarChoice: "default" | "account" | "
|
|
8745
|
+
avatarChoice: "default" | "account" | "upload" | "generated";
|
|
8698
8746
|
avatarProvider: "x" | "discord" | "google" | null;
|
|
8699
8747
|
hidden: boolean;
|
|
8700
8748
|
locked: boolean;
|
|
@@ -8728,7 +8776,7 @@ declare function createRelayClient(options: {
|
|
|
8728
8776
|
seed: string;
|
|
8729
8777
|
};
|
|
8730
8778
|
displayName: string | null;
|
|
8731
|
-
avatarChoice: "default" | "account" | "
|
|
8779
|
+
avatarChoice: "default" | "account" | "upload" | "generated";
|
|
8732
8780
|
avatarProvider: "x" | "discord" | "google" | null;
|
|
8733
8781
|
hidden: boolean;
|
|
8734
8782
|
locked: boolean;
|
|
@@ -8763,7 +8811,7 @@ declare function createRelayClient(options: {
|
|
|
8763
8811
|
seed: string;
|
|
8764
8812
|
};
|
|
8765
8813
|
displayName: string | null;
|
|
8766
|
-
avatarChoice: "default" | "account" | "
|
|
8814
|
+
avatarChoice: "default" | "account" | "upload" | "generated";
|
|
8767
8815
|
avatarProvider: "x" | "discord" | "google" | null;
|
|
8768
8816
|
hidden: boolean;
|
|
8769
8817
|
locked: boolean;
|
|
@@ -8775,8 +8823,8 @@ declare function createRelayClient(options: {
|
|
|
8775
8823
|
}[];
|
|
8776
8824
|
}>;
|
|
8777
8825
|
/**
|
|
8778
|
-
* A profile
|
|
8779
|
-
* profile that is missing, hidden or not visible to this viewer is a 404.
|
|
8826
|
+
* A profile's name and avatar by its public ID (`profile.id` from a leaderboard row or
|
|
8827
|
+
* `mine()`). A profile that is missing, hidden or not visible to this viewer is a 404.
|
|
8780
8828
|
*/
|
|
8781
8829
|
get: (profile: string) => Promise<{
|
|
8782
8830
|
id: string;
|
|
@@ -8794,36 +8842,36 @@ declare function createRelayClient(options: {
|
|
|
8794
8842
|
source: "generated";
|
|
8795
8843
|
seed: string;
|
|
8796
8844
|
};
|
|
8797
|
-
|
|
8798
|
-
|
|
8799
|
-
|
|
8800
|
-
|
|
8801
|
-
|
|
8802
|
-
|
|
8803
|
-
|
|
8804
|
-
key?: string | undefined;
|
|
8805
|
-
}[] | null;
|
|
8806
|
-
quests: {
|
|
8845
|
+
}>;
|
|
8846
|
+
/**
|
|
8847
|
+
* A page of the profile's completions of quests that show on profiles, most recently
|
|
8848
|
+
* completed first. Pass the page's `nextCursor` as `cursor` for the next one.
|
|
8849
|
+
*/
|
|
8850
|
+
completions: (profile: string, options?: ProfileCompletionQuery) => Promise<{
|
|
8851
|
+
items: {
|
|
8807
8852
|
quest: string;
|
|
8808
8853
|
title: string;
|
|
8809
8854
|
completions: number;
|
|
8810
8855
|
lastCompletedAt: number | null;
|
|
8811
8856
|
key?: string | undefined;
|
|
8812
|
-
}[]
|
|
8813
|
-
|
|
8814
|
-
|
|
8815
|
-
|
|
8816
|
-
|
|
8817
|
-
|
|
8818
|
-
|
|
8819
|
-
|
|
8820
|
-
|
|
8821
|
-
|
|
8822
|
-
|
|
8823
|
-
|
|
8824
|
-
|
|
8825
|
-
|
|
8826
|
-
|
|
8857
|
+
}[];
|
|
8858
|
+
nextCursor: string | null;
|
|
8859
|
+
}>;
|
|
8860
|
+
/**
|
|
8861
|
+
* The profile's invited and qualified counts and milestones in one referral program. Needs
|
|
8862
|
+
* a signed-in participant, as referral programs do.
|
|
8863
|
+
*/
|
|
8864
|
+
referral: (profile: string, program: string) => Promise<{
|
|
8865
|
+
program: string;
|
|
8866
|
+
title: string;
|
|
8867
|
+
invited: number;
|
|
8868
|
+
qualified: number;
|
|
8869
|
+
milestones: {
|
|
8870
|
+
id: string;
|
|
8871
|
+
count: number;
|
|
8872
|
+
reached: boolean;
|
|
8873
|
+
}[];
|
|
8874
|
+
key?: string | undefined;
|
|
8827
8875
|
}>;
|
|
8828
8876
|
};
|
|
8829
8877
|
quests: {
|
|
@@ -8863,7 +8911,7 @@ declare function createRelayClient(options: {
|
|
|
8863
8911
|
start: number;
|
|
8864
8912
|
end?: number | undefined;
|
|
8865
8913
|
};
|
|
8866
|
-
enrollment: "
|
|
8914
|
+
enrollment: "none" | "required";
|
|
8867
8915
|
posts: "after-enrollment" | "since-start";
|
|
8868
8916
|
historical: "staff" | "automatic" | "claim";
|
|
8869
8917
|
} | undefined;
|
|
@@ -8891,12 +8939,12 @@ declare function createRelayClient(options: {
|
|
|
8891
8939
|
actor?: "member" | "staff" | undefined;
|
|
8892
8940
|
} | {
|
|
8893
8941
|
kind: "manual";
|
|
8894
|
-
input: "
|
|
8942
|
+
input: "none" | "quiz" | "photo";
|
|
8895
8943
|
actor?: "member" | "staff" | undefined;
|
|
8896
8944
|
};
|
|
8897
8945
|
availability: {
|
|
8898
8946
|
kind: "available";
|
|
8899
|
-
input: "
|
|
8947
|
+
input: "text" | "url" | "none" | "quiz" | "photo";
|
|
8900
8948
|
} | {
|
|
8901
8949
|
kind: "completed";
|
|
8902
8950
|
} | {
|
|
@@ -8934,7 +8982,7 @@ declare function createRelayClient(options: {
|
|
|
8934
8982
|
kind: "keyed";
|
|
8935
8983
|
};
|
|
8936
8984
|
completionCount: number;
|
|
8937
|
-
visibility: "
|
|
8985
|
+
visibility: "visible" | "hidden";
|
|
8938
8986
|
missing: {
|
|
8939
8987
|
quest: string;
|
|
8940
8988
|
title: string;
|
|
@@ -8945,7 +8993,7 @@ declare function createRelayClient(options: {
|
|
|
8945
8993
|
quest: string;
|
|
8946
8994
|
member: string;
|
|
8947
8995
|
evidence: string | null;
|
|
8948
|
-
status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected"
|
|
8996
|
+
status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
|
|
8949
8997
|
reason: string | null;
|
|
8950
8998
|
retries: number;
|
|
8951
8999
|
generation: number;
|
|
@@ -8979,22 +9027,22 @@ declare function createRelayClient(options: {
|
|
|
8979
9027
|
})[] | null;
|
|
8980
9028
|
createdAt: number;
|
|
8981
9029
|
input?: {
|
|
8982
|
-
kind: "quiz";
|
|
8983
|
-
answers: {
|
|
8984
|
-
[k: string]: string;
|
|
8985
|
-
};
|
|
8986
|
-
release?: string | undefined;
|
|
8987
|
-
} | {
|
|
8988
9030
|
kind: "text";
|
|
8989
9031
|
value: string;
|
|
8990
9032
|
} | {
|
|
8991
9033
|
kind: "url";
|
|
8992
9034
|
value: string;
|
|
9035
|
+
} | {
|
|
9036
|
+
kind: "quiz";
|
|
9037
|
+
answers: {
|
|
9038
|
+
[k: string]: string;
|
|
9039
|
+
};
|
|
9040
|
+
release?: string | undefined;
|
|
8993
9041
|
} | undefined;
|
|
8994
9042
|
} | null;
|
|
8995
9043
|
release: string;
|
|
8996
|
-
interaction: "
|
|
8997
|
-
lifecycle: "
|
|
9044
|
+
interaction: "staff" | "text" | "url" | "automatic" | "claim" | "quiz" | "photo";
|
|
9045
|
+
lifecycle: "paused" | "active" | "archived";
|
|
8998
9046
|
rewards: ({
|
|
8999
9047
|
kind: "points";
|
|
9000
9048
|
label: string;
|
|
@@ -9055,7 +9103,7 @@ declare function createRelayClient(options: {
|
|
|
9055
9103
|
quest: string;
|
|
9056
9104
|
member: string;
|
|
9057
9105
|
evidence: string | null;
|
|
9058
|
-
status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected"
|
|
9106
|
+
status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
|
|
9059
9107
|
reason: string | null;
|
|
9060
9108
|
retries: number;
|
|
9061
9109
|
generation: number;
|
|
@@ -9089,17 +9137,17 @@ declare function createRelayClient(options: {
|
|
|
9089
9137
|
})[] | null;
|
|
9090
9138
|
createdAt: number;
|
|
9091
9139
|
input?: {
|
|
9092
|
-
kind: "quiz";
|
|
9093
|
-
answers: {
|
|
9094
|
-
[k: string]: string;
|
|
9095
|
-
};
|
|
9096
|
-
release?: string | undefined;
|
|
9097
|
-
} | {
|
|
9098
9140
|
kind: "text";
|
|
9099
9141
|
value: string;
|
|
9100
9142
|
} | {
|
|
9101
9143
|
kind: "url";
|
|
9102
9144
|
value: string;
|
|
9145
|
+
} | {
|
|
9146
|
+
kind: "quiz";
|
|
9147
|
+
answers: {
|
|
9148
|
+
[k: string]: string;
|
|
9149
|
+
};
|
|
9150
|
+
release?: string | undefined;
|
|
9103
9151
|
} | undefined;
|
|
9104
9152
|
}>;
|
|
9105
9153
|
experience: () => Promise<{
|
|
@@ -9140,7 +9188,7 @@ declare function createRelayClient(options: {
|
|
|
9140
9188
|
start: number;
|
|
9141
9189
|
end?: number | undefined;
|
|
9142
9190
|
};
|
|
9143
|
-
enrollment: "
|
|
9191
|
+
enrollment: "none" | "required";
|
|
9144
9192
|
posts: "after-enrollment" | "since-start";
|
|
9145
9193
|
historical: "staff" | "automatic" | "claim";
|
|
9146
9194
|
} | undefined;
|
|
@@ -9168,12 +9216,12 @@ declare function createRelayClient(options: {
|
|
|
9168
9216
|
actor?: "member" | "staff" | undefined;
|
|
9169
9217
|
} | {
|
|
9170
9218
|
kind: "manual";
|
|
9171
|
-
input: "
|
|
9219
|
+
input: "none" | "quiz" | "photo";
|
|
9172
9220
|
actor?: "member" | "staff" | undefined;
|
|
9173
9221
|
};
|
|
9174
9222
|
availability: {
|
|
9175
9223
|
kind: "available";
|
|
9176
|
-
input: "
|
|
9224
|
+
input: "text" | "url" | "none" | "quiz" | "photo";
|
|
9177
9225
|
} | {
|
|
9178
9226
|
kind: "completed";
|
|
9179
9227
|
} | {
|
|
@@ -9211,7 +9259,7 @@ declare function createRelayClient(options: {
|
|
|
9211
9259
|
kind: "keyed";
|
|
9212
9260
|
};
|
|
9213
9261
|
completionCount: number;
|
|
9214
|
-
visibility: "
|
|
9262
|
+
visibility: "visible" | "hidden";
|
|
9215
9263
|
missing: {
|
|
9216
9264
|
quest: string;
|
|
9217
9265
|
title: string;
|
|
@@ -9222,7 +9270,7 @@ declare function createRelayClient(options: {
|
|
|
9222
9270
|
quest: string;
|
|
9223
9271
|
member: string;
|
|
9224
9272
|
evidence: string | null;
|
|
9225
|
-
status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected"
|
|
9273
|
+
status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
|
|
9226
9274
|
reason: string | null;
|
|
9227
9275
|
retries: number;
|
|
9228
9276
|
generation: number;
|
|
@@ -9256,22 +9304,22 @@ declare function createRelayClient(options: {
|
|
|
9256
9304
|
})[] | null;
|
|
9257
9305
|
createdAt: number;
|
|
9258
9306
|
input?: {
|
|
9259
|
-
kind: "quiz";
|
|
9260
|
-
answers: {
|
|
9261
|
-
[k: string]: string;
|
|
9262
|
-
};
|
|
9263
|
-
release?: string | undefined;
|
|
9264
|
-
} | {
|
|
9265
9307
|
kind: "text";
|
|
9266
9308
|
value: string;
|
|
9267
9309
|
} | {
|
|
9268
9310
|
kind: "url";
|
|
9269
9311
|
value: string;
|
|
9312
|
+
} | {
|
|
9313
|
+
kind: "quiz";
|
|
9314
|
+
answers: {
|
|
9315
|
+
[k: string]: string;
|
|
9316
|
+
};
|
|
9317
|
+
release?: string | undefined;
|
|
9270
9318
|
} | undefined;
|
|
9271
9319
|
} | null;
|
|
9272
9320
|
release: string;
|
|
9273
|
-
interaction: "
|
|
9274
|
-
lifecycle: "
|
|
9321
|
+
interaction: "staff" | "text" | "url" | "automatic" | "claim" | "quiz" | "photo";
|
|
9322
|
+
lifecycle: "paused" | "active" | "archived";
|
|
9275
9323
|
rewards: ({
|
|
9276
9324
|
kind: "points";
|
|
9277
9325
|
label: string;
|
|
@@ -9365,7 +9413,7 @@ declare function createRelayClient(options: {
|
|
|
9365
9413
|
start: number;
|
|
9366
9414
|
end?: number | undefined;
|
|
9367
9415
|
};
|
|
9368
|
-
enrollment: "
|
|
9416
|
+
enrollment: "none" | "required";
|
|
9369
9417
|
posts: "after-enrollment" | "since-start";
|
|
9370
9418
|
historical: "staff" | "automatic" | "claim";
|
|
9371
9419
|
} | undefined;
|
|
@@ -9393,12 +9441,12 @@ declare function createRelayClient(options: {
|
|
|
9393
9441
|
actor?: "member" | "staff" | undefined;
|
|
9394
9442
|
} | {
|
|
9395
9443
|
kind: "manual";
|
|
9396
|
-
input: "
|
|
9444
|
+
input: "none" | "quiz" | "photo";
|
|
9397
9445
|
actor?: "member" | "staff" | undefined;
|
|
9398
9446
|
};
|
|
9399
9447
|
availability: {
|
|
9400
9448
|
kind: "available";
|
|
9401
|
-
input: "
|
|
9449
|
+
input: "text" | "url" | "none" | "quiz" | "photo";
|
|
9402
9450
|
} | {
|
|
9403
9451
|
kind: "completed";
|
|
9404
9452
|
} | {
|
|
@@ -9436,7 +9484,7 @@ declare function createRelayClient(options: {
|
|
|
9436
9484
|
kind: "keyed";
|
|
9437
9485
|
};
|
|
9438
9486
|
completionCount: number;
|
|
9439
|
-
visibility: "
|
|
9487
|
+
visibility: "visible" | "hidden";
|
|
9440
9488
|
missing: {
|
|
9441
9489
|
quest: string;
|
|
9442
9490
|
title: string;
|
|
@@ -9447,7 +9495,7 @@ declare function createRelayClient(options: {
|
|
|
9447
9495
|
quest: string;
|
|
9448
9496
|
member: string;
|
|
9449
9497
|
evidence: string | null;
|
|
9450
|
-
status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected"
|
|
9498
|
+
status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
|
|
9451
9499
|
reason: string | null;
|
|
9452
9500
|
retries: number;
|
|
9453
9501
|
generation: number;
|
|
@@ -9481,22 +9529,22 @@ declare function createRelayClient(options: {
|
|
|
9481
9529
|
})[] | null;
|
|
9482
9530
|
createdAt: number;
|
|
9483
9531
|
input?: {
|
|
9484
|
-
kind: "quiz";
|
|
9485
|
-
answers: {
|
|
9486
|
-
[k: string]: string;
|
|
9487
|
-
};
|
|
9488
|
-
release?: string | undefined;
|
|
9489
|
-
} | {
|
|
9490
9532
|
kind: "text";
|
|
9491
9533
|
value: string;
|
|
9492
9534
|
} | {
|
|
9493
9535
|
kind: "url";
|
|
9494
9536
|
value: string;
|
|
9537
|
+
} | {
|
|
9538
|
+
kind: "quiz";
|
|
9539
|
+
answers: {
|
|
9540
|
+
[k: string]: string;
|
|
9541
|
+
};
|
|
9542
|
+
release?: string | undefined;
|
|
9495
9543
|
} | undefined;
|
|
9496
9544
|
} | null;
|
|
9497
9545
|
release: string;
|
|
9498
|
-
interaction: "
|
|
9499
|
-
lifecycle: "
|
|
9546
|
+
interaction: "staff" | "text" | "url" | "automatic" | "claim" | "quiz" | "photo";
|
|
9547
|
+
lifecycle: "paused" | "active" | "archived";
|
|
9500
9548
|
rewards: ({
|
|
9501
9549
|
kind: "points";
|
|
9502
9550
|
label: string;
|
|
@@ -9593,7 +9641,7 @@ declare function createRelayClient(options: {
|
|
|
9593
9641
|
start: number;
|
|
9594
9642
|
end?: number | undefined;
|
|
9595
9643
|
};
|
|
9596
|
-
enrollment: "
|
|
9644
|
+
enrollment: "none" | "required";
|
|
9597
9645
|
posts: "after-enrollment" | "since-start";
|
|
9598
9646
|
historical: "staff" | "automatic" | "claim";
|
|
9599
9647
|
} | undefined;
|
|
@@ -9621,12 +9669,12 @@ declare function createRelayClient(options: {
|
|
|
9621
9669
|
actor?: "member" | "staff" | undefined;
|
|
9622
9670
|
} | {
|
|
9623
9671
|
kind: "manual";
|
|
9624
|
-
input: "
|
|
9672
|
+
input: "none" | "quiz" | "photo";
|
|
9625
9673
|
actor?: "member" | "staff" | undefined;
|
|
9626
9674
|
};
|
|
9627
9675
|
availability: {
|
|
9628
9676
|
kind: "available";
|
|
9629
|
-
input: "
|
|
9677
|
+
input: "text" | "url" | "none" | "quiz" | "photo";
|
|
9630
9678
|
} | {
|
|
9631
9679
|
kind: "completed";
|
|
9632
9680
|
} | {
|
|
@@ -9664,7 +9712,7 @@ declare function createRelayClient(options: {
|
|
|
9664
9712
|
kind: "keyed";
|
|
9665
9713
|
};
|
|
9666
9714
|
completionCount: number;
|
|
9667
|
-
visibility: "
|
|
9715
|
+
visibility: "visible" | "hidden";
|
|
9668
9716
|
missing: {
|
|
9669
9717
|
quest: string;
|
|
9670
9718
|
title: string;
|
|
@@ -9675,7 +9723,7 @@ declare function createRelayClient(options: {
|
|
|
9675
9723
|
quest: string;
|
|
9676
9724
|
member: string;
|
|
9677
9725
|
evidence: string | null;
|
|
9678
|
-
status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected"
|
|
9726
|
+
status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
|
|
9679
9727
|
reason: string | null;
|
|
9680
9728
|
retries: number;
|
|
9681
9729
|
generation: number;
|
|
@@ -9709,22 +9757,22 @@ declare function createRelayClient(options: {
|
|
|
9709
9757
|
})[] | null;
|
|
9710
9758
|
createdAt: number;
|
|
9711
9759
|
input?: {
|
|
9712
|
-
kind: "quiz";
|
|
9713
|
-
answers: {
|
|
9714
|
-
[k: string]: string;
|
|
9715
|
-
};
|
|
9716
|
-
release?: string | undefined;
|
|
9717
|
-
} | {
|
|
9718
9760
|
kind: "text";
|
|
9719
9761
|
value: string;
|
|
9720
9762
|
} | {
|
|
9721
9763
|
kind: "url";
|
|
9722
9764
|
value: string;
|
|
9765
|
+
} | {
|
|
9766
|
+
kind: "quiz";
|
|
9767
|
+
answers: {
|
|
9768
|
+
[k: string]: string;
|
|
9769
|
+
};
|
|
9770
|
+
release?: string | undefined;
|
|
9723
9771
|
} | undefined;
|
|
9724
9772
|
} | null;
|
|
9725
9773
|
release: string;
|
|
9726
|
-
interaction: "
|
|
9727
|
-
lifecycle: "
|
|
9774
|
+
interaction: "staff" | "text" | "url" | "automatic" | "claim" | "quiz" | "photo";
|
|
9775
|
+
lifecycle: "paused" | "active" | "archived";
|
|
9728
9776
|
rewards: ({
|
|
9729
9777
|
kind: "points";
|
|
9730
9778
|
label: string;
|
|
@@ -10043,7 +10091,7 @@ declare function createRelayClient(options: {
|
|
|
10043
10091
|
quest: string;
|
|
10044
10092
|
member: string;
|
|
10045
10093
|
evidence: string | null;
|
|
10046
|
-
status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected"
|
|
10094
|
+
status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
|
|
10047
10095
|
reason: string | null;
|
|
10048
10096
|
retries: number;
|
|
10049
10097
|
generation: number;
|
|
@@ -10077,17 +10125,17 @@ declare function createRelayClient(options: {
|
|
|
10077
10125
|
})[] | null;
|
|
10078
10126
|
createdAt: number;
|
|
10079
10127
|
input?: {
|
|
10080
|
-
kind: "quiz";
|
|
10081
|
-
answers: {
|
|
10082
|
-
[k: string]: string;
|
|
10083
|
-
};
|
|
10084
|
-
release?: string | undefined;
|
|
10085
|
-
} | {
|
|
10086
10128
|
kind: "text";
|
|
10087
10129
|
value: string;
|
|
10088
10130
|
} | {
|
|
10089
10131
|
kind: "url";
|
|
10090
10132
|
value: string;
|
|
10133
|
+
} | {
|
|
10134
|
+
kind: "quiz";
|
|
10135
|
+
answers: {
|
|
10136
|
+
[k: string]: string;
|
|
10137
|
+
};
|
|
10138
|
+
release?: string | undefined;
|
|
10091
10139
|
} | undefined;
|
|
10092
10140
|
}>;
|
|
10093
10141
|
progress: () => Promise<{
|
|
@@ -10128,7 +10176,7 @@ declare function createRelayClient(options: {
|
|
|
10128
10176
|
start: number;
|
|
10129
10177
|
end?: number | undefined;
|
|
10130
10178
|
};
|
|
10131
|
-
enrollment: "
|
|
10179
|
+
enrollment: "none" | "required";
|
|
10132
10180
|
posts: "after-enrollment" | "since-start";
|
|
10133
10181
|
historical: "staff" | "automatic" | "claim";
|
|
10134
10182
|
} | undefined;
|
|
@@ -10156,12 +10204,12 @@ declare function createRelayClient(options: {
|
|
|
10156
10204
|
actor?: "member" | "staff" | undefined;
|
|
10157
10205
|
} | {
|
|
10158
10206
|
kind: "manual";
|
|
10159
|
-
input: "
|
|
10207
|
+
input: "none" | "quiz" | "photo";
|
|
10160
10208
|
actor?: "member" | "staff" | undefined;
|
|
10161
10209
|
};
|
|
10162
10210
|
availability: {
|
|
10163
10211
|
kind: "available";
|
|
10164
|
-
input: "
|
|
10212
|
+
input: "text" | "url" | "none" | "quiz" | "photo";
|
|
10165
10213
|
} | {
|
|
10166
10214
|
kind: "completed";
|
|
10167
10215
|
} | {
|
|
@@ -10199,7 +10247,7 @@ declare function createRelayClient(options: {
|
|
|
10199
10247
|
kind: "keyed";
|
|
10200
10248
|
};
|
|
10201
10249
|
completionCount: number;
|
|
10202
|
-
visibility: "
|
|
10250
|
+
visibility: "visible" | "hidden";
|
|
10203
10251
|
missing: {
|
|
10204
10252
|
quest: string;
|
|
10205
10253
|
title: string;
|
|
@@ -10210,7 +10258,7 @@ declare function createRelayClient(options: {
|
|
|
10210
10258
|
quest: string;
|
|
10211
10259
|
member: string;
|
|
10212
10260
|
evidence: string | null;
|
|
10213
|
-
status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected"
|
|
10261
|
+
status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
|
|
10214
10262
|
reason: string | null;
|
|
10215
10263
|
retries: number;
|
|
10216
10264
|
generation: number;
|
|
@@ -10244,17 +10292,17 @@ declare function createRelayClient(options: {
|
|
|
10244
10292
|
})[] | null;
|
|
10245
10293
|
createdAt: number;
|
|
10246
10294
|
input?: {
|
|
10247
|
-
kind: "quiz";
|
|
10248
|
-
answers: {
|
|
10249
|
-
[k: string]: string;
|
|
10250
|
-
};
|
|
10251
|
-
release?: string | undefined;
|
|
10252
|
-
} | {
|
|
10253
10295
|
kind: "text";
|
|
10254
10296
|
value: string;
|
|
10255
10297
|
} | {
|
|
10256
10298
|
kind: "url";
|
|
10257
10299
|
value: string;
|
|
10300
|
+
} | {
|
|
10301
|
+
kind: "quiz";
|
|
10302
|
+
answers: {
|
|
10303
|
+
[k: string]: string;
|
|
10304
|
+
};
|
|
10305
|
+
release?: string | undefined;
|
|
10258
10306
|
} | undefined;
|
|
10259
10307
|
} | null;
|
|
10260
10308
|
key?: string | undefined;
|
|
@@ -10393,7 +10441,7 @@ declare function createRelayClient(options: {
|
|
|
10393
10441
|
quest: string;
|
|
10394
10442
|
member: string;
|
|
10395
10443
|
evidence: string | null;
|
|
10396
|
-
status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected"
|
|
10444
|
+
status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
|
|
10397
10445
|
reason: string | null;
|
|
10398
10446
|
retries: number;
|
|
10399
10447
|
generation: number;
|
|
@@ -10427,17 +10475,17 @@ declare function createRelayClient(options: {
|
|
|
10427
10475
|
})[] | null;
|
|
10428
10476
|
createdAt: number;
|
|
10429
10477
|
input?: {
|
|
10430
|
-
kind: "quiz";
|
|
10431
|
-
answers: {
|
|
10432
|
-
[k: string]: string;
|
|
10433
|
-
};
|
|
10434
|
-
release?: string | undefined;
|
|
10435
|
-
} | {
|
|
10436
10478
|
kind: "text";
|
|
10437
10479
|
value: string;
|
|
10438
10480
|
} | {
|
|
10439
10481
|
kind: "url";
|
|
10440
10482
|
value: string;
|
|
10483
|
+
} | {
|
|
10484
|
+
kind: "quiz";
|
|
10485
|
+
answers: {
|
|
10486
|
+
[k: string]: string;
|
|
10487
|
+
};
|
|
10488
|
+
release?: string | undefined;
|
|
10441
10489
|
} | undefined;
|
|
10442
10490
|
}>;
|
|
10443
10491
|
upload: (file: File) => Promise<{
|
|
@@ -10461,7 +10509,7 @@ declare function createRelayClient(options: {
|
|
|
10461
10509
|
code: string;
|
|
10462
10510
|
definition: {
|
|
10463
10511
|
quest: string;
|
|
10464
|
-
runtimeVersion:
|
|
10512
|
+
runtimeVersion: 2 | 1;
|
|
10465
10513
|
title: string;
|
|
10466
10514
|
presentation: {
|
|
10467
10515
|
quiz?: {
|
|
@@ -10600,7 +10648,7 @@ declare function createRelayClient(options: {
|
|
|
10600
10648
|
start: number;
|
|
10601
10649
|
end?: number | undefined;
|
|
10602
10650
|
};
|
|
10603
|
-
enrollment: "
|
|
10651
|
+
enrollment: "none" | "required";
|
|
10604
10652
|
posts: "after-enrollment" | "since-start";
|
|
10605
10653
|
historical: "staff" | "automatic" | "claim";
|
|
10606
10654
|
} | undefined;
|
|
@@ -10628,7 +10676,7 @@ declare function createRelayClient(options: {
|
|
|
10628
10676
|
actor?: "member" | "staff" | undefined;
|
|
10629
10677
|
} | {
|
|
10630
10678
|
kind: "manual";
|
|
10631
|
-
input: "
|
|
10679
|
+
input: "none" | "quiz" | "photo";
|
|
10632
10680
|
actor?: "member" | "staff" | undefined;
|
|
10633
10681
|
};
|
|
10634
10682
|
requires: {
|
|
@@ -10644,10 +10692,10 @@ declare function createRelayClient(options: {
|
|
|
10644
10692
|
} | {
|
|
10645
10693
|
kind: "keyed";
|
|
10646
10694
|
};
|
|
10647
|
-
visibility: "
|
|
10695
|
+
visibility: "visible" | "hidden";
|
|
10648
10696
|
budgets: {
|
|
10649
10697
|
id: string;
|
|
10650
|
-
scope: "
|
|
10698
|
+
scope: "project" | "member";
|
|
10651
10699
|
period: "day" | "lifetime" | "week";
|
|
10652
10700
|
limit: number;
|
|
10653
10701
|
cost: number | {
|
|
@@ -10658,6 +10706,9 @@ declare function createRelayClient(options: {
|
|
|
10658
10706
|
metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
|
|
10659
10707
|
maxAgeMs: number;
|
|
10660
10708
|
} | undefined;
|
|
10709
|
+
profile?: {
|
|
10710
|
+
visible: boolean;
|
|
10711
|
+
} | undefined;
|
|
10661
10712
|
};
|
|
10662
10713
|
}[]>;
|
|
10663
10714
|
/** @deprecated Removed from the participant API. Build quests with `domino` and `@domino-sdk/relay/build`. */
|
|
@@ -10665,7 +10716,7 @@ declare function createRelayClient(options: {
|
|
|
10665
10716
|
code: string;
|
|
10666
10717
|
definition: {
|
|
10667
10718
|
quest: string;
|
|
10668
|
-
runtimeVersion:
|
|
10719
|
+
runtimeVersion: 2 | 1;
|
|
10669
10720
|
title: string;
|
|
10670
10721
|
presentation: {
|
|
10671
10722
|
quiz?: {
|
|
@@ -10804,7 +10855,7 @@ declare function createRelayClient(options: {
|
|
|
10804
10855
|
start: number;
|
|
10805
10856
|
end?: number | undefined;
|
|
10806
10857
|
};
|
|
10807
|
-
enrollment: "
|
|
10858
|
+
enrollment: "none" | "required";
|
|
10808
10859
|
posts: "after-enrollment" | "since-start";
|
|
10809
10860
|
historical: "staff" | "automatic" | "claim";
|
|
10810
10861
|
} | undefined;
|
|
@@ -10832,7 +10883,7 @@ declare function createRelayClient(options: {
|
|
|
10832
10883
|
actor?: "member" | "staff" | undefined;
|
|
10833
10884
|
} | {
|
|
10834
10885
|
kind: "manual";
|
|
10835
|
-
input: "
|
|
10886
|
+
input: "none" | "quiz" | "photo";
|
|
10836
10887
|
actor?: "member" | "staff" | undefined;
|
|
10837
10888
|
};
|
|
10838
10889
|
requires: {
|
|
@@ -10848,10 +10899,10 @@ declare function createRelayClient(options: {
|
|
|
10848
10899
|
} | {
|
|
10849
10900
|
kind: "keyed";
|
|
10850
10901
|
};
|
|
10851
|
-
visibility: "
|
|
10902
|
+
visibility: "visible" | "hidden";
|
|
10852
10903
|
budgets: {
|
|
10853
10904
|
id: string;
|
|
10854
|
-
scope: "
|
|
10905
|
+
scope: "project" | "member";
|
|
10855
10906
|
period: "day" | "lifetime" | "week";
|
|
10856
10907
|
limit: number;
|
|
10857
10908
|
cost: number | {
|
|
@@ -10862,13 +10913,16 @@ declare function createRelayClient(options: {
|
|
|
10862
10913
|
metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
|
|
10863
10914
|
maxAgeMs: number;
|
|
10864
10915
|
} | undefined;
|
|
10916
|
+
profile?: {
|
|
10917
|
+
visible: boolean;
|
|
10918
|
+
} | undefined;
|
|
10865
10919
|
};
|
|
10866
10920
|
}>;
|
|
10867
10921
|
/** @deprecated The participant API accepts only member sessions and rejects this staff call. Use the management API with a management key instead. */
|
|
10868
10922
|
snapshot: () => Promise<{
|
|
10869
10923
|
releases: {
|
|
10870
10924
|
quest: string;
|
|
10871
|
-
runtimeVersion:
|
|
10925
|
+
runtimeVersion: 2 | 1;
|
|
10872
10926
|
title: string;
|
|
10873
10927
|
presentation: {
|
|
10874
10928
|
quiz?: {
|
|
@@ -11007,7 +11061,7 @@ declare function createRelayClient(options: {
|
|
|
11007
11061
|
start: number;
|
|
11008
11062
|
end?: number | undefined;
|
|
11009
11063
|
};
|
|
11010
|
-
enrollment: "
|
|
11064
|
+
enrollment: "none" | "required";
|
|
11011
11065
|
posts: "after-enrollment" | "since-start";
|
|
11012
11066
|
historical: "staff" | "automatic" | "claim";
|
|
11013
11067
|
} | undefined;
|
|
@@ -11035,7 +11089,7 @@ declare function createRelayClient(options: {
|
|
|
11035
11089
|
actor?: "member" | "staff" | undefined;
|
|
11036
11090
|
} | {
|
|
11037
11091
|
kind: "manual";
|
|
11038
|
-
input: "
|
|
11092
|
+
input: "none" | "quiz" | "photo";
|
|
11039
11093
|
actor?: "member" | "staff" | undefined;
|
|
11040
11094
|
};
|
|
11041
11095
|
requires: {
|
|
@@ -11051,10 +11105,10 @@ declare function createRelayClient(options: {
|
|
|
11051
11105
|
} | {
|
|
11052
11106
|
kind: "keyed";
|
|
11053
11107
|
};
|
|
11054
|
-
visibility: "
|
|
11108
|
+
visibility: "visible" | "hidden";
|
|
11055
11109
|
budgets: {
|
|
11056
11110
|
id: string;
|
|
11057
|
-
scope: "
|
|
11111
|
+
scope: "project" | "member";
|
|
11058
11112
|
period: "day" | "lifetime" | "week";
|
|
11059
11113
|
limit: number;
|
|
11060
11114
|
cost: number | {
|
|
@@ -11066,11 +11120,14 @@ declare function createRelayClient(options: {
|
|
|
11066
11120
|
id: string;
|
|
11067
11121
|
createdAt: number;
|
|
11068
11122
|
legacy: boolean;
|
|
11069
|
-
lifecycle: "
|
|
11123
|
+
lifecycle: "paused" | "active" | "archived";
|
|
11070
11124
|
performance?: {
|
|
11071
11125
|
metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
|
|
11072
11126
|
maxAgeMs: number;
|
|
11073
11127
|
} | undefined;
|
|
11128
|
+
profile?: {
|
|
11129
|
+
visible: boolean;
|
|
11130
|
+
} | undefined;
|
|
11074
11131
|
key?: string | undefined;
|
|
11075
11132
|
origin?: {
|
|
11076
11133
|
typeVersion: string;
|
|
@@ -11186,7 +11243,7 @@ declare function createRelayClient(options: {
|
|
|
11186
11243
|
quest: string;
|
|
11187
11244
|
member: string;
|
|
11188
11245
|
evidence: string | null;
|
|
11189
|
-
status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected"
|
|
11246
|
+
status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
|
|
11190
11247
|
reason: string | null;
|
|
11191
11248
|
retries: number;
|
|
11192
11249
|
generation: number;
|
|
@@ -11220,17 +11277,17 @@ declare function createRelayClient(options: {
|
|
|
11220
11277
|
})[] | null;
|
|
11221
11278
|
createdAt: number;
|
|
11222
11279
|
input?: {
|
|
11223
|
-
kind: "quiz";
|
|
11224
|
-
answers: {
|
|
11225
|
-
[k: string]: string;
|
|
11226
|
-
};
|
|
11227
|
-
release?: string | undefined;
|
|
11228
|
-
} | {
|
|
11229
11280
|
kind: "text";
|
|
11230
11281
|
value: string;
|
|
11231
11282
|
} | {
|
|
11232
11283
|
kind: "url";
|
|
11233
11284
|
value: string;
|
|
11285
|
+
} | {
|
|
11286
|
+
kind: "quiz";
|
|
11287
|
+
answers: {
|
|
11288
|
+
[k: string]: string;
|
|
11289
|
+
};
|
|
11290
|
+
release?: string | undefined;
|
|
11234
11291
|
} | undefined;
|
|
11235
11292
|
}[];
|
|
11236
11293
|
balances: {
|
|
@@ -11252,7 +11309,7 @@ declare function createRelayClient(options: {
|
|
|
11252
11309
|
/** @deprecated The participant API rejects publication. Publish with `domino deploy` or the management API. */
|
|
11253
11310
|
publish: (release: ReleaseInput) => Promise<{
|
|
11254
11311
|
quest: string;
|
|
11255
|
-
runtimeVersion:
|
|
11312
|
+
runtimeVersion: 2 | 1;
|
|
11256
11313
|
title: string;
|
|
11257
11314
|
presentation: {
|
|
11258
11315
|
quiz?: {
|
|
@@ -11391,7 +11448,7 @@ declare function createRelayClient(options: {
|
|
|
11391
11448
|
start: number;
|
|
11392
11449
|
end?: number | undefined;
|
|
11393
11450
|
};
|
|
11394
|
-
enrollment: "
|
|
11451
|
+
enrollment: "none" | "required";
|
|
11395
11452
|
posts: "after-enrollment" | "since-start";
|
|
11396
11453
|
historical: "staff" | "automatic" | "claim";
|
|
11397
11454
|
} | undefined;
|
|
@@ -11419,7 +11476,7 @@ declare function createRelayClient(options: {
|
|
|
11419
11476
|
actor?: "member" | "staff" | undefined;
|
|
11420
11477
|
} | {
|
|
11421
11478
|
kind: "manual";
|
|
11422
|
-
input: "
|
|
11479
|
+
input: "none" | "quiz" | "photo";
|
|
11423
11480
|
actor?: "member" | "staff" | undefined;
|
|
11424
11481
|
};
|
|
11425
11482
|
requires: {
|
|
@@ -11435,10 +11492,10 @@ declare function createRelayClient(options: {
|
|
|
11435
11492
|
} | {
|
|
11436
11493
|
kind: "keyed";
|
|
11437
11494
|
};
|
|
11438
|
-
visibility: "
|
|
11495
|
+
visibility: "visible" | "hidden";
|
|
11439
11496
|
budgets: {
|
|
11440
11497
|
id: string;
|
|
11441
|
-
scope: "
|
|
11498
|
+
scope: "project" | "member";
|
|
11442
11499
|
period: "day" | "lifetime" | "week";
|
|
11443
11500
|
limit: number;
|
|
11444
11501
|
cost: number | {
|
|
@@ -11450,11 +11507,14 @@ declare function createRelayClient(options: {
|
|
|
11450
11507
|
id: string;
|
|
11451
11508
|
createdAt: number;
|
|
11452
11509
|
legacy: boolean;
|
|
11453
|
-
lifecycle: "
|
|
11510
|
+
lifecycle: "paused" | "active" | "archived";
|
|
11454
11511
|
performance?: {
|
|
11455
11512
|
metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
|
|
11456
11513
|
maxAgeMs: number;
|
|
11457
11514
|
} | undefined;
|
|
11515
|
+
profile?: {
|
|
11516
|
+
visible: boolean;
|
|
11517
|
+
} | undefined;
|
|
11458
11518
|
key?: string | undefined;
|
|
11459
11519
|
origin?: {
|
|
11460
11520
|
typeVersion: string;
|
|
@@ -11484,7 +11544,7 @@ declare function createRelayClient(options: {
|
|
|
11484
11544
|
/** @deprecated The participant API rejects publication. Publish with `domino deploy` or the management API. */
|
|
11485
11545
|
publishBatch: (releases: ReleaseInput[]) => Promise<{
|
|
11486
11546
|
quest: string;
|
|
11487
|
-
runtimeVersion:
|
|
11547
|
+
runtimeVersion: 2 | 1;
|
|
11488
11548
|
title: string;
|
|
11489
11549
|
presentation: {
|
|
11490
11550
|
quiz?: {
|
|
@@ -11623,7 +11683,7 @@ declare function createRelayClient(options: {
|
|
|
11623
11683
|
start: number;
|
|
11624
11684
|
end?: number | undefined;
|
|
11625
11685
|
};
|
|
11626
|
-
enrollment: "
|
|
11686
|
+
enrollment: "none" | "required";
|
|
11627
11687
|
posts: "after-enrollment" | "since-start";
|
|
11628
11688
|
historical: "staff" | "automatic" | "claim";
|
|
11629
11689
|
} | undefined;
|
|
@@ -11651,7 +11711,7 @@ declare function createRelayClient(options: {
|
|
|
11651
11711
|
actor?: "member" | "staff" | undefined;
|
|
11652
11712
|
} | {
|
|
11653
11713
|
kind: "manual";
|
|
11654
|
-
input: "
|
|
11714
|
+
input: "none" | "quiz" | "photo";
|
|
11655
11715
|
actor?: "member" | "staff" | undefined;
|
|
11656
11716
|
};
|
|
11657
11717
|
requires: {
|
|
@@ -11667,10 +11727,10 @@ declare function createRelayClient(options: {
|
|
|
11667
11727
|
} | {
|
|
11668
11728
|
kind: "keyed";
|
|
11669
11729
|
};
|
|
11670
|
-
visibility: "
|
|
11730
|
+
visibility: "visible" | "hidden";
|
|
11671
11731
|
budgets: {
|
|
11672
11732
|
id: string;
|
|
11673
|
-
scope: "
|
|
11733
|
+
scope: "project" | "member";
|
|
11674
11734
|
period: "day" | "lifetime" | "week";
|
|
11675
11735
|
limit: number;
|
|
11676
11736
|
cost: number | {
|
|
@@ -11682,11 +11742,14 @@ declare function createRelayClient(options: {
|
|
|
11682
11742
|
id: string;
|
|
11683
11743
|
createdAt: number;
|
|
11684
11744
|
legacy: boolean;
|
|
11685
|
-
lifecycle: "
|
|
11745
|
+
lifecycle: "paused" | "active" | "archived";
|
|
11686
11746
|
performance?: {
|
|
11687
11747
|
metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
|
|
11688
11748
|
maxAgeMs: number;
|
|
11689
11749
|
} | undefined;
|
|
11750
|
+
profile?: {
|
|
11751
|
+
visible: boolean;
|
|
11752
|
+
} | undefined;
|
|
11690
11753
|
key?: string | undefined;
|
|
11691
11754
|
origin?: {
|
|
11692
11755
|
typeVersion: string;
|
|
@@ -11751,7 +11814,7 @@ declare function createRelayClient(options: {
|
|
|
11751
11814
|
start: number;
|
|
11752
11815
|
end?: number | undefined;
|
|
11753
11816
|
};
|
|
11754
|
-
enrollment: "
|
|
11817
|
+
enrollment: "none" | "required";
|
|
11755
11818
|
posts: "after-enrollment" | "since-start";
|
|
11756
11819
|
historical: "staff" | "automatic" | "claim";
|
|
11757
11820
|
} | undefined;
|
|
@@ -11779,12 +11842,12 @@ declare function createRelayClient(options: {
|
|
|
11779
11842
|
actor?: "member" | "staff" | undefined;
|
|
11780
11843
|
} | {
|
|
11781
11844
|
kind: "manual";
|
|
11782
|
-
input: "
|
|
11845
|
+
input: "none" | "quiz" | "photo";
|
|
11783
11846
|
actor?: "member" | "staff" | undefined;
|
|
11784
11847
|
};
|
|
11785
11848
|
availability: {
|
|
11786
11849
|
kind: "available";
|
|
11787
|
-
input: "
|
|
11850
|
+
input: "text" | "url" | "none" | "quiz" | "photo";
|
|
11788
11851
|
} | {
|
|
11789
11852
|
kind: "completed";
|
|
11790
11853
|
} | {
|
|
@@ -11822,7 +11885,7 @@ declare function createRelayClient(options: {
|
|
|
11822
11885
|
kind: "keyed";
|
|
11823
11886
|
};
|
|
11824
11887
|
completionCount: number;
|
|
11825
|
-
visibility: "
|
|
11888
|
+
visibility: "visible" | "hidden";
|
|
11826
11889
|
missing: {
|
|
11827
11890
|
quest: string;
|
|
11828
11891
|
title: string;
|
|
@@ -11833,7 +11896,7 @@ declare function createRelayClient(options: {
|
|
|
11833
11896
|
quest: string;
|
|
11834
11897
|
member: string;
|
|
11835
11898
|
evidence: string | null;
|
|
11836
|
-
status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected"
|
|
11899
|
+
status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
|
|
11837
11900
|
reason: string | null;
|
|
11838
11901
|
retries: number;
|
|
11839
11902
|
generation: number;
|
|
@@ -11867,17 +11930,17 @@ declare function createRelayClient(options: {
|
|
|
11867
11930
|
})[] | null;
|
|
11868
11931
|
createdAt: number;
|
|
11869
11932
|
input?: {
|
|
11870
|
-
kind: "quiz";
|
|
11871
|
-
answers: {
|
|
11872
|
-
[k: string]: string;
|
|
11873
|
-
};
|
|
11874
|
-
release?: string | undefined;
|
|
11875
|
-
} | {
|
|
11876
11933
|
kind: "text";
|
|
11877
11934
|
value: string;
|
|
11878
11935
|
} | {
|
|
11879
11936
|
kind: "url";
|
|
11880
11937
|
value: string;
|
|
11938
|
+
} | {
|
|
11939
|
+
kind: "quiz";
|
|
11940
|
+
answers: {
|
|
11941
|
+
[k: string]: string;
|
|
11942
|
+
};
|
|
11943
|
+
release?: string | undefined;
|
|
11881
11944
|
} | undefined;
|
|
11882
11945
|
} | null;
|
|
11883
11946
|
key?: string | undefined;
|
|
@@ -12261,14 +12324,14 @@ declare function createRelayClient(options: {
|
|
|
12261
12324
|
content: {
|
|
12262
12325
|
performance: (input: z.output<typeof contentPerformanceQuerySchema>) => Promise<{
|
|
12263
12326
|
current: {
|
|
12264
|
-
state: "
|
|
12327
|
+
state: "pending" | "superseded" | "qualified" | "unqualified" | "needs-review" | "failed" | "content-pending" | "content-unqualified" | "waiting";
|
|
12265
12328
|
reason: string | null;
|
|
12266
12329
|
contentAttempt: string;
|
|
12267
12330
|
attempt: string | null;
|
|
12268
12331
|
reward: {
|
|
12269
12332
|
attempt: string | null;
|
|
12270
12333
|
completion: string | null;
|
|
12271
|
-
state: "
|
|
12334
|
+
state: "excluded" | "unresolved" | "awarded";
|
|
12272
12335
|
};
|
|
12273
12336
|
};
|
|
12274
12337
|
items: {
|
|
@@ -12277,7 +12340,7 @@ declare function createRelayClient(options: {
|
|
|
12277
12340
|
observation: string;
|
|
12278
12341
|
observedAt: number;
|
|
12279
12342
|
metrics: Partial<Record<"likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks", number>>;
|
|
12280
|
-
state: "
|
|
12343
|
+
state: "pending" | "superseded" | "qualified" | "unqualified" | "needs-review" | "failed";
|
|
12281
12344
|
reason: string | null;
|
|
12282
12345
|
}[];
|
|
12283
12346
|
next: number | null;
|
|
@@ -12292,12 +12355,12 @@ declare function createRelayClient(options: {
|
|
|
12292
12355
|
revision: string;
|
|
12293
12356
|
observation: string;
|
|
12294
12357
|
current: boolean;
|
|
12295
|
-
state: "
|
|
12358
|
+
state: "pending" | "superseded" | "qualified" | "unqualified" | "needs-review" | "failed" | "stale" | "blocked" | "unavailable";
|
|
12296
12359
|
reason: string | null;
|
|
12297
12360
|
reward: {
|
|
12298
12361
|
attempt: string | null;
|
|
12299
12362
|
completion: string | null;
|
|
12300
|
-
state: "
|
|
12363
|
+
state: "excluded" | "unresolved" | "awarded";
|
|
12301
12364
|
};
|
|
12302
12365
|
}[];
|
|
12303
12366
|
next: number | null;
|
|
@@ -12307,7 +12370,7 @@ declare function createRelayClient(options: {
|
|
|
12307
12370
|
quest: string;
|
|
12308
12371
|
content: string;
|
|
12309
12372
|
release: string;
|
|
12310
|
-
state: "
|
|
12373
|
+
state: "admitted" | "pending" | "excluded";
|
|
12311
12374
|
reason: string | null;
|
|
12312
12375
|
attempt: string | null;
|
|
12313
12376
|
}[];
|
|
@@ -12322,7 +12385,7 @@ declare function createRelayClient(options: {
|
|
|
12322
12385
|
quest: string;
|
|
12323
12386
|
content: string;
|
|
12324
12387
|
release: string;
|
|
12325
|
-
state: "
|
|
12388
|
+
state: "admitted" | "pending" | "excluded";
|
|
12326
12389
|
reason: string | null;
|
|
12327
12390
|
attempt: string | null;
|
|
12328
12391
|
}>;
|
|
@@ -12333,7 +12396,7 @@ declare function createRelayClient(options: {
|
|
|
12333
12396
|
quest: string;
|
|
12334
12397
|
member: string;
|
|
12335
12398
|
evidence: string | null;
|
|
12336
|
-
status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected"
|
|
12399
|
+
status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
|
|
12337
12400
|
reason: string | null;
|
|
12338
12401
|
retries: number;
|
|
12339
12402
|
generation: number;
|
|
@@ -12367,17 +12430,17 @@ declare function createRelayClient(options: {
|
|
|
12367
12430
|
})[] | null;
|
|
12368
12431
|
createdAt: number;
|
|
12369
12432
|
input?: {
|
|
12370
|
-
kind: "quiz";
|
|
12371
|
-
answers: {
|
|
12372
|
-
[k: string]: string;
|
|
12373
|
-
};
|
|
12374
|
-
release?: string | undefined;
|
|
12375
|
-
} | {
|
|
12376
12433
|
kind: "text";
|
|
12377
12434
|
value: string;
|
|
12378
12435
|
} | {
|
|
12379
12436
|
kind: "url";
|
|
12380
12437
|
value: string;
|
|
12438
|
+
} | {
|
|
12439
|
+
kind: "quiz";
|
|
12440
|
+
answers: {
|
|
12441
|
+
[k: string]: string;
|
|
12442
|
+
};
|
|
12443
|
+
release?: string | undefined;
|
|
12381
12444
|
} | undefined;
|
|
12382
12445
|
}>;
|
|
12383
12446
|
retry: (id: string) => Promise<{
|
|
@@ -12386,7 +12449,7 @@ declare function createRelayClient(options: {
|
|
|
12386
12449
|
quest: string;
|
|
12387
12450
|
member: string;
|
|
12388
12451
|
evidence: string | null;
|
|
12389
|
-
status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected"
|
|
12452
|
+
status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
|
|
12390
12453
|
reason: string | null;
|
|
12391
12454
|
retries: number;
|
|
12392
12455
|
generation: number;
|
|
@@ -12420,17 +12483,17 @@ declare function createRelayClient(options: {
|
|
|
12420
12483
|
})[] | null;
|
|
12421
12484
|
createdAt: number;
|
|
12422
12485
|
input?: {
|
|
12423
|
-
kind: "quiz";
|
|
12424
|
-
answers: {
|
|
12425
|
-
[k: string]: string;
|
|
12426
|
-
};
|
|
12427
|
-
release?: string | undefined;
|
|
12428
|
-
} | {
|
|
12429
12486
|
kind: "text";
|
|
12430
12487
|
value: string;
|
|
12431
12488
|
} | {
|
|
12432
12489
|
kind: "url";
|
|
12433
12490
|
value: string;
|
|
12491
|
+
} | {
|
|
12492
|
+
kind: "quiz";
|
|
12493
|
+
answers: {
|
|
12494
|
+
[k: string]: string;
|
|
12495
|
+
};
|
|
12496
|
+
release?: string | undefined;
|
|
12434
12497
|
} | undefined;
|
|
12435
12498
|
}>;
|
|
12436
12499
|
/** @deprecated The participant API accepts only member sessions and rejects this staff call. Use the management API with a management key instead. */
|
|
@@ -12445,7 +12508,7 @@ declare function createRelayClient(options: {
|
|
|
12445
12508
|
quest: string;
|
|
12446
12509
|
member: string;
|
|
12447
12510
|
evidence: string | null;
|
|
12448
|
-
status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected"
|
|
12511
|
+
status: "needs-review" | "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected";
|
|
12449
12512
|
reason: string | null;
|
|
12450
12513
|
retries: number;
|
|
12451
12514
|
generation: number;
|
|
@@ -12479,19 +12542,19 @@ declare function createRelayClient(options: {
|
|
|
12479
12542
|
})[] | null;
|
|
12480
12543
|
createdAt: number;
|
|
12481
12544
|
input?: {
|
|
12482
|
-
kind: "quiz";
|
|
12483
|
-
answers: {
|
|
12484
|
-
[k: string]: string;
|
|
12485
|
-
};
|
|
12486
|
-
release?: string | undefined;
|
|
12487
|
-
} | {
|
|
12488
12545
|
kind: "text";
|
|
12489
12546
|
value: string;
|
|
12490
12547
|
} | {
|
|
12491
12548
|
kind: "url";
|
|
12492
12549
|
value: string;
|
|
12550
|
+
} | {
|
|
12551
|
+
kind: "quiz";
|
|
12552
|
+
answers: {
|
|
12553
|
+
[k: string]: string;
|
|
12554
|
+
};
|
|
12555
|
+
release?: string | undefined;
|
|
12493
12556
|
} | undefined;
|
|
12494
12557
|
}>;
|
|
12495
12558
|
};
|
|
12496
12559
|
|
|
12497
|
-
export { AVATAR_UPLOAD_LIMIT, Attempt, AuthProvider, type AvatarProvider, type ClaimSubmission, type CollectionPass, type DeploymentPreview, type ExchangeInput, LeaderboardQuery, LinkedWallet, type ManagedProfile, MemberProgress, type MemberSummary, type OwnProfile, type PhotoSubmission, type PointLedger, type PointLedgerReference, type ProfileAvatar, type ProfileDefaults, type ProfileModeration, type ProfileSettings, type ProfileSettingsInput, type ProfileSummary, type ProfileUpdate, type ProfileVisibility, type ProgressObservation, type ProgressObserver,
|
|
12560
|
+
export { AVATAR_UPLOAD_LIMIT, Attempt, AuthProvider, type AvatarProvider, type ClaimSubmission, type CollectionPass, type DeploymentPreview, type ExchangeInput, LeaderboardQuery, LinkedWallet, type ManagedProfile, MemberProgress, type MemberSummary, type OwnProfile, type PhotoSubmission, type PointLedger, type PointLedgerReference, type ProfileAvatar, type ProfileCompletion, type ProfileCompletionPage, type ProfileCompletionQuery, type ProfileDefaultProvider, type ProfileDefaults, type ProfileModeration, type ProfileReferral, type ProfileSettings, type ProfileSettingsInput, type ProfileSummary, type ProfileUpdate, type ProfileVisibility, type ProgressObservation, type ProgressObserver, PublishedRelease, type QuestActionResult, type QuestCatalog, type QuestController, type QuestDraft, type QuestInstance, type QuestInteraction, type QuestRewardView, QuestUpdatedError, type QuestView, QuizEvidence, type QuizSubmission, RelayError, ReleaseInput, type Session, type SubmissionDraft, type SubmissionStatus, type SubmissionStore, SubmitInput, ValueEvidence, type ValueSubmission, WalletAddressInput, WalletSignature, WalletSigner, allocateQuestSchema, allocatedQuestSchema, authScopeSchema, avatarProviderSchema, avatarSeedSchema, avatarSrc, avatarUploadTypes, beginHandoverSchema, catalogDeploymentPreviewSchema, catalogDeploymentSchema, collectionBeginSchema, collectionCodeSchema, collectionPassSchema, collectionPreviewSchema, collectionResolveSchema, collectionSlotDeclarationSchema, collectionSlotSchema, collectionViewSchema, contentAdmissionQuerySchema, contentEnrollmentInputSchema, contentPerformanceQuerySchema, contentQualificationQuerySchema, contentReleaseInputSchema, createPointLedgerSchema, createRelayClient, defaultAvatar, defaultAvatarSvg, deploymentPreviewSchema, deploymentResultSchema, displayNameSchema, engagementPageQuerySchema, errorSchema, exchangeResultSchema, exchangeSchema, identityIntegrationInputSchema, identityIntegrationSchema, identityIntegrationSecretSchema, interactionSchema, isProfileParticipantRoute, managedProfileSchema, memberSummarySchema, ownProfileSchema, participantExchangeSchema, pointLedgerDeclarationSchema, pointLedgerPropertiesSchema, pointLedgerReferenceSchema, pointLedgerSchema, principalSchema, profileAvatarSchema, profileCompletionPageSchema, profileCompletionQuerySchema, profileCompletionSchema, profileDefaultProviderSchema, profileDefaultsSchema, profileModerationSchema, profileReferralSchema, profileSettingsInputSchema, profileSettingsSchema, profileSummarySchema, profileUpdateSchema, profileVisibilitySchema, projectCatalogArtifactSchema, projectDeploymentSchema, publishDeploymentSchema, publishQuestDraftSchema, questActions, questCatalogSchema, questCollectionSchema, questConfiguration, questDescriptionSchema, questDraftChangesSchema, questDraftSchema, questExperienceSchema, questInstanceSchema, questInteraction, questPublicationPreviewSchema, questRewardViewSchema, questTypeVersionSchema, questViewSchema, reconcileQuestDraft, referralAcceptSchema, rewardDeliveriesSchema, rewardDeliverySchema, saveQuestDraftSchema, sessionSchema, walletAvatarSeed, walletChallengeInputSchema, walletProofSchema, walletSignatureSchema };
|