@domino-sdk/relay 0.15.0 → 0.16.1
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 +49 -4
- package/dist/authoring.js +17 -3
- package/dist/browser.d.ts +327 -50
- package/dist/browser.js +5 -5
- package/dist/{chunk-I2CCMGN6.js → chunk-GEJK7LMK.js} +1 -1
- package/dist/{chunk-CQ5YSQQE.js → chunk-MK2E36HR.js} +1 -1
- package/dist/{chunk-YZJOZL4V.js → chunk-TI22MU2X.js} +121 -30
- package/dist/{chunk-CJARNIVP.js → chunk-XNS25KST.js} +1 -1
- package/dist/{chunk-FUQYKTOJ.js → chunk-YUAE6PFY.js} +406 -285
- package/dist/index.d.ts +842 -130
- package/dist/index.js +36 -6
- package/dist/portal-proxy.js +2 -2
- package/dist/react/index.d.ts +317 -14
- package/dist/react/index.js +8 -5
- package/dist/schema.d.ts +255 -13
- package/dist/schema.js +7 -1
- package/dist/{settings-e0nHA0JA.d.ts → submission-input-Cktvl71b.d.ts} +110 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { V as ValueEvidence, r as referralAcceptSchema, L as LeaderboardQuery, w as walletChallengeInputSchema, l as walletProofSchema, m as AuthProvider } from './submission-input-Cktvl71b.js';
|
|
2
|
+
export { n as AccountConnection, B as Budget, D as DiscordMember, a as DiscordMessage, I as IntegrationProvider, u as LeaderboardDefinition, t as LeaderboardPage, O as Observation, P as ProjectIntegration, Q as QuizContent, R as ReferralDefinition, v as ResourceOption, y as ResourceSource, z as SettingField, C as SettingsValues, S as SolanaBalance, b as StreakPolicy, E as StreakProgress, c as TextEvidence, d as TextOptions, F as TrackerDefinition, G as TrackerPreview, H as TrackerPreviewInput, J as TrackerQuery, T as TrackerReader, K as TrackerRecord, M as TrackerStatus, U as UrlEvidence, e as UrlOptions, W as WalletConnection, N as XConnection, Y as XPost, Z as XProfile, X as XReader, _ as XTweet, $ as accountConnectionSchema, a0 as authProviderSchema, a1 as budgetSchema, a2 as communityTimeZoneSchema, a3 as compatibleSettingKinds, a4 as completionKeySchema, a5 as completionPolicySchema, f as customSource, g as defineLeaderboard, h as defineReferral, i as defineTracker, j as discord, a6 as discordMemberInputSchema, a7 as discordMemberSchema, a8 as discordMessageInputSchema, a9 as discordMessageSchema, aa as discordReactionSchema, ab as discordServerSchema, ac as integrationProviderSchema, ad as leaderboardArtifactSchema, ae as leaderboardAuthoringSchema, af as leaderboardDefinitionSchema, ag as leaderboardExclusionSchema, ah as leaderboardGroupSchema, ai as leaderboardPageSchema, aj as leaderboardPreviewSchema, ak as leaderboardQuerySchema, al as leaderboardRowSchema, am as leaderboardWindowSchema, an as missingResourceSettings, ao as observationInputSchema, ap as observationReceiptSchema, aq as observationSchema, o as observationTriggerSchema, ar as parseSettings, p as pointLedgers, as as pointsAccountSchema, at as pointsEntrySchema, au as pointsMutationSchema, av as pointsResultSchema, aw as projectIntegrationSchema, ax as publishedLeaderboardSchema, ay as publishedReferralSchema, az as publishedTrackerSchema, aA as quizChoiceSchema, aB as quizContentSchema, aC as quizQuestionSchema, aD as quizQuestionsSchema, aE as referralAccountSchema, aF as referralArtifactSchema, aG as referralAuthoringSchema, aH as referralControlSchema, aI as referralDefinitionSchema, aJ as referralHistorySchema, aK as referralManagementSchema, aL as referralRelationshipSchema, q as referralSummarySchema, aM as resourceOptionsSchema, aN as resourceRequestSchema, aO as resourceSourceSchema, aP as settingFieldSchema, s as settings, aQ as settingsFieldsSchema, aR as settingsValuesSchema, aS as solanaAddressSchema, aT as solanaBalanceSchema, k as streak, aU as streakPolicySchema, aV as streakProgressSchema, aW as textEvidenceSchema, aX as textOptionsSchema, aY as trackerArtifactSchema, aZ as trackerControlSchema, a_ as trackerDefinitionSchema, a$ as trackerIngestResultSchema, b0 as trackerIngestSchema, b1 as trackerPageSchema, b2 as trackerPreviewInputSchema, b3 as trackerPreviewLimits, b4 as trackerPreviewSchema, b5 as trackerQuerySchema, b6 as trackerRecordInputSchema, b7 as trackerRecordSchema, b8 as trackerSourceSchema, b9 as trackerStatusSchema, ba as trackerSummarySchema, bb as urlEvidenceSchema, bc as urlOptionsSchema, bd as validateSubmissionValue, be as valueEvidenceSchema, bf as walletChallengeSchema, bg as walletConnectionSchema, x, bh as xConnectionSchema, bi as xIdSchema, bj as xPostId, bk as xPostSchema, bl as xProfileSchema, bm as xRequestSchema, bn as xTweetSchema } from './submission-input-Cktvl71b.js';
|
|
1
3
|
import { z } from 'zod';
|
|
2
4
|
import { errorSchema, QuizEvidence, Attempt, SubmitInput, MemberProgress, questDescriptionSchema, PublishedRelease, ReviewListOptions, MemberListOptions, ReleaseInput, beginHandoverSchema } from './schema.js';
|
|
3
|
-
export { Decision, Entitlement, MemberPage, PhotoResult, PickupAvailability, QuestAvailability, QuestDescription, QuestPresentation, QuestSettingsInput, ReviewPage, Reward, Snapshot, TieredRewardDefinition, artifactSchema, attemptSchema, batchReleaseSchema, completionRecordSchema, configurePickupSchema, confirmHandoverSchema, 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, submitSchema, templateSchema, tierRewardSchema, tieredRewardDefinitionSchema, triggerSchema } from './schema.js';
|
|
4
|
-
import { r as referralAcceptSchema, L as LeaderboardQuery, w as walletChallengeInputSchema, i as walletProofSchema, j as AuthProvider } from './settings-e0nHA0JA.js';
|
|
5
|
-
export { k as AccountConnection, B as Budget, D as DiscordMember, a as DiscordMessage, I as IntegrationProvider, n as LeaderboardDefinition, m as LeaderboardPage, O as Observation, P as ProjectIntegration, Q as QuizContent, R as ReferralDefinition, q as ResourceOption, t as ResourceSource, u as SettingField, v as SettingsValues, S as SolanaBalance, b as StreakPolicy, y as StreakProgress, z as TrackerDefinition, C as TrackerPreview, E as TrackerPreviewInput, F as TrackerQuery, T as TrackerReader, G as TrackerRecord, H as TrackerStatus, W as WalletConnection, X as XTweet, J as accountConnectionSchema, K as authProviderSchema, M as budgetSchema, N as communityTimeZoneSchema, U as compatibleSettingKinds, V as completionKeySchema, Y as completionPolicySchema, c as customSource, d as defineLeaderboard, e as defineReferral, f as defineTracker, g as discord, Z as discordMemberInputSchema, _ as discordMemberSchema, $ as discordMessageInputSchema, a0 as discordMessageSchema, a1 as discordReactionSchema, a2 as discordServerSchema, a3 as integrationProviderSchema, a4 as leaderboardArtifactSchema, a5 as leaderboardAuthoringSchema, a6 as leaderboardDefinitionSchema, a7 as leaderboardExclusionSchema, a8 as leaderboardGroupSchema, a9 as leaderboardPageSchema, aa as leaderboardPreviewSchema, ab as leaderboardQuerySchema, ac as leaderboardRowSchema, ad as leaderboardWindowSchema, ae as missingResourceSettings, af as observationInputSchema, ag as observationReceiptSchema, ah as observationSchema, o as observationTriggerSchema, ai as parseSettings, p as pointLedgers, aj as pointsAccountSchema, ak as pointsEntrySchema, al as pointsMutationSchema, am as pointsResultSchema, an as projectIntegrationSchema, ao as publishedLeaderboardSchema, ap as publishedReferralSchema, aq as publishedTrackerSchema, ar as quizChoiceSchema, as as quizContentSchema, at as quizQuestionSchema, au as quizQuestionsSchema, av as referralAccountSchema, aw as referralArtifactSchema, ax as referralAuthoringSchema, ay as referralControlSchema, az as referralDefinitionSchema, aA as referralHistorySchema, aB as referralManagementSchema, aC as referralRelationshipSchema, l as referralSummarySchema, aD as resourceOptionsSchema, aE as resourceRequestSchema, aF as resourceSourceSchema, aG as settingFieldSchema, s as settings, aH as settingsFieldsSchema, aI as settingsValuesSchema, aJ as solanaAddressSchema, aK as solanaBalanceSchema, h as streak, aL as streakPolicySchema, aM as streakProgressSchema, aN as trackerArtifactSchema, aO as trackerControlSchema, aP as trackerDefinitionSchema, aQ as trackerIngestResultSchema, aR as trackerIngestSchema, aS as trackerPageSchema, aT as trackerPreviewInputSchema, aU as trackerPreviewLimits, aV as trackerPreviewSchema, aW as trackerQuerySchema, aX as trackerRecordInputSchema, aY as trackerRecordSchema, aZ as trackerSourceSchema, a_ as trackerStatusSchema, a$ as trackerSummarySchema, b0 as walletChallengeSchema, b1 as walletConnectionSchema, x, b2 as xTweetSchema } from './settings-e0nHA0JA.js';
|
|
5
|
+
export { Decision, Entitlement, MemberPage, PhotoResult, PickupAvailability, QuestAvailability, QuestDescription, QuestPresentation, QuestSettingsInput, ReviewPage, Reward, Snapshot, SubmissionEvidence, TextResult, TextReviewInput, TieredRewardDefinition, artifactSchema, attemptSchema, batchReleaseSchema, completionRecordSchema, configurePickupSchema, confirmHandoverSchema, 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, triggerSchema } from './schema.js';
|
|
6
6
|
|
|
7
7
|
declare class RelayError extends Error {
|
|
8
8
|
readonly status: number;
|
|
@@ -122,6 +122,9 @@ type QuizSubmission = Handle & {
|
|
|
122
122
|
release: string;
|
|
123
123
|
}): Promise<Attempt>;
|
|
124
124
|
};
|
|
125
|
+
type ValueSubmission = Handle & {
|
|
126
|
+
submit(value: string): Promise<Attempt>;
|
|
127
|
+
};
|
|
125
128
|
type ClaimSubmission = Handle & {
|
|
126
129
|
submit(): Promise<Attempt>;
|
|
127
130
|
};
|
|
@@ -159,11 +162,17 @@ declare function submissions(transport: Transport, configuredStore: SubmissionSt
|
|
|
159
162
|
recoverPrevious?: boolean;
|
|
160
163
|
repeatable?: boolean;
|
|
161
164
|
}): Promise<ClaimSubmission>;
|
|
165
|
+
(quest: string, options: {
|
|
166
|
+
input: "text" | "url";
|
|
167
|
+
release?: string;
|
|
168
|
+
recoverPrevious?: boolean;
|
|
169
|
+
repeatable?: boolean;
|
|
170
|
+
}): Promise<ValueSubmission>;
|
|
162
171
|
};
|
|
163
172
|
type SubmissionDraft = {
|
|
164
173
|
kind: "photo";
|
|
165
174
|
file: Blob;
|
|
166
|
-
} | QuizEvidence | {
|
|
175
|
+
} | QuizEvidence | ValueEvidence | {
|
|
167
176
|
kind: "none";
|
|
168
177
|
};
|
|
169
178
|
declare class QuestUpdatedError extends RelayError {
|
|
@@ -191,6 +200,8 @@ type ProgressObserver = {
|
|
|
191
200
|
|
|
192
201
|
declare const interactionSchema: z.ZodEnum<{
|
|
193
202
|
staff: "staff";
|
|
203
|
+
url: "url";
|
|
204
|
+
text: "text";
|
|
194
205
|
quiz: "quiz";
|
|
195
206
|
photo: "photo";
|
|
196
207
|
automatic: "automatic";
|
|
@@ -338,6 +349,29 @@ declare const questTypeVersionSchema: z.ZodObject<{
|
|
|
338
349
|
}, z.core.$strict>]>>;
|
|
339
350
|
humanReview: z.ZodBoolean;
|
|
340
351
|
trigger: z.ZodUnion<readonly [z.ZodObject<{
|
|
352
|
+
kind: z.ZodLiteral<"manual">;
|
|
353
|
+
input: z.ZodLiteral<"text">;
|
|
354
|
+
constraints: z.ZodObject<{
|
|
355
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
356
|
+
minLength: z.ZodDefault<z.ZodNumber>;
|
|
357
|
+
maxLength: z.ZodDefault<z.ZodNumber>;
|
|
358
|
+
}, z.core.$strict>;
|
|
359
|
+
actor: z.ZodOptional<z.ZodEnum<{
|
|
360
|
+
member: "member";
|
|
361
|
+
staff: "staff";
|
|
362
|
+
}>>;
|
|
363
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
364
|
+
kind: z.ZodLiteral<"manual">;
|
|
365
|
+
input: z.ZodLiteral<"url">;
|
|
366
|
+
constraints: z.ZodObject<{
|
|
367
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
368
|
+
allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
369
|
+
}, z.core.$strict>;
|
|
370
|
+
actor: z.ZodOptional<z.ZodEnum<{
|
|
371
|
+
member: "member";
|
|
372
|
+
staff: "staff";
|
|
373
|
+
}>>;
|
|
374
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
341
375
|
kind: z.ZodLiteral<"manual">;
|
|
342
376
|
input: z.ZodEnum<{
|
|
343
377
|
quiz: "quiz";
|
|
@@ -410,7 +444,7 @@ declare const collectionSlotDeclarationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
410
444
|
title: string;
|
|
411
445
|
key?: string | undefined;
|
|
412
446
|
id?: string | undefined;
|
|
413
|
-
}, "
|
|
447
|
+
}, "id" | "key"> & {
|
|
414
448
|
key: string;
|
|
415
449
|
}, {
|
|
416
450
|
title: string;
|
|
@@ -438,8 +472,8 @@ declare const questInstanceSchema: z.ZodObject<{
|
|
|
438
472
|
}, z.core.$strict>>]>>;
|
|
439
473
|
requires: z.ZodArray<z.ZodString>;
|
|
440
474
|
status: z.ZodEnum<{
|
|
441
|
-
active: "active";
|
|
442
475
|
paused: "paused";
|
|
476
|
+
active: "active";
|
|
443
477
|
archived: "archived";
|
|
444
478
|
}>;
|
|
445
479
|
}, z.core.$strict>;
|
|
@@ -459,8 +493,8 @@ declare const questDraftChangesSchema: z.ZodObject<{
|
|
|
459
493
|
}, z.core.$strict>>]>>;
|
|
460
494
|
requires: z.ZodArray<z.ZodString>;
|
|
461
495
|
status: z.ZodEnum<{
|
|
462
|
-
active: "active";
|
|
463
496
|
paused: "paused";
|
|
497
|
+
active: "active";
|
|
464
498
|
archived: "archived";
|
|
465
499
|
}>;
|
|
466
500
|
expectedRelease: z.ZodNullable<z.ZodString>;
|
|
@@ -492,8 +526,8 @@ declare const questDraftSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
492
526
|
}, z.core.$strict>>]>>;
|
|
493
527
|
requires: z.ZodArray<z.ZodString>;
|
|
494
528
|
status: z.ZodEnum<{
|
|
495
|
-
active: "active";
|
|
496
529
|
paused: "paused";
|
|
530
|
+
active: "active";
|
|
497
531
|
archived: "archived";
|
|
498
532
|
}>;
|
|
499
533
|
expectedRelease: z.ZodNullable<z.ZodString>;
|
|
@@ -526,8 +560,8 @@ declare const questDraftSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
526
560
|
}, z.core.$strict>>]>>;
|
|
527
561
|
requires: z.ZodArray<z.ZodString>;
|
|
528
562
|
status: z.ZodEnum<{
|
|
529
|
-
active: "active";
|
|
530
563
|
paused: "paused";
|
|
564
|
+
active: "active";
|
|
531
565
|
archived: "archived";
|
|
532
566
|
}>;
|
|
533
567
|
expectedRelease: z.ZodNullable<z.ZodString>;
|
|
@@ -684,6 +718,29 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
684
718
|
}, z.core.$strict>]>>;
|
|
685
719
|
humanReview: z.ZodBoolean;
|
|
686
720
|
trigger: z.ZodUnion<readonly [z.ZodObject<{
|
|
721
|
+
kind: z.ZodLiteral<"manual">;
|
|
722
|
+
input: z.ZodLiteral<"text">;
|
|
723
|
+
constraints: z.ZodObject<{
|
|
724
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
725
|
+
minLength: z.ZodDefault<z.ZodNumber>;
|
|
726
|
+
maxLength: z.ZodDefault<z.ZodNumber>;
|
|
727
|
+
}, z.core.$strict>;
|
|
728
|
+
actor: z.ZodOptional<z.ZodEnum<{
|
|
729
|
+
member: "member";
|
|
730
|
+
staff: "staff";
|
|
731
|
+
}>>;
|
|
732
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
733
|
+
kind: z.ZodLiteral<"manual">;
|
|
734
|
+
input: z.ZodLiteral<"url">;
|
|
735
|
+
constraints: z.ZodObject<{
|
|
736
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
737
|
+
allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
738
|
+
}, z.core.$strict>;
|
|
739
|
+
actor: z.ZodOptional<z.ZodEnum<{
|
|
740
|
+
member: "member";
|
|
741
|
+
staff: "staff";
|
|
742
|
+
}>>;
|
|
743
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
687
744
|
kind: z.ZodLiteral<"manual">;
|
|
688
745
|
input: z.ZodEnum<{
|
|
689
746
|
quiz: "quiz";
|
|
@@ -764,8 +821,8 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
764
821
|
}, z.core.$strict>>]>>;
|
|
765
822
|
requires: z.ZodArray<z.ZodString>;
|
|
766
823
|
status: z.ZodEnum<{
|
|
767
|
-
active: "active";
|
|
768
824
|
paused: "paused";
|
|
825
|
+
active: "active";
|
|
769
826
|
archived: "archived";
|
|
770
827
|
}>;
|
|
771
828
|
}, z.core.$strict>>;
|
|
@@ -789,8 +846,8 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
789
846
|
}, z.core.$strict>>]>>;
|
|
790
847
|
requires: z.ZodArray<z.ZodString>;
|
|
791
848
|
status: z.ZodEnum<{
|
|
792
|
-
active: "active";
|
|
793
849
|
paused: "paused";
|
|
850
|
+
active: "active";
|
|
794
851
|
archived: "archived";
|
|
795
852
|
}>;
|
|
796
853
|
expectedRelease: z.ZodNullable<z.ZodString>;
|
|
@@ -823,8 +880,8 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
823
880
|
}, z.core.$strict>>]>>;
|
|
824
881
|
requires: z.ZodArray<z.ZodString>;
|
|
825
882
|
status: z.ZodEnum<{
|
|
826
|
-
active: "active";
|
|
827
883
|
paused: "paused";
|
|
884
|
+
active: "active";
|
|
828
885
|
archived: "archived";
|
|
829
886
|
}>;
|
|
830
887
|
expectedRelease: z.ZodNullable<z.ZodString>;
|
|
@@ -974,6 +1031,29 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
974
1031
|
}, z.core.$strict>]>>;
|
|
975
1032
|
humanReview: z.ZodBoolean;
|
|
976
1033
|
trigger: z.ZodUnion<readonly [z.ZodObject<{
|
|
1034
|
+
kind: z.ZodLiteral<"manual">;
|
|
1035
|
+
input: z.ZodLiteral<"text">;
|
|
1036
|
+
constraints: z.ZodObject<{
|
|
1037
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
1038
|
+
minLength: z.ZodDefault<z.ZodNumber>;
|
|
1039
|
+
maxLength: z.ZodDefault<z.ZodNumber>;
|
|
1040
|
+
}, z.core.$strict>;
|
|
1041
|
+
actor: z.ZodOptional<z.ZodEnum<{
|
|
1042
|
+
member: "member";
|
|
1043
|
+
staff: "staff";
|
|
1044
|
+
}>>;
|
|
1045
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1046
|
+
kind: z.ZodLiteral<"manual">;
|
|
1047
|
+
input: z.ZodLiteral<"url">;
|
|
1048
|
+
constraints: z.ZodObject<{
|
|
1049
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
1050
|
+
allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1051
|
+
}, z.core.$strict>;
|
|
1052
|
+
actor: z.ZodOptional<z.ZodEnum<{
|
|
1053
|
+
member: "member";
|
|
1054
|
+
staff: "staff";
|
|
1055
|
+
}>>;
|
|
1056
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
977
1057
|
kind: z.ZodLiteral<"manual">;
|
|
978
1058
|
input: z.ZodEnum<{
|
|
979
1059
|
quiz: "quiz";
|
|
@@ -1039,8 +1119,8 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
1039
1119
|
typeVersion: z.ZodString;
|
|
1040
1120
|
}, z.core.$strict>>;
|
|
1041
1121
|
lifecycle: z.ZodDefault<z.ZodEnum<{
|
|
1042
|
-
active: "active";
|
|
1043
1122
|
paused: "paused";
|
|
1123
|
+
active: "active";
|
|
1044
1124
|
archived: "archived";
|
|
1045
1125
|
}>>;
|
|
1046
1126
|
configuration: z.ZodOptional<z.ZodObject<{
|
|
@@ -1145,12 +1225,12 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
1145
1225
|
kind: "resource";
|
|
1146
1226
|
default: string;
|
|
1147
1227
|
source: {
|
|
1148
|
-
provider: "domino";
|
|
1149
|
-
resource: "point-ledger";
|
|
1150
|
-
} | {
|
|
1151
1228
|
provider: "discord";
|
|
1152
1229
|
resource: "channel";
|
|
1153
1230
|
types: ("text" | "announcement")[];
|
|
1231
|
+
} | {
|
|
1232
|
+
provider: "domino";
|
|
1233
|
+
resource: "point-ledger";
|
|
1154
1234
|
} | {
|
|
1155
1235
|
provider: "discord";
|
|
1156
1236
|
resource: "role";
|
|
@@ -1236,6 +1316,23 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
1236
1316
|
})[];
|
|
1237
1317
|
humanReview: boolean;
|
|
1238
1318
|
trigger: {
|
|
1319
|
+
kind: "manual";
|
|
1320
|
+
input: "text";
|
|
1321
|
+
constraints: {
|
|
1322
|
+
required: boolean;
|
|
1323
|
+
minLength: number;
|
|
1324
|
+
maxLength: number;
|
|
1325
|
+
};
|
|
1326
|
+
actor?: "member" | "staff" | undefined;
|
|
1327
|
+
} | {
|
|
1328
|
+
kind: "manual";
|
|
1329
|
+
input: "url";
|
|
1330
|
+
constraints: {
|
|
1331
|
+
required: boolean;
|
|
1332
|
+
allowedHosts?: string[] | undefined;
|
|
1333
|
+
};
|
|
1334
|
+
actor?: "member" | "staff" | undefined;
|
|
1335
|
+
} | {
|
|
1239
1336
|
kind: "manual";
|
|
1240
1337
|
input: "quiz" | "photo" | "none";
|
|
1241
1338
|
actor?: "member" | "staff" | undefined;
|
|
@@ -1274,7 +1371,7 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
1274
1371
|
id: string;
|
|
1275
1372
|
createdAt: number;
|
|
1276
1373
|
legacy: boolean;
|
|
1277
|
-
lifecycle: "
|
|
1374
|
+
lifecycle: "paused" | "active" | "archived";
|
|
1278
1375
|
key?: string | undefined;
|
|
1279
1376
|
origin?: {
|
|
1280
1377
|
typeVersion: string;
|
|
@@ -1339,6 +1436,8 @@ declare const questCatalogSchema: z.ZodObject<{
|
|
|
1339
1436
|
}>>]>>>;
|
|
1340
1437
|
supportedInteractions: z.ZodArray<z.ZodEnum<{
|
|
1341
1438
|
staff: "staff";
|
|
1439
|
+
url: "url";
|
|
1440
|
+
text: "text";
|
|
1342
1441
|
quiz: "quiz";
|
|
1343
1442
|
photo: "photo";
|
|
1344
1443
|
automatic: "automatic";
|
|
@@ -1361,7 +1460,7 @@ declare const catalogDeploymentSchema: z.ZodObject<{
|
|
|
1361
1460
|
title: string;
|
|
1362
1461
|
key?: string | undefined;
|
|
1363
1462
|
id?: string | undefined;
|
|
1364
|
-
}, "
|
|
1463
|
+
}, "id" | "key"> & {
|
|
1365
1464
|
key: string;
|
|
1366
1465
|
}, {
|
|
1367
1466
|
title: string;
|
|
@@ -1370,6 +1469,8 @@ declare const catalogDeploymentSchema: z.ZodObject<{
|
|
|
1370
1469
|
}>>>>;
|
|
1371
1470
|
supportedInteractions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1372
1471
|
staff: "staff";
|
|
1472
|
+
url: "url";
|
|
1473
|
+
text: "text";
|
|
1373
1474
|
quiz: "quiz";
|
|
1374
1475
|
photo: "photo";
|
|
1375
1476
|
automatic: "automatic";
|
|
@@ -1518,6 +1619,29 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
|
|
|
1518
1619
|
}, z.core.$strict>]>>;
|
|
1519
1620
|
humanReview: z.ZodBoolean;
|
|
1520
1621
|
trigger: z.ZodUnion<readonly [z.ZodObject<{
|
|
1622
|
+
kind: z.ZodLiteral<"manual">;
|
|
1623
|
+
input: z.ZodLiteral<"text">;
|
|
1624
|
+
constraints: z.ZodObject<{
|
|
1625
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
1626
|
+
minLength: z.ZodDefault<z.ZodNumber>;
|
|
1627
|
+
maxLength: z.ZodDefault<z.ZodNumber>;
|
|
1628
|
+
}, z.core.$strict>;
|
|
1629
|
+
actor: z.ZodOptional<z.ZodEnum<{
|
|
1630
|
+
member: "member";
|
|
1631
|
+
staff: "staff";
|
|
1632
|
+
}>>;
|
|
1633
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1634
|
+
kind: z.ZodLiteral<"manual">;
|
|
1635
|
+
input: z.ZodLiteral<"url">;
|
|
1636
|
+
constraints: z.ZodObject<{
|
|
1637
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
1638
|
+
allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1639
|
+
}, z.core.$strict>;
|
|
1640
|
+
actor: z.ZodOptional<z.ZodEnum<{
|
|
1641
|
+
member: "member";
|
|
1642
|
+
staff: "staff";
|
|
1643
|
+
}>>;
|
|
1644
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1521
1645
|
kind: z.ZodLiteral<"manual">;
|
|
1522
1646
|
input: z.ZodEnum<{
|
|
1523
1647
|
quiz: "quiz";
|
|
@@ -1584,6 +1708,8 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
|
|
|
1584
1708
|
}, z.core.$strict>>;
|
|
1585
1709
|
supportedInteractions: z.ZodArray<z.ZodEnum<{
|
|
1586
1710
|
staff: "staff";
|
|
1711
|
+
url: "url";
|
|
1712
|
+
text: "text";
|
|
1587
1713
|
quiz: "quiz";
|
|
1588
1714
|
photo: "photo";
|
|
1589
1715
|
automatic: "automatic";
|
|
@@ -1611,8 +1737,8 @@ declare const saveQuestDraftSchema: z.ZodObject<{
|
|
|
1611
1737
|
}, z.core.$strict>>]>>;
|
|
1612
1738
|
requires: z.ZodArray<z.ZodString>;
|
|
1613
1739
|
status: z.ZodEnum<{
|
|
1614
|
-
active: "active";
|
|
1615
1740
|
paused: "paused";
|
|
1741
|
+
active: "active";
|
|
1616
1742
|
archived: "archived";
|
|
1617
1743
|
}>;
|
|
1618
1744
|
expectedRelease: z.ZodNullable<z.ZodString>;
|
|
@@ -1660,6 +1786,29 @@ declare const questViewSchema: z.ZodObject<{
|
|
|
1660
1786
|
x: "x";
|
|
1661
1787
|
}>>>;
|
|
1662
1788
|
trigger: z.ZodUnion<readonly [z.ZodObject<{
|
|
1789
|
+
kind: z.ZodLiteral<"manual">;
|
|
1790
|
+
input: z.ZodLiteral<"text">;
|
|
1791
|
+
constraints: z.ZodObject<{
|
|
1792
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
1793
|
+
minLength: z.ZodDefault<z.ZodNumber>;
|
|
1794
|
+
maxLength: z.ZodDefault<z.ZodNumber>;
|
|
1795
|
+
}, z.core.$strict>;
|
|
1796
|
+
actor: z.ZodOptional<z.ZodEnum<{
|
|
1797
|
+
member: "member";
|
|
1798
|
+
staff: "staff";
|
|
1799
|
+
}>>;
|
|
1800
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1801
|
+
kind: z.ZodLiteral<"manual">;
|
|
1802
|
+
input: z.ZodLiteral<"url">;
|
|
1803
|
+
constraints: z.ZodObject<{
|
|
1804
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
1805
|
+
allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1806
|
+
}, z.core.$strict>;
|
|
1807
|
+
actor: z.ZodOptional<z.ZodEnum<{
|
|
1808
|
+
member: "member";
|
|
1809
|
+
staff: "staff";
|
|
1810
|
+
}>>;
|
|
1811
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1663
1812
|
kind: z.ZodLiteral<"manual">;
|
|
1664
1813
|
input: z.ZodEnum<{
|
|
1665
1814
|
quiz: "quiz";
|
|
@@ -1680,6 +1829,8 @@ declare const questViewSchema: z.ZodObject<{
|
|
|
1680
1829
|
availability: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1681
1830
|
kind: z.ZodLiteral<"available">;
|
|
1682
1831
|
input: z.ZodEnum<{
|
|
1832
|
+
url: "url";
|
|
1833
|
+
text: "text";
|
|
1683
1834
|
quiz: "quiz";
|
|
1684
1835
|
photo: "photo";
|
|
1685
1836
|
none: "none";
|
|
@@ -1765,21 +1916,27 @@ declare const questViewSchema: z.ZodObject<{
|
|
|
1765
1916
|
quest: z.ZodString;
|
|
1766
1917
|
member: z.ZodString;
|
|
1767
1918
|
evidence: z.ZodNullable<z.ZodString>;
|
|
1768
|
-
input: z.ZodOptional<z.ZodObject<{
|
|
1919
|
+
input: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1769
1920
|
kind: z.ZodLiteral<"quiz">;
|
|
1770
1921
|
release: z.ZodOptional<z.ZodString>;
|
|
1771
1922
|
answers: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<{
|
|
1772
1923
|
[k: string]: string;
|
|
1773
1924
|
}, Record<string, string>>>;
|
|
1774
|
-
}, z.core.$strict
|
|
1925
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1926
|
+
kind: z.ZodLiteral<"text">;
|
|
1927
|
+
value: z.ZodString;
|
|
1928
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1929
|
+
kind: z.ZodLiteral<"url">;
|
|
1930
|
+
value: z.ZodString;
|
|
1931
|
+
}, z.core.$strict>]>>;
|
|
1775
1932
|
status: z.ZodEnum<{
|
|
1933
|
+
failed: "failed";
|
|
1776
1934
|
queued: "queued";
|
|
1777
1935
|
evaluating: "evaluating";
|
|
1778
1936
|
accepted: "accepted";
|
|
1779
1937
|
progressed: "progressed";
|
|
1780
1938
|
rejected: "rejected";
|
|
1781
1939
|
"needs-review": "needs-review";
|
|
1782
|
-
failed: "failed";
|
|
1783
1940
|
}>;
|
|
1784
1941
|
reason: z.ZodNullable<z.ZodString>;
|
|
1785
1942
|
retries: z.ZodNumber;
|
|
@@ -1817,14 +1974,16 @@ declare const questViewSchema: z.ZodObject<{
|
|
|
1817
1974
|
release: z.ZodString;
|
|
1818
1975
|
interaction: z.ZodEnum<{
|
|
1819
1976
|
staff: "staff";
|
|
1977
|
+
url: "url";
|
|
1978
|
+
text: "text";
|
|
1820
1979
|
quiz: "quiz";
|
|
1821
1980
|
photo: "photo";
|
|
1822
1981
|
automatic: "automatic";
|
|
1823
1982
|
claim: "claim";
|
|
1824
1983
|
}>;
|
|
1825
1984
|
lifecycle: z.ZodEnum<{
|
|
1826
|
-
active: "active";
|
|
1827
1985
|
paused: "paused";
|
|
1986
|
+
active: "active";
|
|
1828
1987
|
archived: "archived";
|
|
1829
1988
|
}>;
|
|
1830
1989
|
rewards: z.ZodArray<z.ZodObject<{
|
|
@@ -1866,6 +2025,29 @@ declare const collectionViewSchema: z.ZodObject<{
|
|
|
1866
2025
|
x: "x";
|
|
1867
2026
|
}>>>;
|
|
1868
2027
|
trigger: z.ZodUnion<readonly [z.ZodObject<{
|
|
2028
|
+
kind: z.ZodLiteral<"manual">;
|
|
2029
|
+
input: z.ZodLiteral<"text">;
|
|
2030
|
+
constraints: z.ZodObject<{
|
|
2031
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
2032
|
+
minLength: z.ZodDefault<z.ZodNumber>;
|
|
2033
|
+
maxLength: z.ZodDefault<z.ZodNumber>;
|
|
2034
|
+
}, z.core.$strict>;
|
|
2035
|
+
actor: z.ZodOptional<z.ZodEnum<{
|
|
2036
|
+
member: "member";
|
|
2037
|
+
staff: "staff";
|
|
2038
|
+
}>>;
|
|
2039
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2040
|
+
kind: z.ZodLiteral<"manual">;
|
|
2041
|
+
input: z.ZodLiteral<"url">;
|
|
2042
|
+
constraints: z.ZodObject<{
|
|
2043
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
2044
|
+
allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2045
|
+
}, z.core.$strict>;
|
|
2046
|
+
actor: z.ZodOptional<z.ZodEnum<{
|
|
2047
|
+
member: "member";
|
|
2048
|
+
staff: "staff";
|
|
2049
|
+
}>>;
|
|
2050
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1869
2051
|
kind: z.ZodLiteral<"manual">;
|
|
1870
2052
|
input: z.ZodEnum<{
|
|
1871
2053
|
quiz: "quiz";
|
|
@@ -1886,6 +2068,8 @@ declare const collectionViewSchema: z.ZodObject<{
|
|
|
1886
2068
|
availability: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1887
2069
|
kind: z.ZodLiteral<"available">;
|
|
1888
2070
|
input: z.ZodEnum<{
|
|
2071
|
+
url: "url";
|
|
2072
|
+
text: "text";
|
|
1889
2073
|
quiz: "quiz";
|
|
1890
2074
|
photo: "photo";
|
|
1891
2075
|
none: "none";
|
|
@@ -1971,21 +2155,27 @@ declare const collectionViewSchema: z.ZodObject<{
|
|
|
1971
2155
|
quest: z.ZodString;
|
|
1972
2156
|
member: z.ZodString;
|
|
1973
2157
|
evidence: z.ZodNullable<z.ZodString>;
|
|
1974
|
-
input: z.ZodOptional<z.ZodObject<{
|
|
2158
|
+
input: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1975
2159
|
kind: z.ZodLiteral<"quiz">;
|
|
1976
2160
|
release: z.ZodOptional<z.ZodString>;
|
|
1977
2161
|
answers: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<{
|
|
1978
2162
|
[k: string]: string;
|
|
1979
2163
|
}, Record<string, string>>>;
|
|
1980
|
-
}, z.core.$strict
|
|
2164
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2165
|
+
kind: z.ZodLiteral<"text">;
|
|
2166
|
+
value: z.ZodString;
|
|
2167
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2168
|
+
kind: z.ZodLiteral<"url">;
|
|
2169
|
+
value: z.ZodString;
|
|
2170
|
+
}, z.core.$strict>]>>;
|
|
1981
2171
|
status: z.ZodEnum<{
|
|
2172
|
+
failed: "failed";
|
|
1982
2173
|
queued: "queued";
|
|
1983
2174
|
evaluating: "evaluating";
|
|
1984
2175
|
accepted: "accepted";
|
|
1985
2176
|
progressed: "progressed";
|
|
1986
2177
|
rejected: "rejected";
|
|
1987
2178
|
"needs-review": "needs-review";
|
|
1988
|
-
failed: "failed";
|
|
1989
2179
|
}>;
|
|
1990
2180
|
reason: z.ZodNullable<z.ZodString>;
|
|
1991
2181
|
retries: z.ZodNumber;
|
|
@@ -2023,14 +2213,16 @@ declare const collectionViewSchema: z.ZodObject<{
|
|
|
2023
2213
|
release: z.ZodString;
|
|
2024
2214
|
interaction: z.ZodEnum<{
|
|
2025
2215
|
staff: "staff";
|
|
2216
|
+
url: "url";
|
|
2217
|
+
text: "text";
|
|
2026
2218
|
quiz: "quiz";
|
|
2027
2219
|
photo: "photo";
|
|
2028
2220
|
automatic: "automatic";
|
|
2029
2221
|
claim: "claim";
|
|
2030
2222
|
}>;
|
|
2031
2223
|
lifecycle: z.ZodEnum<{
|
|
2032
|
-
active: "active";
|
|
2033
2224
|
paused: "paused";
|
|
2225
|
+
active: "active";
|
|
2034
2226
|
archived: "archived";
|
|
2035
2227
|
}>;
|
|
2036
2228
|
rewards: z.ZodArray<z.ZodObject<{
|
|
@@ -2071,6 +2263,29 @@ declare const questExperienceSchema: z.ZodObject<{
|
|
|
2071
2263
|
x: "x";
|
|
2072
2264
|
}>>>;
|
|
2073
2265
|
trigger: z.ZodUnion<readonly [z.ZodObject<{
|
|
2266
|
+
kind: z.ZodLiteral<"manual">;
|
|
2267
|
+
input: z.ZodLiteral<"text">;
|
|
2268
|
+
constraints: z.ZodObject<{
|
|
2269
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
2270
|
+
minLength: z.ZodDefault<z.ZodNumber>;
|
|
2271
|
+
maxLength: z.ZodDefault<z.ZodNumber>;
|
|
2272
|
+
}, z.core.$strict>;
|
|
2273
|
+
actor: z.ZodOptional<z.ZodEnum<{
|
|
2274
|
+
member: "member";
|
|
2275
|
+
staff: "staff";
|
|
2276
|
+
}>>;
|
|
2277
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2278
|
+
kind: z.ZodLiteral<"manual">;
|
|
2279
|
+
input: z.ZodLiteral<"url">;
|
|
2280
|
+
constraints: z.ZodObject<{
|
|
2281
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
2282
|
+
allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2283
|
+
}, z.core.$strict>;
|
|
2284
|
+
actor: z.ZodOptional<z.ZodEnum<{
|
|
2285
|
+
member: "member";
|
|
2286
|
+
staff: "staff";
|
|
2287
|
+
}>>;
|
|
2288
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2074
2289
|
kind: z.ZodLiteral<"manual">;
|
|
2075
2290
|
input: z.ZodEnum<{
|
|
2076
2291
|
quiz: "quiz";
|
|
@@ -2091,6 +2306,8 @@ declare const questExperienceSchema: z.ZodObject<{
|
|
|
2091
2306
|
availability: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2092
2307
|
kind: z.ZodLiteral<"available">;
|
|
2093
2308
|
input: z.ZodEnum<{
|
|
2309
|
+
url: "url";
|
|
2310
|
+
text: "text";
|
|
2094
2311
|
quiz: "quiz";
|
|
2095
2312
|
photo: "photo";
|
|
2096
2313
|
none: "none";
|
|
@@ -2176,21 +2393,27 @@ declare const questExperienceSchema: z.ZodObject<{
|
|
|
2176
2393
|
quest: z.ZodString;
|
|
2177
2394
|
member: z.ZodString;
|
|
2178
2395
|
evidence: z.ZodNullable<z.ZodString>;
|
|
2179
|
-
input: z.ZodOptional<z.ZodObject<{
|
|
2396
|
+
input: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
2180
2397
|
kind: z.ZodLiteral<"quiz">;
|
|
2181
2398
|
release: z.ZodOptional<z.ZodString>;
|
|
2182
2399
|
answers: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<{
|
|
2183
2400
|
[k: string]: string;
|
|
2184
2401
|
}, Record<string, string>>>;
|
|
2185
|
-
}, z.core.$strict
|
|
2402
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2403
|
+
kind: z.ZodLiteral<"text">;
|
|
2404
|
+
value: z.ZodString;
|
|
2405
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2406
|
+
kind: z.ZodLiteral<"url">;
|
|
2407
|
+
value: z.ZodString;
|
|
2408
|
+
}, z.core.$strict>]>>;
|
|
2186
2409
|
status: z.ZodEnum<{
|
|
2410
|
+
failed: "failed";
|
|
2187
2411
|
queued: "queued";
|
|
2188
2412
|
evaluating: "evaluating";
|
|
2189
2413
|
accepted: "accepted";
|
|
2190
2414
|
progressed: "progressed";
|
|
2191
2415
|
rejected: "rejected";
|
|
2192
2416
|
"needs-review": "needs-review";
|
|
2193
|
-
failed: "failed";
|
|
2194
2417
|
}>;
|
|
2195
2418
|
reason: z.ZodNullable<z.ZodString>;
|
|
2196
2419
|
retries: z.ZodNumber;
|
|
@@ -2228,14 +2451,16 @@ declare const questExperienceSchema: z.ZodObject<{
|
|
|
2228
2451
|
release: z.ZodString;
|
|
2229
2452
|
interaction: z.ZodEnum<{
|
|
2230
2453
|
staff: "staff";
|
|
2454
|
+
url: "url";
|
|
2455
|
+
text: "text";
|
|
2231
2456
|
quiz: "quiz";
|
|
2232
2457
|
photo: "photo";
|
|
2233
2458
|
automatic: "automatic";
|
|
2234
2459
|
claim: "claim";
|
|
2235
2460
|
}>;
|
|
2236
2461
|
lifecycle: z.ZodEnum<{
|
|
2237
|
-
active: "active";
|
|
2238
2462
|
paused: "paused";
|
|
2463
|
+
active: "active";
|
|
2239
2464
|
archived: "archived";
|
|
2240
2465
|
}>;
|
|
2241
2466
|
rewards: z.ZodArray<z.ZodObject<{
|
|
@@ -2277,6 +2502,29 @@ declare const questExperienceSchema: z.ZodObject<{
|
|
|
2277
2502
|
x: "x";
|
|
2278
2503
|
}>>>;
|
|
2279
2504
|
trigger: z.ZodUnion<readonly [z.ZodObject<{
|
|
2505
|
+
kind: z.ZodLiteral<"manual">;
|
|
2506
|
+
input: z.ZodLiteral<"text">;
|
|
2507
|
+
constraints: z.ZodObject<{
|
|
2508
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
2509
|
+
minLength: z.ZodDefault<z.ZodNumber>;
|
|
2510
|
+
maxLength: z.ZodDefault<z.ZodNumber>;
|
|
2511
|
+
}, z.core.$strict>;
|
|
2512
|
+
actor: z.ZodOptional<z.ZodEnum<{
|
|
2513
|
+
member: "member";
|
|
2514
|
+
staff: "staff";
|
|
2515
|
+
}>>;
|
|
2516
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2517
|
+
kind: z.ZodLiteral<"manual">;
|
|
2518
|
+
input: z.ZodLiteral<"url">;
|
|
2519
|
+
constraints: z.ZodObject<{
|
|
2520
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
2521
|
+
allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2522
|
+
}, z.core.$strict>;
|
|
2523
|
+
actor: z.ZodOptional<z.ZodEnum<{
|
|
2524
|
+
member: "member";
|
|
2525
|
+
staff: "staff";
|
|
2526
|
+
}>>;
|
|
2527
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2280
2528
|
kind: z.ZodLiteral<"manual">;
|
|
2281
2529
|
input: z.ZodEnum<{
|
|
2282
2530
|
quiz: "quiz";
|
|
@@ -2297,6 +2545,8 @@ declare const questExperienceSchema: z.ZodObject<{
|
|
|
2297
2545
|
availability: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2298
2546
|
kind: z.ZodLiteral<"available">;
|
|
2299
2547
|
input: z.ZodEnum<{
|
|
2548
|
+
url: "url";
|
|
2549
|
+
text: "text";
|
|
2300
2550
|
quiz: "quiz";
|
|
2301
2551
|
photo: "photo";
|
|
2302
2552
|
none: "none";
|
|
@@ -2382,21 +2632,27 @@ declare const questExperienceSchema: z.ZodObject<{
|
|
|
2382
2632
|
quest: z.ZodString;
|
|
2383
2633
|
member: z.ZodString;
|
|
2384
2634
|
evidence: z.ZodNullable<z.ZodString>;
|
|
2385
|
-
input: z.ZodOptional<z.ZodObject<{
|
|
2635
|
+
input: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
2386
2636
|
kind: z.ZodLiteral<"quiz">;
|
|
2387
2637
|
release: z.ZodOptional<z.ZodString>;
|
|
2388
2638
|
answers: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<{
|
|
2389
2639
|
[k: string]: string;
|
|
2390
2640
|
}, Record<string, string>>>;
|
|
2391
|
-
}, z.core.$strict
|
|
2641
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2642
|
+
kind: z.ZodLiteral<"text">;
|
|
2643
|
+
value: z.ZodString;
|
|
2644
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2645
|
+
kind: z.ZodLiteral<"url">;
|
|
2646
|
+
value: z.ZodString;
|
|
2647
|
+
}, z.core.$strict>]>>;
|
|
2392
2648
|
status: z.ZodEnum<{
|
|
2649
|
+
failed: "failed";
|
|
2393
2650
|
queued: "queued";
|
|
2394
2651
|
evaluating: "evaluating";
|
|
2395
2652
|
accepted: "accepted";
|
|
2396
2653
|
progressed: "progressed";
|
|
2397
2654
|
rejected: "rejected";
|
|
2398
2655
|
"needs-review": "needs-review";
|
|
2399
|
-
failed: "failed";
|
|
2400
2656
|
}>;
|
|
2401
2657
|
reason: z.ZodNullable<z.ZodString>;
|
|
2402
2658
|
retries: z.ZodNumber;
|
|
@@ -2434,14 +2690,16 @@ declare const questExperienceSchema: z.ZodObject<{
|
|
|
2434
2690
|
release: z.ZodString;
|
|
2435
2691
|
interaction: z.ZodEnum<{
|
|
2436
2692
|
staff: "staff";
|
|
2693
|
+
url: "url";
|
|
2694
|
+
text: "text";
|
|
2437
2695
|
quiz: "quiz";
|
|
2438
2696
|
photo: "photo";
|
|
2439
2697
|
automatic: "automatic";
|
|
2440
2698
|
claim: "claim";
|
|
2441
2699
|
}>;
|
|
2442
2700
|
lifecycle: z.ZodEnum<{
|
|
2443
|
-
active: "active";
|
|
2444
2701
|
paused: "paused";
|
|
2702
|
+
active: "active";
|
|
2445
2703
|
archived: "archived";
|
|
2446
2704
|
}>;
|
|
2447
2705
|
rewards: z.ZodArray<z.ZodObject<{
|
|
@@ -2475,8 +2733,8 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
|
|
|
2475
2733
|
}, z.core.$strict>>]>>;
|
|
2476
2734
|
requires: z.ZodArray<z.ZodString>;
|
|
2477
2735
|
status: z.ZodEnum<{
|
|
2478
|
-
active: "active";
|
|
2479
2736
|
paused: "paused";
|
|
2737
|
+
active: "active";
|
|
2480
2738
|
archived: "archived";
|
|
2481
2739
|
}>;
|
|
2482
2740
|
expectedRelease: z.ZodNullable<z.ZodString>;
|
|
@@ -2509,8 +2767,8 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
|
|
|
2509
2767
|
}, z.core.$strict>>]>>;
|
|
2510
2768
|
requires: z.ZodArray<z.ZodString>;
|
|
2511
2769
|
status: z.ZodEnum<{
|
|
2512
|
-
active: "active";
|
|
2513
2770
|
paused: "paused";
|
|
2771
|
+
active: "active";
|
|
2514
2772
|
archived: "archived";
|
|
2515
2773
|
}>;
|
|
2516
2774
|
expectedRelease: z.ZodNullable<z.ZodString>;
|
|
@@ -2660,6 +2918,29 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
|
|
|
2660
2918
|
}, z.core.$strict>]>>;
|
|
2661
2919
|
humanReview: z.ZodBoolean;
|
|
2662
2920
|
trigger: z.ZodUnion<readonly [z.ZodObject<{
|
|
2921
|
+
kind: z.ZodLiteral<"manual">;
|
|
2922
|
+
input: z.ZodLiteral<"text">;
|
|
2923
|
+
constraints: z.ZodObject<{
|
|
2924
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
2925
|
+
minLength: z.ZodDefault<z.ZodNumber>;
|
|
2926
|
+
maxLength: z.ZodDefault<z.ZodNumber>;
|
|
2927
|
+
}, z.core.$strict>;
|
|
2928
|
+
actor: z.ZodOptional<z.ZodEnum<{
|
|
2929
|
+
member: "member";
|
|
2930
|
+
staff: "staff";
|
|
2931
|
+
}>>;
|
|
2932
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2933
|
+
kind: z.ZodLiteral<"manual">;
|
|
2934
|
+
input: z.ZodLiteral<"url">;
|
|
2935
|
+
constraints: z.ZodObject<{
|
|
2936
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
2937
|
+
allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2938
|
+
}, z.core.$strict>;
|
|
2939
|
+
actor: z.ZodOptional<z.ZodEnum<{
|
|
2940
|
+
member: "member";
|
|
2941
|
+
staff: "staff";
|
|
2942
|
+
}>>;
|
|
2943
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2663
2944
|
kind: z.ZodLiteral<"manual">;
|
|
2664
2945
|
input: z.ZodEnum<{
|
|
2665
2946
|
quiz: "quiz";
|
|
@@ -2725,8 +3006,8 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
|
|
|
2725
3006
|
typeVersion: z.ZodString;
|
|
2726
3007
|
}, z.core.$strict>>;
|
|
2727
3008
|
lifecycle: z.ZodDefault<z.ZodEnum<{
|
|
2728
|
-
active: "active";
|
|
2729
3009
|
paused: "paused";
|
|
3010
|
+
active: "active";
|
|
2730
3011
|
archived: "archived";
|
|
2731
3012
|
}>>;
|
|
2732
3013
|
configuration: z.ZodOptional<z.ZodObject<{
|
|
@@ -2831,12 +3112,12 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
|
|
|
2831
3112
|
kind: "resource";
|
|
2832
3113
|
default: string;
|
|
2833
3114
|
source: {
|
|
2834
|
-
provider: "domino";
|
|
2835
|
-
resource: "point-ledger";
|
|
2836
|
-
} | {
|
|
2837
3115
|
provider: "discord";
|
|
2838
3116
|
resource: "channel";
|
|
2839
3117
|
types: ("text" | "announcement")[];
|
|
3118
|
+
} | {
|
|
3119
|
+
provider: "domino";
|
|
3120
|
+
resource: "point-ledger";
|
|
2840
3121
|
} | {
|
|
2841
3122
|
provider: "discord";
|
|
2842
3123
|
resource: "role";
|
|
@@ -2922,6 +3203,23 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
|
|
|
2922
3203
|
})[];
|
|
2923
3204
|
humanReview: boolean;
|
|
2924
3205
|
trigger: {
|
|
3206
|
+
kind: "manual";
|
|
3207
|
+
input: "text";
|
|
3208
|
+
constraints: {
|
|
3209
|
+
required: boolean;
|
|
3210
|
+
minLength: number;
|
|
3211
|
+
maxLength: number;
|
|
3212
|
+
};
|
|
3213
|
+
actor?: "member" | "staff" | undefined;
|
|
3214
|
+
} | {
|
|
3215
|
+
kind: "manual";
|
|
3216
|
+
input: "url";
|
|
3217
|
+
constraints: {
|
|
3218
|
+
required: boolean;
|
|
3219
|
+
allowedHosts?: string[] | undefined;
|
|
3220
|
+
};
|
|
3221
|
+
actor?: "member" | "staff" | undefined;
|
|
3222
|
+
} | {
|
|
2925
3223
|
kind: "manual";
|
|
2926
3224
|
input: "quiz" | "photo" | "none";
|
|
2927
3225
|
actor?: "member" | "staff" | undefined;
|
|
@@ -2960,7 +3258,7 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
|
|
|
2960
3258
|
id: string;
|
|
2961
3259
|
createdAt: number;
|
|
2962
3260
|
legacy: boolean;
|
|
2963
|
-
lifecycle: "
|
|
3261
|
+
lifecycle: "paused" | "active" | "archived";
|
|
2964
3262
|
key?: string | undefined;
|
|
2965
3263
|
origin?: {
|
|
2966
3264
|
typeVersion: string;
|
|
@@ -3056,6 +3354,9 @@ type ActiveController = {
|
|
|
3056
3354
|
discard(): Promise<void>;
|
|
3057
3355
|
};
|
|
3058
3356
|
type QuestController = (ActiveController & {
|
|
3357
|
+
kind: "text" | "url";
|
|
3358
|
+
submit(value: string): Promise<QuestActionResult>;
|
|
3359
|
+
}) | (ActiveController & {
|
|
3059
3360
|
kind: "status";
|
|
3060
3361
|
}) | (ActiveController & {
|
|
3061
3362
|
kind: "photo";
|
|
@@ -3099,9 +3400,9 @@ declare const rewardDeliverySchema: z.ZodObject<{
|
|
|
3099
3400
|
action: z.ZodLiteral<"grant-role">;
|
|
3100
3401
|
roleId: z.ZodString;
|
|
3101
3402
|
status: z.ZodEnum<{
|
|
3102
|
-
failed: "failed";
|
|
3103
3403
|
pending: "pending";
|
|
3104
3404
|
delivered: "delivered";
|
|
3405
|
+
failed: "failed";
|
|
3105
3406
|
}>;
|
|
3106
3407
|
attempts: z.ZodNumber;
|
|
3107
3408
|
nextAt: z.ZodNumber;
|
|
@@ -3119,9 +3420,9 @@ declare const rewardDeliveriesSchema: z.ZodObject<{
|
|
|
3119
3420
|
action: z.ZodLiteral<"grant-role">;
|
|
3120
3421
|
roleId: z.ZodString;
|
|
3121
3422
|
status: z.ZodEnum<{
|
|
3122
|
-
failed: "failed";
|
|
3123
3423
|
pending: "pending";
|
|
3124
3424
|
delivered: "delivered";
|
|
3425
|
+
failed: "failed";
|
|
3125
3426
|
}>;
|
|
3126
3427
|
attempts: z.ZodNumber;
|
|
3127
3428
|
nextAt: z.ZodNumber;
|
|
@@ -3267,6 +3568,12 @@ declare function questConfiguration(release: PublishedRelease): {
|
|
|
3267
3568
|
|
|
3268
3569
|
/** Non-quest resources in the private hosted-build catalog artifact. */
|
|
3269
3570
|
declare const projectCatalogArtifactSchema: z.ZodObject<{
|
|
3571
|
+
types: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3572
|
+
code: z.ZodString;
|
|
3573
|
+
provider: z.ZodEnum<{
|
|
3574
|
+
"workers-ai": "workers-ai";
|
|
3575
|
+
}>;
|
|
3576
|
+
}, z.core.$strip>>>;
|
|
3270
3577
|
collections: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
3271
3578
|
title: z.ZodString;
|
|
3272
3579
|
key: z.ZodOptional<z.ZodString>;
|
|
@@ -3275,21 +3582,17 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
|
|
|
3275
3582
|
title: string;
|
|
3276
3583
|
key?: string | undefined;
|
|
3277
3584
|
id?: string | undefined;
|
|
3278
|
-
}, "
|
|
3585
|
+
}, "id" | "key"> & {
|
|
3279
3586
|
key: string;
|
|
3280
3587
|
}, {
|
|
3281
3588
|
title: string;
|
|
3282
3589
|
key?: string | undefined;
|
|
3283
3590
|
id?: string | undefined;
|
|
3284
3591
|
}>>>>;
|
|
3285
|
-
types: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3286
|
-
code: z.ZodString;
|
|
3287
|
-
provider: z.ZodEnum<{
|
|
3288
|
-
"workers-ai": "workers-ai";
|
|
3289
|
-
}>;
|
|
3290
|
-
}, z.core.$strip>>>;
|
|
3291
3592
|
supportedInteractions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
3292
3593
|
staff: "staff";
|
|
3594
|
+
url: "url";
|
|
3595
|
+
text: "text";
|
|
3293
3596
|
quiz: "quiz";
|
|
3294
3597
|
photo: "photo";
|
|
3295
3598
|
automatic: "automatic";
|
|
@@ -3509,7 +3812,7 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
|
|
|
3509
3812
|
inviterGroup?: string | undefined;
|
|
3510
3813
|
key?: string | undefined;
|
|
3511
3814
|
id?: string | undefined;
|
|
3512
|
-
}, "
|
|
3815
|
+
}, "id" | "key"> & {
|
|
3513
3816
|
key: string;
|
|
3514
3817
|
}, {
|
|
3515
3818
|
title: string;
|
|
@@ -3612,6 +3915,7 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
|
|
|
3612
3915
|
leaderboards: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
3613
3916
|
title: z.ZodString;
|
|
3614
3917
|
balance: z.ZodString;
|
|
3918
|
+
group: z.ZodOptional<z.ZodString>;
|
|
3615
3919
|
score: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3616
3920
|
kind: z.ZodLiteral<"balance">;
|
|
3617
3921
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -3660,7 +3964,6 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
|
|
|
3660
3964
|
participants: "participants";
|
|
3661
3965
|
public: "public";
|
|
3662
3966
|
}>>;
|
|
3663
|
-
group: z.ZodOptional<z.ZodString>;
|
|
3664
3967
|
key: z.ZodOptional<z.ZodString>;
|
|
3665
3968
|
id: z.ZodOptional<z.ZodString>;
|
|
3666
3969
|
}, z.core.$strict>, z.ZodTransform<Omit<{
|
|
@@ -3706,7 +4009,7 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
|
|
|
3706
4009
|
group?: string | undefined;
|
|
3707
4010
|
key?: string | undefined;
|
|
3708
4011
|
id?: string | undefined;
|
|
3709
|
-
}, "
|
|
4012
|
+
}, "id" | "key"> & {
|
|
3710
4013
|
key: string;
|
|
3711
4014
|
}, {
|
|
3712
4015
|
title: string;
|
|
@@ -3757,6 +4060,12 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
|
|
|
3757
4060
|
}, z.core.$strict>;
|
|
3758
4061
|
/** One manifest bundle. Missing entries never delete remotely owned resources. */
|
|
3759
4062
|
declare const projectDeploymentSchema: z.ZodObject<{
|
|
4063
|
+
types: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4064
|
+
code: z.ZodString;
|
|
4065
|
+
provider: z.ZodEnum<{
|
|
4066
|
+
"workers-ai": "workers-ai";
|
|
4067
|
+
}>;
|
|
4068
|
+
}, z.core.$strip>>>;
|
|
3760
4069
|
collections: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
3761
4070
|
title: z.ZodString;
|
|
3762
4071
|
key: z.ZodOptional<z.ZodString>;
|
|
@@ -3765,21 +4074,17 @@ declare const projectDeploymentSchema: z.ZodObject<{
|
|
|
3765
4074
|
title: string;
|
|
3766
4075
|
key?: string | undefined;
|
|
3767
4076
|
id?: string | undefined;
|
|
3768
|
-
}, "
|
|
4077
|
+
}, "id" | "key"> & {
|
|
3769
4078
|
key: string;
|
|
3770
4079
|
}, {
|
|
3771
4080
|
title: string;
|
|
3772
4081
|
key?: string | undefined;
|
|
3773
4082
|
id?: string | undefined;
|
|
3774
4083
|
}>>>>;
|
|
3775
|
-
types: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3776
|
-
code: z.ZodString;
|
|
3777
|
-
provider: z.ZodEnum<{
|
|
3778
|
-
"workers-ai": "workers-ai";
|
|
3779
|
-
}>;
|
|
3780
|
-
}, z.core.$strip>>>;
|
|
3781
4084
|
supportedInteractions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
3782
4085
|
staff: "staff";
|
|
4086
|
+
url: "url";
|
|
4087
|
+
text: "text";
|
|
3783
4088
|
quiz: "quiz";
|
|
3784
4089
|
photo: "photo";
|
|
3785
4090
|
automatic: "automatic";
|
|
@@ -3999,7 +4304,7 @@ declare const projectDeploymentSchema: z.ZodObject<{
|
|
|
3999
4304
|
inviterGroup?: string | undefined;
|
|
4000
4305
|
key?: string | undefined;
|
|
4001
4306
|
id?: string | undefined;
|
|
4002
|
-
}, "
|
|
4307
|
+
}, "id" | "key"> & {
|
|
4003
4308
|
key: string;
|
|
4004
4309
|
}, {
|
|
4005
4310
|
title: string;
|
|
@@ -4102,6 +4407,7 @@ declare const projectDeploymentSchema: z.ZodObject<{
|
|
|
4102
4407
|
leaderboards: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
4103
4408
|
title: z.ZodString;
|
|
4104
4409
|
balance: z.ZodString;
|
|
4410
|
+
group: z.ZodOptional<z.ZodString>;
|
|
4105
4411
|
score: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4106
4412
|
kind: z.ZodLiteral<"balance">;
|
|
4107
4413
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -4150,7 +4456,6 @@ declare const projectDeploymentSchema: z.ZodObject<{
|
|
|
4150
4456
|
participants: "participants";
|
|
4151
4457
|
public: "public";
|
|
4152
4458
|
}>>;
|
|
4153
|
-
group: z.ZodOptional<z.ZodString>;
|
|
4154
4459
|
key: z.ZodOptional<z.ZodString>;
|
|
4155
4460
|
id: z.ZodOptional<z.ZodString>;
|
|
4156
4461
|
}, z.core.$strict>, z.ZodTransform<Omit<{
|
|
@@ -4196,7 +4501,7 @@ declare const projectDeploymentSchema: z.ZodObject<{
|
|
|
4196
4501
|
group?: string | undefined;
|
|
4197
4502
|
key?: string | undefined;
|
|
4198
4503
|
id?: string | undefined;
|
|
4199
|
-
}, "
|
|
4504
|
+
}, "id" | "key"> & {
|
|
4200
4505
|
key: string;
|
|
4201
4506
|
}, {
|
|
4202
4507
|
title: string;
|
|
@@ -4421,13 +4726,36 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
4421
4726
|
}, z.core.$strict>;
|
|
4422
4727
|
tier: z.ZodString;
|
|
4423
4728
|
}, z.core.$strict>, z.ZodObject<{
|
|
4424
|
-
kind: z.ZodLiteral<"integration">;
|
|
4425
|
-
provider: z.ZodLiteral<"discord">;
|
|
4426
|
-
action: z.ZodLiteral<"grant-role">;
|
|
4427
|
-
roleId: z.ZodString;
|
|
4428
|
-
}, z.core.$strict>]>>;
|
|
4429
|
-
humanReview: z.ZodBoolean;
|
|
4430
|
-
trigger: z.ZodUnion<readonly [z.ZodObject<{
|
|
4729
|
+
kind: z.ZodLiteral<"integration">;
|
|
4730
|
+
provider: z.ZodLiteral<"discord">;
|
|
4731
|
+
action: z.ZodLiteral<"grant-role">;
|
|
4732
|
+
roleId: z.ZodString;
|
|
4733
|
+
}, z.core.$strict>]>>;
|
|
4734
|
+
humanReview: z.ZodBoolean;
|
|
4735
|
+
trigger: z.ZodUnion<readonly [z.ZodObject<{
|
|
4736
|
+
kind: z.ZodLiteral<"manual">;
|
|
4737
|
+
input: z.ZodLiteral<"text">;
|
|
4738
|
+
constraints: z.ZodObject<{
|
|
4739
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
4740
|
+
minLength: z.ZodDefault<z.ZodNumber>;
|
|
4741
|
+
maxLength: z.ZodDefault<z.ZodNumber>;
|
|
4742
|
+
}, z.core.$strict>;
|
|
4743
|
+
actor: z.ZodOptional<z.ZodEnum<{
|
|
4744
|
+
member: "member";
|
|
4745
|
+
staff: "staff";
|
|
4746
|
+
}>>;
|
|
4747
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4748
|
+
kind: z.ZodLiteral<"manual">;
|
|
4749
|
+
input: z.ZodLiteral<"url">;
|
|
4750
|
+
constraints: z.ZodObject<{
|
|
4751
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
4752
|
+
allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4753
|
+
}, z.core.$strict>;
|
|
4754
|
+
actor: z.ZodOptional<z.ZodEnum<{
|
|
4755
|
+
member: "member";
|
|
4756
|
+
staff: "staff";
|
|
4757
|
+
}>>;
|
|
4758
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4431
4759
|
kind: z.ZodLiteral<"manual">;
|
|
4432
4760
|
input: z.ZodEnum<{
|
|
4433
4761
|
quiz: "quiz";
|
|
@@ -4493,8 +4821,8 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
4493
4821
|
typeVersion: z.ZodString;
|
|
4494
4822
|
}, z.core.$strict>>;
|
|
4495
4823
|
lifecycle: z.ZodDefault<z.ZodEnum<{
|
|
4496
|
-
active: "active";
|
|
4497
4824
|
paused: "paused";
|
|
4825
|
+
active: "active";
|
|
4498
4826
|
archived: "archived";
|
|
4499
4827
|
}>>;
|
|
4500
4828
|
configuration: z.ZodOptional<z.ZodObject<{
|
|
@@ -4599,12 +4927,12 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
4599
4927
|
kind: "resource";
|
|
4600
4928
|
default: string;
|
|
4601
4929
|
source: {
|
|
4602
|
-
provider: "domino";
|
|
4603
|
-
resource: "point-ledger";
|
|
4604
|
-
} | {
|
|
4605
4930
|
provider: "discord";
|
|
4606
4931
|
resource: "channel";
|
|
4607
4932
|
types: ("text" | "announcement")[];
|
|
4933
|
+
} | {
|
|
4934
|
+
provider: "domino";
|
|
4935
|
+
resource: "point-ledger";
|
|
4608
4936
|
} | {
|
|
4609
4937
|
provider: "discord";
|
|
4610
4938
|
resource: "role";
|
|
@@ -4690,6 +5018,23 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
4690
5018
|
})[];
|
|
4691
5019
|
humanReview: boolean;
|
|
4692
5020
|
trigger: {
|
|
5021
|
+
kind: "manual";
|
|
5022
|
+
input: "text";
|
|
5023
|
+
constraints: {
|
|
5024
|
+
required: boolean;
|
|
5025
|
+
minLength: number;
|
|
5026
|
+
maxLength: number;
|
|
5027
|
+
};
|
|
5028
|
+
actor?: "member" | "staff" | undefined;
|
|
5029
|
+
} | {
|
|
5030
|
+
kind: "manual";
|
|
5031
|
+
input: "url";
|
|
5032
|
+
constraints: {
|
|
5033
|
+
required: boolean;
|
|
5034
|
+
allowedHosts?: string[] | undefined;
|
|
5035
|
+
};
|
|
5036
|
+
actor?: "member" | "staff" | undefined;
|
|
5037
|
+
} | {
|
|
4693
5038
|
kind: "manual";
|
|
4694
5039
|
input: "quiz" | "photo" | "none";
|
|
4695
5040
|
actor?: "member" | "staff" | undefined;
|
|
@@ -4728,7 +5073,7 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
4728
5073
|
id: string;
|
|
4729
5074
|
createdAt: number;
|
|
4730
5075
|
legacy: boolean;
|
|
4731
|
-
lifecycle: "
|
|
5076
|
+
lifecycle: "paused" | "active" | "archived";
|
|
4732
5077
|
key?: string | undefined;
|
|
4733
5078
|
origin?: {
|
|
4734
5079
|
typeVersion: string;
|
|
@@ -4931,6 +5276,29 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
4931
5276
|
}, z.core.$strict>]>>;
|
|
4932
5277
|
humanReview: z.ZodBoolean;
|
|
4933
5278
|
trigger: z.ZodUnion<readonly [z.ZodObject<{
|
|
5279
|
+
kind: z.ZodLiteral<"manual">;
|
|
5280
|
+
input: z.ZodLiteral<"text">;
|
|
5281
|
+
constraints: z.ZodObject<{
|
|
5282
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
5283
|
+
minLength: z.ZodDefault<z.ZodNumber>;
|
|
5284
|
+
maxLength: z.ZodDefault<z.ZodNumber>;
|
|
5285
|
+
}, z.core.$strict>;
|
|
5286
|
+
actor: z.ZodOptional<z.ZodEnum<{
|
|
5287
|
+
member: "member";
|
|
5288
|
+
staff: "staff";
|
|
5289
|
+
}>>;
|
|
5290
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
5291
|
+
kind: z.ZodLiteral<"manual">;
|
|
5292
|
+
input: z.ZodLiteral<"url">;
|
|
5293
|
+
constraints: z.ZodObject<{
|
|
5294
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
5295
|
+
allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5296
|
+
}, z.core.$strict>;
|
|
5297
|
+
actor: z.ZodOptional<z.ZodEnum<{
|
|
5298
|
+
member: "member";
|
|
5299
|
+
staff: "staff";
|
|
5300
|
+
}>>;
|
|
5301
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4934
5302
|
kind: z.ZodLiteral<"manual">;
|
|
4935
5303
|
input: z.ZodEnum<{
|
|
4936
5304
|
quiz: "quiz";
|
|
@@ -4998,6 +5366,8 @@ declare const deploymentPreviewSchema: z.ZodObject<{
|
|
|
4998
5366
|
}, z.core.$strict>>;
|
|
4999
5367
|
supportedInteractions: z.ZodArray<z.ZodEnum<{
|
|
5000
5368
|
staff: "staff";
|
|
5369
|
+
url: "url";
|
|
5370
|
+
text: "text";
|
|
5001
5371
|
quiz: "quiz";
|
|
5002
5372
|
photo: "photo";
|
|
5003
5373
|
automatic: "automatic";
|
|
@@ -5414,6 +5784,29 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
5414
5784
|
}, z.core.$strict>]>>;
|
|
5415
5785
|
humanReview: z.ZodBoolean;
|
|
5416
5786
|
trigger: z.ZodUnion<readonly [z.ZodObject<{
|
|
5787
|
+
kind: z.ZodLiteral<"manual">;
|
|
5788
|
+
input: z.ZodLiteral<"text">;
|
|
5789
|
+
constraints: z.ZodObject<{
|
|
5790
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
5791
|
+
minLength: z.ZodDefault<z.ZodNumber>;
|
|
5792
|
+
maxLength: z.ZodDefault<z.ZodNumber>;
|
|
5793
|
+
}, z.core.$strict>;
|
|
5794
|
+
actor: z.ZodOptional<z.ZodEnum<{
|
|
5795
|
+
member: "member";
|
|
5796
|
+
staff: "staff";
|
|
5797
|
+
}>>;
|
|
5798
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
5799
|
+
kind: z.ZodLiteral<"manual">;
|
|
5800
|
+
input: z.ZodLiteral<"url">;
|
|
5801
|
+
constraints: z.ZodObject<{
|
|
5802
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
5803
|
+
allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5804
|
+
}, z.core.$strict>;
|
|
5805
|
+
actor: z.ZodOptional<z.ZodEnum<{
|
|
5806
|
+
member: "member";
|
|
5807
|
+
staff: "staff";
|
|
5808
|
+
}>>;
|
|
5809
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
5417
5810
|
kind: z.ZodLiteral<"manual">;
|
|
5418
5811
|
input: z.ZodEnum<{
|
|
5419
5812
|
quiz: "quiz";
|
|
@@ -5479,8 +5872,8 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
5479
5872
|
typeVersion: z.ZodString;
|
|
5480
5873
|
}, z.core.$strict>>;
|
|
5481
5874
|
lifecycle: z.ZodDefault<z.ZodEnum<{
|
|
5482
|
-
active: "active";
|
|
5483
5875
|
paused: "paused";
|
|
5876
|
+
active: "active";
|
|
5484
5877
|
archived: "archived";
|
|
5485
5878
|
}>>;
|
|
5486
5879
|
configuration: z.ZodOptional<z.ZodObject<{
|
|
@@ -5585,12 +5978,12 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
5585
5978
|
kind: "resource";
|
|
5586
5979
|
default: string;
|
|
5587
5980
|
source: {
|
|
5588
|
-
provider: "domino";
|
|
5589
|
-
resource: "point-ledger";
|
|
5590
|
-
} | {
|
|
5591
5981
|
provider: "discord";
|
|
5592
5982
|
resource: "channel";
|
|
5593
5983
|
types: ("text" | "announcement")[];
|
|
5984
|
+
} | {
|
|
5985
|
+
provider: "domino";
|
|
5986
|
+
resource: "point-ledger";
|
|
5594
5987
|
} | {
|
|
5595
5988
|
provider: "discord";
|
|
5596
5989
|
resource: "role";
|
|
@@ -5676,6 +6069,23 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
5676
6069
|
})[];
|
|
5677
6070
|
humanReview: boolean;
|
|
5678
6071
|
trigger: {
|
|
6072
|
+
kind: "manual";
|
|
6073
|
+
input: "text";
|
|
6074
|
+
constraints: {
|
|
6075
|
+
required: boolean;
|
|
6076
|
+
minLength: number;
|
|
6077
|
+
maxLength: number;
|
|
6078
|
+
};
|
|
6079
|
+
actor?: "member" | "staff" | undefined;
|
|
6080
|
+
} | {
|
|
6081
|
+
kind: "manual";
|
|
6082
|
+
input: "url";
|
|
6083
|
+
constraints: {
|
|
6084
|
+
required: boolean;
|
|
6085
|
+
allowedHosts?: string[] | undefined;
|
|
6086
|
+
};
|
|
6087
|
+
actor?: "member" | "staff" | undefined;
|
|
6088
|
+
} | {
|
|
5679
6089
|
kind: "manual";
|
|
5680
6090
|
input: "quiz" | "photo" | "none";
|
|
5681
6091
|
actor?: "member" | "staff" | undefined;
|
|
@@ -5714,7 +6124,7 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
5714
6124
|
id: string;
|
|
5715
6125
|
createdAt: number;
|
|
5716
6126
|
legacy: boolean;
|
|
5717
|
-
lifecycle: "
|
|
6127
|
+
lifecycle: "paused" | "active" | "archived";
|
|
5718
6128
|
key?: string | undefined;
|
|
5719
6129
|
origin?: {
|
|
5720
6130
|
typeVersion: string;
|
|
@@ -5917,6 +6327,29 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
5917
6327
|
}, z.core.$strict>]>>;
|
|
5918
6328
|
humanReview: z.ZodBoolean;
|
|
5919
6329
|
trigger: z.ZodUnion<readonly [z.ZodObject<{
|
|
6330
|
+
kind: z.ZodLiteral<"manual">;
|
|
6331
|
+
input: z.ZodLiteral<"text">;
|
|
6332
|
+
constraints: z.ZodObject<{
|
|
6333
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
6334
|
+
minLength: z.ZodDefault<z.ZodNumber>;
|
|
6335
|
+
maxLength: z.ZodDefault<z.ZodNumber>;
|
|
6336
|
+
}, z.core.$strict>;
|
|
6337
|
+
actor: z.ZodOptional<z.ZodEnum<{
|
|
6338
|
+
member: "member";
|
|
6339
|
+
staff: "staff";
|
|
6340
|
+
}>>;
|
|
6341
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
6342
|
+
kind: z.ZodLiteral<"manual">;
|
|
6343
|
+
input: z.ZodLiteral<"url">;
|
|
6344
|
+
constraints: z.ZodObject<{
|
|
6345
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
6346
|
+
allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6347
|
+
}, z.core.$strict>;
|
|
6348
|
+
actor: z.ZodOptional<z.ZodEnum<{
|
|
6349
|
+
member: "member";
|
|
6350
|
+
staff: "staff";
|
|
6351
|
+
}>>;
|
|
6352
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
5920
6353
|
kind: z.ZodLiteral<"manual">;
|
|
5921
6354
|
input: z.ZodEnum<{
|
|
5922
6355
|
quiz: "quiz";
|
|
@@ -5984,6 +6417,8 @@ declare const deploymentResultSchema: z.ZodObject<{
|
|
|
5984
6417
|
}, z.core.$strict>>;
|
|
5985
6418
|
supportedInteractions: z.ZodArray<z.ZodEnum<{
|
|
5986
6419
|
staff: "staff";
|
|
6420
|
+
url: "url";
|
|
6421
|
+
text: "text";
|
|
5987
6422
|
quiz: "quiz";
|
|
5988
6423
|
photo: "photo";
|
|
5989
6424
|
automatic: "automatic";
|
|
@@ -6483,7 +6918,7 @@ declare function createRelayClient(options: {
|
|
|
6483
6918
|
accounts: {
|
|
6484
6919
|
id: string;
|
|
6485
6920
|
program: string;
|
|
6486
|
-
kind: "
|
|
6921
|
+
kind: "milestone" | "fixed" | "bonus";
|
|
6487
6922
|
balance: string;
|
|
6488
6923
|
earned: number;
|
|
6489
6924
|
settled: number;
|
|
@@ -6612,6 +7047,23 @@ declare function createRelayClient(options: {
|
|
|
6612
7047
|
};
|
|
6613
7048
|
connections: ("discord" | "google" | "apple" | "x")[];
|
|
6614
7049
|
trigger: {
|
|
7050
|
+
kind: "manual";
|
|
7051
|
+
input: "text";
|
|
7052
|
+
constraints: {
|
|
7053
|
+
required: boolean;
|
|
7054
|
+
minLength: number;
|
|
7055
|
+
maxLength: number;
|
|
7056
|
+
};
|
|
7057
|
+
actor?: "member" | "staff" | undefined;
|
|
7058
|
+
} | {
|
|
7059
|
+
kind: "manual";
|
|
7060
|
+
input: "url";
|
|
7061
|
+
constraints: {
|
|
7062
|
+
required: boolean;
|
|
7063
|
+
allowedHosts?: string[] | undefined;
|
|
7064
|
+
};
|
|
7065
|
+
actor?: "member" | "staff" | undefined;
|
|
7066
|
+
} | {
|
|
6615
7067
|
kind: "manual";
|
|
6616
7068
|
input: "quiz" | "photo" | "none";
|
|
6617
7069
|
actor?: "member" | "staff" | undefined;
|
|
@@ -6624,7 +7076,7 @@ declare function createRelayClient(options: {
|
|
|
6624
7076
|
};
|
|
6625
7077
|
availability: {
|
|
6626
7078
|
kind: "available";
|
|
6627
|
-
input: "quiz" | "photo" | "none";
|
|
7079
|
+
input: "url" | "text" | "quiz" | "photo" | "none";
|
|
6628
7080
|
} | {
|
|
6629
7081
|
kind: "completed";
|
|
6630
7082
|
} | {
|
|
@@ -6673,7 +7125,7 @@ declare function createRelayClient(options: {
|
|
|
6673
7125
|
quest: string;
|
|
6674
7126
|
member: string;
|
|
6675
7127
|
evidence: string | null;
|
|
6676
|
-
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review"
|
|
7128
|
+
status: "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review";
|
|
6677
7129
|
reason: string | null;
|
|
6678
7130
|
retries: number;
|
|
6679
7131
|
generation: number;
|
|
@@ -6707,6 +7159,12 @@ declare function createRelayClient(options: {
|
|
|
6707
7159
|
})[] | null;
|
|
6708
7160
|
createdAt: number;
|
|
6709
7161
|
input?: {
|
|
7162
|
+
kind: "text";
|
|
7163
|
+
value: string;
|
|
7164
|
+
} | {
|
|
7165
|
+
kind: "url";
|
|
7166
|
+
value: string;
|
|
7167
|
+
} | {
|
|
6710
7168
|
kind: "quiz";
|
|
6711
7169
|
answers: {
|
|
6712
7170
|
[k: string]: string;
|
|
@@ -6715,8 +7173,8 @@ declare function createRelayClient(options: {
|
|
|
6715
7173
|
} | undefined;
|
|
6716
7174
|
} | null;
|
|
6717
7175
|
release: string;
|
|
6718
|
-
interaction: "staff" | "quiz" | "photo" | "automatic" | "claim";
|
|
6719
|
-
lifecycle: "
|
|
7176
|
+
interaction: "staff" | "url" | "text" | "quiz" | "photo" | "automatic" | "claim";
|
|
7177
|
+
lifecycle: "paused" | "active" | "archived";
|
|
6720
7178
|
rewards: {
|
|
6721
7179
|
label: string;
|
|
6722
7180
|
}[];
|
|
@@ -6758,7 +7216,7 @@ declare function createRelayClient(options: {
|
|
|
6758
7216
|
quest: string;
|
|
6759
7217
|
member: string;
|
|
6760
7218
|
evidence: string | null;
|
|
6761
|
-
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review"
|
|
7219
|
+
status: "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review";
|
|
6762
7220
|
reason: string | null;
|
|
6763
7221
|
retries: number;
|
|
6764
7222
|
generation: number;
|
|
@@ -6792,6 +7250,12 @@ declare function createRelayClient(options: {
|
|
|
6792
7250
|
})[] | null;
|
|
6793
7251
|
createdAt: number;
|
|
6794
7252
|
input?: {
|
|
7253
|
+
kind: "text";
|
|
7254
|
+
value: string;
|
|
7255
|
+
} | {
|
|
7256
|
+
kind: "url";
|
|
7257
|
+
value: string;
|
|
7258
|
+
} | {
|
|
6795
7259
|
kind: "quiz";
|
|
6796
7260
|
answers: {
|
|
6797
7261
|
[k: string]: string;
|
|
@@ -6826,6 +7290,23 @@ declare function createRelayClient(options: {
|
|
|
6826
7290
|
};
|
|
6827
7291
|
connections: ("discord" | "google" | "apple" | "x")[];
|
|
6828
7292
|
trigger: {
|
|
7293
|
+
kind: "manual";
|
|
7294
|
+
input: "text";
|
|
7295
|
+
constraints: {
|
|
7296
|
+
required: boolean;
|
|
7297
|
+
minLength: number;
|
|
7298
|
+
maxLength: number;
|
|
7299
|
+
};
|
|
7300
|
+
actor?: "member" | "staff" | undefined;
|
|
7301
|
+
} | {
|
|
7302
|
+
kind: "manual";
|
|
7303
|
+
input: "url";
|
|
7304
|
+
constraints: {
|
|
7305
|
+
required: boolean;
|
|
7306
|
+
allowedHosts?: string[] | undefined;
|
|
7307
|
+
};
|
|
7308
|
+
actor?: "member" | "staff" | undefined;
|
|
7309
|
+
} | {
|
|
6829
7310
|
kind: "manual";
|
|
6830
7311
|
input: "quiz" | "photo" | "none";
|
|
6831
7312
|
actor?: "member" | "staff" | undefined;
|
|
@@ -6838,7 +7319,7 @@ declare function createRelayClient(options: {
|
|
|
6838
7319
|
};
|
|
6839
7320
|
availability: {
|
|
6840
7321
|
kind: "available";
|
|
6841
|
-
input: "quiz" | "photo" | "none";
|
|
7322
|
+
input: "url" | "text" | "quiz" | "photo" | "none";
|
|
6842
7323
|
} | {
|
|
6843
7324
|
kind: "completed";
|
|
6844
7325
|
} | {
|
|
@@ -6887,7 +7368,7 @@ declare function createRelayClient(options: {
|
|
|
6887
7368
|
quest: string;
|
|
6888
7369
|
member: string;
|
|
6889
7370
|
evidence: string | null;
|
|
6890
|
-
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review"
|
|
7371
|
+
status: "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review";
|
|
6891
7372
|
reason: string | null;
|
|
6892
7373
|
retries: number;
|
|
6893
7374
|
generation: number;
|
|
@@ -6921,6 +7402,12 @@ declare function createRelayClient(options: {
|
|
|
6921
7402
|
})[] | null;
|
|
6922
7403
|
createdAt: number;
|
|
6923
7404
|
input?: {
|
|
7405
|
+
kind: "text";
|
|
7406
|
+
value: string;
|
|
7407
|
+
} | {
|
|
7408
|
+
kind: "url";
|
|
7409
|
+
value: string;
|
|
7410
|
+
} | {
|
|
6924
7411
|
kind: "quiz";
|
|
6925
7412
|
answers: {
|
|
6926
7413
|
[k: string]: string;
|
|
@@ -6929,8 +7416,8 @@ declare function createRelayClient(options: {
|
|
|
6929
7416
|
} | undefined;
|
|
6930
7417
|
} | null;
|
|
6931
7418
|
release: string;
|
|
6932
|
-
interaction: "staff" | "quiz" | "photo" | "automatic" | "claim";
|
|
6933
|
-
lifecycle: "
|
|
7419
|
+
interaction: "staff" | "url" | "text" | "quiz" | "photo" | "automatic" | "claim";
|
|
7420
|
+
lifecycle: "paused" | "active" | "archived";
|
|
6934
7421
|
rewards: {
|
|
6935
7422
|
label: string;
|
|
6936
7423
|
}[];
|
|
@@ -6994,6 +7481,23 @@ declare function createRelayClient(options: {
|
|
|
6994
7481
|
};
|
|
6995
7482
|
connections: ("discord" | "google" | "apple" | "x")[];
|
|
6996
7483
|
trigger: {
|
|
7484
|
+
kind: "manual";
|
|
7485
|
+
input: "text";
|
|
7486
|
+
constraints: {
|
|
7487
|
+
required: boolean;
|
|
7488
|
+
minLength: number;
|
|
7489
|
+
maxLength: number;
|
|
7490
|
+
};
|
|
7491
|
+
actor?: "member" | "staff" | undefined;
|
|
7492
|
+
} | {
|
|
7493
|
+
kind: "manual";
|
|
7494
|
+
input: "url";
|
|
7495
|
+
constraints: {
|
|
7496
|
+
required: boolean;
|
|
7497
|
+
allowedHosts?: string[] | undefined;
|
|
7498
|
+
};
|
|
7499
|
+
actor?: "member" | "staff" | undefined;
|
|
7500
|
+
} | {
|
|
6997
7501
|
kind: "manual";
|
|
6998
7502
|
input: "quiz" | "photo" | "none";
|
|
6999
7503
|
actor?: "member" | "staff" | undefined;
|
|
@@ -7006,7 +7510,7 @@ declare function createRelayClient(options: {
|
|
|
7006
7510
|
};
|
|
7007
7511
|
availability: {
|
|
7008
7512
|
kind: "available";
|
|
7009
|
-
input: "quiz" | "photo" | "none";
|
|
7513
|
+
input: "url" | "text" | "quiz" | "photo" | "none";
|
|
7010
7514
|
} | {
|
|
7011
7515
|
kind: "completed";
|
|
7012
7516
|
} | {
|
|
@@ -7055,7 +7559,7 @@ declare function createRelayClient(options: {
|
|
|
7055
7559
|
quest: string;
|
|
7056
7560
|
member: string;
|
|
7057
7561
|
evidence: string | null;
|
|
7058
|
-
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review"
|
|
7562
|
+
status: "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review";
|
|
7059
7563
|
reason: string | null;
|
|
7060
7564
|
retries: number;
|
|
7061
7565
|
generation: number;
|
|
@@ -7089,6 +7593,12 @@ declare function createRelayClient(options: {
|
|
|
7089
7593
|
})[] | null;
|
|
7090
7594
|
createdAt: number;
|
|
7091
7595
|
input?: {
|
|
7596
|
+
kind: "text";
|
|
7597
|
+
value: string;
|
|
7598
|
+
} | {
|
|
7599
|
+
kind: "url";
|
|
7600
|
+
value: string;
|
|
7601
|
+
} | {
|
|
7092
7602
|
kind: "quiz";
|
|
7093
7603
|
answers: {
|
|
7094
7604
|
[k: string]: string;
|
|
@@ -7097,8 +7607,8 @@ declare function createRelayClient(options: {
|
|
|
7097
7607
|
} | undefined;
|
|
7098
7608
|
} | null;
|
|
7099
7609
|
release: string;
|
|
7100
|
-
interaction: "staff" | "quiz" | "photo" | "automatic" | "claim";
|
|
7101
|
-
lifecycle: "
|
|
7610
|
+
interaction: "staff" | "url" | "text" | "quiz" | "photo" | "automatic" | "claim";
|
|
7611
|
+
lifecycle: "paused" | "active" | "archived";
|
|
7102
7612
|
rewards: {
|
|
7103
7613
|
label: string;
|
|
7104
7614
|
}[];
|
|
@@ -7165,6 +7675,23 @@ declare function createRelayClient(options: {
|
|
|
7165
7675
|
};
|
|
7166
7676
|
connections: ("discord" | "google" | "apple" | "x")[];
|
|
7167
7677
|
trigger: {
|
|
7678
|
+
kind: "manual";
|
|
7679
|
+
input: "text";
|
|
7680
|
+
constraints: {
|
|
7681
|
+
required: boolean;
|
|
7682
|
+
minLength: number;
|
|
7683
|
+
maxLength: number;
|
|
7684
|
+
};
|
|
7685
|
+
actor?: "member" | "staff" | undefined;
|
|
7686
|
+
} | {
|
|
7687
|
+
kind: "manual";
|
|
7688
|
+
input: "url";
|
|
7689
|
+
constraints: {
|
|
7690
|
+
required: boolean;
|
|
7691
|
+
allowedHosts?: string[] | undefined;
|
|
7692
|
+
};
|
|
7693
|
+
actor?: "member" | "staff" | undefined;
|
|
7694
|
+
} | {
|
|
7168
7695
|
kind: "manual";
|
|
7169
7696
|
input: "quiz" | "photo" | "none";
|
|
7170
7697
|
actor?: "member" | "staff" | undefined;
|
|
@@ -7177,7 +7704,7 @@ declare function createRelayClient(options: {
|
|
|
7177
7704
|
};
|
|
7178
7705
|
availability: {
|
|
7179
7706
|
kind: "available";
|
|
7180
|
-
input: "quiz" | "photo" | "none";
|
|
7707
|
+
input: "url" | "text" | "quiz" | "photo" | "none";
|
|
7181
7708
|
} | {
|
|
7182
7709
|
kind: "completed";
|
|
7183
7710
|
} | {
|
|
@@ -7226,7 +7753,7 @@ declare function createRelayClient(options: {
|
|
|
7226
7753
|
quest: string;
|
|
7227
7754
|
member: string;
|
|
7228
7755
|
evidence: string | null;
|
|
7229
|
-
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review"
|
|
7756
|
+
status: "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review";
|
|
7230
7757
|
reason: string | null;
|
|
7231
7758
|
retries: number;
|
|
7232
7759
|
generation: number;
|
|
@@ -7260,6 +7787,12 @@ declare function createRelayClient(options: {
|
|
|
7260
7787
|
})[] | null;
|
|
7261
7788
|
createdAt: number;
|
|
7262
7789
|
input?: {
|
|
7790
|
+
kind: "text";
|
|
7791
|
+
value: string;
|
|
7792
|
+
} | {
|
|
7793
|
+
kind: "url";
|
|
7794
|
+
value: string;
|
|
7795
|
+
} | {
|
|
7263
7796
|
kind: "quiz";
|
|
7264
7797
|
answers: {
|
|
7265
7798
|
[k: string]: string;
|
|
@@ -7268,8 +7801,8 @@ declare function createRelayClient(options: {
|
|
|
7268
7801
|
} | undefined;
|
|
7269
7802
|
} | null;
|
|
7270
7803
|
release: string;
|
|
7271
|
-
interaction: "staff" | "quiz" | "photo" | "automatic" | "claim";
|
|
7272
|
-
lifecycle: "
|
|
7804
|
+
interaction: "staff" | "url" | "text" | "quiz" | "photo" | "automatic" | "claim";
|
|
7805
|
+
lifecycle: "paused" | "active" | "archived";
|
|
7273
7806
|
rewards: {
|
|
7274
7807
|
label: string;
|
|
7275
7808
|
}[];
|
|
@@ -7447,6 +7980,12 @@ declare function createRelayClient(options: {
|
|
|
7447
7980
|
recoverPrevious?: boolean;
|
|
7448
7981
|
repeatable?: boolean;
|
|
7449
7982
|
}): Promise<ClaimSubmission>;
|
|
7983
|
+
(quest: string, options: {
|
|
7984
|
+
input: "text" | "url";
|
|
7985
|
+
release?: string;
|
|
7986
|
+
recoverPrevious?: boolean;
|
|
7987
|
+
repeatable?: boolean;
|
|
7988
|
+
}): Promise<ValueSubmission>;
|
|
7450
7989
|
};
|
|
7451
7990
|
collectionPass: (entitlement: string, session: string) => Promise<{
|
|
7452
7991
|
code: string;
|
|
@@ -7460,7 +7999,7 @@ declare function createRelayClient(options: {
|
|
|
7460
7999
|
quest: string;
|
|
7461
8000
|
member: string;
|
|
7462
8001
|
evidence: string | null;
|
|
7463
|
-
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review"
|
|
8002
|
+
status: "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review";
|
|
7464
8003
|
reason: string | null;
|
|
7465
8004
|
retries: number;
|
|
7466
8005
|
generation: number;
|
|
@@ -7494,6 +8033,12 @@ declare function createRelayClient(options: {
|
|
|
7494
8033
|
})[] | null;
|
|
7495
8034
|
createdAt: number;
|
|
7496
8035
|
input?: {
|
|
8036
|
+
kind: "text";
|
|
8037
|
+
value: string;
|
|
8038
|
+
} | {
|
|
8039
|
+
kind: "url";
|
|
8040
|
+
value: string;
|
|
8041
|
+
} | {
|
|
7497
8042
|
kind: "quiz";
|
|
7498
8043
|
answers: {
|
|
7499
8044
|
[k: string]: string;
|
|
@@ -7528,6 +8073,23 @@ declare function createRelayClient(options: {
|
|
|
7528
8073
|
};
|
|
7529
8074
|
connections: ("discord" | "google" | "apple" | "x")[];
|
|
7530
8075
|
trigger: {
|
|
8076
|
+
kind: "manual";
|
|
8077
|
+
input: "text";
|
|
8078
|
+
constraints: {
|
|
8079
|
+
required: boolean;
|
|
8080
|
+
minLength: number;
|
|
8081
|
+
maxLength: number;
|
|
8082
|
+
};
|
|
8083
|
+
actor?: "member" | "staff" | undefined;
|
|
8084
|
+
} | {
|
|
8085
|
+
kind: "manual";
|
|
8086
|
+
input: "url";
|
|
8087
|
+
constraints: {
|
|
8088
|
+
required: boolean;
|
|
8089
|
+
allowedHosts?: string[] | undefined;
|
|
8090
|
+
};
|
|
8091
|
+
actor?: "member" | "staff" | undefined;
|
|
8092
|
+
} | {
|
|
7531
8093
|
kind: "manual";
|
|
7532
8094
|
input: "quiz" | "photo" | "none";
|
|
7533
8095
|
actor?: "member" | "staff" | undefined;
|
|
@@ -7540,7 +8102,7 @@ declare function createRelayClient(options: {
|
|
|
7540
8102
|
};
|
|
7541
8103
|
availability: {
|
|
7542
8104
|
kind: "available";
|
|
7543
|
-
input: "quiz" | "photo" | "none";
|
|
8105
|
+
input: "url" | "text" | "quiz" | "photo" | "none";
|
|
7544
8106
|
} | {
|
|
7545
8107
|
kind: "completed";
|
|
7546
8108
|
} | {
|
|
@@ -7589,7 +8151,7 @@ declare function createRelayClient(options: {
|
|
|
7589
8151
|
quest: string;
|
|
7590
8152
|
member: string;
|
|
7591
8153
|
evidence: string | null;
|
|
7592
|
-
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review"
|
|
8154
|
+
status: "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review";
|
|
7593
8155
|
reason: string | null;
|
|
7594
8156
|
retries: number;
|
|
7595
8157
|
generation: number;
|
|
@@ -7623,6 +8185,12 @@ declare function createRelayClient(options: {
|
|
|
7623
8185
|
})[] | null;
|
|
7624
8186
|
createdAt: number;
|
|
7625
8187
|
input?: {
|
|
8188
|
+
kind: "text";
|
|
8189
|
+
value: string;
|
|
8190
|
+
} | {
|
|
8191
|
+
kind: "url";
|
|
8192
|
+
value: string;
|
|
8193
|
+
} | {
|
|
7626
8194
|
kind: "quiz";
|
|
7627
8195
|
answers: {
|
|
7628
8196
|
[k: string]: string;
|
|
@@ -7750,7 +8318,7 @@ declare function createRelayClient(options: {
|
|
|
7750
8318
|
provider: "discord";
|
|
7751
8319
|
action: "grant-role";
|
|
7752
8320
|
roleId: string;
|
|
7753
|
-
status: "
|
|
8321
|
+
status: "pending" | "delivered" | "failed";
|
|
7754
8322
|
attempts: number;
|
|
7755
8323
|
nextAt: number;
|
|
7756
8324
|
lastError: string | null;
|
|
@@ -7766,7 +8334,7 @@ declare function createRelayClient(options: {
|
|
|
7766
8334
|
quest: string;
|
|
7767
8335
|
member: string;
|
|
7768
8336
|
evidence: string | null;
|
|
7769
|
-
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review"
|
|
8337
|
+
status: "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review";
|
|
7770
8338
|
reason: string | null;
|
|
7771
8339
|
retries: number;
|
|
7772
8340
|
generation: number;
|
|
@@ -7800,6 +8368,12 @@ declare function createRelayClient(options: {
|
|
|
7800
8368
|
})[] | null;
|
|
7801
8369
|
createdAt: number;
|
|
7802
8370
|
input?: {
|
|
8371
|
+
kind: "text";
|
|
8372
|
+
value: string;
|
|
8373
|
+
} | {
|
|
8374
|
+
kind: "url";
|
|
8375
|
+
value: string;
|
|
8376
|
+
} | {
|
|
7803
8377
|
kind: "quiz";
|
|
7804
8378
|
answers: {
|
|
7805
8379
|
[k: string]: string;
|
|
@@ -7826,7 +8400,7 @@ declare function createRelayClient(options: {
|
|
|
7826
8400
|
quest: string;
|
|
7827
8401
|
member: string;
|
|
7828
8402
|
evidence: string | null;
|
|
7829
|
-
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review"
|
|
8403
|
+
status: "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review";
|
|
7830
8404
|
reason: string | null;
|
|
7831
8405
|
retries: number;
|
|
7832
8406
|
generation: number;
|
|
@@ -7860,6 +8434,12 @@ declare function createRelayClient(options: {
|
|
|
7860
8434
|
})[] | null;
|
|
7861
8435
|
createdAt: number;
|
|
7862
8436
|
input?: {
|
|
8437
|
+
kind: "text";
|
|
8438
|
+
value: string;
|
|
8439
|
+
} | {
|
|
8440
|
+
kind: "url";
|
|
8441
|
+
value: string;
|
|
8442
|
+
} | {
|
|
7863
8443
|
kind: "quiz";
|
|
7864
8444
|
answers: {
|
|
7865
8445
|
[k: string]: string;
|
|
@@ -7941,12 +8521,12 @@ declare function createRelayClient(options: {
|
|
|
7941
8521
|
kind: "resource";
|
|
7942
8522
|
default: string;
|
|
7943
8523
|
source: {
|
|
7944
|
-
provider: "domino";
|
|
7945
|
-
resource: "point-ledger";
|
|
7946
|
-
} | {
|
|
7947
8524
|
provider: "discord";
|
|
7948
8525
|
resource: "channel";
|
|
7949
8526
|
types: ("text" | "announcement")[];
|
|
8527
|
+
} | {
|
|
8528
|
+
provider: "domino";
|
|
8529
|
+
resource: "point-ledger";
|
|
7950
8530
|
} | {
|
|
7951
8531
|
provider: "discord";
|
|
7952
8532
|
resource: "role";
|
|
@@ -8032,6 +8612,23 @@ declare function createRelayClient(options: {
|
|
|
8032
8612
|
})[];
|
|
8033
8613
|
humanReview: boolean;
|
|
8034
8614
|
trigger: {
|
|
8615
|
+
kind: "manual";
|
|
8616
|
+
input: "text";
|
|
8617
|
+
constraints: {
|
|
8618
|
+
required: boolean;
|
|
8619
|
+
minLength: number;
|
|
8620
|
+
maxLength: number;
|
|
8621
|
+
};
|
|
8622
|
+
actor?: "member" | "staff" | undefined;
|
|
8623
|
+
} | {
|
|
8624
|
+
kind: "manual";
|
|
8625
|
+
input: "url";
|
|
8626
|
+
constraints: {
|
|
8627
|
+
required: boolean;
|
|
8628
|
+
allowedHosts?: string[] | undefined;
|
|
8629
|
+
};
|
|
8630
|
+
actor?: "member" | "staff" | undefined;
|
|
8631
|
+
} | {
|
|
8035
8632
|
kind: "manual";
|
|
8036
8633
|
input: "quiz" | "photo" | "none";
|
|
8037
8634
|
actor?: "member" | "staff" | undefined;
|
|
@@ -8109,12 +8706,12 @@ declare function createRelayClient(options: {
|
|
|
8109
8706
|
kind: "resource";
|
|
8110
8707
|
default: string;
|
|
8111
8708
|
source: {
|
|
8112
|
-
provider: "domino";
|
|
8113
|
-
resource: "point-ledger";
|
|
8114
|
-
} | {
|
|
8115
8709
|
provider: "discord";
|
|
8116
8710
|
resource: "channel";
|
|
8117
8711
|
types: ("text" | "announcement")[];
|
|
8712
|
+
} | {
|
|
8713
|
+
provider: "domino";
|
|
8714
|
+
resource: "point-ledger";
|
|
8118
8715
|
} | {
|
|
8119
8716
|
provider: "discord";
|
|
8120
8717
|
resource: "role";
|
|
@@ -8200,6 +8797,23 @@ declare function createRelayClient(options: {
|
|
|
8200
8797
|
})[];
|
|
8201
8798
|
humanReview: boolean;
|
|
8202
8799
|
trigger: {
|
|
8800
|
+
kind: "manual";
|
|
8801
|
+
input: "text";
|
|
8802
|
+
constraints: {
|
|
8803
|
+
required: boolean;
|
|
8804
|
+
minLength: number;
|
|
8805
|
+
maxLength: number;
|
|
8806
|
+
};
|
|
8807
|
+
actor?: "member" | "staff" | undefined;
|
|
8808
|
+
} | {
|
|
8809
|
+
kind: "manual";
|
|
8810
|
+
input: "url";
|
|
8811
|
+
constraints: {
|
|
8812
|
+
required: boolean;
|
|
8813
|
+
allowedHosts?: string[] | undefined;
|
|
8814
|
+
};
|
|
8815
|
+
actor?: "member" | "staff" | undefined;
|
|
8816
|
+
} | {
|
|
8203
8817
|
kind: "manual";
|
|
8204
8818
|
input: "quiz" | "photo" | "none";
|
|
8205
8819
|
actor?: "member" | "staff" | undefined;
|
|
@@ -8276,12 +8890,12 @@ declare function createRelayClient(options: {
|
|
|
8276
8890
|
kind: "resource";
|
|
8277
8891
|
default: string;
|
|
8278
8892
|
source: {
|
|
8279
|
-
provider: "domino";
|
|
8280
|
-
resource: "point-ledger";
|
|
8281
|
-
} | {
|
|
8282
8893
|
provider: "discord";
|
|
8283
8894
|
resource: "channel";
|
|
8284
8895
|
types: ("text" | "announcement")[];
|
|
8896
|
+
} | {
|
|
8897
|
+
provider: "domino";
|
|
8898
|
+
resource: "point-ledger";
|
|
8285
8899
|
} | {
|
|
8286
8900
|
provider: "discord";
|
|
8287
8901
|
resource: "role";
|
|
@@ -8367,6 +8981,23 @@ declare function createRelayClient(options: {
|
|
|
8367
8981
|
})[];
|
|
8368
8982
|
humanReview: boolean;
|
|
8369
8983
|
trigger: {
|
|
8984
|
+
kind: "manual";
|
|
8985
|
+
input: "text";
|
|
8986
|
+
constraints: {
|
|
8987
|
+
required: boolean;
|
|
8988
|
+
minLength: number;
|
|
8989
|
+
maxLength: number;
|
|
8990
|
+
};
|
|
8991
|
+
actor?: "member" | "staff" | undefined;
|
|
8992
|
+
} | {
|
|
8993
|
+
kind: "manual";
|
|
8994
|
+
input: "url";
|
|
8995
|
+
constraints: {
|
|
8996
|
+
required: boolean;
|
|
8997
|
+
allowedHosts?: string[] | undefined;
|
|
8998
|
+
};
|
|
8999
|
+
actor?: "member" | "staff" | undefined;
|
|
9000
|
+
} | {
|
|
8370
9001
|
kind: "manual";
|
|
8371
9002
|
input: "quiz" | "photo" | "none";
|
|
8372
9003
|
actor?: "member" | "staff" | undefined;
|
|
@@ -8405,7 +9036,7 @@ declare function createRelayClient(options: {
|
|
|
8405
9036
|
id: string;
|
|
8406
9037
|
createdAt: number;
|
|
8407
9038
|
legacy: boolean;
|
|
8408
|
-
lifecycle: "
|
|
9039
|
+
lifecycle: "paused" | "active" | "archived";
|
|
8409
9040
|
key?: string | undefined;
|
|
8410
9041
|
origin?: {
|
|
8411
9042
|
typeVersion: string;
|
|
@@ -8521,7 +9152,7 @@ declare function createRelayClient(options: {
|
|
|
8521
9152
|
quest: string;
|
|
8522
9153
|
member: string;
|
|
8523
9154
|
evidence: string | null;
|
|
8524
|
-
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review"
|
|
9155
|
+
status: "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review";
|
|
8525
9156
|
reason: string | null;
|
|
8526
9157
|
retries: number;
|
|
8527
9158
|
generation: number;
|
|
@@ -8555,6 +9186,12 @@ declare function createRelayClient(options: {
|
|
|
8555
9186
|
})[] | null;
|
|
8556
9187
|
createdAt: number;
|
|
8557
9188
|
input?: {
|
|
9189
|
+
kind: "text";
|
|
9190
|
+
value: string;
|
|
9191
|
+
} | {
|
|
9192
|
+
kind: "url";
|
|
9193
|
+
value: string;
|
|
9194
|
+
} | {
|
|
8558
9195
|
kind: "quiz";
|
|
8559
9196
|
answers: {
|
|
8560
9197
|
[k: string]: string;
|
|
@@ -8618,12 +9255,12 @@ declare function createRelayClient(options: {
|
|
|
8618
9255
|
kind: "resource";
|
|
8619
9256
|
default: string;
|
|
8620
9257
|
source: {
|
|
8621
|
-
provider: "domino";
|
|
8622
|
-
resource: "point-ledger";
|
|
8623
|
-
} | {
|
|
8624
9258
|
provider: "discord";
|
|
8625
9259
|
resource: "channel";
|
|
8626
9260
|
types: ("text" | "announcement")[];
|
|
9261
|
+
} | {
|
|
9262
|
+
provider: "domino";
|
|
9263
|
+
resource: "point-ledger";
|
|
8627
9264
|
} | {
|
|
8628
9265
|
provider: "discord";
|
|
8629
9266
|
resource: "role";
|
|
@@ -8709,6 +9346,23 @@ declare function createRelayClient(options: {
|
|
|
8709
9346
|
})[];
|
|
8710
9347
|
humanReview: boolean;
|
|
8711
9348
|
trigger: {
|
|
9349
|
+
kind: "manual";
|
|
9350
|
+
input: "text";
|
|
9351
|
+
constraints: {
|
|
9352
|
+
required: boolean;
|
|
9353
|
+
minLength: number;
|
|
9354
|
+
maxLength: number;
|
|
9355
|
+
};
|
|
9356
|
+
actor?: "member" | "staff" | undefined;
|
|
9357
|
+
} | {
|
|
9358
|
+
kind: "manual";
|
|
9359
|
+
input: "url";
|
|
9360
|
+
constraints: {
|
|
9361
|
+
required: boolean;
|
|
9362
|
+
allowedHosts?: string[] | undefined;
|
|
9363
|
+
};
|
|
9364
|
+
actor?: "member" | "staff" | undefined;
|
|
9365
|
+
} | {
|
|
8712
9366
|
kind: "manual";
|
|
8713
9367
|
input: "quiz" | "photo" | "none";
|
|
8714
9368
|
actor?: "member" | "staff" | undefined;
|
|
@@ -8747,7 +9401,7 @@ declare function createRelayClient(options: {
|
|
|
8747
9401
|
id: string;
|
|
8748
9402
|
createdAt: number;
|
|
8749
9403
|
legacy: boolean;
|
|
8750
|
-
lifecycle: "
|
|
9404
|
+
lifecycle: "paused" | "active" | "archived";
|
|
8751
9405
|
key?: string | undefined;
|
|
8752
9406
|
origin?: {
|
|
8753
9407
|
typeVersion: string;
|
|
@@ -8814,12 +9468,12 @@ declare function createRelayClient(options: {
|
|
|
8814
9468
|
kind: "resource";
|
|
8815
9469
|
default: string;
|
|
8816
9470
|
source: {
|
|
8817
|
-
provider: "domino";
|
|
8818
|
-
resource: "point-ledger";
|
|
8819
|
-
} | {
|
|
8820
9471
|
provider: "discord";
|
|
8821
9472
|
resource: "channel";
|
|
8822
9473
|
types: ("text" | "announcement")[];
|
|
9474
|
+
} | {
|
|
9475
|
+
provider: "domino";
|
|
9476
|
+
resource: "point-ledger";
|
|
8823
9477
|
} | {
|
|
8824
9478
|
provider: "discord";
|
|
8825
9479
|
resource: "role";
|
|
@@ -8905,6 +9559,23 @@ declare function createRelayClient(options: {
|
|
|
8905
9559
|
})[];
|
|
8906
9560
|
humanReview: boolean;
|
|
8907
9561
|
trigger: {
|
|
9562
|
+
kind: "manual";
|
|
9563
|
+
input: "text";
|
|
9564
|
+
constraints: {
|
|
9565
|
+
required: boolean;
|
|
9566
|
+
minLength: number;
|
|
9567
|
+
maxLength: number;
|
|
9568
|
+
};
|
|
9569
|
+
actor?: "member" | "staff" | undefined;
|
|
9570
|
+
} | {
|
|
9571
|
+
kind: "manual";
|
|
9572
|
+
input: "url";
|
|
9573
|
+
constraints: {
|
|
9574
|
+
required: boolean;
|
|
9575
|
+
allowedHosts?: string[] | undefined;
|
|
9576
|
+
};
|
|
9577
|
+
actor?: "member" | "staff" | undefined;
|
|
9578
|
+
} | {
|
|
8908
9579
|
kind: "manual";
|
|
8909
9580
|
input: "quiz" | "photo" | "none";
|
|
8910
9581
|
actor?: "member" | "staff" | undefined;
|
|
@@ -8943,7 +9614,7 @@ declare function createRelayClient(options: {
|
|
|
8943
9614
|
id: string;
|
|
8944
9615
|
createdAt: number;
|
|
8945
9616
|
legacy: boolean;
|
|
8946
|
-
lifecycle: "
|
|
9617
|
+
lifecycle: "paused" | "active" | "archived";
|
|
8947
9618
|
key?: string | undefined;
|
|
8948
9619
|
origin?: {
|
|
8949
9620
|
typeVersion: string;
|
|
@@ -8997,6 +9668,23 @@ declare function createRelayClient(options: {
|
|
|
8997
9668
|
};
|
|
8998
9669
|
connections: ("discord" | "google" | "apple" | "x")[];
|
|
8999
9670
|
trigger: {
|
|
9671
|
+
kind: "manual";
|
|
9672
|
+
input: "text";
|
|
9673
|
+
constraints: {
|
|
9674
|
+
required: boolean;
|
|
9675
|
+
minLength: number;
|
|
9676
|
+
maxLength: number;
|
|
9677
|
+
};
|
|
9678
|
+
actor?: "member" | "staff" | undefined;
|
|
9679
|
+
} | {
|
|
9680
|
+
kind: "manual";
|
|
9681
|
+
input: "url";
|
|
9682
|
+
constraints: {
|
|
9683
|
+
required: boolean;
|
|
9684
|
+
allowedHosts?: string[] | undefined;
|
|
9685
|
+
};
|
|
9686
|
+
actor?: "member" | "staff" | undefined;
|
|
9687
|
+
} | {
|
|
9000
9688
|
kind: "manual";
|
|
9001
9689
|
input: "quiz" | "photo" | "none";
|
|
9002
9690
|
actor?: "member" | "staff" | undefined;
|
|
@@ -9009,7 +9697,7 @@ declare function createRelayClient(options: {
|
|
|
9009
9697
|
};
|
|
9010
9698
|
availability: {
|
|
9011
9699
|
kind: "available";
|
|
9012
|
-
input: "quiz" | "photo" | "none";
|
|
9700
|
+
input: "url" | "text" | "quiz" | "photo" | "none";
|
|
9013
9701
|
} | {
|
|
9014
9702
|
kind: "completed";
|
|
9015
9703
|
} | {
|
|
@@ -9058,7 +9746,7 @@ declare function createRelayClient(options: {
|
|
|
9058
9746
|
quest: string;
|
|
9059
9747
|
member: string;
|
|
9060
9748
|
evidence: string | null;
|
|
9061
|
-
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review"
|
|
9749
|
+
status: "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review";
|
|
9062
9750
|
reason: string | null;
|
|
9063
9751
|
retries: number;
|
|
9064
9752
|
generation: number;
|
|
@@ -9092,6 +9780,12 @@ declare function createRelayClient(options: {
|
|
|
9092
9780
|
})[] | null;
|
|
9093
9781
|
createdAt: number;
|
|
9094
9782
|
input?: {
|
|
9783
|
+
kind: "text";
|
|
9784
|
+
value: string;
|
|
9785
|
+
} | {
|
|
9786
|
+
kind: "url";
|
|
9787
|
+
value: string;
|
|
9788
|
+
} | {
|
|
9095
9789
|
kind: "quiz";
|
|
9096
9790
|
answers: {
|
|
9097
9791
|
[k: string]: string;
|
|
@@ -9381,7 +10075,7 @@ declare function createRelayClient(options: {
|
|
|
9381
10075
|
quest: string;
|
|
9382
10076
|
member: string;
|
|
9383
10077
|
evidence: string | null;
|
|
9384
|
-
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review"
|
|
10078
|
+
status: "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review";
|
|
9385
10079
|
reason: string | null;
|
|
9386
10080
|
retries: number;
|
|
9387
10081
|
generation: number;
|
|
@@ -9415,6 +10109,12 @@ declare function createRelayClient(options: {
|
|
|
9415
10109
|
})[] | null;
|
|
9416
10110
|
createdAt: number;
|
|
9417
10111
|
input?: {
|
|
10112
|
+
kind: "text";
|
|
10113
|
+
value: string;
|
|
10114
|
+
} | {
|
|
10115
|
+
kind: "url";
|
|
10116
|
+
value: string;
|
|
10117
|
+
} | {
|
|
9418
10118
|
kind: "quiz";
|
|
9419
10119
|
answers: {
|
|
9420
10120
|
[k: string]: string;
|
|
@@ -9428,7 +10128,7 @@ declare function createRelayClient(options: {
|
|
|
9428
10128
|
quest: string;
|
|
9429
10129
|
member: string;
|
|
9430
10130
|
evidence: string | null;
|
|
9431
|
-
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review"
|
|
10131
|
+
status: "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review";
|
|
9432
10132
|
reason: string | null;
|
|
9433
10133
|
retries: number;
|
|
9434
10134
|
generation: number;
|
|
@@ -9462,6 +10162,12 @@ declare function createRelayClient(options: {
|
|
|
9462
10162
|
})[] | null;
|
|
9463
10163
|
createdAt: number;
|
|
9464
10164
|
input?: {
|
|
10165
|
+
kind: "text";
|
|
10166
|
+
value: string;
|
|
10167
|
+
} | {
|
|
10168
|
+
kind: "url";
|
|
10169
|
+
value: string;
|
|
10170
|
+
} | {
|
|
9465
10171
|
kind: "quiz";
|
|
9466
10172
|
answers: {
|
|
9467
10173
|
[k: string]: string;
|
|
@@ -9481,7 +10187,7 @@ declare function createRelayClient(options: {
|
|
|
9481
10187
|
quest: string;
|
|
9482
10188
|
member: string;
|
|
9483
10189
|
evidence: string | null;
|
|
9484
|
-
status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review"
|
|
10190
|
+
status: "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review";
|
|
9485
10191
|
reason: string | null;
|
|
9486
10192
|
retries: number;
|
|
9487
10193
|
generation: number;
|
|
@@ -9515,6 +10221,12 @@ declare function createRelayClient(options: {
|
|
|
9515
10221
|
})[] | null;
|
|
9516
10222
|
createdAt: number;
|
|
9517
10223
|
input?: {
|
|
10224
|
+
kind: "text";
|
|
10225
|
+
value: string;
|
|
10226
|
+
} | {
|
|
10227
|
+
kind: "url";
|
|
10228
|
+
value: string;
|
|
10229
|
+
} | {
|
|
9518
10230
|
kind: "quiz";
|
|
9519
10231
|
answers: {
|
|
9520
10232
|
[k: string]: string;
|
|
@@ -9524,4 +10236,4 @@ declare function createRelayClient(options: {
|
|
|
9524
10236
|
}>;
|
|
9525
10237
|
};
|
|
9526
10238
|
|
|
9527
|
-
export { Attempt, AuthProvider, type ClaimSubmission, type CollectionPass, type DeploymentPreview, type ExchangeInput, LeaderboardQuery, MemberListOptions, MemberProgress, type PhotoSubmission, type PointLedger, type ProgressObservation, type ProgressObserver, PublishedRelease, type QuestActionResult, type QuestCatalog, type QuestController, type QuestDraft, type QuestInstance, type QuestInteraction, QuestUpdatedError, type QuestView, QuizEvidence, type QuizSubmission, RelayError, ReleaseInput, ReviewListOptions, type Session, type SubmissionDraft, type SubmissionStatus, type SubmissionStore, SubmitInput, allocateQuestSchema, allocatedQuestSchema, authScopeSchema, beginHandoverSchema, catalogDeploymentPreviewSchema, catalogDeploymentSchema, collectionBeginSchema, collectionCodeSchema, collectionPassSchema, collectionPreviewSchema, collectionResolveSchema, collectionSlotDeclarationSchema, collectionSlotSchema, collectionViewSchema, createPointLedgerSchema, createRelayClient, deploymentPreviewSchema, deploymentResultSchema, errorSchema, exchangeResultSchema, exchangeSchema, identityIntegrationInputSchema, identityIntegrationSchema, identityIntegrationSecretSchema, interactionSchema, participantExchangeSchema, pointLedgerDeclarationSchema, pointLedgerPropertiesSchema, pointLedgerSchema, principalSchema, projectCatalogArtifactSchema, projectDeploymentSchema, publishDeploymentSchema, publishQuestDraftSchema, questActions, questCatalogSchema, questCollectionSchema, questConfiguration, questDescriptionSchema, questDraftChangesSchema, questDraftSchema, questExperienceSchema, questInstanceSchema, questInteraction, questPublicationPreviewSchema, questTypeVersionSchema, questViewSchema, reconcileQuestDraft, referralAcceptSchema, rewardDeliveriesSchema, rewardDeliverySchema, saveQuestDraftSchema, sessionSchema, walletChallengeInputSchema, walletProofSchema };
|
|
10239
|
+
export { Attempt, AuthProvider, type ClaimSubmission, type CollectionPass, type DeploymentPreview, type ExchangeInput, LeaderboardQuery, MemberListOptions, MemberProgress, type PhotoSubmission, type PointLedger, type ProgressObservation, type ProgressObserver, PublishedRelease, type QuestActionResult, type QuestCatalog, type QuestController, type QuestDraft, type QuestInstance, type QuestInteraction, QuestUpdatedError, type QuestView, QuizEvidence, type QuizSubmission, RelayError, ReleaseInput, ReviewListOptions, type Session, type SubmissionDraft, type SubmissionStatus, type SubmissionStore, SubmitInput, ValueEvidence, type ValueSubmission, allocateQuestSchema, allocatedQuestSchema, authScopeSchema, beginHandoverSchema, catalogDeploymentPreviewSchema, catalogDeploymentSchema, collectionBeginSchema, collectionCodeSchema, collectionPassSchema, collectionPreviewSchema, collectionResolveSchema, collectionSlotDeclarationSchema, collectionSlotSchema, collectionViewSchema, createPointLedgerSchema, createRelayClient, deploymentPreviewSchema, deploymentResultSchema, errorSchema, exchangeResultSchema, exchangeSchema, identityIntegrationInputSchema, identityIntegrationSchema, identityIntegrationSecretSchema, interactionSchema, participantExchangeSchema, pointLedgerDeclarationSchema, pointLedgerPropertiesSchema, pointLedgerSchema, principalSchema, projectCatalogArtifactSchema, projectDeploymentSchema, publishDeploymentSchema, publishQuestDraftSchema, questActions, questCatalogSchema, questCollectionSchema, questConfiguration, questDescriptionSchema, questDraftChangesSchema, questDraftSchema, questExperienceSchema, questInstanceSchema, questInteraction, questPublicationPreviewSchema, questTypeVersionSchema, questViewSchema, reconcileQuestDraft, referralAcceptSchema, rewardDeliveriesSchema, rewardDeliverySchema, saveQuestDraftSchema, sessionSchema, walletChallengeInputSchema, walletProofSchema };
|