@domino-sdk/relay 1.0.0-next.12 → 1.0.0-next.13

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.
Files changed (34) hide show
  1. package/dist/authoring.d.ts +25 -25
  2. package/dist/authoring.js +10 -3
  3. package/dist/browser.d.ts +19 -26
  4. package/dist/browser.js +6 -6
  5. package/dist/{catalog-qrYne8qV.d.ts → catalog-C85V1NgW.d.ts} +73 -79
  6. package/dist/{chunk-YYD4QUBO.js → chunk-CRNQP7NV.js} +550 -470
  7. package/dist/{chunk-22J4K7ED.js → chunk-EZWNGI5B.js} +4 -4
  8. package/dist/{chunk-7Q4BGGT6.js → chunk-FXYJ4OMX.js} +1 -1
  9. package/dist/{chunk-4LBUTHD6.js → chunk-II7DRZSL.js} +1 -1
  10. package/dist/{chunk-NZA2TLBF.js → chunk-KS33GOUL.js} +23 -8
  11. package/dist/{chunk-LY7SXUNW.js → chunk-M64XHC42.js} +4 -4
  12. package/dist/{chunk-UW5CQHPQ.js → chunk-MNQI35OG.js} +3 -3
  13. package/dist/{chunk-5L7XZA4Y.js → chunk-OA2KMQVZ.js} +31 -25
  14. package/dist/{chunk-EWFB35JW.js → chunk-WQ24ILGO.js} +2 -2
  15. package/dist/{client-CW72TaAs.d.ts → client-Bf9PNUIi.d.ts} +18 -25
  16. package/dist/{deployments-Bc0dPSXN.d.ts → deployments-CNCP0JnD.d.ts} +269 -138
  17. package/dist/{images-D0Txfte6.d.ts → images-BG4pdO4y.d.ts} +1 -1
  18. package/dist/index.d.ts +5 -5
  19. package/dist/index.js +5 -5
  20. package/dist/internal.d.ts +3 -3
  21. package/dist/internal.js +4 -4
  22. package/dist/{observations-bFY4yv2K.d.ts → observations-CQ6IcNuQ.d.ts} +3 -3
  23. package/dist/portal-proxy.js +2 -2
  24. package/dist/react/index.d.ts +19 -27
  25. package/dist/react/index.js +7 -7
  26. package/dist/{referrals-CvSmxvjm.d.ts → referrals-KQfP4pBf.d.ts} +189 -102
  27. package/dist/{schema-ZfjL-d1N.d.ts → schema-BF_TQsmT.d.ts} +338 -47
  28. package/dist/schema.d.ts +8 -8
  29. package/dist/schema.js +28 -8
  30. package/dist/server/index.d.ts +542 -508
  31. package/dist/server/index.js +31 -7
  32. package/dist/{streaks-CwGReWGt.d.ts → streaks-CWyq8Px5.d.ts} +2 -4
  33. package/dist/{trackers-BsUh5Ky0.d.ts → trackers-W7nRdRr7.d.ts} +1 -1
  34. package/package.json +1 -1
@@ -1,14 +1,14 @@
1
1
  import { z } from 'zod';
2
2
  export { z } from 'zod';
3
- import { e as ContentPolicy, C as ContentMetric, E as EngagementDefinition, P as leaderboardAuthoringSchema, a7 as referralAuthoringSchema, A as AdmittedContent } from './referrals-CvSmxvjm.js';
4
- import { Q as QuizContent, a as StreakPolicy } from './streaks-CwGReWGt.js';
3
+ import { e as ContentPolicy, C as ContentMetric, E as EngagementBudget, T as leaderboardDefinitionSchema, a9 as referralAuthoringSchema, A as AdmittedContent } from './referrals-KQfP4pBf.js';
4
+ import { Q as QuizContent, a as StreakPolicy } from './streaks-CWyq8Px5.js';
5
5
  import { b as ResourceSource, S as Setting, g as XReader, I as IntegerSettings, a as IntegrationProvider } from './integrations-EjQzIApL.js';
6
- import { j as TrackerDefinition, I as IdentityKind, J as customSourceSchema, F as WithRecordData, t as TrackerSource, a1 as trackerDefinitionSchema, a as Tracker, h as TrackerData, au as xSearchSourceSchema, X as XTweet, v as TrackerTriggerContext, x as TrackerTriggerPolicy, q as TrackerReader, W as Where, w as TrackerTriggerMode, E as WhereSetting } from './trackers-BsUh5Ky0.js';
7
- export { T as TrackerDataSchema, m as TrackerPage, aw as trackerDataSchema, ak as trackerTriggerContextSchema } from './trackers-BsUh5Ky0.js';
8
- import { e as ImageReader } from './images-D0Txfte6.js';
9
- import { O as Observation, D as DiscordMessage, h as observationTriggerSchema, B as Budget } from './observations-bFY4yv2K.js';
6
+ import { j as TrackerDefinition, I as IdentityKind, J as customSourceSchema, F as WithRecordData, t as TrackerSource, a1 as trackerDefinitionSchema, T as Tracker, g as TrackerData, au as xSearchSourceSchema, X as XTweet, v as TrackerTriggerContext, x as TrackerTriggerPolicy, q as TrackerReader, W as Where, w as TrackerTriggerMode, E as WhereSetting } from './trackers-W7nRdRr7.js';
7
+ export { i as TrackerDataSchema, m as TrackerPage, aw as trackerDataSchema, ak as trackerTriggerContextSchema } from './trackers-W7nRdRr7.js';
8
+ import { e as ImageReader } from './images-BG4pdO4y.js';
9
+ import { O as Observation, D as DiscordMessage, h as observationTriggerSchema, B as Budget } from './observations-CQ6IcNuQ.js';
10
10
  import { D as DiscordMember, T as TextEvidence, U as UrlEvidence, b as TextOptions, c as UrlOptions } from './submission-input-CccwAl5Z.js';
11
- import { n as TextReviewInput, m as TextResult, P as PhotoResult, ag as rewardSchema, au as triggerSchema, Q as QuestPresentation, a as QuestProfile, b as QuizEvidence, D as Decision, o as TieredRewardDefinition } from './schema-ZfjL-d1N.js';
11
+ import { n as TextReviewInput, m as TextResult, P as PhotoResult, ag as rewardSchema, av as triggerSchema, Q as QuestPresentation, a as QuestProfile, b as QuizEvidence, D as Decision, o as TieredRewardDefinition } from './schema-BF_TQsmT.js';
12
12
  import { k as WalletConnection, S as SolanaBalance, L as LinkedWallet, j as WalletBalanceQuery, i as WalletBalance } from './wallet-BtiG0Xhr.js';
13
13
  export { E as EvmChainId, r as isEvmChainId } from './wallet-BtiG0Xhr.js';
14
14
  export { f as formatUnits, p as parseUnits } from './units-CwgsPB_r.js';
@@ -53,7 +53,7 @@ declare function defineEngagementReward<const M extends readonly [ContentMetric,
53
53
  metrics: M;
54
54
  baseline: "historical";
55
55
  maxAgeMs?: number;
56
- budget?: EngagementDefinition["budget"];
56
+ budgets?: EngagementBudget[];
57
57
  target: (input: {
58
58
  metrics: Record<M[number], number>;
59
59
  }) => number;
@@ -66,11 +66,11 @@ declare function defineEngagementReward<const M extends readonly [ContentMetric,
66
66
  metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
67
67
  baseline: "historical";
68
68
  maxAgeMs: number;
69
- budget: {
70
- projectDaily?: number | undefined;
71
- memberDaily?: number | undefined;
72
- projectLifetime?: number | undefined;
73
- };
69
+ budgets: {
70
+ scope: "member" | "project";
71
+ period: "lifetime" | "day" | "week" | "month";
72
+ limit: number;
73
+ }[];
74
74
  };
75
75
  score(raw: unknown): {
76
76
  target: number;
@@ -78,13 +78,16 @@ declare function defineEngagementReward<const M extends readonly [ContentMetric,
78
78
  };
79
79
  };
80
80
  /**
81
- * One milestone per quest, after `days` consecutive community days with an accepted attempt.
82
- * Multiple accepted attempts occupy one day. The day comes from the attempt's trusted occurrence
83
- * time: a tracker record's (or observation's) `occurredAt` for `automatic({ tracker })`, and the
84
- * submission's admission time for `manual()`, so a manual streak counts the days a member
85
- * submitted. Not available on content quests or prerequisite-only `automatic()`.
81
+ * One milestone per quest, after `days` consecutive project calendar days with an accepted
82
+ * attempt. Multiple accepted attempts occupy one day. The day comes from the attempt's trusted
83
+ * occurrence time: a tracker record's (or observation's) `occurredAt` for `automatic({ tracker })`,
84
+ * and the submission's admission time for `manual()`, so a manual streak counts the days a member
85
+ * submitted. Days begin at midnight in the project timezone (`calendar.timeZone` in relay.json, or
86
+ * Console settings). Not available on content quests or prerequisite-only `automatic()`.
86
87
  */
87
- declare const streak: (options: Omit<StreakPolicy, "kind">) => StreakPolicy;
88
+ declare const streak: (options: {
89
+ days: number;
90
+ }) => StreakPolicy;
88
91
  declare function defineReferral(input: Omit<z.input<typeof referralAuthoringSchema>, "key" | "id"> & AuthoringIdentity): {
89
92
  id: string;
90
93
  title: string;
@@ -181,7 +184,7 @@ declare function defineReferral(input: Omit<z.input<typeof referralAuthoringSche
181
184
  }[];
182
185
  key: string;
183
186
  };
184
- declare function defineLeaderboard(input: Omit<z.input<typeof leaderboardAuthoringSchema>, "key" | "id"> & AuthoringIdentity): {
187
+ declare function defineLeaderboard(input: Omit<z.input<typeof leaderboardDefinitionSchema>, "key" | "id"> & AuthoringIdentity): {
185
188
  id: string;
186
189
  balance: string;
187
190
  title: string;
@@ -201,7 +204,6 @@ declare function defineLeaderboard(input: Omit<z.input<typeof leaderboardAuthori
201
204
  } | {
202
205
  kind: "calendar";
203
206
  period: "day" | "week" | "month";
204
- timeZone: string;
205
207
  };
206
208
  kind: "earned";
207
209
  quests?: string[] | undefined;
@@ -219,7 +221,6 @@ declare function defineLeaderboard(input: Omit<z.input<typeof leaderboardAuthori
219
221
  } | {
220
222
  kind: "calendar";
221
223
  period: "day" | "week" | "month";
222
- timeZone: string;
223
224
  };
224
225
  };
225
226
  access: "participants" | "public";
@@ -449,7 +450,7 @@ type KeyedContext = {
449
450
  declare const budget: (definition: Budget) => {
450
451
  id: string;
451
452
  scope: "member" | "project";
452
- period: "lifetime" | "day" | "week";
453
+ period: "lifetime" | "day" | "week" | "month";
453
454
  limit: number;
454
455
  cost: number | {
455
456
  balance: string;
@@ -918,7 +919,6 @@ declare function defineQuest<T extends Record<string, Setting>, const G extends
918
919
  completion: {
919
920
  kind: "streak";
920
921
  days: number;
921
- timeZone: string;
922
922
  } | {
923
923
  kind: "once";
924
924
  } | {
@@ -928,7 +928,7 @@ declare function defineQuest<T extends Record<string, Setting>, const G extends
928
928
  budgets: {
929
929
  id: string;
930
930
  scope: "member" | "project";
931
- period: "lifetime" | "day" | "week";
931
+ period: "lifetime" | "day" | "week" | "month";
932
932
  limit: number;
933
933
  cost: number | {
934
934
  balance: string;
package/dist/authoring.js CHANGED
@@ -10,7 +10,7 @@ import {
10
10
  isEvmChainId,
11
11
  leaderboardAuthoringSchema,
12
12
  referralAuthoringSchema
13
- } from "./chunk-5L7XZA4Y.js";
13
+ } from "./chunk-OA2KMQVZ.js";
14
14
  import {
15
15
  admittedContentSchema,
16
16
  budgetSchema,
@@ -48,7 +48,7 @@ import {
48
48
  whereSettings,
49
49
  xAccountRoles,
50
50
  xSearchSourceSchema
51
- } from "./chunk-YYD4QUBO.js";
51
+ } from "./chunk-CRNQP7NV.js";
52
52
 
53
53
  // src/builders.ts
54
54
  import { z } from "zod";
@@ -99,7 +99,14 @@ function defineEngagementReward(input) {
99
99
  }
100
100
  };
101
101
  }
102
- var streak = (options) => streakPolicySchema.parse({ kind: "streak", ...options });
102
+ var streak = (options) => {
103
+ if ("timeZone" in options) {
104
+ throw new Error(
105
+ "streak() no longer takes a timeZone. Set the project timezone with calendar.timeZone in relay.json or in Console settings."
106
+ );
107
+ }
108
+ return streakPolicySchema.strict().parse({ kind: "streak", ...options });
109
+ };
103
110
  function defineReferral(input) {
104
111
  const definition = referralAuthoringSchema.parse(input);
105
112
  return {
package/dist/browser.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { a4 as referralAcceptSchema, c as LeaderboardQuery, D as engagementPageQuerySchema, r as contentQualificationQuerySchema, h as contentAdmissionQuerySchema, j as contentEnrollmentInputSchema, t as contentReleaseInputSchema } from './referrals-CvSmxvjm.js';
2
- import { an as submitSchema, x as contentPerformanceQuerySchema } from './schema-ZfjL-d1N.js';
3
- import { h as QuestView, J as questExperienceSchema, e as PointHistoryQuery, c as PointEntryKind } from './catalog-qrYne8qV.js';
4
- import { n as createRelayClient, m as SubmissionStore, k as RelayRequestOptions, c as QuestController, a as ProgressObservation, b as ProgressObserver, P as PhotoSubmission, e as QuizSubmission, C as ClaimSubmission, V as ValueSubmission } from './client-CW72TaAs.js';
1
+ import { a6 as referralAcceptSchema, c as LeaderboardQuery, G as engagementPageQuerySchema, s as contentQualificationQuerySchema, i as contentAdmissionQuerySchema, k as contentEnrollmentInputSchema, u as contentReleaseInputSchema } from './referrals-KQfP4pBf.js';
2
+ import { ao as submitSchema, x as contentPerformanceQuerySchema } from './schema-BF_TQsmT.js';
3
+ import { h as QuestView, J as questExperienceSchema, e as PointHistoryQuery, c as PointEntryKind } from './catalog-C85V1NgW.js';
4
+ import { n as createRelayClient, m as SubmissionStore, k as RelayRequestOptions, c as QuestController, a as ProgressObservation, b as ProgressObserver, P as PhotoSubmission, e as QuizSubmission, C as ClaimSubmission, V as ValueSubmission } from './client-Bf9PNUIi.js';
5
5
  import { a as PageQuery, f as exchangeSchema } from './pages-KYK1L60W.js';
6
6
  import { a as AuthProvider } from './submission-input-CccwAl5Z.js';
7
7
  import { C as CosmosChain, a as CosmosNetwork, f as WalletSigner, d as WalletSignInNetwork, x as walletAddressInputSchema, M as walletSignatureSchema, L as LinkedWallet } from './wallet-BtiG0Xhr.js';
@@ -470,7 +470,6 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
470
470
  } | {
471
471
  kind: "calendar";
472
472
  period: "day" | "week" | "month";
473
- timeZone: string;
474
473
  };
475
474
  kind: "earned";
476
475
  quests?: string[] | undefined;
@@ -488,7 +487,6 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
488
487
  } | {
489
488
  kind: "calendar";
490
489
  period: "day" | "week" | "month";
491
- timeZone: string;
492
490
  };
493
491
  };
494
492
  access: "participants" | "public";
@@ -855,7 +853,6 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
855
853
  completion: {
856
854
  kind: "streak";
857
855
  days: number;
858
- timeZone: string;
859
856
  } | {
860
857
  kind: "once";
861
858
  } | {
@@ -1170,7 +1167,6 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1170
1167
  completion: {
1171
1168
  kind: "streak";
1172
1169
  days: number;
1173
- timeZone: string;
1174
1170
  } | {
1175
1171
  kind: "once";
1176
1172
  } | {
@@ -1432,7 +1428,6 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1432
1428
  completion: {
1433
1429
  kind: "streak";
1434
1430
  days: number;
1435
- timeZone: string;
1436
1431
  } | {
1437
1432
  kind: "once";
1438
1433
  } | {
@@ -1697,7 +1692,6 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
1697
1692
  completion: {
1698
1693
  kind: "streak";
1699
1694
  days: number;
1700
- timeZone: string;
1701
1695
  } | {
1702
1696
  kind: "once";
1703
1697
  } | {
@@ -2181,7 +2175,6 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2181
2175
  completion: {
2182
2176
  kind: "streak";
2183
2177
  days: number;
2184
- timeZone: string;
2185
2178
  } | {
2186
2179
  kind: "once";
2187
2180
  } | {
@@ -2472,11 +2465,11 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2472
2465
  metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
2473
2466
  baseline: "historical";
2474
2467
  maxAgeMs: number;
2475
- budget: {
2476
- projectDaily?: number | undefined;
2477
- memberDaily?: number | undefined;
2478
- projectLifetime?: number | undefined;
2479
- };
2468
+ budgets: {
2469
+ scope: "member" | "project";
2470
+ period: "lifetime" | "day" | "week" | "month";
2471
+ limit: number;
2472
+ }[];
2480
2473
  };
2481
2474
  publishedAt: number;
2482
2475
  };
@@ -2517,11 +2510,11 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2517
2510
  metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
2518
2511
  baseline: "historical";
2519
2512
  maxAgeMs: number;
2520
- budget: {
2521
- projectDaily?: number | undefined;
2522
- memberDaily?: number | undefined;
2523
- projectLifetime?: number | undefined;
2524
- };
2513
+ budgets: {
2514
+ scope: "member" | "project";
2515
+ period: "lifetime" | "day" | "week" | "month";
2516
+ limit: number;
2517
+ }[];
2525
2518
  };
2526
2519
  publishedAt: number;
2527
2520
  } | null;
@@ -2534,11 +2527,11 @@ declare function createBrowserRelayClient(options: Parameters<typeof createRelay
2534
2527
  metrics: ("likes" | "replies" | "reposts" | "quotes" | "views" | "bookmarks")[];
2535
2528
  baseline: "historical";
2536
2529
  maxAgeMs: number;
2537
- budget: {
2538
- projectDaily?: number | undefined;
2539
- memberDaily?: number | undefined;
2540
- projectLifetime?: number | undefined;
2541
- };
2530
+ budgets: {
2531
+ scope: "member" | "project";
2532
+ period: "lifetime" | "day" | "week" | "month";
2533
+ limit: number;
2534
+ }[];
2542
2535
  };
2543
2536
  publishedAt: number;
2544
2537
  };
package/dist/browser.js CHANGED
@@ -11,12 +11,12 @@ import {
11
11
  signInOptions,
12
12
  solanaSigner,
13
13
  walletStandardSolanaSigner
14
- } from "./chunk-EWFB35JW.js";
15
- import "./chunk-22J4K7ED.js";
16
- import "./chunk-LY7SXUNW.js";
17
- import "./chunk-5L7XZA4Y.js";
18
- import "./chunk-7Q4BGGT6.js";
19
- import "./chunk-YYD4QUBO.js";
14
+ } from "./chunk-WQ24ILGO.js";
15
+ import "./chunk-EZWNGI5B.js";
16
+ import "./chunk-M64XHC42.js";
17
+ import "./chunk-OA2KMQVZ.js";
18
+ import "./chunk-FXYJ4OMX.js";
19
+ import "./chunk-CRNQP7NV.js";
20
20
  export {
21
21
  browserSubmissionStore,
22
22
  cosmosChainList,
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { a2 as questDescriptionSchema } from './schema-ZfjL-d1N.js';
2
+ import { a2 as questDescriptionSchema } from './schema-BF_TQsmT.js';
3
3
 
4
4
  declare const pointLedgerPropertiesSchema: z.ZodObject<{
5
5
  name: z.ZodString;
@@ -391,15 +391,6 @@ declare const questTypeVersionSchema: z.ZodObject<{
391
391
  requires: z.ZodDefault<z.ZodArray<z.ZodObject<{
392
392
  quest: z.ZodString;
393
393
  }, z.core.$strip>>>;
394
- completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
395
- kind: z.ZodLiteral<"streak">;
396
- days: z.ZodNumber;
397
- timeZone: z.ZodString;
398
- }, z.core.$strict>, z.ZodObject<{
399
- kind: z.ZodLiteral<"once">;
400
- }, z.core.$strict>, z.ZodObject<{
401
- kind: z.ZodLiteral<"keyed">;
402
- }, z.core.$strict>], "kind">;
403
394
  visibility: z.ZodDefault<z.ZodEnum<{
404
395
  visible: "visible";
405
396
  hidden: "hidden";
@@ -414,15 +405,24 @@ declare const questTypeVersionSchema: z.ZodObject<{
414
405
  project: "project";
415
406
  }>;
416
407
  period: z.ZodEnum<{
417
- day: "day";
418
408
  lifetime: "lifetime";
409
+ day: "day";
419
410
  week: "week";
411
+ month: "month";
420
412
  }>;
421
413
  limit: z.ZodNumber;
422
414
  cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
423
415
  balance: z.ZodString;
424
416
  }, z.core.$strict>]>;
425
417
  }, z.core.$strict>>>;
418
+ completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
419
+ kind: z.ZodLiteral<"streak">;
420
+ days: z.ZodNumber;
421
+ }, z.core.$strip>, z.ZodObject<{
422
+ kind: z.ZodLiteral<"once">;
423
+ }, z.core.$strict>, z.ZodObject<{
424
+ kind: z.ZodLiteral<"keyed">;
425
+ }, z.core.$strict>], "kind">;
426
426
  }, z.core.$strict>;
427
427
  provider: z.ZodEnum<{
428
428
  "workers-ai": "workers-ai";
@@ -842,15 +842,6 @@ declare const questCatalogSchema: z.ZodObject<{
842
842
  requires: z.ZodDefault<z.ZodArray<z.ZodObject<{
843
843
  quest: z.ZodString;
844
844
  }, z.core.$strip>>>;
845
- completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
846
- kind: z.ZodLiteral<"streak">;
847
- days: z.ZodNumber;
848
- timeZone: z.ZodString;
849
- }, z.core.$strict>, z.ZodObject<{
850
- kind: z.ZodLiteral<"once">;
851
- }, z.core.$strict>, z.ZodObject<{
852
- kind: z.ZodLiteral<"keyed">;
853
- }, z.core.$strict>], "kind">;
854
845
  visibility: z.ZodDefault<z.ZodEnum<{
855
846
  visible: "visible";
856
847
  hidden: "hidden";
@@ -865,15 +856,24 @@ declare const questCatalogSchema: z.ZodObject<{
865
856
  project: "project";
866
857
  }>;
867
858
  period: z.ZodEnum<{
868
- day: "day";
869
859
  lifetime: "lifetime";
860
+ day: "day";
870
861
  week: "week";
862
+ month: "month";
871
863
  }>;
872
864
  limit: z.ZodNumber;
873
865
  cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
874
866
  balance: z.ZodString;
875
867
  }, z.core.$strict>]>;
876
868
  }, z.core.$strict>>>;
869
+ completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
870
+ kind: z.ZodLiteral<"streak">;
871
+ days: z.ZodNumber;
872
+ }, z.core.$strip>, z.ZodObject<{
873
+ kind: z.ZodLiteral<"once">;
874
+ }, z.core.$strict>, z.ZodObject<{
875
+ kind: z.ZodLiteral<"keyed">;
876
+ }, z.core.$strict>], "kind">;
877
877
  }, z.core.$strict>;
878
878
  provider: z.ZodEnum<{
879
879
  "workers-ai": "workers-ai";
@@ -1237,15 +1237,6 @@ declare const questCatalogSchema: z.ZodObject<{
1237
1237
  requires: z.ZodDefault<z.ZodArray<z.ZodObject<{
1238
1238
  quest: z.ZodString;
1239
1239
  }, z.core.$strip>>>;
1240
- completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
1241
- kind: z.ZodLiteral<"streak">;
1242
- days: z.ZodNumber;
1243
- timeZone: z.ZodString;
1244
- }, z.core.$strict>, z.ZodObject<{
1245
- kind: z.ZodLiteral<"once">;
1246
- }, z.core.$strict>, z.ZodObject<{
1247
- kind: z.ZodLiteral<"keyed">;
1248
- }, z.core.$strict>], "kind">;
1249
1240
  visibility: z.ZodDefault<z.ZodEnum<{
1250
1241
  visible: "visible";
1251
1242
  hidden: "hidden";
@@ -1260,15 +1251,24 @@ declare const questCatalogSchema: z.ZodObject<{
1260
1251
  project: "project";
1261
1252
  }>;
1262
1253
  period: z.ZodEnum<{
1263
- day: "day";
1264
1254
  lifetime: "lifetime";
1255
+ day: "day";
1265
1256
  week: "week";
1257
+ month: "month";
1266
1258
  }>;
1267
1259
  limit: z.ZodNumber;
1268
1260
  cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1269
1261
  balance: z.ZodString;
1270
1262
  }, z.core.$strict>]>;
1271
1263
  }, z.core.$strict>>>;
1264
+ completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
1265
+ kind: z.ZodLiteral<"streak">;
1266
+ days: z.ZodNumber;
1267
+ }, z.core.$strip>, z.ZodObject<{
1268
+ kind: z.ZodLiteral<"once">;
1269
+ }, z.core.$strict>, z.ZodObject<{
1270
+ kind: z.ZodLiteral<"keyed">;
1271
+ }, z.core.$strict>], "kind">;
1272
1272
  key: z.ZodOptional<z.ZodString>;
1273
1273
  code: z.ZodString;
1274
1274
  provider: z.ZodEnum<{
@@ -1563,25 +1563,24 @@ declare const questCatalogSchema: z.ZodObject<{
1563
1563
  requires: {
1564
1564
  quest: string;
1565
1565
  }[];
1566
- completion: {
1567
- kind: "streak";
1568
- days: number;
1569
- timeZone: string;
1570
- } | {
1571
- kind: "once";
1572
- } | {
1573
- kind: "keyed";
1574
- };
1575
1566
  visibility: "visible" | "hidden";
1576
1567
  budgets: {
1577
1568
  id: string;
1578
1569
  scope: "member" | "project";
1579
- period: "day" | "lifetime" | "week";
1570
+ period: "lifetime" | "day" | "week" | "month";
1580
1571
  limit: number;
1581
1572
  cost: number | {
1582
1573
  balance: string;
1583
1574
  };
1584
1575
  }[];
1576
+ completion: {
1577
+ kind: "streak";
1578
+ days: number;
1579
+ } | {
1580
+ kind: "once";
1581
+ } | {
1582
+ kind: "keyed";
1583
+ };
1585
1584
  code: string;
1586
1585
  provider: "workers-ai" | "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error";
1587
1586
  id: string;
@@ -1964,15 +1963,6 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
1964
1963
  requires: z.ZodDefault<z.ZodArray<z.ZodObject<{
1965
1964
  quest: z.ZodString;
1966
1965
  }, z.core.$strip>>>;
1967
- completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
1968
- kind: z.ZodLiteral<"streak">;
1969
- days: z.ZodNumber;
1970
- timeZone: z.ZodString;
1971
- }, z.core.$strict>, z.ZodObject<{
1972
- kind: z.ZodLiteral<"once">;
1973
- }, z.core.$strict>, z.ZodObject<{
1974
- kind: z.ZodLiteral<"keyed">;
1975
- }, z.core.$strict>], "kind">;
1976
1966
  visibility: z.ZodDefault<z.ZodEnum<{
1977
1967
  visible: "visible";
1978
1968
  hidden: "hidden";
@@ -1987,15 +1977,24 @@ declare const catalogDeploymentPreviewSchema: z.ZodObject<{
1987
1977
  project: "project";
1988
1978
  }>;
1989
1979
  period: z.ZodEnum<{
1990
- day: "day";
1991
1980
  lifetime: "lifetime";
1981
+ day: "day";
1992
1982
  week: "week";
1983
+ month: "month";
1993
1984
  }>;
1994
1985
  limit: z.ZodNumber;
1995
1986
  cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1996
1987
  balance: z.ZodString;
1997
1988
  }, z.core.$strict>]>;
1998
1989
  }, z.core.$strict>>>;
1990
+ completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
1991
+ kind: z.ZodLiteral<"streak">;
1992
+ days: z.ZodNumber;
1993
+ }, z.core.$strip>, z.ZodObject<{
1994
+ kind: z.ZodLiteral<"once">;
1995
+ }, z.core.$strict>, z.ZodObject<{
1996
+ kind: z.ZodLiteral<"keyed">;
1997
+ }, z.core.$strict>], "kind">;
1999
1998
  }, z.core.$strict>;
2000
1999
  provider: z.ZodEnum<{
2001
2000
  "workers-ai": "workers-ai";
@@ -2264,8 +2263,7 @@ declare const questViewSchema: z.ZodObject<{
2264
2263
  completion: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
2265
2264
  kind: z.ZodLiteral<"streak">;
2266
2265
  days: z.ZodNumber;
2267
- timeZone: z.ZodString;
2268
- }, z.core.$strict>, z.ZodObject<{
2266
+ }, z.core.$strip>, z.ZodObject<{
2269
2267
  kind: z.ZodLiteral<"once">;
2270
2268
  }, z.core.$strict>, z.ZodObject<{
2271
2269
  kind: z.ZodLiteral<"keyed">;
@@ -2591,8 +2589,7 @@ declare const collectionViewSchema: z.ZodObject<{
2591
2589
  completion: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
2592
2590
  kind: z.ZodLiteral<"streak">;
2593
2591
  days: z.ZodNumber;
2594
- timeZone: z.ZodString;
2595
- }, z.core.$strict>, z.ZodObject<{
2592
+ }, z.core.$strip>, z.ZodObject<{
2596
2593
  kind: z.ZodLiteral<"once">;
2597
2594
  }, z.core.$strict>, z.ZodObject<{
2598
2595
  kind: z.ZodLiteral<"keyed">;
@@ -2917,8 +2914,7 @@ declare const questExperienceSchema: z.ZodObject<{
2917
2914
  completion: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
2918
2915
  kind: z.ZodLiteral<"streak">;
2919
2916
  days: z.ZodNumber;
2920
- timeZone: z.ZodString;
2921
- }, z.core.$strict>, z.ZodObject<{
2917
+ }, z.core.$strip>, z.ZodObject<{
2922
2918
  kind: z.ZodLiteral<"once">;
2923
2919
  }, z.core.$strict>, z.ZodObject<{
2924
2920
  kind: z.ZodLiteral<"keyed">;
@@ -3244,8 +3240,7 @@ declare const questExperienceSchema: z.ZodObject<{
3244
3240
  completion: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
3245
3241
  kind: z.ZodLiteral<"streak">;
3246
3242
  days: z.ZodNumber;
3247
- timeZone: z.ZodString;
3248
- }, z.core.$strict>, z.ZodObject<{
3243
+ }, z.core.$strip>, z.ZodObject<{
3249
3244
  kind: z.ZodLiteral<"once">;
3250
3245
  }, z.core.$strict>, z.ZodObject<{
3251
3246
  kind: z.ZodLiteral<"keyed">;
@@ -3724,15 +3719,6 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
3724
3719
  requires: z.ZodDefault<z.ZodArray<z.ZodObject<{
3725
3720
  quest: z.ZodString;
3726
3721
  }, z.core.$strip>>>;
3727
- completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
3728
- kind: z.ZodLiteral<"streak">;
3729
- days: z.ZodNumber;
3730
- timeZone: z.ZodString;
3731
- }, z.core.$strict>, z.ZodObject<{
3732
- kind: z.ZodLiteral<"once">;
3733
- }, z.core.$strict>, z.ZodObject<{
3734
- kind: z.ZodLiteral<"keyed">;
3735
- }, z.core.$strict>], "kind">;
3736
3722
  visibility: z.ZodDefault<z.ZodEnum<{
3737
3723
  visible: "visible";
3738
3724
  hidden: "hidden";
@@ -3747,15 +3733,24 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
3747
3733
  project: "project";
3748
3734
  }>;
3749
3735
  period: z.ZodEnum<{
3750
- day: "day";
3751
3736
  lifetime: "lifetime";
3737
+ day: "day";
3752
3738
  week: "week";
3739
+ month: "month";
3753
3740
  }>;
3754
3741
  limit: z.ZodNumber;
3755
3742
  cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
3756
3743
  balance: z.ZodString;
3757
3744
  }, z.core.$strict>]>;
3758
3745
  }, z.core.$strict>>>;
3746
+ completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
3747
+ kind: z.ZodLiteral<"streak">;
3748
+ days: z.ZodNumber;
3749
+ }, z.core.$strip>, z.ZodObject<{
3750
+ kind: z.ZodLiteral<"once">;
3751
+ }, z.core.$strict>, z.ZodObject<{
3752
+ kind: z.ZodLiteral<"keyed">;
3753
+ }, z.core.$strict>], "kind">;
3759
3754
  key: z.ZodOptional<z.ZodString>;
3760
3755
  code: z.ZodString;
3761
3756
  provider: z.ZodEnum<{
@@ -4050,25 +4045,24 @@ declare const questPublicationPreviewSchema: z.ZodObject<{
4050
4045
  requires: {
4051
4046
  quest: string;
4052
4047
  }[];
4053
- completion: {
4054
- kind: "streak";
4055
- days: number;
4056
- timeZone: string;
4057
- } | {
4058
- kind: "once";
4059
- } | {
4060
- kind: "keyed";
4061
- };
4062
4048
  visibility: "visible" | "hidden";
4063
4049
  budgets: {
4064
4050
  id: string;
4065
4051
  scope: "member" | "project";
4066
- period: "day" | "lifetime" | "week";
4052
+ period: "lifetime" | "day" | "week" | "month";
4067
4053
  limit: number;
4068
4054
  cost: number | {
4069
4055
  balance: string;
4070
4056
  };
4071
4057
  }[];
4058
+ completion: {
4059
+ kind: "streak";
4060
+ days: number;
4061
+ } | {
4062
+ kind: "once";
4063
+ } | {
4064
+ kind: "keyed";
4065
+ };
4072
4066
  code: string;
4073
4067
  provider: "workers-ai" | "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error";
4074
4068
  id: string;