@domino-sdk/relay 0.18.4 → 0.23.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { V as ValueEvidence, r as referralAcceptSchema, L as LeaderboardQuery, w as walletChallengeInputSchema, t as walletProofSchema, u as AuthProvider, v as engagementPageQuerySchema, y as contentQualificationQuerySchema, z as contentAdmissionQuerySchema, E as contentEnrollmentInputSchema, F as contentReleaseInputSchema } from './submission-input-C67qt2Ph.js';
2
- export { G as AccountConnection, A as AdmittedContent, B as Budget, C as ContentMetric, K as ContentPerformancePolicy, M as ContentPolicy, D as DiscordMember, a as DiscordMessage, N as EngagementDefinition, I as IntegrationProvider, P as LeaderboardDefinition, J as LeaderboardPage, O as Observation, Q as ProjectIntegration, R as QuizContent, Y as ReferralDefinition, Z as ResourceOption, _ as ResourceSource, $ as SettingField, a0 as SettingsValues, S as SolanaBalance, c as StreakPolicy, a1 as StreakProgress, d as TextEvidence, e as TextOptions, a2 as TrackerContent, a3 as TrackerContentQuery, a4 as TrackerDefinition, a5 as TrackerPreview, a6 as TrackerPreviewInput, a7 as TrackerQuery, T as TrackerReader, a8 as TrackerRecord, a9 as TrackerStatus, U as UrlEvidence, f as UrlOptions, W as WalletConnection, aa as XConnection, ab as XPost, ac as XProfile, X as XReader, ad as XTweet, ae as accountConnectionSchema, af as admittedContentSchema, ag as authProviderSchema, ah as budgetSchema, ai as communityTimeZoneSchema, aj as compatibleSettingKinds, ak as completionKeySchema, al as completionPolicySchema, g as content, am as contentAdmissionPageSchema, an as contentAdmissionSchema, ao as contentEnrollmentSchema, ap as contentMetricSchema, aq as contentMetricsSchema, ar as contentPerformancePolicySchema, as as contentPolicySchema, at as contentQualificationDecisionSchema, au as contentQualificationPageSchema, av as contentQualificationSchema, h as customSource, i as defineEngagementReward, j as defineLeaderboard, k as defineReferral, l as defineTracker, m as discord, aw as discordMemberInputSchema, ax as discordMemberSchema, ay as discordMessageInputSchema, az as discordMessageSchema, aA as discordReactionSchema, aB as discordServerSchema, aC as engagementArtifactSchema, aD as engagementBoundaryPageSchema, aE as engagementChangePreviewInputSchema, aF as engagementChangePreviewSchema, aG as engagementChangeSchema, aH as engagementDefinitionSchema, aI as engagementDeploymentEntrySchema, aJ as engagementPageSchema, aK as engagementPublishSchema, aL as engagementRuleSchema, aM as engagementScoreInputSchema, aN as engagementScoreSchema, aO as engagementSettlementSchema, aP as engagementVersionPageSchema, aQ as engagementVersionQuerySchema, aR as integrationProviderSchema, aS as isContentParticipantRoute, aT as leaderboardArtifactSchema, aU as leaderboardAuthoringSchema, aV as leaderboardDefinitionSchema, aW as leaderboardExclusionSchema, aX as leaderboardGroupSchema, aY as leaderboardPageSchema, aZ as leaderboardPreviewSchema, a_ as leaderboardQuerySchema, a$ as leaderboardRowSchema, b0 as leaderboardWindowSchema, b1 as missingResourceSettings, b2 as observationInputSchema, b3 as observationReceiptSchema, b4 as observationSchema, o as observationTriggerSchema, b5 as parseSettings, p as perContent, n as pointLedgers, b6 as pointsAccountSchema, b7 as pointsEntrySchema, b8 as pointsMutationSchema, b9 as pointsResultSchema, ba as projectIntegrationSchema, bb as publishedLeaderboardSchema, bc as publishedReferralSchema, bd as publishedTrackerSchema, be as quizChoiceSchema, bf as quizContentSchema, bg as quizQuestionSchema, bh as quizQuestionsSchema, bi as referralAccountSchema, bj as referralArtifactSchema, bk as referralAuthoringSchema, bl as referralControlSchema, bm as referralDefinitionSchema, bn as referralHistorySchema, bo as referralManagementSchema, bp as referralRelationshipSchema, H as referralSummarySchema, bq as resourceOptionsSchema, br as resourceRequestSchema, bs as resourceSourceSchema, bt as settingFieldSchema, s as settings, bu as settingsFieldsSchema, bv as settingsValuesSchema, bw as solanaAddressSchema, bx as solanaBalanceSchema, q as streak, by as streakPolicySchema, bz as streakProgressSchema, bA as textEvidenceSchema, bB as textOptionsSchema, bC as trackerArtifactSchema, bD as trackerContentQuerySchema, bE as trackerContentReadSchema, bF as trackerContentSchema, bG as trackerControlSchema, bH as trackerDefinitionSchema, bI as trackerIngestResultSchema, bJ as trackerIngestSchema, bK as trackerPageSchema, bL as trackerPreviewInputSchema, bM as trackerPreviewLimits, bN as trackerPreviewSchema, bO as trackerQuerySchema, bP as trackerRecordInputSchema, bQ as trackerRecordSchema, bR as trackerSourceSchema, bS as trackerStatusSchema, bT as trackerSummarySchema, bU as urlEvidenceSchema, bV as urlOptionsSchema, bW as validateSubmissionValue, bX as valueEvidenceSchema, bY as walletChallengeSchema, bZ as walletConnectionSchema, x, b_ as xConnectionSchema, b$ as xContentBodySchema, c0 as xIdSchema, c1 as xPostId, c2 as xPostSchema, c3 as xProfileSchema, c4 as xRequestSchema, c5 as xTweetSchema } from './submission-input-C67qt2Ph.js';
1
+ import { V as ValueEvidence, t as referralAcceptSchema, L as LeaderboardQuery, w as walletChallengeInputSchema, u as walletProofSchema, v as AuthProvider, y as engagementPageQuerySchema, z as contentQualificationQuerySchema, E as contentAdmissionQuerySchema, F as contentEnrollmentInputSchema, G as contentReleaseInputSchema } from './submission-input-CK4Dy19H.js';
2
+ export { H as AccountConnection, A as AdmittedContent, B as Budget, C as ContentMetric, M as ContentPerformancePolicy, N as ContentPolicy, D as DiscordMember, a as DiscordMessage, P as EngagementDefinition, Q as ImageAssetArtifact, R as ImageComparison, Y as ImageExtraction, Z as ImageFields, _ as ImageInspection, I as ImageReader, $ as ImageReference, a0 as ImageRequest, a1 as ImageSightings, c as IntegrationProvider, a2 as LeaderboardDefinition, K as LeaderboardPage, O as Observation, a3 as ProjectIntegration, a4 as PublishedImage, a5 as QuizContent, a6 as ReferralDefinition, a7 as ResourceOption, a8 as ResourceSource, a9 as SettingField, aa as SettingsValues, S as SolanaBalance, d as StreakPolicy, ab as StreakProgress, e as TextEvidence, f as TextOptions, ac as TrackerContent, ad as TrackerContentQuery, ae as TrackerDefinition, af as TrackerPreview, ag as TrackerPreviewInput, ah as TrackerQuery, T as TrackerReader, ai as TrackerRecord, aj as TrackerStatus, U as UrlEvidence, g as UrlOptions, W as WalletConnection, ak as XConnection, al as XPost, am as XProfile, X as XReader, an as XTweet, ao as accountConnectionSchema, ap as admittedContentSchema, aq as authProviderSchema, ar as budgetSchema, as as communityTimeZoneSchema, at as compatibleSettingKinds, au as completionKeySchema, av as completionPolicySchema, h as content, aw as contentAdmissionPageSchema, ax as contentAdmissionSchema, ay as contentEnrollmentSchema, az as contentMetricSchema, aA as contentMetricsSchema, aB as contentPerformancePolicySchema, aC as contentPolicySchema, aD as contentQualificationDecisionSchema, aE as contentQualificationPageSchema, aF as contentQualificationSchema, i as customSource, j as defineEngagementReward, k as defineLeaderboard, l as defineReferral, m as defineTracker, n as discord, aG as discordMemberInputSchema, aH as discordMemberSchema, aI as discordMessageInputSchema, aJ as discordMessageSchema, aK as discordReactionSchema, aL as discordServerSchema, aM as engagementArtifactSchema, aN as engagementBoundaryPageSchema, aO as engagementChangePreviewInputSchema, aP as engagementChangePreviewSchema, aQ as engagementChangeSchema, aR as engagementDefinitionSchema, aS as engagementDeploymentEntrySchema, aT as engagementPageSchema, aU as engagementPublishSchema, aV as engagementRuleSchema, aW as engagementScoreInputSchema, aX as engagementScoreSchema, aY as engagementSettlementSchema, aZ as engagementVersionPageSchema, a_ as engagementVersionQuerySchema, a$ as imageAssetArtifactSchema, b0 as imageComparisonSchema, b1 as imageExtractionSchema, b2 as imageFieldSchema, b3 as imageFieldsSchema, b4 as imageInspectionSchema, b5 as imageReferenceSchema, b6 as imageRequestSchema, b7 as imageSightingsSchema, b8 as imageUploadRequestSchema, b9 as imageUploadsSchema, ba as integrationProviderSchema, bb as isContentParticipantRoute, bc as leaderboardArtifactSchema, bd as leaderboardAuthoringSchema, be as leaderboardDefinitionSchema, bf as leaderboardExclusionSchema, bg as leaderboardGroupSchema, bh as leaderboardPageSchema, bi as leaderboardPreviewSchema, bj as leaderboardQuerySchema, bk as leaderboardRowSchema, bl as leaderboardWindowSchema, bm as missingResourceSettings, bn as observationInputSchema, bo as observationReceiptSchema, bp as observationSchema, o as observationTriggerSchema, bq as parseImageExtraction, br as parseImageResult, bs as parseSettings, p as perContent, q as pointLedgers, bt as pointsAccountSchema, bu as pointsEntrySchema, bv as pointsMutationSchema, bw as pointsResultSchema, bx as projectIntegrationSchema, by as publishedImageSchema, bz as publishedLeaderboardSchema, bA as publishedReferralSchema, bB as publishedTrackerSchema, bC as quizChoiceSchema, bD as quizContentSchema, bE as quizQuestionSchema, bF as quizQuestionsSchema, bG as referralAccountSchema, bH as referralArtifactSchema, bI as referralAuthoringSchema, bJ as referralControlSchema, bK as referralDefinitionSchema, bL as referralHistorySchema, bM as referralManagementSchema, bN as referralRelationshipSchema, J as referralSummarySchema, bO as resourceOptionsSchema, bP as resourceRequestSchema, bQ as resourceSourceSchema, bR as settingFieldSchema, s as settings, bS as settingsFieldsSchema, bT as settingsValuesSchema, bU as solanaAddressSchema, bV as solanaBalanceSchema, r as streak, bW as streakPolicySchema, bX as streakProgressSchema, bY as textEvidenceSchema, bZ as textOptionsSchema, b_ as trackerArtifactSchema, b$ as trackerContentQuerySchema, c0 as trackerContentReadSchema, c1 as trackerContentSchema, c2 as trackerControlSchema, c3 as trackerDefinitionSchema, c4 as trackerIngestResultSchema, c5 as trackerIngestSchema, c6 as trackerPageSchema, c7 as trackerPreviewInputSchema, c8 as trackerPreviewLimits, c9 as trackerPreviewSchema, ca as trackerQuerySchema, cb as trackerRecordInputSchema, cc as trackerRecordSchema, cd as trackerSourceSchema, ce as trackerStatusSchema, cf as trackerSummarySchema, cg as urlEvidenceSchema, ch as urlOptionsSchema, ci as validateSubmissionValue, cj as valueEvidenceSchema, ck as walletChallengeSchema, cl as walletConnectionSchema, x, cm as xConnectionSchema, cn as xContentBodySchema, co as xIdSchema, cp as xPostId, cq as xPostSchema, cr as xProfileSchema, cs as xRequestSchema, ct as xTweetSchema } from './submission-input-CK4Dy19H.js';
3
3
  import { z } from 'zod';
4
- import { errorSchema, QuizEvidence, Attempt, SubmitInput, MemberProgress, questDescriptionSchema, PublishedRelease, ReviewListOptions, MemberListOptions, ReleaseInput, beginHandoverSchema, contentPerformanceQuerySchema } from './schema.js';
5
- export { ContentPerformanceSnapshot, Decision, Entitlement, MemberPage, PhotoResult, PickupAvailability, QuestAvailability, QuestDescription, QuestPresentation, QuestSettingsInput, ReviewPage, Reward, Snapshot, SubmissionEvidence, TextResult, TextReviewInput, TieredRewardDefinition, artifactSchema, attemptSchema, batchReleaseSchema, completionRecordSchema, configurePickupSchema, confirmHandoverSchema, contentPerformancePageSchema, contentPerformanceSnapshotSchema, createStockItemSchema, decisionSchema, entitlementSchema, eventSchema, evidenceSchema, identifier, integrationRewardSchema, mediaUrlSchema, memberListSchema, memberPageSchema, memberProgressSchema, photoResultSchema, pickupAllocationSchema, pickupAvailabilitySchema, pickupCatalogSchema, pickupPolicySchema, pickupSelectionSchema, pointsRewardSchema, prerequisiteSchema, publishedReleaseSchema, questAvailabilitySchema, questPresentationSchema, questSettingsInputSchema, quizAnswersSchema, quizEvidenceSchema, releaseSchema, reservationSchema, reviewItemSchema, reviewListSchema, reviewModeSchema, reviewPageSchema, rewardBundleSchema, rewardKey, rewardSchema, snapshotSchema, staffDecisionSchema, stockItemSchema, stockSchema, storedReviewModeSchema, submissionEvidenceSchema, submitSchema, templateSchema, textResultSchema, textReviewInputSchema, tierRewardSchema, tieredRewardDefinitionSchema, triggerSchema } from './schema.js';
4
+ import { errorSchema, QuizEvidence, Attempt, SubmitInput, MemberProgress, questDescriptionSchema, PublishedRelease, ReleaseInput, beginHandoverSchema, contentPerformanceQuerySchema } from './schema.js';
5
+ export { ContentPerformanceSnapshot, Decision, Entitlement, MemberPage, PhotoResult, PickupAvailability, QuestAvailability, QuestDescription, QuestPresentation, QuestSettingsInput, ReviewPage, Reward, Snapshot, SubmissionEvidence, TextResult, TextReviewInput, TieredRewardDefinition, TieredRewardReference, artifactSchema, attemptSchema, batchReleaseSchema, completionRecordSchema, configurePickupSchema, confirmHandoverSchema, contentPerformancePageSchema, contentPerformanceSnapshotSchema, createStockItemSchema, decisionSchema, entitlementSchema, eventSchema, evidenceSchema, identifier, integrationRewardSchema, mediaUrlSchema, memberListSchema, memberPageSchema, memberProgressSchema, photoResultSchema, pickupAllocationSchema, pickupAvailabilitySchema, pickupCatalogSchema, pickupPolicySchema, pickupSelectionSchema, pointsRewardSchema, prerequisiteSchema, publishedReleaseSchema, questAvailabilitySchema, questPresentationSchema, questSettingsInputSchema, quizAnswersSchema, quizEvidenceSchema, releaseSchema, reservationSchema, reviewItemSchema, reviewListSchema, reviewModeSchema, reviewPageSchema, rewardBundleSchema, rewardKey, rewardSchema, snapshotSchema, staffDecisionSchema, stockItemSchema, stockSchema, storedReviewModeSchema, submissionEvidenceSchema, submitSchema, templateSchema, textResultSchema, textReviewInputSchema, tierRewardSchema, tieredRewardDefinitionSchema, tieredRewardReferenceSchema, triggerSchema } from './schema.js';
6
6
 
7
7
  declare class RelayError extends Error {
8
8
  readonly status: number;
@@ -199,10 +199,10 @@ type ProgressObserver = {
199
199
  };
200
200
 
201
201
  declare const interactionSchema: z.ZodEnum<{
202
+ staff: "staff";
202
203
  quiz: "quiz";
203
- url: "url";
204
204
  text: "text";
205
- staff: "staff";
205
+ url: "url";
206
206
  photo: "photo";
207
207
  automatic: "automatic";
208
208
  claim: "claim";
@@ -440,8 +440,8 @@ declare const questTypeVersionSchema: z.ZodObject<{
440
440
  budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
441
441
  id: z.ZodString;
442
442
  scope: z.ZodEnum<{
443
- member: "member";
444
443
  project: "project";
444
+ member: "member";
445
445
  }>;
446
446
  period: z.ZodEnum<{
447
447
  day: "day";
@@ -840,8 +840,8 @@ declare const questCatalogSchema: z.ZodObject<{
840
840
  budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
841
841
  id: z.ZodString;
842
842
  scope: z.ZodEnum<{
843
- member: "member";
844
843
  project: "project";
844
+ member: "member";
845
845
  }>;
846
846
  period: z.ZodEnum<{
847
847
  day: "day";
@@ -1184,8 +1184,8 @@ declare const questCatalogSchema: z.ZodObject<{
1184
1184
  budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
1185
1185
  id: z.ZodString;
1186
1186
  scope: z.ZodEnum<{
1187
- member: "member";
1188
1187
  project: "project";
1188
+ member: "member";
1189
1189
  }>;
1190
1190
  period: z.ZodEnum<{
1191
1191
  day: "day";
@@ -1281,7 +1281,7 @@ declare const questCatalogSchema: z.ZodObject<{
1281
1281
  createdAt: z.ZodNumber;
1282
1282
  }, z.core.$strip>, z.ZodTransform<{
1283
1283
  quest: string;
1284
- runtimeVersion: 1 | 2;
1284
+ runtimeVersion: 2 | 1;
1285
1285
  title: string;
1286
1286
  presentation: {
1287
1287
  quiz?: {
@@ -1318,12 +1318,12 @@ declare const questCatalogSchema: z.ZodObject<{
1318
1318
  kind: "resource";
1319
1319
  default: string;
1320
1320
  source: {
1321
+ provider: "domino";
1322
+ resource: "point-ledger";
1323
+ } | {
1321
1324
  provider: "discord";
1322
1325
  resource: "channel";
1323
1326
  types: ("text" | "announcement")[];
1324
- } | {
1325
- provider: "domino";
1326
- resource: "point-ledger";
1327
1327
  } | {
1328
1328
  provider: "discord";
1329
1329
  resource: "role";
@@ -1462,7 +1462,7 @@ declare const questCatalogSchema: z.ZodObject<{
1462
1462
  visibility: "visible" | "hidden";
1463
1463
  budgets: {
1464
1464
  id: string;
1465
- scope: "member" | "project";
1465
+ scope: "project" | "member";
1466
1466
  period: "day" | "lifetime";
1467
1467
  limit: number;
1468
1468
  cost: number | {
@@ -1542,10 +1542,10 @@ declare const questCatalogSchema: z.ZodObject<{
1542
1542
  createdAt: number;
1543
1543
  }>>]>>>;
1544
1544
  supportedInteractions: z.ZodArray<z.ZodEnum<{
1545
+ staff: "staff";
1545
1546
  quiz: "quiz";
1546
- url: "url";
1547
1547
  text: "text";
1548
- staff: "staff";
1548
+ url: "url";
1549
1549
  photo: "photo";
1550
1550
  automatic: "automatic";
1551
1551
  claim: "claim";
@@ -1575,10 +1575,10 @@ declare const catalogDeploymentSchema: z.ZodObject<{
1575
1575
  id?: string | undefined;
1576
1576
  }>>>>;
1577
1577
  supportedInteractions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1578
+ staff: "staff";
1578
1579
  quiz: "quiz";
1579
- url: "url";
1580
1580
  text: "text";
1581
- staff: "staff";
1581
+ url: "url";
1582
1582
  photo: "photo";
1583
1583
  automatic: "automatic";
1584
1584
  claim: "claim";
@@ -1817,8 +1817,8 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
1817
1817
  budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
1818
1818
  id: z.ZodString;
1819
1819
  scope: z.ZodEnum<{
1820
- member: "member";
1821
1820
  project: "project";
1821
+ member: "member";
1822
1822
  }>;
1823
1823
  period: z.ZodEnum<{
1824
1824
  day: "day";
@@ -1845,10 +1845,10 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
1845
1845
  title: z.ZodString;
1846
1846
  }, z.core.$strict>>;
1847
1847
  supportedInteractions: z.ZodArray<z.ZodEnum<{
1848
+ staff: "staff";
1848
1849
  quiz: "quiz";
1849
- url: "url";
1850
1850
  text: "text";
1851
- staff: "staff";
1851
+ url: "url";
1852
1852
  photo: "photo";
1853
1853
  automatic: "automatic";
1854
1854
  claim: "claim";
@@ -1893,6 +1893,32 @@ declare const publishQuestDraftSchema: z.ZodObject<{
1893
1893
  id: z.ZodString;
1894
1894
  expectedRevision: z.ZodNumber;
1895
1895
  }, z.core.$strict>;
1896
+ /**
1897
+ * A quest reward as a participant sees it. `label` is display text, such as
1898
+ * "10 XP"; read amounts and ledgers from the fields rather than the label.
1899
+ */
1900
+ declare const questRewardViewSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1901
+ kind: z.ZodLiteral<"points">;
1902
+ label: z.ZodString;
1903
+ amount: z.ZodNumber;
1904
+ ledger: z.ZodObject<{
1905
+ id: z.ZodString;
1906
+ key: z.ZodNullable<z.ZodString>;
1907
+ name: z.ZodString;
1908
+ }, z.core.$strip>;
1909
+ }, z.core.$strip>, z.ZodObject<{
1910
+ kind: z.ZodLiteral<"tier">;
1911
+ label: z.ZodString;
1912
+ reward: z.ZodObject<{
1913
+ id: z.ZodString;
1914
+ key: z.ZodNullable<z.ZodString>;
1915
+ title: z.ZodString;
1916
+ }, z.core.$strip>;
1917
+ tier: z.ZodString;
1918
+ }, z.core.$strip>, z.ZodObject<{
1919
+ kind: z.ZodLiteral<"integration">;
1920
+ label: z.ZodString;
1921
+ }, z.core.$strip>], "kind">;
1896
1922
  declare const questViewSchema: z.ZodObject<{
1897
1923
  quest: z.ZodString;
1898
1924
  key: z.ZodOptional<z.ZodString>;
@@ -1918,10 +1944,10 @@ declare const questViewSchema: z.ZodObject<{
1918
1944
  }, z.core.$strict>>;
1919
1945
  }, z.core.$strict>>;
1920
1946
  connections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1947
+ discord: "discord";
1921
1948
  google: "google";
1922
1949
  apple: "apple";
1923
1950
  x: "x";
1924
- discord: "discord";
1925
1951
  }>>>;
1926
1952
  trigger: z.ZodUnion<readonly [z.ZodObject<{
1927
1953
  kind: z.ZodLiteral<"manual">;
@@ -1988,8 +2014,8 @@ declare const questViewSchema: z.ZodObject<{
1988
2014
  kind: z.ZodLiteral<"available">;
1989
2015
  input: z.ZodEnum<{
1990
2016
  quiz: "quiz";
1991
- url: "url";
1992
2017
  text: "text";
2018
+ url: "url";
1993
2019
  photo: "photo";
1994
2020
  none: "none";
1995
2021
  }>;
@@ -2088,12 +2114,12 @@ declare const questViewSchema: z.ZodObject<{
2088
2114
  value: z.ZodString;
2089
2115
  }, z.core.$strict>]>>;
2090
2116
  status: z.ZodEnum<{
2091
- "needs-review": "needs-review";
2092
2117
  queued: "queued";
2093
2118
  evaluating: "evaluating";
2094
2119
  accepted: "accepted";
2095
2120
  progressed: "progressed";
2096
2121
  rejected: "rejected";
2122
+ "needs-review": "needs-review";
2097
2123
  failed: "failed";
2098
2124
  }>;
2099
2125
  reason: z.ZodNullable<z.ZodString>;
@@ -2131,10 +2157,10 @@ declare const questViewSchema: z.ZodObject<{
2131
2157
  }, z.core.$strip>>;
2132
2158
  release: z.ZodString;
2133
2159
  interaction: z.ZodEnum<{
2160
+ staff: "staff";
2134
2161
  quiz: "quiz";
2135
- url: "url";
2136
2162
  text: "text";
2137
- staff: "staff";
2163
+ url: "url";
2138
2164
  photo: "photo";
2139
2165
  automatic: "automatic";
2140
2166
  claim: "claim";
@@ -2144,9 +2170,28 @@ declare const questViewSchema: z.ZodObject<{
2144
2170
  paused: "paused";
2145
2171
  archived: "archived";
2146
2172
  }>;
2147
- rewards: z.ZodArray<z.ZodObject<{
2173
+ rewards: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2174
+ kind: z.ZodLiteral<"points">;
2148
2175
  label: z.ZodString;
2149
- }, z.core.$strip>>;
2176
+ amount: z.ZodNumber;
2177
+ ledger: z.ZodObject<{
2178
+ id: z.ZodString;
2179
+ key: z.ZodNullable<z.ZodString>;
2180
+ name: z.ZodString;
2181
+ }, z.core.$strip>;
2182
+ }, z.core.$strip>, z.ZodObject<{
2183
+ kind: z.ZodLiteral<"tier">;
2184
+ label: z.ZodString;
2185
+ reward: z.ZodObject<{
2186
+ id: z.ZodString;
2187
+ key: z.ZodNullable<z.ZodString>;
2188
+ title: z.ZodString;
2189
+ }, z.core.$strip>;
2190
+ tier: z.ZodString;
2191
+ }, z.core.$strip>, z.ZodObject<{
2192
+ kind: z.ZodLiteral<"integration">;
2193
+ label: z.ZodString;
2194
+ }, z.core.$strip>], "kind">>;
2150
2195
  }, z.core.$strip>;
2151
2196
  declare const collectionViewSchema: z.ZodObject<{
2152
2197
  key: z.ZodOptional<z.ZodString>;
@@ -2177,10 +2222,10 @@ declare const collectionViewSchema: z.ZodObject<{
2177
2222
  }, z.core.$strict>>;
2178
2223
  }, z.core.$strict>>;
2179
2224
  connections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
2225
+ discord: "discord";
2180
2226
  google: "google";
2181
2227
  apple: "apple";
2182
2228
  x: "x";
2183
- discord: "discord";
2184
2229
  }>>>;
2185
2230
  trigger: z.ZodUnion<readonly [z.ZodObject<{
2186
2231
  kind: z.ZodLiteral<"manual">;
@@ -2247,8 +2292,8 @@ declare const collectionViewSchema: z.ZodObject<{
2247
2292
  kind: z.ZodLiteral<"available">;
2248
2293
  input: z.ZodEnum<{
2249
2294
  quiz: "quiz";
2250
- url: "url";
2251
2295
  text: "text";
2296
+ url: "url";
2252
2297
  photo: "photo";
2253
2298
  none: "none";
2254
2299
  }>;
@@ -2347,12 +2392,12 @@ declare const collectionViewSchema: z.ZodObject<{
2347
2392
  value: z.ZodString;
2348
2393
  }, z.core.$strict>]>>;
2349
2394
  status: z.ZodEnum<{
2350
- "needs-review": "needs-review";
2351
2395
  queued: "queued";
2352
2396
  evaluating: "evaluating";
2353
2397
  accepted: "accepted";
2354
2398
  progressed: "progressed";
2355
2399
  rejected: "rejected";
2400
+ "needs-review": "needs-review";
2356
2401
  failed: "failed";
2357
2402
  }>;
2358
2403
  reason: z.ZodNullable<z.ZodString>;
@@ -2390,10 +2435,10 @@ declare const collectionViewSchema: z.ZodObject<{
2390
2435
  }, z.core.$strip>>;
2391
2436
  release: z.ZodString;
2392
2437
  interaction: z.ZodEnum<{
2438
+ staff: "staff";
2393
2439
  quiz: "quiz";
2394
- url: "url";
2395
2440
  text: "text";
2396
- staff: "staff";
2441
+ url: "url";
2397
2442
  photo: "photo";
2398
2443
  automatic: "automatic";
2399
2444
  claim: "claim";
@@ -2403,9 +2448,28 @@ declare const collectionViewSchema: z.ZodObject<{
2403
2448
  paused: "paused";
2404
2449
  archived: "archived";
2405
2450
  }>;
2406
- rewards: z.ZodArray<z.ZodObject<{
2451
+ rewards: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2452
+ kind: z.ZodLiteral<"points">;
2407
2453
  label: z.ZodString;
2408
- }, z.core.$strip>>;
2454
+ amount: z.ZodNumber;
2455
+ ledger: z.ZodObject<{
2456
+ id: z.ZodString;
2457
+ key: z.ZodNullable<z.ZodString>;
2458
+ name: z.ZodString;
2459
+ }, z.core.$strip>;
2460
+ }, z.core.$strip>, z.ZodObject<{
2461
+ kind: z.ZodLiteral<"tier">;
2462
+ label: z.ZodString;
2463
+ reward: z.ZodObject<{
2464
+ id: z.ZodString;
2465
+ key: z.ZodNullable<z.ZodString>;
2466
+ title: z.ZodString;
2467
+ }, z.core.$strip>;
2468
+ tier: z.ZodString;
2469
+ }, z.core.$strip>, z.ZodObject<{
2470
+ kind: z.ZodLiteral<"integration">;
2471
+ label: z.ZodString;
2472
+ }, z.core.$strip>], "kind">>;
2409
2473
  }, z.core.$strip>>;
2410
2474
  }, z.core.$strip>;
2411
2475
  declare const questExperienceSchema: z.ZodObject<{
@@ -2435,10 +2499,10 @@ declare const questExperienceSchema: z.ZodObject<{
2435
2499
  }, z.core.$strict>>;
2436
2500
  }, z.core.$strict>>;
2437
2501
  connections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
2502
+ discord: "discord";
2438
2503
  google: "google";
2439
2504
  apple: "apple";
2440
2505
  x: "x";
2441
- discord: "discord";
2442
2506
  }>>>;
2443
2507
  trigger: z.ZodUnion<readonly [z.ZodObject<{
2444
2508
  kind: z.ZodLiteral<"manual">;
@@ -2505,8 +2569,8 @@ declare const questExperienceSchema: z.ZodObject<{
2505
2569
  kind: z.ZodLiteral<"available">;
2506
2570
  input: z.ZodEnum<{
2507
2571
  quiz: "quiz";
2508
- url: "url";
2509
2572
  text: "text";
2573
+ url: "url";
2510
2574
  photo: "photo";
2511
2575
  none: "none";
2512
2576
  }>;
@@ -2605,12 +2669,12 @@ declare const questExperienceSchema: z.ZodObject<{
2605
2669
  value: z.ZodString;
2606
2670
  }, z.core.$strict>]>>;
2607
2671
  status: z.ZodEnum<{
2608
- "needs-review": "needs-review";
2609
2672
  queued: "queued";
2610
2673
  evaluating: "evaluating";
2611
2674
  accepted: "accepted";
2612
2675
  progressed: "progressed";
2613
2676
  rejected: "rejected";
2677
+ "needs-review": "needs-review";
2614
2678
  failed: "failed";
2615
2679
  }>;
2616
2680
  reason: z.ZodNullable<z.ZodString>;
@@ -2648,10 +2712,10 @@ declare const questExperienceSchema: z.ZodObject<{
2648
2712
  }, z.core.$strip>>;
2649
2713
  release: z.ZodString;
2650
2714
  interaction: z.ZodEnum<{
2715
+ staff: "staff";
2651
2716
  quiz: "quiz";
2652
- url: "url";
2653
2717
  text: "text";
2654
- staff: "staff";
2718
+ url: "url";
2655
2719
  photo: "photo";
2656
2720
  automatic: "automatic";
2657
2721
  claim: "claim";
@@ -2661,9 +2725,28 @@ declare const questExperienceSchema: z.ZodObject<{
2661
2725
  paused: "paused";
2662
2726
  archived: "archived";
2663
2727
  }>;
2664
- rewards: z.ZodArray<z.ZodObject<{
2728
+ rewards: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2729
+ kind: z.ZodLiteral<"points">;
2665
2730
  label: z.ZodString;
2666
- }, z.core.$strip>>;
2731
+ amount: z.ZodNumber;
2732
+ ledger: z.ZodObject<{
2733
+ id: z.ZodString;
2734
+ key: z.ZodNullable<z.ZodString>;
2735
+ name: z.ZodString;
2736
+ }, z.core.$strip>;
2737
+ }, z.core.$strip>, z.ZodObject<{
2738
+ kind: z.ZodLiteral<"tier">;
2739
+ label: z.ZodString;
2740
+ reward: z.ZodObject<{
2741
+ id: z.ZodString;
2742
+ key: z.ZodNullable<z.ZodString>;
2743
+ title: z.ZodString;
2744
+ }, z.core.$strip>;
2745
+ tier: z.ZodString;
2746
+ }, z.core.$strip>, z.ZodObject<{
2747
+ kind: z.ZodLiteral<"integration">;
2748
+ label: z.ZodString;
2749
+ }, z.core.$strip>], "kind">>;
2667
2750
  }, z.core.$strip>>;
2668
2751
  collections: z.ZodArray<z.ZodObject<{
2669
2752
  key: z.ZodOptional<z.ZodString>;
@@ -2694,10 +2777,10 @@ declare const questExperienceSchema: z.ZodObject<{
2694
2777
  }, z.core.$strict>>;
2695
2778
  }, z.core.$strict>>;
2696
2779
  connections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
2780
+ discord: "discord";
2697
2781
  google: "google";
2698
2782
  apple: "apple";
2699
2783
  x: "x";
2700
- discord: "discord";
2701
2784
  }>>>;
2702
2785
  trigger: z.ZodUnion<readonly [z.ZodObject<{
2703
2786
  kind: z.ZodLiteral<"manual">;
@@ -2764,8 +2847,8 @@ declare const questExperienceSchema: z.ZodObject<{
2764
2847
  kind: z.ZodLiteral<"available">;
2765
2848
  input: z.ZodEnum<{
2766
2849
  quiz: "quiz";
2767
- url: "url";
2768
2850
  text: "text";
2851
+ url: "url";
2769
2852
  photo: "photo";
2770
2853
  none: "none";
2771
2854
  }>;
@@ -2864,12 +2947,12 @@ declare const questExperienceSchema: z.ZodObject<{
2864
2947
  value: z.ZodString;
2865
2948
  }, z.core.$strict>]>>;
2866
2949
  status: z.ZodEnum<{
2867
- "needs-review": "needs-review";
2868
2950
  queued: "queued";
2869
2951
  evaluating: "evaluating";
2870
2952
  accepted: "accepted";
2871
2953
  progressed: "progressed";
2872
2954
  rejected: "rejected";
2955
+ "needs-review": "needs-review";
2873
2956
  failed: "failed";
2874
2957
  }>;
2875
2958
  reason: z.ZodNullable<z.ZodString>;
@@ -2907,10 +2990,10 @@ declare const questExperienceSchema: z.ZodObject<{
2907
2990
  }, z.core.$strip>>;
2908
2991
  release: z.ZodString;
2909
2992
  interaction: z.ZodEnum<{
2993
+ staff: "staff";
2910
2994
  quiz: "quiz";
2911
- url: "url";
2912
2995
  text: "text";
2913
- staff: "staff";
2996
+ url: "url";
2914
2997
  photo: "photo";
2915
2998
  automatic: "automatic";
2916
2999
  claim: "claim";
@@ -2920,13 +3003,33 @@ declare const questExperienceSchema: z.ZodObject<{
2920
3003
  paused: "paused";
2921
3004
  archived: "archived";
2922
3005
  }>;
2923
- rewards: z.ZodArray<z.ZodObject<{
3006
+ rewards: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
3007
+ kind: z.ZodLiteral<"points">;
2924
3008
  label: z.ZodString;
2925
- }, z.core.$strip>>;
3009
+ amount: z.ZodNumber;
3010
+ ledger: z.ZodObject<{
3011
+ id: z.ZodString;
3012
+ key: z.ZodNullable<z.ZodString>;
3013
+ name: z.ZodString;
3014
+ }, z.core.$strip>;
3015
+ }, z.core.$strip>, z.ZodObject<{
3016
+ kind: z.ZodLiteral<"tier">;
3017
+ label: z.ZodString;
3018
+ reward: z.ZodObject<{
3019
+ id: z.ZodString;
3020
+ key: z.ZodNullable<z.ZodString>;
3021
+ title: z.ZodString;
3022
+ }, z.core.$strip>;
3023
+ tier: z.ZodString;
3024
+ }, z.core.$strip>, z.ZodObject<{
3025
+ kind: z.ZodLiteral<"integration">;
3026
+ label: z.ZodString;
3027
+ }, z.core.$strip>], "kind">>;
2926
3028
  }, z.core.$strip>>;
2927
3029
  }, z.core.$strip>>;
2928
3030
  }, z.core.$strip>;
2929
3031
  type QuestView = z.infer<typeof questViewSchema>;
3032
+ type QuestRewardView = z.infer<typeof questRewardViewSchema>;
2930
3033
  type QuestCatalog = z.infer<typeof questCatalogSchema>;
2931
3034
  type QuestInstance = z.infer<typeof questInstanceSchema>;
2932
3035
  type QuestDraft = z.infer<typeof questDraftSchema>;
@@ -3227,8 +3330,8 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
3227
3330
  budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
3228
3331
  id: z.ZodString;
3229
3332
  scope: z.ZodEnum<{
3230
- member: "member";
3231
3333
  project: "project";
3334
+ member: "member";
3232
3335
  }>;
3233
3336
  period: z.ZodEnum<{
3234
3337
  day: "day";
@@ -3324,7 +3427,7 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
3324
3427
  createdAt: z.ZodNumber;
3325
3428
  }, z.core.$strip>, z.ZodTransform<{
3326
3429
  quest: string;
3327
- runtimeVersion: 1 | 2;
3430
+ runtimeVersion: 2 | 1;
3328
3431
  title: string;
3329
3432
  presentation: {
3330
3433
  quiz?: {
@@ -3361,12 +3464,12 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
3361
3464
  kind: "resource";
3362
3465
  default: string;
3363
3466
  source: {
3467
+ provider: "domino";
3468
+ resource: "point-ledger";
3469
+ } | {
3364
3470
  provider: "discord";
3365
3471
  resource: "channel";
3366
3472
  types: ("text" | "announcement")[];
3367
- } | {
3368
- provider: "domino";
3369
- resource: "point-ledger";
3370
3473
  } | {
3371
3474
  provider: "discord";
3372
3475
  resource: "role";
@@ -3505,7 +3608,7 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
3505
3608
  visibility: "visible" | "hidden";
3506
3609
  budgets: {
3507
3610
  id: string;
3508
- scope: "member" | "project";
3611
+ scope: "project" | "member";
3509
3612
  period: "day" | "lifetime";
3510
3613
  limit: number;
3511
3614
  cost: number | {
@@ -3652,7 +3755,19 @@ declare const pointLedgerDeclarationSchema: z.ZodObject<{
3652
3755
  description: z.ZodDefault<z.ZodString>;
3653
3756
  key: z.ZodString;
3654
3757
  }, z.core.$strict>;
3758
+ /**
3759
+ * What an app needs to recognize and name a ledger it finds in a read. `key` is
3760
+ * the authoring key, null for ledgers created in Console without one.
3761
+ * Reads return ledger IDs; match them against `key` rather than comparing
3762
+ * an ID with an authoring key.
3763
+ */
3764
+ declare const pointLedgerReferenceSchema: z.ZodObject<{
3765
+ id: z.ZodString;
3766
+ key: z.ZodNullable<z.ZodString>;
3767
+ name: z.ZodString;
3768
+ }, z.core.$strip>;
3655
3769
  type PointLedger = z.infer<typeof pointLedgerSchema>;
3770
+ type PointLedgerReference = z.infer<typeof pointLedgerReferenceSchema>;
3656
3771
 
3657
3772
  declare const rewardDeliverySchema: z.ZodObject<{
3658
3773
  id: z.ZodString;
@@ -3663,8 +3778,8 @@ declare const rewardDeliverySchema: z.ZodObject<{
3663
3778
  action: z.ZodLiteral<"grant-role">;
3664
3779
  roleId: z.ZodString;
3665
3780
  status: z.ZodEnum<{
3666
- pending: "pending";
3667
3781
  failed: "failed";
3782
+ pending: "pending";
3668
3783
  delivered: "delivered";
3669
3784
  }>;
3670
3785
  attempts: z.ZodNumber;
@@ -3683,8 +3798,8 @@ declare const rewardDeliveriesSchema: z.ZodObject<{
3683
3798
  action: z.ZodLiteral<"grant-role">;
3684
3799
  roleId: z.ZodString;
3685
3800
  status: z.ZodEnum<{
3686
- pending: "pending";
3687
3801
  failed: "failed";
3802
+ pending: "pending";
3688
3803
  delivered: "delivered";
3689
3804
  }>;
3690
3805
  attempts: z.ZodNumber;
@@ -3853,10 +3968,10 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
3853
3968
  }>;
3854
3969
  }, z.core.$strip>>>;
3855
3970
  supportedInteractions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
3971
+ staff: "staff";
3856
3972
  quiz: "quiz";
3857
- url: "url";
3858
3973
  text: "text";
3859
- staff: "staff";
3974
+ url: "url";
3860
3975
  photo: "photo";
3861
3976
  automatic: "automatic";
3862
3977
  claim: "claim";
@@ -3936,6 +4051,7 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
3936
4051
  tier: z.ZodString;
3937
4052
  }, z.core.$strict>]>>>;
3938
4053
  }, z.core.$strict>>;
4054
+ enabled: z.ZodDefault<z.ZodBoolean>;
3939
4055
  qualification: z.ZodDiscriminatedUnion<[z.ZodObject<{
3940
4056
  kind: z.ZodLiteral<"signup">;
3941
4057
  }, z.core.$strict>, z.ZodObject<{
@@ -3944,7 +4060,6 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
3944
4060
  }, z.core.$strict>, z.ZodObject<{
3945
4061
  kind: z.ZodLiteral<"external">;
3946
4062
  }, z.core.$strict>], "kind">;
3947
- enabled: z.ZodDefault<z.ZodBoolean>;
3948
4063
  inviterGroup: z.ZodOptional<z.ZodString>;
3949
4064
  milestones: z.ZodDefault<z.ZodArray<z.ZodObject<{
3950
4065
  id: z.ZodString;
@@ -4031,6 +4146,7 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
4031
4146
  amount: number;
4032
4147
  })[];
4033
4148
  };
4149
+ enabled: boolean;
4034
4150
  qualification: {
4035
4151
  kind: "signup";
4036
4152
  } | {
@@ -4039,7 +4155,6 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
4039
4155
  } | {
4040
4156
  kind: "external";
4041
4157
  };
4042
- enabled: boolean;
4043
4158
  milestones: {
4044
4159
  id: string;
4045
4160
  count: number;
@@ -4128,6 +4243,7 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
4128
4243
  amount: number;
4129
4244
  })[];
4130
4245
  };
4246
+ enabled: boolean;
4131
4247
  qualification: {
4132
4248
  kind: "signup";
4133
4249
  } | {
@@ -4136,7 +4252,6 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
4136
4252
  } | {
4137
4253
  kind: "external";
4138
4254
  };
4139
- enabled: boolean;
4140
4255
  milestones: {
4141
4256
  id: string;
4142
4257
  count: number;
@@ -4181,7 +4296,6 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
4181
4296
  leaderboards: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
4182
4297
  title: z.ZodString;
4183
4298
  balance: z.ZodString;
4184
- group: z.ZodOptional<z.ZodString>;
4185
4299
  score: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
4186
4300
  kind: z.ZodLiteral<"balance">;
4187
4301
  }, z.core.$strict>, z.ZodObject<{
@@ -4230,6 +4344,7 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
4230
4344
  participants: "participants";
4231
4345
  public: "public";
4232
4346
  }>>;
4347
+ group: z.ZodOptional<z.ZodString>;
4233
4348
  key: z.ZodOptional<z.ZodString>;
4234
4349
  id: z.ZodOptional<z.ZodString>;
4235
4350
  }, z.core.$strict>, z.ZodTransform<Omit<{
@@ -4323,6 +4438,12 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
4323
4438
  }>>, z.ZodObject<{
4324
4439
  code: z.ZodString;
4325
4440
  }, z.core.$strict>]>>>;
4441
+ images: z.ZodDefault<z.ZodArray<z.ZodObject<{
4442
+ key: z.ZodString;
4443
+ sha256: z.ZodString;
4444
+ size: z.ZodNumber;
4445
+ path: z.ZodOptional<z.ZodString>;
4446
+ }, z.core.$strict>>>;
4326
4447
  }, z.core.$strict>;
4327
4448
  /** One manifest bundle. Missing entries never delete remotely owned resources. */
4328
4449
  declare const projectDeploymentSchema: z.ZodObject<{
@@ -4348,10 +4469,10 @@ declare const projectDeploymentSchema: z.ZodObject<{
4348
4469
  }>;
4349
4470
  }, z.core.$strip>>>;
4350
4471
  supportedInteractions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
4472
+ staff: "staff";
4351
4473
  quiz: "quiz";
4352
- url: "url";
4353
4474
  text: "text";
4354
- staff: "staff";
4475
+ url: "url";
4355
4476
  photo: "photo";
4356
4477
  automatic: "automatic";
4357
4478
  claim: "claim";
@@ -4431,6 +4552,7 @@ declare const projectDeploymentSchema: z.ZodObject<{
4431
4552
  tier: z.ZodString;
4432
4553
  }, z.core.$strict>]>>>;
4433
4554
  }, z.core.$strict>>;
4555
+ enabled: z.ZodDefault<z.ZodBoolean>;
4434
4556
  qualification: z.ZodDiscriminatedUnion<[z.ZodObject<{
4435
4557
  kind: z.ZodLiteral<"signup">;
4436
4558
  }, z.core.$strict>, z.ZodObject<{
@@ -4439,7 +4561,6 @@ declare const projectDeploymentSchema: z.ZodObject<{
4439
4561
  }, z.core.$strict>, z.ZodObject<{
4440
4562
  kind: z.ZodLiteral<"external">;
4441
4563
  }, z.core.$strict>], "kind">;
4442
- enabled: z.ZodDefault<z.ZodBoolean>;
4443
4564
  inviterGroup: z.ZodOptional<z.ZodString>;
4444
4565
  milestones: z.ZodDefault<z.ZodArray<z.ZodObject<{
4445
4566
  id: z.ZodString;
@@ -4526,6 +4647,7 @@ declare const projectDeploymentSchema: z.ZodObject<{
4526
4647
  amount: number;
4527
4648
  })[];
4528
4649
  };
4650
+ enabled: boolean;
4529
4651
  qualification: {
4530
4652
  kind: "signup";
4531
4653
  } | {
@@ -4534,7 +4656,6 @@ declare const projectDeploymentSchema: z.ZodObject<{
4534
4656
  } | {
4535
4657
  kind: "external";
4536
4658
  };
4537
- enabled: boolean;
4538
4659
  milestones: {
4539
4660
  id: string;
4540
4661
  count: number;
@@ -4623,6 +4744,7 @@ declare const projectDeploymentSchema: z.ZodObject<{
4623
4744
  amount: number;
4624
4745
  })[];
4625
4746
  };
4747
+ enabled: boolean;
4626
4748
  qualification: {
4627
4749
  kind: "signup";
4628
4750
  } | {
@@ -4631,7 +4753,6 @@ declare const projectDeploymentSchema: z.ZodObject<{
4631
4753
  } | {
4632
4754
  kind: "external";
4633
4755
  };
4634
- enabled: boolean;
4635
4756
  milestones: {
4636
4757
  id: string;
4637
4758
  count: number;
@@ -4676,7 +4797,6 @@ declare const projectDeploymentSchema: z.ZodObject<{
4676
4797
  leaderboards: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
4677
4798
  title: z.ZodString;
4678
4799
  balance: z.ZodString;
4679
- group: z.ZodOptional<z.ZodString>;
4680
4800
  score: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
4681
4801
  kind: z.ZodLiteral<"balance">;
4682
4802
  }, z.core.$strict>, z.ZodObject<{
@@ -4725,6 +4845,7 @@ declare const projectDeploymentSchema: z.ZodObject<{
4725
4845
  participants: "participants";
4726
4846
  public: "public";
4727
4847
  }>>;
4848
+ group: z.ZodOptional<z.ZodString>;
4728
4849
  key: z.ZodOptional<z.ZodString>;
4729
4850
  id: z.ZodOptional<z.ZodString>;
4730
4851
  }, z.core.$strict>, z.ZodTransform<Omit<{
@@ -4818,6 +4939,12 @@ declare const projectDeploymentSchema: z.ZodObject<{
4818
4939
  }>>, z.ZodObject<{
4819
4940
  code: z.ZodString;
4820
4941
  }, z.core.$strict>]>>>;
4942
+ images: z.ZodDefault<z.ZodArray<z.ZodObject<{
4943
+ key: z.ZodString;
4944
+ sha256: z.ZodString;
4945
+ size: z.ZodNumber;
4946
+ path: z.ZodOptional<z.ZodString>;
4947
+ }, z.core.$strict>>>;
4821
4948
  releases: z.ZodDefault<z.ZodArray<z.ZodObject<{
4822
4949
  code: z.ZodString;
4823
4950
  settings: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodObject<{
@@ -5213,8 +5340,8 @@ declare const deploymentPreviewSchema: z.ZodObject<{
5213
5340
  budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
5214
5341
  id: z.ZodString;
5215
5342
  scope: z.ZodEnum<{
5216
- member: "member";
5217
5343
  project: "project";
5344
+ member: "member";
5218
5345
  }>;
5219
5346
  period: z.ZodEnum<{
5220
5347
  day: "day";
@@ -5310,7 +5437,7 @@ declare const deploymentPreviewSchema: z.ZodObject<{
5310
5437
  createdAt: z.ZodNumber;
5311
5438
  }, z.core.$strip>, z.ZodTransform<{
5312
5439
  quest: string;
5313
- runtimeVersion: 1 | 2;
5440
+ runtimeVersion: 2 | 1;
5314
5441
  title: string;
5315
5442
  presentation: {
5316
5443
  quiz?: {
@@ -5347,12 +5474,12 @@ declare const deploymentPreviewSchema: z.ZodObject<{
5347
5474
  kind: "resource";
5348
5475
  default: string;
5349
5476
  source: {
5477
+ provider: "domino";
5478
+ resource: "point-ledger";
5479
+ } | {
5350
5480
  provider: "discord";
5351
5481
  resource: "channel";
5352
5482
  types: ("text" | "announcement")[];
5353
- } | {
5354
- provider: "domino";
5355
- resource: "point-ledger";
5356
5483
  } | {
5357
5484
  provider: "discord";
5358
5485
  resource: "role";
@@ -5491,7 +5618,7 @@ declare const deploymentPreviewSchema: z.ZodObject<{
5491
5618
  visibility: "visible" | "hidden";
5492
5619
  budgets: {
5493
5620
  id: string;
5494
- scope: "member" | "project";
5621
+ scope: "project" | "member";
5495
5622
  period: "day" | "lifetime";
5496
5623
  limit: number;
5497
5624
  cost: number | {
@@ -5801,8 +5928,8 @@ declare const deploymentPreviewSchema: z.ZodObject<{
5801
5928
  budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
5802
5929
  id: z.ZodString;
5803
5930
  scope: z.ZodEnum<{
5804
- member: "member";
5805
5931
  project: "project";
5932
+ member: "member";
5806
5933
  }>;
5807
5934
  period: z.ZodEnum<{
5808
5935
  day: "day";
@@ -5830,10 +5957,10 @@ declare const deploymentPreviewSchema: z.ZodObject<{
5830
5957
  quests: z.ZodArray<z.ZodString>;
5831
5958
  }, z.core.$strict>>;
5832
5959
  supportedInteractions: z.ZodArray<z.ZodEnum<{
5960
+ staff: "staff";
5833
5961
  quiz: "quiz";
5834
- url: "url";
5835
5962
  text: "text";
5836
- staff: "staff";
5963
+ url: "url";
5837
5964
  photo: "photo";
5838
5965
  automatic: "automatic";
5839
5966
  claim: "claim";
@@ -6079,6 +6206,18 @@ declare const deploymentPreviewSchema: z.ZodObject<{
6079
6206
  nextCursor: z.ZodNullable<z.ZodString>;
6080
6207
  }, z.core.$strip>;
6081
6208
  }, z.core.$strip>>>;
6209
+ images: z.ZodDefault<z.ZodArray<z.ZodObject<{
6210
+ key: z.ZodString;
6211
+ sha256: z.ZodString;
6212
+ type: z.ZodEnum<{
6213
+ "image/jpeg": "image/jpeg";
6214
+ "image/png": "image/png";
6215
+ "image/webp": "image/webp";
6216
+ }>;
6217
+ size: z.ZodNumber;
6218
+ width: z.ZodNumber;
6219
+ height: z.ZodNumber;
6220
+ }, z.core.$strict>>>;
6082
6221
  }, z.core.$strip>;
6083
6222
  declare const publishDeploymentSchema: z.ZodObject<{
6084
6223
  id: z.ZodString;
@@ -6460,8 +6599,8 @@ declare const deploymentResultSchema: z.ZodObject<{
6460
6599
  budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
6461
6600
  id: z.ZodString;
6462
6601
  scope: z.ZodEnum<{
6463
- member: "member";
6464
6602
  project: "project";
6603
+ member: "member";
6465
6604
  }>;
6466
6605
  period: z.ZodEnum<{
6467
6606
  day: "day";
@@ -6557,7 +6696,7 @@ declare const deploymentResultSchema: z.ZodObject<{
6557
6696
  createdAt: z.ZodNumber;
6558
6697
  }, z.core.$strip>, z.ZodTransform<{
6559
6698
  quest: string;
6560
- runtimeVersion: 1 | 2;
6699
+ runtimeVersion: 2 | 1;
6561
6700
  title: string;
6562
6701
  presentation: {
6563
6702
  quiz?: {
@@ -6594,12 +6733,12 @@ declare const deploymentResultSchema: z.ZodObject<{
6594
6733
  kind: "resource";
6595
6734
  default: string;
6596
6735
  source: {
6736
+ provider: "domino";
6737
+ resource: "point-ledger";
6738
+ } | {
6597
6739
  provider: "discord";
6598
6740
  resource: "channel";
6599
6741
  types: ("text" | "announcement")[];
6600
- } | {
6601
- provider: "domino";
6602
- resource: "point-ledger";
6603
6742
  } | {
6604
6743
  provider: "discord";
6605
6744
  resource: "role";
@@ -6738,7 +6877,7 @@ declare const deploymentResultSchema: z.ZodObject<{
6738
6877
  visibility: "visible" | "hidden";
6739
6878
  budgets: {
6740
6879
  id: string;
6741
- scope: "member" | "project";
6880
+ scope: "project" | "member";
6742
6881
  period: "day" | "lifetime";
6743
6882
  limit: number;
6744
6883
  cost: number | {
@@ -7048,8 +7187,8 @@ declare const deploymentResultSchema: z.ZodObject<{
7048
7187
  budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
7049
7188
  id: z.ZodString;
7050
7189
  scope: z.ZodEnum<{
7051
- member: "member";
7052
7190
  project: "project";
7191
+ member: "member";
7053
7192
  }>;
7054
7193
  period: z.ZodEnum<{
7055
7194
  day: "day";
@@ -7077,10 +7216,10 @@ declare const deploymentResultSchema: z.ZodObject<{
7077
7216
  quests: z.ZodArray<z.ZodString>;
7078
7217
  }, z.core.$strict>>;
7079
7218
  supportedInteractions: z.ZodArray<z.ZodEnum<{
7219
+ staff: "staff";
7080
7220
  quiz: "quiz";
7081
- url: "url";
7082
7221
  text: "text";
7083
- staff: "staff";
7222
+ url: "url";
7084
7223
  photo: "photo";
7085
7224
  automatic: "automatic";
7086
7225
  claim: "claim";
@@ -7326,6 +7465,18 @@ declare const deploymentResultSchema: z.ZodObject<{
7326
7465
  nextCursor: z.ZodNullable<z.ZodString>;
7327
7466
  }, z.core.$strip>;
7328
7467
  }, z.core.$strip>>>;
7468
+ images: z.ZodDefault<z.ZodArray<z.ZodObject<{
7469
+ key: z.ZodString;
7470
+ sha256: z.ZodString;
7471
+ type: z.ZodEnum<{
7472
+ "image/jpeg": "image/jpeg";
7473
+ "image/png": "image/png";
7474
+ "image/webp": "image/webp";
7475
+ }>;
7476
+ size: z.ZodNumber;
7477
+ width: z.ZodNumber;
7478
+ height: z.ZodNumber;
7479
+ }, z.core.$strict>>>;
7329
7480
  revision: z.ZodNumber;
7330
7481
  }, z.core.$strip>;
7331
7482
  type DeploymentPreview = z.infer<typeof deploymentPreviewSchema>;
@@ -7579,7 +7730,7 @@ declare function createRelayClient(options: {
7579
7730
  accounts: {
7580
7731
  id: string;
7581
7732
  program: string;
7582
- kind: "milestone" | "fixed" | "bonus";
7733
+ kind: "fixed" | "milestone" | "bonus";
7583
7734
  balance: string;
7584
7735
  earned: number;
7585
7736
  settled: number;
@@ -7601,6 +7752,27 @@ declare function createRelayClient(options: {
7601
7752
  ok: true;
7602
7753
  }>;
7603
7754
  };
7755
+ tieredRewards: {
7756
+ /**
7757
+ * The project's tiered rewards with their keys. Entitlements and reward
7758
+ * definitions name them by ID: use this to find the ID for a key.
7759
+ */
7760
+ list: () => Promise<{
7761
+ id: string;
7762
+ key: string | null;
7763
+ }[]>;
7764
+ };
7765
+ pointLedgers: {
7766
+ /**
7767
+ * The project's point ledgers with their keys and names. Reads return
7768
+ * ledger IDs: use this to find the ID for a key, or a ledger's name.
7769
+ */
7770
+ list: () => Promise<{
7771
+ id: string;
7772
+ key: string | null;
7773
+ name: string;
7774
+ }[]>;
7775
+ };
7604
7776
  leaderboards: {
7605
7777
  list: () => Promise<{
7606
7778
  id: string;
@@ -7706,7 +7878,7 @@ declare function createRelayClient(options: {
7706
7878
  } | undefined;
7707
7879
  } | undefined;
7708
7880
  };
7709
- connections: ("google" | "apple" | "x" | "discord")[];
7881
+ connections: ("discord" | "google" | "apple" | "x")[];
7710
7882
  trigger: {
7711
7883
  kind: "automatic";
7712
7884
  observation?: {
@@ -7747,7 +7919,7 @@ declare function createRelayClient(options: {
7747
7919
  };
7748
7920
  availability: {
7749
7921
  kind: "available";
7750
- input: "quiz" | "url" | "text" | "photo" | "none";
7922
+ input: "quiz" | "text" | "url" | "photo" | "none";
7751
7923
  } | {
7752
7924
  kind: "completed";
7753
7925
  } | {
@@ -7796,7 +7968,7 @@ declare function createRelayClient(options: {
7796
7968
  quest: string;
7797
7969
  member: string;
7798
7970
  evidence: string | null;
7799
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
7971
+ status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
7800
7972
  reason: string | null;
7801
7973
  retries: number;
7802
7974
  generation: number;
@@ -7844,11 +8016,30 @@ declare function createRelayClient(options: {
7844
8016
  } | undefined;
7845
8017
  } | null;
7846
8018
  release: string;
7847
- interaction: "quiz" | "url" | "text" | "staff" | "photo" | "automatic" | "claim";
8019
+ interaction: "staff" | "quiz" | "text" | "url" | "photo" | "automatic" | "claim";
7848
8020
  lifecycle: "active" | "paused" | "archived";
7849
- rewards: {
8021
+ rewards: ({
8022
+ kind: "points";
7850
8023
  label: string;
7851
- }[];
8024
+ amount: number;
8025
+ ledger: {
8026
+ id: string;
8027
+ key: string | null;
8028
+ name: string;
8029
+ };
8030
+ } | {
8031
+ kind: "tier";
8032
+ label: string;
8033
+ reward: {
8034
+ id: string;
8035
+ key: string | null;
8036
+ title: string;
8037
+ };
8038
+ tier: string;
8039
+ } | {
8040
+ kind: "integration";
8041
+ label: string;
8042
+ })[];
7852
8043
  key?: string | undefined;
7853
8044
  streak?: {
7854
8045
  goal: number;
@@ -7887,7 +8078,7 @@ declare function createRelayClient(options: {
7887
8078
  quest: string;
7888
8079
  member: string;
7889
8080
  evidence: string | null;
7890
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
8081
+ status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
7891
8082
  reason: string | null;
7892
8083
  retries: number;
7893
8084
  generation: number;
@@ -7959,7 +8150,7 @@ declare function createRelayClient(options: {
7959
8150
  } | undefined;
7960
8151
  } | undefined;
7961
8152
  };
7962
- connections: ("google" | "apple" | "x" | "discord")[];
8153
+ connections: ("discord" | "google" | "apple" | "x")[];
7963
8154
  trigger: {
7964
8155
  kind: "automatic";
7965
8156
  observation?: {
@@ -8000,7 +8191,7 @@ declare function createRelayClient(options: {
8000
8191
  };
8001
8192
  availability: {
8002
8193
  kind: "available";
8003
- input: "quiz" | "url" | "text" | "photo" | "none";
8194
+ input: "quiz" | "text" | "url" | "photo" | "none";
8004
8195
  } | {
8005
8196
  kind: "completed";
8006
8197
  } | {
@@ -8049,7 +8240,7 @@ declare function createRelayClient(options: {
8049
8240
  quest: string;
8050
8241
  member: string;
8051
8242
  evidence: string | null;
8052
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
8243
+ status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
8053
8244
  reason: string | null;
8054
8245
  retries: number;
8055
8246
  generation: number;
@@ -8097,11 +8288,30 @@ declare function createRelayClient(options: {
8097
8288
  } | undefined;
8098
8289
  } | null;
8099
8290
  release: string;
8100
- interaction: "quiz" | "url" | "text" | "staff" | "photo" | "automatic" | "claim";
8291
+ interaction: "staff" | "quiz" | "text" | "url" | "photo" | "automatic" | "claim";
8101
8292
  lifecycle: "active" | "paused" | "archived";
8102
- rewards: {
8293
+ rewards: ({
8294
+ kind: "points";
8103
8295
  label: string;
8104
- }[];
8296
+ amount: number;
8297
+ ledger: {
8298
+ id: string;
8299
+ key: string | null;
8300
+ name: string;
8301
+ };
8302
+ } | {
8303
+ kind: "tier";
8304
+ label: string;
8305
+ reward: {
8306
+ id: string;
8307
+ key: string | null;
8308
+ title: string;
8309
+ };
8310
+ tier: string;
8311
+ } | {
8312
+ kind: "integration";
8313
+ label: string;
8314
+ })[];
8105
8315
  key?: string | undefined;
8106
8316
  streak?: {
8107
8317
  goal: number;
@@ -8160,7 +8370,7 @@ declare function createRelayClient(options: {
8160
8370
  } | undefined;
8161
8371
  } | undefined;
8162
8372
  };
8163
- connections: ("google" | "apple" | "x" | "discord")[];
8373
+ connections: ("discord" | "google" | "apple" | "x")[];
8164
8374
  trigger: {
8165
8375
  kind: "automatic";
8166
8376
  observation?: {
@@ -8201,7 +8411,7 @@ declare function createRelayClient(options: {
8201
8411
  };
8202
8412
  availability: {
8203
8413
  kind: "available";
8204
- input: "quiz" | "url" | "text" | "photo" | "none";
8414
+ input: "quiz" | "text" | "url" | "photo" | "none";
8205
8415
  } | {
8206
8416
  kind: "completed";
8207
8417
  } | {
@@ -8250,7 +8460,7 @@ declare function createRelayClient(options: {
8250
8460
  quest: string;
8251
8461
  member: string;
8252
8462
  evidence: string | null;
8253
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
8463
+ status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
8254
8464
  reason: string | null;
8255
8465
  retries: number;
8256
8466
  generation: number;
@@ -8298,11 +8508,30 @@ declare function createRelayClient(options: {
8298
8508
  } | undefined;
8299
8509
  } | null;
8300
8510
  release: string;
8301
- interaction: "quiz" | "url" | "text" | "staff" | "photo" | "automatic" | "claim";
8511
+ interaction: "staff" | "quiz" | "text" | "url" | "photo" | "automatic" | "claim";
8302
8512
  lifecycle: "active" | "paused" | "archived";
8303
- rewards: {
8513
+ rewards: ({
8514
+ kind: "points";
8304
8515
  label: string;
8305
- }[];
8516
+ amount: number;
8517
+ ledger: {
8518
+ id: string;
8519
+ key: string | null;
8520
+ name: string;
8521
+ };
8522
+ } | {
8523
+ kind: "tier";
8524
+ label: string;
8525
+ reward: {
8526
+ id: string;
8527
+ key: string | null;
8528
+ title: string;
8529
+ };
8530
+ tier: string;
8531
+ } | {
8532
+ kind: "integration";
8533
+ label: string;
8534
+ })[];
8306
8535
  key?: string | undefined;
8307
8536
  streak?: {
8308
8537
  goal: number;
@@ -8364,7 +8593,7 @@ declare function createRelayClient(options: {
8364
8593
  } | undefined;
8365
8594
  } | undefined;
8366
8595
  };
8367
- connections: ("google" | "apple" | "x" | "discord")[];
8596
+ connections: ("discord" | "google" | "apple" | "x")[];
8368
8597
  trigger: {
8369
8598
  kind: "automatic";
8370
8599
  observation?: {
@@ -8405,7 +8634,7 @@ declare function createRelayClient(options: {
8405
8634
  };
8406
8635
  availability: {
8407
8636
  kind: "available";
8408
- input: "quiz" | "url" | "text" | "photo" | "none";
8637
+ input: "quiz" | "text" | "url" | "photo" | "none";
8409
8638
  } | {
8410
8639
  kind: "completed";
8411
8640
  } | {
@@ -8454,7 +8683,7 @@ declare function createRelayClient(options: {
8454
8683
  quest: string;
8455
8684
  member: string;
8456
8685
  evidence: string | null;
8457
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
8686
+ status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
8458
8687
  reason: string | null;
8459
8688
  retries: number;
8460
8689
  generation: number;
@@ -8502,11 +8731,30 @@ declare function createRelayClient(options: {
8502
8731
  } | undefined;
8503
8732
  } | null;
8504
8733
  release: string;
8505
- interaction: "quiz" | "url" | "text" | "staff" | "photo" | "automatic" | "claim";
8734
+ interaction: "staff" | "quiz" | "text" | "url" | "photo" | "automatic" | "claim";
8506
8735
  lifecycle: "active" | "paused" | "archived";
8507
- rewards: {
8736
+ rewards: ({
8737
+ kind: "points";
8508
8738
  label: string;
8509
- }[];
8739
+ amount: number;
8740
+ ledger: {
8741
+ id: string;
8742
+ key: string | null;
8743
+ name: string;
8744
+ };
8745
+ } | {
8746
+ kind: "tier";
8747
+ label: string;
8748
+ reward: {
8749
+ id: string;
8750
+ key: string | null;
8751
+ title: string;
8752
+ };
8753
+ tier: string;
8754
+ } | {
8755
+ kind: "integration";
8756
+ label: string;
8757
+ })[];
8510
8758
  key?: string | undefined;
8511
8759
  streak?: {
8512
8760
  goal: number;
@@ -8571,7 +8819,7 @@ declare function createRelayClient(options: {
8571
8819
  auth: {
8572
8820
  providers: () => Promise<{
8573
8821
  providers: {
8574
- provider: "google" | "apple" | "x" | "discord";
8822
+ provider: "discord" | "google" | "apple" | "x";
8575
8823
  configured: boolean;
8576
8824
  }[];
8577
8825
  email: boolean;
@@ -8601,7 +8849,7 @@ declare function createRelayClient(options: {
8601
8849
  expiresAt: number;
8602
8850
  }>;
8603
8851
  accounts: () => Promise<{
8604
- provider: "google" | "apple" | "x" | "discord";
8852
+ provider: "discord" | "google" | "apple" | "x";
8605
8853
  configured: boolean;
8606
8854
  status: "disconnected" | "connected" | "reconnect";
8607
8855
  subject: string | null;
@@ -8700,7 +8948,7 @@ declare function createRelayClient(options: {
8700
8948
  quest: string;
8701
8949
  member: string;
8702
8950
  evidence: string | null;
8703
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
8951
+ status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
8704
8952
  reason: string | null;
8705
8953
  retries: number;
8706
8954
  generation: number;
@@ -8772,7 +9020,7 @@ declare function createRelayClient(options: {
8772
9020
  } | undefined;
8773
9021
  } | undefined;
8774
9022
  };
8775
- connections: ("google" | "apple" | "x" | "discord")[];
9023
+ connections: ("discord" | "google" | "apple" | "x")[];
8776
9024
  trigger: {
8777
9025
  kind: "automatic";
8778
9026
  observation?: {
@@ -8813,7 +9061,7 @@ declare function createRelayClient(options: {
8813
9061
  };
8814
9062
  availability: {
8815
9063
  kind: "available";
8816
- input: "quiz" | "url" | "text" | "photo" | "none";
9064
+ input: "quiz" | "text" | "url" | "photo" | "none";
8817
9065
  } | {
8818
9066
  kind: "completed";
8819
9067
  } | {
@@ -8862,7 +9110,7 @@ declare function createRelayClient(options: {
8862
9110
  quest: string;
8863
9111
  member: string;
8864
9112
  evidence: string | null;
8865
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
9113
+ status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
8866
9114
  reason: string | null;
8867
9115
  retries: number;
8868
9116
  generation: number;
@@ -9029,7 +9277,7 @@ declare function createRelayClient(options: {
9029
9277
  provider: "discord";
9030
9278
  action: "grant-role";
9031
9279
  roleId: string;
9032
- status: "pending" | "failed" | "delivered";
9280
+ status: "failed" | "pending" | "delivered";
9033
9281
  attempts: number;
9034
9282
  nextAt: number;
9035
9283
  lastError: string | null;
@@ -9045,7 +9293,7 @@ declare function createRelayClient(options: {
9045
9293
  quest: string;
9046
9294
  member: string;
9047
9295
  evidence: string | null;
9048
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
9296
+ status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
9049
9297
  reason: string | null;
9050
9298
  retries: number;
9051
9299
  generation: number;
@@ -9099,88 +9347,6 @@ declare function createRelayClient(options: {
9099
9347
  size: number;
9100
9348
  }>;
9101
9349
  };
9102
- /** @deprecated The participant API accepts only member sessions and rejects this staff call. Use the management API with a management key instead. */
9103
- reviews: {
9104
- list: (options?: ReviewListOptions, requestOptions?: {
9105
- signal?: AbortSignal;
9106
- }) => Promise<{
9107
- items: {
9108
- attempt: {
9109
- id: string;
9110
- release: string;
9111
- quest: string;
9112
- member: string;
9113
- evidence: string | null;
9114
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
9115
- reason: string | null;
9116
- retries: number;
9117
- generation: number;
9118
- completion: string | null;
9119
- reviewRewards: ({
9120
- kind: "tier";
9121
- reward: {
9122
- id: string;
9123
- title: string;
9124
- tiers: {
9125
- id: string;
9126
- title: string;
9127
- }[];
9128
- inventory: {
9129
- kind: "untracked";
9130
- };
9131
- fulfillment: {
9132
- kind: "staff-handover";
9133
- };
9134
- };
9135
- tier: string;
9136
- } | {
9137
- kind: "points";
9138
- balance: string;
9139
- amount: number;
9140
- } | {
9141
- kind: "integration";
9142
- provider: "discord";
9143
- action: "grant-role";
9144
- roleId: string;
9145
- })[] | null;
9146
- createdAt: number;
9147
- input?: {
9148
- kind: "quiz";
9149
- answers: {
9150
- [k: string]: string;
9151
- };
9152
- release?: string | undefined;
9153
- } | {
9154
- kind: "text";
9155
- value: string;
9156
- } | {
9157
- kind: "url";
9158
- value: string;
9159
- } | undefined;
9160
- };
9161
- title: string;
9162
- checks: {
9163
- criteria: string;
9164
- result: {
9165
- kind: "pass" | "fail" | "unclear";
9166
- reason: string;
9167
- };
9168
- }[];
9169
- }[];
9170
- nextCursor: string | null;
9171
- }>;
9172
- };
9173
- /** @deprecated The participant API accepts only member sessions and rejects this staff call. Use the management API with a management key instead. */
9174
- members: {
9175
- list: (options?: MemberListOptions, requestOptions?: {
9176
- signal?: AbortSignal;
9177
- }) => Promise<{
9178
- items: {
9179
- member: string;
9180
- }[];
9181
- nextCursor: string | null;
9182
- }>;
9183
- };
9184
9350
  evidence: {
9185
9351
  download(id: string, requestOptions?: {
9186
9352
  signal?: AbortSignal;
@@ -9195,7 +9361,7 @@ declare function createRelayClient(options: {
9195
9361
  code: string;
9196
9362
  definition: {
9197
9363
  quest: string;
9198
- runtimeVersion: 1 | 2;
9364
+ runtimeVersion: 2 | 1;
9199
9365
  title: string;
9200
9366
  presentation: {
9201
9367
  quiz?: {
@@ -9232,12 +9398,12 @@ declare function createRelayClient(options: {
9232
9398
  kind: "resource";
9233
9399
  default: string;
9234
9400
  source: {
9401
+ provider: "domino";
9402
+ resource: "point-ledger";
9403
+ } | {
9235
9404
  provider: "discord";
9236
9405
  resource: "channel";
9237
9406
  types: ("text" | "announcement")[];
9238
- } | {
9239
- provider: "domino";
9240
- resource: "point-ledger";
9241
9407
  } | {
9242
9408
  provider: "discord";
9243
9409
  resource: "role";
@@ -9376,7 +9542,7 @@ declare function createRelayClient(options: {
9376
9542
  visibility: "visible" | "hidden";
9377
9543
  budgets: {
9378
9544
  id: string;
9379
- scope: "member" | "project";
9545
+ scope: "project" | "member";
9380
9546
  period: "day" | "lifetime";
9381
9547
  limit: number;
9382
9548
  cost: number | {
@@ -9394,7 +9560,7 @@ declare function createRelayClient(options: {
9394
9560
  code: string;
9395
9561
  definition: {
9396
9562
  quest: string;
9397
- runtimeVersion: 1 | 2;
9563
+ runtimeVersion: 2 | 1;
9398
9564
  title: string;
9399
9565
  presentation: {
9400
9566
  quiz?: {
@@ -9431,12 +9597,12 @@ declare function createRelayClient(options: {
9431
9597
  kind: "resource";
9432
9598
  default: string;
9433
9599
  source: {
9600
+ provider: "domino";
9601
+ resource: "point-ledger";
9602
+ } | {
9434
9603
  provider: "discord";
9435
9604
  resource: "channel";
9436
9605
  types: ("text" | "announcement")[];
9437
- } | {
9438
- provider: "domino";
9439
- resource: "point-ledger";
9440
9606
  } | {
9441
9607
  provider: "discord";
9442
9608
  resource: "role";
@@ -9575,7 +9741,7 @@ declare function createRelayClient(options: {
9575
9741
  visibility: "visible" | "hidden";
9576
9742
  budgets: {
9577
9743
  id: string;
9578
- scope: "member" | "project";
9744
+ scope: "project" | "member";
9579
9745
  period: "day" | "lifetime";
9580
9746
  limit: number;
9581
9747
  cost: number | {
@@ -9592,7 +9758,7 @@ declare function createRelayClient(options: {
9592
9758
  snapshot: () => Promise<{
9593
9759
  releases: {
9594
9760
  quest: string;
9595
- runtimeVersion: 1 | 2;
9761
+ runtimeVersion: 2 | 1;
9596
9762
  title: string;
9597
9763
  presentation: {
9598
9764
  quiz?: {
@@ -9629,12 +9795,12 @@ declare function createRelayClient(options: {
9629
9795
  kind: "resource";
9630
9796
  default: string;
9631
9797
  source: {
9798
+ provider: "domino";
9799
+ resource: "point-ledger";
9800
+ } | {
9632
9801
  provider: "discord";
9633
9802
  resource: "channel";
9634
9803
  types: ("text" | "announcement")[];
9635
- } | {
9636
- provider: "domino";
9637
- resource: "point-ledger";
9638
9804
  } | {
9639
9805
  provider: "discord";
9640
9806
  resource: "role";
@@ -9773,7 +9939,7 @@ declare function createRelayClient(options: {
9773
9939
  visibility: "visible" | "hidden";
9774
9940
  budgets: {
9775
9941
  id: string;
9776
- scope: "member" | "project";
9942
+ scope: "project" | "member";
9777
9943
  period: "day" | "lifetime";
9778
9944
  limit: number;
9779
9945
  cost: number | {
@@ -9905,7 +10071,7 @@ declare function createRelayClient(options: {
9905
10071
  quest: string;
9906
10072
  member: string;
9907
10073
  evidence: string | null;
9908
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
10074
+ status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
9909
10075
  reason: string | null;
9910
10076
  retries: number;
9911
10077
  generation: number;
@@ -9971,7 +10137,7 @@ declare function createRelayClient(options: {
9971
10137
  /** @deprecated The participant API rejects publication. Publish with `domino deploy` or the management API. */
9972
10138
  publish: (release: ReleaseInput) => Promise<{
9973
10139
  quest: string;
9974
- runtimeVersion: 1 | 2;
10140
+ runtimeVersion: 2 | 1;
9975
10141
  title: string;
9976
10142
  presentation: {
9977
10143
  quiz?: {
@@ -10008,12 +10174,12 @@ declare function createRelayClient(options: {
10008
10174
  kind: "resource";
10009
10175
  default: string;
10010
10176
  source: {
10177
+ provider: "domino";
10178
+ resource: "point-ledger";
10179
+ } | {
10011
10180
  provider: "discord";
10012
10181
  resource: "channel";
10013
10182
  types: ("text" | "announcement")[];
10014
- } | {
10015
- provider: "domino";
10016
- resource: "point-ledger";
10017
10183
  } | {
10018
10184
  provider: "discord";
10019
10185
  resource: "role";
@@ -10152,7 +10318,7 @@ declare function createRelayClient(options: {
10152
10318
  visibility: "visible" | "hidden";
10153
10319
  budgets: {
10154
10320
  id: string;
10155
- scope: "member" | "project";
10321
+ scope: "project" | "member";
10156
10322
  period: "day" | "lifetime";
10157
10323
  limit: number;
10158
10324
  cost: number | {
@@ -10198,7 +10364,7 @@ declare function createRelayClient(options: {
10198
10364
  /** @deprecated The participant API rejects publication. Publish with `domino deploy` or the management API. */
10199
10365
  publishBatch: (releases: ReleaseInput[]) => Promise<{
10200
10366
  quest: string;
10201
- runtimeVersion: 1 | 2;
10367
+ runtimeVersion: 2 | 1;
10202
10368
  title: string;
10203
10369
  presentation: {
10204
10370
  quiz?: {
@@ -10235,12 +10401,12 @@ declare function createRelayClient(options: {
10235
10401
  kind: "resource";
10236
10402
  default: string;
10237
10403
  source: {
10404
+ provider: "domino";
10405
+ resource: "point-ledger";
10406
+ } | {
10238
10407
  provider: "discord";
10239
10408
  resource: "channel";
10240
10409
  types: ("text" | "announcement")[];
10241
- } | {
10242
- provider: "domino";
10243
- resource: "point-ledger";
10244
10410
  } | {
10245
10411
  provider: "discord";
10246
10412
  resource: "role";
@@ -10379,7 +10545,7 @@ declare function createRelayClient(options: {
10379
10545
  visibility: "visible" | "hidden";
10380
10546
  budgets: {
10381
10547
  id: string;
10382
- scope: "member" | "project";
10548
+ scope: "project" | "member";
10383
10549
  period: "day" | "lifetime";
10384
10550
  limit: number;
10385
10551
  cost: number | {
@@ -10447,7 +10613,7 @@ declare function createRelayClient(options: {
10447
10613
  } | undefined;
10448
10614
  } | undefined;
10449
10615
  };
10450
- connections: ("google" | "apple" | "x" | "discord")[];
10616
+ connections: ("discord" | "google" | "apple" | "x")[];
10451
10617
  trigger: {
10452
10618
  kind: "automatic";
10453
10619
  observation?: {
@@ -10488,7 +10654,7 @@ declare function createRelayClient(options: {
10488
10654
  };
10489
10655
  availability: {
10490
10656
  kind: "available";
10491
- input: "quiz" | "url" | "text" | "photo" | "none";
10657
+ input: "quiz" | "text" | "url" | "photo" | "none";
10492
10658
  } | {
10493
10659
  kind: "completed";
10494
10660
  } | {
@@ -10537,7 +10703,7 @@ declare function createRelayClient(options: {
10537
10703
  quest: string;
10538
10704
  member: string;
10539
10705
  evidence: string | null;
10540
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
10706
+ status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
10541
10707
  reason: string | null;
10542
10708
  retries: number;
10543
10709
  generation: number;
@@ -10965,7 +11131,7 @@ declare function createRelayClient(options: {
10965
11131
  content: {
10966
11132
  performance: (input: z.output<typeof contentPerformanceQuerySchema>) => Promise<{
10967
11133
  current: {
10968
- state: "needs-review" | "pending" | "failed" | "superseded" | "qualified" | "unqualified" | "content-pending" | "content-unqualified" | "waiting";
11134
+ state: "needs-review" | "failed" | "pending" | "qualified" | "content-pending" | "content-unqualified" | "waiting" | "unqualified" | "superseded";
10969
11135
  reason: string | null;
10970
11136
  contentAttempt: string;
10971
11137
  attempt: string | null;
@@ -10981,7 +11147,7 @@ declare function createRelayClient(options: {
10981
11147
  observation: string;
10982
11148
  observedAt: number;
10983
11149
  metrics: Partial<Record<"likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks", number>>;
10984
- state: "needs-review" | "pending" | "failed" | "superseded" | "qualified" | "unqualified";
11150
+ state: "needs-review" | "failed" | "pending" | "qualified" | "unqualified" | "superseded";
10985
11151
  reason: string | null;
10986
11152
  }[];
10987
11153
  next: number | null;
@@ -10996,7 +11162,7 @@ declare function createRelayClient(options: {
10996
11162
  revision: string;
10997
11163
  observation: string;
10998
11164
  current: boolean;
10999
- state: "needs-review" | "pending" | "failed" | "superseded" | "qualified" | "unqualified" | "stale" | "blocked" | "unavailable";
11165
+ state: "needs-review" | "failed" | "pending" | "qualified" | "unqualified" | "superseded" | "stale" | "blocked" | "unavailable";
11000
11166
  reason: string | null;
11001
11167
  reward: {
11002
11168
  attempt: string | null;
@@ -11011,7 +11177,7 @@ declare function createRelayClient(options: {
11011
11177
  quest: string;
11012
11178
  content: string;
11013
11179
  release: string;
11014
- state: "pending" | "admitted" | "excluded";
11180
+ state: "pending" | "excluded" | "admitted";
11015
11181
  reason: string | null;
11016
11182
  attempt: string | null;
11017
11183
  }[];
@@ -11026,7 +11192,7 @@ declare function createRelayClient(options: {
11026
11192
  quest: string;
11027
11193
  content: string;
11028
11194
  release: string;
11029
- state: "pending" | "admitted" | "excluded";
11195
+ state: "pending" | "excluded" | "admitted";
11030
11196
  reason: string | null;
11031
11197
  attempt: string | null;
11032
11198
  }>;
@@ -11037,7 +11203,7 @@ declare function createRelayClient(options: {
11037
11203
  quest: string;
11038
11204
  member: string;
11039
11205
  evidence: string | null;
11040
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
11206
+ status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
11041
11207
  reason: string | null;
11042
11208
  retries: number;
11043
11209
  generation: number;
@@ -11090,7 +11256,7 @@ declare function createRelayClient(options: {
11090
11256
  quest: string;
11091
11257
  member: string;
11092
11258
  evidence: string | null;
11093
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
11259
+ status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
11094
11260
  reason: string | null;
11095
11261
  retries: number;
11096
11262
  generation: number;
@@ -11149,7 +11315,7 @@ declare function createRelayClient(options: {
11149
11315
  quest: string;
11150
11316
  member: string;
11151
11317
  evidence: string | null;
11152
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
11318
+ status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
11153
11319
  reason: string | null;
11154
11320
  retries: number;
11155
11321
  generation: number;
@@ -11198,4 +11364,4 @@ declare function createRelayClient(options: {
11198
11364
  }>;
11199
11365
  };
11200
11366
 
11201
- 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, contentAdmissionQuerySchema, contentEnrollmentInputSchema, contentPerformanceQuerySchema, contentQualificationQuerySchema, contentReleaseInputSchema, createPointLedgerSchema, createRelayClient, deploymentPreviewSchema, deploymentResultSchema, engagementPageQuerySchema, 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 };
11367
+ export { Attempt, AuthProvider, type ClaimSubmission, type CollectionPass, type DeploymentPreview, type ExchangeInput, LeaderboardQuery, MemberProgress, type PhotoSubmission, type PointLedger, type PointLedgerReference, type ProgressObservation, type ProgressObserver, PublishedRelease, type QuestActionResult, type QuestCatalog, type QuestController, type QuestDraft, type QuestInstance, type QuestInteraction, type QuestRewardView, QuestUpdatedError, type QuestView, QuizEvidence, type QuizSubmission, RelayError, ReleaseInput, type Session, type SubmissionDraft, type SubmissionStatus, type SubmissionStore, SubmitInput, ValueEvidence, type ValueSubmission, allocateQuestSchema, allocatedQuestSchema, authScopeSchema, beginHandoverSchema, catalogDeploymentPreviewSchema, catalogDeploymentSchema, collectionBeginSchema, collectionCodeSchema, collectionPassSchema, collectionPreviewSchema, collectionResolveSchema, collectionSlotDeclarationSchema, collectionSlotSchema, collectionViewSchema, contentAdmissionQuerySchema, contentEnrollmentInputSchema, contentPerformanceQuerySchema, contentQualificationQuerySchema, contentReleaseInputSchema, createPointLedgerSchema, createRelayClient, deploymentPreviewSchema, deploymentResultSchema, engagementPageQuerySchema, errorSchema, exchangeResultSchema, exchangeSchema, identityIntegrationInputSchema, identityIntegrationSchema, identityIntegrationSecretSchema, interactionSchema, participantExchangeSchema, pointLedgerDeclarationSchema, pointLedgerPropertiesSchema, pointLedgerReferenceSchema, pointLedgerSchema, principalSchema, projectCatalogArtifactSchema, projectDeploymentSchema, publishDeploymentSchema, publishQuestDraftSchema, questActions, questCatalogSchema, questCollectionSchema, questConfiguration, questDescriptionSchema, questDraftChangesSchema, questDraftSchema, questExperienceSchema, questInstanceSchema, questInteraction, questPublicationPreviewSchema, questRewardViewSchema, questTypeVersionSchema, questViewSchema, reconcileQuestDraft, referralAcceptSchema, rewardDeliveriesSchema, rewardDeliverySchema, saveQuestDraftSchema, sessionSchema, walletChallengeInputSchema, walletProofSchema };