@genfeedai/types 0.1.1 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- import { Node, Edge } from '@xyflow/react';
1
+ import { Edge, Node } from '@xyflow/react';
2
2
 
3
- declare enum TemplateCategory {
3
+ declare enum WorkflowTemplateCategory {
4
4
  IMAGE = "image",
5
5
  VIDEO = "video",
6
6
  AUDIO = "audio",
@@ -40,6 +40,7 @@ declare enum ProcessingNodeType {
40
40
  LIP_SYNC = "lipSync",
41
41
  TEXT_TO_SPEECH = "textToSpeech",
42
42
  VOICE_CHANGE = "voiceChange",
43
+ TRANSCRIBE = "transcribe",
43
44
  SUBTITLE = "subtitle",
44
45
  VIDEO_STITCH = "videoStitch",
45
46
  WORKFLOW_REF = "workflowRef"
@@ -538,4 +539,4 @@ interface WorkflowEdgeData {
538
539
  }
539
540
  type WorkflowEdge = Edge<WorkflowEdgeData>;
540
541
 
541
- export { type TTSVoice as $, type AudioInputNodeData as A, type BaseNodeData as B, CONNECTION_RULES as C, type TopazVideoFPS as D, type ImageGenNodeData as E, type VideoGenNodeData as F, type GridPosition as G, HandleTypeEnum as H, type ImageInputNodeData as I, type TextModel as J, KlingQuality as K, type LumaAspectRatio as L, ModelCapabilityEnum as M, NodeTypeEnum as N, type OutputFormat as O, ProcessingNodeType as P, type LLMNodeData as Q, ReframeNodeType as R, type SelectedModel as S, TemplateCategory as T, UpscaleNodeType as U, type VideoInputNodeData as V, type LipSyncModel as W, type LipSyncMode as X, type LipSyncNodeData as Y, type VoiceChangeNodeData as Z, type TTSProvider as _, type HandleType as a, type TextToSpeechNodeData as a0, type TranscribeLanguage as a1, type TranscribeNodeData as a2, type MotionControlMode as a3, type CameraMovement as a4, type KlingQualityMode as a5, type CharacterOrientation as a6, type TrajectoryPoint as a7, type MotionControlNodeData as a8, type EasingPreset as a9, type OutputNodeData as aA, type WorkflowInputNodeData as aB, type WorkflowOutputNodeData as aC, type WorkflowInterfaceInput as aD, type WorkflowInterfaceOutput as aE, type WorkflowInterface as aF, type WorkflowRefNodeData as aG, type WorkflowNodeData as aH, type WorkflowNode as aI, type WorkflowEdgeData as aJ, type WorkflowEdge as aK, type CubicBezier as aa, type AnimationNodeData as ab, type TransitionType as ac, type AudioCodec as ad, type OutputQuality as ae, type VideoStitchNodeData as af, type ResizeNodeData as ag, type VideoTrimNodeData as ah, type FrameSelectionMode as ai, type VideoFrameExtractNodeData as aj, type ReframeInputType as ak, type ReframeNodeData as al, type UpscaleInputType as am, type UpscaleModel as an, type UpscaleNodeData as ao, type GridOutputFormat as ap, type ImageGridSplitNodeData as aq, type AnnotationShapeData as ar, type AnnotationNodeData as as, type SubtitleStyle as at, type SubtitlePosition as au, type SubtitleNodeData as av, type OutputGalleryNodeData as aw, type ImageCompareNodeData as ax, type OutputInputType as ay, type DownloadNodeData as az, type HandleDefinition as b, ProviderTypeEnum as c, type ProviderType as d, type ModelCapability as e, ModelUseCaseEnum as f, type ModelUseCase as g, type ProviderModel as h, type NodeType as i, NodeCategoryEnum as j, type NodeCategory as k, NodeStatusEnum as l, type NodeStatus as m, type PromptNodeData as n, type AvailableVariable as o, type PromptConstructorNodeData as p, type ImageModel as q, type VideoModel as r, type AspectRatio as s, type Resolution as t, type VideoResolution as u, type VideoDuration as v, type LumaReframeModel as w, type TopazEnhanceModel as x, type TopazUpscaleFactor as y, type TopazVideoResolution as z };
542
+ export { type PromptConstructorNodeData as $, type AnimationNodeData as A, type BaseNodeData as B, CONNECTION_RULES as C, type DownloadNodeData as D, type EasingPreset as E, type FrameSelectionMode as F, type GridOutputFormat as G, type HandleDefinition as H, type ImageCompareNodeData as I, type MotionControlMode as J, KlingQuality as K, type LLMNodeData as L, type ModelCapability as M, type NodeType as N, type MotionControlNodeData as O, type NodeCategory as P, NodeCategoryEnum as Q, type NodeStatus as R, NodeStatusEnum as S, NodeTypeEnum as T, type OutputFormat as U, type OutputGalleryNodeData as V, type WorkflowNode as W, type OutputInputType as X, type OutputNodeData as Y, type OutputQuality as Z, ProcessingNodeType as _, type WorkflowEdge as a, type PromptNodeData as a0, type ProviderModel as a1, type ProviderType as a2, ProviderTypeEnum as a3, type ReframeInputType as a4, type ReframeNodeData as a5, ReframeNodeType as a6, type ResizeNodeData as a7, type Resolution as a8, type SelectedModel as a9, type VideoTrimNodeData as aA, type VoiceChangeNodeData as aB, type WorkflowEdgeData as aC, type WorkflowInputNodeData as aD, type WorkflowInterface as aE, type WorkflowInterfaceInput as aF, type WorkflowInterfaceOutput as aG, type WorkflowNodeData as aH, type WorkflowOutputNodeData as aI, type WorkflowRefNodeData as aJ, WorkflowTemplateCategory as aK, type SubtitleNodeData as aa, type SubtitlePosition as ab, type SubtitleStyle as ac, type TTSProvider as ad, type TTSVoice as ae, type TextModel as af, type TextToSpeechNodeData as ag, type TopazEnhanceModel as ah, type TopazUpscaleFactor as ai, type TopazVideoFPS as aj, type TopazVideoResolution as ak, type TrajectoryPoint as al, type TranscribeLanguage as am, type TranscribeNodeData as an, type TransitionType as ao, type UpscaleInputType as ap, type UpscaleModel as aq, type UpscaleNodeData as ar, UpscaleNodeType as as, type VideoDuration as at, type VideoFrameExtractNodeData as au, type VideoGenNodeData as av, type VideoInputNodeData as aw, type VideoModel as ax, type VideoResolution as ay, type VideoStitchNodeData as az, type AnnotationNodeData as b, type AnnotationShapeData as c, type AspectRatio as d, type AudioCodec as e, type AudioInputNodeData as f, type AvailableVariable as g, type CameraMovement as h, type CharacterOrientation as i, type CubicBezier as j, type GridPosition as k, type HandleType as l, HandleTypeEnum as m, type ImageGenNodeData as n, type ImageGridSplitNodeData as o, type ImageInputNodeData as p, type ImageModel as q, type KlingQualityMode as r, type LipSyncMode as s, type LipSyncModel as t, type LipSyncNodeData as u, type LumaAspectRatio as v, type LumaReframeModel as w, ModelCapabilityEnum as x, type ModelUseCase as y, ModelUseCaseEnum as z };
@@ -1,6 +1,6 @@
1
- import { Node, Edge } from '@xyflow/react';
1
+ import { Edge, Node } from '@xyflow/react';
2
2
 
3
- declare enum TemplateCategory {
3
+ declare enum WorkflowTemplateCategory {
4
4
  IMAGE = "image",
5
5
  VIDEO = "video",
6
6
  AUDIO = "audio",
@@ -40,6 +40,7 @@ declare enum ProcessingNodeType {
40
40
  LIP_SYNC = "lipSync",
41
41
  TEXT_TO_SPEECH = "textToSpeech",
42
42
  VOICE_CHANGE = "voiceChange",
43
+ TRANSCRIBE = "transcribe",
43
44
  SUBTITLE = "subtitle",
44
45
  VIDEO_STITCH = "videoStitch",
45
46
  WORKFLOW_REF = "workflowRef"
@@ -538,4 +539,4 @@ interface WorkflowEdgeData {
538
539
  }
539
540
  type WorkflowEdge = Edge<WorkflowEdgeData>;
540
541
 
541
- export { type TTSVoice as $, type AudioInputNodeData as A, type BaseNodeData as B, CONNECTION_RULES as C, type TopazVideoFPS as D, type ImageGenNodeData as E, type VideoGenNodeData as F, type GridPosition as G, HandleTypeEnum as H, type ImageInputNodeData as I, type TextModel as J, KlingQuality as K, type LumaAspectRatio as L, ModelCapabilityEnum as M, NodeTypeEnum as N, type OutputFormat as O, ProcessingNodeType as P, type LLMNodeData as Q, ReframeNodeType as R, type SelectedModel as S, TemplateCategory as T, UpscaleNodeType as U, type VideoInputNodeData as V, type LipSyncModel as W, type LipSyncMode as X, type LipSyncNodeData as Y, type VoiceChangeNodeData as Z, type TTSProvider as _, type HandleType as a, type TextToSpeechNodeData as a0, type TranscribeLanguage as a1, type TranscribeNodeData as a2, type MotionControlMode as a3, type CameraMovement as a4, type KlingQualityMode as a5, type CharacterOrientation as a6, type TrajectoryPoint as a7, type MotionControlNodeData as a8, type EasingPreset as a9, type OutputNodeData as aA, type WorkflowInputNodeData as aB, type WorkflowOutputNodeData as aC, type WorkflowInterfaceInput as aD, type WorkflowInterfaceOutput as aE, type WorkflowInterface as aF, type WorkflowRefNodeData as aG, type WorkflowNodeData as aH, type WorkflowNode as aI, type WorkflowEdgeData as aJ, type WorkflowEdge as aK, type CubicBezier as aa, type AnimationNodeData as ab, type TransitionType as ac, type AudioCodec as ad, type OutputQuality as ae, type VideoStitchNodeData as af, type ResizeNodeData as ag, type VideoTrimNodeData as ah, type FrameSelectionMode as ai, type VideoFrameExtractNodeData as aj, type ReframeInputType as ak, type ReframeNodeData as al, type UpscaleInputType as am, type UpscaleModel as an, type UpscaleNodeData as ao, type GridOutputFormat as ap, type ImageGridSplitNodeData as aq, type AnnotationShapeData as ar, type AnnotationNodeData as as, type SubtitleStyle as at, type SubtitlePosition as au, type SubtitleNodeData as av, type OutputGalleryNodeData as aw, type ImageCompareNodeData as ax, type OutputInputType as ay, type DownloadNodeData as az, type HandleDefinition as b, ProviderTypeEnum as c, type ProviderType as d, type ModelCapability as e, ModelUseCaseEnum as f, type ModelUseCase as g, type ProviderModel as h, type NodeType as i, NodeCategoryEnum as j, type NodeCategory as k, NodeStatusEnum as l, type NodeStatus as m, type PromptNodeData as n, type AvailableVariable as o, type PromptConstructorNodeData as p, type ImageModel as q, type VideoModel as r, type AspectRatio as s, type Resolution as t, type VideoResolution as u, type VideoDuration as v, type LumaReframeModel as w, type TopazEnhanceModel as x, type TopazUpscaleFactor as y, type TopazVideoResolution as z };
542
+ export { type PromptConstructorNodeData as $, type AnimationNodeData as A, type BaseNodeData as B, CONNECTION_RULES as C, type DownloadNodeData as D, type EasingPreset as E, type FrameSelectionMode as F, type GridOutputFormat as G, type HandleDefinition as H, type ImageCompareNodeData as I, type MotionControlMode as J, KlingQuality as K, type LLMNodeData as L, type ModelCapability as M, type NodeType as N, type MotionControlNodeData as O, type NodeCategory as P, NodeCategoryEnum as Q, type NodeStatus as R, NodeStatusEnum as S, NodeTypeEnum as T, type OutputFormat as U, type OutputGalleryNodeData as V, type WorkflowNode as W, type OutputInputType as X, type OutputNodeData as Y, type OutputQuality as Z, ProcessingNodeType as _, type WorkflowEdge as a, type PromptNodeData as a0, type ProviderModel as a1, type ProviderType as a2, ProviderTypeEnum as a3, type ReframeInputType as a4, type ReframeNodeData as a5, ReframeNodeType as a6, type ResizeNodeData as a7, type Resolution as a8, type SelectedModel as a9, type VideoTrimNodeData as aA, type VoiceChangeNodeData as aB, type WorkflowEdgeData as aC, type WorkflowInputNodeData as aD, type WorkflowInterface as aE, type WorkflowInterfaceInput as aF, type WorkflowInterfaceOutput as aG, type WorkflowNodeData as aH, type WorkflowOutputNodeData as aI, type WorkflowRefNodeData as aJ, WorkflowTemplateCategory as aK, type SubtitleNodeData as aa, type SubtitlePosition as ab, type SubtitleStyle as ac, type TTSProvider as ad, type TTSVoice as ae, type TextModel as af, type TextToSpeechNodeData as ag, type TopazEnhanceModel as ah, type TopazUpscaleFactor as ai, type TopazVideoFPS as aj, type TopazVideoResolution as ak, type TrajectoryPoint as al, type TranscribeLanguage as am, type TranscribeNodeData as an, type TransitionType as ao, type UpscaleInputType as ap, type UpscaleModel as aq, type UpscaleNodeData as ar, UpscaleNodeType as as, type VideoDuration as at, type VideoFrameExtractNodeData as au, type VideoGenNodeData as av, type VideoInputNodeData as aw, type VideoModel as ax, type VideoResolution as ay, type VideoStitchNodeData as az, type AnnotationNodeData as b, type AnnotationShapeData as c, type AspectRatio as d, type AudioCodec as e, type AudioInputNodeData as f, type AvailableVariable as g, type CameraMovement as h, type CharacterOrientation as i, type CubicBezier as j, type GridPosition as k, type HandleType as l, HandleTypeEnum as m, type ImageGenNodeData as n, type ImageGridSplitNodeData as o, type ImageInputNodeData as p, type ImageModel as q, type KlingQualityMode as r, type LipSyncMode as s, type LipSyncModel as t, type LipSyncNodeData as u, type LumaAspectRatio as v, type LumaReframeModel as w, ModelCapabilityEnum as x, type ModelUseCase as y, ModelUseCaseEnum as z };
@@ -1,4 +1,4 @@
1
- import { aI as WorkflowNode, aK as WorkflowEdge, i as NodeType } from './union-CtYAY8Mv.js';
1
+ import { N as NodeType, W as WorkflowNode, a as WorkflowEdge } from './union-BVaWc1Cx.js';
2
2
 
3
3
  /**
4
4
  * Node Group Types
@@ -28,8 +28,13 @@ interface WorkflowFile {
28
28
  edges: WorkflowEdge[];
29
29
  edgeStyle: EdgeStyle;
30
30
  groups?: NodeGroup[];
31
- createdAt: string;
32
- updatedAt: string;
31
+ createdAt?: string;
32
+ updatedAt?: string;
33
+ metadata?: {
34
+ exportedAt?: string;
35
+ exportedFrom?: string;
36
+ originalId?: string;
37
+ };
33
38
  }
34
39
  /**
35
40
  * Template node with loose typing for data - used in template definitions
@@ -85,15 +90,5 @@ interface ExecutionResult {
85
90
  errors: Map<string, string>;
86
91
  duration: number;
87
92
  }
88
- interface CostEstimate {
89
- model: string;
90
- count: number;
91
- unitCost: number;
92
- totalCost: number;
93
- }
94
- interface WorkflowCostEstimate {
95
- items: CostEstimate[];
96
- totalCost: number;
97
- }
98
93
 
99
- export { type CostEstimate as C, EdgeStyleEnum as E, type GroupColor as G, type NodeGroup as N, type TemplateNode as T, type ValidationError as V, type WorkflowFile as W, type EdgeStyle as a, type TemplateEdge as b, type WorkflowTemplate as c, type ValidationResult as d, type ExecutionResult as e, type WorkflowCostEstimate as f };
94
+ export { type EdgeStyle as E, type GroupColor as G, type NodeGroup as N, type TemplateEdge as T, type ValidationError as V, type WorkflowFile as W, EdgeStyleEnum as a, type ExecutionResult as b, type TemplateNode as c, type ValidationResult as d, type WorkflowTemplate as e };
@@ -1,4 +1,4 @@
1
- import { aI as WorkflowNode, aK as WorkflowEdge, i as NodeType } from './union-CtYAY8Mv.mjs';
1
+ import { N as NodeType, W as WorkflowNode, a as WorkflowEdge } from './union-BVaWc1Cx.mjs';
2
2
 
3
3
  /**
4
4
  * Node Group Types
@@ -28,8 +28,13 @@ interface WorkflowFile {
28
28
  edges: WorkflowEdge[];
29
29
  edgeStyle: EdgeStyle;
30
30
  groups?: NodeGroup[];
31
- createdAt: string;
32
- updatedAt: string;
31
+ createdAt?: string;
32
+ updatedAt?: string;
33
+ metadata?: {
34
+ exportedAt?: string;
35
+ exportedFrom?: string;
36
+ originalId?: string;
37
+ };
33
38
  }
34
39
  /**
35
40
  * Template node with loose typing for data - used in template definitions
@@ -85,15 +90,5 @@ interface ExecutionResult {
85
90
  errors: Map<string, string>;
86
91
  duration: number;
87
92
  }
88
- interface CostEstimate {
89
- model: string;
90
- count: number;
91
- unitCost: number;
92
- totalCost: number;
93
- }
94
- interface WorkflowCostEstimate {
95
- items: CostEstimate[];
96
- totalCost: number;
97
- }
98
93
 
99
- export { type CostEstimate as C, EdgeStyleEnum as E, type GroupColor as G, type NodeGroup as N, type TemplateNode as T, type ValidationError as V, type WorkflowFile as W, type EdgeStyle as a, type TemplateEdge as b, type WorkflowTemplate as c, type ValidationResult as d, type ExecutionResult as e, type WorkflowCostEstimate as f };
94
+ export { type EdgeStyle as E, type GroupColor as G, type NodeGroup as N, type TemplateEdge as T, type ValidationError as V, type WorkflowFile as W, EdgeStyleEnum as a, type ExecutionResult as b, type TemplateNode as c, type ValidationResult as d, type WorkflowTemplate as e };
@@ -1,3 +1,3 @@
1
- export { C as CostEstimate, a as EdgeStyle, E as EdgeStyleEnum, e as ExecutionResult, b as TemplateEdge, T as TemplateNode, V as ValidationError, d as ValidationResult, f as WorkflowCostEstimate, W as WorkflowFile, c as WorkflowTemplate } from './workflow-CGpVuRPg.mjs';
2
- import './union-CtYAY8Mv.mjs';
1
+ export { E as EdgeStyle, a as EdgeStyleEnum, b as ExecutionResult, T as TemplateEdge, c as TemplateNode, V as ValidationError, d as ValidationResult, W as WorkflowFile, e as WorkflowTemplate } from './workflow-BbAp7VSK.mjs';
2
+ import './union-BVaWc1Cx.mjs';
3
3
  import '@xyflow/react';
@@ -1,3 +1,3 @@
1
- export { C as CostEstimate, a as EdgeStyle, E as EdgeStyleEnum, e as ExecutionResult, b as TemplateEdge, T as TemplateNode, V as ValidationError, d as ValidationResult, f as WorkflowCostEstimate, W as WorkflowFile, c as WorkflowTemplate } from './workflow-Di5vTrXa.js';
2
- import './union-CtYAY8Mv.js';
1
+ export { E as EdgeStyle, a as EdgeStyleEnum, b as ExecutionResult, T as TemplateEdge, c as TemplateNode, V as ValidationError, d as ValidationResult, W as WorkflowFile, e as WorkflowTemplate } from './workflow-B_Q38s-U.js';
2
+ import './union-BVaWc1Cx.js';
3
3
  import '@xyflow/react';
package/package.json CHANGED
@@ -1,45 +1,46 @@
1
1
  {
2
2
  "name": "@genfeedai/types",
3
- "version": "0.1.1",
3
+ "version": "0.2.1",
4
+ "sideEffects": false,
4
5
  "license": "AGPL-3.0",
5
6
  "description": "Type definitions for Genfeed workflow engine",
6
7
  "repository": {
7
8
  "type": "git",
8
- "url": "git+https://github.com/genfeedai/core.git",
9
- "directory": "packages/types"
9
+ "url": "git+https://github.com/genfeedai/packages.git",
10
+ "directory": "types"
10
11
  },
11
12
  "publishConfig": {
12
13
  "access": "public",
13
14
  "registry": "https://registry.npmjs.org/"
14
15
  },
15
16
  "main": "./dist/index.js",
16
- "module": "./dist/index.js",
17
+ "module": "./dist/index.mjs",
17
18
  "types": "./dist/index.d.ts",
18
19
  "exports": {
19
20
  ".": {
20
21
  "types": "./dist/index.d.ts",
21
- "import": "./dist/index.js",
22
- "require": "./dist/index.cjs"
22
+ "import": "./dist/index.mjs",
23
+ "require": "./dist/index.js"
23
24
  },
24
25
  "./nodes": {
25
26
  "types": "./dist/nodes.d.ts",
26
- "import": "./dist/nodes.js",
27
- "require": "./dist/nodes.cjs"
27
+ "import": "./dist/nodes.mjs",
28
+ "require": "./dist/nodes.js"
28
29
  },
29
30
  "./workflow": {
30
31
  "types": "./dist/workflow.d.ts",
31
- "import": "./dist/workflow.js",
32
- "require": "./dist/workflow.cjs"
32
+ "import": "./dist/workflow.mjs",
33
+ "require": "./dist/workflow.js"
33
34
  },
34
35
  "./comfyui": {
35
36
  "types": "./dist/comfyui.d.ts",
36
- "import": "./dist/comfyui.js",
37
- "require": "./dist/comfyui.cjs"
37
+ "import": "./dist/comfyui.mjs",
38
+ "require": "./dist/comfyui.js"
38
39
  },
39
40
  "./replicate": {
40
41
  "types": "./dist/replicate.d.ts",
41
- "import": "./dist/replicate.js",
42
- "require": "./dist/replicate.cjs"
42
+ "import": "./dist/replicate.mjs",
43
+ "require": "./dist/replicate.js"
43
44
  },
44
45
  "./replicate/schemas.json": "./src/replicate/schemas.json"
45
46
  },