@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.mjs CHANGED
@@ -882,7 +882,7 @@ var channelContract = initContract6().router(
882
882
  },
883
883
  delete: {
884
884
  method: "DELETE",
885
- path: ":channelId",
885
+ path: "/delete/:channelId",
886
886
  pathParams: z20.object({
887
887
  channelId: z20.string().uuid()
888
888
  }),
@@ -897,7 +897,7 @@ var channelContract = initContract6().router(
897
897
  },
898
898
  rename: {
899
899
  method: "POST",
900
- path: ":channelId",
900
+ path: "/rename/:channelId",
901
901
  pathParams: z20.object({
902
902
  channelId: z20.string().uuid()
903
903
  }),
@@ -1506,7 +1506,7 @@ var UpdateAssigneeSchema = z32.object({
1506
1506
  });
1507
1507
  var SearchRoomsSchema = DefaultQueryParamsSchema.extend({
1508
1508
  query: z32.string(),
1509
- type: z32.string().default("contact")
1509
+ type: z32.enum(["contact", "message"]).default("contact")
1510
1510
  });
1511
1511
  var ChannelSchema2 = z32.object({
1512
1512
  name: z32.string(),
@@ -1525,6 +1525,10 @@ var ChannelSchema2 = z32.object({
1525
1525
  phone: z32.string().nullable()
1526
1526
  }).optional()
1527
1527
  });
1528
+ var ReloginChanelSchema = ChannelSchema2.extend({
1529
+ id: z32.string().uuid(),
1530
+ isReloginRequired: z32.boolean()
1531
+ });
1528
1532
  var SendMessageToPlatformSchema = z32.object({
1529
1533
  room: z32.object({
1530
1534
  id: z32.string().uuid(),
@@ -4345,7 +4349,7 @@ var messengerContract = initContract23().router({
4345
4349
  relogin: {
4346
4350
  method: "POST",
4347
4351
  path: "/relogin",
4348
- body: ChannelSchema2.partial(),
4352
+ body: ReloginChanelSchema.partial(),
4349
4353
  responses: {
4350
4354
  200: ChannelServiceResponseSchema,
4351
4355
  500: DefaultErrorResponseSchema,