@kimdaegyu/babmukdang-shared 2.0.2 → 2.0.3

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 (52) hide show
  1. package/dist/{chunk-EX7S5FI5.js → chunk-3TY6OPD3.js} +4 -4
  2. package/dist/{chunk-QUAG5LF5.js → chunk-6O2YTBVC.js} +4 -11
  3. package/dist/{chunk-TOXRHSD6.js → chunk-7JYVBXKQ.js} +1 -1
  4. package/dist/chunk-7UZD4LBQ.js +459 -0
  5. package/dist/chunk-BSJC7OVV.js +10 -0
  6. package/dist/{chunk-YV734GYZ.js → chunk-C63TN7L3.js} +9 -26
  7. package/dist/{chunk-Q4BPFDVB.js → chunk-CGFW5LYV.js} +6 -34
  8. package/dist/{chunk-TIOX7OHA.js → chunk-GOOH2LGN.js} +24 -58
  9. package/dist/{chunk-EYZU5HPG.js → chunk-HRM3FQPL.js} +1 -4
  10. package/dist/{chunk-3BLXZW4U.js → chunk-LEH6UFL7.js} +11 -35
  11. package/dist/{chunk-P3MYMK34.js → chunk-NENVUHL5.js} +9 -17
  12. package/dist/{chunk-IPANLE7B.js → chunk-OPMBGBYS.js} +34 -34
  13. package/dist/{chunk-G7TITUHT.js → chunk-QFPVAJ2U.js} +1 -1
  14. package/dist/{chunk-65DWKLP6.js → chunk-RZPNVRRS.js} +5 -14
  15. package/dist/{chunk-DRCY5UNQ.js → chunk-VD3VGLBQ.js} +4 -9
  16. package/dist/{chunk-GESEM4IA.js → chunk-WYBFBLQC.js} +6 -17
  17. package/dist/{chunk-6R5CCY5Q.js → chunk-XMRYAG3V.js} +0 -2
  18. package/dist/domain/article/index.cjs +13 -41
  19. package/dist/domain/article/index.js +5 -5
  20. package/dist/domain/auth/index.cjs +8 -25
  21. package/dist/domain/auth/index.js +3 -3
  22. package/dist/domain/common/index.cjs +735 -1332
  23. package/dist/domain/common/index.js +15 -14
  24. package/dist/domain/food/index.cjs +5 -28
  25. package/dist/domain/food/index.d.cts +4 -4
  26. package/dist/domain/food/index.d.ts +4 -4
  27. package/dist/domain/food/index.js +7 -5
  28. package/dist/domain/friend/index.cjs +10 -35
  29. package/dist/domain/friend/index.js +4 -4
  30. package/dist/domain/index.cjs +736 -1476
  31. package/dist/domain/index.d.cts +4 -5
  32. package/dist/domain/index.d.ts +4 -5
  33. package/dist/domain/index.js +35 -35
  34. package/dist/domain/live-activity/index.cjs +422 -371
  35. package/dist/domain/live-activity/index.js +9 -8
  36. package/dist/domain/meal/index.cjs +11 -38
  37. package/dist/domain/meal/index.js +4 -4
  38. package/dist/domain/meal-plan/index.cjs +462 -426
  39. package/dist/domain/meal-plan/index.d.cts +149 -50
  40. package/dist/domain/meal-plan/index.d.ts +149 -50
  41. package/dist/domain/meal-plan/index.js +7 -8
  42. package/dist/domain/member/index.cjs +8 -25
  43. package/dist/domain/member/index.js +2 -2
  44. package/dist/domain/promotion/index.cjs +4 -16
  45. package/dist/domain/promotion/index.js +3 -3
  46. package/dist/domain/push/index.cjs +392 -341
  47. package/dist/domain/push/index.js +7 -6
  48. package/dist/domain/restaurant/index.js +2 -2
  49. package/dist/index.cjs +736 -1475
  50. package/dist/index.js +17 -16
  51. package/package.json +1 -1
  52. package/dist/chunk-KREAZLLH.js +0 -1062
@@ -5,7 +5,6 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __getProtoOf = Object.getPrototypeOf;
7
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
9
8
  var __export = (target, all) => {
10
9
  for (var name in all)
11
10
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -161,7 +160,6 @@ __export(domain_exports, {
161
160
  MealPlanDecisionStageTypeSchema: () => MealPlanDecisionStageTypeSchema,
162
161
  MealPlanDecisionTaskKeySchema: () => MealPlanDecisionTaskKeySchema,
163
162
  MealPlanDecisionTaskProgressSchema: () => MealPlanDecisionTaskProgressSchema,
164
- MealPlanDecisionTaskReadyRequestSchema: () => MealPlanDecisionTaskReadyRequestSchema,
165
163
  MealPlanDecisionTaskStatusSchema: () => MealPlanDecisionTaskStatusSchema,
166
164
  MealPlanGuestParticipantSchema: () => MealPlanGuestParticipantSchema,
167
165
  MealPlanGuestSessionQuerySchema: () => MealPlanGuestSessionQuerySchema,
@@ -337,10 +335,7 @@ var import_zod7 = require("zod");
337
335
  var import_zod = require("zod");
338
336
  var isoDateRegex = /^\d{4}-\d{2}-\d{2}$/;
339
337
  var ISODateStringSchema = import_zod.z.string().regex(isoDateRegex, "Expected ISO date string in YYYY-MM-DD format");
340
- var ISODateTimeStringSchema = import_zod.z.string().datetime({
341
- offset: true,
342
- message: "Expected ISO datetime string"
343
- });
338
+ var ISODateTimeStringSchema = import_zod.z.string().datetime({ offset: true, message: "Expected ISO datetime string" });
344
339
  var TimeHHmmStringSchema = import_zod.z.string().regex(/^\d{2}:\d{2}$/, "Expected time string in HH:mm format");
345
340
 
346
341
  // src/domain/common/schema/id.schema.ts
@@ -387,14 +382,11 @@ var PageMetaSchema = import_zod3.z.object({
387
382
  hasNext: import_zod3.z.boolean(),
388
383
  hasPrevious: import_zod3.z.boolean()
389
384
  });
390
- var PageResponseSchema = /* @__PURE__ */ __name((item) => import_zod3.z.object({
385
+ var PageResponseSchema = (item) => import_zod3.z.object({
391
386
  items: import_zod3.z.array(item),
392
387
  meta: PageMetaSchema
393
- }), "PageResponseSchema");
394
- var SortDirectionSchema = import_zod3.z.enum([
395
- "asc",
396
- "desc"
397
- ]);
388
+ });
389
+ var SortDirectionSchema = import_zod3.z.enum(["asc", "desc"]);
398
390
 
399
391
  // src/domain/member/member.schema.ts
400
392
  var import_zod5 = require("zod");
@@ -411,24 +403,10 @@ var UploadPresignImageRequestSchema = import_zod4.default.object({
411
403
  });
412
404
 
413
405
  // src/domain/member/member.schema.ts
414
- var MemberRoleSchema = import_zod5.z.enum([
415
- "USER",
416
- "ADMIN"
417
- ]);
418
- var LocationConsentStatusSchema = import_zod5.z.enum([
419
- "UNKNOWN",
420
- "GRANTED",
421
- "DENIED"
422
- ]);
423
- var OnboardingStatusSchema = import_zod5.z.enum([
424
- "REQUIRED",
425
- "COMPLETED"
426
- ]);
427
- var PermissionKindSchema = import_zod5.z.enum([
428
- "LOCATION",
429
- "NOTIFICATION",
430
- "CAMERA"
431
- ]);
406
+ var MemberRoleSchema = import_zod5.z.enum(["USER", "ADMIN"]);
407
+ var LocationConsentStatusSchema = import_zod5.z.enum(["UNKNOWN", "GRANTED", "DENIED"]);
408
+ var OnboardingStatusSchema = import_zod5.z.enum(["REQUIRED", "COMPLETED"]);
409
+ var PermissionKindSchema = import_zod5.z.enum(["LOCATION", "NOTIFICATION", "CAMERA"]);
432
410
  var PermissionStatusSchema = import_zod5.z.enum([
433
411
  "UNKNOWN",
434
412
  "PROMPT",
@@ -437,12 +415,7 @@ var PermissionStatusSchema = import_zod5.z.enum([
437
415
  "LIMITED",
438
416
  "UNSUPPORTED"
439
417
  ]);
440
- var PermissionPlatformSchema = import_zod5.z.enum([
441
- "WEB",
442
- "IOS",
443
- "ANDROID",
444
- "UNKNOWN"
445
- ]);
418
+ var PermissionPlatformSchema = import_zod5.z.enum(["WEB", "IOS", "ANDROID", "UNKNOWN"]);
446
419
  var DevicePermissionSnapshotSchema = import_zod5.z.object({
447
420
  kind: PermissionKindSchema,
448
421
  status: PermissionStatusSchema,
@@ -516,7 +489,9 @@ var UpdateProfileRequestSchema = import_zod5.z.object({
516
489
  bio: import_zod5.z.string().max(500).nullable()
517
490
  });
518
491
  var UpdatePreferenceRequestSchema = MemberFoodPreferenceSchema;
519
- var CompleteOnboardingRequestSchema = UpdateProfileRequestSchema.merge(UpdatePreferenceRequestSchema);
492
+ var CompleteOnboardingRequestSchema = UpdateProfileRequestSchema.merge(
493
+ UpdatePreferenceRequestSchema
494
+ );
520
495
  var OnboardingDraftSchema = import_zod5.z.object({
521
496
  username: import_zod5.z.string().min(1).max(50).optional(),
522
497
  profileImageUrl: import_zod5.z.string().url().nullable().optional(),
@@ -557,11 +532,7 @@ var KakaoPlaceRawSchema = import_zod6.z.object({
557
532
  });
558
533
 
559
534
  // src/domain/article/article.schema.ts
560
- var ArticleSortBySchema = import_zod7.z.enum([
561
- "createdAt",
562
- "likeCount",
563
- "commentCount"
564
- ]);
535
+ var ArticleSortBySchema = import_zod7.z.enum(["createdAt", "likeCount", "commentCount"]);
565
536
  var ArticleListQuerySchema = PageQuerySchema.extend({
566
537
  sortBy: ArticleSortBySchema.optional().default("createdAt"),
567
538
  direction: SortDirectionSchema.optional().default("desc")
@@ -638,7 +609,7 @@ var SignupResponseSchema = import_zod8.z.object({
638
609
  });
639
610
 
640
611
  // src/domain/common/contracts/api.ts
641
- var import_zod28 = require("zod");
612
+ var import_zod29 = require("zod");
642
613
 
643
614
  // src/domain/common/schema/cache-invalidation.schema.ts
644
615
  var import_zod9 = require("zod");
@@ -686,10 +657,7 @@ var CacheInvalidationEventSchema = import_zod9.z.object({
686
657
  type: import_zod9.z.literal("cache.invalidate"),
687
658
  entity: CacheInvalidationEntitySchema,
688
659
  action: CacheInvalidationActionSchema,
689
- id: import_zod9.z.union([
690
- import_zod9.z.string(),
691
- import_zod9.z.number()
692
- ]).optional(),
660
+ id: import_zod9.z.union([import_zod9.z.string(), import_zod9.z.number()]).optional(),
693
661
  keys: import_zod9.z.array(CacheInvalidationKeySchema).min(1),
694
662
  occurredAt: import_zod9.z.string().datetime()
695
663
  });
@@ -697,77 +665,36 @@ var CacheInvalidationEventSchema = import_zod9.z.object({
697
665
  // src/domain/common/schema/envelope.schema.ts
698
666
  var import_zod10 = require("zod");
699
667
  var NoContentSchema = import_zod10.z.null();
700
- var ApiSuccessSchema = /* @__PURE__ */ __name((data) => import_zod10.z.object({
668
+ var ApiSuccessSchema = (data) => import_zod10.z.object({
701
669
  success: import_zod10.z.literal(true),
702
670
  code: import_zod10.z.number().int(),
703
671
  message: import_zod10.z.string(),
704
672
  data
705
- }), "ApiSuccessSchema");
673
+ });
706
674
  var ApiFailureSchema = import_zod10.z.object({
707
675
  success: import_zod10.z.literal(false),
708
676
  status: import_zod10.z.number().int(),
709
677
  code: import_zod10.z.string(),
710
678
  message: import_zod10.z.string()
711
679
  });
712
- var ApiResponseSchema = /* @__PURE__ */ __name((data) => import_zod10.z.union([
713
- ApiSuccessSchema(data),
714
- ApiFailureSchema
715
- ]), "ApiResponseSchema");
680
+ var ApiResponseSchema = (data) => import_zod10.z.union([ApiSuccessSchema(data), ApiFailureSchema]);
716
681
  var CreatedEntityIdResponseSchema = import_zod10.z.discriminatedUnion("entity", [
717
- import_zod10.z.object({
718
- entity: import_zod10.z.literal("article"),
719
- id: ArticleIdSchema
720
- }),
721
- import_zod10.z.object({
722
- entity: import_zod10.z.literal("comment"),
723
- id: CommentIdSchema
724
- }),
725
- import_zod10.z.object({
726
- entity: import_zod10.z.literal("subscription"),
727
- id: SubscriptionIdSchema
728
- }),
729
- import_zod10.z.object({
730
- entity: import_zod10.z.literal("coupon"),
731
- id: CouponIdSchema
732
- }),
733
- import_zod10.z.object({
734
- entity: import_zod10.z.literal("mealPlan"),
735
- id: MealPlanIdSchema
736
- }),
737
- import_zod10.z.object({
738
- entity: import_zod10.z.literal("mealPlanInvite"),
739
- id: MealPlanInviteIdSchema
740
- }),
741
- import_zod10.z.object({
742
- entity: import_zod10.z.literal("mealPlanJoinRequest"),
743
- id: MealPlanJoinRequestIdSchema
744
- }),
745
- import_zod10.z.object({
746
- entity: import_zod10.z.literal("mealPlanChangeRequest"),
747
- id: MealPlanChangeRequestIdSchema
748
- }),
749
- import_zod10.z.object({
750
- entity: import_zod10.z.literal("mealPlanShareLink"),
751
- id: MealPlanShareLinkIdSchema
752
- }),
753
- import_zod10.z.object({
754
- entity: import_zod10.z.literal("mealPlanChatMessage"),
755
- id: MealPlanChatMessageIdSchema
756
- }),
757
- import_zod10.z.object({
758
- entity: import_zod10.z.literal("mealGroup"),
759
- id: MealGroupIdSchema
760
- })
682
+ import_zod10.z.object({ entity: import_zod10.z.literal("article"), id: ArticleIdSchema }),
683
+ import_zod10.z.object({ entity: import_zod10.z.literal("comment"), id: CommentIdSchema }),
684
+ import_zod10.z.object({ entity: import_zod10.z.literal("subscription"), id: SubscriptionIdSchema }),
685
+ import_zod10.z.object({ entity: import_zod10.z.literal("coupon"), id: CouponIdSchema }),
686
+ import_zod10.z.object({ entity: import_zod10.z.literal("mealPlan"), id: MealPlanIdSchema }),
687
+ import_zod10.z.object({ entity: import_zod10.z.literal("mealPlanInvite"), id: MealPlanInviteIdSchema }),
688
+ import_zod10.z.object({ entity: import_zod10.z.literal("mealPlanJoinRequest"), id: MealPlanJoinRequestIdSchema }),
689
+ import_zod10.z.object({ entity: import_zod10.z.literal("mealPlanChangeRequest"), id: MealPlanChangeRequestIdSchema }),
690
+ import_zod10.z.object({ entity: import_zod10.z.literal("mealPlanShareLink"), id: MealPlanShareLinkIdSchema }),
691
+ import_zod10.z.object({ entity: import_zod10.z.literal("mealPlanChatMessage"), id: MealPlanChatMessageIdSchema }),
692
+ import_zod10.z.object({ entity: import_zod10.z.literal("mealGroup"), id: MealGroupIdSchema })
761
693
  ]);
762
694
 
763
695
  // src/domain/friend/friend.schema.ts
764
696
  var import_zod11 = require("zod");
765
- var FriendRequestStatusSchema = import_zod11.z.enum([
766
- "PENDING",
767
- "ACCEPTED",
768
- "REJECTED",
769
- "CANCELED"
770
- ]);
697
+ var FriendRequestStatusSchema = import_zod11.z.enum(["PENDING", "ACCEPTED", "REJECTED", "CANCELED"]);
771
698
  var FriendMealAvailabilitySchema = import_zod11.z.object({
772
699
  isHungry: import_zod11.z.boolean(),
773
700
  mealProposalAllowed: import_zod11.z.boolean(),
@@ -800,18 +727,11 @@ var MealStatusResponseSchema = import_zod12.z.object({
800
727
  updatedAt: ISODateStringSchema,
801
728
  secondsToAutoOff: import_zod12.z.number().int().min(0)
802
729
  });
803
- var MealStatusActionSchema = import_zod12.z.enum([
804
- "ARTICLE_UPLOAD",
805
- "SET_MANNUALY"
806
- ]);
730
+ var MealStatusActionSchema = import_zod12.z.enum(["ARTICLE_UPLOAD", "SET_MANNUALY"]);
807
731
  var UpdateMealStatusRequestSchema = import_zod12.z.object({
808
732
  action: MealStatusActionSchema.optional().default("SET_MANNUALY")
809
733
  });
810
- var MealStatusSchema = import_zod12.z.enum([
811
- "ALL",
812
- "HUNGRY",
813
- "NOT_HUNGRY"
814
- ]);
734
+ var MealStatusSchema = import_zod12.z.enum(["ALL", "HUNGRY", "NOT_HUNGRY"]);
815
735
  var FriendMealQuerySchema = import_zod12.z.object({
816
736
  status: MealStatusSchema.optional().default("ALL")
817
737
  });
@@ -822,57 +742,176 @@ var FriendMealItemResponseSchema = MemberCoreSchema.extend({
822
742
  });
823
743
 
824
744
  // src/domain/meal-plan/meal-plan.schema.ts
825
- var import_zod18 = require("zod");
745
+ var import_zod19 = require("zod");
826
746
 
827
747
  // src/domain/meal-plan/meal-plan-decision.schema.ts
748
+ var import_zod14 = require("zod");
749
+
750
+ // src/domain/food/food.schema.ts
828
751
  var import_zod13 = require("zod");
829
- var MealPlanLatitudeSchema = import_zod13.z.number().brand();
830
- var MealPlanLongitudeSchema = import_zod13.z.number().brand();
831
- var MealPlanLocationCandidateIdSchema = import_zod13.z.string().min(1).brand();
832
- var MealPlanMenuCandidateIdSchema = import_zod13.z.string().min(1).brand();
833
- var MealPlanDecisionStageIdSchema = import_zod13.z.string().uuid().brand();
834
- var MealPlanVoteIdSchema = import_zod13.z.string().uuid().brand();
835
- var MealPlanLocationCandidateSourceSchema = import_zod13.z.enum([
752
+ var FoodGranularitySchema = import_zod13.z.enum(["main_dish", "side_dish", "beverage", "sauce"]);
753
+ var CuisineTagSchema = import_zod13.z.enum([
754
+ "korean",
755
+ "western",
756
+ "chinese",
757
+ "japanese",
758
+ "mexican",
759
+ "indian",
760
+ "asian",
761
+ "snack",
762
+ "dessert",
763
+ "beverage",
764
+ "unknown"
765
+ ]);
766
+ var FoodResolvedMatchSourceSchema = import_zod13.z.enum(["category", "alias", "lexical", "semantic"]);
767
+ var FoodCodeManifestImageSchema = import_zod13.z.object({
768
+ src: import_zod13.z.string().min(1),
769
+ avifSrcset: import_zod13.z.string().min(1).optional(),
770
+ thumbhashDataURL: import_zod13.z.string().min(1).optional(),
771
+ aspectRatio: import_zod13.z.number().positive().optional()
772
+ });
773
+ var FoodCodeManifestItemSchema = import_zod13.z.object({
774
+ code: FoodCodeSchema,
775
+ label: FoodLabelSchema,
776
+ aliases: import_zod13.z.array(import_zod13.z.string().min(1)).default([]),
777
+ parentCategory: import_zod13.z.string().min(1),
778
+ cuisineTags: import_zod13.z.array(CuisineTagSchema).default([]),
779
+ categoryTags: import_zod13.z.array(import_zod13.z.string().min(1)).default([]),
780
+ semanticTags: import_zod13.z.array(import_zod13.z.string().min(1)).default([]),
781
+ granularity: FoodGranularitySchema,
782
+ searchable: import_zod13.z.boolean(),
783
+ recommendable: import_zod13.z.boolean(),
784
+ previewEnabled: import_zod13.z.boolean(),
785
+ imageUrl: import_zod13.z.string().min(1).nullable().optional(),
786
+ image: FoodCodeManifestImageSchema.nullable().optional(),
787
+ popularity: import_zod13.z.number().nonnegative().optional(),
788
+ source: import_zod13.z.enum(["foodname", "manual", "foodai", "legacy"]).optional()
789
+ });
790
+ var FoodCodeManifestSchema = import_zod13.z.object({
791
+ version: import_zod13.z.string().min(1),
792
+ updatedAt: ISODateTimeStringSchema,
793
+ taxonomyVersion: import_zod13.z.string().min(1),
794
+ etag: import_zod13.z.string().min(1).optional(),
795
+ items: import_zod13.z.array(FoodCodeManifestItemSchema),
796
+ categoryIndex: import_zod13.z.record(import_zod13.z.string(), import_zod13.z.array(FoodCodeSchema)),
797
+ aliasIndex: import_zod13.z.record(import_zod13.z.string(), import_zod13.z.array(FoodCodeSchema)).optional()
798
+ });
799
+ var FoodImageIndexItemSchema = import_zod13.z.object({
800
+ code: FoodCodeSchema,
801
+ label: FoodLabelSchema,
802
+ imageUrl: import_zod13.z.string().min(1).nullable(),
803
+ image: FoodCodeManifestImageSchema.nullable(),
804
+ source: import_zod13.z.enum(["foodname", "manual", "foodai", "legacy"]).optional()
805
+ });
806
+ var FoodImageIndexManifestSchema = import_zod13.z.object({
807
+ version: import_zod13.z.string().min(1),
808
+ updatedAt: ISODateTimeStringSchema,
809
+ taxonomyVersion: import_zod13.z.string().min(1),
810
+ items: import_zod13.z.array(FoodImageIndexItemSchema)
811
+ });
812
+ var ResolvedFoodCodeSchema = import_zod13.z.object({
813
+ code: FoodCodeSchema,
814
+ label: FoodLabelSchema,
815
+ matchedBy: FoodResolvedMatchSourceSchema,
816
+ score: import_zod13.z.number(),
817
+ granularity: FoodGranularitySchema,
818
+ imageUrl: import_zod13.z.string().min(1).nullable().optional()
819
+ });
820
+ var BooleanQuerySchema = import_zod13.z.preprocess((value) => {
821
+ if (value === "true") return true;
822
+ if (value === "false") return false;
823
+ return value;
824
+ }, import_zod13.z.boolean());
825
+ var FoodResolveQuerySchema = import_zod13.z.object({
826
+ q: import_zod13.z.string().default(""),
827
+ limit: import_zod13.z.coerce.number().int().min(1).max(100).optional().default(30),
828
+ recommendableOnly: BooleanQuerySchema.optional().default(true)
829
+ });
830
+ var FoodSearchQuerySchema = import_zod13.z.object({
831
+ q: import_zod13.z.string().default(""),
832
+ limit: import_zod13.z.coerce.number().int().min(1).max(100).optional().default(20)
833
+ });
834
+ var FoodResolveResponseSchema = import_zod13.z.object({
835
+ query: import_zod13.z.string(),
836
+ items: import_zod13.z.array(ResolvedFoodCodeSchema)
837
+ });
838
+ var FoodSearchResponseSchema = FoodResolveResponseSchema;
839
+ var FoodAiClassMappingStatusSchema = import_zod13.z.enum([
840
+ "exact",
841
+ "broad",
842
+ "narrow",
843
+ "merged",
844
+ "ignored",
845
+ "review_required"
846
+ ]);
847
+ var AiClassFoodCodeMappingSchema = import_zod13.z.object({
848
+ classId: import_zod13.z.number().int().nonnegative(),
849
+ aiLabel: import_zod13.z.string().min(1),
850
+ aiAliases: import_zod13.z.array(import_zod13.z.string().min(1)).default([]),
851
+ representativeCode: FoodCodeSchema.nullable(),
852
+ candidateCodes: import_zod13.z.array(FoodCodeSchema).default([]),
853
+ mappingStatus: FoodAiClassMappingStatusSchema,
854
+ granularity: FoodGranularitySchema,
855
+ searchable: import_zod13.z.boolean(),
856
+ recommendable: import_zod13.z.boolean(),
857
+ reason: import_zod13.z.string().min(1).optional()
858
+ });
859
+ var AiClassToFoodCodeMapManifestSchema = import_zod13.z.object({
860
+ version: import_zod13.z.string().min(1),
861
+ updatedAt: ISODateTimeStringSchema,
862
+ modelTaxonomyVersion: import_zod13.z.string().min(1),
863
+ serviceTaxonomyVersion: import_zod13.z.string().min(1),
864
+ classes: import_zod13.z.array(AiClassFoodCodeMappingSchema)
865
+ });
866
+
867
+ // src/domain/meal-plan/meal-plan-decision.schema.ts
868
+ var MealPlanLatitudeSchema = import_zod14.z.number().brand();
869
+ var MealPlanLongitudeSchema = import_zod14.z.number().brand();
870
+ var MealPlanLocationCandidateIdSchema = import_zod14.z.string().min(1).brand();
871
+ var MealPlanMenuCandidateIdSchema = import_zod14.z.string().min(1).brand();
872
+ var MealPlanDecisionStageIdSchema = import_zod14.z.string().uuid().brand();
873
+ var MealPlanVoteIdSchema = import_zod14.z.string().uuid().brand();
874
+ var MealPlanLocationCandidateSourceSchema = import_zod14.z.enum([
836
875
  "manual",
876
+ "map-marker",
837
877
  "midpoint",
878
+ "user-location",
838
879
  "search",
839
880
  "recent-place",
840
881
  "fallback"
841
882
  ]);
842
- var MealPlanLocationCandidateSchema = import_zod13.z.object({
883
+ var MealPlanLocationCandidateSchema = import_zod14.z.object({
843
884
  locationId: MealPlanLocationCandidateIdSchema,
844
- placeName: import_zod13.z.string().min(1),
885
+ placeName: import_zod14.z.string().min(1),
845
886
  lat: MealPlanLatitudeSchema,
846
887
  lng: MealPlanLongitudeSchema,
847
- address: import_zod13.z.string().default(""),
888
+ address: import_zod14.z.string().default(""),
848
889
  source: MealPlanLocationCandidateSourceSchema.default("manual"),
849
890
  createdBy: MemberIdSchema.optional(),
850
891
  createdAt: ISODateTimeStringSchema.optional()
851
892
  });
852
- var MealPlanMenuCandidateSourceSchema = import_zod13.z.enum([
893
+ var MealPlanMenuCandidateSourceSchema = import_zod14.z.enum([
853
894
  "external-recommendation",
854
895
  "prefer-menu",
855
896
  "recent-menu",
856
897
  "fallback",
857
898
  "manual-search"
858
899
  ]);
859
- var MealPlanMenuCandidateSchema = import_zod13.z.object({
900
+ var MealPlanMenuCandidateSchema = import_zod14.z.object({
860
901
  menuCandidateId: MealPlanMenuCandidateIdSchema,
861
902
  menu: FoodSchema,
862
903
  source: MealPlanMenuCandidateSourceSchema,
863
- score: import_zod13.z.number().default(0),
904
+ score: import_zod14.z.number().default(0),
905
+ imageUrl: import_zod14.z.string().min(1).nullable().default(null),
906
+ image: FoodCodeManifestImageSchema.nullable().default(null),
864
907
  createdAt: ISODateTimeStringSchema
865
908
  });
866
909
  var MealPlanRestaurantCandidateSchema = RestaurantSchema.extend({
867
910
  candidateId: RestaurantIdSchema.optional(),
868
- source: import_zod13.z.enum([
869
- "search",
870
- "fallback",
871
- "manual"
872
- ]).optional(),
911
+ source: import_zod14.z.enum(["search", "fallback", "manual"]).optional(),
873
912
  createdAt: ISODateTimeStringSchema.optional()
874
913
  });
875
- var MealPlanDecisionStageTypeSchema = import_zod13.z.enum([
914
+ var MealPlanDecisionStageTypeSchema = import_zod14.z.enum([
876
915
  "DATE",
877
916
  "TIME",
878
917
  "AREA",
@@ -880,108 +919,90 @@ var MealPlanDecisionStageTypeSchema = import_zod13.z.enum([
880
919
  "RESTAURANT",
881
920
  "FINAL_CONFIRMATION"
882
921
  ]);
883
- var MealPlanDecisionStageStatusSchema = import_zod13.z.enum([
922
+ var MealPlanDecisionStageStatusSchema = import_zod14.z.enum([
884
923
  "OPEN",
885
924
  "COMPLETED",
886
925
  "REOPENED"
887
926
  ]);
888
- var MealPlanRestaurantSearchStatusSchema = import_zod13.z.enum([
927
+ var MealPlanRestaurantSearchStatusSchema = import_zod14.z.enum([
889
928
  "IDLE",
890
929
  "PENDING",
891
930
  "READY",
892
931
  "FAILED",
893
932
  "STALE"
894
933
  ]);
895
- var MealPlanRestaurantSearchStateSchema = import_zod13.z.object({
896
- searchKey: import_zod13.z.string().min(1).nullable(),
934
+ var MealPlanRestaurantSearchStateSchema = import_zod14.z.object({
935
+ searchKey: import_zod14.z.string().min(1).nullable(),
897
936
  status: MealPlanRestaurantSearchStatusSchema,
898
937
  startedAt: ISODateTimeStringSchema.nullable(),
899
938
  completedAt: ISODateTimeStringSchema.nullable(),
900
- version: import_zod13.z.number().int().min(0),
901
- candidateCount: import_zod13.z.number().int().min(0),
902
- errorMessage: import_zod13.z.string().nullable().default(null)
939
+ version: import_zod14.z.number().int().min(0),
940
+ candidateCount: import_zod14.z.number().int().min(0),
941
+ errorMessage: import_zod14.z.string().nullable().default(null)
903
942
  });
904
- var MealPlanDecisionStageMetadataSchema = import_zod13.z.object({
943
+ var MealPlanDecisionStageMetadataSchema = import_zod14.z.object({
905
944
  restaurantSearch: MealPlanRestaurantSearchStateSchema.optional()
906
- }).catchall(import_zod13.z.unknown());
907
- var MealPlanVoteTypeSchema = import_zod13.z.enum([
945
+ }).catchall(import_zod14.z.unknown());
946
+ var MealPlanVoteTypeSchema = import_zod14.z.enum([
908
947
  "PICK",
909
948
  "EXCLUDE",
910
949
  "PREFER",
911
950
  "READY"
912
951
  ]);
913
- var MealPlanDecisionCandidateSchema = import_zod13.z.discriminatedUnion("stageType", [
914
- import_zod13.z.object({
915
- stageType: import_zod13.z.literal("DATE"),
916
- value: ISODateStringSchema
917
- }),
918
- import_zod13.z.object({
919
- stageType: import_zod13.z.literal("TIME"),
920
- value: TimeHHmmStringSchema
921
- }),
922
- import_zod13.z.object({
923
- stageType: import_zod13.z.literal("AREA"),
924
- value: MealPlanLocationCandidateSchema
925
- }),
926
- import_zod13.z.object({
927
- stageType: import_zod13.z.literal("MENU"),
928
- value: MealPlanMenuCandidateSchema
929
- }),
930
- import_zod13.z.object({
931
- stageType: import_zod13.z.literal("RESTAURANT"),
932
- value: MealPlanRestaurantCandidateSchema
933
- }),
934
- import_zod13.z.object({
935
- stageType: import_zod13.z.literal("FINAL_CONFIRMATION"),
936
- value: import_zod13.z.literal("READY")
937
- })
952
+ var MealPlanDecisionCandidateSchema = import_zod14.z.discriminatedUnion("stageType", [
953
+ import_zod14.z.object({ stageType: import_zod14.z.literal("DATE"), value: ISODateStringSchema }),
954
+ import_zod14.z.object({ stageType: import_zod14.z.literal("TIME"), value: TimeHHmmStringSchema }),
955
+ import_zod14.z.object({ stageType: import_zod14.z.literal("AREA"), value: MealPlanLocationCandidateSchema }),
956
+ import_zod14.z.object({ stageType: import_zod14.z.literal("MENU"), value: MealPlanMenuCandidateSchema }),
957
+ import_zod14.z.object({ stageType: import_zod14.z.literal("RESTAURANT"), value: MealPlanRestaurantCandidateSchema }),
958
+ import_zod14.z.object({ stageType: import_zod14.z.literal("FINAL_CONFIRMATION"), value: import_zod14.z.literal("READY") })
938
959
  ]);
939
- var MealPlanVoteSchema = import_zod13.z.object({
960
+ var MealPlanVoteSchema = import_zod14.z.object({
940
961
  voteId: MealPlanVoteIdSchema,
941
962
  voterId: MemberIdSchema.nullable(),
942
- guestId: import_zod13.z.string().min(1).nullable(),
963
+ guestId: import_zod14.z.string().min(1).nullable(),
943
964
  voteType: MealPlanVoteTypeSchema,
944
965
  candidate: MealPlanDecisionCandidateSchema,
945
966
  createdAt: ISODateTimeStringSchema
946
967
  });
947
- var MealPlanDecisionStageResponseSchema = import_zod13.z.object({
968
+ var MealPlanDecisionStageResponseSchema = import_zod14.z.object({
948
969
  stageId: MealPlanDecisionStageIdSchema,
949
970
  stageType: MealPlanDecisionStageTypeSchema,
950
971
  status: MealPlanDecisionStageStatusSchema,
951
- candidates: import_zod13.z.array(MealPlanDecisionCandidateSchema),
952
- votes: import_zod13.z.array(MealPlanVoteSchema),
972
+ candidates: import_zod14.z.array(MealPlanDecisionCandidateSchema),
973
+ votes: import_zod14.z.array(MealPlanVoteSchema),
953
974
  selectedCandidate: MealPlanDecisionCandidateSchema.nullable(),
954
975
  metadata: MealPlanDecisionStageMetadataSchema.nullable().default(null),
955
976
  openedAt: ISODateTimeStringSchema,
956
977
  completedAt: ISODateTimeStringSchema.nullable(),
957
978
  reopenedAt: ISODateTimeStringSchema.nullable()
958
979
  });
959
- var CreateMealPlanVoteRequestSchema = import_zod13.z.object({
980
+ var CreateMealPlanVoteRequestSchema = import_zod14.z.object({
960
981
  voteType: MealPlanVoteTypeSchema,
961
982
  candidate: MealPlanDecisionCandidateSchema
962
983
  });
963
- var CompleteMealPlanDecisionStageRequestSchema = import_zod13.z.object({
984
+ var CompleteMealPlanDecisionStageRequestSchema = import_zod14.z.object({
964
985
  selectedCandidate: MealPlanDecisionCandidateSchema
965
986
  });
966
- var MealPlanChangeRequestStatusSchema = import_zod13.z.enum([
987
+ var MealPlanChangeRequestStatusSchema = import_zod14.z.enum([
967
988
  "PENDING",
968
989
  "ACCEPTED",
969
990
  "REJECTED",
970
991
  "CANCELLED"
971
992
  ]);
972
- var CreateMealPlanChangeRequestSchema = import_zod13.z.object({
993
+ var CreateMealPlanChangeRequestSchema = import_zod14.z.object({
973
994
  stageType: MealPlanDecisionStageTypeSchema,
974
- reason: import_zod13.z.string().min(1).max(500),
995
+ reason: import_zod14.z.string().min(1).max(500),
975
996
  proposedCandidate: MealPlanDecisionCandidateSchema.optional()
976
997
  });
977
- var MealPlanChangeRequestSummarySchema = import_zod13.z.object({
998
+ var MealPlanChangeRequestSummarySchema = import_zod14.z.object({
978
999
  changeRequestId: MealPlanChangeRequestIdSchema,
979
1000
  stageType: MealPlanDecisionStageTypeSchema,
980
1001
  status: MealPlanChangeRequestStatusSchema,
981
- reason: import_zod13.z.string(),
1002
+ reason: import_zod14.z.string(),
982
1003
  requestedAt: ISODateTimeStringSchema
983
1004
  });
984
- var MealPlanDecisionTaskKeySchema = import_zod13.z.enum([
1005
+ var MealPlanDecisionTaskKeySchema = import_zod14.z.enum([
985
1006
  "SCHEDULE_DATE",
986
1007
  "SCHEDULE_TIME",
987
1008
  "LOCATION_CANDIDATE",
@@ -993,14 +1014,13 @@ var MealPlanDecisionTaskKeySchema = import_zod13.z.enum([
993
1014
  "RESTAURANT_PICK",
994
1015
  "FINAL_CONFIRMATION"
995
1016
  ]);
996
- var MealPlanDecisionTaskStatusSchema = import_zod13.z.enum([
1017
+ var MealPlanDecisionTaskStatusSchema = import_zod14.z.enum([
997
1018
  "LOCKED",
998
1019
  "OPEN",
999
- "READY",
1000
1020
  "RESOLVED",
1001
1021
  "STALE"
1002
1022
  ]);
1003
- var MealPlanDecisionFinalFieldSchema = import_zod13.z.enum([
1023
+ var MealPlanDecisionFinalFieldSchema = import_zod14.z.enum([
1004
1024
  "date",
1005
1025
  "time",
1006
1026
  "meetingAt",
@@ -1008,82 +1028,72 @@ var MealPlanDecisionFinalFieldSchema = import_zod13.z.enum([
1008
1028
  "menu",
1009
1029
  "restaurant"
1010
1030
  ]);
1011
- var MealPlanDecisionSnapshotStatusSchema = import_zod13.z.enum([
1031
+ var MealPlanDecisionSnapshotStatusSchema = import_zod14.z.enum([
1012
1032
  "CANDIDATE",
1013
1033
  "PROVISIONAL",
1014
1034
  "FINAL",
1015
1035
  "STALE"
1016
1036
  ]);
1017
- var MealPlanDecisionReasonSchema = import_zod13.z.enum([
1037
+ var MealPlanDecisionReasonSchema = import_zod14.z.enum([
1018
1038
  "COMMON_SCHEDULE",
1019
1039
  "TOP_VOTED_LOCATION",
1020
1040
  "TOP_PICKED_MENU",
1021
1041
  "TOP_PICKED_RESTAURANT",
1022
1042
  "OWNER_CONFIRMED",
1023
- "TASK_ALL_READY",
1024
1043
  "MANUAL_SELECTION"
1025
1044
  ]);
1026
- var MealPlanDecisionActorTypeSchema = import_zod13.z.enum([
1027
- "MEMBER",
1028
- "GUEST",
1029
- "SYSTEM"
1030
- ]);
1031
- var MealPlanDecisionSnapshotSchema = import_zod13.z.object({
1032
- snapshotId: import_zod13.z.string().uuid(),
1033
- mealPlanId: import_zod13.z.string().uuid(),
1045
+ var MealPlanDecisionActorTypeSchema = import_zod14.z.enum(["MEMBER", "GUEST", "SYSTEM"]);
1046
+ var MealPlanDecisionSnapshotSchema = import_zod14.z.object({
1047
+ snapshotId: import_zod14.z.string().uuid(),
1048
+ mealPlanId: import_zod14.z.string().uuid(),
1034
1049
  field: MealPlanDecisionFinalFieldSchema,
1035
- value: import_zod13.z.unknown(),
1050
+ value: import_zod14.z.unknown(),
1036
1051
  status: MealPlanDecisionSnapshotStatusSchema,
1037
1052
  reason: MealPlanDecisionReasonSchema,
1038
- score: import_zod13.z.number().nullable().default(null),
1039
- sourceEvent: import_zod13.z.string().min(1),
1053
+ score: import_zod14.z.number().nullable().default(null),
1054
+ sourceEvent: import_zod14.z.string().min(1),
1040
1055
  sourceActorType: MealPlanDecisionActorTypeSchema,
1041
1056
  sourceMemberId: MemberIdSchema.nullable(),
1042
- sourceGuestId: import_zod13.z.string().min(1).nullable(),
1043
- sourceParticipantId: import_zod13.z.string().uuid().nullable(),
1044
- sourceVersion: import_zod13.z.number().int().min(0),
1045
- dependencyHash: import_zod13.z.string().min(1),
1046
- dependencyFields: import_zod13.z.array(MealPlanDecisionFinalFieldSchema),
1057
+ sourceGuestId: import_zod14.z.string().min(1).nullable(),
1058
+ sourceParticipantId: import_zod14.z.string().uuid().nullable(),
1059
+ sourceVersion: import_zod14.z.number().int().min(0),
1060
+ dependencyHash: import_zod14.z.string().min(1),
1061
+ dependencyFields: import_zod14.z.array(MealPlanDecisionFinalFieldSchema),
1047
1062
  createdAt: ISODateTimeStringSchema,
1048
1063
  staleAt: ISODateTimeStringSchema.nullable()
1049
1064
  });
1050
- var MealPlanDecisionTaskProgressSchema = import_zod13.z.object({
1065
+ var MealPlanDecisionTaskProgressSchema = import_zod14.z.object({
1051
1066
  taskKey: MealPlanDecisionTaskKeySchema,
1052
1067
  status: MealPlanDecisionTaskStatusSchema,
1053
- readyCount: import_zod13.z.number().int().min(0),
1054
- participantCount: import_zod13.z.number().int().min(0),
1055
- blockers: import_zod13.z.array(import_zod13.z.string()).default([]),
1068
+ blockers: import_zod14.z.array(import_zod14.z.string()).default([]),
1056
1069
  updatedAt: ISODateTimeStringSchema
1057
1070
  });
1058
- var MealPlanDecisionProgressSchema = import_zod13.z.object({
1059
- mealPlanId: import_zod13.z.string().uuid(),
1060
- status: import_zod13.z.string().min(1),
1061
- tasks: import_zod13.z.array(MealPlanDecisionTaskProgressSchema),
1062
- final: import_zod13.z.record(import_zod13.z.string(), import_zod13.z.unknown()),
1063
- provisional: import_zod13.z.record(import_zod13.z.string(), import_zod13.z.unknown()),
1064
- snapshots: import_zod13.z.array(MealPlanDecisionSnapshotSchema),
1065
- version: import_zod13.z.number().int().min(0),
1071
+ var MealPlanDecisionProgressSchema = import_zod14.z.object({
1072
+ mealPlanId: import_zod14.z.string().uuid(),
1073
+ status: import_zod14.z.string().min(1),
1074
+ tasks: import_zod14.z.array(MealPlanDecisionTaskProgressSchema),
1075
+ final: import_zod14.z.record(import_zod14.z.string(), import_zod14.z.unknown()),
1076
+ provisional: import_zod14.z.record(import_zod14.z.string(), import_zod14.z.unknown()),
1077
+ snapshots: import_zod14.z.array(MealPlanDecisionSnapshotSchema),
1078
+ version: import_zod14.z.number().int().min(0),
1066
1079
  updatedAt: ISODateTimeStringSchema
1067
1080
  });
1068
- var MealPlanDecisionTaskReadyRequestSchema = import_zod13.z.object({
1069
- isReady: import_zod13.z.boolean()
1070
- });
1071
- var ReopenMealPlanDecisionTaskRequestSchema = import_zod13.z.object({
1072
- reason: import_zod13.z.string().max(500).optional()
1081
+ var ReopenMealPlanDecisionTaskRequestSchema = import_zod14.z.object({
1082
+ reason: import_zod14.z.string().max(500).optional()
1073
1083
  });
1074
- var ConfirmMealPlanDecisionSnapshotRequestSchema = import_zod13.z.object({
1075
- snapshotId: import_zod13.z.string().uuid()
1084
+ var ConfirmMealPlanDecisionSnapshotRequestSchema = import_zod14.z.object({
1085
+ snapshotId: import_zod14.z.string().uuid()
1076
1086
  });
1077
1087
 
1078
1088
  // src/domain/meal-plan/meal-plan-participant.schema.ts
1079
- var import_zod14 = require("zod");
1080
- var MealPlanParticipantIdSchema = import_zod14.z.string().uuid().brand();
1081
- var MealPlanParticipantRoleSchema = import_zod14.z.enum([
1089
+ var import_zod15 = require("zod");
1090
+ var MealPlanParticipantIdSchema = import_zod15.z.string().uuid().brand();
1091
+ var MealPlanParticipantRoleSchema = import_zod15.z.enum([
1082
1092
  "OWNER",
1083
1093
  "FRIEND",
1084
1094
  "GUEST"
1085
1095
  ]);
1086
- var MealPlanParticipantStatusSchema = import_zod14.z.enum([
1096
+ var MealPlanParticipantStatusSchema = import_zod15.z.enum([
1087
1097
  "INVITED",
1088
1098
  "REQUESTED",
1089
1099
  "JOINED",
@@ -1092,17 +1102,17 @@ var MealPlanParticipantStatusSchema = import_zod14.z.enum([
1092
1102
  "LEFT",
1093
1103
  "REMOVED"
1094
1104
  ]);
1095
- var MealPlanJoinSourceSchema = import_zod14.z.enum([
1105
+ var MealPlanJoinSourceSchema = import_zod15.z.enum([
1096
1106
  "OWNER",
1097
1107
  "FRIEND_INVITE",
1098
1108
  "LINK_GUEST",
1099
1109
  "NEARBY_FRIENDS"
1100
1110
  ]);
1101
- var MealPlanGuestParticipantSchema = import_zod14.z.object({
1102
- guestId: import_zod14.z.string().min(1),
1103
- nickname: import_zod14.z.string().min(1).max(50)
1111
+ var MealPlanGuestParticipantSchema = import_zod15.z.object({
1112
+ guestId: import_zod15.z.string().min(1),
1113
+ nickname: import_zod15.z.string().min(1).max(50)
1104
1114
  });
1105
- var MealPlanParticipantResponseSchema = import_zod14.z.object({
1115
+ var MealPlanParticipantResponseSchema = import_zod15.z.object({
1106
1116
  participantId: MealPlanParticipantIdSchema,
1107
1117
  mealPlanId: MealPlanIdSchema,
1108
1118
  member: MemberCoreSchema.nullable(),
@@ -1113,66 +1123,66 @@ var MealPlanParticipantResponseSchema = import_zod14.z.object({
1113
1123
  joinedAt: ISODateTimeStringSchema.nullable(),
1114
1124
  readyAt: ISODateTimeStringSchema.nullable()
1115
1125
  });
1116
- var CreateMealPlanParticipantRequestSchema = import_zod14.z.object({
1126
+ var CreateMealPlanParticipantRequestSchema = import_zod15.z.object({
1117
1127
  memberId: MemberIdSchema.optional(),
1118
- guestNickname: import_zod14.z.string().min(1).max(50).optional(),
1128
+ guestNickname: import_zod15.z.string().min(1).max(50).optional(),
1119
1129
  source: MealPlanJoinSourceSchema
1120
1130
  });
1121
1131
 
1122
1132
  // src/domain/meal-plan/meal-plan-invite.schema.ts
1123
- var import_zod15 = require("zod");
1124
- var MealPlanInviteStatusSchema = import_zod15.z.enum([
1133
+ var import_zod16 = require("zod");
1134
+ var MealPlanInviteStatusSchema = import_zod16.z.enum([
1125
1135
  "PENDING",
1126
1136
  "ACCEPTED",
1127
1137
  "DECLINED",
1128
1138
  "CANCELLED",
1129
1139
  "EXPIRED"
1130
1140
  ]);
1131
- var CreateMealPlanInviteRequestSchema = import_zod15.z.object({
1141
+ var CreateMealPlanInviteRequestSchema = import_zod16.z.object({
1132
1142
  inviteeId: MemberIdSchema,
1133
- message: import_zod15.z.string().max(500).default("")
1143
+ message: import_zod16.z.string().max(500).default("")
1134
1144
  });
1135
- var MealPlanInviteSummarySchema = import_zod15.z.object({
1145
+ var MealPlanInviteSummarySchema = import_zod16.z.object({
1136
1146
  inviteId: MealPlanInviteIdSchema,
1137
1147
  mealPlanId: MealPlanIdSchema,
1138
1148
  inviter: MemberCoreSchema,
1139
1149
  invitee: MemberCoreSchema,
1140
1150
  status: MealPlanInviteStatusSchema,
1141
- message: import_zod15.z.string().max(500),
1151
+ message: import_zod16.z.string().max(500),
1142
1152
  createdAt: ISODateTimeStringSchema,
1143
1153
  respondedAt: ISODateTimeStringSchema.nullable()
1144
1154
  });
1145
- var MealPlanInviteListResponseSchema = import_zod15.z.array(MealPlanInviteSummarySchema);
1146
- var SendMealPlanInviteResponseSchema = import_zod15.z.object({
1155
+ var MealPlanInviteListResponseSchema = import_zod16.z.array(MealPlanInviteSummarySchema);
1156
+ var SendMealPlanInviteResponseSchema = import_zod16.z.object({
1147
1157
  inviteId: MealPlanInviteIdSchema
1148
1158
  });
1149
1159
 
1150
1160
  // src/domain/meal-plan/meal-plan-nearby-friend.schema.ts
1151
- var import_zod16 = require("zod");
1152
- var MealPlanNearbyFriendExposureIdSchema = import_zod16.z.string().uuid().brand();
1153
- var MealPlanNearbyFriendExposureStatusSchema = import_zod16.z.enum([
1161
+ var import_zod17 = require("zod");
1162
+ var MealPlanNearbyFriendExposureIdSchema = import_zod17.z.string().uuid().brand();
1163
+ var MealPlanNearbyFriendExposureStatusSchema = import_zod17.z.enum([
1154
1164
  "OPEN",
1155
1165
  "CLOSED",
1156
1166
  "EXPIRED"
1157
1167
  ]);
1158
- var MealPlanNearbyFriendExposureNotificationStatusSchema = import_zod16.z.enum([
1168
+ var MealPlanNearbyFriendExposureNotificationStatusSchema = import_zod17.z.enum([
1159
1169
  "PENDING",
1160
1170
  "SENT",
1161
1171
  "PARTIAL",
1162
1172
  "FAILED",
1163
1173
  "SKIPPED"
1164
1174
  ]);
1165
- var ExposeMealPlanToNearbyFriendsRequestSchema = import_zod16.z.object({
1166
- radiusMeters: import_zod16.z.number().int().min(100).max(5e3).default(1e3),
1175
+ var ExposeMealPlanToNearbyFriendsRequestSchema = import_zod17.z.object({
1176
+ radiusMeters: import_zod17.z.number().int().min(100).max(5e3).default(1e3),
1167
1177
  expiresAt: ISODateTimeStringSchema.optional()
1168
1178
  });
1169
- var NearbyFriendExposureEligibilitySchema = import_zod16.z.object({
1170
- canExpose: import_zod16.z.boolean(),
1179
+ var NearbyFriendExposureEligibilitySchema = import_zod17.z.object({
1180
+ canExpose: import_zod17.z.boolean(),
1171
1181
  locationConsentStatus: LocationConsentStatusSchema,
1172
- nearbyMealPlanExposureAllowed: import_zod16.z.boolean(),
1173
- mealSuggestionAllowed: import_zod16.z.boolean(),
1174
- hasLastKnownLocation: import_zod16.z.boolean(),
1175
- missingRequirements: import_zod16.z.array(import_zod16.z.enum([
1182
+ nearbyMealPlanExposureAllowed: import_zod17.z.boolean(),
1183
+ mealSuggestionAllowed: import_zod17.z.boolean(),
1184
+ hasLastKnownLocation: import_zod17.z.boolean(),
1185
+ missingRequirements: import_zod17.z.array(import_zod17.z.enum([
1176
1186
  "LOCATION_PERMISSION",
1177
1187
  "SERVICE_LOCATION_CONSENT",
1178
1188
  "NEARBY_EXPOSURE_TOGGLE",
@@ -1180,7 +1190,7 @@ var NearbyFriendExposureEligibilitySchema = import_zod16.z.object({
1180
1190
  "LAST_KNOWN_LOCATION"
1181
1191
  ]))
1182
1192
  });
1183
- var MealPlanNearbyFriendRejectionReasonSchema = import_zod16.z.enum([
1193
+ var MealPlanNearbyFriendRejectionReasonSchema = import_zod17.z.enum([
1184
1194
  "NOT_FRIEND",
1185
1195
  "BLOCKED",
1186
1196
  "LOCATION_CONSENT_REQUIRED",
@@ -1189,79 +1199,79 @@ var MealPlanNearbyFriendRejectionReasonSchema = import_zod16.z.enum([
1189
1199
  "MEAL_SUGGESTION_DISABLED",
1190
1200
  "NOT_HUNGRY"
1191
1201
  ]);
1192
- var MealPlanNearbyFriendRejectionSummarySchema = import_zod16.z.object({
1202
+ var MealPlanNearbyFriendRejectionSummarySchema = import_zod17.z.object({
1193
1203
  reason: MealPlanNearbyFriendRejectionReasonSchema,
1194
- count: import_zod16.z.number().int().min(0)
1204
+ count: import_zod17.z.number().int().min(0)
1195
1205
  });
1196
- var ExposeMealPlanToNearbyFriendsResponseSchema = import_zod16.z.object({
1206
+ var ExposeMealPlanToNearbyFriendsResponseSchema = import_zod17.z.object({
1197
1207
  mealPlanId: MealPlanIdSchema,
1198
1208
  exposureBatchId: MealPlanNearbyFriendExposureBatchIdSchema,
1199
- exposedFriendCount: import_zod16.z.number().int().min(0),
1200
- rejectedFriendCount: import_zod16.z.number().int().min(0),
1209
+ exposedFriendCount: import_zod17.z.number().int().min(0),
1210
+ rejectedFriendCount: import_zod17.z.number().int().min(0),
1201
1211
  notificationStatus: MealPlanNearbyFriendExposureNotificationStatusSchema,
1202
- rejectionSummary: import_zod16.z.array(MealPlanNearbyFriendRejectionSummarySchema)
1212
+ rejectionSummary: import_zod17.z.array(MealPlanNearbyFriendRejectionSummarySchema)
1203
1213
  });
1204
- var MealPlanNearbyFriendExposureSummarySchema = import_zod16.z.object({
1214
+ var MealPlanNearbyFriendExposureSummarySchema = import_zod17.z.object({
1205
1215
  exposureId: MealPlanNearbyFriendExposureIdSchema,
1206
1216
  exposureBatchId: MealPlanNearbyFriendExposureBatchIdSchema.nullable(),
1207
1217
  mealPlanId: MealPlanIdSchema,
1208
1218
  status: MealPlanNearbyFriendExposureStatusSchema,
1209
- radiusMeters: import_zod16.z.number().int().min(100),
1210
- exposedFriendCount: import_zod16.z.number().int().min(0),
1219
+ radiusMeters: import_zod17.z.number().int().min(100),
1220
+ exposedFriendCount: import_zod17.z.number().int().min(0),
1211
1221
  openedAt: ISODateTimeStringSchema,
1212
1222
  expiresAt: ISODateTimeStringSchema.nullable(),
1213
1223
  closedAt: ISODateTimeStringSchema.nullable()
1214
1224
  });
1215
- var MealPlanNearbyFriendExposureBatchSummarySchema = import_zod16.z.object({
1225
+ var MealPlanNearbyFriendExposureBatchSummarySchema = import_zod17.z.object({
1216
1226
  exposureBatchId: MealPlanNearbyFriendExposureBatchIdSchema,
1217
1227
  mealPlanId: MealPlanIdSchema,
1218
1228
  status: MealPlanNearbyFriendExposureStatusSchema,
1219
- radiusMeters: import_zod16.z.number().int().min(100),
1220
- exposedFriendCount: import_zod16.z.number().int().min(0),
1221
- rejectedFriendCount: import_zod16.z.number().int().min(0),
1222
- rejectionSummary: import_zod16.z.array(MealPlanNearbyFriendRejectionSummarySchema),
1229
+ radiusMeters: import_zod17.z.number().int().min(100),
1230
+ exposedFriendCount: import_zod17.z.number().int().min(0),
1231
+ rejectedFriendCount: import_zod17.z.number().int().min(0),
1232
+ rejectionSummary: import_zod17.z.array(MealPlanNearbyFriendRejectionSummarySchema),
1223
1233
  notificationStatus: MealPlanNearbyFriendExposureNotificationStatusSchema,
1224
1234
  notificationSentAt: ISODateTimeStringSchema.nullable(),
1225
1235
  openedAt: ISODateTimeStringSchema,
1226
1236
  expiresAt: ISODateTimeStringSchema.nullable(),
1227
1237
  closedAt: ISODateTimeStringSchema.nullable()
1228
1238
  });
1229
- var MealPlanJoinRequestStatusSchema = import_zod16.z.enum([
1239
+ var MealPlanJoinRequestStatusSchema = import_zod17.z.enum([
1230
1240
  "PENDING",
1231
1241
  "ACCEPTED",
1232
1242
  "REJECTED",
1233
1243
  "CANCELLED"
1234
1244
  ]);
1235
- var CreateMealPlanJoinRequestSchema = import_zod16.z.object({
1236
- message: import_zod16.z.string().max(500).default("")
1245
+ var CreateMealPlanJoinRequestSchema = import_zod17.z.object({
1246
+ message: import_zod17.z.string().max(500).default("")
1237
1247
  });
1238
- var MealPlanJoinRequestSummarySchema = import_zod16.z.object({
1248
+ var MealPlanJoinRequestSummarySchema = import_zod17.z.object({
1239
1249
  joinRequestId: MealPlanJoinRequestIdSchema,
1240
1250
  mealPlanId: MealPlanIdSchema,
1241
1251
  requester: MemberCoreSchema,
1242
1252
  status: MealPlanJoinRequestStatusSchema,
1243
- message: import_zod16.z.string().max(500),
1253
+ message: import_zod17.z.string().max(500),
1244
1254
  requestedAt: ISODateTimeStringSchema,
1245
1255
  respondedAt: ISODateTimeStringSchema.nullable()
1246
1256
  });
1247
- var NearbyFriendMealPlanSummarySchema = import_zod16.z.object({
1257
+ var NearbyFriendMealPlanSummarySchema = import_zod17.z.object({
1248
1258
  mealPlanId: MealPlanIdSchema,
1249
1259
  owner: MemberCoreSchema,
1250
- title: import_zod16.z.string(),
1251
- participantCount: import_zod16.z.number().int().min(1),
1252
- distanceMeters: import_zod16.z.number().int().min(0),
1260
+ title: import_zod17.z.string(),
1261
+ participantCount: import_zod17.z.number().int().min(1),
1262
+ distanceMeters: import_zod17.z.number().int().min(0),
1253
1263
  exposedAt: ISODateTimeStringSchema,
1254
1264
  expiresAt: ISODateTimeStringSchema.nullable(),
1255
1265
  joinRequestStatus: MealPlanJoinRequestStatusSchema.nullable().default(null)
1256
1266
  });
1257
1267
 
1258
1268
  // src/domain/meal-plan/meal-plan-chat.schema.ts
1259
- var import_zod17 = require("zod");
1260
- var MealPlanChatMessageKindSchema = import_zod17.z.enum([
1269
+ var import_zod18 = require("zod");
1270
+ var MealPlanChatMessageKindSchema = import_zod18.z.enum([
1261
1271
  "USER",
1262
1272
  "SYSTEM"
1263
1273
  ]);
1264
- var MealPlanSystemMessageKindSchema = import_zod17.z.enum([
1274
+ var MealPlanSystemMessageKindSchema = import_zod18.z.enum([
1265
1275
  "PARTICIPANT_JOINED",
1266
1276
  "PARTICIPANT_READY",
1267
1277
  "PARTICIPANT_REMOVED",
@@ -1270,39 +1280,41 @@ var MealPlanSystemMessageKindSchema = import_zod17.z.enum([
1270
1280
  "CONFIRMED",
1271
1281
  "RECORD_NEEDED"
1272
1282
  ]);
1273
- var MealPlanChatSystemPayloadSchema = import_zod17.z.object({
1283
+ var MealPlanChatSystemPayloadSchema = import_zod18.z.object({
1274
1284
  kind: MealPlanSystemMessageKindSchema
1275
- }).catchall(import_zod17.z.unknown());
1276
- var MealPlanChatMessageListResponseSchema = import_zod17.z.array(import_zod17.z.lazy(() => MealPlanChatMessageResponseSchema));
1277
- var MealPlanChatRoomSummarySchema = import_zod17.z.object({
1285
+ }).catchall(import_zod18.z.unknown());
1286
+ var MealPlanChatMessageListResponseSchema = import_zod18.z.array(
1287
+ import_zod18.z.lazy(() => MealPlanChatMessageResponseSchema)
1288
+ );
1289
+ var MealPlanChatRoomSummarySchema = import_zod18.z.object({
1278
1290
  chatRoomId: MealPlanChatRoomIdSchema,
1279
1291
  mealPlanId: MealPlanIdSchema,
1280
- messageCount: import_zod17.z.number().int().min(0),
1292
+ messageCount: import_zod18.z.number().int().min(0),
1281
1293
  lastMessageAt: ISODateTimeStringSchema.nullable(),
1282
1294
  createdAt: ISODateTimeStringSchema
1283
1295
  });
1284
- var SendMealPlanChatMessageRequestSchema = import_zod17.z.object({
1285
- message: import_zod17.z.string().min(1).max(500)
1296
+ var SendMealPlanChatMessageRequestSchema = import_zod18.z.object({
1297
+ message: import_zod18.z.string().min(1).max(500)
1286
1298
  });
1287
- var MealPlanChatMessageResponseSchema = import_zod17.z.object({
1299
+ var MealPlanChatMessageResponseSchema = import_zod18.z.object({
1288
1300
  messageId: MealPlanChatMessageIdSchema,
1289
1301
  chatRoomId: MealPlanChatRoomIdSchema,
1290
1302
  sender: MemberCoreSchema.nullable(),
1291
- guestId: import_zod17.z.string().min(1).nullable(),
1292
- guestNickname: import_zod17.z.string().min(1).nullable(),
1303
+ guestId: import_zod18.z.string().min(1).nullable(),
1304
+ guestNickname: import_zod18.z.string().min(1).nullable(),
1293
1305
  kind: MealPlanChatMessageKindSchema,
1294
- message: import_zod17.z.string().min(1).max(1e3),
1306
+ message: import_zod18.z.string().min(1).max(1e3),
1295
1307
  systemPayload: MealPlanChatSystemPayloadSchema.nullable(),
1296
1308
  createdAt: ISODateTimeStringSchema
1297
1309
  });
1298
- var MealPlanSystemMessageSchema = import_zod17.z.object({
1310
+ var MealPlanSystemMessageSchema = import_zod18.z.object({
1299
1311
  kind: MealPlanSystemMessageKindSchema,
1300
- message: import_zod17.z.string().min(1),
1312
+ message: import_zod18.z.string().min(1),
1301
1313
  createdAt: ISODateTimeStringSchema
1302
1314
  });
1303
1315
 
1304
1316
  // src/domain/meal-plan/meal-plan.schema.ts
1305
- var MealPlanStatusSchema = import_zod18.z.enum([
1317
+ var MealPlanStatusSchema = import_zod19.z.enum([
1306
1318
  "DRAFT",
1307
1319
  "RECOMMENDING",
1308
1320
  "GATHERING",
@@ -1314,78 +1326,74 @@ var MealPlanStatusSchema = import_zod18.z.enum([
1314
1326
  "RECORDED",
1315
1327
  "CANCELLED"
1316
1328
  ]);
1317
- var MealPlanChannelSchema = import_zod18.z.enum([
1329
+ var MealPlanChannelSchema = import_zod19.z.enum([
1318
1330
  "OWNER_ONLY",
1319
1331
  "FRIEND_INVITE",
1320
1332
  "LINK_GUEST",
1321
1333
  "NEARBY_FRIENDS"
1322
1334
  ]);
1323
- var MealPlanRecommendationContextSchema = import_zod18.z.object({
1335
+ var MealPlanRecommendationContextSchema = import_zod19.z.object({
1324
1336
  mealDate: ISODateStringSchema.optional(),
1325
1337
  mealTime: TimeHHmmStringSchema.optional(),
1326
1338
  area: MealPlanLocationCandidateSchema.optional(),
1327
- preferredMenuCategories: import_zod18.z.array(import_zod18.z.string().min(1)).default([]),
1328
- excludedMenuCategories: import_zod18.z.array(import_zod18.z.string().min(1)).default([]),
1329
- candidateMenuCategories: import_zod18.z.array(import_zod18.z.string().min(1)).default([]),
1330
- budgetMin: import_zod18.z.number().int().min(0).optional(),
1331
- budgetMax: import_zod18.z.number().int().min(0).optional(),
1332
- memo: import_zod18.z.string().max(500).optional()
1333
- });
1334
- var CreateMealPlanRequestSchema = import_zod18.z.object({
1335
- title: import_zod18.z.string().min(1).max(100).optional(),
1336
- channels: import_zod18.z.array(MealPlanChannelSchema).default([
1337
- "OWNER_ONLY"
1338
- ]),
1339
+ preferredMenuCategories: import_zod19.z.array(import_zod19.z.string().min(1)).default([]),
1340
+ excludedMenuCategories: import_zod19.z.array(import_zod19.z.string().min(1)).default([]),
1341
+ candidateMenuCategories: import_zod19.z.array(import_zod19.z.string().min(1)).default([]),
1342
+ budgetMin: import_zod19.z.number().int().min(0).optional(),
1343
+ budgetMax: import_zod19.z.number().int().min(0).optional(),
1344
+ memo: import_zod19.z.string().max(500).optional()
1345
+ });
1346
+ var CreateMealPlanRequestSchema = import_zod19.z.object({
1347
+ title: import_zod19.z.string().min(1).max(100).optional(),
1348
+ channels: import_zod19.z.array(MealPlanChannelSchema).default(["OWNER_ONLY"]),
1339
1349
  recommendationContext: MealPlanRecommendationContextSchema.optional()
1340
1350
  });
1341
- var CreateMealPlanResponseSchema = import_zod18.z.object({
1351
+ var CreateMealPlanResponseSchema = import_zod19.z.object({
1342
1352
  mealPlanId: MealPlanIdSchema
1343
1353
  });
1344
1354
  var UpdateMealPlanContextRequestSchema = MealPlanRecommendationContextSchema.partial();
1345
- var MealPlanViewerRoleSchema = import_zod18.z.enum([
1355
+ var MealPlanViewerRoleSchema = import_zod19.z.enum([
1346
1356
  "OWNER",
1347
1357
  "FRIEND",
1348
1358
  "GUEST",
1349
1359
  "NONE"
1350
1360
  ]);
1351
- var MealPlanViewerPermissionsSchema = import_zod18.z.object({
1352
- canView: import_zod18.z.boolean(),
1353
- canInviteFriends: import_zod18.z.boolean(),
1354
- canManageParticipants: import_zod18.z.boolean(),
1355
- canCreateShareLink: import_zod18.z.boolean(),
1356
- canExposeNearbyFriends: import_zod18.z.boolean(),
1357
- canVote: import_zod18.z.boolean(),
1358
- canChat: import_zod18.z.boolean(),
1359
- canReadyMealPlan: import_zod18.z.boolean(),
1360
- canReadyDecisionTask: import_zod18.z.boolean(),
1361
- canRequestChange: import_zod18.z.boolean(),
1362
- canReopenDecisionTask: import_zod18.z.boolean(),
1363
- canConfirmDecisionSnapshot: import_zod18.z.boolean(),
1364
- canConfirmMealPlan: import_zod18.z.boolean(),
1365
- canCompleteMealPlan: import_zod18.z.boolean(),
1366
- canRecordMealPlan: import_zod18.z.boolean(),
1367
- canCancelMealPlan: import_zod18.z.boolean()
1368
- });
1369
- var MealPlanResponseSchema = import_zod18.z.object({
1361
+ var MealPlanViewerPermissionsSchema = import_zod19.z.object({
1362
+ canView: import_zod19.z.boolean(),
1363
+ canInviteFriends: import_zod19.z.boolean(),
1364
+ canManageParticipants: import_zod19.z.boolean(),
1365
+ canCreateShareLink: import_zod19.z.boolean(),
1366
+ canExposeNearbyFriends: import_zod19.z.boolean(),
1367
+ canVote: import_zod19.z.boolean(),
1368
+ canChat: import_zod19.z.boolean(),
1369
+ canReadyMealPlan: import_zod19.z.boolean(),
1370
+ canRequestChange: import_zod19.z.boolean(),
1371
+ canReopenDecisionTask: import_zod19.z.boolean(),
1372
+ canConfirmDecisionSnapshot: import_zod19.z.boolean(),
1373
+ canConfirmMealPlan: import_zod19.z.boolean(),
1374
+ canCompleteMealPlan: import_zod19.z.boolean(),
1375
+ canRecordMealPlan: import_zod19.z.boolean(),
1376
+ canCancelMealPlan: import_zod19.z.boolean()
1377
+ });
1378
+ var MealPlanResponseSchema = import_zod19.z.object({
1370
1379
  mealPlanId: MealPlanIdSchema,
1371
1380
  owner: MemberCoreSchema,
1372
- title: import_zod18.z.string().nullable(),
1381
+ title: import_zod19.z.string().nullable(),
1373
1382
  status: MealPlanStatusSchema,
1374
- channels: import_zod18.z.array(MealPlanChannelSchema),
1375
- participants: import_zod18.z.array(MealPlanParticipantResponseSchema),
1376
- pendingInvites: import_zod18.z.array(MealPlanInviteSummarySchema),
1377
- pendingJoinRequests: import_zod18.z.array(MealPlanJoinRequestSummarySchema),
1378
- decisionStages: import_zod18.z.array(MealPlanDecisionStageResponseSchema),
1383
+ channels: import_zod19.z.array(MealPlanChannelSchema),
1384
+ participants: import_zod19.z.array(MealPlanParticipantResponseSchema),
1385
+ pendingInvites: import_zod19.z.array(MealPlanInviteSummarySchema),
1386
+ pendingJoinRequests: import_zod19.z.array(MealPlanJoinRequestSummarySchema),
1387
+ decisionStages: import_zod19.z.array(MealPlanDecisionStageResponseSchema),
1379
1388
  decisionProgress: MealPlanDecisionProgressSchema.nullable(),
1380
1389
  viewerRole: MealPlanViewerRoleSchema,
1381
1390
  viewerParticipantStatus: MealPlanParticipantStatusSchema.nullable(),
1382
1391
  viewerPermissions: MealPlanViewerPermissionsSchema,
1383
- viewerTaskReadyMap: import_zod18.z.record(MealPlanDecisionTaskKeySchema, import_zod18.z.boolean()),
1384
1392
  selectedDate: ISODateStringSchema.nullable(),
1385
1393
  selectedTime: TimeHHmmStringSchema.nullable(),
1386
1394
  selectedArea: MealPlanLocationCandidateSchema.nullable(),
1387
1395
  selectedRestaurant: RestaurantSchema.nullable(),
1388
- selectedMenuCategory: import_zod18.z.string().nullable(),
1396
+ selectedMenuCategory: import_zod19.z.string().nullable(),
1389
1397
  chatRoom: MealPlanChatRoomSummarySchema.nullable(),
1390
1398
  confirmedAt: ISODateTimeStringSchema.nullable(),
1391
1399
  lockedAt: ISODateTimeStringSchema.nullable(),
@@ -1394,36 +1402,31 @@ var MealPlanResponseSchema = import_zod18.z.object({
1394
1402
  createdAt: ISODateTimeStringSchema,
1395
1403
  updatedAt: ISODateTimeStringSchema
1396
1404
  });
1397
- var MyMealPlanGroupSchema = import_zod18.z.enum([
1398
- "DECIDING",
1399
- "UPCOMING",
1400
- "RECORD_NEEDED",
1401
- "PAST"
1402
- ]);
1403
- var MyMealPlanListItemSchema = import_zod18.z.object({
1405
+ var MyMealPlanGroupSchema = import_zod19.z.enum(["DECIDING", "UPCOMING", "RECORD_NEEDED", "PAST"]);
1406
+ var MyMealPlanListItemSchema = import_zod19.z.object({
1404
1407
  mealPlanId: MealPlanIdSchema,
1405
1408
  group: MyMealPlanGroupSchema,
1406
- title: import_zod18.z.string(),
1409
+ title: import_zod19.z.string(),
1407
1410
  status: MealPlanStatusSchema,
1408
- channels: import_zod18.z.array(MealPlanChannelSchema),
1409
- participantCount: import_zod18.z.number().int().min(1),
1411
+ channels: import_zod19.z.array(MealPlanChannelSchema),
1412
+ participantCount: import_zod19.z.number().int().min(1),
1410
1413
  selectedDate: ISODateStringSchema.nullable(),
1411
1414
  selectedTime: TimeHHmmStringSchema.nullable(),
1412
- selectedAreaName: import_zod18.z.string().nullable(),
1413
- selectedRestaurantName: import_zod18.z.string().nullable(),
1414
- primaryAction: import_zod18.z.object({
1415
- label: import_zod18.z.string(),
1416
- href: import_zod18.z.string()
1415
+ selectedAreaName: import_zod19.z.string().nullable(),
1416
+ selectedRestaurantName: import_zod19.z.string().nullable(),
1417
+ primaryAction: import_zod19.z.object({
1418
+ label: import_zod19.z.string(),
1419
+ href: import_zod19.z.string()
1417
1420
  }),
1418
1421
  updatedAt: ISODateTimeStringSchema
1419
1422
  });
1420
- var MyMealPlanListResponseSchema = import_zod18.z.object({
1421
- deciding: import_zod18.z.array(MyMealPlanListItemSchema),
1422
- upcoming: import_zod18.z.array(MyMealPlanListItemSchema),
1423
- recordNeeded: import_zod18.z.array(MyMealPlanListItemSchema),
1424
- past: import_zod18.z.array(MyMealPlanListItemSchema)
1423
+ var MyMealPlanListResponseSchema = import_zod19.z.object({
1424
+ deciding: import_zod19.z.array(MyMealPlanListItemSchema),
1425
+ upcoming: import_zod19.z.array(MyMealPlanListItemSchema),
1426
+ recordNeeded: import_zod19.z.array(MyMealPlanListItemSchema),
1427
+ past: import_zod19.z.array(MyMealPlanListItemSchema)
1425
1428
  });
1426
- var MealPlanNotificationKindSchema = import_zod18.z.enum([
1429
+ var MealPlanNotificationKindSchema = import_zod19.z.enum([
1427
1430
  "MEAL_PLAN_INVITE_RECEIVED",
1428
1431
  "MEAL_PLAN_INVITE_ACCEPTED",
1429
1432
  "MEAL_PLAN_JOIN_REQUESTED",
@@ -1435,27 +1438,27 @@ var MealPlanNotificationKindSchema = import_zod18.z.enum([
1435
1438
  "MEAL_PLAN_LOCKED",
1436
1439
  "MEAL_PLAN_RECORD_NEEDED"
1437
1440
  ]);
1438
- var MealPlanNotificationPriorityChannelSchema = import_zod18.z.enum([
1441
+ var MealPlanNotificationPriorityChannelSchema = import_zod19.z.enum([
1439
1442
  "HOME",
1440
1443
  "NOTIFICATION_INBOX",
1441
1444
  "FCM_PUSH",
1442
1445
  "LIVE_ACTIVITY"
1443
1446
  ]);
1444
- var MealPlanLiveActivityBehaviorSchema = import_zod18.z.enum([
1447
+ var MealPlanLiveActivityBehaviorSchema = import_zod19.z.enum([
1445
1448
  "NONE",
1446
1449
  "START_OR_UPDATE",
1447
1450
  "UPDATE",
1448
1451
  "END"
1449
1452
  ]);
1450
- var MealPlanNotificationPriorityPolicyItemSchema = import_zod18.z.object({
1453
+ var MealPlanNotificationPriorityPolicyItemSchema = import_zod19.z.object({
1451
1454
  kind: MealPlanNotificationKindSchema,
1452
- priority: import_zod18.z.number().int().min(0),
1453
- homePriority: import_zod18.z.number().int().min(0),
1454
- inboxPriority: import_zod18.z.number().int().min(0),
1455
- fcmPriority: import_zod18.z.number().int().min(0),
1456
- liveActivityPriority: import_zod18.z.number().int().min(0),
1455
+ priority: import_zod19.z.number().int().min(0),
1456
+ homePriority: import_zod19.z.number().int().min(0),
1457
+ inboxPriority: import_zod19.z.number().int().min(0),
1458
+ fcmPriority: import_zod19.z.number().int().min(0),
1459
+ liveActivityPriority: import_zod19.z.number().int().min(0),
1457
1460
  liveActivityBehavior: MealPlanLiveActivityBehaviorSchema,
1458
- foregroundToast: import_zod18.z.boolean()
1461
+ foregroundToast: import_zod19.z.boolean()
1459
1462
  });
1460
1463
  var MEAL_PLAN_NOTIFICATION_PRIORITY_POLICIES = {
1461
1464
  MEAL_PLAN_JOIN_REQUESTED: {
@@ -1559,248 +1562,230 @@ var MEAL_PLAN_NOTIFICATION_PRIORITY_POLICIES = {
1559
1562
  foregroundToast: false
1560
1563
  }
1561
1564
  };
1562
- var MealPlanNotificationSchema = import_zod18.z.object({
1563
- notificationId: import_zod18.z.string().min(1),
1565
+ var MealPlanNotificationSchema = import_zod19.z.object({
1566
+ notificationId: import_zod19.z.string().min(1),
1564
1567
  kind: MealPlanNotificationKindSchema,
1565
1568
  mealPlanId: MealPlanIdSchema,
1566
- deepLink: import_zod18.z.string().min(1),
1567
- title: import_zod18.z.string().min(1),
1568
- message: import_zod18.z.string().min(1),
1569
+ deepLink: import_zod19.z.string().min(1),
1570
+ title: import_zod19.z.string().min(1),
1571
+ message: import_zod19.z.string().min(1),
1569
1572
  createdAt: ISODateTimeStringSchema,
1570
1573
  readAt: ISODateTimeStringSchema.nullable()
1571
1574
  });
1572
1575
 
1573
1576
  // src/domain/meal-plan/meal-plan-share-link.schema.ts
1574
- var import_zod19 = require("zod");
1575
- var CreateMealPlanShareLinkRequestSchema = import_zod19.z.object({
1577
+ var import_zod20 = require("zod");
1578
+ var CreateMealPlanShareLinkRequestSchema = import_zod20.z.object({
1576
1579
  expiresAt: ISODateTimeStringSchema.optional(),
1577
- guestJoinEnabled: import_zod19.z.boolean().default(true)
1580
+ guestJoinEnabled: import_zod20.z.boolean().default(true)
1578
1581
  });
1579
- var MealPlanShareLinkSummarySchema = import_zod19.z.object({
1582
+ var MealPlanShareLinkSummarySchema = import_zod20.z.object({
1580
1583
  shareLinkId: MealPlanShareLinkIdSchema,
1581
1584
  mealPlanId: MealPlanIdSchema,
1582
1585
  token: MealPlanShareLinkTokenSchema,
1583
- url: import_zod19.z.string().url(),
1586
+ url: import_zod20.z.string().url(),
1584
1587
  expiresAt: ISODateTimeStringSchema,
1585
- guestJoinEnabled: import_zod19.z.boolean(),
1588
+ guestJoinEnabled: import_zod20.z.boolean(),
1586
1589
  createdAt: ISODateTimeStringSchema
1587
1590
  });
1588
- var MealPlanSharePreviewResponseSchema = import_zod19.z.object({
1591
+ var MealPlanSharePreviewResponseSchema = import_zod20.z.object({
1589
1592
  mealPlanId: MealPlanIdSchema,
1590
1593
  token: MealPlanShareLinkTokenSchema,
1591
- title: import_zod19.z.string(),
1592
- ownerName: import_zod19.z.string(),
1593
- participantCount: import_zod19.z.number().int().min(1),
1594
+ title: import_zod20.z.string(),
1595
+ ownerName: import_zod20.z.string(),
1596
+ participantCount: import_zod20.z.number().int().min(1),
1594
1597
  expiresAt: ISODateTimeStringSchema,
1595
- guestJoinEnabled: import_zod19.z.boolean()
1598
+ guestJoinEnabled: import_zod20.z.boolean()
1596
1599
  });
1597
- var JoinMealPlanGuestRequestSchema = import_zod19.z.object({
1598
- nickname: import_zod19.z.string().min(1).max(50),
1599
- password: import_zod19.z.string().min(1).max(100).optional()
1600
+ var JoinMealPlanGuestRequestSchema = import_zod20.z.object({
1601
+ nickname: import_zod20.z.string().min(1).max(50),
1602
+ password: import_zod20.z.string().min(1).max(100).optional()
1600
1603
  });
1601
- var JoinMealPlanGuestResponseSchema = import_zod19.z.object({
1604
+ var JoinMealPlanGuestResponseSchema = import_zod20.z.object({
1602
1605
  mealPlanId: MealPlanIdSchema,
1603
- guestId: import_zod19.z.string().min(1),
1604
- sessionToken: import_zod19.z.string().min(1)
1606
+ guestId: import_zod20.z.string().min(1),
1607
+ sessionToken: import_zod20.z.string().min(1)
1605
1608
  });
1606
- var MealPlanGuestSessionQuerySchema = import_zod19.z.object({
1607
- sessionToken: import_zod19.z.string().min(1)
1609
+ var MealPlanGuestSessionQuerySchema = import_zod20.z.object({
1610
+ sessionToken: import_zod20.z.string().min(1)
1608
1611
  });
1609
- var MealPlanGuestSessionResponseSchema = import_zod19.z.object({
1612
+ var MealPlanGuestSessionResponseSchema = import_zod20.z.object({
1610
1613
  mealPlan: MealPlanResponseSchema,
1611
1614
  token: MealPlanShareLinkTokenSchema,
1612
- guestId: import_zod19.z.string().min(1),
1613
- nickname: import_zod19.z.string().min(1).max(50),
1614
- sessionToken: import_zod19.z.string().min(1)
1615
+ guestId: import_zod20.z.string().min(1),
1616
+ nickname: import_zod20.z.string().min(1).max(50),
1617
+ sessionToken: import_zod20.z.string().min(1)
1615
1618
  });
1616
1619
 
1617
1620
  // src/domain/meal-plan/meal-group.schema.ts
1618
- var import_zod20 = require("zod");
1619
- var MealGroupMemberRoleSchema = import_zod20.z.enum([
1621
+ var import_zod21 = require("zod");
1622
+ var MealGroupMemberRoleSchema = import_zod21.z.enum([
1620
1623
  "OWNER",
1621
1624
  "MEMBER"
1622
1625
  ]);
1623
- var MealGroupMemberSchema = import_zod20.z.object({
1626
+ var MealGroupMemberSchema = import_zod21.z.object({
1624
1627
  member: MemberCoreSchema,
1625
1628
  role: MealGroupMemberRoleSchema,
1626
1629
  joinedAt: ISODateTimeStringSchema
1627
1630
  });
1628
- var MealGroupResponseSchema = import_zod20.z.object({
1631
+ var MealGroupResponseSchema = import_zod21.z.object({
1629
1632
  mealGroupId: MealGroupIdSchema,
1630
- name: import_zod20.z.string().min(1).max(50),
1633
+ name: import_zod21.z.string().min(1).max(50),
1631
1634
  owner: MemberCoreSchema,
1632
- profileImageUrl: import_zod20.z.string().url().nullable(),
1633
- members: import_zod20.z.array(MealGroupMemberSchema),
1634
- recentMealPlanIds: import_zod20.z.array(MealPlanIdSchema),
1635
+ profileImageUrl: import_zod21.z.string().url().nullable(),
1636
+ members: import_zod21.z.array(MealGroupMemberSchema),
1637
+ recentMealPlanIds: import_zod21.z.array(MealPlanIdSchema),
1635
1638
  createdAt: ISODateTimeStringSchema,
1636
1639
  updatedAt: ISODateTimeStringSchema
1637
1640
  });
1638
- var CreateMealGroupRequestSchema = import_zod20.z.object({
1639
- name: import_zod20.z.string().min(1).max(50),
1640
- memberIds: import_zod20.z.array(import_zod20.z.number().int().positive()).min(1),
1641
- profileImageUrl: import_zod20.z.string().url().nullable().optional(),
1641
+ var CreateMealGroupRequestSchema = import_zod21.z.object({
1642
+ name: import_zod21.z.string().min(1).max(50),
1643
+ memberIds: import_zod21.z.array(import_zod21.z.number().int().positive()).min(1),
1644
+ profileImageUrl: import_zod21.z.string().url().nullable().optional(),
1642
1645
  sourceMealPlanId: MealPlanIdSchema.optional()
1643
1646
  });
1644
- var StartMealPlanFromGroupRequestSchema = import_zod20.z.object({
1645
- title: import_zod20.z.string().min(1).max(100).optional()
1647
+ var StartMealPlanFromGroupRequestSchema = import_zod21.z.object({
1648
+ title: import_zod21.z.string().min(1).max(100).optional()
1646
1649
  });
1647
- var AddMealGroupMemberRequestSchema = import_zod20.z.object({
1648
- memberId: import_zod20.z.number().int().positive(),
1650
+ var AddMealGroupMemberRequestSchema = import_zod21.z.object({
1651
+ memberId: import_zod21.z.number().int().positive(),
1649
1652
  role: MealGroupMemberRoleSchema.default("MEMBER")
1650
1653
  });
1651
- var UpdateMealGroupMemberRoleRequestSchema = import_zod20.z.object({
1654
+ var UpdateMealGroupMemberRoleRequestSchema = import_zod21.z.object({
1652
1655
  role: MealGroupMemberRoleSchema
1653
1656
  });
1654
1657
  var MealGroupHistoryItemSchema = MyMealPlanListItemSchema.extend({});
1655
- var MealGroupPreferenceSummarySchema = import_zod20.z.object({
1658
+ var MealGroupPreferenceSummarySchema = import_zod21.z.object({
1656
1659
  mealGroupId: MealGroupIdSchema,
1657
- frequentMenuCategories: import_zod20.z.array(import_zod20.z.object({
1658
- label: import_zod20.z.string(),
1659
- count: import_zod20.z.number().int().min(0)
1660
- })),
1661
- frequentRestaurants: import_zod20.z.array(import_zod20.z.object({
1662
- restaurantName: import_zod20.z.string(),
1663
- count: import_zod20.z.number().int().min(0)
1664
- })),
1665
- recentMenuCategories: import_zod20.z.array(import_zod20.z.string()),
1666
- recommendationContext: import_zod20.z.object({
1667
- preferredMenuCategories: import_zod20.z.array(import_zod20.z.string()),
1668
- excludedMenuCategories: import_zod20.z.array(import_zod20.z.string()),
1669
- candidateMenuCategories: import_zod20.z.array(import_zod20.z.string())
1660
+ frequentMenuCategories: import_zod21.z.array(import_zod21.z.object({ label: import_zod21.z.string(), count: import_zod21.z.number().int().min(0) })),
1661
+ frequentRestaurants: import_zod21.z.array(import_zod21.z.object({ restaurantName: import_zod21.z.string(), count: import_zod21.z.number().int().min(0) })),
1662
+ recentMenuCategories: import_zod21.z.array(import_zod21.z.string()),
1663
+ recommendationContext: import_zod21.z.object({
1664
+ preferredMenuCategories: import_zod21.z.array(import_zod21.z.string()),
1665
+ excludedMenuCategories: import_zod21.z.array(import_zod21.z.string()),
1666
+ candidateMenuCategories: import_zod21.z.array(import_zod21.z.string())
1670
1667
  })
1671
1668
  });
1672
- var MealGroupHistoryResponseSchema = import_zod20.z.array(MealGroupHistoryItemSchema);
1669
+ var MealGroupHistoryResponseSchema = import_zod21.z.array(MealGroupHistoryItemSchema);
1673
1670
 
1674
1671
  // src/domain/meal-plan/meal-plan-home-map.schema.ts
1675
- var import_zod21 = require("zod");
1676
- var HomeMealPlanActionKindSchema = import_zod21.z.enum([
1672
+ var import_zod22 = require("zod");
1673
+ var HomeMealPlanActionKindSchema = import_zod22.z.enum([
1677
1674
  "CONTINUE_DECISION",
1678
1675
  "TODAY_UPCOMING",
1679
1676
  "RECORD_NEEDED",
1680
1677
  "RESPOND_JOIN_REQUEST",
1681
1678
  "NOTIFICATION_FOLLOW_UP"
1682
1679
  ]);
1683
- var HomeMealPlanActionCardSchema = import_zod21.z.object({
1684
- actionId: import_zod21.z.string().min(1),
1680
+ var HomeMealPlanActionCardSchema = import_zod22.z.object({
1681
+ actionId: import_zod22.z.string().min(1),
1685
1682
  kind: HomeMealPlanActionKindSchema,
1686
- priority: import_zod21.z.number().int().min(0),
1687
- title: import_zod21.z.string().min(1),
1688
- description: import_zod21.z.string().min(1),
1689
- primaryAction: import_zod21.z.object({
1690
- label: import_zod21.z.string().min(1),
1691
- href: import_zod21.z.string().min(1)
1683
+ priority: import_zod22.z.number().int().min(0),
1684
+ title: import_zod22.z.string().min(1),
1685
+ description: import_zod22.z.string().min(1),
1686
+ primaryAction: import_zod22.z.object({
1687
+ label: import_zod22.z.string().min(1),
1688
+ href: import_zod22.z.string().min(1)
1692
1689
  }),
1693
1690
  mealPlan: MyMealPlanListItemSchema.nullable(),
1694
1691
  joinRequest: MealPlanJoinRequestSummarySchema.nullable(),
1695
1692
  notification: MealPlanNotificationSchema.nullable().default(null)
1696
1693
  });
1697
- var HomeMealPlanDashboardResponseSchema = import_zod21.z.object({
1694
+ var HomeMealPlanDashboardResponseSchema = import_zod22.z.object({
1698
1695
  generatedAt: ISODateTimeStringSchema,
1699
- inProgress: import_zod21.z.array(MyMealPlanListItemSchema),
1700
- today: import_zod21.z.array(MyMealPlanListItemSchema),
1701
- recordNeeded: import_zod21.z.array(MyMealPlanListItemSchema),
1702
- pendingJoinRequests: import_zod21.z.array(MealPlanJoinRequestSummarySchema),
1703
- unreadNotifications: import_zod21.z.array(MealPlanNotificationSchema).default([]),
1704
- nextActions: import_zod21.z.array(HomeMealPlanActionCardSchema)
1705
- });
1706
- var MealMapLayerSchema = import_zod21.z.enum([
1696
+ inProgress: import_zod22.z.array(MyMealPlanListItemSchema),
1697
+ today: import_zod22.z.array(MyMealPlanListItemSchema),
1698
+ recordNeeded: import_zod22.z.array(MyMealPlanListItemSchema),
1699
+ pendingJoinRequests: import_zod22.z.array(MealPlanJoinRequestSummarySchema),
1700
+ unreadNotifications: import_zod22.z.array(MealPlanNotificationSchema).default([]),
1701
+ nextActions: import_zod22.z.array(HomeMealPlanActionCardSchema)
1702
+ });
1703
+ var MealMapLayerSchema = import_zod22.z.enum([
1707
1704
  "MY_MEAL_PLAN_PLACE",
1708
1705
  "NEARBY_FRIEND_MEAL_PLAN",
1709
1706
  "FRIEND_RECORD_LOCATION",
1710
1707
  "RESTAURANT_CANDIDATE"
1711
1708
  ]);
1712
- var MealMapMarkerBaseSchema = import_zod21.z.object({
1713
- markerId: import_zod21.z.string().min(1),
1714
- lat: import_zod21.z.number().min(-90).max(90),
1715
- lng: import_zod21.z.number().min(-180).max(180),
1716
- title: import_zod21.z.string().min(1),
1717
- subtitle: import_zod21.z.string().nullable(),
1718
- href: import_zod21.z.string().min(1).nullable(),
1709
+ var MealMapMarkerBaseSchema = import_zod22.z.object({
1710
+ markerId: import_zod22.z.string().min(1),
1711
+ lat: import_zod22.z.number().min(-90).max(90),
1712
+ lng: import_zod22.z.number().min(-180).max(180),
1713
+ title: import_zod22.z.string().min(1),
1714
+ subtitle: import_zod22.z.string().nullable(),
1715
+ href: import_zod22.z.string().min(1).nullable(),
1719
1716
  mealPlanId: MealPlanIdSchema.nullable(),
1720
1717
  articleId: ArticleIdSchema.nullable(),
1721
1718
  restaurant: RestaurantSchema.nullable(),
1722
- distanceMeters: import_zod21.z.number().int().min(0).nullable(),
1719
+ distanceMeters: import_zod22.z.number().int().min(0).nullable(),
1723
1720
  updatedAt: ISODateTimeStringSchema
1724
1721
  });
1725
- var MealMapMyMealPlanPlaceMetadataSchema = import_zod21.z.object({
1722
+ var MealMapMyMealPlanPlaceMetadataSchema = import_zod22.z.object({
1726
1723
  ownerId: MemberIdSchema.nullable().default(null),
1727
- status: import_zod21.z.string().min(1),
1728
- participantCount: import_zod21.z.number().int().min(1),
1729
- source: import_zod21.z.string().min(1)
1724
+ status: import_zod22.z.string().min(1),
1725
+ participantCount: import_zod22.z.number().int().min(1),
1726
+ source: import_zod22.z.string().min(1)
1730
1727
  });
1731
- var MealMapNearbyFriendMealPlanMetadataSchema = import_zod21.z.object({
1728
+ var MealMapNearbyFriendMealPlanMetadataSchema = import_zod22.z.object({
1732
1729
  ownerId: MemberIdSchema.nullable().default(null),
1733
- ownerName: import_zod21.z.string().min(1),
1734
- participantCount: import_zod21.z.number().int().min(1),
1730
+ ownerName: import_zod22.z.string().min(1),
1731
+ participantCount: import_zod22.z.number().int().min(1),
1735
1732
  expiresAt: ISODateTimeStringSchema.nullable(),
1736
- source: import_zod21.z.string().min(1)
1733
+ source: import_zod22.z.string().min(1)
1737
1734
  });
1738
- var MealMapFriendRecordLocationMetadataSchema = import_zod21.z.object({
1735
+ var MealMapFriendRecordLocationMetadataSchema = import_zod22.z.object({
1739
1736
  authorId: MemberIdSchema.nullable().default(null),
1740
- authorName: import_zod21.z.string().min(1),
1741
- imageUrl: import_zod21.z.string().nullable().default(null),
1742
- mealDate: import_zod21.z.string().min(1)
1737
+ authorName: import_zod22.z.string().min(1),
1738
+ imageUrl: import_zod22.z.string().nullable().default(null),
1739
+ mealDate: import_zod22.z.string().min(1)
1743
1740
  });
1744
- var MealMapRestaurantCandidateCompletionBlockedReasonSchema = import_zod21.z.enum([
1741
+ var MealMapRestaurantCandidateCompletionBlockedReasonSchema = import_zod22.z.enum([
1745
1742
  "OWNER_ONLY",
1746
1743
  "STAGE_ALREADY_COMPLETED",
1747
1744
  "MEAL_PLAN_NOT_MUTABLE"
1748
1745
  ]);
1749
- var MealMapRestaurantCandidateMetadataSchema = import_zod21.z.object({
1746
+ var MealMapRestaurantCandidateMetadataSchema = import_zod22.z.object({
1750
1747
  stageId: MealPlanDecisionStageIdSchema,
1751
1748
  ownerId: MemberIdSchema.nullable().default(null),
1752
- status: import_zod21.z.string().min(1),
1753
- source: import_zod21.z.enum([
1754
- "search",
1755
- "fallback",
1756
- "manual"
1757
- ]).default("search"),
1758
- stageStatus: import_zod21.z.enum([
1759
- "OPEN",
1760
- "COMPLETED",
1761
- "REOPENED"
1762
- ]).default("OPEN"),
1763
- canVote: import_zod21.z.boolean().default(false),
1764
- canCompleteStage: import_zod21.z.boolean().default(false),
1749
+ status: import_zod22.z.string().min(1),
1750
+ source: import_zod22.z.enum(["search", "fallback", "manual"]).default("search"),
1751
+ stageStatus: import_zod22.z.enum(["OPEN", "COMPLETED", "REOPENED"]).default("OPEN"),
1752
+ canVote: import_zod22.z.boolean().default(false),
1753
+ canCompleteStage: import_zod22.z.boolean().default(false),
1765
1754
  completionBlockedReason: MealMapRestaurantCandidateCompletionBlockedReasonSchema.nullable().default(null)
1766
1755
  });
1767
- var MealMapMarkerSchema = import_zod21.z.discriminatedUnion("layer", [
1756
+ var MealMapMarkerSchema = import_zod22.z.discriminatedUnion("layer", [
1768
1757
  MealMapMarkerBaseSchema.extend({
1769
- layer: import_zod21.z.literal("MY_MEAL_PLAN_PLACE"),
1758
+ layer: import_zod22.z.literal("MY_MEAL_PLAN_PLACE"),
1770
1759
  metadata: MealMapMyMealPlanPlaceMetadataSchema
1771
1760
  }),
1772
1761
  MealMapMarkerBaseSchema.extend({
1773
- layer: import_zod21.z.literal("NEARBY_FRIEND_MEAL_PLAN"),
1762
+ layer: import_zod22.z.literal("NEARBY_FRIEND_MEAL_PLAN"),
1774
1763
  metadata: MealMapNearbyFriendMealPlanMetadataSchema
1775
1764
  }),
1776
1765
  MealMapMarkerBaseSchema.extend({
1777
- layer: import_zod21.z.literal("FRIEND_RECORD_LOCATION"),
1766
+ layer: import_zod22.z.literal("FRIEND_RECORD_LOCATION"),
1778
1767
  metadata: MealMapFriendRecordLocationMetadataSchema
1779
1768
  }),
1780
1769
  MealMapMarkerBaseSchema.extend({
1781
- layer: import_zod21.z.literal("RESTAURANT_CANDIDATE"),
1770
+ layer: import_zod22.z.literal("RESTAURANT_CANDIDATE"),
1782
1771
  metadata: MealMapRestaurantCandidateMetadataSchema
1783
1772
  })
1784
1773
  ]);
1785
- var MealMapQuerySchema = import_zod21.z.object({
1786
- friendRecordDays: import_zod21.z.coerce.number().int().min(1).max(90).optional().default(7)
1774
+ var MealMapQuerySchema = import_zod22.z.object({
1775
+ friendRecordDays: import_zod22.z.coerce.number().int().min(1).max(90).optional().default(7)
1787
1776
  });
1788
- var MealMapResponseSchema = import_zod21.z.object({
1777
+ var MealMapResponseSchema = import_zod22.z.object({
1789
1778
  generatedAt: ISODateTimeStringSchema,
1790
- center: import_zod21.z.object({
1791
- lat: import_zod21.z.number().min(-90).max(90),
1792
- lng: import_zod21.z.number().min(-180).max(180),
1793
- source: import_zod21.z.enum([
1794
- "LAST_KNOWN_LOCATION",
1795
- "MY_MEAL_PLAN",
1796
- "DEFAULT"
1797
- ])
1779
+ center: import_zod22.z.object({
1780
+ lat: import_zod22.z.number().min(-90).max(90),
1781
+ lng: import_zod22.z.number().min(-180).max(180),
1782
+ source: import_zod22.z.enum(["LAST_KNOWN_LOCATION", "MY_MEAL_PLAN", "DEFAULT"])
1798
1783
  }),
1799
- layers: import_zod21.z.object({
1800
- myMealPlanPlaces: import_zod21.z.array(MealMapMarkerSchema),
1801
- nearbyFriendMealPlans: import_zod21.z.array(MealMapMarkerSchema),
1802
- friendRecordLocations: import_zod21.z.array(MealMapMarkerSchema),
1803
- restaurantCandidates: import_zod21.z.array(MealMapMarkerSchema)
1784
+ layers: import_zod22.z.object({
1785
+ myMealPlanPlaces: import_zod22.z.array(MealMapMarkerSchema),
1786
+ nearbyFriendMealPlans: import_zod22.z.array(MealMapMarkerSchema),
1787
+ friendRecordLocations: import_zod22.z.array(MealMapMarkerSchema),
1788
+ restaurantCandidates: import_zod22.z.array(MealMapMarkerSchema)
1804
1789
  })
1805
1790
  });
1806
1791
 
@@ -1809,7 +1794,6 @@ var DEFAULT_POLICY = MEAL_PLAN_NOTIFICATION_PRIORITY_POLICIES.MEAL_PLAN_PARTICIP
1809
1794
  function getMealPlanNotificationPriorityPolicy(kind) {
1810
1795
  return MEAL_PLAN_NOTIFICATION_PRIORITY_POLICIES[kind] ?? DEFAULT_POLICY;
1811
1796
  }
1812
- __name(getMealPlanNotificationPriorityPolicy, "getMealPlanNotificationPriorityPolicy");
1813
1797
  function getMealPlanNotificationPriority(kind, channel = "HOME") {
1814
1798
  const policy = getMealPlanNotificationPriorityPolicy(kind);
1815
1799
  switch (channel) {
@@ -1825,15 +1809,12 @@ function getMealPlanNotificationPriority(kind, channel = "HOME") {
1825
1809
  return policy.priority;
1826
1810
  }
1827
1811
  }
1828
- __name(getMealPlanNotificationPriority, "getMealPlanNotificationPriority");
1829
1812
  function getMealPlanLiveActivityBehavior(kind) {
1830
1813
  return getMealPlanNotificationPriorityPolicy(kind).liveActivityBehavior;
1831
1814
  }
1832
- __name(getMealPlanLiveActivityBehavior, "getMealPlanLiveActivityBehavior");
1833
1815
  function shouldShowForegroundToast(kind) {
1834
1816
  return getMealPlanNotificationPriorityPolicy(kind).foregroundToast;
1835
1817
  }
1836
- __name(shouldShowForegroundToast, "shouldShowForegroundToast");
1837
1818
  function compareMealPlanNotificationsByPriority(channel) {
1838
1819
  return (a, b) => {
1839
1820
  const unreadDelta = Number(Boolean(a.readAt)) - Number(Boolean(b.readAt));
@@ -1843,273 +1824,240 @@ function compareMealPlanNotificationsByPriority(channel) {
1843
1824
  return new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime();
1844
1825
  };
1845
1826
  }
1846
- __name(compareMealPlanNotificationsByPriority, "compareMealPlanNotificationsByPriority");
1847
1827
 
1848
1828
  // src/domain/promotion/referral.schema.ts
1849
- var import_zod22 = require("zod");
1850
- var ReferralCreateResponseSchema = import_zod22.z.object({
1829
+ var import_zod23 = require("zod");
1830
+ var ReferralCreateResponseSchema = import_zod23.z.object({
1851
1831
  code: ReferralCodeSchema,
1852
- link: import_zod22.z.string().url(),
1832
+ link: import_zod23.z.string().url(),
1853
1833
  expiresAt: ISODateTimeStringSchema
1854
1834
  });
1855
- var ReferralItemResponseSchema = import_zod22.z.object({
1835
+ var ReferralItemResponseSchema = import_zod23.z.object({
1856
1836
  code: ReferralCodeSchema,
1857
1837
  createdAt: ISODateTimeStringSchema,
1858
1838
  expiresAt: ISODateTimeStringSchema,
1859
- used: import_zod22.z.boolean(),
1839
+ used: import_zod23.z.boolean(),
1860
1840
  usedByMemberId: MemberIdSchema.nullable(),
1861
- usedByUsername: import_zod22.z.string().nullable()
1841
+ usedByUsername: import_zod23.z.string().nullable()
1862
1842
  });
1863
- var RedeemReferralRequestSchema = import_zod22.z.object({
1843
+ var RedeemReferralRequestSchema = import_zod23.z.object({
1864
1844
  code: ReferralCodeSchema
1865
1845
  });
1866
1846
 
1867
1847
  // src/domain/promotion/coupon.schema.ts
1868
- var import_zod23 = require("zod");
1869
- var CouponTypeSchema = import_zod23.z.enum([
1870
- "DISCOUNT",
1871
- "SERVICE"
1872
- ]);
1873
- var CouponStatusSchema = import_zod23.z.enum([
1874
- "UNUSED",
1875
- "USED"
1876
- ]);
1877
- var CouponResponseSchema = import_zod23.z.object({
1848
+ var import_zod24 = require("zod");
1849
+ var CouponTypeSchema = import_zod24.z.enum(["DISCOUNT", "SERVICE"]);
1850
+ var CouponStatusSchema = import_zod24.z.enum(["UNUSED", "USED"]);
1851
+ var CouponResponseSchema = import_zod24.z.object({
1878
1852
  couponId: CouponIdSchema,
1879
- title: import_zod23.z.string(),
1880
- shopName: import_zod23.z.string(),
1853
+ title: import_zod24.z.string(),
1854
+ shopName: import_zod24.z.string(),
1881
1855
  type: CouponTypeSchema,
1882
- condition: import_zod23.z.string(),
1856
+ condition: import_zod24.z.string(),
1883
1857
  expiresAt: ISODateStringSchema,
1884
- used: import_zod23.z.boolean(),
1885
- thumbnailUrl: import_zod23.z.string().url()
1858
+ used: import_zod24.z.boolean(),
1859
+ thumbnailUrl: import_zod24.z.string().url()
1886
1860
  });
1887
1861
 
1888
1862
  // src/domain/promotion/challenge.schema.ts
1889
- var import_zod24 = require("zod");
1890
- var RewardTypeSchema = import_zod24.z.enum([
1891
- "WEEK",
1892
- "MONTH"
1893
- ]);
1894
- var WeekProgressSchema = import_zod24.z.object({
1895
- days: import_zod24.z.array(import_zod24.z.boolean()),
1896
- completed: import_zod24.z.number().int().min(0),
1897
- goal: import_zod24.z.number().int().positive()
1863
+ var import_zod25 = require("zod");
1864
+ var RewardTypeSchema = import_zod25.z.enum(["WEEK", "MONTH"]);
1865
+ var WeekProgressSchema = import_zod25.z.object({
1866
+ days: import_zod25.z.array(import_zod25.z.boolean()),
1867
+ completed: import_zod25.z.number().int().min(0),
1868
+ goal: import_zod25.z.number().int().positive()
1898
1869
  });
1899
- var MonthProgressSchema = import_zod24.z.object({
1900
- count: import_zod24.z.number().int().min(0),
1901
- goal: import_zod24.z.number().int().positive()
1870
+ var MonthProgressSchema = import_zod25.z.object({
1871
+ count: import_zod25.z.number().int().min(0),
1872
+ goal: import_zod25.z.number().int().positive()
1902
1873
  });
1903
- var ChallengeStatusResponseSchema = import_zod24.z.object({
1874
+ var ChallengeStatusResponseSchema = import_zod25.z.object({
1904
1875
  week: WeekProgressSchema,
1905
1876
  month: MonthProgressSchema,
1906
- weekRewardAvailable: import_zod24.z.boolean(),
1907
- monthRewardAvailable: import_zod24.z.boolean()
1877
+ weekRewardAvailable: import_zod25.z.boolean(),
1878
+ monthRewardAvailable: import_zod25.z.boolean()
1908
1879
  });
1909
- var ClaimChallengeRewardRequestSchema = import_zod24.z.object({
1880
+ var ClaimChallengeRewardRequestSchema = import_zod25.z.object({
1910
1881
  type: RewardTypeSchema
1911
1882
  });
1912
- var ClaimChallengeRewardResponseSchema = import_zod24.z.object({
1883
+ var ClaimChallengeRewardResponseSchema = import_zod25.z.object({
1913
1884
  rewardType: RewardTypeSchema,
1914
- claimed: import_zod24.z.boolean()
1885
+ claimed: import_zod25.z.boolean()
1915
1886
  });
1916
1887
 
1917
1888
  // src/domain/push/push.schema.ts
1918
- var import_zod25 = require("zod");
1919
- var PushProviderSchema = import_zod25.z.enum([
1920
- "FCM",
1921
- "APNS_LIVE_ACTIVITY"
1922
- ]);
1923
- var PushPlatformSchema = import_zod25.z.enum([
1924
- "WEB",
1925
- "ANDROID",
1926
- "IOS"
1927
- ]);
1928
- var PushPermissionStatusSchema = import_zod25.z.enum([
1889
+ var import_zod26 = require("zod");
1890
+ var PushProviderSchema = import_zod26.z.enum(["FCM", "APNS_LIVE_ACTIVITY"]);
1891
+ var PushPlatformSchema = import_zod26.z.enum(["WEB", "ANDROID", "IOS"]);
1892
+ var PushPermissionStatusSchema = import_zod26.z.enum([
1929
1893
  "UNKNOWN",
1930
1894
  "PROMPT",
1931
1895
  "GRANTED",
1932
1896
  "DENIED"
1933
1897
  ]);
1934
- var PushTokenStatusSchema = import_zod25.z.enum([
1935
- "ACTIVE",
1936
- "REVOKED",
1937
- "DISABLED"
1938
- ]);
1939
- var RegisterPushTokenRequestSchema = import_zod25.z.object({
1898
+ var PushTokenStatusSchema = import_zod26.z.enum(["ACTIVE", "REVOKED", "DISABLED"]);
1899
+ var RegisterPushTokenRequestSchema = import_zod26.z.object({
1940
1900
  provider: PushProviderSchema.default("FCM"),
1941
1901
  platform: PushPlatformSchema,
1942
- token: import_zod25.z.string().min(10),
1943
- deviceId: import_zod25.z.string().min(1).max(128),
1944
- appVersion: import_zod25.z.string().min(1).max(64).optional(),
1945
- buildNumber: import_zod25.z.string().min(1).max(64).optional(),
1902
+ token: import_zod26.z.string().min(10),
1903
+ deviceId: import_zod26.z.string().min(1).max(128),
1904
+ appVersion: import_zod26.z.string().min(1).max(64).optional(),
1905
+ buildNumber: import_zod26.z.string().min(1).max(64).optional(),
1946
1906
  permissionStatus: PushPermissionStatusSchema
1947
1907
  });
1948
- var RevokePushTokenRequestSchema = import_zod25.z.object({
1908
+ var RevokePushTokenRequestSchema = import_zod26.z.object({
1949
1909
  provider: PushProviderSchema.default("FCM"),
1950
- token: import_zod25.z.string().min(10).optional(),
1951
- deviceId: import_zod25.z.string().min(1).max(128).optional()
1910
+ token: import_zod26.z.string().min(10).optional(),
1911
+ deviceId: import_zod26.z.string().min(1).max(128).optional()
1952
1912
  });
1953
- var PushTokenResponseSchema = import_zod25.z.object({
1954
- pushTokenId: import_zod25.z.string().uuid(),
1913
+ var PushTokenResponseSchema = import_zod26.z.object({
1914
+ pushTokenId: import_zod26.z.string().uuid(),
1955
1915
  provider: PushProviderSchema,
1956
1916
  platform: PushPlatformSchema,
1957
- deviceId: import_zod25.z.string(),
1917
+ deviceId: import_zod26.z.string(),
1958
1918
  status: PushTokenStatusSchema,
1959
1919
  permissionStatus: PushPermissionStatusSchema,
1960
- appVersion: import_zod25.z.string().nullable(),
1961
- buildNumber: import_zod25.z.string().nullable(),
1920
+ appVersion: import_zod26.z.string().nullable(),
1921
+ buildNumber: import_zod26.z.string().nullable(),
1962
1922
  lastSeenAt: ISODateTimeStringSchema,
1963
1923
  revokedAt: ISODateTimeStringSchema.nullable()
1964
1924
  });
1965
- var PushPayloadSchemaVersionSchema = import_zod25.z.literal("2026-06-17");
1966
- var MealPlanPushPayloadDataSchema = import_zod25.z.object({
1925
+ var PushPayloadSchemaVersionSchema = import_zod26.z.literal("2026-06-17");
1926
+ var MealPlanPushPayloadDataSchema = import_zod26.z.object({
1967
1927
  schemaVersion: PushPayloadSchemaVersionSchema,
1968
- notificationId: import_zod25.z.string().min(1),
1928
+ notificationId: import_zod26.z.string().min(1),
1969
1929
  kind: MealPlanNotificationKindSchema,
1970
1930
  mealPlanId: MealPlanIdSchema,
1971
- deepLink: import_zod25.z.string().min(1),
1972
- title: import_zod25.z.string().min(1),
1973
- body: import_zod25.z.string().min(1),
1974
- fcmPriority: import_zod25.z.coerce.number().int().min(0),
1975
- liveActivityPriority: import_zod25.z.coerce.number().int().min(0),
1931
+ deepLink: import_zod26.z.string().min(1),
1932
+ title: import_zod26.z.string().min(1),
1933
+ body: import_zod26.z.string().min(1),
1934
+ fcmPriority: import_zod26.z.coerce.number().int().min(0),
1935
+ liveActivityPriority: import_zod26.z.coerce.number().int().min(0),
1976
1936
  liveActivityBehavior: MealPlanLiveActivityBehaviorSchema
1977
1937
  });
1978
- var PushDeliveryStatusSchema = import_zod25.z.enum([
1938
+ var PushDeliveryStatusSchema = import_zod26.z.enum([
1979
1939
  "PENDING",
1980
1940
  "SENT",
1981
1941
  "FAILED",
1982
1942
  "SKIPPED"
1983
1943
  ]);
1984
- var PushDeliveryAttemptResultSchema = import_zod25.z.enum([
1944
+ var PushDeliveryAttemptResultSchema = import_zod26.z.enum([
1985
1945
  "SENT",
1986
1946
  "FAILED",
1987
1947
  "SKIPPED"
1988
1948
  ]);
1989
- var PushDeliveryAttemptSummarySchema = import_zod25.z.object({
1990
- attemptId: import_zod25.z.string().uuid(),
1991
- outboxId: import_zod25.z.string().uuid(),
1992
- pushTokenId: import_zod25.z.string().uuid().nullable(),
1949
+ var PushDeliveryAttemptSummarySchema = import_zod26.z.object({
1950
+ attemptId: import_zod26.z.string().uuid(),
1951
+ outboxId: import_zod26.z.string().uuid(),
1952
+ pushTokenId: import_zod26.z.string().uuid().nullable(),
1993
1953
  provider: PushProviderSchema,
1994
1954
  result: PushDeliveryAttemptResultSchema,
1995
- providerMessageId: import_zod25.z.string().nullable(),
1996
- errorCode: import_zod25.z.string().nullable(),
1997
- errorMessage: import_zod25.z.string().nullable(),
1998
- invalidToken: import_zod25.z.boolean(),
1955
+ providerMessageId: import_zod26.z.string().nullable(),
1956
+ errorCode: import_zod26.z.string().nullable(),
1957
+ errorMessage: import_zod26.z.string().nullable(),
1958
+ invalidToken: import_zod26.z.boolean(),
1999
1959
  createdAt: ISODateTimeStringSchema
2000
1960
  });
2001
- var PushDeliveryOutboxSummarySchema = import_zod25.z.object({
2002
- outboxId: import_zod25.z.string().uuid(),
2003
- notificationId: import_zod25.z.string().min(1),
2004
- memberId: import_zod25.z.number().int().positive(),
1961
+ var PushDeliveryOutboxSummarySchema = import_zod26.z.object({
1962
+ outboxId: import_zod26.z.string().uuid(),
1963
+ notificationId: import_zod26.z.string().min(1),
1964
+ memberId: import_zod26.z.number().int().positive(),
2005
1965
  status: PushDeliveryStatusSchema,
2006
- attemptCount: import_zod25.z.number().int().min(0),
2007
- lastError: import_zod25.z.string().nullable(),
1966
+ attemptCount: import_zod26.z.number().int().min(0),
1967
+ lastError: import_zod26.z.string().nullable(),
2008
1968
  nextAttemptAt: ISODateTimeStringSchema.nullable(),
2009
1969
  sentAt: ISODateTimeStringSchema.nullable(),
2010
1970
  createdAt: ISODateTimeStringSchema
2011
1971
  });
2012
1972
 
2013
1973
  // src/domain/live-activity/live-activity.schema.ts
2014
- var import_zod26 = require("zod");
2015
- var MealPlanLiveActivityPlatformSchema = import_zod26.z.enum([
1974
+ var import_zod27 = require("zod");
1975
+ var MealPlanLiveActivityPlatformSchema = import_zod27.z.enum([
2016
1976
  "IOS_LIVE_ACTIVITY",
2017
1977
  "ANDROID_LIVE_UPDATE"
2018
1978
  ]);
2019
- var MealPlanLiveActivitySessionStatusSchema = import_zod26.z.enum([
1979
+ var MealPlanLiveActivitySessionStatusSchema = import_zod27.z.enum([
2020
1980
  "ACTIVE",
2021
1981
  "ENDED",
2022
1982
  "EXPIRED",
2023
1983
  "DISABLED"
2024
1984
  ]);
2025
- var MealPlanLiveActivityUpdateStatusSchema = import_zod26.z.enum([
1985
+ var MealPlanLiveActivityUpdateStatusSchema = import_zod27.z.enum([
2026
1986
  "PENDING",
2027
1987
  "SENT",
2028
1988
  "FAILED",
2029
1989
  "SKIPPED"
2030
1990
  ]);
2031
- var RegisterMealPlanLiveActivitySessionRequestSchema = import_zod26.z.object({
1991
+ var RegisterMealPlanLiveActivitySessionRequestSchema = import_zod27.z.object({
2032
1992
  platform: MealPlanLiveActivityPlatformSchema,
2033
- deviceId: import_zod26.z.string().min(1).max(128),
2034
- activityId: import_zod26.z.string().min(1).max(128),
2035
- pushToken: import_zod26.z.string().min(10).optional(),
2036
- appVersion: import_zod26.z.string().min(1).max(64).optional(),
2037
- buildNumber: import_zod26.z.string().min(1).max(64).optional()
1993
+ deviceId: import_zod27.z.string().min(1).max(128),
1994
+ activityId: import_zod27.z.string().min(1).max(128),
1995
+ pushToken: import_zod27.z.string().min(10).optional(),
1996
+ appVersion: import_zod27.z.string().min(1).max(64).optional(),
1997
+ buildNumber: import_zod27.z.string().min(1).max(64).optional()
2038
1998
  });
2039
- var EndMealPlanLiveActivitySessionRequestSchema = import_zod26.z.object({
1999
+ var EndMealPlanLiveActivitySessionRequestSchema = import_zod27.z.object({
2040
2000
  platform: MealPlanLiveActivityPlatformSchema.optional(),
2041
- deviceId: import_zod26.z.string().min(1).max(128).optional(),
2042
- activityId: import_zod26.z.string().min(1).max(128).optional()
2001
+ deviceId: import_zod27.z.string().min(1).max(128).optional(),
2002
+ activityId: import_zod27.z.string().min(1).max(128).optional()
2043
2003
  });
2044
- var MealPlanLiveActivityStateSchema = import_zod26.z.object({
2004
+ var MealPlanLiveActivityStateSchema = import_zod27.z.object({
2045
2005
  mealPlanId: MealPlanIdSchema,
2046
- title: import_zod26.z.string().min(1),
2047
- status: import_zod26.z.string().min(1),
2006
+ title: import_zod27.z.string().min(1),
2007
+ status: import_zod27.z.string().min(1),
2048
2008
  scheduledAt: ISODateTimeStringSchema.nullable(),
2049
- restaurantName: import_zod26.z.string().nullable(),
2050
- placeName: import_zod26.z.string().nullable(),
2051
- deepLink: import_zod26.z.string().min(1),
2052
- progressLabel: import_zod26.z.string().min(1),
2009
+ restaurantName: import_zod27.z.string().nullable(),
2010
+ placeName: import_zod27.z.string().nullable(),
2011
+ deepLink: import_zod27.z.string().min(1),
2012
+ progressLabel: import_zod27.z.string().min(1),
2053
2013
  updatedAt: ISODateTimeStringSchema
2054
2014
  });
2055
- var MealPlanLiveActivitySessionResponseSchema = import_zod26.z.object({
2056
- sessionId: import_zod26.z.string().uuid(),
2015
+ var MealPlanLiveActivitySessionResponseSchema = import_zod27.z.object({
2016
+ sessionId: import_zod27.z.string().uuid(),
2057
2017
  mealPlanId: MealPlanIdSchema,
2058
- memberId: import_zod26.z.number().int().positive(),
2018
+ memberId: import_zod27.z.number().int().positive(),
2059
2019
  platform: MealPlanLiveActivityPlatformSchema,
2060
2020
  devicePlatform: PushPlatformSchema,
2061
- deviceId: import_zod26.z.string(),
2062
- activityId: import_zod26.z.string(),
2021
+ deviceId: import_zod27.z.string(),
2022
+ activityId: import_zod27.z.string(),
2063
2023
  status: MealPlanLiveActivitySessionStatusSchema,
2064
- appVersion: import_zod26.z.string().nullable(),
2065
- buildNumber: import_zod26.z.string().nullable(),
2024
+ appVersion: import_zod27.z.string().nullable(),
2025
+ buildNumber: import_zod27.z.string().nullable(),
2066
2026
  lastEventKind: MealPlanNotificationKindSchema.nullable(),
2067
2027
  lastBehavior: MealPlanLiveActivityBehaviorSchema.nullable(),
2068
2028
  lastUpdateStatus: MealPlanLiveActivityUpdateStatusSchema.nullable(),
2069
- lastError: import_zod26.z.string().nullable(),
2029
+ lastError: import_zod27.z.string().nullable(),
2070
2030
  startedAt: ISODateTimeStringSchema,
2071
2031
  endedAt: ISODateTimeStringSchema.nullable(),
2072
2032
  updatedAt: ISODateTimeStringSchema
2073
2033
  });
2074
- var MealPlanLiveActivitySessionListResponseSchema = import_zod26.z.object({
2034
+ var MealPlanLiveActivitySessionListResponseSchema = import_zod27.z.object({
2075
2035
  mealPlanId: MealPlanIdSchema,
2076
2036
  state: MealPlanLiveActivityStateSchema,
2077
- sessions: import_zod26.z.array(MealPlanLiveActivitySessionResponseSchema)
2037
+ sessions: import_zod27.z.array(MealPlanLiveActivitySessionResponseSchema)
2078
2038
  });
2079
2039
 
2080
2040
  // src/domain/common/contracts/endpoint.ts
2081
- var import_zod27 = require("zod");
2082
- var NoBodySchema = import_zod27.z.undefined();
2083
- var NoQuerySchema = import_zod27.z.undefined();
2084
- var NoParamsSchema = import_zod27.z.undefined();
2085
- var endpoint = /* @__PURE__ */ __name((contract) => ({
2041
+ var import_zod28 = require("zod");
2042
+ var NoBodySchema = import_zod28.z.undefined();
2043
+ var NoQuerySchema = import_zod28.z.undefined();
2044
+ var NoParamsSchema = import_zod28.z.undefined();
2045
+ var endpoint = (contract) => ({
2086
2046
  method: contract.method,
2087
2047
  path: contract.path,
2088
2048
  pathParams: contract.pathParams ?? NoParamsSchema,
2089
2049
  query: contract.query ?? NoQuerySchema,
2090
2050
  body: contract.body ?? NoBodySchema,
2091
2051
  response: contract.response
2092
- }), "endpoint");
2052
+ });
2093
2053
 
2094
2054
  // src/domain/common/contracts/api.ts
2095
- var memberIdParam = import_zod28.z.object({
2096
- memberId: MemberIdSchema
2097
- });
2098
- var articleIdParam = import_zod28.z.object({
2099
- articleId: ArticleIdSchema
2100
- });
2101
- var commentIdParam = import_zod28.z.object({
2102
- commentId: CommentIdSchema
2103
- });
2104
- var mealPlanIdParam = import_zod28.z.object({
2105
- mealPlanId: MealPlanIdSchema
2106
- });
2107
- var mealPlanInviteIdParam = import_zod28.z.object({
2108
- inviteId: MealPlanInviteIdSchema
2109
- });
2110
- var mealPlanJoinRequestIdParam = import_zod28.z.object({
2111
- requestId: MealPlanJoinRequestIdSchema
2112
- });
2055
+ var memberIdParam = import_zod29.z.object({ memberId: MemberIdSchema });
2056
+ var articleIdParam = import_zod29.z.object({ articleId: ArticleIdSchema });
2057
+ var commentIdParam = import_zod29.z.object({ commentId: CommentIdSchema });
2058
+ var mealPlanIdParam = import_zod29.z.object({ mealPlanId: MealPlanIdSchema });
2059
+ var mealPlanInviteIdParam = import_zod29.z.object({ inviteId: MealPlanInviteIdSchema });
2060
+ var mealPlanJoinRequestIdParam = import_zod29.z.object({ requestId: MealPlanJoinRequestIdSchema });
2113
2061
  var mealPlanDecisionStageIdParam = mealPlanIdParam.extend({
2114
2062
  stageId: MealPlanDecisionStageIdSchema
2115
2063
  });
@@ -2120,707 +2068,157 @@ var mealPlanDecisionTaskKeyParam = mealPlanIdParam.extend({
2120
2068
  taskKey: MealPlanDecisionTaskKeySchema
2121
2069
  });
2122
2070
  var mealPlanDecisionSnapshotIdParam = mealPlanIdParam.extend({
2123
- snapshotId: import_zod28.z.string().uuid()
2071
+ snapshotId: import_zod29.z.string().uuid()
2124
2072
  });
2125
2073
  var mealPlanParticipantIdParam = mealPlanIdParam.extend({
2126
- participantId: import_zod28.z.string().uuid()
2127
- });
2128
- var mealPlanShareTokenParam = import_zod28.z.object({
2129
- token: MealPlanShareLinkTokenSchema
2130
- });
2131
- var notificationIdParam = import_zod28.z.object({
2132
- notificationId: import_zod28.z.string().min(1)
2133
- });
2134
- var couponIdParam = import_zod28.z.object({
2135
- couponId: CouponIdSchema
2136
- });
2137
- var mealGroupIdParam = import_zod28.z.object({
2138
- mealGroupId: MealGroupIdSchema
2139
- });
2140
- var mealGroupMemberIdParam = mealGroupIdParam.extend({
2141
- memberId: MemberIdSchema
2142
- });
2143
- var friendRequestIdParam = import_zod28.z.object({
2144
- requestId: FriendRequestIdSchema
2145
- });
2146
- var sseTokenQuery = import_zod28.z.object({
2147
- token: import_zod28.z.string().min(1)
2148
- });
2074
+ participantId: import_zod29.z.string().uuid()
2075
+ });
2076
+ var mealPlanShareTokenParam = import_zod29.z.object({ token: MealPlanShareLinkTokenSchema });
2077
+ var notificationIdParam = import_zod29.z.object({ notificationId: import_zod29.z.string().min(1) });
2078
+ var couponIdParam = import_zod29.z.object({ couponId: CouponIdSchema });
2079
+ var mealGroupIdParam = import_zod29.z.object({ mealGroupId: MealGroupIdSchema });
2080
+ var mealGroupMemberIdParam = mealGroupIdParam.extend({ memberId: MemberIdSchema });
2081
+ var friendRequestIdParam = import_zod29.z.object({ requestId: FriendRequestIdSchema });
2082
+ var sseTokenQuery = import_zod29.z.object({ token: import_zod29.z.string().min(1) });
2149
2083
  var apiContract = {
2150
2084
  auth: {
2151
- signup: endpoint({
2152
- method: "POST",
2153
- path: "/auth/signup",
2154
- body: SignupRequestSchema,
2155
- response: SignupResponseSchema
2156
- }),
2157
- login: endpoint({
2158
- method: "POST",
2159
- path: "/auth/login",
2160
- body: LoginRequestSchema,
2161
- response: TokenResponseSchema
2162
- }),
2163
- refresh: endpoint({
2164
- method: "POST",
2165
- path: "/auth/refresh",
2166
- response: TokenResponseSchema
2167
- }),
2168
- logout: endpoint({
2169
- method: "POST",
2170
- path: "/auth/logout",
2171
- response: NoContentSchema
2172
- })
2085
+ signup: endpoint({ method: "POST", path: "/auth/signup", body: SignupRequestSchema, response: SignupResponseSchema }),
2086
+ login: endpoint({ method: "POST", path: "/auth/login", body: LoginRequestSchema, response: TokenResponseSchema }),
2087
+ refresh: endpoint({ method: "POST", path: "/auth/refresh", response: TokenResponseSchema }),
2088
+ logout: endpoint({ method: "POST", path: "/auth/logout", response: NoContentSchema })
2173
2089
  },
2174
2090
  members: {
2175
- me: endpoint({
2176
- method: "GET",
2177
- path: "/members/me",
2178
- response: MemberResponseSchema
2179
- }),
2180
- myProfile: endpoint({
2181
- method: "GET",
2182
- path: "/members/me/profile",
2183
- response: ProfileDetailResponseSchema
2184
- }),
2185
- search: endpoint({
2186
- method: "GET",
2187
- path: "/members/search",
2188
- query: MemberSearchQuerySchema,
2189
- response: MemberSerachResponseSchema
2190
- }),
2191
- memberProfile: endpoint({
2192
- method: "GET",
2193
- path: "/members/:memberId/profile",
2194
- pathParams: memberIdParam,
2195
- response: ProfileDetailResponseSchema
2196
- }),
2197
- presignProfileImage: endpoint({
2198
- method: "POST",
2199
- path: "/uploads/presign-profile",
2200
- body: UploadProfileImageRequestSchema,
2201
- response: UploadProfileImageResponseSchema
2202
- }),
2203
- createProfile: endpoint({
2204
- method: "POST",
2205
- path: "/members/onboarding",
2206
- body: CreateProfileRequestSchema,
2207
- response: NoContentSchema
2208
- }),
2209
- createProfileAlias: endpoint({
2210
- method: "POST",
2211
- path: "/onboarding",
2212
- body: CreateProfileRequestSchema,
2213
- response: NoContentSchema
2214
- }),
2215
- updateProfile: endpoint({
2216
- method: "PATCH",
2217
- path: "/members/me/profile",
2218
- body: UpdateProfileRequestSchema,
2219
- response: NoContentSchema
2220
- }),
2221
- locationSettings: endpoint({
2222
- method: "GET",
2223
- path: "/members/me/location-settings",
2224
- response: MemberLocationSettingsResponseSchema
2225
- }),
2226
- updateLocationConsent: endpoint({
2227
- method: "PATCH",
2228
- path: "/members/me/location-consent",
2229
- body: UpdateMemberLocationConsentRequestSchema,
2230
- response: MemberLocationSettingsResponseSchema
2231
- }),
2232
- updateLocation: endpoint({
2233
- method: "PATCH",
2234
- path: "/members/me/location",
2235
- body: UpdateMemberLocationRequestSchema,
2236
- response: MemberLocationSettingsResponseSchema
2237
- })
2091
+ me: endpoint({ method: "GET", path: "/members/me", response: MemberResponseSchema }),
2092
+ myProfile: endpoint({ method: "GET", path: "/members/me/profile", response: ProfileDetailResponseSchema }),
2093
+ search: endpoint({ method: "GET", path: "/members/search", query: MemberSearchQuerySchema, response: MemberSerachResponseSchema }),
2094
+ memberProfile: endpoint({ method: "GET", path: "/members/:memberId/profile", pathParams: memberIdParam, response: ProfileDetailResponseSchema }),
2095
+ presignProfileImage: endpoint({ method: "POST", path: "/uploads/presign-profile", body: UploadProfileImageRequestSchema, response: UploadProfileImageResponseSchema }),
2096
+ createProfile: endpoint({ method: "POST", path: "/members/onboarding", body: CreateProfileRequestSchema, response: NoContentSchema }),
2097
+ createProfileAlias: endpoint({ method: "POST", path: "/onboarding", body: CreateProfileRequestSchema, response: NoContentSchema }),
2098
+ updateProfile: endpoint({ method: "PATCH", path: "/members/me/profile", body: UpdateProfileRequestSchema, response: NoContentSchema }),
2099
+ locationSettings: endpoint({ method: "GET", path: "/members/me/location-settings", response: MemberLocationSettingsResponseSchema }),
2100
+ updateLocationConsent: endpoint({ method: "PATCH", path: "/members/me/location-consent", body: UpdateMemberLocationConsentRequestSchema, response: MemberLocationSettingsResponseSchema }),
2101
+ updateLocation: endpoint({ method: "PATCH", path: "/members/me/location", body: UpdateMemberLocationRequestSchema, response: MemberLocationSettingsResponseSchema })
2238
2102
  },
2239
2103
  preferences: {
2240
- my: endpoint({
2241
- method: "GET",
2242
- path: "/preferences/me",
2243
- response: MemberFoodPreferenceSchema
2244
- }),
2245
- update: endpoint({
2246
- method: "PATCH",
2247
- path: "/preferences/me",
2248
- body: UpdatePreferenceRequestSchema,
2249
- response: NoContentSchema
2250
- })
2104
+ my: endpoint({ method: "GET", path: "/preferences/me", response: MemberFoodPreferenceSchema }),
2105
+ update: endpoint({ method: "PATCH", path: "/preferences/me", body: UpdatePreferenceRequestSchema, response: NoContentSchema })
2251
2106
  },
2252
2107
  mealStatus: {
2253
- my: endpoint({
2254
- method: "GET",
2255
- path: "/members/me/meal-status",
2256
- response: MealStatusResponseSchema
2257
- }),
2258
- updateMealStatus: endpoint({
2259
- method: "PATCH",
2260
- path: "/members/me/meal-status",
2261
- body: UpdateMealStatusRequestSchema,
2262
- response: NoContentSchema
2263
- }),
2264
- friendMealStatus: endpoint({
2265
- method: "GET",
2266
- path: "/friends/me/meals",
2267
- query: FriendMealQuerySchema,
2268
- response: import_zod28.z.array(FriendMealItemResponseSchema)
2269
- })
2108
+ my: endpoint({ method: "GET", path: "/members/me/meal-status", response: MealStatusResponseSchema }),
2109
+ updateMealStatus: endpoint({ method: "PATCH", path: "/members/me/meal-status", body: UpdateMealStatusRequestSchema, response: NoContentSchema }),
2110
+ friendMealStatus: endpoint({ method: "GET", path: "/friends/me/meals", query: FriendMealQuerySchema, response: import_zod29.z.array(FriendMealItemResponseSchema) })
2270
2111
  },
2271
2112
  articles: {
2272
- list: endpoint({
2273
- method: "GET",
2274
- path: "/articles/home",
2275
- query: ArticleListQuerySchema,
2276
- response: PageArticleSummaryResponseSchema
2277
- }),
2278
- byMember: endpoint({
2279
- method: "GET",
2280
- path: "/articles/by-author/:memberId",
2281
- pathParams: memberIdParam,
2282
- query: ArticleListQuerySchema,
2283
- response: PageArticleSummaryResponseSchema
2284
- }),
2285
- my: endpoint({
2286
- method: "GET",
2287
- path: "/articles/my",
2288
- response: PageArticleSummaryResponseSchema
2289
- }),
2290
- detail: endpoint({
2291
- method: "GET",
2292
- path: "/articles/:articleId",
2293
- pathParams: articleIdParam,
2294
- response: ArticleDetailResponseSchema
2295
- }),
2296
- create: endpoint({
2297
- method: "POST",
2298
- path: "/articles",
2299
- body: CreateArticleRequestSchema,
2300
- response: CreatedEntityIdResponseSchema
2301
- }),
2302
- like: endpoint({
2303
- method: "POST",
2304
- path: "/articles/:articleId/like",
2305
- pathParams: articleIdParam,
2306
- response: ArticleLikeResponseSchema
2307
- }),
2308
- createComment: endpoint({
2309
- method: "POST",
2310
- path: "/articles/:articleId/comments",
2311
- pathParams: articleIdParam,
2312
- body: CreateCommentRequestSchema,
2313
- response: CreatedEntityIdResponseSchema
2314
- }),
2315
- presignArticleImage: endpoint({
2316
- method: "POST",
2317
- path: "/uploads/presign-article",
2318
- body: UploadArticleImageRequestSchema,
2319
- response: UploadArticleImageResponseSchema
2320
- }),
2321
- delete: endpoint({
2322
- method: "DELETE",
2323
- path: "/articles/:articleId",
2324
- pathParams: articleIdParam,
2325
- response: NoContentSchema
2326
- }),
2327
- deleteComment: endpoint({
2328
- method: "DELETE",
2329
- path: "/articles/comments/:commentId",
2330
- pathParams: commentIdParam,
2331
- response: NoContentSchema
2332
- })
2113
+ list: endpoint({ method: "GET", path: "/articles/home", query: ArticleListQuerySchema, response: PageArticleSummaryResponseSchema }),
2114
+ byMember: endpoint({ method: "GET", path: "/articles/by-author/:memberId", pathParams: memberIdParam, query: ArticleListQuerySchema, response: PageArticleSummaryResponseSchema }),
2115
+ my: endpoint({ method: "GET", path: "/articles/my", response: PageArticleSummaryResponseSchema }),
2116
+ detail: endpoint({ method: "GET", path: "/articles/:articleId", pathParams: articleIdParam, response: ArticleDetailResponseSchema }),
2117
+ create: endpoint({ method: "POST", path: "/articles", body: CreateArticleRequestSchema, response: CreatedEntityIdResponseSchema }),
2118
+ like: endpoint({ method: "POST", path: "/articles/:articleId/like", pathParams: articleIdParam, response: ArticleLikeResponseSchema }),
2119
+ createComment: endpoint({ method: "POST", path: "/articles/:articleId/comments", pathParams: articleIdParam, body: CreateCommentRequestSchema, response: CreatedEntityIdResponseSchema }),
2120
+ presignArticleImage: endpoint({ method: "POST", path: "/uploads/presign-article", body: UploadArticleImageRequestSchema, response: UploadArticleImageResponseSchema }),
2121
+ delete: endpoint({ method: "DELETE", path: "/articles/:articleId", pathParams: articleIdParam, response: NoContentSchema }),
2122
+ deleteComment: endpoint({ method: "DELETE", path: "/articles/comments/:commentId", pathParams: commentIdParam, response: NoContentSchema })
2333
2123
  },
2334
2124
  mealPlans: {
2335
- create: endpoint({
2336
- method: "POST",
2337
- path: "/meal-plans",
2338
- body: CreateMealPlanRequestSchema,
2339
- response: CreateMealPlanResponseSchema
2340
- }),
2341
- my: endpoint({
2342
- method: "GET",
2343
- path: "/meal-plans/me",
2344
- response: MyMealPlanListResponseSchema
2345
- }),
2346
- homeDashboard: endpoint({
2347
- method: "GET",
2348
- path: "/meal-plans/home-dashboard",
2349
- response: HomeMealPlanDashboardResponseSchema
2350
- }),
2351
- map: endpoint({
2352
- method: "GET",
2353
- path: "/meal-plans/map",
2354
- query: MealMapQuerySchema,
2355
- response: MealMapResponseSchema
2356
- }),
2357
- detail: endpoint({
2358
- method: "GET",
2359
- path: "/meal-plans/:mealPlanId",
2360
- pathParams: mealPlanIdParam,
2361
- response: MealPlanResponseSchema
2362
- }),
2363
- chatMessages: endpoint({
2364
- method: "GET",
2365
- path: "/meal-plans/:mealPlanId/chat/messages",
2366
- pathParams: mealPlanIdParam,
2367
- response: MealPlanChatMessageListResponseSchema
2368
- }),
2369
- updateContext: endpoint({
2370
- method: "PATCH",
2371
- path: "/meal-plans/:mealPlanId/context",
2372
- pathParams: mealPlanIdParam,
2373
- body: UpdateMealPlanContextRequestSchema,
2374
- response: MealPlanResponseSchema
2375
- }),
2376
- complete: endpoint({
2377
- method: "POST",
2378
- path: "/meal-plans/:mealPlanId/complete",
2379
- pathParams: mealPlanIdParam,
2380
- response: MealPlanResponseSchema
2381
- }),
2382
- cancel: endpoint({
2383
- method: "POST",
2384
- path: "/meal-plans/:mealPlanId/cancel",
2385
- pathParams: mealPlanIdParam,
2386
- response: MealPlanResponseSchema
2387
- }),
2388
- removeParticipant: endpoint({
2389
- method: "POST",
2390
- path: "/meal-plans/:mealPlanId/participants/:participantId/remove",
2391
- pathParams: mealPlanParticipantIdParam,
2392
- response: MealPlanResponseSchema
2393
- }),
2394
- recorded: endpoint({
2395
- method: "POST",
2396
- path: "/meal-plans/:mealPlanId/recorded",
2397
- pathParams: mealPlanIdParam,
2398
- response: MealPlanResponseSchema
2399
- }),
2400
- invite: endpoint({
2401
- method: "POST",
2402
- path: "/meal-plans/:mealPlanId/invites",
2403
- pathParams: mealPlanIdParam,
2404
- body: CreateMealPlanInviteRequestSchema,
2405
- response: SendMealPlanInviteResponseSchema
2406
- }),
2407
- receivedInvites: endpoint({
2408
- method: "GET",
2409
- path: "/meal-plans/invites/received",
2410
- response: MealPlanInviteListResponseSchema
2411
- }),
2412
- sentInvites: endpoint({
2413
- method: "GET",
2414
- path: "/meal-plans/invites/sent",
2415
- response: MealPlanInviteListResponseSchema
2416
- }),
2417
- acceptInvite: endpoint({
2418
- method: "POST",
2419
- path: "/meal-plans/invites/:inviteId/accept",
2420
- pathParams: mealPlanInviteIdParam,
2421
- response: MealPlanResponseSchema
2422
- }),
2423
- declineInvite: endpoint({
2424
- method: "POST",
2425
- path: "/meal-plans/invites/:inviteId/decline",
2426
- pathParams: mealPlanInviteIdParam,
2427
- response: NoContentSchema
2428
- }),
2429
- createShareLink: endpoint({
2430
- method: "POST",
2431
- path: "/meal-plans/:mealPlanId/share-links",
2432
- pathParams: mealPlanIdParam,
2433
- body: CreateMealPlanShareLinkRequestSchema,
2434
- response: MealPlanShareLinkSummarySchema
2435
- }),
2436
- sharePreview: endpoint({
2437
- method: "GET",
2438
- path: "/meal-plan-links/:token",
2439
- pathParams: mealPlanShareTokenParam,
2440
- response: MealPlanSharePreviewResponseSchema
2441
- }),
2442
- joinGuest: endpoint({
2443
- method: "POST",
2444
- path: "/meal-plan-links/:token/join",
2445
- pathParams: mealPlanShareTokenParam,
2446
- body: JoinMealPlanGuestRequestSchema,
2447
- response: JoinMealPlanGuestResponseSchema
2448
- }),
2449
- guestSession: endpoint({
2450
- method: "GET",
2451
- path: "/meal-plan-links/:token/session",
2452
- pathParams: mealPlanShareTokenParam,
2453
- query: MealPlanGuestSessionQuerySchema,
2454
- response: MealPlanGuestSessionResponseSchema
2455
- }),
2456
- guestChatMessages: endpoint({
2457
- method: "GET",
2458
- path: "/meal-plan-links/:token/chat/messages",
2459
- pathParams: mealPlanShareTokenParam,
2460
- query: MealPlanGuestSessionQuerySchema,
2461
- response: MealPlanChatMessageListResponseSchema
2462
- }),
2463
- exposeNearbyFriends: endpoint({
2464
- method: "POST",
2465
- path: "/meal-plans/:mealPlanId/nearby-friends/expose",
2466
- pathParams: mealPlanIdParam,
2467
- body: ExposeMealPlanToNearbyFriendsRequestSchema,
2468
- response: ExposeMealPlanToNearbyFriendsResponseSchema
2469
- }),
2470
- closeNearbyFriends: endpoint({
2471
- method: "DELETE",
2472
- path: "/meal-plans/:mealPlanId/nearby-friends/expose",
2473
- pathParams: mealPlanIdParam,
2474
- response: NoContentSchema
2475
- }),
2476
- nearbyFriendExposureEligibility: endpoint({
2477
- method: "GET",
2478
- path: "/meal-plans/nearby-friends/eligibility",
2479
- response: NearbyFriendExposureEligibilitySchema
2480
- }),
2481
- nearbyFriends: endpoint({
2482
- method: "GET",
2483
- path: "/meal-plans/nearby-friends",
2484
- response: import_zod28.z.array(NearbyFriendMealPlanSummarySchema)
2485
- }),
2486
- requestJoin: endpoint({
2487
- method: "POST",
2488
- path: "/meal-plans/:mealPlanId/join-requests",
2489
- pathParams: mealPlanIdParam,
2490
- body: CreateMealPlanJoinRequestSchema,
2491
- response: CreatedEntityIdResponseSchema
2492
- }),
2493
- acceptJoinRequest: endpoint({
2494
- method: "POST",
2495
- path: "/meal-plans/join-requests/:requestId/accept",
2496
- pathParams: mealPlanJoinRequestIdParam,
2497
- response: MealPlanResponseSchema
2498
- }),
2499
- rejectJoinRequest: endpoint({
2500
- method: "POST",
2501
- path: "/meal-plans/join-requests/:requestId/reject",
2502
- pathParams: mealPlanJoinRequestIdParam,
2503
- response: NoContentSchema
2504
- }),
2505
- vote: endpoint({
2506
- method: "POST",
2507
- path: "/meal-plans/:mealPlanId/stages/:stageId/votes",
2508
- pathParams: mealPlanDecisionStageIdParam,
2509
- body: CreateMealPlanVoteRequestSchema,
2510
- response: MealPlanResponseSchema
2511
- }),
2512
- completeStage: endpoint({
2513
- method: "POST",
2514
- path: "/meal-plans/:mealPlanId/stages/:stageId/complete",
2515
- pathParams: mealPlanDecisionStageIdParam,
2516
- body: CompleteMealPlanDecisionStageRequestSchema,
2517
- response: MealPlanResponseSchema
2518
- }),
2519
- decisionProgress: endpoint({
2520
- method: "GET",
2521
- path: "/meal-plans/:mealPlanId/decision-progress",
2522
- pathParams: mealPlanIdParam,
2523
- response: MealPlanDecisionProgressSchema
2524
- }),
2525
- readyDecisionTask: endpoint({
2526
- method: "POST",
2527
- path: "/meal-plans/:mealPlanId/decision-tasks/:taskKey/ready",
2528
- pathParams: mealPlanDecisionTaskKeyParam,
2529
- body: MealPlanDecisionTaskReadyRequestSchema,
2530
- response: MealPlanResponseSchema
2531
- }),
2532
- reopenDecisionTask: endpoint({
2533
- method: "POST",
2534
- path: "/meal-plans/:mealPlanId/decision-tasks/:taskKey/reopen",
2535
- pathParams: mealPlanDecisionTaskKeyParam,
2536
- body: ReopenMealPlanDecisionTaskRequestSchema,
2537
- response: MealPlanResponseSchema
2538
- }),
2539
- confirmDecisionSnapshot: endpoint({
2540
- method: "POST",
2541
- path: "/meal-plans/:mealPlanId/decision-snapshots/:snapshotId/confirm",
2542
- pathParams: mealPlanDecisionSnapshotIdParam,
2543
- body: ConfirmMealPlanDecisionSnapshotRequestSchema,
2544
- response: MealPlanResponseSchema
2545
- }),
2546
- ready: endpoint({
2547
- method: "POST",
2548
- path: "/meal-plans/:mealPlanId/ready",
2549
- pathParams: mealPlanIdParam,
2550
- response: MealPlanResponseSchema
2551
- }),
2552
- unready: endpoint({
2553
- method: "POST",
2554
- path: "/meal-plans/:mealPlanId/unready",
2555
- pathParams: mealPlanIdParam,
2556
- response: MealPlanResponseSchema
2557
- }),
2558
- createChangeRequest: endpoint({
2559
- method: "POST",
2560
- path: "/meal-plans/:mealPlanId/change-requests",
2561
- pathParams: mealPlanIdParam,
2562
- body: CreateMealPlanChangeRequestSchema,
2563
- response: CreatedEntityIdResponseSchema
2564
- }),
2565
- acceptChangeRequest: endpoint({
2566
- method: "POST",
2567
- path: "/meal-plans/:mealPlanId/change-requests/:requestId/accept",
2568
- pathParams: mealPlanChangeRequestIdParam,
2569
- response: MealPlanResponseSchema
2570
- }),
2571
- confirm: endpoint({
2572
- method: "POST",
2573
- path: "/meal-plans/:mealPlanId/confirm",
2574
- pathParams: mealPlanIdParam,
2575
- response: MealPlanResponseSchema
2576
- })
2125
+ create: endpoint({ method: "POST", path: "/meal-plans", body: CreateMealPlanRequestSchema, response: CreateMealPlanResponseSchema }),
2126
+ my: endpoint({ method: "GET", path: "/meal-plans/me", response: MyMealPlanListResponseSchema }),
2127
+ homeDashboard: endpoint({ method: "GET", path: "/meal-plans/home-dashboard", response: HomeMealPlanDashboardResponseSchema }),
2128
+ map: endpoint({ method: "GET", path: "/meal-plans/map", query: MealMapQuerySchema, response: MealMapResponseSchema }),
2129
+ detail: endpoint({ method: "GET", path: "/meal-plans/:mealPlanId", pathParams: mealPlanIdParam, response: MealPlanResponseSchema }),
2130
+ chatMessages: endpoint({ method: "GET", path: "/meal-plans/:mealPlanId/chat/messages", pathParams: mealPlanIdParam, response: MealPlanChatMessageListResponseSchema }),
2131
+ updateContext: endpoint({ method: "PATCH", path: "/meal-plans/:mealPlanId/context", pathParams: mealPlanIdParam, body: UpdateMealPlanContextRequestSchema, response: MealPlanResponseSchema }),
2132
+ complete: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/complete", pathParams: mealPlanIdParam, response: MealPlanResponseSchema }),
2133
+ cancel: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/cancel", pathParams: mealPlanIdParam, response: MealPlanResponseSchema }),
2134
+ removeParticipant: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/participants/:participantId/remove", pathParams: mealPlanParticipantIdParam, response: MealPlanResponseSchema }),
2135
+ recorded: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/recorded", pathParams: mealPlanIdParam, response: MealPlanResponseSchema }),
2136
+ invite: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/invites", pathParams: mealPlanIdParam, body: CreateMealPlanInviteRequestSchema, response: SendMealPlanInviteResponseSchema }),
2137
+ receivedInvites: endpoint({ method: "GET", path: "/meal-plans/invites/received", response: MealPlanInviteListResponseSchema }),
2138
+ sentInvites: endpoint({ method: "GET", path: "/meal-plans/invites/sent", response: MealPlanInviteListResponseSchema }),
2139
+ acceptInvite: endpoint({ method: "POST", path: "/meal-plans/invites/:inviteId/accept", pathParams: mealPlanInviteIdParam, response: MealPlanResponseSchema }),
2140
+ declineInvite: endpoint({ method: "POST", path: "/meal-plans/invites/:inviteId/decline", pathParams: mealPlanInviteIdParam, response: NoContentSchema }),
2141
+ createShareLink: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/share-links", pathParams: mealPlanIdParam, body: CreateMealPlanShareLinkRequestSchema, response: MealPlanShareLinkSummarySchema }),
2142
+ sharePreview: endpoint({ method: "GET", path: "/meal-plan-links/:token", pathParams: mealPlanShareTokenParam, response: MealPlanSharePreviewResponseSchema }),
2143
+ joinGuest: endpoint({ method: "POST", path: "/meal-plan-links/:token/join", pathParams: mealPlanShareTokenParam, body: JoinMealPlanGuestRequestSchema, response: JoinMealPlanGuestResponseSchema }),
2144
+ guestSession: endpoint({ method: "GET", path: "/meal-plan-links/:token/session", pathParams: mealPlanShareTokenParam, query: MealPlanGuestSessionQuerySchema, response: MealPlanGuestSessionResponseSchema }),
2145
+ guestChatMessages: endpoint({ method: "GET", path: "/meal-plan-links/:token/chat/messages", pathParams: mealPlanShareTokenParam, query: MealPlanGuestSessionQuerySchema, response: MealPlanChatMessageListResponseSchema }),
2146
+ exposeNearbyFriends: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/nearby-friends/expose", pathParams: mealPlanIdParam, body: ExposeMealPlanToNearbyFriendsRequestSchema, response: ExposeMealPlanToNearbyFriendsResponseSchema }),
2147
+ closeNearbyFriends: endpoint({ method: "DELETE", path: "/meal-plans/:mealPlanId/nearby-friends/expose", pathParams: mealPlanIdParam, response: NoContentSchema }),
2148
+ nearbyFriendExposureEligibility: endpoint({ method: "GET", path: "/meal-plans/nearby-friends/eligibility", response: NearbyFriendExposureEligibilitySchema }),
2149
+ nearbyFriends: endpoint({ method: "GET", path: "/meal-plans/nearby-friends", response: import_zod29.z.array(NearbyFriendMealPlanSummarySchema) }),
2150
+ requestJoin: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/join-requests", pathParams: mealPlanIdParam, body: CreateMealPlanJoinRequestSchema, response: CreatedEntityIdResponseSchema }),
2151
+ acceptJoinRequest: endpoint({ method: "POST", path: "/meal-plans/join-requests/:requestId/accept", pathParams: mealPlanJoinRequestIdParam, response: MealPlanResponseSchema }),
2152
+ rejectJoinRequest: endpoint({ method: "POST", path: "/meal-plans/join-requests/:requestId/reject", pathParams: mealPlanJoinRequestIdParam, response: NoContentSchema }),
2153
+ vote: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/stages/:stageId/votes", pathParams: mealPlanDecisionStageIdParam, body: CreateMealPlanVoteRequestSchema, response: MealPlanResponseSchema }),
2154
+ completeStage: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/stages/:stageId/complete", pathParams: mealPlanDecisionStageIdParam, body: CompleteMealPlanDecisionStageRequestSchema, response: MealPlanResponseSchema }),
2155
+ decisionProgress: endpoint({ method: "GET", path: "/meal-plans/:mealPlanId/decision-progress", pathParams: mealPlanIdParam, response: MealPlanDecisionProgressSchema }),
2156
+ reopenDecisionTask: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/decision-tasks/:taskKey/reopen", pathParams: mealPlanDecisionTaskKeyParam, body: ReopenMealPlanDecisionTaskRequestSchema, response: MealPlanResponseSchema }),
2157
+ confirmDecisionSnapshot: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/decision-snapshots/:snapshotId/confirm", pathParams: mealPlanDecisionSnapshotIdParam, body: ConfirmMealPlanDecisionSnapshotRequestSchema, response: MealPlanResponseSchema }),
2158
+ ready: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/ready", pathParams: mealPlanIdParam, response: MealPlanResponseSchema }),
2159
+ unready: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/unready", pathParams: mealPlanIdParam, response: MealPlanResponseSchema }),
2160
+ createChangeRequest: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/change-requests", pathParams: mealPlanIdParam, body: CreateMealPlanChangeRequestSchema, response: CreatedEntityIdResponseSchema }),
2161
+ acceptChangeRequest: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/change-requests/:requestId/accept", pathParams: mealPlanChangeRequestIdParam, response: MealPlanResponseSchema }),
2162
+ confirm: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/confirm", pathParams: mealPlanIdParam, response: MealPlanResponseSchema })
2577
2163
  },
2578
2164
  mealGroups: {
2579
- create: endpoint({
2580
- method: "POST",
2581
- path: "/meal-groups",
2582
- body: CreateMealGroupRequestSchema,
2583
- response: MealGroupResponseSchema
2584
- }),
2585
- list: endpoint({
2586
- method: "GET",
2587
- path: "/meal-groups",
2588
- response: import_zod28.z.array(MealGroupResponseSchema)
2589
- }),
2590
- detail: endpoint({
2591
- method: "GET",
2592
- path: "/meal-groups/:mealGroupId",
2593
- pathParams: mealGroupIdParam,
2594
- response: MealGroupResponseSchema
2595
- }),
2596
- startMealPlan: endpoint({
2597
- method: "POST",
2598
- path: "/meal-groups/:mealGroupId/meal-plans",
2599
- pathParams: mealGroupIdParam,
2600
- body: StartMealPlanFromGroupRequestSchema,
2601
- response: CreateMealPlanResponseSchema
2602
- }),
2603
- history: endpoint({
2604
- method: "GET",
2605
- path: "/meal-groups/:mealGroupId/history",
2606
- pathParams: mealGroupIdParam,
2607
- response: MealGroupHistoryResponseSchema
2608
- }),
2609
- preferences: endpoint({
2610
- method: "GET",
2611
- path: "/meal-groups/:mealGroupId/preferences",
2612
- pathParams: mealGroupIdParam,
2613
- response: MealGroupPreferenceSummarySchema
2614
- }),
2615
- addMember: endpoint({
2616
- method: "POST",
2617
- path: "/meal-groups/:mealGroupId/members",
2618
- pathParams: mealGroupIdParam,
2619
- body: AddMealGroupMemberRequestSchema,
2620
- response: MealGroupResponseSchema
2621
- }),
2622
- updateMemberRole: endpoint({
2623
- method: "PATCH",
2624
- path: "/meal-groups/:mealGroupId/members/:memberId/role",
2625
- pathParams: mealGroupMemberIdParam,
2626
- body: UpdateMealGroupMemberRoleRequestSchema,
2627
- response: MealGroupResponseSchema
2628
- }),
2629
- removeMember: endpoint({
2630
- method: "DELETE",
2631
- path: "/meal-groups/:mealGroupId/members/:memberId",
2632
- pathParams: mealGroupMemberIdParam,
2633
- response: MealGroupResponseSchema
2634
- })
2165
+ create: endpoint({ method: "POST", path: "/meal-groups", body: CreateMealGroupRequestSchema, response: MealGroupResponseSchema }),
2166
+ list: endpoint({ method: "GET", path: "/meal-groups", response: import_zod29.z.array(MealGroupResponseSchema) }),
2167
+ detail: endpoint({ method: "GET", path: "/meal-groups/:mealGroupId", pathParams: mealGroupIdParam, response: MealGroupResponseSchema }),
2168
+ startMealPlan: endpoint({ method: "POST", path: "/meal-groups/:mealGroupId/meal-plans", pathParams: mealGroupIdParam, body: StartMealPlanFromGroupRequestSchema, response: CreateMealPlanResponseSchema }),
2169
+ history: endpoint({ method: "GET", path: "/meal-groups/:mealGroupId/history", pathParams: mealGroupIdParam, response: MealGroupHistoryResponseSchema }),
2170
+ preferences: endpoint({ method: "GET", path: "/meal-groups/:mealGroupId/preferences", pathParams: mealGroupIdParam, response: MealGroupPreferenceSummarySchema }),
2171
+ addMember: endpoint({ method: "POST", path: "/meal-groups/:mealGroupId/members", pathParams: mealGroupIdParam, body: AddMealGroupMemberRequestSchema, response: MealGroupResponseSchema }),
2172
+ updateMemberRole: endpoint({ method: "PATCH", path: "/meal-groups/:mealGroupId/members/:memberId/role", pathParams: mealGroupMemberIdParam, body: UpdateMealGroupMemberRoleRequestSchema, response: MealGroupResponseSchema }),
2173
+ removeMember: endpoint({ method: "DELETE", path: "/meal-groups/:mealGroupId/members/:memberId", pathParams: mealGroupMemberIdParam, response: MealGroupResponseSchema })
2635
2174
  },
2636
2175
  friends: {
2637
- list: endpoint({
2638
- method: "GET",
2639
- path: "/friends",
2640
- response: import_zod28.z.array(FriendListItemResponseSchema)
2641
- }),
2642
- blockList: endpoint({
2643
- method: "GET",
2644
- path: "/friends/blocks",
2645
- response: import_zod28.z.array(FriendBlockItemResponseSchema)
2646
- }),
2647
- search: endpoint({
2648
- method: "GET",
2649
- path: "/friends/search",
2650
- query: MemberSearchQuerySchema,
2651
- response: MemberSerachResponseSchema
2652
- }),
2653
- incomingRequest: endpoint({
2654
- method: "GET",
2655
- path: "/friends/requests/incoming",
2656
- response: import_zod28.z.array(FriendRequestItemResponseSchema)
2657
- }),
2658
- outgoingRequest: endpoint({
2659
- method: "GET",
2660
- path: "/friends/requests/outgoing",
2661
- response: import_zod28.z.array(FriendRequestItemResponseSchema)
2662
- }),
2663
- sendRequest: endpoint({
2664
- method: "POST",
2665
- path: "/friends/requests/:memberId",
2666
- pathParams: memberIdParam,
2667
- response: NoContentSchema
2668
- }),
2669
- acceptRequest: endpoint({
2670
- method: "POST",
2671
- path: "/friends/requests/:requestId/accept",
2672
- pathParams: friendRequestIdParam,
2673
- response: NoContentSchema
2674
- }),
2675
- rejectRequest: endpoint({
2676
- method: "POST",
2677
- path: "/friends/requests/:requestId/reject",
2678
- pathParams: friendRequestIdParam,
2679
- response: NoContentSchema
2680
- }),
2681
- block: endpoint({
2682
- method: "POST",
2683
- path: "/friends/blocks/:memberId",
2684
- pathParams: memberIdParam,
2685
- response: NoContentSchema
2686
- }),
2687
- cancelRequest: endpoint({
2688
- method: "DELETE",
2689
- path: "/friends/requests/:requestId",
2690
- pathParams: friendRequestIdParam,
2691
- response: NoContentSchema
2692
- }),
2693
- unblock: endpoint({
2694
- method: "DELETE",
2695
- path: "/friends/blocks/:memberId",
2696
- pathParams: memberIdParam,
2697
- response: NoContentSchema
2698
- }),
2699
- unfriend: endpoint({
2700
- method: "DELETE",
2701
- path: "/friends/:memberId",
2702
- pathParams: memberIdParam,
2703
- response: NoContentSchema
2704
- })
2176
+ list: endpoint({ method: "GET", path: "/friends", response: import_zod29.z.array(FriendListItemResponseSchema) }),
2177
+ blockList: endpoint({ method: "GET", path: "/friends/blocks", response: import_zod29.z.array(FriendBlockItemResponseSchema) }),
2178
+ search: endpoint({ method: "GET", path: "/friends/search", query: MemberSearchQuerySchema, response: MemberSerachResponseSchema }),
2179
+ incomingRequest: endpoint({ method: "GET", path: "/friends/requests/incoming", response: import_zod29.z.array(FriendRequestItemResponseSchema) }),
2180
+ outgoingRequest: endpoint({ method: "GET", path: "/friends/requests/outgoing", response: import_zod29.z.array(FriendRequestItemResponseSchema) }),
2181
+ sendRequest: endpoint({ method: "POST", path: "/friends/requests/:memberId", pathParams: memberIdParam, response: NoContentSchema }),
2182
+ acceptRequest: endpoint({ method: "POST", path: "/friends/requests/:requestId/accept", pathParams: friendRequestIdParam, response: NoContentSchema }),
2183
+ rejectRequest: endpoint({ method: "POST", path: "/friends/requests/:requestId/reject", pathParams: friendRequestIdParam, response: NoContentSchema }),
2184
+ block: endpoint({ method: "POST", path: "/friends/blocks/:memberId", pathParams: memberIdParam, response: NoContentSchema }),
2185
+ cancelRequest: endpoint({ method: "DELETE", path: "/friends/requests/:requestId", pathParams: friendRequestIdParam, response: NoContentSchema }),
2186
+ unblock: endpoint({ method: "DELETE", path: "/friends/blocks/:memberId", pathParams: memberIdParam, response: NoContentSchema }),
2187
+ unfriend: endpoint({ method: "DELETE", path: "/friends/:memberId", pathParams: memberIdParam, response: NoContentSchema })
2705
2188
  },
2706
2189
  coupons: {
2707
- list: endpoint({
2708
- method: "GET",
2709
- path: "/coupons",
2710
- response: import_zod28.z.array(CouponResponseSchema)
2711
- }),
2712
- use: endpoint({
2713
- method: "POST",
2714
- path: "/coupons/:couponId/use",
2715
- pathParams: couponIdParam,
2716
- response: NoContentSchema
2717
- })
2190
+ list: endpoint({ method: "GET", path: "/coupons", response: import_zod29.z.array(CouponResponseSchema) }),
2191
+ use: endpoint({ method: "POST", path: "/coupons/:couponId/use", pathParams: couponIdParam, response: NoContentSchema })
2718
2192
  },
2719
2193
  challenges: {
2720
- status: endpoint({
2721
- method: "GET",
2722
- path: "/challenges/status",
2723
- response: ChallengeStatusResponseSchema
2724
- }),
2725
- claimReward: endpoint({
2726
- method: "POST",
2727
- path: "/challenges/rewards",
2728
- body: ClaimChallengeRewardRequestSchema,
2729
- response: NoContentSchema
2730
- })
2194
+ status: endpoint({ method: "GET", path: "/challenges/status", response: ChallengeStatusResponseSchema }),
2195
+ claimReward: endpoint({ method: "POST", path: "/challenges/rewards", body: ClaimChallengeRewardRequestSchema, response: NoContentSchema })
2731
2196
  },
2732
2197
  referrals: {
2733
- list: endpoint({
2734
- method: "GET",
2735
- path: "/referrals",
2736
- response: import_zod28.z.array(ReferralItemResponseSchema)
2737
- }),
2738
- create: endpoint({
2739
- method: "POST",
2740
- path: "/referrals",
2741
- response: ReferralCreateResponseSchema
2742
- }),
2743
- redeem: endpoint({
2744
- method: "POST",
2745
- path: "/referrals/redeem",
2746
- body: RedeemReferralRequestSchema,
2747
- response: NoContentSchema
2748
- })
2198
+ list: endpoint({ method: "GET", path: "/referrals", response: import_zod29.z.array(ReferralItemResponseSchema) }),
2199
+ create: endpoint({ method: "POST", path: "/referrals", response: ReferralCreateResponseSchema }),
2200
+ redeem: endpoint({ method: "POST", path: "/referrals/redeem", body: RedeemReferralRequestSchema, response: NoContentSchema })
2749
2201
  },
2750
2202
  notifications: {
2751
- list: endpoint({
2752
- method: "GET",
2753
- path: "/notifications",
2754
- response: import_zod28.z.array(MealPlanNotificationSchema)
2755
- }),
2756
- markRead: endpoint({
2757
- method: "PATCH",
2758
- path: "/notifications/:notificationId/read",
2759
- pathParams: notificationIdParam,
2760
- response: MealPlanNotificationSchema
2761
- }),
2762
- delete: endpoint({
2763
- method: "DELETE",
2764
- path: "/notifications/:notificationId",
2765
- pathParams: notificationIdParam,
2766
- response: NoContentSchema
2767
- })
2203
+ list: endpoint({ method: "GET", path: "/notifications", response: import_zod29.z.array(MealPlanNotificationSchema) }),
2204
+ markRead: endpoint({ method: "PATCH", path: "/notifications/:notificationId/read", pathParams: notificationIdParam, response: MealPlanNotificationSchema }),
2205
+ delete: endpoint({ method: "DELETE", path: "/notifications/:notificationId", pathParams: notificationIdParam, response: NoContentSchema })
2768
2206
  },
2769
2207
  pushTokens: {
2770
- list: endpoint({
2771
- method: "GET",
2772
- path: "/push-tokens",
2773
- response: import_zod28.z.array(PushTokenResponseSchema)
2774
- }),
2775
- register: endpoint({
2776
- method: "POST",
2777
- path: "/push-tokens",
2778
- body: RegisterPushTokenRequestSchema,
2779
- response: PushTokenResponseSchema
2780
- }),
2781
- revoke: endpoint({
2782
- method: "POST",
2783
- path: "/push-tokens/revoke",
2784
- body: RevokePushTokenRequestSchema,
2785
- response: NoContentSchema
2786
- })
2208
+ list: endpoint({ method: "GET", path: "/push-tokens", response: import_zod29.z.array(PushTokenResponseSchema) }),
2209
+ register: endpoint({ method: "POST", path: "/push-tokens", body: RegisterPushTokenRequestSchema, response: PushTokenResponseSchema }),
2210
+ revoke: endpoint({ method: "POST", path: "/push-tokens/revoke", body: RevokePushTokenRequestSchema, response: NoContentSchema })
2787
2211
  },
2788
2212
  liveActivities: {
2789
- listMealPlanSessions: endpoint({
2790
- method: "GET",
2791
- path: "/meal-plans/:mealPlanId/live-activity",
2792
- pathParams: mealPlanIdParam,
2793
- response: MealPlanLiveActivitySessionListResponseSchema
2794
- }),
2795
- registerMealPlanSession: endpoint({
2796
- method: "POST",
2797
- path: "/meal-plans/:mealPlanId/live-activity/sessions",
2798
- pathParams: mealPlanIdParam,
2799
- body: RegisterMealPlanLiveActivitySessionRequestSchema,
2800
- response: MealPlanLiveActivitySessionResponseSchema
2801
- }),
2802
- endMealPlanSessions: endpoint({
2803
- method: "POST",
2804
- path: "/meal-plans/:mealPlanId/live-activity/end",
2805
- pathParams: mealPlanIdParam,
2806
- body: EndMealPlanLiveActivitySessionRequestSchema,
2807
- response: NoContentSchema
2808
- })
2213
+ listMealPlanSessions: endpoint({ method: "GET", path: "/meal-plans/:mealPlanId/live-activity", pathParams: mealPlanIdParam, response: MealPlanLiveActivitySessionListResponseSchema }),
2214
+ registerMealPlanSession: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/live-activity/sessions", pathParams: mealPlanIdParam, body: RegisterMealPlanLiveActivitySessionRequestSchema, response: MealPlanLiveActivitySessionResponseSchema }),
2215
+ endMealPlanSessions: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/live-activity/end", pathParams: mealPlanIdParam, body: EndMealPlanLiveActivitySessionRequestSchema, response: NoContentSchema })
2809
2216
  },
2810
2217
  sse: {
2811
- notifications: endpoint({
2812
- method: "GET",
2813
- path: "/sse/notifications",
2814
- query: sseTokenQuery,
2815
- response: import_zod28.z.any()
2816
- })
2218
+ notifications: endpoint({ method: "GET", path: "/sse/notifications", query: sseTokenQuery, response: import_zod29.z.any() })
2817
2219
  },
2818
2220
  health: {
2819
- healthCheck: endpoint({
2820
- method: "GET",
2821
- path: "/",
2822
- response: import_zod28.z.string()
2823
- })
2221
+ healthCheck: endpoint({ method: "GET", path: "/", response: import_zod29.z.string() })
2824
2222
  }
2825
2223
  };
2826
2224
 
@@ -2832,166 +2230,29 @@ var makeApiResponseSchema = ApiResponseSchema;
2832
2230
  var makeApiSuccessSchema = ApiSuccessSchema;
2833
2231
 
2834
2232
  // src/domain/common/contracts/id.ts
2835
- var toMemberId = /* @__PURE__ */ __name((value) => MemberIdSchema.parse(value), "toMemberId");
2836
- var toArticleId = /* @__PURE__ */ __name((value) => ArticleIdSchema.parse(value), "toArticleId");
2837
- var toMealPlanId = /* @__PURE__ */ __name((value) => MealPlanIdSchema.parse(value), "toMealPlanId");
2838
- var toMealPlanInviteId = /* @__PURE__ */ __name((value) => MealPlanInviteIdSchema.parse(value), "toMealPlanInviteId");
2839
- var toMealPlanJoinRequestId = /* @__PURE__ */ __name((value) => MealPlanJoinRequestIdSchema.parse(value), "toMealPlanJoinRequestId");
2840
- var toMealPlanNearbyFriendExposureBatchId = /* @__PURE__ */ __name((value) => MealPlanNearbyFriendExposureBatchIdSchema.parse(value), "toMealPlanNearbyFriendExposureBatchId");
2841
- var toMealPlanChangeRequestId = /* @__PURE__ */ __name((value) => MealPlanChangeRequestIdSchema.parse(value), "toMealPlanChangeRequestId");
2842
- var toMealPlanShareLinkId = /* @__PURE__ */ __name((value) => MealPlanShareLinkIdSchema.parse(value), "toMealPlanShareLinkId");
2843
- var toMealPlanShareLinkToken = /* @__PURE__ */ __name((value) => MealPlanShareLinkTokenSchema.parse(value), "toMealPlanShareLinkToken");
2844
- var toMealPlanChatRoomId = /* @__PURE__ */ __name((value) => MealPlanChatRoomIdSchema.parse(value), "toMealPlanChatRoomId");
2845
- var toMealPlanChatMessageId = /* @__PURE__ */ __name((value) => MealPlanChatMessageIdSchema.parse(value), "toMealPlanChatMessageId");
2846
- var toMealGroupId = /* @__PURE__ */ __name((value) => MealGroupIdSchema.parse(value), "toMealGroupId");
2847
- var toRestaurantId = /* @__PURE__ */ __name((value) => RestaurantIdSchema.parse(value), "toRestaurantId");
2848
- var toCommentId = /* @__PURE__ */ __name((value) => CommentIdSchema.parse(value), "toCommentId");
2849
- var toCouponId = /* @__PURE__ */ __name((value) => CouponIdSchema.parse(value), "toCouponId");
2850
- var toSubscriptionId = /* @__PURE__ */ __name((value) => SubscriptionIdSchema.parse(value), "toSubscriptionId");
2851
- var toFriendRequestId = /* @__PURE__ */ __name((value) => FriendRequestIdSchema.parse(value), "toFriendRequestId");
2852
- var toReferralCode = /* @__PURE__ */ __name((value) => ReferralCodeSchema.parse(value), "toReferralCode");
2233
+ var toMemberId = (value) => MemberIdSchema.parse(value);
2234
+ var toArticleId = (value) => ArticleIdSchema.parse(value);
2235
+ var toMealPlanId = (value) => MealPlanIdSchema.parse(value);
2236
+ var toMealPlanInviteId = (value) => MealPlanInviteIdSchema.parse(value);
2237
+ var toMealPlanJoinRequestId = (value) => MealPlanJoinRequestIdSchema.parse(value);
2238
+ var toMealPlanNearbyFriendExposureBatchId = (value) => MealPlanNearbyFriendExposureBatchIdSchema.parse(value);
2239
+ var toMealPlanChangeRequestId = (value) => MealPlanChangeRequestIdSchema.parse(value);
2240
+ var toMealPlanShareLinkId = (value) => MealPlanShareLinkIdSchema.parse(value);
2241
+ var toMealPlanShareLinkToken = (value) => MealPlanShareLinkTokenSchema.parse(value);
2242
+ var toMealPlanChatRoomId = (value) => MealPlanChatRoomIdSchema.parse(value);
2243
+ var toMealPlanChatMessageId = (value) => MealPlanChatMessageIdSchema.parse(value);
2244
+ var toMealGroupId = (value) => MealGroupIdSchema.parse(value);
2245
+ var toRestaurantId = (value) => RestaurantIdSchema.parse(value);
2246
+ var toCommentId = (value) => CommentIdSchema.parse(value);
2247
+ var toCouponId = (value) => CouponIdSchema.parse(value);
2248
+ var toSubscriptionId = (value) => SubscriptionIdSchema.parse(value);
2249
+ var toFriendRequestId = (value) => FriendRequestIdSchema.parse(value);
2250
+ var toReferralCode = (value) => ReferralCodeSchema.parse(value);
2853
2251
 
2854
2252
  // src/domain/food/food.contracts.ts
2855
2253
  var FOOD_CODE_MANIFEST_PATH = "/manifests/food-code-manifest.json";
2856
2254
  var AI_CLASS_TO_FOOD_CODE_MAP_PATH = "/manifests/ai-class-to-food-code-map.json";
2857
2255
  var FOOD_IMAGE_INDEX_PATH = "/manifests/food-image-index.json";
2858
-
2859
- // src/domain/food/food.schema.ts
2860
- var import_zod29 = require("zod");
2861
- var FoodGranularitySchema = import_zod29.z.enum([
2862
- "main_dish",
2863
- "side_dish",
2864
- "beverage",
2865
- "sauce"
2866
- ]);
2867
- var CuisineTagSchema = import_zod29.z.enum([
2868
- "korean",
2869
- "western",
2870
- "chinese",
2871
- "japanese",
2872
- "mexican",
2873
- "indian",
2874
- "asian",
2875
- "snack",
2876
- "dessert",
2877
- "beverage",
2878
- "unknown"
2879
- ]);
2880
- var FoodResolvedMatchSourceSchema = import_zod29.z.enum([
2881
- "category",
2882
- "alias",
2883
- "lexical",
2884
- "semantic"
2885
- ]);
2886
- var FoodCodeManifestImageSchema = import_zod29.z.object({
2887
- src: import_zod29.z.string().min(1),
2888
- avifSrcset: import_zod29.z.string().min(1).optional(),
2889
- thumbhashDataURL: import_zod29.z.string().min(1).optional(),
2890
- aspectRatio: import_zod29.z.number().positive().optional()
2891
- });
2892
- var FoodCodeManifestItemSchema = import_zod29.z.object({
2893
- code: FoodCodeSchema,
2894
- label: FoodLabelSchema,
2895
- aliases: import_zod29.z.array(import_zod29.z.string().min(1)).default([]),
2896
- parentCategory: import_zod29.z.string().min(1),
2897
- cuisineTags: import_zod29.z.array(CuisineTagSchema).default([]),
2898
- categoryTags: import_zod29.z.array(import_zod29.z.string().min(1)).default([]),
2899
- semanticTags: import_zod29.z.array(import_zod29.z.string().min(1)).default([]),
2900
- granularity: FoodGranularitySchema,
2901
- searchable: import_zod29.z.boolean(),
2902
- recommendable: import_zod29.z.boolean(),
2903
- previewEnabled: import_zod29.z.boolean(),
2904
- imageUrl: import_zod29.z.string().min(1).nullable().optional(),
2905
- image: FoodCodeManifestImageSchema.nullable().optional(),
2906
- popularity: import_zod29.z.number().nonnegative().optional(),
2907
- source: import_zod29.z.enum([
2908
- "foodname",
2909
- "manual",
2910
- "foodai",
2911
- "legacy"
2912
- ]).optional()
2913
- });
2914
- var FoodCodeManifestSchema = import_zod29.z.object({
2915
- version: import_zod29.z.string().min(1),
2916
- updatedAt: ISODateTimeStringSchema,
2917
- taxonomyVersion: import_zod29.z.string().min(1),
2918
- etag: import_zod29.z.string().min(1).optional(),
2919
- items: import_zod29.z.array(FoodCodeManifestItemSchema),
2920
- categoryIndex: import_zod29.z.record(import_zod29.z.string(), import_zod29.z.array(FoodCodeSchema)),
2921
- aliasIndex: import_zod29.z.record(import_zod29.z.string(), import_zod29.z.array(FoodCodeSchema)).optional()
2922
- });
2923
- var FoodImageIndexItemSchema = import_zod29.z.object({
2924
- code: FoodCodeSchema,
2925
- label: FoodLabelSchema,
2926
- imageUrl: import_zod29.z.string().min(1).nullable(),
2927
- image: FoodCodeManifestImageSchema.nullable(),
2928
- source: import_zod29.z.enum([
2929
- "foodname",
2930
- "manual",
2931
- "foodai",
2932
- "legacy"
2933
- ]).optional()
2934
- });
2935
- var FoodImageIndexManifestSchema = import_zod29.z.object({
2936
- version: import_zod29.z.string().min(1),
2937
- updatedAt: ISODateTimeStringSchema,
2938
- taxonomyVersion: import_zod29.z.string().min(1),
2939
- items: import_zod29.z.array(FoodImageIndexItemSchema)
2940
- });
2941
- var ResolvedFoodCodeSchema = import_zod29.z.object({
2942
- code: FoodCodeSchema,
2943
- label: FoodLabelSchema,
2944
- matchedBy: FoodResolvedMatchSourceSchema,
2945
- score: import_zod29.z.number(),
2946
- granularity: FoodGranularitySchema,
2947
- imageUrl: import_zod29.z.string().min(1).nullable().optional()
2948
- });
2949
- var BooleanQuerySchema = import_zod29.z.preprocess((value) => {
2950
- if (value === "true") return true;
2951
- if (value === "false") return false;
2952
- return value;
2953
- }, import_zod29.z.boolean());
2954
- var FoodResolveQuerySchema = import_zod29.z.object({
2955
- q: import_zod29.z.string().default(""),
2956
- limit: import_zod29.z.coerce.number().int().min(1).max(100).optional().default(30),
2957
- recommendableOnly: BooleanQuerySchema.optional().default(true)
2958
- });
2959
- var FoodSearchQuerySchema = import_zod29.z.object({
2960
- q: import_zod29.z.string().default(""),
2961
- limit: import_zod29.z.coerce.number().int().min(1).max(100).optional().default(20)
2962
- });
2963
- var FoodResolveResponseSchema = import_zod29.z.object({
2964
- query: import_zod29.z.string(),
2965
- items: import_zod29.z.array(ResolvedFoodCodeSchema)
2966
- });
2967
- var FoodSearchResponseSchema = FoodResolveResponseSchema;
2968
- var FoodAiClassMappingStatusSchema = import_zod29.z.enum([
2969
- "exact",
2970
- "broad",
2971
- "narrow",
2972
- "merged",
2973
- "ignored",
2974
- "review_required"
2975
- ]);
2976
- var AiClassFoodCodeMappingSchema = import_zod29.z.object({
2977
- classId: import_zod29.z.number().int().nonnegative(),
2978
- aiLabel: import_zod29.z.string().min(1),
2979
- aiAliases: import_zod29.z.array(import_zod29.z.string().min(1)).default([]),
2980
- representativeCode: FoodCodeSchema.nullable(),
2981
- candidateCodes: import_zod29.z.array(FoodCodeSchema).default([]),
2982
- mappingStatus: FoodAiClassMappingStatusSchema,
2983
- granularity: FoodGranularitySchema,
2984
- searchable: import_zod29.z.boolean(),
2985
- recommendable: import_zod29.z.boolean(),
2986
- reason: import_zod29.z.string().min(1).optional()
2987
- });
2988
- var AiClassToFoodCodeMapManifestSchema = import_zod29.z.object({
2989
- version: import_zod29.z.string().min(1),
2990
- updatedAt: ISODateTimeStringSchema,
2991
- modelTaxonomyVersion: import_zod29.z.string().min(1),
2992
- serviceTaxonomyVersion: import_zod29.z.string().min(1),
2993
- classes: import_zod29.z.array(AiClassFoodCodeMappingSchema)
2994
- });
2995
2256
  // Annotate the CommonJS export names for ESM import in node:
2996
2257
  0 && (module.exports = {
2997
2258
  AI_CLASS_TO_FOOD_CODE_MAP_PATH,
@@ -3124,7 +2385,6 @@ var AiClassToFoodCodeMapManifestSchema = import_zod29.z.object({
3124
2385
  MealPlanDecisionStageTypeSchema,
3125
2386
  MealPlanDecisionTaskKeySchema,
3126
2387
  MealPlanDecisionTaskProgressSchema,
3127
- MealPlanDecisionTaskReadyRequestSchema,
3128
2388
  MealPlanDecisionTaskStatusSchema,
3129
2389
  MealPlanGuestParticipantSchema,
3130
2390
  MealPlanGuestSessionQuerySchema,