@kimdaegyu/babmukdang-shared 2.0.2 → 2.0.4

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 (53) hide show
  1. package/dist/{chunk-IPANLE7B.js → chunk-2W4HVSYK.js} +83 -71
  2. package/dist/{chunk-TOXRHSD6.js → chunk-7JYVBXKQ.js} +1 -1
  3. package/dist/chunk-BSJC7OVV.js +10 -0
  4. package/dist/{chunk-YV734GYZ.js → chunk-C63TN7L3.js} +9 -26
  5. package/dist/{chunk-Q4BPFDVB.js → chunk-CGFW5LYV.js} +6 -34
  6. package/dist/{chunk-EX7S5FI5.js → chunk-CUOJE3ER.js} +4 -4
  7. package/dist/{chunk-QUAG5LF5.js → chunk-EQLAVUHF.js} +6 -13
  8. package/dist/chunk-FODWQLEY.js +346 -0
  9. package/dist/{chunk-GESEM4IA.js → chunk-HHU5TRDP.js} +6 -17
  10. package/dist/{chunk-EYZU5HPG.js → chunk-HRM3FQPL.js} +1 -4
  11. package/dist/{chunk-P3MYMK34.js → chunk-IRAFNZDL.js} +12 -20
  12. package/dist/chunk-IW342TDD.js +457 -0
  13. package/dist/{chunk-DRCY5UNQ.js → chunk-Q6Y2NBB6.js} +6 -11
  14. package/dist/{chunk-G7TITUHT.js → chunk-QFPVAJ2U.js} +1 -1
  15. package/dist/{chunk-TIOX7OHA.js → chunk-QPTK7F7Y.js} +27 -61
  16. package/dist/{chunk-65DWKLP6.js → chunk-RZPNVRRS.js} +5 -14
  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 +734 -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 +772 -1476
  31. package/dist/domain/index.d.cts +15 -5
  32. package/dist/domain/index.d.ts +15 -5
  33. package/dist/domain/index.js +85 -73
  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 +499 -426
  39. package/dist/domain/meal-plan/index.d.cts +1355 -50
  40. package/dist/domain/meal-plan/index.d.ts +1355 -50
  41. package/dist/domain/meal-plan/index.js +19 -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 +766 -1475
  50. package/dist/index.js +17 -16
  51. package/package.json +1 -1
  52. package/dist/chunk-3BLXZW4U.js +0 -338
  53. 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 });
@@ -101,7 +100,7 @@ __export(common_exports, {
101
100
  module.exports = __toCommonJS(common_exports);
102
101
 
103
102
  // src/domain/common/contracts/api.ts
104
- var import_zod28 = require("zod");
103
+ var import_zod29 = require("zod");
105
104
 
106
105
  // src/domain/article/article.schema.ts
107
106
  var import_zod7 = require("zod");
@@ -110,10 +109,7 @@ var import_zod7 = require("zod");
110
109
  var import_zod = require("zod");
111
110
  var isoDateRegex = /^\d{4}-\d{2}-\d{2}$/;
112
111
  var ISODateStringSchema = import_zod.z.string().regex(isoDateRegex, "Expected ISO date string in YYYY-MM-DD format");
113
- var ISODateTimeStringSchema = import_zod.z.string().datetime({
114
- offset: true,
115
- message: "Expected ISO datetime string"
116
- });
112
+ var ISODateTimeStringSchema = import_zod.z.string().datetime({ offset: true, message: "Expected ISO datetime string" });
117
113
  var TimeHHmmStringSchema = import_zod.z.string().regex(/^\d{2}:\d{2}$/, "Expected time string in HH:mm format");
118
114
 
119
115
  // src/domain/common/schema/id.schema.ts
@@ -160,14 +156,11 @@ var PageMetaSchema = import_zod3.z.object({
160
156
  hasNext: import_zod3.z.boolean(),
161
157
  hasPrevious: import_zod3.z.boolean()
162
158
  });
163
- var PageResponseSchema = /* @__PURE__ */ __name((item) => import_zod3.z.object({
159
+ var PageResponseSchema = (item) => import_zod3.z.object({
164
160
  items: import_zod3.z.array(item),
165
161
  meta: PageMetaSchema
166
- }), "PageResponseSchema");
167
- var SortDirectionSchema = import_zod3.z.enum([
168
- "asc",
169
- "desc"
170
- ]);
162
+ });
163
+ var SortDirectionSchema = import_zod3.z.enum(["asc", "desc"]);
171
164
 
172
165
  // src/domain/member/member.schema.ts
173
166
  var import_zod5 = require("zod");
@@ -184,24 +177,10 @@ var UploadPresignImageRequestSchema = import_zod4.default.object({
184
177
  });
185
178
 
186
179
  // src/domain/member/member.schema.ts
187
- var MemberRoleSchema = import_zod5.z.enum([
188
- "USER",
189
- "ADMIN"
190
- ]);
191
- var LocationConsentStatusSchema = import_zod5.z.enum([
192
- "UNKNOWN",
193
- "GRANTED",
194
- "DENIED"
195
- ]);
196
- var OnboardingStatusSchema = import_zod5.z.enum([
197
- "REQUIRED",
198
- "COMPLETED"
199
- ]);
200
- var PermissionKindSchema = import_zod5.z.enum([
201
- "LOCATION",
202
- "NOTIFICATION",
203
- "CAMERA"
204
- ]);
180
+ var MemberRoleSchema = import_zod5.z.enum(["USER", "ADMIN"]);
181
+ var LocationConsentStatusSchema = import_zod5.z.enum(["UNKNOWN", "GRANTED", "DENIED"]);
182
+ var OnboardingStatusSchema = import_zod5.z.enum(["REQUIRED", "COMPLETED"]);
183
+ var PermissionKindSchema = import_zod5.z.enum(["LOCATION", "NOTIFICATION", "CAMERA"]);
205
184
  var PermissionStatusSchema = import_zod5.z.enum([
206
185
  "UNKNOWN",
207
186
  "PROMPT",
@@ -210,12 +189,7 @@ var PermissionStatusSchema = import_zod5.z.enum([
210
189
  "LIMITED",
211
190
  "UNSUPPORTED"
212
191
  ]);
213
- var PermissionPlatformSchema = import_zod5.z.enum([
214
- "WEB",
215
- "IOS",
216
- "ANDROID",
217
- "UNKNOWN"
218
- ]);
192
+ var PermissionPlatformSchema = import_zod5.z.enum(["WEB", "IOS", "ANDROID", "UNKNOWN"]);
219
193
  var DevicePermissionSnapshotSchema = import_zod5.z.object({
220
194
  kind: PermissionKindSchema,
221
195
  status: PermissionStatusSchema,
@@ -289,7 +263,9 @@ var UpdateProfileRequestSchema = import_zod5.z.object({
289
263
  bio: import_zod5.z.string().max(500).nullable()
290
264
  });
291
265
  var UpdatePreferenceRequestSchema = MemberFoodPreferenceSchema;
292
- var CompleteOnboardingRequestSchema = UpdateProfileRequestSchema.merge(UpdatePreferenceRequestSchema);
266
+ var CompleteOnboardingRequestSchema = UpdateProfileRequestSchema.merge(
267
+ UpdatePreferenceRequestSchema
268
+ );
293
269
  var OnboardingDraftSchema = import_zod5.z.object({
294
270
  username: import_zod5.z.string().min(1).max(50).optional(),
295
271
  profileImageUrl: import_zod5.z.string().url().nullable().optional(),
@@ -330,11 +306,7 @@ var KakaoPlaceRawSchema = import_zod6.z.object({
330
306
  });
331
307
 
332
308
  // src/domain/article/article.schema.ts
333
- var ArticleSortBySchema = import_zod7.z.enum([
334
- "createdAt",
335
- "likeCount",
336
- "commentCount"
337
- ]);
309
+ var ArticleSortBySchema = import_zod7.z.enum(["createdAt", "likeCount", "commentCount"]);
338
310
  var ArticleListQuerySchema = PageQuerySchema.extend({
339
311
  sortBy: ArticleSortBySchema.optional().default("createdAt"),
340
312
  direction: SortDirectionSchema.optional().default("desc")
@@ -456,10 +428,7 @@ var CacheInvalidationEventSchema = import_zod9.z.object({
456
428
  type: import_zod9.z.literal("cache.invalidate"),
457
429
  entity: CacheInvalidationEntitySchema,
458
430
  action: CacheInvalidationActionSchema,
459
- id: import_zod9.z.union([
460
- import_zod9.z.string(),
461
- import_zod9.z.number()
462
- ]).optional(),
431
+ id: import_zod9.z.union([import_zod9.z.string(), import_zod9.z.number()]).optional(),
463
432
  keys: import_zod9.z.array(CacheInvalidationKeySchema).min(1),
464
433
  occurredAt: import_zod9.z.string().datetime()
465
434
  });
@@ -467,77 +436,36 @@ var CacheInvalidationEventSchema = import_zod9.z.object({
467
436
  // src/domain/common/schema/envelope.schema.ts
468
437
  var import_zod10 = require("zod");
469
438
  var NoContentSchema = import_zod10.z.null();
470
- var ApiSuccessSchema = /* @__PURE__ */ __name((data) => import_zod10.z.object({
439
+ var ApiSuccessSchema = (data) => import_zod10.z.object({
471
440
  success: import_zod10.z.literal(true),
472
441
  code: import_zod10.z.number().int(),
473
442
  message: import_zod10.z.string(),
474
443
  data
475
- }), "ApiSuccessSchema");
444
+ });
476
445
  var ApiFailureSchema = import_zod10.z.object({
477
446
  success: import_zod10.z.literal(false),
478
447
  status: import_zod10.z.number().int(),
479
448
  code: import_zod10.z.string(),
480
449
  message: import_zod10.z.string()
481
450
  });
482
- var ApiResponseSchema = /* @__PURE__ */ __name((data) => import_zod10.z.union([
483
- ApiSuccessSchema(data),
484
- ApiFailureSchema
485
- ]), "ApiResponseSchema");
451
+ var ApiResponseSchema = (data) => import_zod10.z.union([ApiSuccessSchema(data), ApiFailureSchema]);
486
452
  var CreatedEntityIdResponseSchema = import_zod10.z.discriminatedUnion("entity", [
487
- import_zod10.z.object({
488
- entity: import_zod10.z.literal("article"),
489
- id: ArticleIdSchema
490
- }),
491
- import_zod10.z.object({
492
- entity: import_zod10.z.literal("comment"),
493
- id: CommentIdSchema
494
- }),
495
- import_zod10.z.object({
496
- entity: import_zod10.z.literal("subscription"),
497
- id: SubscriptionIdSchema
498
- }),
499
- import_zod10.z.object({
500
- entity: import_zod10.z.literal("coupon"),
501
- id: CouponIdSchema
502
- }),
503
- import_zod10.z.object({
504
- entity: import_zod10.z.literal("mealPlan"),
505
- id: MealPlanIdSchema
506
- }),
507
- import_zod10.z.object({
508
- entity: import_zod10.z.literal("mealPlanInvite"),
509
- id: MealPlanInviteIdSchema
510
- }),
511
- import_zod10.z.object({
512
- entity: import_zod10.z.literal("mealPlanJoinRequest"),
513
- id: MealPlanJoinRequestIdSchema
514
- }),
515
- import_zod10.z.object({
516
- entity: import_zod10.z.literal("mealPlanChangeRequest"),
517
- id: MealPlanChangeRequestIdSchema
518
- }),
519
- import_zod10.z.object({
520
- entity: import_zod10.z.literal("mealPlanShareLink"),
521
- id: MealPlanShareLinkIdSchema
522
- }),
523
- import_zod10.z.object({
524
- entity: import_zod10.z.literal("mealPlanChatMessage"),
525
- id: MealPlanChatMessageIdSchema
526
- }),
527
- import_zod10.z.object({
528
- entity: import_zod10.z.literal("mealGroup"),
529
- id: MealGroupIdSchema
530
- })
453
+ import_zod10.z.object({ entity: import_zod10.z.literal("article"), id: ArticleIdSchema }),
454
+ import_zod10.z.object({ entity: import_zod10.z.literal("comment"), id: CommentIdSchema }),
455
+ import_zod10.z.object({ entity: import_zod10.z.literal("subscription"), id: SubscriptionIdSchema }),
456
+ import_zod10.z.object({ entity: import_zod10.z.literal("coupon"), id: CouponIdSchema }),
457
+ import_zod10.z.object({ entity: import_zod10.z.literal("mealPlan"), id: MealPlanIdSchema }),
458
+ import_zod10.z.object({ entity: import_zod10.z.literal("mealPlanInvite"), id: MealPlanInviteIdSchema }),
459
+ import_zod10.z.object({ entity: import_zod10.z.literal("mealPlanJoinRequest"), id: MealPlanJoinRequestIdSchema }),
460
+ import_zod10.z.object({ entity: import_zod10.z.literal("mealPlanChangeRequest"), id: MealPlanChangeRequestIdSchema }),
461
+ import_zod10.z.object({ entity: import_zod10.z.literal("mealPlanShareLink"), id: MealPlanShareLinkIdSchema }),
462
+ import_zod10.z.object({ entity: import_zod10.z.literal("mealPlanChatMessage"), id: MealPlanChatMessageIdSchema }),
463
+ import_zod10.z.object({ entity: import_zod10.z.literal("mealGroup"), id: MealGroupIdSchema })
531
464
  ]);
532
465
 
533
466
  // src/domain/friend/friend.schema.ts
534
467
  var import_zod11 = require("zod");
535
- var FriendRequestStatusSchema = import_zod11.z.enum([
536
- "PENDING",
537
- "ACCEPTED",
538
- "REJECTED",
539
- "CANCELED"
540
- ]);
468
+ var FriendRequestStatusSchema = import_zod11.z.enum(["PENDING", "ACCEPTED", "REJECTED", "CANCELED"]);
541
469
  var FriendMealAvailabilitySchema = import_zod11.z.object({
542
470
  isHungry: import_zod11.z.boolean(),
543
471
  mealProposalAllowed: import_zod11.z.boolean(),
@@ -570,18 +498,11 @@ var MealStatusResponseSchema = import_zod12.z.object({
570
498
  updatedAt: ISODateStringSchema,
571
499
  secondsToAutoOff: import_zod12.z.number().int().min(0)
572
500
  });
573
- var MealStatusActionSchema = import_zod12.z.enum([
574
- "ARTICLE_UPLOAD",
575
- "SET_MANNUALY"
576
- ]);
501
+ var MealStatusActionSchema = import_zod12.z.enum(["ARTICLE_UPLOAD", "SET_MANNUALY"]);
577
502
  var UpdateMealStatusRequestSchema = import_zod12.z.object({
578
503
  action: MealStatusActionSchema.optional().default("SET_MANNUALY")
579
504
  });
580
- var MealStatusSchema = import_zod12.z.enum([
581
- "ALL",
582
- "HUNGRY",
583
- "NOT_HUNGRY"
584
- ]);
505
+ var MealStatusSchema = import_zod12.z.enum(["ALL", "HUNGRY", "NOT_HUNGRY"]);
585
506
  var FriendMealQuerySchema = import_zod12.z.object({
586
507
  status: MealStatusSchema.optional().default("ALL")
587
508
  });
@@ -592,57 +513,175 @@ var FriendMealItemResponseSchema = MemberCoreSchema.extend({
592
513
  });
593
514
 
594
515
  // src/domain/meal-plan/meal-plan.schema.ts
595
- var import_zod18 = require("zod");
516
+ var import_zod19 = require("zod");
596
517
 
597
518
  // src/domain/meal-plan/meal-plan-decision.schema.ts
519
+ var import_zod14 = require("zod");
520
+
521
+ // src/domain/food/food.schema.ts
598
522
  var import_zod13 = require("zod");
599
- var MealPlanLatitudeSchema = import_zod13.z.number().brand();
600
- var MealPlanLongitudeSchema = import_zod13.z.number().brand();
601
- var MealPlanLocationCandidateIdSchema = import_zod13.z.string().min(1).brand();
602
- var MealPlanMenuCandidateIdSchema = import_zod13.z.string().min(1).brand();
603
- var MealPlanDecisionStageIdSchema = import_zod13.z.string().uuid().brand();
604
- var MealPlanVoteIdSchema = import_zod13.z.string().uuid().brand();
605
- var MealPlanLocationCandidateSourceSchema = import_zod13.z.enum([
523
+ var FoodGranularitySchema = import_zod13.z.enum(["main_dish", "side_dish", "beverage", "sauce"]);
524
+ var CuisineTagSchema = import_zod13.z.enum([
525
+ "korean",
526
+ "western",
527
+ "chinese",
528
+ "japanese",
529
+ "mexican",
530
+ "indian",
531
+ "asian",
532
+ "snack",
533
+ "dessert",
534
+ "beverage",
535
+ "unknown"
536
+ ]);
537
+ var FoodResolvedMatchSourceSchema = import_zod13.z.enum(["category", "alias", "lexical", "semantic"]);
538
+ var FoodCodeManifestImageSchema = import_zod13.z.object({
539
+ src: import_zod13.z.string().min(1),
540
+ avifSrcset: import_zod13.z.string().min(1).optional(),
541
+ thumbhashDataURL: import_zod13.z.string().min(1).optional(),
542
+ aspectRatio: import_zod13.z.number().positive().optional()
543
+ });
544
+ var FoodCodeManifestItemSchema = import_zod13.z.object({
545
+ code: FoodCodeSchema,
546
+ label: FoodLabelSchema,
547
+ aliases: import_zod13.z.array(import_zod13.z.string().min(1)).default([]),
548
+ parentCategory: import_zod13.z.string().min(1),
549
+ cuisineTags: import_zod13.z.array(CuisineTagSchema).default([]),
550
+ categoryTags: import_zod13.z.array(import_zod13.z.string().min(1)).default([]),
551
+ semanticTags: import_zod13.z.array(import_zod13.z.string().min(1)).default([]),
552
+ granularity: FoodGranularitySchema,
553
+ searchable: import_zod13.z.boolean(),
554
+ recommendable: import_zod13.z.boolean(),
555
+ previewEnabled: import_zod13.z.boolean(),
556
+ imageUrl: import_zod13.z.string().min(1).nullable().optional(),
557
+ image: FoodCodeManifestImageSchema.nullable().optional(),
558
+ popularity: import_zod13.z.number().nonnegative().optional(),
559
+ source: import_zod13.z.enum(["foodname", "manual", "foodai", "legacy"]).optional()
560
+ });
561
+ var FoodCodeManifestSchema = import_zod13.z.object({
562
+ version: import_zod13.z.string().min(1),
563
+ updatedAt: ISODateTimeStringSchema,
564
+ taxonomyVersion: import_zod13.z.string().min(1),
565
+ etag: import_zod13.z.string().min(1).optional(),
566
+ items: import_zod13.z.array(FoodCodeManifestItemSchema),
567
+ categoryIndex: import_zod13.z.record(import_zod13.z.string(), import_zod13.z.array(FoodCodeSchema)),
568
+ aliasIndex: import_zod13.z.record(import_zod13.z.string(), import_zod13.z.array(FoodCodeSchema)).optional()
569
+ });
570
+ var FoodImageIndexItemSchema = import_zod13.z.object({
571
+ code: FoodCodeSchema,
572
+ label: FoodLabelSchema,
573
+ imageUrl: import_zod13.z.string().min(1).nullable(),
574
+ image: FoodCodeManifestImageSchema.nullable(),
575
+ source: import_zod13.z.enum(["foodname", "manual", "foodai", "legacy"]).optional()
576
+ });
577
+ var FoodImageIndexManifestSchema = import_zod13.z.object({
578
+ version: import_zod13.z.string().min(1),
579
+ updatedAt: ISODateTimeStringSchema,
580
+ taxonomyVersion: import_zod13.z.string().min(1),
581
+ items: import_zod13.z.array(FoodImageIndexItemSchema)
582
+ });
583
+ var ResolvedFoodCodeSchema = import_zod13.z.object({
584
+ code: FoodCodeSchema,
585
+ label: FoodLabelSchema,
586
+ matchedBy: FoodResolvedMatchSourceSchema,
587
+ score: import_zod13.z.number(),
588
+ granularity: FoodGranularitySchema,
589
+ imageUrl: import_zod13.z.string().min(1).nullable().optional()
590
+ });
591
+ var BooleanQuerySchema = import_zod13.z.preprocess((value) => {
592
+ if (value === "true") return true;
593
+ if (value === "false") return false;
594
+ return value;
595
+ }, import_zod13.z.boolean());
596
+ var FoodResolveQuerySchema = import_zod13.z.object({
597
+ q: import_zod13.z.string().default(""),
598
+ limit: import_zod13.z.coerce.number().int().min(1).max(100).optional().default(30),
599
+ recommendableOnly: BooleanQuerySchema.optional().default(true)
600
+ });
601
+ var FoodSearchQuerySchema = import_zod13.z.object({
602
+ q: import_zod13.z.string().default(""),
603
+ limit: import_zod13.z.coerce.number().int().min(1).max(100).optional().default(20)
604
+ });
605
+ var FoodResolveResponseSchema = import_zod13.z.object({
606
+ query: import_zod13.z.string(),
607
+ items: import_zod13.z.array(ResolvedFoodCodeSchema)
608
+ });
609
+ var FoodAiClassMappingStatusSchema = import_zod13.z.enum([
610
+ "exact",
611
+ "broad",
612
+ "narrow",
613
+ "merged",
614
+ "ignored",
615
+ "review_required"
616
+ ]);
617
+ var AiClassFoodCodeMappingSchema = import_zod13.z.object({
618
+ classId: import_zod13.z.number().int().nonnegative(),
619
+ aiLabel: import_zod13.z.string().min(1),
620
+ aiAliases: import_zod13.z.array(import_zod13.z.string().min(1)).default([]),
621
+ representativeCode: FoodCodeSchema.nullable(),
622
+ candidateCodes: import_zod13.z.array(FoodCodeSchema).default([]),
623
+ mappingStatus: FoodAiClassMappingStatusSchema,
624
+ granularity: FoodGranularitySchema,
625
+ searchable: import_zod13.z.boolean(),
626
+ recommendable: import_zod13.z.boolean(),
627
+ reason: import_zod13.z.string().min(1).optional()
628
+ });
629
+ var AiClassToFoodCodeMapManifestSchema = import_zod13.z.object({
630
+ version: import_zod13.z.string().min(1),
631
+ updatedAt: ISODateTimeStringSchema,
632
+ modelTaxonomyVersion: import_zod13.z.string().min(1),
633
+ serviceTaxonomyVersion: import_zod13.z.string().min(1),
634
+ classes: import_zod13.z.array(AiClassFoodCodeMappingSchema)
635
+ });
636
+
637
+ // src/domain/meal-plan/meal-plan-decision.schema.ts
638
+ var MealPlanLatitudeSchema = import_zod14.z.number().brand();
639
+ var MealPlanLongitudeSchema = import_zod14.z.number().brand();
640
+ var MealPlanLocationCandidateIdSchema = import_zod14.z.string().min(1).brand();
641
+ var MealPlanMenuCandidateIdSchema = import_zod14.z.string().min(1).brand();
642
+ var MealPlanDecisionStageIdSchema = import_zod14.z.string().uuid().brand();
643
+ var MealPlanVoteIdSchema = import_zod14.z.string().uuid().brand();
644
+ var MealPlanLocationCandidateSourceSchema = import_zod14.z.enum([
606
645
  "manual",
646
+ "map-marker",
607
647
  "midpoint",
648
+ "user-location",
608
649
  "search",
609
650
  "recent-place",
610
651
  "fallback"
611
652
  ]);
612
- var MealPlanLocationCandidateSchema = import_zod13.z.object({
653
+ var MealPlanLocationCandidateSchema = import_zod14.z.object({
613
654
  locationId: MealPlanLocationCandidateIdSchema,
614
- placeName: import_zod13.z.string().min(1),
655
+ placeName: import_zod14.z.string().min(1),
615
656
  lat: MealPlanLatitudeSchema,
616
657
  lng: MealPlanLongitudeSchema,
617
- address: import_zod13.z.string().default(""),
658
+ address: import_zod14.z.string().default(""),
618
659
  source: MealPlanLocationCandidateSourceSchema.default("manual"),
619
660
  createdBy: MemberIdSchema.optional(),
620
661
  createdAt: ISODateTimeStringSchema.optional()
621
662
  });
622
- var MealPlanMenuCandidateSourceSchema = import_zod13.z.enum([
663
+ var MealPlanMenuCandidateSourceSchema = import_zod14.z.enum([
623
664
  "external-recommendation",
624
665
  "prefer-menu",
625
666
  "recent-menu",
626
667
  "fallback",
627
668
  "manual-search"
628
669
  ]);
629
- var MealPlanMenuCandidateSchema = import_zod13.z.object({
670
+ var MealPlanMenuCandidateSchema = import_zod14.z.object({
630
671
  menuCandidateId: MealPlanMenuCandidateIdSchema,
631
672
  menu: FoodSchema,
632
673
  source: MealPlanMenuCandidateSourceSchema,
633
- score: import_zod13.z.number().default(0),
674
+ score: import_zod14.z.number().default(0),
675
+ imageUrl: import_zod14.z.string().min(1).nullable().default(null),
676
+ image: FoodCodeManifestImageSchema.nullable().default(null),
634
677
  createdAt: ISODateTimeStringSchema
635
678
  });
636
679
  var MealPlanRestaurantCandidateSchema = RestaurantSchema.extend({
637
680
  candidateId: RestaurantIdSchema.optional(),
638
- source: import_zod13.z.enum([
639
- "search",
640
- "fallback",
641
- "manual"
642
- ]).optional(),
681
+ source: import_zod14.z.enum(["search", "fallback", "manual"]).optional(),
643
682
  createdAt: ISODateTimeStringSchema.optional()
644
683
  });
645
- var MealPlanDecisionStageTypeSchema = import_zod13.z.enum([
684
+ var MealPlanDecisionStageTypeSchema = import_zod14.z.enum([
646
685
  "DATE",
647
686
  "TIME",
648
687
  "AREA",
@@ -650,108 +689,90 @@ var MealPlanDecisionStageTypeSchema = import_zod13.z.enum([
650
689
  "RESTAURANT",
651
690
  "FINAL_CONFIRMATION"
652
691
  ]);
653
- var MealPlanDecisionStageStatusSchema = import_zod13.z.enum([
692
+ var MealPlanDecisionStageStatusSchema = import_zod14.z.enum([
654
693
  "OPEN",
655
694
  "COMPLETED",
656
695
  "REOPENED"
657
696
  ]);
658
- var MealPlanRestaurantSearchStatusSchema = import_zod13.z.enum([
697
+ var MealPlanRestaurantSearchStatusSchema = import_zod14.z.enum([
659
698
  "IDLE",
660
699
  "PENDING",
661
700
  "READY",
662
701
  "FAILED",
663
702
  "STALE"
664
703
  ]);
665
- var MealPlanRestaurantSearchStateSchema = import_zod13.z.object({
666
- searchKey: import_zod13.z.string().min(1).nullable(),
704
+ var MealPlanRestaurantSearchStateSchema = import_zod14.z.object({
705
+ searchKey: import_zod14.z.string().min(1).nullable(),
667
706
  status: MealPlanRestaurantSearchStatusSchema,
668
707
  startedAt: ISODateTimeStringSchema.nullable(),
669
708
  completedAt: ISODateTimeStringSchema.nullable(),
670
- version: import_zod13.z.number().int().min(0),
671
- candidateCount: import_zod13.z.number().int().min(0),
672
- errorMessage: import_zod13.z.string().nullable().default(null)
709
+ version: import_zod14.z.number().int().min(0),
710
+ candidateCount: import_zod14.z.number().int().min(0),
711
+ errorMessage: import_zod14.z.string().nullable().default(null)
673
712
  });
674
- var MealPlanDecisionStageMetadataSchema = import_zod13.z.object({
713
+ var MealPlanDecisionStageMetadataSchema = import_zod14.z.object({
675
714
  restaurantSearch: MealPlanRestaurantSearchStateSchema.optional()
676
- }).catchall(import_zod13.z.unknown());
677
- var MealPlanVoteTypeSchema = import_zod13.z.enum([
715
+ }).catchall(import_zod14.z.unknown());
716
+ var MealPlanVoteTypeSchema = import_zod14.z.enum([
678
717
  "PICK",
679
718
  "EXCLUDE",
680
719
  "PREFER",
681
720
  "READY"
682
721
  ]);
683
- var MealPlanDecisionCandidateSchema = import_zod13.z.discriminatedUnion("stageType", [
684
- import_zod13.z.object({
685
- stageType: import_zod13.z.literal("DATE"),
686
- value: ISODateStringSchema
687
- }),
688
- import_zod13.z.object({
689
- stageType: import_zod13.z.literal("TIME"),
690
- value: TimeHHmmStringSchema
691
- }),
692
- import_zod13.z.object({
693
- stageType: import_zod13.z.literal("AREA"),
694
- value: MealPlanLocationCandidateSchema
695
- }),
696
- import_zod13.z.object({
697
- stageType: import_zod13.z.literal("MENU"),
698
- value: MealPlanMenuCandidateSchema
699
- }),
700
- import_zod13.z.object({
701
- stageType: import_zod13.z.literal("RESTAURANT"),
702
- value: MealPlanRestaurantCandidateSchema
703
- }),
704
- import_zod13.z.object({
705
- stageType: import_zod13.z.literal("FINAL_CONFIRMATION"),
706
- value: import_zod13.z.literal("READY")
707
- })
722
+ var MealPlanDecisionCandidateSchema = import_zod14.z.discriminatedUnion("stageType", [
723
+ import_zod14.z.object({ stageType: import_zod14.z.literal("DATE"), value: ISODateStringSchema }),
724
+ import_zod14.z.object({ stageType: import_zod14.z.literal("TIME"), value: TimeHHmmStringSchema }),
725
+ import_zod14.z.object({ stageType: import_zod14.z.literal("AREA"), value: MealPlanLocationCandidateSchema }),
726
+ import_zod14.z.object({ stageType: import_zod14.z.literal("MENU"), value: MealPlanMenuCandidateSchema }),
727
+ import_zod14.z.object({ stageType: import_zod14.z.literal("RESTAURANT"), value: MealPlanRestaurantCandidateSchema }),
728
+ import_zod14.z.object({ stageType: import_zod14.z.literal("FINAL_CONFIRMATION"), value: import_zod14.z.literal("READY") })
708
729
  ]);
709
- var MealPlanVoteSchema = import_zod13.z.object({
730
+ var MealPlanVoteSchema = import_zod14.z.object({
710
731
  voteId: MealPlanVoteIdSchema,
711
732
  voterId: MemberIdSchema.nullable(),
712
- guestId: import_zod13.z.string().min(1).nullable(),
733
+ guestId: import_zod14.z.string().min(1).nullable(),
713
734
  voteType: MealPlanVoteTypeSchema,
714
735
  candidate: MealPlanDecisionCandidateSchema,
715
736
  createdAt: ISODateTimeStringSchema
716
737
  });
717
- var MealPlanDecisionStageResponseSchema = import_zod13.z.object({
738
+ var MealPlanDecisionStageResponseSchema = import_zod14.z.object({
718
739
  stageId: MealPlanDecisionStageIdSchema,
719
740
  stageType: MealPlanDecisionStageTypeSchema,
720
741
  status: MealPlanDecisionStageStatusSchema,
721
- candidates: import_zod13.z.array(MealPlanDecisionCandidateSchema),
722
- votes: import_zod13.z.array(MealPlanVoteSchema),
742
+ candidates: import_zod14.z.array(MealPlanDecisionCandidateSchema),
743
+ votes: import_zod14.z.array(MealPlanVoteSchema),
723
744
  selectedCandidate: MealPlanDecisionCandidateSchema.nullable(),
724
745
  metadata: MealPlanDecisionStageMetadataSchema.nullable().default(null),
725
746
  openedAt: ISODateTimeStringSchema,
726
747
  completedAt: ISODateTimeStringSchema.nullable(),
727
748
  reopenedAt: ISODateTimeStringSchema.nullable()
728
749
  });
729
- var CreateMealPlanVoteRequestSchema = import_zod13.z.object({
750
+ var CreateMealPlanVoteRequestSchema = import_zod14.z.object({
730
751
  voteType: MealPlanVoteTypeSchema,
731
752
  candidate: MealPlanDecisionCandidateSchema
732
753
  });
733
- var CompleteMealPlanDecisionStageRequestSchema = import_zod13.z.object({
754
+ var CompleteMealPlanDecisionStageRequestSchema = import_zod14.z.object({
734
755
  selectedCandidate: MealPlanDecisionCandidateSchema
735
756
  });
736
- var MealPlanChangeRequestStatusSchema = import_zod13.z.enum([
757
+ var MealPlanChangeRequestStatusSchema = import_zod14.z.enum([
737
758
  "PENDING",
738
759
  "ACCEPTED",
739
760
  "REJECTED",
740
761
  "CANCELLED"
741
762
  ]);
742
- var CreateMealPlanChangeRequestSchema = import_zod13.z.object({
763
+ var CreateMealPlanChangeRequestSchema = import_zod14.z.object({
743
764
  stageType: MealPlanDecisionStageTypeSchema,
744
- reason: import_zod13.z.string().min(1).max(500),
765
+ reason: import_zod14.z.string().min(1).max(500),
745
766
  proposedCandidate: MealPlanDecisionCandidateSchema.optional()
746
767
  });
747
- var MealPlanChangeRequestSummarySchema = import_zod13.z.object({
768
+ var MealPlanChangeRequestSummarySchema = import_zod14.z.object({
748
769
  changeRequestId: MealPlanChangeRequestIdSchema,
749
770
  stageType: MealPlanDecisionStageTypeSchema,
750
771
  status: MealPlanChangeRequestStatusSchema,
751
- reason: import_zod13.z.string(),
772
+ reason: import_zod14.z.string(),
752
773
  requestedAt: ISODateTimeStringSchema
753
774
  });
754
- var MealPlanDecisionTaskKeySchema = import_zod13.z.enum([
775
+ var MealPlanDecisionTaskKeySchema = import_zod14.z.enum([
755
776
  "SCHEDULE_DATE",
756
777
  "SCHEDULE_TIME",
757
778
  "LOCATION_CANDIDATE",
@@ -763,14 +784,13 @@ var MealPlanDecisionTaskKeySchema = import_zod13.z.enum([
763
784
  "RESTAURANT_PICK",
764
785
  "FINAL_CONFIRMATION"
765
786
  ]);
766
- var MealPlanDecisionTaskStatusSchema = import_zod13.z.enum([
787
+ var MealPlanDecisionTaskStatusSchema = import_zod14.z.enum([
767
788
  "LOCKED",
768
789
  "OPEN",
769
- "READY",
770
790
  "RESOLVED",
771
791
  "STALE"
772
792
  ]);
773
- var MealPlanDecisionFinalFieldSchema = import_zod13.z.enum([
793
+ var MealPlanDecisionFinalFieldSchema = import_zod14.z.enum([
774
794
  "date",
775
795
  "time",
776
796
  "meetingAt",
@@ -778,82 +798,72 @@ var MealPlanDecisionFinalFieldSchema = import_zod13.z.enum([
778
798
  "menu",
779
799
  "restaurant"
780
800
  ]);
781
- var MealPlanDecisionSnapshotStatusSchema = import_zod13.z.enum([
801
+ var MealPlanDecisionSnapshotStatusSchema = import_zod14.z.enum([
782
802
  "CANDIDATE",
783
803
  "PROVISIONAL",
784
804
  "FINAL",
785
805
  "STALE"
786
806
  ]);
787
- var MealPlanDecisionReasonSchema = import_zod13.z.enum([
807
+ var MealPlanDecisionReasonSchema = import_zod14.z.enum([
788
808
  "COMMON_SCHEDULE",
789
809
  "TOP_VOTED_LOCATION",
790
810
  "TOP_PICKED_MENU",
791
811
  "TOP_PICKED_RESTAURANT",
792
812
  "OWNER_CONFIRMED",
793
- "TASK_ALL_READY",
794
813
  "MANUAL_SELECTION"
795
814
  ]);
796
- var MealPlanDecisionActorTypeSchema = import_zod13.z.enum([
797
- "MEMBER",
798
- "GUEST",
799
- "SYSTEM"
800
- ]);
801
- var MealPlanDecisionSnapshotSchema = import_zod13.z.object({
802
- snapshotId: import_zod13.z.string().uuid(),
803
- mealPlanId: import_zod13.z.string().uuid(),
815
+ var MealPlanDecisionActorTypeSchema = import_zod14.z.enum(["MEMBER", "GUEST", "SYSTEM"]);
816
+ var MealPlanDecisionSnapshotSchema = import_zod14.z.object({
817
+ snapshotId: import_zod14.z.string().uuid(),
818
+ mealPlanId: import_zod14.z.string().uuid(),
804
819
  field: MealPlanDecisionFinalFieldSchema,
805
- value: import_zod13.z.unknown(),
820
+ value: import_zod14.z.unknown(),
806
821
  status: MealPlanDecisionSnapshotStatusSchema,
807
822
  reason: MealPlanDecisionReasonSchema,
808
- score: import_zod13.z.number().nullable().default(null),
809
- sourceEvent: import_zod13.z.string().min(1),
823
+ score: import_zod14.z.number().nullable().default(null),
824
+ sourceEvent: import_zod14.z.string().min(1),
810
825
  sourceActorType: MealPlanDecisionActorTypeSchema,
811
826
  sourceMemberId: MemberIdSchema.nullable(),
812
- sourceGuestId: import_zod13.z.string().min(1).nullable(),
813
- sourceParticipantId: import_zod13.z.string().uuid().nullable(),
814
- sourceVersion: import_zod13.z.number().int().min(0),
815
- dependencyHash: import_zod13.z.string().min(1),
816
- dependencyFields: import_zod13.z.array(MealPlanDecisionFinalFieldSchema),
827
+ sourceGuestId: import_zod14.z.string().min(1).nullable(),
828
+ sourceParticipantId: import_zod14.z.string().uuid().nullable(),
829
+ sourceVersion: import_zod14.z.number().int().min(0),
830
+ dependencyHash: import_zod14.z.string().min(1),
831
+ dependencyFields: import_zod14.z.array(MealPlanDecisionFinalFieldSchema),
817
832
  createdAt: ISODateTimeStringSchema,
818
833
  staleAt: ISODateTimeStringSchema.nullable()
819
834
  });
820
- var MealPlanDecisionTaskProgressSchema = import_zod13.z.object({
835
+ var MealPlanDecisionTaskProgressSchema = import_zod14.z.object({
821
836
  taskKey: MealPlanDecisionTaskKeySchema,
822
837
  status: MealPlanDecisionTaskStatusSchema,
823
- readyCount: import_zod13.z.number().int().min(0),
824
- participantCount: import_zod13.z.number().int().min(0),
825
- blockers: import_zod13.z.array(import_zod13.z.string()).default([]),
838
+ blockers: import_zod14.z.array(import_zod14.z.string()).default([]),
826
839
  updatedAt: ISODateTimeStringSchema
827
840
  });
828
- var MealPlanDecisionProgressSchema = import_zod13.z.object({
829
- mealPlanId: import_zod13.z.string().uuid(),
830
- status: import_zod13.z.string().min(1),
831
- tasks: import_zod13.z.array(MealPlanDecisionTaskProgressSchema),
832
- final: import_zod13.z.record(import_zod13.z.string(), import_zod13.z.unknown()),
833
- provisional: import_zod13.z.record(import_zod13.z.string(), import_zod13.z.unknown()),
834
- snapshots: import_zod13.z.array(MealPlanDecisionSnapshotSchema),
835
- version: import_zod13.z.number().int().min(0),
841
+ var MealPlanDecisionProgressSchema = import_zod14.z.object({
842
+ mealPlanId: import_zod14.z.string().uuid(),
843
+ status: import_zod14.z.string().min(1),
844
+ tasks: import_zod14.z.array(MealPlanDecisionTaskProgressSchema),
845
+ final: import_zod14.z.record(import_zod14.z.string(), import_zod14.z.unknown()),
846
+ provisional: import_zod14.z.record(import_zod14.z.string(), import_zod14.z.unknown()),
847
+ snapshots: import_zod14.z.array(MealPlanDecisionSnapshotSchema),
848
+ version: import_zod14.z.number().int().min(0),
836
849
  updatedAt: ISODateTimeStringSchema
837
850
  });
838
- var MealPlanDecisionTaskReadyRequestSchema = import_zod13.z.object({
839
- isReady: import_zod13.z.boolean()
840
- });
841
- var ReopenMealPlanDecisionTaskRequestSchema = import_zod13.z.object({
842
- reason: import_zod13.z.string().max(500).optional()
851
+ var ReopenMealPlanDecisionTaskRequestSchema = import_zod14.z.object({
852
+ reason: import_zod14.z.string().max(500).optional()
843
853
  });
844
- var ConfirmMealPlanDecisionSnapshotRequestSchema = import_zod13.z.object({
845
- snapshotId: import_zod13.z.string().uuid()
854
+ var ConfirmMealPlanDecisionSnapshotRequestSchema = import_zod14.z.object({
855
+ snapshotId: import_zod14.z.string().uuid()
846
856
  });
847
857
 
848
858
  // src/domain/meal-plan/meal-plan-participant.schema.ts
849
- var import_zod14 = require("zod");
850
- var MealPlanParticipantIdSchema = import_zod14.z.string().uuid().brand();
851
- var MealPlanParticipantRoleSchema = import_zod14.z.enum([
859
+ var import_zod15 = require("zod");
860
+ var MealPlanParticipantIdSchema = import_zod15.z.string().uuid().brand();
861
+ var MealPlanParticipantRoleSchema = import_zod15.z.enum([
852
862
  "OWNER",
853
863
  "FRIEND",
854
864
  "GUEST"
855
865
  ]);
856
- var MealPlanParticipantStatusSchema = import_zod14.z.enum([
866
+ var MealPlanParticipantStatusSchema = import_zod15.z.enum([
857
867
  "INVITED",
858
868
  "REQUESTED",
859
869
  "JOINED",
@@ -862,17 +872,17 @@ var MealPlanParticipantStatusSchema = import_zod14.z.enum([
862
872
  "LEFT",
863
873
  "REMOVED"
864
874
  ]);
865
- var MealPlanJoinSourceSchema = import_zod14.z.enum([
875
+ var MealPlanJoinSourceSchema = import_zod15.z.enum([
866
876
  "OWNER",
867
877
  "FRIEND_INVITE",
868
878
  "LINK_GUEST",
869
879
  "NEARBY_FRIENDS"
870
880
  ]);
871
- var MealPlanGuestParticipantSchema = import_zod14.z.object({
872
- guestId: import_zod14.z.string().min(1),
873
- nickname: import_zod14.z.string().min(1).max(50)
881
+ var MealPlanGuestParticipantSchema = import_zod15.z.object({
882
+ guestId: import_zod15.z.string().min(1),
883
+ nickname: import_zod15.z.string().min(1).max(50)
874
884
  });
875
- var MealPlanParticipantResponseSchema = import_zod14.z.object({
885
+ var MealPlanParticipantResponseSchema = import_zod15.z.object({
876
886
  participantId: MealPlanParticipantIdSchema,
877
887
  mealPlanId: MealPlanIdSchema,
878
888
  member: MemberCoreSchema.nullable(),
@@ -883,66 +893,66 @@ var MealPlanParticipantResponseSchema = import_zod14.z.object({
883
893
  joinedAt: ISODateTimeStringSchema.nullable(),
884
894
  readyAt: ISODateTimeStringSchema.nullable()
885
895
  });
886
- var CreateMealPlanParticipantRequestSchema = import_zod14.z.object({
896
+ var CreateMealPlanParticipantRequestSchema = import_zod15.z.object({
887
897
  memberId: MemberIdSchema.optional(),
888
- guestNickname: import_zod14.z.string().min(1).max(50).optional(),
898
+ guestNickname: import_zod15.z.string().min(1).max(50).optional(),
889
899
  source: MealPlanJoinSourceSchema
890
900
  });
891
901
 
892
902
  // src/domain/meal-plan/meal-plan-invite.schema.ts
893
- var import_zod15 = require("zod");
894
- var MealPlanInviteStatusSchema = import_zod15.z.enum([
903
+ var import_zod16 = require("zod");
904
+ var MealPlanInviteStatusSchema = import_zod16.z.enum([
895
905
  "PENDING",
896
906
  "ACCEPTED",
897
907
  "DECLINED",
898
908
  "CANCELLED",
899
909
  "EXPIRED"
900
910
  ]);
901
- var CreateMealPlanInviteRequestSchema = import_zod15.z.object({
911
+ var CreateMealPlanInviteRequestSchema = import_zod16.z.object({
902
912
  inviteeId: MemberIdSchema,
903
- message: import_zod15.z.string().max(500).default("")
913
+ message: import_zod16.z.string().max(500).default("")
904
914
  });
905
- var MealPlanInviteSummarySchema = import_zod15.z.object({
915
+ var MealPlanInviteSummarySchema = import_zod16.z.object({
906
916
  inviteId: MealPlanInviteIdSchema,
907
917
  mealPlanId: MealPlanIdSchema,
908
918
  inviter: MemberCoreSchema,
909
919
  invitee: MemberCoreSchema,
910
920
  status: MealPlanInviteStatusSchema,
911
- message: import_zod15.z.string().max(500),
921
+ message: import_zod16.z.string().max(500),
912
922
  createdAt: ISODateTimeStringSchema,
913
923
  respondedAt: ISODateTimeStringSchema.nullable()
914
924
  });
915
- var MealPlanInviteListResponseSchema = import_zod15.z.array(MealPlanInviteSummarySchema);
916
- var SendMealPlanInviteResponseSchema = import_zod15.z.object({
925
+ var MealPlanInviteListResponseSchema = import_zod16.z.array(MealPlanInviteSummarySchema);
926
+ var SendMealPlanInviteResponseSchema = import_zod16.z.object({
917
927
  inviteId: MealPlanInviteIdSchema
918
928
  });
919
929
 
920
930
  // src/domain/meal-plan/meal-plan-nearby-friend.schema.ts
921
- var import_zod16 = require("zod");
922
- var MealPlanNearbyFriendExposureIdSchema = import_zod16.z.string().uuid().brand();
923
- var MealPlanNearbyFriendExposureStatusSchema = import_zod16.z.enum([
931
+ var import_zod17 = require("zod");
932
+ var MealPlanNearbyFriendExposureIdSchema = import_zod17.z.string().uuid().brand();
933
+ var MealPlanNearbyFriendExposureStatusSchema = import_zod17.z.enum([
924
934
  "OPEN",
925
935
  "CLOSED",
926
936
  "EXPIRED"
927
937
  ]);
928
- var MealPlanNearbyFriendExposureNotificationStatusSchema = import_zod16.z.enum([
938
+ var MealPlanNearbyFriendExposureNotificationStatusSchema = import_zod17.z.enum([
929
939
  "PENDING",
930
940
  "SENT",
931
941
  "PARTIAL",
932
942
  "FAILED",
933
943
  "SKIPPED"
934
944
  ]);
935
- var ExposeMealPlanToNearbyFriendsRequestSchema = import_zod16.z.object({
936
- radiusMeters: import_zod16.z.number().int().min(100).max(5e3).default(1e3),
945
+ var ExposeMealPlanToNearbyFriendsRequestSchema = import_zod17.z.object({
946
+ radiusMeters: import_zod17.z.number().int().min(100).max(5e3).default(1e3),
937
947
  expiresAt: ISODateTimeStringSchema.optional()
938
948
  });
939
- var NearbyFriendExposureEligibilitySchema = import_zod16.z.object({
940
- canExpose: import_zod16.z.boolean(),
949
+ var NearbyFriendExposureEligibilitySchema = import_zod17.z.object({
950
+ canExpose: import_zod17.z.boolean(),
941
951
  locationConsentStatus: LocationConsentStatusSchema,
942
- nearbyMealPlanExposureAllowed: import_zod16.z.boolean(),
943
- mealSuggestionAllowed: import_zod16.z.boolean(),
944
- hasLastKnownLocation: import_zod16.z.boolean(),
945
- missingRequirements: import_zod16.z.array(import_zod16.z.enum([
952
+ nearbyMealPlanExposureAllowed: import_zod17.z.boolean(),
953
+ mealSuggestionAllowed: import_zod17.z.boolean(),
954
+ hasLastKnownLocation: import_zod17.z.boolean(),
955
+ missingRequirements: import_zod17.z.array(import_zod17.z.enum([
946
956
  "LOCATION_PERMISSION",
947
957
  "SERVICE_LOCATION_CONSENT",
948
958
  "NEARBY_EXPOSURE_TOGGLE",
@@ -950,7 +960,7 @@ var NearbyFriendExposureEligibilitySchema = import_zod16.z.object({
950
960
  "LAST_KNOWN_LOCATION"
951
961
  ]))
952
962
  });
953
- var MealPlanNearbyFriendRejectionReasonSchema = import_zod16.z.enum([
963
+ var MealPlanNearbyFriendRejectionReasonSchema = import_zod17.z.enum([
954
964
  "NOT_FRIEND",
955
965
  "BLOCKED",
956
966
  "LOCATION_CONSENT_REQUIRED",
@@ -959,79 +969,79 @@ var MealPlanNearbyFriendRejectionReasonSchema = import_zod16.z.enum([
959
969
  "MEAL_SUGGESTION_DISABLED",
960
970
  "NOT_HUNGRY"
961
971
  ]);
962
- var MealPlanNearbyFriendRejectionSummarySchema = import_zod16.z.object({
972
+ var MealPlanNearbyFriendRejectionSummarySchema = import_zod17.z.object({
963
973
  reason: MealPlanNearbyFriendRejectionReasonSchema,
964
- count: import_zod16.z.number().int().min(0)
974
+ count: import_zod17.z.number().int().min(0)
965
975
  });
966
- var ExposeMealPlanToNearbyFriendsResponseSchema = import_zod16.z.object({
976
+ var ExposeMealPlanToNearbyFriendsResponseSchema = import_zod17.z.object({
967
977
  mealPlanId: MealPlanIdSchema,
968
978
  exposureBatchId: MealPlanNearbyFriendExposureBatchIdSchema,
969
- exposedFriendCount: import_zod16.z.number().int().min(0),
970
- rejectedFriendCount: import_zod16.z.number().int().min(0),
979
+ exposedFriendCount: import_zod17.z.number().int().min(0),
980
+ rejectedFriendCount: import_zod17.z.number().int().min(0),
971
981
  notificationStatus: MealPlanNearbyFriendExposureNotificationStatusSchema,
972
- rejectionSummary: import_zod16.z.array(MealPlanNearbyFriendRejectionSummarySchema)
982
+ rejectionSummary: import_zod17.z.array(MealPlanNearbyFriendRejectionSummarySchema)
973
983
  });
974
- var MealPlanNearbyFriendExposureSummarySchema = import_zod16.z.object({
984
+ var MealPlanNearbyFriendExposureSummarySchema = import_zod17.z.object({
975
985
  exposureId: MealPlanNearbyFriendExposureIdSchema,
976
986
  exposureBatchId: MealPlanNearbyFriendExposureBatchIdSchema.nullable(),
977
987
  mealPlanId: MealPlanIdSchema,
978
988
  status: MealPlanNearbyFriendExposureStatusSchema,
979
- radiusMeters: import_zod16.z.number().int().min(100),
980
- exposedFriendCount: import_zod16.z.number().int().min(0),
989
+ radiusMeters: import_zod17.z.number().int().min(100),
990
+ exposedFriendCount: import_zod17.z.number().int().min(0),
981
991
  openedAt: ISODateTimeStringSchema,
982
992
  expiresAt: ISODateTimeStringSchema.nullable(),
983
993
  closedAt: ISODateTimeStringSchema.nullable()
984
994
  });
985
- var MealPlanNearbyFriendExposureBatchSummarySchema = import_zod16.z.object({
995
+ var MealPlanNearbyFriendExposureBatchSummarySchema = import_zod17.z.object({
986
996
  exposureBatchId: MealPlanNearbyFriendExposureBatchIdSchema,
987
997
  mealPlanId: MealPlanIdSchema,
988
998
  status: MealPlanNearbyFriendExposureStatusSchema,
989
- radiusMeters: import_zod16.z.number().int().min(100),
990
- exposedFriendCount: import_zod16.z.number().int().min(0),
991
- rejectedFriendCount: import_zod16.z.number().int().min(0),
992
- rejectionSummary: import_zod16.z.array(MealPlanNearbyFriendRejectionSummarySchema),
999
+ radiusMeters: import_zod17.z.number().int().min(100),
1000
+ exposedFriendCount: import_zod17.z.number().int().min(0),
1001
+ rejectedFriendCount: import_zod17.z.number().int().min(0),
1002
+ rejectionSummary: import_zod17.z.array(MealPlanNearbyFriendRejectionSummarySchema),
993
1003
  notificationStatus: MealPlanNearbyFriendExposureNotificationStatusSchema,
994
1004
  notificationSentAt: ISODateTimeStringSchema.nullable(),
995
1005
  openedAt: ISODateTimeStringSchema,
996
1006
  expiresAt: ISODateTimeStringSchema.nullable(),
997
1007
  closedAt: ISODateTimeStringSchema.nullable()
998
1008
  });
999
- var MealPlanJoinRequestStatusSchema = import_zod16.z.enum([
1009
+ var MealPlanJoinRequestStatusSchema = import_zod17.z.enum([
1000
1010
  "PENDING",
1001
1011
  "ACCEPTED",
1002
1012
  "REJECTED",
1003
1013
  "CANCELLED"
1004
1014
  ]);
1005
- var CreateMealPlanJoinRequestSchema = import_zod16.z.object({
1006
- message: import_zod16.z.string().max(500).default("")
1015
+ var CreateMealPlanJoinRequestSchema = import_zod17.z.object({
1016
+ message: import_zod17.z.string().max(500).default("")
1007
1017
  });
1008
- var MealPlanJoinRequestSummarySchema = import_zod16.z.object({
1018
+ var MealPlanJoinRequestSummarySchema = import_zod17.z.object({
1009
1019
  joinRequestId: MealPlanJoinRequestIdSchema,
1010
1020
  mealPlanId: MealPlanIdSchema,
1011
1021
  requester: MemberCoreSchema,
1012
1022
  status: MealPlanJoinRequestStatusSchema,
1013
- message: import_zod16.z.string().max(500),
1023
+ message: import_zod17.z.string().max(500),
1014
1024
  requestedAt: ISODateTimeStringSchema,
1015
1025
  respondedAt: ISODateTimeStringSchema.nullable()
1016
1026
  });
1017
- var NearbyFriendMealPlanSummarySchema = import_zod16.z.object({
1027
+ var NearbyFriendMealPlanSummarySchema = import_zod17.z.object({
1018
1028
  mealPlanId: MealPlanIdSchema,
1019
1029
  owner: MemberCoreSchema,
1020
- title: import_zod16.z.string(),
1021
- participantCount: import_zod16.z.number().int().min(1),
1022
- distanceMeters: import_zod16.z.number().int().min(0),
1030
+ title: import_zod17.z.string(),
1031
+ participantCount: import_zod17.z.number().int().min(1),
1032
+ distanceMeters: import_zod17.z.number().int().min(0),
1023
1033
  exposedAt: ISODateTimeStringSchema,
1024
1034
  expiresAt: ISODateTimeStringSchema.nullable(),
1025
1035
  joinRequestStatus: MealPlanJoinRequestStatusSchema.nullable().default(null)
1026
1036
  });
1027
1037
 
1028
1038
  // src/domain/meal-plan/meal-plan-chat.schema.ts
1029
- var import_zod17 = require("zod");
1030
- var MealPlanChatMessageKindSchema = import_zod17.z.enum([
1039
+ var import_zod18 = require("zod");
1040
+ var MealPlanChatMessageKindSchema = import_zod18.z.enum([
1031
1041
  "USER",
1032
1042
  "SYSTEM"
1033
1043
  ]);
1034
- var MealPlanSystemMessageKindSchema = import_zod17.z.enum([
1044
+ var MealPlanSystemMessageKindSchema = import_zod18.z.enum([
1035
1045
  "PARTICIPANT_JOINED",
1036
1046
  "PARTICIPANT_READY",
1037
1047
  "PARTICIPANT_REMOVED",
@@ -1040,39 +1050,41 @@ var MealPlanSystemMessageKindSchema = import_zod17.z.enum([
1040
1050
  "CONFIRMED",
1041
1051
  "RECORD_NEEDED"
1042
1052
  ]);
1043
- var MealPlanChatSystemPayloadSchema = import_zod17.z.object({
1053
+ var MealPlanChatSystemPayloadSchema = import_zod18.z.object({
1044
1054
  kind: MealPlanSystemMessageKindSchema
1045
- }).catchall(import_zod17.z.unknown());
1046
- var MealPlanChatMessageListResponseSchema = import_zod17.z.array(import_zod17.z.lazy(() => MealPlanChatMessageResponseSchema));
1047
- var MealPlanChatRoomSummarySchema = import_zod17.z.object({
1055
+ }).catchall(import_zod18.z.unknown());
1056
+ var MealPlanChatMessageListResponseSchema = import_zod18.z.array(
1057
+ import_zod18.z.lazy(() => MealPlanChatMessageResponseSchema)
1058
+ );
1059
+ var MealPlanChatRoomSummarySchema = import_zod18.z.object({
1048
1060
  chatRoomId: MealPlanChatRoomIdSchema,
1049
1061
  mealPlanId: MealPlanIdSchema,
1050
- messageCount: import_zod17.z.number().int().min(0),
1062
+ messageCount: import_zod18.z.number().int().min(0),
1051
1063
  lastMessageAt: ISODateTimeStringSchema.nullable(),
1052
1064
  createdAt: ISODateTimeStringSchema
1053
1065
  });
1054
- var SendMealPlanChatMessageRequestSchema = import_zod17.z.object({
1055
- message: import_zod17.z.string().min(1).max(500)
1066
+ var SendMealPlanChatMessageRequestSchema = import_zod18.z.object({
1067
+ message: import_zod18.z.string().min(1).max(500)
1056
1068
  });
1057
- var MealPlanChatMessageResponseSchema = import_zod17.z.object({
1069
+ var MealPlanChatMessageResponseSchema = import_zod18.z.object({
1058
1070
  messageId: MealPlanChatMessageIdSchema,
1059
1071
  chatRoomId: MealPlanChatRoomIdSchema,
1060
1072
  sender: MemberCoreSchema.nullable(),
1061
- guestId: import_zod17.z.string().min(1).nullable(),
1062
- guestNickname: import_zod17.z.string().min(1).nullable(),
1073
+ guestId: import_zod18.z.string().min(1).nullable(),
1074
+ guestNickname: import_zod18.z.string().min(1).nullable(),
1063
1075
  kind: MealPlanChatMessageKindSchema,
1064
- message: import_zod17.z.string().min(1).max(1e3),
1076
+ message: import_zod18.z.string().min(1).max(1e3),
1065
1077
  systemPayload: MealPlanChatSystemPayloadSchema.nullable(),
1066
1078
  createdAt: ISODateTimeStringSchema
1067
1079
  });
1068
- var MealPlanSystemMessageSchema = import_zod17.z.object({
1080
+ var MealPlanSystemMessageSchema = import_zod18.z.object({
1069
1081
  kind: MealPlanSystemMessageKindSchema,
1070
- message: import_zod17.z.string().min(1),
1082
+ message: import_zod18.z.string().min(1),
1071
1083
  createdAt: ISODateTimeStringSchema
1072
1084
  });
1073
1085
 
1074
1086
  // src/domain/meal-plan/meal-plan.schema.ts
1075
- var MealPlanStatusSchema = import_zod18.z.enum([
1087
+ var MealPlanStatusSchema = import_zod19.z.enum([
1076
1088
  "DRAFT",
1077
1089
  "RECOMMENDING",
1078
1090
  "GATHERING",
@@ -1084,78 +1096,74 @@ var MealPlanStatusSchema = import_zod18.z.enum([
1084
1096
  "RECORDED",
1085
1097
  "CANCELLED"
1086
1098
  ]);
1087
- var MealPlanChannelSchema = import_zod18.z.enum([
1099
+ var MealPlanChannelSchema = import_zod19.z.enum([
1088
1100
  "OWNER_ONLY",
1089
1101
  "FRIEND_INVITE",
1090
1102
  "LINK_GUEST",
1091
1103
  "NEARBY_FRIENDS"
1092
1104
  ]);
1093
- var MealPlanRecommendationContextSchema = import_zod18.z.object({
1105
+ var MealPlanRecommendationContextSchema = import_zod19.z.object({
1094
1106
  mealDate: ISODateStringSchema.optional(),
1095
1107
  mealTime: TimeHHmmStringSchema.optional(),
1096
1108
  area: MealPlanLocationCandidateSchema.optional(),
1097
- preferredMenuCategories: import_zod18.z.array(import_zod18.z.string().min(1)).default([]),
1098
- excludedMenuCategories: import_zod18.z.array(import_zod18.z.string().min(1)).default([]),
1099
- candidateMenuCategories: import_zod18.z.array(import_zod18.z.string().min(1)).default([]),
1100
- budgetMin: import_zod18.z.number().int().min(0).optional(),
1101
- budgetMax: import_zod18.z.number().int().min(0).optional(),
1102
- memo: import_zod18.z.string().max(500).optional()
1103
- });
1104
- var CreateMealPlanRequestSchema = import_zod18.z.object({
1105
- title: import_zod18.z.string().min(1).max(100).optional(),
1106
- channels: import_zod18.z.array(MealPlanChannelSchema).default([
1107
- "OWNER_ONLY"
1108
- ]),
1109
+ preferredMenuCategories: import_zod19.z.array(import_zod19.z.string().min(1)).default([]),
1110
+ excludedMenuCategories: import_zod19.z.array(import_zod19.z.string().min(1)).default([]),
1111
+ candidateMenuCategories: import_zod19.z.array(import_zod19.z.string().min(1)).default([]),
1112
+ budgetMin: import_zod19.z.number().int().min(0).optional(),
1113
+ budgetMax: import_zod19.z.number().int().min(0).optional(),
1114
+ memo: import_zod19.z.string().max(500).optional()
1115
+ });
1116
+ var CreateMealPlanRequestSchema = import_zod19.z.object({
1117
+ title: import_zod19.z.string().min(1).max(100).optional(),
1118
+ channels: import_zod19.z.array(MealPlanChannelSchema).default(["OWNER_ONLY"]),
1109
1119
  recommendationContext: MealPlanRecommendationContextSchema.optional()
1110
1120
  });
1111
- var CreateMealPlanResponseSchema = import_zod18.z.object({
1121
+ var CreateMealPlanResponseSchema = import_zod19.z.object({
1112
1122
  mealPlanId: MealPlanIdSchema
1113
1123
  });
1114
1124
  var UpdateMealPlanContextRequestSchema = MealPlanRecommendationContextSchema.partial();
1115
- var MealPlanViewerRoleSchema = import_zod18.z.enum([
1125
+ var MealPlanViewerRoleSchema = import_zod19.z.enum([
1116
1126
  "OWNER",
1117
1127
  "FRIEND",
1118
1128
  "GUEST",
1119
1129
  "NONE"
1120
1130
  ]);
1121
- var MealPlanViewerPermissionsSchema = import_zod18.z.object({
1122
- canView: import_zod18.z.boolean(),
1123
- canInviteFriends: import_zod18.z.boolean(),
1124
- canManageParticipants: import_zod18.z.boolean(),
1125
- canCreateShareLink: import_zod18.z.boolean(),
1126
- canExposeNearbyFriends: import_zod18.z.boolean(),
1127
- canVote: import_zod18.z.boolean(),
1128
- canChat: import_zod18.z.boolean(),
1129
- canReadyMealPlan: import_zod18.z.boolean(),
1130
- canReadyDecisionTask: import_zod18.z.boolean(),
1131
- canRequestChange: import_zod18.z.boolean(),
1132
- canReopenDecisionTask: import_zod18.z.boolean(),
1133
- canConfirmDecisionSnapshot: import_zod18.z.boolean(),
1134
- canConfirmMealPlan: import_zod18.z.boolean(),
1135
- canCompleteMealPlan: import_zod18.z.boolean(),
1136
- canRecordMealPlan: import_zod18.z.boolean(),
1137
- canCancelMealPlan: import_zod18.z.boolean()
1138
- });
1139
- var MealPlanResponseSchema = import_zod18.z.object({
1131
+ var MealPlanViewerPermissionsSchema = import_zod19.z.object({
1132
+ canView: import_zod19.z.boolean(),
1133
+ canInviteFriends: import_zod19.z.boolean(),
1134
+ canManageParticipants: import_zod19.z.boolean(),
1135
+ canCreateShareLink: import_zod19.z.boolean(),
1136
+ canExposeNearbyFriends: import_zod19.z.boolean(),
1137
+ canVote: import_zod19.z.boolean(),
1138
+ canChat: import_zod19.z.boolean(),
1139
+ canReadyMealPlan: import_zod19.z.boolean(),
1140
+ canRequestChange: import_zod19.z.boolean(),
1141
+ canReopenDecisionTask: import_zod19.z.boolean(),
1142
+ canConfirmDecisionSnapshot: import_zod19.z.boolean(),
1143
+ canConfirmMealPlan: import_zod19.z.boolean(),
1144
+ canCompleteMealPlan: import_zod19.z.boolean(),
1145
+ canRecordMealPlan: import_zod19.z.boolean(),
1146
+ canCancelMealPlan: import_zod19.z.boolean()
1147
+ });
1148
+ var MealPlanResponseSchema = import_zod19.z.object({
1140
1149
  mealPlanId: MealPlanIdSchema,
1141
1150
  owner: MemberCoreSchema,
1142
- title: import_zod18.z.string().nullable(),
1151
+ title: import_zod19.z.string().nullable(),
1143
1152
  status: MealPlanStatusSchema,
1144
- channels: import_zod18.z.array(MealPlanChannelSchema),
1145
- participants: import_zod18.z.array(MealPlanParticipantResponseSchema),
1146
- pendingInvites: import_zod18.z.array(MealPlanInviteSummarySchema),
1147
- pendingJoinRequests: import_zod18.z.array(MealPlanJoinRequestSummarySchema),
1148
- decisionStages: import_zod18.z.array(MealPlanDecisionStageResponseSchema),
1153
+ channels: import_zod19.z.array(MealPlanChannelSchema),
1154
+ participants: import_zod19.z.array(MealPlanParticipantResponseSchema),
1155
+ pendingInvites: import_zod19.z.array(MealPlanInviteSummarySchema),
1156
+ pendingJoinRequests: import_zod19.z.array(MealPlanJoinRequestSummarySchema),
1157
+ decisionStages: import_zod19.z.array(MealPlanDecisionStageResponseSchema),
1149
1158
  decisionProgress: MealPlanDecisionProgressSchema.nullable(),
1150
1159
  viewerRole: MealPlanViewerRoleSchema,
1151
1160
  viewerParticipantStatus: MealPlanParticipantStatusSchema.nullable(),
1152
1161
  viewerPermissions: MealPlanViewerPermissionsSchema,
1153
- viewerTaskReadyMap: import_zod18.z.record(MealPlanDecisionTaskKeySchema, import_zod18.z.boolean()),
1154
1162
  selectedDate: ISODateStringSchema.nullable(),
1155
1163
  selectedTime: TimeHHmmStringSchema.nullable(),
1156
1164
  selectedArea: MealPlanLocationCandidateSchema.nullable(),
1157
1165
  selectedRestaurant: RestaurantSchema.nullable(),
1158
- selectedMenuCategory: import_zod18.z.string().nullable(),
1166
+ selectedMenuCategory: import_zod19.z.string().nullable(),
1159
1167
  chatRoom: MealPlanChatRoomSummarySchema.nullable(),
1160
1168
  confirmedAt: ISODateTimeStringSchema.nullable(),
1161
1169
  lockedAt: ISODateTimeStringSchema.nullable(),
@@ -1164,36 +1172,31 @@ var MealPlanResponseSchema = import_zod18.z.object({
1164
1172
  createdAt: ISODateTimeStringSchema,
1165
1173
  updatedAt: ISODateTimeStringSchema
1166
1174
  });
1167
- var MyMealPlanGroupSchema = import_zod18.z.enum([
1168
- "DECIDING",
1169
- "UPCOMING",
1170
- "RECORD_NEEDED",
1171
- "PAST"
1172
- ]);
1173
- var MyMealPlanListItemSchema = import_zod18.z.object({
1175
+ var MyMealPlanGroupSchema = import_zod19.z.enum(["DECIDING", "UPCOMING", "RECORD_NEEDED", "PAST"]);
1176
+ var MyMealPlanListItemSchema = import_zod19.z.object({
1174
1177
  mealPlanId: MealPlanIdSchema,
1175
1178
  group: MyMealPlanGroupSchema,
1176
- title: import_zod18.z.string(),
1179
+ title: import_zod19.z.string(),
1177
1180
  status: MealPlanStatusSchema,
1178
- channels: import_zod18.z.array(MealPlanChannelSchema),
1179
- participantCount: import_zod18.z.number().int().min(1),
1181
+ channels: import_zod19.z.array(MealPlanChannelSchema),
1182
+ participantCount: import_zod19.z.number().int().min(1),
1180
1183
  selectedDate: ISODateStringSchema.nullable(),
1181
1184
  selectedTime: TimeHHmmStringSchema.nullable(),
1182
- selectedAreaName: import_zod18.z.string().nullable(),
1183
- selectedRestaurantName: import_zod18.z.string().nullable(),
1184
- primaryAction: import_zod18.z.object({
1185
- label: import_zod18.z.string(),
1186
- href: import_zod18.z.string()
1185
+ selectedAreaName: import_zod19.z.string().nullable(),
1186
+ selectedRestaurantName: import_zod19.z.string().nullable(),
1187
+ primaryAction: import_zod19.z.object({
1188
+ label: import_zod19.z.string(),
1189
+ href: import_zod19.z.string()
1187
1190
  }),
1188
1191
  updatedAt: ISODateTimeStringSchema
1189
1192
  });
1190
- var MyMealPlanListResponseSchema = import_zod18.z.object({
1191
- deciding: import_zod18.z.array(MyMealPlanListItemSchema),
1192
- upcoming: import_zod18.z.array(MyMealPlanListItemSchema),
1193
- recordNeeded: import_zod18.z.array(MyMealPlanListItemSchema),
1194
- past: import_zod18.z.array(MyMealPlanListItemSchema)
1193
+ var MyMealPlanListResponseSchema = import_zod19.z.object({
1194
+ deciding: import_zod19.z.array(MyMealPlanListItemSchema),
1195
+ upcoming: import_zod19.z.array(MyMealPlanListItemSchema),
1196
+ recordNeeded: import_zod19.z.array(MyMealPlanListItemSchema),
1197
+ past: import_zod19.z.array(MyMealPlanListItemSchema)
1195
1198
  });
1196
- var MealPlanNotificationKindSchema = import_zod18.z.enum([
1199
+ var MealPlanNotificationKindSchema = import_zod19.z.enum([
1197
1200
  "MEAL_PLAN_INVITE_RECEIVED",
1198
1201
  "MEAL_PLAN_INVITE_ACCEPTED",
1199
1202
  "MEAL_PLAN_JOIN_REQUESTED",
@@ -1205,538 +1208,488 @@ var MealPlanNotificationKindSchema = import_zod18.z.enum([
1205
1208
  "MEAL_PLAN_LOCKED",
1206
1209
  "MEAL_PLAN_RECORD_NEEDED"
1207
1210
  ]);
1208
- var MealPlanNotificationPriorityChannelSchema = import_zod18.z.enum([
1211
+ var MealPlanNotificationPriorityChannelSchema = import_zod19.z.enum([
1209
1212
  "HOME",
1210
1213
  "NOTIFICATION_INBOX",
1211
1214
  "FCM_PUSH",
1212
1215
  "LIVE_ACTIVITY"
1213
1216
  ]);
1214
- var MealPlanLiveActivityBehaviorSchema = import_zod18.z.enum([
1217
+ var MealPlanLiveActivityBehaviorSchema = import_zod19.z.enum([
1215
1218
  "NONE",
1216
1219
  "START_OR_UPDATE",
1217
1220
  "UPDATE",
1218
1221
  "END"
1219
1222
  ]);
1220
- var MealPlanNotificationPriorityPolicyItemSchema = import_zod18.z.object({
1223
+ var MealPlanNotificationPriorityPolicyItemSchema = import_zod19.z.object({
1221
1224
  kind: MealPlanNotificationKindSchema,
1222
- priority: import_zod18.z.number().int().min(0),
1223
- homePriority: import_zod18.z.number().int().min(0),
1224
- inboxPriority: import_zod18.z.number().int().min(0),
1225
- fcmPriority: import_zod18.z.number().int().min(0),
1226
- liveActivityPriority: import_zod18.z.number().int().min(0),
1225
+ priority: import_zod19.z.number().int().min(0),
1226
+ homePriority: import_zod19.z.number().int().min(0),
1227
+ inboxPriority: import_zod19.z.number().int().min(0),
1228
+ fcmPriority: import_zod19.z.number().int().min(0),
1229
+ liveActivityPriority: import_zod19.z.number().int().min(0),
1227
1230
  liveActivityBehavior: MealPlanLiveActivityBehaviorSchema,
1228
- foregroundToast: import_zod18.z.boolean()
1231
+ foregroundToast: import_zod19.z.boolean()
1229
1232
  });
1230
- var MealPlanNotificationSchema = import_zod18.z.object({
1231
- notificationId: import_zod18.z.string().min(1),
1233
+ var MealPlanNotificationSchema = import_zod19.z.object({
1234
+ notificationId: import_zod19.z.string().min(1),
1232
1235
  kind: MealPlanNotificationKindSchema,
1233
1236
  mealPlanId: MealPlanIdSchema,
1234
- deepLink: import_zod18.z.string().min(1),
1235
- title: import_zod18.z.string().min(1),
1236
- message: import_zod18.z.string().min(1),
1237
+ deepLink: import_zod19.z.string().min(1),
1238
+ title: import_zod19.z.string().min(1),
1239
+ message: import_zod19.z.string().min(1),
1237
1240
  createdAt: ISODateTimeStringSchema,
1238
1241
  readAt: ISODateTimeStringSchema.nullable()
1239
1242
  });
1240
1243
 
1241
1244
  // src/domain/meal-plan/meal-plan-share-link.schema.ts
1242
- var import_zod19 = require("zod");
1243
- var CreateMealPlanShareLinkRequestSchema = import_zod19.z.object({
1245
+ var import_zod20 = require("zod");
1246
+ var CreateMealPlanShareLinkRequestSchema = import_zod20.z.object({
1244
1247
  expiresAt: ISODateTimeStringSchema.optional(),
1245
- guestJoinEnabled: import_zod19.z.boolean().default(true)
1248
+ guestJoinEnabled: import_zod20.z.boolean().default(true)
1246
1249
  });
1247
- var MealPlanShareLinkSummarySchema = import_zod19.z.object({
1250
+ var MealPlanShareLinkSummarySchema = import_zod20.z.object({
1248
1251
  shareLinkId: MealPlanShareLinkIdSchema,
1249
1252
  mealPlanId: MealPlanIdSchema,
1250
1253
  token: MealPlanShareLinkTokenSchema,
1251
- url: import_zod19.z.string().url(),
1254
+ url: import_zod20.z.string().url(),
1252
1255
  expiresAt: ISODateTimeStringSchema,
1253
- guestJoinEnabled: import_zod19.z.boolean(),
1256
+ guestJoinEnabled: import_zod20.z.boolean(),
1254
1257
  createdAt: ISODateTimeStringSchema
1255
1258
  });
1256
- var MealPlanSharePreviewResponseSchema = import_zod19.z.object({
1259
+ var MealPlanSharePreviewResponseSchema = import_zod20.z.object({
1257
1260
  mealPlanId: MealPlanIdSchema,
1258
1261
  token: MealPlanShareLinkTokenSchema,
1259
- title: import_zod19.z.string(),
1260
- ownerName: import_zod19.z.string(),
1261
- participantCount: import_zod19.z.number().int().min(1),
1262
+ title: import_zod20.z.string(),
1263
+ ownerName: import_zod20.z.string(),
1264
+ participantCount: import_zod20.z.number().int().min(1),
1262
1265
  expiresAt: ISODateTimeStringSchema,
1263
- guestJoinEnabled: import_zod19.z.boolean()
1266
+ guestJoinEnabled: import_zod20.z.boolean()
1264
1267
  });
1265
- var JoinMealPlanGuestRequestSchema = import_zod19.z.object({
1266
- nickname: import_zod19.z.string().min(1).max(50),
1267
- password: import_zod19.z.string().min(1).max(100).optional()
1268
+ var JoinMealPlanGuestRequestSchema = import_zod20.z.object({
1269
+ nickname: import_zod20.z.string().min(1).max(50),
1270
+ password: import_zod20.z.string().min(1).max(100).optional()
1268
1271
  });
1269
- var JoinMealPlanGuestResponseSchema = import_zod19.z.object({
1272
+ var JoinMealPlanGuestResponseSchema = import_zod20.z.object({
1270
1273
  mealPlanId: MealPlanIdSchema,
1271
- guestId: import_zod19.z.string().min(1),
1272
- sessionToken: import_zod19.z.string().min(1)
1274
+ guestId: import_zod20.z.string().min(1),
1275
+ sessionToken: import_zod20.z.string().min(1)
1273
1276
  });
1274
- var MealPlanGuestSessionQuerySchema = import_zod19.z.object({
1275
- sessionToken: import_zod19.z.string().min(1)
1277
+ var MealPlanGuestSessionQuerySchema = import_zod20.z.object({
1278
+ sessionToken: import_zod20.z.string().min(1)
1276
1279
  });
1277
- var MealPlanGuestSessionResponseSchema = import_zod19.z.object({
1280
+ var MealPlanGuestSessionResponseSchema = import_zod20.z.object({
1278
1281
  mealPlan: MealPlanResponseSchema,
1279
1282
  token: MealPlanShareLinkTokenSchema,
1280
- guestId: import_zod19.z.string().min(1),
1281
- nickname: import_zod19.z.string().min(1).max(50),
1282
- sessionToken: import_zod19.z.string().min(1)
1283
+ guestId: import_zod20.z.string().min(1),
1284
+ nickname: import_zod20.z.string().min(1).max(50),
1285
+ sessionToken: import_zod20.z.string().min(1)
1283
1286
  });
1284
1287
 
1285
1288
  // src/domain/meal-plan/meal-group.schema.ts
1286
- var import_zod20 = require("zod");
1287
- var MealGroupMemberRoleSchema = import_zod20.z.enum([
1289
+ var import_zod21 = require("zod");
1290
+ var MealGroupMemberRoleSchema = import_zod21.z.enum([
1288
1291
  "OWNER",
1289
1292
  "MEMBER"
1290
1293
  ]);
1291
- var MealGroupMemberSchema = import_zod20.z.object({
1294
+ var MealGroupMemberSchema = import_zod21.z.object({
1292
1295
  member: MemberCoreSchema,
1293
1296
  role: MealGroupMemberRoleSchema,
1294
1297
  joinedAt: ISODateTimeStringSchema
1295
1298
  });
1296
- var MealGroupResponseSchema = import_zod20.z.object({
1299
+ var MealGroupResponseSchema = import_zod21.z.object({
1297
1300
  mealGroupId: MealGroupIdSchema,
1298
- name: import_zod20.z.string().min(1).max(50),
1301
+ name: import_zod21.z.string().min(1).max(50),
1299
1302
  owner: MemberCoreSchema,
1300
- profileImageUrl: import_zod20.z.string().url().nullable(),
1301
- members: import_zod20.z.array(MealGroupMemberSchema),
1302
- recentMealPlanIds: import_zod20.z.array(MealPlanIdSchema),
1303
+ profileImageUrl: import_zod21.z.string().url().nullable(),
1304
+ members: import_zod21.z.array(MealGroupMemberSchema),
1305
+ recentMealPlanIds: import_zod21.z.array(MealPlanIdSchema),
1303
1306
  createdAt: ISODateTimeStringSchema,
1304
1307
  updatedAt: ISODateTimeStringSchema
1305
1308
  });
1306
- var CreateMealGroupRequestSchema = import_zod20.z.object({
1307
- name: import_zod20.z.string().min(1).max(50),
1308
- memberIds: import_zod20.z.array(import_zod20.z.number().int().positive()).min(1),
1309
- profileImageUrl: import_zod20.z.string().url().nullable().optional(),
1309
+ var CreateMealGroupRequestSchema = import_zod21.z.object({
1310
+ name: import_zod21.z.string().min(1).max(50),
1311
+ memberIds: import_zod21.z.array(import_zod21.z.number().int().positive()).min(1),
1312
+ profileImageUrl: import_zod21.z.string().url().nullable().optional(),
1310
1313
  sourceMealPlanId: MealPlanIdSchema.optional()
1311
1314
  });
1312
- var StartMealPlanFromGroupRequestSchema = import_zod20.z.object({
1313
- title: import_zod20.z.string().min(1).max(100).optional()
1315
+ var StartMealPlanFromGroupRequestSchema = import_zod21.z.object({
1316
+ title: import_zod21.z.string().min(1).max(100).optional()
1314
1317
  });
1315
- var AddMealGroupMemberRequestSchema = import_zod20.z.object({
1316
- memberId: import_zod20.z.number().int().positive(),
1318
+ var AddMealGroupMemberRequestSchema = import_zod21.z.object({
1319
+ memberId: import_zod21.z.number().int().positive(),
1317
1320
  role: MealGroupMemberRoleSchema.default("MEMBER")
1318
1321
  });
1319
- var UpdateMealGroupMemberRoleRequestSchema = import_zod20.z.object({
1322
+ var UpdateMealGroupMemberRoleRequestSchema = import_zod21.z.object({
1320
1323
  role: MealGroupMemberRoleSchema
1321
1324
  });
1322
1325
  var MealGroupHistoryItemSchema = MyMealPlanListItemSchema.extend({});
1323
- var MealGroupPreferenceSummarySchema = import_zod20.z.object({
1326
+ var MealGroupPreferenceSummarySchema = import_zod21.z.object({
1324
1327
  mealGroupId: MealGroupIdSchema,
1325
- frequentMenuCategories: import_zod20.z.array(import_zod20.z.object({
1326
- label: import_zod20.z.string(),
1327
- count: import_zod20.z.number().int().min(0)
1328
- })),
1329
- frequentRestaurants: import_zod20.z.array(import_zod20.z.object({
1330
- restaurantName: import_zod20.z.string(),
1331
- count: import_zod20.z.number().int().min(0)
1332
- })),
1333
- recentMenuCategories: import_zod20.z.array(import_zod20.z.string()),
1334
- recommendationContext: import_zod20.z.object({
1335
- preferredMenuCategories: import_zod20.z.array(import_zod20.z.string()),
1336
- excludedMenuCategories: import_zod20.z.array(import_zod20.z.string()),
1337
- candidateMenuCategories: import_zod20.z.array(import_zod20.z.string())
1328
+ frequentMenuCategories: import_zod21.z.array(import_zod21.z.object({ label: import_zod21.z.string(), count: import_zod21.z.number().int().min(0) })),
1329
+ frequentRestaurants: import_zod21.z.array(import_zod21.z.object({ restaurantName: import_zod21.z.string(), count: import_zod21.z.number().int().min(0) })),
1330
+ recentMenuCategories: import_zod21.z.array(import_zod21.z.string()),
1331
+ recommendationContext: import_zod21.z.object({
1332
+ preferredMenuCategories: import_zod21.z.array(import_zod21.z.string()),
1333
+ excludedMenuCategories: import_zod21.z.array(import_zod21.z.string()),
1334
+ candidateMenuCategories: import_zod21.z.array(import_zod21.z.string())
1338
1335
  })
1339
1336
  });
1340
- var MealGroupHistoryResponseSchema = import_zod20.z.array(MealGroupHistoryItemSchema);
1337
+ var MealGroupHistoryResponseSchema = import_zod21.z.array(MealGroupHistoryItemSchema);
1341
1338
 
1342
1339
  // src/domain/meal-plan/meal-plan-home-map.schema.ts
1343
- var import_zod21 = require("zod");
1344
- var HomeMealPlanActionKindSchema = import_zod21.z.enum([
1340
+ var import_zod22 = require("zod");
1341
+ var HomeMealPlanActionKindSchema = import_zod22.z.enum([
1345
1342
  "CONTINUE_DECISION",
1346
1343
  "TODAY_UPCOMING",
1347
1344
  "RECORD_NEEDED",
1348
1345
  "RESPOND_JOIN_REQUEST",
1349
1346
  "NOTIFICATION_FOLLOW_UP"
1350
1347
  ]);
1351
- var HomeMealPlanActionCardSchema = import_zod21.z.object({
1352
- actionId: import_zod21.z.string().min(1),
1348
+ var HomeMealPlanActionCardSchema = import_zod22.z.object({
1349
+ actionId: import_zod22.z.string().min(1),
1353
1350
  kind: HomeMealPlanActionKindSchema,
1354
- priority: import_zod21.z.number().int().min(0),
1355
- title: import_zod21.z.string().min(1),
1356
- description: import_zod21.z.string().min(1),
1357
- primaryAction: import_zod21.z.object({
1358
- label: import_zod21.z.string().min(1),
1359
- href: import_zod21.z.string().min(1)
1351
+ priority: import_zod22.z.number().int().min(0),
1352
+ title: import_zod22.z.string().min(1),
1353
+ description: import_zod22.z.string().min(1),
1354
+ primaryAction: import_zod22.z.object({
1355
+ label: import_zod22.z.string().min(1),
1356
+ href: import_zod22.z.string().min(1)
1360
1357
  }),
1361
1358
  mealPlan: MyMealPlanListItemSchema.nullable(),
1362
1359
  joinRequest: MealPlanJoinRequestSummarySchema.nullable(),
1363
1360
  notification: MealPlanNotificationSchema.nullable().default(null)
1364
1361
  });
1365
- var HomeMealPlanDashboardResponseSchema = import_zod21.z.object({
1362
+ var HomeMealPlanDashboardResponseSchema = import_zod22.z.object({
1366
1363
  generatedAt: ISODateTimeStringSchema,
1367
- inProgress: import_zod21.z.array(MyMealPlanListItemSchema),
1368
- today: import_zod21.z.array(MyMealPlanListItemSchema),
1369
- recordNeeded: import_zod21.z.array(MyMealPlanListItemSchema),
1370
- pendingJoinRequests: import_zod21.z.array(MealPlanJoinRequestSummarySchema),
1371
- unreadNotifications: import_zod21.z.array(MealPlanNotificationSchema).default([]),
1372
- nextActions: import_zod21.z.array(HomeMealPlanActionCardSchema)
1373
- });
1374
- var MealMapLayerSchema = import_zod21.z.enum([
1364
+ inProgress: import_zod22.z.array(MyMealPlanListItemSchema),
1365
+ today: import_zod22.z.array(MyMealPlanListItemSchema),
1366
+ recordNeeded: import_zod22.z.array(MyMealPlanListItemSchema),
1367
+ pendingJoinRequests: import_zod22.z.array(MealPlanJoinRequestSummarySchema),
1368
+ unreadNotifications: import_zod22.z.array(MealPlanNotificationSchema).default([]),
1369
+ nextActions: import_zod22.z.array(HomeMealPlanActionCardSchema)
1370
+ });
1371
+ var MealMapLayerSchema = import_zod22.z.enum([
1375
1372
  "MY_MEAL_PLAN_PLACE",
1376
1373
  "NEARBY_FRIEND_MEAL_PLAN",
1377
1374
  "FRIEND_RECORD_LOCATION",
1378
1375
  "RESTAURANT_CANDIDATE"
1379
1376
  ]);
1380
- var MealMapMarkerBaseSchema = import_zod21.z.object({
1381
- markerId: import_zod21.z.string().min(1),
1382
- lat: import_zod21.z.number().min(-90).max(90),
1383
- lng: import_zod21.z.number().min(-180).max(180),
1384
- title: import_zod21.z.string().min(1),
1385
- subtitle: import_zod21.z.string().nullable(),
1386
- href: import_zod21.z.string().min(1).nullable(),
1377
+ var MealMapMarkerBaseSchema = import_zod22.z.object({
1378
+ markerId: import_zod22.z.string().min(1),
1379
+ lat: import_zod22.z.number().min(-90).max(90),
1380
+ lng: import_zod22.z.number().min(-180).max(180),
1381
+ title: import_zod22.z.string().min(1),
1382
+ subtitle: import_zod22.z.string().nullable(),
1383
+ href: import_zod22.z.string().min(1).nullable(),
1387
1384
  mealPlanId: MealPlanIdSchema.nullable(),
1388
1385
  articleId: ArticleIdSchema.nullable(),
1389
1386
  restaurant: RestaurantSchema.nullable(),
1390
- distanceMeters: import_zod21.z.number().int().min(0).nullable(),
1387
+ distanceMeters: import_zod22.z.number().int().min(0).nullable(),
1391
1388
  updatedAt: ISODateTimeStringSchema
1392
1389
  });
1393
- var MealMapMyMealPlanPlaceMetadataSchema = import_zod21.z.object({
1390
+ var MealMapMyMealPlanPlaceMetadataSchema = import_zod22.z.object({
1394
1391
  ownerId: MemberIdSchema.nullable().default(null),
1395
- status: import_zod21.z.string().min(1),
1396
- participantCount: import_zod21.z.number().int().min(1),
1397
- source: import_zod21.z.string().min(1)
1392
+ status: import_zod22.z.string().min(1),
1393
+ participantCount: import_zod22.z.number().int().min(1),
1394
+ source: import_zod22.z.string().min(1)
1398
1395
  });
1399
- var MealMapNearbyFriendMealPlanMetadataSchema = import_zod21.z.object({
1396
+ var MealMapNearbyFriendMealPlanMetadataSchema = import_zod22.z.object({
1400
1397
  ownerId: MemberIdSchema.nullable().default(null),
1401
- ownerName: import_zod21.z.string().min(1),
1402
- participantCount: import_zod21.z.number().int().min(1),
1398
+ ownerName: import_zod22.z.string().min(1),
1399
+ participantCount: import_zod22.z.number().int().min(1),
1403
1400
  expiresAt: ISODateTimeStringSchema.nullable(),
1404
- source: import_zod21.z.string().min(1)
1401
+ source: import_zod22.z.string().min(1)
1405
1402
  });
1406
- var MealMapFriendRecordLocationMetadataSchema = import_zod21.z.object({
1403
+ var MealMapFriendRecordLocationMetadataSchema = import_zod22.z.object({
1407
1404
  authorId: MemberIdSchema.nullable().default(null),
1408
- authorName: import_zod21.z.string().min(1),
1409
- imageUrl: import_zod21.z.string().nullable().default(null),
1410
- mealDate: import_zod21.z.string().min(1)
1405
+ authorName: import_zod22.z.string().min(1),
1406
+ imageUrl: import_zod22.z.string().nullable().default(null),
1407
+ mealDate: import_zod22.z.string().min(1)
1411
1408
  });
1412
- var MealMapRestaurantCandidateCompletionBlockedReasonSchema = import_zod21.z.enum([
1409
+ var MealMapRestaurantCandidateCompletionBlockedReasonSchema = import_zod22.z.enum([
1413
1410
  "OWNER_ONLY",
1414
1411
  "STAGE_ALREADY_COMPLETED",
1415
1412
  "MEAL_PLAN_NOT_MUTABLE"
1416
1413
  ]);
1417
- var MealMapRestaurantCandidateMetadataSchema = import_zod21.z.object({
1414
+ var MealMapRestaurantCandidateMetadataSchema = import_zod22.z.object({
1418
1415
  stageId: MealPlanDecisionStageIdSchema,
1419
1416
  ownerId: MemberIdSchema.nullable().default(null),
1420
- status: import_zod21.z.string().min(1),
1421
- source: import_zod21.z.enum([
1422
- "search",
1423
- "fallback",
1424
- "manual"
1425
- ]).default("search"),
1426
- stageStatus: import_zod21.z.enum([
1427
- "OPEN",
1428
- "COMPLETED",
1429
- "REOPENED"
1430
- ]).default("OPEN"),
1431
- canVote: import_zod21.z.boolean().default(false),
1432
- canCompleteStage: import_zod21.z.boolean().default(false),
1417
+ status: import_zod22.z.string().min(1),
1418
+ source: import_zod22.z.enum(["search", "fallback", "manual"]).default("search"),
1419
+ stageStatus: import_zod22.z.enum(["OPEN", "COMPLETED", "REOPENED"]).default("OPEN"),
1420
+ canVote: import_zod22.z.boolean().default(false),
1421
+ canCompleteStage: import_zod22.z.boolean().default(false),
1433
1422
  completionBlockedReason: MealMapRestaurantCandidateCompletionBlockedReasonSchema.nullable().default(null)
1434
1423
  });
1435
- var MealMapMarkerSchema = import_zod21.z.discriminatedUnion("layer", [
1424
+ var MealMapMarkerSchema = import_zod22.z.discriminatedUnion("layer", [
1436
1425
  MealMapMarkerBaseSchema.extend({
1437
- layer: import_zod21.z.literal("MY_MEAL_PLAN_PLACE"),
1426
+ layer: import_zod22.z.literal("MY_MEAL_PLAN_PLACE"),
1438
1427
  metadata: MealMapMyMealPlanPlaceMetadataSchema
1439
1428
  }),
1440
1429
  MealMapMarkerBaseSchema.extend({
1441
- layer: import_zod21.z.literal("NEARBY_FRIEND_MEAL_PLAN"),
1430
+ layer: import_zod22.z.literal("NEARBY_FRIEND_MEAL_PLAN"),
1442
1431
  metadata: MealMapNearbyFriendMealPlanMetadataSchema
1443
1432
  }),
1444
1433
  MealMapMarkerBaseSchema.extend({
1445
- layer: import_zod21.z.literal("FRIEND_RECORD_LOCATION"),
1434
+ layer: import_zod22.z.literal("FRIEND_RECORD_LOCATION"),
1446
1435
  metadata: MealMapFriendRecordLocationMetadataSchema
1447
1436
  }),
1448
1437
  MealMapMarkerBaseSchema.extend({
1449
- layer: import_zod21.z.literal("RESTAURANT_CANDIDATE"),
1438
+ layer: import_zod22.z.literal("RESTAURANT_CANDIDATE"),
1450
1439
  metadata: MealMapRestaurantCandidateMetadataSchema
1451
1440
  })
1452
1441
  ]);
1453
- var MealMapQuerySchema = import_zod21.z.object({
1454
- friendRecordDays: import_zod21.z.coerce.number().int().min(1).max(90).optional().default(7)
1442
+ var MealMapQuerySchema = import_zod22.z.object({
1443
+ friendRecordDays: import_zod22.z.coerce.number().int().min(1).max(90).optional().default(7)
1455
1444
  });
1456
- var MealMapResponseSchema = import_zod21.z.object({
1445
+ var MealMapResponseSchema = import_zod22.z.object({
1457
1446
  generatedAt: ISODateTimeStringSchema,
1458
- center: import_zod21.z.object({
1459
- lat: import_zod21.z.number().min(-90).max(90),
1460
- lng: import_zod21.z.number().min(-180).max(180),
1461
- source: import_zod21.z.enum([
1462
- "LAST_KNOWN_LOCATION",
1463
- "MY_MEAL_PLAN",
1464
- "DEFAULT"
1465
- ])
1447
+ center: import_zod22.z.object({
1448
+ lat: import_zod22.z.number().min(-90).max(90),
1449
+ lng: import_zod22.z.number().min(-180).max(180),
1450
+ source: import_zod22.z.enum(["LAST_KNOWN_LOCATION", "MY_MEAL_PLAN", "DEFAULT"])
1466
1451
  }),
1467
- layers: import_zod21.z.object({
1468
- myMealPlanPlaces: import_zod21.z.array(MealMapMarkerSchema),
1469
- nearbyFriendMealPlans: import_zod21.z.array(MealMapMarkerSchema),
1470
- friendRecordLocations: import_zod21.z.array(MealMapMarkerSchema),
1471
- restaurantCandidates: import_zod21.z.array(MealMapMarkerSchema)
1452
+ layers: import_zod22.z.object({
1453
+ myMealPlanPlaces: import_zod22.z.array(MealMapMarkerSchema),
1454
+ nearbyFriendMealPlans: import_zod22.z.array(MealMapMarkerSchema),
1455
+ friendRecordLocations: import_zod22.z.array(MealMapMarkerSchema),
1456
+ restaurantCandidates: import_zod22.z.array(MealMapMarkerSchema)
1472
1457
  })
1473
1458
  });
1474
1459
 
1475
1460
  // src/domain/promotion/referral.schema.ts
1476
- var import_zod22 = require("zod");
1477
- var ReferralCreateResponseSchema = import_zod22.z.object({
1461
+ var import_zod23 = require("zod");
1462
+ var ReferralCreateResponseSchema = import_zod23.z.object({
1478
1463
  code: ReferralCodeSchema,
1479
- link: import_zod22.z.string().url(),
1464
+ link: import_zod23.z.string().url(),
1480
1465
  expiresAt: ISODateTimeStringSchema
1481
1466
  });
1482
- var ReferralItemResponseSchema = import_zod22.z.object({
1467
+ var ReferralItemResponseSchema = import_zod23.z.object({
1483
1468
  code: ReferralCodeSchema,
1484
1469
  createdAt: ISODateTimeStringSchema,
1485
1470
  expiresAt: ISODateTimeStringSchema,
1486
- used: import_zod22.z.boolean(),
1471
+ used: import_zod23.z.boolean(),
1487
1472
  usedByMemberId: MemberIdSchema.nullable(),
1488
- usedByUsername: import_zod22.z.string().nullable()
1473
+ usedByUsername: import_zod23.z.string().nullable()
1489
1474
  });
1490
- var RedeemReferralRequestSchema = import_zod22.z.object({
1475
+ var RedeemReferralRequestSchema = import_zod23.z.object({
1491
1476
  code: ReferralCodeSchema
1492
1477
  });
1493
1478
 
1494
1479
  // src/domain/promotion/coupon.schema.ts
1495
- var import_zod23 = require("zod");
1496
- var CouponTypeSchema = import_zod23.z.enum([
1497
- "DISCOUNT",
1498
- "SERVICE"
1499
- ]);
1500
- var CouponStatusSchema = import_zod23.z.enum([
1501
- "UNUSED",
1502
- "USED"
1503
- ]);
1504
- var CouponResponseSchema = import_zod23.z.object({
1480
+ var import_zod24 = require("zod");
1481
+ var CouponTypeSchema = import_zod24.z.enum(["DISCOUNT", "SERVICE"]);
1482
+ var CouponStatusSchema = import_zod24.z.enum(["UNUSED", "USED"]);
1483
+ var CouponResponseSchema = import_zod24.z.object({
1505
1484
  couponId: CouponIdSchema,
1506
- title: import_zod23.z.string(),
1507
- shopName: import_zod23.z.string(),
1485
+ title: import_zod24.z.string(),
1486
+ shopName: import_zod24.z.string(),
1508
1487
  type: CouponTypeSchema,
1509
- condition: import_zod23.z.string(),
1488
+ condition: import_zod24.z.string(),
1510
1489
  expiresAt: ISODateStringSchema,
1511
- used: import_zod23.z.boolean(),
1512
- thumbnailUrl: import_zod23.z.string().url()
1490
+ used: import_zod24.z.boolean(),
1491
+ thumbnailUrl: import_zod24.z.string().url()
1513
1492
  });
1514
1493
 
1515
1494
  // src/domain/promotion/challenge.schema.ts
1516
- var import_zod24 = require("zod");
1517
- var RewardTypeSchema = import_zod24.z.enum([
1518
- "WEEK",
1519
- "MONTH"
1520
- ]);
1521
- var WeekProgressSchema = import_zod24.z.object({
1522
- days: import_zod24.z.array(import_zod24.z.boolean()),
1523
- completed: import_zod24.z.number().int().min(0),
1524
- goal: import_zod24.z.number().int().positive()
1495
+ var import_zod25 = require("zod");
1496
+ var RewardTypeSchema = import_zod25.z.enum(["WEEK", "MONTH"]);
1497
+ var WeekProgressSchema = import_zod25.z.object({
1498
+ days: import_zod25.z.array(import_zod25.z.boolean()),
1499
+ completed: import_zod25.z.number().int().min(0),
1500
+ goal: import_zod25.z.number().int().positive()
1525
1501
  });
1526
- var MonthProgressSchema = import_zod24.z.object({
1527
- count: import_zod24.z.number().int().min(0),
1528
- goal: import_zod24.z.number().int().positive()
1502
+ var MonthProgressSchema = import_zod25.z.object({
1503
+ count: import_zod25.z.number().int().min(0),
1504
+ goal: import_zod25.z.number().int().positive()
1529
1505
  });
1530
- var ChallengeStatusResponseSchema = import_zod24.z.object({
1506
+ var ChallengeStatusResponseSchema = import_zod25.z.object({
1531
1507
  week: WeekProgressSchema,
1532
1508
  month: MonthProgressSchema,
1533
- weekRewardAvailable: import_zod24.z.boolean(),
1534
- monthRewardAvailable: import_zod24.z.boolean()
1509
+ weekRewardAvailable: import_zod25.z.boolean(),
1510
+ monthRewardAvailable: import_zod25.z.boolean()
1535
1511
  });
1536
- var ClaimChallengeRewardRequestSchema = import_zod24.z.object({
1512
+ var ClaimChallengeRewardRequestSchema = import_zod25.z.object({
1537
1513
  type: RewardTypeSchema
1538
1514
  });
1539
- var ClaimChallengeRewardResponseSchema = import_zod24.z.object({
1515
+ var ClaimChallengeRewardResponseSchema = import_zod25.z.object({
1540
1516
  rewardType: RewardTypeSchema,
1541
- claimed: import_zod24.z.boolean()
1517
+ claimed: import_zod25.z.boolean()
1542
1518
  });
1543
1519
 
1544
1520
  // src/domain/push/push.schema.ts
1545
- var import_zod25 = require("zod");
1546
- var PushProviderSchema = import_zod25.z.enum([
1547
- "FCM",
1548
- "APNS_LIVE_ACTIVITY"
1549
- ]);
1550
- var PushPlatformSchema = import_zod25.z.enum([
1551
- "WEB",
1552
- "ANDROID",
1553
- "IOS"
1554
- ]);
1555
- var PushPermissionStatusSchema = import_zod25.z.enum([
1521
+ var import_zod26 = require("zod");
1522
+ var PushProviderSchema = import_zod26.z.enum(["FCM", "APNS_LIVE_ACTIVITY"]);
1523
+ var PushPlatformSchema = import_zod26.z.enum(["WEB", "ANDROID", "IOS"]);
1524
+ var PushPermissionStatusSchema = import_zod26.z.enum([
1556
1525
  "UNKNOWN",
1557
1526
  "PROMPT",
1558
1527
  "GRANTED",
1559
1528
  "DENIED"
1560
1529
  ]);
1561
- var PushTokenStatusSchema = import_zod25.z.enum([
1562
- "ACTIVE",
1563
- "REVOKED",
1564
- "DISABLED"
1565
- ]);
1566
- var RegisterPushTokenRequestSchema = import_zod25.z.object({
1530
+ var PushTokenStatusSchema = import_zod26.z.enum(["ACTIVE", "REVOKED", "DISABLED"]);
1531
+ var RegisterPushTokenRequestSchema = import_zod26.z.object({
1567
1532
  provider: PushProviderSchema.default("FCM"),
1568
1533
  platform: PushPlatformSchema,
1569
- token: import_zod25.z.string().min(10),
1570
- deviceId: import_zod25.z.string().min(1).max(128),
1571
- appVersion: import_zod25.z.string().min(1).max(64).optional(),
1572
- buildNumber: import_zod25.z.string().min(1).max(64).optional(),
1534
+ token: import_zod26.z.string().min(10),
1535
+ deviceId: import_zod26.z.string().min(1).max(128),
1536
+ appVersion: import_zod26.z.string().min(1).max(64).optional(),
1537
+ buildNumber: import_zod26.z.string().min(1).max(64).optional(),
1573
1538
  permissionStatus: PushPermissionStatusSchema
1574
1539
  });
1575
- var RevokePushTokenRequestSchema = import_zod25.z.object({
1540
+ var RevokePushTokenRequestSchema = import_zod26.z.object({
1576
1541
  provider: PushProviderSchema.default("FCM"),
1577
- token: import_zod25.z.string().min(10).optional(),
1578
- deviceId: import_zod25.z.string().min(1).max(128).optional()
1542
+ token: import_zod26.z.string().min(10).optional(),
1543
+ deviceId: import_zod26.z.string().min(1).max(128).optional()
1579
1544
  });
1580
- var PushTokenResponseSchema = import_zod25.z.object({
1581
- pushTokenId: import_zod25.z.string().uuid(),
1545
+ var PushTokenResponseSchema = import_zod26.z.object({
1546
+ pushTokenId: import_zod26.z.string().uuid(),
1582
1547
  provider: PushProviderSchema,
1583
1548
  platform: PushPlatformSchema,
1584
- deviceId: import_zod25.z.string(),
1549
+ deviceId: import_zod26.z.string(),
1585
1550
  status: PushTokenStatusSchema,
1586
1551
  permissionStatus: PushPermissionStatusSchema,
1587
- appVersion: import_zod25.z.string().nullable(),
1588
- buildNumber: import_zod25.z.string().nullable(),
1552
+ appVersion: import_zod26.z.string().nullable(),
1553
+ buildNumber: import_zod26.z.string().nullable(),
1589
1554
  lastSeenAt: ISODateTimeStringSchema,
1590
1555
  revokedAt: ISODateTimeStringSchema.nullable()
1591
1556
  });
1592
- var PushPayloadSchemaVersionSchema = import_zod25.z.literal("2026-06-17");
1593
- var MealPlanPushPayloadDataSchema = import_zod25.z.object({
1557
+ var PushPayloadSchemaVersionSchema = import_zod26.z.literal("2026-06-17");
1558
+ var MealPlanPushPayloadDataSchema = import_zod26.z.object({
1594
1559
  schemaVersion: PushPayloadSchemaVersionSchema,
1595
- notificationId: import_zod25.z.string().min(1),
1560
+ notificationId: import_zod26.z.string().min(1),
1596
1561
  kind: MealPlanNotificationKindSchema,
1597
1562
  mealPlanId: MealPlanIdSchema,
1598
- deepLink: import_zod25.z.string().min(1),
1599
- title: import_zod25.z.string().min(1),
1600
- body: import_zod25.z.string().min(1),
1601
- fcmPriority: import_zod25.z.coerce.number().int().min(0),
1602
- liveActivityPriority: import_zod25.z.coerce.number().int().min(0),
1563
+ deepLink: import_zod26.z.string().min(1),
1564
+ title: import_zod26.z.string().min(1),
1565
+ body: import_zod26.z.string().min(1),
1566
+ fcmPriority: import_zod26.z.coerce.number().int().min(0),
1567
+ liveActivityPriority: import_zod26.z.coerce.number().int().min(0),
1603
1568
  liveActivityBehavior: MealPlanLiveActivityBehaviorSchema
1604
1569
  });
1605
- var PushDeliveryStatusSchema = import_zod25.z.enum([
1570
+ var PushDeliveryStatusSchema = import_zod26.z.enum([
1606
1571
  "PENDING",
1607
1572
  "SENT",
1608
1573
  "FAILED",
1609
1574
  "SKIPPED"
1610
1575
  ]);
1611
- var PushDeliveryAttemptResultSchema = import_zod25.z.enum([
1576
+ var PushDeliveryAttemptResultSchema = import_zod26.z.enum([
1612
1577
  "SENT",
1613
1578
  "FAILED",
1614
1579
  "SKIPPED"
1615
1580
  ]);
1616
- var PushDeliveryAttemptSummarySchema = import_zod25.z.object({
1617
- attemptId: import_zod25.z.string().uuid(),
1618
- outboxId: import_zod25.z.string().uuid(),
1619
- pushTokenId: import_zod25.z.string().uuid().nullable(),
1581
+ var PushDeliveryAttemptSummarySchema = import_zod26.z.object({
1582
+ attemptId: import_zod26.z.string().uuid(),
1583
+ outboxId: import_zod26.z.string().uuid(),
1584
+ pushTokenId: import_zod26.z.string().uuid().nullable(),
1620
1585
  provider: PushProviderSchema,
1621
1586
  result: PushDeliveryAttemptResultSchema,
1622
- providerMessageId: import_zod25.z.string().nullable(),
1623
- errorCode: import_zod25.z.string().nullable(),
1624
- errorMessage: import_zod25.z.string().nullable(),
1625
- invalidToken: import_zod25.z.boolean(),
1587
+ providerMessageId: import_zod26.z.string().nullable(),
1588
+ errorCode: import_zod26.z.string().nullable(),
1589
+ errorMessage: import_zod26.z.string().nullable(),
1590
+ invalidToken: import_zod26.z.boolean(),
1626
1591
  createdAt: ISODateTimeStringSchema
1627
1592
  });
1628
- var PushDeliveryOutboxSummarySchema = import_zod25.z.object({
1629
- outboxId: import_zod25.z.string().uuid(),
1630
- notificationId: import_zod25.z.string().min(1),
1631
- memberId: import_zod25.z.number().int().positive(),
1593
+ var PushDeliveryOutboxSummarySchema = import_zod26.z.object({
1594
+ outboxId: import_zod26.z.string().uuid(),
1595
+ notificationId: import_zod26.z.string().min(1),
1596
+ memberId: import_zod26.z.number().int().positive(),
1632
1597
  status: PushDeliveryStatusSchema,
1633
- attemptCount: import_zod25.z.number().int().min(0),
1634
- lastError: import_zod25.z.string().nullable(),
1598
+ attemptCount: import_zod26.z.number().int().min(0),
1599
+ lastError: import_zod26.z.string().nullable(),
1635
1600
  nextAttemptAt: ISODateTimeStringSchema.nullable(),
1636
1601
  sentAt: ISODateTimeStringSchema.nullable(),
1637
1602
  createdAt: ISODateTimeStringSchema
1638
1603
  });
1639
1604
 
1640
1605
  // src/domain/live-activity/live-activity.schema.ts
1641
- var import_zod26 = require("zod");
1642
- var MealPlanLiveActivityPlatformSchema = import_zod26.z.enum([
1606
+ var import_zod27 = require("zod");
1607
+ var MealPlanLiveActivityPlatformSchema = import_zod27.z.enum([
1643
1608
  "IOS_LIVE_ACTIVITY",
1644
1609
  "ANDROID_LIVE_UPDATE"
1645
1610
  ]);
1646
- var MealPlanLiveActivitySessionStatusSchema = import_zod26.z.enum([
1611
+ var MealPlanLiveActivitySessionStatusSchema = import_zod27.z.enum([
1647
1612
  "ACTIVE",
1648
1613
  "ENDED",
1649
1614
  "EXPIRED",
1650
1615
  "DISABLED"
1651
1616
  ]);
1652
- var MealPlanLiveActivityUpdateStatusSchema = import_zod26.z.enum([
1617
+ var MealPlanLiveActivityUpdateStatusSchema = import_zod27.z.enum([
1653
1618
  "PENDING",
1654
1619
  "SENT",
1655
1620
  "FAILED",
1656
1621
  "SKIPPED"
1657
1622
  ]);
1658
- var RegisterMealPlanLiveActivitySessionRequestSchema = import_zod26.z.object({
1623
+ var RegisterMealPlanLiveActivitySessionRequestSchema = import_zod27.z.object({
1659
1624
  platform: MealPlanLiveActivityPlatformSchema,
1660
- deviceId: import_zod26.z.string().min(1).max(128),
1661
- activityId: import_zod26.z.string().min(1).max(128),
1662
- pushToken: import_zod26.z.string().min(10).optional(),
1663
- appVersion: import_zod26.z.string().min(1).max(64).optional(),
1664
- buildNumber: import_zod26.z.string().min(1).max(64).optional()
1625
+ deviceId: import_zod27.z.string().min(1).max(128),
1626
+ activityId: import_zod27.z.string().min(1).max(128),
1627
+ pushToken: import_zod27.z.string().min(10).optional(),
1628
+ appVersion: import_zod27.z.string().min(1).max(64).optional(),
1629
+ buildNumber: import_zod27.z.string().min(1).max(64).optional()
1665
1630
  });
1666
- var EndMealPlanLiveActivitySessionRequestSchema = import_zod26.z.object({
1631
+ var EndMealPlanLiveActivitySessionRequestSchema = import_zod27.z.object({
1667
1632
  platform: MealPlanLiveActivityPlatformSchema.optional(),
1668
- deviceId: import_zod26.z.string().min(1).max(128).optional(),
1669
- activityId: import_zod26.z.string().min(1).max(128).optional()
1633
+ deviceId: import_zod27.z.string().min(1).max(128).optional(),
1634
+ activityId: import_zod27.z.string().min(1).max(128).optional()
1670
1635
  });
1671
- var MealPlanLiveActivityStateSchema = import_zod26.z.object({
1636
+ var MealPlanLiveActivityStateSchema = import_zod27.z.object({
1672
1637
  mealPlanId: MealPlanIdSchema,
1673
- title: import_zod26.z.string().min(1),
1674
- status: import_zod26.z.string().min(1),
1638
+ title: import_zod27.z.string().min(1),
1639
+ status: import_zod27.z.string().min(1),
1675
1640
  scheduledAt: ISODateTimeStringSchema.nullable(),
1676
- restaurantName: import_zod26.z.string().nullable(),
1677
- placeName: import_zod26.z.string().nullable(),
1678
- deepLink: import_zod26.z.string().min(1),
1679
- progressLabel: import_zod26.z.string().min(1),
1641
+ restaurantName: import_zod27.z.string().nullable(),
1642
+ placeName: import_zod27.z.string().nullable(),
1643
+ deepLink: import_zod27.z.string().min(1),
1644
+ progressLabel: import_zod27.z.string().min(1),
1680
1645
  updatedAt: ISODateTimeStringSchema
1681
1646
  });
1682
- var MealPlanLiveActivitySessionResponseSchema = import_zod26.z.object({
1683
- sessionId: import_zod26.z.string().uuid(),
1647
+ var MealPlanLiveActivitySessionResponseSchema = import_zod27.z.object({
1648
+ sessionId: import_zod27.z.string().uuid(),
1684
1649
  mealPlanId: MealPlanIdSchema,
1685
- memberId: import_zod26.z.number().int().positive(),
1650
+ memberId: import_zod27.z.number().int().positive(),
1686
1651
  platform: MealPlanLiveActivityPlatformSchema,
1687
1652
  devicePlatform: PushPlatformSchema,
1688
- deviceId: import_zod26.z.string(),
1689
- activityId: import_zod26.z.string(),
1653
+ deviceId: import_zod27.z.string(),
1654
+ activityId: import_zod27.z.string(),
1690
1655
  status: MealPlanLiveActivitySessionStatusSchema,
1691
- appVersion: import_zod26.z.string().nullable(),
1692
- buildNumber: import_zod26.z.string().nullable(),
1656
+ appVersion: import_zod27.z.string().nullable(),
1657
+ buildNumber: import_zod27.z.string().nullable(),
1693
1658
  lastEventKind: MealPlanNotificationKindSchema.nullable(),
1694
1659
  lastBehavior: MealPlanLiveActivityBehaviorSchema.nullable(),
1695
1660
  lastUpdateStatus: MealPlanLiveActivityUpdateStatusSchema.nullable(),
1696
- lastError: import_zod26.z.string().nullable(),
1661
+ lastError: import_zod27.z.string().nullable(),
1697
1662
  startedAt: ISODateTimeStringSchema,
1698
1663
  endedAt: ISODateTimeStringSchema.nullable(),
1699
1664
  updatedAt: ISODateTimeStringSchema
1700
1665
  });
1701
- var MealPlanLiveActivitySessionListResponseSchema = import_zod26.z.object({
1666
+ var MealPlanLiveActivitySessionListResponseSchema = import_zod27.z.object({
1702
1667
  mealPlanId: MealPlanIdSchema,
1703
1668
  state: MealPlanLiveActivityStateSchema,
1704
- sessions: import_zod26.z.array(MealPlanLiveActivitySessionResponseSchema)
1669
+ sessions: import_zod27.z.array(MealPlanLiveActivitySessionResponseSchema)
1705
1670
  });
1706
1671
 
1707
1672
  // src/domain/common/contracts/endpoint.ts
1708
- var import_zod27 = require("zod");
1709
- var NoBodySchema = import_zod27.z.undefined();
1710
- var NoQuerySchema = import_zod27.z.undefined();
1711
- var NoParamsSchema = import_zod27.z.undefined();
1712
- var endpoint = /* @__PURE__ */ __name((contract) => ({
1673
+ var import_zod28 = require("zod");
1674
+ var NoBodySchema = import_zod28.z.undefined();
1675
+ var NoQuerySchema = import_zod28.z.undefined();
1676
+ var NoParamsSchema = import_zod28.z.undefined();
1677
+ var endpoint = (contract) => ({
1713
1678
  method: contract.method,
1714
1679
  path: contract.path,
1715
1680
  pathParams: contract.pathParams ?? NoParamsSchema,
1716
1681
  query: contract.query ?? NoQuerySchema,
1717
1682
  body: contract.body ?? NoBodySchema,
1718
1683
  response: contract.response
1719
- }), "endpoint");
1684
+ });
1720
1685
 
1721
1686
  // src/domain/common/contracts/api.ts
1722
- var memberIdParam = import_zod28.z.object({
1723
- memberId: MemberIdSchema
1724
- });
1725
- var articleIdParam = import_zod28.z.object({
1726
- articleId: ArticleIdSchema
1727
- });
1728
- var commentIdParam = import_zod28.z.object({
1729
- commentId: CommentIdSchema
1730
- });
1731
- var mealPlanIdParam = import_zod28.z.object({
1732
- mealPlanId: MealPlanIdSchema
1733
- });
1734
- var mealPlanInviteIdParam = import_zod28.z.object({
1735
- inviteId: MealPlanInviteIdSchema
1736
- });
1737
- var mealPlanJoinRequestIdParam = import_zod28.z.object({
1738
- requestId: MealPlanJoinRequestIdSchema
1739
- });
1687
+ var memberIdParam = import_zod29.z.object({ memberId: MemberIdSchema });
1688
+ var articleIdParam = import_zod29.z.object({ articleId: ArticleIdSchema });
1689
+ var commentIdParam = import_zod29.z.object({ commentId: CommentIdSchema });
1690
+ var mealPlanIdParam = import_zod29.z.object({ mealPlanId: MealPlanIdSchema });
1691
+ var mealPlanInviteIdParam = import_zod29.z.object({ inviteId: MealPlanInviteIdSchema });
1692
+ var mealPlanJoinRequestIdParam = import_zod29.z.object({ requestId: MealPlanJoinRequestIdSchema });
1740
1693
  var mealPlanDecisionStageIdParam = mealPlanIdParam.extend({
1741
1694
  stageId: MealPlanDecisionStageIdSchema
1742
1695
  });
@@ -1747,707 +1700,156 @@ var mealPlanDecisionTaskKeyParam = mealPlanIdParam.extend({
1747
1700
  taskKey: MealPlanDecisionTaskKeySchema
1748
1701
  });
1749
1702
  var mealPlanDecisionSnapshotIdParam = mealPlanIdParam.extend({
1750
- snapshotId: import_zod28.z.string().uuid()
1703
+ snapshotId: import_zod29.z.string().uuid()
1751
1704
  });
1752
1705
  var mealPlanParticipantIdParam = mealPlanIdParam.extend({
1753
- participantId: import_zod28.z.string().uuid()
1754
- });
1755
- var mealPlanShareTokenParam = import_zod28.z.object({
1756
- token: MealPlanShareLinkTokenSchema
1757
- });
1758
- var notificationIdParam = import_zod28.z.object({
1759
- notificationId: import_zod28.z.string().min(1)
1760
- });
1761
- var couponIdParam = import_zod28.z.object({
1762
- couponId: CouponIdSchema
1763
- });
1764
- var mealGroupIdParam = import_zod28.z.object({
1765
- mealGroupId: MealGroupIdSchema
1766
- });
1767
- var mealGroupMemberIdParam = mealGroupIdParam.extend({
1768
- memberId: MemberIdSchema
1769
- });
1770
- var friendRequestIdParam = import_zod28.z.object({
1771
- requestId: FriendRequestIdSchema
1772
- });
1773
- var sseTokenQuery = import_zod28.z.object({
1774
- token: import_zod28.z.string().min(1)
1775
- });
1706
+ participantId: import_zod29.z.string().uuid()
1707
+ });
1708
+ var mealPlanShareTokenParam = import_zod29.z.object({ token: MealPlanShareLinkTokenSchema });
1709
+ var notificationIdParam = import_zod29.z.object({ notificationId: import_zod29.z.string().min(1) });
1710
+ var couponIdParam = import_zod29.z.object({ couponId: CouponIdSchema });
1711
+ var mealGroupIdParam = import_zod29.z.object({ mealGroupId: MealGroupIdSchema });
1712
+ var mealGroupMemberIdParam = mealGroupIdParam.extend({ memberId: MemberIdSchema });
1713
+ var friendRequestIdParam = import_zod29.z.object({ requestId: FriendRequestIdSchema });
1714
+ var sseTokenQuery = import_zod29.z.object({ token: import_zod29.z.string().min(1) });
1776
1715
  var apiContract = {
1777
1716
  auth: {
1778
- signup: endpoint({
1779
- method: "POST",
1780
- path: "/auth/signup",
1781
- body: SignupRequestSchema,
1782
- response: SignupResponseSchema
1783
- }),
1784
- login: endpoint({
1785
- method: "POST",
1786
- path: "/auth/login",
1787
- body: LoginRequestSchema,
1788
- response: TokenResponseSchema
1789
- }),
1790
- refresh: endpoint({
1791
- method: "POST",
1792
- path: "/auth/refresh",
1793
- response: TokenResponseSchema
1794
- }),
1795
- logout: endpoint({
1796
- method: "POST",
1797
- path: "/auth/logout",
1798
- response: NoContentSchema
1799
- })
1717
+ signup: endpoint({ method: "POST", path: "/auth/signup", body: SignupRequestSchema, response: SignupResponseSchema }),
1718
+ login: endpoint({ method: "POST", path: "/auth/login", body: LoginRequestSchema, response: TokenResponseSchema }),
1719
+ refresh: endpoint({ method: "POST", path: "/auth/refresh", response: TokenResponseSchema }),
1720
+ logout: endpoint({ method: "POST", path: "/auth/logout", response: NoContentSchema })
1800
1721
  },
1801
1722
  members: {
1802
- me: endpoint({
1803
- method: "GET",
1804
- path: "/members/me",
1805
- response: MemberResponseSchema
1806
- }),
1807
- myProfile: endpoint({
1808
- method: "GET",
1809
- path: "/members/me/profile",
1810
- response: ProfileDetailResponseSchema
1811
- }),
1812
- search: endpoint({
1813
- method: "GET",
1814
- path: "/members/search",
1815
- query: MemberSearchQuerySchema,
1816
- response: MemberSerachResponseSchema
1817
- }),
1818
- memberProfile: endpoint({
1819
- method: "GET",
1820
- path: "/members/:memberId/profile",
1821
- pathParams: memberIdParam,
1822
- response: ProfileDetailResponseSchema
1823
- }),
1824
- presignProfileImage: endpoint({
1825
- method: "POST",
1826
- path: "/uploads/presign-profile",
1827
- body: UploadProfileImageRequestSchema,
1828
- response: UploadProfileImageResponseSchema
1829
- }),
1830
- createProfile: endpoint({
1831
- method: "POST",
1832
- path: "/members/onboarding",
1833
- body: CreateProfileRequestSchema,
1834
- response: NoContentSchema
1835
- }),
1836
- createProfileAlias: endpoint({
1837
- method: "POST",
1838
- path: "/onboarding",
1839
- body: CreateProfileRequestSchema,
1840
- response: NoContentSchema
1841
- }),
1842
- updateProfile: endpoint({
1843
- method: "PATCH",
1844
- path: "/members/me/profile",
1845
- body: UpdateProfileRequestSchema,
1846
- response: NoContentSchema
1847
- }),
1848
- locationSettings: endpoint({
1849
- method: "GET",
1850
- path: "/members/me/location-settings",
1851
- response: MemberLocationSettingsResponseSchema
1852
- }),
1853
- updateLocationConsent: endpoint({
1854
- method: "PATCH",
1855
- path: "/members/me/location-consent",
1856
- body: UpdateMemberLocationConsentRequestSchema,
1857
- response: MemberLocationSettingsResponseSchema
1858
- }),
1859
- updateLocation: endpoint({
1860
- method: "PATCH",
1861
- path: "/members/me/location",
1862
- body: UpdateMemberLocationRequestSchema,
1863
- response: MemberLocationSettingsResponseSchema
1864
- })
1723
+ me: endpoint({ method: "GET", path: "/members/me", response: MemberResponseSchema }),
1724
+ myProfile: endpoint({ method: "GET", path: "/members/me/profile", response: ProfileDetailResponseSchema }),
1725
+ search: endpoint({ method: "GET", path: "/members/search", query: MemberSearchQuerySchema, response: MemberSerachResponseSchema }),
1726
+ memberProfile: endpoint({ method: "GET", path: "/members/:memberId/profile", pathParams: memberIdParam, response: ProfileDetailResponseSchema }),
1727
+ presignProfileImage: endpoint({ method: "POST", path: "/uploads/presign-profile", body: UploadProfileImageRequestSchema, response: UploadProfileImageResponseSchema }),
1728
+ createProfile: endpoint({ method: "POST", path: "/members/onboarding", body: CreateProfileRequestSchema, response: NoContentSchema }),
1729
+ createProfileAlias: endpoint({ method: "POST", path: "/onboarding", body: CreateProfileRequestSchema, response: NoContentSchema }),
1730
+ updateProfile: endpoint({ method: "PATCH", path: "/members/me/profile", body: UpdateProfileRequestSchema, response: NoContentSchema }),
1731
+ locationSettings: endpoint({ method: "GET", path: "/members/me/location-settings", response: MemberLocationSettingsResponseSchema }),
1732
+ updateLocationConsent: endpoint({ method: "PATCH", path: "/members/me/location-consent", body: UpdateMemberLocationConsentRequestSchema, response: MemberLocationSettingsResponseSchema }),
1733
+ updateLocation: endpoint({ method: "PATCH", path: "/members/me/location", body: UpdateMemberLocationRequestSchema, response: MemberLocationSettingsResponseSchema })
1865
1734
  },
1866
1735
  preferences: {
1867
- my: endpoint({
1868
- method: "GET",
1869
- path: "/preferences/me",
1870
- response: MemberFoodPreferenceSchema
1871
- }),
1872
- update: endpoint({
1873
- method: "PATCH",
1874
- path: "/preferences/me",
1875
- body: UpdatePreferenceRequestSchema,
1876
- response: NoContentSchema
1877
- })
1736
+ my: endpoint({ method: "GET", path: "/preferences/me", response: MemberFoodPreferenceSchema }),
1737
+ update: endpoint({ method: "PATCH", path: "/preferences/me", body: UpdatePreferenceRequestSchema, response: NoContentSchema })
1878
1738
  },
1879
1739
  mealStatus: {
1880
- my: endpoint({
1881
- method: "GET",
1882
- path: "/members/me/meal-status",
1883
- response: MealStatusResponseSchema
1884
- }),
1885
- updateMealStatus: endpoint({
1886
- method: "PATCH",
1887
- path: "/members/me/meal-status",
1888
- body: UpdateMealStatusRequestSchema,
1889
- response: NoContentSchema
1890
- }),
1891
- friendMealStatus: endpoint({
1892
- method: "GET",
1893
- path: "/friends/me/meals",
1894
- query: FriendMealQuerySchema,
1895
- response: import_zod28.z.array(FriendMealItemResponseSchema)
1896
- })
1740
+ my: endpoint({ method: "GET", path: "/members/me/meal-status", response: MealStatusResponseSchema }),
1741
+ updateMealStatus: endpoint({ method: "PATCH", path: "/members/me/meal-status", body: UpdateMealStatusRequestSchema, response: NoContentSchema }),
1742
+ friendMealStatus: endpoint({ method: "GET", path: "/friends/me/meals", query: FriendMealQuerySchema, response: import_zod29.z.array(FriendMealItemResponseSchema) })
1897
1743
  },
1898
1744
  articles: {
1899
- list: endpoint({
1900
- method: "GET",
1901
- path: "/articles/home",
1902
- query: ArticleListQuerySchema,
1903
- response: PageArticleSummaryResponseSchema
1904
- }),
1905
- byMember: endpoint({
1906
- method: "GET",
1907
- path: "/articles/by-author/:memberId",
1908
- pathParams: memberIdParam,
1909
- query: ArticleListQuerySchema,
1910
- response: PageArticleSummaryResponseSchema
1911
- }),
1912
- my: endpoint({
1913
- method: "GET",
1914
- path: "/articles/my",
1915
- response: PageArticleSummaryResponseSchema
1916
- }),
1917
- detail: endpoint({
1918
- method: "GET",
1919
- path: "/articles/:articleId",
1920
- pathParams: articleIdParam,
1921
- response: ArticleDetailResponseSchema
1922
- }),
1923
- create: endpoint({
1924
- method: "POST",
1925
- path: "/articles",
1926
- body: CreateArticleRequestSchema,
1927
- response: CreatedEntityIdResponseSchema
1928
- }),
1929
- like: endpoint({
1930
- method: "POST",
1931
- path: "/articles/:articleId/like",
1932
- pathParams: articleIdParam,
1933
- response: ArticleLikeResponseSchema
1934
- }),
1935
- createComment: endpoint({
1936
- method: "POST",
1937
- path: "/articles/:articleId/comments",
1938
- pathParams: articleIdParam,
1939
- body: CreateCommentRequestSchema,
1940
- response: CreatedEntityIdResponseSchema
1941
- }),
1942
- presignArticleImage: endpoint({
1943
- method: "POST",
1944
- path: "/uploads/presign-article",
1945
- body: UploadArticleImageRequestSchema,
1946
- response: UploadArticleImageResponseSchema
1947
- }),
1948
- delete: endpoint({
1949
- method: "DELETE",
1950
- path: "/articles/:articleId",
1951
- pathParams: articleIdParam,
1952
- response: NoContentSchema
1953
- }),
1954
- deleteComment: endpoint({
1955
- method: "DELETE",
1956
- path: "/articles/comments/:commentId",
1957
- pathParams: commentIdParam,
1958
- response: NoContentSchema
1959
- })
1745
+ list: endpoint({ method: "GET", path: "/articles/home", query: ArticleListQuerySchema, response: PageArticleSummaryResponseSchema }),
1746
+ byMember: endpoint({ method: "GET", path: "/articles/by-author/:memberId", pathParams: memberIdParam, query: ArticleListQuerySchema, response: PageArticleSummaryResponseSchema }),
1747
+ my: endpoint({ method: "GET", path: "/articles/my", response: PageArticleSummaryResponseSchema }),
1748
+ detail: endpoint({ method: "GET", path: "/articles/:articleId", pathParams: articleIdParam, response: ArticleDetailResponseSchema }),
1749
+ create: endpoint({ method: "POST", path: "/articles", body: CreateArticleRequestSchema, response: CreatedEntityIdResponseSchema }),
1750
+ like: endpoint({ method: "POST", path: "/articles/:articleId/like", pathParams: articleIdParam, response: ArticleLikeResponseSchema }),
1751
+ createComment: endpoint({ method: "POST", path: "/articles/:articleId/comments", pathParams: articleIdParam, body: CreateCommentRequestSchema, response: CreatedEntityIdResponseSchema }),
1752
+ presignArticleImage: endpoint({ method: "POST", path: "/uploads/presign-article", body: UploadArticleImageRequestSchema, response: UploadArticleImageResponseSchema }),
1753
+ delete: endpoint({ method: "DELETE", path: "/articles/:articleId", pathParams: articleIdParam, response: NoContentSchema }),
1754
+ deleteComment: endpoint({ method: "DELETE", path: "/articles/comments/:commentId", pathParams: commentIdParam, response: NoContentSchema })
1960
1755
  },
1961
1756
  mealPlans: {
1962
- create: endpoint({
1963
- method: "POST",
1964
- path: "/meal-plans",
1965
- body: CreateMealPlanRequestSchema,
1966
- response: CreateMealPlanResponseSchema
1967
- }),
1968
- my: endpoint({
1969
- method: "GET",
1970
- path: "/meal-plans/me",
1971
- response: MyMealPlanListResponseSchema
1972
- }),
1973
- homeDashboard: endpoint({
1974
- method: "GET",
1975
- path: "/meal-plans/home-dashboard",
1976
- response: HomeMealPlanDashboardResponseSchema
1977
- }),
1978
- map: endpoint({
1979
- method: "GET",
1980
- path: "/meal-plans/map",
1981
- query: MealMapQuerySchema,
1982
- response: MealMapResponseSchema
1983
- }),
1984
- detail: endpoint({
1985
- method: "GET",
1986
- path: "/meal-plans/:mealPlanId",
1987
- pathParams: mealPlanIdParam,
1988
- response: MealPlanResponseSchema
1989
- }),
1990
- chatMessages: endpoint({
1991
- method: "GET",
1992
- path: "/meal-plans/:mealPlanId/chat/messages",
1993
- pathParams: mealPlanIdParam,
1994
- response: MealPlanChatMessageListResponseSchema
1995
- }),
1996
- updateContext: endpoint({
1997
- method: "PATCH",
1998
- path: "/meal-plans/:mealPlanId/context",
1999
- pathParams: mealPlanIdParam,
2000
- body: UpdateMealPlanContextRequestSchema,
2001
- response: MealPlanResponseSchema
2002
- }),
2003
- complete: endpoint({
2004
- method: "POST",
2005
- path: "/meal-plans/:mealPlanId/complete",
2006
- pathParams: mealPlanIdParam,
2007
- response: MealPlanResponseSchema
2008
- }),
2009
- cancel: endpoint({
2010
- method: "POST",
2011
- path: "/meal-plans/:mealPlanId/cancel",
2012
- pathParams: mealPlanIdParam,
2013
- response: MealPlanResponseSchema
2014
- }),
2015
- removeParticipant: endpoint({
2016
- method: "POST",
2017
- path: "/meal-plans/:mealPlanId/participants/:participantId/remove",
2018
- pathParams: mealPlanParticipantIdParam,
2019
- response: MealPlanResponseSchema
2020
- }),
2021
- recorded: endpoint({
2022
- method: "POST",
2023
- path: "/meal-plans/:mealPlanId/recorded",
2024
- pathParams: mealPlanIdParam,
2025
- response: MealPlanResponseSchema
2026
- }),
2027
- invite: endpoint({
2028
- method: "POST",
2029
- path: "/meal-plans/:mealPlanId/invites",
2030
- pathParams: mealPlanIdParam,
2031
- body: CreateMealPlanInviteRequestSchema,
2032
- response: SendMealPlanInviteResponseSchema
2033
- }),
2034
- receivedInvites: endpoint({
2035
- method: "GET",
2036
- path: "/meal-plans/invites/received",
2037
- response: MealPlanInviteListResponseSchema
2038
- }),
2039
- sentInvites: endpoint({
2040
- method: "GET",
2041
- path: "/meal-plans/invites/sent",
2042
- response: MealPlanInviteListResponseSchema
2043
- }),
2044
- acceptInvite: endpoint({
2045
- method: "POST",
2046
- path: "/meal-plans/invites/:inviteId/accept",
2047
- pathParams: mealPlanInviteIdParam,
2048
- response: MealPlanResponseSchema
2049
- }),
2050
- declineInvite: endpoint({
2051
- method: "POST",
2052
- path: "/meal-plans/invites/:inviteId/decline",
2053
- pathParams: mealPlanInviteIdParam,
2054
- response: NoContentSchema
2055
- }),
2056
- createShareLink: endpoint({
2057
- method: "POST",
2058
- path: "/meal-plans/:mealPlanId/share-links",
2059
- pathParams: mealPlanIdParam,
2060
- body: CreateMealPlanShareLinkRequestSchema,
2061
- response: MealPlanShareLinkSummarySchema
2062
- }),
2063
- sharePreview: endpoint({
2064
- method: "GET",
2065
- path: "/meal-plan-links/:token",
2066
- pathParams: mealPlanShareTokenParam,
2067
- response: MealPlanSharePreviewResponseSchema
2068
- }),
2069
- joinGuest: endpoint({
2070
- method: "POST",
2071
- path: "/meal-plan-links/:token/join",
2072
- pathParams: mealPlanShareTokenParam,
2073
- body: JoinMealPlanGuestRequestSchema,
2074
- response: JoinMealPlanGuestResponseSchema
2075
- }),
2076
- guestSession: endpoint({
2077
- method: "GET",
2078
- path: "/meal-plan-links/:token/session",
2079
- pathParams: mealPlanShareTokenParam,
2080
- query: MealPlanGuestSessionQuerySchema,
2081
- response: MealPlanGuestSessionResponseSchema
2082
- }),
2083
- guestChatMessages: endpoint({
2084
- method: "GET",
2085
- path: "/meal-plan-links/:token/chat/messages",
2086
- pathParams: mealPlanShareTokenParam,
2087
- query: MealPlanGuestSessionQuerySchema,
2088
- response: MealPlanChatMessageListResponseSchema
2089
- }),
2090
- exposeNearbyFriends: endpoint({
2091
- method: "POST",
2092
- path: "/meal-plans/:mealPlanId/nearby-friends/expose",
2093
- pathParams: mealPlanIdParam,
2094
- body: ExposeMealPlanToNearbyFriendsRequestSchema,
2095
- response: ExposeMealPlanToNearbyFriendsResponseSchema
2096
- }),
2097
- closeNearbyFriends: endpoint({
2098
- method: "DELETE",
2099
- path: "/meal-plans/:mealPlanId/nearby-friends/expose",
2100
- pathParams: mealPlanIdParam,
2101
- response: NoContentSchema
2102
- }),
2103
- nearbyFriendExposureEligibility: endpoint({
2104
- method: "GET",
2105
- path: "/meal-plans/nearby-friends/eligibility",
2106
- response: NearbyFriendExposureEligibilitySchema
2107
- }),
2108
- nearbyFriends: endpoint({
2109
- method: "GET",
2110
- path: "/meal-plans/nearby-friends",
2111
- response: import_zod28.z.array(NearbyFriendMealPlanSummarySchema)
2112
- }),
2113
- requestJoin: endpoint({
2114
- method: "POST",
2115
- path: "/meal-plans/:mealPlanId/join-requests",
2116
- pathParams: mealPlanIdParam,
2117
- body: CreateMealPlanJoinRequestSchema,
2118
- response: CreatedEntityIdResponseSchema
2119
- }),
2120
- acceptJoinRequest: endpoint({
2121
- method: "POST",
2122
- path: "/meal-plans/join-requests/:requestId/accept",
2123
- pathParams: mealPlanJoinRequestIdParam,
2124
- response: MealPlanResponseSchema
2125
- }),
2126
- rejectJoinRequest: endpoint({
2127
- method: "POST",
2128
- path: "/meal-plans/join-requests/:requestId/reject",
2129
- pathParams: mealPlanJoinRequestIdParam,
2130
- response: NoContentSchema
2131
- }),
2132
- vote: endpoint({
2133
- method: "POST",
2134
- path: "/meal-plans/:mealPlanId/stages/:stageId/votes",
2135
- pathParams: mealPlanDecisionStageIdParam,
2136
- body: CreateMealPlanVoteRequestSchema,
2137
- response: MealPlanResponseSchema
2138
- }),
2139
- completeStage: endpoint({
2140
- method: "POST",
2141
- path: "/meal-plans/:mealPlanId/stages/:stageId/complete",
2142
- pathParams: mealPlanDecisionStageIdParam,
2143
- body: CompleteMealPlanDecisionStageRequestSchema,
2144
- response: MealPlanResponseSchema
2145
- }),
2146
- decisionProgress: endpoint({
2147
- method: "GET",
2148
- path: "/meal-plans/:mealPlanId/decision-progress",
2149
- pathParams: mealPlanIdParam,
2150
- response: MealPlanDecisionProgressSchema
2151
- }),
2152
- readyDecisionTask: endpoint({
2153
- method: "POST",
2154
- path: "/meal-plans/:mealPlanId/decision-tasks/:taskKey/ready",
2155
- pathParams: mealPlanDecisionTaskKeyParam,
2156
- body: MealPlanDecisionTaskReadyRequestSchema,
2157
- response: MealPlanResponseSchema
2158
- }),
2159
- reopenDecisionTask: endpoint({
2160
- method: "POST",
2161
- path: "/meal-plans/:mealPlanId/decision-tasks/:taskKey/reopen",
2162
- pathParams: mealPlanDecisionTaskKeyParam,
2163
- body: ReopenMealPlanDecisionTaskRequestSchema,
2164
- response: MealPlanResponseSchema
2165
- }),
2166
- confirmDecisionSnapshot: endpoint({
2167
- method: "POST",
2168
- path: "/meal-plans/:mealPlanId/decision-snapshots/:snapshotId/confirm",
2169
- pathParams: mealPlanDecisionSnapshotIdParam,
2170
- body: ConfirmMealPlanDecisionSnapshotRequestSchema,
2171
- response: MealPlanResponseSchema
2172
- }),
2173
- ready: endpoint({
2174
- method: "POST",
2175
- path: "/meal-plans/:mealPlanId/ready",
2176
- pathParams: mealPlanIdParam,
2177
- response: MealPlanResponseSchema
2178
- }),
2179
- unready: endpoint({
2180
- method: "POST",
2181
- path: "/meal-plans/:mealPlanId/unready",
2182
- pathParams: mealPlanIdParam,
2183
- response: MealPlanResponseSchema
2184
- }),
2185
- createChangeRequest: endpoint({
2186
- method: "POST",
2187
- path: "/meal-plans/:mealPlanId/change-requests",
2188
- pathParams: mealPlanIdParam,
2189
- body: CreateMealPlanChangeRequestSchema,
2190
- response: CreatedEntityIdResponseSchema
2191
- }),
2192
- acceptChangeRequest: endpoint({
2193
- method: "POST",
2194
- path: "/meal-plans/:mealPlanId/change-requests/:requestId/accept",
2195
- pathParams: mealPlanChangeRequestIdParam,
2196
- response: MealPlanResponseSchema
2197
- }),
2198
- confirm: endpoint({
2199
- method: "POST",
2200
- path: "/meal-plans/:mealPlanId/confirm",
2201
- pathParams: mealPlanIdParam,
2202
- response: MealPlanResponseSchema
2203
- })
1757
+ create: endpoint({ method: "POST", path: "/meal-plans", body: CreateMealPlanRequestSchema, response: CreateMealPlanResponseSchema }),
1758
+ my: endpoint({ method: "GET", path: "/meal-plans/me", response: MyMealPlanListResponseSchema }),
1759
+ homeDashboard: endpoint({ method: "GET", path: "/meal-plans/home-dashboard", response: HomeMealPlanDashboardResponseSchema }),
1760
+ map: endpoint({ method: "GET", path: "/meal-plans/map", query: MealMapQuerySchema, response: MealMapResponseSchema }),
1761
+ detail: endpoint({ method: "GET", path: "/meal-plans/:mealPlanId", pathParams: mealPlanIdParam, response: MealPlanResponseSchema }),
1762
+ chatMessages: endpoint({ method: "GET", path: "/meal-plans/:mealPlanId/chat/messages", pathParams: mealPlanIdParam, response: MealPlanChatMessageListResponseSchema }),
1763
+ updateContext: endpoint({ method: "PATCH", path: "/meal-plans/:mealPlanId/context", pathParams: mealPlanIdParam, body: UpdateMealPlanContextRequestSchema, response: MealPlanResponseSchema }),
1764
+ complete: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/complete", pathParams: mealPlanIdParam, response: MealPlanResponseSchema }),
1765
+ cancel: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/cancel", pathParams: mealPlanIdParam, response: MealPlanResponseSchema }),
1766
+ removeParticipant: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/participants/:participantId/remove", pathParams: mealPlanParticipantIdParam, response: MealPlanResponseSchema }),
1767
+ recorded: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/recorded", pathParams: mealPlanIdParam, response: MealPlanResponseSchema }),
1768
+ invite: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/invites", pathParams: mealPlanIdParam, body: CreateMealPlanInviteRequestSchema, response: SendMealPlanInviteResponseSchema }),
1769
+ receivedInvites: endpoint({ method: "GET", path: "/meal-plans/invites/received", response: MealPlanInviteListResponseSchema }),
1770
+ sentInvites: endpoint({ method: "GET", path: "/meal-plans/invites/sent", response: MealPlanInviteListResponseSchema }),
1771
+ acceptInvite: endpoint({ method: "POST", path: "/meal-plans/invites/:inviteId/accept", pathParams: mealPlanInviteIdParam, response: MealPlanResponseSchema }),
1772
+ declineInvite: endpoint({ method: "POST", path: "/meal-plans/invites/:inviteId/decline", pathParams: mealPlanInviteIdParam, response: NoContentSchema }),
1773
+ createShareLink: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/share-links", pathParams: mealPlanIdParam, body: CreateMealPlanShareLinkRequestSchema, response: MealPlanShareLinkSummarySchema }),
1774
+ sharePreview: endpoint({ method: "GET", path: "/meal-plan-links/:token", pathParams: mealPlanShareTokenParam, response: MealPlanSharePreviewResponseSchema }),
1775
+ joinGuest: endpoint({ method: "POST", path: "/meal-plan-links/:token/join", pathParams: mealPlanShareTokenParam, body: JoinMealPlanGuestRequestSchema, response: JoinMealPlanGuestResponseSchema }),
1776
+ guestSession: endpoint({ method: "GET", path: "/meal-plan-links/:token/session", pathParams: mealPlanShareTokenParam, query: MealPlanGuestSessionQuerySchema, response: MealPlanGuestSessionResponseSchema }),
1777
+ guestChatMessages: endpoint({ method: "GET", path: "/meal-plan-links/:token/chat/messages", pathParams: mealPlanShareTokenParam, query: MealPlanGuestSessionQuerySchema, response: MealPlanChatMessageListResponseSchema }),
1778
+ exposeNearbyFriends: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/nearby-friends/expose", pathParams: mealPlanIdParam, body: ExposeMealPlanToNearbyFriendsRequestSchema, response: ExposeMealPlanToNearbyFriendsResponseSchema }),
1779
+ closeNearbyFriends: endpoint({ method: "DELETE", path: "/meal-plans/:mealPlanId/nearby-friends/expose", pathParams: mealPlanIdParam, response: NoContentSchema }),
1780
+ nearbyFriendExposureEligibility: endpoint({ method: "GET", path: "/meal-plans/nearby-friends/eligibility", response: NearbyFriendExposureEligibilitySchema }),
1781
+ nearbyFriends: endpoint({ method: "GET", path: "/meal-plans/nearby-friends", response: import_zod29.z.array(NearbyFriendMealPlanSummarySchema) }),
1782
+ requestJoin: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/join-requests", pathParams: mealPlanIdParam, body: CreateMealPlanJoinRequestSchema, response: CreatedEntityIdResponseSchema }),
1783
+ acceptJoinRequest: endpoint({ method: "POST", path: "/meal-plans/join-requests/:requestId/accept", pathParams: mealPlanJoinRequestIdParam, response: MealPlanResponseSchema }),
1784
+ rejectJoinRequest: endpoint({ method: "POST", path: "/meal-plans/join-requests/:requestId/reject", pathParams: mealPlanJoinRequestIdParam, response: NoContentSchema }),
1785
+ completeStage: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/stages/:stageId/complete", pathParams: mealPlanDecisionStageIdParam, body: CompleteMealPlanDecisionStageRequestSchema, response: MealPlanResponseSchema }),
1786
+ decisionProgress: endpoint({ method: "GET", path: "/meal-plans/:mealPlanId/decision-progress", pathParams: mealPlanIdParam, response: MealPlanDecisionProgressSchema }),
1787
+ reopenDecisionTask: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/decision-tasks/:taskKey/reopen", pathParams: mealPlanDecisionTaskKeyParam, body: ReopenMealPlanDecisionTaskRequestSchema, response: MealPlanResponseSchema }),
1788
+ confirmDecisionSnapshot: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/decision-snapshots/:snapshotId/confirm", pathParams: mealPlanDecisionSnapshotIdParam, body: ConfirmMealPlanDecisionSnapshotRequestSchema, response: MealPlanResponseSchema }),
1789
+ ready: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/ready", pathParams: mealPlanIdParam, response: MealPlanResponseSchema }),
1790
+ unready: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/unready", pathParams: mealPlanIdParam, response: MealPlanResponseSchema }),
1791
+ createChangeRequest: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/change-requests", pathParams: mealPlanIdParam, body: CreateMealPlanChangeRequestSchema, response: CreatedEntityIdResponseSchema }),
1792
+ acceptChangeRequest: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/change-requests/:requestId/accept", pathParams: mealPlanChangeRequestIdParam, response: MealPlanResponseSchema }),
1793
+ confirm: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/confirm", pathParams: mealPlanIdParam, response: MealPlanResponseSchema })
2204
1794
  },
2205
1795
  mealGroups: {
2206
- create: endpoint({
2207
- method: "POST",
2208
- path: "/meal-groups",
2209
- body: CreateMealGroupRequestSchema,
2210
- response: MealGroupResponseSchema
2211
- }),
2212
- list: endpoint({
2213
- method: "GET",
2214
- path: "/meal-groups",
2215
- response: import_zod28.z.array(MealGroupResponseSchema)
2216
- }),
2217
- detail: endpoint({
2218
- method: "GET",
2219
- path: "/meal-groups/:mealGroupId",
2220
- pathParams: mealGroupIdParam,
2221
- response: MealGroupResponseSchema
2222
- }),
2223
- startMealPlan: endpoint({
2224
- method: "POST",
2225
- path: "/meal-groups/:mealGroupId/meal-plans",
2226
- pathParams: mealGroupIdParam,
2227
- body: StartMealPlanFromGroupRequestSchema,
2228
- response: CreateMealPlanResponseSchema
2229
- }),
2230
- history: endpoint({
2231
- method: "GET",
2232
- path: "/meal-groups/:mealGroupId/history",
2233
- pathParams: mealGroupIdParam,
2234
- response: MealGroupHistoryResponseSchema
2235
- }),
2236
- preferences: endpoint({
2237
- method: "GET",
2238
- path: "/meal-groups/:mealGroupId/preferences",
2239
- pathParams: mealGroupIdParam,
2240
- response: MealGroupPreferenceSummarySchema
2241
- }),
2242
- addMember: endpoint({
2243
- method: "POST",
2244
- path: "/meal-groups/:mealGroupId/members",
2245
- pathParams: mealGroupIdParam,
2246
- body: AddMealGroupMemberRequestSchema,
2247
- response: MealGroupResponseSchema
2248
- }),
2249
- updateMemberRole: endpoint({
2250
- method: "PATCH",
2251
- path: "/meal-groups/:mealGroupId/members/:memberId/role",
2252
- pathParams: mealGroupMemberIdParam,
2253
- body: UpdateMealGroupMemberRoleRequestSchema,
2254
- response: MealGroupResponseSchema
2255
- }),
2256
- removeMember: endpoint({
2257
- method: "DELETE",
2258
- path: "/meal-groups/:mealGroupId/members/:memberId",
2259
- pathParams: mealGroupMemberIdParam,
2260
- response: MealGroupResponseSchema
2261
- })
1796
+ create: endpoint({ method: "POST", path: "/meal-groups", body: CreateMealGroupRequestSchema, response: MealGroupResponseSchema }),
1797
+ list: endpoint({ method: "GET", path: "/meal-groups", response: import_zod29.z.array(MealGroupResponseSchema) }),
1798
+ detail: endpoint({ method: "GET", path: "/meal-groups/:mealGroupId", pathParams: mealGroupIdParam, response: MealGroupResponseSchema }),
1799
+ startMealPlan: endpoint({ method: "POST", path: "/meal-groups/:mealGroupId/meal-plans", pathParams: mealGroupIdParam, body: StartMealPlanFromGroupRequestSchema, response: CreateMealPlanResponseSchema }),
1800
+ history: endpoint({ method: "GET", path: "/meal-groups/:mealGroupId/history", pathParams: mealGroupIdParam, response: MealGroupHistoryResponseSchema }),
1801
+ preferences: endpoint({ method: "GET", path: "/meal-groups/:mealGroupId/preferences", pathParams: mealGroupIdParam, response: MealGroupPreferenceSummarySchema }),
1802
+ addMember: endpoint({ method: "POST", path: "/meal-groups/:mealGroupId/members", pathParams: mealGroupIdParam, body: AddMealGroupMemberRequestSchema, response: MealGroupResponseSchema }),
1803
+ updateMemberRole: endpoint({ method: "PATCH", path: "/meal-groups/:mealGroupId/members/:memberId/role", pathParams: mealGroupMemberIdParam, body: UpdateMealGroupMemberRoleRequestSchema, response: MealGroupResponseSchema }),
1804
+ removeMember: endpoint({ method: "DELETE", path: "/meal-groups/:mealGroupId/members/:memberId", pathParams: mealGroupMemberIdParam, response: MealGroupResponseSchema })
2262
1805
  },
2263
1806
  friends: {
2264
- list: endpoint({
2265
- method: "GET",
2266
- path: "/friends",
2267
- response: import_zod28.z.array(FriendListItemResponseSchema)
2268
- }),
2269
- blockList: endpoint({
2270
- method: "GET",
2271
- path: "/friends/blocks",
2272
- response: import_zod28.z.array(FriendBlockItemResponseSchema)
2273
- }),
2274
- search: endpoint({
2275
- method: "GET",
2276
- path: "/friends/search",
2277
- query: MemberSearchQuerySchema,
2278
- response: MemberSerachResponseSchema
2279
- }),
2280
- incomingRequest: endpoint({
2281
- method: "GET",
2282
- path: "/friends/requests/incoming",
2283
- response: import_zod28.z.array(FriendRequestItemResponseSchema)
2284
- }),
2285
- outgoingRequest: endpoint({
2286
- method: "GET",
2287
- path: "/friends/requests/outgoing",
2288
- response: import_zod28.z.array(FriendRequestItemResponseSchema)
2289
- }),
2290
- sendRequest: endpoint({
2291
- method: "POST",
2292
- path: "/friends/requests/:memberId",
2293
- pathParams: memberIdParam,
2294
- response: NoContentSchema
2295
- }),
2296
- acceptRequest: endpoint({
2297
- method: "POST",
2298
- path: "/friends/requests/:requestId/accept",
2299
- pathParams: friendRequestIdParam,
2300
- response: NoContentSchema
2301
- }),
2302
- rejectRequest: endpoint({
2303
- method: "POST",
2304
- path: "/friends/requests/:requestId/reject",
2305
- pathParams: friendRequestIdParam,
2306
- response: NoContentSchema
2307
- }),
2308
- block: endpoint({
2309
- method: "POST",
2310
- path: "/friends/blocks/:memberId",
2311
- pathParams: memberIdParam,
2312
- response: NoContentSchema
2313
- }),
2314
- cancelRequest: endpoint({
2315
- method: "DELETE",
2316
- path: "/friends/requests/:requestId",
2317
- pathParams: friendRequestIdParam,
2318
- response: NoContentSchema
2319
- }),
2320
- unblock: endpoint({
2321
- method: "DELETE",
2322
- path: "/friends/blocks/:memberId",
2323
- pathParams: memberIdParam,
2324
- response: NoContentSchema
2325
- }),
2326
- unfriend: endpoint({
2327
- method: "DELETE",
2328
- path: "/friends/:memberId",
2329
- pathParams: memberIdParam,
2330
- response: NoContentSchema
2331
- })
1807
+ list: endpoint({ method: "GET", path: "/friends", response: import_zod29.z.array(FriendListItemResponseSchema) }),
1808
+ blockList: endpoint({ method: "GET", path: "/friends/blocks", response: import_zod29.z.array(FriendBlockItemResponseSchema) }),
1809
+ search: endpoint({ method: "GET", path: "/friends/search", query: MemberSearchQuerySchema, response: MemberSerachResponseSchema }),
1810
+ incomingRequest: endpoint({ method: "GET", path: "/friends/requests/incoming", response: import_zod29.z.array(FriendRequestItemResponseSchema) }),
1811
+ outgoingRequest: endpoint({ method: "GET", path: "/friends/requests/outgoing", response: import_zod29.z.array(FriendRequestItemResponseSchema) }),
1812
+ sendRequest: endpoint({ method: "POST", path: "/friends/requests/:memberId", pathParams: memberIdParam, response: NoContentSchema }),
1813
+ acceptRequest: endpoint({ method: "POST", path: "/friends/requests/:requestId/accept", pathParams: friendRequestIdParam, response: NoContentSchema }),
1814
+ rejectRequest: endpoint({ method: "POST", path: "/friends/requests/:requestId/reject", pathParams: friendRequestIdParam, response: NoContentSchema }),
1815
+ block: endpoint({ method: "POST", path: "/friends/blocks/:memberId", pathParams: memberIdParam, response: NoContentSchema }),
1816
+ cancelRequest: endpoint({ method: "DELETE", path: "/friends/requests/:requestId", pathParams: friendRequestIdParam, response: NoContentSchema }),
1817
+ unblock: endpoint({ method: "DELETE", path: "/friends/blocks/:memberId", pathParams: memberIdParam, response: NoContentSchema }),
1818
+ unfriend: endpoint({ method: "DELETE", path: "/friends/:memberId", pathParams: memberIdParam, response: NoContentSchema })
2332
1819
  },
2333
1820
  coupons: {
2334
- list: endpoint({
2335
- method: "GET",
2336
- path: "/coupons",
2337
- response: import_zod28.z.array(CouponResponseSchema)
2338
- }),
2339
- use: endpoint({
2340
- method: "POST",
2341
- path: "/coupons/:couponId/use",
2342
- pathParams: couponIdParam,
2343
- response: NoContentSchema
2344
- })
1821
+ list: endpoint({ method: "GET", path: "/coupons", response: import_zod29.z.array(CouponResponseSchema) }),
1822
+ use: endpoint({ method: "POST", path: "/coupons/:couponId/use", pathParams: couponIdParam, response: NoContentSchema })
2345
1823
  },
2346
1824
  challenges: {
2347
- status: endpoint({
2348
- method: "GET",
2349
- path: "/challenges/status",
2350
- response: ChallengeStatusResponseSchema
2351
- }),
2352
- claimReward: endpoint({
2353
- method: "POST",
2354
- path: "/challenges/rewards",
2355
- body: ClaimChallengeRewardRequestSchema,
2356
- response: NoContentSchema
2357
- })
1825
+ status: endpoint({ method: "GET", path: "/challenges/status", response: ChallengeStatusResponseSchema }),
1826
+ claimReward: endpoint({ method: "POST", path: "/challenges/rewards", body: ClaimChallengeRewardRequestSchema, response: NoContentSchema })
2358
1827
  },
2359
1828
  referrals: {
2360
- list: endpoint({
2361
- method: "GET",
2362
- path: "/referrals",
2363
- response: import_zod28.z.array(ReferralItemResponseSchema)
2364
- }),
2365
- create: endpoint({
2366
- method: "POST",
2367
- path: "/referrals",
2368
- response: ReferralCreateResponseSchema
2369
- }),
2370
- redeem: endpoint({
2371
- method: "POST",
2372
- path: "/referrals/redeem",
2373
- body: RedeemReferralRequestSchema,
2374
- response: NoContentSchema
2375
- })
1829
+ list: endpoint({ method: "GET", path: "/referrals", response: import_zod29.z.array(ReferralItemResponseSchema) }),
1830
+ create: endpoint({ method: "POST", path: "/referrals", response: ReferralCreateResponseSchema }),
1831
+ redeem: endpoint({ method: "POST", path: "/referrals/redeem", body: RedeemReferralRequestSchema, response: NoContentSchema })
2376
1832
  },
2377
1833
  notifications: {
2378
- list: endpoint({
2379
- method: "GET",
2380
- path: "/notifications",
2381
- response: import_zod28.z.array(MealPlanNotificationSchema)
2382
- }),
2383
- markRead: endpoint({
2384
- method: "PATCH",
2385
- path: "/notifications/:notificationId/read",
2386
- pathParams: notificationIdParam,
2387
- response: MealPlanNotificationSchema
2388
- }),
2389
- delete: endpoint({
2390
- method: "DELETE",
2391
- path: "/notifications/:notificationId",
2392
- pathParams: notificationIdParam,
2393
- response: NoContentSchema
2394
- })
1834
+ list: endpoint({ method: "GET", path: "/notifications", response: import_zod29.z.array(MealPlanNotificationSchema) }),
1835
+ markRead: endpoint({ method: "PATCH", path: "/notifications/:notificationId/read", pathParams: notificationIdParam, response: MealPlanNotificationSchema }),
1836
+ delete: endpoint({ method: "DELETE", path: "/notifications/:notificationId", pathParams: notificationIdParam, response: NoContentSchema })
2395
1837
  },
2396
1838
  pushTokens: {
2397
- list: endpoint({
2398
- method: "GET",
2399
- path: "/push-tokens",
2400
- response: import_zod28.z.array(PushTokenResponseSchema)
2401
- }),
2402
- register: endpoint({
2403
- method: "POST",
2404
- path: "/push-tokens",
2405
- body: RegisterPushTokenRequestSchema,
2406
- response: PushTokenResponseSchema
2407
- }),
2408
- revoke: endpoint({
2409
- method: "POST",
2410
- path: "/push-tokens/revoke",
2411
- body: RevokePushTokenRequestSchema,
2412
- response: NoContentSchema
2413
- })
1839
+ list: endpoint({ method: "GET", path: "/push-tokens", response: import_zod29.z.array(PushTokenResponseSchema) }),
1840
+ register: endpoint({ method: "POST", path: "/push-tokens", body: RegisterPushTokenRequestSchema, response: PushTokenResponseSchema }),
1841
+ revoke: endpoint({ method: "POST", path: "/push-tokens/revoke", body: RevokePushTokenRequestSchema, response: NoContentSchema })
2414
1842
  },
2415
1843
  liveActivities: {
2416
- listMealPlanSessions: endpoint({
2417
- method: "GET",
2418
- path: "/meal-plans/:mealPlanId/live-activity",
2419
- pathParams: mealPlanIdParam,
2420
- response: MealPlanLiveActivitySessionListResponseSchema
2421
- }),
2422
- registerMealPlanSession: endpoint({
2423
- method: "POST",
2424
- path: "/meal-plans/:mealPlanId/live-activity/sessions",
2425
- pathParams: mealPlanIdParam,
2426
- body: RegisterMealPlanLiveActivitySessionRequestSchema,
2427
- response: MealPlanLiveActivitySessionResponseSchema
2428
- }),
2429
- endMealPlanSessions: endpoint({
2430
- method: "POST",
2431
- path: "/meal-plans/:mealPlanId/live-activity/end",
2432
- pathParams: mealPlanIdParam,
2433
- body: EndMealPlanLiveActivitySessionRequestSchema,
2434
- response: NoContentSchema
2435
- })
1844
+ listMealPlanSessions: endpoint({ method: "GET", path: "/meal-plans/:mealPlanId/live-activity", pathParams: mealPlanIdParam, response: MealPlanLiveActivitySessionListResponseSchema }),
1845
+ registerMealPlanSession: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/live-activity/sessions", pathParams: mealPlanIdParam, body: RegisterMealPlanLiveActivitySessionRequestSchema, response: MealPlanLiveActivitySessionResponseSchema }),
1846
+ endMealPlanSessions: endpoint({ method: "POST", path: "/meal-plans/:mealPlanId/live-activity/end", pathParams: mealPlanIdParam, body: EndMealPlanLiveActivitySessionRequestSchema, response: NoContentSchema })
2436
1847
  },
2437
1848
  sse: {
2438
- notifications: endpoint({
2439
- method: "GET",
2440
- path: "/sse/notifications",
2441
- query: sseTokenQuery,
2442
- response: import_zod28.z.any()
2443
- })
1849
+ notifications: endpoint({ method: "GET", path: "/sse/notifications", query: sseTokenQuery, response: import_zod29.z.any() })
2444
1850
  },
2445
1851
  health: {
2446
- healthCheck: endpoint({
2447
- method: "GET",
2448
- path: "/",
2449
- response: import_zod28.z.string()
2450
- })
1852
+ healthCheck: endpoint({ method: "GET", path: "/", response: import_zod29.z.string() })
2451
1853
  }
2452
1854
  };
2453
1855
 
@@ -2459,24 +1861,24 @@ var makeApiResponseSchema = ApiResponseSchema;
2459
1861
  var makeApiSuccessSchema = ApiSuccessSchema;
2460
1862
 
2461
1863
  // src/domain/common/contracts/id.ts
2462
- var toMemberId = /* @__PURE__ */ __name((value) => MemberIdSchema.parse(value), "toMemberId");
2463
- var toArticleId = /* @__PURE__ */ __name((value) => ArticleIdSchema.parse(value), "toArticleId");
2464
- var toMealPlanId = /* @__PURE__ */ __name((value) => MealPlanIdSchema.parse(value), "toMealPlanId");
2465
- var toMealPlanInviteId = /* @__PURE__ */ __name((value) => MealPlanInviteIdSchema.parse(value), "toMealPlanInviteId");
2466
- var toMealPlanJoinRequestId = /* @__PURE__ */ __name((value) => MealPlanJoinRequestIdSchema.parse(value), "toMealPlanJoinRequestId");
2467
- var toMealPlanNearbyFriendExposureBatchId = /* @__PURE__ */ __name((value) => MealPlanNearbyFriendExposureBatchIdSchema.parse(value), "toMealPlanNearbyFriendExposureBatchId");
2468
- var toMealPlanChangeRequestId = /* @__PURE__ */ __name((value) => MealPlanChangeRequestIdSchema.parse(value), "toMealPlanChangeRequestId");
2469
- var toMealPlanShareLinkId = /* @__PURE__ */ __name((value) => MealPlanShareLinkIdSchema.parse(value), "toMealPlanShareLinkId");
2470
- var toMealPlanShareLinkToken = /* @__PURE__ */ __name((value) => MealPlanShareLinkTokenSchema.parse(value), "toMealPlanShareLinkToken");
2471
- var toMealPlanChatRoomId = /* @__PURE__ */ __name((value) => MealPlanChatRoomIdSchema.parse(value), "toMealPlanChatRoomId");
2472
- var toMealPlanChatMessageId = /* @__PURE__ */ __name((value) => MealPlanChatMessageIdSchema.parse(value), "toMealPlanChatMessageId");
2473
- var toMealGroupId = /* @__PURE__ */ __name((value) => MealGroupIdSchema.parse(value), "toMealGroupId");
2474
- var toRestaurantId = /* @__PURE__ */ __name((value) => RestaurantIdSchema.parse(value), "toRestaurantId");
2475
- var toCommentId = /* @__PURE__ */ __name((value) => CommentIdSchema.parse(value), "toCommentId");
2476
- var toCouponId = /* @__PURE__ */ __name((value) => CouponIdSchema.parse(value), "toCouponId");
2477
- var toSubscriptionId = /* @__PURE__ */ __name((value) => SubscriptionIdSchema.parse(value), "toSubscriptionId");
2478
- var toFriendRequestId = /* @__PURE__ */ __name((value) => FriendRequestIdSchema.parse(value), "toFriendRequestId");
2479
- var toReferralCode = /* @__PURE__ */ __name((value) => ReferralCodeSchema.parse(value), "toReferralCode");
1864
+ var toMemberId = (value) => MemberIdSchema.parse(value);
1865
+ var toArticleId = (value) => ArticleIdSchema.parse(value);
1866
+ var toMealPlanId = (value) => MealPlanIdSchema.parse(value);
1867
+ var toMealPlanInviteId = (value) => MealPlanInviteIdSchema.parse(value);
1868
+ var toMealPlanJoinRequestId = (value) => MealPlanJoinRequestIdSchema.parse(value);
1869
+ var toMealPlanNearbyFriendExposureBatchId = (value) => MealPlanNearbyFriendExposureBatchIdSchema.parse(value);
1870
+ var toMealPlanChangeRequestId = (value) => MealPlanChangeRequestIdSchema.parse(value);
1871
+ var toMealPlanShareLinkId = (value) => MealPlanShareLinkIdSchema.parse(value);
1872
+ var toMealPlanShareLinkToken = (value) => MealPlanShareLinkTokenSchema.parse(value);
1873
+ var toMealPlanChatRoomId = (value) => MealPlanChatRoomIdSchema.parse(value);
1874
+ var toMealPlanChatMessageId = (value) => MealPlanChatMessageIdSchema.parse(value);
1875
+ var toMealGroupId = (value) => MealGroupIdSchema.parse(value);
1876
+ var toRestaurantId = (value) => RestaurantIdSchema.parse(value);
1877
+ var toCommentId = (value) => CommentIdSchema.parse(value);
1878
+ var toCouponId = (value) => CouponIdSchema.parse(value);
1879
+ var toSubscriptionId = (value) => SubscriptionIdSchema.parse(value);
1880
+ var toFriendRequestId = (value) => FriendRequestIdSchema.parse(value);
1881
+ var toReferralCode = (value) => ReferralCodeSchema.parse(value);
2480
1882
  // Annotate the CommonJS export names for ESM import in node:
2481
1883
  0 && (module.exports = {
2482
1884
  ApiFailureSchema,