@kimdaegyu/babmukdang-shared 2.0.3 → 2.0.5

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.
@@ -161,6 +161,12 @@ __export(domain_exports, {
161
161
  MealPlanDecisionTaskKeySchema: () => MealPlanDecisionTaskKeySchema,
162
162
  MealPlanDecisionTaskProgressSchema: () => MealPlanDecisionTaskProgressSchema,
163
163
  MealPlanDecisionTaskStatusSchema: () => MealPlanDecisionTaskStatusSchema,
164
+ MealPlanDecisionVoteSocketAckSchema: () => MealPlanDecisionVoteSocketAckSchema,
165
+ MealPlanDecisionVoteSocketErrorSchema: () => MealPlanDecisionVoteSocketErrorSchema,
166
+ MealPlanDecisionVoteSocketEvent: () => MealPlanDecisionVoteSocketEvent,
167
+ MealPlanDecisionVoteSocketFailureAckSchema: () => MealPlanDecisionVoteSocketFailureAckSchema,
168
+ MealPlanDecisionVoteSocketPayloadSchema: () => MealPlanDecisionVoteSocketPayloadSchema,
169
+ MealPlanDecisionVoteSocketSuccessAckSchema: () => MealPlanDecisionVoteSocketSuccessAckSchema,
164
170
  MealPlanGuestParticipantSchema: () => MealPlanGuestParticipantSchema,
165
171
  MealPlanGuestSessionQuerySchema: () => MealPlanGuestSessionQuerySchema,
166
172
  MealPlanGuestSessionResponseSchema: () => MealPlanGuestSessionResponseSchema,
@@ -301,6 +307,7 @@ __export(domain_exports, {
301
307
  apiContract: () => apiContract,
302
308
  compareMealPlanNotificationsByPriority: () => compareMealPlanNotificationsByPriority,
303
309
  endpoint: () => endpoint,
310
+ getMealPlanDecisionCandidateKey: () => getMealPlanDecisionCandidateKey,
304
311
  getMealPlanLiveActivityBehavior: () => getMealPlanLiveActivityBehavior,
305
312
  getMealPlanNotificationPriority: () => getMealPlanNotificationPriority,
306
313
  getMealPlanNotificationPriorityPolicy: () => getMealPlanNotificationPriorityPolicy,
@@ -609,7 +616,7 @@ var SignupResponseSchema = import_zod8.z.object({
609
616
  });
610
617
 
611
618
  // src/domain/common/contracts/api.ts
612
- var import_zod29 = require("zod");
619
+ var import_zod30 = require("zod");
613
620
 
614
621
  // src/domain/common/schema/cache-invalidation.schema.ts
615
622
  var import_zod9 = require("zod");
@@ -1573,219 +1580,261 @@ var MealPlanNotificationSchema = import_zod19.z.object({
1573
1580
  readAt: ISODateTimeStringSchema.nullable()
1574
1581
  });
1575
1582
 
1576
- // src/domain/meal-plan/meal-plan-share-link.schema.ts
1583
+ // src/domain/meal-plan/meal-plan-decision.candidate-key.ts
1584
+ function getMealPlanDecisionCandidateKey(candidate) {
1585
+ switch (candidate.stageType) {
1586
+ case "DATE":
1587
+ case "TIME":
1588
+ return `${candidate.stageType}:${candidate.value}`;
1589
+ case "AREA":
1590
+ return `AREA:${candidate.value.locationId}`;
1591
+ case "MENU":
1592
+ return `MENU:${candidate.value.menuCandidateId}`;
1593
+ case "RESTAURANT":
1594
+ return `RESTAURANT:${candidate.value.candidateId ?? candidate.value.restaurantId}`;
1595
+ case "FINAL_CONFIRMATION":
1596
+ return "FINAL_CONFIRMATION:READY";
1597
+ }
1598
+ }
1599
+
1600
+ // src/domain/meal-plan/meal-plan.socket.ts
1577
1601
  var import_zod20 = require("zod");
1578
- var CreateMealPlanShareLinkRequestSchema = import_zod20.z.object({
1602
+ var MealPlanDecisionVoteSocketEvent = "mealPlan:decision:vote";
1603
+ var MealPlanDecisionVoteSocketPayloadSchema = CreateMealPlanVoteRequestSchema.extend({
1604
+ mealPlanId: MealPlanIdSchema,
1605
+ stageId: MealPlanDecisionStageIdSchema,
1606
+ guestSessionToken: import_zod20.z.string().min(1).optional()
1607
+ });
1608
+ var MealPlanDecisionVoteSocketErrorSchema = import_zod20.z.object({
1609
+ code: import_zod20.z.string().min(1),
1610
+ message: import_zod20.z.string().min(1)
1611
+ });
1612
+ var MealPlanDecisionVoteSocketSuccessAckSchema = import_zod20.z.object({
1613
+ ok: import_zod20.z.literal(true),
1614
+ mealPlan: MealPlanResponseSchema
1615
+ });
1616
+ var MealPlanDecisionVoteSocketFailureAckSchema = import_zod20.z.object({
1617
+ ok: import_zod20.z.literal(false),
1618
+ error: MealPlanDecisionVoteSocketErrorSchema
1619
+ });
1620
+ var MealPlanDecisionVoteSocketAckSchema = import_zod20.z.discriminatedUnion("ok", [
1621
+ MealPlanDecisionVoteSocketSuccessAckSchema,
1622
+ MealPlanDecisionVoteSocketFailureAckSchema
1623
+ ]);
1624
+
1625
+ // src/domain/meal-plan/meal-plan-share-link.schema.ts
1626
+ var import_zod21 = require("zod");
1627
+ var CreateMealPlanShareLinkRequestSchema = import_zod21.z.object({
1579
1628
  expiresAt: ISODateTimeStringSchema.optional(),
1580
- guestJoinEnabled: import_zod20.z.boolean().default(true)
1629
+ guestJoinEnabled: import_zod21.z.boolean().default(true)
1581
1630
  });
1582
- var MealPlanShareLinkSummarySchema = import_zod20.z.object({
1631
+ var MealPlanShareLinkSummarySchema = import_zod21.z.object({
1583
1632
  shareLinkId: MealPlanShareLinkIdSchema,
1584
1633
  mealPlanId: MealPlanIdSchema,
1585
1634
  token: MealPlanShareLinkTokenSchema,
1586
- url: import_zod20.z.string().url(),
1635
+ url: import_zod21.z.string().url(),
1587
1636
  expiresAt: ISODateTimeStringSchema,
1588
- guestJoinEnabled: import_zod20.z.boolean(),
1637
+ guestJoinEnabled: import_zod21.z.boolean(),
1589
1638
  createdAt: ISODateTimeStringSchema
1590
1639
  });
1591
- var MealPlanSharePreviewResponseSchema = import_zod20.z.object({
1640
+ var MealPlanSharePreviewResponseSchema = import_zod21.z.object({
1592
1641
  mealPlanId: MealPlanIdSchema,
1593
1642
  token: MealPlanShareLinkTokenSchema,
1594
- title: import_zod20.z.string(),
1595
- ownerName: import_zod20.z.string(),
1596
- participantCount: import_zod20.z.number().int().min(1),
1643
+ title: import_zod21.z.string(),
1644
+ ownerName: import_zod21.z.string(),
1645
+ participantCount: import_zod21.z.number().int().min(1),
1597
1646
  expiresAt: ISODateTimeStringSchema,
1598
- guestJoinEnabled: import_zod20.z.boolean()
1647
+ guestJoinEnabled: import_zod21.z.boolean()
1599
1648
  });
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()
1649
+ var JoinMealPlanGuestRequestSchema = import_zod21.z.object({
1650
+ nickname: import_zod21.z.string().min(1).max(50),
1651
+ password: import_zod21.z.string().min(1).max(100).optional()
1603
1652
  });
1604
- var JoinMealPlanGuestResponseSchema = import_zod20.z.object({
1653
+ var JoinMealPlanGuestResponseSchema = import_zod21.z.object({
1605
1654
  mealPlanId: MealPlanIdSchema,
1606
- guestId: import_zod20.z.string().min(1),
1607
- sessionToken: import_zod20.z.string().min(1)
1655
+ guestId: import_zod21.z.string().min(1),
1656
+ sessionToken: import_zod21.z.string().min(1)
1608
1657
  });
1609
- var MealPlanGuestSessionQuerySchema = import_zod20.z.object({
1610
- sessionToken: import_zod20.z.string().min(1)
1658
+ var MealPlanGuestSessionQuerySchema = import_zod21.z.object({
1659
+ sessionToken: import_zod21.z.string().min(1)
1611
1660
  });
1612
- var MealPlanGuestSessionResponseSchema = import_zod20.z.object({
1661
+ var MealPlanGuestSessionResponseSchema = import_zod21.z.object({
1613
1662
  mealPlan: MealPlanResponseSchema,
1614
1663
  token: MealPlanShareLinkTokenSchema,
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)
1664
+ guestId: import_zod21.z.string().min(1),
1665
+ nickname: import_zod21.z.string().min(1).max(50),
1666
+ sessionToken: import_zod21.z.string().min(1)
1618
1667
  });
1619
1668
 
1620
1669
  // src/domain/meal-plan/meal-group.schema.ts
1621
- var import_zod21 = require("zod");
1622
- var MealGroupMemberRoleSchema = import_zod21.z.enum([
1670
+ var import_zod22 = require("zod");
1671
+ var MealGroupMemberRoleSchema = import_zod22.z.enum([
1623
1672
  "OWNER",
1624
1673
  "MEMBER"
1625
1674
  ]);
1626
- var MealGroupMemberSchema = import_zod21.z.object({
1675
+ var MealGroupMemberSchema = import_zod22.z.object({
1627
1676
  member: MemberCoreSchema,
1628
1677
  role: MealGroupMemberRoleSchema,
1629
1678
  joinedAt: ISODateTimeStringSchema
1630
1679
  });
1631
- var MealGroupResponseSchema = import_zod21.z.object({
1680
+ var MealGroupResponseSchema = import_zod22.z.object({
1632
1681
  mealGroupId: MealGroupIdSchema,
1633
- name: import_zod21.z.string().min(1).max(50),
1682
+ name: import_zod22.z.string().min(1).max(50),
1634
1683
  owner: MemberCoreSchema,
1635
- profileImageUrl: import_zod21.z.string().url().nullable(),
1636
- members: import_zod21.z.array(MealGroupMemberSchema),
1637
- recentMealPlanIds: import_zod21.z.array(MealPlanIdSchema),
1684
+ profileImageUrl: import_zod22.z.string().url().nullable(),
1685
+ members: import_zod22.z.array(MealGroupMemberSchema),
1686
+ recentMealPlanIds: import_zod22.z.array(MealPlanIdSchema),
1638
1687
  createdAt: ISODateTimeStringSchema,
1639
1688
  updatedAt: ISODateTimeStringSchema
1640
1689
  });
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(),
1690
+ var CreateMealGroupRequestSchema = import_zod22.z.object({
1691
+ name: import_zod22.z.string().min(1).max(50),
1692
+ memberIds: import_zod22.z.array(import_zod22.z.number().int().positive()).min(1),
1693
+ profileImageUrl: import_zod22.z.string().url().nullable().optional(),
1645
1694
  sourceMealPlanId: MealPlanIdSchema.optional()
1646
1695
  });
1647
- var StartMealPlanFromGroupRequestSchema = import_zod21.z.object({
1648
- title: import_zod21.z.string().min(1).max(100).optional()
1696
+ var StartMealPlanFromGroupRequestSchema = import_zod22.z.object({
1697
+ title: import_zod22.z.string().min(1).max(100).optional()
1649
1698
  });
1650
- var AddMealGroupMemberRequestSchema = import_zod21.z.object({
1651
- memberId: import_zod21.z.number().int().positive(),
1699
+ var AddMealGroupMemberRequestSchema = import_zod22.z.object({
1700
+ memberId: import_zod22.z.number().int().positive(),
1652
1701
  role: MealGroupMemberRoleSchema.default("MEMBER")
1653
1702
  });
1654
- var UpdateMealGroupMemberRoleRequestSchema = import_zod21.z.object({
1703
+ var UpdateMealGroupMemberRoleRequestSchema = import_zod22.z.object({
1655
1704
  role: MealGroupMemberRoleSchema
1656
1705
  });
1657
1706
  var MealGroupHistoryItemSchema = MyMealPlanListItemSchema.extend({});
1658
- var MealGroupPreferenceSummarySchema = import_zod21.z.object({
1707
+ var MealGroupPreferenceSummarySchema = import_zod22.z.object({
1659
1708
  mealGroupId: MealGroupIdSchema,
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())
1709
+ frequentMenuCategories: import_zod22.z.array(import_zod22.z.object({ label: import_zod22.z.string(), count: import_zod22.z.number().int().min(0) })),
1710
+ frequentRestaurants: import_zod22.z.array(import_zod22.z.object({ restaurantName: import_zod22.z.string(), count: import_zod22.z.number().int().min(0) })),
1711
+ recentMenuCategories: import_zod22.z.array(import_zod22.z.string()),
1712
+ recommendationContext: import_zod22.z.object({
1713
+ preferredMenuCategories: import_zod22.z.array(import_zod22.z.string()),
1714
+ excludedMenuCategories: import_zod22.z.array(import_zod22.z.string()),
1715
+ candidateMenuCategories: import_zod22.z.array(import_zod22.z.string())
1667
1716
  })
1668
1717
  });
1669
- var MealGroupHistoryResponseSchema = import_zod21.z.array(MealGroupHistoryItemSchema);
1718
+ var MealGroupHistoryResponseSchema = import_zod22.z.array(MealGroupHistoryItemSchema);
1670
1719
 
1671
1720
  // src/domain/meal-plan/meal-plan-home-map.schema.ts
1672
- var import_zod22 = require("zod");
1673
- var HomeMealPlanActionKindSchema = import_zod22.z.enum([
1721
+ var import_zod23 = require("zod");
1722
+ var HomeMealPlanActionKindSchema = import_zod23.z.enum([
1674
1723
  "CONTINUE_DECISION",
1675
1724
  "TODAY_UPCOMING",
1676
1725
  "RECORD_NEEDED",
1677
1726
  "RESPOND_JOIN_REQUEST",
1678
1727
  "NOTIFICATION_FOLLOW_UP"
1679
1728
  ]);
1680
- var HomeMealPlanActionCardSchema = import_zod22.z.object({
1681
- actionId: import_zod22.z.string().min(1),
1729
+ var HomeMealPlanActionCardSchema = import_zod23.z.object({
1730
+ actionId: import_zod23.z.string().min(1),
1682
1731
  kind: HomeMealPlanActionKindSchema,
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)
1732
+ priority: import_zod23.z.number().int().min(0),
1733
+ title: import_zod23.z.string().min(1),
1734
+ description: import_zod23.z.string().min(1),
1735
+ primaryAction: import_zod23.z.object({
1736
+ label: import_zod23.z.string().min(1),
1737
+ href: import_zod23.z.string().min(1)
1689
1738
  }),
1690
1739
  mealPlan: MyMealPlanListItemSchema.nullable(),
1691
1740
  joinRequest: MealPlanJoinRequestSummarySchema.nullable(),
1692
1741
  notification: MealPlanNotificationSchema.nullable().default(null)
1693
1742
  });
1694
- var HomeMealPlanDashboardResponseSchema = import_zod22.z.object({
1743
+ var HomeMealPlanDashboardResponseSchema = import_zod23.z.object({
1695
1744
  generatedAt: ISODateTimeStringSchema,
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([
1745
+ inProgress: import_zod23.z.array(MyMealPlanListItemSchema),
1746
+ today: import_zod23.z.array(MyMealPlanListItemSchema),
1747
+ recordNeeded: import_zod23.z.array(MyMealPlanListItemSchema),
1748
+ pendingJoinRequests: import_zod23.z.array(MealPlanJoinRequestSummarySchema),
1749
+ unreadNotifications: import_zod23.z.array(MealPlanNotificationSchema).default([]),
1750
+ nextActions: import_zod23.z.array(HomeMealPlanActionCardSchema)
1751
+ });
1752
+ var MealMapLayerSchema = import_zod23.z.enum([
1704
1753
  "MY_MEAL_PLAN_PLACE",
1705
1754
  "NEARBY_FRIEND_MEAL_PLAN",
1706
1755
  "FRIEND_RECORD_LOCATION",
1707
1756
  "RESTAURANT_CANDIDATE"
1708
1757
  ]);
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(),
1758
+ var MealMapMarkerBaseSchema = import_zod23.z.object({
1759
+ markerId: import_zod23.z.string().min(1),
1760
+ lat: import_zod23.z.number().min(-90).max(90),
1761
+ lng: import_zod23.z.number().min(-180).max(180),
1762
+ title: import_zod23.z.string().min(1),
1763
+ subtitle: import_zod23.z.string().nullable(),
1764
+ href: import_zod23.z.string().min(1).nullable(),
1716
1765
  mealPlanId: MealPlanIdSchema.nullable(),
1717
1766
  articleId: ArticleIdSchema.nullable(),
1718
1767
  restaurant: RestaurantSchema.nullable(),
1719
- distanceMeters: import_zod22.z.number().int().min(0).nullable(),
1768
+ distanceMeters: import_zod23.z.number().int().min(0).nullable(),
1720
1769
  updatedAt: ISODateTimeStringSchema
1721
1770
  });
1722
- var MealMapMyMealPlanPlaceMetadataSchema = import_zod22.z.object({
1771
+ var MealMapMyMealPlanPlaceMetadataSchema = import_zod23.z.object({
1723
1772
  ownerId: MemberIdSchema.nullable().default(null),
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)
1773
+ status: import_zod23.z.string().min(1),
1774
+ participantCount: import_zod23.z.number().int().min(1),
1775
+ source: import_zod23.z.string().min(1)
1727
1776
  });
1728
- var MealMapNearbyFriendMealPlanMetadataSchema = import_zod22.z.object({
1777
+ var MealMapNearbyFriendMealPlanMetadataSchema = import_zod23.z.object({
1729
1778
  ownerId: MemberIdSchema.nullable().default(null),
1730
- ownerName: import_zod22.z.string().min(1),
1731
- participantCount: import_zod22.z.number().int().min(1),
1779
+ ownerName: import_zod23.z.string().min(1),
1780
+ participantCount: import_zod23.z.number().int().min(1),
1732
1781
  expiresAt: ISODateTimeStringSchema.nullable(),
1733
- source: import_zod22.z.string().min(1)
1782
+ source: import_zod23.z.string().min(1)
1734
1783
  });
1735
- var MealMapFriendRecordLocationMetadataSchema = import_zod22.z.object({
1784
+ var MealMapFriendRecordLocationMetadataSchema = import_zod23.z.object({
1736
1785
  authorId: MemberIdSchema.nullable().default(null),
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)
1786
+ authorName: import_zod23.z.string().min(1),
1787
+ imageUrl: import_zod23.z.string().nullable().default(null),
1788
+ mealDate: import_zod23.z.string().min(1)
1740
1789
  });
1741
- var MealMapRestaurantCandidateCompletionBlockedReasonSchema = import_zod22.z.enum([
1790
+ var MealMapRestaurantCandidateCompletionBlockedReasonSchema = import_zod23.z.enum([
1742
1791
  "OWNER_ONLY",
1743
1792
  "STAGE_ALREADY_COMPLETED",
1744
1793
  "MEAL_PLAN_NOT_MUTABLE"
1745
1794
  ]);
1746
- var MealMapRestaurantCandidateMetadataSchema = import_zod22.z.object({
1795
+ var MealMapRestaurantCandidateMetadataSchema = import_zod23.z.object({
1747
1796
  stageId: MealPlanDecisionStageIdSchema,
1748
1797
  ownerId: MemberIdSchema.nullable().default(null),
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),
1798
+ status: import_zod23.z.string().min(1),
1799
+ source: import_zod23.z.enum(["search", "fallback", "manual"]).default("search"),
1800
+ stageStatus: import_zod23.z.enum(["OPEN", "COMPLETED", "REOPENED"]).default("OPEN"),
1801
+ canVote: import_zod23.z.boolean().default(false),
1802
+ canCompleteStage: import_zod23.z.boolean().default(false),
1754
1803
  completionBlockedReason: MealMapRestaurantCandidateCompletionBlockedReasonSchema.nullable().default(null)
1755
1804
  });
1756
- var MealMapMarkerSchema = import_zod22.z.discriminatedUnion("layer", [
1805
+ var MealMapMarkerSchema = import_zod23.z.discriminatedUnion("layer", [
1757
1806
  MealMapMarkerBaseSchema.extend({
1758
- layer: import_zod22.z.literal("MY_MEAL_PLAN_PLACE"),
1807
+ layer: import_zod23.z.literal("MY_MEAL_PLAN_PLACE"),
1759
1808
  metadata: MealMapMyMealPlanPlaceMetadataSchema
1760
1809
  }),
1761
1810
  MealMapMarkerBaseSchema.extend({
1762
- layer: import_zod22.z.literal("NEARBY_FRIEND_MEAL_PLAN"),
1811
+ layer: import_zod23.z.literal("NEARBY_FRIEND_MEAL_PLAN"),
1763
1812
  metadata: MealMapNearbyFriendMealPlanMetadataSchema
1764
1813
  }),
1765
1814
  MealMapMarkerBaseSchema.extend({
1766
- layer: import_zod22.z.literal("FRIEND_RECORD_LOCATION"),
1815
+ layer: import_zod23.z.literal("FRIEND_RECORD_LOCATION"),
1767
1816
  metadata: MealMapFriendRecordLocationMetadataSchema
1768
1817
  }),
1769
1818
  MealMapMarkerBaseSchema.extend({
1770
- layer: import_zod22.z.literal("RESTAURANT_CANDIDATE"),
1819
+ layer: import_zod23.z.literal("RESTAURANT_CANDIDATE"),
1771
1820
  metadata: MealMapRestaurantCandidateMetadataSchema
1772
1821
  })
1773
1822
  ]);
1774
- var MealMapQuerySchema = import_zod22.z.object({
1775
- friendRecordDays: import_zod22.z.coerce.number().int().min(1).max(90).optional().default(7)
1823
+ var MealMapQuerySchema = import_zod23.z.object({
1824
+ friendRecordDays: import_zod23.z.coerce.number().int().min(1).max(90).optional().default(7)
1776
1825
  });
1777
- var MealMapResponseSchema = import_zod22.z.object({
1826
+ var MealMapResponseSchema = import_zod23.z.object({
1778
1827
  generatedAt: ISODateTimeStringSchema,
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"])
1828
+ center: import_zod23.z.object({
1829
+ lat: import_zod23.z.number().min(-90).max(90),
1830
+ lng: import_zod23.z.number().min(-180).max(180),
1831
+ source: import_zod23.z.enum(["LAST_KNOWN_LOCATION", "MY_MEAL_PLAN", "DEFAULT"])
1783
1832
  }),
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)
1833
+ layers: import_zod23.z.object({
1834
+ myMealPlanPlaces: import_zod23.z.array(MealMapMarkerSchema),
1835
+ nearbyFriendMealPlans: import_zod23.z.array(MealMapMarkerSchema),
1836
+ friendRecordLocations: import_zod23.z.array(MealMapMarkerSchema),
1837
+ restaurantCandidates: import_zod23.z.array(MealMapMarkerSchema)
1789
1838
  })
1790
1839
  });
1791
1840
 
@@ -1826,222 +1875,222 @@ function compareMealPlanNotificationsByPriority(channel) {
1826
1875
  }
1827
1876
 
1828
1877
  // src/domain/promotion/referral.schema.ts
1829
- var import_zod23 = require("zod");
1830
- var ReferralCreateResponseSchema = import_zod23.z.object({
1878
+ var import_zod24 = require("zod");
1879
+ var ReferralCreateResponseSchema = import_zod24.z.object({
1831
1880
  code: ReferralCodeSchema,
1832
- link: import_zod23.z.string().url(),
1881
+ link: import_zod24.z.string().url(),
1833
1882
  expiresAt: ISODateTimeStringSchema
1834
1883
  });
1835
- var ReferralItemResponseSchema = import_zod23.z.object({
1884
+ var ReferralItemResponseSchema = import_zod24.z.object({
1836
1885
  code: ReferralCodeSchema,
1837
1886
  createdAt: ISODateTimeStringSchema,
1838
1887
  expiresAt: ISODateTimeStringSchema,
1839
- used: import_zod23.z.boolean(),
1888
+ used: import_zod24.z.boolean(),
1840
1889
  usedByMemberId: MemberIdSchema.nullable(),
1841
- usedByUsername: import_zod23.z.string().nullable()
1890
+ usedByUsername: import_zod24.z.string().nullable()
1842
1891
  });
1843
- var RedeemReferralRequestSchema = import_zod23.z.object({
1892
+ var RedeemReferralRequestSchema = import_zod24.z.object({
1844
1893
  code: ReferralCodeSchema
1845
1894
  });
1846
1895
 
1847
1896
  // src/domain/promotion/coupon.schema.ts
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({
1897
+ var import_zod25 = require("zod");
1898
+ var CouponTypeSchema = import_zod25.z.enum(["DISCOUNT", "SERVICE"]);
1899
+ var CouponStatusSchema = import_zod25.z.enum(["UNUSED", "USED"]);
1900
+ var CouponResponseSchema = import_zod25.z.object({
1852
1901
  couponId: CouponIdSchema,
1853
- title: import_zod24.z.string(),
1854
- shopName: import_zod24.z.string(),
1902
+ title: import_zod25.z.string(),
1903
+ shopName: import_zod25.z.string(),
1855
1904
  type: CouponTypeSchema,
1856
- condition: import_zod24.z.string(),
1905
+ condition: import_zod25.z.string(),
1857
1906
  expiresAt: ISODateStringSchema,
1858
- used: import_zod24.z.boolean(),
1859
- thumbnailUrl: import_zod24.z.string().url()
1907
+ used: import_zod25.z.boolean(),
1908
+ thumbnailUrl: import_zod25.z.string().url()
1860
1909
  });
1861
1910
 
1862
1911
  // src/domain/promotion/challenge.schema.ts
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()
1912
+ var import_zod26 = require("zod");
1913
+ var RewardTypeSchema = import_zod26.z.enum(["WEEK", "MONTH"]);
1914
+ var WeekProgressSchema = import_zod26.z.object({
1915
+ days: import_zod26.z.array(import_zod26.z.boolean()),
1916
+ completed: import_zod26.z.number().int().min(0),
1917
+ goal: import_zod26.z.number().int().positive()
1869
1918
  });
1870
- var MonthProgressSchema = import_zod25.z.object({
1871
- count: import_zod25.z.number().int().min(0),
1872
- goal: import_zod25.z.number().int().positive()
1919
+ var MonthProgressSchema = import_zod26.z.object({
1920
+ count: import_zod26.z.number().int().min(0),
1921
+ goal: import_zod26.z.number().int().positive()
1873
1922
  });
1874
- var ChallengeStatusResponseSchema = import_zod25.z.object({
1923
+ var ChallengeStatusResponseSchema = import_zod26.z.object({
1875
1924
  week: WeekProgressSchema,
1876
1925
  month: MonthProgressSchema,
1877
- weekRewardAvailable: import_zod25.z.boolean(),
1878
- monthRewardAvailable: import_zod25.z.boolean()
1926
+ weekRewardAvailable: import_zod26.z.boolean(),
1927
+ monthRewardAvailable: import_zod26.z.boolean()
1879
1928
  });
1880
- var ClaimChallengeRewardRequestSchema = import_zod25.z.object({
1929
+ var ClaimChallengeRewardRequestSchema = import_zod26.z.object({
1881
1930
  type: RewardTypeSchema
1882
1931
  });
1883
- var ClaimChallengeRewardResponseSchema = import_zod25.z.object({
1932
+ var ClaimChallengeRewardResponseSchema = import_zod26.z.object({
1884
1933
  rewardType: RewardTypeSchema,
1885
- claimed: import_zod25.z.boolean()
1934
+ claimed: import_zod26.z.boolean()
1886
1935
  });
1887
1936
 
1888
1937
  // src/domain/push/push.schema.ts
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([
1938
+ var import_zod27 = require("zod");
1939
+ var PushProviderSchema = import_zod27.z.enum(["FCM", "APNS_LIVE_ACTIVITY"]);
1940
+ var PushPlatformSchema = import_zod27.z.enum(["WEB", "ANDROID", "IOS"]);
1941
+ var PushPermissionStatusSchema = import_zod27.z.enum([
1893
1942
  "UNKNOWN",
1894
1943
  "PROMPT",
1895
1944
  "GRANTED",
1896
1945
  "DENIED"
1897
1946
  ]);
1898
- var PushTokenStatusSchema = import_zod26.z.enum(["ACTIVE", "REVOKED", "DISABLED"]);
1899
- var RegisterPushTokenRequestSchema = import_zod26.z.object({
1947
+ var PushTokenStatusSchema = import_zod27.z.enum(["ACTIVE", "REVOKED", "DISABLED"]);
1948
+ var RegisterPushTokenRequestSchema = import_zod27.z.object({
1900
1949
  provider: PushProviderSchema.default("FCM"),
1901
1950
  platform: PushPlatformSchema,
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(),
1951
+ token: import_zod27.z.string().min(10),
1952
+ deviceId: import_zod27.z.string().min(1).max(128),
1953
+ appVersion: import_zod27.z.string().min(1).max(64).optional(),
1954
+ buildNumber: import_zod27.z.string().min(1).max(64).optional(),
1906
1955
  permissionStatus: PushPermissionStatusSchema
1907
1956
  });
1908
- var RevokePushTokenRequestSchema = import_zod26.z.object({
1957
+ var RevokePushTokenRequestSchema = import_zod27.z.object({
1909
1958
  provider: PushProviderSchema.default("FCM"),
1910
- token: import_zod26.z.string().min(10).optional(),
1911
- deviceId: import_zod26.z.string().min(1).max(128).optional()
1959
+ token: import_zod27.z.string().min(10).optional(),
1960
+ deviceId: import_zod27.z.string().min(1).max(128).optional()
1912
1961
  });
1913
- var PushTokenResponseSchema = import_zod26.z.object({
1914
- pushTokenId: import_zod26.z.string().uuid(),
1962
+ var PushTokenResponseSchema = import_zod27.z.object({
1963
+ pushTokenId: import_zod27.z.string().uuid(),
1915
1964
  provider: PushProviderSchema,
1916
1965
  platform: PushPlatformSchema,
1917
- deviceId: import_zod26.z.string(),
1966
+ deviceId: import_zod27.z.string(),
1918
1967
  status: PushTokenStatusSchema,
1919
1968
  permissionStatus: PushPermissionStatusSchema,
1920
- appVersion: import_zod26.z.string().nullable(),
1921
- buildNumber: import_zod26.z.string().nullable(),
1969
+ appVersion: import_zod27.z.string().nullable(),
1970
+ buildNumber: import_zod27.z.string().nullable(),
1922
1971
  lastSeenAt: ISODateTimeStringSchema,
1923
1972
  revokedAt: ISODateTimeStringSchema.nullable()
1924
1973
  });
1925
- var PushPayloadSchemaVersionSchema = import_zod26.z.literal("2026-06-17");
1926
- var MealPlanPushPayloadDataSchema = import_zod26.z.object({
1974
+ var PushPayloadSchemaVersionSchema = import_zod27.z.literal("2026-06-17");
1975
+ var MealPlanPushPayloadDataSchema = import_zod27.z.object({
1927
1976
  schemaVersion: PushPayloadSchemaVersionSchema,
1928
- notificationId: import_zod26.z.string().min(1),
1977
+ notificationId: import_zod27.z.string().min(1),
1929
1978
  kind: MealPlanNotificationKindSchema,
1930
1979
  mealPlanId: MealPlanIdSchema,
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),
1980
+ deepLink: import_zod27.z.string().min(1),
1981
+ title: import_zod27.z.string().min(1),
1982
+ body: import_zod27.z.string().min(1),
1983
+ fcmPriority: import_zod27.z.coerce.number().int().min(0),
1984
+ liveActivityPriority: import_zod27.z.coerce.number().int().min(0),
1936
1985
  liveActivityBehavior: MealPlanLiveActivityBehaviorSchema
1937
1986
  });
1938
- var PushDeliveryStatusSchema = import_zod26.z.enum([
1987
+ var PushDeliveryStatusSchema = import_zod27.z.enum([
1939
1988
  "PENDING",
1940
1989
  "SENT",
1941
1990
  "FAILED",
1942
1991
  "SKIPPED"
1943
1992
  ]);
1944
- var PushDeliveryAttemptResultSchema = import_zod26.z.enum([
1993
+ var PushDeliveryAttemptResultSchema = import_zod27.z.enum([
1945
1994
  "SENT",
1946
1995
  "FAILED",
1947
1996
  "SKIPPED"
1948
1997
  ]);
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(),
1998
+ var PushDeliveryAttemptSummarySchema = import_zod27.z.object({
1999
+ attemptId: import_zod27.z.string().uuid(),
2000
+ outboxId: import_zod27.z.string().uuid(),
2001
+ pushTokenId: import_zod27.z.string().uuid().nullable(),
1953
2002
  provider: PushProviderSchema,
1954
2003
  result: PushDeliveryAttemptResultSchema,
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(),
2004
+ providerMessageId: import_zod27.z.string().nullable(),
2005
+ errorCode: import_zod27.z.string().nullable(),
2006
+ errorMessage: import_zod27.z.string().nullable(),
2007
+ invalidToken: import_zod27.z.boolean(),
1959
2008
  createdAt: ISODateTimeStringSchema
1960
2009
  });
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(),
2010
+ var PushDeliveryOutboxSummarySchema = import_zod27.z.object({
2011
+ outboxId: import_zod27.z.string().uuid(),
2012
+ notificationId: import_zod27.z.string().min(1),
2013
+ memberId: import_zod27.z.number().int().positive(),
1965
2014
  status: PushDeliveryStatusSchema,
1966
- attemptCount: import_zod26.z.number().int().min(0),
1967
- lastError: import_zod26.z.string().nullable(),
2015
+ attemptCount: import_zod27.z.number().int().min(0),
2016
+ lastError: import_zod27.z.string().nullable(),
1968
2017
  nextAttemptAt: ISODateTimeStringSchema.nullable(),
1969
2018
  sentAt: ISODateTimeStringSchema.nullable(),
1970
2019
  createdAt: ISODateTimeStringSchema
1971
2020
  });
1972
2021
 
1973
2022
  // src/domain/live-activity/live-activity.schema.ts
1974
- var import_zod27 = require("zod");
1975
- var MealPlanLiveActivityPlatformSchema = import_zod27.z.enum([
2023
+ var import_zod28 = require("zod");
2024
+ var MealPlanLiveActivityPlatformSchema = import_zod28.z.enum([
1976
2025
  "IOS_LIVE_ACTIVITY",
1977
2026
  "ANDROID_LIVE_UPDATE"
1978
2027
  ]);
1979
- var MealPlanLiveActivitySessionStatusSchema = import_zod27.z.enum([
2028
+ var MealPlanLiveActivitySessionStatusSchema = import_zod28.z.enum([
1980
2029
  "ACTIVE",
1981
2030
  "ENDED",
1982
2031
  "EXPIRED",
1983
2032
  "DISABLED"
1984
2033
  ]);
1985
- var MealPlanLiveActivityUpdateStatusSchema = import_zod27.z.enum([
2034
+ var MealPlanLiveActivityUpdateStatusSchema = import_zod28.z.enum([
1986
2035
  "PENDING",
1987
2036
  "SENT",
1988
2037
  "FAILED",
1989
2038
  "SKIPPED"
1990
2039
  ]);
1991
- var RegisterMealPlanLiveActivitySessionRequestSchema = import_zod27.z.object({
2040
+ var RegisterMealPlanLiveActivitySessionRequestSchema = import_zod28.z.object({
1992
2041
  platform: MealPlanLiveActivityPlatformSchema,
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()
2042
+ deviceId: import_zod28.z.string().min(1).max(128),
2043
+ activityId: import_zod28.z.string().min(1).max(128),
2044
+ pushToken: import_zod28.z.string().min(10).optional(),
2045
+ appVersion: import_zod28.z.string().min(1).max(64).optional(),
2046
+ buildNumber: import_zod28.z.string().min(1).max(64).optional()
1998
2047
  });
1999
- var EndMealPlanLiveActivitySessionRequestSchema = import_zod27.z.object({
2048
+ var EndMealPlanLiveActivitySessionRequestSchema = import_zod28.z.object({
2000
2049
  platform: MealPlanLiveActivityPlatformSchema.optional(),
2001
- deviceId: import_zod27.z.string().min(1).max(128).optional(),
2002
- activityId: import_zod27.z.string().min(1).max(128).optional()
2050
+ deviceId: import_zod28.z.string().min(1).max(128).optional(),
2051
+ activityId: import_zod28.z.string().min(1).max(128).optional()
2003
2052
  });
2004
- var MealPlanLiveActivityStateSchema = import_zod27.z.object({
2053
+ var MealPlanLiveActivityStateSchema = import_zod28.z.object({
2005
2054
  mealPlanId: MealPlanIdSchema,
2006
- title: import_zod27.z.string().min(1),
2007
- status: import_zod27.z.string().min(1),
2055
+ title: import_zod28.z.string().min(1),
2056
+ status: import_zod28.z.string().min(1),
2008
2057
  scheduledAt: ISODateTimeStringSchema.nullable(),
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),
2058
+ restaurantName: import_zod28.z.string().nullable(),
2059
+ placeName: import_zod28.z.string().nullable(),
2060
+ deepLink: import_zod28.z.string().min(1),
2061
+ progressLabel: import_zod28.z.string().min(1),
2013
2062
  updatedAt: ISODateTimeStringSchema
2014
2063
  });
2015
- var MealPlanLiveActivitySessionResponseSchema = import_zod27.z.object({
2016
- sessionId: import_zod27.z.string().uuid(),
2064
+ var MealPlanLiveActivitySessionResponseSchema = import_zod28.z.object({
2065
+ sessionId: import_zod28.z.string().uuid(),
2017
2066
  mealPlanId: MealPlanIdSchema,
2018
- memberId: import_zod27.z.number().int().positive(),
2067
+ memberId: import_zod28.z.number().int().positive(),
2019
2068
  platform: MealPlanLiveActivityPlatformSchema,
2020
2069
  devicePlatform: PushPlatformSchema,
2021
- deviceId: import_zod27.z.string(),
2022
- activityId: import_zod27.z.string(),
2070
+ deviceId: import_zod28.z.string(),
2071
+ activityId: import_zod28.z.string(),
2023
2072
  status: MealPlanLiveActivitySessionStatusSchema,
2024
- appVersion: import_zod27.z.string().nullable(),
2025
- buildNumber: import_zod27.z.string().nullable(),
2073
+ appVersion: import_zod28.z.string().nullable(),
2074
+ buildNumber: import_zod28.z.string().nullable(),
2026
2075
  lastEventKind: MealPlanNotificationKindSchema.nullable(),
2027
2076
  lastBehavior: MealPlanLiveActivityBehaviorSchema.nullable(),
2028
2077
  lastUpdateStatus: MealPlanLiveActivityUpdateStatusSchema.nullable(),
2029
- lastError: import_zod27.z.string().nullable(),
2078
+ lastError: import_zod28.z.string().nullable(),
2030
2079
  startedAt: ISODateTimeStringSchema,
2031
2080
  endedAt: ISODateTimeStringSchema.nullable(),
2032
2081
  updatedAt: ISODateTimeStringSchema
2033
2082
  });
2034
- var MealPlanLiveActivitySessionListResponseSchema = import_zod27.z.object({
2083
+ var MealPlanLiveActivitySessionListResponseSchema = import_zod28.z.object({
2035
2084
  mealPlanId: MealPlanIdSchema,
2036
2085
  state: MealPlanLiveActivityStateSchema,
2037
- sessions: import_zod27.z.array(MealPlanLiveActivitySessionResponseSchema)
2086
+ sessions: import_zod28.z.array(MealPlanLiveActivitySessionResponseSchema)
2038
2087
  });
2039
2088
 
2040
2089
  // src/domain/common/contracts/endpoint.ts
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();
2090
+ var import_zod29 = require("zod");
2091
+ var NoBodySchema = import_zod29.z.undefined();
2092
+ var NoQuerySchema = import_zod29.z.undefined();
2093
+ var NoParamsSchema = import_zod29.z.undefined();
2045
2094
  var endpoint = (contract) => ({
2046
2095
  method: contract.method,
2047
2096
  path: contract.path,
@@ -2052,12 +2101,12 @@ var endpoint = (contract) => ({
2052
2101
  });
2053
2102
 
2054
2103
  // src/domain/common/contracts/api.ts
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 });
2104
+ var memberIdParam = import_zod30.z.object({ memberId: MemberIdSchema });
2105
+ var articleIdParam = import_zod30.z.object({ articleId: ArticleIdSchema });
2106
+ var commentIdParam = import_zod30.z.object({ commentId: CommentIdSchema });
2107
+ var mealPlanIdParam = import_zod30.z.object({ mealPlanId: MealPlanIdSchema });
2108
+ var mealPlanInviteIdParam = import_zod30.z.object({ inviteId: MealPlanInviteIdSchema });
2109
+ var mealPlanJoinRequestIdParam = import_zod30.z.object({ requestId: MealPlanJoinRequestIdSchema });
2061
2110
  var mealPlanDecisionStageIdParam = mealPlanIdParam.extend({
2062
2111
  stageId: MealPlanDecisionStageIdSchema
2063
2112
  });
@@ -2068,18 +2117,18 @@ var mealPlanDecisionTaskKeyParam = mealPlanIdParam.extend({
2068
2117
  taskKey: MealPlanDecisionTaskKeySchema
2069
2118
  });
2070
2119
  var mealPlanDecisionSnapshotIdParam = mealPlanIdParam.extend({
2071
- snapshotId: import_zod29.z.string().uuid()
2120
+ snapshotId: import_zod30.z.string().uuid()
2072
2121
  });
2073
2122
  var mealPlanParticipantIdParam = mealPlanIdParam.extend({
2074
- participantId: import_zod29.z.string().uuid()
2123
+ participantId: import_zod30.z.string().uuid()
2075
2124
  });
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 });
2125
+ var mealPlanShareTokenParam = import_zod30.z.object({ token: MealPlanShareLinkTokenSchema });
2126
+ var notificationIdParam = import_zod30.z.object({ notificationId: import_zod30.z.string().min(1) });
2127
+ var couponIdParam = import_zod30.z.object({ couponId: CouponIdSchema });
2128
+ var mealGroupIdParam = import_zod30.z.object({ mealGroupId: MealGroupIdSchema });
2080
2129
  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) });
2130
+ var friendRequestIdParam = import_zod30.z.object({ requestId: FriendRequestIdSchema });
2131
+ var sseTokenQuery = import_zod30.z.object({ token: import_zod30.z.string().min(1) });
2083
2132
  var apiContract = {
2084
2133
  auth: {
2085
2134
  signup: endpoint({ method: "POST", path: "/auth/signup", body: SignupRequestSchema, response: SignupResponseSchema }),
@@ -2107,7 +2156,7 @@ var apiContract = {
2107
2156
  mealStatus: {
2108
2157
  my: endpoint({ method: "GET", path: "/members/me/meal-status", response: MealStatusResponseSchema }),
2109
2158
  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) })
2159
+ friendMealStatus: endpoint({ method: "GET", path: "/friends/me/meals", query: FriendMealQuerySchema, response: import_zod30.z.array(FriendMealItemResponseSchema) })
2111
2160
  },
2112
2161
  articles: {
2113
2162
  list: endpoint({ method: "GET", path: "/articles/home", query: ArticleListQuerySchema, response: PageArticleSummaryResponseSchema }),
@@ -2146,11 +2195,10 @@ var apiContract = {
2146
2195
  exposeNearbyFriends: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/nearby-friends/expose", pathParams: mealPlanIdParam, body: ExposeMealPlanToNearbyFriendsRequestSchema, response: ExposeMealPlanToNearbyFriendsResponseSchema }),
2147
2196
  closeNearbyFriends: endpoint({ method: "DELETE", path: "/meal-plans/:mealPlanId/nearby-friends/expose", pathParams: mealPlanIdParam, response: NoContentSchema }),
2148
2197
  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) }),
2198
+ nearbyFriends: endpoint({ method: "GET", path: "/meal-plans/nearby-friends", response: import_zod30.z.array(NearbyFriendMealPlanSummarySchema) }),
2150
2199
  requestJoin: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/join-requests", pathParams: mealPlanIdParam, body: CreateMealPlanJoinRequestSchema, response: CreatedEntityIdResponseSchema }),
2151
2200
  acceptJoinRequest: endpoint({ method: "POST", path: "/meal-plans/join-requests/:requestId/accept", pathParams: mealPlanJoinRequestIdParam, response: MealPlanResponseSchema }),
2152
2201
  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
2202
  completeStage: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/stages/:stageId/complete", pathParams: mealPlanDecisionStageIdParam, body: CompleteMealPlanDecisionStageRequestSchema, response: MealPlanResponseSchema }),
2155
2203
  decisionProgress: endpoint({ method: "GET", path: "/meal-plans/:mealPlanId/decision-progress", pathParams: mealPlanIdParam, response: MealPlanDecisionProgressSchema }),
2156
2204
  reopenDecisionTask: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/decision-tasks/:taskKey/reopen", pathParams: mealPlanDecisionTaskKeyParam, body: ReopenMealPlanDecisionTaskRequestSchema, response: MealPlanResponseSchema }),
@@ -2163,7 +2211,7 @@ var apiContract = {
2163
2211
  },
2164
2212
  mealGroups: {
2165
2213
  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) }),
2214
+ list: endpoint({ method: "GET", path: "/meal-groups", response: import_zod30.z.array(MealGroupResponseSchema) }),
2167
2215
  detail: endpoint({ method: "GET", path: "/meal-groups/:mealGroupId", pathParams: mealGroupIdParam, response: MealGroupResponseSchema }),
2168
2216
  startMealPlan: endpoint({ method: "POST", path: "/meal-groups/:mealGroupId/meal-plans", pathParams: mealGroupIdParam, body: StartMealPlanFromGroupRequestSchema, response: CreateMealPlanResponseSchema }),
2169
2217
  history: endpoint({ method: "GET", path: "/meal-groups/:mealGroupId/history", pathParams: mealGroupIdParam, response: MealGroupHistoryResponseSchema }),
@@ -2173,11 +2221,11 @@ var apiContract = {
2173
2221
  removeMember: endpoint({ method: "DELETE", path: "/meal-groups/:mealGroupId/members/:memberId", pathParams: mealGroupMemberIdParam, response: MealGroupResponseSchema })
2174
2222
  },
2175
2223
  friends: {
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) }),
2224
+ list: endpoint({ method: "GET", path: "/friends", response: import_zod30.z.array(FriendListItemResponseSchema) }),
2225
+ blockList: endpoint({ method: "GET", path: "/friends/blocks", response: import_zod30.z.array(FriendBlockItemResponseSchema) }),
2178
2226
  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) }),
2227
+ incomingRequest: endpoint({ method: "GET", path: "/friends/requests/incoming", response: import_zod30.z.array(FriendRequestItemResponseSchema) }),
2228
+ outgoingRequest: endpoint({ method: "GET", path: "/friends/requests/outgoing", response: import_zod30.z.array(FriendRequestItemResponseSchema) }),
2181
2229
  sendRequest: endpoint({ method: "POST", path: "/friends/requests/:memberId", pathParams: memberIdParam, response: NoContentSchema }),
2182
2230
  acceptRequest: endpoint({ method: "POST", path: "/friends/requests/:requestId/accept", pathParams: friendRequestIdParam, response: NoContentSchema }),
2183
2231
  rejectRequest: endpoint({ method: "POST", path: "/friends/requests/:requestId/reject", pathParams: friendRequestIdParam, response: NoContentSchema }),
@@ -2187,7 +2235,7 @@ var apiContract = {
2187
2235
  unfriend: endpoint({ method: "DELETE", path: "/friends/:memberId", pathParams: memberIdParam, response: NoContentSchema })
2188
2236
  },
2189
2237
  coupons: {
2190
- list: endpoint({ method: "GET", path: "/coupons", response: import_zod29.z.array(CouponResponseSchema) }),
2238
+ list: endpoint({ method: "GET", path: "/coupons", response: import_zod30.z.array(CouponResponseSchema) }),
2191
2239
  use: endpoint({ method: "POST", path: "/coupons/:couponId/use", pathParams: couponIdParam, response: NoContentSchema })
2192
2240
  },
2193
2241
  challenges: {
@@ -2195,17 +2243,17 @@ var apiContract = {
2195
2243
  claimReward: endpoint({ method: "POST", path: "/challenges/rewards", body: ClaimChallengeRewardRequestSchema, response: NoContentSchema })
2196
2244
  },
2197
2245
  referrals: {
2198
- list: endpoint({ method: "GET", path: "/referrals", response: import_zod29.z.array(ReferralItemResponseSchema) }),
2246
+ list: endpoint({ method: "GET", path: "/referrals", response: import_zod30.z.array(ReferralItemResponseSchema) }),
2199
2247
  create: endpoint({ method: "POST", path: "/referrals", response: ReferralCreateResponseSchema }),
2200
2248
  redeem: endpoint({ method: "POST", path: "/referrals/redeem", body: RedeemReferralRequestSchema, response: NoContentSchema })
2201
2249
  },
2202
2250
  notifications: {
2203
- list: endpoint({ method: "GET", path: "/notifications", response: import_zod29.z.array(MealPlanNotificationSchema) }),
2251
+ list: endpoint({ method: "GET", path: "/notifications", response: import_zod30.z.array(MealPlanNotificationSchema) }),
2204
2252
  markRead: endpoint({ method: "PATCH", path: "/notifications/:notificationId/read", pathParams: notificationIdParam, response: MealPlanNotificationSchema }),
2205
2253
  delete: endpoint({ method: "DELETE", path: "/notifications/:notificationId", pathParams: notificationIdParam, response: NoContentSchema })
2206
2254
  },
2207
2255
  pushTokens: {
2208
- list: endpoint({ method: "GET", path: "/push-tokens", response: import_zod29.z.array(PushTokenResponseSchema) }),
2256
+ list: endpoint({ method: "GET", path: "/push-tokens", response: import_zod30.z.array(PushTokenResponseSchema) }),
2209
2257
  register: endpoint({ method: "POST", path: "/push-tokens", body: RegisterPushTokenRequestSchema, response: PushTokenResponseSchema }),
2210
2258
  revoke: endpoint({ method: "POST", path: "/push-tokens/revoke", body: RevokePushTokenRequestSchema, response: NoContentSchema })
2211
2259
  },
@@ -2215,10 +2263,10 @@ var apiContract = {
2215
2263
  endMealPlanSessions: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/live-activity/end", pathParams: mealPlanIdParam, body: EndMealPlanLiveActivitySessionRequestSchema, response: NoContentSchema })
2216
2264
  },
2217
2265
  sse: {
2218
- notifications: endpoint({ method: "GET", path: "/sse/notifications", query: sseTokenQuery, response: import_zod29.z.any() })
2266
+ notifications: endpoint({ method: "GET", path: "/sse/notifications", query: sseTokenQuery, response: import_zod30.z.any() })
2219
2267
  },
2220
2268
  health: {
2221
- healthCheck: endpoint({ method: "GET", path: "/", response: import_zod29.z.string() })
2269
+ healthCheck: endpoint({ method: "GET", path: "/", response: import_zod30.z.string() })
2222
2270
  }
2223
2271
  };
2224
2272
 
@@ -2386,6 +2434,12 @@ var FOOD_IMAGE_INDEX_PATH = "/manifests/food-image-index.json";
2386
2434
  MealPlanDecisionTaskKeySchema,
2387
2435
  MealPlanDecisionTaskProgressSchema,
2388
2436
  MealPlanDecisionTaskStatusSchema,
2437
+ MealPlanDecisionVoteSocketAckSchema,
2438
+ MealPlanDecisionVoteSocketErrorSchema,
2439
+ MealPlanDecisionVoteSocketEvent,
2440
+ MealPlanDecisionVoteSocketFailureAckSchema,
2441
+ MealPlanDecisionVoteSocketPayloadSchema,
2442
+ MealPlanDecisionVoteSocketSuccessAckSchema,
2389
2443
  MealPlanGuestParticipantSchema,
2390
2444
  MealPlanGuestSessionQuerySchema,
2391
2445
  MealPlanGuestSessionResponseSchema,
@@ -2526,6 +2580,7 @@ var FOOD_IMAGE_INDEX_PATH = "/manifests/food-image-index.json";
2526
2580
  apiContract,
2527
2581
  compareMealPlanNotificationsByPriority,
2528
2582
  endpoint,
2583
+ getMealPlanDecisionCandidateKey,
2529
2584
  getMealPlanLiveActivityBehavior,
2530
2585
  getMealPlanNotificationPriority,
2531
2586
  getMealPlanNotificationPriorityPolicy,