@bubblelab/bubble-core 0.1.9 → 0.1.10

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 (186) hide show
  1. package/dist/bubble-bundle.d.ts +252 -1686
  2. package/dist/bubble-factory.d.ts.map +1 -1
  3. package/dist/bubble-factory.js +51 -19
  4. package/dist/bubble-factory.js.map +1 -1
  5. package/dist/bubble-flow/bubble-flow-class.d.ts +17 -1
  6. package/dist/bubble-flow/bubble-flow-class.d.ts.map +1 -1
  7. package/dist/bubble-flow/bubble-flow-class.js +16 -0
  8. package/dist/bubble-flow/bubble-flow-class.js.map +1 -1
  9. package/dist/bubble-flow/sample/data-analyst-flow.d.ts +1 -1
  10. package/dist/bubble-flow/sample/data-analyst-flow.d.ts.map +1 -1
  11. package/dist/bubble-flow/sample/error-ts.d.ts +1 -1
  12. package/dist/bubble-flow/sample/error-ts.d.ts.map +1 -1
  13. package/dist/bubble-flow/sample/sanitytest.d.ts +1 -1
  14. package/dist/bubble-flow/sample/sanitytest.d.ts.map +1 -1
  15. package/dist/bubble-flow/sample/simple-webhook-2.d.ts +1 -1
  16. package/dist/bubble-flow/sample/simple-webhook-2.d.ts.map +1 -1
  17. package/dist/bubble-flow/sample/simple-webhook.d.ts +1 -1
  18. package/dist/bubble-flow/sample/simple-webhook.d.ts.map +1 -1
  19. package/dist/bubble-flow/sample/simplified-data-analysis.flow.d.ts +1 -1
  20. package/dist/bubble-flow/sample/simplified-data-analysis.flow.d.ts.map +1 -1
  21. package/dist/bubble-flow/sample/slack-v0.1.d.ts +1 -1
  22. package/dist/bubble-flow/sample/slack-v0.1.d.ts.map +1 -1
  23. package/dist/bubble-flow/sample/slackagenttest.d.ts +1 -1
  24. package/dist/bubble-flow/sample/slackagenttest.d.ts.map +1 -1
  25. package/dist/bubbles/service-bubble/ai-agent.d.ts +30 -30
  26. package/dist/bubbles/service-bubble/ai-agent.d.ts.map +1 -1
  27. package/dist/bubbles/service-bubble/ai-agent.js +3 -1
  28. package/dist/bubbles/service-bubble/ai-agent.js.map +1 -1
  29. package/dist/bubbles/service-bubble/apify/actors/instagram-hashtag-scraper.d.ts +34 -34
  30. package/dist/bubbles/service-bubble/apify/actors/instagram-scraper.d.ts +42 -42
  31. package/dist/bubbles/service-bubble/apify/actors/linkedin-posts-search.d.ts +21 -21
  32. package/dist/bubbles/service-bubble/apify/actors/linkedin-profile-posts.d.ts +6 -6
  33. package/dist/bubbles/service-bubble/apify/actors/youtube-scraper.d.ts +184 -0
  34. package/dist/bubbles/service-bubble/apify/actors/youtube-scraper.d.ts.map +1 -0
  35. package/dist/bubbles/service-bubble/apify/actors/youtube-scraper.js +145 -0
  36. package/dist/bubbles/service-bubble/apify/actors/youtube-scraper.js.map +1 -0
  37. package/dist/bubbles/service-bubble/apify/actors/youtube-transcript-scraper.d.ts +52 -0
  38. package/dist/bubbles/service-bubble/apify/actors/youtube-transcript-scraper.d.ts.map +1 -0
  39. package/dist/bubbles/service-bubble/apify/actors/youtube-transcript-scraper.js +29 -0
  40. package/dist/bubbles/service-bubble/apify/actors/youtube-transcript-scraper.js.map +1 -0
  41. package/dist/bubbles/service-bubble/apify/apify-scraper.schema.d.ts +338 -109
  42. package/dist/bubbles/service-bubble/apify/apify-scraper.schema.d.ts.map +1 -1
  43. package/dist/bubbles/service-bubble/apify/apify-scraper.schema.js +16 -0
  44. package/dist/bubbles/service-bubble/apify/apify-scraper.schema.js.map +1 -1
  45. package/dist/bubbles/service-bubble/apify/apify.d.ts +10 -10
  46. package/dist/bubbles/service-bubble/apify/index.d.ts +2 -0
  47. package/dist/bubbles/service-bubble/apify/index.d.ts.map +1 -1
  48. package/dist/bubbles/service-bubble/apify/index.js +3 -0
  49. package/dist/bubbles/service-bubble/apify/index.js.map +1 -1
  50. package/dist/bubbles/service-bubble/apify/types.js +1 -2
  51. package/dist/bubbles/service-bubble/apify/types.js.map +1 -1
  52. package/dist/bubbles/service-bubble/gmail.d.ts +678 -184
  53. package/dist/bubbles/service-bubble/gmail.d.ts.map +1 -1
  54. package/dist/bubbles/service-bubble/gmail.js +435 -7
  55. package/dist/bubbles/service-bubble/gmail.js.map +1 -1
  56. package/dist/bubbles/service-bubble/google-calendar.d.ts +60 -60
  57. package/dist/bubbles/service-bubble/google-drive.d.ts +301 -72
  58. package/dist/bubbles/service-bubble/google-drive.d.ts.map +1 -1
  59. package/dist/bubbles/service-bubble/google-drive.js +65 -75
  60. package/dist/bubbles/service-bubble/google-drive.js.map +1 -1
  61. package/dist/bubbles/service-bubble/google-sheets.d.ts +76 -76
  62. package/dist/bubbles/service-bubble/hello-world.d.ts +4 -4
  63. package/dist/bubbles/service-bubble/hello-world.js +2 -2
  64. package/dist/bubbles/service-bubble/hello-world.js.map +1 -1
  65. package/dist/bubbles/service-bubble/http.d.ts +10 -10
  66. package/dist/bubbles/service-bubble/postgresql.d.ts +12 -12
  67. package/dist/bubbles/service-bubble/resend.d.ts +16 -16
  68. package/dist/bubbles/service-bubble/slack.d.ts +469 -469
  69. package/dist/bubbles/service-bubble/storage.d.ts +36 -36
  70. package/dist/bubbles/service-bubble/storage.d.ts.map +1 -1
  71. package/dist/bubbles/service-bubble/storage.js +16 -5
  72. package/dist/bubbles/service-bubble/storage.js.map +1 -1
  73. package/dist/bubbles/service-bubble/x-twitter.d.ts +814 -0
  74. package/dist/bubbles/service-bubble/x-twitter.d.ts.map +1 -0
  75. package/dist/bubbles/service-bubble/x-twitter.js +445 -0
  76. package/dist/bubbles/service-bubble/x-twitter.js.map +1 -0
  77. package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.d.ts +20 -20
  78. package/dist/bubbles/tool-bubble/chart-js-tool.d.ts +10 -10
  79. package/dist/bubbles/tool-bubble/get-bubble-details-tool.d.ts.map +1 -1
  80. package/dist/bubbles/tool-bubble/get-bubble-details-tool.js +17 -9
  81. package/dist/bubbles/tool-bubble/get-bubble-details-tool.js.map +1 -1
  82. package/dist/bubbles/tool-bubble/instagram-tool.d.ts +86 -86
  83. package/dist/bubbles/tool-bubble/linkedin-tool.d.ts +134 -134
  84. package/dist/bubbles/tool-bubble/reddit-scrape-tool.d.ts +69 -64
  85. package/dist/bubbles/tool-bubble/reddit-scrape-tool.d.ts.map +1 -1
  86. package/dist/bubbles/tool-bubble/reddit-scrape-tool.js +97 -22
  87. package/dist/bubbles/tool-bubble/reddit-scrape-tool.js.map +1 -1
  88. package/dist/bubbles/tool-bubble/research-agent-tool.d.ts +6 -6
  89. package/dist/bubbles/tool-bubble/research-agent-tool.js +4 -4
  90. package/dist/bubbles/tool-bubble/research-agent-tool.js.map +1 -1
  91. package/dist/bubbles/tool-bubble/sql-query-tool.d.ts +8 -8
  92. package/dist/bubbles/tool-bubble/tool-template.d.ts +8 -8
  93. package/dist/bubbles/tool-bubble/web-crawl-tool.d.ts +10 -10
  94. package/dist/bubbles/tool-bubble/web-extract-tool.d.ts +4 -4
  95. package/dist/bubbles/tool-bubble/web-scrape-tool.d.ts +12 -12
  96. package/dist/bubbles/tool-bubble/web-search-tool.d.ts +11 -10
  97. package/dist/bubbles/tool-bubble/web-search-tool.d.ts.map +1 -1
  98. package/dist/bubbles/tool-bubble/web-search-tool.js +5 -1
  99. package/dist/bubbles/tool-bubble/web-search-tool.js.map +1 -1
  100. package/dist/bubbles/tool-bubble/youtube-tool.d.ts +394 -0
  101. package/dist/bubbles/tool-bubble/youtube-tool.d.ts.map +1 -0
  102. package/dist/bubbles/tool-bubble/youtube-tool.js +352 -0
  103. package/dist/bubbles/tool-bubble/youtube-tool.js.map +1 -0
  104. package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.d.ts +47 -36
  105. package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.d.ts.map +1 -1
  106. package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.js +91 -65
  107. package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.js.map +1 -1
  108. package/dist/bubbles/workflow-bubble/database-analyzer.workflow.d.ts +4 -4
  109. package/dist/bubbles/workflow-bubble/generate-document.workflow.d.ts +70 -70
  110. package/dist/bubbles/workflow-bubble/parse-document.workflow.d.ts +66 -66
  111. package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts +56 -56
  112. package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts.map +1 -1
  113. package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.js.map +1 -1
  114. package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.d.ts +44 -44
  115. package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.d.ts.map +1 -1
  116. package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.js +1 -1
  117. package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.js.map +1 -1
  118. package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.d.ts +32 -32
  119. package/dist/bubbles/workflow-bubble/slack-formatter-agent.d.ts +58 -58
  120. package/dist/bubbles/workflow-bubble/slack-notifier.workflow.d.ts +18 -18
  121. package/dist/bubbles.json +69 -54
  122. package/dist/index.d.ts +4 -2
  123. package/dist/index.d.ts.map +1 -1
  124. package/dist/index.js +2 -1
  125. package/dist/index.js.map +1 -1
  126. package/dist/logging/BubbleLogger.d.ts.map +1 -1
  127. package/dist/logging/BubbleLogger.js +20 -13
  128. package/dist/logging/BubbleLogger.js.map +1 -1
  129. package/dist/logging/StreamingBubbleLogger.d.ts.map +1 -1
  130. package/dist/logging/StreamingBubbleLogger.js +5 -5
  131. package/dist/logging/StreamingBubbleLogger.js.map +1 -1
  132. package/dist/test-gm.d.ts +10 -0
  133. package/dist/test-gm.d.ts.map +1 -0
  134. package/dist/test-gm.js +95 -0
  135. package/dist/test-gm.js.map +1 -0
  136. package/dist/types/base-bubble-class.d.ts +1 -1
  137. package/dist/types/base-bubble-class.d.ts.map +1 -1
  138. package/dist/types/base-bubble-class.js +29 -21
  139. package/dist/types/base-bubble-class.js.map +1 -1
  140. package/dist/types/bubble.d.ts +1 -10
  141. package/dist/types/bubble.d.ts.map +1 -1
  142. package/dist/types/bubble.js +1 -1
  143. package/dist/types/bubble.js.map +1 -1
  144. package/dist/types/service-bubble-class.d.ts +1 -1
  145. package/dist/types/service-bubble-class.d.ts.map +1 -1
  146. package/dist/types/tool-bubble-class.d.ts +1 -1
  147. package/dist/types/tool-bubble-class.d.ts.map +1 -1
  148. package/dist/types/tool-bubble-class.js +0 -2
  149. package/dist/types/tool-bubble-class.js.map +1 -1
  150. package/dist/types/workflow-bubble-class.d.ts +1 -1
  151. package/dist/types/workflow-bubble-class.d.ts.map +1 -1
  152. package/dist/utils/agent-formatter.d.ts.map +1 -1
  153. package/dist/utils/agent-formatter.js +2 -2
  154. package/dist/utils/agent-formatter.js.map +1 -1
  155. package/dist/utils/bubbleflow-validation.d.ts.map +1 -1
  156. package/dist/utils/bubbleflow-validation.js +89 -32
  157. package/dist/utils/bubbleflow-validation.js.map +1 -1
  158. package/dist/utils/error-sanitizer.d.ts +12 -0
  159. package/dist/utils/error-sanitizer.d.ts.map +1 -0
  160. package/dist/utils/error-sanitizer.js +77 -0
  161. package/dist/utils/error-sanitizer.js.map +1 -0
  162. package/package.json +4 -4
  163. package/dist/bubble-trigger/index.d.ts +0 -2
  164. package/dist/bubble-trigger/index.d.ts.map +0 -1
  165. package/dist/bubble-trigger/index.js +0 -2
  166. package/dist/bubble-trigger/index.js.map +0 -1
  167. package/dist/bubble-trigger/types.d.ts +0 -87
  168. package/dist/bubble-trigger/types.d.ts.map +0 -1
  169. package/dist/bubble-trigger/types.js +0 -14
  170. package/dist/bubble-trigger/types.js.map +0 -1
  171. package/dist/bubbles/service-bubble/apify/api-scraper.schema.d.ts +0 -370
  172. package/dist/bubbles/service-bubble/apify/api-scraper.schema.d.ts.map +0 -1
  173. package/dist/bubbles/service-bubble/apify/api-scraper.schema.js +0 -14
  174. package/dist/bubbles/service-bubble/apify/api-scraper.schema.js.map +0 -1
  175. package/dist/bubbles/service-bubble/apify.d.ts +0 -136
  176. package/dist/bubbles/service-bubble/apify.d.ts.map +0 -1
  177. package/dist/bubbles/service-bubble/apify.js +0 -282
  178. package/dist/bubbles/service-bubble/apify.js.map +0 -1
  179. package/dist/types/ai-models.d.ts +0 -4
  180. package/dist/types/ai-models.d.ts.map +0 -1
  181. package/dist/types/ai-models.js +0 -20
  182. package/dist/types/ai-models.js.map +0 -1
  183. package/dist/types/api-scraper.schema.d.ts +0 -453
  184. package/dist/types/api-scraper.schema.d.ts.map +0 -1
  185. package/dist/types/api-scraper.schema.js +0 -160
  186. package/dist/types/api-scraper.schema.js.map +0 -1
@@ -1,370 +0,0 @@
1
- export declare const APIFY_ACTOR_SCHEMAS: {
2
- 'apify/instagram-scraper': {
3
- input: import("zod").ZodObject<{
4
- directUrls: import("zod").ZodArray<import("zod").ZodString, "many">;
5
- resultsType: import("zod").ZodDefault<import("zod").ZodEnum<["posts", "details"]>>;
6
- resultsLimit: import("zod").ZodDefault<import("zod").ZodNumber>;
7
- includeStories: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
8
- includeHighlights: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodBoolean>>;
9
- }, "strip", import("zod").ZodTypeAny, {
10
- directUrls: string[];
11
- resultsType: "posts" | "details";
12
- resultsLimit: number;
13
- includeStories?: boolean | undefined;
14
- includeHighlights?: boolean | undefined;
15
- }, {
16
- directUrls: string[];
17
- resultsType?: "posts" | "details" | undefined;
18
- resultsLimit?: number | undefined;
19
- includeStories?: boolean | undefined;
20
- includeHighlights?: boolean | undefined;
21
- }>;
22
- output: import("zod").ZodObject<{
23
- inputUrl: import("zod").ZodOptional<import("zod").ZodString>;
24
- id: import("zod").ZodOptional<import("zod").ZodString>;
25
- username: import("zod").ZodOptional<import("zod").ZodString>;
26
- url: import("zod").ZodOptional<import("zod").ZodString>;
27
- fullName: import("zod").ZodOptional<import("zod").ZodString>;
28
- biography: import("zod").ZodOptional<import("zod").ZodString>;
29
- externalUrls: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
30
- title: import("zod").ZodOptional<import("zod").ZodString>;
31
- lynx_url: import("zod").ZodOptional<import("zod").ZodString>;
32
- url: import("zod").ZodOptional<import("zod").ZodString>;
33
- link_type: import("zod").ZodOptional<import("zod").ZodString>;
34
- }, "strip", import("zod").ZodTypeAny, {
35
- title?: string | undefined;
36
- url?: string | undefined;
37
- lynx_url?: string | undefined;
38
- link_type?: string | undefined;
39
- }, {
40
- title?: string | undefined;
41
- url?: string | undefined;
42
- lynx_url?: string | undefined;
43
- link_type?: string | undefined;
44
- }>, "many">>;
45
- externalUrl: import("zod").ZodOptional<import("zod").ZodString>;
46
- externalUrlShimmed: import("zod").ZodOptional<import("zod").ZodString>;
47
- followersCount: import("zod").ZodOptional<import("zod").ZodNumber>;
48
- followsCount: import("zod").ZodOptional<import("zod").ZodNumber>;
49
- postsCount: import("zod").ZodOptional<import("zod").ZodNumber>;
50
- hasChannel: import("zod").ZodOptional<import("zod").ZodBoolean>;
51
- highlightReelCount: import("zod").ZodOptional<import("zod").ZodNumber>;
52
- isBusinessAccount: import("zod").ZodOptional<import("zod").ZodBoolean>;
53
- joinedRecently: import("zod").ZodOptional<import("zod").ZodBoolean>;
54
- businessCategoryName: import("zod").ZodOptional<import("zod").ZodString>;
55
- private: import("zod").ZodOptional<import("zod").ZodBoolean>;
56
- verified: import("zod").ZodOptional<import("zod").ZodBoolean>;
57
- profilePicUrl: import("zod").ZodOptional<import("zod").ZodString>;
58
- profilePicUrlHD: import("zod").ZodOptional<import("zod").ZodString>;
59
- igtvVideoCount: import("zod").ZodOptional<import("zod").ZodNumber>;
60
- latestIgtvVideos: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodUnknown, "many">>;
61
- relatedProfiles: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodUnknown, "many">>;
62
- latestPosts: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
63
- id: import("zod").ZodOptional<import("zod").ZodString>;
64
- type: import("zod").ZodOptional<import("zod").ZodString>;
65
- shortCode: import("zod").ZodOptional<import("zod").ZodString>;
66
- caption: import("zod").ZodOptional<import("zod").ZodString>;
67
- hashtags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
68
- mentions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
69
- url: import("zod").ZodOptional<import("zod").ZodString>;
70
- commentsCount: import("zod").ZodOptional<import("zod").ZodNumber>;
71
- dimensionsHeight: import("zod").ZodOptional<import("zod").ZodNumber>;
72
- dimensionsWidth: import("zod").ZodOptional<import("zod").ZodNumber>;
73
- displayUrl: import("zod").ZodOptional<import("zod").ZodString>;
74
- images: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
75
- videoUrl: import("zod").ZodOptional<import("zod").ZodString>;
76
- alt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
77
- likesCount: import("zod").ZodOptional<import("zod").ZodNumber>;
78
- videoViewCount: import("zod").ZodOptional<import("zod").ZodNumber>;
79
- timestamp: import("zod").ZodOptional<import("zod").ZodString>;
80
- childPosts: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodUnknown, "many">>;
81
- ownerUsername: import("zod").ZodOptional<import("zod").ZodString>;
82
- ownerId: import("zod").ZodOptional<import("zod").ZodString>;
83
- productType: import("zod").ZodOptional<import("zod").ZodString>;
84
- taggedUsers: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
85
- full_name: import("zod").ZodOptional<import("zod").ZodString>;
86
- id: import("zod").ZodOptional<import("zod").ZodString>;
87
- is_verified: import("zod").ZodOptional<import("zod").ZodBoolean>;
88
- profile_pic_url: import("zod").ZodOptional<import("zod").ZodString>;
89
- username: import("zod").ZodOptional<import("zod").ZodString>;
90
- }, "strip", import("zod").ZodTypeAny, {
91
- id?: string | undefined;
92
- full_name?: string | undefined;
93
- is_verified?: boolean | undefined;
94
- profile_pic_url?: string | undefined;
95
- username?: string | undefined;
96
- }, {
97
- id?: string | undefined;
98
- full_name?: string | undefined;
99
- is_verified?: boolean | undefined;
100
- profile_pic_url?: string | undefined;
101
- username?: string | undefined;
102
- }>, "many">>;
103
- isCommentsDisabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
104
- location: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodObject<{
105
- name: import("zod").ZodOptional<import("zod").ZodString>;
106
- id: import("zod").ZodOptional<import("zod").ZodString>;
107
- }, "strip", import("zod").ZodTypeAny, {
108
- id?: string | undefined;
109
- name?: string | undefined;
110
- }, {
111
- id?: string | undefined;
112
- name?: string | undefined;
113
- }>>>;
114
- }, "strip", import("zod").ZodTypeAny, {
115
- type?: string | undefined;
116
- id?: string | undefined;
117
- shortCode?: string | undefined;
118
- caption?: string | undefined;
119
- hashtags?: string[] | undefined;
120
- mentions?: string[] | undefined;
121
- url?: string | undefined;
122
- commentsCount?: number | undefined;
123
- dimensionsHeight?: number | undefined;
124
- dimensionsWidth?: number | undefined;
125
- displayUrl?: string | undefined;
126
- images?: string[] | undefined;
127
- videoUrl?: string | undefined;
128
- alt?: string | null | undefined;
129
- likesCount?: number | undefined;
130
- videoViewCount?: number | undefined;
131
- timestamp?: string | undefined;
132
- childPosts?: unknown[] | undefined;
133
- ownerUsername?: string | undefined;
134
- ownerId?: string | undefined;
135
- productType?: string | undefined;
136
- taggedUsers?: {
137
- id?: string | undefined;
138
- full_name?: string | undefined;
139
- is_verified?: boolean | undefined;
140
- profile_pic_url?: string | undefined;
141
- username?: string | undefined;
142
- }[] | undefined;
143
- isCommentsDisabled?: boolean | undefined;
144
- location?: {
145
- id?: string | undefined;
146
- name?: string | undefined;
147
- } | null | undefined;
148
- }, {
149
- type?: string | undefined;
150
- id?: string | undefined;
151
- shortCode?: string | undefined;
152
- caption?: string | undefined;
153
- hashtags?: string[] | undefined;
154
- mentions?: string[] | undefined;
155
- url?: string | undefined;
156
- commentsCount?: number | undefined;
157
- dimensionsHeight?: number | undefined;
158
- dimensionsWidth?: number | undefined;
159
- displayUrl?: string | undefined;
160
- images?: string[] | undefined;
161
- videoUrl?: string | undefined;
162
- alt?: string | null | undefined;
163
- likesCount?: number | undefined;
164
- videoViewCount?: number | undefined;
165
- timestamp?: string | undefined;
166
- childPosts?: unknown[] | undefined;
167
- ownerUsername?: string | undefined;
168
- ownerId?: string | undefined;
169
- productType?: string | undefined;
170
- taggedUsers?: {
171
- id?: string | undefined;
172
- full_name?: string | undefined;
173
- is_verified?: boolean | undefined;
174
- profile_pic_url?: string | undefined;
175
- username?: string | undefined;
176
- }[] | undefined;
177
- isCommentsDisabled?: boolean | undefined;
178
- location?: {
179
- id?: string | undefined;
180
- name?: string | undefined;
181
- } | null | undefined;
182
- }>, "many">>;
183
- stories: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
184
- url: import("zod").ZodOptional<import("zod").ZodString>;
185
- timestamp: import("zod").ZodOptional<import("zod").ZodString>;
186
- type: import("zod").ZodOptional<import("zod").ZodEnum<["image", "video"]>>;
187
- viewsCount: import("zod").ZodOptional<import("zod").ZodNumber>;
188
- }, "strip", import("zod").ZodTypeAny, {
189
- type?: "image" | "video" | undefined;
190
- url?: string | undefined;
191
- timestamp?: string | undefined;
192
- viewsCount?: number | undefined;
193
- }, {
194
- type?: "image" | "video" | undefined;
195
- url?: string | undefined;
196
- timestamp?: string | undefined;
197
- viewsCount?: number | undefined;
198
- }>, "many">>;
199
- highlights: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
200
- title: import("zod").ZodOptional<import("zod").ZodString>;
201
- coverUrl: import("zod").ZodOptional<import("zod").ZodString>;
202
- itemsCount: import("zod").ZodOptional<import("zod").ZodNumber>;
203
- }, "strip", import("zod").ZodTypeAny, {
204
- title?: string | undefined;
205
- coverUrl?: string | undefined;
206
- itemsCount?: number | undefined;
207
- }, {
208
- title?: string | undefined;
209
- coverUrl?: string | undefined;
210
- itemsCount?: number | undefined;
211
- }>, "many">>;
212
- }, "strip", import("zod").ZodTypeAny, {
213
- id?: string | undefined;
214
- url?: string | undefined;
215
- username?: string | undefined;
216
- inputUrl?: string | undefined;
217
- fullName?: string | undefined;
218
- biography?: string | undefined;
219
- externalUrls?: {
220
- title?: string | undefined;
221
- url?: string | undefined;
222
- lynx_url?: string | undefined;
223
- link_type?: string | undefined;
224
- }[] | undefined;
225
- externalUrl?: string | undefined;
226
- externalUrlShimmed?: string | undefined;
227
- followersCount?: number | undefined;
228
- followsCount?: number | undefined;
229
- postsCount?: number | undefined;
230
- hasChannel?: boolean | undefined;
231
- highlightReelCount?: number | undefined;
232
- isBusinessAccount?: boolean | undefined;
233
- joinedRecently?: boolean | undefined;
234
- businessCategoryName?: string | undefined;
235
- private?: boolean | undefined;
236
- verified?: boolean | undefined;
237
- profilePicUrl?: string | undefined;
238
- profilePicUrlHD?: string | undefined;
239
- igtvVideoCount?: number | undefined;
240
- latestIgtvVideos?: unknown[] | undefined;
241
- relatedProfiles?: unknown[] | undefined;
242
- latestPosts?: {
243
- type?: string | undefined;
244
- id?: string | undefined;
245
- shortCode?: string | undefined;
246
- caption?: string | undefined;
247
- hashtags?: string[] | undefined;
248
- mentions?: string[] | undefined;
249
- url?: string | undefined;
250
- commentsCount?: number | undefined;
251
- dimensionsHeight?: number | undefined;
252
- dimensionsWidth?: number | undefined;
253
- displayUrl?: string | undefined;
254
- images?: string[] | undefined;
255
- videoUrl?: string | undefined;
256
- alt?: string | null | undefined;
257
- likesCount?: number | undefined;
258
- videoViewCount?: number | undefined;
259
- timestamp?: string | undefined;
260
- childPosts?: unknown[] | undefined;
261
- ownerUsername?: string | undefined;
262
- ownerId?: string | undefined;
263
- productType?: string | undefined;
264
- taggedUsers?: {
265
- id?: string | undefined;
266
- full_name?: string | undefined;
267
- is_verified?: boolean | undefined;
268
- profile_pic_url?: string | undefined;
269
- username?: string | undefined;
270
- }[] | undefined;
271
- isCommentsDisabled?: boolean | undefined;
272
- location?: {
273
- id?: string | undefined;
274
- name?: string | undefined;
275
- } | null | undefined;
276
- }[] | undefined;
277
- stories?: {
278
- type?: "image" | "video" | undefined;
279
- url?: string | undefined;
280
- timestamp?: string | undefined;
281
- viewsCount?: number | undefined;
282
- }[] | undefined;
283
- highlights?: {
284
- title?: string | undefined;
285
- coverUrl?: string | undefined;
286
- itemsCount?: number | undefined;
287
- }[] | undefined;
288
- }, {
289
- id?: string | undefined;
290
- url?: string | undefined;
291
- username?: string | undefined;
292
- inputUrl?: string | undefined;
293
- fullName?: string | undefined;
294
- biography?: string | undefined;
295
- externalUrls?: {
296
- title?: string | undefined;
297
- url?: string | undefined;
298
- lynx_url?: string | undefined;
299
- link_type?: string | undefined;
300
- }[] | undefined;
301
- externalUrl?: string | undefined;
302
- externalUrlShimmed?: string | undefined;
303
- followersCount?: number | undefined;
304
- followsCount?: number | undefined;
305
- postsCount?: number | undefined;
306
- hasChannel?: boolean | undefined;
307
- highlightReelCount?: number | undefined;
308
- isBusinessAccount?: boolean | undefined;
309
- joinedRecently?: boolean | undefined;
310
- businessCategoryName?: string | undefined;
311
- private?: boolean | undefined;
312
- verified?: boolean | undefined;
313
- profilePicUrl?: string | undefined;
314
- profilePicUrlHD?: string | undefined;
315
- igtvVideoCount?: number | undefined;
316
- latestIgtvVideos?: unknown[] | undefined;
317
- relatedProfiles?: unknown[] | undefined;
318
- latestPosts?: {
319
- type?: string | undefined;
320
- id?: string | undefined;
321
- shortCode?: string | undefined;
322
- caption?: string | undefined;
323
- hashtags?: string[] | undefined;
324
- mentions?: string[] | undefined;
325
- url?: string | undefined;
326
- commentsCount?: number | undefined;
327
- dimensionsHeight?: number | undefined;
328
- dimensionsWidth?: number | undefined;
329
- displayUrl?: string | undefined;
330
- images?: string[] | undefined;
331
- videoUrl?: string | undefined;
332
- alt?: string | null | undefined;
333
- likesCount?: number | undefined;
334
- videoViewCount?: number | undefined;
335
- timestamp?: string | undefined;
336
- childPosts?: unknown[] | undefined;
337
- ownerUsername?: string | undefined;
338
- ownerId?: string | undefined;
339
- productType?: string | undefined;
340
- taggedUsers?: {
341
- id?: string | undefined;
342
- full_name?: string | undefined;
343
- is_verified?: boolean | undefined;
344
- profile_pic_url?: string | undefined;
345
- username?: string | undefined;
346
- }[] | undefined;
347
- isCommentsDisabled?: boolean | undefined;
348
- location?: {
349
- id?: string | undefined;
350
- name?: string | undefined;
351
- } | null | undefined;
352
- }[] | undefined;
353
- stories?: {
354
- type?: "image" | "video" | undefined;
355
- url?: string | undefined;
356
- timestamp?: string | undefined;
357
- viewsCount?: number | undefined;
358
- }[] | undefined;
359
- highlights?: {
360
- title?: string | undefined;
361
- coverUrl?: string | undefined;
362
- itemsCount?: number | undefined;
363
- }[] | undefined;
364
- }>;
365
- description: string;
366
- documentation: string;
367
- category: string;
368
- };
369
- };
370
- //# sourceMappingURL=api-scraper.schema.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"api-scraper.schema.d.ts","sourceRoot":"","sources":["../../../../src/bubbles/service-bubble/apify/api-scraper.schema.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQ/B,CAAA"}
@@ -1,14 +0,0 @@
1
- import { InstagramScraperInputSchema, InstagramScraperItemSchema } from './actors/instagram-scraper.js';
2
- // ============================================================================
3
- // ACTOR REGISTRY
4
- // ============================================================================
5
- export const APIFY_ACTOR_SCHEMAS = {
6
- 'apify/instagram-scraper': {
7
- input: InstagramScraperInputSchema,
8
- output: InstagramScraperItemSchema,
9
- description: 'Scrape Instagram profiles, posts, stories, and highlights',
10
- documentation: 'https://docs.apify.com/platform/actors/apify/instagram-scraper',
11
- category: 'social-media',
12
- },
13
- };
14
- //# sourceMappingURL=api-scraper.schema.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"api-scraper.schema.js","sourceRoot":"","sources":["../../../../src/bubbles/service-bubble/apify/api-scraper.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAGxG,+EAA+E;AAC/E,iBAAiB;AACjB,+EAA+E;AAC/E,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,yBAAyB,EAAE;QACzB,KAAK,EAAE,2BAA2B;QAClC,MAAM,EAAE,0BAA0B;QAClC,WAAW,EAAE,2DAA2D;QACxE,aAAa,EAAE,gEAAgE;QAC/E,QAAQ,EAAE,cAAc;KACzB;CACF,CAAA"}
@@ -1,136 +0,0 @@
1
- import { z } from 'zod';
2
- import { ServiceBubble } from '../../../types/service-bubble-class.js';
3
- import type { BubbleContext } from '../../../types/bubble.js';
4
- import { CredentialType } from '@bubblelab/shared-schemas';
5
- import type { ActorId, ActorOutput } from '../../../types/api-scraper.schema.js';
6
- /**
7
- * Generic Apify Bubble - Works with ANY Apify Actor
8
- *
9
- * This is a universal service bubble that can run any Apify actor.
10
- * Actor-specific logic and data transformation should be handled by Tool Bubbles.
11
- *
12
- * Examples:
13
- * - InstagramTool uses this to run 'apify/instagram-scraper'
14
- * - RedditTool could use this to run 'apify/reddit-scraper'
15
- * - LinkedInTool could use this to run 'apify/linkedin-scraper'
16
- */
17
- declare const ApifyParamsSchema: z.ZodObject<{
18
- actorId: z.ZodString;
19
- input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
20
- waitForFinish: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
21
- timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
22
- credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
23
- }, "strip", z.ZodTypeAny, {
24
- actorId: string;
25
- input: Record<string, unknown>;
26
- waitForFinish: boolean;
27
- timeout: number;
28
- credentials?: Partial<Record<CredentialType, string>> | undefined;
29
- }, {
30
- actorId: string;
31
- input: Record<string, unknown>;
32
- credentials?: Partial<Record<CredentialType, string>> | undefined;
33
- waitForFinish?: boolean | undefined;
34
- timeout?: number | undefined;
35
- }>;
36
- declare const ApifyResultSchema: z.ZodObject<{
37
- runId: z.ZodString;
38
- status: z.ZodString;
39
- datasetId: z.ZodOptional<z.ZodString>;
40
- items: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
41
- itemsCount: z.ZodOptional<z.ZodNumber>;
42
- consoleUrl: z.ZodString;
43
- success: z.ZodBoolean;
44
- error: z.ZodString;
45
- }, "strip", z.ZodTypeAny, {
46
- status: string;
47
- success: boolean;
48
- error: string;
49
- runId: string;
50
- consoleUrl: string;
51
- items?: unknown[] | undefined;
52
- itemsCount?: number | undefined;
53
- datasetId?: string | undefined;
54
- }, {
55
- status: string;
56
- success: boolean;
57
- error: string;
58
- runId: string;
59
- consoleUrl: string;
60
- items?: unknown[] | undefined;
61
- itemsCount?: number | undefined;
62
- datasetId?: string | undefined;
63
- }>;
64
- export type ApifyParamsInput = z.input<typeof ApifyParamsSchema>;
65
- export type ApifyActorInput = Record<string, unknown>;
66
- type ApifyParams = z.output<typeof ApifyParamsSchema>;
67
- type ApifyResult = z.output<typeof ApifyResultSchema>;
68
- type TypedApifyResult<T extends string> = T extends ActorId ? Omit<ApifyResult, 'items'> & {
69
- items?: ActorOutput<T>[];
70
- } : ApifyResult;
71
- export declare class ApifyBubble<T extends string = string> extends ServiceBubble<ApifyParams, TypedApifyResult<T>> {
72
- static readonly service = "apify";
73
- static readonly authType: "apikey";
74
- static readonly bubbleName = "apify";
75
- static readonly type: "service";
76
- static readonly schema: z.ZodObject<{
77
- actorId: z.ZodString;
78
- input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
79
- waitForFinish: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
80
- timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
81
- credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
82
- }, "strip", z.ZodTypeAny, {
83
- actorId: string;
84
- input: Record<string, unknown>;
85
- waitForFinish: boolean;
86
- timeout: number;
87
- credentials?: Partial<Record<CredentialType, string>> | undefined;
88
- }, {
89
- actorId: string;
90
- input: Record<string, unknown>;
91
- credentials?: Partial<Record<CredentialType, string>> | undefined;
92
- waitForFinish?: boolean | undefined;
93
- timeout?: number | undefined;
94
- }>;
95
- static readonly resultSchema: z.ZodObject<{
96
- runId: z.ZodString;
97
- status: z.ZodString;
98
- datasetId: z.ZodOptional<z.ZodString>;
99
- items: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
100
- itemsCount: z.ZodOptional<z.ZodNumber>;
101
- consoleUrl: z.ZodString;
102
- success: z.ZodBoolean;
103
- error: z.ZodString;
104
- }, "strip", z.ZodTypeAny, {
105
- status: string;
106
- success: boolean;
107
- error: string;
108
- runId: string;
109
- consoleUrl: string;
110
- items?: unknown[] | undefined;
111
- itemsCount?: number | undefined;
112
- datasetId?: string | undefined;
113
- }, {
114
- status: string;
115
- success: boolean;
116
- error: string;
117
- runId: string;
118
- consoleUrl: string;
119
- items?: unknown[] | undefined;
120
- itemsCount?: number | undefined;
121
- datasetId?: string | undefined;
122
- }>;
123
- static readonly shortDescription = "Run any Apify actor for web scraping and automation";
124
- static readonly longDescription = "\n Universal integration with Apify platform for running any Apify actor.\n\n This is a generic service bubble that can execute any Apify actor with any input.\n Actor-specific logic and data transformation should be handled by Tool Bubbles.\n\n Supported Actors (examples):\n - apify/instagram-scraper - Instagram posts, profiles, hashtags\n - apify/reddit-scraper - Reddit posts, comments, subreddits\n - apify/linkedin-scraper - LinkedIn profiles, companies, jobs\n - apify/web-scraper - Generic web scraping\n - apify/google-search-scraper - Google search results\n - And any other Apify actor available in the marketplace\n\n Features:\n - Asynchronous actor execution with optional wait for completion\n - Automatic result fetching from datasets\n - Generic result handling (works with any actor output)\n - Configurable limits and timeouts\n - Direct access to Apify console for monitoring\n\n Use cases:\n - Social media scraping (Instagram, Reddit, LinkedIn, etc.)\n - Web scraping and data extraction\n - Search engine result scraping\n - E-commerce data collection\n - Market research and competitor analysis\n\n Architecture:\n - Service Bubble (this): Generic Apify API integration\n - Tool Bubbles (e.g. InstagramTool): Domain-specific data transformation\n\n Security:\n - API key authentication (APIFY_CRED)\n - Secure credential injection at runtime\n ";
125
- static readonly alias = "scrape";
126
- constructor(params?: ApifyParamsInput, context?: BubbleContext);
127
- protected chooseCredential(): string | undefined;
128
- testCredential(): Promise<boolean>;
129
- protected performAction(context?: BubbleContext): Promise<TypedApifyResult<T>>;
130
- private startActorRun;
131
- private waitForActorCompletion;
132
- private getRunStatus;
133
- private fetchDatasetItems;
134
- }
135
- export {};
136
- //# sourceMappingURL=apify.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"apify.d.ts","sourceRoot":"","sources":["../../../src/bubbles/service-bubble/apify.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAE3E;;;;;;;;;;GAUG;AAGH,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;EA+BrB,CAAC;AAGH,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBrB,CAAC;AAGH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AACjE,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAEtD,KAAK,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,iBAAiB,CAAC,CAAC;AACtD,KAAK,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAGtD,KAAK,gBAAgB,CAAC,CAAC,SAAS,MAAM,IAAI,CAAC,SAAS,OAAO,GACvD,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,GAAG;IAAE,KAAK,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,CAAA;CAAE,GACzD,WAAW,CAAC;AAWhB,qBAAa,WAAW,CACtB,CAAC,SAAS,MAAM,GAAG,MAAM,CACzB,SAAQ,aAAa,CAAC,WAAW,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC;IACvD,MAAM,CAAC,QAAQ,CAAC,OAAO,WAAW;IAClC,MAAM,CAAC,QAAQ,CAAC,QAAQ,EAAG,QAAQ,CAAU;IAC7C,MAAM,CAAC,QAAQ,CAAC,UAAU,WAAW;IACrC,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAG,SAAS,CAAU;IAC1C,MAAM,CAAC,QAAQ,CAAC,MAAM;;;;;;;;;;;;;;;;;;OAAqB;IAC3C,MAAM,CAAC,QAAQ,CAAC,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAqB;IACjD,MAAM,CAAC,QAAQ,CAAC,gBAAgB,yDACwB;IACxD,MAAM,CAAC,QAAQ,CAAC,eAAe,o7CAmC7B;IACF,MAAM,CAAC,QAAQ,CAAC,KAAK,YAAY;gBAG/B,MAAM,GAAE,gBAMP,EACD,OAAO,CAAC,EAAE,aAAa;IAKzB,SAAS,CAAC,gBAAgB,IAAI,MAAM,GAAG,SAAS;IAQnC,cAAc,IAAI,OAAO,CAAC,OAAO,CAAC;cAoB/B,aAAa,CAC3B,OAAO,CAAC,EAAE,aAAa,GACtB,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC;YAkGjB,aAAa;YA4Bb,sBAAsB;YA2BtB,YAAY;YAuBZ,iBAAiB;CAoBhC"}