@domino-sdk/relay 0.17.1 → 0.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { V as ValueEvidence, r as referralAcceptSchema, L as LeaderboardQuery, w as walletChallengeInputSchema, l as walletProofSchema, m as AuthProvider } from './submission-input-Cktvl71b.js';
2
- export { n as AccountConnection, B as Budget, D as DiscordMember, a as DiscordMessage, I as IntegrationProvider, u as LeaderboardDefinition, t as LeaderboardPage, O as Observation, P as ProjectIntegration, Q as QuizContent, R as ReferralDefinition, v as ResourceOption, y as ResourceSource, z as SettingField, C as SettingsValues, S as SolanaBalance, b as StreakPolicy, E as StreakProgress, c as TextEvidence, d as TextOptions, F as TrackerDefinition, G as TrackerPreview, H as TrackerPreviewInput, J as TrackerQuery, T as TrackerReader, K as TrackerRecord, M as TrackerStatus, U as UrlEvidence, e as UrlOptions, W as WalletConnection, N as XConnection, Y as XPost, Z as XProfile, X as XReader, _ as XTweet, $ as accountConnectionSchema, a0 as authProviderSchema, a1 as budgetSchema, a2 as communityTimeZoneSchema, a3 as compatibleSettingKinds, a4 as completionKeySchema, a5 as completionPolicySchema, f as customSource, g as defineLeaderboard, h as defineReferral, i as defineTracker, j as discord, a6 as discordMemberInputSchema, a7 as discordMemberSchema, a8 as discordMessageInputSchema, a9 as discordMessageSchema, aa as discordReactionSchema, ab as discordServerSchema, ac as integrationProviderSchema, ad as leaderboardArtifactSchema, ae as leaderboardAuthoringSchema, af as leaderboardDefinitionSchema, ag as leaderboardExclusionSchema, ah as leaderboardGroupSchema, ai as leaderboardPageSchema, aj as leaderboardPreviewSchema, ak as leaderboardQuerySchema, al as leaderboardRowSchema, am as leaderboardWindowSchema, an as missingResourceSettings, ao as observationInputSchema, ap as observationReceiptSchema, aq as observationSchema, o as observationTriggerSchema, ar as parseSettings, p as pointLedgers, as as pointsAccountSchema, at as pointsEntrySchema, au as pointsMutationSchema, av as pointsResultSchema, aw as projectIntegrationSchema, ax as publishedLeaderboardSchema, ay as publishedReferralSchema, az as publishedTrackerSchema, aA as quizChoiceSchema, aB as quizContentSchema, aC as quizQuestionSchema, aD as quizQuestionsSchema, aE as referralAccountSchema, aF as referralArtifactSchema, aG as referralAuthoringSchema, aH as referralControlSchema, aI as referralDefinitionSchema, aJ as referralHistorySchema, aK as referralManagementSchema, aL as referralRelationshipSchema, q as referralSummarySchema, aM as resourceOptionsSchema, aN as resourceRequestSchema, aO as resourceSourceSchema, aP as settingFieldSchema, s as settings, aQ as settingsFieldsSchema, aR as settingsValuesSchema, aS as solanaAddressSchema, aT as solanaBalanceSchema, k as streak, aU as streakPolicySchema, aV as streakProgressSchema, aW as textEvidenceSchema, aX as textOptionsSchema, aY as trackerArtifactSchema, aZ as trackerControlSchema, a_ as trackerDefinitionSchema, a$ as trackerIngestResultSchema, b0 as trackerIngestSchema, b1 as trackerPageSchema, b2 as trackerPreviewInputSchema, b3 as trackerPreviewLimits, b4 as trackerPreviewSchema, b5 as trackerQuerySchema, b6 as trackerRecordInputSchema, b7 as trackerRecordSchema, b8 as trackerSourceSchema, b9 as trackerStatusSchema, ba as trackerSummarySchema, bb as urlEvidenceSchema, bc as urlOptionsSchema, bd as validateSubmissionValue, be as valueEvidenceSchema, bf as walletChallengeSchema, bg as walletConnectionSchema, x, bh as xConnectionSchema, bi as xIdSchema, bj as xPostId, bk as xPostSchema, bl as xProfileSchema, bm as xRequestSchema, bn as xTweetSchema } from './submission-input-Cktvl71b.js';
1
+ 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
+ quiz: "quiz";
203
203
  url: "url";
204
204
  text: "text";
205
- quiz: "quiz";
205
+ staff: "staff";
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
- project: "project";
413
443
  member: "member";
444
+ project: "project";
414
445
  }>;
415
446
  period: z.ZodEnum<{
416
447
  day: "day";
@@ -444,7 +475,7 @@ declare const collectionSlotDeclarationSchema: z.ZodPipe<z.ZodObject<{
444
475
  title: string;
445
476
  key?: string | undefined;
446
477
  id?: string | undefined;
447
- }, "id" | "key"> & {
478
+ }, "key" | "id"> & {
448
479
  key: string;
449
480
  }, {
450
481
  title: string;
@@ -472,8 +503,8 @@ declare const questInstanceSchema: z.ZodObject<{
472
503
  }, z.core.$strict>>]>>;
473
504
  requires: z.ZodArray<z.ZodString>;
474
505
  status: z.ZodEnum<{
475
- paused: "paused";
476
506
  active: "active";
507
+ paused: "paused";
477
508
  archived: "archived";
478
509
  }>;
479
510
  }, z.core.$strict>;
@@ -493,8 +524,8 @@ declare const questDraftChangesSchema: z.ZodObject<{
493
524
  }, z.core.$strict>>]>>;
494
525
  requires: z.ZodArray<z.ZodString>;
495
526
  status: z.ZodEnum<{
496
- paused: "paused";
497
527
  active: "active";
528
+ paused: "paused";
498
529
  archived: "archived";
499
530
  }>;
500
531
  expectedRelease: z.ZodNullable<z.ZodString>;
@@ -526,8 +557,8 @@ declare const questDraftSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
526
557
  }, z.core.$strict>>]>>;
527
558
  requires: z.ZodArray<z.ZodString>;
528
559
  status: z.ZodEnum<{
529
- paused: "paused";
530
560
  active: "active";
561
+ paused: "paused";
531
562
  archived: "archived";
532
563
  }>;
533
564
  expectedRelease: z.ZodNullable<z.ZodString>;
@@ -560,8 +591,8 @@ declare const questDraftSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
560
591
  }, z.core.$strict>>]>>;
561
592
  requires: z.ZodArray<z.ZodString>;
562
593
  status: z.ZodEnum<{
563
- paused: "paused";
564
594
  active: "active";
595
+ paused: "paused";
565
596
  archived: "archived";
566
597
  }>;
567
598
  expectedRelease: z.ZodNullable<z.ZodString>;
@@ -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
- project: "project";
782
843
  member: "member";
844
+ project: "project";
783
845
  }>;
784
846
  period: z.ZodEnum<{
785
847
  day: "day";
@@ -821,8 +883,8 @@ declare const questCatalogSchema: z.ZodObject<{
821
883
  }, z.core.$strict>>]>>;
822
884
  requires: z.ZodArray<z.ZodString>;
823
885
  status: z.ZodEnum<{
824
- paused: "paused";
825
886
  active: "active";
887
+ paused: "paused";
826
888
  archived: "archived";
827
889
  }>;
828
890
  }, z.core.$strict>>;
@@ -846,8 +908,8 @@ declare const questCatalogSchema: z.ZodObject<{
846
908
  }, z.core.$strict>>]>>;
847
909
  requires: z.ZodArray<z.ZodString>;
848
910
  status: z.ZodEnum<{
849
- paused: "paused";
850
911
  active: "active";
912
+ paused: "paused";
851
913
  archived: "archived";
852
914
  }>;
853
915
  expectedRelease: z.ZodNullable<z.ZodString>;
@@ -880,8 +942,8 @@ declare const questCatalogSchema: z.ZodObject<{
880
942
  }, z.core.$strict>>]>>;
881
943
  requires: z.ZodArray<z.ZodString>;
882
944
  status: z.ZodEnum<{
883
- paused: "paused";
884
945
  active: "active";
946
+ paused: "paused";
885
947
  archived: "archived";
886
948
  }>;
887
949
  expectedRelease: z.ZodNullable<z.ZodString>;
@@ -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
- project: "project";
1095
1187
  member: "member";
1188
+ project: "project";
1096
1189
  }>;
1097
1190
  period: z.ZodEnum<{
1098
1191
  day: "day";
@@ -1119,8 +1212,8 @@ declare const questCatalogSchema: z.ZodObject<{
1119
1212
  typeVersion: z.ZodString;
1120
1213
  }, z.core.$strict>>;
1121
1214
  lifecycle: z.ZodDefault<z.ZodEnum<{
1122
- paused: "paused";
1123
1215
  active: "active";
1216
+ paused: "paused";
1124
1217
  archived: "archived";
1125
1218
  }>>;
1126
1219
  configuration: z.ZodOptional<z.ZodObject<{
@@ -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: 2 | 1;
1284
+ runtimeVersion: 1 | 2;
1192
1285
  title: string;
1193
1286
  presentation: {
1194
1287
  quiz?: {
@@ -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: "project" | "member";
1465
+ scope: "member" | "project";
1363
1466
  period: "day" | "lifetime";
1364
1467
  limit: number;
1365
1468
  cost: number | {
@@ -1371,7 +1474,11 @@ declare const questCatalogSchema: z.ZodObject<{
1371
1474
  id: string;
1372
1475
  createdAt: number;
1373
1476
  legacy: boolean;
1374
- lifecycle: "paused" | "active" | "archived";
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<{
1438
- staff: "staff";
1545
+ quiz: "quiz";
1439
1546
  url: "url";
1440
1547
  text: "text";
1441
- quiz: "quiz";
1548
+ staff: "staff";
1442
1549
  photo: "photo";
1443
1550
  automatic: "automatic";
1444
1551
  claim: "claim";
@@ -1460,7 +1567,7 @@ declare const catalogDeploymentSchema: z.ZodObject<{
1460
1567
  title: string;
1461
1568
  key?: string | undefined;
1462
1569
  id?: string | undefined;
1463
- }, "id" | "key"> & {
1570
+ }, "key" | "id"> & {
1464
1571
  key: string;
1465
1572
  }, {
1466
1573
  title: string;
@@ -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<{
1471
- staff: "staff";
1578
+ quiz: "quiz";
1472
1579
  url: "url";
1473
1580
  text: "text";
1474
- quiz: "quiz";
1581
+ staff: "staff";
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
- project: "project";
1683
1820
  member: "member";
1821
+ project: "project";
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<{
1710
- staff: "staff";
1848
+ quiz: "quiz";
1711
1849
  url: "url";
1712
1850
  text: "text";
1713
- quiz: "quiz";
1851
+ staff: "staff";
1714
1852
  photo: "photo";
1715
1853
  automatic: "automatic";
1716
1854
  claim: "claim";
@@ -1737,8 +1875,8 @@ declare const saveQuestDraftSchema: z.ZodObject<{
1737
1875
  }, z.core.$strict>>]>>;
1738
1876
  requires: z.ZodArray<z.ZodString>;
1739
1877
  status: z.ZodEnum<{
1740
- paused: "paused";
1741
1878
  active: "active";
1879
+ paused: "paused";
1742
1880
  archived: "archived";
1743
1881
  }>;
1744
1882
  expectedRelease: z.ZodNullable<z.ZodString>;
@@ -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<{
1783
- discord: "discord";
1784
1921
  google: "google";
1785
1922
  apple: "apple";
1786
1923
  x: "x";
1924
+ 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<{
1990
+ quiz: "quiz";
1832
1991
  url: "url";
1833
1992
  text: "text";
1834
- quiz: "quiz";
1835
1993
  photo: "photo";
1836
1994
  none: "none";
1837
1995
  }>;
@@ -1930,13 +2088,13 @@ declare const questViewSchema: z.ZodObject<{
1930
2088
  value: z.ZodString;
1931
2089
  }, z.core.$strict>]>>;
1932
2090
  status: z.ZodEnum<{
1933
- failed: "failed";
2091
+ "needs-review": "needs-review";
1934
2092
  queued: "queued";
1935
2093
  evaluating: "evaluating";
1936
2094
  accepted: "accepted";
1937
2095
  progressed: "progressed";
1938
2096
  rejected: "rejected";
1939
- "needs-review": "needs-review";
2097
+ failed: "failed";
1940
2098
  }>;
1941
2099
  reason: z.ZodNullable<z.ZodString>;
1942
2100
  retries: z.ZodNumber;
@@ -1973,17 +2131,17 @@ declare const questViewSchema: z.ZodObject<{
1973
2131
  }, z.core.$strip>>;
1974
2132
  release: z.ZodString;
1975
2133
  interaction: z.ZodEnum<{
1976
- staff: "staff";
2134
+ quiz: "quiz";
1977
2135
  url: "url";
1978
2136
  text: "text";
1979
- quiz: "quiz";
2137
+ staff: "staff";
1980
2138
  photo: "photo";
1981
2139
  automatic: "automatic";
1982
2140
  claim: "claim";
1983
2141
  }>;
1984
2142
  lifecycle: z.ZodEnum<{
1985
- paused: "paused";
1986
2143
  active: "active";
2144
+ paused: "paused";
1987
2145
  archived: "archived";
1988
2146
  }>;
1989
2147
  rewards: z.ZodArray<z.ZodObject<{
@@ -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<{
2022
- discord: "discord";
2023
2180
  google: "google";
2024
2181
  apple: "apple";
2025
2182
  x: "x";
2183
+ 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<{
2249
+ quiz: "quiz";
2071
2250
  url: "url";
2072
2251
  text: "text";
2073
- quiz: "quiz";
2074
2252
  photo: "photo";
2075
2253
  none: "none";
2076
2254
  }>;
@@ -2169,13 +2347,13 @@ declare const collectionViewSchema: z.ZodObject<{
2169
2347
  value: z.ZodString;
2170
2348
  }, z.core.$strict>]>>;
2171
2349
  status: z.ZodEnum<{
2172
- failed: "failed";
2350
+ "needs-review": "needs-review";
2173
2351
  queued: "queued";
2174
2352
  evaluating: "evaluating";
2175
2353
  accepted: "accepted";
2176
2354
  progressed: "progressed";
2177
2355
  rejected: "rejected";
2178
- "needs-review": "needs-review";
2356
+ failed: "failed";
2179
2357
  }>;
2180
2358
  reason: z.ZodNullable<z.ZodString>;
2181
2359
  retries: z.ZodNumber;
@@ -2212,17 +2390,17 @@ declare const collectionViewSchema: z.ZodObject<{
2212
2390
  }, z.core.$strip>>;
2213
2391
  release: z.ZodString;
2214
2392
  interaction: z.ZodEnum<{
2215
- staff: "staff";
2393
+ quiz: "quiz";
2216
2394
  url: "url";
2217
2395
  text: "text";
2218
- quiz: "quiz";
2396
+ staff: "staff";
2219
2397
  photo: "photo";
2220
2398
  automatic: "automatic";
2221
2399
  claim: "claim";
2222
2400
  }>;
2223
2401
  lifecycle: z.ZodEnum<{
2224
- paused: "paused";
2225
2402
  active: "active";
2403
+ paused: "paused";
2226
2404
  archived: "archived";
2227
2405
  }>;
2228
2406
  rewards: z.ZodArray<z.ZodObject<{
@@ -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<{
2260
- discord: "discord";
2261
2438
  google: "google";
2262
2439
  apple: "apple";
2263
2440
  x: "x";
2441
+ 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<{
2507
+ quiz: "quiz";
2309
2508
  url: "url";
2310
2509
  text: "text";
2311
- quiz: "quiz";
2312
2510
  photo: "photo";
2313
2511
  none: "none";
2314
2512
  }>;
@@ -2407,13 +2605,13 @@ declare const questExperienceSchema: z.ZodObject<{
2407
2605
  value: z.ZodString;
2408
2606
  }, z.core.$strict>]>>;
2409
2607
  status: z.ZodEnum<{
2410
- failed: "failed";
2608
+ "needs-review": "needs-review";
2411
2609
  queued: "queued";
2412
2610
  evaluating: "evaluating";
2413
2611
  accepted: "accepted";
2414
2612
  progressed: "progressed";
2415
2613
  rejected: "rejected";
2416
- "needs-review": "needs-review";
2614
+ failed: "failed";
2417
2615
  }>;
2418
2616
  reason: z.ZodNullable<z.ZodString>;
2419
2617
  retries: z.ZodNumber;
@@ -2450,17 +2648,17 @@ declare const questExperienceSchema: z.ZodObject<{
2450
2648
  }, z.core.$strip>>;
2451
2649
  release: z.ZodString;
2452
2650
  interaction: z.ZodEnum<{
2453
- staff: "staff";
2651
+ quiz: "quiz";
2454
2652
  url: "url";
2455
2653
  text: "text";
2456
- quiz: "quiz";
2654
+ staff: "staff";
2457
2655
  photo: "photo";
2458
2656
  automatic: "automatic";
2459
2657
  claim: "claim";
2460
2658
  }>;
2461
2659
  lifecycle: z.ZodEnum<{
2462
- paused: "paused";
2463
2660
  active: "active";
2661
+ paused: "paused";
2464
2662
  archived: "archived";
2465
2663
  }>;
2466
2664
  rewards: z.ZodArray<z.ZodObject<{
@@ -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<{
2499
- discord: "discord";
2500
2697
  google: "google";
2501
2698
  apple: "apple";
2502
2699
  x: "x";
2700
+ 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<{
2766
+ quiz: "quiz";
2548
2767
  url: "url";
2549
2768
  text: "text";
2550
- quiz: "quiz";
2551
2769
  photo: "photo";
2552
2770
  none: "none";
2553
2771
  }>;
@@ -2646,13 +2864,13 @@ declare const questExperienceSchema: z.ZodObject<{
2646
2864
  value: z.ZodString;
2647
2865
  }, z.core.$strict>]>>;
2648
2866
  status: z.ZodEnum<{
2649
- failed: "failed";
2867
+ "needs-review": "needs-review";
2650
2868
  queued: "queued";
2651
2869
  evaluating: "evaluating";
2652
2870
  accepted: "accepted";
2653
2871
  progressed: "progressed";
2654
2872
  rejected: "rejected";
2655
- "needs-review": "needs-review";
2873
+ failed: "failed";
2656
2874
  }>;
2657
2875
  reason: z.ZodNullable<z.ZodString>;
2658
2876
  retries: z.ZodNumber;
@@ -2689,17 +2907,17 @@ declare const questExperienceSchema: z.ZodObject<{
2689
2907
  }, z.core.$strip>>;
2690
2908
  release: z.ZodString;
2691
2909
  interaction: z.ZodEnum<{
2692
- staff: "staff";
2910
+ quiz: "quiz";
2693
2911
  url: "url";
2694
2912
  text: "text";
2695
- quiz: "quiz";
2913
+ staff: "staff";
2696
2914
  photo: "photo";
2697
2915
  automatic: "automatic";
2698
2916
  claim: "claim";
2699
2917
  }>;
2700
2918
  lifecycle: z.ZodEnum<{
2701
- paused: "paused";
2702
2919
  active: "active";
2920
+ paused: "paused";
2703
2921
  archived: "archived";
2704
2922
  }>;
2705
2923
  rewards: z.ZodArray<z.ZodObject<{
@@ -2733,8 +2951,8 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
2733
2951
  }, z.core.$strict>>]>>;
2734
2952
  requires: z.ZodArray<z.ZodString>;
2735
2953
  status: z.ZodEnum<{
2736
- paused: "paused";
2737
2954
  active: "active";
2955
+ paused: "paused";
2738
2956
  archived: "archived";
2739
2957
  }>;
2740
2958
  expectedRelease: z.ZodNullable<z.ZodString>;
@@ -2767,8 +2985,8 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
2767
2985
  }, z.core.$strict>>]>>;
2768
2986
  requires: z.ZodArray<z.ZodString>;
2769
2987
  status: z.ZodEnum<{
2770
- paused: "paused";
2771
2988
  active: "active";
2989
+ paused: "paused";
2772
2990
  archived: "archived";
2773
2991
  }>;
2774
2992
  expectedRelease: z.ZodNullable<z.ZodString>;
@@ -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
- project: "project";
2982
3230
  member: "member";
3231
+ project: "project";
2983
3232
  }>;
2984
3233
  period: z.ZodEnum<{
2985
3234
  day: "day";
@@ -3006,8 +3255,8 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
3006
3255
  typeVersion: z.ZodString;
3007
3256
  }, z.core.$strict>>;
3008
3257
  lifecycle: z.ZodDefault<z.ZodEnum<{
3009
- paused: "paused";
3010
3258
  active: "active";
3259
+ paused: "paused";
3011
3260
  archived: "archived";
3012
3261
  }>>;
3013
3262
  configuration: z.ZodOptional<z.ZodObject<{
@@ -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: 2 | 1;
3327
+ runtimeVersion: 1 | 2;
3079
3328
  title: string;
3080
3329
  presentation: {
3081
3330
  quiz?: {
@@ -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: "project" | "member";
3508
+ scope: "member" | "project";
3250
3509
  period: "day" | "lifetime";
3251
3510
  limit: number;
3252
3511
  cost: number | {
@@ -3258,7 +3517,11 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
3258
3517
  id: string;
3259
3518
  createdAt: number;
3260
3519
  legacy: boolean;
3261
- lifecycle: "paused" | "active" | "archived";
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;
@@ -3401,8 +3664,8 @@ declare const rewardDeliverySchema: z.ZodObject<{
3401
3664
  roleId: z.ZodString;
3402
3665
  status: z.ZodEnum<{
3403
3666
  pending: "pending";
3404
- delivered: "delivered";
3405
3667
  failed: "failed";
3668
+ delivered: "delivered";
3406
3669
  }>;
3407
3670
  attempts: z.ZodNumber;
3408
3671
  nextAt: z.ZodNumber;
@@ -3421,8 +3684,8 @@ declare const rewardDeliveriesSchema: z.ZodObject<{
3421
3684
  roleId: z.ZodString;
3422
3685
  status: z.ZodEnum<{
3423
3686
  pending: "pending";
3424
- delivered: "delivered";
3425
3687
  failed: "failed";
3688
+ delivered: "delivered";
3426
3689
  }>;
3427
3690
  attempts: z.ZodNumber;
3428
3691
  nextAt: z.ZodNumber;
@@ -3568,12 +3831,6 @@ declare function questConfiguration(release: PublishedRelease): {
3568
3831
 
3569
3832
  /** Non-quest resources in the private hosted-build catalog artifact. */
3570
3833
  declare const projectCatalogArtifactSchema: z.ZodObject<{
3571
- types: z.ZodDefault<z.ZodArray<z.ZodObject<{
3572
- code: z.ZodString;
3573
- provider: z.ZodEnum<{
3574
- "workers-ai": "workers-ai";
3575
- }>;
3576
- }, z.core.$strip>>>;
3577
3834
  collections: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodObject<{
3578
3835
  title: z.ZodString;
3579
3836
  key: z.ZodOptional<z.ZodString>;
@@ -3582,22 +3839,31 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
3582
3839
  title: string;
3583
3840
  key?: string | undefined;
3584
3841
  id?: string | undefined;
3585
- }, "id" | "key"> & {
3842
+ }, "key" | "id"> & {
3586
3843
  key: string;
3587
3844
  }, {
3588
3845
  title: string;
3589
3846
  key?: string | undefined;
3590
3847
  id?: string | undefined;
3591
3848
  }>>>>;
3849
+ types: z.ZodDefault<z.ZodArray<z.ZodObject<{
3850
+ code: z.ZodString;
3851
+ provider: z.ZodEnum<{
3852
+ "workers-ai": "workers-ai";
3853
+ }>;
3854
+ }, z.core.$strip>>>;
3592
3855
  supportedInteractions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
3593
- staff: "staff";
3856
+ quiz: "quiz";
3594
3857
  url: "url";
3595
3858
  text: "text";
3596
- quiz: "quiz";
3859
+ staff: "staff";
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;
@@ -3670,7 +3936,6 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
3670
3936
  tier: z.ZodString;
3671
3937
  }, z.core.$strict>]>>>;
3672
3938
  }, z.core.$strict>>;
3673
- enabled: z.ZodDefault<z.ZodBoolean>;
3674
3939
  qualification: z.ZodDiscriminatedUnion<[z.ZodObject<{
3675
3940
  kind: z.ZodLiteral<"signup">;
3676
3941
  }, z.core.$strict>, z.ZodObject<{
@@ -3679,6 +3944,7 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
3679
3944
  }, z.core.$strict>, z.ZodObject<{
3680
3945
  kind: z.ZodLiteral<"external">;
3681
3946
  }, z.core.$strict>], "kind">;
3947
+ enabled: z.ZodDefault<z.ZodBoolean>;
3682
3948
  inviterGroup: z.ZodOptional<z.ZodString>;
3683
3949
  milestones: z.ZodDefault<z.ZodArray<z.ZodObject<{
3684
3950
  id: z.ZodString;
@@ -3765,7 +4031,6 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
3765
4031
  amount: number;
3766
4032
  })[];
3767
4033
  };
3768
- enabled: boolean;
3769
4034
  qualification: {
3770
4035
  kind: "signup";
3771
4036
  } | {
@@ -3774,6 +4039,7 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
3774
4039
  } | {
3775
4040
  kind: "external";
3776
4041
  };
4042
+ enabled: boolean;
3777
4043
  milestones: {
3778
4044
  id: string;
3779
4045
  count: number;
@@ -3812,7 +4078,7 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
3812
4078
  inviterGroup?: string | undefined;
3813
4079
  key?: string | undefined;
3814
4080
  id?: string | undefined;
3815
- }, "id" | "key"> & {
4081
+ }, "key" | "id"> & {
3816
4082
  key: string;
3817
4083
  }, {
3818
4084
  title: string;
@@ -3862,7 +4128,6 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
3862
4128
  amount: number;
3863
4129
  })[];
3864
4130
  };
3865
- enabled: boolean;
3866
4131
  qualification: {
3867
4132
  kind: "signup";
3868
4133
  } | {
@@ -3871,6 +4136,7 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
3871
4136
  } | {
3872
4137
  kind: "external";
3873
4138
  };
4139
+ enabled: boolean;
3874
4140
  milestones: {
3875
4141
  id: string;
3876
4142
  count: number;
@@ -4009,7 +4275,7 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
4009
4275
  group?: string | undefined;
4010
4276
  key?: string | undefined;
4011
4277
  id?: string | undefined;
4012
- }, "id" | "key"> & {
4278
+ }, "key" | "id"> & {
4013
4279
  key: string;
4014
4280
  }, {
4015
4281
  title: string;
@@ -4060,12 +4326,6 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
4060
4326
  }, z.core.$strict>;
4061
4327
  /** One manifest bundle. Missing entries never delete remotely owned resources. */
4062
4328
  declare const projectDeploymentSchema: z.ZodObject<{
4063
- types: z.ZodDefault<z.ZodArray<z.ZodObject<{
4064
- code: z.ZodString;
4065
- provider: z.ZodEnum<{
4066
- "workers-ai": "workers-ai";
4067
- }>;
4068
- }, z.core.$strip>>>;
4069
4329
  collections: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodObject<{
4070
4330
  title: z.ZodString;
4071
4331
  key: z.ZodOptional<z.ZodString>;
@@ -4074,22 +4334,31 @@ declare const projectDeploymentSchema: z.ZodObject<{
4074
4334
  title: string;
4075
4335
  key?: string | undefined;
4076
4336
  id?: string | undefined;
4077
- }, "id" | "key"> & {
4337
+ }, "key" | "id"> & {
4078
4338
  key: string;
4079
4339
  }, {
4080
4340
  title: string;
4081
4341
  key?: string | undefined;
4082
4342
  id?: string | undefined;
4083
4343
  }>>>>;
4344
+ types: z.ZodDefault<z.ZodArray<z.ZodObject<{
4345
+ code: z.ZodString;
4346
+ provider: z.ZodEnum<{
4347
+ "workers-ai": "workers-ai";
4348
+ }>;
4349
+ }, z.core.$strip>>>;
4084
4350
  supportedInteractions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
4085
- staff: "staff";
4351
+ quiz: "quiz";
4086
4352
  url: "url";
4087
4353
  text: "text";
4088
- quiz: "quiz";
4354
+ staff: "staff";
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;
@@ -4162,7 +4431,6 @@ declare const projectDeploymentSchema: z.ZodObject<{
4162
4431
  tier: z.ZodString;
4163
4432
  }, z.core.$strict>]>>>;
4164
4433
  }, z.core.$strict>>;
4165
- enabled: z.ZodDefault<z.ZodBoolean>;
4166
4434
  qualification: z.ZodDiscriminatedUnion<[z.ZodObject<{
4167
4435
  kind: z.ZodLiteral<"signup">;
4168
4436
  }, z.core.$strict>, z.ZodObject<{
@@ -4171,6 +4439,7 @@ declare const projectDeploymentSchema: z.ZodObject<{
4171
4439
  }, z.core.$strict>, z.ZodObject<{
4172
4440
  kind: z.ZodLiteral<"external">;
4173
4441
  }, z.core.$strict>], "kind">;
4442
+ enabled: z.ZodDefault<z.ZodBoolean>;
4174
4443
  inviterGroup: z.ZodOptional<z.ZodString>;
4175
4444
  milestones: z.ZodDefault<z.ZodArray<z.ZodObject<{
4176
4445
  id: z.ZodString;
@@ -4257,7 +4526,6 @@ declare const projectDeploymentSchema: z.ZodObject<{
4257
4526
  amount: number;
4258
4527
  })[];
4259
4528
  };
4260
- enabled: boolean;
4261
4529
  qualification: {
4262
4530
  kind: "signup";
4263
4531
  } | {
@@ -4266,6 +4534,7 @@ declare const projectDeploymentSchema: z.ZodObject<{
4266
4534
  } | {
4267
4535
  kind: "external";
4268
4536
  };
4537
+ enabled: boolean;
4269
4538
  milestones: {
4270
4539
  id: string;
4271
4540
  count: number;
@@ -4304,7 +4573,7 @@ declare const projectDeploymentSchema: z.ZodObject<{
4304
4573
  inviterGroup?: string | undefined;
4305
4574
  key?: string | undefined;
4306
4575
  id?: string | undefined;
4307
- }, "id" | "key"> & {
4576
+ }, "key" | "id"> & {
4308
4577
  key: string;
4309
4578
  }, {
4310
4579
  title: string;
@@ -4354,7 +4623,6 @@ declare const projectDeploymentSchema: z.ZodObject<{
4354
4623
  amount: number;
4355
4624
  })[];
4356
4625
  };
4357
- enabled: boolean;
4358
4626
  qualification: {
4359
4627
  kind: "signup";
4360
4628
  } | {
@@ -4363,6 +4631,7 @@ declare const projectDeploymentSchema: z.ZodObject<{
4363
4631
  } | {
4364
4632
  kind: "external";
4365
4633
  };
4634
+ enabled: boolean;
4366
4635
  milestones: {
4367
4636
  id: string;
4368
4637
  count: number;
@@ -4501,7 +4770,7 @@ declare const projectDeploymentSchema: z.ZodObject<{
4501
4770
  group?: string | undefined;
4502
4771
  key?: string | undefined;
4503
4772
  id?: string | undefined;
4504
- }, "id" | "key"> & {
4773
+ }, "key" | "id"> & {
4505
4774
  key: string;
4506
4775
  }, {
4507
4776
  title: string;
@@ -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
- project: "project";
4797
5216
  member: "member";
5217
+ project: "project";
4798
5218
  }>;
4799
5219
  period: z.ZodEnum<{
4800
5220
  day: "day";
@@ -4821,8 +5241,8 @@ declare const deploymentPreviewSchema: z.ZodObject<{
4821
5241
  typeVersion: z.ZodString;
4822
5242
  }, z.core.$strict>>;
4823
5243
  lifecycle: z.ZodDefault<z.ZodEnum<{
4824
- paused: "paused";
4825
5244
  active: "active";
5245
+ paused: "paused";
4826
5246
  archived: "archived";
4827
5247
  }>>;
4828
5248
  configuration: z.ZodOptional<z.ZodObject<{
@@ -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: 2 | 1;
5313
+ runtimeVersion: 1 | 2;
4894
5314
  title: string;
4895
5315
  presentation: {
4896
5316
  quiz?: {
@@ -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: "project" | "member";
5494
+ scope: "member" | "project";
5065
5495
  period: "day" | "lifetime";
5066
5496
  limit: number;
5067
5497
  cost: number | {
@@ -5073,7 +5503,11 @@ declare const deploymentPreviewSchema: z.ZodObject<{
5073
5503
  id: string;
5074
5504
  createdAt: number;
5075
5505
  legacy: boolean;
5076
- lifecycle: "paused" | "active" | "archived";
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
- project: "project";
5340
5804
  member: "member";
5805
+ project: "project";
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<{
5368
- staff: "staff";
5833
+ quiz: "quiz";
5369
5834
  url: "url";
5370
5835
  text: "text";
5371
- quiz: "quiz";
5836
+ staff: "staff";
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
- project: "project";
5848
6463
  member: "member";
6464
+ project: "project";
5849
6465
  }>;
5850
6466
  period: z.ZodEnum<{
5851
6467
  day: "day";
@@ -5872,8 +6488,8 @@ declare const deploymentResultSchema: z.ZodObject<{
5872
6488
  typeVersion: z.ZodString;
5873
6489
  }, z.core.$strict>>;
5874
6490
  lifecycle: z.ZodDefault<z.ZodEnum<{
5875
- paused: "paused";
5876
6491
  active: "active";
6492
+ paused: "paused";
5877
6493
  archived: "archived";
5878
6494
  }>>;
5879
6495
  configuration: z.ZodOptional<z.ZodObject<{
@@ -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: 2 | 1;
6560
+ runtimeVersion: 1 | 2;
5945
6561
  title: string;
5946
6562
  presentation: {
5947
6563
  quiz?: {
@@ -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: "project" | "member";
6741
+ scope: "member" | "project";
6116
6742
  period: "day" | "lifetime";
6117
6743
  limit: number;
6118
6744
  cost: number | {
@@ -6124,7 +6750,11 @@ declare const deploymentResultSchema: z.ZodObject<{
6124
6750
  id: string;
6125
6751
  createdAt: number;
6126
6752
  legacy: boolean;
6127
- lifecycle: "paused" | "active" | "archived";
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
- project: "project";
6391
7051
  member: "member";
7052
+ project: "project";
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<{
6419
- staff: "staff";
7080
+ quiz: "quiz";
6420
7081
  url: "url";
6421
7082
  text: "text";
6422
- quiz: "quiz";
7083
+ staff: "staff";
6423
7084
  photo: "photo";
6424
7085
  automatic: "automatic";
6425
7086
  claim: "claim";
@@ -7045,8 +7706,24 @@ declare function createRelayClient(options: {
7045
7706
  } | undefined;
7046
7707
  } | undefined;
7047
7708
  };
7048
- connections: ("discord" | "google" | "apple" | "x")[];
7709
+ connections: ("google" | "apple" | "x" | "discord")[];
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: "url" | "text" | "quiz" | "photo" | "none";
7750
+ input: "quiz" | "url" | "text" | "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: "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review";
7799
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
7129
7800
  reason: string | null;
7130
7801
  retries: number;
7131
7802
  generation: number;
@@ -7159,22 +7830,22 @@ declare function createRelayClient(options: {
7159
7830
  })[] | null;
7160
7831
  createdAt: number;
7161
7832
  input?: {
7162
- kind: "text";
7163
- value: string;
7164
- } | {
7165
- kind: "url";
7166
- value: string;
7167
- } | {
7168
7833
  kind: "quiz";
7169
7834
  answers: {
7170
7835
  [k: string]: string;
7171
7836
  };
7172
7837
  release?: string | undefined;
7838
+ } | {
7839
+ kind: "text";
7840
+ value: string;
7841
+ } | {
7842
+ kind: "url";
7843
+ value: string;
7173
7844
  } | undefined;
7174
7845
  } | null;
7175
7846
  release: string;
7176
- interaction: "staff" | "url" | "text" | "quiz" | "photo" | "automatic" | "claim";
7177
- lifecycle: "paused" | "active" | "archived";
7847
+ interaction: "quiz" | "url" | "text" | "staff" | "photo" | "automatic" | "claim";
7848
+ lifecycle: "active" | "paused" | "archived";
7178
7849
  rewards: {
7179
7850
  label: string;
7180
7851
  }[];
@@ -7216,7 +7887,7 @@ declare function createRelayClient(options: {
7216
7887
  quest: string;
7217
7888
  member: string;
7218
7889
  evidence: string | null;
7219
- status: "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review";
7890
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
7220
7891
  reason: string | null;
7221
7892
  retries: number;
7222
7893
  generation: number;
@@ -7250,17 +7921,17 @@ declare function createRelayClient(options: {
7250
7921
  })[] | null;
7251
7922
  createdAt: number;
7252
7923
  input?: {
7253
- kind: "text";
7254
- value: string;
7255
- } | {
7256
- kind: "url";
7257
- value: string;
7258
- } | {
7259
7924
  kind: "quiz";
7260
7925
  answers: {
7261
7926
  [k: string]: string;
7262
7927
  };
7263
7928
  release?: string | undefined;
7929
+ } | {
7930
+ kind: "text";
7931
+ value: string;
7932
+ } | {
7933
+ kind: "url";
7934
+ value: string;
7264
7935
  } | undefined;
7265
7936
  }>;
7266
7937
  experience: () => Promise<{
@@ -7288,8 +7959,24 @@ declare function createRelayClient(options: {
7288
7959
  } | undefined;
7289
7960
  } | undefined;
7290
7961
  };
7291
- connections: ("discord" | "google" | "apple" | "x")[];
7962
+ connections: ("google" | "apple" | "x" | "discord")[];
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: "url" | "text" | "quiz" | "photo" | "none";
8003
+ input: "quiz" | "url" | "text" | "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: "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review";
8052
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
7372
8053
  reason: string | null;
7373
8054
  retries: number;
7374
8055
  generation: number;
@@ -7402,22 +8083,22 @@ declare function createRelayClient(options: {
7402
8083
  })[] | null;
7403
8084
  createdAt: number;
7404
8085
  input?: {
7405
- kind: "text";
7406
- value: string;
7407
- } | {
7408
- kind: "url";
7409
- value: string;
7410
- } | {
7411
8086
  kind: "quiz";
7412
8087
  answers: {
7413
8088
  [k: string]: string;
7414
8089
  };
7415
8090
  release?: string | undefined;
8091
+ } | {
8092
+ kind: "text";
8093
+ value: string;
8094
+ } | {
8095
+ kind: "url";
8096
+ value: string;
7416
8097
  } | undefined;
7417
8098
  } | null;
7418
8099
  release: string;
7419
- interaction: "staff" | "url" | "text" | "quiz" | "photo" | "automatic" | "claim";
7420
- lifecycle: "paused" | "active" | "archived";
8100
+ interaction: "quiz" | "url" | "text" | "staff" | "photo" | "automatic" | "claim";
8101
+ lifecycle: "active" | "paused" | "archived";
7421
8102
  rewards: {
7422
8103
  label: string;
7423
8104
  }[];
@@ -7479,8 +8160,24 @@ declare function createRelayClient(options: {
7479
8160
  } | undefined;
7480
8161
  } | undefined;
7481
8162
  };
7482
- connections: ("discord" | "google" | "apple" | "x")[];
8163
+ connections: ("google" | "apple" | "x" | "discord")[];
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: "url" | "text" | "quiz" | "photo" | "none";
8204
+ input: "quiz" | "url" | "text" | "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: "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review";
8253
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
7563
8254
  reason: string | null;
7564
8255
  retries: number;
7565
8256
  generation: number;
@@ -7593,22 +8284,22 @@ declare function createRelayClient(options: {
7593
8284
  })[] | null;
7594
8285
  createdAt: number;
7595
8286
  input?: {
7596
- kind: "text";
7597
- value: string;
7598
- } | {
7599
- kind: "url";
7600
- value: string;
7601
- } | {
7602
8287
  kind: "quiz";
7603
8288
  answers: {
7604
8289
  [k: string]: string;
7605
8290
  };
7606
8291
  release?: string | undefined;
7607
- } | undefined;
8292
+ } | {
8293
+ kind: "text";
8294
+ value: string;
8295
+ } | {
8296
+ kind: "url";
8297
+ value: string;
8298
+ } | undefined;
7608
8299
  } | null;
7609
8300
  release: string;
7610
- interaction: "staff" | "url" | "text" | "quiz" | "photo" | "automatic" | "claim";
7611
- lifecycle: "paused" | "active" | "archived";
8301
+ interaction: "quiz" | "url" | "text" | "staff" | "photo" | "automatic" | "claim";
8302
+ lifecycle: "active" | "paused" | "archived";
7612
8303
  rewards: {
7613
8304
  label: string;
7614
8305
  }[];
@@ -7673,8 +8364,24 @@ declare function createRelayClient(options: {
7673
8364
  } | undefined;
7674
8365
  } | undefined;
7675
8366
  };
7676
- connections: ("discord" | "google" | "apple" | "x")[];
8367
+ connections: ("google" | "apple" | "x" | "discord")[];
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: "url" | "text" | "quiz" | "photo" | "none";
8408
+ input: "quiz" | "url" | "text" | "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: "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review";
8457
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
7757
8458
  reason: string | null;
7758
8459
  retries: number;
7759
8460
  generation: number;
@@ -7787,22 +8488,22 @@ declare function createRelayClient(options: {
7787
8488
  })[] | null;
7788
8489
  createdAt: number;
7789
8490
  input?: {
7790
- kind: "text";
7791
- value: string;
7792
- } | {
7793
- kind: "url";
7794
- value: string;
7795
- } | {
7796
8491
  kind: "quiz";
7797
8492
  answers: {
7798
8493
  [k: string]: string;
7799
8494
  };
7800
8495
  release?: string | undefined;
8496
+ } | {
8497
+ kind: "text";
8498
+ value: string;
8499
+ } | {
8500
+ kind: "url";
8501
+ value: string;
7801
8502
  } | undefined;
7802
8503
  } | null;
7803
8504
  release: string;
7804
- interaction: "staff" | "url" | "text" | "quiz" | "photo" | "automatic" | "claim";
7805
- lifecycle: "paused" | "active" | "archived";
8505
+ interaction: "quiz" | "url" | "text" | "staff" | "photo" | "automatic" | "claim";
8506
+ lifecycle: "active" | "paused" | "archived";
7806
8507
  rewards: {
7807
8508
  label: string;
7808
8509
  }[];
@@ -7870,7 +8571,7 @@ declare function createRelayClient(options: {
7870
8571
  auth: {
7871
8572
  providers: () => Promise<{
7872
8573
  providers: {
7873
- provider: "discord" | "google" | "apple" | "x";
8574
+ provider: "google" | "apple" | "x" | "discord";
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: "discord" | "google" | "apple" | "x";
8604
+ provider: "google" | "apple" | "x" | "discord";
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: "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review";
8703
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
8003
8704
  reason: string | null;
8004
8705
  retries: number;
8005
8706
  generation: number;
@@ -8033,17 +8734,17 @@ declare function createRelayClient(options: {
8033
8734
  })[] | null;
8034
8735
  createdAt: number;
8035
8736
  input?: {
8036
- kind: "text";
8037
- value: string;
8038
- } | {
8039
- kind: "url";
8040
- value: string;
8041
- } | {
8042
8737
  kind: "quiz";
8043
8738
  answers: {
8044
8739
  [k: string]: string;
8045
8740
  };
8046
8741
  release?: string | undefined;
8742
+ } | {
8743
+ kind: "text";
8744
+ value: string;
8745
+ } | {
8746
+ kind: "url";
8747
+ value: string;
8047
8748
  } | undefined;
8048
8749
  }>;
8049
8750
  progress: () => Promise<{
@@ -8071,8 +8772,24 @@ declare function createRelayClient(options: {
8071
8772
  } | undefined;
8072
8773
  } | undefined;
8073
8774
  };
8074
- connections: ("discord" | "google" | "apple" | "x")[];
8775
+ connections: ("google" | "apple" | "x" | "discord")[];
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: "url" | "text" | "quiz" | "photo" | "none";
8816
+ input: "quiz" | "url" | "text" | "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: "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review";
8865
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
8155
8866
  reason: string | null;
8156
8867
  retries: number;
8157
8868
  generation: number;
@@ -8185,17 +8896,17 @@ declare function createRelayClient(options: {
8185
8896
  })[] | null;
8186
8897
  createdAt: number;
8187
8898
  input?: {
8188
- kind: "text";
8189
- value: string;
8190
- } | {
8191
- kind: "url";
8192
- value: string;
8193
- } | {
8194
8899
  kind: "quiz";
8195
8900
  answers: {
8196
8901
  [k: string]: string;
8197
8902
  };
8198
8903
  release?: string | undefined;
8904
+ } | {
8905
+ kind: "text";
8906
+ value: string;
8907
+ } | {
8908
+ kind: "url";
8909
+ value: string;
8199
8910
  } | undefined;
8200
8911
  } | null;
8201
8912
  key?: string | undefined;
@@ -8318,7 +9029,7 @@ declare function createRelayClient(options: {
8318
9029
  provider: "discord";
8319
9030
  action: "grant-role";
8320
9031
  roleId: string;
8321
- status: "pending" | "delivered" | "failed";
9032
+ status: "pending" | "failed" | "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: "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review";
9048
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
8338
9049
  reason: string | null;
8339
9050
  retries: number;
8340
9051
  generation: number;
@@ -8368,17 +9079,17 @@ declare function createRelayClient(options: {
8368
9079
  })[] | null;
8369
9080
  createdAt: number;
8370
9081
  input?: {
8371
- kind: "text";
8372
- value: string;
8373
- } | {
8374
- kind: "url";
8375
- value: string;
8376
- } | {
8377
9082
  kind: "quiz";
8378
9083
  answers: {
8379
9084
  [k: string]: string;
8380
9085
  };
8381
9086
  release?: string | undefined;
9087
+ } | {
9088
+ kind: "text";
9089
+ value: string;
9090
+ } | {
9091
+ kind: "url";
9092
+ value: string;
8382
9093
  } | undefined;
8383
9094
  }>;
8384
9095
  upload: (file: File) => Promise<{
@@ -8400,7 +9111,7 @@ declare function createRelayClient(options: {
8400
9111
  quest: string;
8401
9112
  member: string;
8402
9113
  evidence: string | null;
8403
- status: "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review";
9114
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
8404
9115
  reason: string | null;
8405
9116
  retries: number;
8406
9117
  generation: number;
@@ -8434,17 +9145,17 @@ declare function createRelayClient(options: {
8434
9145
  })[] | null;
8435
9146
  createdAt: number;
8436
9147
  input?: {
8437
- kind: "text";
8438
- value: string;
8439
- } | {
8440
- kind: "url";
8441
- value: string;
8442
- } | {
8443
9148
  kind: "quiz";
8444
9149
  answers: {
8445
9150
  [k: string]: string;
8446
9151
  };
8447
9152
  release?: string | undefined;
9153
+ } | {
9154
+ kind: "text";
9155
+ value: string;
9156
+ } | {
9157
+ kind: "url";
9158
+ value: string;
8448
9159
  } | undefined;
8449
9160
  };
8450
9161
  title: string;
@@ -8484,7 +9195,7 @@ declare function createRelayClient(options: {
8484
9195
  code: string;
8485
9196
  definition: {
8486
9197
  quest: string;
8487
- runtimeVersion: 2 | 1;
9198
+ runtimeVersion: 1 | 2;
8488
9199
  title: string;
8489
9200
  presentation: {
8490
9201
  quiz?: {
@@ -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: "project" | "member";
9379
+ scope: "member" | "project";
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: 2 | 1;
9397
+ runtimeVersion: 1 | 2;
8673
9398
  title: string;
8674
9399
  presentation: {
8675
9400
  quiz?: {
@@ -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: "project" | "member";
9578
+ scope: "member" | "project";
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: 2 | 1;
9595
+ runtimeVersion: 1 | 2;
8857
9596
  title: string;
8858
9597
  presentation: {
8859
9598
  quiz?: {
@@ -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: "project" | "member";
9776
+ scope: "member" | "project";
9028
9777
  period: "day" | "lifetime";
9029
9778
  limit: number;
9030
9779
  cost: number | {
@@ -9036,7 +9785,11 @@ declare function createRelayClient(options: {
9036
9785
  id: string;
9037
9786
  createdAt: number;
9038
9787
  legacy: boolean;
9039
- lifecycle: "paused" | "active" | "archived";
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: "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review";
9908
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
9156
9909
  reason: string | null;
9157
9910
  retries: number;
9158
9911
  generation: number;
@@ -9186,17 +9939,17 @@ declare function createRelayClient(options: {
9186
9939
  })[] | null;
9187
9940
  createdAt: number;
9188
9941
  input?: {
9189
- kind: "text";
9190
- value: string;
9191
- } | {
9192
- kind: "url";
9193
- value: string;
9194
- } | {
9195
9942
  kind: "quiz";
9196
9943
  answers: {
9197
9944
  [k: string]: string;
9198
9945
  };
9199
9946
  release?: string | undefined;
9947
+ } | {
9948
+ kind: "text";
9949
+ value: string;
9950
+ } | {
9951
+ kind: "url";
9952
+ value: string;
9200
9953
  } | undefined;
9201
9954
  }[];
9202
9955
  balances: {
@@ -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: 2 | 1;
9974
+ runtimeVersion: 1 | 2;
9222
9975
  title: string;
9223
9976
  presentation: {
9224
9977
  quiz?: {
@@ -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: "project" | "member";
10155
+ scope: "member" | "project";
9393
10156
  period: "day" | "lifetime";
9394
10157
  limit: number;
9395
10158
  cost: number | {
@@ -9401,7 +10164,11 @@ declare function createRelayClient(options: {
9401
10164
  id: string;
9402
10165
  createdAt: number;
9403
10166
  legacy: boolean;
9404
- lifecycle: "paused" | "active" | "archived";
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: 2 | 1;
10201
+ runtimeVersion: 1 | 2;
9435
10202
  title: string;
9436
10203
  presentation: {
9437
10204
  quiz?: {
@@ -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: "project" | "member";
10382
+ scope: "member" | "project";
9606
10383
  period: "day" | "lifetime";
9607
10384
  limit: number;
9608
10385
  cost: number | {
@@ -9614,7 +10391,11 @@ declare function createRelayClient(options: {
9614
10391
  id: string;
9615
10392
  createdAt: number;
9616
10393
  legacy: boolean;
9617
- lifecycle: "paused" | "active" | "archived";
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: ("discord" | "google" | "apple" | "x")[];
10450
+ connections: ("google" | "apple" | "x" | "discord")[];
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: "url" | "text" | "quiz" | "photo" | "none";
10491
+ input: "quiz" | "url" | "text" | "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: "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review";
10540
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
9750
10541
  reason: string | null;
9751
10542
  retries: number;
9752
10543
  generation: number;
@@ -9780,17 +10571,17 @@ declare function createRelayClient(options: {
9780
10571
  })[] | null;
9781
10572
  createdAt: number;
9782
10573
  input?: {
9783
- kind: "text";
9784
- value: string;
9785
- } | {
9786
- kind: "url";
9787
- value: string;
9788
- } | {
9789
10574
  kind: "quiz";
9790
10575
  answers: {
9791
10576
  [k: string]: string;
9792
10577
  };
9793
10578
  release?: string | undefined;
10579
+ } | {
10580
+ kind: "text";
10581
+ value: string;
10582
+ } | {
10583
+ kind: "url";
10584
+ value: string;
9794
10585
  } | undefined;
9795
10586
  } | null;
9796
10587
  key?: string | undefined;
@@ -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" | "pending" | "failed" | "superseded" | "qualified" | "unqualified" | "content-pending" | "content-unqualified" | "waiting";
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" | "pending" | "failed" | "superseded" | "qualified" | "unqualified";
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" | "pending" | "failed" | "superseded" | "qualified" | "unqualified" | "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" | "admitted" | "excluded";
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" | "admitted" | "excluded";
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: "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review";
11040
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
10079
11041
  reason: string | null;
10080
11042
  retries: number;
10081
11043
  generation: number;
@@ -10109,17 +11071,17 @@ declare function createRelayClient(options: {
10109
11071
  })[] | null;
10110
11072
  createdAt: number;
10111
11073
  input?: {
10112
- kind: "text";
10113
- value: string;
10114
- } | {
10115
- kind: "url";
10116
- value: string;
10117
- } | {
10118
11074
  kind: "quiz";
10119
11075
  answers: {
10120
11076
  [k: string]: string;
10121
11077
  };
10122
11078
  release?: string | undefined;
11079
+ } | {
11080
+ kind: "text";
11081
+ value: string;
11082
+ } | {
11083
+ kind: "url";
11084
+ value: string;
10123
11085
  } | undefined;
10124
11086
  }>;
10125
11087
  retry: (id: string) => Promise<{
@@ -10128,7 +11090,7 @@ declare function createRelayClient(options: {
10128
11090
  quest: string;
10129
11091
  member: string;
10130
11092
  evidence: string | null;
10131
- status: "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review";
11093
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
10132
11094
  reason: string | null;
10133
11095
  retries: number;
10134
11096
  generation: number;
@@ -10162,17 +11124,17 @@ declare function createRelayClient(options: {
10162
11124
  })[] | null;
10163
11125
  createdAt: number;
10164
11126
  input?: {
10165
- kind: "text";
10166
- value: string;
10167
- } | {
10168
- kind: "url";
10169
- value: string;
10170
- } | {
10171
11127
  kind: "quiz";
10172
11128
  answers: {
10173
11129
  [k: string]: string;
10174
11130
  };
10175
11131
  release?: string | undefined;
11132
+ } | {
11133
+ kind: "text";
11134
+ value: string;
11135
+ } | {
11136
+ kind: "url";
11137
+ value: string;
10176
11138
  } | undefined;
10177
11139
  }>;
10178
11140
  /** @deprecated The participant API accepts only member sessions and rejects this staff call. Use the management API with a management key instead. */
@@ -10187,7 +11149,7 @@ declare function createRelayClient(options: {
10187
11149
  quest: string;
10188
11150
  member: string;
10189
11151
  evidence: string | null;
10190
- status: "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review";
11152
+ status: "needs-review" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "failed";
10191
11153
  reason: string | null;
10192
11154
  retries: number;
10193
11155
  generation: number;
@@ -10221,19 +11183,19 @@ declare function createRelayClient(options: {
10221
11183
  })[] | null;
10222
11184
  createdAt: number;
10223
11185
  input?: {
10224
- kind: "text";
10225
- value: string;
10226
- } | {
10227
- kind: "url";
10228
- value: string;
10229
- } | {
10230
11186
  kind: "quiz";
10231
11187
  answers: {
10232
11188
  [k: string]: string;
10233
11189
  };
10234
11190
  release?: string | undefined;
11191
+ } | {
11192
+ kind: "text";
11193
+ value: string;
11194
+ } | {
11195
+ kind: "url";
11196
+ value: string;
10235
11197
  } | undefined;
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 };