[Refactor] Extract nodeDefSchema from apiSchema (#2756)

This commit is contained in:
Chenlei Hu
2025-02-27 13:39:23 -05:00
committed by GitHub
parent e380d792c7
commit 1d95d639e9
27 changed files with 226 additions and 217 deletions

View File

@@ -1,7 +1,6 @@
import axios from 'axios'
import type {
ComfyNodeDef,
EmbeddingsResponse,
ExecutedWsMessage,
ExecutingWsMessage,
@@ -25,8 +24,11 @@ import type {
User,
UserDataFullInfo
} from '@/schemas/apiSchema'
import { validateComfyNodeDef } from '@/schemas/apiSchema'
import type { ComfyWorkflowJSON, NodeId } from '@/schemas/comfyWorkflowSchema'
import {
type ComfyNodeDef,
validateComfyNodeDef
} from '@/schemas/nodeDefSchema'
interface QueuePromptRequestBody {
client_id: string