@kl1/contracts 1.0.64 → 1.0.65

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: ":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: ":channelId",
898
901
  pathParams: z20.object({
899
902
  channelId: z20.string().uuid()
900
903
  }),
@@ -2811,6 +2814,7 @@ var GetAllCxLogQueryParamsSchema = DefaultQueryParamsSchema.extend({
2811
2814
  contactId: z42.string().uuid(),
2812
2815
  caseId: z42.string(),
2813
2816
  channelIds: z42.array(z42.string().uuid()),
2817
+ trunks: z42.array(z42.string()),
2814
2818
  queueId: z42.array(z42.string()),
2815
2819
  agentIds: z42.array(z42.string()),
2816
2820
  direction: z42.array(z42.union([z42.literal("inbound"), z42.literal("outbound")])),
@@ -3648,6 +3652,15 @@ var lineContract = initContract16().router({
3648
3652
  },
3649
3653
  body: ConnectLineSchema,
3650
3654
  summary: "Connect to LINE channel"
3655
+ },
3656
+ sendMessage: {
3657
+ method: "POST",
3658
+ path: "/message",
3659
+ body: SendMessageToPlatformSchema,
3660
+ responses: {
3661
+ 200: SendMessageResponseSchema,
3662
+ 500: DefaultErrorResponseSchema
3663
+ }
3651
3664
  }
3652
3665
  });
3653
3666