ugcinc 4.5.48 → 4.5.49

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.
@@ -396,7 +396,7 @@ export interface WorkflowTemplateData {
396
396
  }
397
397
  /**
398
398
  * Extract workflow config from a template for use in compose-workflow nodes.
399
- * Parses the template's manual-trigger outputs as inputs and output_schema as outputs.
399
+ * Parses the template's input node outputs as inputs and output_schema as outputs.
400
400
  */
401
401
  export declare function extractWorkflowConfig({ template, }: {
402
402
  template: WorkflowTemplateData;
@@ -1103,13 +1103,13 @@ function generateNodeName({ type, existingNodes, }) {
1103
1103
  }
1104
1104
  /**
1105
1105
  * Extract workflow config from a template for use in compose-workflow nodes.
1106
- * Parses the template's manual-trigger outputs as inputs and output_schema as outputs.
1106
+ * Parses the template's input node outputs as inputs and output_schema as outputs.
1107
1107
  */
1108
1108
  function extractWorkflowConfig({ template, }) {
1109
- // Extract inputs from manual trigger nodes
1109
+ // Extract inputs from input nodes
1110
1110
  const inputs = [];
1111
1111
  for (const n of template.nodes ?? []) {
1112
- if (n.type !== 'manual-trigger')
1112
+ if (n.type !== 'input')
1113
1113
  continue;
1114
1114
  const config = n.config;
1115
1115
  const outputs = config?.outputs;
@@ -224,14 +224,6 @@ export declare const nodeDefinitions: {
224
224
  __TInputs: import("./llm").LLMNodeInputs;
225
225
  __TOutputs: import("./llm").LLMNodeOutputs;
226
226
  };
227
- readonly 'manual-trigger': NodeDefinition<"manual-trigger", "trigger", {
228
- outputs: import("../types").NodePort[];
229
- outputMode: import("./types").OutputMode | null;
230
- selectionMode: import("./types").SelectionMode | null;
231
- }, import("./manual-trigger").ManualTriggerNodeInputs, import("./manual-trigger").ManualTriggerNodeOutputs, false> & {
232
- __TInputs: import("./manual-trigger").ManualTriggerNodeInputs;
233
- __TOutputs: import("./manual-trigger").ManualTriggerNodeOutputs;
234
- };
235
227
  readonly media: NodeDefinition<"media", "source", {
236
228
  outputs: import("./media").MediaNodeOutput[];
237
229
  outputMode: import("./types").OutputMode;
@@ -27,7 +27,6 @@ const generate_video_1 = __importDefault(require("./generate-video"));
27
27
  const if_1 = __importDefault(require("./if"));
28
28
  const image_composer_1 = __importDefault(require("./image-composer"));
29
29
  const llm_1 = __importDefault(require("./llm"));
30
- const manual_trigger_1 = __importDefault(require("./manual-trigger"));
31
30
  const media_1 = __importDefault(require("./media"));
32
31
  const not_1 = __importDefault(require("./not"));
33
32
  const output_1 = __importDefault(require("./output"));
@@ -67,7 +66,6 @@ exports.nodeDefinitions = {
67
66
  'if': if_1.default,
68
67
  'image-composer': image_composer_1.default,
69
68
  'llm': llm_1.default,
70
- 'manual-trigger': manual_trigger_1.default,
71
69
  'media': media_1.default,
72
70
  'not': not_1.default,
73
71
  'passthrough': output_1.default,
package/dist/cli.js CHANGED
File without changes
package/dist/index.d.ts CHANGED
@@ -57,7 +57,6 @@ export type { IfNodeConfig, IfLogicOperator, IfBooleanInput, } from './automatio
57
57
  export { IfLogicOperators, applyLogicOperator } from './automations/nodes/if';
58
58
  export type { LLMNodeConfig, LLMNodeOutputs, LLMProvider, } from './automations/nodes/llm';
59
59
  export { LLMProviders, outputFieldToZod, outputFieldsToZod } from './automations/nodes/llm';
60
- export type { ManualTriggerNodeConfig, ManualTriggerNodeOutputs } from './automations/nodes/manual-trigger';
61
60
  export type { InputNodeConfig, InputNodeOutputs } from './automations/nodes/input';
62
61
  export type { MediaNodeConfig, MediaNodeOutput } from './automations/nodes/media';
63
62
  export type { NotNodeConfig } from './automations/nodes/not';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ugcinc",
3
- "version": "4.5.48",
3
+ "version": "4.5.49",
4
4
  "description": "TypeScript/JavaScript client for the UGC Inc API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,18 +0,0 @@
1
- import type { NodePort, PortValue } from '../types';
2
- import { type OutputMode, type SelectionMode } from './types';
3
- /** Manual trigger node has no inputs (trigger node) */
4
- export interface ManualTriggerNodeInputs {
5
- }
6
- /** Manual trigger outputs are dynamic based on config. Output port IDs are user-defined. */
7
- export type ManualTriggerNodeOutputs = Record<string, PortValue | PortValue[]>;
8
- declare const definition: import("./types").NodeDefinition<"manual-trigger", "trigger", {
9
- outputs: NodePort[];
10
- outputMode: OutputMode | null;
11
- selectionMode: SelectionMode | null;
12
- }, ManualTriggerNodeInputs, ManualTriggerNodeOutputs, false>;
13
- declare const _default: typeof definition & {
14
- __TInputs: ManualTriggerNodeInputs;
15
- __TOutputs: ManualTriggerNodeOutputs;
16
- };
17
- export default _default;
18
- export type ManualTriggerNodeConfig = typeof definition.defaults;
@@ -1,56 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const types_1 = require("./types");
4
- // =============================================================================
5
- // Node Definition
6
- // =============================================================================
7
- const definition = (0, types_1.defineNode)({
8
- nodeId: 'manual-trigger',
9
- label: 'Manual Trigger',
10
- description: 'Trigger manually',
11
- type: 'trigger',
12
- category: 'Triggers',
13
- hidden: true,
14
- outputModes: null,
15
- selectionModes: null,
16
- defaults: {
17
- outputs: [{ id: 'input-1', type: 'image', isArray: false, required: true }],
18
- outputMode: null,
19
- selectionMode: null,
20
- },
21
- computePorts: ({ config }) => {
22
- return {
23
- inputs: [],
24
- outputs: config?.outputs ?? [],
25
- };
26
- },
27
- generatePreview: (config, _ctx) => {
28
- // Manual trigger outputs are provided at runtime, no preview available
29
- const result = {};
30
- for (const output of config.outputs) {
31
- result[output.id] = null;
32
- }
33
- return (0, types_1.preview)(result);
34
- },
35
- validate: (config) => {
36
- const errors = [];
37
- const outputs = config.outputs;
38
- if (!outputs?.length) {
39
- errors.push('Manual Trigger node requires at least one output to be configured');
40
- }
41
- else {
42
- const validTypes = ['image', 'video', 'audio', 'text', 'social_audio', 'account'];
43
- for (const output of outputs) {
44
- if (!output.id) {
45
- errors.push('Manual Trigger output requires an id');
46
- }
47
- const outputType = Array.isArray(output.type) ? output.type.join(' | ') : output.type;
48
- if (!output.type || !validTypes.includes(outputType)) {
49
- errors.push(`Invalid Manual Trigger output type: ${outputType}`);
50
- }
51
- }
52
- }
53
- return errors;
54
- },
55
- });
56
- exports.default = definition;