@domino-sdk/relay 0.14.1 → 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/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-CU2y-wUM.js';
5
- export { k as AccountConnection, B as Budget, D as DiscordMember, a as DiscordMessage, I as IntegrationProvider, l as LeaderboardDefinition, m as LeaderboardPage, O as Observation, P as ProjectIntegration, Q as QuizContent, R as ReferralDefinition, n as ResourceOption, q as ResourceSource, t as SettingField, u as SettingsValues, S as SolanaBalance, b as StreakPolicy, v as StreakProgress, y as TrackerDefinition, z as TrackerPreview, C as TrackerPreviewInput, E as TrackerQuery, T as TrackerReader, F as TrackerRecord, G as TrackerStatus, W as WalletConnection, X as XTweet, H as accountConnectionSchema, J as authProviderSchema, K as budgetSchema, M as communityTimeZoneSchema, N as compatibleSettingKinds, U as completionKeySchema, V as completionPolicySchema, c as customSource, d as defineLeaderboard, e as defineReferral, f as defineTracker, g as discord, Y as discordMemberInputSchema, Z as discordMemberSchema, _ as discordMessageInputSchema, $ as discordMessageSchema, a0 as discordReactionSchema, a1 as discordServerSchema, a2 as integrationProviderSchema, a3 as leaderboardArtifactSchema, a4 as leaderboardAuthoringSchema, a5 as leaderboardDefinitionSchema, a6 as leaderboardExclusionSchema, a7 as leaderboardGroupSchema, a8 as leaderboardPageSchema, a9 as leaderboardPreviewSchema, aa as leaderboardQuerySchema, ab as leaderboardRowSchema, ac as leaderboardWindowSchema, ad as missingResourceSettings, ae as observationInputSchema, af as observationReceiptSchema, ag as observationSchema, o as observationTriggerSchema, ah as parseSettings, p as pointLedgers, ai as pointsAccountSchema, aj as pointsEntrySchema, ak as pointsMutationSchema, al as pointsResultSchema, am as projectIntegrationSchema, an as publishedLeaderboardSchema, ao as publishedReferralSchema, ap as publishedTrackerSchema, aq as quizChoiceSchema, ar as quizContentSchema, as as quizQuestionSchema, at as quizQuestionsSchema, au as referralAccountSchema, av as referralArtifactSchema, aw as referralAuthoringSchema, ax as referralControlSchema, ay as referralDefinitionSchema, az as referralHistorySchema, aA as referralManagementSchema, aB as referralRelationshipSchema, aC 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-CU2y-wUM.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";
@@ -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";
@@ -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";
@@ -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;
@@ -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";
@@ -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";
@@ -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,13 +1916,19 @@ 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<{
1776
1933
  failed: "failed";
1777
1934
  queued: "queued";
@@ -1817,6 +1974,8 @@ 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";
@@ -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,13 +2155,19 @@ 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<{
1982
2172
  failed: "failed";
1983
2173
  queued: "queued";
@@ -2023,6 +2213,8 @@ 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";
@@ -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,13 +2393,19 @@ 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<{
2187
2410
  failed: "failed";
2188
2411
  queued: "queued";
@@ -2228,6 +2451,8 @@ 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";
@@ -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,13 +2632,19 @@ 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<{
2393
2649
  failed: "failed";
2394
2650
  queued: "queued";
@@ -2434,6 +2690,8 @@ 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";
@@ -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";
@@ -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;
@@ -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";
@@ -3290,6 +3591,8 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
3290
3591
  }>>>>;
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";
@@ -3780,6 +4083,8 @@ declare const projectDeploymentSchema: z.ZodObject<{
3780
4083
  }>>>>;
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";
@@ -4428,6 +4733,29 @@ declare const deploymentPreviewSchema: z.ZodObject<{
4428
4733
  }, z.core.$strict>]>>;
4429
4734
  humanReview: z.ZodBoolean;
4430
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";
@@ -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;
@@ -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";
@@ -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;
@@ -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";
@@ -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
  } | {
@@ -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,7 +7173,7 @@ declare function createRelayClient(options: {
6715
7173
  } | undefined;
6716
7174
  } | null;
6717
7175
  release: string;
6718
- interaction: "staff" | "quiz" | "photo" | "automatic" | "claim";
7176
+ interaction: "staff" | "url" | "text" | "quiz" | "photo" | "automatic" | "claim";
6719
7177
  lifecycle: "paused" | "active" | "archived";
6720
7178
  rewards: {
6721
7179
  label: string;
@@ -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
  } | {
@@ -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,7 +7416,7 @@ declare function createRelayClient(options: {
6929
7416
  } | undefined;
6930
7417
  } | null;
6931
7418
  release: string;
6932
- interaction: "staff" | "quiz" | "photo" | "automatic" | "claim";
7419
+ interaction: "staff" | "url" | "text" | "quiz" | "photo" | "automatic" | "claim";
6933
7420
  lifecycle: "paused" | "active" | "archived";
6934
7421
  rewards: {
6935
7422
  label: string;
@@ -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
  } | {
@@ -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,7 +7607,7 @@ declare function createRelayClient(options: {
7097
7607
  } | undefined;
7098
7608
  } | null;
7099
7609
  release: string;
7100
- interaction: "staff" | "quiz" | "photo" | "automatic" | "claim";
7610
+ interaction: "staff" | "url" | "text" | "quiz" | "photo" | "automatic" | "claim";
7101
7611
  lifecycle: "paused" | "active" | "archived";
7102
7612
  rewards: {
7103
7613
  label: string;
@@ -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
  } | {
@@ -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,7 +7801,7 @@ declare function createRelayClient(options: {
7268
7801
  } | undefined;
7269
7802
  } | null;
7270
7803
  release: string;
7271
- interaction: "staff" | "quiz" | "photo" | "automatic" | "claim";
7804
+ interaction: "staff" | "url" | "text" | "quiz" | "photo" | "automatic" | "claim";
7272
7805
  lifecycle: "paused" | "active" | "archived";
7273
7806
  rewards: {
7274
7807
  label: string;
@@ -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;
@@ -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
  } | {
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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
  } | {
@@ -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;
@@ -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;
@@ -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;
@@ -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 };