@bubblelab/bubble-core 0.1.12 → 0.1.14

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 (72) hide show
  1. package/dist/bubble-bundle.d.ts +122 -99
  2. package/dist/bubble-factory.d.ts +2 -3
  3. package/dist/bubble-factory.d.ts.map +1 -1
  4. package/dist/bubble-factory.js +23 -96
  5. package/dist/bubble-factory.js.map +1 -1
  6. package/dist/bubbles/service-bubble/agi-inc.d.ts +112 -112
  7. package/dist/bubbles/service-bubble/ai-agent.d.ts +62 -62
  8. package/dist/bubbles/service-bubble/airtable.d.ts +152 -152
  9. package/dist/bubbles/service-bubble/apify/apify.d.ts +26 -26
  10. package/dist/bubbles/service-bubble/browserbase/browserbase.d.ts +51 -51
  11. package/dist/bubbles/service-bubble/eleven-labs.d.ts +52 -52
  12. package/dist/bubbles/service-bubble/firecrawl.d.ts +202 -202
  13. package/dist/bubbles/service-bubble/followupboss.d.ts +260 -260
  14. package/dist/bubbles/service-bubble/github.d.ts +168 -168
  15. package/dist/bubbles/service-bubble/gmail.d.ts +352 -352
  16. package/dist/bubbles/service-bubble/google-calendar.d.ts +148 -148
  17. package/dist/bubbles/service-bubble/google-drive.d.ts +130 -130
  18. package/dist/bubbles/service-bubble/google-drive.d.ts.map +1 -1
  19. package/dist/bubbles/service-bubble/google-drive.js +55 -17
  20. package/dist/bubbles/service-bubble/google-drive.js.map +1 -1
  21. package/dist/bubbles/service-bubble/google-sheets/google-sheets.d.ts +62 -62
  22. package/dist/bubbles/service-bubble/hello-world.d.ts +4 -4
  23. package/dist/bubbles/service-bubble/http.d.ts +16 -16
  24. package/dist/bubbles/service-bubble/insforge-db.d.ts +18 -18
  25. package/dist/bubbles/service-bubble/notion/notion.d.ts +152 -152
  26. package/dist/bubbles/service-bubble/postgresql.d.ts +18 -18
  27. package/dist/bubbles/service-bubble/resend.d.ts +20 -20
  28. package/dist/bubbles/service-bubble/slack.d.ts +318 -318
  29. package/dist/bubbles/service-bubble/storage.d.ts +40 -40
  30. package/dist/bubbles/service-bubble/telegram.d.ts +256 -256
  31. package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.d.ts +33 -33
  32. package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.d.ts +4 -4
  33. package/dist/bubbles/tool-bubble/chart-js-tool.d.ts +4 -4
  34. package/dist/bubbles/tool-bubble/code-edit-tool.d.ts +4 -4
  35. package/dist/bubbles/tool-bubble/get-bubble-details-tool.d.ts +4 -4
  36. package/dist/bubbles/tool-bubble/get-trigger-detail-tool.d.ts +146 -0
  37. package/dist/bubbles/tool-bubble/get-trigger-detail-tool.d.ts.map +1 -0
  38. package/dist/bubbles/tool-bubble/get-trigger-detail-tool.js +128 -0
  39. package/dist/bubbles/tool-bubble/get-trigger-detail-tool.js.map +1 -0
  40. package/dist/bubbles/tool-bubble/google-maps-tool.d.ts +8 -8
  41. package/dist/bubbles/tool-bubble/instagram-tool.d.ts +8 -8
  42. package/dist/bubbles/tool-bubble/linkedin-tool.d.ts +294 -294
  43. package/dist/bubbles/tool-bubble/list-bubbles-tool.d.ts +4 -4
  44. package/dist/bubbles/tool-bubble/reddit-scrape-tool.d.ts +14 -14
  45. package/dist/bubbles/tool-bubble/research-agent-tool.d.ts +4 -4
  46. package/dist/bubbles/tool-bubble/sql-query-tool.d.ts +16 -16
  47. package/dist/bubbles/tool-bubble/tiktok-tool.d.ts +60 -60
  48. package/dist/bubbles/tool-bubble/tool-template.d.ts +4 -4
  49. package/dist/bubbles/tool-bubble/twitter-tool.d.ts +104 -104
  50. package/dist/bubbles/tool-bubble/web-crawl-tool.d.ts +8 -8
  51. package/dist/bubbles/tool-bubble/web-extract-tool.d.ts +8 -8
  52. package/dist/bubbles/tool-bubble/web-scrape-tool.d.ts +8 -8
  53. package/dist/bubbles/tool-bubble/web-search-tool.d.ts +8 -8
  54. package/dist/bubbles/tool-bubble/youtube-tool.d.ts +18 -18
  55. package/dist/bubbles/workflow-bubble/database-analyzer.workflow.d.ts +4 -4
  56. package/dist/bubbles/workflow-bubble/generate-document.workflow.d.ts +4 -4
  57. package/dist/bubbles/workflow-bubble/parse-document.workflow.d.ts +4 -4
  58. package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts +50 -50
  59. package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.d.ts +8 -8
  60. package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.d.ts +8 -8
  61. package/dist/bubbles/workflow-bubble/slack-formatter-agent.d.ts +36 -36
  62. package/dist/bubbles/workflow-bubble/slack-notifier.workflow.d.ts +4 -4
  63. package/dist/bubbles.json +18 -4
  64. package/dist/index.d.ts +1 -0
  65. package/dist/index.d.ts.map +1 -1
  66. package/dist/index.js +1 -0
  67. package/dist/index.js.map +1 -1
  68. package/dist/types/available-tools.d.ts +1 -1
  69. package/dist/types/available-tools.d.ts.map +1 -1
  70. package/dist/types/available-tools.js +1 -0
  71. package/dist/types/available-tools.js.map +1 -1
  72. package/package.json +2 -2
@@ -37,8 +37,8 @@ export declare class AmazonShoppingTool<T extends AmazonShoppingToolParamsInput
37
37
  credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>;
38
38
  }, "strip", import("zod").ZodTypeAny, {
39
39
  operation: "add_to_cart";
40
- quantity: number;
41
40
  product_url: string;
41
+ quantity: number;
42
42
  credentials?: Partial<Record<CredentialType, string>> | undefined;
43
43
  }, {
44
44
  operation: "add_to_cart";
@@ -69,13 +69,13 @@ export declare class AmazonShoppingTool<T extends AmazonShoppingToolParamsInput
69
69
  max_results: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
70
70
  credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>;
71
71
  }, "strip", import("zod").ZodTypeAny, {
72
- query: string;
73
72
  operation: "search";
73
+ query: string;
74
74
  max_results: number;
75
75
  credentials?: Partial<Record<CredentialType, string>> | undefined;
76
76
  }, {
77
- query: string;
78
77
  operation: "search";
78
+ query: string;
79
79
  credentials?: Partial<Record<CredentialType, string>> | undefined;
80
80
  max_results?: number | undefined;
81
81
  }>, import("zod").ZodObject<{
@@ -98,12 +98,12 @@ export declare class AmazonShoppingTool<T extends AmazonShoppingToolParamsInput
98
98
  }, "strip", import("zod").ZodTypeAny, {
99
99
  operation: "screenshot";
100
100
  full_page: boolean;
101
- credentials?: Partial<Record<CredentialType, string>> | undefined;
102
101
  url?: string | undefined;
102
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
103
103
  }, {
104
104
  operation: "screenshot";
105
- credentials?: Partial<Record<CredentialType, string>> | undefined;
106
105
  url?: string | undefined;
106
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
107
107
  full_page?: boolean | undefined;
108
108
  }>]>;
109
109
  static readonly resultSchema: import("zod").ZodDiscriminatedUnion<"operation", [import("zod").ZodObject<{
@@ -113,15 +113,15 @@ export declare class AmazonShoppingTool<T extends AmazonShoppingToolParamsInput
113
113
  cart_count: import("zod").ZodOptional<import("zod").ZodNumber>;
114
114
  error: import("zod").ZodString;
115
115
  }, "strip", import("zod").ZodTypeAny, {
116
- error: string;
117
- success: boolean;
118
116
  operation: "add_to_cart";
117
+ success: boolean;
118
+ error: string;
119
119
  message?: string | undefined;
120
120
  cart_count?: number | undefined;
121
121
  }, {
122
- error: string;
123
- success: boolean;
124
122
  operation: "add_to_cart";
123
+ success: boolean;
124
+ error: string;
125
125
  message?: string | undefined;
126
126
  cart_count?: number | undefined;
127
127
  }>, import("zod").ZodObject<{
@@ -137,15 +137,15 @@ export declare class AmazonShoppingTool<T extends AmazonShoppingToolParamsInput
137
137
  }, "strip", import("zod").ZodTypeAny, {
138
138
  title: string;
139
139
  price: string;
140
- asin: string;
141
140
  quantity: number;
141
+ asin: string;
142
142
  url?: string | undefined;
143
143
  image?: string | undefined;
144
144
  }, {
145
145
  title: string;
146
146
  price: string;
147
- asin: string;
148
147
  quantity: number;
148
+ asin: string;
149
149
  url?: string | undefined;
150
150
  image?: string | undefined;
151
151
  }>, "many">>;
@@ -154,14 +154,14 @@ export declare class AmazonShoppingTool<T extends AmazonShoppingToolParamsInput
154
154
  screenshot_url: import("zod").ZodOptional<import("zod").ZodString>;
155
155
  error: import("zod").ZodString;
156
156
  }, "strip", import("zod").ZodTypeAny, {
157
- error: string;
158
- success: boolean;
159
157
  operation: "get_cart";
158
+ success: boolean;
159
+ error: string;
160
160
  items?: {
161
161
  title: string;
162
162
  price: string;
163
- asin: string;
164
163
  quantity: number;
164
+ asin: string;
165
165
  url?: string | undefined;
166
166
  image?: string | undefined;
167
167
  }[] | undefined;
@@ -169,14 +169,14 @@ export declare class AmazonShoppingTool<T extends AmazonShoppingToolParamsInput
169
169
  total_items?: number | undefined;
170
170
  screenshot_url?: string | undefined;
171
171
  }, {
172
- error: string;
173
- success: boolean;
174
172
  operation: "get_cart";
173
+ success: boolean;
174
+ error: string;
175
175
  items?: {
176
176
  title: string;
177
177
  price: string;
178
- asin: string;
179
178
  quantity: number;
179
+ asin: string;
180
180
  url?: string | undefined;
181
181
  image?: string | undefined;
182
182
  }[] | undefined;
@@ -210,9 +210,9 @@ export declare class AmazonShoppingTool<T extends AmazonShoppingToolParamsInput
210
210
  screenshot_url: import("zod").ZodOptional<import("zod").ZodString>;
211
211
  error: import("zod").ZodString;
212
212
  }, "strip", import("zod").ZodTypeAny, {
213
- error: string;
214
- success: boolean;
215
213
  operation: "checkout";
214
+ success: boolean;
215
+ error: string;
216
216
  items?: {
217
217
  title: string;
218
218
  price?: string | undefined;
@@ -228,9 +228,9 @@ export declare class AmazonShoppingTool<T extends AmazonShoppingToolParamsInput
228
228
  shipping_address?: string | undefined;
229
229
  payment_method?: string | undefined;
230
230
  }, {
231
- error: string;
232
- success: boolean;
233
231
  operation: "checkout";
232
+ success: boolean;
233
+ error: string;
234
234
  items?: {
235
235
  title: string;
236
236
  price?: string | undefined;
@@ -279,9 +279,9 @@ export declare class AmazonShoppingTool<T extends AmazonShoppingToolParamsInput
279
279
  total_results: import("zod").ZodOptional<import("zod").ZodNumber>;
280
280
  error: import("zod").ZodString;
281
281
  }, "strip", import("zod").ZodTypeAny, {
282
- error: string;
283
- success: boolean;
284
282
  operation: "search";
283
+ success: boolean;
284
+ error: string;
285
285
  results?: {
286
286
  title: string;
287
287
  url: string;
@@ -294,9 +294,9 @@ export declare class AmazonShoppingTool<T extends AmazonShoppingToolParamsInput
294
294
  }[] | undefined;
295
295
  total_results?: number | undefined;
296
296
  }, {
297
- error: string;
298
- success: boolean;
299
297
  operation: "search";
298
+ success: boolean;
299
+ error: string;
300
300
  results?: {
301
301
  title: string;
302
302
  url: string;
@@ -347,9 +347,9 @@ export declare class AmazonShoppingTool<T extends AmazonShoppingToolParamsInput
347
347
  }>>;
348
348
  error: import("zod").ZodString;
349
349
  }, "strip", import("zod").ZodTypeAny, {
350
- error: string;
351
- success: boolean;
352
350
  operation: "get_product";
351
+ success: boolean;
352
+ error: string;
353
353
  product?: {
354
354
  title: string;
355
355
  url: string;
@@ -363,9 +363,9 @@ export declare class AmazonShoppingTool<T extends AmazonShoppingToolParamsInput
363
363
  availability?: string | undefined;
364
364
  } | undefined;
365
365
  }, {
366
- error: string;
367
- success: boolean;
368
366
  operation: "get_product";
367
+ success: boolean;
368
+ error: string;
369
369
  product?: {
370
370
  title: string;
371
371
  url: string;
@@ -384,14 +384,14 @@ export declare class AmazonShoppingTool<T extends AmazonShoppingToolParamsInput
384
384
  screenshot_url: import("zod").ZodOptional<import("zod").ZodString>;
385
385
  error: import("zod").ZodString;
386
386
  }, "strip", import("zod").ZodTypeAny, {
387
- error: string;
388
- success: boolean;
389
387
  operation: "screenshot";
388
+ success: boolean;
389
+ error: string;
390
390
  screenshot_url?: string | undefined;
391
391
  }, {
392
- error: string;
393
- success: boolean;
394
392
  operation: "screenshot";
393
+ success: boolean;
394
+ error: string;
395
395
  screenshot_url?: string | undefined;
396
396
  }>]>;
397
397
  static readonly shortDescription = "Amazon shopping automation - add to cart, view cart, checkout, search products";
@@ -119,8 +119,8 @@ declare const BubbleFlowValidationToolResultSchema: z.ZodObject<{
119
119
  error: z.ZodString;
120
120
  }, "strip", z.ZodTypeAny, {
121
121
  valid: boolean;
122
- error: string;
123
122
  success: boolean;
123
+ error: string;
124
124
  metadata: {
125
125
  strictMode: boolean;
126
126
  validatedAt: string;
@@ -144,8 +144,8 @@ declare const BubbleFlowValidationToolResultSchema: z.ZodObject<{
144
144
  bubbleCount?: number | undefined;
145
145
  }, {
146
146
  valid: boolean;
147
- error: string;
148
147
  success: boolean;
148
+ error: string;
149
149
  metadata: {
150
150
  strictMode: boolean;
151
151
  validatedAt: string;
@@ -268,8 +268,8 @@ export declare class BubbleFlowValidationTool extends ToolBubble<BubbleFlowValid
268
268
  error: z.ZodString;
269
269
  }, "strip", z.ZodTypeAny, {
270
270
  valid: boolean;
271
- error: string;
272
271
  success: boolean;
272
+ error: string;
273
273
  metadata: {
274
274
  strictMode: boolean;
275
275
  validatedAt: string;
@@ -293,8 +293,8 @@ export declare class BubbleFlowValidationTool extends ToolBubble<BubbleFlowValid
293
293
  bubbleCount?: number | undefined;
294
294
  }, {
295
295
  valid: boolean;
296
- error: string;
297
296
  success: boolean;
297
+ error: string;
298
298
  metadata: {
299
299
  strictMode: boolean;
300
300
  validatedAt: string;
@@ -139,8 +139,8 @@ declare const ChartJSToolResultSchema: z.ZodObject<{
139
139
  success: z.ZodBoolean;
140
140
  error: z.ZodString;
141
141
  }, "strip", z.ZodTypeAny, {
142
- error: string;
143
142
  success: boolean;
143
+ error: string;
144
144
  metadata: {
145
145
  colorScheme: string;
146
146
  generatedAt: string;
@@ -160,8 +160,8 @@ declare const ChartJSToolResultSchema: z.ZodObject<{
160
160
  filePath?: string | undefined;
161
161
  fileExists?: boolean | undefined;
162
162
  }, {
163
- error: string;
164
163
  success: boolean;
164
+ error: string;
165
165
  metadata: {
166
166
  colorScheme: string;
167
167
  generatedAt: string;
@@ -324,8 +324,8 @@ export declare class ChartJSTool extends ToolBubble<ChartJSToolParams, ChartJSTo
324
324
  success: z.ZodBoolean;
325
325
  error: z.ZodString;
326
326
  }, "strip", z.ZodTypeAny, {
327
- error: string;
328
327
  success: boolean;
328
+ error: string;
329
329
  metadata: {
330
330
  colorScheme: string;
331
331
  generatedAt: string;
@@ -345,8 +345,8 @@ export declare class ChartJSTool extends ToolBubble<ChartJSToolParams, ChartJSTo
345
345
  filePath?: string | undefined;
346
346
  fileExists?: boolean | undefined;
347
347
  }, {
348
- error: string;
349
348
  success: boolean;
349
+ error: string;
350
350
  metadata: {
351
351
  colorScheme: string;
352
352
  generatedAt: string;
@@ -73,8 +73,8 @@ declare const EditBubbleFlowToolResultSchema: z.ZodObject<{
73
73
  success: z.ZodBoolean;
74
74
  error: z.ZodString;
75
75
  }, "strip", z.ZodTypeAny, {
76
- error: string;
77
76
  success: boolean;
77
+ error: string;
78
78
  metadata: {
79
79
  originalLength: number;
80
80
  morphModel: string;
@@ -85,8 +85,8 @@ declare const EditBubbleFlowToolResultSchema: z.ZodObject<{
85
85
  applied: boolean;
86
86
  diff?: string | undefined;
87
87
  }, {
88
- error: string;
89
88
  success: boolean;
89
+ error: string;
90
90
  metadata: {
91
91
  originalLength: number;
92
92
  morphModel: string;
@@ -152,8 +152,8 @@ export declare class EditBubbleFlowTool extends ToolBubble<EditBubbleFlowToolPar
152
152
  success: z.ZodBoolean;
153
153
  error: z.ZodString;
154
154
  }, "strip", z.ZodTypeAny, {
155
- error: string;
156
155
  success: boolean;
156
+ error: string;
157
157
  metadata: {
158
158
  originalLength: number;
159
159
  morphModel: string;
@@ -164,8 +164,8 @@ export declare class EditBubbleFlowTool extends ToolBubble<EditBubbleFlowToolPar
164
164
  applied: boolean;
165
165
  diff?: string | undefined;
166
166
  }, {
167
- error: string;
168
167
  success: boolean;
168
+ error: string;
169
169
  metadata: {
170
170
  originalLength: number;
171
171
  morphModel: string;
@@ -28,16 +28,16 @@ declare const GetBubbleDetailsToolResultSchema: z.ZodObject<{
28
28
  error: z.ZodString;
29
29
  }, "strip", z.ZodTypeAny, {
30
30
  name: string;
31
- error: string;
32
31
  success: boolean;
32
+ error: string;
33
33
  outputSchema: string;
34
34
  usageExample: string;
35
35
  alias?: string | undefined;
36
36
  inputSchema?: string | undefined;
37
37
  }, {
38
38
  name: string;
39
- error: string;
40
39
  success: boolean;
40
+ error: string;
41
41
  outputSchema: string;
42
42
  usageExample: string;
43
43
  alias?: string | undefined;
@@ -69,16 +69,16 @@ export declare class GetBubbleDetailsTool extends ToolBubble<GetBubbleDetailsToo
69
69
  error: z.ZodString;
70
70
  }, "strip", z.ZodTypeAny, {
71
71
  name: string;
72
- error: string;
73
72
  success: boolean;
73
+ error: string;
74
74
  outputSchema: string;
75
75
  usageExample: string;
76
76
  alias?: string | undefined;
77
77
  inputSchema?: string | undefined;
78
78
  }, {
79
79
  name: string;
80
- error: string;
81
80
  success: boolean;
81
+ error: string;
82
82
  outputSchema: string;
83
83
  usageExample: string;
84
84
  alias?: string | undefined;
@@ -0,0 +1,146 @@
1
+ import { z } from 'zod';
2
+ import { ToolBubble } from '../../types/tool-bubble-class.js';
3
+ import type { BubbleContext } from '../../types/bubble.js';
4
+ import { CredentialType } from '@bubblelab/shared-schemas';
5
+ declare const GetTriggerDetailToolParamsSchema: z.ZodObject<{
6
+ triggerType: z.ZodOptional<z.ZodString>;
7
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
10
+ triggerType?: string | undefined;
11
+ }, {
12
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
13
+ triggerType?: string | undefined;
14
+ }>;
15
+ type GetTriggerDetailToolParamsInput = z.input<typeof GetTriggerDetailToolParamsSchema>;
16
+ type GetTriggerDetailToolParams = z.output<typeof GetTriggerDetailToolParamsSchema>;
17
+ declare const GetTriggerDetailToolResultSchema: z.ZodObject<{
18
+ triggerType: z.ZodOptional<z.ZodString>;
19
+ serviceName: z.ZodOptional<z.ZodString>;
20
+ friendlyName: z.ZodOptional<z.ZodString>;
21
+ description: z.ZodOptional<z.ZodString>;
22
+ setupGuide: z.ZodOptional<z.ZodString>;
23
+ payloadSchema: z.ZodOptional<z.ZodString>;
24
+ payloadTypeInterface: z.ZodOptional<z.ZodString>;
25
+ availableTriggers: z.ZodOptional<z.ZodArray<z.ZodObject<{
26
+ type: z.ZodString;
27
+ friendlyName: z.ZodString;
28
+ description: z.ZodString;
29
+ }, "strip", z.ZodTypeAny, {
30
+ type: string;
31
+ description: string;
32
+ friendlyName: string;
33
+ }, {
34
+ type: string;
35
+ description: string;
36
+ friendlyName: string;
37
+ }>, "many">>;
38
+ success: z.ZodBoolean;
39
+ error: z.ZodString;
40
+ }, "strip", z.ZodTypeAny, {
41
+ success: boolean;
42
+ error: string;
43
+ description?: string | undefined;
44
+ triggerType?: string | undefined;
45
+ serviceName?: string | undefined;
46
+ friendlyName?: string | undefined;
47
+ setupGuide?: string | undefined;
48
+ payloadSchema?: string | undefined;
49
+ payloadTypeInterface?: string | undefined;
50
+ availableTriggers?: {
51
+ type: string;
52
+ description: string;
53
+ friendlyName: string;
54
+ }[] | undefined;
55
+ }, {
56
+ success: boolean;
57
+ error: string;
58
+ description?: string | undefined;
59
+ triggerType?: string | undefined;
60
+ serviceName?: string | undefined;
61
+ friendlyName?: string | undefined;
62
+ setupGuide?: string | undefined;
63
+ payloadSchema?: string | undefined;
64
+ payloadTypeInterface?: string | undefined;
65
+ availableTriggers?: {
66
+ type: string;
67
+ description: string;
68
+ friendlyName: string;
69
+ }[] | undefined;
70
+ }>;
71
+ type GetTriggerDetailToolResult = z.output<typeof GetTriggerDetailToolResultSchema>;
72
+ export declare class GetTriggerDetailTool extends ToolBubble<GetTriggerDetailToolParams, GetTriggerDetailToolResult> {
73
+ static readonly type: "tool";
74
+ static readonly bubbleName = "get-trigger-detail-tool";
75
+ static readonly schema: z.ZodObject<{
76
+ triggerType: z.ZodOptional<z.ZodString>;
77
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
78
+ }, "strip", z.ZodTypeAny, {
79
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
80
+ triggerType?: string | undefined;
81
+ }, {
82
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
83
+ triggerType?: string | undefined;
84
+ }>;
85
+ static readonly resultSchema: z.ZodObject<{
86
+ triggerType: z.ZodOptional<z.ZodString>;
87
+ serviceName: z.ZodOptional<z.ZodString>;
88
+ friendlyName: z.ZodOptional<z.ZodString>;
89
+ description: z.ZodOptional<z.ZodString>;
90
+ setupGuide: z.ZodOptional<z.ZodString>;
91
+ payloadSchema: z.ZodOptional<z.ZodString>;
92
+ payloadTypeInterface: z.ZodOptional<z.ZodString>;
93
+ availableTriggers: z.ZodOptional<z.ZodArray<z.ZodObject<{
94
+ type: z.ZodString;
95
+ friendlyName: z.ZodString;
96
+ description: z.ZodString;
97
+ }, "strip", z.ZodTypeAny, {
98
+ type: string;
99
+ description: string;
100
+ friendlyName: string;
101
+ }, {
102
+ type: string;
103
+ description: string;
104
+ friendlyName: string;
105
+ }>, "many">>;
106
+ success: z.ZodBoolean;
107
+ error: z.ZodString;
108
+ }, "strip", z.ZodTypeAny, {
109
+ success: boolean;
110
+ error: string;
111
+ description?: string | undefined;
112
+ triggerType?: string | undefined;
113
+ serviceName?: string | undefined;
114
+ friendlyName?: string | undefined;
115
+ setupGuide?: string | undefined;
116
+ payloadSchema?: string | undefined;
117
+ payloadTypeInterface?: string | undefined;
118
+ availableTriggers?: {
119
+ type: string;
120
+ description: string;
121
+ friendlyName: string;
122
+ }[] | undefined;
123
+ }, {
124
+ success: boolean;
125
+ error: string;
126
+ description?: string | undefined;
127
+ triggerType?: string | undefined;
128
+ serviceName?: string | undefined;
129
+ friendlyName?: string | undefined;
130
+ setupGuide?: string | undefined;
131
+ payloadSchema?: string | undefined;
132
+ payloadTypeInterface?: string | undefined;
133
+ availableTriggers?: {
134
+ type: string;
135
+ description: string;
136
+ friendlyName: string;
137
+ }[] | undefined;
138
+ }>;
139
+ static readonly shortDescription = "Provides detailed information about BubbleFlow trigger types including setup guides and payload schemas";
140
+ static readonly longDescription = "\n A tool that retrieves comprehensive information about BubbleFlow trigger types.\n\n Returns detailed information including:\n - Service name and friendly display name\n - Description of what the trigger does\n - Setup guide with step-by-step configuration instructions\n - Payload schema (JSON Schema format)\n - TypeScript interface name for proper typing\n\n Use cases:\n - Understanding how to configure a specific trigger (Slack, Cron, Webhook)\n - Getting the correct payload interface to extend in your BubbleFlow\n - Learning about available trigger types\n - Generating properly typed BubbleFlow code\n\n If no triggerType is specified, returns a list of all available triggers.\n ";
141
+ static readonly alias = "trigger";
142
+ constructor(params: GetTriggerDetailToolParamsInput, context?: BubbleContext);
143
+ performAction(context?: BubbleContext): Promise<GetTriggerDetailToolResult>;
144
+ }
145
+ export {};
146
+ //# sourceMappingURL=get-trigger-detail-tool.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-trigger-detail-tool.d.ts","sourceRoot":"","sources":["../../../src/bubbles/tool-bubble/get-trigger-detail-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EACL,cAAc,EAIf,MAAM,2BAA2B,CAAC;AAgBnC,QAAA,MAAM,gCAAgC;;;;;;;;;EAapC,CAAC;AAGH,KAAK,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAC5C,OAAO,gCAAgC,CACxC,CAAC;AACF,KAAK,0BAA0B,GAAG,CAAC,CAAC,MAAM,CACxC,OAAO,gCAAgC,CACxC,CAAC;AAGF,QAAA,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuCpC,CAAC;AAEH,KAAK,0BAA0B,GAAG,CAAC,CAAC,MAAM,CACxC,OAAO,gCAAgC,CACxC,CAAC;AAEF,qBAAa,oBAAqB,SAAQ,UAAU,CAClD,0BAA0B,EAC1B,0BAA0B,CAC3B;IACC,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAG,MAAM,CAAU;IACvC,MAAM,CAAC,QAAQ,CAAC,UAAU,6BAA6B;IACvD,MAAM,CAAC,QAAQ,CAAC,MAAM;;;;;;;;;OAAoC;IAC1D,MAAM,CAAC,QAAQ,CAAC,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAoC;IAChE,MAAM,CAAC,QAAQ,CAAC,gBAAgB,6GAC4E;IAC5G,MAAM,CAAC,QAAQ,CAAC,eAAe,kuBAiB7B;IACF,MAAM,CAAC,QAAQ,CAAC,KAAK,aAAa;gBAGhC,MAAM,EAAE,+BAA+B,EACvC,OAAO,CAAC,EAAE,aAAa;IAKnB,aAAa,CACjB,OAAO,CAAC,EAAE,aAAa,GACtB,OAAO,CAAC,0BAA0B,CAAC;CAoDvC"}
@@ -0,0 +1,128 @@
1
+ import { z } from 'zod';
2
+ import { ToolBubble } from '../../types/tool-bubble-class.js';
3
+ import { CredentialType, TRIGGER_EVENT_CONFIGS, getTriggerEventConfig, } from '@bubblelab/shared-schemas';
4
+ /**
5
+ * Map trigger types to their TypeScript payload interface names
6
+ */
7
+ const TRIGGER_PAYLOAD_TYPE_MAP = {
8
+ 'slack/bot_mentioned': 'SlackMentionEvent',
9
+ 'slack/message_received': 'SlackMessageReceivedEvent',
10
+ 'schedule/cron': 'CronEvent',
11
+ 'webhook/http': 'WebhookEvent',
12
+ };
13
+ // Define the parameters schema
14
+ const GetTriggerDetailToolParamsSchema = z.object({
15
+ triggerType: z
16
+ .string()
17
+ .optional()
18
+ .describe("The trigger type to get details about (e.g., 'slack/bot_mentioned', 'webhook/http'). If not provided, returns a list of all available triggers."),
19
+ credentials: z
20
+ .record(z.nativeEnum(CredentialType), z.string())
21
+ .optional()
22
+ .describe('Object mapping credential types to values (injected at runtime)'),
23
+ });
24
+ // Result schema for validation
25
+ const GetTriggerDetailToolResultSchema = z.object({
26
+ triggerType: z.string().optional().describe('The requested trigger type'),
27
+ serviceName: z
28
+ .string()
29
+ .optional()
30
+ .describe('Service name for logo lookup (e.g., Slack, Cron)'),
31
+ friendlyName: z.string().optional().describe('Human-friendly trigger name'),
32
+ description: z
33
+ .string()
34
+ .optional()
35
+ .describe('Description of what this trigger does'),
36
+ setupGuide: z
37
+ .string()
38
+ .optional()
39
+ .describe('Markdown setup guide for configuring this trigger'),
40
+ payloadSchema: z
41
+ .string()
42
+ .optional()
43
+ .describe('JSON Schema string for the payload'),
44
+ payloadTypeInterface: z
45
+ .string()
46
+ .optional()
47
+ .describe('TypeScript interface name to use for the payload (e.g., SlackMentionEvent)'),
48
+ availableTriggers: z
49
+ .array(z.object({
50
+ type: z.string(),
51
+ friendlyName: z.string(),
52
+ description: z.string(),
53
+ }))
54
+ .optional()
55
+ .describe('List of all available triggers (when no specific trigger requested)'),
56
+ success: z.boolean().describe('Whether the operation was successful'),
57
+ error: z.string().describe('Error message if operation failed'),
58
+ });
59
+ export class GetTriggerDetailTool extends ToolBubble {
60
+ static type = 'tool';
61
+ static bubbleName = 'get-trigger-detail-tool';
62
+ static schema = GetTriggerDetailToolParamsSchema;
63
+ static resultSchema = GetTriggerDetailToolResultSchema;
64
+ static shortDescription = 'Provides detailed information about BubbleFlow trigger types including setup guides and payload schemas';
65
+ static longDescription = `
66
+ A tool that retrieves comprehensive information about BubbleFlow trigger types.
67
+
68
+ Returns detailed information including:
69
+ - Service name and friendly display name
70
+ - Description of what the trigger does
71
+ - Setup guide with step-by-step configuration instructions
72
+ - Payload schema (JSON Schema format)
73
+ - TypeScript interface name for proper typing
74
+
75
+ Use cases:
76
+ - Understanding how to configure a specific trigger (Slack, Cron, Webhook)
77
+ - Getting the correct payload interface to extend in your BubbleFlow
78
+ - Learning about available trigger types
79
+ - Generating properly typed BubbleFlow code
80
+
81
+ If no triggerType is specified, returns a list of all available triggers.
82
+ `;
83
+ static alias = 'trigger';
84
+ constructor(params, context) {
85
+ super(params, context);
86
+ }
87
+ async performAction(context) {
88
+ void context; // Context available but not currently used
89
+ const { triggerType } = this.params;
90
+ // If no trigger type specified, return list of all available triggers
91
+ if (!triggerType) {
92
+ const availableTriggers = Object.entries(TRIGGER_EVENT_CONFIGS).map(([type, config]) => ({
93
+ type,
94
+ friendlyName: config.friendlyName,
95
+ description: config.description,
96
+ }));
97
+ return {
98
+ availableTriggers,
99
+ success: true,
100
+ error: '',
101
+ };
102
+ }
103
+ // Validate trigger type
104
+ if (!(triggerType in TRIGGER_EVENT_CONFIGS)) {
105
+ const validTypes = Object.keys(TRIGGER_EVENT_CONFIGS).join(', ');
106
+ return {
107
+ success: false,
108
+ error: `Invalid trigger type '${triggerType}'. Valid types are: ${validTypes}`,
109
+ };
110
+ }
111
+ // Get the trigger configuration
112
+ const config = getTriggerEventConfig(triggerType);
113
+ // Get the TypeScript payload interface name
114
+ const payloadTypeInterface = TRIGGER_PAYLOAD_TYPE_MAP[triggerType];
115
+ return {
116
+ triggerType,
117
+ serviceName: config.serviceName,
118
+ friendlyName: config.friendlyName,
119
+ description: config.description,
120
+ setupGuide: config.setupGuide,
121
+ payloadSchema: JSON.stringify(config.payloadSchema, null, 2),
122
+ payloadTypeInterface,
123
+ success: true,
124
+ error: '',
125
+ };
126
+ }
127
+ }
128
+ //# sourceMappingURL=get-trigger-detail-tool.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-trigger-detail-tool.js","sourceRoot":"","sources":["../../../src/bubbles/tool-bubble/get-trigger-detail-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,UAA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