@zyacreatives/shared 2.5.69 → 2.5.71

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.
@@ -199,4 +199,15 @@ export declare const GetMessageRequestsForUserOutputSchema: z.ZodObject<{
199
199
  nextCursor: z.ZodNullable<z.ZodString>;
200
200
  }, z.core.$strip>;
201
201
  export type GetMessageRequestsForUserOutput = z.infer<typeof GetMessageRequestsForUserOutputSchema>;
202
+ export declare const ReportChatInputSchema: z.ZodObject<{
203
+ complaint: z.ZodString;
204
+ messageId: z.ZodOptional<z.ZodCUID2>;
205
+ }, z.core.$strip>;
206
+ export type ReportChatInput = z.infer<typeof ReportChatInputSchema>;
207
+ export declare const ReportChatOutputSchema: z.ZodObject<{
208
+ reported: z.ZodBoolean;
209
+ chatId: z.ZodString;
210
+ messageId: z.ZodNullable<z.ZodString>;
211
+ }, z.core.$strip>;
212
+ export type ReportChatOutput = z.infer<typeof ReportChatOutputSchema>;
202
213
  export {};
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetMessageRequestsForUserOutputSchema = exports.GetChatsForUserOutputSchema = exports.GetChatsOutputSchema = exports.CreateChatOutputSchema = exports.DeclineMessageRequestInputSchema = exports.AcceptMessageRequestInputSchema = exports.ChatIdInputSchema = exports.CreateChatInputSchema = exports.ChatEntitySchema = exports.BaseChatEntitySchema = void 0;
3
+ exports.ReportChatOutputSchema = exports.ReportChatInputSchema = exports.GetMessageRequestsForUserOutputSchema = exports.GetChatsForUserOutputSchema = exports.GetChatsOutputSchema = exports.CreateChatOutputSchema = exports.DeclineMessageRequestInputSchema = exports.AcceptMessageRequestInputSchema = exports.ChatIdInputSchema = exports.CreateChatInputSchema = exports.ChatEntitySchema = exports.BaseChatEntitySchema = void 0;
4
4
  const zod_openapi_1 = require("@hono/zod-openapi");
5
5
  const constants_1 = require("../constants");
6
6
  /**
@@ -72,3 +72,12 @@ exports.GetChatsForUserOutputSchema = zod_openapi_1.z.object({
72
72
  nextCursor: zod_openapi_1.z.string().nullable(),
73
73
  });
74
74
  exports.GetMessageRequestsForUserOutputSchema = exports.GetChatsForUserOutputSchema;
75
+ exports.ReportChatInputSchema = zod_openapi_1.z.object({
76
+ complaint: zod_openapi_1.z.string().trim().min(10).max(1000),
77
+ messageId: zod_openapi_1.z.cuid2().optional(),
78
+ });
79
+ exports.ReportChatOutputSchema = zod_openapi_1.z.object({
80
+ reported: zod_openapi_1.z.boolean(),
81
+ chatId: zod_openapi_1.z.string(),
82
+ messageId: zod_openapi_1.z.string().nullable(),
83
+ });