refactor(data): replace schema classes with readonly models

This commit is contained in:
2026-07-17 13:21:40 +08:00
parent 3437312167
commit ae97366a4a
103 changed files with 1220 additions and 2117 deletions
@@ -1,7 +1,7 @@
import { describe, expect, it } from "vitest";
import { createActor, fromPromise, waitFor } from "xstate";
import { ChatSendResponse } from "@/data/schemas/chat";
import { ChatSendResponseSchema } from "@/data/schemas/chat";
import type {
UnlockMessageOutput,
UnlockMessageRequest,
@@ -666,7 +666,7 @@ describe("chat unlock flow", () => {
actor.send({
type: "ChatQueuedHttpDone",
output: {
response: ChatSendResponse.from({
response: ChatSendResponseSchema.parse({
reply: "",
audioUrl: "",
messageId: "",