import { ZettelDocJsonSchema } from "@opral/zettel-ast";
export const LixConversationSchema = {
    "x-lix-key": "lix_conversation",
    "x-lix-version": "1.0",
    "x-lix-primary-key": ["/id"],
    "x-lix-override-lixcols": {
        lixcol_file_id: '"lix"',
        lixcol_plugin_key: '"lix_sdk"',
    },
    type: "object",
    properties: {
        id: {
            type: "string",
            "x-lix-default": "lix_uuid_v7()",
        },
    },
    required: ["id"],
    additionalProperties: false,
};
LixConversationSchema;
export const LixConversationMessageSchema = {
    "x-lix-key": "lix_conversation_message",
    "x-lix-version": "1.0",
    "x-lix-primary-key": ["/id"],
    "x-lix-override-lixcols": {
        lixcol_file_id: '"lix"',
        lixcol_plugin_key: '"lix_sdk"',
    },
    "x-lix-foreign-keys": [
        {
            properties: ["/conversation_id"],
            references: {
                schemaKey: "lix_conversation",
                properties: ["/id"],
            },
        },
        {
            properties: ["/parent_id"],
            references: {
                schemaKey: "lix_conversation_message",
                properties: ["/id"],
            },
        },
    ],
    type: "object",
    properties: {
        id: {
            type: "string",
            "x-lix-default": "lix_uuid_v7()",
        },
        conversation_id: { type: "string" },
        parent_id: { type: "string", nullable: true },
        body: ZettelDocJsonSchema,
    },
    required: ["id", "conversation_id", "body"],
    additionalProperties: false,
};
LixConversationMessageSchema;
//# sourceMappingURL=schema-definition.js.map