@kl1/contracts 1.0.65 → 1.0.66

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.js CHANGED
@@ -943,7 +943,7 @@ var channelContract = (0, import_core6.initContract)().router(
943
943
  },
944
944
  delete: {
945
945
  method: "DELETE",
946
- path: ":channelId",
946
+ path: "/delete/:channelId",
947
947
  pathParams: import_zod20.default.object({
948
948
  channelId: import_zod20.default.string().uuid()
949
949
  }),
@@ -958,7 +958,7 @@ var channelContract = (0, import_core6.initContract)().router(
958
958
  },
959
959
  rename: {
960
960
  method: "POST",
961
- path: ":channelId",
961
+ path: "/rename/:channelId",
962
962
  pathParams: import_zod20.default.object({
963
963
  channelId: import_zod20.default.string().uuid()
964
964
  }),
@@ -1567,7 +1567,7 @@ var UpdateAssigneeSchema = import_zod32.default.object({
1567
1567
  });
1568
1568
  var SearchRoomsSchema = DefaultQueryParamsSchema.extend({
1569
1569
  query: import_zod32.default.string(),
1570
- type: import_zod32.default.string().default("contact")
1570
+ type: import_zod32.default.enum(["contact", "message"]).default("contact")
1571
1571
  });
1572
1572
  var ChannelSchema2 = import_zod32.default.object({
1573
1573
  name: import_zod32.default.string(),
@@ -1586,6 +1586,10 @@ var ChannelSchema2 = import_zod32.default.object({
1586
1586
  phone: import_zod32.default.string().nullable()
1587
1587
  }).optional()
1588
1588
  });
1589
+ var ReloginChanelSchema = ChannelSchema2.extend({
1590
+ id: import_zod32.default.string().uuid(),
1591
+ isReloginRequired: import_zod32.default.boolean()
1592
+ });
1589
1593
  var SendMessageToPlatformSchema = import_zod32.default.object({
1590
1594
  room: import_zod32.default.object({
1591
1595
  id: import_zod32.default.string().uuid(),
@@ -4406,7 +4410,7 @@ var messengerContract = (0, import_core23.initContract)().router({
4406
4410
  relogin: {
4407
4411
  method: "POST",
4408
4412
  path: "/relogin",
4409
- body: ChannelSchema2.partial(),
4413
+ body: ReloginChanelSchema.partial(),
4410
4414
  responses: {
4411
4415
  200: ChannelServiceResponseSchema,
4412
4416
  500: DefaultErrorResponseSchema,