add editInteraction data to dev data schema

This commit is contained in:
Nate 2025-05-13 21:34:25 -07:00
parent 59d79f5a06
commit 0ddae67660
2 changed files with 11 additions and 3 deletions

View file

@ -1,6 +1,9 @@
import { z } from "zod";
import { baseDevDataAllSchema } from "../base.js";
/**
* The "editInteraction" event is sent whenever the user submits an input in edit mode and the model's response is completed
*/
export const editInteractionEventAllSchema = baseDevDataAllSchema.extend({
modelProvider: z.string(),
modelTitle: z.string(),

View file

@ -23,6 +23,11 @@ import {
chatInteractionEventSchema_0_2_0,
chatInteractionEventSchema_0_2_0_noCode,
} from "./chatInteraction/v0.2.0.js";
import { editInteractionEventAllSchema } from "./editInteraction/index.js";
import {
editInteractionEventSchema_0_2_0,
editInteractionEventSchema_0_2_0_noCode,
} from "./editInteraction/v0.2.0.js";
import { quickEditEventAllSchema } from "./quickEdit/index.js";
import {
quickEditEventSchema_0_1_0,
@ -66,7 +71,7 @@ const devEventAllVersionDataSchemas = z.object({
chatFeedback: chatFeedbackEventAllSchema,
tokensGenerated: tokensGeneratedEventAllSchema,
chatInteraction: chatInteractionEventAllSchema,
// editInteraction: editInteractionEventAllSchema,
editInteraction: editInteractionEventAllSchema,
});
// Version and level specific schemas are organized here
@ -91,14 +96,14 @@ export const devDataVersionedSchemas = {
chatFeedback: chatFeedbackEventSchema_0_2_0,
tokensGenerated: tokensGeneratedEventSchema_0_2_0,
chatInteraction: chatInteractionEventSchema_0_2_0,
// editInteraction: editInteractionEventSchema_0_2_0,
editInteraction: editInteractionEventSchema_0_2_0,
},
noCode: {
autocomplete: autocompleteEventSchema_0_2_0_noCode,
chatFeedback: chatFeedbackEventSchema_0_2_0_noCode,
tokensGenerated: tokensGeneratedEventSchema_0_2_0_noCode,
chatInteraction: chatInteractionEventSchema_0_2_0_noCode,
// editInteraction: editInteractionEventSchema_0_2_0_noCode,
editInteraction: editInteractionEventSchema_0_2_0_noCode,
},
},
};