"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.GetCareflowCommentsResponseSchema = exports.GetCareflowCommentsInputSchema = void 0;
const zod_1 = require("zod");
const User_schema_1 = require("./User.schema");
const Pagination_schema_1 = require("./Pagination.schema");
/**
 * Input schema
 */
exports.GetCareflowCommentsInputSchema = zod_1.z.object({
    careflowId: zod_1.z.string().min(1),
    limit: zod_1.z.number().optional(),
    offset: zod_1.z.number().optional(),
});
/**
 * Output schema
 */
const CommentSchema = zod_1.z.object({
    comment_id: zod_1.z.string(),
    comment: zod_1.z.object({
        id: zod_1.z.string(),
        text: zod_1.z.string(),
        created_at: zod_1.z.string().datetime(),
        updated_at: zod_1.z.string().datetime(),
        task_id: zod_1.z.string(),
        created_by: User_schema_1.UserSchema,
        updated_by: User_schema_1.UserSchema,
        status: zod_1.z.string(),
    }),
    parent_id: zod_1.z.string().nullable(),
});
exports.GetCareflowCommentsResponseSchema = zod_1.z.object({
    comments: zod_1.z.array(CommentSchema),
    pagination: Pagination_schema_1.PaginationSchema,
});
//# sourceMappingURL=GetCareflowComments.schema.js.map