@domino-sdk/relay 0.17.2 → 0.18.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { V as ValueEvidence, r as referralAcceptSchema, L as LeaderboardQuery, w as walletChallengeInputSchema, l as walletProofSchema, m as AuthProvider } from './submission-input-Cktvl71b.js';
2
- export { n as AccountConnection, B as Budget, D as DiscordMember, a as DiscordMessage, I as IntegrationProvider, u as LeaderboardDefinition, t as LeaderboardPage, O as Observation, P as ProjectIntegration, Q as QuizContent, R as ReferralDefinition, v as ResourceOption, y as ResourceSource, z as SettingField, C as SettingsValues, S as SolanaBalance, b as StreakPolicy, E as StreakProgress, c as TextEvidence, d as TextOptions, F as TrackerDefinition, G as TrackerPreview, H as TrackerPreviewInput, J as TrackerQuery, T as TrackerReader, K as TrackerRecord, M as TrackerStatus, U as UrlEvidence, e as UrlOptions, W as WalletConnection, N as XConnection, Y as XPost, Z as XProfile, X as XReader, _ as XTweet, $ as accountConnectionSchema, a0 as authProviderSchema, a1 as budgetSchema, a2 as communityTimeZoneSchema, a3 as compatibleSettingKinds, a4 as completionKeySchema, a5 as completionPolicySchema, f as customSource, g as defineLeaderboard, h as defineReferral, i as defineTracker, j as discord, a6 as discordMemberInputSchema, a7 as discordMemberSchema, a8 as discordMessageInputSchema, a9 as discordMessageSchema, aa as discordReactionSchema, ab as discordServerSchema, ac as integrationProviderSchema, ad as leaderboardArtifactSchema, ae as leaderboardAuthoringSchema, af as leaderboardDefinitionSchema, ag as leaderboardExclusionSchema, ah as leaderboardGroupSchema, ai as leaderboardPageSchema, aj as leaderboardPreviewSchema, ak as leaderboardQuerySchema, al as leaderboardRowSchema, am as leaderboardWindowSchema, an as missingResourceSettings, ao as observationInputSchema, ap as observationReceiptSchema, aq as observationSchema, o as observationTriggerSchema, ar as parseSettings, p as pointLedgers, as as pointsAccountSchema, at as pointsEntrySchema, au as pointsMutationSchema, av as pointsResultSchema, aw as projectIntegrationSchema, ax as publishedLeaderboardSchema, ay as publishedReferralSchema, az as publishedTrackerSchema, aA as quizChoiceSchema, aB as quizContentSchema, aC as quizQuestionSchema, aD as quizQuestionsSchema, aE as referralAccountSchema, aF as referralArtifactSchema, aG as referralAuthoringSchema, aH as referralControlSchema, aI as referralDefinitionSchema, aJ as referralHistorySchema, aK as referralManagementSchema, aL as referralRelationshipSchema, q as referralSummarySchema, aM as resourceOptionsSchema, aN as resourceRequestSchema, aO as resourceSourceSchema, aP as settingFieldSchema, s as settings, aQ as settingsFieldsSchema, aR as settingsValuesSchema, aS as solanaAddressSchema, aT as solanaBalanceSchema, k as streak, aU as streakPolicySchema, aV as streakProgressSchema, aW as textEvidenceSchema, aX as textOptionsSchema, aY as trackerArtifactSchema, aZ as trackerControlSchema, a_ as trackerDefinitionSchema, a$ as trackerIngestResultSchema, b0 as trackerIngestSchema, b1 as trackerPageSchema, b2 as trackerPreviewInputSchema, b3 as trackerPreviewLimits, b4 as trackerPreviewSchema, b5 as trackerQuerySchema, b6 as trackerRecordInputSchema, b7 as trackerRecordSchema, b8 as trackerSourceSchema, b9 as trackerStatusSchema, ba as trackerSummarySchema, bb as urlEvidenceSchema, bc as urlOptionsSchema, bd as validateSubmissionValue, be as valueEvidenceSchema, bf as walletChallengeSchema, bg as walletConnectionSchema, x, bh as xConnectionSchema, bi as xIdSchema, bj as xPostId, bk as xPostSchema, bl as xProfileSchema, bm as xRequestSchema, bn as xTweetSchema } from './submission-input-Cktvl71b.js';
1
+ 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-DWlvrAQY.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-DWlvrAQY.js';
3
3
  import { z } from 'zod';
4
- import { errorSchema, QuizEvidence, Attempt, SubmitInput, MemberProgress, questDescriptionSchema, PublishedRelease, ReviewListOptions, MemberListOptions, ReleaseInput, beginHandoverSchema } from './schema.js';
5
- export { Decision, Entitlement, MemberPage, PhotoResult, PickupAvailability, QuestAvailability, QuestDescription, QuestPresentation, QuestSettingsInput, ReviewPage, Reward, Snapshot, SubmissionEvidence, TextResult, TextReviewInput, TieredRewardDefinition, artifactSchema, attemptSchema, batchReleaseSchema, completionRecordSchema, configurePickupSchema, confirmHandoverSchema, createStockItemSchema, decisionSchema, entitlementSchema, eventSchema, evidenceSchema, identifier, integrationRewardSchema, mediaUrlSchema, memberListSchema, memberPageSchema, memberProgressSchema, photoResultSchema, pickupAllocationSchema, pickupAvailabilitySchema, pickupCatalogSchema, pickupPolicySchema, pickupSelectionSchema, pointsRewardSchema, prerequisiteSchema, publishedReleaseSchema, questAvailabilitySchema, questPresentationSchema, questSettingsInputSchema, quizAnswersSchema, quizEvidenceSchema, releaseSchema, reservationSchema, reviewItemSchema, reviewListSchema, reviewModeSchema, reviewPageSchema, rewardBundleSchema, rewardKey, rewardSchema, snapshotSchema, staffDecisionSchema, stockItemSchema, stockSchema, storedReviewModeSchema, submissionEvidenceSchema, submitSchema, templateSchema, textResultSchema, textReviewInputSchema, tierRewardSchema, tieredRewardDefinitionSchema, triggerSchema } from './schema.js';
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';
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";
@@ -388,7 +388,38 @@ declare const questTypeVersionSchema: z.ZodObject<{
388
388
  source: z.ZodString;
389
389
  type: z.ZodString;
390
390
  }, z.core.$strict>>;
391
+ content: z.ZodOptional<z.ZodObject<{
392
+ tracker: z.ZodString;
393
+ window: z.ZodObject<{
394
+ start: z.ZodNumber;
395
+ end: z.ZodOptional<z.ZodNumber>;
396
+ }, z.core.$strict>;
397
+ enrollment: z.ZodDefault<z.ZodEnum<{
398
+ required: "required";
399
+ none: "none";
400
+ }>>;
401
+ posts: z.ZodDefault<z.ZodEnum<{
402
+ "after-enrollment": "after-enrollment";
403
+ "since-start": "since-start";
404
+ }>>;
405
+ historical: z.ZodDefault<z.ZodEnum<{
406
+ staff: "staff";
407
+ automatic: "automatic";
408
+ claim: "claim";
409
+ }>>;
410
+ }, z.core.$strict>>;
391
411
  }, z.core.$strict>]>;
412
+ performance: z.ZodOptional<z.ZodObject<{
413
+ metrics: z.ZodArray<z.ZodEnum<{
414
+ likes: "likes";
415
+ replies: "replies";
416
+ reposts: "reposts";
417
+ quotes: "quotes";
418
+ views: "views";
419
+ bookmarks: "bookmarks";
420
+ }>>;
421
+ maxAgeMs: z.ZodDefault<z.ZodNumber>;
422
+ }, z.core.$strict>>;
392
423
  requires: z.ZodDefault<z.ZodArray<z.ZodObject<{
393
424
  quest: z.ZodString;
394
425
  scope: z.ZodLiteral<"ever">;
@@ -409,8 +440,8 @@ declare const questTypeVersionSchema: z.ZodObject<{
409
440
  budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
410
441
  id: z.ZodString;
411
442
  scope: z.ZodEnum<{
412
- member: "member";
413
443
  project: "project";
444
+ member: "member";
414
445
  }>;
415
446
  period: z.ZodEnum<{
416
447
  day: "day";
@@ -757,7 +788,38 @@ declare const questCatalogSchema: z.ZodObject<{
757
788
  source: z.ZodString;
758
789
  type: z.ZodString;
759
790
  }, z.core.$strict>>;
791
+ content: z.ZodOptional<z.ZodObject<{
792
+ tracker: z.ZodString;
793
+ window: z.ZodObject<{
794
+ start: z.ZodNumber;
795
+ end: z.ZodOptional<z.ZodNumber>;
796
+ }, z.core.$strict>;
797
+ enrollment: z.ZodDefault<z.ZodEnum<{
798
+ required: "required";
799
+ none: "none";
800
+ }>>;
801
+ posts: z.ZodDefault<z.ZodEnum<{
802
+ "after-enrollment": "after-enrollment";
803
+ "since-start": "since-start";
804
+ }>>;
805
+ historical: z.ZodDefault<z.ZodEnum<{
806
+ staff: "staff";
807
+ automatic: "automatic";
808
+ claim: "claim";
809
+ }>>;
810
+ }, z.core.$strict>>;
760
811
  }, z.core.$strict>]>;
812
+ performance: z.ZodOptional<z.ZodObject<{
813
+ metrics: z.ZodArray<z.ZodEnum<{
814
+ likes: "likes";
815
+ replies: "replies";
816
+ reposts: "reposts";
817
+ quotes: "quotes";
818
+ views: "views";
819
+ bookmarks: "bookmarks";
820
+ }>>;
821
+ maxAgeMs: z.ZodDefault<z.ZodNumber>;
822
+ }, z.core.$strict>>;
761
823
  requires: z.ZodDefault<z.ZodArray<z.ZodObject<{
762
824
  quest: z.ZodString;
763
825
  scope: z.ZodLiteral<"ever">;
@@ -778,8 +840,8 @@ declare const questCatalogSchema: z.ZodObject<{
778
840
  budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
779
841
  id: z.ZodString;
780
842
  scope: z.ZodEnum<{
781
- member: "member";
782
843
  project: "project";
844
+ member: "member";
783
845
  }>;
784
846
  period: z.ZodEnum<{
785
847
  day: "day";
@@ -1070,7 +1132,38 @@ declare const questCatalogSchema: z.ZodObject<{
1070
1132
  source: z.ZodString;
1071
1133
  type: z.ZodString;
1072
1134
  }, z.core.$strict>>;
1135
+ content: z.ZodOptional<z.ZodObject<{
1136
+ tracker: z.ZodString;
1137
+ window: z.ZodObject<{
1138
+ start: z.ZodNumber;
1139
+ end: z.ZodOptional<z.ZodNumber>;
1140
+ }, z.core.$strict>;
1141
+ enrollment: z.ZodDefault<z.ZodEnum<{
1142
+ required: "required";
1143
+ none: "none";
1144
+ }>>;
1145
+ posts: z.ZodDefault<z.ZodEnum<{
1146
+ "after-enrollment": "after-enrollment";
1147
+ "since-start": "since-start";
1148
+ }>>;
1149
+ historical: z.ZodDefault<z.ZodEnum<{
1150
+ staff: "staff";
1151
+ automatic: "automatic";
1152
+ claim: "claim";
1153
+ }>>;
1154
+ }, z.core.$strict>>;
1073
1155
  }, z.core.$strict>]>;
1156
+ performance: z.ZodOptional<z.ZodObject<{
1157
+ metrics: z.ZodArray<z.ZodEnum<{
1158
+ likes: "likes";
1159
+ replies: "replies";
1160
+ reposts: "reposts";
1161
+ quotes: "quotes";
1162
+ views: "views";
1163
+ bookmarks: "bookmarks";
1164
+ }>>;
1165
+ maxAgeMs: z.ZodDefault<z.ZodNumber>;
1166
+ }, z.core.$strict>>;
1074
1167
  requires: z.ZodDefault<z.ZodArray<z.ZodObject<{
1075
1168
  quest: z.ZodString;
1076
1169
  scope: z.ZodLiteral<"ever">;
@@ -1091,8 +1184,8 @@ declare const questCatalogSchema: z.ZodObject<{
1091
1184
  budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
1092
1185
  id: z.ZodString;
1093
1186
  scope: z.ZodEnum<{
1094
- member: "member";
1095
1187
  project: "project";
1188
+ member: "member";
1096
1189
  }>;
1097
1190
  period: z.ZodEnum<{
1098
1191
  day: "day";
@@ -1188,7 +1281,7 @@ declare const questCatalogSchema: z.ZodObject<{
1188
1281
  createdAt: z.ZodNumber;
1189
1282
  }, z.core.$strip>, z.ZodTransform<{
1190
1283
  quest: string;
1191
- runtimeVersion: 1 | 2;
1284
+ runtimeVersion: 2 | 1;
1192
1285
  title: string;
1193
1286
  presentation: {
1194
1287
  quiz?: {
@@ -1225,12 +1318,12 @@ declare const questCatalogSchema: z.ZodObject<{
1225
1318
  kind: "resource";
1226
1319
  default: string;
1227
1320
  source: {
1321
+ provider: "domino";
1322
+ resource: "point-ledger";
1323
+ } | {
1228
1324
  provider: "discord";
1229
1325
  resource: "channel";
1230
1326
  types: ("text" | "announcement")[];
1231
- } | {
1232
- provider: "domino";
1233
- resource: "point-ledger";
1234
1327
  } | {
1235
1328
  provider: "discord";
1236
1329
  resource: "role";
@@ -1316,6 +1409,22 @@ declare const questCatalogSchema: z.ZodObject<{
1316
1409
  })[];
1317
1410
  humanReview: boolean;
1318
1411
  trigger: {
1412
+ kind: "automatic";
1413
+ observation?: {
1414
+ source: string;
1415
+ type: string;
1416
+ } | undefined;
1417
+ content?: {
1418
+ tracker: string;
1419
+ window: {
1420
+ start: number;
1421
+ end?: number | undefined;
1422
+ };
1423
+ enrollment: "required" | "none";
1424
+ posts: "after-enrollment" | "since-start";
1425
+ historical: "staff" | "automatic" | "claim";
1426
+ } | undefined;
1427
+ } | {
1319
1428
  kind: "manual";
1320
1429
  input: "text";
1321
1430
  constraints: {
@@ -1336,12 +1445,6 @@ declare const questCatalogSchema: z.ZodObject<{
1336
1445
  kind: "manual";
1337
1446
  input: "quiz" | "photo" | "none";
1338
1447
  actor?: "member" | "staff" | undefined;
1339
- } | {
1340
- kind: "automatic";
1341
- observation?: {
1342
- source: string;
1343
- type: string;
1344
- } | undefined;
1345
1448
  };
1346
1449
  requires: {
1347
1450
  quest: string;
@@ -1359,7 +1462,7 @@ declare const questCatalogSchema: z.ZodObject<{
1359
1462
  visibility: "visible" | "hidden";
1360
1463
  budgets: {
1361
1464
  id: string;
1362
- scope: "member" | "project";
1465
+ scope: "project" | "member";
1363
1466
  period: "day" | "lifetime";
1364
1467
  limit: number;
1365
1468
  cost: number | {
@@ -1372,6 +1475,10 @@ declare const questCatalogSchema: z.ZodObject<{
1372
1475
  createdAt: number;
1373
1476
  legacy: boolean;
1374
1477
  lifecycle: "active" | "paused" | "archived";
1478
+ performance?: {
1479
+ metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
1480
+ maxAgeMs: number;
1481
+ } | undefined;
1375
1482
  key?: string | undefined;
1376
1483
  origin?: {
1377
1484
  typeVersion: string;
@@ -1435,10 +1542,10 @@ declare const questCatalogSchema: z.ZodObject<{
1435
1542
  createdAt: number;
1436
1543
  }>>]>>>;
1437
1544
  supportedInteractions: z.ZodArray<z.ZodEnum<{
1545
+ staff: "staff";
1438
1546
  quiz: "quiz";
1439
- url: "url";
1440
1547
  text: "text";
1441
- staff: "staff";
1548
+ url: "url";
1442
1549
  photo: "photo";
1443
1550
  automatic: "automatic";
1444
1551
  claim: "claim";
@@ -1468,10 +1575,10 @@ declare const catalogDeploymentSchema: z.ZodObject<{
1468
1575
  id?: string | undefined;
1469
1576
  }>>>>;
1470
1577
  supportedInteractions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1578
+ staff: "staff";
1471
1579
  quiz: "quiz";
1472
- url: "url";
1473
1580
  text: "text";
1474
- staff: "staff";
1581
+ url: "url";
1475
1582
  photo: "photo";
1476
1583
  automatic: "automatic";
1477
1584
  claim: "claim";
@@ -1658,7 +1765,38 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
1658
1765
  source: z.ZodString;
1659
1766
  type: z.ZodString;
1660
1767
  }, z.core.$strict>>;
1768
+ content: z.ZodOptional<z.ZodObject<{
1769
+ tracker: z.ZodString;
1770
+ window: z.ZodObject<{
1771
+ start: z.ZodNumber;
1772
+ end: z.ZodOptional<z.ZodNumber>;
1773
+ }, z.core.$strict>;
1774
+ enrollment: z.ZodDefault<z.ZodEnum<{
1775
+ required: "required";
1776
+ none: "none";
1777
+ }>>;
1778
+ posts: z.ZodDefault<z.ZodEnum<{
1779
+ "after-enrollment": "after-enrollment";
1780
+ "since-start": "since-start";
1781
+ }>>;
1782
+ historical: z.ZodDefault<z.ZodEnum<{
1783
+ staff: "staff";
1784
+ automatic: "automatic";
1785
+ claim: "claim";
1786
+ }>>;
1787
+ }, z.core.$strict>>;
1661
1788
  }, z.core.$strict>]>;
1789
+ performance: z.ZodOptional<z.ZodObject<{
1790
+ metrics: z.ZodArray<z.ZodEnum<{
1791
+ likes: "likes";
1792
+ replies: "replies";
1793
+ reposts: "reposts";
1794
+ quotes: "quotes";
1795
+ views: "views";
1796
+ bookmarks: "bookmarks";
1797
+ }>>;
1798
+ maxAgeMs: z.ZodDefault<z.ZodNumber>;
1799
+ }, z.core.$strict>>;
1662
1800
  requires: z.ZodDefault<z.ZodArray<z.ZodObject<{
1663
1801
  quest: z.ZodString;
1664
1802
  scope: z.ZodLiteral<"ever">;
@@ -1679,8 +1817,8 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
1679
1817
  budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
1680
1818
  id: z.ZodString;
1681
1819
  scope: z.ZodEnum<{
1682
- member: "member";
1683
1820
  project: "project";
1821
+ member: "member";
1684
1822
  }>;
1685
1823
  period: z.ZodEnum<{
1686
1824
  day: "day";
@@ -1707,10 +1845,10 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
1707
1845
  title: z.ZodString;
1708
1846
  }, z.core.$strict>>;
1709
1847
  supportedInteractions: z.ZodArray<z.ZodEnum<{
1848
+ staff: "staff";
1710
1849
  quiz: "quiz";
1711
- url: "url";
1712
1850
  text: "text";
1713
- staff: "staff";
1851
+ url: "url";
1714
1852
  photo: "photo";
1715
1853
  automatic: "automatic";
1716
1854
  claim: "claim";
@@ -1780,10 +1918,10 @@ declare const questViewSchema: z.ZodObject<{
1780
1918
  }, z.core.$strict>>;
1781
1919
  }, z.core.$strict>>;
1782
1920
  connections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1921
+ discord: "discord";
1783
1922
  google: "google";
1784
1923
  apple: "apple";
1785
1924
  x: "x";
1786
- discord: "discord";
1787
1925
  }>>>;
1788
1926
  trigger: z.ZodUnion<readonly [z.ZodObject<{
1789
1927
  kind: z.ZodLiteral<"manual">;
@@ -1825,13 +1963,33 @@ declare const questViewSchema: z.ZodObject<{
1825
1963
  source: z.ZodString;
1826
1964
  type: z.ZodString;
1827
1965
  }, z.core.$strict>>;
1966
+ content: z.ZodOptional<z.ZodObject<{
1967
+ tracker: z.ZodString;
1968
+ window: z.ZodObject<{
1969
+ start: z.ZodNumber;
1970
+ end: z.ZodOptional<z.ZodNumber>;
1971
+ }, z.core.$strict>;
1972
+ enrollment: z.ZodDefault<z.ZodEnum<{
1973
+ required: "required";
1974
+ none: "none";
1975
+ }>>;
1976
+ posts: z.ZodDefault<z.ZodEnum<{
1977
+ "after-enrollment": "after-enrollment";
1978
+ "since-start": "since-start";
1979
+ }>>;
1980
+ historical: z.ZodDefault<z.ZodEnum<{
1981
+ staff: "staff";
1982
+ automatic: "automatic";
1983
+ claim: "claim";
1984
+ }>>;
1985
+ }, z.core.$strict>>;
1828
1986
  }, z.core.$strict>]>;
1829
1987
  availability: z.ZodDiscriminatedUnion<[z.ZodObject<{
1830
1988
  kind: z.ZodLiteral<"available">;
1831
1989
  input: z.ZodEnum<{
1832
1990
  quiz: "quiz";
1833
- url: "url";
1834
1991
  text: "text";
1992
+ url: "url";
1835
1993
  photo: "photo";
1836
1994
  none: "none";
1837
1995
  }>;
@@ -1930,12 +2088,12 @@ declare const questViewSchema: z.ZodObject<{
1930
2088
  value: z.ZodString;
1931
2089
  }, z.core.$strict>]>>;
1932
2090
  status: z.ZodEnum<{
1933
- "needs-review": "needs-review";
1934
2091
  queued: "queued";
1935
2092
  evaluating: "evaluating";
1936
2093
  accepted: "accepted";
1937
2094
  progressed: "progressed";
1938
2095
  rejected: "rejected";
2096
+ "needs-review": "needs-review";
1939
2097
  failed: "failed";
1940
2098
  }>;
1941
2099
  reason: z.ZodNullable<z.ZodString>;
@@ -1973,10 +2131,10 @@ declare const questViewSchema: z.ZodObject<{
1973
2131
  }, z.core.$strip>>;
1974
2132
  release: z.ZodString;
1975
2133
  interaction: z.ZodEnum<{
2134
+ staff: "staff";
1976
2135
  quiz: "quiz";
1977
- url: "url";
1978
2136
  text: "text";
1979
- staff: "staff";
2137
+ url: "url";
1980
2138
  photo: "photo";
1981
2139
  automatic: "automatic";
1982
2140
  claim: "claim";
@@ -2019,10 +2177,10 @@ declare const collectionViewSchema: z.ZodObject<{
2019
2177
  }, z.core.$strict>>;
2020
2178
  }, z.core.$strict>>;
2021
2179
  connections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
2180
+ discord: "discord";
2022
2181
  google: "google";
2023
2182
  apple: "apple";
2024
2183
  x: "x";
2025
- discord: "discord";
2026
2184
  }>>>;
2027
2185
  trigger: z.ZodUnion<readonly [z.ZodObject<{
2028
2186
  kind: z.ZodLiteral<"manual">;
@@ -2064,13 +2222,33 @@ declare const collectionViewSchema: z.ZodObject<{
2064
2222
  source: z.ZodString;
2065
2223
  type: z.ZodString;
2066
2224
  }, z.core.$strict>>;
2225
+ content: z.ZodOptional<z.ZodObject<{
2226
+ tracker: z.ZodString;
2227
+ window: z.ZodObject<{
2228
+ start: z.ZodNumber;
2229
+ end: z.ZodOptional<z.ZodNumber>;
2230
+ }, z.core.$strict>;
2231
+ enrollment: z.ZodDefault<z.ZodEnum<{
2232
+ required: "required";
2233
+ none: "none";
2234
+ }>>;
2235
+ posts: z.ZodDefault<z.ZodEnum<{
2236
+ "after-enrollment": "after-enrollment";
2237
+ "since-start": "since-start";
2238
+ }>>;
2239
+ historical: z.ZodDefault<z.ZodEnum<{
2240
+ staff: "staff";
2241
+ automatic: "automatic";
2242
+ claim: "claim";
2243
+ }>>;
2244
+ }, z.core.$strict>>;
2067
2245
  }, z.core.$strict>]>;
2068
2246
  availability: z.ZodDiscriminatedUnion<[z.ZodObject<{
2069
2247
  kind: z.ZodLiteral<"available">;
2070
2248
  input: z.ZodEnum<{
2071
2249
  quiz: "quiz";
2072
- url: "url";
2073
2250
  text: "text";
2251
+ url: "url";
2074
2252
  photo: "photo";
2075
2253
  none: "none";
2076
2254
  }>;
@@ -2169,12 +2347,12 @@ declare const collectionViewSchema: z.ZodObject<{
2169
2347
  value: z.ZodString;
2170
2348
  }, z.core.$strict>]>>;
2171
2349
  status: z.ZodEnum<{
2172
- "needs-review": "needs-review";
2173
2350
  queued: "queued";
2174
2351
  evaluating: "evaluating";
2175
2352
  accepted: "accepted";
2176
2353
  progressed: "progressed";
2177
2354
  rejected: "rejected";
2355
+ "needs-review": "needs-review";
2178
2356
  failed: "failed";
2179
2357
  }>;
2180
2358
  reason: z.ZodNullable<z.ZodString>;
@@ -2212,10 +2390,10 @@ declare const collectionViewSchema: z.ZodObject<{
2212
2390
  }, z.core.$strip>>;
2213
2391
  release: z.ZodString;
2214
2392
  interaction: z.ZodEnum<{
2393
+ staff: "staff";
2215
2394
  quiz: "quiz";
2216
- url: "url";
2217
2395
  text: "text";
2218
- staff: "staff";
2396
+ url: "url";
2219
2397
  photo: "photo";
2220
2398
  automatic: "automatic";
2221
2399
  claim: "claim";
@@ -2257,10 +2435,10 @@ declare const questExperienceSchema: z.ZodObject<{
2257
2435
  }, z.core.$strict>>;
2258
2436
  }, z.core.$strict>>;
2259
2437
  connections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
2438
+ discord: "discord";
2260
2439
  google: "google";
2261
2440
  apple: "apple";
2262
2441
  x: "x";
2263
- discord: "discord";
2264
2442
  }>>>;
2265
2443
  trigger: z.ZodUnion<readonly [z.ZodObject<{
2266
2444
  kind: z.ZodLiteral<"manual">;
@@ -2302,13 +2480,33 @@ declare const questExperienceSchema: z.ZodObject<{
2302
2480
  source: z.ZodString;
2303
2481
  type: z.ZodString;
2304
2482
  }, z.core.$strict>>;
2483
+ content: z.ZodOptional<z.ZodObject<{
2484
+ tracker: z.ZodString;
2485
+ window: z.ZodObject<{
2486
+ start: z.ZodNumber;
2487
+ end: z.ZodOptional<z.ZodNumber>;
2488
+ }, z.core.$strict>;
2489
+ enrollment: z.ZodDefault<z.ZodEnum<{
2490
+ required: "required";
2491
+ none: "none";
2492
+ }>>;
2493
+ posts: z.ZodDefault<z.ZodEnum<{
2494
+ "after-enrollment": "after-enrollment";
2495
+ "since-start": "since-start";
2496
+ }>>;
2497
+ historical: z.ZodDefault<z.ZodEnum<{
2498
+ staff: "staff";
2499
+ automatic: "automatic";
2500
+ claim: "claim";
2501
+ }>>;
2502
+ }, z.core.$strict>>;
2305
2503
  }, z.core.$strict>]>;
2306
2504
  availability: z.ZodDiscriminatedUnion<[z.ZodObject<{
2307
2505
  kind: z.ZodLiteral<"available">;
2308
2506
  input: z.ZodEnum<{
2309
2507
  quiz: "quiz";
2310
- url: "url";
2311
2508
  text: "text";
2509
+ url: "url";
2312
2510
  photo: "photo";
2313
2511
  none: "none";
2314
2512
  }>;
@@ -2407,12 +2605,12 @@ declare const questExperienceSchema: z.ZodObject<{
2407
2605
  value: z.ZodString;
2408
2606
  }, z.core.$strict>]>>;
2409
2607
  status: z.ZodEnum<{
2410
- "needs-review": "needs-review";
2411
2608
  queued: "queued";
2412
2609
  evaluating: "evaluating";
2413
2610
  accepted: "accepted";
2414
2611
  progressed: "progressed";
2415
2612
  rejected: "rejected";
2613
+ "needs-review": "needs-review";
2416
2614
  failed: "failed";
2417
2615
  }>;
2418
2616
  reason: z.ZodNullable<z.ZodString>;
@@ -2450,10 +2648,10 @@ declare const questExperienceSchema: z.ZodObject<{
2450
2648
  }, z.core.$strip>>;
2451
2649
  release: z.ZodString;
2452
2650
  interaction: z.ZodEnum<{
2651
+ staff: "staff";
2453
2652
  quiz: "quiz";
2454
- url: "url";
2455
2653
  text: "text";
2456
- staff: "staff";
2654
+ url: "url";
2457
2655
  photo: "photo";
2458
2656
  automatic: "automatic";
2459
2657
  claim: "claim";
@@ -2496,10 +2694,10 @@ declare const questExperienceSchema: z.ZodObject<{
2496
2694
  }, z.core.$strict>>;
2497
2695
  }, z.core.$strict>>;
2498
2696
  connections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
2697
+ discord: "discord";
2499
2698
  google: "google";
2500
2699
  apple: "apple";
2501
2700
  x: "x";
2502
- discord: "discord";
2503
2701
  }>>>;
2504
2702
  trigger: z.ZodUnion<readonly [z.ZodObject<{
2505
2703
  kind: z.ZodLiteral<"manual">;
@@ -2541,13 +2739,33 @@ declare const questExperienceSchema: z.ZodObject<{
2541
2739
  source: z.ZodString;
2542
2740
  type: z.ZodString;
2543
2741
  }, z.core.$strict>>;
2742
+ content: z.ZodOptional<z.ZodObject<{
2743
+ tracker: z.ZodString;
2744
+ window: z.ZodObject<{
2745
+ start: z.ZodNumber;
2746
+ end: z.ZodOptional<z.ZodNumber>;
2747
+ }, z.core.$strict>;
2748
+ enrollment: z.ZodDefault<z.ZodEnum<{
2749
+ required: "required";
2750
+ none: "none";
2751
+ }>>;
2752
+ posts: z.ZodDefault<z.ZodEnum<{
2753
+ "after-enrollment": "after-enrollment";
2754
+ "since-start": "since-start";
2755
+ }>>;
2756
+ historical: z.ZodDefault<z.ZodEnum<{
2757
+ staff: "staff";
2758
+ automatic: "automatic";
2759
+ claim: "claim";
2760
+ }>>;
2761
+ }, z.core.$strict>>;
2544
2762
  }, z.core.$strict>]>;
2545
2763
  availability: z.ZodDiscriminatedUnion<[z.ZodObject<{
2546
2764
  kind: z.ZodLiteral<"available">;
2547
2765
  input: z.ZodEnum<{
2548
2766
  quiz: "quiz";
2549
- url: "url";
2550
2767
  text: "text";
2768
+ url: "url";
2551
2769
  photo: "photo";
2552
2770
  none: "none";
2553
2771
  }>;
@@ -2646,12 +2864,12 @@ declare const questExperienceSchema: z.ZodObject<{
2646
2864
  value: z.ZodString;
2647
2865
  }, z.core.$strict>]>>;
2648
2866
  status: z.ZodEnum<{
2649
- "needs-review": "needs-review";
2650
2867
  queued: "queued";
2651
2868
  evaluating: "evaluating";
2652
2869
  accepted: "accepted";
2653
2870
  progressed: "progressed";
2654
2871
  rejected: "rejected";
2872
+ "needs-review": "needs-review";
2655
2873
  failed: "failed";
2656
2874
  }>;
2657
2875
  reason: z.ZodNullable<z.ZodString>;
@@ -2689,10 +2907,10 @@ declare const questExperienceSchema: z.ZodObject<{
2689
2907
  }, z.core.$strip>>;
2690
2908
  release: z.ZodString;
2691
2909
  interaction: z.ZodEnum<{
2910
+ staff: "staff";
2692
2911
  quiz: "quiz";
2693
- url: "url";
2694
2912
  text: "text";
2695
- staff: "staff";
2913
+ url: "url";
2696
2914
  photo: "photo";
2697
2915
  automatic: "automatic";
2698
2916
  claim: "claim";
@@ -2957,7 +3175,38 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
2957
3175
  source: z.ZodString;
2958
3176
  type: z.ZodString;
2959
3177
  }, z.core.$strict>>;
3178
+ content: z.ZodOptional<z.ZodObject<{
3179
+ tracker: z.ZodString;
3180
+ window: z.ZodObject<{
3181
+ start: z.ZodNumber;
3182
+ end: z.ZodOptional<z.ZodNumber>;
3183
+ }, z.core.$strict>;
3184
+ enrollment: z.ZodDefault<z.ZodEnum<{
3185
+ required: "required";
3186
+ none: "none";
3187
+ }>>;
3188
+ posts: z.ZodDefault<z.ZodEnum<{
3189
+ "after-enrollment": "after-enrollment";
3190
+ "since-start": "since-start";
3191
+ }>>;
3192
+ historical: z.ZodDefault<z.ZodEnum<{
3193
+ staff: "staff";
3194
+ automatic: "automatic";
3195
+ claim: "claim";
3196
+ }>>;
3197
+ }, z.core.$strict>>;
2960
3198
  }, z.core.$strict>]>;
3199
+ performance: z.ZodOptional<z.ZodObject<{
3200
+ metrics: z.ZodArray<z.ZodEnum<{
3201
+ likes: "likes";
3202
+ replies: "replies";
3203
+ reposts: "reposts";
3204
+ quotes: "quotes";
3205
+ views: "views";
3206
+ bookmarks: "bookmarks";
3207
+ }>>;
3208
+ maxAgeMs: z.ZodDefault<z.ZodNumber>;
3209
+ }, z.core.$strict>>;
2961
3210
  requires: z.ZodDefault<z.ZodArray<z.ZodObject<{
2962
3211
  quest: z.ZodString;
2963
3212
  scope: z.ZodLiteral<"ever">;
@@ -2978,8 +3227,8 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
2978
3227
  budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
2979
3228
  id: z.ZodString;
2980
3229
  scope: z.ZodEnum<{
2981
- member: "member";
2982
3230
  project: "project";
3231
+ member: "member";
2983
3232
  }>;
2984
3233
  period: z.ZodEnum<{
2985
3234
  day: "day";
@@ -3075,7 +3324,7 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
3075
3324
  createdAt: z.ZodNumber;
3076
3325
  }, z.core.$strip>, z.ZodTransform<{
3077
3326
  quest: string;
3078
- runtimeVersion: 1 | 2;
3327
+ runtimeVersion: 2 | 1;
3079
3328
  title: string;
3080
3329
  presentation: {
3081
3330
  quiz?: {
@@ -3112,12 +3361,12 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
3112
3361
  kind: "resource";
3113
3362
  default: string;
3114
3363
  source: {
3364
+ provider: "domino";
3365
+ resource: "point-ledger";
3366
+ } | {
3115
3367
  provider: "discord";
3116
3368
  resource: "channel";
3117
3369
  types: ("text" | "announcement")[];
3118
- } | {
3119
- provider: "domino";
3120
- resource: "point-ledger";
3121
3370
  } | {
3122
3371
  provider: "discord";
3123
3372
  resource: "role";
@@ -3203,6 +3452,22 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
3203
3452
  })[];
3204
3453
  humanReview: boolean;
3205
3454
  trigger: {
3455
+ kind: "automatic";
3456
+ observation?: {
3457
+ source: string;
3458
+ type: string;
3459
+ } | undefined;
3460
+ content?: {
3461
+ tracker: string;
3462
+ window: {
3463
+ start: number;
3464
+ end?: number | undefined;
3465
+ };
3466
+ enrollment: "required" | "none";
3467
+ posts: "after-enrollment" | "since-start";
3468
+ historical: "staff" | "automatic" | "claim";
3469
+ } | undefined;
3470
+ } | {
3206
3471
  kind: "manual";
3207
3472
  input: "text";
3208
3473
  constraints: {
@@ -3223,12 +3488,6 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
3223
3488
  kind: "manual";
3224
3489
  input: "quiz" | "photo" | "none";
3225
3490
  actor?: "member" | "staff" | undefined;
3226
- } | {
3227
- kind: "automatic";
3228
- observation?: {
3229
- source: string;
3230
- type: string;
3231
- } | undefined;
3232
3491
  };
3233
3492
  requires: {
3234
3493
  quest: string;
@@ -3246,7 +3505,7 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
3246
3505
  visibility: "visible" | "hidden";
3247
3506
  budgets: {
3248
3507
  id: string;
3249
- scope: "member" | "project";
3508
+ scope: "project" | "member";
3250
3509
  period: "day" | "lifetime";
3251
3510
  limit: number;
3252
3511
  cost: number | {
@@ -3259,6 +3518,10 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
3259
3518
  createdAt: number;
3260
3519
  legacy: boolean;
3261
3520
  lifecycle: "active" | "paused" | "archived";
3521
+ performance?: {
3522
+ metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
3523
+ maxAgeMs: number;
3524
+ } | undefined;
3262
3525
  key?: string | undefined;
3263
3526
  origin?: {
3264
3527
  typeVersion: string;
@@ -3400,8 +3663,8 @@ declare const rewardDeliverySchema: z.ZodObject<{
3400
3663
  action: z.ZodLiteral<"grant-role">;
3401
3664
  roleId: z.ZodString;
3402
3665
  status: z.ZodEnum<{
3403
- pending: "pending";
3404
3666
  failed: "failed";
3667
+ pending: "pending";
3405
3668
  delivered: "delivered";
3406
3669
  }>;
3407
3670
  attempts: z.ZodNumber;
@@ -3420,8 +3683,8 @@ declare const rewardDeliveriesSchema: z.ZodObject<{
3420
3683
  action: z.ZodLiteral<"grant-role">;
3421
3684
  roleId: z.ZodString;
3422
3685
  status: z.ZodEnum<{
3423
- pending: "pending";
3424
3686
  failed: "failed";
3687
+ pending: "pending";
3425
3688
  delivered: "delivered";
3426
3689
  }>;
3427
3690
  attempts: z.ZodNumber;
@@ -3590,14 +3853,17 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
3590
3853
  }>;
3591
3854
  }, z.core.$strip>>>;
3592
3855
  supportedInteractions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
3856
+ staff: "staff";
3593
3857
  quiz: "quiz";
3594
- url: "url";
3595
3858
  text: "text";
3596
- staff: "staff";
3859
+ url: "url";
3597
3860
  photo: "photo";
3598
3861
  automatic: "automatic";
3599
3862
  claim: "claim";
3600
3863
  }>>>;
3864
+ engagement: z.ZodDefault<z.ZodArray<z.ZodObject<{
3865
+ code: z.ZodString;
3866
+ }, z.core.$strict>>>;
3601
3867
  trackers: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
3602
3868
  key: z.ZodString;
3603
3869
  title: z.ZodString;
@@ -3915,7 +4181,6 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
3915
4181
  leaderboards: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
3916
4182
  title: z.ZodString;
3917
4183
  balance: z.ZodString;
3918
- group: z.ZodOptional<z.ZodString>;
3919
4184
  score: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
3920
4185
  kind: z.ZodLiteral<"balance">;
3921
4186
  }, z.core.$strict>, z.ZodObject<{
@@ -3964,6 +4229,7 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
3964
4229
  participants: "participants";
3965
4230
  public: "public";
3966
4231
  }>>;
4232
+ group: z.ZodOptional<z.ZodString>;
3967
4233
  key: z.ZodOptional<z.ZodString>;
3968
4234
  id: z.ZodOptional<z.ZodString>;
3969
4235
  }, z.core.$strict>, z.ZodTransform<Omit<{
@@ -4082,14 +4348,17 @@ declare const projectDeploymentSchema: z.ZodObject<{
4082
4348
  }>;
4083
4349
  }, z.core.$strip>>>;
4084
4350
  supportedInteractions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
4351
+ staff: "staff";
4085
4352
  quiz: "quiz";
4086
- url: "url";
4087
4353
  text: "text";
4088
- staff: "staff";
4354
+ url: "url";
4089
4355
  photo: "photo";
4090
4356
  automatic: "automatic";
4091
4357
  claim: "claim";
4092
4358
  }>>>;
4359
+ engagement: z.ZodDefault<z.ZodArray<z.ZodObject<{
4360
+ code: z.ZodString;
4361
+ }, z.core.$strict>>>;
4093
4362
  trackers: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
4094
4363
  key: z.ZodString;
4095
4364
  title: z.ZodString;
@@ -4407,7 +4676,6 @@ declare const projectDeploymentSchema: z.ZodObject<{
4407
4676
  leaderboards: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
4408
4677
  title: z.ZodString;
4409
4678
  balance: z.ZodString;
4410
- group: z.ZodOptional<z.ZodString>;
4411
4679
  score: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
4412
4680
  kind: z.ZodLiteral<"balance">;
4413
4681
  }, z.core.$strict>, z.ZodObject<{
@@ -4456,6 +4724,7 @@ declare const projectDeploymentSchema: z.ZodObject<{
4456
4724
  participants: "participants";
4457
4725
  public: "public";
4458
4726
  }>>;
4727
+ group: z.ZodOptional<z.ZodString>;
4459
4728
  key: z.ZodOptional<z.ZodString>;
4460
4729
  id: z.ZodOptional<z.ZodString>;
4461
4730
  }, z.core.$strict>, z.ZodTransform<Omit<{
@@ -4569,6 +4838,126 @@ declare const projectDeploymentSchema: z.ZodObject<{
4569
4838
  }, z.core.$strict>;
4570
4839
  declare const deploymentPreviewSchema: z.ZodObject<{
4571
4840
  id: z.ZodString;
4841
+ engagement: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
4842
+ code: z.ZodString;
4843
+ rule: z.ZodObject<{
4844
+ version: z.ZodString;
4845
+ definition: z.ZodObject<{
4846
+ key: z.ZodString;
4847
+ qualifiedBy: z.ZodString;
4848
+ balance: z.ZodString;
4849
+ metrics: z.ZodArray<z.ZodEnum<{
4850
+ likes: "likes";
4851
+ replies: "replies";
4852
+ reposts: "reposts";
4853
+ quotes: "quotes";
4854
+ views: "views";
4855
+ bookmarks: "bookmarks";
4856
+ }>>;
4857
+ baseline: z.ZodLiteral<"historical">;
4858
+ maxAgeMs: z.ZodDefault<z.ZodNumber>;
4859
+ budget: z.ZodDefault<z.ZodObject<{
4860
+ projectDaily: z.ZodOptional<z.ZodNumber>;
4861
+ memberDaily: z.ZodOptional<z.ZodNumber>;
4862
+ projectLifetime: z.ZodOptional<z.ZodNumber>;
4863
+ }, z.core.$strict>>;
4864
+ }, z.core.$strict>;
4865
+ publishedAt: z.ZodNumber;
4866
+ }, z.core.$strict>;
4867
+ kind: z.ZodLiteral<"create">;
4868
+ }, z.core.$strict>, z.ZodObject<{
4869
+ code: z.ZodString;
4870
+ rule: z.ZodObject<{
4871
+ version: z.ZodString;
4872
+ definition: z.ZodObject<{
4873
+ key: z.ZodString;
4874
+ qualifiedBy: z.ZodString;
4875
+ balance: z.ZodString;
4876
+ metrics: z.ZodArray<z.ZodEnum<{
4877
+ likes: "likes";
4878
+ replies: "replies";
4879
+ reposts: "reposts";
4880
+ quotes: "quotes";
4881
+ views: "views";
4882
+ bookmarks: "bookmarks";
4883
+ }>>;
4884
+ baseline: z.ZodLiteral<"historical">;
4885
+ maxAgeMs: z.ZodDefault<z.ZodNumber>;
4886
+ budget: z.ZodDefault<z.ZodObject<{
4887
+ projectDaily: z.ZodOptional<z.ZodNumber>;
4888
+ memberDaily: z.ZodOptional<z.ZodNumber>;
4889
+ projectLifetime: z.ZodOptional<z.ZodNumber>;
4890
+ }, z.core.$strict>>;
4891
+ }, z.core.$strict>;
4892
+ publishedAt: z.ZodNumber;
4893
+ }, z.core.$strict>;
4894
+ kind: z.ZodLiteral<"unchanged">;
4895
+ }, z.core.$strict>, z.ZodObject<{
4896
+ code: z.ZodString;
4897
+ rule: z.ZodObject<{
4898
+ version: z.ZodString;
4899
+ definition: z.ZodObject<{
4900
+ key: z.ZodString;
4901
+ qualifiedBy: z.ZodString;
4902
+ balance: z.ZodString;
4903
+ metrics: z.ZodArray<z.ZodEnum<{
4904
+ likes: "likes";
4905
+ replies: "replies";
4906
+ reposts: "reposts";
4907
+ quotes: "quotes";
4908
+ views: "views";
4909
+ bookmarks: "bookmarks";
4910
+ }>>;
4911
+ baseline: z.ZodLiteral<"historical">;
4912
+ maxAgeMs: z.ZodDefault<z.ZodNumber>;
4913
+ budget: z.ZodDefault<z.ZodObject<{
4914
+ projectDaily: z.ZodOptional<z.ZodNumber>;
4915
+ memberDaily: z.ZodOptional<z.ZodNumber>;
4916
+ projectLifetime: z.ZodOptional<z.ZodNumber>;
4917
+ }, z.core.$strict>>;
4918
+ }, z.core.$strict>;
4919
+ publishedAt: z.ZodNumber;
4920
+ }, z.core.$strict>;
4921
+ kind: z.ZodLiteral<"change">;
4922
+ change: z.ZodObject<{
4923
+ rule: z.ZodString;
4924
+ fromVersion: z.ZodString;
4925
+ toVersion: z.ZodString;
4926
+ previewHash: z.ZodString;
4927
+ definition: z.ZodObject<{
4928
+ key: z.ZodString;
4929
+ qualifiedBy: z.ZodString;
4930
+ balance: z.ZodString;
4931
+ metrics: z.ZodArray<z.ZodEnum<{
4932
+ likes: "likes";
4933
+ replies: "replies";
4934
+ reposts: "reposts";
4935
+ quotes: "quotes";
4936
+ views: "views";
4937
+ bookmarks: "bookmarks";
4938
+ }>>;
4939
+ baseline: z.ZodLiteral<"historical">;
4940
+ maxAgeMs: z.ZodDefault<z.ZodNumber>;
4941
+ budget: z.ZodDefault<z.ZodObject<{
4942
+ projectDaily: z.ZodOptional<z.ZodNumber>;
4943
+ memberDaily: z.ZodOptional<z.ZodNumber>;
4944
+ projectLifetime: z.ZodOptional<z.ZodNumber>;
4945
+ }, z.core.$strict>>;
4946
+ }, z.core.$strict>;
4947
+ boundary: z.ZodLiteral<"available-eligible-observation">;
4948
+ settlement: z.ZodLiteral<"deferred">;
4949
+ summary: z.ZodObject<{
4950
+ knownAdmissions: z.ZodNumber;
4951
+ accounts: z.ZodNumber;
4952
+ uninitialized: z.ZodNumber;
4953
+ pendingTransitions: z.ZodNumber;
4954
+ earned: z.ZodString;
4955
+ paid: z.ZodString;
4956
+ excluded: z.ZodString;
4957
+ pending: z.ZodString;
4958
+ }, z.core.$strict>;
4959
+ }, z.core.$strict>;
4960
+ }, z.core.$strict>], "kind">>>;
4572
4961
  trackers: z.ZodDefault<z.ZodArray<z.ZodObject<{
4573
4962
  id: z.ZodString;
4574
4963
  version: z.ZodString;
@@ -4772,7 +5161,38 @@ declare const deploymentPreviewSchema: z.ZodObject<{
4772
5161
  source: z.ZodString;
4773
5162
  type: z.ZodString;
4774
5163
  }, z.core.$strict>>;
5164
+ content: z.ZodOptional<z.ZodObject<{
5165
+ tracker: z.ZodString;
5166
+ window: z.ZodObject<{
5167
+ start: z.ZodNumber;
5168
+ end: z.ZodOptional<z.ZodNumber>;
5169
+ }, z.core.$strict>;
5170
+ enrollment: z.ZodDefault<z.ZodEnum<{
5171
+ required: "required";
5172
+ none: "none";
5173
+ }>>;
5174
+ posts: z.ZodDefault<z.ZodEnum<{
5175
+ "after-enrollment": "after-enrollment";
5176
+ "since-start": "since-start";
5177
+ }>>;
5178
+ historical: z.ZodDefault<z.ZodEnum<{
5179
+ staff: "staff";
5180
+ automatic: "automatic";
5181
+ claim: "claim";
5182
+ }>>;
5183
+ }, z.core.$strict>>;
4775
5184
  }, z.core.$strict>]>;
5185
+ performance: z.ZodOptional<z.ZodObject<{
5186
+ metrics: z.ZodArray<z.ZodEnum<{
5187
+ likes: "likes";
5188
+ replies: "replies";
5189
+ reposts: "reposts";
5190
+ quotes: "quotes";
5191
+ views: "views";
5192
+ bookmarks: "bookmarks";
5193
+ }>>;
5194
+ maxAgeMs: z.ZodDefault<z.ZodNumber>;
5195
+ }, z.core.$strict>>;
4776
5196
  requires: z.ZodDefault<z.ZodArray<z.ZodObject<{
4777
5197
  quest: z.ZodString;
4778
5198
  scope: z.ZodLiteral<"ever">;
@@ -4793,8 +5213,8 @@ declare const deploymentPreviewSchema: z.ZodObject<{
4793
5213
  budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
4794
5214
  id: z.ZodString;
4795
5215
  scope: z.ZodEnum<{
4796
- member: "member";
4797
5216
  project: "project";
5217
+ member: "member";
4798
5218
  }>;
4799
5219
  period: z.ZodEnum<{
4800
5220
  day: "day";
@@ -4890,7 +5310,7 @@ declare const deploymentPreviewSchema: z.ZodObject<{
4890
5310
  createdAt: z.ZodNumber;
4891
5311
  }, z.core.$strip>, z.ZodTransform<{
4892
5312
  quest: string;
4893
- runtimeVersion: 1 | 2;
5313
+ runtimeVersion: 2 | 1;
4894
5314
  title: string;
4895
5315
  presentation: {
4896
5316
  quiz?: {
@@ -4927,12 +5347,12 @@ declare const deploymentPreviewSchema: z.ZodObject<{
4927
5347
  kind: "resource";
4928
5348
  default: string;
4929
5349
  source: {
4930
- provider: "discord";
4931
- resource: "channel";
4932
- types: ("text" | "announcement")[];
4933
- } | {
4934
5350
  provider: "domino";
4935
5351
  resource: "point-ledger";
5352
+ } | {
5353
+ provider: "discord";
5354
+ resource: "channel";
5355
+ types: ("text" | "announcement")[];
4936
5356
  } | {
4937
5357
  provider: "discord";
4938
5358
  resource: "role";
@@ -5018,6 +5438,22 @@ declare const deploymentPreviewSchema: z.ZodObject<{
5018
5438
  })[];
5019
5439
  humanReview: boolean;
5020
5440
  trigger: {
5441
+ kind: "automatic";
5442
+ observation?: {
5443
+ source: string;
5444
+ type: string;
5445
+ } | undefined;
5446
+ content?: {
5447
+ tracker: string;
5448
+ window: {
5449
+ start: number;
5450
+ end?: number | undefined;
5451
+ };
5452
+ enrollment: "required" | "none";
5453
+ posts: "after-enrollment" | "since-start";
5454
+ historical: "staff" | "automatic" | "claim";
5455
+ } | undefined;
5456
+ } | {
5021
5457
  kind: "manual";
5022
5458
  input: "text";
5023
5459
  constraints: {
@@ -5038,12 +5474,6 @@ declare const deploymentPreviewSchema: z.ZodObject<{
5038
5474
  kind: "manual";
5039
5475
  input: "quiz" | "photo" | "none";
5040
5476
  actor?: "member" | "staff" | undefined;
5041
- } | {
5042
- kind: "automatic";
5043
- observation?: {
5044
- source: string;
5045
- type: string;
5046
- } | undefined;
5047
5477
  };
5048
5478
  requires: {
5049
5479
  quest: string;
@@ -5061,7 +5491,7 @@ declare const deploymentPreviewSchema: z.ZodObject<{
5061
5491
  visibility: "visible" | "hidden";
5062
5492
  budgets: {
5063
5493
  id: string;
5064
- scope: "member" | "project";
5494
+ scope: "project" | "member";
5065
5495
  period: "day" | "lifetime";
5066
5496
  limit: number;
5067
5497
  cost: number | {
@@ -5074,6 +5504,10 @@ declare const deploymentPreviewSchema: z.ZodObject<{
5074
5504
  createdAt: number;
5075
5505
  legacy: boolean;
5076
5506
  lifecycle: "active" | "paused" | "archived";
5507
+ performance?: {
5508
+ metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
5509
+ maxAgeMs: number;
5510
+ } | undefined;
5077
5511
  key?: string | undefined;
5078
5512
  origin?: {
5079
5513
  typeVersion: string;
@@ -5315,7 +5749,38 @@ declare const deploymentPreviewSchema: z.ZodObject<{
5315
5749
  source: z.ZodString;
5316
5750
  type: z.ZodString;
5317
5751
  }, z.core.$strict>>;
5752
+ content: z.ZodOptional<z.ZodObject<{
5753
+ tracker: z.ZodString;
5754
+ window: z.ZodObject<{
5755
+ start: z.ZodNumber;
5756
+ end: z.ZodOptional<z.ZodNumber>;
5757
+ }, z.core.$strict>;
5758
+ enrollment: z.ZodDefault<z.ZodEnum<{
5759
+ required: "required";
5760
+ none: "none";
5761
+ }>>;
5762
+ posts: z.ZodDefault<z.ZodEnum<{
5763
+ "after-enrollment": "after-enrollment";
5764
+ "since-start": "since-start";
5765
+ }>>;
5766
+ historical: z.ZodDefault<z.ZodEnum<{
5767
+ staff: "staff";
5768
+ automatic: "automatic";
5769
+ claim: "claim";
5770
+ }>>;
5771
+ }, z.core.$strict>>;
5318
5772
  }, z.core.$strict>]>;
5773
+ performance: z.ZodOptional<z.ZodObject<{
5774
+ metrics: z.ZodArray<z.ZodEnum<{
5775
+ likes: "likes";
5776
+ replies: "replies";
5777
+ reposts: "reposts";
5778
+ quotes: "quotes";
5779
+ views: "views";
5780
+ bookmarks: "bookmarks";
5781
+ }>>;
5782
+ maxAgeMs: z.ZodDefault<z.ZodNumber>;
5783
+ }, z.core.$strict>>;
5319
5784
  requires: z.ZodDefault<z.ZodArray<z.ZodObject<{
5320
5785
  quest: z.ZodString;
5321
5786
  scope: z.ZodLiteral<"ever">;
@@ -5336,8 +5801,8 @@ declare const deploymentPreviewSchema: z.ZodObject<{
5336
5801
  budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
5337
5802
  id: z.ZodString;
5338
5803
  scope: z.ZodEnum<{
5339
- member: "member";
5340
5804
  project: "project";
5805
+ member: "member";
5341
5806
  }>;
5342
5807
  period: z.ZodEnum<{
5343
5808
  day: "day";
@@ -5365,10 +5830,10 @@ declare const deploymentPreviewSchema: z.ZodObject<{
5365
5830
  quests: z.ZodArray<z.ZodString>;
5366
5831
  }, z.core.$strict>>;
5367
5832
  supportedInteractions: z.ZodArray<z.ZodEnum<{
5833
+ staff: "staff";
5368
5834
  quiz: "quiz";
5369
- url: "url";
5370
5835
  text: "text";
5371
- staff: "staff";
5836
+ url: "url";
5372
5837
  photo: "photo";
5373
5838
  automatic: "automatic";
5374
5839
  claim: "claim";
@@ -5620,6 +6085,126 @@ declare const publishDeploymentSchema: z.ZodObject<{
5620
6085
  }, z.core.$strict>;
5621
6086
  declare const deploymentResultSchema: z.ZodObject<{
5622
6087
  id: z.ZodString;
6088
+ engagement: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
6089
+ code: z.ZodString;
6090
+ rule: z.ZodObject<{
6091
+ version: z.ZodString;
6092
+ definition: z.ZodObject<{
6093
+ key: z.ZodString;
6094
+ qualifiedBy: z.ZodString;
6095
+ balance: z.ZodString;
6096
+ metrics: z.ZodArray<z.ZodEnum<{
6097
+ likes: "likes";
6098
+ replies: "replies";
6099
+ reposts: "reposts";
6100
+ quotes: "quotes";
6101
+ views: "views";
6102
+ bookmarks: "bookmarks";
6103
+ }>>;
6104
+ baseline: z.ZodLiteral<"historical">;
6105
+ maxAgeMs: z.ZodDefault<z.ZodNumber>;
6106
+ budget: z.ZodDefault<z.ZodObject<{
6107
+ projectDaily: z.ZodOptional<z.ZodNumber>;
6108
+ memberDaily: z.ZodOptional<z.ZodNumber>;
6109
+ projectLifetime: z.ZodOptional<z.ZodNumber>;
6110
+ }, z.core.$strict>>;
6111
+ }, z.core.$strict>;
6112
+ publishedAt: z.ZodNumber;
6113
+ }, z.core.$strict>;
6114
+ kind: z.ZodLiteral<"create">;
6115
+ }, z.core.$strict>, z.ZodObject<{
6116
+ code: z.ZodString;
6117
+ rule: z.ZodObject<{
6118
+ version: z.ZodString;
6119
+ definition: z.ZodObject<{
6120
+ key: z.ZodString;
6121
+ qualifiedBy: z.ZodString;
6122
+ balance: z.ZodString;
6123
+ metrics: z.ZodArray<z.ZodEnum<{
6124
+ likes: "likes";
6125
+ replies: "replies";
6126
+ reposts: "reposts";
6127
+ quotes: "quotes";
6128
+ views: "views";
6129
+ bookmarks: "bookmarks";
6130
+ }>>;
6131
+ baseline: z.ZodLiteral<"historical">;
6132
+ maxAgeMs: z.ZodDefault<z.ZodNumber>;
6133
+ budget: z.ZodDefault<z.ZodObject<{
6134
+ projectDaily: z.ZodOptional<z.ZodNumber>;
6135
+ memberDaily: z.ZodOptional<z.ZodNumber>;
6136
+ projectLifetime: z.ZodOptional<z.ZodNumber>;
6137
+ }, z.core.$strict>>;
6138
+ }, z.core.$strict>;
6139
+ publishedAt: z.ZodNumber;
6140
+ }, z.core.$strict>;
6141
+ kind: z.ZodLiteral<"unchanged">;
6142
+ }, z.core.$strict>, z.ZodObject<{
6143
+ code: z.ZodString;
6144
+ rule: z.ZodObject<{
6145
+ version: z.ZodString;
6146
+ definition: z.ZodObject<{
6147
+ key: z.ZodString;
6148
+ qualifiedBy: z.ZodString;
6149
+ balance: z.ZodString;
6150
+ metrics: z.ZodArray<z.ZodEnum<{
6151
+ likes: "likes";
6152
+ replies: "replies";
6153
+ reposts: "reposts";
6154
+ quotes: "quotes";
6155
+ views: "views";
6156
+ bookmarks: "bookmarks";
6157
+ }>>;
6158
+ baseline: z.ZodLiteral<"historical">;
6159
+ maxAgeMs: z.ZodDefault<z.ZodNumber>;
6160
+ budget: z.ZodDefault<z.ZodObject<{
6161
+ projectDaily: z.ZodOptional<z.ZodNumber>;
6162
+ memberDaily: z.ZodOptional<z.ZodNumber>;
6163
+ projectLifetime: z.ZodOptional<z.ZodNumber>;
6164
+ }, z.core.$strict>>;
6165
+ }, z.core.$strict>;
6166
+ publishedAt: z.ZodNumber;
6167
+ }, z.core.$strict>;
6168
+ kind: z.ZodLiteral<"change">;
6169
+ change: z.ZodObject<{
6170
+ rule: z.ZodString;
6171
+ fromVersion: z.ZodString;
6172
+ toVersion: z.ZodString;
6173
+ previewHash: z.ZodString;
6174
+ definition: z.ZodObject<{
6175
+ key: z.ZodString;
6176
+ qualifiedBy: z.ZodString;
6177
+ balance: z.ZodString;
6178
+ metrics: z.ZodArray<z.ZodEnum<{
6179
+ likes: "likes";
6180
+ replies: "replies";
6181
+ reposts: "reposts";
6182
+ quotes: "quotes";
6183
+ views: "views";
6184
+ bookmarks: "bookmarks";
6185
+ }>>;
6186
+ baseline: z.ZodLiteral<"historical">;
6187
+ maxAgeMs: z.ZodDefault<z.ZodNumber>;
6188
+ budget: z.ZodDefault<z.ZodObject<{
6189
+ projectDaily: z.ZodOptional<z.ZodNumber>;
6190
+ memberDaily: z.ZodOptional<z.ZodNumber>;
6191
+ projectLifetime: z.ZodOptional<z.ZodNumber>;
6192
+ }, z.core.$strict>>;
6193
+ }, z.core.$strict>;
6194
+ boundary: z.ZodLiteral<"available-eligible-observation">;
6195
+ settlement: z.ZodLiteral<"deferred">;
6196
+ summary: z.ZodObject<{
6197
+ knownAdmissions: z.ZodNumber;
6198
+ accounts: z.ZodNumber;
6199
+ uninitialized: z.ZodNumber;
6200
+ pendingTransitions: z.ZodNumber;
6201
+ earned: z.ZodString;
6202
+ paid: z.ZodString;
6203
+ excluded: z.ZodString;
6204
+ pending: z.ZodString;
6205
+ }, z.core.$strict>;
6206
+ }, z.core.$strict>;
6207
+ }, z.core.$strict>], "kind">>>;
5623
6208
  trackers: z.ZodDefault<z.ZodArray<z.ZodObject<{
5624
6209
  id: z.ZodString;
5625
6210
  version: z.ZodString;
@@ -5823,7 +6408,38 @@ declare const deploymentResultSchema: z.ZodObject<{
5823
6408
  source: z.ZodString;
5824
6409
  type: z.ZodString;
5825
6410
  }, z.core.$strict>>;
6411
+ content: z.ZodOptional<z.ZodObject<{
6412
+ tracker: z.ZodString;
6413
+ window: z.ZodObject<{
6414
+ start: z.ZodNumber;
6415
+ end: z.ZodOptional<z.ZodNumber>;
6416
+ }, z.core.$strict>;
6417
+ enrollment: z.ZodDefault<z.ZodEnum<{
6418
+ required: "required";
6419
+ none: "none";
6420
+ }>>;
6421
+ posts: z.ZodDefault<z.ZodEnum<{
6422
+ "after-enrollment": "after-enrollment";
6423
+ "since-start": "since-start";
6424
+ }>>;
6425
+ historical: z.ZodDefault<z.ZodEnum<{
6426
+ staff: "staff";
6427
+ automatic: "automatic";
6428
+ claim: "claim";
6429
+ }>>;
6430
+ }, z.core.$strict>>;
5826
6431
  }, z.core.$strict>]>;
6432
+ performance: z.ZodOptional<z.ZodObject<{
6433
+ metrics: z.ZodArray<z.ZodEnum<{
6434
+ likes: "likes";
6435
+ replies: "replies";
6436
+ reposts: "reposts";
6437
+ quotes: "quotes";
6438
+ views: "views";
6439
+ bookmarks: "bookmarks";
6440
+ }>>;
6441
+ maxAgeMs: z.ZodDefault<z.ZodNumber>;
6442
+ }, z.core.$strict>>;
5827
6443
  requires: z.ZodDefault<z.ZodArray<z.ZodObject<{
5828
6444
  quest: z.ZodString;
5829
6445
  scope: z.ZodLiteral<"ever">;
@@ -5844,8 +6460,8 @@ declare const deploymentResultSchema: z.ZodObject<{
5844
6460
  budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
5845
6461
  id: z.ZodString;
5846
6462
  scope: z.ZodEnum<{
5847
- member: "member";
5848
6463
  project: "project";
6464
+ member: "member";
5849
6465
  }>;
5850
6466
  period: z.ZodEnum<{
5851
6467
  day: "day";
@@ -5941,7 +6557,7 @@ declare const deploymentResultSchema: z.ZodObject<{
5941
6557
  createdAt: z.ZodNumber;
5942
6558
  }, z.core.$strip>, z.ZodTransform<{
5943
6559
  quest: string;
5944
- runtimeVersion: 1 | 2;
6560
+ runtimeVersion: 2 | 1;
5945
6561
  title: string;
5946
6562
  presentation: {
5947
6563
  quiz?: {
@@ -5978,12 +6594,12 @@ declare const deploymentResultSchema: z.ZodObject<{
5978
6594
  kind: "resource";
5979
6595
  default: string;
5980
6596
  source: {
6597
+ provider: "domino";
6598
+ resource: "point-ledger";
6599
+ } | {
5981
6600
  provider: "discord";
5982
6601
  resource: "channel";
5983
6602
  types: ("text" | "announcement")[];
5984
- } | {
5985
- provider: "domino";
5986
- resource: "point-ledger";
5987
6603
  } | {
5988
6604
  provider: "discord";
5989
6605
  resource: "role";
@@ -6069,6 +6685,22 @@ declare const deploymentResultSchema: z.ZodObject<{
6069
6685
  })[];
6070
6686
  humanReview: boolean;
6071
6687
  trigger: {
6688
+ kind: "automatic";
6689
+ observation?: {
6690
+ source: string;
6691
+ type: string;
6692
+ } | undefined;
6693
+ content?: {
6694
+ tracker: string;
6695
+ window: {
6696
+ start: number;
6697
+ end?: number | undefined;
6698
+ };
6699
+ enrollment: "required" | "none";
6700
+ posts: "after-enrollment" | "since-start";
6701
+ historical: "staff" | "automatic" | "claim";
6702
+ } | undefined;
6703
+ } | {
6072
6704
  kind: "manual";
6073
6705
  input: "text";
6074
6706
  constraints: {
@@ -6089,12 +6721,6 @@ declare const deploymentResultSchema: z.ZodObject<{
6089
6721
  kind: "manual";
6090
6722
  input: "quiz" | "photo" | "none";
6091
6723
  actor?: "member" | "staff" | undefined;
6092
- } | {
6093
- kind: "automatic";
6094
- observation?: {
6095
- source: string;
6096
- type: string;
6097
- } | undefined;
6098
6724
  };
6099
6725
  requires: {
6100
6726
  quest: string;
@@ -6112,7 +6738,7 @@ declare const deploymentResultSchema: z.ZodObject<{
6112
6738
  visibility: "visible" | "hidden";
6113
6739
  budgets: {
6114
6740
  id: string;
6115
- scope: "member" | "project";
6741
+ scope: "project" | "member";
6116
6742
  period: "day" | "lifetime";
6117
6743
  limit: number;
6118
6744
  cost: number | {
@@ -6125,6 +6751,10 @@ declare const deploymentResultSchema: z.ZodObject<{
6125
6751
  createdAt: number;
6126
6752
  legacy: boolean;
6127
6753
  lifecycle: "active" | "paused" | "archived";
6754
+ performance?: {
6755
+ metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
6756
+ maxAgeMs: number;
6757
+ } | undefined;
6128
6758
  key?: string | undefined;
6129
6759
  origin?: {
6130
6760
  typeVersion: string;
@@ -6366,7 +6996,38 @@ declare const deploymentResultSchema: z.ZodObject<{
6366
6996
  source: z.ZodString;
6367
6997
  type: z.ZodString;
6368
6998
  }, z.core.$strict>>;
6999
+ content: z.ZodOptional<z.ZodObject<{
7000
+ tracker: z.ZodString;
7001
+ window: z.ZodObject<{
7002
+ start: z.ZodNumber;
7003
+ end: z.ZodOptional<z.ZodNumber>;
7004
+ }, z.core.$strict>;
7005
+ enrollment: z.ZodDefault<z.ZodEnum<{
7006
+ required: "required";
7007
+ none: "none";
7008
+ }>>;
7009
+ posts: z.ZodDefault<z.ZodEnum<{
7010
+ "after-enrollment": "after-enrollment";
7011
+ "since-start": "since-start";
7012
+ }>>;
7013
+ historical: z.ZodDefault<z.ZodEnum<{
7014
+ staff: "staff";
7015
+ automatic: "automatic";
7016
+ claim: "claim";
7017
+ }>>;
7018
+ }, z.core.$strict>>;
6369
7019
  }, z.core.$strict>]>;
7020
+ performance: z.ZodOptional<z.ZodObject<{
7021
+ metrics: z.ZodArray<z.ZodEnum<{
7022
+ likes: "likes";
7023
+ replies: "replies";
7024
+ reposts: "reposts";
7025
+ quotes: "quotes";
7026
+ views: "views";
7027
+ bookmarks: "bookmarks";
7028
+ }>>;
7029
+ maxAgeMs: z.ZodDefault<z.ZodNumber>;
7030
+ }, z.core.$strict>>;
6370
7031
  requires: z.ZodDefault<z.ZodArray<z.ZodObject<{
6371
7032
  quest: z.ZodString;
6372
7033
  scope: z.ZodLiteral<"ever">;
@@ -6387,8 +7048,8 @@ declare const deploymentResultSchema: z.ZodObject<{
6387
7048
  budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
6388
7049
  id: z.ZodString;
6389
7050
  scope: z.ZodEnum<{
6390
- member: "member";
6391
7051
  project: "project";
7052
+ member: "member";
6392
7053
  }>;
6393
7054
  period: z.ZodEnum<{
6394
7055
  day: "day";
@@ -6416,10 +7077,10 @@ declare const deploymentResultSchema: z.ZodObject<{
6416
7077
  quests: z.ZodArray<z.ZodString>;
6417
7078
  }, z.core.$strict>>;
6418
7079
  supportedInteractions: z.ZodArray<z.ZodEnum<{
7080
+ staff: "staff";
6419
7081
  quiz: "quiz";
6420
- url: "url";
6421
7082
  text: "text";
6422
- staff: "staff";
7083
+ url: "url";
6423
7084
  photo: "photo";
6424
7085
  automatic: "automatic";
6425
7086
  claim: "claim";
@@ -6918,7 +7579,7 @@ declare function createRelayClient(options: {
6918
7579
  accounts: {
6919
7580
  id: string;
6920
7581
  program: string;
6921
- kind: "milestone" | "fixed" | "bonus";
7582
+ kind: "fixed" | "milestone" | "bonus";
6922
7583
  balance: string;
6923
7584
  earned: number;
6924
7585
  settled: number;
@@ -7045,8 +7706,24 @@ declare function createRelayClient(options: {
7045
7706
  } | undefined;
7046
7707
  } | undefined;
7047
7708
  };
7048
- connections: ("google" | "apple" | "x" | "discord")[];
7709
+ connections: ("discord" | "google" | "apple" | "x")[];
7049
7710
  trigger: {
7711
+ kind: "automatic";
7712
+ observation?: {
7713
+ source: string;
7714
+ type: string;
7715
+ } | undefined;
7716
+ content?: {
7717
+ tracker: string;
7718
+ window: {
7719
+ start: number;
7720
+ end?: number | undefined;
7721
+ };
7722
+ enrollment: "required" | "none";
7723
+ posts: "after-enrollment" | "since-start";
7724
+ historical: "staff" | "automatic" | "claim";
7725
+ } | undefined;
7726
+ } | {
7050
7727
  kind: "manual";
7051
7728
  input: "text";
7052
7729
  constraints: {
@@ -7067,16 +7744,10 @@ declare function createRelayClient(options: {
7067
7744
  kind: "manual";
7068
7745
  input: "quiz" | "photo" | "none";
7069
7746
  actor?: "member" | "staff" | undefined;
7070
- } | {
7071
- kind: "automatic";
7072
- observation?: {
7073
- source: string;
7074
- type: string;
7075
- } | undefined;
7076
7747
  };
7077
7748
  availability: {
7078
7749
  kind: "available";
7079
- input: "quiz" | "url" | "text" | "photo" | "none";
7750
+ input: "quiz" | "text" | "url" | "photo" | "none";
7080
7751
  } | {
7081
7752
  kind: "completed";
7082
7753
  } | {
@@ -7125,7 +7796,7 @@ declare function createRelayClient(options: {
7125
7796
  quest: string;
7126
7797
  member: string;
7127
7798
  evidence: string | null;
7128
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
7799
+ status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
7129
7800
  reason: string | null;
7130
7801
  retries: number;
7131
7802
  generation: number;
@@ -7173,7 +7844,7 @@ declare function createRelayClient(options: {
7173
7844
  } | undefined;
7174
7845
  } | null;
7175
7846
  release: string;
7176
- interaction: "quiz" | "url" | "text" | "staff" | "photo" | "automatic" | "claim";
7847
+ interaction: "staff" | "quiz" | "text" | "url" | "photo" | "automatic" | "claim";
7177
7848
  lifecycle: "active" | "paused" | "archived";
7178
7849
  rewards: {
7179
7850
  label: string;
@@ -7216,7 +7887,7 @@ declare function createRelayClient(options: {
7216
7887
  quest: string;
7217
7888
  member: string;
7218
7889
  evidence: string | null;
7219
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
7890
+ status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
7220
7891
  reason: string | null;
7221
7892
  retries: number;
7222
7893
  generation: number;
@@ -7288,8 +7959,24 @@ declare function createRelayClient(options: {
7288
7959
  } | undefined;
7289
7960
  } | undefined;
7290
7961
  };
7291
- connections: ("google" | "apple" | "x" | "discord")[];
7962
+ connections: ("discord" | "google" | "apple" | "x")[];
7292
7963
  trigger: {
7964
+ kind: "automatic";
7965
+ observation?: {
7966
+ source: string;
7967
+ type: string;
7968
+ } | undefined;
7969
+ content?: {
7970
+ tracker: string;
7971
+ window: {
7972
+ start: number;
7973
+ end?: number | undefined;
7974
+ };
7975
+ enrollment: "required" | "none";
7976
+ posts: "after-enrollment" | "since-start";
7977
+ historical: "staff" | "automatic" | "claim";
7978
+ } | undefined;
7979
+ } | {
7293
7980
  kind: "manual";
7294
7981
  input: "text";
7295
7982
  constraints: {
@@ -7310,16 +7997,10 @@ declare function createRelayClient(options: {
7310
7997
  kind: "manual";
7311
7998
  input: "quiz" | "photo" | "none";
7312
7999
  actor?: "member" | "staff" | undefined;
7313
- } | {
7314
- kind: "automatic";
7315
- observation?: {
7316
- source: string;
7317
- type: string;
7318
- } | undefined;
7319
8000
  };
7320
8001
  availability: {
7321
8002
  kind: "available";
7322
- input: "quiz" | "url" | "text" | "photo" | "none";
8003
+ input: "quiz" | "text" | "url" | "photo" | "none";
7323
8004
  } | {
7324
8005
  kind: "completed";
7325
8006
  } | {
@@ -7368,7 +8049,7 @@ declare function createRelayClient(options: {
7368
8049
  quest: string;
7369
8050
  member: string;
7370
8051
  evidence: string | null;
7371
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
8052
+ status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
7372
8053
  reason: string | null;
7373
8054
  retries: number;
7374
8055
  generation: number;
@@ -7416,7 +8097,7 @@ declare function createRelayClient(options: {
7416
8097
  } | undefined;
7417
8098
  } | null;
7418
8099
  release: string;
7419
- interaction: "quiz" | "url" | "text" | "staff" | "photo" | "automatic" | "claim";
8100
+ interaction: "staff" | "quiz" | "text" | "url" | "photo" | "automatic" | "claim";
7420
8101
  lifecycle: "active" | "paused" | "archived";
7421
8102
  rewards: {
7422
8103
  label: string;
@@ -7479,8 +8160,24 @@ declare function createRelayClient(options: {
7479
8160
  } | undefined;
7480
8161
  } | undefined;
7481
8162
  };
7482
- connections: ("google" | "apple" | "x" | "discord")[];
8163
+ connections: ("discord" | "google" | "apple" | "x")[];
7483
8164
  trigger: {
8165
+ kind: "automatic";
8166
+ observation?: {
8167
+ source: string;
8168
+ type: string;
8169
+ } | undefined;
8170
+ content?: {
8171
+ tracker: string;
8172
+ window: {
8173
+ start: number;
8174
+ end?: number | undefined;
8175
+ };
8176
+ enrollment: "required" | "none";
8177
+ posts: "after-enrollment" | "since-start";
8178
+ historical: "staff" | "automatic" | "claim";
8179
+ } | undefined;
8180
+ } | {
7484
8181
  kind: "manual";
7485
8182
  input: "text";
7486
8183
  constraints: {
@@ -7501,16 +8198,10 @@ declare function createRelayClient(options: {
7501
8198
  kind: "manual";
7502
8199
  input: "quiz" | "photo" | "none";
7503
8200
  actor?: "member" | "staff" | undefined;
7504
- } | {
7505
- kind: "automatic";
7506
- observation?: {
7507
- source: string;
7508
- type: string;
7509
- } | undefined;
7510
8201
  };
7511
8202
  availability: {
7512
8203
  kind: "available";
7513
- input: "quiz" | "url" | "text" | "photo" | "none";
8204
+ input: "quiz" | "text" | "url" | "photo" | "none";
7514
8205
  } | {
7515
8206
  kind: "completed";
7516
8207
  } | {
@@ -7559,7 +8250,7 @@ declare function createRelayClient(options: {
7559
8250
  quest: string;
7560
8251
  member: string;
7561
8252
  evidence: string | null;
7562
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
8253
+ status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
7563
8254
  reason: string | null;
7564
8255
  retries: number;
7565
8256
  generation: number;
@@ -7607,7 +8298,7 @@ declare function createRelayClient(options: {
7607
8298
  } | undefined;
7608
8299
  } | null;
7609
8300
  release: string;
7610
- interaction: "quiz" | "url" | "text" | "staff" | "photo" | "automatic" | "claim";
8301
+ interaction: "staff" | "quiz" | "text" | "url" | "photo" | "automatic" | "claim";
7611
8302
  lifecycle: "active" | "paused" | "archived";
7612
8303
  rewards: {
7613
8304
  label: string;
@@ -7673,8 +8364,24 @@ declare function createRelayClient(options: {
7673
8364
  } | undefined;
7674
8365
  } | undefined;
7675
8366
  };
7676
- connections: ("google" | "apple" | "x" | "discord")[];
8367
+ connections: ("discord" | "google" | "apple" | "x")[];
7677
8368
  trigger: {
8369
+ kind: "automatic";
8370
+ observation?: {
8371
+ source: string;
8372
+ type: string;
8373
+ } | undefined;
8374
+ content?: {
8375
+ tracker: string;
8376
+ window: {
8377
+ start: number;
8378
+ end?: number | undefined;
8379
+ };
8380
+ enrollment: "required" | "none";
8381
+ posts: "after-enrollment" | "since-start";
8382
+ historical: "staff" | "automatic" | "claim";
8383
+ } | undefined;
8384
+ } | {
7678
8385
  kind: "manual";
7679
8386
  input: "text";
7680
8387
  constraints: {
@@ -7695,16 +8402,10 @@ declare function createRelayClient(options: {
7695
8402
  kind: "manual";
7696
8403
  input: "quiz" | "photo" | "none";
7697
8404
  actor?: "member" | "staff" | undefined;
7698
- } | {
7699
- kind: "automatic";
7700
- observation?: {
7701
- source: string;
7702
- type: string;
7703
- } | undefined;
7704
8405
  };
7705
8406
  availability: {
7706
8407
  kind: "available";
7707
- input: "quiz" | "url" | "text" | "photo" | "none";
8408
+ input: "quiz" | "text" | "url" | "photo" | "none";
7708
8409
  } | {
7709
8410
  kind: "completed";
7710
8411
  } | {
@@ -7753,7 +8454,7 @@ declare function createRelayClient(options: {
7753
8454
  quest: string;
7754
8455
  member: string;
7755
8456
  evidence: string | null;
7756
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
8457
+ status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
7757
8458
  reason: string | null;
7758
8459
  retries: number;
7759
8460
  generation: number;
@@ -7801,7 +8502,7 @@ declare function createRelayClient(options: {
7801
8502
  } | undefined;
7802
8503
  } | null;
7803
8504
  release: string;
7804
- interaction: "quiz" | "url" | "text" | "staff" | "photo" | "automatic" | "claim";
8505
+ interaction: "staff" | "quiz" | "text" | "url" | "photo" | "automatic" | "claim";
7805
8506
  lifecycle: "active" | "paused" | "archived";
7806
8507
  rewards: {
7807
8508
  label: string;
@@ -7870,7 +8571,7 @@ declare function createRelayClient(options: {
7870
8571
  auth: {
7871
8572
  providers: () => Promise<{
7872
8573
  providers: {
7873
- provider: "google" | "apple" | "x" | "discord";
8574
+ provider: "discord" | "google" | "apple" | "x";
7874
8575
  configured: boolean;
7875
8576
  }[];
7876
8577
  email: boolean;
@@ -7900,7 +8601,7 @@ declare function createRelayClient(options: {
7900
8601
  expiresAt: number;
7901
8602
  }>;
7902
8603
  accounts: () => Promise<{
7903
- provider: "google" | "apple" | "x" | "discord";
8604
+ provider: "discord" | "google" | "apple" | "x";
7904
8605
  configured: boolean;
7905
8606
  status: "disconnected" | "connected" | "reconnect";
7906
8607
  subject: string | null;
@@ -7999,7 +8700,7 @@ declare function createRelayClient(options: {
7999
8700
  quest: string;
8000
8701
  member: string;
8001
8702
  evidence: string | null;
8002
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
8703
+ status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
8003
8704
  reason: string | null;
8004
8705
  retries: number;
8005
8706
  generation: number;
@@ -8071,8 +8772,24 @@ declare function createRelayClient(options: {
8071
8772
  } | undefined;
8072
8773
  } | undefined;
8073
8774
  };
8074
- connections: ("google" | "apple" | "x" | "discord")[];
8775
+ connections: ("discord" | "google" | "apple" | "x")[];
8075
8776
  trigger: {
8777
+ kind: "automatic";
8778
+ observation?: {
8779
+ source: string;
8780
+ type: string;
8781
+ } | undefined;
8782
+ content?: {
8783
+ tracker: string;
8784
+ window: {
8785
+ start: number;
8786
+ end?: number | undefined;
8787
+ };
8788
+ enrollment: "required" | "none";
8789
+ posts: "after-enrollment" | "since-start";
8790
+ historical: "staff" | "automatic" | "claim";
8791
+ } | undefined;
8792
+ } | {
8076
8793
  kind: "manual";
8077
8794
  input: "text";
8078
8795
  constraints: {
@@ -8093,16 +8810,10 @@ declare function createRelayClient(options: {
8093
8810
  kind: "manual";
8094
8811
  input: "quiz" | "photo" | "none";
8095
8812
  actor?: "member" | "staff" | undefined;
8096
- } | {
8097
- kind: "automatic";
8098
- observation?: {
8099
- source: string;
8100
- type: string;
8101
- } | undefined;
8102
8813
  };
8103
8814
  availability: {
8104
8815
  kind: "available";
8105
- input: "quiz" | "url" | "text" | "photo" | "none";
8816
+ input: "quiz" | "text" | "url" | "photo" | "none";
8106
8817
  } | {
8107
8818
  kind: "completed";
8108
8819
  } | {
@@ -8151,7 +8862,7 @@ declare function createRelayClient(options: {
8151
8862
  quest: string;
8152
8863
  member: string;
8153
8864
  evidence: string | null;
8154
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
8865
+ status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
8155
8866
  reason: string | null;
8156
8867
  retries: number;
8157
8868
  generation: number;
@@ -8318,7 +9029,7 @@ declare function createRelayClient(options: {
8318
9029
  provider: "discord";
8319
9030
  action: "grant-role";
8320
9031
  roleId: string;
8321
- status: "pending" | "failed" | "delivered";
9032
+ status: "failed" | "pending" | "delivered";
8322
9033
  attempts: number;
8323
9034
  nextAt: number;
8324
9035
  lastError: string | null;
@@ -8334,7 +9045,7 @@ declare function createRelayClient(options: {
8334
9045
  quest: string;
8335
9046
  member: string;
8336
9047
  evidence: string | null;
8337
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
9048
+ status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
8338
9049
  reason: string | null;
8339
9050
  retries: number;
8340
9051
  generation: number;
@@ -8400,7 +9111,7 @@ declare function createRelayClient(options: {
8400
9111
  quest: string;
8401
9112
  member: string;
8402
9113
  evidence: string | null;
8403
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
9114
+ status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
8404
9115
  reason: string | null;
8405
9116
  retries: number;
8406
9117
  generation: number;
@@ -8484,7 +9195,7 @@ declare function createRelayClient(options: {
8484
9195
  code: string;
8485
9196
  definition: {
8486
9197
  quest: string;
8487
- runtimeVersion: 1 | 2;
9198
+ runtimeVersion: 2 | 1;
8488
9199
  title: string;
8489
9200
  presentation: {
8490
9201
  quiz?: {
@@ -8521,12 +9232,12 @@ declare function createRelayClient(options: {
8521
9232
  kind: "resource";
8522
9233
  default: string;
8523
9234
  source: {
9235
+ provider: "domino";
9236
+ resource: "point-ledger";
9237
+ } | {
8524
9238
  provider: "discord";
8525
9239
  resource: "channel";
8526
9240
  types: ("text" | "announcement")[];
8527
- } | {
8528
- provider: "domino";
8529
- resource: "point-ledger";
8530
9241
  } | {
8531
9242
  provider: "discord";
8532
9243
  resource: "role";
@@ -8612,6 +9323,22 @@ declare function createRelayClient(options: {
8612
9323
  })[];
8613
9324
  humanReview: boolean;
8614
9325
  trigger: {
9326
+ kind: "automatic";
9327
+ observation?: {
9328
+ source: string;
9329
+ type: string;
9330
+ } | undefined;
9331
+ content?: {
9332
+ tracker: string;
9333
+ window: {
9334
+ start: number;
9335
+ end?: number | undefined;
9336
+ };
9337
+ enrollment: "required" | "none";
9338
+ posts: "after-enrollment" | "since-start";
9339
+ historical: "staff" | "automatic" | "claim";
9340
+ } | undefined;
9341
+ } | {
8615
9342
  kind: "manual";
8616
9343
  input: "text";
8617
9344
  constraints: {
@@ -8632,12 +9359,6 @@ declare function createRelayClient(options: {
8632
9359
  kind: "manual";
8633
9360
  input: "quiz" | "photo" | "none";
8634
9361
  actor?: "member" | "staff" | undefined;
8635
- } | {
8636
- kind: "automatic";
8637
- observation?: {
8638
- source: string;
8639
- type: string;
8640
- } | undefined;
8641
9362
  };
8642
9363
  requires: {
8643
9364
  quest: string;
@@ -8655,13 +9376,17 @@ declare function createRelayClient(options: {
8655
9376
  visibility: "visible" | "hidden";
8656
9377
  budgets: {
8657
9378
  id: string;
8658
- scope: "member" | "project";
9379
+ scope: "project" | "member";
8659
9380
  period: "day" | "lifetime";
8660
9381
  limit: number;
8661
9382
  cost: number | {
8662
9383
  balance: string;
8663
9384
  };
8664
9385
  }[];
9386
+ performance?: {
9387
+ metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
9388
+ maxAgeMs: number;
9389
+ } | undefined;
8665
9390
  };
8666
9391
  }[]>;
8667
9392
  /** @deprecated Removed from the participant API. Build quests with `domino` and `@domino-sdk/relay/build`. */
@@ -8669,7 +9394,7 @@ declare function createRelayClient(options: {
8669
9394
  code: string;
8670
9395
  definition: {
8671
9396
  quest: string;
8672
- runtimeVersion: 1 | 2;
9397
+ runtimeVersion: 2 | 1;
8673
9398
  title: string;
8674
9399
  presentation: {
8675
9400
  quiz?: {
@@ -8706,12 +9431,12 @@ declare function createRelayClient(options: {
8706
9431
  kind: "resource";
8707
9432
  default: string;
8708
9433
  source: {
9434
+ provider: "domino";
9435
+ resource: "point-ledger";
9436
+ } | {
8709
9437
  provider: "discord";
8710
9438
  resource: "channel";
8711
9439
  types: ("text" | "announcement")[];
8712
- } | {
8713
- provider: "domino";
8714
- resource: "point-ledger";
8715
9440
  } | {
8716
9441
  provider: "discord";
8717
9442
  resource: "role";
@@ -8797,6 +9522,22 @@ declare function createRelayClient(options: {
8797
9522
  })[];
8798
9523
  humanReview: boolean;
8799
9524
  trigger: {
9525
+ kind: "automatic";
9526
+ observation?: {
9527
+ source: string;
9528
+ type: string;
9529
+ } | undefined;
9530
+ content?: {
9531
+ tracker: string;
9532
+ window: {
9533
+ start: number;
9534
+ end?: number | undefined;
9535
+ };
9536
+ enrollment: "required" | "none";
9537
+ posts: "after-enrollment" | "since-start";
9538
+ historical: "staff" | "automatic" | "claim";
9539
+ } | undefined;
9540
+ } | {
8800
9541
  kind: "manual";
8801
9542
  input: "text";
8802
9543
  constraints: {
@@ -8817,12 +9558,6 @@ declare function createRelayClient(options: {
8817
9558
  kind: "manual";
8818
9559
  input: "quiz" | "photo" | "none";
8819
9560
  actor?: "member" | "staff" | undefined;
8820
- } | {
8821
- kind: "automatic";
8822
- observation?: {
8823
- source: string;
8824
- type: string;
8825
- } | undefined;
8826
9561
  };
8827
9562
  requires: {
8828
9563
  quest: string;
@@ -8840,20 +9575,24 @@ declare function createRelayClient(options: {
8840
9575
  visibility: "visible" | "hidden";
8841
9576
  budgets: {
8842
9577
  id: string;
8843
- scope: "member" | "project";
9578
+ scope: "project" | "member";
8844
9579
  period: "day" | "lifetime";
8845
9580
  limit: number;
8846
9581
  cost: number | {
8847
9582
  balance: string;
8848
9583
  };
8849
9584
  }[];
9585
+ performance?: {
9586
+ metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
9587
+ maxAgeMs: number;
9588
+ } | undefined;
8850
9589
  };
8851
9590
  }>;
8852
9591
  /** @deprecated The participant API accepts only member sessions and rejects this staff call. Use the management API with a management key instead. */
8853
9592
  snapshot: () => Promise<{
8854
9593
  releases: {
8855
9594
  quest: string;
8856
- runtimeVersion: 1 | 2;
9595
+ runtimeVersion: 2 | 1;
8857
9596
  title: string;
8858
9597
  presentation: {
8859
9598
  quiz?: {
@@ -8890,12 +9629,12 @@ declare function createRelayClient(options: {
8890
9629
  kind: "resource";
8891
9630
  default: string;
8892
9631
  source: {
9632
+ provider: "domino";
9633
+ resource: "point-ledger";
9634
+ } | {
8893
9635
  provider: "discord";
8894
9636
  resource: "channel";
8895
9637
  types: ("text" | "announcement")[];
8896
- } | {
8897
- provider: "domino";
8898
- resource: "point-ledger";
8899
9638
  } | {
8900
9639
  provider: "discord";
8901
9640
  resource: "role";
@@ -8981,6 +9720,22 @@ declare function createRelayClient(options: {
8981
9720
  })[];
8982
9721
  humanReview: boolean;
8983
9722
  trigger: {
9723
+ kind: "automatic";
9724
+ observation?: {
9725
+ source: string;
9726
+ type: string;
9727
+ } | undefined;
9728
+ content?: {
9729
+ tracker: string;
9730
+ window: {
9731
+ start: number;
9732
+ end?: number | undefined;
9733
+ };
9734
+ enrollment: "required" | "none";
9735
+ posts: "after-enrollment" | "since-start";
9736
+ historical: "staff" | "automatic" | "claim";
9737
+ } | undefined;
9738
+ } | {
8984
9739
  kind: "manual";
8985
9740
  input: "text";
8986
9741
  constraints: {
@@ -9001,12 +9756,6 @@ declare function createRelayClient(options: {
9001
9756
  kind: "manual";
9002
9757
  input: "quiz" | "photo" | "none";
9003
9758
  actor?: "member" | "staff" | undefined;
9004
- } | {
9005
- kind: "automatic";
9006
- observation?: {
9007
- source: string;
9008
- type: string;
9009
- } | undefined;
9010
9759
  };
9011
9760
  requires: {
9012
9761
  quest: string;
@@ -9024,7 +9773,7 @@ declare function createRelayClient(options: {
9024
9773
  visibility: "visible" | "hidden";
9025
9774
  budgets: {
9026
9775
  id: string;
9027
- scope: "member" | "project";
9776
+ scope: "project" | "member";
9028
9777
  period: "day" | "lifetime";
9029
9778
  limit: number;
9030
9779
  cost: number | {
@@ -9037,6 +9786,10 @@ declare function createRelayClient(options: {
9037
9786
  createdAt: number;
9038
9787
  legacy: boolean;
9039
9788
  lifecycle: "active" | "paused" | "archived";
9789
+ performance?: {
9790
+ metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
9791
+ maxAgeMs: number;
9792
+ } | undefined;
9040
9793
  key?: string | undefined;
9041
9794
  origin?: {
9042
9795
  typeVersion: string;
@@ -9152,7 +9905,7 @@ declare function createRelayClient(options: {
9152
9905
  quest: string;
9153
9906
  member: string;
9154
9907
  evidence: string | null;
9155
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
9908
+ status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
9156
9909
  reason: string | null;
9157
9910
  retries: number;
9158
9911
  generation: number;
@@ -9218,7 +9971,7 @@ declare function createRelayClient(options: {
9218
9971
  /** @deprecated The participant API rejects publication. Publish with `domino deploy` or the management API. */
9219
9972
  publish: (release: ReleaseInput) => Promise<{
9220
9973
  quest: string;
9221
- runtimeVersion: 1 | 2;
9974
+ runtimeVersion: 2 | 1;
9222
9975
  title: string;
9223
9976
  presentation: {
9224
9977
  quiz?: {
@@ -9255,12 +10008,12 @@ declare function createRelayClient(options: {
9255
10008
  kind: "resource";
9256
10009
  default: string;
9257
10010
  source: {
10011
+ provider: "domino";
10012
+ resource: "point-ledger";
10013
+ } | {
9258
10014
  provider: "discord";
9259
10015
  resource: "channel";
9260
10016
  types: ("text" | "announcement")[];
9261
- } | {
9262
- provider: "domino";
9263
- resource: "point-ledger";
9264
10017
  } | {
9265
10018
  provider: "discord";
9266
10019
  resource: "role";
@@ -9346,6 +10099,22 @@ declare function createRelayClient(options: {
9346
10099
  })[];
9347
10100
  humanReview: boolean;
9348
10101
  trigger: {
10102
+ kind: "automatic";
10103
+ observation?: {
10104
+ source: string;
10105
+ type: string;
10106
+ } | undefined;
10107
+ content?: {
10108
+ tracker: string;
10109
+ window: {
10110
+ start: number;
10111
+ end?: number | undefined;
10112
+ };
10113
+ enrollment: "required" | "none";
10114
+ posts: "after-enrollment" | "since-start";
10115
+ historical: "staff" | "automatic" | "claim";
10116
+ } | undefined;
10117
+ } | {
9349
10118
  kind: "manual";
9350
10119
  input: "text";
9351
10120
  constraints: {
@@ -9366,12 +10135,6 @@ declare function createRelayClient(options: {
9366
10135
  kind: "manual";
9367
10136
  input: "quiz" | "photo" | "none";
9368
10137
  actor?: "member" | "staff" | undefined;
9369
- } | {
9370
- kind: "automatic";
9371
- observation?: {
9372
- source: string;
9373
- type: string;
9374
- } | undefined;
9375
10138
  };
9376
10139
  requires: {
9377
10140
  quest: string;
@@ -9389,7 +10152,7 @@ declare function createRelayClient(options: {
9389
10152
  visibility: "visible" | "hidden";
9390
10153
  budgets: {
9391
10154
  id: string;
9392
- scope: "member" | "project";
10155
+ scope: "project" | "member";
9393
10156
  period: "day" | "lifetime";
9394
10157
  limit: number;
9395
10158
  cost: number | {
@@ -9402,6 +10165,10 @@ declare function createRelayClient(options: {
9402
10165
  createdAt: number;
9403
10166
  legacy: boolean;
9404
10167
  lifecycle: "active" | "paused" | "archived";
10168
+ performance?: {
10169
+ metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
10170
+ maxAgeMs: number;
10171
+ } | undefined;
9405
10172
  key?: string | undefined;
9406
10173
  origin?: {
9407
10174
  typeVersion: string;
@@ -9431,7 +10198,7 @@ declare function createRelayClient(options: {
9431
10198
  /** @deprecated The participant API rejects publication. Publish with `domino deploy` or the management API. */
9432
10199
  publishBatch: (releases: ReleaseInput[]) => Promise<{
9433
10200
  quest: string;
9434
- runtimeVersion: 1 | 2;
10201
+ runtimeVersion: 2 | 1;
9435
10202
  title: string;
9436
10203
  presentation: {
9437
10204
  quiz?: {
@@ -9468,12 +10235,12 @@ declare function createRelayClient(options: {
9468
10235
  kind: "resource";
9469
10236
  default: string;
9470
10237
  source: {
10238
+ provider: "domino";
10239
+ resource: "point-ledger";
10240
+ } | {
9471
10241
  provider: "discord";
9472
10242
  resource: "channel";
9473
10243
  types: ("text" | "announcement")[];
9474
- } | {
9475
- provider: "domino";
9476
- resource: "point-ledger";
9477
10244
  } | {
9478
10245
  provider: "discord";
9479
10246
  resource: "role";
@@ -9559,6 +10326,22 @@ declare function createRelayClient(options: {
9559
10326
  })[];
9560
10327
  humanReview: boolean;
9561
10328
  trigger: {
10329
+ kind: "automatic";
10330
+ observation?: {
10331
+ source: string;
10332
+ type: string;
10333
+ } | undefined;
10334
+ content?: {
10335
+ tracker: string;
10336
+ window: {
10337
+ start: number;
10338
+ end?: number | undefined;
10339
+ };
10340
+ enrollment: "required" | "none";
10341
+ posts: "after-enrollment" | "since-start";
10342
+ historical: "staff" | "automatic" | "claim";
10343
+ } | undefined;
10344
+ } | {
9562
10345
  kind: "manual";
9563
10346
  input: "text";
9564
10347
  constraints: {
@@ -9579,12 +10362,6 @@ declare function createRelayClient(options: {
9579
10362
  kind: "manual";
9580
10363
  input: "quiz" | "photo" | "none";
9581
10364
  actor?: "member" | "staff" | undefined;
9582
- } | {
9583
- kind: "automatic";
9584
- observation?: {
9585
- source: string;
9586
- type: string;
9587
- } | undefined;
9588
10365
  };
9589
10366
  requires: {
9590
10367
  quest: string;
@@ -9602,7 +10379,7 @@ declare function createRelayClient(options: {
9602
10379
  visibility: "visible" | "hidden";
9603
10380
  budgets: {
9604
10381
  id: string;
9605
- scope: "member" | "project";
10382
+ scope: "project" | "member";
9606
10383
  period: "day" | "lifetime";
9607
10384
  limit: number;
9608
10385
  cost: number | {
@@ -9615,6 +10392,10 @@ declare function createRelayClient(options: {
9615
10392
  createdAt: number;
9616
10393
  legacy: boolean;
9617
10394
  lifecycle: "active" | "paused" | "archived";
10395
+ performance?: {
10396
+ metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
10397
+ maxAgeMs: number;
10398
+ } | undefined;
9618
10399
  key?: string | undefined;
9619
10400
  origin?: {
9620
10401
  typeVersion: string;
@@ -9666,8 +10447,24 @@ declare function createRelayClient(options: {
9666
10447
  } | undefined;
9667
10448
  } | undefined;
9668
10449
  };
9669
- connections: ("google" | "apple" | "x" | "discord")[];
10450
+ connections: ("discord" | "google" | "apple" | "x")[];
9670
10451
  trigger: {
10452
+ kind: "automatic";
10453
+ observation?: {
10454
+ source: string;
10455
+ type: string;
10456
+ } | undefined;
10457
+ content?: {
10458
+ tracker: string;
10459
+ window: {
10460
+ start: number;
10461
+ end?: number | undefined;
10462
+ };
10463
+ enrollment: "required" | "none";
10464
+ posts: "after-enrollment" | "since-start";
10465
+ historical: "staff" | "automatic" | "claim";
10466
+ } | undefined;
10467
+ } | {
9671
10468
  kind: "manual";
9672
10469
  input: "text";
9673
10470
  constraints: {
@@ -9688,16 +10485,10 @@ declare function createRelayClient(options: {
9688
10485
  kind: "manual";
9689
10486
  input: "quiz" | "photo" | "none";
9690
10487
  actor?: "member" | "staff" | undefined;
9691
- } | {
9692
- kind: "automatic";
9693
- observation?: {
9694
- source: string;
9695
- type: string;
9696
- } | undefined;
9697
10488
  };
9698
10489
  availability: {
9699
10490
  kind: "available";
9700
- input: "quiz" | "url" | "text" | "photo" | "none";
10491
+ input: "quiz" | "text" | "url" | "photo" | "none";
9701
10492
  } | {
9702
10493
  kind: "completed";
9703
10494
  } | {
@@ -9746,7 +10537,7 @@ declare function createRelayClient(options: {
9746
10537
  quest: string;
9747
10538
  member: string;
9748
10539
  evidence: string | null;
9749
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
10540
+ status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
9750
10541
  reason: string | null;
9751
10542
  retries: number;
9752
10543
  generation: number;
@@ -10069,13 +10860,184 @@ declare function createRelayClient(options: {
10069
10860
  type: "image/jpeg" | "image/png";
10070
10861
  size: number;
10071
10862
  }>;
10863
+ engagement: {
10864
+ boundaries: (input: z.output<typeof engagementPageQuerySchema>) => Promise<{
10865
+ current: {
10866
+ version: string;
10867
+ definition: {
10868
+ key: string;
10869
+ qualifiedBy: string;
10870
+ balance: string;
10871
+ metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
10872
+ baseline: "historical";
10873
+ maxAgeMs: number;
10874
+ budget: {
10875
+ projectDaily?: number | undefined;
10876
+ memberDaily?: number | undefined;
10877
+ projectLifetime?: number | undefined;
10878
+ };
10879
+ };
10880
+ publishedAt: number;
10881
+ } | null;
10882
+ requested: {
10883
+ version: string;
10884
+ definition: {
10885
+ key: string;
10886
+ qualifiedBy: string;
10887
+ balance: string;
10888
+ metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
10889
+ baseline: "historical";
10890
+ maxAgeMs: number;
10891
+ budget: {
10892
+ projectDaily?: number | undefined;
10893
+ memberDaily?: number | undefined;
10894
+ projectLifetime?: number | undefined;
10895
+ };
10896
+ };
10897
+ publishedAt: number;
10898
+ };
10899
+ items: {
10900
+ from: string;
10901
+ to: string;
10902
+ baseline: Partial<Record<"likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks", number>>;
10903
+ observedAt: number;
10904
+ settlement: {
10905
+ id: string;
10906
+ day: string;
10907
+ observation: string;
10908
+ qualification: string;
10909
+ earned: number;
10910
+ growth: number;
10911
+ paid: number;
10912
+ excluded: number;
10913
+ entry: string | null;
10914
+ createdAt: number;
10915
+ };
10916
+ }[];
10917
+ next: number | null;
10918
+ }>;
10919
+ page: (input: z.output<typeof engagementPageQuerySchema>) => Promise<{
10920
+ rule: {
10921
+ version: string;
10922
+ definition: {
10923
+ key: string;
10924
+ qualifiedBy: string;
10925
+ balance: string;
10926
+ metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
10927
+ baseline: "historical";
10928
+ maxAgeMs: number;
10929
+ budget: {
10930
+ projectDaily?: number | undefined;
10931
+ memberDaily?: number | undefined;
10932
+ projectLifetime?: number | undefined;
10933
+ };
10934
+ };
10935
+ publishedAt: number;
10936
+ };
10937
+ account: {
10938
+ member: string;
10939
+ earned: number;
10940
+ accounted: number;
10941
+ paid: number;
10942
+ excluded: number;
10943
+ pending: number;
10944
+ counters: Partial<Record<"likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks", number>>;
10945
+ baseline: Partial<Record<"likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks", number>>;
10946
+ observation: string | null;
10947
+ nextSettlementAt: number | null;
10948
+ reason: string | null;
10949
+ } | null;
10950
+ items: {
10951
+ id: string;
10952
+ day: string;
10953
+ observation: string;
10954
+ qualification: string;
10955
+ earned: number;
10956
+ growth: number;
10957
+ paid: number;
10958
+ excluded: number;
10959
+ entry: string | null;
10960
+ createdAt: number;
10961
+ }[];
10962
+ next: number | null;
10963
+ }>;
10964
+ };
10965
+ content: {
10966
+ performance: (input: z.output<typeof contentPerformanceQuerySchema>) => Promise<{
10967
+ current: {
10968
+ state: "needs-review" | "failed" | "pending" | "qualified" | "content-pending" | "content-unqualified" | "waiting" | "unqualified" | "superseded";
10969
+ reason: string | null;
10970
+ contentAttempt: string;
10971
+ attempt: string | null;
10972
+ reward: {
10973
+ attempt: string | null;
10974
+ completion: string | null;
10975
+ state: "awarded" | "excluded" | "unresolved";
10976
+ };
10977
+ };
10978
+ items: {
10979
+ attempt: string;
10980
+ contentAttempt: string;
10981
+ observation: string;
10982
+ observedAt: number;
10983
+ metrics: Partial<Record<"likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks", number>>;
10984
+ state: "needs-review" | "failed" | "pending" | "qualified" | "unqualified" | "superseded";
10985
+ reason: string | null;
10986
+ }[];
10987
+ next: number | null;
10988
+ }>;
10989
+ qualifications: (input: z.output<typeof contentQualificationQuerySchema>) => Promise<{
10990
+ items: {
10991
+ quest: string;
10992
+ content: string;
10993
+ member: string;
10994
+ release: string;
10995
+ attempt: string;
10996
+ revision: string;
10997
+ observation: string;
10998
+ current: boolean;
10999
+ state: "needs-review" | "failed" | "pending" | "qualified" | "unqualified" | "superseded" | "stale" | "blocked" | "unavailable";
11000
+ reason: string | null;
11001
+ reward: {
11002
+ attempt: string | null;
11003
+ completion: string | null;
11004
+ state: "awarded" | "excluded" | "unresolved";
11005
+ };
11006
+ }[];
11007
+ next: number | null;
11008
+ }>;
11009
+ admissions: (input: z.input<typeof contentAdmissionQuerySchema>) => Promise<{
11010
+ items: {
11011
+ quest: string;
11012
+ content: string;
11013
+ release: string;
11014
+ state: "pending" | "excluded" | "admitted";
11015
+ reason: string | null;
11016
+ attempt: string | null;
11017
+ }[];
11018
+ next: string | null;
11019
+ }>;
11020
+ enroll: (input: z.input<typeof contentEnrollmentInputSchema>) => Promise<{
11021
+ quest: string;
11022
+ member: string;
11023
+ enrolledAt: number;
11024
+ }>;
11025
+ claim: (input: z.input<typeof contentReleaseInputSchema>) => Promise<{
11026
+ quest: string;
11027
+ content: string;
11028
+ release: string;
11029
+ state: "pending" | "excluded" | "admitted";
11030
+ reason: string | null;
11031
+ attempt: string | null;
11032
+ }>;
11033
+ };
10072
11034
  submit: (input: SubmitInput) => Promise<{
10073
11035
  id: string;
10074
11036
  release: string;
10075
11037
  quest: string;
10076
11038
  member: string;
10077
11039
  evidence: string | null;
10078
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
11040
+ status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
10079
11041
  reason: string | null;
10080
11042
  retries: number;
10081
11043
  generation: number;
@@ -10128,7 +11090,7 @@ declare function createRelayClient(options: {
10128
11090
  quest: string;
10129
11091
  member: string;
10130
11092
  evidence: string | null;
10131
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
11093
+ status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
10132
11094
  reason: string | null;
10133
11095
  retries: number;
10134
11096
  generation: number;
@@ -10187,7 +11149,7 @@ declare function createRelayClient(options: {
10187
11149
  quest: string;
10188
11150
  member: string;
10189
11151
  evidence: string | null;
10190
- status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
11152
+ status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
10191
11153
  reason: string | null;
10192
11154
  retries: number;
10193
11155
  generation: number;
@@ -10236,4 +11198,4 @@ declare function createRelayClient(options: {
10236
11198
  }>;
10237
11199
  };
10238
11200
 
10239
- export { Attempt, AuthProvider, type ClaimSubmission, type CollectionPass, type DeploymentPreview, type ExchangeInput, LeaderboardQuery, MemberListOptions, MemberProgress, type PhotoSubmission, type PointLedger, type ProgressObservation, type ProgressObserver, PublishedRelease, type QuestActionResult, type QuestCatalog, type QuestController, type QuestDraft, type QuestInstance, type QuestInteraction, QuestUpdatedError, type QuestView, QuizEvidence, type QuizSubmission, RelayError, ReleaseInput, ReviewListOptions, type Session, type SubmissionDraft, type SubmissionStatus, type SubmissionStore, SubmitInput, ValueEvidence, type ValueSubmission, allocateQuestSchema, allocatedQuestSchema, authScopeSchema, beginHandoverSchema, catalogDeploymentPreviewSchema, catalogDeploymentSchema, collectionBeginSchema, collectionCodeSchema, collectionPassSchema, collectionPreviewSchema, collectionResolveSchema, collectionSlotDeclarationSchema, collectionSlotSchema, collectionViewSchema, createPointLedgerSchema, createRelayClient, deploymentPreviewSchema, deploymentResultSchema, errorSchema, exchangeResultSchema, exchangeSchema, identityIntegrationInputSchema, identityIntegrationSchema, identityIntegrationSecretSchema, interactionSchema, participantExchangeSchema, pointLedgerDeclarationSchema, pointLedgerPropertiesSchema, pointLedgerSchema, principalSchema, projectCatalogArtifactSchema, projectDeploymentSchema, publishDeploymentSchema, publishQuestDraftSchema, questActions, questCatalogSchema, questCollectionSchema, questConfiguration, questDescriptionSchema, questDraftChangesSchema, questDraftSchema, questExperienceSchema, questInstanceSchema, questInteraction, questPublicationPreviewSchema, questTypeVersionSchema, questViewSchema, reconcileQuestDraft, referralAcceptSchema, rewardDeliveriesSchema, rewardDeliverySchema, saveQuestDraftSchema, sessionSchema, walletChallengeInputSchema, walletProofSchema };
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 };