@bubblelab/bubble-core 0.1.156 → 0.1.158

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 (130) hide show
  1. package/dist/bubble-bundle.d.ts +161 -122
  2. package/dist/bubble-factory.d.ts.map +1 -1
  3. package/dist/bubble-factory.js +4 -0
  4. package/dist/bubble-factory.js.map +1 -1
  5. package/dist/bubble-flow/bubble-flow-class.js.map +1 -1
  6. package/dist/bubble-trigger/index.d.ts +2 -0
  7. package/dist/bubble-trigger/index.d.ts.map +1 -0
  8. package/dist/bubble-trigger/index.js +2 -0
  9. package/dist/bubble-trigger/index.js.map +1 -0
  10. package/dist/bubble-trigger/types.d.ts +87 -0
  11. package/dist/bubble-trigger/types.d.ts.map +1 -0
  12. package/dist/bubble-trigger/types.js +14 -0
  13. package/dist/bubble-trigger/types.js.map +1 -0
  14. package/dist/bubbles/service-bubble/agi-inc.d.ts +144 -144
  15. package/dist/bubbles/service-bubble/ai-agent.d.ts +8 -8
  16. package/dist/bubbles/service-bubble/airtable.d.ts +184 -184
  17. package/dist/bubbles/service-bubble/apify/apify.d.ts +24 -24
  18. package/dist/bubbles/service-bubble/ashby/ashby.d.ts +152 -152
  19. package/dist/bubbles/service-bubble/browserbase/browserbase.d.ts +55 -55
  20. package/dist/bubbles/service-bubble/confluence/confluence.d.ts +63 -63
  21. package/dist/bubbles/service-bubble/crustdata/crustdata.d.ts +98 -98
  22. package/dist/bubbles/service-bubble/eleven-labs.d.ts +56 -56
  23. package/dist/bubbles/service-bubble/firecrawl.d.ts +264 -264
  24. package/dist/bubbles/service-bubble/followupboss.d.ts +282 -282
  25. package/dist/bubbles/service-bubble/fullenrich/fullenrich.d.ts +40 -40
  26. package/dist/bubbles/service-bubble/github.d.ts +216 -216
  27. package/dist/bubbles/service-bubble/gmail.d.ts +228 -228
  28. package/dist/bubbles/service-bubble/google-calendar.d.ts +62 -62
  29. package/dist/bubbles/service-bubble/google-drive.d.ts +152 -152
  30. package/dist/bubbles/service-bubble/google-sheets/google-sheets.d.ts +44 -44
  31. package/dist/bubbles/service-bubble/google-sheets.d.ts +1811 -0
  32. package/dist/bubbles/service-bubble/google-sheets.d.ts.map +1 -0
  33. package/dist/bubbles/service-bubble/google-sheets.js +904 -0
  34. package/dist/bubbles/service-bubble/google-sheets.js.map +1 -0
  35. package/dist/bubbles/service-bubble/hello-world.d.ts +4 -4
  36. package/dist/bubbles/service-bubble/http.d.ts +12 -12
  37. package/dist/bubbles/service-bubble/insforge-db.d.ts +6 -6
  38. package/dist/bubbles/service-bubble/jira/jira.d.ts +107 -107
  39. package/dist/bubbles/service-bubble/notion/notion.d.ts +932 -932
  40. package/dist/bubbles/service-bubble/postgresql.d.ts +6 -6
  41. package/dist/bubbles/service-bubble/posthog/index.d.ts +3 -0
  42. package/dist/bubbles/service-bubble/posthog/index.d.ts.map +1 -0
  43. package/dist/bubbles/service-bubble/posthog/index.js +3 -0
  44. package/dist/bubbles/service-bubble/posthog/index.js.map +1 -0
  45. package/dist/bubbles/service-bubble/posthog/posthog.d.ts +469 -0
  46. package/dist/bubbles/service-bubble/posthog/posthog.d.ts.map +1 -0
  47. package/dist/bubbles/service-bubble/posthog/posthog.js +309 -0
  48. package/dist/bubbles/service-bubble/posthog/posthog.js.map +1 -0
  49. package/dist/bubbles/service-bubble/posthog/posthog.schema.d.ts +545 -0
  50. package/dist/bubbles/service-bubble/posthog/posthog.schema.d.ts.map +1 -0
  51. package/dist/bubbles/service-bubble/posthog/posthog.schema.js +352 -0
  52. package/dist/bubbles/service-bubble/posthog/posthog.schema.js.map +1 -0
  53. package/dist/bubbles/service-bubble/resend.d.ts +16 -16
  54. package/dist/bubbles/service-bubble/slack/slack.d.ts +325 -325
  55. package/dist/bubbles/service-bubble/slack.d.ts +5869 -0
  56. package/dist/bubbles/service-bubble/slack.d.ts.map +1 -0
  57. package/dist/bubbles/service-bubble/slack.js +1536 -0
  58. package/dist/bubbles/service-bubble/slack.js.map +1 -0
  59. package/dist/bubbles/service-bubble/storage.d.ts +40 -40
  60. package/dist/bubbles/service-bubble/stripe/stripe.d.ts +161 -161
  61. package/dist/bubbles/service-bubble/telegram.d.ts +264 -264
  62. package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.d.ts +26 -26
  63. package/dist/bubbles/tool-bubble/browser-tools/linkedin-accept-invitations/tool.d.ts +4 -4
  64. package/dist/bubbles/tool-bubble/browser-tools/linkedin-connection/tool.d.ts +4 -4
  65. package/dist/bubbles/tool-bubble/browser-tools/linkedin-received-invitations/tool.d.ts +4 -4
  66. package/dist/bubbles/tool-bubble/browser-tools/linkedin-sent-invitations/tool.d.ts +4 -4
  67. package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.d.ts +8 -8
  68. package/dist/bubbles/tool-bubble/chart-js-tool.d.ts +4 -4
  69. package/dist/bubbles/tool-bubble/code-edit-tool.d.ts +4 -4
  70. package/dist/bubbles/tool-bubble/company-enrichment-tool.d.ts +18 -18
  71. package/dist/bubbles/tool-bubble/get-bubble-details-tool.d.ts +4 -4
  72. package/dist/bubbles/tool-bubble/get-trigger-detail-tool.d.ts +4 -4
  73. package/dist/bubbles/tool-bubble/google-maps-tool.d.ts +12 -12
  74. package/dist/bubbles/tool-bubble/instagram-tool.d.ts +22 -22
  75. package/dist/bubbles/tool-bubble/linkedin-connection-tool/index.d.ts +3 -0
  76. package/dist/bubbles/tool-bubble/linkedin-connection-tool/index.d.ts.map +1 -0
  77. package/dist/bubbles/tool-bubble/linkedin-connection-tool/index.js +3 -0
  78. package/dist/bubbles/tool-bubble/linkedin-connection-tool/index.js.map +1 -0
  79. package/dist/bubbles/tool-bubble/linkedin-connection-tool/linkedin-connection-tool.d.ts +160 -0
  80. package/dist/bubbles/tool-bubble/linkedin-connection-tool/linkedin-connection-tool.d.ts.map +1 -0
  81. package/dist/bubbles/tool-bubble/linkedin-connection-tool/linkedin-connection-tool.js +706 -0
  82. package/dist/bubbles/tool-bubble/linkedin-connection-tool/linkedin-connection-tool.js.map +1 -0
  83. package/dist/bubbles/tool-bubble/linkedin-connection-tool/linkedin-connection-tool.schema.d.ts +93 -0
  84. package/dist/bubbles/tool-bubble/linkedin-connection-tool/linkedin-connection-tool.schema.d.ts.map +1 -0
  85. package/dist/bubbles/tool-bubble/linkedin-connection-tool/linkedin-connection-tool.schema.js +50 -0
  86. package/dist/bubbles/tool-bubble/linkedin-connection-tool/linkedin-connection-tool.schema.js.map +1 -0
  87. package/dist/bubbles/tool-bubble/linkedin-tool.d.ts +108 -108
  88. package/dist/bubbles/tool-bubble/list-airtable-bases-tool.d.ts +12 -12
  89. package/dist/bubbles/tool-bubble/list-airtable-tables-tool.d.ts +24 -24
  90. package/dist/bubbles/tool-bubble/list-bubbles-tool.d.ts +4 -4
  91. package/dist/bubbles/tool-bubble/list-capabilities-tool.d.ts +12 -12
  92. package/dist/bubbles/tool-bubble/people-search-tool.d.ts +42 -42
  93. package/dist/bubbles/tool-bubble/reddit-scrape-tool.d.ts +16 -16
  94. package/dist/bubbles/tool-bubble/research-agent-tool.d.ts +8 -8
  95. package/dist/bubbles/tool-bubble/sql-query-tool.d.ts +8 -8
  96. package/dist/bubbles/tool-bubble/tiktok-tool.d.ts +12 -12
  97. package/dist/bubbles/tool-bubble/tool-template.d.ts +4 -4
  98. package/dist/bubbles/tool-bubble/twitter-tool.d.ts +36 -36
  99. package/dist/bubbles/tool-bubble/web-crawl-tool.d.ts +8 -8
  100. package/dist/bubbles/tool-bubble/web-extract-tool.d.ts +8 -8
  101. package/dist/bubbles/tool-bubble/web-scrape-tool.d.ts +8 -8
  102. package/dist/bubbles/tool-bubble/web-search-tool.d.ts +16 -16
  103. package/dist/bubbles/tool-bubble/yc-scraper-tool.d.ts +8 -8
  104. package/dist/bubbles/tool-bubble/youtube-tool.d.ts +18 -18
  105. package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.d.ts +114 -0
  106. package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.d.ts.map +1 -0
  107. package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.js +777 -0
  108. package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.js.map +1 -0
  109. package/dist/bubbles/workflow-bubble/database-analyzer.workflow.d.ts +4 -4
  110. package/dist/bubbles/workflow-bubble/generate-document.workflow.d.ts +24 -24
  111. package/dist/bubbles/workflow-bubble/parse-document.workflow.d.ts +4 -4
  112. package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts +68 -68
  113. package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.d.ts +24 -24
  114. package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.d.ts +10 -10
  115. package/dist/bubbles/workflow-bubble/slack-formatter-agent.d.ts +62 -62
  116. package/dist/bubbles/workflow-bubble/slack-notifier.workflow.d.ts +4 -4
  117. package/dist/bubbles.json +617 -2
  118. package/dist/index.d.ts +2 -0
  119. package/dist/index.d.ts.map +1 -1
  120. package/dist/index.js +1 -0
  121. package/dist/index.js.map +1 -1
  122. package/dist/types/ai-models.d.ts +4 -0
  123. package/dist/types/ai-models.d.ts.map +1 -0
  124. package/dist/types/ai-models.js +16 -0
  125. package/dist/types/ai-models.js.map +1 -0
  126. package/dist/utils/param-helper.d.ts +2 -0
  127. package/dist/utils/param-helper.d.ts.map +1 -0
  128. package/dist/utils/param-helper.js +5 -0
  129. package/dist/utils/param-helper.js.map +1 -0
  130. package/package.json +2 -2
@@ -12,15 +12,15 @@ declare const GoogleMapsToolParamsSchema: z.ZodObject<{
12
12
  }, "strip", z.ZodTypeAny, {
13
13
  operation: "search";
14
14
  queries: string[];
15
- credentials?: Partial<Record<CredentialType, string>> | undefined;
16
15
  limit?: number | undefined;
16
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
17
17
  location?: string | undefined;
18
18
  language?: string | undefined;
19
19
  }, {
20
20
  operation: "search";
21
21
  queries: string[];
22
- credentials?: Partial<Record<CredentialType, string>> | undefined;
23
22
  limit?: number | undefined;
23
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
24
24
  location?: string | undefined;
25
25
  language?: string | undefined;
26
26
  }>;
@@ -147,9 +147,9 @@ declare const GoogleMapsToolResultSchema: z.ZodObject<{
147
147
  success: z.ZodBoolean;
148
148
  error: z.ZodString;
149
149
  }, "strip", z.ZodTypeAny, {
150
- error: string;
151
- success: boolean;
152
150
  operation: "search";
151
+ success: boolean;
152
+ error: string;
153
153
  places: {
154
154
  title: string | null;
155
155
  url: string | null;
@@ -183,9 +183,9 @@ declare const GoogleMapsToolResultSchema: z.ZodObject<{
183
183
  }[];
184
184
  totalPlaces: number;
185
185
  }, {
186
- error: string;
187
- success: boolean;
188
186
  operation: "search";
187
+ success: boolean;
188
+ error: string;
189
189
  places: {
190
190
  title: string | null;
191
191
  url: string | null;
@@ -234,15 +234,15 @@ export declare class GoogleMapsTool extends ToolBubble<GoogleMapsToolParams, Goo
234
234
  }, "strip", z.ZodTypeAny, {
235
235
  operation: "search";
236
236
  queries: string[];
237
- credentials?: Partial<Record<CredentialType, string>> | undefined;
238
237
  limit?: number | undefined;
238
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
239
239
  location?: string | undefined;
240
240
  language?: string | undefined;
241
241
  }, {
242
242
  operation: "search";
243
243
  queries: string[];
244
- credentials?: Partial<Record<CredentialType, string>> | undefined;
245
244
  limit?: number | undefined;
245
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
246
246
  location?: string | undefined;
247
247
  language?: string | undefined;
248
248
  }>;
@@ -369,9 +369,9 @@ export declare class GoogleMapsTool extends ToolBubble<GoogleMapsToolParams, Goo
369
369
  success: z.ZodBoolean;
370
370
  error: z.ZodString;
371
371
  }, "strip", z.ZodTypeAny, {
372
- error: string;
373
- success: boolean;
374
372
  operation: "search";
373
+ success: boolean;
374
+ error: string;
375
375
  places: {
376
376
  title: string | null;
377
377
  url: string | null;
@@ -405,9 +405,9 @@ export declare class GoogleMapsTool extends ToolBubble<GoogleMapsToolParams, Goo
405
405
  }[];
406
406
  totalPlaces: number;
407
407
  }, {
408
- error: string;
409
- success: boolean;
410
408
  operation: "search";
409
+ success: boolean;
410
+ error: string;
411
411
  places: {
412
412
  title: string | null;
413
413
  url: string | null;
@@ -14,8 +14,8 @@ declare const InstagramPostSchema: z.ZodObject<{
14
14
  hashtags: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
15
15
  }, "strip", z.ZodTypeAny, {
16
16
  type: "image" | "video" | "carousel" | null;
17
- url: string | null;
18
17
  timestamp: string | null;
18
+ url: string | null;
19
19
  caption: string | null;
20
20
  hashtags: string[] | null;
21
21
  commentsCount: number | null;
@@ -24,8 +24,8 @@ declare const InstagramPostSchema: z.ZodObject<{
24
24
  ownerUsername: string | null;
25
25
  }, {
26
26
  type: "image" | "video" | "carousel" | null;
27
- url: string | null;
28
27
  timestamp: string | null;
28
+ url: string | null;
29
29
  caption: string | null;
30
30
  hashtags: string[] | null;
31
31
  commentsCount: number | null;
@@ -69,14 +69,14 @@ declare const InstagramToolParamsSchema: z.ZodObject<{
69
69
  credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
70
70
  }, "strip", z.ZodTypeAny, {
71
71
  operation: "scrapeProfile" | "scrapeHashtag";
72
- credentials?: Partial<Record<CredentialType, string>> | undefined;
73
72
  limit?: number | undefined;
73
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
74
74
  hashtags?: string[] | undefined;
75
75
  profiles?: string[] | undefined;
76
76
  }, {
77
77
  operation: "scrapeProfile" | "scrapeHashtag";
78
- credentials?: Partial<Record<CredentialType, string>> | undefined;
79
78
  limit?: number | undefined;
79
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
80
80
  hashtags?: string[] | undefined;
81
81
  profiles?: string[] | undefined;
82
82
  }>;
@@ -94,8 +94,8 @@ declare const InstagramToolResultSchema: z.ZodObject<{
94
94
  hashtags: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
95
95
  }, "strip", z.ZodTypeAny, {
96
96
  type: "image" | "video" | "carousel" | null;
97
- url: string | null;
98
97
  timestamp: string | null;
98
+ url: string | null;
99
99
  caption: string | null;
100
100
  hashtags: string[] | null;
101
101
  commentsCount: number | null;
@@ -104,8 +104,8 @@ declare const InstagramToolResultSchema: z.ZodObject<{
104
104
  ownerUsername: string | null;
105
105
  }, {
106
106
  type: "image" | "video" | "carousel" | null;
107
- url: string | null;
108
107
  timestamp: string | null;
108
+ url: string | null;
109
109
  caption: string | null;
110
110
  hashtags: string[] | null;
111
111
  commentsCount: number | null;
@@ -147,13 +147,13 @@ declare const InstagramToolResultSchema: z.ZodObject<{
147
147
  success: z.ZodBoolean;
148
148
  error: z.ZodString;
149
149
  }, "strip", z.ZodTypeAny, {
150
- error: string;
151
- success: boolean;
152
150
  operation: "scrapeProfile" | "scrapeHashtag";
151
+ success: boolean;
152
+ error: string;
153
153
  posts: {
154
154
  type: "image" | "video" | "carousel" | null;
155
- url: string | null;
156
155
  timestamp: string | null;
156
+ url: string | null;
157
157
  caption: string | null;
158
158
  hashtags: string[] | null;
159
159
  commentsCount: number | null;
@@ -175,13 +175,13 @@ declare const InstagramToolResultSchema: z.ZodObject<{
175
175
  scrapedHashtags?: string[] | undefined;
176
176
  scrapedProfiles?: string[] | undefined;
177
177
  }, {
178
- error: string;
179
- success: boolean;
180
178
  operation: "scrapeProfile" | "scrapeHashtag";
179
+ success: boolean;
180
+ error: string;
181
181
  posts: {
182
182
  type: "image" | "video" | "carousel" | null;
183
- url: string | null;
184
183
  timestamp: string | null;
184
+ url: string | null;
185
185
  caption: string | null;
186
186
  hashtags: string[] | null;
187
187
  commentsCount: number | null;
@@ -234,14 +234,14 @@ export declare class InstagramTool extends ToolBubble<InstagramToolParams, Insta
234
234
  credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
235
235
  }, "strip", z.ZodTypeAny, {
236
236
  operation: "scrapeProfile" | "scrapeHashtag";
237
- credentials?: Partial<Record<CredentialType, string>> | undefined;
238
237
  limit?: number | undefined;
238
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
239
239
  hashtags?: string[] | undefined;
240
240
  profiles?: string[] | undefined;
241
241
  }, {
242
242
  operation: "scrapeProfile" | "scrapeHashtag";
243
- credentials?: Partial<Record<CredentialType, string>> | undefined;
244
243
  limit?: number | undefined;
244
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
245
245
  hashtags?: string[] | undefined;
246
246
  profiles?: string[] | undefined;
247
247
  }>;
@@ -259,8 +259,8 @@ export declare class InstagramTool extends ToolBubble<InstagramToolParams, Insta
259
259
  hashtags: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
260
260
  }, "strip", z.ZodTypeAny, {
261
261
  type: "image" | "video" | "carousel" | null;
262
- url: string | null;
263
262
  timestamp: string | null;
263
+ url: string | null;
264
264
  caption: string | null;
265
265
  hashtags: string[] | null;
266
266
  commentsCount: number | null;
@@ -269,8 +269,8 @@ export declare class InstagramTool extends ToolBubble<InstagramToolParams, Insta
269
269
  ownerUsername: string | null;
270
270
  }, {
271
271
  type: "image" | "video" | "carousel" | null;
272
- url: string | null;
273
272
  timestamp: string | null;
273
+ url: string | null;
274
274
  caption: string | null;
275
275
  hashtags: string[] | null;
276
276
  commentsCount: number | null;
@@ -312,13 +312,13 @@ export declare class InstagramTool extends ToolBubble<InstagramToolParams, Insta
312
312
  success: z.ZodBoolean;
313
313
  error: z.ZodString;
314
314
  }, "strip", z.ZodTypeAny, {
315
- error: string;
316
- success: boolean;
317
315
  operation: "scrapeProfile" | "scrapeHashtag";
316
+ success: boolean;
317
+ error: string;
318
318
  posts: {
319
319
  type: "image" | "video" | "carousel" | null;
320
- url: string | null;
321
320
  timestamp: string | null;
321
+ url: string | null;
322
322
  caption: string | null;
323
323
  hashtags: string[] | null;
324
324
  commentsCount: number | null;
@@ -340,13 +340,13 @@ export declare class InstagramTool extends ToolBubble<InstagramToolParams, Insta
340
340
  scrapedHashtags?: string[] | undefined;
341
341
  scrapedProfiles?: string[] | undefined;
342
342
  }, {
343
- error: string;
344
- success: boolean;
345
343
  operation: "scrapeProfile" | "scrapeHashtag";
344
+ success: boolean;
345
+ error: string;
346
346
  posts: {
347
347
  type: "image" | "video" | "carousel" | null;
348
- url: string | null;
349
348
  timestamp: string | null;
349
+ url: string | null;
350
350
  caption: string | null;
351
351
  hashtags: string[] | null;
352
352
  commentsCount: number | null;
@@ -0,0 +1,3 @@
1
+ export { LinkedInConnectionTool } from './linkedin-connection-tool.js';
2
+ export { LinkedInConnectionToolParamsSchema, LinkedInConnectionToolResultSchema, ProfileInfoSchema, type LinkedInConnectionToolParams, type LinkedInConnectionToolParamsInput, type LinkedInConnectionToolResult, type ProfileInfo, } from './linkedin-connection-tool.schema.js';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/bubbles/tool-bubble/linkedin-connection-tool/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,EACL,kCAAkC,EAClC,kCAAkC,EAClC,iBAAiB,EACjB,KAAK,4BAA4B,EACjC,KAAK,iCAAiC,EACtC,KAAK,4BAA4B,EACjC,KAAK,WAAW,GACjB,MAAM,sCAAsC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { LinkedInConnectionTool } from './linkedin-connection-tool.js';
2
+ export { LinkedInConnectionToolParamsSchema, LinkedInConnectionToolResultSchema, ProfileInfoSchema, } from './linkedin-connection-tool.schema.js';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/bubbles/tool-bubble/linkedin-connection-tool/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,EACL,kCAAkC,EAClC,kCAAkC,EAClC,iBAAiB,GAKlB,MAAM,sCAAsC,CAAC"}
@@ -0,0 +1,160 @@
1
+ import { ToolBubble } from '../../../types/tool-bubble-class.js';
2
+ import type { BubbleContext } from '../../../types/bubble.js';
3
+ import { CredentialType, type BubbleName } from '@bubblelab/shared-schemas';
4
+ import { type LinkedInConnectionToolParamsInput, type LinkedInConnectionToolResult } from './linkedin-connection-tool.schema.js';
5
+ /**
6
+ * LinkedIn Connection Tool
7
+ *
8
+ * A tool bubble for automating LinkedIn connection requests.
9
+ * Handles both profile types:
10
+ * - Profiles with direct "Connect" button
11
+ * - Profiles where "Connect" is under the "More" dropdown
12
+ *
13
+ * Features:
14
+ * - Send connection requests to LinkedIn profiles
15
+ * - Add optional personalized notes
16
+ * - Handle various profile layouts
17
+ *
18
+ * Required Credentials:
19
+ * - LINKEDIN_CRED: Browser session credential with LinkedIn cookies
20
+ *
21
+ * Security:
22
+ * - Uses BrowserBase cloud browsers (isolated)
23
+ * - Credentials are encrypted at rest
24
+ * - Session data is not persisted beyond operation
25
+ */
26
+ export declare class LinkedInConnectionTool<T extends LinkedInConnectionToolParamsInput = LinkedInConnectionToolParamsInput> extends ToolBubble<T, LinkedInConnectionToolResult> {
27
+ static readonly bubbleName: BubbleName;
28
+ static readonly schema: import("zod").ZodDiscriminatedUnion<"operation", [import("zod").ZodObject<{
29
+ operation: import("zod").ZodLiteral<"send_connection">;
30
+ profile_url: import("zod").ZodString;
31
+ message: import("zod").ZodOptional<import("zod").ZodString>;
32
+ credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>;
33
+ }, "strip", import("zod").ZodTypeAny, {
34
+ operation: "send_connection";
35
+ profile_url: string;
36
+ message?: string | undefined;
37
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
38
+ }, {
39
+ operation: "send_connection";
40
+ profile_url: string;
41
+ message?: string | undefined;
42
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
43
+ }>]>;
44
+ static readonly resultSchema: import("zod").ZodDiscriminatedUnion<"operation", [import("zod").ZodObject<{
45
+ operation: import("zod").ZodLiteral<"send_connection">;
46
+ success: import("zod").ZodBoolean;
47
+ message: import("zod").ZodOptional<import("zod").ZodString>;
48
+ profile: import("zod").ZodOptional<import("zod").ZodObject<{
49
+ name: import("zod").ZodString;
50
+ headline: import("zod").ZodOptional<import("zod").ZodString>;
51
+ location: import("zod").ZodOptional<import("zod").ZodString>;
52
+ profile_url: import("zod").ZodString;
53
+ }, "strip", import("zod").ZodTypeAny, {
54
+ name: string;
55
+ profile_url: string;
56
+ location?: string | undefined;
57
+ headline?: string | undefined;
58
+ }, {
59
+ name: string;
60
+ profile_url: string;
61
+ location?: string | undefined;
62
+ headline?: string | undefined;
63
+ }>>;
64
+ error: import("zod").ZodString;
65
+ }, "strip", import("zod").ZodTypeAny, {
66
+ operation: "send_connection";
67
+ error: string;
68
+ success: boolean;
69
+ message?: string | undefined;
70
+ profile?: {
71
+ name: string;
72
+ profile_url: string;
73
+ location?: string | undefined;
74
+ headline?: string | undefined;
75
+ } | undefined;
76
+ }, {
77
+ operation: "send_connection";
78
+ error: string;
79
+ success: boolean;
80
+ message?: string | undefined;
81
+ profile?: {
82
+ name: string;
83
+ profile_url: string;
84
+ location?: string | undefined;
85
+ headline?: string | undefined;
86
+ } | undefined;
87
+ }>]>;
88
+ static readonly shortDescription = "LinkedIn connection automation - send connection requests with optional notes";
89
+ static readonly longDescription = "\n LinkedIn Connection Tool for automating connection requests.\n\n Features:\n - Send connection requests to LinkedIn profiles\n - Add optional personalized notes (up to 300 characters)\n - Handles profiles with direct Connect button\n - Handles profiles where Connect is under \"More\" dropdown\n\n Required Credentials:\n - LINKEDIN_CRED: Browser session credential (authenticate via browser session)\n\n Note: The tool operates using authenticated browser sessions to ensure security.\n ";
90
+ static readonly alias = "linkedin";
91
+ static readonly type = "tool";
92
+ private sessionId;
93
+ private contextId;
94
+ private cookies;
95
+ constructor(params?: T, context?: BubbleContext);
96
+ /**
97
+ * Choose the credential to use for LinkedIn operations
98
+ */
99
+ protected chooseCredential(): string | undefined;
100
+ /**
101
+ * Parse the LINKEDIN_CRED to extract contextId and cookies
102
+ */
103
+ private parseBrowserSessionData;
104
+ /**
105
+ * Start a browser session using BrowserBase
106
+ */
107
+ private startBrowserSession;
108
+ /**
109
+ * End the browser session
110
+ */
111
+ private endBrowserSession;
112
+ /**
113
+ * Navigate to a URL
114
+ */
115
+ private navigateTo;
116
+ /**
117
+ * Evaluate JavaScript in page
118
+ */
119
+ private evaluate;
120
+ /**
121
+ * Type text into an input field
122
+ */
123
+ private typeText;
124
+ /**
125
+ * Get current page URL
126
+ */
127
+ private getCurrentUrl;
128
+ /**
129
+ * Poll for an element using evaluate with retries
130
+ * More flexible than waitForSelector as it can use custom JS logic
131
+ */
132
+ private pollForElement;
133
+ /**
134
+ * Wait for page to be ready by checking for key LinkedIn profile elements
135
+ */
136
+ private waitForProfilePageReady;
137
+ /**
138
+ * Wait for modal/dialog to appear after clicking Connect
139
+ */
140
+ private waitForConnectionModal;
141
+ /**
142
+ * Wait for dropdown menu to appear after clicking "More"
143
+ */
144
+ private waitForDropdownMenu;
145
+ /**
146
+ * Save current DOM state to file for debugging
147
+ * Only saves when DEBUG env var is set
148
+ */
149
+ private saveDebugState;
150
+ performAction(): Promise<LinkedInConnectionToolResult>;
151
+ /**
152
+ * Send a connection request to a LinkedIn profile
153
+ */
154
+ private sendConnection;
155
+ /**
156
+ * Extract profile information from the current page
157
+ */
158
+ private extractProfileInfo;
159
+ }
160
+ //# sourceMappingURL=linkedin-connection-tool.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linkedin-connection-tool.d.ts","sourceRoot":"","sources":["../../../../src/bubbles/tool-bubble/linkedin-connection-tool/linkedin-connection-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,KAAK,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAM5E,OAAO,EAGL,KAAK,iCAAiC,EACtC,KAAK,4BAA4B,EAElC,MAAM,sCAAsC,CAAC;AAU9C;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,qBAAa,sBAAsB,CACjC,CAAC,SACC,iCAAiC,GAAG,iCAAiC,CACvE,SAAQ,UAAU,CAAC,CAAC,EAAE,4BAA4B,CAAC;IACnD,MAAM,CAAC,QAAQ,CAAC,UAAU,EAAE,UAAU,CAA8B;IACpE,MAAM,CAAC,QAAQ,CAAC,MAAM;;;;;;;;;;;;;;;SAAsC;IAC5D,MAAM,CAAC,QAAQ,CAAC,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAAsC;IAClE,MAAM,CAAC,QAAQ,CAAC,gBAAgB,mFACkD;IAClF,MAAM,CAAC,QAAQ,CAAC,eAAe,6gBAa7B;IACF,MAAM,CAAC,QAAQ,CAAC,KAAK,cAAc;IACnC,MAAM,CAAC,QAAQ,CAAC,IAAI,UAAU;IAE9B,OAAO,CAAC,SAAS,CAAuB;IACxC,OAAO,CAAC,SAAS,CAAuB;IACxC,OAAO,CAAC,OAAO,CAA4B;gBAGzC,MAAM,GAAE,CAA0D,EAClE,OAAO,CAAC,EAAE,aAAa;IAKzB;;OAEG;IACH,SAAS,CAAC,gBAAgB,IAAI,MAAM,GAAG,SAAS;IAYhD;;OAEG;IACH,OAAO,CAAC,uBAAuB;IA8B/B;;OAEG;YACW,mBAAmB;IAuDjC;;OAEG;YACW,iBAAiB;IAgC/B;;OAEG;YACW,UAAU;IAuBxB;;OAEG;YACW,QAAQ;IAuBtB;;OAEG;YACW,QAAQ;IAqBtB;;OAEG;YACW,aAAa;IAK3B;;;OAGG;YACW,cAAc;IAkC5B;;OAEG;YACW,uBAAuB;IA4BrC;;OAEG;YACW,sBAAsB;IAoBpC;;OAEG;YACW,mBAAmB;IAgBjC;;;OAGG;YACW,cAAc;IAyBtB,aAAa,IAAI,OAAO,CAAC,4BAA4B,CAAC;IAiB5D;;OAEG;YACW,cAAc;IA4U5B;;OAEG;YACW,kBAAkB;CA4FjC"}