@zyacreatives/shared 2.5.60 → 2.5.64

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.
@@ -197,6 +197,7 @@ export declare const CreateMessageInputSchema: z.ZodObject<{
197
197
  description: z.ZodOptional<z.ZodString>;
198
198
  image: z.ZodOptional<z.ZodURL>;
199
199
  }, z.core.$strip>>;
200
+ receiverId: z.ZodCUID2;
200
201
  files: z.ZodOptional<z.ZodArray<z.ZodObject<{
201
202
  key: z.ZodString;
202
203
  mimeType: z.ZodString;
@@ -62,6 +62,7 @@ exports.MessageWithFilesEntitySchema = exports.MessageEntitySchema.extend({
62
62
  * --------------------------------
63
63
  */
64
64
  exports.CreateMessageInputSchema = MessageShape.extend({
65
+ receiverId: zod_openapi_1.z.cuid2(),
65
66
  files: zod_openapi_1.z
66
67
  .array(zod_openapi_1.z.object({
67
68
  key: zod_openapi_1.z.string(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "2.5.60",
3
+ "version": "2.5.64",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -47,7 +47,7 @@ export const MessageEntitySchema = z
47
47
  replyToContent: z.string().optional(),
48
48
  replyToImages: z.array(z.url()).optional(),
49
49
  replyToLinkMeta: MessageShape.shape.linkMeta,
50
-
50
+
51
51
  deletedBySender: z.boolean().default(false),
52
52
  deletedByReceiver: z.boolean().default(false),
53
53
  isEdited: z.boolean().default(false),
@@ -85,6 +85,7 @@ export type MessageWithFilesEntity = z.infer<
85
85
  */
86
86
 
87
87
  export const CreateMessageInputSchema = MessageShape.extend({
88
+ receiverId: z.cuid2(),
88
89
  files: z
89
90
  .array(
90
91
  z.object({