@kl1/contracts 1.0.74 → 1.0.75

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.
package/dist/index.mjs CHANGED
@@ -738,7 +738,7 @@ var ChannelSchema = z17.object({
738
738
  telephonySignature: z17.string().nullable()
739
739
  })
740
740
  })
741
- }).partial().optional();
741
+ });
742
742
 
743
743
  // src/chat/validation.ts
744
744
  import z29 from "zod";
@@ -1580,18 +1580,6 @@ var messenger = initContract6().router(
1580
1580
  },
1581
1581
  body: ConnectChannelSchema,
1582
1582
  summary: "Connect message channel"
1583
- },
1584
- relogin: {
1585
- method: "POST",
1586
- path: "/relogin",
1587
- responses: {
1588
- 200: DefaultSuccessResponseSchema.extend({
1589
- channel: ChannelSchema
1590
- }),
1591
- 408: DefaultErrorResponseSchema
1592
- },
1593
- body: ConnectChannelSchema,
1594
- summary: "Relogin message channel"
1595
1583
  }
1596
1584
  },
1597
1585
  {
@@ -1726,6 +1714,33 @@ var channelContract = initContract6().router(
1726
1714
  }),
1727
1715
  summary: "Rename message channel"
1728
1716
  },
1717
+ reconnect: {
1718
+ method: "POST",
1719
+ path: "/rename/:channelId",
1720
+ pathParams: z31.object({
1721
+ channelId: z31.string().uuid()
1722
+ }),
1723
+ responses: {
1724
+ 200: DefaultSuccessResponseSchema.extend({
1725
+ channel: ChannelSchema
1726
+ }),
1727
+ 408: DefaultErrorResponseSchema
1728
+ },
1729
+ body: null,
1730
+ summary: "Reconnect message channel"
1731
+ },
1732
+ relogin: {
1733
+ method: "POST",
1734
+ path: "/relogin",
1735
+ responses: {
1736
+ 200: DefaultSuccessResponseSchema.extend({
1737
+ channel: ChannelSchema
1738
+ }),
1739
+ 408: DefaultErrorResponseSchema
1740
+ },
1741
+ body: ConnectChannelSchema,
1742
+ summary: "Relogin message channel"
1743
+ },
1729
1744
  messenger,
1730
1745
  line,
1731
1746
  instagram,