@kl1/contracts 1.0.41 → 1.0.42

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
@@ -3801,8 +3802,9 @@ var userContract = initContract24().router(
3801
3802
  path: "",
3802
3803
  headers: DefaultHeaderSchema,
3803
3804
  query: z64.object({
3804
- page: z64.coerce.number().default(1),
3805
- pageSize: z64.coerce.number().default(10),
3805
+ page: z64.coerce.number().optional(),
3806
+ pageSize: z64.coerce.number().optional(),
3807
+ // Don't add default 10. In some places, we need to fetch all users.
3806
3808
  keyword: z64.string().optional()
3807
3809
  }).optional(),
3808
3810
  responses: {