@kl1/contracts 1.0.41 → 1.0.43

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
@@ -717,7 +717,7 @@ var channelContract = initContract5().router(
717
717
  path: "/",
718
718
  responses: {
719
719
  200: DefaultSuccessResponseSchema.extend({
720
- channels: ChannelSchema.array()
720
+ data: ChannelSchema.array()
721
721
  })
722
722
  },
723
723
  summary: "Get Channels"
@@ -974,7 +974,8 @@ var CxLogSchemaWithRelations = DefaultEntitySchema.extend({
974
974
  queueName: z26.string().nullable().optional()
975
975
  }).nullable(),
976
976
  contact: ContactSchema.nullable(),
977
- agent: UserSchema.nullable()
977
+ agent: UserSchema.nullable(),
978
+ contactLabel: z26.array(z26.string())
978
979
  });
979
980
 
980
981
  // src/chat/schema.ts
@@ -1107,7 +1108,7 @@ var MessageAttachmentSchema = z29.object({
1107
1108
  fileKey: z29.string(),
1108
1109
  fileName: z29.string(),
1109
1110
  fileSize: z29.number(),
1110
- url: z29.string(),
1111
+ url: z29.string().nullable(),
1111
1112
  fileType: z29.string(),
1112
1113
  thumbnailUrl: z29.string().optional()
1113
1114
  });
@@ -1121,7 +1122,7 @@ var SendMessageSchema = z29.object({
1121
1122
  message: z29.string().optional(),
1122
1123
  messageAttachments: MessageAttachmentSchema.optional(),
1123
1124
  user: UserSchema.optional(),
1124
- sticker: StickerSchema
1125
+ sticker: StickerSchema.optional()
1125
1126
  });
1126
1127
  var SolveRoomSchema = z29.object({
1127
1128
  roomId: z29.string(),
@@ -1194,7 +1195,12 @@ var SendMessageToPlatformSchema = z29.object({
1194
1195
  url: z29.string().optional(),
1195
1196
  previewUrl: z29.string().optional(),
1196
1197
  imageSetId: z29.string().optional(),
1197
- upload: UploadSchema.optional(),
1198
+ upload: z29.object({
1199
+ bucketName: z29.string(),
1200
+ fileName: z29.string(),
1201
+ fileSize: z29.number(),
1202
+ fileKey: z29.string()
1203
+ }).optional(),
1198
1204
  sender: z29.object({
1199
1205
  name: z29.string(),
1200
1206
  email: z29.string().email(),
@@ -3801,8 +3807,9 @@ var userContract = initContract24().router(
3801
3807
  path: "",
3802
3808
  headers: DefaultHeaderSchema,
3803
3809
  query: z64.object({
3804
- page: z64.coerce.number().default(1),
3805
- pageSize: z64.coerce.number().default(10),
3810
+ page: z64.coerce.number().optional(),
3811
+ pageSize: z64.coerce.number().optional(),
3812
+ // Don't add default 10. In some places, we need to fetch all users.
3806
3813
  keyword: z64.string().optional()
3807
3814
  }).optional(),
3808
3815
  responses: {