@domino-sdk/relay 0.18.0 → 0.18.2

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.
@@ -1,5 +1,5 @@
1
- import { A as AdmittedContent, O as Observation, T as TrackerReader, X as XReader, D as DiscordMember, a as DiscordMessage, W as WalletConnection, S as SolanaBalance, o as observationTriggerSchema, B as Budget, b as AuthoringIdentity, C as ContentMetric, I as IntegrationProvider, c as StreakPolicy, d as TextEvidence, U as UrlEvidence, e as TextOptions, f as UrlOptions } from './submission-input-DWlvrAQY.js';
2
- export { g as content, h as customSource, i as defineEngagementReward, j as defineLeaderboard, k as defineReferral, l as defineTracker, m as discord, p as perContent, n as pointLedgers, s as settings, q as streak, x } from './submission-input-DWlvrAQY.js';
1
+ import { A as AdmittedContent, O as Observation, T as TrackerReader, X as XReader, D as DiscordMember, a as DiscordMessage, W as WalletConnection, S as SolanaBalance, o as observationTriggerSchema, B as Budget, b as AuthoringIdentity, C as ContentMetric, I as IntegrationProvider, c as StreakPolicy, d as TextEvidence, U as UrlEvidence, e as TextOptions, f as UrlOptions } from './submission-input-C67qt2Ph.js';
2
+ export { g as content, h as customSource, i as defineEngagementReward, j as defineLeaderboard, k as defineReferral, l as defineTracker, m as discord, p as perContent, n as pointLedgers, s as settings, q as streak, x } from './submission-input-C67qt2Ph.js';
3
3
  import { z } from 'zod';
4
4
  import { TextReviewInput, TextResult, PhotoResult, rewardSchema, triggerSchema, QuestPresentation, QuizEvidence, Decision, TieredRewardDefinition } from './schema.js';
5
5
 
@@ -407,7 +407,7 @@ declare function defineQuest<T extends Record<string, z.ZodType>, const G extend
407
407
  minLength: number;
408
408
  maxLength: number;
409
409
  };
410
- actor?: "member" | "staff" | undefined;
410
+ actor?: "staff" | "member" | undefined;
411
411
  } | {
412
412
  kind: "manual";
413
413
  input: "url";
@@ -415,11 +415,11 @@ declare function defineQuest<T extends Record<string, z.ZodType>, const G extend
415
415
  required: boolean;
416
416
  allowedHosts?: string[] | undefined;
417
417
  };
418
- actor?: "member" | "staff" | undefined;
418
+ actor?: "staff" | "member" | undefined;
419
419
  } | {
420
420
  kind: "manual";
421
421
  input: "photo" | "quiz" | "none";
422
- actor?: "member" | "staff" | undefined;
422
+ actor?: "staff" | "member" | undefined;
423
423
  };
424
424
  requires: {
425
425
  quest: string;
package/dist/browser.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { 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';
1
+ import { r as referralAcceptSchema, L as LeaderboardQuery, w as walletChallengeInputSchema, t as walletProofSchema, u as AuthProvider, v as engagementPageQuerySchema, y as contentQualificationQuerySchema, z as contentAdmissionQuerySchema, E as contentEnrollmentInputSchema, F as contentReleaseInputSchema } from './submission-input-C67qt2Ph.js';
2
2
  import { SubmitInput, ReviewListOptions, MemberListOptions, ReleaseInput, beginHandoverSchema, contentPerformanceQuerySchema } from './schema.js';
3
3
  import { SubmissionStore, createRelayClient, QuestView, QuestController, ProgressObservation, questExperienceSchema, ProgressObserver, ExchangeInput, PhotoSubmission, QuizSubmission, ClaimSubmission, ValueSubmission } from './index.js';
4
4
  import * as zod from 'zod';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
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';
1
+ import { V as ValueEvidence, r as referralAcceptSchema, L as LeaderboardQuery, w as walletChallengeInputSchema, t as walletProofSchema, u as AuthProvider, v as engagementPageQuerySchema, y as contentQualificationQuerySchema, z as contentAdmissionQuerySchema, E as contentEnrollmentInputSchema, F as contentReleaseInputSchema } from './submission-input-C67qt2Ph.js';
2
+ export { G as AccountConnection, A as AdmittedContent, B as Budget, C as ContentMetric, K as ContentPerformancePolicy, M as ContentPolicy, D as DiscordMember, a as DiscordMessage, N as EngagementDefinition, I as IntegrationProvider, P as LeaderboardDefinition, J as LeaderboardPage, O as Observation, Q as ProjectIntegration, R as QuizContent, Y as ReferralDefinition, Z as ResourceOption, _ as ResourceSource, $ as SettingField, a0 as SettingsValues, S as SolanaBalance, c as StreakPolicy, a1 as StreakProgress, d as TextEvidence, e as TextOptions, a2 as TrackerContent, a3 as TrackerContentQuery, a4 as TrackerDefinition, a5 as TrackerPreview, a6 as TrackerPreviewInput, a7 as TrackerQuery, T as TrackerReader, a8 as TrackerRecord, a9 as TrackerStatus, U as UrlEvidence, f as UrlOptions, W as WalletConnection, aa as XConnection, ab as XPost, ac as XProfile, X as XReader, ad as XTweet, ae as accountConnectionSchema, af as admittedContentSchema, ag as authProviderSchema, ah as budgetSchema, ai as communityTimeZoneSchema, aj as compatibleSettingKinds, ak as completionKeySchema, al as completionPolicySchema, g as content, am as contentAdmissionPageSchema, an as contentAdmissionSchema, ao as contentEnrollmentSchema, ap as contentMetricSchema, aq as contentMetricsSchema, ar as contentPerformancePolicySchema, as as contentPolicySchema, at as contentQualificationDecisionSchema, au as contentQualificationPageSchema, av as contentQualificationSchema, h as customSource, i as defineEngagementReward, j as defineLeaderboard, k as defineReferral, l as defineTracker, m as discord, aw as discordMemberInputSchema, ax as discordMemberSchema, ay as discordMessageInputSchema, az as discordMessageSchema, aA as discordReactionSchema, aB as discordServerSchema, aC as engagementArtifactSchema, aD as engagementBoundaryPageSchema, aE as engagementChangePreviewInputSchema, aF as engagementChangePreviewSchema, aG as engagementChangeSchema, aH as engagementDefinitionSchema, aI as engagementDeploymentEntrySchema, aJ as engagementPageSchema, aK as engagementPublishSchema, aL as engagementRuleSchema, aM as engagementScoreInputSchema, aN as engagementScoreSchema, aO as engagementSettlementSchema, aP as engagementVersionPageSchema, aQ as engagementVersionQuerySchema, aR as integrationProviderSchema, aS as isContentParticipantRoute, aT as leaderboardArtifactSchema, aU as leaderboardAuthoringSchema, aV as leaderboardDefinitionSchema, aW as leaderboardExclusionSchema, aX as leaderboardGroupSchema, aY as leaderboardPageSchema, aZ as leaderboardPreviewSchema, a_ as leaderboardQuerySchema, a$ as leaderboardRowSchema, b0 as leaderboardWindowSchema, b1 as missingResourceSettings, b2 as observationInputSchema, b3 as observationReceiptSchema, b4 as observationSchema, o as observationTriggerSchema, b5 as parseSettings, p as perContent, n as pointLedgers, b6 as pointsAccountSchema, b7 as pointsEntrySchema, b8 as pointsMutationSchema, b9 as pointsResultSchema, ba as projectIntegrationSchema, bb as publishedLeaderboardSchema, bc as publishedReferralSchema, bd as publishedTrackerSchema, be as quizChoiceSchema, bf as quizContentSchema, bg as quizQuestionSchema, bh as quizQuestionsSchema, bi as referralAccountSchema, bj as referralArtifactSchema, bk as referralAuthoringSchema, bl as referralControlSchema, bm as referralDefinitionSchema, bn as referralHistorySchema, bo as referralManagementSchema, bp as referralRelationshipSchema, H as referralSummarySchema, bq as resourceOptionsSchema, br as resourceRequestSchema, bs as resourceSourceSchema, bt as settingFieldSchema, s as settings, bu as settingsFieldsSchema, bv as settingsValuesSchema, bw as solanaAddressSchema, bx as solanaBalanceSchema, q as streak, by as streakPolicySchema, bz as streakProgressSchema, bA as textEvidenceSchema, bB as textOptionsSchema, bC as trackerArtifactSchema, bD as trackerContentQuerySchema, bE as trackerContentReadSchema, bF as trackerContentSchema, bG as trackerControlSchema, bH as trackerDefinitionSchema, bI as trackerIngestResultSchema, bJ as trackerIngestSchema, bK as trackerPageSchema, bL as trackerPreviewInputSchema, bM as trackerPreviewLimits, bN as trackerPreviewSchema, bO as trackerQuerySchema, bP as trackerRecordInputSchema, bQ as trackerRecordSchema, bR as trackerSourceSchema, bS as trackerStatusSchema, bT as trackerSummarySchema, bU as urlEvidenceSchema, bV as urlOptionsSchema, bW as validateSubmissionValue, bX as valueEvidenceSchema, bY as walletChallengeSchema, bZ as walletConnectionSchema, x, b_ as xConnectionSchema, b$ as xContentBodySchema, c0 as xIdSchema, c1 as xPostId, c2 as xPostSchema, c3 as xProfileSchema, c4 as xRequestSchema, c5 as xTweetSchema } from './submission-input-C67qt2Ph.js';
3
3
  import { z } from 'zod';
4
4
  import { errorSchema, QuizEvidence, Attempt, SubmitInput, MemberProgress, questDescriptionSchema, PublishedRelease, ReviewListOptions, MemberListOptions, ReleaseInput, beginHandoverSchema, contentPerformanceQuerySchema } from './schema.js';
5
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';
@@ -20,7 +20,9 @@ async function proxyParticipant(request, upstream) {
20
20
  const target = new URL(upstream.baseUrl);
21
21
  if (target.protocol !== "https:" || target.username || target.password || target.pathname !== "/" || target.search || target.hash) {
22
22
  return Response.json(
23
- { error: "Participant API is not configured" },
23
+ {
24
+ error: "Participant API is not configured. Use the API origin, such as https://relay.domino.run, not a management URL."
25
+ },
24
26
  { status: 503 }
25
27
  );
26
28
  }
@@ -3,7 +3,7 @@ import { ReactNode } from 'react';
3
3
  import * as zod from 'zod';
4
4
  import { z } from 'zod';
5
5
  import { QuestView, QuestController, ProgressObservation, questExperienceSchema, ProgressObserver, ExchangeInput, PhotoSubmission, QuizSubmission, ClaimSubmission, ValueSubmission, SubmissionDraft } from '../index.js';
6
- import { 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, G as AccountConnection, H as referralSummarySchema, J as LeaderboardPage } from '../submission-input-DWlvrAQY.js';
6
+ import { 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, G as AccountConnection, H as referralSummarySchema, J as LeaderboardPage } from '../submission-input-C67qt2Ph.js';
7
7
  import { SubmitInput, ReviewListOptions, MemberListOptions, ReleaseInput, beginHandoverSchema, contentPerformanceQuerySchema } from '../schema.js';
8
8
  import { createBrowserRelayClient } from '../browser.js';
9
9
 
package/dist/schema.d.ts CHANGED
@@ -84,8 +84,8 @@ declare const triggerSchema: z.ZodUnion<readonly [z.ZodObject<{
84
84
  maxLength: z.ZodDefault<z.ZodNumber>;
85
85
  }, z.core.$strict>;
86
86
  actor: z.ZodOptional<z.ZodEnum<{
87
- member: "member";
88
87
  staff: "staff";
88
+ member: "member";
89
89
  }>>;
90
90
  }, z.core.$strict>, z.ZodObject<{
91
91
  kind: z.ZodLiteral<"manual">;
@@ -95,8 +95,8 @@ declare const triggerSchema: z.ZodUnion<readonly [z.ZodObject<{
95
95
  allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
96
96
  }, z.core.$strict>;
97
97
  actor: z.ZodOptional<z.ZodEnum<{
98
- member: "member";
99
98
  staff: "staff";
99
+ member: "member";
100
100
  }>>;
101
101
  }, z.core.$strict>, z.ZodObject<{
102
102
  kind: z.ZodLiteral<"manual">;
@@ -106,8 +106,8 @@ declare const triggerSchema: z.ZodUnion<readonly [z.ZodObject<{
106
106
  none: "none";
107
107
  }>;
108
108
  actor: z.ZodOptional<z.ZodEnum<{
109
- member: "member";
110
109
  staff: "staff";
110
+ member: "member";
111
111
  }>>;
112
112
  }, z.core.$strict>, z.ZodObject<{
113
113
  kind: z.ZodLiteral<"automatic">;
@@ -432,8 +432,8 @@ declare const questDescriptionSchema: z.ZodObject<{
432
432
  maxLength: z.ZodDefault<z.ZodNumber>;
433
433
  }, z.core.$strict>;
434
434
  actor: z.ZodOptional<z.ZodEnum<{
435
- member: "member";
436
435
  staff: "staff";
436
+ member: "member";
437
437
  }>>;
438
438
  }, z.core.$strict>, z.ZodObject<{
439
439
  kind: z.ZodLiteral<"manual">;
@@ -443,8 +443,8 @@ declare const questDescriptionSchema: z.ZodObject<{
443
443
  allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
444
444
  }, z.core.$strict>;
445
445
  actor: z.ZodOptional<z.ZodEnum<{
446
- member: "member";
447
446
  staff: "staff";
447
+ member: "member";
448
448
  }>>;
449
449
  }, z.core.$strict>, z.ZodObject<{
450
450
  kind: z.ZodLiteral<"manual">;
@@ -454,8 +454,8 @@ declare const questDescriptionSchema: z.ZodObject<{
454
454
  none: "none";
455
455
  }>;
456
456
  actor: z.ZodOptional<z.ZodEnum<{
457
- member: "member";
458
457
  staff: "staff";
458
+ member: "member";
459
459
  }>>;
460
460
  }, z.core.$strict>, z.ZodObject<{
461
461
  kind: z.ZodLiteral<"automatic">;
@@ -727,8 +727,8 @@ declare const publishedReleaseSchema: z.ZodUnion<readonly [z.ZodObject<{
727
727
  maxLength: z.ZodDefault<z.ZodNumber>;
728
728
  }, z.core.$strict>;
729
729
  actor: z.ZodOptional<z.ZodEnum<{
730
- member: "member";
731
730
  staff: "staff";
731
+ member: "member";
732
732
  }>>;
733
733
  }, z.core.$strict>, z.ZodObject<{
734
734
  kind: z.ZodLiteral<"manual">;
@@ -738,8 +738,8 @@ declare const publishedReleaseSchema: z.ZodUnion<readonly [z.ZodObject<{
738
738
  allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
739
739
  }, z.core.$strict>;
740
740
  actor: z.ZodOptional<z.ZodEnum<{
741
- member: "member";
742
741
  staff: "staff";
742
+ member: "member";
743
743
  }>>;
744
744
  }, z.core.$strict>, z.ZodObject<{
745
745
  kind: z.ZodLiteral<"manual">;
@@ -749,8 +749,8 @@ declare const publishedReleaseSchema: z.ZodUnion<readonly [z.ZodObject<{
749
749
  none: "none";
750
750
  }>;
751
751
  actor: z.ZodOptional<z.ZodEnum<{
752
- member: "member";
753
752
  staff: "staff";
753
+ member: "member";
754
754
  }>>;
755
755
  }, z.core.$strict>, z.ZodObject<{
756
756
  kind: z.ZodLiteral<"automatic">;
@@ -838,8 +838,8 @@ declare const publishedReleaseSchema: z.ZodUnion<readonly [z.ZodObject<{
838
838
  typeVersion: z.ZodString;
839
839
  }, z.core.$strict>>;
840
840
  lifecycle: z.ZodDefault<z.ZodEnum<{
841
- active: "active";
842
841
  paused: "paused";
842
+ active: "active";
843
843
  archived: "archived";
844
844
  }>>;
845
845
  configuration: z.ZodOptional<z.ZodObject<{
@@ -1058,7 +1058,7 @@ declare const publishedReleaseSchema: z.ZodUnion<readonly [z.ZodObject<{
1058
1058
  minLength: number;
1059
1059
  maxLength: number;
1060
1060
  };
1061
- actor?: "member" | "staff" | undefined;
1061
+ actor?: "staff" | "member" | undefined;
1062
1062
  } | {
1063
1063
  kind: "manual";
1064
1064
  input: "url";
@@ -1066,11 +1066,11 @@ declare const publishedReleaseSchema: z.ZodUnion<readonly [z.ZodObject<{
1066
1066
  required: boolean;
1067
1067
  allowedHosts?: string[] | undefined;
1068
1068
  };
1069
- actor?: "member" | "staff" | undefined;
1069
+ actor?: "staff" | "member" | undefined;
1070
1070
  } | {
1071
1071
  kind: "manual";
1072
1072
  input: "photo" | "quiz" | "none";
1073
- actor?: "member" | "staff" | undefined;
1073
+ actor?: "staff" | "member" | undefined;
1074
1074
  };
1075
1075
  requires: {
1076
1076
  quest: string;
@@ -1100,7 +1100,7 @@ declare const publishedReleaseSchema: z.ZodUnion<readonly [z.ZodObject<{
1100
1100
  id: string;
1101
1101
  createdAt: number;
1102
1102
  legacy: boolean;
1103
- lifecycle: "active" | "paused" | "archived";
1103
+ lifecycle: "paused" | "active" | "archived";
1104
1104
  performance?: {
1105
1105
  metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
1106
1106
  maxAgeMs: number;
@@ -1313,8 +1313,8 @@ declare const templateSchema: z.ZodObject<{
1313
1313
  maxLength: z.ZodDefault<z.ZodNumber>;
1314
1314
  }, z.core.$strict>;
1315
1315
  actor: z.ZodOptional<z.ZodEnum<{
1316
- member: "member";
1317
1316
  staff: "staff";
1317
+ member: "member";
1318
1318
  }>>;
1319
1319
  }, z.core.$strict>, z.ZodObject<{
1320
1320
  kind: z.ZodLiteral<"manual">;
@@ -1324,8 +1324,8 @@ declare const templateSchema: z.ZodObject<{
1324
1324
  allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
1325
1325
  }, z.core.$strict>;
1326
1326
  actor: z.ZodOptional<z.ZodEnum<{
1327
- member: "member";
1328
1327
  staff: "staff";
1328
+ member: "member";
1329
1329
  }>>;
1330
1330
  }, z.core.$strict>, z.ZodObject<{
1331
1331
  kind: z.ZodLiteral<"manual">;
@@ -1335,8 +1335,8 @@ declare const templateSchema: z.ZodObject<{
1335
1335
  none: "none";
1336
1336
  }>;
1337
1337
  actor: z.ZodOptional<z.ZodEnum<{
1338
- member: "member";
1339
1338
  staff: "staff";
1339
+ member: "member";
1340
1340
  }>>;
1341
1341
  }, z.core.$strict>, z.ZodObject<{
1342
1342
  kind: z.ZodLiteral<"automatic">;
@@ -1477,13 +1477,13 @@ declare const attemptSchema: z.ZodObject<{
1477
1477
  value: z.ZodString;
1478
1478
  }, z.core.$strict>]>>;
1479
1479
  status: z.ZodEnum<{
1480
+ "needs-review": "needs-review";
1481
+ failed: "failed";
1480
1482
  queued: "queued";
1481
1483
  evaluating: "evaluating";
1482
1484
  accepted: "accepted";
1483
1485
  progressed: "progressed";
1484
1486
  rejected: "rejected";
1485
- "needs-review": "needs-review";
1486
- failed: "failed";
1487
1487
  }>;
1488
1488
  reason: z.ZodNullable<z.ZodString>;
1489
1489
  retries: z.ZodNumber;
@@ -1766,9 +1766,9 @@ declare const memberProgressSchema: z.ZodObject<{
1766
1766
  }, z.core.$strict>>;
1767
1767
  connections: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1768
1768
  discord: "discord";
1769
+ x: "x";
1769
1770
  google: "google";
1770
1771
  apple: "apple";
1771
- x: "x";
1772
1772
  }>>>;
1773
1773
  trigger: z.ZodUnion<readonly [z.ZodObject<{
1774
1774
  kind: z.ZodLiteral<"manual">;
@@ -1779,8 +1779,8 @@ declare const memberProgressSchema: z.ZodObject<{
1779
1779
  maxLength: z.ZodDefault<z.ZodNumber>;
1780
1780
  }, z.core.$strict>;
1781
1781
  actor: z.ZodOptional<z.ZodEnum<{
1782
- member: "member";
1783
1782
  staff: "staff";
1783
+ member: "member";
1784
1784
  }>>;
1785
1785
  }, z.core.$strict>, z.ZodObject<{
1786
1786
  kind: z.ZodLiteral<"manual">;
@@ -1790,8 +1790,8 @@ declare const memberProgressSchema: z.ZodObject<{
1790
1790
  allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
1791
1791
  }, z.core.$strict>;
1792
1792
  actor: z.ZodOptional<z.ZodEnum<{
1793
- member: "member";
1794
1793
  staff: "staff";
1794
+ member: "member";
1795
1795
  }>>;
1796
1796
  }, z.core.$strict>, z.ZodObject<{
1797
1797
  kind: z.ZodLiteral<"manual">;
@@ -1801,8 +1801,8 @@ declare const memberProgressSchema: z.ZodObject<{
1801
1801
  none: "none";
1802
1802
  }>;
1803
1803
  actor: z.ZodOptional<z.ZodEnum<{
1804
- member: "member";
1805
1804
  staff: "staff";
1805
+ member: "member";
1806
1806
  }>>;
1807
1807
  }, z.core.$strict>, z.ZodObject<{
1808
1808
  kind: z.ZodLiteral<"automatic">;
@@ -1935,13 +1935,13 @@ declare const memberProgressSchema: z.ZodObject<{
1935
1935
  value: z.ZodString;
1936
1936
  }, z.core.$strict>]>>;
1937
1937
  status: z.ZodEnum<{
1938
+ "needs-review": "needs-review";
1939
+ failed: "failed";
1938
1940
  queued: "queued";
1939
1941
  evaluating: "evaluating";
1940
1942
  accepted: "accepted";
1941
1943
  progressed: "progressed";
1942
1944
  rejected: "rejected";
1943
- "needs-review": "needs-review";
1944
- failed: "failed";
1945
1945
  }>;
1946
1946
  reason: z.ZodNullable<z.ZodString>;
1947
1947
  retries: z.ZodNumber;
@@ -2199,8 +2199,8 @@ declare const snapshotSchema: z.ZodObject<{
2199
2199
  maxLength: z.ZodDefault<z.ZodNumber>;
2200
2200
  }, z.core.$strict>;
2201
2201
  actor: z.ZodOptional<z.ZodEnum<{
2202
- member: "member";
2203
2202
  staff: "staff";
2203
+ member: "member";
2204
2204
  }>>;
2205
2205
  }, z.core.$strict>, z.ZodObject<{
2206
2206
  kind: z.ZodLiteral<"manual">;
@@ -2210,8 +2210,8 @@ declare const snapshotSchema: z.ZodObject<{
2210
2210
  allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
2211
2211
  }, z.core.$strict>;
2212
2212
  actor: z.ZodOptional<z.ZodEnum<{
2213
- member: "member";
2214
2213
  staff: "staff";
2214
+ member: "member";
2215
2215
  }>>;
2216
2216
  }, z.core.$strict>, z.ZodObject<{
2217
2217
  kind: z.ZodLiteral<"manual">;
@@ -2221,8 +2221,8 @@ declare const snapshotSchema: z.ZodObject<{
2221
2221
  none: "none";
2222
2222
  }>;
2223
2223
  actor: z.ZodOptional<z.ZodEnum<{
2224
- member: "member";
2225
2224
  staff: "staff";
2225
+ member: "member";
2226
2226
  }>>;
2227
2227
  }, z.core.$strict>, z.ZodObject<{
2228
2228
  kind: z.ZodLiteral<"automatic">;
@@ -2310,8 +2310,8 @@ declare const snapshotSchema: z.ZodObject<{
2310
2310
  typeVersion: z.ZodString;
2311
2311
  }, z.core.$strict>>;
2312
2312
  lifecycle: z.ZodDefault<z.ZodEnum<{
2313
- active: "active";
2314
2313
  paused: "paused";
2314
+ active: "active";
2315
2315
  archived: "archived";
2316
2316
  }>>;
2317
2317
  configuration: z.ZodOptional<z.ZodObject<{
@@ -2530,7 +2530,7 @@ declare const snapshotSchema: z.ZodObject<{
2530
2530
  minLength: number;
2531
2531
  maxLength: number;
2532
2532
  };
2533
- actor?: "member" | "staff" | undefined;
2533
+ actor?: "staff" | "member" | undefined;
2534
2534
  } | {
2535
2535
  kind: "manual";
2536
2536
  input: "url";
@@ -2538,11 +2538,11 @@ declare const snapshotSchema: z.ZodObject<{
2538
2538
  required: boolean;
2539
2539
  allowedHosts?: string[] | undefined;
2540
2540
  };
2541
- actor?: "member" | "staff" | undefined;
2541
+ actor?: "staff" | "member" | undefined;
2542
2542
  } | {
2543
2543
  kind: "manual";
2544
2544
  input: "photo" | "quiz" | "none";
2545
- actor?: "member" | "staff" | undefined;
2545
+ actor?: "staff" | "member" | undefined;
2546
2546
  };
2547
2547
  requires: {
2548
2548
  quest: string;
@@ -2572,7 +2572,7 @@ declare const snapshotSchema: z.ZodObject<{
2572
2572
  id: string;
2573
2573
  createdAt: number;
2574
2574
  legacy: boolean;
2575
- lifecycle: "active" | "paused" | "archived";
2575
+ lifecycle: "paused" | "active" | "archived";
2576
2576
  performance?: {
2577
2577
  metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
2578
2578
  maxAgeMs: number;
@@ -2742,13 +2742,13 @@ declare const snapshotSchema: z.ZodObject<{
2742
2742
  value: z.ZodString;
2743
2743
  }, z.core.$strict>]>>;
2744
2744
  status: z.ZodEnum<{
2745
+ "needs-review": "needs-review";
2746
+ failed: "failed";
2745
2747
  queued: "queued";
2746
2748
  evaluating: "evaluating";
2747
2749
  accepted: "accepted";
2748
2750
  progressed: "progressed";
2749
2751
  rejected: "rejected";
2750
- "needs-review": "needs-review";
2751
- failed: "failed";
2752
2752
  }>;
2753
2753
  reason: z.ZodNullable<z.ZodString>;
2754
2754
  retries: z.ZodNumber;
@@ -2876,13 +2876,13 @@ declare const reviewItemSchema: z.ZodObject<{
2876
2876
  value: z.ZodString;
2877
2877
  }, z.core.$strict>]>>;
2878
2878
  status: z.ZodEnum<{
2879
+ "needs-review": "needs-review";
2880
+ failed: "failed";
2879
2881
  queued: "queued";
2880
2882
  evaluating: "evaluating";
2881
2883
  accepted: "accepted";
2882
2884
  progressed: "progressed";
2883
2885
  rejected: "rejected";
2884
- "needs-review": "needs-review";
2885
- failed: "failed";
2886
2886
  }>;
2887
2887
  reason: z.ZodNullable<z.ZodString>;
2888
2888
  retries: z.ZodNumber;
@@ -2952,13 +2952,13 @@ declare const reviewPageSchema: z.ZodObject<{
2952
2952
  value: z.ZodString;
2953
2953
  }, z.core.$strict>]>>;
2954
2954
  status: z.ZodEnum<{
2955
+ "needs-review": "needs-review";
2956
+ failed: "failed";
2955
2957
  queued: "queued";
2956
2958
  evaluating: "evaluating";
2957
2959
  accepted: "accepted";
2958
2960
  progressed: "progressed";
2959
2961
  rejected: "rejected";
2960
- "needs-review": "needs-review";
2961
- failed: "failed";
2962
2962
  }>;
2963
2963
  reason: z.ZodNullable<z.ZodString>;
2964
2964
  retries: z.ZodNumber;
@@ -3075,15 +3075,15 @@ declare const contentPerformanceQuerySchema: z.ZodObject<{
3075
3075
  declare const contentPerformancePageSchema: z.ZodObject<{
3076
3076
  current: z.ZodObject<{
3077
3077
  state: z.ZodEnum<{
3078
+ pending: "pending";
3079
+ superseded: "superseded";
3080
+ qualified: "qualified";
3081
+ unqualified: "unqualified";
3078
3082
  "needs-review": "needs-review";
3079
3083
  failed: "failed";
3080
- pending: "pending";
3081
3084
  "content-pending": "content-pending";
3082
3085
  "content-unqualified": "content-unqualified";
3083
3086
  waiting: "waiting";
3084
- qualified: "qualified";
3085
- unqualified: "unqualified";
3086
- superseded: "superseded";
3087
3087
  }>;
3088
3088
  reason: z.ZodNullable<z.ZodString>;
3089
3089
  contentAttempt: z.ZodString;
@@ -3092,9 +3092,9 @@ declare const contentPerformancePageSchema: z.ZodObject<{
3092
3092
  attempt: z.ZodNullable<z.ZodString>;
3093
3093
  completion: z.ZodNullable<z.ZodString>;
3094
3094
  state: z.ZodEnum<{
3095
- awarded: "awarded";
3096
- unresolved: "unresolved";
3097
3095
  excluded: "excluded";
3096
+ unresolved: "unresolved";
3097
+ awarded: "awarded";
3098
3098
  }>;
3099
3099
  }, z.core.$strict>;
3100
3100
  }, z.core.$strict>;
@@ -3112,12 +3112,12 @@ declare const contentPerformancePageSchema: z.ZodObject<{
3112
3112
  bookmarks: "bookmarks";
3113
3113
  }> & z.core.$partial, z.ZodNumber>;
3114
3114
  state: z.ZodEnum<{
3115
- "needs-review": "needs-review";
3116
- failed: "failed";
3117
3115
  pending: "pending";
3116
+ superseded: "superseded";
3118
3117
  qualified: "qualified";
3119
3118
  unqualified: "unqualified";
3120
- superseded: "superseded";
3119
+ "needs-review": "needs-review";
3120
+ failed: "failed";
3121
3121
  }>;
3122
3122
  reason: z.ZodNullable<z.ZodString>;
3123
3123
  }, z.core.$strict>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@domino-sdk/relay",
3
- "version": "0.18.0",
3
+ "version": "0.18.2",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -594,8 +594,8 @@ declare const contentAdmissionSchema: z.ZodObject<{
594
594
  release: z.ZodString;
595
595
  state: z.ZodEnum<{
596
596
  pending: "pending";
597
- excluded: "excluded";
598
597
  admitted: "admitted";
598
+ excluded: "excluded";
599
599
  }>;
600
600
  reason: z.ZodNullable<z.ZodString>;
601
601
  attempt: z.ZodNullable<z.ZodString>;
@@ -613,8 +613,8 @@ declare const contentAdmissionPageSchema: z.ZodObject<{
613
613
  release: z.ZodString;
614
614
  state: z.ZodEnum<{
615
615
  pending: "pending";
616
- excluded: "excluded";
617
616
  admitted: "admitted";
617
+ excluded: "excluded";
618
618
  }>;
619
619
  reason: z.ZodNullable<z.ZodString>;
620
620
  attempt: z.ZodNullable<z.ZodString>;
@@ -626,8 +626,8 @@ declare function isContentParticipantRoute(path: string, method: string): boolea
626
626
  declare const contentQualificationDecisionSchema: z.ZodObject<{
627
627
  kind: z.ZodEnum<{
628
628
  accept: "accept";
629
- reject: "reject";
630
629
  review: "review";
630
+ reject: "reject";
631
631
  superseded: "superseded";
632
632
  }>;
633
633
  reason: z.ZodNullable<z.ZodString>;
@@ -648,12 +648,12 @@ declare const contentQualificationSchema: z.ZodObject<{
648
648
  observation: z.ZodString;
649
649
  current: z.ZodBoolean;
650
650
  state: z.ZodEnum<{
651
- "needs-review": "needs-review";
652
- failed: "failed";
653
651
  pending: "pending";
652
+ superseded: "superseded";
654
653
  qualified: "qualified";
655
654
  unqualified: "unqualified";
656
- superseded: "superseded";
655
+ "needs-review": "needs-review";
656
+ failed: "failed";
657
657
  stale: "stale";
658
658
  blocked: "blocked";
659
659
  unavailable: "unavailable";
@@ -663,9 +663,9 @@ declare const contentQualificationSchema: z.ZodObject<{
663
663
  attempt: z.ZodNullable<z.ZodString>;
664
664
  completion: z.ZodNullable<z.ZodString>;
665
665
  state: z.ZodEnum<{
666
- awarded: "awarded";
667
- unresolved: "unresolved";
668
666
  excluded: "excluded";
667
+ unresolved: "unresolved";
668
+ awarded: "awarded";
669
669
  }>;
670
670
  }, z.core.$strict>;
671
671
  }, z.core.$strict>;
@@ -680,12 +680,12 @@ declare const contentQualificationPageSchema: z.ZodObject<{
680
680
  observation: z.ZodString;
681
681
  current: z.ZodBoolean;
682
682
  state: z.ZodEnum<{
683
- "needs-review": "needs-review";
684
- failed: "failed";
685
683
  pending: "pending";
684
+ superseded: "superseded";
686
685
  qualified: "qualified";
687
686
  unqualified: "unqualified";
688
- superseded: "superseded";
687
+ "needs-review": "needs-review";
688
+ failed: "failed";
689
689
  stale: "stale";
690
690
  blocked: "blocked";
691
691
  unavailable: "unavailable";
@@ -695,9 +695,9 @@ declare const contentQualificationPageSchema: z.ZodObject<{
695
695
  attempt: z.ZodNullable<z.ZodString>;
696
696
  completion: z.ZodNullable<z.ZodString>;
697
697
  state: z.ZodEnum<{
698
- awarded: "awarded";
699
- unresolved: "unresolved";
700
698
  excluded: "excluded";
699
+ unresolved: "unresolved";
700
+ awarded: "awarded";
701
701
  }>;
702
702
  }, z.core.$strict>;
703
703
  }, z.core.$strict>>;
@@ -1439,17 +1439,17 @@ type ProjectIntegration = z.infer<typeof projectIntegrationSchema>;
1439
1439
 
1440
1440
  declare const authProviderSchema: z.ZodEnum<{
1441
1441
  discord: "discord";
1442
+ x: "x";
1442
1443
  google: "google";
1443
1444
  apple: "apple";
1444
- x: "x";
1445
1445
  }>;
1446
1446
  type AuthProvider = z.infer<typeof authProviderSchema>;
1447
1447
  declare const accountConnectionSchema: z.ZodObject<{
1448
1448
  provider: z.ZodEnum<{
1449
1449
  discord: "discord";
1450
+ x: "x";
1450
1451
  google: "google";
1451
1452
  apple: "apple";
1452
- x: "x";
1453
1453
  }>;
1454
1454
  configured: z.ZodBoolean;
1455
1455
  status: z.ZodEnum<{
@@ -2382,8 +2382,8 @@ declare const referralAccountSchema: z.ZodObject<{
2382
2382
  id: z.ZodString;
2383
2383
  program: z.ZodString;
2384
2384
  kind: z.ZodEnum<{
2385
- milestone: "milestone";
2386
2385
  fixed: "fixed";
2386
+ milestone: "milestone";
2387
2387
  bonus: "bonus";
2388
2388
  }>;
2389
2389
  balance: z.ZodString;
@@ -2502,8 +2502,8 @@ declare const referralSummarySchema: z.ZodObject<{
2502
2502
  id: z.ZodString;
2503
2503
  program: z.ZodString;
2504
2504
  kind: z.ZodEnum<{
2505
- milestone: "milestone";
2506
2505
  fixed: "fixed";
2506
+ milestone: "milestone";
2507
2507
  bonus: "bonus";
2508
2508
  }>;
2509
2509
  balance: z.ZodString;
@@ -2540,8 +2540,8 @@ declare const referralManagementSchema: z.ZodObject<{
2540
2540
  id: z.ZodString;
2541
2541
  program: z.ZodString;
2542
2542
  kind: z.ZodEnum<{
2543
- milestone: "milestone";
2544
2543
  fixed: "fixed";
2544
+ milestone: "milestone";
2545
2545
  bonus: "bonus";
2546
2546
  }>;
2547
2547
  balance: z.ZodString;