@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,5 +1,76 @@
1
- import { T as TrackerDataSchema } from './trackers-BsUh5Ky0.js';
2
1
  import { z } from 'zod';
2
+ import { i as TrackerDataSchema } from './trackers-W7nRdRr7.js';
3
+
4
+ /**
5
+ * The canonical name of a named IANA timezone, or null for an unknown name or a fixed offset.
6
+ * Aliases resolve to their canonical zone (`US/Eastern` and `us/eastern` to `America/New_York`),
7
+ * and every spelling of UTC (`Etc/UTC`, `GMT`, `UCT`, `Zulu`, `Etc/GMT+0`) to `UTC`, so choosing
8
+ * another spelling of the zone in effect is not a change.
9
+ */
10
+ declare function canonicalTimeZone(zone: string): string | null;
11
+ /**
12
+ * A named IANA timezone, such as `Europe/Budapest` or `UTC`, parsed to its canonical name.
13
+ * Fixed offsets (`+02:00`, `Etc/GMT-2`, `EST`) are rejected: a named zone keeps its
14
+ * daylight-saving rules, so its midnights stay local midnights all year.
15
+ */
16
+ declare const timeZoneSchema: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
17
+ /**
18
+ * A timezone name as Relay returns or stores it. Responses keep the server's name unchanged and
19
+ * never re-validate it: a client whose timezone data lacks a newer zone, or names it differently,
20
+ * still reads the response. Relay validates zones with `timeZoneSchema` when they are written.
21
+ */
22
+ declare const timeZoneNameSchema: z.ZodString;
23
+ /**
24
+ * Refuse the `timeZone` an authored streak used to carry. Stored releases read through the lenient
25
+ * schema, which drops it; authored ones must not lose it silently.
26
+ */
27
+ declare function refuseStreakTimeZone(value: unknown, ctx: z.RefinementCtx): unknown;
28
+ /** Refuse the `timeZone` an authored calendar leaderboard window used to carry. */
29
+ declare function refuseWindowTimeZone(value: unknown, ctx: z.RefinementCtx): unknown;
30
+ /**
31
+ * A period of the project calendar. `day`, `week` (ISO weeks, starting on Monday) and `month`
32
+ * follow the project's timezone; `lifetime` never resets. Budgets, engagement budgets and
33
+ * calendar leaderboard windows share it, so a weekly budget and a weekly leaderboard in one
34
+ * project cover the same week.
35
+ */
36
+ declare const calendarPeriodSchema: z.ZodEnum<{
37
+ lifetime: "lifetime";
38
+ day: "day";
39
+ week: "week";
40
+ month: "month";
41
+ }>;
42
+ type CalendarPeriod = z.infer<typeof calendarPeriodSchema>;
43
+ /**
44
+ * The project calendar in one environment. Its timezone sets where every day, week and month
45
+ * begins. A change waits for the current day to end in the old timezone: `pending` holds it until
46
+ * `effectiveAt`.
47
+ */
48
+ declare const projectCalendarSchema: z.ZodObject<{
49
+ timeZone: z.ZodString;
50
+ today: z.ZodString;
51
+ nextBoundary: z.ZodNumber;
52
+ pending: z.ZodNullable<z.ZodObject<{
53
+ timeZone: z.ZodString;
54
+ effectiveAt: z.ZodNumber;
55
+ }, z.core.$strip>>;
56
+ declared: z.ZodNullable<z.ZodString>;
57
+ unsupported: z.ZodDefault<z.ZodNullable<z.ZodString>>;
58
+ }, z.core.$strip>;
59
+ type ProjectCalendar = z.infer<typeof projectCalendarSchema>;
60
+ /**
61
+ * Change the project timezone. The change takes effect when the current day ends; choosing the
62
+ * timezone in effect cancels a pending change.
63
+ */
64
+ declare const projectCalendarInputSchema: z.ZodObject<{
65
+ actionId: z.ZodString;
66
+ timeZone: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
67
+ reason: z.ZodString;
68
+ }, z.core.$strict>;
69
+ type ProjectCalendarInput = z.input<typeof projectCalendarInputSchema>;
70
+ /** `calendar` in relay.json and in a project deployment. */
71
+ declare const projectCalendarDeclarationSchema: z.ZodObject<{
72
+ timeZone: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
73
+ }, z.core.$strict>;
3
74
 
4
75
  /** Non-quest resources in the private hosted-build catalog artifact. */
5
76
  declare const projectCatalogArtifactSchema: z.ZodObject<{
@@ -363,7 +434,11 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
363
434
  balance: z.ZodString;
364
435
  title: z.ZodString;
365
436
  group: z.ZodOptional<z.ZodString>;
366
- score: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
437
+ access: z.ZodDefault<z.ZodEnum<{
438
+ participants: "participants";
439
+ public: "public";
440
+ }>>;
441
+ score: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
367
442
  kind: z.ZodLiteral<"balance">;
368
443
  }, z.core.$strict>, z.ZodObject<{
369
444
  window: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -382,8 +457,7 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
382
457
  week: "week";
383
458
  month: "month";
384
459
  }>;
385
- timeZone: z.ZodString;
386
- }, z.core.$strict>], "kind">>;
460
+ }, z.core.$strip>], "kind">>;
387
461
  quests: z.ZodOptional<z.ZodArray<z.ZodString>>;
388
462
  kind: z.ZodLiteral<"earned">;
389
463
  }, z.core.$strict>, z.ZodObject<{
@@ -404,18 +478,14 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
404
478
  week: "week";
405
479
  month: "month";
406
480
  }>;
407
- timeZone: z.ZodString;
408
- }, z.core.$strict>], "kind">>;
409
- }, z.core.$strict>], "kind">>;
410
- access: z.ZodDefault<z.ZodEnum<{
411
- participants: "participants";
412
- public: "public";
413
- }>>;
481
+ }, z.core.$strip>], "kind">>;
482
+ }, z.core.$strict>], "kind">>>;
414
483
  key: z.ZodOptional<z.ZodString>;
415
484
  id: z.ZodOptional<z.ZodString>;
416
485
  }, z.core.$strict>, z.ZodTransform<Omit<{
417
486
  balance: string;
418
487
  title: string;
488
+ access: "participants" | "public";
419
489
  score: {
420
490
  kind: "balance";
421
491
  } | {
@@ -431,7 +501,6 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
431
501
  } | {
432
502
  kind: "calendar";
433
503
  period: "day" | "week" | "month";
434
- timeZone: string;
435
504
  };
436
505
  kind: "earned";
437
506
  quests?: string[] | undefined;
@@ -449,10 +518,8 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
449
518
  } | {
450
519
  kind: "calendar";
451
520
  period: "day" | "week" | "month";
452
- timeZone: string;
453
521
  };
454
522
  };
455
- access: "participants" | "public";
456
523
  group?: string | undefined;
457
524
  key?: string | undefined;
458
525
  id?: string | undefined;
@@ -461,6 +528,7 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
461
528
  }, {
462
529
  balance: string;
463
530
  title: string;
531
+ access: "participants" | "public";
464
532
  score: {
465
533
  kind: "balance";
466
534
  } | {
@@ -476,7 +544,6 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
476
544
  } | {
477
545
  kind: "calendar";
478
546
  period: "day" | "week" | "month";
479
- timeZone: string;
480
547
  };
481
548
  kind: "earned";
482
549
  quests?: string[] | undefined;
@@ -494,10 +561,8 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
494
561
  } | {
495
562
  kind: "calendar";
496
563
  period: "day" | "week" | "month";
497
- timeZone: string;
498
564
  };
499
565
  };
500
- access: "participants" | "public";
501
566
  group?: string | undefined;
502
567
  key?: string | undefined;
503
568
  id?: string | undefined;
@@ -510,6 +575,9 @@ declare const projectCatalogArtifactSchema: z.ZodObject<{
510
575
  size: z.ZodNumber;
511
576
  path: z.ZodOptional<z.ZodString>;
512
577
  }, z.core.$strict>>>;
578
+ calendar: z.ZodOptional<z.ZodObject<{
579
+ timeZone: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
580
+ }, z.core.$strict>>;
513
581
  }, z.core.$strict>;
514
582
  /** One manifest bundle. Missing entries never delete remotely owned resources. */
515
583
  declare const projectDeploymentSchema: z.ZodObject<{
@@ -873,7 +941,11 @@ declare const projectDeploymentSchema: z.ZodObject<{
873
941
  balance: z.ZodString;
874
942
  title: z.ZodString;
875
943
  group: z.ZodOptional<z.ZodString>;
876
- score: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
944
+ access: z.ZodDefault<z.ZodEnum<{
945
+ participants: "participants";
946
+ public: "public";
947
+ }>>;
948
+ score: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
877
949
  kind: z.ZodLiteral<"balance">;
878
950
  }, z.core.$strict>, z.ZodObject<{
879
951
  window: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -892,8 +964,7 @@ declare const projectDeploymentSchema: z.ZodObject<{
892
964
  week: "week";
893
965
  month: "month";
894
966
  }>;
895
- timeZone: z.ZodString;
896
- }, z.core.$strict>], "kind">>;
967
+ }, z.core.$strip>], "kind">>;
897
968
  quests: z.ZodOptional<z.ZodArray<z.ZodString>>;
898
969
  kind: z.ZodLiteral<"earned">;
899
970
  }, z.core.$strict>, z.ZodObject<{
@@ -914,18 +985,14 @@ declare const projectDeploymentSchema: z.ZodObject<{
914
985
  week: "week";
915
986
  month: "month";
916
987
  }>;
917
- timeZone: z.ZodString;
918
- }, z.core.$strict>], "kind">>;
919
- }, z.core.$strict>], "kind">>;
920
- access: z.ZodDefault<z.ZodEnum<{
921
- participants: "participants";
922
- public: "public";
923
- }>>;
988
+ }, z.core.$strip>], "kind">>;
989
+ }, z.core.$strict>], "kind">>>;
924
990
  key: z.ZodOptional<z.ZodString>;
925
991
  id: z.ZodOptional<z.ZodString>;
926
992
  }, z.core.$strict>, z.ZodTransform<Omit<{
927
993
  balance: string;
928
994
  title: string;
995
+ access: "participants" | "public";
929
996
  score: {
930
997
  kind: "balance";
931
998
  } | {
@@ -941,7 +1008,6 @@ declare const projectDeploymentSchema: z.ZodObject<{
941
1008
  } | {
942
1009
  kind: "calendar";
943
1010
  period: "day" | "week" | "month";
944
- timeZone: string;
945
1011
  };
946
1012
  kind: "earned";
947
1013
  quests?: string[] | undefined;
@@ -959,10 +1025,8 @@ declare const projectDeploymentSchema: z.ZodObject<{
959
1025
  } | {
960
1026
  kind: "calendar";
961
1027
  period: "day" | "week" | "month";
962
- timeZone: string;
963
1028
  };
964
1029
  };
965
- access: "participants" | "public";
966
1030
  group?: string | undefined;
967
1031
  key?: string | undefined;
968
1032
  id?: string | undefined;
@@ -971,6 +1035,7 @@ declare const projectDeploymentSchema: z.ZodObject<{
971
1035
  }, {
972
1036
  balance: string;
973
1037
  title: string;
1038
+ access: "participants" | "public";
974
1039
  score: {
975
1040
  kind: "balance";
976
1041
  } | {
@@ -986,7 +1051,6 @@ declare const projectDeploymentSchema: z.ZodObject<{
986
1051
  } | {
987
1052
  kind: "calendar";
988
1053
  period: "day" | "week" | "month";
989
- timeZone: string;
990
1054
  };
991
1055
  kind: "earned";
992
1056
  quests?: string[] | undefined;
@@ -1004,10 +1068,8 @@ declare const projectDeploymentSchema: z.ZodObject<{
1004
1068
  } | {
1005
1069
  kind: "calendar";
1006
1070
  period: "day" | "week" | "month";
1007
- timeZone: string;
1008
1071
  };
1009
1072
  };
1010
- access: "participants" | "public";
1011
1073
  group?: string | undefined;
1012
1074
  key?: string | undefined;
1013
1075
  id?: string | undefined;
@@ -1020,6 +1082,9 @@ declare const projectDeploymentSchema: z.ZodObject<{
1020
1082
  size: z.ZodNumber;
1021
1083
  path: z.ZodOptional<z.ZodString>;
1022
1084
  }, z.core.$strict>>>;
1085
+ calendar: z.ZodOptional<z.ZodObject<{
1086
+ timeZone: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
1087
+ }, z.core.$strict>>;
1023
1088
  releases: z.ZodDefault<z.ZodArray<z.ZodObject<{
1024
1089
  code: z.ZodString;
1025
1090
  settings: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodObject<{
@@ -1058,11 +1123,19 @@ declare const deploymentPreviewSchema: z.ZodObject<{
1058
1123
  }>>;
1059
1124
  baseline: z.ZodLiteral<"historical">;
1060
1125
  maxAgeMs: z.ZodDefault<z.ZodNumber>;
1061
- budget: z.ZodDefault<z.ZodObject<{
1062
- projectDaily: z.ZodOptional<z.ZodNumber>;
1063
- memberDaily: z.ZodOptional<z.ZodNumber>;
1064
- projectLifetime: z.ZodOptional<z.ZodNumber>;
1065
- }, z.core.$strict>>;
1126
+ budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
1127
+ scope: z.ZodEnum<{
1128
+ member: "member";
1129
+ project: "project";
1130
+ }>;
1131
+ period: z.ZodEnum<{
1132
+ lifetime: "lifetime";
1133
+ day: "day";
1134
+ week: "week";
1135
+ month: "month";
1136
+ }>;
1137
+ limit: z.ZodNumber;
1138
+ }, z.core.$strict>>>;
1066
1139
  }, z.core.$strict>;
1067
1140
  publishedAt: z.ZodNumber;
1068
1141
  }, z.core.$strict>;
@@ -1085,11 +1158,19 @@ declare const deploymentPreviewSchema: z.ZodObject<{
1085
1158
  }>>;
1086
1159
  baseline: z.ZodLiteral<"historical">;
1087
1160
  maxAgeMs: z.ZodDefault<z.ZodNumber>;
1088
- budget: z.ZodDefault<z.ZodObject<{
1089
- projectDaily: z.ZodOptional<z.ZodNumber>;
1090
- memberDaily: z.ZodOptional<z.ZodNumber>;
1091
- projectLifetime: z.ZodOptional<z.ZodNumber>;
1092
- }, z.core.$strict>>;
1161
+ budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
1162
+ scope: z.ZodEnum<{
1163
+ member: "member";
1164
+ project: "project";
1165
+ }>;
1166
+ period: z.ZodEnum<{
1167
+ lifetime: "lifetime";
1168
+ day: "day";
1169
+ week: "week";
1170
+ month: "month";
1171
+ }>;
1172
+ limit: z.ZodNumber;
1173
+ }, z.core.$strict>>>;
1093
1174
  }, z.core.$strict>;
1094
1175
  publishedAt: z.ZodNumber;
1095
1176
  }, z.core.$strict>;
@@ -1112,11 +1193,19 @@ declare const deploymentPreviewSchema: z.ZodObject<{
1112
1193
  }>>;
1113
1194
  baseline: z.ZodLiteral<"historical">;
1114
1195
  maxAgeMs: z.ZodDefault<z.ZodNumber>;
1115
- budget: z.ZodDefault<z.ZodObject<{
1116
- projectDaily: z.ZodOptional<z.ZodNumber>;
1117
- memberDaily: z.ZodOptional<z.ZodNumber>;
1118
- projectLifetime: z.ZodOptional<z.ZodNumber>;
1119
- }, z.core.$strict>>;
1196
+ budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
1197
+ scope: z.ZodEnum<{
1198
+ member: "member";
1199
+ project: "project";
1200
+ }>;
1201
+ period: z.ZodEnum<{
1202
+ lifetime: "lifetime";
1203
+ day: "day";
1204
+ week: "week";
1205
+ month: "month";
1206
+ }>;
1207
+ limit: z.ZodNumber;
1208
+ }, z.core.$strict>>>;
1120
1209
  }, z.core.$strict>;
1121
1210
  publishedAt: z.ZodNumber;
1122
1211
  }, z.core.$strict>;
@@ -1140,11 +1229,19 @@ declare const deploymentPreviewSchema: z.ZodObject<{
1140
1229
  }>>;
1141
1230
  baseline: z.ZodLiteral<"historical">;
1142
1231
  maxAgeMs: z.ZodDefault<z.ZodNumber>;
1143
- budget: z.ZodDefault<z.ZodObject<{
1144
- projectDaily: z.ZodOptional<z.ZodNumber>;
1145
- memberDaily: z.ZodOptional<z.ZodNumber>;
1146
- projectLifetime: z.ZodOptional<z.ZodNumber>;
1147
- }, z.core.$strict>>;
1232
+ budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
1233
+ scope: z.ZodEnum<{
1234
+ member: "member";
1235
+ project: "project";
1236
+ }>;
1237
+ period: z.ZodEnum<{
1238
+ lifetime: "lifetime";
1239
+ day: "day";
1240
+ week: "week";
1241
+ month: "month";
1242
+ }>;
1243
+ limit: z.ZodNumber;
1244
+ }, z.core.$strict>>>;
1148
1245
  }, z.core.$strict>;
1149
1246
  boundary: z.ZodLiteral<"available-eligible-observation">;
1150
1247
  settlement: z.ZodLiteral<"deferred">;
@@ -1455,15 +1552,6 @@ declare const deploymentPreviewSchema: z.ZodObject<{
1455
1552
  requires: z.ZodDefault<z.ZodArray<z.ZodObject<{
1456
1553
  quest: z.ZodString;
1457
1554
  }, z.core.$strip>>>;
1458
- completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
1459
- kind: z.ZodLiteral<"streak">;
1460
- days: z.ZodNumber;
1461
- timeZone: z.ZodString;
1462
- }, z.core.$strict>, z.ZodObject<{
1463
- kind: z.ZodLiteral<"once">;
1464
- }, z.core.$strict>, z.ZodObject<{
1465
- kind: z.ZodLiteral<"keyed">;
1466
- }, z.core.$strict>], "kind">;
1467
1555
  visibility: z.ZodDefault<z.ZodEnum<{
1468
1556
  visible: "visible";
1469
1557
  hidden: "hidden";
@@ -1481,12 +1569,21 @@ declare const deploymentPreviewSchema: z.ZodObject<{
1481
1569
  lifetime: "lifetime";
1482
1570
  day: "day";
1483
1571
  week: "week";
1572
+ month: "month";
1484
1573
  }>;
1485
1574
  limit: z.ZodNumber;
1486
1575
  cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
1487
1576
  balance: z.ZodString;
1488
1577
  }, z.core.$strict>]>;
1489
1578
  }, z.core.$strict>>>;
1579
+ completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
1580
+ kind: z.ZodLiteral<"streak">;
1581
+ days: z.ZodNumber;
1582
+ }, z.core.$strip>, z.ZodObject<{
1583
+ kind: z.ZodLiteral<"once">;
1584
+ }, z.core.$strict>, z.ZodObject<{
1585
+ kind: z.ZodLiteral<"keyed">;
1586
+ }, z.core.$strict>], "kind">;
1490
1587
  key: z.ZodOptional<z.ZodString>;
1491
1588
  code: z.ZodString;
1492
1589
  provider: z.ZodEnum<{
@@ -1781,25 +1878,24 @@ declare const deploymentPreviewSchema: z.ZodObject<{
1781
1878
  requires: {
1782
1879
  quest: string;
1783
1880
  }[];
1784
- completion: {
1785
- kind: "streak";
1786
- days: number;
1787
- timeZone: string;
1788
- } | {
1789
- kind: "once";
1790
- } | {
1791
- kind: "keyed";
1792
- };
1793
1881
  visibility: "visible" | "hidden";
1794
1882
  budgets: {
1795
1883
  id: string;
1796
1884
  scope: "member" | "project";
1797
- period: "lifetime" | "day" | "week";
1885
+ period: "lifetime" | "day" | "week" | "month";
1798
1886
  limit: number;
1799
1887
  cost: number | {
1800
1888
  balance: string;
1801
1889
  };
1802
1890
  }[];
1891
+ completion: {
1892
+ kind: "streak";
1893
+ days: number;
1894
+ } | {
1895
+ kind: "once";
1896
+ } | {
1897
+ kind: "keyed";
1898
+ };
1803
1899
  code: string;
1804
1900
  provider: "workers-ai" | "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error";
1805
1901
  id: string;
@@ -2137,15 +2233,6 @@ declare const deploymentPreviewSchema: z.ZodObject<{
2137
2233
  requires: z.ZodDefault<z.ZodArray<z.ZodObject<{
2138
2234
  quest: z.ZodString;
2139
2235
  }, z.core.$strip>>>;
2140
- completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
2141
- kind: z.ZodLiteral<"streak">;
2142
- days: z.ZodNumber;
2143
- timeZone: z.ZodString;
2144
- }, z.core.$strict>, z.ZodObject<{
2145
- kind: z.ZodLiteral<"once">;
2146
- }, z.core.$strict>, z.ZodObject<{
2147
- kind: z.ZodLiteral<"keyed">;
2148
- }, z.core.$strict>], "kind">;
2149
2236
  visibility: z.ZodDefault<z.ZodEnum<{
2150
2237
  visible: "visible";
2151
2238
  hidden: "hidden";
@@ -2163,12 +2250,21 @@ declare const deploymentPreviewSchema: z.ZodObject<{
2163
2250
  lifetime: "lifetime";
2164
2251
  day: "day";
2165
2252
  week: "week";
2253
+ month: "month";
2166
2254
  }>;
2167
2255
  limit: z.ZodNumber;
2168
2256
  cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
2169
2257
  balance: z.ZodString;
2170
2258
  }, z.core.$strict>]>;
2171
2259
  }, z.core.$strict>>>;
2260
+ completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
2261
+ kind: z.ZodLiteral<"streak">;
2262
+ days: z.ZodNumber;
2263
+ }, z.core.$strip>, z.ZodObject<{
2264
+ kind: z.ZodLiteral<"once">;
2265
+ }, z.core.$strict>, z.ZodObject<{
2266
+ kind: z.ZodLiteral<"keyed">;
2267
+ }, z.core.$strict>], "kind">;
2172
2268
  }, z.core.$strict>;
2173
2269
  provider: z.ZodEnum<{
2174
2270
  "workers-ai": "workers-ai";
@@ -2322,8 +2418,7 @@ declare const deploymentPreviewSchema: z.ZodObject<{
2322
2418
  week: "week";
2323
2419
  month: "month";
2324
2420
  }>;
2325
- timeZone: z.ZodString;
2326
- }, z.core.$strict>], "kind">>;
2421
+ }, z.core.$strip>], "kind">>;
2327
2422
  quests: z.ZodOptional<z.ZodArray<z.ZodString>>;
2328
2423
  kind: z.ZodLiteral<"earned">;
2329
2424
  }, z.core.$strict>, z.ZodObject<{
@@ -2344,8 +2439,7 @@ declare const deploymentPreviewSchema: z.ZodObject<{
2344
2439
  week: "week";
2345
2440
  month: "month";
2346
2441
  }>;
2347
- timeZone: z.ZodString;
2348
- }, z.core.$strict>], "kind">>;
2442
+ }, z.core.$strip>], "kind">>;
2349
2443
  }, z.core.$strict>], "kind">>;
2350
2444
  access: z.ZodDefault<z.ZodEnum<{
2351
2445
  participants: "participants";
@@ -2573,6 +2667,10 @@ declare const deploymentPreviewSchema: z.ZodObject<{
2573
2667
  width: z.ZodNumber;
2574
2668
  height: z.ZodNumber;
2575
2669
  }, z.core.$strict>>>;
2670
+ calendar: z.ZodDefault<z.ZodNullable<z.ZodObject<{
2671
+ timeZone: z.ZodString;
2672
+ effectiveAt: z.ZodNullable<z.ZodNumber>;
2673
+ }, z.core.$strip>>>;
2576
2674
  }, z.core.$strip>;
2577
2675
  declare const publishDeploymentSchema: z.ZodObject<{
2578
2676
  id: z.ZodString;
@@ -2597,11 +2695,19 @@ declare const deploymentResultSchema: z.ZodObject<{
2597
2695
  }>>;
2598
2696
  baseline: z.ZodLiteral<"historical">;
2599
2697
  maxAgeMs: z.ZodDefault<z.ZodNumber>;
2600
- budget: z.ZodDefault<z.ZodObject<{
2601
- projectDaily: z.ZodOptional<z.ZodNumber>;
2602
- memberDaily: z.ZodOptional<z.ZodNumber>;
2603
- projectLifetime: z.ZodOptional<z.ZodNumber>;
2604
- }, z.core.$strict>>;
2698
+ budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
2699
+ scope: z.ZodEnum<{
2700
+ member: "member";
2701
+ project: "project";
2702
+ }>;
2703
+ period: z.ZodEnum<{
2704
+ lifetime: "lifetime";
2705
+ day: "day";
2706
+ week: "week";
2707
+ month: "month";
2708
+ }>;
2709
+ limit: z.ZodNumber;
2710
+ }, z.core.$strict>>>;
2605
2711
  }, z.core.$strict>;
2606
2712
  publishedAt: z.ZodNumber;
2607
2713
  }, z.core.$strict>;
@@ -2624,11 +2730,19 @@ declare const deploymentResultSchema: z.ZodObject<{
2624
2730
  }>>;
2625
2731
  baseline: z.ZodLiteral<"historical">;
2626
2732
  maxAgeMs: z.ZodDefault<z.ZodNumber>;
2627
- budget: z.ZodDefault<z.ZodObject<{
2628
- projectDaily: z.ZodOptional<z.ZodNumber>;
2629
- memberDaily: z.ZodOptional<z.ZodNumber>;
2630
- projectLifetime: z.ZodOptional<z.ZodNumber>;
2631
- }, z.core.$strict>>;
2733
+ budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
2734
+ scope: z.ZodEnum<{
2735
+ member: "member";
2736
+ project: "project";
2737
+ }>;
2738
+ period: z.ZodEnum<{
2739
+ lifetime: "lifetime";
2740
+ day: "day";
2741
+ week: "week";
2742
+ month: "month";
2743
+ }>;
2744
+ limit: z.ZodNumber;
2745
+ }, z.core.$strict>>>;
2632
2746
  }, z.core.$strict>;
2633
2747
  publishedAt: z.ZodNumber;
2634
2748
  }, z.core.$strict>;
@@ -2651,11 +2765,19 @@ declare const deploymentResultSchema: z.ZodObject<{
2651
2765
  }>>;
2652
2766
  baseline: z.ZodLiteral<"historical">;
2653
2767
  maxAgeMs: z.ZodDefault<z.ZodNumber>;
2654
- budget: z.ZodDefault<z.ZodObject<{
2655
- projectDaily: z.ZodOptional<z.ZodNumber>;
2656
- memberDaily: z.ZodOptional<z.ZodNumber>;
2657
- projectLifetime: z.ZodOptional<z.ZodNumber>;
2658
- }, z.core.$strict>>;
2768
+ budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
2769
+ scope: z.ZodEnum<{
2770
+ member: "member";
2771
+ project: "project";
2772
+ }>;
2773
+ period: z.ZodEnum<{
2774
+ lifetime: "lifetime";
2775
+ day: "day";
2776
+ week: "week";
2777
+ month: "month";
2778
+ }>;
2779
+ limit: z.ZodNumber;
2780
+ }, z.core.$strict>>>;
2659
2781
  }, z.core.$strict>;
2660
2782
  publishedAt: z.ZodNumber;
2661
2783
  }, z.core.$strict>;
@@ -2679,11 +2801,19 @@ declare const deploymentResultSchema: z.ZodObject<{
2679
2801
  }>>;
2680
2802
  baseline: z.ZodLiteral<"historical">;
2681
2803
  maxAgeMs: z.ZodDefault<z.ZodNumber>;
2682
- budget: z.ZodDefault<z.ZodObject<{
2683
- projectDaily: z.ZodOptional<z.ZodNumber>;
2684
- memberDaily: z.ZodOptional<z.ZodNumber>;
2685
- projectLifetime: z.ZodOptional<z.ZodNumber>;
2686
- }, z.core.$strict>>;
2804
+ budgets: z.ZodDefault<z.ZodArray<z.ZodObject<{
2805
+ scope: z.ZodEnum<{
2806
+ member: "member";
2807
+ project: "project";
2808
+ }>;
2809
+ period: z.ZodEnum<{
2810
+ lifetime: "lifetime";
2811
+ day: "day";
2812
+ week: "week";
2813
+ month: "month";
2814
+ }>;
2815
+ limit: z.ZodNumber;
2816
+ }, z.core.$strict>>>;
2687
2817
  }, z.core.$strict>;
2688
2818
  boundary: z.ZodLiteral<"available-eligible-observation">;
2689
2819
  settlement: z.ZodLiteral<"deferred">;
@@ -2994,15 +3124,6 @@ declare const deploymentResultSchema: z.ZodObject<{
2994
3124
  requires: z.ZodDefault<z.ZodArray<z.ZodObject<{
2995
3125
  quest: z.ZodString;
2996
3126
  }, z.core.$strip>>>;
2997
- completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
2998
- kind: z.ZodLiteral<"streak">;
2999
- days: z.ZodNumber;
3000
- timeZone: z.ZodString;
3001
- }, z.core.$strict>, z.ZodObject<{
3002
- kind: z.ZodLiteral<"once">;
3003
- }, z.core.$strict>, z.ZodObject<{
3004
- kind: z.ZodLiteral<"keyed">;
3005
- }, z.core.$strict>], "kind">;
3006
3127
  visibility: z.ZodDefault<z.ZodEnum<{
3007
3128
  visible: "visible";
3008
3129
  hidden: "hidden";
@@ -3020,12 +3141,21 @@ declare const deploymentResultSchema: z.ZodObject<{
3020
3141
  lifetime: "lifetime";
3021
3142
  day: "day";
3022
3143
  week: "week";
3144
+ month: "month";
3023
3145
  }>;
3024
3146
  limit: z.ZodNumber;
3025
3147
  cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
3026
3148
  balance: z.ZodString;
3027
3149
  }, z.core.$strict>]>;
3028
3150
  }, z.core.$strict>>>;
3151
+ completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
3152
+ kind: z.ZodLiteral<"streak">;
3153
+ days: z.ZodNumber;
3154
+ }, z.core.$strip>, z.ZodObject<{
3155
+ kind: z.ZodLiteral<"once">;
3156
+ }, z.core.$strict>, z.ZodObject<{
3157
+ kind: z.ZodLiteral<"keyed">;
3158
+ }, z.core.$strict>], "kind">;
3029
3159
  key: z.ZodOptional<z.ZodString>;
3030
3160
  code: z.ZodString;
3031
3161
  provider: z.ZodEnum<{
@@ -3320,25 +3450,24 @@ declare const deploymentResultSchema: z.ZodObject<{
3320
3450
  requires: {
3321
3451
  quest: string;
3322
3452
  }[];
3323
- completion: {
3324
- kind: "streak";
3325
- days: number;
3326
- timeZone: string;
3327
- } | {
3328
- kind: "once";
3329
- } | {
3330
- kind: "keyed";
3331
- };
3332
3453
  visibility: "visible" | "hidden";
3333
3454
  budgets: {
3334
3455
  id: string;
3335
3456
  scope: "member" | "project";
3336
- period: "lifetime" | "day" | "week";
3457
+ period: "lifetime" | "day" | "week" | "month";
3337
3458
  limit: number;
3338
3459
  cost: number | {
3339
3460
  balance: string;
3340
3461
  };
3341
3462
  }[];
3463
+ completion: {
3464
+ kind: "streak";
3465
+ days: number;
3466
+ } | {
3467
+ kind: "once";
3468
+ } | {
3469
+ kind: "keyed";
3470
+ };
3342
3471
  code: string;
3343
3472
  provider: "workers-ai" | "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error";
3344
3473
  id: string;
@@ -3676,15 +3805,6 @@ declare const deploymentResultSchema: z.ZodObject<{
3676
3805
  requires: z.ZodDefault<z.ZodArray<z.ZodObject<{
3677
3806
  quest: z.ZodString;
3678
3807
  }, z.core.$strip>>>;
3679
- completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
3680
- kind: z.ZodLiteral<"streak">;
3681
- days: z.ZodNumber;
3682
- timeZone: z.ZodString;
3683
- }, z.core.$strict>, z.ZodObject<{
3684
- kind: z.ZodLiteral<"once">;
3685
- }, z.core.$strict>, z.ZodObject<{
3686
- kind: z.ZodLiteral<"keyed">;
3687
- }, z.core.$strict>], "kind">;
3688
3808
  visibility: z.ZodDefault<z.ZodEnum<{
3689
3809
  visible: "visible";
3690
3810
  hidden: "hidden";
@@ -3702,12 +3822,21 @@ declare const deploymentResultSchema: z.ZodObject<{
3702
3822
  lifetime: "lifetime";
3703
3823
  day: "day";
3704
3824
  week: "week";
3825
+ month: "month";
3705
3826
  }>;
3706
3827
  limit: z.ZodNumber;
3707
3828
  cost: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
3708
3829
  balance: z.ZodString;
3709
3830
  }, z.core.$strict>]>;
3710
3831
  }, z.core.$strict>>>;
3832
+ completion: z.ZodDiscriminatedUnion<[z.ZodObject<{
3833
+ kind: z.ZodLiteral<"streak">;
3834
+ days: z.ZodNumber;
3835
+ }, z.core.$strip>, z.ZodObject<{
3836
+ kind: z.ZodLiteral<"once">;
3837
+ }, z.core.$strict>, z.ZodObject<{
3838
+ kind: z.ZodLiteral<"keyed">;
3839
+ }, z.core.$strict>], "kind">;
3711
3840
  }, z.core.$strict>;
3712
3841
  provider: z.ZodEnum<{
3713
3842
  "workers-ai": "workers-ai";
@@ -3861,8 +3990,7 @@ declare const deploymentResultSchema: z.ZodObject<{
3861
3990
  week: "week";
3862
3991
  month: "month";
3863
3992
  }>;
3864
- timeZone: z.ZodString;
3865
- }, z.core.$strict>], "kind">>;
3993
+ }, z.core.$strip>], "kind">>;
3866
3994
  quests: z.ZodOptional<z.ZodArray<z.ZodString>>;
3867
3995
  kind: z.ZodLiteral<"earned">;
3868
3996
  }, z.core.$strict>, z.ZodObject<{
@@ -3883,8 +4011,7 @@ declare const deploymentResultSchema: z.ZodObject<{
3883
4011
  week: "week";
3884
4012
  month: "month";
3885
4013
  }>;
3886
- timeZone: z.ZodString;
3887
- }, z.core.$strict>], "kind">>;
4014
+ }, z.core.$strip>], "kind">>;
3888
4015
  }, z.core.$strict>], "kind">>;
3889
4016
  access: z.ZodDefault<z.ZodEnum<{
3890
4017
  participants: "participants";
@@ -4112,8 +4239,12 @@ declare const deploymentResultSchema: z.ZodObject<{
4112
4239
  width: z.ZodNumber;
4113
4240
  height: z.ZodNumber;
4114
4241
  }, z.core.$strict>>>;
4242
+ calendar: z.ZodDefault<z.ZodNullable<z.ZodObject<{
4243
+ timeZone: z.ZodString;
4244
+ effectiveAt: z.ZodNullable<z.ZodNumber>;
4245
+ }, z.core.$strip>>>;
4115
4246
  revision: z.ZodNumber;
4116
4247
  }, z.core.$strip>;
4117
4248
  type DeploymentPreview = z.infer<typeof deploymentPreviewSchema>;
4118
4249
 
4119
- export { type DeploymentPreview as D, deploymentResultSchema as a, projectDeploymentSchema as b, publishDeploymentSchema as c, deploymentPreviewSchema as d, projectCatalogArtifactSchema as p };
4250
+ export { type CalendarPeriod as C, type DeploymentPreview as D, type ProjectCalendar as P, type ProjectCalendarInput as a, canonicalTimeZone as b, calendarPeriodSchema as c, deploymentPreviewSchema as d, deploymentResultSchema as e, projectCalendarInputSchema as f, projectCalendarSchema as g, projectCatalogArtifactSchema as h, projectDeploymentSchema as i, publishDeploymentSchema as j, refuseWindowTimeZone as k, timeZoneSchema as l, projectCalendarDeclarationSchema as p, refuseStreakTimeZone as r, timeZoneNameSchema as t };