@domino-sdk/relay 0.13.0 → 0.14.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
1
  import { z } from 'zod';
2
2
  import { errorSchema, QuizEvidence, Attempt, SubmitInput, MemberProgress, questDescriptionSchema, PublishedRelease, ReviewListOptions, MemberListOptions, ReleaseInput, beginHandoverSchema } from './schema.js';
3
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-CgI5nDQr.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 TrackerQuery, T as TrackerReader, C as TrackerRecord, E as TrackerStatus, W as WalletConnection, X as XTweet, F as accountConnectionSchema, G as authProviderSchema, H as budgetSchema, J as communityTimeZoneSchema, K as compatibleSettingKinds, M as completionKeySchema, N as completionPolicySchema, c as customSource, d as defineLeaderboard, e as defineReferral, f as defineTracker, g as discord, U as discordMemberInputSchema, V as discordMemberSchema, Y as discordMessageInputSchema, Z as discordMessageSchema, _ as discordReactionSchema, $ as discordServerSchema, a0 as integrationProviderSchema, a1 as leaderboardArtifactSchema, a2 as leaderboardAuthoringSchema, a3 as leaderboardDefinitionSchema, a4 as leaderboardExclusionSchema, a5 as leaderboardGroupSchema, a6 as leaderboardPageSchema, a7 as leaderboardPreviewSchema, a8 as leaderboardQuerySchema, a9 as leaderboardRowSchema, aa as leaderboardWindowSchema, ab as missingResourceSettings, ac as observationInputSchema, ad as observationReceiptSchema, ae as observationSchema, o as observationTriggerSchema, af as parseSettings, p as pointLedgers, ag as pointsAccountSchema, ah as pointsEntrySchema, ai as pointsMutationSchema, aj as pointsResultSchema, ak as projectIntegrationSchema, al as publishedLeaderboardSchema, am as publishedReferralSchema, an as publishedTrackerSchema, ao as quizChoiceSchema, ap as quizContentSchema, aq as quizQuestionSchema, ar as quizQuestionsSchema, as as referralAccountSchema, at as referralArtifactSchema, au as referralAuthoringSchema, av as referralControlSchema, aw as referralDefinitionSchema, ax as referralHistorySchema, ay as referralManagementSchema, az as referralRelationshipSchema, aA as referralSummarySchema, aB as resourceOptionsSchema, aC as resourceRequestSchema, aD as resourceSourceSchema, aE as settingFieldSchema, s as settings, aF as settingsFieldsSchema, aG as settingsValuesSchema, aH as solanaAddressSchema, aI as solanaBalanceSchema, h as streak, aJ as streakPolicySchema, aK as streakProgressSchema, aL as trackerArtifactSchema, aM as trackerControlSchema, aN as trackerDefinitionSchema, aO as trackerIngestResultSchema, aP as trackerIngestSchema, aQ as trackerPageSchema, aR as trackerQuerySchema, aS as trackerRecordInputSchema, aT as trackerRecordSchema, aU as trackerSourceSchema, aV as trackerStatusSchema, aW as trackerSummarySchema, aX as walletChallengeSchema, aY as walletConnectionSchema, x, aZ as xTweetSchema } from './settings-CgI5nDQr.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';
6
6
 
7
7
  declare class RelayError extends Error {
8
8
  readonly status: number;
@@ -190,9 +190,9 @@ type ProgressObserver = {
190
190
  };
191
191
 
192
192
  declare const interactionSchema: z.ZodEnum<{
193
+ staff: "staff";
193
194
  quiz: "quiz";
194
195
  photo: "photo";
195
- staff: "staff";
196
196
  automatic: "automatic";
197
197
  claim: "claim";
198
198
  }>;
@@ -375,8 +375,8 @@ declare const questTypeVersionSchema: z.ZodObject<{
375
375
  budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
376
376
  id: z.ZodString;
377
377
  scope: z.ZodEnum<{
378
- member: "member";
379
378
  project: "project";
379
+ member: "member";
380
380
  }>;
381
381
  period: z.ZodEnum<{
382
382
  day: "day";
@@ -410,7 +410,7 @@ declare const collectionSlotDeclarationSchema: z.ZodPipe<z.ZodObject<{
410
410
  title: string;
411
411
  key?: string | undefined;
412
412
  id?: string | undefined;
413
- }, "key" | "id"> & {
413
+ }, "id" | "key"> & {
414
414
  key: string;
415
415
  }, {
416
416
  title: string;
@@ -438,8 +438,8 @@ declare const questInstanceSchema: z.ZodObject<{
438
438
  }, z.core.$strict>>]>>;
439
439
  requires: z.ZodArray<z.ZodString>;
440
440
  status: z.ZodEnum<{
441
- active: "active";
442
441
  paused: "paused";
442
+ active: "active";
443
443
  archived: "archived";
444
444
  }>;
445
445
  }, z.core.$strict>;
@@ -459,8 +459,8 @@ declare const questDraftChangesSchema: z.ZodObject<{
459
459
  }, z.core.$strict>>]>>;
460
460
  requires: z.ZodArray<z.ZodString>;
461
461
  status: z.ZodEnum<{
462
- active: "active";
463
462
  paused: "paused";
463
+ active: "active";
464
464
  archived: "archived";
465
465
  }>;
466
466
  expectedRelease: z.ZodNullable<z.ZodString>;
@@ -492,8 +492,8 @@ declare const questDraftSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
492
492
  }, z.core.$strict>>]>>;
493
493
  requires: z.ZodArray<z.ZodString>;
494
494
  status: z.ZodEnum<{
495
- active: "active";
496
495
  paused: "paused";
496
+ active: "active";
497
497
  archived: "archived";
498
498
  }>;
499
499
  expectedRelease: z.ZodNullable<z.ZodString>;
@@ -526,8 +526,8 @@ declare const questDraftSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
526
526
  }, z.core.$strict>>]>>;
527
527
  requires: z.ZodArray<z.ZodString>;
528
528
  status: z.ZodEnum<{
529
- active: "active";
530
529
  paused: "paused";
530
+ active: "active";
531
531
  archived: "archived";
532
532
  }>;
533
533
  expectedRelease: z.ZodNullable<z.ZodString>;
@@ -721,8 +721,8 @@ declare const questCatalogSchema: z.ZodObject<{
721
721
  budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
722
722
  id: z.ZodString;
723
723
  scope: z.ZodEnum<{
724
- member: "member";
725
724
  project: "project";
725
+ member: "member";
726
726
  }>;
727
727
  period: z.ZodEnum<{
728
728
  day: "day";
@@ -764,8 +764,8 @@ declare const questCatalogSchema: z.ZodObject<{
764
764
  }, z.core.$strict>>]>>;
765
765
  requires: z.ZodArray<z.ZodString>;
766
766
  status: z.ZodEnum<{
767
- active: "active";
768
767
  paused: "paused";
768
+ active: "active";
769
769
  archived: "archived";
770
770
  }>;
771
771
  }, z.core.$strict>>;
@@ -789,8 +789,8 @@ declare const questCatalogSchema: z.ZodObject<{
789
789
  }, z.core.$strict>>]>>;
790
790
  requires: z.ZodArray<z.ZodString>;
791
791
  status: z.ZodEnum<{
792
- active: "active";
793
792
  paused: "paused";
793
+ active: "active";
794
794
  archived: "archived";
795
795
  }>;
796
796
  expectedRelease: z.ZodNullable<z.ZodString>;
@@ -823,8 +823,8 @@ declare const questCatalogSchema: z.ZodObject<{
823
823
  }, z.core.$strict>>]>>;
824
824
  requires: z.ZodArray<z.ZodString>;
825
825
  status: z.ZodEnum<{
826
- active: "active";
827
826
  paused: "paused";
827
+ active: "active";
828
828
  archived: "archived";
829
829
  }>;
830
830
  expectedRelease: z.ZodNullable<z.ZodString>;
@@ -1011,8 +1011,8 @@ declare const questCatalogSchema: z.ZodObject<{
1011
1011
  budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
1012
1012
  id: z.ZodString;
1013
1013
  scope: z.ZodEnum<{
1014
- member: "member";
1015
1014
  project: "project";
1015
+ member: "member";
1016
1016
  }>;
1017
1017
  period: z.ZodEnum<{
1018
1018
  day: "day";
@@ -1039,8 +1039,8 @@ declare const questCatalogSchema: z.ZodObject<{
1039
1039
  typeVersion: z.ZodString;
1040
1040
  }, z.core.$strict>>;
1041
1041
  lifecycle: z.ZodDefault<z.ZodEnum<{
1042
- active: "active";
1043
1042
  paused: "paused";
1043
+ active: "active";
1044
1044
  archived: "archived";
1045
1045
  }>>;
1046
1046
  configuration: z.ZodOptional<z.ZodObject<{
@@ -1108,7 +1108,7 @@ declare const questCatalogSchema: z.ZodObject<{
1108
1108
  createdAt: z.ZodNumber;
1109
1109
  }, z.core.$strip>, z.ZodTransform<{
1110
1110
  quest: string;
1111
- runtimeVersion: 1 | 2;
1111
+ runtimeVersion: 2 | 1;
1112
1112
  title: string;
1113
1113
  presentation: {
1114
1114
  quiz?: {
@@ -1262,7 +1262,7 @@ declare const questCatalogSchema: z.ZodObject<{
1262
1262
  visibility: "visible" | "hidden";
1263
1263
  budgets: {
1264
1264
  id: string;
1265
- scope: "member" | "project";
1265
+ scope: "project" | "member";
1266
1266
  period: "day" | "lifetime";
1267
1267
  limit: number;
1268
1268
  cost: number | {
@@ -1274,7 +1274,7 @@ declare const questCatalogSchema: z.ZodObject<{
1274
1274
  id: string;
1275
1275
  createdAt: number;
1276
1276
  legacy: boolean;
1277
- lifecycle: "active" | "paused" | "archived";
1277
+ lifecycle: "paused" | "active" | "archived";
1278
1278
  key?: string | undefined;
1279
1279
  origin?: {
1280
1280
  typeVersion: string;
@@ -1338,9 +1338,9 @@ declare const questCatalogSchema: z.ZodObject<{
1338
1338
  createdAt: number;
1339
1339
  }>>]>>>;
1340
1340
  supportedInteractions: z.ZodArray<z.ZodEnum<{
1341
+ staff: "staff";
1341
1342
  quiz: "quiz";
1342
1343
  photo: "photo";
1343
- staff: "staff";
1344
1344
  automatic: "automatic";
1345
1345
  claim: "claim";
1346
1346
  }>>;
@@ -1361,7 +1361,7 @@ declare const catalogDeploymentSchema: z.ZodObject<{
1361
1361
  title: string;
1362
1362
  key?: string | undefined;
1363
1363
  id?: string | undefined;
1364
- }, "key" | "id"> & {
1364
+ }, "id" | "key"> & {
1365
1365
  key: string;
1366
1366
  }, {
1367
1367
  title: string;
@@ -1369,9 +1369,9 @@ declare const catalogDeploymentSchema: z.ZodObject<{
1369
1369
  id?: string | undefined;
1370
1370
  }>>>>;
1371
1371
  supportedInteractions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1372
+ staff: "staff";
1372
1373
  quiz: "quiz";
1373
1374
  photo: "photo";
1374
- staff: "staff";
1375
1375
  automatic: "automatic";
1376
1376
  claim: "claim";
1377
1377
  }>>>;
@@ -1555,8 +1555,8 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
1555
1555
  budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
1556
1556
  id: z.ZodString;
1557
1557
  scope: z.ZodEnum<{
1558
- member: "member";
1559
1558
  project: "project";
1559
+ member: "member";
1560
1560
  }>;
1561
1561
  period: z.ZodEnum<{
1562
1562
  day: "day";
@@ -1583,9 +1583,9 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
1583
1583
  title: z.ZodString;
1584
1584
  }, z.core.$strict>>;
1585
1585
  supportedInteractions: z.ZodArray<z.ZodEnum<{
1586
+ staff: "staff";
1586
1587
  quiz: "quiz";
1587
1588
  photo: "photo";
1588
- staff: "staff";
1589
1589
  automatic: "automatic";
1590
1590
  claim: "claim";
1591
1591
  }>>;
@@ -1611,8 +1611,8 @@ declare const saveQuestDraftSchema: z.ZodObject<{
1611
1611
  }, z.core.$strict>>]>>;
1612
1612
  requires: z.ZodArray<z.ZodString>;
1613
1613
  status: z.ZodEnum<{
1614
- active: "active";
1615
1614
  paused: "paused";
1615
+ active: "active";
1616
1616
  archived: "archived";
1617
1617
  }>;
1618
1618
  expectedRelease: z.ZodNullable<z.ZodString>;
@@ -1654,10 +1654,10 @@ declare const questViewSchema: z.ZodObject<{
1654
1654
  }, z.core.$strict>>;
1655
1655
  }, z.core.$strict>>;
1656
1656
  connections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1657
+ discord: "discord";
1657
1658
  google: "google";
1658
1659
  apple: "apple";
1659
1660
  x: "x";
1660
- discord: "discord";
1661
1661
  }>>>;
1662
1662
  trigger: z.ZodUnion<readonly [z.ZodObject<{
1663
1663
  kind: z.ZodLiteral<"manual">;
@@ -1773,13 +1773,13 @@ declare const questViewSchema: z.ZodObject<{
1773
1773
  }, Record<string, string>>>;
1774
1774
  }, z.core.$strict>>;
1775
1775
  status: z.ZodEnum<{
1776
- "needs-review": "needs-review";
1776
+ failed: "failed";
1777
1777
  queued: "queued";
1778
1778
  evaluating: "evaluating";
1779
1779
  accepted: "accepted";
1780
1780
  progressed: "progressed";
1781
1781
  rejected: "rejected";
1782
- failed: "failed";
1782
+ "needs-review": "needs-review";
1783
1783
  }>;
1784
1784
  reason: z.ZodNullable<z.ZodString>;
1785
1785
  retries: z.ZodNumber;
@@ -1816,15 +1816,15 @@ declare const questViewSchema: z.ZodObject<{
1816
1816
  }, z.core.$strip>>;
1817
1817
  release: z.ZodString;
1818
1818
  interaction: z.ZodEnum<{
1819
+ staff: "staff";
1819
1820
  quiz: "quiz";
1820
1821
  photo: "photo";
1821
- staff: "staff";
1822
1822
  automatic: "automatic";
1823
1823
  claim: "claim";
1824
1824
  }>;
1825
1825
  lifecycle: z.ZodEnum<{
1826
- active: "active";
1827
1826
  paused: "paused";
1827
+ active: "active";
1828
1828
  archived: "archived";
1829
1829
  }>;
1830
1830
  rewards: z.ZodArray<z.ZodObject<{
@@ -1860,10 +1860,10 @@ declare const collectionViewSchema: z.ZodObject<{
1860
1860
  }, z.core.$strict>>;
1861
1861
  }, z.core.$strict>>;
1862
1862
  connections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1863
+ discord: "discord";
1863
1864
  google: "google";
1864
1865
  apple: "apple";
1865
1866
  x: "x";
1866
- discord: "discord";
1867
1867
  }>>>;
1868
1868
  trigger: z.ZodUnion<readonly [z.ZodObject<{
1869
1869
  kind: z.ZodLiteral<"manual">;
@@ -1979,13 +1979,13 @@ declare const collectionViewSchema: z.ZodObject<{
1979
1979
  }, Record<string, string>>>;
1980
1980
  }, z.core.$strict>>;
1981
1981
  status: z.ZodEnum<{
1982
- "needs-review": "needs-review";
1982
+ failed: "failed";
1983
1983
  queued: "queued";
1984
1984
  evaluating: "evaluating";
1985
1985
  accepted: "accepted";
1986
1986
  progressed: "progressed";
1987
1987
  rejected: "rejected";
1988
- failed: "failed";
1988
+ "needs-review": "needs-review";
1989
1989
  }>;
1990
1990
  reason: z.ZodNullable<z.ZodString>;
1991
1991
  retries: z.ZodNumber;
@@ -2022,15 +2022,15 @@ declare const collectionViewSchema: z.ZodObject<{
2022
2022
  }, z.core.$strip>>;
2023
2023
  release: z.ZodString;
2024
2024
  interaction: z.ZodEnum<{
2025
+ staff: "staff";
2025
2026
  quiz: "quiz";
2026
2027
  photo: "photo";
2027
- staff: "staff";
2028
2028
  automatic: "automatic";
2029
2029
  claim: "claim";
2030
2030
  }>;
2031
2031
  lifecycle: z.ZodEnum<{
2032
- active: "active";
2033
2032
  paused: "paused";
2033
+ active: "active";
2034
2034
  archived: "archived";
2035
2035
  }>;
2036
2036
  rewards: z.ZodArray<z.ZodObject<{
@@ -2065,10 +2065,10 @@ declare const questExperienceSchema: z.ZodObject<{
2065
2065
  }, z.core.$strict>>;
2066
2066
  }, z.core.$strict>>;
2067
2067
  connections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
2068
+ discord: "discord";
2068
2069
  google: "google";
2069
2070
  apple: "apple";
2070
2071
  x: "x";
2071
- discord: "discord";
2072
2072
  }>>>;
2073
2073
  trigger: z.ZodUnion<readonly [z.ZodObject<{
2074
2074
  kind: z.ZodLiteral<"manual">;
@@ -2184,13 +2184,13 @@ declare const questExperienceSchema: z.ZodObject<{
2184
2184
  }, Record<string, string>>>;
2185
2185
  }, z.core.$strict>>;
2186
2186
  status: z.ZodEnum<{
2187
- "needs-review": "needs-review";
2187
+ failed: "failed";
2188
2188
  queued: "queued";
2189
2189
  evaluating: "evaluating";
2190
2190
  accepted: "accepted";
2191
2191
  progressed: "progressed";
2192
2192
  rejected: "rejected";
2193
- failed: "failed";
2193
+ "needs-review": "needs-review";
2194
2194
  }>;
2195
2195
  reason: z.ZodNullable<z.ZodString>;
2196
2196
  retries: z.ZodNumber;
@@ -2227,15 +2227,15 @@ declare const questExperienceSchema: z.ZodObject<{
2227
2227
  }, z.core.$strip>>;
2228
2228
  release: z.ZodString;
2229
2229
  interaction: z.ZodEnum<{
2230
+ staff: "staff";
2230
2231
  quiz: "quiz";
2231
2232
  photo: "photo";
2232
- staff: "staff";
2233
2233
  automatic: "automatic";
2234
2234
  claim: "claim";
2235
2235
  }>;
2236
2236
  lifecycle: z.ZodEnum<{
2237
- active: "active";
2238
2237
  paused: "paused";
2238
+ active: "active";
2239
2239
  archived: "archived";
2240
2240
  }>;
2241
2241
  rewards: z.ZodArray<z.ZodObject<{
@@ -2271,10 +2271,10 @@ declare const questExperienceSchema: z.ZodObject<{
2271
2271
  }, z.core.$strict>>;
2272
2272
  }, z.core.$strict>>;
2273
2273
  connections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
2274
+ discord: "discord";
2274
2275
  google: "google";
2275
2276
  apple: "apple";
2276
2277
  x: "x";
2277
- discord: "discord";
2278
2278
  }>>>;
2279
2279
  trigger: z.ZodUnion<readonly [z.ZodObject<{
2280
2280
  kind: z.ZodLiteral<"manual">;
@@ -2390,13 +2390,13 @@ declare const questExperienceSchema: z.ZodObject<{
2390
2390
  }, Record<string, string>>>;
2391
2391
  }, z.core.$strict>>;
2392
2392
  status: z.ZodEnum<{
2393
- "needs-review": "needs-review";
2393
+ failed: "failed";
2394
2394
  queued: "queued";
2395
2395
  evaluating: "evaluating";
2396
2396
  accepted: "accepted";
2397
2397
  progressed: "progressed";
2398
2398
  rejected: "rejected";
2399
- failed: "failed";
2399
+ "needs-review": "needs-review";
2400
2400
  }>;
2401
2401
  reason: z.ZodNullable<z.ZodString>;
2402
2402
  retries: z.ZodNumber;
@@ -2433,15 +2433,15 @@ declare const questExperienceSchema: z.ZodObject<{
2433
2433
  }, z.core.$strip>>;
2434
2434
  release: z.ZodString;
2435
2435
  interaction: z.ZodEnum<{
2436
+ staff: "staff";
2436
2437
  quiz: "quiz";
2437
2438
  photo: "photo";
2438
- staff: "staff";
2439
2439
  automatic: "automatic";
2440
2440
  claim: "claim";
2441
2441
  }>;
2442
2442
  lifecycle: z.ZodEnum<{
2443
- active: "active";
2444
2443
  paused: "paused";
2444
+ active: "active";
2445
2445
  archived: "archived";
2446
2446
  }>;
2447
2447
  rewards: z.ZodArray<z.ZodObject<{
@@ -2475,8 +2475,8 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
2475
2475
  }, z.core.$strict>>]>>;
2476
2476
  requires: z.ZodArray<z.ZodString>;
2477
2477
  status: z.ZodEnum<{
2478
- active: "active";
2479
2478
  paused: "paused";
2479
+ active: "active";
2480
2480
  archived: "archived";
2481
2481
  }>;
2482
2482
  expectedRelease: z.ZodNullable<z.ZodString>;
@@ -2509,8 +2509,8 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
2509
2509
  }, z.core.$strict>>]>>;
2510
2510
  requires: z.ZodArray<z.ZodString>;
2511
2511
  status: z.ZodEnum<{
2512
- active: "active";
2513
2512
  paused: "paused";
2513
+ active: "active";
2514
2514
  archived: "archived";
2515
2515
  }>;
2516
2516
  expectedRelease: z.ZodNullable<z.ZodString>;
@@ -2697,8 +2697,8 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
2697
2697
  budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
2698
2698
  id: z.ZodString;
2699
2699
  scope: z.ZodEnum<{
2700
- member: "member";
2701
2700
  project: "project";
2701
+ member: "member";
2702
2702
  }>;
2703
2703
  period: z.ZodEnum<{
2704
2704
  day: "day";
@@ -2725,8 +2725,8 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
2725
2725
  typeVersion: z.ZodString;
2726
2726
  }, z.core.$strict>>;
2727
2727
  lifecycle: z.ZodDefault<z.ZodEnum<{
2728
- active: "active";
2729
2728
  paused: "paused";
2729
+ active: "active";
2730
2730
  archived: "archived";
2731
2731
  }>>;
2732
2732
  configuration: z.ZodOptional<z.ZodObject<{
@@ -2794,7 +2794,7 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
2794
2794
  createdAt: z.ZodNumber;
2795
2795
  }, z.core.$strip>, z.ZodTransform<{
2796
2796
  quest: string;
2797
- runtimeVersion: 1 | 2;
2797
+ runtimeVersion: 2 | 1;
2798
2798
  title: string;
2799
2799
  presentation: {
2800
2800
  quiz?: {
@@ -2948,7 +2948,7 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
2948
2948
  visibility: "visible" | "hidden";
2949
2949
  budgets: {
2950
2950
  id: string;
2951
- scope: "member" | "project";
2951
+ scope: "project" | "member";
2952
2952
  period: "day" | "lifetime";
2953
2953
  limit: number;
2954
2954
  cost: number | {
@@ -2960,7 +2960,7 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
2960
2960
  id: string;
2961
2961
  createdAt: number;
2962
2962
  legacy: boolean;
2963
- lifecycle: "active" | "paused" | "archived";
2963
+ lifecycle: "paused" | "active" | "archived";
2964
2964
  key?: string | undefined;
2965
2965
  origin?: {
2966
2966
  typeVersion: string;
@@ -3100,8 +3100,8 @@ declare const rewardDeliverySchema: z.ZodObject<{
3100
3100
  roleId: z.ZodString;
3101
3101
  status: z.ZodEnum<{
3102
3102
  pending: "pending";
3103
- failed: "failed";
3104
3103
  delivered: "delivered";
3104
+ failed: "failed";
3105
3105
  }>;
3106
3106
  attempts: z.ZodNumber;
3107
3107
  nextAt: z.ZodNumber;
@@ -3120,8 +3120,8 @@ declare const rewardDeliveriesSchema: z.ZodObject<{
3120
3120
  roleId: z.ZodString;
3121
3121
  status: z.ZodEnum<{
3122
3122
  pending: "pending";
3123
- failed: "failed";
3124
3123
  delivered: "delivered";
3124
+ failed: "failed";
3125
3125
  }>;
3126
3126
  attempts: z.ZodNumber;
3127
3127
  nextAt: z.ZodNumber;
@@ -3267,6 +3267,12 @@ declare function questConfiguration(release: PublishedRelease): {
3267
3267
 
3268
3268
  /** Non-quest resources in the private hosted-build catalog artifact. */
3269
3269
  declare const projectCatalogArtifactSchema: z.ZodObject<{
3270
+ types: z.ZodDefault<z.ZodArray<z.ZodObject<{
3271
+ code: z.ZodString;
3272
+ provider: z.ZodEnum<{
3273
+ "workers-ai": "workers-ai";
3274
+ }>;
3275
+ }, z.core.$strip>>>;
3270
3276
  collections: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodObject<{
3271
3277
  title: z.ZodString;
3272
3278
  key: z.ZodOptional<z.ZodString>;
@@ -3275,23 +3281,17 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
3275
3281
  title: string;
3276
3282
  key?: string | undefined;
3277
3283
  id?: string | undefined;
3278
- }, "key" | "id"> & {
3284
+ }, "id" | "key"> & {
3279
3285
  key: string;
3280
3286
  }, {
3281
3287
  title: string;
3282
3288
  key?: string | undefined;
3283
3289
  id?: string | undefined;
3284
3290
  }>>>>;
3285
- types: z.ZodDefault<z.ZodArray<z.ZodObject<{
3286
- code: z.ZodString;
3287
- provider: z.ZodEnum<{
3288
- "workers-ai": "workers-ai";
3289
- }>;
3290
- }, z.core.$strip>>>;
3291
3291
  supportedInteractions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
3292
+ staff: "staff";
3292
3293
  quiz: "quiz";
3293
3294
  photo: "photo";
3294
- staff: "staff";
3295
3295
  automatic: "automatic";
3296
3296
  claim: "claim";
3297
3297
  }>>>;
@@ -3509,7 +3509,7 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
3509
3509
  inviterGroup?: string | undefined;
3510
3510
  key?: string | undefined;
3511
3511
  id?: string | undefined;
3512
- }, "key" | "id"> & {
3512
+ }, "id" | "key"> & {
3513
3513
  key: string;
3514
3514
  }, {
3515
3515
  title: string;
@@ -3706,7 +3706,7 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
3706
3706
  group?: string | undefined;
3707
3707
  key?: string | undefined;
3708
3708
  id?: string | undefined;
3709
- }, "key" | "id"> & {
3709
+ }, "id" | "key"> & {
3710
3710
  key: string;
3711
3711
  }, {
3712
3712
  title: string;
@@ -3757,6 +3757,12 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
3757
3757
  }, z.core.$strict>;
3758
3758
  /** One manifest bundle. Missing entries never delete remotely owned resources. */
3759
3759
  declare const projectDeploymentSchema: z.ZodObject<{
3760
+ types: z.ZodDefault<z.ZodArray<z.ZodObject<{
3761
+ code: z.ZodString;
3762
+ provider: z.ZodEnum<{
3763
+ "workers-ai": "workers-ai";
3764
+ }>;
3765
+ }, z.core.$strip>>>;
3760
3766
  collections: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodObject<{
3761
3767
  title: z.ZodString;
3762
3768
  key: z.ZodOptional<z.ZodString>;
@@ -3765,23 +3771,17 @@ declare const projectDeploymentSchema: z.ZodObject<{
3765
3771
  title: string;
3766
3772
  key?: string | undefined;
3767
3773
  id?: string | undefined;
3768
- }, "key" | "id"> & {
3774
+ }, "id" | "key"> & {
3769
3775
  key: string;
3770
3776
  }, {
3771
3777
  title: string;
3772
3778
  key?: string | undefined;
3773
3779
  id?: string | undefined;
3774
3780
  }>>>>;
3775
- types: z.ZodDefault<z.ZodArray<z.ZodObject<{
3776
- code: z.ZodString;
3777
- provider: z.ZodEnum<{
3778
- "workers-ai": "workers-ai";
3779
- }>;
3780
- }, z.core.$strip>>>;
3781
3781
  supportedInteractions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
3782
+ staff: "staff";
3782
3783
  quiz: "quiz";
3783
3784
  photo: "photo";
3784
- staff: "staff";
3785
3785
  automatic: "automatic";
3786
3786
  claim: "claim";
3787
3787
  }>>>;
@@ -3999,7 +3999,7 @@ declare const projectDeploymentSchema: z.ZodObject<{
3999
3999
  inviterGroup?: string | undefined;
4000
4000
  key?: string | undefined;
4001
4001
  id?: string | undefined;
4002
- }, "key" | "id"> & {
4002
+ }, "id" | "key"> & {
4003
4003
  key: string;
4004
4004
  }, {
4005
4005
  title: string;
@@ -4196,7 +4196,7 @@ declare const projectDeploymentSchema: z.ZodObject<{
4196
4196
  group?: string | undefined;
4197
4197
  key?: string | undefined;
4198
4198
  id?: string | undefined;
4199
- }, "key" | "id"> & {
4199
+ }, "id" | "key"> & {
4200
4200
  key: string;
4201
4201
  }, {
4202
4202
  title: string;
@@ -4465,8 +4465,8 @@ declare const deploymentPreviewSchema: z.ZodObject<{
4465
4465
  budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
4466
4466
  id: z.ZodString;
4467
4467
  scope: z.ZodEnum<{
4468
- member: "member";
4469
4468
  project: "project";
4469
+ member: "member";
4470
4470
  }>;
4471
4471
  period: z.ZodEnum<{
4472
4472
  day: "day";
@@ -4493,8 +4493,8 @@ declare const deploymentPreviewSchema: z.ZodObject<{
4493
4493
  typeVersion: z.ZodString;
4494
4494
  }, z.core.$strict>>;
4495
4495
  lifecycle: z.ZodDefault<z.ZodEnum<{
4496
- active: "active";
4497
4496
  paused: "paused";
4497
+ active: "active";
4498
4498
  archived: "archived";
4499
4499
  }>>;
4500
4500
  configuration: z.ZodOptional<z.ZodObject<{
@@ -4562,7 +4562,7 @@ declare const deploymentPreviewSchema: z.ZodObject<{
4562
4562
  createdAt: z.ZodNumber;
4563
4563
  }, z.core.$strip>, z.ZodTransform<{
4564
4564
  quest: string;
4565
- runtimeVersion: 1 | 2;
4565
+ runtimeVersion: 2 | 1;
4566
4566
  title: string;
4567
4567
  presentation: {
4568
4568
  quiz?: {
@@ -4716,7 +4716,7 @@ declare const deploymentPreviewSchema: z.ZodObject<{
4716
4716
  visibility: "visible" | "hidden";
4717
4717
  budgets: {
4718
4718
  id: string;
4719
- scope: "member" | "project";
4719
+ scope: "project" | "member";
4720
4720
  period: "day" | "lifetime";
4721
4721
  limit: number;
4722
4722
  cost: number | {
@@ -4728,7 +4728,7 @@ declare const deploymentPreviewSchema: z.ZodObject<{
4728
4728
  id: string;
4729
4729
  createdAt: number;
4730
4730
  legacy: boolean;
4731
- lifecycle: "active" | "paused" | "archived";
4731
+ lifecycle: "paused" | "active" | "archived";
4732
4732
  key?: string | undefined;
4733
4733
  origin?: {
4734
4734
  typeVersion: string;
@@ -4968,8 +4968,8 @@ declare const deploymentPreviewSchema: z.ZodObject<{
4968
4968
  budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
4969
4969
  id: z.ZodString;
4970
4970
  scope: z.ZodEnum<{
4971
- member: "member";
4972
4971
  project: "project";
4972
+ member: "member";
4973
4973
  }>;
4974
4974
  period: z.ZodEnum<{
4975
4975
  day: "day";
@@ -4997,9 +4997,9 @@ declare const deploymentPreviewSchema: z.ZodObject<{
4997
4997
  quests: z.ZodArray<z.ZodString>;
4998
4998
  }, z.core.$strict>>;
4999
4999
  supportedInteractions: z.ZodArray<z.ZodEnum<{
5000
+ staff: "staff";
5000
5001
  quiz: "quiz";
5001
5002
  photo: "photo";
5002
- staff: "staff";
5003
5003
  automatic: "automatic";
5004
5004
  claim: "claim";
5005
5005
  }>>;
@@ -5451,8 +5451,8 @@ declare const deploymentResultSchema: z.ZodObject<{
5451
5451
  budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
5452
5452
  id: z.ZodString;
5453
5453
  scope: z.ZodEnum<{
5454
- member: "member";
5455
5454
  project: "project";
5455
+ member: "member";
5456
5456
  }>;
5457
5457
  period: z.ZodEnum<{
5458
5458
  day: "day";
@@ -5479,8 +5479,8 @@ declare const deploymentResultSchema: z.ZodObject<{
5479
5479
  typeVersion: z.ZodString;
5480
5480
  }, z.core.$strict>>;
5481
5481
  lifecycle: z.ZodDefault<z.ZodEnum<{
5482
- active: "active";
5483
5482
  paused: "paused";
5483
+ active: "active";
5484
5484
  archived: "archived";
5485
5485
  }>>;
5486
5486
  configuration: z.ZodOptional<z.ZodObject<{
@@ -5548,7 +5548,7 @@ declare const deploymentResultSchema: z.ZodObject<{
5548
5548
  createdAt: z.ZodNumber;
5549
5549
  }, z.core.$strip>, z.ZodTransform<{
5550
5550
  quest: string;
5551
- runtimeVersion: 1 | 2;
5551
+ runtimeVersion: 2 | 1;
5552
5552
  title: string;
5553
5553
  presentation: {
5554
5554
  quiz?: {
@@ -5702,7 +5702,7 @@ declare const deploymentResultSchema: z.ZodObject<{
5702
5702
  visibility: "visible" | "hidden";
5703
5703
  budgets: {
5704
5704
  id: string;
5705
- scope: "member" | "project";
5705
+ scope: "project" | "member";
5706
5706
  period: "day" | "lifetime";
5707
5707
  limit: number;
5708
5708
  cost: number | {
@@ -5714,7 +5714,7 @@ declare const deploymentResultSchema: z.ZodObject<{
5714
5714
  id: string;
5715
5715
  createdAt: number;
5716
5716
  legacy: boolean;
5717
- lifecycle: "active" | "paused" | "archived";
5717
+ lifecycle: "paused" | "active" | "archived";
5718
5718
  key?: string | undefined;
5719
5719
  origin?: {
5720
5720
  typeVersion: string;
@@ -5954,8 +5954,8 @@ declare const deploymentResultSchema: z.ZodObject<{
5954
5954
  budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
5955
5955
  id: z.ZodString;
5956
5956
  scope: z.ZodEnum<{
5957
- member: "member";
5958
5957
  project: "project";
5958
+ member: "member";
5959
5959
  }>;
5960
5960
  period: z.ZodEnum<{
5961
5961
  day: "day";
@@ -5983,9 +5983,9 @@ declare const deploymentResultSchema: z.ZodObject<{
5983
5983
  quests: z.ZodArray<z.ZodString>;
5984
5984
  }, z.core.$strict>>;
5985
5985
  supportedInteractions: z.ZodArray<z.ZodEnum<{
5986
+ staff: "staff";
5986
5987
  quiz: "quiz";
5987
5988
  photo: "photo";
5988
- staff: "staff";
5989
5989
  automatic: "automatic";
5990
5990
  claim: "claim";
5991
5991
  }>>;
@@ -6610,7 +6610,7 @@ declare function createRelayClient(options: {
6610
6610
  } | undefined;
6611
6611
  } | undefined;
6612
6612
  };
6613
- connections: ("google" | "apple" | "x" | "discord")[];
6613
+ connections: ("discord" | "google" | "apple" | "x")[];
6614
6614
  trigger: {
6615
6615
  kind: "manual";
6616
6616
  input: "quiz" | "photo" | "none";
@@ -6673,7 +6673,7 @@ declare function createRelayClient(options: {
6673
6673
  quest: string;
6674
6674
  member: string;
6675
6675
  evidence: string | null;
6676
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
6676
+ status: "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review";
6677
6677
  reason: string | null;
6678
6678
  retries: number;
6679
6679
  generation: number;
@@ -6715,8 +6715,8 @@ declare function createRelayClient(options: {
6715
6715
  } | undefined;
6716
6716
  } | null;
6717
6717
  release: string;
6718
- interaction: "quiz" | "photo" | "staff" | "automatic" | "claim";
6719
- lifecycle: "active" | "paused" | "archived";
6718
+ interaction: "staff" | "quiz" | "photo" | "automatic" | "claim";
6719
+ lifecycle: "paused" | "active" | "archived";
6720
6720
  rewards: {
6721
6721
  label: string;
6722
6722
  }[];
@@ -6758,7 +6758,7 @@ declare function createRelayClient(options: {
6758
6758
  quest: string;
6759
6759
  member: string;
6760
6760
  evidence: string | null;
6761
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
6761
+ status: "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review";
6762
6762
  reason: string | null;
6763
6763
  retries: number;
6764
6764
  generation: number;
@@ -6824,7 +6824,7 @@ declare function createRelayClient(options: {
6824
6824
  } | undefined;
6825
6825
  } | undefined;
6826
6826
  };
6827
- connections: ("google" | "apple" | "x" | "discord")[];
6827
+ connections: ("discord" | "google" | "apple" | "x")[];
6828
6828
  trigger: {
6829
6829
  kind: "manual";
6830
6830
  input: "quiz" | "photo" | "none";
@@ -6887,7 +6887,7 @@ declare function createRelayClient(options: {
6887
6887
  quest: string;
6888
6888
  member: string;
6889
6889
  evidence: string | null;
6890
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
6890
+ status: "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review";
6891
6891
  reason: string | null;
6892
6892
  retries: number;
6893
6893
  generation: number;
@@ -6929,8 +6929,8 @@ declare function createRelayClient(options: {
6929
6929
  } | undefined;
6930
6930
  } | null;
6931
6931
  release: string;
6932
- interaction: "quiz" | "photo" | "staff" | "automatic" | "claim";
6933
- lifecycle: "active" | "paused" | "archived";
6932
+ interaction: "staff" | "quiz" | "photo" | "automatic" | "claim";
6933
+ lifecycle: "paused" | "active" | "archived";
6934
6934
  rewards: {
6935
6935
  label: string;
6936
6936
  }[];
@@ -6992,7 +6992,7 @@ declare function createRelayClient(options: {
6992
6992
  } | undefined;
6993
6993
  } | undefined;
6994
6994
  };
6995
- connections: ("google" | "apple" | "x" | "discord")[];
6995
+ connections: ("discord" | "google" | "apple" | "x")[];
6996
6996
  trigger: {
6997
6997
  kind: "manual";
6998
6998
  input: "quiz" | "photo" | "none";
@@ -7055,7 +7055,7 @@ declare function createRelayClient(options: {
7055
7055
  quest: string;
7056
7056
  member: string;
7057
7057
  evidence: string | null;
7058
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
7058
+ status: "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review";
7059
7059
  reason: string | null;
7060
7060
  retries: number;
7061
7061
  generation: number;
@@ -7097,8 +7097,8 @@ declare function createRelayClient(options: {
7097
7097
  } | undefined;
7098
7098
  } | null;
7099
7099
  release: string;
7100
- interaction: "quiz" | "photo" | "staff" | "automatic" | "claim";
7101
- lifecycle: "active" | "paused" | "archived";
7100
+ interaction: "staff" | "quiz" | "photo" | "automatic" | "claim";
7101
+ lifecycle: "paused" | "active" | "archived";
7102
7102
  rewards: {
7103
7103
  label: string;
7104
7104
  }[];
@@ -7163,7 +7163,7 @@ declare function createRelayClient(options: {
7163
7163
  } | undefined;
7164
7164
  } | undefined;
7165
7165
  };
7166
- connections: ("google" | "apple" | "x" | "discord")[];
7166
+ connections: ("discord" | "google" | "apple" | "x")[];
7167
7167
  trigger: {
7168
7168
  kind: "manual";
7169
7169
  input: "quiz" | "photo" | "none";
@@ -7226,7 +7226,7 @@ declare function createRelayClient(options: {
7226
7226
  quest: string;
7227
7227
  member: string;
7228
7228
  evidence: string | null;
7229
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
7229
+ status: "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review";
7230
7230
  reason: string | null;
7231
7231
  retries: number;
7232
7232
  generation: number;
@@ -7268,8 +7268,8 @@ declare function createRelayClient(options: {
7268
7268
  } | undefined;
7269
7269
  } | null;
7270
7270
  release: string;
7271
- interaction: "quiz" | "photo" | "staff" | "automatic" | "claim";
7272
- lifecycle: "active" | "paused" | "archived";
7271
+ interaction: "staff" | "quiz" | "photo" | "automatic" | "claim";
7272
+ lifecycle: "paused" | "active" | "archived";
7273
7273
  rewards: {
7274
7274
  label: string;
7275
7275
  }[];
@@ -7337,7 +7337,7 @@ declare function createRelayClient(options: {
7337
7337
  auth: {
7338
7338
  providers: () => Promise<{
7339
7339
  providers: {
7340
- provider: "google" | "apple" | "x" | "discord";
7340
+ provider: "discord" | "google" | "apple" | "x";
7341
7341
  configured: boolean;
7342
7342
  }[];
7343
7343
  email: boolean;
@@ -7367,7 +7367,7 @@ declare function createRelayClient(options: {
7367
7367
  expiresAt: number;
7368
7368
  }>;
7369
7369
  accounts: () => Promise<{
7370
- provider: "google" | "apple" | "x" | "discord";
7370
+ provider: "discord" | "google" | "apple" | "x";
7371
7371
  configured: boolean;
7372
7372
  status: "disconnected" | "connected" | "reconnect";
7373
7373
  subject: string | null;
@@ -7460,7 +7460,7 @@ declare function createRelayClient(options: {
7460
7460
  quest: string;
7461
7461
  member: string;
7462
7462
  evidence: string | null;
7463
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
7463
+ status: "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review";
7464
7464
  reason: string | null;
7465
7465
  retries: number;
7466
7466
  generation: number;
@@ -7526,7 +7526,7 @@ declare function createRelayClient(options: {
7526
7526
  } | undefined;
7527
7527
  } | undefined;
7528
7528
  };
7529
- connections: ("google" | "apple" | "x" | "discord")[];
7529
+ connections: ("discord" | "google" | "apple" | "x")[];
7530
7530
  trigger: {
7531
7531
  kind: "manual";
7532
7532
  input: "quiz" | "photo" | "none";
@@ -7589,7 +7589,7 @@ declare function createRelayClient(options: {
7589
7589
  quest: string;
7590
7590
  member: string;
7591
7591
  evidence: string | null;
7592
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
7592
+ status: "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review";
7593
7593
  reason: string | null;
7594
7594
  retries: number;
7595
7595
  generation: number;
@@ -7750,7 +7750,7 @@ declare function createRelayClient(options: {
7750
7750
  provider: "discord";
7751
7751
  action: "grant-role";
7752
7752
  roleId: string;
7753
- status: "pending" | "failed" | "delivered";
7753
+ status: "pending" | "delivered" | "failed";
7754
7754
  attempts: number;
7755
7755
  nextAt: number;
7756
7756
  lastError: string | null;
@@ -7766,7 +7766,7 @@ declare function createRelayClient(options: {
7766
7766
  quest: string;
7767
7767
  member: string;
7768
7768
  evidence: string | null;
7769
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
7769
+ status: "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review";
7770
7770
  reason: string | null;
7771
7771
  retries: number;
7772
7772
  generation: number;
@@ -7826,7 +7826,7 @@ declare function createRelayClient(options: {
7826
7826
  quest: string;
7827
7827
  member: string;
7828
7828
  evidence: string | null;
7829
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
7829
+ status: "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review";
7830
7830
  reason: string | null;
7831
7831
  retries: number;
7832
7832
  generation: number;
@@ -7904,7 +7904,7 @@ declare function createRelayClient(options: {
7904
7904
  code: string;
7905
7905
  definition: {
7906
7906
  quest: string;
7907
- runtimeVersion: 1 | 2;
7907
+ runtimeVersion: 2 | 1;
7908
7908
  title: string;
7909
7909
  presentation: {
7910
7910
  quiz?: {
@@ -8058,7 +8058,7 @@ declare function createRelayClient(options: {
8058
8058
  visibility: "visible" | "hidden";
8059
8059
  budgets: {
8060
8060
  id: string;
8061
- scope: "member" | "project";
8061
+ scope: "project" | "member";
8062
8062
  period: "day" | "lifetime";
8063
8063
  limit: number;
8064
8064
  cost: number | {
@@ -8072,7 +8072,7 @@ declare function createRelayClient(options: {
8072
8072
  code: string;
8073
8073
  definition: {
8074
8074
  quest: string;
8075
- runtimeVersion: 1 | 2;
8075
+ runtimeVersion: 2 | 1;
8076
8076
  title: string;
8077
8077
  presentation: {
8078
8078
  quiz?: {
@@ -8226,7 +8226,7 @@ declare function createRelayClient(options: {
8226
8226
  visibility: "visible" | "hidden";
8227
8227
  budgets: {
8228
8228
  id: string;
8229
- scope: "member" | "project";
8229
+ scope: "project" | "member";
8230
8230
  period: "day" | "lifetime";
8231
8231
  limit: number;
8232
8232
  cost: number | {
@@ -8239,7 +8239,7 @@ declare function createRelayClient(options: {
8239
8239
  snapshot: () => Promise<{
8240
8240
  releases: {
8241
8241
  quest: string;
8242
- runtimeVersion: 1 | 2;
8242
+ runtimeVersion: 2 | 1;
8243
8243
  title: string;
8244
8244
  presentation: {
8245
8245
  quiz?: {
@@ -8393,7 +8393,7 @@ declare function createRelayClient(options: {
8393
8393
  visibility: "visible" | "hidden";
8394
8394
  budgets: {
8395
8395
  id: string;
8396
- scope: "member" | "project";
8396
+ scope: "project" | "member";
8397
8397
  period: "day" | "lifetime";
8398
8398
  limit: number;
8399
8399
  cost: number | {
@@ -8405,7 +8405,7 @@ declare function createRelayClient(options: {
8405
8405
  id: string;
8406
8406
  createdAt: number;
8407
8407
  legacy: boolean;
8408
- lifecycle: "active" | "paused" | "archived";
8408
+ lifecycle: "paused" | "active" | "archived";
8409
8409
  key?: string | undefined;
8410
8410
  origin?: {
8411
8411
  typeVersion: string;
@@ -8521,7 +8521,7 @@ declare function createRelayClient(options: {
8521
8521
  quest: string;
8522
8522
  member: string;
8523
8523
  evidence: string | null;
8524
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
8524
+ status: "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review";
8525
8525
  reason: string | null;
8526
8526
  retries: number;
8527
8527
  generation: number;
@@ -8581,7 +8581,7 @@ declare function createRelayClient(options: {
8581
8581
  /** @deprecated The participant API rejects publication. Publish with `domino deploy` or the management API. */
8582
8582
  publish: (release: ReleaseInput) => Promise<{
8583
8583
  quest: string;
8584
- runtimeVersion: 1 | 2;
8584
+ runtimeVersion: 2 | 1;
8585
8585
  title: string;
8586
8586
  presentation: {
8587
8587
  quiz?: {
@@ -8735,7 +8735,7 @@ declare function createRelayClient(options: {
8735
8735
  visibility: "visible" | "hidden";
8736
8736
  budgets: {
8737
8737
  id: string;
8738
- scope: "member" | "project";
8738
+ scope: "project" | "member";
8739
8739
  period: "day" | "lifetime";
8740
8740
  limit: number;
8741
8741
  cost: number | {
@@ -8747,7 +8747,7 @@ declare function createRelayClient(options: {
8747
8747
  id: string;
8748
8748
  createdAt: number;
8749
8749
  legacy: boolean;
8750
- lifecycle: "active" | "paused" | "archived";
8750
+ lifecycle: "paused" | "active" | "archived";
8751
8751
  key?: string | undefined;
8752
8752
  origin?: {
8753
8753
  typeVersion: string;
@@ -8777,7 +8777,7 @@ declare function createRelayClient(options: {
8777
8777
  /** @deprecated The participant API rejects publication. Publish with `domino deploy` or the management API. */
8778
8778
  publishBatch: (releases: ReleaseInput[]) => Promise<{
8779
8779
  quest: string;
8780
- runtimeVersion: 1 | 2;
8780
+ runtimeVersion: 2 | 1;
8781
8781
  title: string;
8782
8782
  presentation: {
8783
8783
  quiz?: {
@@ -8931,7 +8931,7 @@ declare function createRelayClient(options: {
8931
8931
  visibility: "visible" | "hidden";
8932
8932
  budgets: {
8933
8933
  id: string;
8934
- scope: "member" | "project";
8934
+ scope: "project" | "member";
8935
8935
  period: "day" | "lifetime";
8936
8936
  limit: number;
8937
8937
  cost: number | {
@@ -8943,7 +8943,7 @@ declare function createRelayClient(options: {
8943
8943
  id: string;
8944
8944
  createdAt: number;
8945
8945
  legacy: boolean;
8946
- lifecycle: "active" | "paused" | "archived";
8946
+ lifecycle: "paused" | "active" | "archived";
8947
8947
  key?: string | undefined;
8948
8948
  origin?: {
8949
8949
  typeVersion: string;
@@ -8995,7 +8995,7 @@ declare function createRelayClient(options: {
8995
8995
  } | undefined;
8996
8996
  } | undefined;
8997
8997
  };
8998
- connections: ("google" | "apple" | "x" | "discord")[];
8998
+ connections: ("discord" | "google" | "apple" | "x")[];
8999
8999
  trigger: {
9000
9000
  kind: "manual";
9001
9001
  input: "quiz" | "photo" | "none";
@@ -9058,7 +9058,7 @@ declare function createRelayClient(options: {
9058
9058
  quest: string;
9059
9059
  member: string;
9060
9060
  evidence: string | null;
9061
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
9061
+ status: "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review";
9062
9062
  reason: string | null;
9063
9063
  retries: number;
9064
9064
  generation: number;
@@ -9381,7 +9381,7 @@ declare function createRelayClient(options: {
9381
9381
  quest: string;
9382
9382
  member: string;
9383
9383
  evidence: string | null;
9384
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
9384
+ status: "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review";
9385
9385
  reason: string | null;
9386
9386
  retries: number;
9387
9387
  generation: number;
@@ -9428,7 +9428,7 @@ declare function createRelayClient(options: {
9428
9428
  quest: string;
9429
9429
  member: string;
9430
9430
  evidence: string | null;
9431
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
9431
+ status: "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review";
9432
9432
  reason: string | null;
9433
9433
  retries: number;
9434
9434
  generation: number;
@@ -9481,7 +9481,7 @@ declare function createRelayClient(options: {
9481
9481
  quest: string;
9482
9482
  member: string;
9483
9483
  evidence: string | null;
9484
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
9484
+ status: "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review";
9485
9485
  reason: string | null;
9486
9486
  retries: number;
9487
9487
  generation: number;