@@ -8,7 +8,7 @@ import { NodeBadgeMode } from '@/types/nodeSource'
88import { LinkReleaseTriggerAction } from '@/types/searchBoxTypes'
99
1010const zNodeType = z . string ( )
11- export const zPromptId = z . string ( )
11+ const zPromptId = z . string ( )
1212export type PromptId = z . infer < typeof zPromptId >
1313export const resultItemType = z . enum ( [ 'input' , 'output' , 'temp' ] )
1414export type ResultItemType = z . infer < typeof resultItemType >
@@ -151,57 +151,7 @@ export type FeatureFlagsWsMessage = z.infer<typeof zFeatureFlagsWsMessage>
151151
152152export type NotificationWsMessage = z . infer < typeof zNotificationWsMessage >
153153
154- const zExecutionStartMessage = z . tuple ( [
155- z . literal ( 'execution_start' ) ,
156- zExecutionStartWsMessage
157- ] )
158-
159- const zExecutionSuccessMessage = z . tuple ( [
160- z . literal ( 'execution_success' ) ,
161- zExecutionSuccessWsMessage
162- ] )
163-
164- const zExecutionCachedMessage = z . tuple ( [
165- z . literal ( 'execution_cached' ) ,
166- zExecutionCachedWsMessage
167- ] )
168-
169- const zExecutionInterruptedMessage = z . tuple ( [
170- z . literal ( 'execution_interrupted' ) ,
171- zExecutionInterruptedWsMessage
172- ] )
173-
174- const zExecutionErrorMessage = z . tuple ( [
175- z . literal ( 'execution_error' ) ,
176- zExecutionErrorWsMessage
177- ] )
178-
179- const zStatusMessage = z . union ( [
180- zExecutionStartMessage ,
181- zExecutionSuccessMessage ,
182- zExecutionCachedMessage ,
183- zExecutionInterruptedMessage ,
184- zExecutionErrorMessage
185- ] )
186-
187- export const zStatus = z . object ( {
188- status_str : z . enum ( [ 'success' , 'error' ] ) ,
189- completed : z . boolean ( ) ,
190- messages : z . array ( zStatusMessage )
191- } )
192-
193154export const zTaskOutput = z . record ( zNodeId , zOutputs )
194-
195- const zNodeOutputsMeta = z . object ( {
196- node_id : zNodeId ,
197- display_node : zNodeId ,
198- prompt_id : zPromptId . optional ( ) ,
199- read_node_id : zNodeId . optional ( )
200- } )
201-
202- export const zTaskMeta = z . record ( zNodeId , zNodeOutputsMeta )
203-
204- export type TaskStatus = z . infer < typeof zStatus >
205155export type TaskOutput = z . infer < typeof zTaskOutput >
206156
207157const zEmbeddingsResponse = z . array ( z . string ( ) )
0 commit comments