@kl1/contracts 1.0.64 → 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
@@ -673,6 +673,7 @@ var ChannelMetadataSchema = z17.object({
673
673
  id: z17.string(),
674
674
  name: z17.string(),
675
675
  accessToken: z17.string(),
676
+ channelSecret: z17.string().optional(),
676
677
  additionalCredentials: z17.any().optional()
677
678
  });
678
679
  var ChannelSchema = z17.object({
@@ -755,6 +756,8 @@ var ConnectLineSchema = z19.object({
755
756
  lineId: z19.string().optional(),
756
757
  accessToken: z19.string().optional(),
757
758
  lineSecret: z19.string().optional(),
759
+ brandName: z19.string().optional(),
760
+ name: z19.string().optional(),
758
761
  actor: UserSchema
759
762
  });
760
763
 
@@ -879,7 +882,7 @@ var channelContract = initContract6().router(
879
882
  },
880
883
  delete: {
881
884
  method: "DELETE",
882
- path: "/:channelId",
885
+ path: "/delete/:channelId",
883
886
  pathParams: z20.object({
884
887
  channelId: z20.string().uuid()
885
888
  }),
@@ -894,7 +897,7 @@ var channelContract = initContract6().router(
894
897
  },
895
898
  rename: {
896
899
  method: "POST",
897
- path: "/:channelId",
900
+ path: "/rename/:channelId",
898
901
  pathParams: z20.object({
899
902
  channelId: z20.string().uuid()
900
903
  }),
@@ -1503,7 +1506,7 @@ var UpdateAssigneeSchema = z32.object({
1503
1506
  });
1504
1507
  var SearchRoomsSchema = DefaultQueryParamsSchema.extend({
1505
1508
  query: z32.string(),
1506
- type: z32.string().default("contact")
1509
+ type: z32.enum(["contact", "message"]).default("contact")
1507
1510
  });
1508
1511
  var ChannelSchema2 = z32.object({
1509
1512
  name: z32.string(),
@@ -1522,6 +1525,10 @@ var ChannelSchema2 = z32.object({
1522
1525
  phone: z32.string().nullable()
1523
1526
  }).optional()
1524
1527
  });
1528
+ var ReloginChanelSchema = ChannelSchema2.extend({
1529
+ id: z32.string().uuid(),
1530
+ isReloginRequired: z32.boolean()
1531
+ });
1525
1532
  var SendMessageToPlatformSchema = z32.object({
1526
1533
  room: z32.object({
1527
1534
  id: z32.string().uuid(),
@@ -2811,6 +2818,7 @@ var GetAllCxLogQueryParamsSchema = DefaultQueryParamsSchema.extend({
2811
2818
  contactId: z42.string().uuid(),
2812
2819
  caseId: z42.string(),
2813
2820
  channelIds: z42.array(z42.string().uuid()),
2821
+ trunks: z42.array(z42.string()),
2814
2822
  queueId: z42.array(z42.string()),
2815
2823
  agentIds: z42.array(z42.string()),
2816
2824
  direction: z42.array(z42.union([z42.literal("inbound"), z42.literal("outbound")])),
@@ -3648,6 +3656,15 @@ var lineContract = initContract16().router({
3648
3656
  },
3649
3657
  body: ConnectLineSchema,
3650
3658
  summary: "Connect to LINE channel"
3659
+ },
3660
+ sendMessage: {
3661
+ method: "POST",
3662
+ path: "/message",
3663
+ body: SendMessageToPlatformSchema,
3664
+ responses: {
3665
+ 200: SendMessageResponseSchema,
3666
+ 500: DefaultErrorResponseSchema
3667
+ }
3651
3668
  }
3652
3669
  });
3653
3670
 
@@ -4332,7 +4349,7 @@ var messengerContract = initContract23().router({
4332
4349
  relogin: {
4333
4350
  method: "POST",
4334
4351
  path: "/relogin",
4335
- body: ChannelSchema2.partial(),
4352
+ body: ReloginChanelSchema.partial(),
4336
4353
  responses: {
4337
4354
  200: ChannelServiceResponseSchema,
4338
4355
  500: DefaultErrorResponseSchema,