ugcinc 4.0.2 → 4.1.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 (154) hide show
  1. package/dist/accounts.d.ts +146 -1
  2. package/dist/automations/index.d.ts +174 -0
  3. package/dist/automations/index.js +194 -0
  4. package/dist/automations/nodes/account.d.ts +18 -0
  5. package/dist/automations/nodes/account.js +29 -0
  6. package/dist/automations/nodes/auto-caption.d.ts +64 -0
  7. package/dist/automations/nodes/auto-caption.js +46 -0
  8. package/dist/automations/nodes/auto-post.d.ts +81 -0
  9. package/dist/automations/nodes/auto-post.js +54 -0
  10. package/dist/automations/nodes/branch.d.ts +58 -0
  11. package/dist/automations/nodes/branch.js +50 -0
  12. package/dist/automations/nodes/collect.d.ts +16 -0
  13. package/dist/automations/nodes/collect.js +56 -0
  14. package/dist/automations/nodes/compose-workflow.d.ts +21 -0
  15. package/dist/automations/nodes/compose-workflow.js +42 -0
  16. package/dist/automations/nodes/create-dm.d.ts +96 -0
  17. package/dist/automations/nodes/create-dm.js +88 -0
  18. package/dist/automations/nodes/custom-model.d.ts +19 -0
  19. package/dist/automations/nodes/custom-model.js +52 -0
  20. package/dist/automations/nodes/deduplicate.d.ts +8 -0
  21. package/dist/automations/nodes/deduplicate.js +36 -0
  22. package/dist/automations/nodes/destructure.d.ts +25 -0
  23. package/dist/automations/nodes/destructure.js +65 -0
  24. package/dist/automations/nodes/for-each.d.ts +23 -0
  25. package/dist/automations/nodes/for-each.js +84 -0
  26. package/dist/automations/nodes/generate-image.d.ts +16 -0
  27. package/dist/automations/nodes/generate-image.js +45 -0
  28. package/dist/automations/nodes/generate-video.d.ts +16 -0
  29. package/dist/automations/nodes/generate-video.js +45 -0
  30. package/dist/automations/nodes/if.d.ts +22 -0
  31. package/dist/automations/nodes/if.js +44 -0
  32. package/dist/automations/nodes/image-composer.d.ts +33 -0
  33. package/dist/automations/nodes/image-composer.js +95 -0
  34. package/dist/automations/nodes/index.d.ts +20 -0
  35. package/dist/automations/nodes/index.js +93 -0
  36. package/dist/automations/nodes/llm.d.ts +27 -0
  37. package/dist/automations/nodes/llm.js +85 -0
  38. package/dist/automations/nodes/manual-trigger.d.ts +34 -0
  39. package/dist/automations/nodes/manual-trigger.js +32 -0
  40. package/dist/automations/nodes/media.d.ts +17 -0
  41. package/dist/automations/nodes/media.js +40 -0
  42. package/dist/automations/nodes/not.d.ts +6 -0
  43. package/dist/automations/nodes/not.js +35 -0
  44. package/dist/automations/nodes/output.d.ts +30 -0
  45. package/dist/automations/nodes/output.js +32 -0
  46. package/dist/automations/nodes/random-route.d.ts +52 -0
  47. package/dist/automations/nodes/random-route.js +53 -0
  48. package/dist/automations/nodes/random.d.ts +16 -0
  49. package/dist/automations/nodes/random.js +50 -0
  50. package/dist/automations/nodes/recurrence.d.ts +69 -0
  51. package/dist/automations/nodes/recurrence.js +50 -0
  52. package/dist/automations/nodes/save-to-media.d.ts +32 -0
  53. package/dist/automations/nodes/save-to-media.js +31 -0
  54. package/dist/automations/nodes/screenshot-animation.d.ts +7 -0
  55. package/dist/automations/nodes/screenshot-animation.js +36 -0
  56. package/dist/automations/nodes/social-audio.d.ts +8 -0
  57. package/dist/automations/nodes/social-audio.js +30 -0
  58. package/dist/automations/nodes/text.d.ts +7 -0
  59. package/dist/automations/nodes/text.js +41 -0
  60. package/dist/automations/nodes/transcript.d.ts +6 -0
  61. package/dist/automations/nodes/transcript.js +46 -0
  62. package/dist/automations/nodes/types.d.ts +178 -0
  63. package/dist/automations/nodes/types.js +22 -0
  64. package/dist/automations/nodes/video-composer.d.ts +25 -0
  65. package/dist/automations/nodes/video-composer.js +71 -0
  66. package/dist/automations/nodes/video-import.d.ts +27 -0
  67. package/dist/automations/nodes/video-import.js +37 -0
  68. package/dist/automations/types.d.ts +544 -0
  69. package/dist/automations/types.js +101 -0
  70. package/dist/automations.d.ts +5 -33
  71. package/dist/automations.js +6 -647
  72. package/dist/comments.d.ts +26 -1
  73. package/dist/comments.js +3 -0
  74. package/dist/graph-controller.d.ts +194 -0
  75. package/dist/graph-controller.js +623 -0
  76. package/dist/index.d.ts +38 -9
  77. package/dist/index.js +43 -23
  78. package/dist/internal-utils.d.ts +8 -0
  79. package/dist/internal-utils.js +22 -0
  80. package/dist/media.d.ts +135 -1
  81. package/dist/nodes/account.d.ts +7 -0
  82. package/dist/nodes/account.js +29 -0
  83. package/dist/nodes/auto-caption.d.ts +17 -0
  84. package/dist/nodes/auto-caption.js +46 -0
  85. package/dist/nodes/auto-post.d.ts +21 -0
  86. package/dist/nodes/auto-post.js +54 -0
  87. package/dist/nodes/branch.d.ts +12 -0
  88. package/dist/nodes/branch.js +50 -0
  89. package/dist/nodes/collect.d.ts +6 -0
  90. package/dist/nodes/collect.js +56 -0
  91. package/dist/nodes/compose-workflow.d.ts +21 -0
  92. package/dist/nodes/compose-workflow.js +42 -0
  93. package/dist/nodes/create-dm.d.ts +40 -0
  94. package/dist/nodes/create-dm.js +88 -0
  95. package/dist/nodes/custom-model.d.ts +19 -0
  96. package/dist/nodes/custom-model.js +52 -0
  97. package/dist/nodes/deduplicate.d.ts +8 -0
  98. package/dist/nodes/deduplicate.js +36 -0
  99. package/dist/nodes/destructure.d.ts +25 -0
  100. package/dist/nodes/destructure.js +65 -0
  101. package/dist/nodes/for-each.d.ts +23 -0
  102. package/dist/nodes/for-each.js +84 -0
  103. package/dist/nodes/generate-image.d.ts +16 -0
  104. package/dist/nodes/generate-image.js +45 -0
  105. package/dist/nodes/generate-video.d.ts +16 -0
  106. package/dist/nodes/generate-video.js +45 -0
  107. package/dist/nodes/if.d.ts +22 -0
  108. package/dist/nodes/if.js +44 -0
  109. package/dist/nodes/image-composer.d.ts +14 -0
  110. package/dist/nodes/image-composer.js +95 -0
  111. package/dist/nodes/index.d.ts +20 -0
  112. package/dist/nodes/index.js +93 -0
  113. package/dist/nodes/llm.d.ts +27 -0
  114. package/dist/nodes/llm.js +85 -0
  115. package/dist/nodes/manual-trigger.d.ts +16 -0
  116. package/dist/nodes/manual-trigger.js +32 -0
  117. package/dist/nodes/media.d.ts +17 -0
  118. package/dist/nodes/media.js +40 -0
  119. package/dist/nodes/not.d.ts +6 -0
  120. package/dist/nodes/not.js +35 -0
  121. package/dist/nodes/output.d.ts +9 -0
  122. package/dist/nodes/output.js +32 -0
  123. package/dist/nodes/random-route.d.ts +3 -0
  124. package/dist/nodes/random-route.js +50 -0
  125. package/dist/nodes/random.d.ts +3 -0
  126. package/dist/nodes/random.js +48 -0
  127. package/dist/nodes/recurrence.d.ts +3 -0
  128. package/dist/nodes/recurrence.js +45 -0
  129. package/dist/nodes/save-to-media.d.ts +3 -0
  130. package/dist/nodes/save-to-media.js +26 -0
  131. package/dist/nodes/screenshot-animation.d.ts +7 -0
  132. package/dist/nodes/screenshot-animation.js +36 -0
  133. package/dist/nodes/social-audio.d.ts +3 -0
  134. package/dist/nodes/social-audio.js +26 -0
  135. package/dist/nodes/text.d.ts +3 -0
  136. package/dist/nodes/text.js +38 -0
  137. package/dist/nodes/transcript.d.ts +3 -0
  138. package/dist/nodes/transcript.js +42 -0
  139. package/dist/nodes/types.d.ts +146 -0
  140. package/dist/nodes/types.js +22 -0
  141. package/dist/nodes/video-composer.d.ts +3 -0
  142. package/dist/nodes/video-composer.js +67 -0
  143. package/dist/nodes/video-import.d.ts +3 -0
  144. package/dist/nodes/video-import.js +35 -0
  145. package/dist/org.d.ts +13 -1
  146. package/dist/ports.js +3 -9
  147. package/dist/posts.d.ts +88 -1
  148. package/dist/render/compositions/IMessageDmComposition/types.d.ts +20 -20
  149. package/dist/render/types/video.d.ts +2 -2
  150. package/dist/stats.d.ts +128 -1
  151. package/dist/tasks.d.ts +20 -1
  152. package/dist/types.d.ts +1 -2216
  153. package/dist/types.js +2 -124
  154. package/package.json +1 -1
@@ -394,7 +394,17 @@ export declare const iMessageDmPropsSchema: z.ZodObject<{
394
394
  }, "strip", z.ZodTypeAny, {
395
395
  width?: number | undefined;
396
396
  height?: number | undefined;
397
+ lightMode?: boolean | undefined;
398
+ username?: string | undefined;
397
399
  time?: string | undefined;
400
+ profilePicUrl?: string | undefined;
401
+ messages?: {
402
+ text: string;
403
+ id: string;
404
+ sender: "user" | "recipient";
405
+ imageUrl?: string | undefined;
406
+ groupWithPrevious?: boolean | undefined;
407
+ }[] | undefined;
398
408
  fps?: number | undefined;
399
409
  backgroundColor?: string | undefined;
400
410
  durationInFrames?: number | undefined;
@@ -462,13 +472,6 @@ export declare const iMessageDmPropsSchema: z.ZodObject<{
462
472
  messageTextLetterSpacing?: number | undefined;
463
473
  messageTextColor?: string | undefined;
464
474
  messageText?: string | undefined;
465
- messages?: {
466
- text: string;
467
- id: string;
468
- sender: "user" | "recipient";
469
- imageUrl?: string | undefined;
470
- groupWithPrevious?: boolean | undefined;
471
- }[] | undefined;
472
475
  messageAreaTop?: number | undefined;
473
476
  messageAreaBottom?: number | undefined;
474
477
  recipientBubbleColor?: string | undefined;
@@ -487,19 +490,16 @@ export declare const iMessageDmPropsSchema: z.ZodObject<{
487
490
  recipientBubbleLeft?: number | undefined;
488
491
  senderBubbleRight?: number | undefined;
489
492
  bubbleMaxWidth?: number | undefined;
490
- profilePicUrl?: string | undefined;
491
493
  usernameLeft?: number | undefined;
492
494
  dividerLineY?: number | undefined;
493
495
  dividerLineColor?: string | undefined;
494
496
  headerBackgroundColor?: string | undefined;
495
- lightMode?: boolean | undefined;
496
497
  headerTop?: number | undefined;
497
498
  headerBottom?: number | undefined;
498
499
  profilePicTop?: number | undefined;
499
500
  profilePicBottom?: number | undefined;
500
501
  profilePicLeft?: number | undefined;
501
502
  profilePicRight?: number | undefined;
502
- username?: string | undefined;
503
503
  usernameTop?: number | undefined;
504
504
  usernameBottom?: number | undefined;
505
505
  usernameRight?: number | undefined;
@@ -575,7 +575,17 @@ export declare const iMessageDmPropsSchema: z.ZodObject<{
575
575
  }, {
576
576
  width?: number | undefined;
577
577
  height?: number | undefined;
578
+ lightMode?: boolean | undefined;
579
+ username?: string | undefined;
578
580
  time?: string | undefined;
581
+ profilePicUrl?: string | undefined;
582
+ messages?: {
583
+ text: string;
584
+ id: string;
585
+ sender: "user" | "recipient";
586
+ imageUrl?: string | undefined;
587
+ groupWithPrevious?: boolean | undefined;
588
+ }[] | undefined;
579
589
  fps?: number | undefined;
580
590
  backgroundColor?: string | undefined;
581
591
  durationInFrames?: number | undefined;
@@ -643,13 +653,6 @@ export declare const iMessageDmPropsSchema: z.ZodObject<{
643
653
  messageTextLetterSpacing?: number | undefined;
644
654
  messageTextColor?: string | undefined;
645
655
  messageText?: string | undefined;
646
- messages?: {
647
- text: string;
648
- id: string;
649
- sender: "user" | "recipient";
650
- imageUrl?: string | undefined;
651
- groupWithPrevious?: boolean | undefined;
652
- }[] | undefined;
653
656
  messageAreaTop?: number | undefined;
654
657
  messageAreaBottom?: number | undefined;
655
658
  recipientBubbleColor?: string | undefined;
@@ -668,19 +671,16 @@ export declare const iMessageDmPropsSchema: z.ZodObject<{
668
671
  recipientBubbleLeft?: number | undefined;
669
672
  senderBubbleRight?: number | undefined;
670
673
  bubbleMaxWidth?: number | undefined;
671
- profilePicUrl?: string | undefined;
672
674
  usernameLeft?: number | undefined;
673
675
  dividerLineY?: number | undefined;
674
676
  dividerLineColor?: string | undefined;
675
677
  headerBackgroundColor?: string | undefined;
676
- lightMode?: boolean | undefined;
677
678
  headerTop?: number | undefined;
678
679
  headerBottom?: number | undefined;
679
680
  profilePicTop?: number | undefined;
680
681
  profilePicBottom?: number | undefined;
681
682
  profilePicLeft?: number | undefined;
682
683
  profilePicRight?: number | undefined;
683
- username?: string | undefined;
684
684
  usernameTop?: number | undefined;
685
685
  usernameBottom?: number | undefined;
686
686
  usernameRight?: number | undefined;
@@ -38,8 +38,8 @@ export interface VideoEditorBaseSegment {
38
38
  endTrimInputRef?: string;
39
39
  /** UI-only: helper for timing mode display - stripped before rendering */
40
40
  timeMode?: TimeMode;
41
- /** UI-only: whether this segment's input is optional (default: false = required) */
42
- optional?: boolean;
41
+ /** UI-only: whether this segment's input is required (defaults to true if not specified) */
42
+ required?: boolean;
43
43
  /** Parent segment ID for overlays */
44
44
  parentId?: string;
45
45
  /** Relative start (0-1) within parent for overlays */
package/dist/stats.d.ts CHANGED
@@ -1,5 +1,132 @@
1
1
  import { BaseClient } from './base';
2
- import type { AccountStat, PostStat, GetAccountStatsParams, GetPostStatsParams, RefreshStatsParams, RefreshStatsResponse, DailyAggregatedStat, GetDailyAggregatedStatsParams, DailyAccountStat, GetDailyAccountStatsParams, DailyPostStat, GetDailyPostStatsParams, TopAccount, GetTopAccountsParams, TopPost, GetTopPostsParams, ApiResponse } from './types';
2
+ import type { ApiResponse } from './types';
3
+ import type { AccountStat, GetAccountStatsParams } from './accounts';
4
+ import type { PostStat, GetPostStatsParams } from './posts';
5
+ export interface RefreshStatsParams {
6
+ org_group?: string;
7
+ }
8
+ export interface RefreshStatsError {
9
+ accountId: string;
10
+ username: string;
11
+ error: string;
12
+ }
13
+ export interface RefreshStatsResponse {
14
+ accounts_refreshed: number;
15
+ accounts_failed: number;
16
+ total_accounts: number;
17
+ account_stats: AccountStat[];
18
+ post_stats: PostStat[];
19
+ post_stats_count: number;
20
+ errors?: RefreshStatsError[];
21
+ }
22
+ export interface DailyAggregatedStat {
23
+ date: Date | string;
24
+ followers: number;
25
+ following: number;
26
+ views: number;
27
+ likes: number;
28
+ posts: number;
29
+ }
30
+ export interface GetDailyAggregatedStatsParams {
31
+ startDate: string;
32
+ endDate: string;
33
+ accountIds?: string[];
34
+ tag?: string;
35
+ org_group?: string;
36
+ user_group?: string;
37
+ }
38
+ export interface DailyAccountStat {
39
+ date: Date | string;
40
+ account_id: string;
41
+ followers: number;
42
+ following: number;
43
+ views: number;
44
+ likes: number;
45
+ }
46
+ export interface GetDailyAccountStatsParams {
47
+ startDate: string;
48
+ endDate: string;
49
+ accountIds?: string[];
50
+ tag?: string;
51
+ org_group?: string;
52
+ user_group?: string;
53
+ /** Filter by account phone type (e.g., 'physical_iphone', 'physical_android', 'emulated_android') */
54
+ hosts?: string[];
55
+ }
56
+ export interface DailyPostStat {
57
+ date: Date | string;
58
+ post_id: string;
59
+ account_id: string;
60
+ caption: string | null;
61
+ media_urls: string[] | null;
62
+ social_id: string | null;
63
+ account_username: string | null;
64
+ account_type: string;
65
+ views: number;
66
+ likes: number;
67
+ comments: number;
68
+ shares: number;
69
+ saves: number;
70
+ views_change: number;
71
+ likes_change: number;
72
+ comments_change: number;
73
+ shares_change: number;
74
+ saves_change: number;
75
+ }
76
+ export interface GetDailyPostStatsParams {
77
+ startDate: string;
78
+ endDate: string;
79
+ accountIds?: string[];
80
+ tag?: string;
81
+ org_group?: string;
82
+ user_group?: string;
83
+ /** Filter by account phone type (e.g., 'physical_iphone', 'physical_android', 'emulated_android') */
84
+ hosts?: string[];
85
+ /** Filter by post type */
86
+ postType?: 'video' | 'slideshow';
87
+ /** Filter by audio IDs. Use 'none' to include posts without audio. */
88
+ audioIds?: string[];
89
+ }
90
+ export interface TopAccount {
91
+ account_id: string;
92
+ username: string | null;
93
+ nick_name: string | null;
94
+ pfp_url: string | null;
95
+ type: string;
96
+ tag: string | null;
97
+ followers: number | null;
98
+ following: number | null;
99
+ views: number | null;
100
+ likes: number | null;
101
+ created_at: string;
102
+ }
103
+ export interface GetTopAccountsParams {
104
+ metric: 'followers' | 'following' | 'views' | 'likes';
105
+ limit?: number;
106
+ accountIds?: string[];
107
+ tag?: string;
108
+ org_group?: string;
109
+ user_group?: string;
110
+ }
111
+ export interface TopPost {
112
+ post_id: string;
113
+ account_id: string;
114
+ caption: string | null;
115
+ media_urls: string[] | null;
116
+ type: string;
117
+ social_id: string | null;
118
+ views: number | null;
119
+ likes: number | null;
120
+ comments: number | null;
121
+ shares: number | null;
122
+ saves: number | null;
123
+ created_at: string;
124
+ }
125
+ export interface GetTopPostsParams {
126
+ metric: 'views' | 'likes' | 'comments' | 'shares' | 'saves';
127
+ limit?: number;
128
+ postIds?: string[];
129
+ }
3
130
  /**
4
131
  * Client for managing statistics
5
132
  */
package/dist/tasks.d.ts CHANGED
@@ -1,5 +1,24 @@
1
1
  import { BaseClient } from './base';
2
- import type { Task, GetTasksParams, ApiResponse } from './types';
2
+ import type { ApiResponse } from './types';
3
+ import type { EditProfileInfo } from './accounts';
4
+ export type TaskType = 'warmup_scroll' | 'warmup_search_term' | 'warmup_search_profile' | 'edit_profile' | 'update_posts';
5
+ export interface Task {
6
+ id: string;
7
+ account_id: string;
8
+ type: TaskType;
9
+ status: string;
10
+ scheduled_time: string | null;
11
+ duration: number | null;
12
+ keywords: string | null;
13
+ edit_profile_info: EditProfileInfo | null;
14
+ created_at: string;
15
+ }
16
+ export interface GetTasksParams {
17
+ accountIds?: string[];
18
+ startDate?: string;
19
+ endDate?: string;
20
+ taskType?: TaskType;
21
+ }
3
22
  /**
4
23
  * Client for managing tasks
5
24
  */