@domino-sdk/relay 0.14.1 → 0.15.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
1
  import { z } from 'zod';
2
2
  import { errorSchema, QuizEvidence, Attempt, SubmitInput, MemberProgress, questDescriptionSchema, PublishedRelease, ReviewListOptions, MemberListOptions, ReleaseInput, beginHandoverSchema } from './schema.js';
3
3
  export { Decision, Entitlement, MemberPage, PhotoResult, PickupAvailability, QuestAvailability, QuestDescription, QuestPresentation, QuestSettingsInput, ReviewPage, Reward, Snapshot, TieredRewardDefinition, artifactSchema, attemptSchema, batchReleaseSchema, completionRecordSchema, configurePickupSchema, confirmHandoverSchema, createStockItemSchema, decisionSchema, entitlementSchema, eventSchema, evidenceSchema, identifier, integrationRewardSchema, mediaUrlSchema, memberListSchema, memberPageSchema, memberProgressSchema, photoResultSchema, pickupAllocationSchema, pickupAvailabilitySchema, pickupCatalogSchema, pickupPolicySchema, pickupSelectionSchema, pointsRewardSchema, prerequisiteSchema, publishedReleaseSchema, questAvailabilitySchema, questPresentationSchema, questSettingsInputSchema, quizAnswersSchema, quizEvidenceSchema, releaseSchema, reservationSchema, reviewItemSchema, reviewListSchema, reviewModeSchema, reviewPageSchema, rewardBundleSchema, rewardKey, rewardSchema, snapshotSchema, staffDecisionSchema, stockItemSchema, stockSchema, storedReviewModeSchema, submitSchema, templateSchema, tierRewardSchema, tieredRewardDefinitionSchema, triggerSchema } from './schema.js';
4
- import { r as referralAcceptSchema, L as LeaderboardQuery, w as walletChallengeInputSchema, i as walletProofSchema, j as AuthProvider } from './settings-CU2y-wUM.js';
5
- export { k as AccountConnection, B as Budget, D as DiscordMember, a as DiscordMessage, I as IntegrationProvider, l as LeaderboardDefinition, m as LeaderboardPage, O as Observation, P as ProjectIntegration, Q as QuizContent, R as ReferralDefinition, n as ResourceOption, q as ResourceSource, t as SettingField, u as SettingsValues, S as SolanaBalance, b as StreakPolicy, v as StreakProgress, y as TrackerDefinition, z as TrackerPreview, C as TrackerPreviewInput, E as TrackerQuery, T as TrackerReader, F as TrackerRecord, G as TrackerStatus, W as WalletConnection, X as XTweet, H as accountConnectionSchema, J as authProviderSchema, K as budgetSchema, M as communityTimeZoneSchema, N as compatibleSettingKinds, U as completionKeySchema, V as completionPolicySchema, c as customSource, d as defineLeaderboard, e as defineReferral, f as defineTracker, g as discord, Y as discordMemberInputSchema, Z as discordMemberSchema, _ as discordMessageInputSchema, $ as discordMessageSchema, a0 as discordReactionSchema, a1 as discordServerSchema, a2 as integrationProviderSchema, a3 as leaderboardArtifactSchema, a4 as leaderboardAuthoringSchema, a5 as leaderboardDefinitionSchema, a6 as leaderboardExclusionSchema, a7 as leaderboardGroupSchema, a8 as leaderboardPageSchema, a9 as leaderboardPreviewSchema, aa as leaderboardQuerySchema, ab as leaderboardRowSchema, ac as leaderboardWindowSchema, ad as missingResourceSettings, ae as observationInputSchema, af as observationReceiptSchema, ag as observationSchema, o as observationTriggerSchema, ah as parseSettings, p as pointLedgers, ai as pointsAccountSchema, aj as pointsEntrySchema, ak as pointsMutationSchema, al as pointsResultSchema, am as projectIntegrationSchema, an as publishedLeaderboardSchema, ao as publishedReferralSchema, ap as publishedTrackerSchema, aq as quizChoiceSchema, ar as quizContentSchema, as as quizQuestionSchema, at as quizQuestionsSchema, au as referralAccountSchema, av as referralArtifactSchema, aw as referralAuthoringSchema, ax as referralControlSchema, ay as referralDefinitionSchema, az as referralHistorySchema, aA as referralManagementSchema, aB as referralRelationshipSchema, aC as referralSummarySchema, aD as resourceOptionsSchema, aE as resourceRequestSchema, aF as resourceSourceSchema, aG as settingFieldSchema, s as settings, aH as settingsFieldsSchema, aI as settingsValuesSchema, aJ as solanaAddressSchema, aK as solanaBalanceSchema, h as streak, aL as streakPolicySchema, aM as streakProgressSchema, aN as trackerArtifactSchema, aO as trackerControlSchema, aP as trackerDefinitionSchema, aQ as trackerIngestResultSchema, aR as trackerIngestSchema, aS as trackerPageSchema, aT as trackerPreviewInputSchema, aU as trackerPreviewLimits, aV as trackerPreviewSchema, aW as trackerQuerySchema, aX as trackerRecordInputSchema, aY as trackerRecordSchema, aZ as trackerSourceSchema, a_ as trackerStatusSchema, a$ as trackerSummarySchema, b0 as walletChallengeSchema, b1 as walletConnectionSchema, x, b2 as xTweetSchema } from './settings-CU2y-wUM.js';
4
+ import { r as referralAcceptSchema, L as LeaderboardQuery, w as walletChallengeInputSchema, i as walletProofSchema, j as AuthProvider } from './settings-e0nHA0JA.js';
5
+ export { k as AccountConnection, B as Budget, D as DiscordMember, a as DiscordMessage, I as IntegrationProvider, n as LeaderboardDefinition, m as LeaderboardPage, O as Observation, P as ProjectIntegration, Q as QuizContent, R as ReferralDefinition, q as ResourceOption, t as ResourceSource, u as SettingField, v as SettingsValues, S as SolanaBalance, b as StreakPolicy, y as StreakProgress, z as TrackerDefinition, C as TrackerPreview, E as TrackerPreviewInput, F as TrackerQuery, T as TrackerReader, G as TrackerRecord, H as TrackerStatus, W as WalletConnection, X as XTweet, J as accountConnectionSchema, K as authProviderSchema, M as budgetSchema, N as communityTimeZoneSchema, U as compatibleSettingKinds, V as completionKeySchema, Y as completionPolicySchema, c as customSource, d as defineLeaderboard, e as defineReferral, f as defineTracker, g as discord, Z as discordMemberInputSchema, _ as discordMemberSchema, $ as discordMessageInputSchema, a0 as discordMessageSchema, a1 as discordReactionSchema, a2 as discordServerSchema, a3 as integrationProviderSchema, a4 as leaderboardArtifactSchema, a5 as leaderboardAuthoringSchema, a6 as leaderboardDefinitionSchema, a7 as leaderboardExclusionSchema, a8 as leaderboardGroupSchema, a9 as leaderboardPageSchema, aa as leaderboardPreviewSchema, ab as leaderboardQuerySchema, ac as leaderboardRowSchema, ad as leaderboardWindowSchema, ae as missingResourceSettings, af as observationInputSchema, ag as observationReceiptSchema, ah as observationSchema, o as observationTriggerSchema, ai as parseSettings, p as pointLedgers, aj as pointsAccountSchema, ak as pointsEntrySchema, al as pointsMutationSchema, am as pointsResultSchema, an as projectIntegrationSchema, ao as publishedLeaderboardSchema, ap as publishedReferralSchema, aq as publishedTrackerSchema, ar as quizChoiceSchema, as as quizContentSchema, at as quizQuestionSchema, au as quizQuestionsSchema, av as referralAccountSchema, aw as referralArtifactSchema, ax as referralAuthoringSchema, ay as referralControlSchema, az as referralDefinitionSchema, aA as referralHistorySchema, aB as referralManagementSchema, aC as referralRelationshipSchema, l as referralSummarySchema, aD as resourceOptionsSchema, aE as resourceRequestSchema, aF as resourceSourceSchema, aG as settingFieldSchema, s as settings, aH as settingsFieldsSchema, aI as settingsValuesSchema, aJ as solanaAddressSchema, aK as solanaBalanceSchema, h as streak, aL as streakPolicySchema, aM as streakProgressSchema, aN as trackerArtifactSchema, aO as trackerControlSchema, aP as trackerDefinitionSchema, aQ as trackerIngestResultSchema, aR as trackerIngestSchema, aS as trackerPageSchema, aT as trackerPreviewInputSchema, aU as trackerPreviewLimits, aV as trackerPreviewSchema, aW as trackerQuerySchema, aX as trackerRecordInputSchema, aY as trackerRecordSchema, aZ as trackerSourceSchema, a_ as trackerStatusSchema, a$ as trackerSummarySchema, b0 as walletChallengeSchema, b1 as walletConnectionSchema, x, b2 as xTweetSchema } from './settings-e0nHA0JA.js';
6
6
 
7
7
  declare class RelayError extends Error {
8
8
  readonly status: number;
@@ -410,7 +410,7 @@ declare const collectionSlotDeclarationSchema: z.ZodPipe<z.ZodObject<{
410
410
  title: string;
411
411
  key?: string | undefined;
412
412
  id?: string | undefined;
413
- }, "id" | "key"> & {
413
+ }, "key" | "id"> & {
414
414
  key: string;
415
415
  }, {
416
416
  title: string;
@@ -438,8 +438,8 @@ declare const questInstanceSchema: z.ZodObject<{
438
438
  }, z.core.$strict>>]>>;
439
439
  requires: z.ZodArray<z.ZodString>;
440
440
  status: z.ZodEnum<{
441
- paused: "paused";
442
441
  active: "active";
442
+ paused: "paused";
443
443
  archived: "archived";
444
444
  }>;
445
445
  }, z.core.$strict>;
@@ -459,8 +459,8 @@ declare const questDraftChangesSchema: z.ZodObject<{
459
459
  }, z.core.$strict>>]>>;
460
460
  requires: z.ZodArray<z.ZodString>;
461
461
  status: z.ZodEnum<{
462
- paused: "paused";
463
462
  active: "active";
463
+ paused: "paused";
464
464
  archived: "archived";
465
465
  }>;
466
466
  expectedRelease: z.ZodNullable<z.ZodString>;
@@ -492,8 +492,8 @@ declare const questDraftSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
492
492
  }, z.core.$strict>>]>>;
493
493
  requires: z.ZodArray<z.ZodString>;
494
494
  status: z.ZodEnum<{
495
- paused: "paused";
496
495
  active: "active";
496
+ paused: "paused";
497
497
  archived: "archived";
498
498
  }>;
499
499
  expectedRelease: z.ZodNullable<z.ZodString>;
@@ -526,8 +526,8 @@ declare const questDraftSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
526
526
  }, z.core.$strict>>]>>;
527
527
  requires: z.ZodArray<z.ZodString>;
528
528
  status: z.ZodEnum<{
529
- paused: "paused";
530
529
  active: "active";
530
+ paused: "paused";
531
531
  archived: "archived";
532
532
  }>;
533
533
  expectedRelease: z.ZodNullable<z.ZodString>;
@@ -764,8 +764,8 @@ declare const questCatalogSchema: z.ZodObject<{
764
764
  }, z.core.$strict>>]>>;
765
765
  requires: z.ZodArray<z.ZodString>;
766
766
  status: z.ZodEnum<{
767
- paused: "paused";
768
767
  active: "active";
768
+ paused: "paused";
769
769
  archived: "archived";
770
770
  }>;
771
771
  }, z.core.$strict>>;
@@ -789,8 +789,8 @@ declare const questCatalogSchema: z.ZodObject<{
789
789
  }, z.core.$strict>>]>>;
790
790
  requires: z.ZodArray<z.ZodString>;
791
791
  status: z.ZodEnum<{
792
- paused: "paused";
793
792
  active: "active";
793
+ paused: "paused";
794
794
  archived: "archived";
795
795
  }>;
796
796
  expectedRelease: z.ZodNullable<z.ZodString>;
@@ -823,8 +823,8 @@ declare const questCatalogSchema: z.ZodObject<{
823
823
  }, z.core.$strict>>]>>;
824
824
  requires: z.ZodArray<z.ZodString>;
825
825
  status: z.ZodEnum<{
826
- paused: "paused";
827
826
  active: "active";
827
+ paused: "paused";
828
828
  archived: "archived";
829
829
  }>;
830
830
  expectedRelease: z.ZodNullable<z.ZodString>;
@@ -1039,8 +1039,8 @@ declare const questCatalogSchema: z.ZodObject<{
1039
1039
  typeVersion: z.ZodString;
1040
1040
  }, z.core.$strict>>;
1041
1041
  lifecycle: z.ZodDefault<z.ZodEnum<{
1042
- paused: "paused";
1043
1042
  active: "active";
1043
+ paused: "paused";
1044
1044
  archived: "archived";
1045
1045
  }>>;
1046
1046
  configuration: z.ZodOptional<z.ZodObject<{
@@ -1145,12 +1145,12 @@ declare const questCatalogSchema: z.ZodObject<{
1145
1145
  kind: "resource";
1146
1146
  default: string;
1147
1147
  source: {
1148
+ provider: "domino";
1149
+ resource: "point-ledger";
1150
+ } | {
1148
1151
  provider: "discord";
1149
1152
  resource: "channel";
1150
1153
  types: ("text" | "announcement")[];
1151
- } | {
1152
- provider: "domino";
1153
- resource: "point-ledger";
1154
1154
  } | {
1155
1155
  provider: "discord";
1156
1156
  resource: "role";
@@ -1274,7 +1274,7 @@ declare const questCatalogSchema: z.ZodObject<{
1274
1274
  id: string;
1275
1275
  createdAt: number;
1276
1276
  legacy: boolean;
1277
- lifecycle: "paused" | "active" | "archived";
1277
+ lifecycle: "active" | "paused" | "archived";
1278
1278
  key?: string | undefined;
1279
1279
  origin?: {
1280
1280
  typeVersion: string;
@@ -1361,7 +1361,7 @@ declare const catalogDeploymentSchema: z.ZodObject<{
1361
1361
  title: string;
1362
1362
  key?: string | undefined;
1363
1363
  id?: string | undefined;
1364
- }, "id" | "key"> & {
1364
+ }, "key" | "id"> & {
1365
1365
  key: string;
1366
1366
  }, {
1367
1367
  title: string;
@@ -1611,8 +1611,8 @@ declare const saveQuestDraftSchema: z.ZodObject<{
1611
1611
  }, z.core.$strict>>]>>;
1612
1612
  requires: z.ZodArray<z.ZodString>;
1613
1613
  status: z.ZodEnum<{
1614
- paused: "paused";
1615
1614
  active: "active";
1615
+ paused: "paused";
1616
1616
  archived: "archived";
1617
1617
  }>;
1618
1618
  expectedRelease: z.ZodNullable<z.ZodString>;
@@ -1773,13 +1773,13 @@ declare const questViewSchema: z.ZodObject<{
1773
1773
  }, Record<string, string>>>;
1774
1774
  }, z.core.$strict>>;
1775
1775
  status: z.ZodEnum<{
1776
- failed: "failed";
1777
1776
  queued: "queued";
1778
1777
  evaluating: "evaluating";
1779
1778
  accepted: "accepted";
1780
1779
  progressed: "progressed";
1781
1780
  rejected: "rejected";
1782
1781
  "needs-review": "needs-review";
1782
+ failed: "failed";
1783
1783
  }>;
1784
1784
  reason: z.ZodNullable<z.ZodString>;
1785
1785
  retries: z.ZodNumber;
@@ -1823,8 +1823,8 @@ declare const questViewSchema: z.ZodObject<{
1823
1823
  claim: "claim";
1824
1824
  }>;
1825
1825
  lifecycle: z.ZodEnum<{
1826
- paused: "paused";
1827
1826
  active: "active";
1827
+ paused: "paused";
1828
1828
  archived: "archived";
1829
1829
  }>;
1830
1830
  rewards: z.ZodArray<z.ZodObject<{
@@ -1979,13 +1979,13 @@ declare const collectionViewSchema: z.ZodObject<{
1979
1979
  }, Record<string, string>>>;
1980
1980
  }, z.core.$strict>>;
1981
1981
  status: z.ZodEnum<{
1982
- failed: "failed";
1983
1982
  queued: "queued";
1984
1983
  evaluating: "evaluating";
1985
1984
  accepted: "accepted";
1986
1985
  progressed: "progressed";
1987
1986
  rejected: "rejected";
1988
1987
  "needs-review": "needs-review";
1988
+ failed: "failed";
1989
1989
  }>;
1990
1990
  reason: z.ZodNullable<z.ZodString>;
1991
1991
  retries: z.ZodNumber;
@@ -2029,8 +2029,8 @@ declare const collectionViewSchema: z.ZodObject<{
2029
2029
  claim: "claim";
2030
2030
  }>;
2031
2031
  lifecycle: z.ZodEnum<{
2032
- paused: "paused";
2033
2032
  active: "active";
2033
+ paused: "paused";
2034
2034
  archived: "archived";
2035
2035
  }>;
2036
2036
  rewards: z.ZodArray<z.ZodObject<{
@@ -2184,13 +2184,13 @@ declare const questExperienceSchema: z.ZodObject<{
2184
2184
  }, Record<string, string>>>;
2185
2185
  }, z.core.$strict>>;
2186
2186
  status: z.ZodEnum<{
2187
- failed: "failed";
2188
2187
  queued: "queued";
2189
2188
  evaluating: "evaluating";
2190
2189
  accepted: "accepted";
2191
2190
  progressed: "progressed";
2192
2191
  rejected: "rejected";
2193
2192
  "needs-review": "needs-review";
2193
+ failed: "failed";
2194
2194
  }>;
2195
2195
  reason: z.ZodNullable<z.ZodString>;
2196
2196
  retries: z.ZodNumber;
@@ -2234,8 +2234,8 @@ declare const questExperienceSchema: z.ZodObject<{
2234
2234
  claim: "claim";
2235
2235
  }>;
2236
2236
  lifecycle: z.ZodEnum<{
2237
- paused: "paused";
2238
2237
  active: "active";
2238
+ paused: "paused";
2239
2239
  archived: "archived";
2240
2240
  }>;
2241
2241
  rewards: z.ZodArray<z.ZodObject<{
@@ -2390,13 +2390,13 @@ declare const questExperienceSchema: z.ZodObject<{
2390
2390
  }, Record<string, string>>>;
2391
2391
  }, z.core.$strict>>;
2392
2392
  status: z.ZodEnum<{
2393
- failed: "failed";
2394
2393
  queued: "queued";
2395
2394
  evaluating: "evaluating";
2396
2395
  accepted: "accepted";
2397
2396
  progressed: "progressed";
2398
2397
  rejected: "rejected";
2399
2398
  "needs-review": "needs-review";
2399
+ failed: "failed";
2400
2400
  }>;
2401
2401
  reason: z.ZodNullable<z.ZodString>;
2402
2402
  retries: z.ZodNumber;
@@ -2440,8 +2440,8 @@ declare const questExperienceSchema: z.ZodObject<{
2440
2440
  claim: "claim";
2441
2441
  }>;
2442
2442
  lifecycle: z.ZodEnum<{
2443
- paused: "paused";
2444
2443
  active: "active";
2444
+ paused: "paused";
2445
2445
  archived: "archived";
2446
2446
  }>;
2447
2447
  rewards: z.ZodArray<z.ZodObject<{
@@ -2475,8 +2475,8 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
2475
2475
  }, z.core.$strict>>]>>;
2476
2476
  requires: z.ZodArray<z.ZodString>;
2477
2477
  status: z.ZodEnum<{
2478
- paused: "paused";
2479
2478
  active: "active";
2479
+ paused: "paused";
2480
2480
  archived: "archived";
2481
2481
  }>;
2482
2482
  expectedRelease: z.ZodNullable<z.ZodString>;
@@ -2509,8 +2509,8 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
2509
2509
  }, z.core.$strict>>]>>;
2510
2510
  requires: z.ZodArray<z.ZodString>;
2511
2511
  status: z.ZodEnum<{
2512
- paused: "paused";
2513
2512
  active: "active";
2513
+ paused: "paused";
2514
2514
  archived: "archived";
2515
2515
  }>;
2516
2516
  expectedRelease: z.ZodNullable<z.ZodString>;
@@ -2725,8 +2725,8 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
2725
2725
  typeVersion: z.ZodString;
2726
2726
  }, z.core.$strict>>;
2727
2727
  lifecycle: z.ZodDefault<z.ZodEnum<{
2728
- paused: "paused";
2729
2728
  active: "active";
2729
+ paused: "paused";
2730
2730
  archived: "archived";
2731
2731
  }>>;
2732
2732
  configuration: z.ZodOptional<z.ZodObject<{
@@ -2831,12 +2831,12 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
2831
2831
  kind: "resource";
2832
2832
  default: string;
2833
2833
  source: {
2834
+ provider: "domino";
2835
+ resource: "point-ledger";
2836
+ } | {
2834
2837
  provider: "discord";
2835
2838
  resource: "channel";
2836
2839
  types: ("text" | "announcement")[];
2837
- } | {
2838
- provider: "domino";
2839
- resource: "point-ledger";
2840
2840
  } | {
2841
2841
  provider: "discord";
2842
2842
  resource: "role";
@@ -2960,7 +2960,7 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
2960
2960
  id: string;
2961
2961
  createdAt: number;
2962
2962
  legacy: boolean;
2963
- lifecycle: "paused" | "active" | "archived";
2963
+ lifecycle: "active" | "paused" | "archived";
2964
2964
  key?: string | undefined;
2965
2965
  origin?: {
2966
2966
  typeVersion: string;
@@ -3099,9 +3099,9 @@ declare const rewardDeliverySchema: z.ZodObject<{
3099
3099
  action: z.ZodLiteral<"grant-role">;
3100
3100
  roleId: z.ZodString;
3101
3101
  status: z.ZodEnum<{
3102
+ failed: "failed";
3102
3103
  pending: "pending";
3103
3104
  delivered: "delivered";
3104
- failed: "failed";
3105
3105
  }>;
3106
3106
  attempts: z.ZodNumber;
3107
3107
  nextAt: z.ZodNumber;
@@ -3119,9 +3119,9 @@ declare const rewardDeliveriesSchema: z.ZodObject<{
3119
3119
  action: z.ZodLiteral<"grant-role">;
3120
3120
  roleId: z.ZodString;
3121
3121
  status: z.ZodEnum<{
3122
+ failed: "failed";
3122
3123
  pending: "pending";
3123
3124
  delivered: "delivered";
3124
- failed: "failed";
3125
3125
  }>;
3126
3126
  attempts: z.ZodNumber;
3127
3127
  nextAt: z.ZodNumber;
@@ -3267,12 +3267,6 @@ declare function questConfiguration(release: PublishedRelease): {
3267
3267
 
3268
3268
  /** Non-quest resources in the private hosted-build catalog artifact. */
3269
3269
  declare const projectCatalogArtifactSchema: z.ZodObject<{
3270
- types: z.ZodDefault<z.ZodArray<z.ZodObject<{
3271
- code: z.ZodString;
3272
- provider: z.ZodEnum<{
3273
- "workers-ai": "workers-ai";
3274
- }>;
3275
- }, z.core.$strip>>>;
3276
3270
  collections: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodObject<{
3277
3271
  title: z.ZodString;
3278
3272
  key: z.ZodOptional<z.ZodString>;
@@ -3281,13 +3275,19 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
3281
3275
  title: string;
3282
3276
  key?: string | undefined;
3283
3277
  id?: string | undefined;
3284
- }, "id" | "key"> & {
3278
+ }, "key" | "id"> & {
3285
3279
  key: string;
3286
3280
  }, {
3287
3281
  title: string;
3288
3282
  key?: string | undefined;
3289
3283
  id?: string | undefined;
3290
3284
  }>>>>;
3285
+ types: z.ZodDefault<z.ZodArray<z.ZodObject<{
3286
+ code: z.ZodString;
3287
+ provider: z.ZodEnum<{
3288
+ "workers-ai": "workers-ai";
3289
+ }>;
3290
+ }, z.core.$strip>>>;
3291
3291
  supportedInteractions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
3292
3292
  staff: "staff";
3293
3293
  quiz: "quiz";
@@ -3509,7 +3509,7 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
3509
3509
  inviterGroup?: string | undefined;
3510
3510
  key?: string | undefined;
3511
3511
  id?: string | undefined;
3512
- }, "id" | "key"> & {
3512
+ }, "key" | "id"> & {
3513
3513
  key: string;
3514
3514
  }, {
3515
3515
  title: string;
@@ -3612,7 +3612,6 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
3612
3612
  leaderboards: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
3613
3613
  title: z.ZodString;
3614
3614
  balance: z.ZodString;
3615
- group: z.ZodOptional<z.ZodString>;
3616
3615
  score: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
3617
3616
  kind: z.ZodLiteral<"balance">;
3618
3617
  }, z.core.$strict>, z.ZodObject<{
@@ -3661,6 +3660,7 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
3661
3660
  participants: "participants";
3662
3661
  public: "public";
3663
3662
  }>>;
3663
+ group: z.ZodOptional<z.ZodString>;
3664
3664
  key: z.ZodOptional<z.ZodString>;
3665
3665
  id: z.ZodOptional<z.ZodString>;
3666
3666
  }, z.core.$strict>, z.ZodTransform<Omit<{
@@ -3706,7 +3706,7 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
3706
3706
  group?: string | undefined;
3707
3707
  key?: string | undefined;
3708
3708
  id?: string | undefined;
3709
- }, "id" | "key"> & {
3709
+ }, "key" | "id"> & {
3710
3710
  key: string;
3711
3711
  }, {
3712
3712
  title: string;
@@ -3757,12 +3757,6 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
3757
3757
  }, z.core.$strict>;
3758
3758
  /** One manifest bundle. Missing entries never delete remotely owned resources. */
3759
3759
  declare const projectDeploymentSchema: z.ZodObject<{
3760
- types: z.ZodDefault<z.ZodArray<z.ZodObject<{
3761
- code: z.ZodString;
3762
- provider: z.ZodEnum<{
3763
- "workers-ai": "workers-ai";
3764
- }>;
3765
- }, z.core.$strip>>>;
3766
3760
  collections: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodObject<{
3767
3761
  title: z.ZodString;
3768
3762
  key: z.ZodOptional<z.ZodString>;
@@ -3771,13 +3765,19 @@ declare const projectDeploymentSchema: z.ZodObject<{
3771
3765
  title: string;
3772
3766
  key?: string | undefined;
3773
3767
  id?: string | undefined;
3774
- }, "id" | "key"> & {
3768
+ }, "key" | "id"> & {
3775
3769
  key: string;
3776
3770
  }, {
3777
3771
  title: string;
3778
3772
  key?: string | undefined;
3779
3773
  id?: string | undefined;
3780
3774
  }>>>>;
3775
+ types: z.ZodDefault<z.ZodArray<z.ZodObject<{
3776
+ code: z.ZodString;
3777
+ provider: z.ZodEnum<{
3778
+ "workers-ai": "workers-ai";
3779
+ }>;
3780
+ }, z.core.$strip>>>;
3781
3781
  supportedInteractions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
3782
3782
  staff: "staff";
3783
3783
  quiz: "quiz";
@@ -3999,7 +3999,7 @@ declare const projectDeploymentSchema: z.ZodObject<{
3999
3999
  inviterGroup?: string | undefined;
4000
4000
  key?: string | undefined;
4001
4001
  id?: string | undefined;
4002
- }, "id" | "key"> & {
4002
+ }, "key" | "id"> & {
4003
4003
  key: string;
4004
4004
  }, {
4005
4005
  title: string;
@@ -4102,7 +4102,6 @@ declare const projectDeploymentSchema: z.ZodObject<{
4102
4102
  leaderboards: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
4103
4103
  title: z.ZodString;
4104
4104
  balance: z.ZodString;
4105
- group: z.ZodOptional<z.ZodString>;
4106
4105
  score: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
4107
4106
  kind: z.ZodLiteral<"balance">;
4108
4107
  }, z.core.$strict>, z.ZodObject<{
@@ -4151,6 +4150,7 @@ declare const projectDeploymentSchema: z.ZodObject<{
4151
4150
  participants: "participants";
4152
4151
  public: "public";
4153
4152
  }>>;
4153
+ group: z.ZodOptional<z.ZodString>;
4154
4154
  key: z.ZodOptional<z.ZodString>;
4155
4155
  id: z.ZodOptional<z.ZodString>;
4156
4156
  }, z.core.$strict>, z.ZodTransform<Omit<{
@@ -4196,7 +4196,7 @@ declare const projectDeploymentSchema: z.ZodObject<{
4196
4196
  group?: string | undefined;
4197
4197
  key?: string | undefined;
4198
4198
  id?: string | undefined;
4199
- }, "id" | "key"> & {
4199
+ }, "key" | "id"> & {
4200
4200
  key: string;
4201
4201
  }, {
4202
4202
  title: string;
@@ -4493,8 +4493,8 @@ declare const deploymentPreviewSchema: z.ZodObject<{
4493
4493
  typeVersion: z.ZodString;
4494
4494
  }, z.core.$strict>>;
4495
4495
  lifecycle: z.ZodDefault<z.ZodEnum<{
4496
- paused: "paused";
4497
4496
  active: "active";
4497
+ paused: "paused";
4498
4498
  archived: "archived";
4499
4499
  }>>;
4500
4500
  configuration: z.ZodOptional<z.ZodObject<{
@@ -4599,12 +4599,12 @@ declare const deploymentPreviewSchema: z.ZodObject<{
4599
4599
  kind: "resource";
4600
4600
  default: string;
4601
4601
  source: {
4602
+ provider: "domino";
4603
+ resource: "point-ledger";
4604
+ } | {
4602
4605
  provider: "discord";
4603
4606
  resource: "channel";
4604
4607
  types: ("text" | "announcement")[];
4605
- } | {
4606
- provider: "domino";
4607
- resource: "point-ledger";
4608
4608
  } | {
4609
4609
  provider: "discord";
4610
4610
  resource: "role";
@@ -4728,7 +4728,7 @@ declare const deploymentPreviewSchema: z.ZodObject<{
4728
4728
  id: string;
4729
4729
  createdAt: number;
4730
4730
  legacy: boolean;
4731
- lifecycle: "paused" | "active" | "archived";
4731
+ lifecycle: "active" | "paused" | "archived";
4732
4732
  key?: string | undefined;
4733
4733
  origin?: {
4734
4734
  typeVersion: string;
@@ -5479,8 +5479,8 @@ declare const deploymentResultSchema: z.ZodObject<{
5479
5479
  typeVersion: z.ZodString;
5480
5480
  }, z.core.$strict>>;
5481
5481
  lifecycle: z.ZodDefault<z.ZodEnum<{
5482
- paused: "paused";
5483
5482
  active: "active";
5483
+ paused: "paused";
5484
5484
  archived: "archived";
5485
5485
  }>>;
5486
5486
  configuration: z.ZodOptional<z.ZodObject<{
@@ -5585,12 +5585,12 @@ declare const deploymentResultSchema: z.ZodObject<{
5585
5585
  kind: "resource";
5586
5586
  default: string;
5587
5587
  source: {
5588
+ provider: "domino";
5589
+ resource: "point-ledger";
5590
+ } | {
5588
5591
  provider: "discord";
5589
5592
  resource: "channel";
5590
5593
  types: ("text" | "announcement")[];
5591
- } | {
5592
- provider: "domino";
5593
- resource: "point-ledger";
5594
5594
  } | {
5595
5595
  provider: "discord";
5596
5596
  resource: "role";
@@ -5714,7 +5714,7 @@ declare const deploymentResultSchema: z.ZodObject<{
5714
5714
  id: string;
5715
5715
  createdAt: number;
5716
5716
  legacy: boolean;
5717
- lifecycle: "paused" | "active" | "archived";
5717
+ lifecycle: "active" | "paused" | "archived";
5718
5718
  key?: string | undefined;
5719
5719
  origin?: {
5720
5720
  typeVersion: string;
@@ -6483,7 +6483,7 @@ declare function createRelayClient(options: {
6483
6483
  accounts: {
6484
6484
  id: string;
6485
6485
  program: string;
6486
- kind: "milestone" | "fixed" | "bonus";
6486
+ kind: "fixed" | "milestone" | "bonus";
6487
6487
  balance: string;
6488
6488
  earned: number;
6489
6489
  settled: number;
@@ -6673,7 +6673,7 @@ declare function createRelayClient(options: {
6673
6673
  quest: string;
6674
6674
  member: string;
6675
6675
  evidence: string | null;
6676
- status: "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review";
6676
+ status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
6677
6677
  reason: string | null;
6678
6678
  retries: number;
6679
6679
  generation: number;
@@ -6716,7 +6716,7 @@ declare function createRelayClient(options: {
6716
6716
  } | null;
6717
6717
  release: string;
6718
6718
  interaction: "staff" | "quiz" | "photo" | "automatic" | "claim";
6719
- lifecycle: "paused" | "active" | "archived";
6719
+ lifecycle: "active" | "paused" | "archived";
6720
6720
  rewards: {
6721
6721
  label: string;
6722
6722
  }[];
@@ -6758,7 +6758,7 @@ declare function createRelayClient(options: {
6758
6758
  quest: string;
6759
6759
  member: string;
6760
6760
  evidence: string | null;
6761
- status: "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review";
6761
+ status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
6762
6762
  reason: string | null;
6763
6763
  retries: number;
6764
6764
  generation: number;
@@ -6887,7 +6887,7 @@ declare function createRelayClient(options: {
6887
6887
  quest: string;
6888
6888
  member: string;
6889
6889
  evidence: string | null;
6890
- status: "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review";
6890
+ status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
6891
6891
  reason: string | null;
6892
6892
  retries: number;
6893
6893
  generation: number;
@@ -6930,7 +6930,7 @@ declare function createRelayClient(options: {
6930
6930
  } | null;
6931
6931
  release: string;
6932
6932
  interaction: "staff" | "quiz" | "photo" | "automatic" | "claim";
6933
- lifecycle: "paused" | "active" | "archived";
6933
+ lifecycle: "active" | "paused" | "archived";
6934
6934
  rewards: {
6935
6935
  label: string;
6936
6936
  }[];
@@ -7055,7 +7055,7 @@ declare function createRelayClient(options: {
7055
7055
  quest: string;
7056
7056
  member: string;
7057
7057
  evidence: string | null;
7058
- status: "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review";
7058
+ status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
7059
7059
  reason: string | null;
7060
7060
  retries: number;
7061
7061
  generation: number;
@@ -7098,7 +7098,7 @@ declare function createRelayClient(options: {
7098
7098
  } | null;
7099
7099
  release: string;
7100
7100
  interaction: "staff" | "quiz" | "photo" | "automatic" | "claim";
7101
- lifecycle: "paused" | "active" | "archived";
7101
+ lifecycle: "active" | "paused" | "archived";
7102
7102
  rewards: {
7103
7103
  label: string;
7104
7104
  }[];
@@ -7226,7 +7226,7 @@ declare function createRelayClient(options: {
7226
7226
  quest: string;
7227
7227
  member: string;
7228
7228
  evidence: string | null;
7229
- status: "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review";
7229
+ status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
7230
7230
  reason: string | null;
7231
7231
  retries: number;
7232
7232
  generation: number;
@@ -7269,7 +7269,7 @@ declare function createRelayClient(options: {
7269
7269
  } | null;
7270
7270
  release: string;
7271
7271
  interaction: "staff" | "quiz" | "photo" | "automatic" | "claim";
7272
- lifecycle: "paused" | "active" | "archived";
7272
+ lifecycle: "active" | "paused" | "archived";
7273
7273
  rewards: {
7274
7274
  label: string;
7275
7275
  }[];
@@ -7460,7 +7460,7 @@ declare function createRelayClient(options: {
7460
7460
  quest: string;
7461
7461
  member: string;
7462
7462
  evidence: string | null;
7463
- status: "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review";
7463
+ status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
7464
7464
  reason: string | null;
7465
7465
  retries: number;
7466
7466
  generation: number;
@@ -7589,7 +7589,7 @@ declare function createRelayClient(options: {
7589
7589
  quest: string;
7590
7590
  member: string;
7591
7591
  evidence: string | null;
7592
- status: "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review";
7592
+ status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
7593
7593
  reason: string | null;
7594
7594
  retries: number;
7595
7595
  generation: number;
@@ -7750,7 +7750,7 @@ declare function createRelayClient(options: {
7750
7750
  provider: "discord";
7751
7751
  action: "grant-role";
7752
7752
  roleId: string;
7753
- status: "pending" | "delivered" | "failed";
7753
+ status: "failed" | "pending" | "delivered";
7754
7754
  attempts: number;
7755
7755
  nextAt: number;
7756
7756
  lastError: string | null;
@@ -7766,7 +7766,7 @@ declare function createRelayClient(options: {
7766
7766
  quest: string;
7767
7767
  member: string;
7768
7768
  evidence: string | null;
7769
- status: "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review";
7769
+ status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
7770
7770
  reason: string | null;
7771
7771
  retries: number;
7772
7772
  generation: number;
@@ -7826,7 +7826,7 @@ declare function createRelayClient(options: {
7826
7826
  quest: string;
7827
7827
  member: string;
7828
7828
  evidence: string | null;
7829
- status: "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review";
7829
+ status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
7830
7830
  reason: string | null;
7831
7831
  retries: number;
7832
7832
  generation: number;
@@ -7941,12 +7941,12 @@ declare function createRelayClient(options: {
7941
7941
  kind: "resource";
7942
7942
  default: string;
7943
7943
  source: {
7944
+ provider: "domino";
7945
+ resource: "point-ledger";
7946
+ } | {
7944
7947
  provider: "discord";
7945
7948
  resource: "channel";
7946
7949
  types: ("text" | "announcement")[];
7947
- } | {
7948
- provider: "domino";
7949
- resource: "point-ledger";
7950
7950
  } | {
7951
7951
  provider: "discord";
7952
7952
  resource: "role";
@@ -8109,12 +8109,12 @@ declare function createRelayClient(options: {
8109
8109
  kind: "resource";
8110
8110
  default: string;
8111
8111
  source: {
8112
+ provider: "domino";
8113
+ resource: "point-ledger";
8114
+ } | {
8112
8115
  provider: "discord";
8113
8116
  resource: "channel";
8114
8117
  types: ("text" | "announcement")[];
8115
- } | {
8116
- provider: "domino";
8117
- resource: "point-ledger";
8118
8118
  } | {
8119
8119
  provider: "discord";
8120
8120
  resource: "role";
@@ -8276,12 +8276,12 @@ declare function createRelayClient(options: {
8276
8276
  kind: "resource";
8277
8277
  default: string;
8278
8278
  source: {
8279
+ provider: "domino";
8280
+ resource: "point-ledger";
8281
+ } | {
8279
8282
  provider: "discord";
8280
8283
  resource: "channel";
8281
8284
  types: ("text" | "announcement")[];
8282
- } | {
8283
- provider: "domino";
8284
- resource: "point-ledger";
8285
8285
  } | {
8286
8286
  provider: "discord";
8287
8287
  resource: "role";
@@ -8405,7 +8405,7 @@ declare function createRelayClient(options: {
8405
8405
  id: string;
8406
8406
  createdAt: number;
8407
8407
  legacy: boolean;
8408
- lifecycle: "paused" | "active" | "archived";
8408
+ lifecycle: "active" | "paused" | "archived";
8409
8409
  key?: string | undefined;
8410
8410
  origin?: {
8411
8411
  typeVersion: string;
@@ -8521,7 +8521,7 @@ declare function createRelayClient(options: {
8521
8521
  quest: string;
8522
8522
  member: string;
8523
8523
  evidence: string | null;
8524
- status: "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review";
8524
+ status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
8525
8525
  reason: string | null;
8526
8526
  retries: number;
8527
8527
  generation: number;
@@ -8618,12 +8618,12 @@ declare function createRelayClient(options: {
8618
8618
  kind: "resource";
8619
8619
  default: string;
8620
8620
  source: {
8621
+ provider: "domino";
8622
+ resource: "point-ledger";
8623
+ } | {
8621
8624
  provider: "discord";
8622
8625
  resource: "channel";
8623
8626
  types: ("text" | "announcement")[];
8624
- } | {
8625
- provider: "domino";
8626
- resource: "point-ledger";
8627
8627
  } | {
8628
8628
  provider: "discord";
8629
8629
  resource: "role";
@@ -8747,7 +8747,7 @@ declare function createRelayClient(options: {
8747
8747
  id: string;
8748
8748
  createdAt: number;
8749
8749
  legacy: boolean;
8750
- lifecycle: "paused" | "active" | "archived";
8750
+ lifecycle: "active" | "paused" | "archived";
8751
8751
  key?: string | undefined;
8752
8752
  origin?: {
8753
8753
  typeVersion: string;
@@ -8814,12 +8814,12 @@ declare function createRelayClient(options: {
8814
8814
  kind: "resource";
8815
8815
  default: string;
8816
8816
  source: {
8817
+ provider: "domino";
8818
+ resource: "point-ledger";
8819
+ } | {
8817
8820
  provider: "discord";
8818
8821
  resource: "channel";
8819
8822
  types: ("text" | "announcement")[];
8820
- } | {
8821
- provider: "domino";
8822
- resource: "point-ledger";
8823
8823
  } | {
8824
8824
  provider: "discord";
8825
8825
  resource: "role";
@@ -8943,7 +8943,7 @@ declare function createRelayClient(options: {
8943
8943
  id: string;
8944
8944
  createdAt: number;
8945
8945
  legacy: boolean;
8946
- lifecycle: "paused" | "active" | "archived";
8946
+ lifecycle: "active" | "paused" | "archived";
8947
8947
  key?: string | undefined;
8948
8948
  origin?: {
8949
8949
  typeVersion: string;
@@ -9058,7 +9058,7 @@ declare function createRelayClient(options: {
9058
9058
  quest: string;
9059
9059
  member: string;
9060
9060
  evidence: string | null;
9061
- status: "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review";
9061
+ status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
9062
9062
  reason: string | null;
9063
9063
  retries: number;
9064
9064
  generation: number;
@@ -9381,7 +9381,7 @@ declare function createRelayClient(options: {
9381
9381
  quest: string;
9382
9382
  member: string;
9383
9383
  evidence: string | null;
9384
- status: "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review";
9384
+ status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
9385
9385
  reason: string | null;
9386
9386
  retries: number;
9387
9387
  generation: number;
@@ -9428,7 +9428,7 @@ declare function createRelayClient(options: {
9428
9428
  quest: string;
9429
9429
  member: string;
9430
9430
  evidence: string | null;
9431
- status: "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review";
9431
+ status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
9432
9432
  reason: string | null;
9433
9433
  retries: number;
9434
9434
  generation: number;
@@ -9481,7 +9481,7 @@ declare function createRelayClient(options: {
9481
9481
  quest: string;
9482
9482
  member: string;
9483
9483
  evidence: string | null;
9484
- status: "failed" | "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review";
9484
+ status: "queued" | "evaluating" | "accepted" | "progressed" | "rejected" | "needs-review" | "failed";
9485
9485
  reason: string | null;
9486
9486
  retries: number;
9487
9487
  generation: number;