@domino-sdk/relay 0.15.0 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/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 {
@@ -192,6 +201,8 @@ type ProgressObserver = {
192
201
  declare const interactionSchema: z.ZodEnum<{
193
202
  staff: "staff";
194
203
  quiz: "quiz";
204
+ text: "text";
205
+ url: "url";
195
206
  photo: "photo";
196
207
  automatic: "automatic";
197
208
  claim: "claim";
@@ -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;
@@ -1340,6 +1437,8 @@ declare const questCatalogSchema: z.ZodObject<{
1340
1437
  supportedInteractions: z.ZodArray<z.ZodEnum<{
1341
1438
  staff: "staff";
1342
1439
  quiz: "quiz";
1440
+ text: "text";
1441
+ url: "url";
1343
1442
  photo: "photo";
1344
1443
  automatic: "automatic";
1345
1444
  claim: "claim";
@@ -1371,6 +1470,8 @@ declare const catalogDeploymentSchema: z.ZodObject<{
1371
1470
  supportedInteractions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1372
1471
  staff: "staff";
1373
1472
  quiz: "quiz";
1473
+ text: "text";
1474
+ url: "url";
1374
1475
  photo: "photo";
1375
1476
  automatic: "automatic";
1376
1477
  claim: "claim";
@@ -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";
@@ -1585,6 +1709,8 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
1585
1709
  supportedInteractions: z.ZodArray<z.ZodEnum<{
1586
1710
  staff: "staff";
1587
1711
  quiz: "quiz";
1712
+ text: "text";
1713
+ url: "url";
1588
1714
  photo: "photo";
1589
1715
  automatic: "automatic";
1590
1716
  claim: "claim";
@@ -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";
@@ -1681,6 +1830,8 @@ declare const questViewSchema: z.ZodObject<{
1681
1830
  kind: z.ZodLiteral<"available">;
1682
1831
  input: z.ZodEnum<{
1683
1832
  quiz: "quiz";
1833
+ text: "text";
1834
+ url: "url";
1684
1835
  photo: "photo";
1685
1836
  none: "none";
1686
1837
  }>;
@@ -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
  queued: "queued";
1777
1934
  evaluating: "evaluating";
@@ -1818,6 +1975,8 @@ declare const questViewSchema: z.ZodObject<{
1818
1975
  interaction: z.ZodEnum<{
1819
1976
  staff: "staff";
1820
1977
  quiz: "quiz";
1978
+ text: "text";
1979
+ url: "url";
1821
1980
  photo: "photo";
1822
1981
  automatic: "automatic";
1823
1982
  claim: "claim";
@@ -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";
@@ -1887,6 +2069,8 @@ declare const collectionViewSchema: z.ZodObject<{
1887
2069
  kind: z.ZodLiteral<"available">;
1888
2070
  input: z.ZodEnum<{
1889
2071
  quiz: "quiz";
2072
+ text: "text";
2073
+ url: "url";
1890
2074
  photo: "photo";
1891
2075
  none: "none";
1892
2076
  }>;
@@ -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
  queued: "queued";
1983
2173
  evaluating: "evaluating";
@@ -2024,6 +2214,8 @@ declare const collectionViewSchema: z.ZodObject<{
2024
2214
  interaction: z.ZodEnum<{
2025
2215
  staff: "staff";
2026
2216
  quiz: "quiz";
2217
+ text: "text";
2218
+ url: "url";
2027
2219
  photo: "photo";
2028
2220
  automatic: "automatic";
2029
2221
  claim: "claim";
@@ -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";
@@ -2092,6 +2307,8 @@ declare const questExperienceSchema: z.ZodObject<{
2092
2307
  kind: z.ZodLiteral<"available">;
2093
2308
  input: z.ZodEnum<{
2094
2309
  quiz: "quiz";
2310
+ text: "text";
2311
+ url: "url";
2095
2312
  photo: "photo";
2096
2313
  none: "none";
2097
2314
  }>;
@@ -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
  queued: "queued";
2188
2411
  evaluating: "evaluating";
@@ -2229,6 +2452,8 @@ declare const questExperienceSchema: z.ZodObject<{
2229
2452
  interaction: z.ZodEnum<{
2230
2453
  staff: "staff";
2231
2454
  quiz: "quiz";
2455
+ text: "text";
2456
+ url: "url";
2232
2457
  photo: "photo";
2233
2458
  automatic: "automatic";
2234
2459
  claim: "claim";
@@ -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";
@@ -2298,6 +2546,8 @@ declare const questExperienceSchema: z.ZodObject<{
2298
2546
  kind: z.ZodLiteral<"available">;
2299
2547
  input: z.ZodEnum<{
2300
2548
  quiz: "quiz";
2549
+ text: "text";
2550
+ url: "url";
2301
2551
  photo: "photo";
2302
2552
  none: "none";
2303
2553
  }>;
@@ -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
  queued: "queued";
2394
2650
  evaluating: "evaluating";
@@ -2435,6 +2691,8 @@ declare const questExperienceSchema: z.ZodObject<{
2435
2691
  interaction: z.ZodEnum<{
2436
2692
  staff: "staff";
2437
2693
  quiz: "quiz";
2694
+ text: "text";
2695
+ url: "url";
2438
2696
  photo: "photo";
2439
2697
  automatic: "automatic";
2440
2698
  claim: "claim";
@@ -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";
@@ -3291,6 +3592,8 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
3291
3592
  supportedInteractions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
3292
3593
  staff: "staff";
3293
3594
  quiz: "quiz";
3595
+ text: "text";
3596
+ url: "url";
3294
3597
  photo: "photo";
3295
3598
  automatic: "automatic";
3296
3599
  claim: "claim";
@@ -3781,6 +4084,8 @@ declare const projectDeploymentSchema: z.ZodObject<{
3781
4084
  supportedInteractions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
3782
4085
  staff: "staff";
3783
4086
  quiz: "quiz";
4087
+ text: "text";
4088
+ url: "url";
3784
4089
  photo: "photo";
3785
4090
  automatic: "automatic";
3786
4091
  claim: "claim";
@@ -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";
@@ -4999,6 +5367,8 @@ declare const deploymentPreviewSchema: z.ZodObject<{
4999
5367
  supportedInteractions: z.ZodArray<z.ZodEnum<{
5000
5368
  staff: "staff";
5001
5369
  quiz: "quiz";
5370
+ text: "text";
5371
+ url: "url";
5002
5372
  photo: "photo";
5003
5373
  automatic: "automatic";
5004
5374
  claim: "claim";
@@ -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";
@@ -5985,6 +6418,8 @@ declare const deploymentResultSchema: z.ZodObject<{
5985
6418
  supportedInteractions: z.ZodArray<z.ZodEnum<{
5986
6419
  staff: "staff";
5987
6420
  quiz: "quiz";
6421
+ text: "text";
6422
+ url: "url";
5988
6423
  photo: "photo";
5989
6424
  automatic: "automatic";
5990
6425
  claim: "claim";
@@ -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: "quiz" | "text" | "url" | "photo" | "none";
6628
7080
  } | {
6629
7081
  kind: "completed";
6630
7082
  } | {
@@ -6712,10 +7164,16 @@ declare function createRelayClient(options: {
6712
7164
  [k: string]: string;
6713
7165
  };
6714
7166
  release?: string | undefined;
7167
+ } | {
7168
+ kind: "text";
7169
+ value: string;
7170
+ } | {
7171
+ kind: "url";
7172
+ value: string;
6715
7173
  } | undefined;
6716
7174
  } | null;
6717
7175
  release: string;
6718
- interaction: "staff" | "quiz" | "photo" | "automatic" | "claim";
7176
+ interaction: "staff" | "quiz" | "text" | "url" | "photo" | "automatic" | "claim";
6719
7177
  lifecycle: "active" | "paused" | "archived";
6720
7178
  rewards: {
6721
7179
  label: string;
@@ -6797,6 +7255,12 @@ declare function createRelayClient(options: {
6797
7255
  [k: string]: string;
6798
7256
  };
6799
7257
  release?: string | undefined;
7258
+ } | {
7259
+ kind: "text";
7260
+ value: string;
7261
+ } | {
7262
+ kind: "url";
7263
+ value: string;
6800
7264
  } | undefined;
6801
7265
  }>;
6802
7266
  experience: () => Promise<{
@@ -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: "quiz" | "text" | "url" | "photo" | "none";
6842
7323
  } | {
6843
7324
  kind: "completed";
6844
7325
  } | {
@@ -6926,10 +7407,16 @@ declare function createRelayClient(options: {
6926
7407
  [k: string]: string;
6927
7408
  };
6928
7409
  release?: string | undefined;
7410
+ } | {
7411
+ kind: "text";
7412
+ value: string;
7413
+ } | {
7414
+ kind: "url";
7415
+ value: string;
6929
7416
  } | undefined;
6930
7417
  } | null;
6931
7418
  release: string;
6932
- interaction: "staff" | "quiz" | "photo" | "automatic" | "claim";
7419
+ interaction: "staff" | "quiz" | "text" | "url" | "photo" | "automatic" | "claim";
6933
7420
  lifecycle: "active" | "paused" | "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: "quiz" | "text" | "url" | "photo" | "none";
7010
7514
  } | {
7011
7515
  kind: "completed";
7012
7516
  } | {
@@ -7094,10 +7598,16 @@ declare function createRelayClient(options: {
7094
7598
  [k: string]: string;
7095
7599
  };
7096
7600
  release?: string | undefined;
7601
+ } | {
7602
+ kind: "text";
7603
+ value: string;
7604
+ } | {
7605
+ kind: "url";
7606
+ value: string;
7097
7607
  } | undefined;
7098
7608
  } | null;
7099
7609
  release: string;
7100
- interaction: "staff" | "quiz" | "photo" | "automatic" | "claim";
7610
+ interaction: "staff" | "quiz" | "text" | "url" | "photo" | "automatic" | "claim";
7101
7611
  lifecycle: "active" | "paused" | "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: "quiz" | "text" | "url" | "photo" | "none";
7181
7708
  } | {
7182
7709
  kind: "completed";
7183
7710
  } | {
@@ -7265,10 +7792,16 @@ declare function createRelayClient(options: {
7265
7792
  [k: string]: string;
7266
7793
  };
7267
7794
  release?: string | undefined;
7795
+ } | {
7796
+ kind: "text";
7797
+ value: string;
7798
+ } | {
7799
+ kind: "url";
7800
+ value: string;
7268
7801
  } | undefined;
7269
7802
  } | null;
7270
7803
  release: string;
7271
- interaction: "staff" | "quiz" | "photo" | "automatic" | "claim";
7804
+ interaction: "staff" | "quiz" | "text" | "url" | "photo" | "automatic" | "claim";
7272
7805
  lifecycle: "active" | "paused" | "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;
@@ -7499,6 +8038,12 @@ declare function createRelayClient(options: {
7499
8038
  [k: string]: string;
7500
8039
  };
7501
8040
  release?: string | undefined;
8041
+ } | {
8042
+ kind: "text";
8043
+ value: string;
8044
+ } | {
8045
+ kind: "url";
8046
+ value: string;
7502
8047
  } | undefined;
7503
8048
  }>;
7504
8049
  progress: () => Promise<{
@@ -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: "quiz" | "text" | "url" | "photo" | "none";
7544
8106
  } | {
7545
8107
  kind: "completed";
7546
8108
  } | {
@@ -7628,6 +8190,12 @@ declare function createRelayClient(options: {
7628
8190
  [k: string]: string;
7629
8191
  };
7630
8192
  release?: string | undefined;
8193
+ } | {
8194
+ kind: "text";
8195
+ value: string;
8196
+ } | {
8197
+ kind: "url";
8198
+ value: string;
7631
8199
  } | undefined;
7632
8200
  } | null;
7633
8201
  key?: string | undefined;
@@ -7805,6 +8373,12 @@ declare function createRelayClient(options: {
7805
8373
  [k: string]: string;
7806
8374
  };
7807
8375
  release?: string | undefined;
8376
+ } | {
8377
+ kind: "text";
8378
+ value: string;
8379
+ } | {
8380
+ kind: "url";
8381
+ value: string;
7808
8382
  } | undefined;
7809
8383
  }>;
7810
8384
  upload: (file: File) => Promise<{
@@ -7865,6 +8439,12 @@ declare function createRelayClient(options: {
7865
8439
  [k: string]: string;
7866
8440
  };
7867
8441
  release?: string | undefined;
8442
+ } | {
8443
+ kind: "text";
8444
+ value: string;
8445
+ } | {
8446
+ kind: "url";
8447
+ value: string;
7868
8448
  } | undefined;
7869
8449
  };
7870
8450
  title: 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;
@@ -8560,6 +9191,12 @@ declare function createRelayClient(options: {
8560
9191
  [k: string]: string;
8561
9192
  };
8562
9193
  release?: string | undefined;
9194
+ } | {
9195
+ kind: "text";
9196
+ value: string;
9197
+ } | {
9198
+ kind: "url";
9199
+ value: string;
8563
9200
  } | undefined;
8564
9201
  }[];
8565
9202
  balances: {
@@ -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: "quiz" | "text" | "url" | "photo" | "none";
9013
9701
  } | {
9014
9702
  kind: "completed";
9015
9703
  } | {
@@ -9097,6 +9785,12 @@ declare function createRelayClient(options: {
9097
9785
  [k: string]: string;
9098
9786
  };
9099
9787
  release?: string | undefined;
9788
+ } | {
9789
+ kind: "text";
9790
+ value: string;
9791
+ } | {
9792
+ kind: "url";
9793
+ value: string;
9100
9794
  } | undefined;
9101
9795
  } | null;
9102
9796
  key?: string | undefined;
@@ -9420,6 +10114,12 @@ declare function createRelayClient(options: {
9420
10114
  [k: string]: string;
9421
10115
  };
9422
10116
  release?: string | undefined;
10117
+ } | {
10118
+ kind: "text";
10119
+ value: string;
10120
+ } | {
10121
+ kind: "url";
10122
+ value: string;
9423
10123
  } | undefined;
9424
10124
  }>;
9425
10125
  retry: (id: string) => Promise<{
@@ -9467,6 +10167,12 @@ declare function createRelayClient(options: {
9467
10167
  [k: string]: string;
9468
10168
  };
9469
10169
  release?: string | undefined;
10170
+ } | {
10171
+ kind: "text";
10172
+ value: string;
10173
+ } | {
10174
+ kind: "url";
10175
+ value: string;
9470
10176
  } | undefined;
9471
10177
  }>;
9472
10178
  /** @deprecated The participant API accepts only member sessions and rejects this staff call. Use the management API with a management key instead. */
@@ -9520,8 +10226,14 @@ declare function createRelayClient(options: {
9520
10226
  [k: string]: string;
9521
10227
  };
9522
10228
  release?: string | undefined;
10229
+ } | {
10230
+ kind: "text";
10231
+ value: string;
10232
+ } | {
10233
+ kind: "url";
10234
+ value: string;
9523
10235
  } | undefined;
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 };