@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.js CHANGED
@@ -772,7 +772,7 @@ var channelContract = (0, import_core5.initContract)().router(
772
772
  path: "/",
773
773
  responses: {
774
774
  200: DefaultSuccessResponseSchema.extend({
775
- channels: ChannelSchema.array()
775
+ data: ChannelSchema.array()
776
776
  })
777
777
  },
778
778
  summary: "Get Channels"
@@ -1029,7 +1029,8 @@ var CxLogSchemaWithRelations = DefaultEntitySchema.extend({
1029
1029
  queueName: import_zod26.default.string().nullable().optional()
1030
1030
  }).nullable(),
1031
1031
  contact: ContactSchema.nullable(),
1032
- agent: UserSchema.nullable()
1032
+ agent: UserSchema.nullable(),
1033
+ contactLabel: import_zod26.default.array(import_zod26.default.string())
1033
1034
  });
1034
1035
 
1035
1036
  // src/chat/schema.ts
@@ -3856,8 +3857,9 @@ var userContract = (0, import_core24.initContract)().router(
3856
3857
  path: "",
3857
3858
  headers: DefaultHeaderSchema,
3858
3859
  query: import_zod64.default.object({
3859
- page: import_zod64.default.coerce.number().default(1),
3860
- pageSize: import_zod64.default.coerce.number().default(10),
3860
+ page: import_zod64.default.coerce.number().optional(),
3861
+ pageSize: import_zod64.default.coerce.number().optional(),
3862
+ // Don't add default 10. In some places, we need to fetch all users.
3861
3863
  keyword: import_zod64.default.string().optional()
3862
3864
  }).optional(),
3863
3865
  responses: {