@kimdaegyu/babmukdang-shared 2.0.2 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/dist/{chunk-EX7S5FI5.js → chunk-3TY6OPD3.js} +4 -4
  2. package/dist/{chunk-QUAG5LF5.js → chunk-6O2YTBVC.js} +4 -11
  3. package/dist/{chunk-TOXRHSD6.js → chunk-7JYVBXKQ.js} +1 -1
  4. package/dist/chunk-7UZD4LBQ.js +459 -0
  5. package/dist/chunk-BSJC7OVV.js +10 -0
  6. package/dist/{chunk-YV734GYZ.js → chunk-C63TN7L3.js} +9 -26
  7. package/dist/{chunk-Q4BPFDVB.js → chunk-CGFW5LYV.js} +6 -34
  8. package/dist/{chunk-TIOX7OHA.js → chunk-GOOH2LGN.js} +24 -58
  9. package/dist/{chunk-EYZU5HPG.js → chunk-HRM3FQPL.js} +1 -4
  10. package/dist/{chunk-3BLXZW4U.js → chunk-LEH6UFL7.js} +11 -35
  11. package/dist/{chunk-P3MYMK34.js → chunk-NENVUHL5.js} +9 -17
  12. package/dist/{chunk-IPANLE7B.js → chunk-OPMBGBYS.js} +34 -34
  13. package/dist/{chunk-G7TITUHT.js → chunk-QFPVAJ2U.js} +1 -1
  14. package/dist/{chunk-65DWKLP6.js → chunk-RZPNVRRS.js} +5 -14
  15. package/dist/{chunk-DRCY5UNQ.js → chunk-VD3VGLBQ.js} +4 -9
  16. package/dist/{chunk-GESEM4IA.js → chunk-WYBFBLQC.js} +6 -17
  17. package/dist/{chunk-6R5CCY5Q.js → chunk-XMRYAG3V.js} +0 -2
  18. package/dist/domain/article/index.cjs +13 -41
  19. package/dist/domain/article/index.js +5 -5
  20. package/dist/domain/auth/index.cjs +8 -25
  21. package/dist/domain/auth/index.js +3 -3
  22. package/dist/domain/common/index.cjs +735 -1332
  23. package/dist/domain/common/index.js +15 -14
  24. package/dist/domain/food/index.cjs +5 -28
  25. package/dist/domain/food/index.d.cts +4 -4
  26. package/dist/domain/food/index.d.ts +4 -4
  27. package/dist/domain/food/index.js +7 -5
  28. package/dist/domain/friend/index.cjs +10 -35
  29. package/dist/domain/friend/index.js +4 -4
  30. package/dist/domain/index.cjs +736 -1476
  31. package/dist/domain/index.d.cts +4 -5
  32. package/dist/domain/index.d.ts +4 -5
  33. package/dist/domain/index.js +35 -35
  34. package/dist/domain/live-activity/index.cjs +422 -371
  35. package/dist/domain/live-activity/index.js +9 -8
  36. package/dist/domain/meal/index.cjs +11 -38
  37. package/dist/domain/meal/index.js +4 -4
  38. package/dist/domain/meal-plan/index.cjs +462 -426
  39. package/dist/domain/meal-plan/index.d.cts +149 -50
  40. package/dist/domain/meal-plan/index.d.ts +149 -50
  41. package/dist/domain/meal-plan/index.js +7 -8
  42. package/dist/domain/member/index.cjs +8 -25
  43. package/dist/domain/member/index.js +2 -2
  44. package/dist/domain/promotion/index.cjs +4 -16
  45. package/dist/domain/promotion/index.js +3 -3
  46. package/dist/domain/push/index.cjs +392 -341
  47. package/dist/domain/push/index.js +7 -6
  48. package/dist/domain/restaurant/index.js +2 -2
  49. package/dist/index.cjs +736 -1475
  50. package/dist/index.js +17 -16
  51. package/package.json +1 -1
  52. package/dist/chunk-KREAZLLH.js +0 -1062
@@ -47,16 +47,13 @@ __export(push_exports, {
47
47
  module.exports = __toCommonJS(push_exports);
48
48
 
49
49
  // src/domain/push/push.schema.ts
50
- var import_zod12 = require("zod");
50
+ var import_zod13 = require("zod");
51
51
 
52
52
  // src/domain/common/schema/date.schema.ts
53
53
  var import_zod = require("zod");
54
54
  var isoDateRegex = /^\d{4}-\d{2}-\d{2}$/;
55
55
  var ISODateStringSchema = import_zod.z.string().regex(isoDateRegex, "Expected ISO date string in YYYY-MM-DD format");
56
- var ISODateTimeStringSchema = import_zod.z.string().datetime({
57
- offset: true,
58
- message: "Expected ISO datetime string"
59
- });
56
+ var ISODateTimeStringSchema = import_zod.z.string().datetime({ offset: true, message: "Expected ISO datetime string" });
60
57
  var TimeHHmmStringSchema = import_zod.z.string().regex(/^\d{2}:\d{2}$/, "Expected time string in HH:mm format");
61
58
 
62
59
  // src/domain/common/schema/id.schema.ts
@@ -89,7 +86,7 @@ var FoodSchema = import_zod2.z.object({
89
86
  });
90
87
 
91
88
  // src/domain/meal-plan/meal-plan.schema.ts
92
- var import_zod11 = require("zod");
89
+ var import_zod12 = require("zod");
93
90
 
94
91
  // src/domain/member/member.schema.ts
95
92
  var import_zod4 = require("zod");
@@ -106,24 +103,10 @@ var UploadPresignImageRequestSchema = import_zod3.default.object({
106
103
  });
107
104
 
108
105
  // src/domain/member/member.schema.ts
109
- var MemberRoleSchema = import_zod4.z.enum([
110
- "USER",
111
- "ADMIN"
112
- ]);
113
- var LocationConsentStatusSchema = import_zod4.z.enum([
114
- "UNKNOWN",
115
- "GRANTED",
116
- "DENIED"
117
- ]);
118
- var OnboardingStatusSchema = import_zod4.z.enum([
119
- "REQUIRED",
120
- "COMPLETED"
121
- ]);
122
- var PermissionKindSchema = import_zod4.z.enum([
123
- "LOCATION",
124
- "NOTIFICATION",
125
- "CAMERA"
126
- ]);
106
+ var MemberRoleSchema = import_zod4.z.enum(["USER", "ADMIN"]);
107
+ var LocationConsentStatusSchema = import_zod4.z.enum(["UNKNOWN", "GRANTED", "DENIED"]);
108
+ var OnboardingStatusSchema = import_zod4.z.enum(["REQUIRED", "COMPLETED"]);
109
+ var PermissionKindSchema = import_zod4.z.enum(["LOCATION", "NOTIFICATION", "CAMERA"]);
127
110
  var PermissionStatusSchema = import_zod4.z.enum([
128
111
  "UNKNOWN",
129
112
  "PROMPT",
@@ -132,12 +115,7 @@ var PermissionStatusSchema = import_zod4.z.enum([
132
115
  "LIMITED",
133
116
  "UNSUPPORTED"
134
117
  ]);
135
- var PermissionPlatformSchema = import_zod4.z.enum([
136
- "WEB",
137
- "IOS",
138
- "ANDROID",
139
- "UNKNOWN"
140
- ]);
118
+ var PermissionPlatformSchema = import_zod4.z.enum(["WEB", "IOS", "ANDROID", "UNKNOWN"]);
141
119
  var DevicePermissionSnapshotSchema = import_zod4.z.object({
142
120
  kind: PermissionKindSchema,
143
121
  status: PermissionStatusSchema,
@@ -209,7 +187,9 @@ var UpdateProfileRequestSchema = import_zod4.z.object({
209
187
  bio: import_zod4.z.string().max(500).nullable()
210
188
  });
211
189
  var UpdatePreferenceRequestSchema = MemberFoodPreferenceSchema;
212
- var CompleteOnboardingRequestSchema = UpdateProfileRequestSchema.merge(UpdatePreferenceRequestSchema);
190
+ var CompleteOnboardingRequestSchema = UpdateProfileRequestSchema.merge(
191
+ UpdatePreferenceRequestSchema
192
+ );
213
193
  var OnboardingDraftSchema = import_zod4.z.object({
214
194
  username: import_zod4.z.string().min(1).max(50).optional(),
215
195
  profileImageUrl: import_zod4.z.string().url().nullable().optional(),
@@ -249,54 +229,172 @@ var KakaoPlaceRawSchema = import_zod5.z.object({
249
229
  });
250
230
 
251
231
  // src/domain/meal-plan/meal-plan-decision.schema.ts
232
+ var import_zod7 = require("zod");
233
+
234
+ // src/domain/food/food.schema.ts
252
235
  var import_zod6 = require("zod");
253
- var MealPlanLatitudeSchema = import_zod6.z.number().brand();
254
- var MealPlanLongitudeSchema = import_zod6.z.number().brand();
255
- var MealPlanLocationCandidateIdSchema = import_zod6.z.string().min(1).brand();
256
- var MealPlanMenuCandidateIdSchema = import_zod6.z.string().min(1).brand();
257
- var MealPlanDecisionStageIdSchema = import_zod6.z.string().uuid().brand();
258
- var MealPlanVoteIdSchema = import_zod6.z.string().uuid().brand();
259
- var MealPlanLocationCandidateSourceSchema = import_zod6.z.enum([
236
+ var FoodGranularitySchema = import_zod6.z.enum(["main_dish", "side_dish", "beverage", "sauce"]);
237
+ var CuisineTagSchema = import_zod6.z.enum([
238
+ "korean",
239
+ "western",
240
+ "chinese",
241
+ "japanese",
242
+ "mexican",
243
+ "indian",
244
+ "asian",
245
+ "snack",
246
+ "dessert",
247
+ "beverage",
248
+ "unknown"
249
+ ]);
250
+ var FoodResolvedMatchSourceSchema = import_zod6.z.enum(["category", "alias", "lexical", "semantic"]);
251
+ var FoodCodeManifestImageSchema = import_zod6.z.object({
252
+ src: import_zod6.z.string().min(1),
253
+ avifSrcset: import_zod6.z.string().min(1).optional(),
254
+ thumbhashDataURL: import_zod6.z.string().min(1).optional(),
255
+ aspectRatio: import_zod6.z.number().positive().optional()
256
+ });
257
+ var FoodCodeManifestItemSchema = import_zod6.z.object({
258
+ code: FoodCodeSchema,
259
+ label: FoodLabelSchema,
260
+ aliases: import_zod6.z.array(import_zod6.z.string().min(1)).default([]),
261
+ parentCategory: import_zod6.z.string().min(1),
262
+ cuisineTags: import_zod6.z.array(CuisineTagSchema).default([]),
263
+ categoryTags: import_zod6.z.array(import_zod6.z.string().min(1)).default([]),
264
+ semanticTags: import_zod6.z.array(import_zod6.z.string().min(1)).default([]),
265
+ granularity: FoodGranularitySchema,
266
+ searchable: import_zod6.z.boolean(),
267
+ recommendable: import_zod6.z.boolean(),
268
+ previewEnabled: import_zod6.z.boolean(),
269
+ imageUrl: import_zod6.z.string().min(1).nullable().optional(),
270
+ image: FoodCodeManifestImageSchema.nullable().optional(),
271
+ popularity: import_zod6.z.number().nonnegative().optional(),
272
+ source: import_zod6.z.enum(["foodname", "manual", "foodai", "legacy"]).optional()
273
+ });
274
+ var FoodCodeManifestSchema = import_zod6.z.object({
275
+ version: import_zod6.z.string().min(1),
276
+ updatedAt: ISODateTimeStringSchema,
277
+ taxonomyVersion: import_zod6.z.string().min(1),
278
+ etag: import_zod6.z.string().min(1).optional(),
279
+ items: import_zod6.z.array(FoodCodeManifestItemSchema),
280
+ categoryIndex: import_zod6.z.record(import_zod6.z.string(), import_zod6.z.array(FoodCodeSchema)),
281
+ aliasIndex: import_zod6.z.record(import_zod6.z.string(), import_zod6.z.array(FoodCodeSchema)).optional()
282
+ });
283
+ var FoodImageIndexItemSchema = import_zod6.z.object({
284
+ code: FoodCodeSchema,
285
+ label: FoodLabelSchema,
286
+ imageUrl: import_zod6.z.string().min(1).nullable(),
287
+ image: FoodCodeManifestImageSchema.nullable(),
288
+ source: import_zod6.z.enum(["foodname", "manual", "foodai", "legacy"]).optional()
289
+ });
290
+ var FoodImageIndexManifestSchema = import_zod6.z.object({
291
+ version: import_zod6.z.string().min(1),
292
+ updatedAt: ISODateTimeStringSchema,
293
+ taxonomyVersion: import_zod6.z.string().min(1),
294
+ items: import_zod6.z.array(FoodImageIndexItemSchema)
295
+ });
296
+ var ResolvedFoodCodeSchema = import_zod6.z.object({
297
+ code: FoodCodeSchema,
298
+ label: FoodLabelSchema,
299
+ matchedBy: FoodResolvedMatchSourceSchema,
300
+ score: import_zod6.z.number(),
301
+ granularity: FoodGranularitySchema,
302
+ imageUrl: import_zod6.z.string().min(1).nullable().optional()
303
+ });
304
+ var BooleanQuerySchema = import_zod6.z.preprocess((value) => {
305
+ if (value === "true") return true;
306
+ if (value === "false") return false;
307
+ return value;
308
+ }, import_zod6.z.boolean());
309
+ var FoodResolveQuerySchema = import_zod6.z.object({
310
+ q: import_zod6.z.string().default(""),
311
+ limit: import_zod6.z.coerce.number().int().min(1).max(100).optional().default(30),
312
+ recommendableOnly: BooleanQuerySchema.optional().default(true)
313
+ });
314
+ var FoodSearchQuerySchema = import_zod6.z.object({
315
+ q: import_zod6.z.string().default(""),
316
+ limit: import_zod6.z.coerce.number().int().min(1).max(100).optional().default(20)
317
+ });
318
+ var FoodResolveResponseSchema = import_zod6.z.object({
319
+ query: import_zod6.z.string(),
320
+ items: import_zod6.z.array(ResolvedFoodCodeSchema)
321
+ });
322
+ var FoodAiClassMappingStatusSchema = import_zod6.z.enum([
323
+ "exact",
324
+ "broad",
325
+ "narrow",
326
+ "merged",
327
+ "ignored",
328
+ "review_required"
329
+ ]);
330
+ var AiClassFoodCodeMappingSchema = import_zod6.z.object({
331
+ classId: import_zod6.z.number().int().nonnegative(),
332
+ aiLabel: import_zod6.z.string().min(1),
333
+ aiAliases: import_zod6.z.array(import_zod6.z.string().min(1)).default([]),
334
+ representativeCode: FoodCodeSchema.nullable(),
335
+ candidateCodes: import_zod6.z.array(FoodCodeSchema).default([]),
336
+ mappingStatus: FoodAiClassMappingStatusSchema,
337
+ granularity: FoodGranularitySchema,
338
+ searchable: import_zod6.z.boolean(),
339
+ recommendable: import_zod6.z.boolean(),
340
+ reason: import_zod6.z.string().min(1).optional()
341
+ });
342
+ var AiClassToFoodCodeMapManifestSchema = import_zod6.z.object({
343
+ version: import_zod6.z.string().min(1),
344
+ updatedAt: ISODateTimeStringSchema,
345
+ modelTaxonomyVersion: import_zod6.z.string().min(1),
346
+ serviceTaxonomyVersion: import_zod6.z.string().min(1),
347
+ classes: import_zod6.z.array(AiClassFoodCodeMappingSchema)
348
+ });
349
+
350
+ // src/domain/meal-plan/meal-plan-decision.schema.ts
351
+ var MealPlanLatitudeSchema = import_zod7.z.number().brand();
352
+ var MealPlanLongitudeSchema = import_zod7.z.number().brand();
353
+ var MealPlanLocationCandidateIdSchema = import_zod7.z.string().min(1).brand();
354
+ var MealPlanMenuCandidateIdSchema = import_zod7.z.string().min(1).brand();
355
+ var MealPlanDecisionStageIdSchema = import_zod7.z.string().uuid().brand();
356
+ var MealPlanVoteIdSchema = import_zod7.z.string().uuid().brand();
357
+ var MealPlanLocationCandidateSourceSchema = import_zod7.z.enum([
260
358
  "manual",
359
+ "map-marker",
261
360
  "midpoint",
361
+ "user-location",
262
362
  "search",
263
363
  "recent-place",
264
364
  "fallback"
265
365
  ]);
266
- var MealPlanLocationCandidateSchema = import_zod6.z.object({
366
+ var MealPlanLocationCandidateSchema = import_zod7.z.object({
267
367
  locationId: MealPlanLocationCandidateIdSchema,
268
- placeName: import_zod6.z.string().min(1),
368
+ placeName: import_zod7.z.string().min(1),
269
369
  lat: MealPlanLatitudeSchema,
270
370
  lng: MealPlanLongitudeSchema,
271
- address: import_zod6.z.string().default(""),
371
+ address: import_zod7.z.string().default(""),
272
372
  source: MealPlanLocationCandidateSourceSchema.default("manual"),
273
373
  createdBy: MemberIdSchema.optional(),
274
374
  createdAt: ISODateTimeStringSchema.optional()
275
375
  });
276
- var MealPlanMenuCandidateSourceSchema = import_zod6.z.enum([
376
+ var MealPlanMenuCandidateSourceSchema = import_zod7.z.enum([
277
377
  "external-recommendation",
278
378
  "prefer-menu",
279
379
  "recent-menu",
280
380
  "fallback",
281
381
  "manual-search"
282
382
  ]);
283
- var MealPlanMenuCandidateSchema = import_zod6.z.object({
383
+ var MealPlanMenuCandidateSchema = import_zod7.z.object({
284
384
  menuCandidateId: MealPlanMenuCandidateIdSchema,
285
385
  menu: FoodSchema,
286
386
  source: MealPlanMenuCandidateSourceSchema,
287
- score: import_zod6.z.number().default(0),
387
+ score: import_zod7.z.number().default(0),
388
+ imageUrl: import_zod7.z.string().min(1).nullable().default(null),
389
+ image: FoodCodeManifestImageSchema.nullable().default(null),
288
390
  createdAt: ISODateTimeStringSchema
289
391
  });
290
392
  var MealPlanRestaurantCandidateSchema = RestaurantSchema.extend({
291
393
  candidateId: RestaurantIdSchema.optional(),
292
- source: import_zod6.z.enum([
293
- "search",
294
- "fallback",
295
- "manual"
296
- ]).optional(),
394
+ source: import_zod7.z.enum(["search", "fallback", "manual"]).optional(),
297
395
  createdAt: ISODateTimeStringSchema.optional()
298
396
  });
299
- var MealPlanDecisionStageTypeSchema = import_zod6.z.enum([
397
+ var MealPlanDecisionStageTypeSchema = import_zod7.z.enum([
300
398
  "DATE",
301
399
  "TIME",
302
400
  "AREA",
@@ -304,108 +402,90 @@ var MealPlanDecisionStageTypeSchema = import_zod6.z.enum([
304
402
  "RESTAURANT",
305
403
  "FINAL_CONFIRMATION"
306
404
  ]);
307
- var MealPlanDecisionStageStatusSchema = import_zod6.z.enum([
405
+ var MealPlanDecisionStageStatusSchema = import_zod7.z.enum([
308
406
  "OPEN",
309
407
  "COMPLETED",
310
408
  "REOPENED"
311
409
  ]);
312
- var MealPlanRestaurantSearchStatusSchema = import_zod6.z.enum([
410
+ var MealPlanRestaurantSearchStatusSchema = import_zod7.z.enum([
313
411
  "IDLE",
314
412
  "PENDING",
315
413
  "READY",
316
414
  "FAILED",
317
415
  "STALE"
318
416
  ]);
319
- var MealPlanRestaurantSearchStateSchema = import_zod6.z.object({
320
- searchKey: import_zod6.z.string().min(1).nullable(),
417
+ var MealPlanRestaurantSearchStateSchema = import_zod7.z.object({
418
+ searchKey: import_zod7.z.string().min(1).nullable(),
321
419
  status: MealPlanRestaurantSearchStatusSchema,
322
420
  startedAt: ISODateTimeStringSchema.nullable(),
323
421
  completedAt: ISODateTimeStringSchema.nullable(),
324
- version: import_zod6.z.number().int().min(0),
325
- candidateCount: import_zod6.z.number().int().min(0),
326
- errorMessage: import_zod6.z.string().nullable().default(null)
422
+ version: import_zod7.z.number().int().min(0),
423
+ candidateCount: import_zod7.z.number().int().min(0),
424
+ errorMessage: import_zod7.z.string().nullable().default(null)
327
425
  });
328
- var MealPlanDecisionStageMetadataSchema = import_zod6.z.object({
426
+ var MealPlanDecisionStageMetadataSchema = import_zod7.z.object({
329
427
  restaurantSearch: MealPlanRestaurantSearchStateSchema.optional()
330
- }).catchall(import_zod6.z.unknown());
331
- var MealPlanVoteTypeSchema = import_zod6.z.enum([
428
+ }).catchall(import_zod7.z.unknown());
429
+ var MealPlanVoteTypeSchema = import_zod7.z.enum([
332
430
  "PICK",
333
431
  "EXCLUDE",
334
432
  "PREFER",
335
433
  "READY"
336
434
  ]);
337
- var MealPlanDecisionCandidateSchema = import_zod6.z.discriminatedUnion("stageType", [
338
- import_zod6.z.object({
339
- stageType: import_zod6.z.literal("DATE"),
340
- value: ISODateStringSchema
341
- }),
342
- import_zod6.z.object({
343
- stageType: import_zod6.z.literal("TIME"),
344
- value: TimeHHmmStringSchema
345
- }),
346
- import_zod6.z.object({
347
- stageType: import_zod6.z.literal("AREA"),
348
- value: MealPlanLocationCandidateSchema
349
- }),
350
- import_zod6.z.object({
351
- stageType: import_zod6.z.literal("MENU"),
352
- value: MealPlanMenuCandidateSchema
353
- }),
354
- import_zod6.z.object({
355
- stageType: import_zod6.z.literal("RESTAURANT"),
356
- value: MealPlanRestaurantCandidateSchema
357
- }),
358
- import_zod6.z.object({
359
- stageType: import_zod6.z.literal("FINAL_CONFIRMATION"),
360
- value: import_zod6.z.literal("READY")
361
- })
435
+ var MealPlanDecisionCandidateSchema = import_zod7.z.discriminatedUnion("stageType", [
436
+ import_zod7.z.object({ stageType: import_zod7.z.literal("DATE"), value: ISODateStringSchema }),
437
+ import_zod7.z.object({ stageType: import_zod7.z.literal("TIME"), value: TimeHHmmStringSchema }),
438
+ import_zod7.z.object({ stageType: import_zod7.z.literal("AREA"), value: MealPlanLocationCandidateSchema }),
439
+ import_zod7.z.object({ stageType: import_zod7.z.literal("MENU"), value: MealPlanMenuCandidateSchema }),
440
+ import_zod7.z.object({ stageType: import_zod7.z.literal("RESTAURANT"), value: MealPlanRestaurantCandidateSchema }),
441
+ import_zod7.z.object({ stageType: import_zod7.z.literal("FINAL_CONFIRMATION"), value: import_zod7.z.literal("READY") })
362
442
  ]);
363
- var MealPlanVoteSchema = import_zod6.z.object({
443
+ var MealPlanVoteSchema = import_zod7.z.object({
364
444
  voteId: MealPlanVoteIdSchema,
365
445
  voterId: MemberIdSchema.nullable(),
366
- guestId: import_zod6.z.string().min(1).nullable(),
446
+ guestId: import_zod7.z.string().min(1).nullable(),
367
447
  voteType: MealPlanVoteTypeSchema,
368
448
  candidate: MealPlanDecisionCandidateSchema,
369
449
  createdAt: ISODateTimeStringSchema
370
450
  });
371
- var MealPlanDecisionStageResponseSchema = import_zod6.z.object({
451
+ var MealPlanDecisionStageResponseSchema = import_zod7.z.object({
372
452
  stageId: MealPlanDecisionStageIdSchema,
373
453
  stageType: MealPlanDecisionStageTypeSchema,
374
454
  status: MealPlanDecisionStageStatusSchema,
375
- candidates: import_zod6.z.array(MealPlanDecisionCandidateSchema),
376
- votes: import_zod6.z.array(MealPlanVoteSchema),
455
+ candidates: import_zod7.z.array(MealPlanDecisionCandidateSchema),
456
+ votes: import_zod7.z.array(MealPlanVoteSchema),
377
457
  selectedCandidate: MealPlanDecisionCandidateSchema.nullable(),
378
458
  metadata: MealPlanDecisionStageMetadataSchema.nullable().default(null),
379
459
  openedAt: ISODateTimeStringSchema,
380
460
  completedAt: ISODateTimeStringSchema.nullable(),
381
461
  reopenedAt: ISODateTimeStringSchema.nullable()
382
462
  });
383
- var CreateMealPlanVoteRequestSchema = import_zod6.z.object({
463
+ var CreateMealPlanVoteRequestSchema = import_zod7.z.object({
384
464
  voteType: MealPlanVoteTypeSchema,
385
465
  candidate: MealPlanDecisionCandidateSchema
386
466
  });
387
- var CompleteMealPlanDecisionStageRequestSchema = import_zod6.z.object({
467
+ var CompleteMealPlanDecisionStageRequestSchema = import_zod7.z.object({
388
468
  selectedCandidate: MealPlanDecisionCandidateSchema
389
469
  });
390
- var MealPlanChangeRequestStatusSchema = import_zod6.z.enum([
470
+ var MealPlanChangeRequestStatusSchema = import_zod7.z.enum([
391
471
  "PENDING",
392
472
  "ACCEPTED",
393
473
  "REJECTED",
394
474
  "CANCELLED"
395
475
  ]);
396
- var CreateMealPlanChangeRequestSchema = import_zod6.z.object({
476
+ var CreateMealPlanChangeRequestSchema = import_zod7.z.object({
397
477
  stageType: MealPlanDecisionStageTypeSchema,
398
- reason: import_zod6.z.string().min(1).max(500),
478
+ reason: import_zod7.z.string().min(1).max(500),
399
479
  proposedCandidate: MealPlanDecisionCandidateSchema.optional()
400
480
  });
401
- var MealPlanChangeRequestSummarySchema = import_zod6.z.object({
481
+ var MealPlanChangeRequestSummarySchema = import_zod7.z.object({
402
482
  changeRequestId: MealPlanChangeRequestIdSchema,
403
483
  stageType: MealPlanDecisionStageTypeSchema,
404
484
  status: MealPlanChangeRequestStatusSchema,
405
- reason: import_zod6.z.string(),
485
+ reason: import_zod7.z.string(),
406
486
  requestedAt: ISODateTimeStringSchema
407
487
  });
408
- var MealPlanDecisionTaskKeySchema = import_zod6.z.enum([
488
+ var MealPlanDecisionTaskKeySchema = import_zod7.z.enum([
409
489
  "SCHEDULE_DATE",
410
490
  "SCHEDULE_TIME",
411
491
  "LOCATION_CANDIDATE",
@@ -417,14 +497,13 @@ var MealPlanDecisionTaskKeySchema = import_zod6.z.enum([
417
497
  "RESTAURANT_PICK",
418
498
  "FINAL_CONFIRMATION"
419
499
  ]);
420
- var MealPlanDecisionTaskStatusSchema = import_zod6.z.enum([
500
+ var MealPlanDecisionTaskStatusSchema = import_zod7.z.enum([
421
501
  "LOCKED",
422
502
  "OPEN",
423
- "READY",
424
503
  "RESOLVED",
425
504
  "STALE"
426
505
  ]);
427
- var MealPlanDecisionFinalFieldSchema = import_zod6.z.enum([
506
+ var MealPlanDecisionFinalFieldSchema = import_zod7.z.enum([
428
507
  "date",
429
508
  "time",
430
509
  "meetingAt",
@@ -432,82 +511,72 @@ var MealPlanDecisionFinalFieldSchema = import_zod6.z.enum([
432
511
  "menu",
433
512
  "restaurant"
434
513
  ]);
435
- var MealPlanDecisionSnapshotStatusSchema = import_zod6.z.enum([
514
+ var MealPlanDecisionSnapshotStatusSchema = import_zod7.z.enum([
436
515
  "CANDIDATE",
437
516
  "PROVISIONAL",
438
517
  "FINAL",
439
518
  "STALE"
440
519
  ]);
441
- var MealPlanDecisionReasonSchema = import_zod6.z.enum([
520
+ var MealPlanDecisionReasonSchema = import_zod7.z.enum([
442
521
  "COMMON_SCHEDULE",
443
522
  "TOP_VOTED_LOCATION",
444
523
  "TOP_PICKED_MENU",
445
524
  "TOP_PICKED_RESTAURANT",
446
525
  "OWNER_CONFIRMED",
447
- "TASK_ALL_READY",
448
526
  "MANUAL_SELECTION"
449
527
  ]);
450
- var MealPlanDecisionActorTypeSchema = import_zod6.z.enum([
451
- "MEMBER",
452
- "GUEST",
453
- "SYSTEM"
454
- ]);
455
- var MealPlanDecisionSnapshotSchema = import_zod6.z.object({
456
- snapshotId: import_zod6.z.string().uuid(),
457
- mealPlanId: import_zod6.z.string().uuid(),
528
+ var MealPlanDecisionActorTypeSchema = import_zod7.z.enum(["MEMBER", "GUEST", "SYSTEM"]);
529
+ var MealPlanDecisionSnapshotSchema = import_zod7.z.object({
530
+ snapshotId: import_zod7.z.string().uuid(),
531
+ mealPlanId: import_zod7.z.string().uuid(),
458
532
  field: MealPlanDecisionFinalFieldSchema,
459
- value: import_zod6.z.unknown(),
533
+ value: import_zod7.z.unknown(),
460
534
  status: MealPlanDecisionSnapshotStatusSchema,
461
535
  reason: MealPlanDecisionReasonSchema,
462
- score: import_zod6.z.number().nullable().default(null),
463
- sourceEvent: import_zod6.z.string().min(1),
536
+ score: import_zod7.z.number().nullable().default(null),
537
+ sourceEvent: import_zod7.z.string().min(1),
464
538
  sourceActorType: MealPlanDecisionActorTypeSchema,
465
539
  sourceMemberId: MemberIdSchema.nullable(),
466
- sourceGuestId: import_zod6.z.string().min(1).nullable(),
467
- sourceParticipantId: import_zod6.z.string().uuid().nullable(),
468
- sourceVersion: import_zod6.z.number().int().min(0),
469
- dependencyHash: import_zod6.z.string().min(1),
470
- dependencyFields: import_zod6.z.array(MealPlanDecisionFinalFieldSchema),
540
+ sourceGuestId: import_zod7.z.string().min(1).nullable(),
541
+ sourceParticipantId: import_zod7.z.string().uuid().nullable(),
542
+ sourceVersion: import_zod7.z.number().int().min(0),
543
+ dependencyHash: import_zod7.z.string().min(1),
544
+ dependencyFields: import_zod7.z.array(MealPlanDecisionFinalFieldSchema),
471
545
  createdAt: ISODateTimeStringSchema,
472
546
  staleAt: ISODateTimeStringSchema.nullable()
473
547
  });
474
- var MealPlanDecisionTaskProgressSchema = import_zod6.z.object({
548
+ var MealPlanDecisionTaskProgressSchema = import_zod7.z.object({
475
549
  taskKey: MealPlanDecisionTaskKeySchema,
476
550
  status: MealPlanDecisionTaskStatusSchema,
477
- readyCount: import_zod6.z.number().int().min(0),
478
- participantCount: import_zod6.z.number().int().min(0),
479
- blockers: import_zod6.z.array(import_zod6.z.string()).default([]),
551
+ blockers: import_zod7.z.array(import_zod7.z.string()).default([]),
480
552
  updatedAt: ISODateTimeStringSchema
481
553
  });
482
- var MealPlanDecisionProgressSchema = import_zod6.z.object({
483
- mealPlanId: import_zod6.z.string().uuid(),
484
- status: import_zod6.z.string().min(1),
485
- tasks: import_zod6.z.array(MealPlanDecisionTaskProgressSchema),
486
- final: import_zod6.z.record(import_zod6.z.string(), import_zod6.z.unknown()),
487
- provisional: import_zod6.z.record(import_zod6.z.string(), import_zod6.z.unknown()),
488
- snapshots: import_zod6.z.array(MealPlanDecisionSnapshotSchema),
489
- version: import_zod6.z.number().int().min(0),
554
+ var MealPlanDecisionProgressSchema = import_zod7.z.object({
555
+ mealPlanId: import_zod7.z.string().uuid(),
556
+ status: import_zod7.z.string().min(1),
557
+ tasks: import_zod7.z.array(MealPlanDecisionTaskProgressSchema),
558
+ final: import_zod7.z.record(import_zod7.z.string(), import_zod7.z.unknown()),
559
+ provisional: import_zod7.z.record(import_zod7.z.string(), import_zod7.z.unknown()),
560
+ snapshots: import_zod7.z.array(MealPlanDecisionSnapshotSchema),
561
+ version: import_zod7.z.number().int().min(0),
490
562
  updatedAt: ISODateTimeStringSchema
491
563
  });
492
- var MealPlanDecisionTaskReadyRequestSchema = import_zod6.z.object({
493
- isReady: import_zod6.z.boolean()
564
+ var ReopenMealPlanDecisionTaskRequestSchema = import_zod7.z.object({
565
+ reason: import_zod7.z.string().max(500).optional()
494
566
  });
495
- var ReopenMealPlanDecisionTaskRequestSchema = import_zod6.z.object({
496
- reason: import_zod6.z.string().max(500).optional()
497
- });
498
- var ConfirmMealPlanDecisionSnapshotRequestSchema = import_zod6.z.object({
499
- snapshotId: import_zod6.z.string().uuid()
567
+ var ConfirmMealPlanDecisionSnapshotRequestSchema = import_zod7.z.object({
568
+ snapshotId: import_zod7.z.string().uuid()
500
569
  });
501
570
 
502
571
  // src/domain/meal-plan/meal-plan-participant.schema.ts
503
- var import_zod7 = require("zod");
504
- var MealPlanParticipantIdSchema = import_zod7.z.string().uuid().brand();
505
- var MealPlanParticipantRoleSchema = import_zod7.z.enum([
572
+ var import_zod8 = require("zod");
573
+ var MealPlanParticipantIdSchema = import_zod8.z.string().uuid().brand();
574
+ var MealPlanParticipantRoleSchema = import_zod8.z.enum([
506
575
  "OWNER",
507
576
  "FRIEND",
508
577
  "GUEST"
509
578
  ]);
510
- var MealPlanParticipantStatusSchema = import_zod7.z.enum([
579
+ var MealPlanParticipantStatusSchema = import_zod8.z.enum([
511
580
  "INVITED",
512
581
  "REQUESTED",
513
582
  "JOINED",
@@ -516,17 +585,17 @@ var MealPlanParticipantStatusSchema = import_zod7.z.enum([
516
585
  "LEFT",
517
586
  "REMOVED"
518
587
  ]);
519
- var MealPlanJoinSourceSchema = import_zod7.z.enum([
588
+ var MealPlanJoinSourceSchema = import_zod8.z.enum([
520
589
  "OWNER",
521
590
  "FRIEND_INVITE",
522
591
  "LINK_GUEST",
523
592
  "NEARBY_FRIENDS"
524
593
  ]);
525
- var MealPlanGuestParticipantSchema = import_zod7.z.object({
526
- guestId: import_zod7.z.string().min(1),
527
- nickname: import_zod7.z.string().min(1).max(50)
594
+ var MealPlanGuestParticipantSchema = import_zod8.z.object({
595
+ guestId: import_zod8.z.string().min(1),
596
+ nickname: import_zod8.z.string().min(1).max(50)
528
597
  });
529
- var MealPlanParticipantResponseSchema = import_zod7.z.object({
598
+ var MealPlanParticipantResponseSchema = import_zod8.z.object({
530
599
  participantId: MealPlanParticipantIdSchema,
531
600
  mealPlanId: MealPlanIdSchema,
532
601
  member: MemberCoreSchema.nullable(),
@@ -537,66 +606,66 @@ var MealPlanParticipantResponseSchema = import_zod7.z.object({
537
606
  joinedAt: ISODateTimeStringSchema.nullable(),
538
607
  readyAt: ISODateTimeStringSchema.nullable()
539
608
  });
540
- var CreateMealPlanParticipantRequestSchema = import_zod7.z.object({
609
+ var CreateMealPlanParticipantRequestSchema = import_zod8.z.object({
541
610
  memberId: MemberIdSchema.optional(),
542
- guestNickname: import_zod7.z.string().min(1).max(50).optional(),
611
+ guestNickname: import_zod8.z.string().min(1).max(50).optional(),
543
612
  source: MealPlanJoinSourceSchema
544
613
  });
545
614
 
546
615
  // src/domain/meal-plan/meal-plan-invite.schema.ts
547
- var import_zod8 = require("zod");
548
- var MealPlanInviteStatusSchema = import_zod8.z.enum([
616
+ var import_zod9 = require("zod");
617
+ var MealPlanInviteStatusSchema = import_zod9.z.enum([
549
618
  "PENDING",
550
619
  "ACCEPTED",
551
620
  "DECLINED",
552
621
  "CANCELLED",
553
622
  "EXPIRED"
554
623
  ]);
555
- var CreateMealPlanInviteRequestSchema = import_zod8.z.object({
624
+ var CreateMealPlanInviteRequestSchema = import_zod9.z.object({
556
625
  inviteeId: MemberIdSchema,
557
- message: import_zod8.z.string().max(500).default("")
626
+ message: import_zod9.z.string().max(500).default("")
558
627
  });
559
- var MealPlanInviteSummarySchema = import_zod8.z.object({
628
+ var MealPlanInviteSummarySchema = import_zod9.z.object({
560
629
  inviteId: MealPlanInviteIdSchema,
561
630
  mealPlanId: MealPlanIdSchema,
562
631
  inviter: MemberCoreSchema,
563
632
  invitee: MemberCoreSchema,
564
633
  status: MealPlanInviteStatusSchema,
565
- message: import_zod8.z.string().max(500),
634
+ message: import_zod9.z.string().max(500),
566
635
  createdAt: ISODateTimeStringSchema,
567
636
  respondedAt: ISODateTimeStringSchema.nullable()
568
637
  });
569
- var MealPlanInviteListResponseSchema = import_zod8.z.array(MealPlanInviteSummarySchema);
570
- var SendMealPlanInviteResponseSchema = import_zod8.z.object({
638
+ var MealPlanInviteListResponseSchema = import_zod9.z.array(MealPlanInviteSummarySchema);
639
+ var SendMealPlanInviteResponseSchema = import_zod9.z.object({
571
640
  inviteId: MealPlanInviteIdSchema
572
641
  });
573
642
 
574
643
  // src/domain/meal-plan/meal-plan-nearby-friend.schema.ts
575
- var import_zod9 = require("zod");
576
- var MealPlanNearbyFriendExposureIdSchema = import_zod9.z.string().uuid().brand();
577
- var MealPlanNearbyFriendExposureStatusSchema = import_zod9.z.enum([
644
+ var import_zod10 = require("zod");
645
+ var MealPlanNearbyFriendExposureIdSchema = import_zod10.z.string().uuid().brand();
646
+ var MealPlanNearbyFriendExposureStatusSchema = import_zod10.z.enum([
578
647
  "OPEN",
579
648
  "CLOSED",
580
649
  "EXPIRED"
581
650
  ]);
582
- var MealPlanNearbyFriendExposureNotificationStatusSchema = import_zod9.z.enum([
651
+ var MealPlanNearbyFriendExposureNotificationStatusSchema = import_zod10.z.enum([
583
652
  "PENDING",
584
653
  "SENT",
585
654
  "PARTIAL",
586
655
  "FAILED",
587
656
  "SKIPPED"
588
657
  ]);
589
- var ExposeMealPlanToNearbyFriendsRequestSchema = import_zod9.z.object({
590
- radiusMeters: import_zod9.z.number().int().min(100).max(5e3).default(1e3),
658
+ var ExposeMealPlanToNearbyFriendsRequestSchema = import_zod10.z.object({
659
+ radiusMeters: import_zod10.z.number().int().min(100).max(5e3).default(1e3),
591
660
  expiresAt: ISODateTimeStringSchema.optional()
592
661
  });
593
- var NearbyFriendExposureEligibilitySchema = import_zod9.z.object({
594
- canExpose: import_zod9.z.boolean(),
662
+ var NearbyFriendExposureEligibilitySchema = import_zod10.z.object({
663
+ canExpose: import_zod10.z.boolean(),
595
664
  locationConsentStatus: LocationConsentStatusSchema,
596
- nearbyMealPlanExposureAllowed: import_zod9.z.boolean(),
597
- mealSuggestionAllowed: import_zod9.z.boolean(),
598
- hasLastKnownLocation: import_zod9.z.boolean(),
599
- missingRequirements: import_zod9.z.array(import_zod9.z.enum([
665
+ nearbyMealPlanExposureAllowed: import_zod10.z.boolean(),
666
+ mealSuggestionAllowed: import_zod10.z.boolean(),
667
+ hasLastKnownLocation: import_zod10.z.boolean(),
668
+ missingRequirements: import_zod10.z.array(import_zod10.z.enum([
600
669
  "LOCATION_PERMISSION",
601
670
  "SERVICE_LOCATION_CONSENT",
602
671
  "NEARBY_EXPOSURE_TOGGLE",
@@ -604,7 +673,7 @@ var NearbyFriendExposureEligibilitySchema = import_zod9.z.object({
604
673
  "LAST_KNOWN_LOCATION"
605
674
  ]))
606
675
  });
607
- var MealPlanNearbyFriendRejectionReasonSchema = import_zod9.z.enum([
676
+ var MealPlanNearbyFriendRejectionReasonSchema = import_zod10.z.enum([
608
677
  "NOT_FRIEND",
609
678
  "BLOCKED",
610
679
  "LOCATION_CONSENT_REQUIRED",
@@ -613,79 +682,79 @@ var MealPlanNearbyFriendRejectionReasonSchema = import_zod9.z.enum([
613
682
  "MEAL_SUGGESTION_DISABLED",
614
683
  "NOT_HUNGRY"
615
684
  ]);
616
- var MealPlanNearbyFriendRejectionSummarySchema = import_zod9.z.object({
685
+ var MealPlanNearbyFriendRejectionSummarySchema = import_zod10.z.object({
617
686
  reason: MealPlanNearbyFriendRejectionReasonSchema,
618
- count: import_zod9.z.number().int().min(0)
687
+ count: import_zod10.z.number().int().min(0)
619
688
  });
620
- var ExposeMealPlanToNearbyFriendsResponseSchema = import_zod9.z.object({
689
+ var ExposeMealPlanToNearbyFriendsResponseSchema = import_zod10.z.object({
621
690
  mealPlanId: MealPlanIdSchema,
622
691
  exposureBatchId: MealPlanNearbyFriendExposureBatchIdSchema,
623
- exposedFriendCount: import_zod9.z.number().int().min(0),
624
- rejectedFriendCount: import_zod9.z.number().int().min(0),
692
+ exposedFriendCount: import_zod10.z.number().int().min(0),
693
+ rejectedFriendCount: import_zod10.z.number().int().min(0),
625
694
  notificationStatus: MealPlanNearbyFriendExposureNotificationStatusSchema,
626
- rejectionSummary: import_zod9.z.array(MealPlanNearbyFriendRejectionSummarySchema)
695
+ rejectionSummary: import_zod10.z.array(MealPlanNearbyFriendRejectionSummarySchema)
627
696
  });
628
- var MealPlanNearbyFriendExposureSummarySchema = import_zod9.z.object({
697
+ var MealPlanNearbyFriendExposureSummarySchema = import_zod10.z.object({
629
698
  exposureId: MealPlanNearbyFriendExposureIdSchema,
630
699
  exposureBatchId: MealPlanNearbyFriendExposureBatchIdSchema.nullable(),
631
700
  mealPlanId: MealPlanIdSchema,
632
701
  status: MealPlanNearbyFriendExposureStatusSchema,
633
- radiusMeters: import_zod9.z.number().int().min(100),
634
- exposedFriendCount: import_zod9.z.number().int().min(0),
702
+ radiusMeters: import_zod10.z.number().int().min(100),
703
+ exposedFriendCount: import_zod10.z.number().int().min(0),
635
704
  openedAt: ISODateTimeStringSchema,
636
705
  expiresAt: ISODateTimeStringSchema.nullable(),
637
706
  closedAt: ISODateTimeStringSchema.nullable()
638
707
  });
639
- var MealPlanNearbyFriendExposureBatchSummarySchema = import_zod9.z.object({
708
+ var MealPlanNearbyFriendExposureBatchSummarySchema = import_zod10.z.object({
640
709
  exposureBatchId: MealPlanNearbyFriendExposureBatchIdSchema,
641
710
  mealPlanId: MealPlanIdSchema,
642
711
  status: MealPlanNearbyFriendExposureStatusSchema,
643
- radiusMeters: import_zod9.z.number().int().min(100),
644
- exposedFriendCount: import_zod9.z.number().int().min(0),
645
- rejectedFriendCount: import_zod9.z.number().int().min(0),
646
- rejectionSummary: import_zod9.z.array(MealPlanNearbyFriendRejectionSummarySchema),
712
+ radiusMeters: import_zod10.z.number().int().min(100),
713
+ exposedFriendCount: import_zod10.z.number().int().min(0),
714
+ rejectedFriendCount: import_zod10.z.number().int().min(0),
715
+ rejectionSummary: import_zod10.z.array(MealPlanNearbyFriendRejectionSummarySchema),
647
716
  notificationStatus: MealPlanNearbyFriendExposureNotificationStatusSchema,
648
717
  notificationSentAt: ISODateTimeStringSchema.nullable(),
649
718
  openedAt: ISODateTimeStringSchema,
650
719
  expiresAt: ISODateTimeStringSchema.nullable(),
651
720
  closedAt: ISODateTimeStringSchema.nullable()
652
721
  });
653
- var MealPlanJoinRequestStatusSchema = import_zod9.z.enum([
722
+ var MealPlanJoinRequestStatusSchema = import_zod10.z.enum([
654
723
  "PENDING",
655
724
  "ACCEPTED",
656
725
  "REJECTED",
657
726
  "CANCELLED"
658
727
  ]);
659
- var CreateMealPlanJoinRequestSchema = import_zod9.z.object({
660
- message: import_zod9.z.string().max(500).default("")
728
+ var CreateMealPlanJoinRequestSchema = import_zod10.z.object({
729
+ message: import_zod10.z.string().max(500).default("")
661
730
  });
662
- var MealPlanJoinRequestSummarySchema = import_zod9.z.object({
731
+ var MealPlanJoinRequestSummarySchema = import_zod10.z.object({
663
732
  joinRequestId: MealPlanJoinRequestIdSchema,
664
733
  mealPlanId: MealPlanIdSchema,
665
734
  requester: MemberCoreSchema,
666
735
  status: MealPlanJoinRequestStatusSchema,
667
- message: import_zod9.z.string().max(500),
736
+ message: import_zod10.z.string().max(500),
668
737
  requestedAt: ISODateTimeStringSchema,
669
738
  respondedAt: ISODateTimeStringSchema.nullable()
670
739
  });
671
- var NearbyFriendMealPlanSummarySchema = import_zod9.z.object({
740
+ var NearbyFriendMealPlanSummarySchema = import_zod10.z.object({
672
741
  mealPlanId: MealPlanIdSchema,
673
742
  owner: MemberCoreSchema,
674
- title: import_zod9.z.string(),
675
- participantCount: import_zod9.z.number().int().min(1),
676
- distanceMeters: import_zod9.z.number().int().min(0),
743
+ title: import_zod10.z.string(),
744
+ participantCount: import_zod10.z.number().int().min(1),
745
+ distanceMeters: import_zod10.z.number().int().min(0),
677
746
  exposedAt: ISODateTimeStringSchema,
678
747
  expiresAt: ISODateTimeStringSchema.nullable(),
679
748
  joinRequestStatus: MealPlanJoinRequestStatusSchema.nullable().default(null)
680
749
  });
681
750
 
682
751
  // src/domain/meal-plan/meal-plan-chat.schema.ts
683
- var import_zod10 = require("zod");
684
- var MealPlanChatMessageKindSchema = import_zod10.z.enum([
752
+ var import_zod11 = require("zod");
753
+ var MealPlanChatMessageKindSchema = import_zod11.z.enum([
685
754
  "USER",
686
755
  "SYSTEM"
687
756
  ]);
688
- var MealPlanSystemMessageKindSchema = import_zod10.z.enum([
757
+ var MealPlanSystemMessageKindSchema = import_zod11.z.enum([
689
758
  "PARTICIPANT_JOINED",
690
759
  "PARTICIPANT_READY",
691
760
  "PARTICIPANT_REMOVED",
@@ -694,39 +763,41 @@ var MealPlanSystemMessageKindSchema = import_zod10.z.enum([
694
763
  "CONFIRMED",
695
764
  "RECORD_NEEDED"
696
765
  ]);
697
- var MealPlanChatSystemPayloadSchema = import_zod10.z.object({
766
+ var MealPlanChatSystemPayloadSchema = import_zod11.z.object({
698
767
  kind: MealPlanSystemMessageKindSchema
699
- }).catchall(import_zod10.z.unknown());
700
- var MealPlanChatMessageListResponseSchema = import_zod10.z.array(import_zod10.z.lazy(() => MealPlanChatMessageResponseSchema));
701
- var MealPlanChatRoomSummarySchema = import_zod10.z.object({
768
+ }).catchall(import_zod11.z.unknown());
769
+ var MealPlanChatMessageListResponseSchema = import_zod11.z.array(
770
+ import_zod11.z.lazy(() => MealPlanChatMessageResponseSchema)
771
+ );
772
+ var MealPlanChatRoomSummarySchema = import_zod11.z.object({
702
773
  chatRoomId: MealPlanChatRoomIdSchema,
703
774
  mealPlanId: MealPlanIdSchema,
704
- messageCount: import_zod10.z.number().int().min(0),
775
+ messageCount: import_zod11.z.number().int().min(0),
705
776
  lastMessageAt: ISODateTimeStringSchema.nullable(),
706
777
  createdAt: ISODateTimeStringSchema
707
778
  });
708
- var SendMealPlanChatMessageRequestSchema = import_zod10.z.object({
709
- message: import_zod10.z.string().min(1).max(500)
779
+ var SendMealPlanChatMessageRequestSchema = import_zod11.z.object({
780
+ message: import_zod11.z.string().min(1).max(500)
710
781
  });
711
- var MealPlanChatMessageResponseSchema = import_zod10.z.object({
782
+ var MealPlanChatMessageResponseSchema = import_zod11.z.object({
712
783
  messageId: MealPlanChatMessageIdSchema,
713
784
  chatRoomId: MealPlanChatRoomIdSchema,
714
785
  sender: MemberCoreSchema.nullable(),
715
- guestId: import_zod10.z.string().min(1).nullable(),
716
- guestNickname: import_zod10.z.string().min(1).nullable(),
786
+ guestId: import_zod11.z.string().min(1).nullable(),
787
+ guestNickname: import_zod11.z.string().min(1).nullable(),
717
788
  kind: MealPlanChatMessageKindSchema,
718
- message: import_zod10.z.string().min(1).max(1e3),
789
+ message: import_zod11.z.string().min(1).max(1e3),
719
790
  systemPayload: MealPlanChatSystemPayloadSchema.nullable(),
720
791
  createdAt: ISODateTimeStringSchema
721
792
  });
722
- var MealPlanSystemMessageSchema = import_zod10.z.object({
793
+ var MealPlanSystemMessageSchema = import_zod11.z.object({
723
794
  kind: MealPlanSystemMessageKindSchema,
724
- message: import_zod10.z.string().min(1),
795
+ message: import_zod11.z.string().min(1),
725
796
  createdAt: ISODateTimeStringSchema
726
797
  });
727
798
 
728
799
  // src/domain/meal-plan/meal-plan.schema.ts
729
- var MealPlanStatusSchema = import_zod11.z.enum([
800
+ var MealPlanStatusSchema = import_zod12.z.enum([
730
801
  "DRAFT",
731
802
  "RECOMMENDING",
732
803
  "GATHERING",
@@ -738,78 +809,74 @@ var MealPlanStatusSchema = import_zod11.z.enum([
738
809
  "RECORDED",
739
810
  "CANCELLED"
740
811
  ]);
741
- var MealPlanChannelSchema = import_zod11.z.enum([
812
+ var MealPlanChannelSchema = import_zod12.z.enum([
742
813
  "OWNER_ONLY",
743
814
  "FRIEND_INVITE",
744
815
  "LINK_GUEST",
745
816
  "NEARBY_FRIENDS"
746
817
  ]);
747
- var MealPlanRecommendationContextSchema = import_zod11.z.object({
818
+ var MealPlanRecommendationContextSchema = import_zod12.z.object({
748
819
  mealDate: ISODateStringSchema.optional(),
749
820
  mealTime: TimeHHmmStringSchema.optional(),
750
821
  area: MealPlanLocationCandidateSchema.optional(),
751
- preferredMenuCategories: import_zod11.z.array(import_zod11.z.string().min(1)).default([]),
752
- excludedMenuCategories: import_zod11.z.array(import_zod11.z.string().min(1)).default([]),
753
- candidateMenuCategories: import_zod11.z.array(import_zod11.z.string().min(1)).default([]),
754
- budgetMin: import_zod11.z.number().int().min(0).optional(),
755
- budgetMax: import_zod11.z.number().int().min(0).optional(),
756
- memo: import_zod11.z.string().max(500).optional()
757
- });
758
- var CreateMealPlanRequestSchema = import_zod11.z.object({
759
- title: import_zod11.z.string().min(1).max(100).optional(),
760
- channels: import_zod11.z.array(MealPlanChannelSchema).default([
761
- "OWNER_ONLY"
762
- ]),
822
+ preferredMenuCategories: import_zod12.z.array(import_zod12.z.string().min(1)).default([]),
823
+ excludedMenuCategories: import_zod12.z.array(import_zod12.z.string().min(1)).default([]),
824
+ candidateMenuCategories: import_zod12.z.array(import_zod12.z.string().min(1)).default([]),
825
+ budgetMin: import_zod12.z.number().int().min(0).optional(),
826
+ budgetMax: import_zod12.z.number().int().min(0).optional(),
827
+ memo: import_zod12.z.string().max(500).optional()
828
+ });
829
+ var CreateMealPlanRequestSchema = import_zod12.z.object({
830
+ title: import_zod12.z.string().min(1).max(100).optional(),
831
+ channels: import_zod12.z.array(MealPlanChannelSchema).default(["OWNER_ONLY"]),
763
832
  recommendationContext: MealPlanRecommendationContextSchema.optional()
764
833
  });
765
- var CreateMealPlanResponseSchema = import_zod11.z.object({
834
+ var CreateMealPlanResponseSchema = import_zod12.z.object({
766
835
  mealPlanId: MealPlanIdSchema
767
836
  });
768
837
  var UpdateMealPlanContextRequestSchema = MealPlanRecommendationContextSchema.partial();
769
- var MealPlanViewerRoleSchema = import_zod11.z.enum([
838
+ var MealPlanViewerRoleSchema = import_zod12.z.enum([
770
839
  "OWNER",
771
840
  "FRIEND",
772
841
  "GUEST",
773
842
  "NONE"
774
843
  ]);
775
- var MealPlanViewerPermissionsSchema = import_zod11.z.object({
776
- canView: import_zod11.z.boolean(),
777
- canInviteFriends: import_zod11.z.boolean(),
778
- canManageParticipants: import_zod11.z.boolean(),
779
- canCreateShareLink: import_zod11.z.boolean(),
780
- canExposeNearbyFriends: import_zod11.z.boolean(),
781
- canVote: import_zod11.z.boolean(),
782
- canChat: import_zod11.z.boolean(),
783
- canReadyMealPlan: import_zod11.z.boolean(),
784
- canReadyDecisionTask: import_zod11.z.boolean(),
785
- canRequestChange: import_zod11.z.boolean(),
786
- canReopenDecisionTask: import_zod11.z.boolean(),
787
- canConfirmDecisionSnapshot: import_zod11.z.boolean(),
788
- canConfirmMealPlan: import_zod11.z.boolean(),
789
- canCompleteMealPlan: import_zod11.z.boolean(),
790
- canRecordMealPlan: import_zod11.z.boolean(),
791
- canCancelMealPlan: import_zod11.z.boolean()
792
- });
793
- var MealPlanResponseSchema = import_zod11.z.object({
844
+ var MealPlanViewerPermissionsSchema = import_zod12.z.object({
845
+ canView: import_zod12.z.boolean(),
846
+ canInviteFriends: import_zod12.z.boolean(),
847
+ canManageParticipants: import_zod12.z.boolean(),
848
+ canCreateShareLink: import_zod12.z.boolean(),
849
+ canExposeNearbyFriends: import_zod12.z.boolean(),
850
+ canVote: import_zod12.z.boolean(),
851
+ canChat: import_zod12.z.boolean(),
852
+ canReadyMealPlan: import_zod12.z.boolean(),
853
+ canRequestChange: import_zod12.z.boolean(),
854
+ canReopenDecisionTask: import_zod12.z.boolean(),
855
+ canConfirmDecisionSnapshot: import_zod12.z.boolean(),
856
+ canConfirmMealPlan: import_zod12.z.boolean(),
857
+ canCompleteMealPlan: import_zod12.z.boolean(),
858
+ canRecordMealPlan: import_zod12.z.boolean(),
859
+ canCancelMealPlan: import_zod12.z.boolean()
860
+ });
861
+ var MealPlanResponseSchema = import_zod12.z.object({
794
862
  mealPlanId: MealPlanIdSchema,
795
863
  owner: MemberCoreSchema,
796
- title: import_zod11.z.string().nullable(),
864
+ title: import_zod12.z.string().nullable(),
797
865
  status: MealPlanStatusSchema,
798
- channels: import_zod11.z.array(MealPlanChannelSchema),
799
- participants: import_zod11.z.array(MealPlanParticipantResponseSchema),
800
- pendingInvites: import_zod11.z.array(MealPlanInviteSummarySchema),
801
- pendingJoinRequests: import_zod11.z.array(MealPlanJoinRequestSummarySchema),
802
- decisionStages: import_zod11.z.array(MealPlanDecisionStageResponseSchema),
866
+ channels: import_zod12.z.array(MealPlanChannelSchema),
867
+ participants: import_zod12.z.array(MealPlanParticipantResponseSchema),
868
+ pendingInvites: import_zod12.z.array(MealPlanInviteSummarySchema),
869
+ pendingJoinRequests: import_zod12.z.array(MealPlanJoinRequestSummarySchema),
870
+ decisionStages: import_zod12.z.array(MealPlanDecisionStageResponseSchema),
803
871
  decisionProgress: MealPlanDecisionProgressSchema.nullable(),
804
872
  viewerRole: MealPlanViewerRoleSchema,
805
873
  viewerParticipantStatus: MealPlanParticipantStatusSchema.nullable(),
806
874
  viewerPermissions: MealPlanViewerPermissionsSchema,
807
- viewerTaskReadyMap: import_zod11.z.record(MealPlanDecisionTaskKeySchema, import_zod11.z.boolean()),
808
875
  selectedDate: ISODateStringSchema.nullable(),
809
876
  selectedTime: TimeHHmmStringSchema.nullable(),
810
877
  selectedArea: MealPlanLocationCandidateSchema.nullable(),
811
878
  selectedRestaurant: RestaurantSchema.nullable(),
812
- selectedMenuCategory: import_zod11.z.string().nullable(),
879
+ selectedMenuCategory: import_zod12.z.string().nullable(),
813
880
  chatRoom: MealPlanChatRoomSummarySchema.nullable(),
814
881
  confirmedAt: ISODateTimeStringSchema.nullable(),
815
882
  lockedAt: ISODateTimeStringSchema.nullable(),
@@ -818,36 +885,31 @@ var MealPlanResponseSchema = import_zod11.z.object({
818
885
  createdAt: ISODateTimeStringSchema,
819
886
  updatedAt: ISODateTimeStringSchema
820
887
  });
821
- var MyMealPlanGroupSchema = import_zod11.z.enum([
822
- "DECIDING",
823
- "UPCOMING",
824
- "RECORD_NEEDED",
825
- "PAST"
826
- ]);
827
- var MyMealPlanListItemSchema = import_zod11.z.object({
888
+ var MyMealPlanGroupSchema = import_zod12.z.enum(["DECIDING", "UPCOMING", "RECORD_NEEDED", "PAST"]);
889
+ var MyMealPlanListItemSchema = import_zod12.z.object({
828
890
  mealPlanId: MealPlanIdSchema,
829
891
  group: MyMealPlanGroupSchema,
830
- title: import_zod11.z.string(),
892
+ title: import_zod12.z.string(),
831
893
  status: MealPlanStatusSchema,
832
- channels: import_zod11.z.array(MealPlanChannelSchema),
833
- participantCount: import_zod11.z.number().int().min(1),
894
+ channels: import_zod12.z.array(MealPlanChannelSchema),
895
+ participantCount: import_zod12.z.number().int().min(1),
834
896
  selectedDate: ISODateStringSchema.nullable(),
835
897
  selectedTime: TimeHHmmStringSchema.nullable(),
836
- selectedAreaName: import_zod11.z.string().nullable(),
837
- selectedRestaurantName: import_zod11.z.string().nullable(),
838
- primaryAction: import_zod11.z.object({
839
- label: import_zod11.z.string(),
840
- href: import_zod11.z.string()
898
+ selectedAreaName: import_zod12.z.string().nullable(),
899
+ selectedRestaurantName: import_zod12.z.string().nullable(),
900
+ primaryAction: import_zod12.z.object({
901
+ label: import_zod12.z.string(),
902
+ href: import_zod12.z.string()
841
903
  }),
842
904
  updatedAt: ISODateTimeStringSchema
843
905
  });
844
- var MyMealPlanListResponseSchema = import_zod11.z.object({
845
- deciding: import_zod11.z.array(MyMealPlanListItemSchema),
846
- upcoming: import_zod11.z.array(MyMealPlanListItemSchema),
847
- recordNeeded: import_zod11.z.array(MyMealPlanListItemSchema),
848
- past: import_zod11.z.array(MyMealPlanListItemSchema)
906
+ var MyMealPlanListResponseSchema = import_zod12.z.object({
907
+ deciding: import_zod12.z.array(MyMealPlanListItemSchema),
908
+ upcoming: import_zod12.z.array(MyMealPlanListItemSchema),
909
+ recordNeeded: import_zod12.z.array(MyMealPlanListItemSchema),
910
+ past: import_zod12.z.array(MyMealPlanListItemSchema)
849
911
  });
850
- var MealPlanNotificationKindSchema = import_zod11.z.enum([
912
+ var MealPlanNotificationKindSchema = import_zod12.z.enum([
851
913
  "MEAL_PLAN_INVITE_RECEIVED",
852
914
  "MEAL_PLAN_INVITE_ACCEPTED",
853
915
  "MEAL_PLAN_JOIN_REQUESTED",
@@ -859,129 +921,118 @@ var MealPlanNotificationKindSchema = import_zod11.z.enum([
859
921
  "MEAL_PLAN_LOCKED",
860
922
  "MEAL_PLAN_RECORD_NEEDED"
861
923
  ]);
862
- var MealPlanNotificationPriorityChannelSchema = import_zod11.z.enum([
924
+ var MealPlanNotificationPriorityChannelSchema = import_zod12.z.enum([
863
925
  "HOME",
864
926
  "NOTIFICATION_INBOX",
865
927
  "FCM_PUSH",
866
928
  "LIVE_ACTIVITY"
867
929
  ]);
868
- var MealPlanLiveActivityBehaviorSchema = import_zod11.z.enum([
930
+ var MealPlanLiveActivityBehaviorSchema = import_zod12.z.enum([
869
931
  "NONE",
870
932
  "START_OR_UPDATE",
871
933
  "UPDATE",
872
934
  "END"
873
935
  ]);
874
- var MealPlanNotificationPriorityPolicyItemSchema = import_zod11.z.object({
936
+ var MealPlanNotificationPriorityPolicyItemSchema = import_zod12.z.object({
875
937
  kind: MealPlanNotificationKindSchema,
876
- priority: import_zod11.z.number().int().min(0),
877
- homePriority: import_zod11.z.number().int().min(0),
878
- inboxPriority: import_zod11.z.number().int().min(0),
879
- fcmPriority: import_zod11.z.number().int().min(0),
880
- liveActivityPriority: import_zod11.z.number().int().min(0),
938
+ priority: import_zod12.z.number().int().min(0),
939
+ homePriority: import_zod12.z.number().int().min(0),
940
+ inboxPriority: import_zod12.z.number().int().min(0),
941
+ fcmPriority: import_zod12.z.number().int().min(0),
942
+ liveActivityPriority: import_zod12.z.number().int().min(0),
881
943
  liveActivityBehavior: MealPlanLiveActivityBehaviorSchema,
882
- foregroundToast: import_zod11.z.boolean()
944
+ foregroundToast: import_zod12.z.boolean()
883
945
  });
884
- var MealPlanNotificationSchema = import_zod11.z.object({
885
- notificationId: import_zod11.z.string().min(1),
946
+ var MealPlanNotificationSchema = import_zod12.z.object({
947
+ notificationId: import_zod12.z.string().min(1),
886
948
  kind: MealPlanNotificationKindSchema,
887
949
  mealPlanId: MealPlanIdSchema,
888
- deepLink: import_zod11.z.string().min(1),
889
- title: import_zod11.z.string().min(1),
890
- message: import_zod11.z.string().min(1),
950
+ deepLink: import_zod12.z.string().min(1),
951
+ title: import_zod12.z.string().min(1),
952
+ message: import_zod12.z.string().min(1),
891
953
  createdAt: ISODateTimeStringSchema,
892
954
  readAt: ISODateTimeStringSchema.nullable()
893
955
  });
894
956
 
895
957
  // src/domain/push/push.schema.ts
896
- var PushProviderSchema = import_zod12.z.enum([
897
- "FCM",
898
- "APNS_LIVE_ACTIVITY"
899
- ]);
900
- var PushPlatformSchema = import_zod12.z.enum([
901
- "WEB",
902
- "ANDROID",
903
- "IOS"
904
- ]);
905
- var PushPermissionStatusSchema = import_zod12.z.enum([
958
+ var PushProviderSchema = import_zod13.z.enum(["FCM", "APNS_LIVE_ACTIVITY"]);
959
+ var PushPlatformSchema = import_zod13.z.enum(["WEB", "ANDROID", "IOS"]);
960
+ var PushPermissionStatusSchema = import_zod13.z.enum([
906
961
  "UNKNOWN",
907
962
  "PROMPT",
908
963
  "GRANTED",
909
964
  "DENIED"
910
965
  ]);
911
- var PushTokenStatusSchema = import_zod12.z.enum([
912
- "ACTIVE",
913
- "REVOKED",
914
- "DISABLED"
915
- ]);
916
- var RegisterPushTokenRequestSchema = import_zod12.z.object({
966
+ var PushTokenStatusSchema = import_zod13.z.enum(["ACTIVE", "REVOKED", "DISABLED"]);
967
+ var RegisterPushTokenRequestSchema = import_zod13.z.object({
917
968
  provider: PushProviderSchema.default("FCM"),
918
969
  platform: PushPlatformSchema,
919
- token: import_zod12.z.string().min(10),
920
- deviceId: import_zod12.z.string().min(1).max(128),
921
- appVersion: import_zod12.z.string().min(1).max(64).optional(),
922
- buildNumber: import_zod12.z.string().min(1).max(64).optional(),
970
+ token: import_zod13.z.string().min(10),
971
+ deviceId: import_zod13.z.string().min(1).max(128),
972
+ appVersion: import_zod13.z.string().min(1).max(64).optional(),
973
+ buildNumber: import_zod13.z.string().min(1).max(64).optional(),
923
974
  permissionStatus: PushPermissionStatusSchema
924
975
  });
925
- var RevokePushTokenRequestSchema = import_zod12.z.object({
976
+ var RevokePushTokenRequestSchema = import_zod13.z.object({
926
977
  provider: PushProviderSchema.default("FCM"),
927
- token: import_zod12.z.string().min(10).optional(),
928
- deviceId: import_zod12.z.string().min(1).max(128).optional()
978
+ token: import_zod13.z.string().min(10).optional(),
979
+ deviceId: import_zod13.z.string().min(1).max(128).optional()
929
980
  });
930
- var PushTokenResponseSchema = import_zod12.z.object({
931
- pushTokenId: import_zod12.z.string().uuid(),
981
+ var PushTokenResponseSchema = import_zod13.z.object({
982
+ pushTokenId: import_zod13.z.string().uuid(),
932
983
  provider: PushProviderSchema,
933
984
  platform: PushPlatformSchema,
934
- deviceId: import_zod12.z.string(),
985
+ deviceId: import_zod13.z.string(),
935
986
  status: PushTokenStatusSchema,
936
987
  permissionStatus: PushPermissionStatusSchema,
937
- appVersion: import_zod12.z.string().nullable(),
938
- buildNumber: import_zod12.z.string().nullable(),
988
+ appVersion: import_zod13.z.string().nullable(),
989
+ buildNumber: import_zod13.z.string().nullable(),
939
990
  lastSeenAt: ISODateTimeStringSchema,
940
991
  revokedAt: ISODateTimeStringSchema.nullable()
941
992
  });
942
- var PushPayloadSchemaVersionSchema = import_zod12.z.literal("2026-06-17");
943
- var MealPlanPushPayloadDataSchema = import_zod12.z.object({
993
+ var PushPayloadSchemaVersionSchema = import_zod13.z.literal("2026-06-17");
994
+ var MealPlanPushPayloadDataSchema = import_zod13.z.object({
944
995
  schemaVersion: PushPayloadSchemaVersionSchema,
945
- notificationId: import_zod12.z.string().min(1),
996
+ notificationId: import_zod13.z.string().min(1),
946
997
  kind: MealPlanNotificationKindSchema,
947
998
  mealPlanId: MealPlanIdSchema,
948
- deepLink: import_zod12.z.string().min(1),
949
- title: import_zod12.z.string().min(1),
950
- body: import_zod12.z.string().min(1),
951
- fcmPriority: import_zod12.z.coerce.number().int().min(0),
952
- liveActivityPriority: import_zod12.z.coerce.number().int().min(0),
999
+ deepLink: import_zod13.z.string().min(1),
1000
+ title: import_zod13.z.string().min(1),
1001
+ body: import_zod13.z.string().min(1),
1002
+ fcmPriority: import_zod13.z.coerce.number().int().min(0),
1003
+ liveActivityPriority: import_zod13.z.coerce.number().int().min(0),
953
1004
  liveActivityBehavior: MealPlanLiveActivityBehaviorSchema
954
1005
  });
955
- var PushDeliveryStatusSchema = import_zod12.z.enum([
1006
+ var PushDeliveryStatusSchema = import_zod13.z.enum([
956
1007
  "PENDING",
957
1008
  "SENT",
958
1009
  "FAILED",
959
1010
  "SKIPPED"
960
1011
  ]);
961
- var PushDeliveryAttemptResultSchema = import_zod12.z.enum([
1012
+ var PushDeliveryAttemptResultSchema = import_zod13.z.enum([
962
1013
  "SENT",
963
1014
  "FAILED",
964
1015
  "SKIPPED"
965
1016
  ]);
966
- var PushDeliveryAttemptSummarySchema = import_zod12.z.object({
967
- attemptId: import_zod12.z.string().uuid(),
968
- outboxId: import_zod12.z.string().uuid(),
969
- pushTokenId: import_zod12.z.string().uuid().nullable(),
1017
+ var PushDeliveryAttemptSummarySchema = import_zod13.z.object({
1018
+ attemptId: import_zod13.z.string().uuid(),
1019
+ outboxId: import_zod13.z.string().uuid(),
1020
+ pushTokenId: import_zod13.z.string().uuid().nullable(),
970
1021
  provider: PushProviderSchema,
971
1022
  result: PushDeliveryAttemptResultSchema,
972
- providerMessageId: import_zod12.z.string().nullable(),
973
- errorCode: import_zod12.z.string().nullable(),
974
- errorMessage: import_zod12.z.string().nullable(),
975
- invalidToken: import_zod12.z.boolean(),
1023
+ providerMessageId: import_zod13.z.string().nullable(),
1024
+ errorCode: import_zod13.z.string().nullable(),
1025
+ errorMessage: import_zod13.z.string().nullable(),
1026
+ invalidToken: import_zod13.z.boolean(),
976
1027
  createdAt: ISODateTimeStringSchema
977
1028
  });
978
- var PushDeliveryOutboxSummarySchema = import_zod12.z.object({
979
- outboxId: import_zod12.z.string().uuid(),
980
- notificationId: import_zod12.z.string().min(1),
981
- memberId: import_zod12.z.number().int().positive(),
1029
+ var PushDeliveryOutboxSummarySchema = import_zod13.z.object({
1030
+ outboxId: import_zod13.z.string().uuid(),
1031
+ notificationId: import_zod13.z.string().min(1),
1032
+ memberId: import_zod13.z.number().int().positive(),
982
1033
  status: PushDeliveryStatusSchema,
983
- attemptCount: import_zod12.z.number().int().min(0),
984
- lastError: import_zod12.z.string().nullable(),
1034
+ attemptCount: import_zod13.z.number().int().min(0),
1035
+ lastError: import_zod13.z.string().nullable(),
985
1036
  nextAttemptAt: ISODateTimeStringSchema.nullable(),
986
1037
  sentAt: ISODateTimeStringSchema.nullable(),
987
1038
  createdAt: ISODateTimeStringSchema