ugcinc 4.1.52 → 4.1.53
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.
|
@@ -8,8 +8,14 @@ export type ForEachNodeInputs = Record<string, PortValue | PortValue[]>;
|
|
|
8
8
|
/**
|
|
9
9
|
* For-each node outputs: optional item/index + dynamic property outputs + passthrough outputs.
|
|
10
10
|
* Output port IDs are user-defined based on config.
|
|
11
|
+
* Includes runtime metadata fields for expansion detection.
|
|
11
12
|
*/
|
|
12
|
-
export
|
|
13
|
+
export interface ForEachNodeOutputs extends Record<string, PortValue | PortValue[] | number | undefined> {
|
|
14
|
+
/** Runtime: full array for expansion (only on parent for-each, not for-each-value) */
|
|
15
|
+
__forEachArray?: PortValue[];
|
|
16
|
+
/** Runtime: array length for expansion detection (only on parent for-each, not for-each-value) */
|
|
17
|
+
__forEachLength?: number;
|
|
18
|
+
}
|
|
13
19
|
export interface ForEachOutputProperty extends NodePort {
|
|
14
20
|
propertyPath: string;
|
|
15
21
|
}
|
|
@@ -5,12 +5,13 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import type { ObjectSchemaField, SelectionMode, OutputMode, NodeCategory } from './nodes/types';
|
|
7
7
|
import type { NodeType, UserCreatableNodeType, WorkflowConfig, NodeInputs, NodeOutputs, InternalNodeType } from './nodes';
|
|
8
|
+
import type { ForEachNodeConfig, ForEachNodeInputs, ForEachNodeOutputs } from './nodes/for-each';
|
|
8
9
|
/**
|
|
9
10
|
* Config type for internal node types (created dynamically at runtime).
|
|
10
|
-
*
|
|
11
|
+
* for-each-value uses the same config as for-each (its parent node).
|
|
11
12
|
*/
|
|
12
13
|
export type InternalWorkflowConfig = {
|
|
13
|
-
|
|
14
|
+
'for-each-value': ForEachNodeConfig;
|
|
14
15
|
};
|
|
15
16
|
/**
|
|
16
17
|
* Combined config lookup for all node types (user-creatable + internal).
|
|
@@ -18,10 +19,10 @@ export type InternalWorkflowConfig = {
|
|
|
18
19
|
export type AllWorkflowConfig = WorkflowConfig & InternalWorkflowConfig;
|
|
19
20
|
/**
|
|
20
21
|
* Input type for internal node types (created dynamically at runtime).
|
|
21
|
-
*
|
|
22
|
+
* for-each-value uses the same inputs as for-each (its parent node).
|
|
22
23
|
*/
|
|
23
24
|
export type InternalNodeInputs = {
|
|
24
|
-
|
|
25
|
+
'for-each-value': ForEachNodeInputs;
|
|
25
26
|
};
|
|
26
27
|
/**
|
|
27
28
|
* Combined input type lookup for all node types (user-creatable + internal).
|
|
@@ -29,10 +30,10 @@ export type InternalNodeInputs = {
|
|
|
29
30
|
export type AllNodeInputs = NodeInputs & InternalNodeInputs;
|
|
30
31
|
/**
|
|
31
32
|
* Output type for internal node types (created dynamically at runtime).
|
|
32
|
-
*
|
|
33
|
+
* for-each-value uses the same outputs as for-each (its parent node).
|
|
33
34
|
*/
|
|
34
35
|
export type InternalNodeOutputs = {
|
|
35
|
-
|
|
36
|
+
'for-each-value': ForEachNodeOutputs;
|
|
36
37
|
};
|
|
37
38
|
/**
|
|
38
39
|
* Combined output type lookup for all node types (user-creatable + internal).
|
package/dist/index.d.ts
CHANGED
|
@@ -47,7 +47,7 @@ export type { CustomModelNodeConfig, CustomModelOutputType, CustomModelInputPara
|
|
|
47
47
|
export type { DeduplicateNodeConfig } from './automations/nodes/deduplicate';
|
|
48
48
|
export type { DestructureNodeConfig, DestructureSelection, IndexExpression, } from './automations/nodes/destructure';
|
|
49
49
|
export { indexExpressionToIndexes } from './automations/nodes/destructure';
|
|
50
|
-
export type { ForEachNodeConfig, ForEachOutputProperty, } from './automations/nodes/for-each';
|
|
50
|
+
export type { ForEachNodeConfig, ForEachNodeInputs, ForEachNodeOutputs, ForEachOutputProperty, } from './automations/nodes/for-each';
|
|
51
51
|
export type { GenerateImageNodeConfig, ImageGenerationTextModel, ImageGenerationEditModel, ImageGenerationModel, ImageModelProvider, ImageModelOption, AspectRatioOption, } from './automations/nodes/generate-image';
|
|
52
52
|
export type { GenerateVideoNodeConfig, VideoGenerationTextToVideoModel, VideoGenerationImageToVideoModel, VideoGenerationModel, VideoModelProvider, VideoModelTier, VideoAspectRatioOption, VideoDurationOption, VideoModelOption, } from './automations/nodes/generate-video';
|
|
53
53
|
export type { IfNodeConfig, IfLogicOperator, IfBooleanInput, } from './automations/nodes/if';
|