@kimdaegyu/babmukdang-shared 1.1.3 → 1.1.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.
@@ -264,7 +264,67 @@ declare const apiContract: {
264
264
  profileImageUrl: string | null;
265
265
  bio: string | null;
266
266
  }>, z.ZodNull>;
267
- readonly updatePreferences: EndpointContract<"PATCH", "/members/me/preferences", z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
267
+ };
268
+ readonly preferences: {
269
+ readonly my: EndpointContract<"GET", "/preferences/me", z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
270
+ liked: z.ZodOptional<z.ZodArray<z.ZodObject<{
271
+ code: z.ZodBranded<z.ZodString, "FoodCode">;
272
+ label: z.ZodBranded<z.ZodString, "FoodLabel">;
273
+ }, "strip", z.ZodTypeAny, {
274
+ code: string & z.BRAND<"FoodCode">;
275
+ label: string & z.BRAND<"FoodLabel">;
276
+ }, {
277
+ code: string;
278
+ label: string;
279
+ }>, "many">>;
280
+ disliked: z.ZodOptional<z.ZodArray<z.ZodObject<{
281
+ code: z.ZodBranded<z.ZodString, "FoodCode">;
282
+ label: z.ZodBranded<z.ZodString, "FoodLabel">;
283
+ }, "strip", z.ZodTypeAny, {
284
+ code: string & z.BRAND<"FoodCode">;
285
+ label: string & z.BRAND<"FoodLabel">;
286
+ }, {
287
+ code: string;
288
+ label: string;
289
+ }>, "many">>;
290
+ allergy: z.ZodOptional<z.ZodArray<z.ZodObject<{
291
+ code: z.ZodBranded<z.ZodString, "FoodCode">;
292
+ label: z.ZodBranded<z.ZodString, "FoodLabel">;
293
+ }, "strip", z.ZodTypeAny, {
294
+ code: string & z.BRAND<"FoodCode">;
295
+ label: string & z.BRAND<"FoodLabel">;
296
+ }, {
297
+ code: string;
298
+ label: string;
299
+ }>, "many">>;
300
+ }, "strip", z.ZodTypeAny, {
301
+ liked?: {
302
+ code: string & z.BRAND<"FoodCode">;
303
+ label: string & z.BRAND<"FoodLabel">;
304
+ }[] | undefined;
305
+ disliked?: {
306
+ code: string & z.BRAND<"FoodCode">;
307
+ label: string & z.BRAND<"FoodLabel">;
308
+ }[] | undefined;
309
+ allergy?: {
310
+ code: string & z.BRAND<"FoodCode">;
311
+ label: string & z.BRAND<"FoodLabel">;
312
+ }[] | undefined;
313
+ }, {
314
+ liked?: {
315
+ code: string;
316
+ label: string;
317
+ }[] | undefined;
318
+ disliked?: {
319
+ code: string;
320
+ label: string;
321
+ }[] | undefined;
322
+ allergy?: {
323
+ code: string;
324
+ label: string;
325
+ }[] | undefined;
326
+ }>>;
327
+ readonly update: EndpointContract<"PATCH", "/preferences/me", z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
268
328
  liked: z.ZodOptional<z.ZodArray<z.ZodObject<{
269
329
  code: z.ZodBranded<z.ZodString, "FoodCode">;
270
330
  label: z.ZodBranded<z.ZodString, "FoodLabel">;
@@ -645,13 +705,29 @@ declare const apiContract: {
645
705
  hasPrevious: boolean;
646
706
  };
647
707
  }>>;
648
- readonly byAuthor: EndpointContract<"GET", "/articles/by-author/:authorId", z.ZodObject<{
708
+ readonly byMember: EndpointContract<"GET", "/articles/by-author/:memberId", z.ZodObject<{
649
709
  memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
650
710
  }, "strip", z.ZodTypeAny, {
651
711
  memberId: number & z.BRAND<"MemberId">;
652
712
  }, {
653
713
  memberId: number;
654
- }>, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
714
+ }>, z.ZodObject<{
715
+ page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
716
+ size: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
717
+ } & {
718
+ sortBy: z.ZodDefault<z.ZodOptional<z.ZodEnum<["createdAt", "likeCount", "commentCount"]>>>;
719
+ direction: z.ZodDefault<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
720
+ }, "strip", z.ZodTypeAny, {
721
+ page: number;
722
+ size: number;
723
+ sortBy: "createdAt" | "likeCount" | "commentCount";
724
+ direction: "asc" | "desc";
725
+ }, {
726
+ page?: number | undefined;
727
+ size?: number | undefined;
728
+ sortBy?: "createdAt" | "likeCount" | "commentCount" | undefined;
729
+ direction?: "asc" | "desc" | undefined;
730
+ }>, z.ZodUndefined, z.ZodObject<{
655
731
  items: z.ZodArray<z.ZodObject<{
656
732
  articleId: z.ZodBranded<z.ZodNumber, "ArticleId">;
657
733
  author: z.ZodObject<{
@@ -1471,7 +1547,86 @@ declare const apiContract: {
1471
1547
  confidence: number;
1472
1548
  tsUtc?: string | undefined;
1473
1549
  } | undefined;
1474
- }>, z.ZodNull>;
1550
+ }>, z.ZodDiscriminatedUnion<"entity", [z.ZodObject<{
1551
+ entity: z.ZodLiteral<"article">;
1552
+ id: z.ZodBranded<z.ZodNumber, "ArticleId">;
1553
+ }, "strip", z.ZodTypeAny, {
1554
+ id: number & z.BRAND<"ArticleId">;
1555
+ entity: "article";
1556
+ }, {
1557
+ id: number;
1558
+ entity: "article";
1559
+ }>, z.ZodObject<{
1560
+ entity: z.ZodLiteral<"comment">;
1561
+ id: z.ZodBranded<z.ZodNumber, "CommentId">;
1562
+ }, "strip", z.ZodTypeAny, {
1563
+ id: number & z.BRAND<"CommentId">;
1564
+ entity: "comment";
1565
+ }, {
1566
+ id: number;
1567
+ entity: "comment";
1568
+ }>, z.ZodObject<{
1569
+ entity: z.ZodLiteral<"recruit">;
1570
+ id: z.ZodBranded<z.ZodNumber, "RecruitId">;
1571
+ }, "strip", z.ZodTypeAny, {
1572
+ id: number & z.BRAND<"RecruitId">;
1573
+ entity: "recruit";
1574
+ }, {
1575
+ id: number;
1576
+ entity: "recruit";
1577
+ }>, z.ZodObject<{
1578
+ entity: z.ZodLiteral<"invitation">;
1579
+ id: z.ZodBranded<z.ZodNumber, "InvitationId">;
1580
+ }, "strip", z.ZodTypeAny, {
1581
+ id: number & z.BRAND<"InvitationId">;
1582
+ entity: "invitation";
1583
+ }, {
1584
+ id: number;
1585
+ entity: "invitation";
1586
+ }>, z.ZodObject<{
1587
+ entity: z.ZodLiteral<"subscription">;
1588
+ id: z.ZodBranded<z.ZodNumber, "SubscriptionId">;
1589
+ }, "strip", z.ZodTypeAny, {
1590
+ id: number & z.BRAND<"SubscriptionId">;
1591
+ entity: "subscription";
1592
+ }, {
1593
+ id: number;
1594
+ entity: "subscription";
1595
+ }>, z.ZodObject<{
1596
+ entity: z.ZodLiteral<"coupon">;
1597
+ id: z.ZodBranded<z.ZodNumber, "CouponId">;
1598
+ }, "strip", z.ZodTypeAny, {
1599
+ id: number & z.BRAND<"CouponId">;
1600
+ entity: "coupon";
1601
+ }, {
1602
+ id: number;
1603
+ entity: "coupon";
1604
+ }>, z.ZodObject<{
1605
+ entity: z.ZodLiteral<"plan">;
1606
+ id: z.ZodBranded<z.ZodNumber, "PlanId">;
1607
+ }, "strip", z.ZodTypeAny, {
1608
+ id: number & z.BRAND<"PlanId">;
1609
+ entity: "plan";
1610
+ }, {
1611
+ id: number;
1612
+ entity: "plan";
1613
+ }>]>>;
1614
+ readonly like: EndpointContract<"POST", "/articles/:articleId/like", z.ZodObject<{
1615
+ articleId: z.ZodBranded<z.ZodNumber, "ArticleId">;
1616
+ }, "strip", z.ZodTypeAny, {
1617
+ articleId: number & z.BRAND<"ArticleId">;
1618
+ }, {
1619
+ articleId: number;
1620
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
1621
+ liked: z.ZodBoolean;
1622
+ likeCount: z.ZodNumber;
1623
+ }, "strip", z.ZodTypeAny, {
1624
+ liked: boolean;
1625
+ likeCount: number;
1626
+ }, {
1627
+ liked: boolean;
1628
+ likeCount: number;
1629
+ }>>;
1475
1630
  readonly createComment: EndpointContract<"POST", "/articles/:articleId/comments", z.ZodObject<{
1476
1631
  articleId: z.ZodBranded<z.ZodNumber, "ArticleId">;
1477
1632
  }, "strip", z.ZodTypeAny, {
@@ -1487,7 +1642,70 @@ declare const apiContract: {
1487
1642
  }, {
1488
1643
  content: string;
1489
1644
  parentCommentId?: number | null | undefined;
1490
- }>, z.ZodNull>;
1645
+ }>, z.ZodDiscriminatedUnion<"entity", [z.ZodObject<{
1646
+ entity: z.ZodLiteral<"article">;
1647
+ id: z.ZodBranded<z.ZodNumber, "ArticleId">;
1648
+ }, "strip", z.ZodTypeAny, {
1649
+ id: number & z.BRAND<"ArticleId">;
1650
+ entity: "article";
1651
+ }, {
1652
+ id: number;
1653
+ entity: "article";
1654
+ }>, z.ZodObject<{
1655
+ entity: z.ZodLiteral<"comment">;
1656
+ id: z.ZodBranded<z.ZodNumber, "CommentId">;
1657
+ }, "strip", z.ZodTypeAny, {
1658
+ id: number & z.BRAND<"CommentId">;
1659
+ entity: "comment";
1660
+ }, {
1661
+ id: number;
1662
+ entity: "comment";
1663
+ }>, z.ZodObject<{
1664
+ entity: z.ZodLiteral<"recruit">;
1665
+ id: z.ZodBranded<z.ZodNumber, "RecruitId">;
1666
+ }, "strip", z.ZodTypeAny, {
1667
+ id: number & z.BRAND<"RecruitId">;
1668
+ entity: "recruit";
1669
+ }, {
1670
+ id: number;
1671
+ entity: "recruit";
1672
+ }>, z.ZodObject<{
1673
+ entity: z.ZodLiteral<"invitation">;
1674
+ id: z.ZodBranded<z.ZodNumber, "InvitationId">;
1675
+ }, "strip", z.ZodTypeAny, {
1676
+ id: number & z.BRAND<"InvitationId">;
1677
+ entity: "invitation";
1678
+ }, {
1679
+ id: number;
1680
+ entity: "invitation";
1681
+ }>, z.ZodObject<{
1682
+ entity: z.ZodLiteral<"subscription">;
1683
+ id: z.ZodBranded<z.ZodNumber, "SubscriptionId">;
1684
+ }, "strip", z.ZodTypeAny, {
1685
+ id: number & z.BRAND<"SubscriptionId">;
1686
+ entity: "subscription";
1687
+ }, {
1688
+ id: number;
1689
+ entity: "subscription";
1690
+ }>, z.ZodObject<{
1691
+ entity: z.ZodLiteral<"coupon">;
1692
+ id: z.ZodBranded<z.ZodNumber, "CouponId">;
1693
+ }, "strip", z.ZodTypeAny, {
1694
+ id: number & z.BRAND<"CouponId">;
1695
+ entity: "coupon";
1696
+ }, {
1697
+ id: number;
1698
+ entity: "coupon";
1699
+ }>, z.ZodObject<{
1700
+ entity: z.ZodLiteral<"plan">;
1701
+ id: z.ZodBranded<z.ZodNumber, "PlanId">;
1702
+ }, "strip", z.ZodTypeAny, {
1703
+ id: number & z.BRAND<"PlanId">;
1704
+ entity: "plan";
1705
+ }, {
1706
+ id: number;
1707
+ entity: "plan";
1708
+ }>]>>;
1491
1709
  readonly presignArticleImage: EndpointContract<"POST", "/uploads/presign-article", z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
1492
1710
  key: z.ZodString;
1493
1711
  putUrl: z.ZodString;
@@ -1508,16 +1726,12 @@ declare const apiContract: {
1508
1726
  }, {
1509
1727
  articleId: number;
1510
1728
  }>, z.ZodUndefined, z.ZodUndefined, z.ZodNull>;
1511
- readonly deleteComment: EndpointContract<"DELETE", "/articles/:articleId/comments/:commentId", z.ZodObject<{
1512
- articleId: z.ZodBranded<z.ZodNumber, "ArticleId">;
1513
- } & {
1729
+ readonly deleteComment: EndpointContract<"DELETE", "/articles/comments/:commentId", z.ZodObject<{
1514
1730
  commentId: z.ZodBranded<z.ZodNumber, "CommentId">;
1515
1731
  }, "strip", z.ZodTypeAny, {
1516
1732
  commentId: number & z.BRAND<"CommentId">;
1517
- articleId: number & z.BRAND<"ArticleId">;
1518
1733
  }, {
1519
1734
  commentId: number;
1520
- articleId: number;
1521
1735
  }>, z.ZodUndefined, z.ZodUndefined, z.ZodNull>;
1522
1736
  };
1523
1737
  readonly recruits: {
@@ -2157,7 +2371,7 @@ declare const apiContract: {
2157
2371
  };
2158
2372
  requestedAt: string;
2159
2373
  }>, "many">>;
2160
- readonly outgoingRequest: EndpointContract<"GET", "/friends/requests/outgoint", z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodArray<z.ZodObject<{
2374
+ readonly outgoingRequest: EndpointContract<"GET", "/friends/requests/outgoing", z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodArray<z.ZodObject<{
2161
2375
  requestId: z.ZodBranded<z.ZodNumber, "FriendRequestId">;
2162
2376
  requester: z.ZodObject<{
2163
2377
  memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
@@ -2217,11 +2431,11 @@ declare const apiContract: {
2217
2431
  requestedAt: string;
2218
2432
  }>, "many">>;
2219
2433
  readonly sendRequest: EndpointContract<"POST", "/friends/requests/:memberId", z.ZodObject<{
2220
- requestId: z.ZodBranded<z.ZodNumber, "FriendRequestId">;
2434
+ memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
2221
2435
  }, "strip", z.ZodTypeAny, {
2222
- requestId: number & z.BRAND<"FriendRequestId">;
2436
+ memberId: number & z.BRAND<"MemberId">;
2223
2437
  }, {
2224
- requestId: number;
2438
+ memberId: number;
2225
2439
  }>, z.ZodUndefined, z.ZodUndefined, z.ZodNull>;
2226
2440
  readonly acceptRequest: EndpointContract<"POST", "/friends/requests/:requestId/accept", z.ZodObject<{
2227
2441
  requestId: z.ZodBranded<z.ZodNumber, "FriendRequestId">;
@@ -264,7 +264,67 @@ declare const apiContract: {
264
264
  profileImageUrl: string | null;
265
265
  bio: string | null;
266
266
  }>, z.ZodNull>;
267
- readonly updatePreferences: EndpointContract<"PATCH", "/members/me/preferences", z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
267
+ };
268
+ readonly preferences: {
269
+ readonly my: EndpointContract<"GET", "/preferences/me", z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
270
+ liked: z.ZodOptional<z.ZodArray<z.ZodObject<{
271
+ code: z.ZodBranded<z.ZodString, "FoodCode">;
272
+ label: z.ZodBranded<z.ZodString, "FoodLabel">;
273
+ }, "strip", z.ZodTypeAny, {
274
+ code: string & z.BRAND<"FoodCode">;
275
+ label: string & z.BRAND<"FoodLabel">;
276
+ }, {
277
+ code: string;
278
+ label: string;
279
+ }>, "many">>;
280
+ disliked: z.ZodOptional<z.ZodArray<z.ZodObject<{
281
+ code: z.ZodBranded<z.ZodString, "FoodCode">;
282
+ label: z.ZodBranded<z.ZodString, "FoodLabel">;
283
+ }, "strip", z.ZodTypeAny, {
284
+ code: string & z.BRAND<"FoodCode">;
285
+ label: string & z.BRAND<"FoodLabel">;
286
+ }, {
287
+ code: string;
288
+ label: string;
289
+ }>, "many">>;
290
+ allergy: z.ZodOptional<z.ZodArray<z.ZodObject<{
291
+ code: z.ZodBranded<z.ZodString, "FoodCode">;
292
+ label: z.ZodBranded<z.ZodString, "FoodLabel">;
293
+ }, "strip", z.ZodTypeAny, {
294
+ code: string & z.BRAND<"FoodCode">;
295
+ label: string & z.BRAND<"FoodLabel">;
296
+ }, {
297
+ code: string;
298
+ label: string;
299
+ }>, "many">>;
300
+ }, "strip", z.ZodTypeAny, {
301
+ liked?: {
302
+ code: string & z.BRAND<"FoodCode">;
303
+ label: string & z.BRAND<"FoodLabel">;
304
+ }[] | undefined;
305
+ disliked?: {
306
+ code: string & z.BRAND<"FoodCode">;
307
+ label: string & z.BRAND<"FoodLabel">;
308
+ }[] | undefined;
309
+ allergy?: {
310
+ code: string & z.BRAND<"FoodCode">;
311
+ label: string & z.BRAND<"FoodLabel">;
312
+ }[] | undefined;
313
+ }, {
314
+ liked?: {
315
+ code: string;
316
+ label: string;
317
+ }[] | undefined;
318
+ disliked?: {
319
+ code: string;
320
+ label: string;
321
+ }[] | undefined;
322
+ allergy?: {
323
+ code: string;
324
+ label: string;
325
+ }[] | undefined;
326
+ }>>;
327
+ readonly update: EndpointContract<"PATCH", "/preferences/me", z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
268
328
  liked: z.ZodOptional<z.ZodArray<z.ZodObject<{
269
329
  code: z.ZodBranded<z.ZodString, "FoodCode">;
270
330
  label: z.ZodBranded<z.ZodString, "FoodLabel">;
@@ -645,13 +705,29 @@ declare const apiContract: {
645
705
  hasPrevious: boolean;
646
706
  };
647
707
  }>>;
648
- readonly byAuthor: EndpointContract<"GET", "/articles/by-author/:authorId", z.ZodObject<{
708
+ readonly byMember: EndpointContract<"GET", "/articles/by-author/:memberId", z.ZodObject<{
649
709
  memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
650
710
  }, "strip", z.ZodTypeAny, {
651
711
  memberId: number & z.BRAND<"MemberId">;
652
712
  }, {
653
713
  memberId: number;
654
- }>, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
714
+ }>, z.ZodObject<{
715
+ page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
716
+ size: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
717
+ } & {
718
+ sortBy: z.ZodDefault<z.ZodOptional<z.ZodEnum<["createdAt", "likeCount", "commentCount"]>>>;
719
+ direction: z.ZodDefault<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
720
+ }, "strip", z.ZodTypeAny, {
721
+ page: number;
722
+ size: number;
723
+ sortBy: "createdAt" | "likeCount" | "commentCount";
724
+ direction: "asc" | "desc";
725
+ }, {
726
+ page?: number | undefined;
727
+ size?: number | undefined;
728
+ sortBy?: "createdAt" | "likeCount" | "commentCount" | undefined;
729
+ direction?: "asc" | "desc" | undefined;
730
+ }>, z.ZodUndefined, z.ZodObject<{
655
731
  items: z.ZodArray<z.ZodObject<{
656
732
  articleId: z.ZodBranded<z.ZodNumber, "ArticleId">;
657
733
  author: z.ZodObject<{
@@ -1471,7 +1547,86 @@ declare const apiContract: {
1471
1547
  confidence: number;
1472
1548
  tsUtc?: string | undefined;
1473
1549
  } | undefined;
1474
- }>, z.ZodNull>;
1550
+ }>, z.ZodDiscriminatedUnion<"entity", [z.ZodObject<{
1551
+ entity: z.ZodLiteral<"article">;
1552
+ id: z.ZodBranded<z.ZodNumber, "ArticleId">;
1553
+ }, "strip", z.ZodTypeAny, {
1554
+ id: number & z.BRAND<"ArticleId">;
1555
+ entity: "article";
1556
+ }, {
1557
+ id: number;
1558
+ entity: "article";
1559
+ }>, z.ZodObject<{
1560
+ entity: z.ZodLiteral<"comment">;
1561
+ id: z.ZodBranded<z.ZodNumber, "CommentId">;
1562
+ }, "strip", z.ZodTypeAny, {
1563
+ id: number & z.BRAND<"CommentId">;
1564
+ entity: "comment";
1565
+ }, {
1566
+ id: number;
1567
+ entity: "comment";
1568
+ }>, z.ZodObject<{
1569
+ entity: z.ZodLiteral<"recruit">;
1570
+ id: z.ZodBranded<z.ZodNumber, "RecruitId">;
1571
+ }, "strip", z.ZodTypeAny, {
1572
+ id: number & z.BRAND<"RecruitId">;
1573
+ entity: "recruit";
1574
+ }, {
1575
+ id: number;
1576
+ entity: "recruit";
1577
+ }>, z.ZodObject<{
1578
+ entity: z.ZodLiteral<"invitation">;
1579
+ id: z.ZodBranded<z.ZodNumber, "InvitationId">;
1580
+ }, "strip", z.ZodTypeAny, {
1581
+ id: number & z.BRAND<"InvitationId">;
1582
+ entity: "invitation";
1583
+ }, {
1584
+ id: number;
1585
+ entity: "invitation";
1586
+ }>, z.ZodObject<{
1587
+ entity: z.ZodLiteral<"subscription">;
1588
+ id: z.ZodBranded<z.ZodNumber, "SubscriptionId">;
1589
+ }, "strip", z.ZodTypeAny, {
1590
+ id: number & z.BRAND<"SubscriptionId">;
1591
+ entity: "subscription";
1592
+ }, {
1593
+ id: number;
1594
+ entity: "subscription";
1595
+ }>, z.ZodObject<{
1596
+ entity: z.ZodLiteral<"coupon">;
1597
+ id: z.ZodBranded<z.ZodNumber, "CouponId">;
1598
+ }, "strip", z.ZodTypeAny, {
1599
+ id: number & z.BRAND<"CouponId">;
1600
+ entity: "coupon";
1601
+ }, {
1602
+ id: number;
1603
+ entity: "coupon";
1604
+ }>, z.ZodObject<{
1605
+ entity: z.ZodLiteral<"plan">;
1606
+ id: z.ZodBranded<z.ZodNumber, "PlanId">;
1607
+ }, "strip", z.ZodTypeAny, {
1608
+ id: number & z.BRAND<"PlanId">;
1609
+ entity: "plan";
1610
+ }, {
1611
+ id: number;
1612
+ entity: "plan";
1613
+ }>]>>;
1614
+ readonly like: EndpointContract<"POST", "/articles/:articleId/like", z.ZodObject<{
1615
+ articleId: z.ZodBranded<z.ZodNumber, "ArticleId">;
1616
+ }, "strip", z.ZodTypeAny, {
1617
+ articleId: number & z.BRAND<"ArticleId">;
1618
+ }, {
1619
+ articleId: number;
1620
+ }>, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
1621
+ liked: z.ZodBoolean;
1622
+ likeCount: z.ZodNumber;
1623
+ }, "strip", z.ZodTypeAny, {
1624
+ liked: boolean;
1625
+ likeCount: number;
1626
+ }, {
1627
+ liked: boolean;
1628
+ likeCount: number;
1629
+ }>>;
1475
1630
  readonly createComment: EndpointContract<"POST", "/articles/:articleId/comments", z.ZodObject<{
1476
1631
  articleId: z.ZodBranded<z.ZodNumber, "ArticleId">;
1477
1632
  }, "strip", z.ZodTypeAny, {
@@ -1487,7 +1642,70 @@ declare const apiContract: {
1487
1642
  }, {
1488
1643
  content: string;
1489
1644
  parentCommentId?: number | null | undefined;
1490
- }>, z.ZodNull>;
1645
+ }>, z.ZodDiscriminatedUnion<"entity", [z.ZodObject<{
1646
+ entity: z.ZodLiteral<"article">;
1647
+ id: z.ZodBranded<z.ZodNumber, "ArticleId">;
1648
+ }, "strip", z.ZodTypeAny, {
1649
+ id: number & z.BRAND<"ArticleId">;
1650
+ entity: "article";
1651
+ }, {
1652
+ id: number;
1653
+ entity: "article";
1654
+ }>, z.ZodObject<{
1655
+ entity: z.ZodLiteral<"comment">;
1656
+ id: z.ZodBranded<z.ZodNumber, "CommentId">;
1657
+ }, "strip", z.ZodTypeAny, {
1658
+ id: number & z.BRAND<"CommentId">;
1659
+ entity: "comment";
1660
+ }, {
1661
+ id: number;
1662
+ entity: "comment";
1663
+ }>, z.ZodObject<{
1664
+ entity: z.ZodLiteral<"recruit">;
1665
+ id: z.ZodBranded<z.ZodNumber, "RecruitId">;
1666
+ }, "strip", z.ZodTypeAny, {
1667
+ id: number & z.BRAND<"RecruitId">;
1668
+ entity: "recruit";
1669
+ }, {
1670
+ id: number;
1671
+ entity: "recruit";
1672
+ }>, z.ZodObject<{
1673
+ entity: z.ZodLiteral<"invitation">;
1674
+ id: z.ZodBranded<z.ZodNumber, "InvitationId">;
1675
+ }, "strip", z.ZodTypeAny, {
1676
+ id: number & z.BRAND<"InvitationId">;
1677
+ entity: "invitation";
1678
+ }, {
1679
+ id: number;
1680
+ entity: "invitation";
1681
+ }>, z.ZodObject<{
1682
+ entity: z.ZodLiteral<"subscription">;
1683
+ id: z.ZodBranded<z.ZodNumber, "SubscriptionId">;
1684
+ }, "strip", z.ZodTypeAny, {
1685
+ id: number & z.BRAND<"SubscriptionId">;
1686
+ entity: "subscription";
1687
+ }, {
1688
+ id: number;
1689
+ entity: "subscription";
1690
+ }>, z.ZodObject<{
1691
+ entity: z.ZodLiteral<"coupon">;
1692
+ id: z.ZodBranded<z.ZodNumber, "CouponId">;
1693
+ }, "strip", z.ZodTypeAny, {
1694
+ id: number & z.BRAND<"CouponId">;
1695
+ entity: "coupon";
1696
+ }, {
1697
+ id: number;
1698
+ entity: "coupon";
1699
+ }>, z.ZodObject<{
1700
+ entity: z.ZodLiteral<"plan">;
1701
+ id: z.ZodBranded<z.ZodNumber, "PlanId">;
1702
+ }, "strip", z.ZodTypeAny, {
1703
+ id: number & z.BRAND<"PlanId">;
1704
+ entity: "plan";
1705
+ }, {
1706
+ id: number;
1707
+ entity: "plan";
1708
+ }>]>>;
1491
1709
  readonly presignArticleImage: EndpointContract<"POST", "/uploads/presign-article", z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodObject<{
1492
1710
  key: z.ZodString;
1493
1711
  putUrl: z.ZodString;
@@ -1508,16 +1726,12 @@ declare const apiContract: {
1508
1726
  }, {
1509
1727
  articleId: number;
1510
1728
  }>, z.ZodUndefined, z.ZodUndefined, z.ZodNull>;
1511
- readonly deleteComment: EndpointContract<"DELETE", "/articles/:articleId/comments/:commentId", z.ZodObject<{
1512
- articleId: z.ZodBranded<z.ZodNumber, "ArticleId">;
1513
- } & {
1729
+ readonly deleteComment: EndpointContract<"DELETE", "/articles/comments/:commentId", z.ZodObject<{
1514
1730
  commentId: z.ZodBranded<z.ZodNumber, "CommentId">;
1515
1731
  }, "strip", z.ZodTypeAny, {
1516
1732
  commentId: number & z.BRAND<"CommentId">;
1517
- articleId: number & z.BRAND<"ArticleId">;
1518
1733
  }, {
1519
1734
  commentId: number;
1520
- articleId: number;
1521
1735
  }>, z.ZodUndefined, z.ZodUndefined, z.ZodNull>;
1522
1736
  };
1523
1737
  readonly recruits: {
@@ -2157,7 +2371,7 @@ declare const apiContract: {
2157
2371
  };
2158
2372
  requestedAt: string;
2159
2373
  }>, "many">>;
2160
- readonly outgoingRequest: EndpointContract<"GET", "/friends/requests/outgoint", z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodArray<z.ZodObject<{
2374
+ readonly outgoingRequest: EndpointContract<"GET", "/friends/requests/outgoing", z.ZodUndefined, z.ZodUndefined, z.ZodUndefined, z.ZodArray<z.ZodObject<{
2161
2375
  requestId: z.ZodBranded<z.ZodNumber, "FriendRequestId">;
2162
2376
  requester: z.ZodObject<{
2163
2377
  memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
@@ -2217,11 +2431,11 @@ declare const apiContract: {
2217
2431
  requestedAt: string;
2218
2432
  }>, "many">>;
2219
2433
  readonly sendRequest: EndpointContract<"POST", "/friends/requests/:memberId", z.ZodObject<{
2220
- requestId: z.ZodBranded<z.ZodNumber, "FriendRequestId">;
2434
+ memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
2221
2435
  }, "strip", z.ZodTypeAny, {
2222
- requestId: number & z.BRAND<"FriendRequestId">;
2436
+ memberId: number & z.BRAND<"MemberId">;
2223
2437
  }, {
2224
- requestId: number;
2438
+ memberId: number;
2225
2439
  }>, z.ZodUndefined, z.ZodUndefined, z.ZodNull>;
2226
2440
  readonly acceptRequest: EndpointContract<"POST", "/friends/requests/:requestId/accept", z.ZodObject<{
2227
2441
  requestId: z.ZodBranded<z.ZodNumber, "FriendRequestId">;
@@ -23,27 +23,27 @@ import {
23
23
  toRestaurantId,
24
24
  toRoomId,
25
25
  toSubscriptionId
26
- } from "../../chunk-JEUH3JDZ.js";
27
- import "../../chunk-UJJMW7II.js";
28
- import "../../chunk-W3YQYI4R.js";
26
+ } from "../../chunk-SOHYA6XL.js";
29
27
  import "../../chunk-VAWYU5JG.js";
28
+ import "../../chunk-W3YQYI4R.js";
30
29
  import "../../chunk-M5OSCHMV.js";
31
30
  import {
32
31
  PageMetaSchema,
33
32
  PageQuerySchema,
34
33
  PageResponseSchema,
35
34
  SortDirectionSchema
36
- } from "../../chunk-TY4WZEIZ.js";
35
+ } from "../../chunk-RLVHDFEV.js";
37
36
  import "../../chunk-GTVEQYJW.js";
38
37
  import "../../chunk-J76VB5SE.js";
39
38
  import "../../chunk-U6OQQOPN.js";
39
+ import "../../chunk-YGFAVC5N.js";
40
+ import "../../chunk-UJJMW7II.js";
41
+ import "../../chunk-NJTV6DRT.js";
40
42
  import {
41
43
  ISODateStringSchema,
42
44
  ISODateTimeStringSchema,
43
45
  TimeHHmmStringSchema
44
46
  } from "../../chunk-HRM3FQPL.js";
45
- import "../../chunk-YGFAVC5N.js";
46
- import "../../chunk-NJTV6DRT.js";
47
47
  import "../../chunk-KRVEQVRC.js";
48
48
  import {
49
49
  ArticleIdSchema,