ugcinc 4.1.7 → 4.1.9

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.
@@ -305,10 +305,22 @@ export interface AsyncNodeExecutor<TType extends UserCreatableNodeType, TOutput
305
305
  /** Check job status - called by orchestrator with workflow sleep between calls */
306
306
  checkStatus: (jobId: string, ctx: ExecutorContext<TType>) => Promise<ExecutorAsyncJobStatus<TOutput>>;
307
307
  }
308
+ /**
309
+ * Any node executor - used for registries that hold executors of different types
310
+ */
311
+ export type AnyNodeExecutor = {
312
+ [K in UserCreatableNodeType]: NodeExecutor<K, unknown>;
313
+ }[UserCreatableNodeType];
314
+ /**
315
+ * Any async node executor - used for registries that hold executors of different types
316
+ */
317
+ export type AnyAsyncNodeExecutor = {
318
+ [K in UserCreatableNodeType]: AsyncNodeExecutor<K, unknown>;
319
+ }[UserCreatableNodeType];
308
320
  /**
309
321
  * Type guard to check if an executor is async
310
322
  */
311
- export declare function isAsyncExecutor<TType extends UserCreatableNodeType, TOutput>(executor: NodeExecutor<TType, TOutput> | AsyncNodeExecutor<TType, TOutput>): executor is AsyncNodeExecutor<TType, TOutput>;
323
+ export declare function isAsyncExecutor(executor: AnyNodeExecutor | AnyAsyncNodeExecutor): executor is AnyAsyncNodeExecutor;
312
324
  /**
313
325
  * Validation error types for automation workflows
314
326
  */
package/dist/index.d.ts CHANGED
@@ -61,7 +61,7 @@ export type { TextNodeConfig } from './automations/nodes/text';
61
61
  export type { TranscriptNodeConfig } from './automations/nodes/transcript';
62
62
  export type { VideoComposerNodeConfig } from './automations/nodes/video-composer';
63
63
  export type { VideoImportNodeConfig, VideoImportPlatform, VideoImportQuality, } from './automations/nodes/video-import';
64
- export type { MediaType, BasePortType, EnumOption, NodeOutputValues, NodePort, ResolvedPort, ResolvedPorts, ComputedNode, OutputSchemaProperty, WorkflowNodeDefinition, CanvasState, WorkflowDefinition, TemplateNode, AutomationTemplate, AutomationRun, ExecutorNode, ExecutionEdge, AccountData, FlowControlOutput, ExecutorContext, NodeExecutor, AsyncNodeExecutor, ExecutorAsyncJobStatus, ValidationErrorType, ValidationError, ExportedNode, ExportedConnection, ExportedTemplate, AutomationExport, ExportedExecutor, ExportedEdge, ExportedRun, AutomationRunExport, } from './automations/types';
64
+ export type { MediaType, BasePortType, EnumOption, NodeOutputValues, NodePort, ResolvedPort, ResolvedPorts, ComputedNode, OutputSchemaProperty, WorkflowNodeDefinition, CanvasState, WorkflowDefinition, TemplateNode, AutomationTemplate, AutomationRun, ExecutorNode, ExecutionEdge, AccountData, FlowControlOutput, ExecutorContext, NodeExecutor, AsyncNodeExecutor, AnyNodeExecutor, AnyAsyncNodeExecutor, ExecutorAsyncJobStatus, ValidationErrorType, ValidationError, ExportedNode, ExportedConnection, ExportedTemplate, AutomationExport, ExportedExecutor, ExportedEdge, ExportedRun, AutomationRunExport, } from './automations/types';
65
65
  export type { NodeDefinition, NodeType, UserCreatableNodeType, NodeConfig, WorkflowConfig, InternalNodeType, } from './automations/nodes';
66
66
  export type { SelectionMode, ExhaustionBehavior, SelectionConfig, SelectionState, OutputMode, NodeCategory, TriggerIterationMode, IterationExhaustionBehavior, CollectionSelectionMode, TriggerCollectionConfig, ObjectSchemaField, MediaItemType, MediaNodeSelectionType, ResolvedPreview, } from './automations/nodes/types';
67
67
  export type { SuccessResponse, ErrorResponse, ApiResponse, } from './types';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ugcinc",
3
- "version": "4.1.7",
3
+ "version": "4.1.9",
4
4
  "description": "TypeScript/JavaScript client for the UGC Inc API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",