@bubblelab/bubble-core 0.1.278 → 0.1.281

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 (179) hide show
  1. package/dist/bubble-bundle.d.ts +199 -158
  2. package/dist/bubble-factory.d.ts.map +1 -1
  3. package/dist/bubble-factory.js +6 -0
  4. package/dist/bubble-factory.js.map +1 -1
  5. package/dist/bubble-trigger/index.d.ts +2 -0
  6. package/dist/bubble-trigger/index.d.ts.map +1 -0
  7. package/dist/bubble-trigger/index.js +2 -0
  8. package/dist/bubble-trigger/index.js.map +1 -0
  9. package/dist/bubble-trigger/types.d.ts +87 -0
  10. package/dist/bubble-trigger/types.d.ts.map +1 -0
  11. package/dist/bubble-trigger/types.js +14 -0
  12. package/dist/bubble-trigger/types.js.map +1 -0
  13. package/dist/bubbles/service-bubble/agi-inc.d.ts +20 -20
  14. package/dist/bubbles/service-bubble/ai-agent.d.ts +74 -74
  15. package/dist/bubbles/service-bubble/airtable.d.ts +76 -76
  16. package/dist/bubbles/service-bubble/apify/actors/app-rankings-scraper.d.ts +6 -6
  17. package/dist/bubbles/service-bubble/apify/actors/instagram-hashtag-scraper.d.ts +2 -2
  18. package/dist/bubbles/service-bubble/apify/actors/instagram-scraper.d.ts +8 -8
  19. package/dist/bubbles/service-bubble/apify/actors/linkedin-jobs-scraper.d.ts +2 -2
  20. package/dist/bubbles/service-bubble/apify/actors/linkedin-posts-search.d.ts +22 -22
  21. package/dist/bubbles/service-bubble/apify/actors/linkedin-profile-detail.d.ts +38 -38
  22. package/dist/bubbles/service-bubble/apify/actors/linkedin-profile-posts.d.ts +52 -52
  23. package/dist/bubbles/service-bubble/apify/actors/tiktok-scraper.d.ts +6 -6
  24. package/dist/bubbles/service-bubble/apify/actors/twitter-scraper.d.ts +12 -12
  25. package/dist/bubbles/service-bubble/apify/actors/youtube-scraper.d.ts +12 -12
  26. package/dist/bubbles/service-bubble/apify/apify-scraper.schema.d.ts +132 -132
  27. package/dist/bubbles/service-bubble/apify/apify.d.ts +18 -18
  28. package/dist/bubbles/service-bubble/asana/asana.d.ts +1 -1
  29. package/dist/bubbles/service-bubble/asana/asana.schema.d.ts +1 -1
  30. package/dist/bubbles/service-bubble/ashby/ashby.d.ts +20 -20
  31. package/dist/bubbles/service-bubble/ashby/ashby.schema.d.ts +28 -28
  32. package/dist/bubbles/service-bubble/assembled/assembled.d.ts +6 -6
  33. package/dist/bubbles/service-bubble/assembled/assembled.schema.d.ts +6 -6
  34. package/dist/bubbles/service-bubble/attio/attio.d.ts +6 -6
  35. package/dist/bubbles/service-bubble/attio/attio.schema.d.ts +6 -6
  36. package/dist/bubbles/service-bubble/browserbase/browserbase.d.ts +1 -1
  37. package/dist/bubbles/service-bubble/browserbase/browserbase.schema.d.ts +1 -1
  38. package/dist/bubbles/service-bubble/clerk/clerk.d.ts +690 -0
  39. package/dist/bubbles/service-bubble/clerk/clerk.d.ts.map +1 -0
  40. package/dist/bubbles/service-bubble/clerk/clerk.js +579 -0
  41. package/dist/bubbles/service-bubble/clerk/clerk.js.map +1 -0
  42. package/dist/bubbles/service-bubble/clerk/clerk.schema.d.ts +653 -0
  43. package/dist/bubbles/service-bubble/clerk/clerk.schema.d.ts.map +1 -0
  44. package/dist/bubbles/service-bubble/clerk/clerk.schema.js +460 -0
  45. package/dist/bubbles/service-bubble/clerk/clerk.schema.js.map +1 -0
  46. package/dist/bubbles/service-bubble/clerk/index.d.ts +3 -0
  47. package/dist/bubbles/service-bubble/clerk/index.d.ts.map +1 -0
  48. package/dist/bubbles/service-bubble/clerk/index.js +3 -0
  49. package/dist/bubbles/service-bubble/clerk/index.js.map +1 -0
  50. package/dist/bubbles/service-bubble/crustdata/crustdata.d.ts +4 -4
  51. package/dist/bubbles/service-bubble/crustdata/crustdata.schema.d.ts +8 -8
  52. package/dist/bubbles/service-bubble/discord/discord.d.ts +12 -12
  53. package/dist/bubbles/service-bubble/discord/discord.schema.d.ts +12 -12
  54. package/dist/bubbles/service-bubble/firecrawl.d.ts +330 -330
  55. package/dist/bubbles/service-bubble/followupboss.d.ts +4 -4
  56. package/dist/bubbles/service-bubble/github.d.ts +60 -60
  57. package/dist/bubbles/service-bubble/gmail.d.ts +164 -164
  58. package/dist/bubbles/service-bubble/google-calendar.d.ts +6 -6
  59. package/dist/bubbles/service-bubble/google-drive.d.ts +4 -4
  60. package/dist/bubbles/service-bubble/google-sheets.d.ts +1811 -0
  61. package/dist/bubbles/service-bubble/google-sheets.d.ts.map +1 -0
  62. package/dist/bubbles/service-bubble/google-sheets.js +904 -0
  63. package/dist/bubbles/service-bubble/google-sheets.js.map +1 -0
  64. package/dist/bubbles/service-bubble/http.d.ts +6 -6
  65. package/dist/bubbles/service-bubble/hubspot/hubspot.d.ts +2 -2
  66. package/dist/bubbles/service-bubble/hubspot/hubspot.schema.d.ts +2 -2
  67. package/dist/bubbles/service-bubble/insforge-db.d.ts +8 -8
  68. package/dist/bubbles/service-bubble/jira/jira.d.ts +30 -30
  69. package/dist/bubbles/service-bubble/jira/jira.schema.d.ts +36 -36
  70. package/dist/bubbles/service-bubble/looker/index.d.ts +3 -0
  71. package/dist/bubbles/service-bubble/looker/index.d.ts.map +1 -0
  72. package/dist/bubbles/service-bubble/looker/index.js +3 -0
  73. package/dist/bubbles/service-bubble/looker/index.js.map +1 -0
  74. package/dist/bubbles/service-bubble/looker/looker.d.ts +768 -0
  75. package/dist/bubbles/service-bubble/looker/looker.d.ts.map +1 -0
  76. package/dist/bubbles/service-bubble/looker/looker.js +319 -0
  77. package/dist/bubbles/service-bubble/looker/looker.js.map +1 -0
  78. package/dist/bubbles/service-bubble/looker/looker.schema.d.ts +735 -0
  79. package/dist/bubbles/service-bubble/looker/looker.schema.d.ts.map +1 -0
  80. package/dist/bubbles/service-bubble/looker/looker.schema.js +264 -0
  81. package/dist/bubbles/service-bubble/looker/looker.schema.js.map +1 -0
  82. package/dist/bubbles/service-bubble/metabase/index.d.ts +4 -0
  83. package/dist/bubbles/service-bubble/metabase/index.d.ts.map +1 -0
  84. package/dist/bubbles/service-bubble/metabase/index.js +4 -0
  85. package/dist/bubbles/service-bubble/metabase/index.js.map +1 -0
  86. package/dist/bubbles/service-bubble/metabase/metabase.d.ts +746 -0
  87. package/dist/bubbles/service-bubble/metabase/metabase.d.ts.map +1 -0
  88. package/dist/bubbles/service-bubble/metabase/metabase.js +221 -0
  89. package/dist/bubbles/service-bubble/metabase/metabase.js.map +1 -0
  90. package/dist/bubbles/service-bubble/metabase/metabase.schema.d.ts +1125 -0
  91. package/dist/bubbles/service-bubble/metabase/metabase.schema.d.ts.map +1 -0
  92. package/dist/bubbles/service-bubble/metabase/metabase.schema.js +222 -0
  93. package/dist/bubbles/service-bubble/metabase/metabase.schema.js.map +1 -0
  94. package/dist/bubbles/service-bubble/metabase/metabase.utils.d.ts +15 -0
  95. package/dist/bubbles/service-bubble/metabase/metabase.utils.d.ts.map +1 -0
  96. package/dist/bubbles/service-bubble/metabase/metabase.utils.js +32 -0
  97. package/dist/bubbles/service-bubble/metabase/metabase.utils.js.map +1 -0
  98. package/dist/bubbles/service-bubble/notion/notion.d.ts +168 -168
  99. package/dist/bubbles/service-bubble/notion/property-schemas.d.ts +16 -16
  100. package/dist/bubbles/service-bubble/postgresql.d.ts +8 -8
  101. package/dist/bubbles/service-bubble/posthog/posthog.d.ts +10 -10
  102. package/dist/bubbles/service-bubble/posthog/posthog.schema.d.ts +14 -14
  103. package/dist/bubbles/service-bubble/pylon/index.d.ts +3 -0
  104. package/dist/bubbles/service-bubble/pylon/index.d.ts.map +1 -0
  105. package/dist/bubbles/service-bubble/pylon/index.js +3 -0
  106. package/dist/bubbles/service-bubble/pylon/index.js.map +1 -0
  107. package/dist/bubbles/service-bubble/pylon/pylon.d.ts +435 -0
  108. package/dist/bubbles/service-bubble/pylon/pylon.d.ts.map +1 -0
  109. package/dist/bubbles/service-bubble/pylon/pylon.js +375 -0
  110. package/dist/bubbles/service-bubble/pylon/pylon.js.map +1 -0
  111. package/dist/bubbles/service-bubble/pylon/pylon.schema.d.ts +408 -0
  112. package/dist/bubbles/service-bubble/pylon/pylon.schema.d.ts.map +1 -0
  113. package/dist/bubbles/service-bubble/pylon/pylon.schema.js +249 -0
  114. package/dist/bubbles/service-bubble/pylon/pylon.schema.js.map +1 -0
  115. package/dist/bubbles/service-bubble/resend.d.ts +12 -12
  116. package/dist/bubbles/service-bubble/slack/slack.d.ts +392 -392
  117. package/dist/bubbles/service-bubble/slack.d.ts +5869 -0
  118. package/dist/bubbles/service-bubble/slack.d.ts.map +1 -0
  119. package/dist/bubbles/service-bubble/slack.js +1536 -0
  120. package/dist/bubbles/service-bubble/slack.js.map +1 -0
  121. package/dist/bubbles/service-bubble/snowflake/snowflake.d.ts +4 -4
  122. package/dist/bubbles/service-bubble/snowflake/snowflake.schema.d.ts +4 -4
  123. package/dist/bubbles/service-bubble/sortly/sortly.d.ts +36 -36
  124. package/dist/bubbles/service-bubble/sortly/sortly.schema.d.ts +40 -40
  125. package/dist/bubbles/service-bubble/stripe/stripe.d.ts +24 -24
  126. package/dist/bubbles/service-bubble/stripe/stripe.schema.d.ts +28 -28
  127. package/dist/bubbles/service-bubble/xero/xero.d.ts +2 -2
  128. package/dist/bubbles/service-bubble/xero/xero.schema.d.ts +2 -2
  129. package/dist/bubbles/service-bubble/zendesk/zendesk.d.ts +20 -20
  130. package/dist/bubbles/service-bubble/zendesk/zendesk.schema.d.ts +20 -20
  131. package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.d.ts +6 -6
  132. package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.schema.d.ts +8 -8
  133. package/dist/bubbles/tool-bubble/app-rankings-tool.d.ts +8 -8
  134. package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.d.ts +4 -4
  135. package/dist/bubbles/tool-bubble/chart-js-tool.d.ts +4 -4
  136. package/dist/bubbles/tool-bubble/company-enrichment-tool.d.ts +20 -20
  137. package/dist/bubbles/tool-bubble/linkedin-connection-tool/index.d.ts +3 -0
  138. package/dist/bubbles/tool-bubble/linkedin-connection-tool/index.d.ts.map +1 -0
  139. package/dist/bubbles/tool-bubble/linkedin-connection-tool/index.js +3 -0
  140. package/dist/bubbles/tool-bubble/linkedin-connection-tool/index.js.map +1 -0
  141. package/dist/bubbles/tool-bubble/linkedin-connection-tool/linkedin-connection-tool.d.ts +160 -0
  142. package/dist/bubbles/tool-bubble/linkedin-connection-tool/linkedin-connection-tool.d.ts.map +1 -0
  143. package/dist/bubbles/tool-bubble/linkedin-connection-tool/linkedin-connection-tool.js +706 -0
  144. package/dist/bubbles/tool-bubble/linkedin-connection-tool/linkedin-connection-tool.js.map +1 -0
  145. package/dist/bubbles/tool-bubble/linkedin-connection-tool/linkedin-connection-tool.schema.d.ts +93 -0
  146. package/dist/bubbles/tool-bubble/linkedin-connection-tool/linkedin-connection-tool.schema.d.ts.map +1 -0
  147. package/dist/bubbles/tool-bubble/linkedin-connection-tool/linkedin-connection-tool.schema.js +50 -0
  148. package/dist/bubbles/tool-bubble/linkedin-connection-tool/linkedin-connection-tool.schema.js.map +1 -0
  149. package/dist/bubbles/tool-bubble/linkedin-tool.d.ts +384 -384
  150. package/dist/bubbles/tool-bubble/people-search-tool.d.ts +44 -44
  151. package/dist/bubbles/tool-bubble/reddit-scrape-tool.d.ts +10 -10
  152. package/dist/bubbles/tool-bubble/research-agent-tool.d.ts +4 -4
  153. package/dist/bubbles/tool-bubble/sql-query-tool.d.ts +4 -4
  154. package/dist/bubbles/tool-bubble/tiktok-tool.d.ts +60 -60
  155. package/dist/bubbles/tool-bubble/twitter-tool.d.ts +134 -134
  156. package/dist/bubbles/tool-bubble/yc-scraper-tool.d.ts +8 -8
  157. package/dist/bubbles/tool-bubble/youtube-tool.d.ts +20 -20
  158. package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.d.ts +114 -0
  159. package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.d.ts.map +1 -0
  160. package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.js +777 -0
  161. package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.js.map +1 -0
  162. package/dist/bubbles/workflow-bubble/generate-document.workflow.d.ts +12 -12
  163. package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts +8 -8
  164. package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.d.ts +2 -2
  165. package/dist/bubbles/workflow-bubble/slack-formatter-agent.d.ts +34 -34
  166. package/dist/bubbles.json +1843 -2
  167. package/dist/index.d.ts +2 -0
  168. package/dist/index.d.ts.map +1 -1
  169. package/dist/index.js +2 -0
  170. package/dist/index.js.map +1 -1
  171. package/dist/types/ai-models.d.ts +4 -0
  172. package/dist/types/ai-models.d.ts.map +1 -0
  173. package/dist/types/ai-models.js +16 -0
  174. package/dist/types/ai-models.js.map +1 -0
  175. package/dist/utils/param-helper.d.ts +2 -0
  176. package/dist/utils/param-helper.d.ts.map +1 -0
  177. package/dist/utils/param-helper.js +5 -0
  178. package/dist/utils/param-helper.js.map +1 -0
  179. package/package.json +2 -2
@@ -17,12 +17,12 @@ declare const YouTubeVideoSchema: z.ZodObject<{
17
17
  comments: z.ZodNullable<z.ZodNumber>;
18
18
  thumbnail: z.ZodNullable<z.ZodString>;
19
19
  }, "strip", z.ZodTypeAny, {
20
- duration: string | null;
21
20
  description: string | null;
22
21
  title: string | null;
23
22
  date: string | null;
24
- id: string | null;
25
23
  url: string | null;
24
+ duration: string | null;
25
+ id: string | null;
26
26
  thumbnail: string | null;
27
27
  comments: number | null;
28
28
  viewCount: number | null;
@@ -31,12 +31,12 @@ declare const YouTubeVideoSchema: z.ZodObject<{
31
31
  channelUrl: string | null;
32
32
  subscribers: number | null;
33
33
  }, {
34
- duration: string | null;
35
34
  description: string | null;
36
35
  title: string | null;
37
36
  date: string | null;
38
- id: string | null;
39
37
  url: string | null;
38
+ duration: string | null;
39
+ id: string | null;
40
40
  thumbnail: string | null;
41
41
  comments: number | null;
42
42
  viewCount: number | null;
@@ -103,12 +103,12 @@ declare const YouTubeToolResultSchema: z.ZodObject<{
103
103
  comments: z.ZodNullable<z.ZodNumber>;
104
104
  thumbnail: z.ZodNullable<z.ZodString>;
105
105
  }, "strip", z.ZodTypeAny, {
106
- duration: string | null;
107
106
  description: string | null;
108
107
  title: string | null;
109
108
  date: string | null;
110
- id: string | null;
111
109
  url: string | null;
110
+ duration: string | null;
111
+ id: string | null;
112
112
  thumbnail: string | null;
113
113
  comments: number | null;
114
114
  viewCount: number | null;
@@ -117,12 +117,12 @@ declare const YouTubeToolResultSchema: z.ZodObject<{
117
117
  channelUrl: string | null;
118
118
  subscribers: number | null;
119
119
  }, {
120
- duration: string | null;
121
120
  description: string | null;
122
121
  title: string | null;
123
122
  date: string | null;
124
- id: string | null;
125
123
  url: string | null;
124
+ duration: string | null;
125
+ id: string | null;
126
126
  thumbnail: string | null;
127
127
  comments: number | null;
128
128
  viewCount: number | null;
@@ -154,12 +154,12 @@ declare const YouTubeToolResultSchema: z.ZodObject<{
154
154
  operation: "searchVideos" | "getTranscript" | "scrapeChannel";
155
155
  totalResults: number;
156
156
  videos?: {
157
- duration: string | null;
158
157
  description: string | null;
159
158
  title: string | null;
160
159
  date: string | null;
161
- id: string | null;
162
160
  url: string | null;
161
+ duration: string | null;
162
+ id: string | null;
163
163
  thumbnail: string | null;
164
164
  comments: number | null;
165
165
  viewCount: number | null;
@@ -180,12 +180,12 @@ declare const YouTubeToolResultSchema: z.ZodObject<{
180
180
  operation: "searchVideos" | "getTranscript" | "scrapeChannel";
181
181
  totalResults: number;
182
182
  videos?: {
183
- duration: string | null;
184
183
  description: string | null;
185
184
  title: string | null;
186
185
  date: string | null;
187
- id: string | null;
188
186
  url: string | null;
187
+ duration: string | null;
188
+ id: string | null;
189
189
  thumbnail: string | null;
190
190
  comments: number | null;
191
191
  viewCount: number | null;
@@ -261,12 +261,12 @@ export declare class YouTubeTool extends ToolBubble<YouTubeToolParams, YouTubeTo
261
261
  comments: z.ZodNullable<z.ZodNumber>;
262
262
  thumbnail: z.ZodNullable<z.ZodString>;
263
263
  }, "strip", z.ZodTypeAny, {
264
- duration: string | null;
265
264
  description: string | null;
266
265
  title: string | null;
267
266
  date: string | null;
268
- id: string | null;
269
267
  url: string | null;
268
+ duration: string | null;
269
+ id: string | null;
270
270
  thumbnail: string | null;
271
271
  comments: number | null;
272
272
  viewCount: number | null;
@@ -275,12 +275,12 @@ export declare class YouTubeTool extends ToolBubble<YouTubeToolParams, YouTubeTo
275
275
  channelUrl: string | null;
276
276
  subscribers: number | null;
277
277
  }, {
278
- duration: string | null;
279
278
  description: string | null;
280
279
  title: string | null;
281
280
  date: string | null;
282
- id: string | null;
283
281
  url: string | null;
282
+ duration: string | null;
283
+ id: string | null;
284
284
  thumbnail: string | null;
285
285
  comments: number | null;
286
286
  viewCount: number | null;
@@ -312,12 +312,12 @@ export declare class YouTubeTool extends ToolBubble<YouTubeToolParams, YouTubeTo
312
312
  operation: "searchVideos" | "getTranscript" | "scrapeChannel";
313
313
  totalResults: number;
314
314
  videos?: {
315
- duration: string | null;
316
315
  description: string | null;
317
316
  title: string | null;
318
317
  date: string | null;
319
- id: string | null;
320
318
  url: string | null;
319
+ duration: string | null;
320
+ id: string | null;
321
321
  thumbnail: string | null;
322
322
  comments: number | null;
323
323
  viewCount: number | null;
@@ -338,12 +338,12 @@ export declare class YouTubeTool extends ToolBubble<YouTubeToolParams, YouTubeTo
338
338
  operation: "searchVideos" | "getTranscript" | "scrapeChannel";
339
339
  totalResults: number;
340
340
  videos?: {
341
- duration: string | null;
342
341
  description: string | null;
343
342
  title: string | null;
344
343
  date: string | null;
345
- id: string | null;
346
344
  url: string | null;
345
+ duration: string | null;
346
+ id: string | null;
347
347
  thumbnail: string | null;
348
348
  comments: number | null;
349
349
  viewCount: number | null;
@@ -0,0 +1,114 @@
1
+ /**
2
+ * SIMPLE BUBBLEFLOW GENERATOR WORKFLOW
3
+ *
4
+ * A simplified BubbleFlow generator that uses AI agent with tools to generate
5
+ * and validate BubbleFlow code from natural language prompts.
6
+ *
7
+ * Much simpler than the complex workflow - just AI + validation tool!
8
+ */
9
+ import { z } from 'zod';
10
+ import { WorkflowBubble } from '../../types/workflow-bubble-class.js';
11
+ import type { BubbleContext } from '../../types/bubble.js';
12
+ import { CredentialType } from '@bubblelab/shared-schemas';
13
+ import { type StreamingCallback } from '../service-bubble/ai-agent.js';
14
+ /**
15
+ * Parameters schema for the simple BubbleFlow generator
16
+ */
17
+ declare const BubbleFlowGeneratorParamsSchema: z.ZodObject<{
18
+ prompt: z.ZodString;
19
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
20
+ }, "strip", z.ZodTypeAny, {
21
+ prompt: string;
22
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
23
+ }, {
24
+ prompt: string;
25
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
26
+ }>;
27
+ /**
28
+ * Result schema
29
+ */
30
+ declare const BubbleFlowGeneratorResultSchema: z.ZodObject<{
31
+ generatedCode: z.ZodString;
32
+ isValid: z.ZodBoolean;
33
+ success: z.ZodBoolean;
34
+ error: z.ZodString;
35
+ toolCalls: z.ZodArray<z.ZodAny, "many">;
36
+ summary: z.ZodDefault<z.ZodString>;
37
+ inputsSchema: z.ZodDefault<z.ZodString>;
38
+ }, "strip", z.ZodTypeAny, {
39
+ success: boolean;
40
+ error: string;
41
+ toolCalls: any[];
42
+ summary: string;
43
+ generatedCode: string;
44
+ isValid: boolean;
45
+ inputsSchema: string;
46
+ }, {
47
+ success: boolean;
48
+ error: string;
49
+ toolCalls: any[];
50
+ generatedCode: string;
51
+ isValid: boolean;
52
+ summary?: string | undefined;
53
+ inputsSchema?: string | undefined;
54
+ }>;
55
+ type BubbleFlowGeneratorParams = z.output<typeof BubbleFlowGeneratorParamsSchema>;
56
+ type BubbleFlowGeneratorResult = z.output<typeof BubbleFlowGeneratorResultSchema>;
57
+ /**
58
+ * Simple BubbleFlow Generator using AI agent with tools
59
+ */
60
+ export declare class BubbleFlowGeneratorWorkflow extends WorkflowBubble<BubbleFlowGeneratorParams, BubbleFlowGeneratorResult> {
61
+ static readonly type: "workflow";
62
+ static readonly bubbleName = "bubbleflow-generator";
63
+ static readonly schema: z.ZodObject<{
64
+ prompt: z.ZodString;
65
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
66
+ }, "strip", z.ZodTypeAny, {
67
+ prompt: string;
68
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
69
+ }, {
70
+ prompt: string;
71
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
72
+ }>;
73
+ static readonly resultSchema: z.ZodObject<{
74
+ generatedCode: z.ZodString;
75
+ isValid: z.ZodBoolean;
76
+ success: z.ZodBoolean;
77
+ error: z.ZodString;
78
+ toolCalls: z.ZodArray<z.ZodAny, "many">;
79
+ summary: z.ZodDefault<z.ZodString>;
80
+ inputsSchema: z.ZodDefault<z.ZodString>;
81
+ }, "strip", z.ZodTypeAny, {
82
+ success: boolean;
83
+ error: string;
84
+ toolCalls: any[];
85
+ summary: string;
86
+ generatedCode: string;
87
+ isValid: boolean;
88
+ inputsSchema: string;
89
+ }, {
90
+ success: boolean;
91
+ error: string;
92
+ toolCalls: any[];
93
+ generatedCode: string;
94
+ isValid: boolean;
95
+ summary?: string | undefined;
96
+ inputsSchema?: string | undefined;
97
+ }>;
98
+ static readonly shortDescription = "Generate BubbleFlow code from natural language";
99
+ static readonly longDescription = "\n Simple BubbleFlow generator that uses AI with validation tools.\n \n Just provide a natural language prompt describing what you want your BubbleFlow to do,\n and it will generate complete TypeScript code with proper validation.\n \n Example prompts:\n - \"Create a flow that queries my database and sends results to Slack\"\n - \"Build a workflow that processes user data with AI and stores it\"\n - \"Make a flow that analyzes text and generates a summary\"\n ";
100
+ static readonly alias = "generate-flow";
101
+ private bubbleFactory;
102
+ constructor(params: z.input<typeof BubbleFlowGeneratorParamsSchema>, context?: BubbleContext);
103
+ private runValidationAgent;
104
+ private runSummarizeAgent;
105
+ private createSystemPrompt;
106
+ private createStreamingSystemPrompt;
107
+ protected performAction(context?: BubbleContext): Promise<BubbleFlowGeneratorResult>;
108
+ /**
109
+ * Execute the workflow with streaming support for real-time code generation feedback
110
+ */
111
+ actionWithStreaming(streamingCallback: StreamingCallback, context?: BubbleContext): Promise<BubbleFlowGeneratorResult>;
112
+ }
113
+ export {};
114
+ //# sourceMappingURL=bubbleflow-generator.workflow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bubbleflow-generator.workflow.d.ts","sourceRoot":"","sources":["../../../src/bubbles/workflow-bubble/bubbleflow-generator.workflow.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AACtE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,+BAA+B,CAAC;AAiCvC;;GAEG;AACH,QAAA,MAAM,+BAA+B;;;;;;;;;EAUnC,CAAC;AAEH;;GAEG;AACH,QAAA,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;EAgBnC,CAAC;AAEH,KAAK,yBAAyB,GAAG,CAAC,CAAC,MAAM,CACvC,OAAO,+BAA+B,CACvC,CAAC;AACF,KAAK,yBAAyB,GAAG,CAAC,CAAC,MAAM,CACvC,OAAO,+BAA+B,CACvC,CAAC;AA0DF;;GAEG;AACH,qBAAa,2BAA4B,SAAQ,cAAc,CAC7D,yBAAyB,EACzB,yBAAyB,CAC1B;IACC,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAG,UAAU,CAAU;IAC3C,MAAM,CAAC,QAAQ,CAAC,UAAU,0BAA0B;IACpD,MAAM,CAAC,QAAQ,CAAC,MAAM;;;;;;;;;OAAmC;IACzD,MAAM,CAAC,QAAQ,CAAC,YAAY;;;;;;;;;;;;;;;;;;;;;;;;OAAmC;IAC/D,MAAM,CAAC,QAAQ,CAAC,gBAAgB,oDACmB;IACnD,MAAM,CAAC,QAAQ,CAAC,eAAe,kfAU7B;IACF,MAAM,CAAC,QAAQ,CAAC,KAAK,mBAAmB;IAExC,OAAO,CAAC,aAAa,CAAgB;gBAGnC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,EACvD,OAAO,CAAC,EAAE,aAAa;YAMX,kBAAkB;YAmHlB,iBAAiB;IAkF/B,OAAO,CAAC,kBAAkB;IAmB1B,OAAO,CAAC,2BAA2B;cAmBnB,aAAa,CAC3B,OAAO,CAAC,EAAE,aAAa,GACtB,OAAO,CAAC,yBAAyB,CAAC;IAiPrC;;OAEG;IACU,mBAAmB,CAC9B,iBAAiB,EAAE,iBAAiB,EACpC,OAAO,CAAC,EAAE,aAAa,GACtB,OAAO,CAAC,yBAAyB,CAAC;CAiXtC"}