ugcinc 3.17.0 → 3.18.0

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.
Files changed (2) hide show
  1. package/dist/types.d.ts +9 -15
  2. package/package.json +1 -1
package/dist/types.d.ts CHANGED
@@ -1006,35 +1006,29 @@ export interface ManualTriggerNodeConfig {
1006
1006
  export type DayOfWeek = 'monday' | 'tuesday' | 'wednesday' | 'thursday' | 'friday' | 'saturday' | 'sunday';
1007
1007
  /**
1008
1008
  * Recurrence media output port definition
1009
- * Each output is a named port with a specific media type
1009
+ * Each output is a named port with a specific media type and its own selection config
1010
1010
  */
1011
1011
  export interface RecurrenceMediaOutput {
1012
1012
  /** Unique ID for this output port (e.g., "background-image", "overlay") */
1013
1013
  id: string;
1014
1014
  /** Media type for this port */
1015
1015
  type: 'image' | 'video' | 'audio' | 'text' | 'social_audio';
1016
+ /** Selection mode for this output's media source */
1017
+ selectionMode: 'specific' | 'by-tag';
1018
+ /** Media IDs for this output (used when selectionMode is 'specific') */
1019
+ selectedMediaIds?: string[];
1020
+ /** Tag to query media by at runtime (used when selectionMode is 'by-tag') */
1021
+ mediaTag?: string;
1016
1022
  }
1017
1023
  /**
1018
1024
  * Media input configuration for recurrence nodes
1019
- * Allows selecting media by specific IDs or by tag (queried at runtime)
1025
+ * Each output has its own selection configuration
1020
1026
  */
1021
1027
  export interface RecurrenceMediaConfig {
1022
1028
  /** Whether media input is enabled */
1023
1029
  enabled: boolean;
1024
- /** Named output ports - each gets a random item from the pool */
1030
+ /** Named output ports - each has its own selection config */
1025
1031
  outputs: RecurrenceMediaOutput[];
1026
- /** Selection mode: 'specific' uses selectedMediaIds, 'by-tag' queries at runtime */
1027
- selectionMode: CollectionSelectionMode;
1028
- /** Media IDs per type (used when selectionMode is 'specific') */
1029
- selectedMediaIds?: {
1030
- image?: string[];
1031
- video?: string[];
1032
- audio?: string[];
1033
- text?: string[];
1034
- social_audio?: string[];
1035
- };
1036
- /** Tag to query media by at runtime (used when selectionMode is 'by-tag') */
1037
- mediaTag?: string;
1038
1032
  }
1039
1033
  /**
1040
1034
  * Recurrence node configuration - defines when the automation runs on a schedule
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ugcinc",
3
- "version": "3.17.0",
3
+ "version": "3.18.0",
4
4
  "description": "TypeScript/JavaScript client for the UGC Inc API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",