archetecture security fix

This commit is contained in:
root
2026-06-11 03:22:12 -04:00
parent 6def9993da
commit 9483750161
3126 changed files with 177194 additions and 37211 deletions
@@ -0,0 +1,22 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.historyQuerySchema = exports.unreadQuerySchema = exports.idParamSchema = exports.preferencesSchema = exports.preferenceItemSchema = void 0;
const zod_1 = require("zod");
exports.preferenceItemSchema = zod_1.z.object({
notificationType: zod_1.z.string(),
channel: zod_1.z.string(),
enabled: zod_1.z.boolean(),
});
exports.preferencesSchema = zod_1.z.array(exports.preferenceItemSchema);
exports.idParamSchema = zod_1.z.object({
id: zod_1.z.string().min(1),
});
exports.unreadQuerySchema = zod_1.z.object({
unread: zod_1.z.string().optional(),
});
exports.historyQuerySchema = zod_1.z.object({
channel: zod_1.z.string().optional(),
status: zod_1.z.string().optional(),
limit: zod_1.z.coerce.number().int().min(1).max(500).optional(),
});
//# sourceMappingURL=notification.schemas.js.map