@bubblelab/bubble-core 0.1.6 → 0.1.9

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 (163) hide show
  1. package/dist/bubble-bundle.d.ts +628 -299
  2. package/dist/bubble-factory.d.ts.map +1 -1
  3. package/dist/bubble-factory.js +13 -9
  4. package/dist/bubble-factory.js.map +1 -1
  5. package/dist/bubbles/service-bubble/ai-agent.d.ts +129 -111
  6. package/dist/bubbles/service-bubble/ai-agent.d.ts.map +1 -1
  7. package/dist/bubbles/service-bubble/ai-agent.js +273 -95
  8. package/dist/bubbles/service-bubble/ai-agent.js.map +1 -1
  9. package/dist/bubbles/service-bubble/apify/actors/instagram-hashtag-scraper.d.ts +805 -0
  10. package/dist/bubbles/service-bubble/apify/actors/instagram-hashtag-scraper.d.ts.map +1 -0
  11. package/dist/bubbles/service-bubble/apify/actors/instagram-hashtag-scraper.js +131 -0
  12. package/dist/bubbles/service-bubble/apify/actors/instagram-hashtag-scraper.js.map +1 -0
  13. package/dist/bubbles/service-bubble/apify/actors/instagram-scraper.d.ts +485 -0
  14. package/dist/bubbles/service-bubble/apify/actors/instagram-scraper.d.ts.map +1 -0
  15. package/dist/bubbles/service-bubble/apify/actors/instagram-scraper.js +176 -0
  16. package/dist/bubbles/service-bubble/apify/actors/instagram-scraper.js.map +1 -0
  17. package/dist/bubbles/service-bubble/apify/actors/linkedin-posts-search.d.ts +302 -0
  18. package/dist/bubbles/service-bubble/apify/actors/linkedin-posts-search.d.ts.map +1 -0
  19. package/dist/bubbles/service-bubble/apify/actors/linkedin-posts-search.js +138 -0
  20. package/dist/bubbles/service-bubble/apify/actors/linkedin-posts-search.js.map +1 -0
  21. package/dist/bubbles/service-bubble/apify/actors/linkedin-profile-posts.d.ts +642 -0
  22. package/dist/bubbles/service-bubble/apify/actors/linkedin-profile-posts.d.ts.map +1 -0
  23. package/dist/bubbles/service-bubble/apify/actors/linkedin-profile-posts.js +123 -0
  24. package/dist/bubbles/service-bubble/apify/actors/linkedin-profile-posts.js.map +1 -0
  25. package/dist/bubbles/service-bubble/apify/api-scraper.schema.d.ts +370 -0
  26. package/dist/bubbles/service-bubble/apify/api-scraper.schema.d.ts.map +1 -0
  27. package/dist/bubbles/service-bubble/apify/api-scraper.schema.js +14 -0
  28. package/dist/bubbles/service-bubble/apify/api-scraper.schema.js.map +1 -0
  29. package/dist/bubbles/service-bubble/apify/apify-scraper.schema.d.ts +1770 -0
  30. package/dist/bubbles/service-bubble/apify/apify-scraper.schema.d.ts.map +1 -0
  31. package/dist/bubbles/service-bubble/apify/apify-scraper.schema.js +38 -0
  32. package/dist/bubbles/service-bubble/apify/apify-scraper.schema.js.map +1 -0
  33. package/dist/bubbles/service-bubble/apify/apify.d.ts +143 -0
  34. package/dist/bubbles/service-bubble/apify/apify.d.ts.map +1 -0
  35. package/dist/bubbles/service-bubble/apify/apify.js +276 -0
  36. package/dist/bubbles/service-bubble/apify/apify.js.map +1 -0
  37. package/dist/bubbles/service-bubble/apify/index.d.ts +4 -0
  38. package/dist/bubbles/service-bubble/apify/index.d.ts.map +1 -0
  39. package/dist/bubbles/service-bubble/apify/index.js +3 -0
  40. package/dist/bubbles/service-bubble/apify/index.js.map +1 -0
  41. package/dist/bubbles/service-bubble/apify/types.d.ts +7 -0
  42. package/dist/bubbles/service-bubble/apify/types.d.ts.map +1 -0
  43. package/dist/bubbles/service-bubble/apify/types.js +6 -0
  44. package/dist/bubbles/service-bubble/apify/types.js.map +1 -0
  45. package/dist/bubbles/service-bubble/apify.d.ts +136 -0
  46. package/dist/bubbles/service-bubble/apify.d.ts.map +1 -0
  47. package/dist/bubbles/service-bubble/apify.js +282 -0
  48. package/dist/bubbles/service-bubble/apify.js.map +1 -0
  49. package/dist/bubbles/service-bubble/gmail.d.ts +376 -376
  50. package/dist/bubbles/service-bubble/google-calendar.d.ts +24 -24
  51. package/dist/bubbles/service-bubble/google-drive.d.ts +68 -68
  52. package/dist/bubbles/service-bubble/google-sheets.d.ts +64 -64
  53. package/dist/bubbles/service-bubble/hello-world.d.ts +4 -4
  54. package/dist/bubbles/service-bubble/http.d.ts +16 -16
  55. package/dist/bubbles/service-bubble/postgresql.d.ts +12 -12
  56. package/dist/bubbles/service-bubble/resend.d.ts +17 -17
  57. package/dist/bubbles/service-bubble/resend.d.ts.map +1 -1
  58. package/dist/bubbles/service-bubble/resend.js +16 -5
  59. package/dist/bubbles/service-bubble/resend.js.map +1 -1
  60. package/dist/bubbles/service-bubble/slack.d.ts +470 -470
  61. package/dist/bubbles/service-bubble/storage.d.ts +32 -32
  62. package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.d.ts +4 -4
  63. package/dist/bubbles/tool-bubble/chart-js-tool.d.ts +12 -12
  64. package/dist/bubbles/tool-bubble/get-bubble-details-tool.d.ts +18 -5
  65. package/dist/bubbles/tool-bubble/get-bubble-details-tool.d.ts.map +1 -1
  66. package/dist/bubbles/tool-bubble/get-bubble-details-tool.js +85 -39
  67. package/dist/bubbles/tool-bubble/get-bubble-details-tool.js.map +1 -1
  68. package/dist/bubbles/tool-bubble/instagram-tool.d.ts +435 -0
  69. package/dist/bubbles/tool-bubble/instagram-tool.d.ts.map +1 -0
  70. package/dist/bubbles/tool-bubble/instagram-tool.js +474 -0
  71. package/dist/bubbles/tool-bubble/instagram-tool.js.map +1 -0
  72. package/dist/bubbles/tool-bubble/linkedin-tool.d.ts +2136 -0
  73. package/dist/bubbles/tool-bubble/linkedin-tool.d.ts.map +1 -0
  74. package/dist/bubbles/tool-bubble/linkedin-tool.js +608 -0
  75. package/dist/bubbles/tool-bubble/linkedin-tool.js.map +1 -0
  76. package/dist/bubbles/tool-bubble/list-bubbles-tool.d.ts +4 -4
  77. package/dist/bubbles/tool-bubble/reddit-scrape-tool.d.ts +14 -14
  78. package/dist/bubbles/tool-bubble/research-agent-tool.d.ts +14 -14
  79. package/dist/bubbles/tool-bubble/research-agent-tool.js +1 -1
  80. package/dist/bubbles/tool-bubble/research-agent-tool.js.map +1 -1
  81. package/dist/bubbles/tool-bubble/sql-query-tool.d.ts +8 -8
  82. package/dist/bubbles/tool-bubble/tool-template.d.ts +4 -4
  83. package/dist/bubbles/tool-bubble/web-crawl-tool.d.ts +4 -4
  84. package/dist/bubbles/tool-bubble/web-extract-tool.d.ts +8 -8
  85. package/dist/bubbles/tool-bubble/web-scrape-tool.d.ts +4 -4
  86. package/dist/bubbles/tool-bubble/web-scrape-tool.js +1 -1
  87. package/dist/bubbles/tool-bubble/web-scrape-tool.js.map +1 -1
  88. package/dist/bubbles/tool-bubble/web-search-tool.d.ts +10 -10
  89. package/dist/bubbles/tool-bubble/web-search-tool.js +1 -1
  90. package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.d.ts +8 -8
  91. package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.d.ts.map +1 -1
  92. package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.js +5 -0
  93. package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.js.map +1 -1
  94. package/dist/bubbles/workflow-bubble/database-analyzer.workflow.d.ts +4 -4
  95. package/dist/bubbles/workflow-bubble/generate-document.workflow.d.ts +14 -14
  96. package/dist/bubbles/workflow-bubble/generate-document.workflow.js +1 -1
  97. package/dist/bubbles/workflow-bubble/generate-document.workflow.js.map +1 -1
  98. package/dist/bubbles/workflow-bubble/parse-document.workflow.d.ts +14 -14
  99. package/dist/bubbles/workflow-bubble/parse-document.workflow.js +1 -1
  100. package/dist/bubbles/workflow-bubble/parse-document.workflow.js.map +1 -1
  101. package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts +106 -106
  102. package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts.map +1 -1
  103. package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.js +1 -4
  104. package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.js.map +1 -1
  105. package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.d.ts +28 -28
  106. package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.js +1 -1
  107. package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.js.map +1 -1
  108. package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.d.ts +12 -12
  109. package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.js +1 -1
  110. package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.js.map +1 -1
  111. package/dist/bubbles/workflow-bubble/slack-formatter-agent.d.ts +32 -32
  112. package/dist/bubbles/workflow-bubble/slack-formatter-agent.js +1 -1
  113. package/dist/bubbles/workflow-bubble/slack-formatter-agent.js.map +1 -1
  114. package/dist/bubbles/workflow-bubble/slack-notifier.workflow.d.ts +14 -14
  115. package/dist/bubbles/workflow-bubble/slack-notifier.workflow.d.ts.map +1 -1
  116. package/dist/bubbles/workflow-bubble/slack-notifier.workflow.js +1 -2
  117. package/dist/bubbles/workflow-bubble/slack-notifier.workflow.js.map +1 -1
  118. package/dist/bubbles.json +474 -0
  119. package/dist/index.d.ts +12 -1
  120. package/dist/index.d.ts.map +1 -1
  121. package/dist/index.js +6 -0
  122. package/dist/index.js.map +1 -1
  123. package/dist/logging/BubbleLogger.d.ts +11 -0
  124. package/dist/logging/BubbleLogger.d.ts.map +1 -1
  125. package/dist/logging/BubbleLogger.js +69 -22
  126. package/dist/logging/BubbleLogger.js.map +1 -1
  127. package/dist/logging/StreamingBubbleLogger.d.ts.map +1 -1
  128. package/dist/logging/StreamingBubbleLogger.js +18 -11
  129. package/dist/logging/StreamingBubbleLogger.js.map +1 -1
  130. package/dist/types/ai-models.d.ts +1 -1
  131. package/dist/types/ai-models.d.ts.map +1 -1
  132. package/dist/types/ai-models.js +4 -0
  133. package/dist/types/ai-models.js.map +1 -1
  134. package/dist/types/api-scraper.schema.d.ts +453 -0
  135. package/dist/types/api-scraper.schema.d.ts.map +1 -0
  136. package/dist/types/api-scraper.schema.js +160 -0
  137. package/dist/types/api-scraper.schema.js.map +1 -0
  138. package/dist/types/available-tools.d.ts +1 -1
  139. package/dist/types/available-tools.d.ts.map +1 -1
  140. package/dist/types/available-tools.js +2 -0
  141. package/dist/types/available-tools.js.map +1 -1
  142. package/dist/types/base-bubble-class.d.ts +5 -0
  143. package/dist/types/base-bubble-class.d.ts.map +1 -1
  144. package/dist/types/base-bubble-class.js +18 -3
  145. package/dist/types/base-bubble-class.js.map +1 -1
  146. package/dist/types/bubble.d.ts +2 -3
  147. package/dist/types/bubble.d.ts.map +1 -1
  148. package/dist/types/service-bubble-class.d.ts +4 -4
  149. package/dist/types/service-bubble-class.d.ts.map +1 -1
  150. package/dist/types/service-bubble-class.js +6 -7
  151. package/dist/types/service-bubble-class.js.map +1 -1
  152. package/dist/types/tool-bubble-class.d.ts.map +1 -1
  153. package/dist/types/tool-bubble-class.js +9 -1
  154. package/dist/types/tool-bubble-class.js.map +1 -1
  155. package/dist/utils/agent-formatter.d.ts +17 -0
  156. package/dist/utils/agent-formatter.d.ts.map +1 -0
  157. package/dist/utils/agent-formatter.js +139 -0
  158. package/dist/utils/agent-formatter.js.map +1 -0
  159. package/dist/utils/json-parsing.d.ts +1 -0
  160. package/dist/utils/json-parsing.d.ts.map +1 -1
  161. package/dist/utils/json-parsing.js +205 -32
  162. package/dist/utils/json-parsing.js.map +1 -1
  163. package/package.json +4 -3
@@ -0,0 +1,2136 @@
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, type BubbleName } from '@bubblelab/shared-schemas';
5
+ declare const LinkedInAuthorSchema: z.ZodObject<{
6
+ firstName: z.ZodNullable<z.ZodString>;
7
+ lastName: z.ZodNullable<z.ZodString>;
8
+ headline: z.ZodNullable<z.ZodString>;
9
+ username: z.ZodNullable<z.ZodString>;
10
+ profileUrl: z.ZodNullable<z.ZodString>;
11
+ profilePicture: z.ZodNullable<z.ZodString>;
12
+ }, "strip", z.ZodTypeAny, {
13
+ username: string | null;
14
+ headline: string | null;
15
+ firstName: string | null;
16
+ lastName: string | null;
17
+ profileUrl: string | null;
18
+ profilePicture: string | null;
19
+ }, {
20
+ username: string | null;
21
+ headline: string | null;
22
+ firstName: string | null;
23
+ lastName: string | null;
24
+ profileUrl: string | null;
25
+ profilePicture: string | null;
26
+ }>;
27
+ declare const LinkedInStatsSchema: z.ZodObject<{
28
+ totalReactions: z.ZodNullable<z.ZodNumber>;
29
+ like: z.ZodNullable<z.ZodNumber>;
30
+ support: z.ZodNullable<z.ZodNumber>;
31
+ love: z.ZodNullable<z.ZodNumber>;
32
+ insight: z.ZodNullable<z.ZodNumber>;
33
+ celebrate: z.ZodNullable<z.ZodNumber>;
34
+ funny: z.ZodNullable<z.ZodNumber>;
35
+ comments: z.ZodNullable<z.ZodNumber>;
36
+ reposts: z.ZodNullable<z.ZodNumber>;
37
+ }, "strip", z.ZodTypeAny, {
38
+ like: number | null;
39
+ support: number | null;
40
+ love: number | null;
41
+ insight: number | null;
42
+ celebrate: number | null;
43
+ funny: number | null;
44
+ comments: number | null;
45
+ reposts: number | null;
46
+ totalReactions: number | null;
47
+ }, {
48
+ like: number | null;
49
+ support: number | null;
50
+ love: number | null;
51
+ insight: number | null;
52
+ celebrate: number | null;
53
+ funny: number | null;
54
+ comments: number | null;
55
+ reposts: number | null;
56
+ totalReactions: number | null;
57
+ }>;
58
+ declare const LinkedInPostSchema: z.ZodObject<{
59
+ urn: z.ZodNullable<z.ZodString>;
60
+ fullUrn: z.ZodNullable<z.ZodString>;
61
+ postedAt: z.ZodNullable<z.ZodObject<{
62
+ date: z.ZodNullable<z.ZodString>;
63
+ relative: z.ZodNullable<z.ZodString>;
64
+ timestamp: z.ZodNullable<z.ZodNumber>;
65
+ }, "strip", z.ZodTypeAny, {
66
+ date: string | null;
67
+ timestamp: number | null;
68
+ relative: string | null;
69
+ }, {
70
+ date: string | null;
71
+ timestamp: number | null;
72
+ relative: string | null;
73
+ }>>;
74
+ text: z.ZodNullable<z.ZodString>;
75
+ url: z.ZodNullable<z.ZodString>;
76
+ postType: z.ZodNullable<z.ZodString>;
77
+ author: z.ZodNullable<z.ZodObject<{
78
+ firstName: z.ZodNullable<z.ZodString>;
79
+ lastName: z.ZodNullable<z.ZodString>;
80
+ headline: z.ZodNullable<z.ZodString>;
81
+ username: z.ZodNullable<z.ZodString>;
82
+ profileUrl: z.ZodNullable<z.ZodString>;
83
+ profilePicture: z.ZodNullable<z.ZodString>;
84
+ }, "strip", z.ZodTypeAny, {
85
+ username: string | null;
86
+ headline: string | null;
87
+ firstName: string | null;
88
+ lastName: string | null;
89
+ profileUrl: string | null;
90
+ profilePicture: string | null;
91
+ }, {
92
+ username: string | null;
93
+ headline: string | null;
94
+ firstName: string | null;
95
+ lastName: string | null;
96
+ profileUrl: string | null;
97
+ profilePicture: string | null;
98
+ }>>;
99
+ stats: z.ZodNullable<z.ZodObject<{
100
+ totalReactions: z.ZodNullable<z.ZodNumber>;
101
+ like: z.ZodNullable<z.ZodNumber>;
102
+ support: z.ZodNullable<z.ZodNumber>;
103
+ love: z.ZodNullable<z.ZodNumber>;
104
+ insight: z.ZodNullable<z.ZodNumber>;
105
+ celebrate: z.ZodNullable<z.ZodNumber>;
106
+ funny: z.ZodNullable<z.ZodNumber>;
107
+ comments: z.ZodNullable<z.ZodNumber>;
108
+ reposts: z.ZodNullable<z.ZodNumber>;
109
+ }, "strip", z.ZodTypeAny, {
110
+ like: number | null;
111
+ support: number | null;
112
+ love: number | null;
113
+ insight: number | null;
114
+ celebrate: number | null;
115
+ funny: number | null;
116
+ comments: number | null;
117
+ reposts: number | null;
118
+ totalReactions: number | null;
119
+ }, {
120
+ like: number | null;
121
+ support: number | null;
122
+ love: number | null;
123
+ insight: number | null;
124
+ celebrate: number | null;
125
+ funny: number | null;
126
+ comments: number | null;
127
+ reposts: number | null;
128
+ totalReactions: number | null;
129
+ }>>;
130
+ media: z.ZodNullable<z.ZodObject<{
131
+ type: z.ZodNullable<z.ZodString>;
132
+ url: z.ZodNullable<z.ZodString>;
133
+ thumbnail: z.ZodNullable<z.ZodString>;
134
+ images: z.ZodNullable<z.ZodArray<z.ZodObject<{
135
+ url: z.ZodNullable<z.ZodString>;
136
+ width: z.ZodNullable<z.ZodNumber>;
137
+ height: z.ZodNullable<z.ZodNumber>;
138
+ }, "strip", z.ZodTypeAny, {
139
+ url: string | null;
140
+ width: number | null;
141
+ height: number | null;
142
+ }, {
143
+ url: string | null;
144
+ width: number | null;
145
+ height: number | null;
146
+ }>, "many">>;
147
+ }, "strip", z.ZodTypeAny, {
148
+ type: string | null;
149
+ url: string | null;
150
+ images: {
151
+ url: string | null;
152
+ width: number | null;
153
+ height: number | null;
154
+ }[] | null;
155
+ thumbnail: string | null;
156
+ }, {
157
+ type: string | null;
158
+ url: string | null;
159
+ images: {
160
+ url: string | null;
161
+ width: number | null;
162
+ height: number | null;
163
+ }[] | null;
164
+ thumbnail: string | null;
165
+ }>>;
166
+ article: z.ZodNullable<z.ZodObject<{
167
+ url: z.ZodNullable<z.ZodString>;
168
+ title: z.ZodNullable<z.ZodString>;
169
+ subtitle: z.ZodNullable<z.ZodString>;
170
+ thumbnail: z.ZodNullable<z.ZodString>;
171
+ }, "strip", z.ZodTypeAny, {
172
+ title: string | null;
173
+ url: string | null;
174
+ subtitle: string | null;
175
+ thumbnail: string | null;
176
+ }, {
177
+ title: string | null;
178
+ url: string | null;
179
+ subtitle: string | null;
180
+ thumbnail: string | null;
181
+ }>>;
182
+ document: z.ZodNullable<z.ZodObject<{
183
+ title: z.ZodNullable<z.ZodString>;
184
+ pageCount: z.ZodNullable<z.ZodNumber>;
185
+ url: z.ZodNullable<z.ZodString>;
186
+ thumbnail: z.ZodNullable<z.ZodString>;
187
+ }, "strip", z.ZodTypeAny, {
188
+ title: string | null;
189
+ url: string | null;
190
+ thumbnail: string | null;
191
+ pageCount: number | null;
192
+ }, {
193
+ title: string | null;
194
+ url: string | null;
195
+ thumbnail: string | null;
196
+ pageCount: number | null;
197
+ }>>;
198
+ resharedPost: z.ZodNullable<z.ZodObject<{
199
+ urn: z.ZodNullable<z.ZodString>;
200
+ postedAt: z.ZodNullable<z.ZodObject<{
201
+ date: z.ZodNullable<z.ZodString>;
202
+ relative: z.ZodNullable<z.ZodString>;
203
+ timestamp: z.ZodNullable<z.ZodNumber>;
204
+ }, "strip", z.ZodTypeAny, {
205
+ date: string | null;
206
+ timestamp: number | null;
207
+ relative: string | null;
208
+ }, {
209
+ date: string | null;
210
+ timestamp: number | null;
211
+ relative: string | null;
212
+ }>>;
213
+ text: z.ZodNullable<z.ZodString>;
214
+ url: z.ZodNullable<z.ZodString>;
215
+ postType: z.ZodNullable<z.ZodString>;
216
+ author: z.ZodNullable<z.ZodObject<{
217
+ firstName: z.ZodNullable<z.ZodString>;
218
+ lastName: z.ZodNullable<z.ZodString>;
219
+ headline: z.ZodNullable<z.ZodString>;
220
+ username: z.ZodNullable<z.ZodString>;
221
+ profileUrl: z.ZodNullable<z.ZodString>;
222
+ profilePicture: z.ZodNullable<z.ZodString>;
223
+ }, "strip", z.ZodTypeAny, {
224
+ username: string | null;
225
+ headline: string | null;
226
+ firstName: string | null;
227
+ lastName: string | null;
228
+ profileUrl: string | null;
229
+ profilePicture: string | null;
230
+ }, {
231
+ username: string | null;
232
+ headline: string | null;
233
+ firstName: string | null;
234
+ lastName: string | null;
235
+ profileUrl: string | null;
236
+ profilePicture: string | null;
237
+ }>>;
238
+ stats: z.ZodNullable<z.ZodObject<{
239
+ totalReactions: z.ZodNullable<z.ZodNumber>;
240
+ like: z.ZodNullable<z.ZodNumber>;
241
+ support: z.ZodNullable<z.ZodNumber>;
242
+ love: z.ZodNullable<z.ZodNumber>;
243
+ insight: z.ZodNullable<z.ZodNumber>;
244
+ celebrate: z.ZodNullable<z.ZodNumber>;
245
+ funny: z.ZodNullable<z.ZodNumber>;
246
+ comments: z.ZodNullable<z.ZodNumber>;
247
+ reposts: z.ZodNullable<z.ZodNumber>;
248
+ }, "strip", z.ZodTypeAny, {
249
+ like: number | null;
250
+ support: number | null;
251
+ love: number | null;
252
+ insight: number | null;
253
+ celebrate: number | null;
254
+ funny: number | null;
255
+ comments: number | null;
256
+ reposts: number | null;
257
+ totalReactions: number | null;
258
+ }, {
259
+ like: number | null;
260
+ support: number | null;
261
+ love: number | null;
262
+ insight: number | null;
263
+ celebrate: number | null;
264
+ funny: number | null;
265
+ comments: number | null;
266
+ reposts: number | null;
267
+ totalReactions: number | null;
268
+ }>>;
269
+ media: z.ZodNullable<z.ZodObject<{
270
+ type: z.ZodNullable<z.ZodString>;
271
+ url: z.ZodNullable<z.ZodString>;
272
+ thumbnail: z.ZodNullable<z.ZodString>;
273
+ images: z.ZodNullable<z.ZodArray<z.ZodObject<{
274
+ url: z.ZodNullable<z.ZodString>;
275
+ width: z.ZodNullable<z.ZodNumber>;
276
+ height: z.ZodNullable<z.ZodNumber>;
277
+ }, "strip", z.ZodTypeAny, {
278
+ url: string | null;
279
+ width: number | null;
280
+ height: number | null;
281
+ }, {
282
+ url: string | null;
283
+ width: number | null;
284
+ height: number | null;
285
+ }>, "many">>;
286
+ }, "strip", z.ZodTypeAny, {
287
+ type: string | null;
288
+ url: string | null;
289
+ images: {
290
+ url: string | null;
291
+ width: number | null;
292
+ height: number | null;
293
+ }[] | null;
294
+ thumbnail: string | null;
295
+ }, {
296
+ type: string | null;
297
+ url: string | null;
298
+ images: {
299
+ url: string | null;
300
+ width: number | null;
301
+ height: number | null;
302
+ }[] | null;
303
+ thumbnail: string | null;
304
+ }>>;
305
+ }, "strip", z.ZodTypeAny, {
306
+ text: string | null;
307
+ url: string | null;
308
+ urn: string | null;
309
+ author: {
310
+ username: string | null;
311
+ headline: string | null;
312
+ firstName: string | null;
313
+ lastName: string | null;
314
+ profileUrl: string | null;
315
+ profilePicture: string | null;
316
+ } | null;
317
+ stats: {
318
+ like: number | null;
319
+ support: number | null;
320
+ love: number | null;
321
+ insight: number | null;
322
+ celebrate: number | null;
323
+ funny: number | null;
324
+ comments: number | null;
325
+ reposts: number | null;
326
+ totalReactions: number | null;
327
+ } | null;
328
+ media: {
329
+ type: string | null;
330
+ url: string | null;
331
+ images: {
332
+ url: string | null;
333
+ width: number | null;
334
+ height: number | null;
335
+ }[] | null;
336
+ thumbnail: string | null;
337
+ } | null;
338
+ postedAt: {
339
+ date: string | null;
340
+ timestamp: number | null;
341
+ relative: string | null;
342
+ } | null;
343
+ postType: string | null;
344
+ }, {
345
+ text: string | null;
346
+ url: string | null;
347
+ urn: string | null;
348
+ author: {
349
+ username: string | null;
350
+ headline: string | null;
351
+ firstName: string | null;
352
+ lastName: string | null;
353
+ profileUrl: string | null;
354
+ profilePicture: string | null;
355
+ } | null;
356
+ stats: {
357
+ like: number | null;
358
+ support: number | null;
359
+ love: number | null;
360
+ insight: number | null;
361
+ celebrate: number | null;
362
+ funny: number | null;
363
+ comments: number | null;
364
+ reposts: number | null;
365
+ totalReactions: number | null;
366
+ } | null;
367
+ media: {
368
+ type: string | null;
369
+ url: string | null;
370
+ images: {
371
+ url: string | null;
372
+ width: number | null;
373
+ height: number | null;
374
+ }[] | null;
375
+ thumbnail: string | null;
376
+ } | null;
377
+ postedAt: {
378
+ date: string | null;
379
+ timestamp: number | null;
380
+ relative: string | null;
381
+ } | null;
382
+ postType: string | null;
383
+ }>>;
384
+ }, "strip", z.ZodTypeAny, {
385
+ text: string | null;
386
+ url: string | null;
387
+ urn: string | null;
388
+ author: {
389
+ username: string | null;
390
+ headline: string | null;
391
+ firstName: string | null;
392
+ lastName: string | null;
393
+ profileUrl: string | null;
394
+ profilePicture: string | null;
395
+ } | null;
396
+ stats: {
397
+ like: number | null;
398
+ support: number | null;
399
+ love: number | null;
400
+ insight: number | null;
401
+ celebrate: number | null;
402
+ funny: number | null;
403
+ comments: number | null;
404
+ reposts: number | null;
405
+ totalReactions: number | null;
406
+ } | null;
407
+ media: {
408
+ type: string | null;
409
+ url: string | null;
410
+ images: {
411
+ url: string | null;
412
+ width: number | null;
413
+ height: number | null;
414
+ }[] | null;
415
+ thumbnail: string | null;
416
+ } | null;
417
+ article: {
418
+ title: string | null;
419
+ url: string | null;
420
+ subtitle: string | null;
421
+ thumbnail: string | null;
422
+ } | null;
423
+ document: {
424
+ title: string | null;
425
+ url: string | null;
426
+ thumbnail: string | null;
427
+ pageCount: number | null;
428
+ } | null;
429
+ fullUrn: string | null;
430
+ postedAt: {
431
+ date: string | null;
432
+ timestamp: number | null;
433
+ relative: string | null;
434
+ } | null;
435
+ postType: string | null;
436
+ resharedPost: {
437
+ text: string | null;
438
+ url: string | null;
439
+ urn: string | null;
440
+ author: {
441
+ username: string | null;
442
+ headline: string | null;
443
+ firstName: string | null;
444
+ lastName: string | null;
445
+ profileUrl: string | null;
446
+ profilePicture: string | null;
447
+ } | null;
448
+ stats: {
449
+ like: number | null;
450
+ support: number | null;
451
+ love: number | null;
452
+ insight: number | null;
453
+ celebrate: number | null;
454
+ funny: number | null;
455
+ comments: number | null;
456
+ reposts: number | null;
457
+ totalReactions: number | null;
458
+ } | null;
459
+ media: {
460
+ type: string | null;
461
+ url: string | null;
462
+ images: {
463
+ url: string | null;
464
+ width: number | null;
465
+ height: number | null;
466
+ }[] | null;
467
+ thumbnail: string | null;
468
+ } | null;
469
+ postedAt: {
470
+ date: string | null;
471
+ timestamp: number | null;
472
+ relative: string | null;
473
+ } | null;
474
+ postType: string | null;
475
+ } | null;
476
+ }, {
477
+ text: string | null;
478
+ url: string | null;
479
+ urn: string | null;
480
+ author: {
481
+ username: string | null;
482
+ headline: string | null;
483
+ firstName: string | null;
484
+ lastName: string | null;
485
+ profileUrl: string | null;
486
+ profilePicture: string | null;
487
+ } | null;
488
+ stats: {
489
+ like: number | null;
490
+ support: number | null;
491
+ love: number | null;
492
+ insight: number | null;
493
+ celebrate: number | null;
494
+ funny: number | null;
495
+ comments: number | null;
496
+ reposts: number | null;
497
+ totalReactions: number | null;
498
+ } | null;
499
+ media: {
500
+ type: string | null;
501
+ url: string | null;
502
+ images: {
503
+ url: string | null;
504
+ width: number | null;
505
+ height: number | null;
506
+ }[] | null;
507
+ thumbnail: string | null;
508
+ } | null;
509
+ article: {
510
+ title: string | null;
511
+ url: string | null;
512
+ subtitle: string | null;
513
+ thumbnail: string | null;
514
+ } | null;
515
+ document: {
516
+ title: string | null;
517
+ url: string | null;
518
+ thumbnail: string | null;
519
+ pageCount: number | null;
520
+ } | null;
521
+ fullUrn: string | null;
522
+ postedAt: {
523
+ date: string | null;
524
+ timestamp: number | null;
525
+ relative: string | null;
526
+ } | null;
527
+ postType: string | null;
528
+ resharedPost: {
529
+ text: string | null;
530
+ url: string | null;
531
+ urn: string | null;
532
+ author: {
533
+ username: string | null;
534
+ headline: string | null;
535
+ firstName: string | null;
536
+ lastName: string | null;
537
+ profileUrl: string | null;
538
+ profilePicture: string | null;
539
+ } | null;
540
+ stats: {
541
+ like: number | null;
542
+ support: number | null;
543
+ love: number | null;
544
+ insight: number | null;
545
+ celebrate: number | null;
546
+ funny: number | null;
547
+ comments: number | null;
548
+ reposts: number | null;
549
+ totalReactions: number | null;
550
+ } | null;
551
+ media: {
552
+ type: string | null;
553
+ url: string | null;
554
+ images: {
555
+ url: string | null;
556
+ width: number | null;
557
+ height: number | null;
558
+ }[] | null;
559
+ thumbnail: string | null;
560
+ } | null;
561
+ postedAt: {
562
+ date: string | null;
563
+ timestamp: number | null;
564
+ relative: string | null;
565
+ } | null;
566
+ postType: string | null;
567
+ } | null;
568
+ }>;
569
+ declare const LinkedInToolParamsSchema: z.ZodObject<{
570
+ operation: z.ZodEnum<["scrapePosts", "searchPosts"]>;
571
+ username: z.ZodOptional<z.ZodString>;
572
+ keyword: z.ZodOptional<z.ZodString>;
573
+ sortBy: z.ZodOptional<z.ZodDefault<z.ZodEnum<["relevance", "date_posted"]>>>;
574
+ dateFilter: z.ZodOptional<z.ZodDefault<z.ZodEnum<["", "past-24h", "past-week", "past-month"]>>>;
575
+ limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
576
+ pageNumber: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
577
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
578
+ }, "strip", z.ZodTypeAny, {
579
+ operation: "scrapePosts" | "searchPosts";
580
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
581
+ limit?: number | undefined;
582
+ username?: string | undefined;
583
+ keyword?: string | undefined;
584
+ sortBy?: "relevance" | "date_posted" | undefined;
585
+ dateFilter?: "" | "past-24h" | "past-week" | "past-month" | undefined;
586
+ pageNumber?: number | undefined;
587
+ }, {
588
+ operation: "scrapePosts" | "searchPosts";
589
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
590
+ limit?: number | undefined;
591
+ username?: string | undefined;
592
+ keyword?: string | undefined;
593
+ sortBy?: "relevance" | "date_posted" | undefined;
594
+ dateFilter?: "" | "past-24h" | "past-week" | "past-month" | undefined;
595
+ pageNumber?: number | undefined;
596
+ }>;
597
+ declare const LinkedInToolResultSchema: z.ZodObject<{
598
+ operation: z.ZodEnum<["scrapePosts", "searchPosts"]>;
599
+ posts: z.ZodArray<z.ZodObject<{
600
+ urn: z.ZodNullable<z.ZodString>;
601
+ fullUrn: z.ZodNullable<z.ZodString>;
602
+ postedAt: z.ZodNullable<z.ZodObject<{
603
+ date: z.ZodNullable<z.ZodString>;
604
+ relative: z.ZodNullable<z.ZodString>;
605
+ timestamp: z.ZodNullable<z.ZodNumber>;
606
+ }, "strip", z.ZodTypeAny, {
607
+ date: string | null;
608
+ timestamp: number | null;
609
+ relative: string | null;
610
+ }, {
611
+ date: string | null;
612
+ timestamp: number | null;
613
+ relative: string | null;
614
+ }>>;
615
+ text: z.ZodNullable<z.ZodString>;
616
+ url: z.ZodNullable<z.ZodString>;
617
+ postType: z.ZodNullable<z.ZodString>;
618
+ author: z.ZodNullable<z.ZodObject<{
619
+ firstName: z.ZodNullable<z.ZodString>;
620
+ lastName: z.ZodNullable<z.ZodString>;
621
+ headline: z.ZodNullable<z.ZodString>;
622
+ username: z.ZodNullable<z.ZodString>;
623
+ profileUrl: z.ZodNullable<z.ZodString>;
624
+ profilePicture: z.ZodNullable<z.ZodString>;
625
+ }, "strip", z.ZodTypeAny, {
626
+ username: string | null;
627
+ headline: string | null;
628
+ firstName: string | null;
629
+ lastName: string | null;
630
+ profileUrl: string | null;
631
+ profilePicture: string | null;
632
+ }, {
633
+ username: string | null;
634
+ headline: string | null;
635
+ firstName: string | null;
636
+ lastName: string | null;
637
+ profileUrl: string | null;
638
+ profilePicture: string | null;
639
+ }>>;
640
+ stats: z.ZodNullable<z.ZodObject<{
641
+ totalReactions: z.ZodNullable<z.ZodNumber>;
642
+ like: z.ZodNullable<z.ZodNumber>;
643
+ support: z.ZodNullable<z.ZodNumber>;
644
+ love: z.ZodNullable<z.ZodNumber>;
645
+ insight: z.ZodNullable<z.ZodNumber>;
646
+ celebrate: z.ZodNullable<z.ZodNumber>;
647
+ funny: z.ZodNullable<z.ZodNumber>;
648
+ comments: z.ZodNullable<z.ZodNumber>;
649
+ reposts: z.ZodNullable<z.ZodNumber>;
650
+ }, "strip", z.ZodTypeAny, {
651
+ like: number | null;
652
+ support: number | null;
653
+ love: number | null;
654
+ insight: number | null;
655
+ celebrate: number | null;
656
+ funny: number | null;
657
+ comments: number | null;
658
+ reposts: number | null;
659
+ totalReactions: number | null;
660
+ }, {
661
+ like: number | null;
662
+ support: number | null;
663
+ love: number | null;
664
+ insight: number | null;
665
+ celebrate: number | null;
666
+ funny: number | null;
667
+ comments: number | null;
668
+ reposts: number | null;
669
+ totalReactions: number | null;
670
+ }>>;
671
+ media: z.ZodNullable<z.ZodObject<{
672
+ type: z.ZodNullable<z.ZodString>;
673
+ url: z.ZodNullable<z.ZodString>;
674
+ thumbnail: z.ZodNullable<z.ZodString>;
675
+ images: z.ZodNullable<z.ZodArray<z.ZodObject<{
676
+ url: z.ZodNullable<z.ZodString>;
677
+ width: z.ZodNullable<z.ZodNumber>;
678
+ height: z.ZodNullable<z.ZodNumber>;
679
+ }, "strip", z.ZodTypeAny, {
680
+ url: string | null;
681
+ width: number | null;
682
+ height: number | null;
683
+ }, {
684
+ url: string | null;
685
+ width: number | null;
686
+ height: number | null;
687
+ }>, "many">>;
688
+ }, "strip", z.ZodTypeAny, {
689
+ type: string | null;
690
+ url: string | null;
691
+ images: {
692
+ url: string | null;
693
+ width: number | null;
694
+ height: number | null;
695
+ }[] | null;
696
+ thumbnail: string | null;
697
+ }, {
698
+ type: string | null;
699
+ url: string | null;
700
+ images: {
701
+ url: string | null;
702
+ width: number | null;
703
+ height: number | null;
704
+ }[] | null;
705
+ thumbnail: string | null;
706
+ }>>;
707
+ article: z.ZodNullable<z.ZodObject<{
708
+ url: z.ZodNullable<z.ZodString>;
709
+ title: z.ZodNullable<z.ZodString>;
710
+ subtitle: z.ZodNullable<z.ZodString>;
711
+ thumbnail: z.ZodNullable<z.ZodString>;
712
+ }, "strip", z.ZodTypeAny, {
713
+ title: string | null;
714
+ url: string | null;
715
+ subtitle: string | null;
716
+ thumbnail: string | null;
717
+ }, {
718
+ title: string | null;
719
+ url: string | null;
720
+ subtitle: string | null;
721
+ thumbnail: string | null;
722
+ }>>;
723
+ document: z.ZodNullable<z.ZodObject<{
724
+ title: z.ZodNullable<z.ZodString>;
725
+ pageCount: z.ZodNullable<z.ZodNumber>;
726
+ url: z.ZodNullable<z.ZodString>;
727
+ thumbnail: z.ZodNullable<z.ZodString>;
728
+ }, "strip", z.ZodTypeAny, {
729
+ title: string | null;
730
+ url: string | null;
731
+ thumbnail: string | null;
732
+ pageCount: number | null;
733
+ }, {
734
+ title: string | null;
735
+ url: string | null;
736
+ thumbnail: string | null;
737
+ pageCount: number | null;
738
+ }>>;
739
+ resharedPost: z.ZodNullable<z.ZodObject<{
740
+ urn: z.ZodNullable<z.ZodString>;
741
+ postedAt: z.ZodNullable<z.ZodObject<{
742
+ date: z.ZodNullable<z.ZodString>;
743
+ relative: z.ZodNullable<z.ZodString>;
744
+ timestamp: z.ZodNullable<z.ZodNumber>;
745
+ }, "strip", z.ZodTypeAny, {
746
+ date: string | null;
747
+ timestamp: number | null;
748
+ relative: string | null;
749
+ }, {
750
+ date: string | null;
751
+ timestamp: number | null;
752
+ relative: string | null;
753
+ }>>;
754
+ text: z.ZodNullable<z.ZodString>;
755
+ url: z.ZodNullable<z.ZodString>;
756
+ postType: z.ZodNullable<z.ZodString>;
757
+ author: z.ZodNullable<z.ZodObject<{
758
+ firstName: z.ZodNullable<z.ZodString>;
759
+ lastName: z.ZodNullable<z.ZodString>;
760
+ headline: z.ZodNullable<z.ZodString>;
761
+ username: z.ZodNullable<z.ZodString>;
762
+ profileUrl: z.ZodNullable<z.ZodString>;
763
+ profilePicture: z.ZodNullable<z.ZodString>;
764
+ }, "strip", z.ZodTypeAny, {
765
+ username: string | null;
766
+ headline: string | null;
767
+ firstName: string | null;
768
+ lastName: string | null;
769
+ profileUrl: string | null;
770
+ profilePicture: string | null;
771
+ }, {
772
+ username: string | null;
773
+ headline: string | null;
774
+ firstName: string | null;
775
+ lastName: string | null;
776
+ profileUrl: string | null;
777
+ profilePicture: string | null;
778
+ }>>;
779
+ stats: z.ZodNullable<z.ZodObject<{
780
+ totalReactions: z.ZodNullable<z.ZodNumber>;
781
+ like: z.ZodNullable<z.ZodNumber>;
782
+ support: z.ZodNullable<z.ZodNumber>;
783
+ love: z.ZodNullable<z.ZodNumber>;
784
+ insight: z.ZodNullable<z.ZodNumber>;
785
+ celebrate: z.ZodNullable<z.ZodNumber>;
786
+ funny: z.ZodNullable<z.ZodNumber>;
787
+ comments: z.ZodNullable<z.ZodNumber>;
788
+ reposts: z.ZodNullable<z.ZodNumber>;
789
+ }, "strip", z.ZodTypeAny, {
790
+ like: number | null;
791
+ support: number | null;
792
+ love: number | null;
793
+ insight: number | null;
794
+ celebrate: number | null;
795
+ funny: number | null;
796
+ comments: number | null;
797
+ reposts: number | null;
798
+ totalReactions: number | null;
799
+ }, {
800
+ like: number | null;
801
+ support: number | null;
802
+ love: number | null;
803
+ insight: number | null;
804
+ celebrate: number | null;
805
+ funny: number | null;
806
+ comments: number | null;
807
+ reposts: number | null;
808
+ totalReactions: number | null;
809
+ }>>;
810
+ media: z.ZodNullable<z.ZodObject<{
811
+ type: z.ZodNullable<z.ZodString>;
812
+ url: z.ZodNullable<z.ZodString>;
813
+ thumbnail: z.ZodNullable<z.ZodString>;
814
+ images: z.ZodNullable<z.ZodArray<z.ZodObject<{
815
+ url: z.ZodNullable<z.ZodString>;
816
+ width: z.ZodNullable<z.ZodNumber>;
817
+ height: z.ZodNullable<z.ZodNumber>;
818
+ }, "strip", z.ZodTypeAny, {
819
+ url: string | null;
820
+ width: number | null;
821
+ height: number | null;
822
+ }, {
823
+ url: string | null;
824
+ width: number | null;
825
+ height: number | null;
826
+ }>, "many">>;
827
+ }, "strip", z.ZodTypeAny, {
828
+ type: string | null;
829
+ url: string | null;
830
+ images: {
831
+ url: string | null;
832
+ width: number | null;
833
+ height: number | null;
834
+ }[] | null;
835
+ thumbnail: string | null;
836
+ }, {
837
+ type: string | null;
838
+ url: string | null;
839
+ images: {
840
+ url: string | null;
841
+ width: number | null;
842
+ height: number | null;
843
+ }[] | null;
844
+ thumbnail: string | null;
845
+ }>>;
846
+ }, "strip", z.ZodTypeAny, {
847
+ text: string | null;
848
+ url: string | null;
849
+ urn: string | null;
850
+ author: {
851
+ username: string | null;
852
+ headline: string | null;
853
+ firstName: string | null;
854
+ lastName: string | null;
855
+ profileUrl: string | null;
856
+ profilePicture: string | null;
857
+ } | null;
858
+ stats: {
859
+ like: number | null;
860
+ support: number | null;
861
+ love: number | null;
862
+ insight: number | null;
863
+ celebrate: number | null;
864
+ funny: number | null;
865
+ comments: number | null;
866
+ reposts: number | null;
867
+ totalReactions: number | null;
868
+ } | null;
869
+ media: {
870
+ type: string | null;
871
+ url: string | null;
872
+ images: {
873
+ url: string | null;
874
+ width: number | null;
875
+ height: number | null;
876
+ }[] | null;
877
+ thumbnail: string | null;
878
+ } | null;
879
+ postedAt: {
880
+ date: string | null;
881
+ timestamp: number | null;
882
+ relative: string | null;
883
+ } | null;
884
+ postType: string | null;
885
+ }, {
886
+ text: string | null;
887
+ url: string | null;
888
+ urn: string | null;
889
+ author: {
890
+ username: string | null;
891
+ headline: string | null;
892
+ firstName: string | null;
893
+ lastName: string | null;
894
+ profileUrl: string | null;
895
+ profilePicture: string | null;
896
+ } | null;
897
+ stats: {
898
+ like: number | null;
899
+ support: number | null;
900
+ love: number | null;
901
+ insight: number | null;
902
+ celebrate: number | null;
903
+ funny: number | null;
904
+ comments: number | null;
905
+ reposts: number | null;
906
+ totalReactions: number | null;
907
+ } | null;
908
+ media: {
909
+ type: string | null;
910
+ url: string | null;
911
+ images: {
912
+ url: string | null;
913
+ width: number | null;
914
+ height: number | null;
915
+ }[] | null;
916
+ thumbnail: string | null;
917
+ } | null;
918
+ postedAt: {
919
+ date: string | null;
920
+ timestamp: number | null;
921
+ relative: string | null;
922
+ } | null;
923
+ postType: string | null;
924
+ }>>;
925
+ }, "strip", z.ZodTypeAny, {
926
+ text: string | null;
927
+ url: string | null;
928
+ urn: string | null;
929
+ author: {
930
+ username: string | null;
931
+ headline: string | null;
932
+ firstName: string | null;
933
+ lastName: string | null;
934
+ profileUrl: string | null;
935
+ profilePicture: string | null;
936
+ } | null;
937
+ stats: {
938
+ like: number | null;
939
+ support: number | null;
940
+ love: number | null;
941
+ insight: number | null;
942
+ celebrate: number | null;
943
+ funny: number | null;
944
+ comments: number | null;
945
+ reposts: number | null;
946
+ totalReactions: number | null;
947
+ } | null;
948
+ media: {
949
+ type: string | null;
950
+ url: string | null;
951
+ images: {
952
+ url: string | null;
953
+ width: number | null;
954
+ height: number | null;
955
+ }[] | null;
956
+ thumbnail: string | null;
957
+ } | null;
958
+ article: {
959
+ title: string | null;
960
+ url: string | null;
961
+ subtitle: string | null;
962
+ thumbnail: string | null;
963
+ } | null;
964
+ document: {
965
+ title: string | null;
966
+ url: string | null;
967
+ thumbnail: string | null;
968
+ pageCount: number | null;
969
+ } | null;
970
+ fullUrn: string | null;
971
+ postedAt: {
972
+ date: string | null;
973
+ timestamp: number | null;
974
+ relative: string | null;
975
+ } | null;
976
+ postType: string | null;
977
+ resharedPost: {
978
+ text: string | null;
979
+ url: string | null;
980
+ urn: string | null;
981
+ author: {
982
+ username: string | null;
983
+ headline: string | null;
984
+ firstName: string | null;
985
+ lastName: string | null;
986
+ profileUrl: string | null;
987
+ profilePicture: string | null;
988
+ } | null;
989
+ stats: {
990
+ like: number | null;
991
+ support: number | null;
992
+ love: number | null;
993
+ insight: number | null;
994
+ celebrate: number | null;
995
+ funny: number | null;
996
+ comments: number | null;
997
+ reposts: number | null;
998
+ totalReactions: number | null;
999
+ } | null;
1000
+ media: {
1001
+ type: string | null;
1002
+ url: string | null;
1003
+ images: {
1004
+ url: string | null;
1005
+ width: number | null;
1006
+ height: number | null;
1007
+ }[] | null;
1008
+ thumbnail: string | null;
1009
+ } | null;
1010
+ postedAt: {
1011
+ date: string | null;
1012
+ timestamp: number | null;
1013
+ relative: string | null;
1014
+ } | null;
1015
+ postType: string | null;
1016
+ } | null;
1017
+ }, {
1018
+ text: string | null;
1019
+ url: string | null;
1020
+ urn: string | null;
1021
+ author: {
1022
+ username: string | null;
1023
+ headline: string | null;
1024
+ firstName: string | null;
1025
+ lastName: string | null;
1026
+ profileUrl: string | null;
1027
+ profilePicture: string | null;
1028
+ } | null;
1029
+ stats: {
1030
+ like: number | null;
1031
+ support: number | null;
1032
+ love: number | null;
1033
+ insight: number | null;
1034
+ celebrate: number | null;
1035
+ funny: number | null;
1036
+ comments: number | null;
1037
+ reposts: number | null;
1038
+ totalReactions: number | null;
1039
+ } | null;
1040
+ media: {
1041
+ type: string | null;
1042
+ url: string | null;
1043
+ images: {
1044
+ url: string | null;
1045
+ width: number | null;
1046
+ height: number | null;
1047
+ }[] | null;
1048
+ thumbnail: string | null;
1049
+ } | null;
1050
+ article: {
1051
+ title: string | null;
1052
+ url: string | null;
1053
+ subtitle: string | null;
1054
+ thumbnail: string | null;
1055
+ } | null;
1056
+ document: {
1057
+ title: string | null;
1058
+ url: string | null;
1059
+ thumbnail: string | null;
1060
+ pageCount: number | null;
1061
+ } | null;
1062
+ fullUrn: string | null;
1063
+ postedAt: {
1064
+ date: string | null;
1065
+ timestamp: number | null;
1066
+ relative: string | null;
1067
+ } | null;
1068
+ postType: string | null;
1069
+ resharedPost: {
1070
+ text: string | null;
1071
+ url: string | null;
1072
+ urn: string | null;
1073
+ author: {
1074
+ username: string | null;
1075
+ headline: string | null;
1076
+ firstName: string | null;
1077
+ lastName: string | null;
1078
+ profileUrl: string | null;
1079
+ profilePicture: string | null;
1080
+ } | null;
1081
+ stats: {
1082
+ like: number | null;
1083
+ support: number | null;
1084
+ love: number | null;
1085
+ insight: number | null;
1086
+ celebrate: number | null;
1087
+ funny: number | null;
1088
+ comments: number | null;
1089
+ reposts: number | null;
1090
+ totalReactions: number | null;
1091
+ } | null;
1092
+ media: {
1093
+ type: string | null;
1094
+ url: string | null;
1095
+ images: {
1096
+ url: string | null;
1097
+ width: number | null;
1098
+ height: number | null;
1099
+ }[] | null;
1100
+ thumbnail: string | null;
1101
+ } | null;
1102
+ postedAt: {
1103
+ date: string | null;
1104
+ timestamp: number | null;
1105
+ relative: string | null;
1106
+ } | null;
1107
+ postType: string | null;
1108
+ } | null;
1109
+ }>, "many">;
1110
+ username: z.ZodOptional<z.ZodString>;
1111
+ paginationToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1112
+ keyword: z.ZodOptional<z.ZodString>;
1113
+ totalResults: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1114
+ hasNextPage: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1115
+ totalPosts: z.ZodNumber;
1116
+ success: z.ZodBoolean;
1117
+ error: z.ZodString;
1118
+ }, "strip", z.ZodTypeAny, {
1119
+ error: string;
1120
+ success: boolean;
1121
+ operation: "scrapePosts" | "searchPosts";
1122
+ posts: {
1123
+ text: string | null;
1124
+ url: string | null;
1125
+ urn: string | null;
1126
+ author: {
1127
+ username: string | null;
1128
+ headline: string | null;
1129
+ firstName: string | null;
1130
+ lastName: string | null;
1131
+ profileUrl: string | null;
1132
+ profilePicture: string | null;
1133
+ } | null;
1134
+ stats: {
1135
+ like: number | null;
1136
+ support: number | null;
1137
+ love: number | null;
1138
+ insight: number | null;
1139
+ celebrate: number | null;
1140
+ funny: number | null;
1141
+ comments: number | null;
1142
+ reposts: number | null;
1143
+ totalReactions: number | null;
1144
+ } | null;
1145
+ media: {
1146
+ type: string | null;
1147
+ url: string | null;
1148
+ images: {
1149
+ url: string | null;
1150
+ width: number | null;
1151
+ height: number | null;
1152
+ }[] | null;
1153
+ thumbnail: string | null;
1154
+ } | null;
1155
+ article: {
1156
+ title: string | null;
1157
+ url: string | null;
1158
+ subtitle: string | null;
1159
+ thumbnail: string | null;
1160
+ } | null;
1161
+ document: {
1162
+ title: string | null;
1163
+ url: string | null;
1164
+ thumbnail: string | null;
1165
+ pageCount: number | null;
1166
+ } | null;
1167
+ fullUrn: string | null;
1168
+ postedAt: {
1169
+ date: string | null;
1170
+ timestamp: number | null;
1171
+ relative: string | null;
1172
+ } | null;
1173
+ postType: string | null;
1174
+ resharedPost: {
1175
+ text: string | null;
1176
+ url: string | null;
1177
+ urn: string | null;
1178
+ author: {
1179
+ username: string | null;
1180
+ headline: string | null;
1181
+ firstName: string | null;
1182
+ lastName: string | null;
1183
+ profileUrl: string | null;
1184
+ profilePicture: string | null;
1185
+ } | null;
1186
+ stats: {
1187
+ like: number | null;
1188
+ support: number | null;
1189
+ love: number | null;
1190
+ insight: number | null;
1191
+ celebrate: number | null;
1192
+ funny: number | null;
1193
+ comments: number | null;
1194
+ reposts: number | null;
1195
+ totalReactions: number | null;
1196
+ } | null;
1197
+ media: {
1198
+ type: string | null;
1199
+ url: string | null;
1200
+ images: {
1201
+ url: string | null;
1202
+ width: number | null;
1203
+ height: number | null;
1204
+ }[] | null;
1205
+ thumbnail: string | null;
1206
+ } | null;
1207
+ postedAt: {
1208
+ date: string | null;
1209
+ timestamp: number | null;
1210
+ relative: string | null;
1211
+ } | null;
1212
+ postType: string | null;
1213
+ } | null;
1214
+ }[];
1215
+ totalPosts: number;
1216
+ username?: string | undefined;
1217
+ keyword?: string | undefined;
1218
+ paginationToken?: string | null | undefined;
1219
+ totalResults?: number | null | undefined;
1220
+ hasNextPage?: boolean | null | undefined;
1221
+ }, {
1222
+ error: string;
1223
+ success: boolean;
1224
+ operation: "scrapePosts" | "searchPosts";
1225
+ posts: {
1226
+ text: string | null;
1227
+ url: string | null;
1228
+ urn: string | null;
1229
+ author: {
1230
+ username: string | null;
1231
+ headline: string | null;
1232
+ firstName: string | null;
1233
+ lastName: string | null;
1234
+ profileUrl: string | null;
1235
+ profilePicture: string | null;
1236
+ } | null;
1237
+ stats: {
1238
+ like: number | null;
1239
+ support: number | null;
1240
+ love: number | null;
1241
+ insight: number | null;
1242
+ celebrate: number | null;
1243
+ funny: number | null;
1244
+ comments: number | null;
1245
+ reposts: number | null;
1246
+ totalReactions: number | null;
1247
+ } | null;
1248
+ media: {
1249
+ type: string | null;
1250
+ url: string | null;
1251
+ images: {
1252
+ url: string | null;
1253
+ width: number | null;
1254
+ height: number | null;
1255
+ }[] | null;
1256
+ thumbnail: string | null;
1257
+ } | null;
1258
+ article: {
1259
+ title: string | null;
1260
+ url: string | null;
1261
+ subtitle: string | null;
1262
+ thumbnail: string | null;
1263
+ } | null;
1264
+ document: {
1265
+ title: string | null;
1266
+ url: string | null;
1267
+ thumbnail: string | null;
1268
+ pageCount: number | null;
1269
+ } | null;
1270
+ fullUrn: string | null;
1271
+ postedAt: {
1272
+ date: string | null;
1273
+ timestamp: number | null;
1274
+ relative: string | null;
1275
+ } | null;
1276
+ postType: string | null;
1277
+ resharedPost: {
1278
+ text: string | null;
1279
+ url: string | null;
1280
+ urn: string | null;
1281
+ author: {
1282
+ username: string | null;
1283
+ headline: string | null;
1284
+ firstName: string | null;
1285
+ lastName: string | null;
1286
+ profileUrl: string | null;
1287
+ profilePicture: string | null;
1288
+ } | null;
1289
+ stats: {
1290
+ like: number | null;
1291
+ support: number | null;
1292
+ love: number | null;
1293
+ insight: number | null;
1294
+ celebrate: number | null;
1295
+ funny: number | null;
1296
+ comments: number | null;
1297
+ reposts: number | null;
1298
+ totalReactions: number | null;
1299
+ } | null;
1300
+ media: {
1301
+ type: string | null;
1302
+ url: string | null;
1303
+ images: {
1304
+ url: string | null;
1305
+ width: number | null;
1306
+ height: number | null;
1307
+ }[] | null;
1308
+ thumbnail: string | null;
1309
+ } | null;
1310
+ postedAt: {
1311
+ date: string | null;
1312
+ timestamp: number | null;
1313
+ relative: string | null;
1314
+ } | null;
1315
+ postType: string | null;
1316
+ } | null;
1317
+ }[];
1318
+ totalPosts: number;
1319
+ username?: string | undefined;
1320
+ keyword?: string | undefined;
1321
+ paginationToken?: string | null | undefined;
1322
+ totalResults?: number | null | undefined;
1323
+ hasNextPage?: boolean | null | undefined;
1324
+ }>;
1325
+ type LinkedInToolParams = z.output<typeof LinkedInToolParamsSchema>;
1326
+ type LinkedInToolResult = z.output<typeof LinkedInToolResultSchema>;
1327
+ type LinkedInToolParamsInput = z.input<typeof LinkedInToolParamsSchema>;
1328
+ export type LinkedInPost = z.output<typeof LinkedInPostSchema>;
1329
+ export type LinkedInAuthor = z.output<typeof LinkedInAuthorSchema>;
1330
+ export type LinkedInStats = z.output<typeof LinkedInStatsSchema>;
1331
+ /**
1332
+ * LinkedIn scraping tool with multiple operations
1333
+ *
1334
+ * This tool provides a simple interface for scraping LinkedIn data.
1335
+ *
1336
+ * Operations:
1337
+ * 1. scrapePosts - Scrape posts from a specific LinkedIn profile
1338
+ * 2. searchPosts - Search for LinkedIn posts by keyword
1339
+ *
1340
+ * Features:
1341
+ * - Get complete post metadata (text, engagement stats, media, etc.)
1342
+ * - Support for all post types (regular, quotes, articles, documents)
1343
+ * - Pagination support
1344
+ * - Date filtering for search
1345
+ */
1346
+ export declare class LinkedInTool extends ToolBubble<LinkedInToolParams, LinkedInToolResult> {
1347
+ static readonly bubbleName: BubbleName;
1348
+ static readonly schema: z.ZodObject<{
1349
+ operation: z.ZodEnum<["scrapePosts", "searchPosts"]>;
1350
+ username: z.ZodOptional<z.ZodString>;
1351
+ keyword: z.ZodOptional<z.ZodString>;
1352
+ sortBy: z.ZodOptional<z.ZodDefault<z.ZodEnum<["relevance", "date_posted"]>>>;
1353
+ dateFilter: z.ZodOptional<z.ZodDefault<z.ZodEnum<["", "past-24h", "past-week", "past-month"]>>>;
1354
+ limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
1355
+ pageNumber: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
1356
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
1357
+ }, "strip", z.ZodTypeAny, {
1358
+ operation: "scrapePosts" | "searchPosts";
1359
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1360
+ limit?: number | undefined;
1361
+ username?: string | undefined;
1362
+ keyword?: string | undefined;
1363
+ sortBy?: "relevance" | "date_posted" | undefined;
1364
+ dateFilter?: "" | "past-24h" | "past-week" | "past-month" | undefined;
1365
+ pageNumber?: number | undefined;
1366
+ }, {
1367
+ operation: "scrapePosts" | "searchPosts";
1368
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1369
+ limit?: number | undefined;
1370
+ username?: string | undefined;
1371
+ keyword?: string | undefined;
1372
+ sortBy?: "relevance" | "date_posted" | undefined;
1373
+ dateFilter?: "" | "past-24h" | "past-week" | "past-month" | undefined;
1374
+ pageNumber?: number | undefined;
1375
+ }>;
1376
+ static readonly resultSchema: z.ZodObject<{
1377
+ operation: z.ZodEnum<["scrapePosts", "searchPosts"]>;
1378
+ posts: z.ZodArray<z.ZodObject<{
1379
+ urn: z.ZodNullable<z.ZodString>;
1380
+ fullUrn: z.ZodNullable<z.ZodString>;
1381
+ postedAt: z.ZodNullable<z.ZodObject<{
1382
+ date: z.ZodNullable<z.ZodString>;
1383
+ relative: z.ZodNullable<z.ZodString>;
1384
+ timestamp: z.ZodNullable<z.ZodNumber>;
1385
+ }, "strip", z.ZodTypeAny, {
1386
+ date: string | null;
1387
+ timestamp: number | null;
1388
+ relative: string | null;
1389
+ }, {
1390
+ date: string | null;
1391
+ timestamp: number | null;
1392
+ relative: string | null;
1393
+ }>>;
1394
+ text: z.ZodNullable<z.ZodString>;
1395
+ url: z.ZodNullable<z.ZodString>;
1396
+ postType: z.ZodNullable<z.ZodString>;
1397
+ author: z.ZodNullable<z.ZodObject<{
1398
+ firstName: z.ZodNullable<z.ZodString>;
1399
+ lastName: z.ZodNullable<z.ZodString>;
1400
+ headline: z.ZodNullable<z.ZodString>;
1401
+ username: z.ZodNullable<z.ZodString>;
1402
+ profileUrl: z.ZodNullable<z.ZodString>;
1403
+ profilePicture: z.ZodNullable<z.ZodString>;
1404
+ }, "strip", z.ZodTypeAny, {
1405
+ username: string | null;
1406
+ headline: string | null;
1407
+ firstName: string | null;
1408
+ lastName: string | null;
1409
+ profileUrl: string | null;
1410
+ profilePicture: string | null;
1411
+ }, {
1412
+ username: string | null;
1413
+ headline: string | null;
1414
+ firstName: string | null;
1415
+ lastName: string | null;
1416
+ profileUrl: string | null;
1417
+ profilePicture: string | null;
1418
+ }>>;
1419
+ stats: z.ZodNullable<z.ZodObject<{
1420
+ totalReactions: z.ZodNullable<z.ZodNumber>;
1421
+ like: z.ZodNullable<z.ZodNumber>;
1422
+ support: z.ZodNullable<z.ZodNumber>;
1423
+ love: z.ZodNullable<z.ZodNumber>;
1424
+ insight: z.ZodNullable<z.ZodNumber>;
1425
+ celebrate: z.ZodNullable<z.ZodNumber>;
1426
+ funny: z.ZodNullable<z.ZodNumber>;
1427
+ comments: z.ZodNullable<z.ZodNumber>;
1428
+ reposts: z.ZodNullable<z.ZodNumber>;
1429
+ }, "strip", z.ZodTypeAny, {
1430
+ like: number | null;
1431
+ support: number | null;
1432
+ love: number | null;
1433
+ insight: number | null;
1434
+ celebrate: number | null;
1435
+ funny: number | null;
1436
+ comments: number | null;
1437
+ reposts: number | null;
1438
+ totalReactions: number | null;
1439
+ }, {
1440
+ like: number | null;
1441
+ support: number | null;
1442
+ love: number | null;
1443
+ insight: number | null;
1444
+ celebrate: number | null;
1445
+ funny: number | null;
1446
+ comments: number | null;
1447
+ reposts: number | null;
1448
+ totalReactions: number | null;
1449
+ }>>;
1450
+ media: z.ZodNullable<z.ZodObject<{
1451
+ type: z.ZodNullable<z.ZodString>;
1452
+ url: z.ZodNullable<z.ZodString>;
1453
+ thumbnail: z.ZodNullable<z.ZodString>;
1454
+ images: z.ZodNullable<z.ZodArray<z.ZodObject<{
1455
+ url: z.ZodNullable<z.ZodString>;
1456
+ width: z.ZodNullable<z.ZodNumber>;
1457
+ height: z.ZodNullable<z.ZodNumber>;
1458
+ }, "strip", z.ZodTypeAny, {
1459
+ url: string | null;
1460
+ width: number | null;
1461
+ height: number | null;
1462
+ }, {
1463
+ url: string | null;
1464
+ width: number | null;
1465
+ height: number | null;
1466
+ }>, "many">>;
1467
+ }, "strip", z.ZodTypeAny, {
1468
+ type: string | null;
1469
+ url: string | null;
1470
+ images: {
1471
+ url: string | null;
1472
+ width: number | null;
1473
+ height: number | null;
1474
+ }[] | null;
1475
+ thumbnail: string | null;
1476
+ }, {
1477
+ type: string | null;
1478
+ url: string | null;
1479
+ images: {
1480
+ url: string | null;
1481
+ width: number | null;
1482
+ height: number | null;
1483
+ }[] | null;
1484
+ thumbnail: string | null;
1485
+ }>>;
1486
+ article: z.ZodNullable<z.ZodObject<{
1487
+ url: z.ZodNullable<z.ZodString>;
1488
+ title: z.ZodNullable<z.ZodString>;
1489
+ subtitle: z.ZodNullable<z.ZodString>;
1490
+ thumbnail: z.ZodNullable<z.ZodString>;
1491
+ }, "strip", z.ZodTypeAny, {
1492
+ title: string | null;
1493
+ url: string | null;
1494
+ subtitle: string | null;
1495
+ thumbnail: string | null;
1496
+ }, {
1497
+ title: string | null;
1498
+ url: string | null;
1499
+ subtitle: string | null;
1500
+ thumbnail: string | null;
1501
+ }>>;
1502
+ document: z.ZodNullable<z.ZodObject<{
1503
+ title: z.ZodNullable<z.ZodString>;
1504
+ pageCount: z.ZodNullable<z.ZodNumber>;
1505
+ url: z.ZodNullable<z.ZodString>;
1506
+ thumbnail: z.ZodNullable<z.ZodString>;
1507
+ }, "strip", z.ZodTypeAny, {
1508
+ title: string | null;
1509
+ url: string | null;
1510
+ thumbnail: string | null;
1511
+ pageCount: number | null;
1512
+ }, {
1513
+ title: string | null;
1514
+ url: string | null;
1515
+ thumbnail: string | null;
1516
+ pageCount: number | null;
1517
+ }>>;
1518
+ resharedPost: z.ZodNullable<z.ZodObject<{
1519
+ urn: z.ZodNullable<z.ZodString>;
1520
+ postedAt: z.ZodNullable<z.ZodObject<{
1521
+ date: z.ZodNullable<z.ZodString>;
1522
+ relative: z.ZodNullable<z.ZodString>;
1523
+ timestamp: z.ZodNullable<z.ZodNumber>;
1524
+ }, "strip", z.ZodTypeAny, {
1525
+ date: string | null;
1526
+ timestamp: number | null;
1527
+ relative: string | null;
1528
+ }, {
1529
+ date: string | null;
1530
+ timestamp: number | null;
1531
+ relative: string | null;
1532
+ }>>;
1533
+ text: z.ZodNullable<z.ZodString>;
1534
+ url: z.ZodNullable<z.ZodString>;
1535
+ postType: z.ZodNullable<z.ZodString>;
1536
+ author: z.ZodNullable<z.ZodObject<{
1537
+ firstName: z.ZodNullable<z.ZodString>;
1538
+ lastName: z.ZodNullable<z.ZodString>;
1539
+ headline: z.ZodNullable<z.ZodString>;
1540
+ username: z.ZodNullable<z.ZodString>;
1541
+ profileUrl: z.ZodNullable<z.ZodString>;
1542
+ profilePicture: z.ZodNullable<z.ZodString>;
1543
+ }, "strip", z.ZodTypeAny, {
1544
+ username: string | null;
1545
+ headline: string | null;
1546
+ firstName: string | null;
1547
+ lastName: string | null;
1548
+ profileUrl: string | null;
1549
+ profilePicture: string | null;
1550
+ }, {
1551
+ username: string | null;
1552
+ headline: string | null;
1553
+ firstName: string | null;
1554
+ lastName: string | null;
1555
+ profileUrl: string | null;
1556
+ profilePicture: string | null;
1557
+ }>>;
1558
+ stats: z.ZodNullable<z.ZodObject<{
1559
+ totalReactions: z.ZodNullable<z.ZodNumber>;
1560
+ like: z.ZodNullable<z.ZodNumber>;
1561
+ support: z.ZodNullable<z.ZodNumber>;
1562
+ love: z.ZodNullable<z.ZodNumber>;
1563
+ insight: z.ZodNullable<z.ZodNumber>;
1564
+ celebrate: z.ZodNullable<z.ZodNumber>;
1565
+ funny: z.ZodNullable<z.ZodNumber>;
1566
+ comments: z.ZodNullable<z.ZodNumber>;
1567
+ reposts: z.ZodNullable<z.ZodNumber>;
1568
+ }, "strip", z.ZodTypeAny, {
1569
+ like: number | null;
1570
+ support: number | null;
1571
+ love: number | null;
1572
+ insight: number | null;
1573
+ celebrate: number | null;
1574
+ funny: number | null;
1575
+ comments: number | null;
1576
+ reposts: number | null;
1577
+ totalReactions: number | null;
1578
+ }, {
1579
+ like: number | null;
1580
+ support: number | null;
1581
+ love: number | null;
1582
+ insight: number | null;
1583
+ celebrate: number | null;
1584
+ funny: number | null;
1585
+ comments: number | null;
1586
+ reposts: number | null;
1587
+ totalReactions: number | null;
1588
+ }>>;
1589
+ media: z.ZodNullable<z.ZodObject<{
1590
+ type: z.ZodNullable<z.ZodString>;
1591
+ url: z.ZodNullable<z.ZodString>;
1592
+ thumbnail: z.ZodNullable<z.ZodString>;
1593
+ images: z.ZodNullable<z.ZodArray<z.ZodObject<{
1594
+ url: z.ZodNullable<z.ZodString>;
1595
+ width: z.ZodNullable<z.ZodNumber>;
1596
+ height: z.ZodNullable<z.ZodNumber>;
1597
+ }, "strip", z.ZodTypeAny, {
1598
+ url: string | null;
1599
+ width: number | null;
1600
+ height: number | null;
1601
+ }, {
1602
+ url: string | null;
1603
+ width: number | null;
1604
+ height: number | null;
1605
+ }>, "many">>;
1606
+ }, "strip", z.ZodTypeAny, {
1607
+ type: string | null;
1608
+ url: string | null;
1609
+ images: {
1610
+ url: string | null;
1611
+ width: number | null;
1612
+ height: number | null;
1613
+ }[] | null;
1614
+ thumbnail: string | null;
1615
+ }, {
1616
+ type: string | null;
1617
+ url: string | null;
1618
+ images: {
1619
+ url: string | null;
1620
+ width: number | null;
1621
+ height: number | null;
1622
+ }[] | null;
1623
+ thumbnail: string | null;
1624
+ }>>;
1625
+ }, "strip", z.ZodTypeAny, {
1626
+ text: string | null;
1627
+ url: string | null;
1628
+ urn: string | null;
1629
+ author: {
1630
+ username: string | null;
1631
+ headline: string | null;
1632
+ firstName: string | null;
1633
+ lastName: string | null;
1634
+ profileUrl: string | null;
1635
+ profilePicture: string | null;
1636
+ } | null;
1637
+ stats: {
1638
+ like: number | null;
1639
+ support: number | null;
1640
+ love: number | null;
1641
+ insight: number | null;
1642
+ celebrate: number | null;
1643
+ funny: number | null;
1644
+ comments: number | null;
1645
+ reposts: number | null;
1646
+ totalReactions: number | null;
1647
+ } | null;
1648
+ media: {
1649
+ type: string | null;
1650
+ url: string | null;
1651
+ images: {
1652
+ url: string | null;
1653
+ width: number | null;
1654
+ height: number | null;
1655
+ }[] | null;
1656
+ thumbnail: string | null;
1657
+ } | null;
1658
+ postedAt: {
1659
+ date: string | null;
1660
+ timestamp: number | null;
1661
+ relative: string | null;
1662
+ } | null;
1663
+ postType: string | null;
1664
+ }, {
1665
+ text: string | null;
1666
+ url: string | null;
1667
+ urn: string | null;
1668
+ author: {
1669
+ username: string | null;
1670
+ headline: string | null;
1671
+ firstName: string | null;
1672
+ lastName: string | null;
1673
+ profileUrl: string | null;
1674
+ profilePicture: string | null;
1675
+ } | null;
1676
+ stats: {
1677
+ like: number | null;
1678
+ support: number | null;
1679
+ love: number | null;
1680
+ insight: number | null;
1681
+ celebrate: number | null;
1682
+ funny: number | null;
1683
+ comments: number | null;
1684
+ reposts: number | null;
1685
+ totalReactions: number | null;
1686
+ } | null;
1687
+ media: {
1688
+ type: string | null;
1689
+ url: string | null;
1690
+ images: {
1691
+ url: string | null;
1692
+ width: number | null;
1693
+ height: number | null;
1694
+ }[] | null;
1695
+ thumbnail: string | null;
1696
+ } | null;
1697
+ postedAt: {
1698
+ date: string | null;
1699
+ timestamp: number | null;
1700
+ relative: string | null;
1701
+ } | null;
1702
+ postType: string | null;
1703
+ }>>;
1704
+ }, "strip", z.ZodTypeAny, {
1705
+ text: string | null;
1706
+ url: string | null;
1707
+ urn: string | null;
1708
+ author: {
1709
+ username: string | null;
1710
+ headline: string | null;
1711
+ firstName: string | null;
1712
+ lastName: string | null;
1713
+ profileUrl: string | null;
1714
+ profilePicture: string | null;
1715
+ } | null;
1716
+ stats: {
1717
+ like: number | null;
1718
+ support: number | null;
1719
+ love: number | null;
1720
+ insight: number | null;
1721
+ celebrate: number | null;
1722
+ funny: number | null;
1723
+ comments: number | null;
1724
+ reposts: number | null;
1725
+ totalReactions: number | null;
1726
+ } | null;
1727
+ media: {
1728
+ type: string | null;
1729
+ url: string | null;
1730
+ images: {
1731
+ url: string | null;
1732
+ width: number | null;
1733
+ height: number | null;
1734
+ }[] | null;
1735
+ thumbnail: string | null;
1736
+ } | null;
1737
+ article: {
1738
+ title: string | null;
1739
+ url: string | null;
1740
+ subtitle: string | null;
1741
+ thumbnail: string | null;
1742
+ } | null;
1743
+ document: {
1744
+ title: string | null;
1745
+ url: string | null;
1746
+ thumbnail: string | null;
1747
+ pageCount: number | null;
1748
+ } | null;
1749
+ fullUrn: string | null;
1750
+ postedAt: {
1751
+ date: string | null;
1752
+ timestamp: number | null;
1753
+ relative: string | null;
1754
+ } | null;
1755
+ postType: string | null;
1756
+ resharedPost: {
1757
+ text: string | null;
1758
+ url: string | null;
1759
+ urn: string | null;
1760
+ author: {
1761
+ username: string | null;
1762
+ headline: string | null;
1763
+ firstName: string | null;
1764
+ lastName: string | null;
1765
+ profileUrl: string | null;
1766
+ profilePicture: string | null;
1767
+ } | null;
1768
+ stats: {
1769
+ like: number | null;
1770
+ support: number | null;
1771
+ love: number | null;
1772
+ insight: number | null;
1773
+ celebrate: number | null;
1774
+ funny: number | null;
1775
+ comments: number | null;
1776
+ reposts: number | null;
1777
+ totalReactions: number | null;
1778
+ } | null;
1779
+ media: {
1780
+ type: string | null;
1781
+ url: string | null;
1782
+ images: {
1783
+ url: string | null;
1784
+ width: number | null;
1785
+ height: number | null;
1786
+ }[] | null;
1787
+ thumbnail: string | null;
1788
+ } | null;
1789
+ postedAt: {
1790
+ date: string | null;
1791
+ timestamp: number | null;
1792
+ relative: string | null;
1793
+ } | null;
1794
+ postType: string | null;
1795
+ } | null;
1796
+ }, {
1797
+ text: string | null;
1798
+ url: string | null;
1799
+ urn: string | null;
1800
+ author: {
1801
+ username: string | null;
1802
+ headline: string | null;
1803
+ firstName: string | null;
1804
+ lastName: string | null;
1805
+ profileUrl: string | null;
1806
+ profilePicture: string | null;
1807
+ } | null;
1808
+ stats: {
1809
+ like: number | null;
1810
+ support: number | null;
1811
+ love: number | null;
1812
+ insight: number | null;
1813
+ celebrate: number | null;
1814
+ funny: number | null;
1815
+ comments: number | null;
1816
+ reposts: number | null;
1817
+ totalReactions: number | null;
1818
+ } | null;
1819
+ media: {
1820
+ type: string | null;
1821
+ url: string | null;
1822
+ images: {
1823
+ url: string | null;
1824
+ width: number | null;
1825
+ height: number | null;
1826
+ }[] | null;
1827
+ thumbnail: string | null;
1828
+ } | null;
1829
+ article: {
1830
+ title: string | null;
1831
+ url: string | null;
1832
+ subtitle: string | null;
1833
+ thumbnail: string | null;
1834
+ } | null;
1835
+ document: {
1836
+ title: string | null;
1837
+ url: string | null;
1838
+ thumbnail: string | null;
1839
+ pageCount: number | null;
1840
+ } | null;
1841
+ fullUrn: string | null;
1842
+ postedAt: {
1843
+ date: string | null;
1844
+ timestamp: number | null;
1845
+ relative: string | null;
1846
+ } | null;
1847
+ postType: string | null;
1848
+ resharedPost: {
1849
+ text: string | null;
1850
+ url: string | null;
1851
+ urn: string | null;
1852
+ author: {
1853
+ username: string | null;
1854
+ headline: string | null;
1855
+ firstName: string | null;
1856
+ lastName: string | null;
1857
+ profileUrl: string | null;
1858
+ profilePicture: string | null;
1859
+ } | null;
1860
+ stats: {
1861
+ like: number | null;
1862
+ support: number | null;
1863
+ love: number | null;
1864
+ insight: number | null;
1865
+ celebrate: number | null;
1866
+ funny: number | null;
1867
+ comments: number | null;
1868
+ reposts: number | null;
1869
+ totalReactions: number | null;
1870
+ } | null;
1871
+ media: {
1872
+ type: string | null;
1873
+ url: string | null;
1874
+ images: {
1875
+ url: string | null;
1876
+ width: number | null;
1877
+ height: number | null;
1878
+ }[] | null;
1879
+ thumbnail: string | null;
1880
+ } | null;
1881
+ postedAt: {
1882
+ date: string | null;
1883
+ timestamp: number | null;
1884
+ relative: string | null;
1885
+ } | null;
1886
+ postType: string | null;
1887
+ } | null;
1888
+ }>, "many">;
1889
+ username: z.ZodOptional<z.ZodString>;
1890
+ paginationToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1891
+ keyword: z.ZodOptional<z.ZodString>;
1892
+ totalResults: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1893
+ hasNextPage: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1894
+ totalPosts: z.ZodNumber;
1895
+ success: z.ZodBoolean;
1896
+ error: z.ZodString;
1897
+ }, "strip", z.ZodTypeAny, {
1898
+ error: string;
1899
+ success: boolean;
1900
+ operation: "scrapePosts" | "searchPosts";
1901
+ posts: {
1902
+ text: string | null;
1903
+ url: string | null;
1904
+ urn: string | null;
1905
+ author: {
1906
+ username: string | null;
1907
+ headline: string | null;
1908
+ firstName: string | null;
1909
+ lastName: string | null;
1910
+ profileUrl: string | null;
1911
+ profilePicture: string | null;
1912
+ } | null;
1913
+ stats: {
1914
+ like: number | null;
1915
+ support: number | null;
1916
+ love: number | null;
1917
+ insight: number | null;
1918
+ celebrate: number | null;
1919
+ funny: number | null;
1920
+ comments: number | null;
1921
+ reposts: number | null;
1922
+ totalReactions: number | null;
1923
+ } | null;
1924
+ media: {
1925
+ type: string | null;
1926
+ url: string | null;
1927
+ images: {
1928
+ url: string | null;
1929
+ width: number | null;
1930
+ height: number | null;
1931
+ }[] | null;
1932
+ thumbnail: string | null;
1933
+ } | null;
1934
+ article: {
1935
+ title: string | null;
1936
+ url: string | null;
1937
+ subtitle: string | null;
1938
+ thumbnail: string | null;
1939
+ } | null;
1940
+ document: {
1941
+ title: string | null;
1942
+ url: string | null;
1943
+ thumbnail: string | null;
1944
+ pageCount: number | null;
1945
+ } | null;
1946
+ fullUrn: string | null;
1947
+ postedAt: {
1948
+ date: string | null;
1949
+ timestamp: number | null;
1950
+ relative: string | null;
1951
+ } | null;
1952
+ postType: string | null;
1953
+ resharedPost: {
1954
+ text: string | null;
1955
+ url: string | null;
1956
+ urn: string | null;
1957
+ author: {
1958
+ username: string | null;
1959
+ headline: string | null;
1960
+ firstName: string | null;
1961
+ lastName: string | null;
1962
+ profileUrl: string | null;
1963
+ profilePicture: string | null;
1964
+ } | null;
1965
+ stats: {
1966
+ like: number | null;
1967
+ support: number | null;
1968
+ love: number | null;
1969
+ insight: number | null;
1970
+ celebrate: number | null;
1971
+ funny: number | null;
1972
+ comments: number | null;
1973
+ reposts: number | null;
1974
+ totalReactions: number | null;
1975
+ } | null;
1976
+ media: {
1977
+ type: string | null;
1978
+ url: string | null;
1979
+ images: {
1980
+ url: string | null;
1981
+ width: number | null;
1982
+ height: number | null;
1983
+ }[] | null;
1984
+ thumbnail: string | null;
1985
+ } | null;
1986
+ postedAt: {
1987
+ date: string | null;
1988
+ timestamp: number | null;
1989
+ relative: string | null;
1990
+ } | null;
1991
+ postType: string | null;
1992
+ } | null;
1993
+ }[];
1994
+ totalPosts: number;
1995
+ username?: string | undefined;
1996
+ keyword?: string | undefined;
1997
+ paginationToken?: string | null | undefined;
1998
+ totalResults?: number | null | undefined;
1999
+ hasNextPage?: boolean | null | undefined;
2000
+ }, {
2001
+ error: string;
2002
+ success: boolean;
2003
+ operation: "scrapePosts" | "searchPosts";
2004
+ posts: {
2005
+ text: string | null;
2006
+ url: string | null;
2007
+ urn: string | null;
2008
+ author: {
2009
+ username: string | null;
2010
+ headline: string | null;
2011
+ firstName: string | null;
2012
+ lastName: string | null;
2013
+ profileUrl: string | null;
2014
+ profilePicture: string | null;
2015
+ } | null;
2016
+ stats: {
2017
+ like: number | null;
2018
+ support: number | null;
2019
+ love: number | null;
2020
+ insight: number | null;
2021
+ celebrate: number | null;
2022
+ funny: number | null;
2023
+ comments: number | null;
2024
+ reposts: number | null;
2025
+ totalReactions: number | null;
2026
+ } | null;
2027
+ media: {
2028
+ type: string | null;
2029
+ url: string | null;
2030
+ images: {
2031
+ url: string | null;
2032
+ width: number | null;
2033
+ height: number | null;
2034
+ }[] | null;
2035
+ thumbnail: string | null;
2036
+ } | null;
2037
+ article: {
2038
+ title: string | null;
2039
+ url: string | null;
2040
+ subtitle: string | null;
2041
+ thumbnail: string | null;
2042
+ } | null;
2043
+ document: {
2044
+ title: string | null;
2045
+ url: string | null;
2046
+ thumbnail: string | null;
2047
+ pageCount: number | null;
2048
+ } | null;
2049
+ fullUrn: string | null;
2050
+ postedAt: {
2051
+ date: string | null;
2052
+ timestamp: number | null;
2053
+ relative: string | null;
2054
+ } | null;
2055
+ postType: string | null;
2056
+ resharedPost: {
2057
+ text: string | null;
2058
+ url: string | null;
2059
+ urn: string | null;
2060
+ author: {
2061
+ username: string | null;
2062
+ headline: string | null;
2063
+ firstName: string | null;
2064
+ lastName: string | null;
2065
+ profileUrl: string | null;
2066
+ profilePicture: string | null;
2067
+ } | null;
2068
+ stats: {
2069
+ like: number | null;
2070
+ support: number | null;
2071
+ love: number | null;
2072
+ insight: number | null;
2073
+ celebrate: number | null;
2074
+ funny: number | null;
2075
+ comments: number | null;
2076
+ reposts: number | null;
2077
+ totalReactions: number | null;
2078
+ } | null;
2079
+ media: {
2080
+ type: string | null;
2081
+ url: string | null;
2082
+ images: {
2083
+ url: string | null;
2084
+ width: number | null;
2085
+ height: number | null;
2086
+ }[] | null;
2087
+ thumbnail: string | null;
2088
+ } | null;
2089
+ postedAt: {
2090
+ date: string | null;
2091
+ timestamp: number | null;
2092
+ relative: string | null;
2093
+ } | null;
2094
+ postType: string | null;
2095
+ } | null;
2096
+ }[];
2097
+ totalPosts: number;
2098
+ username?: string | undefined;
2099
+ keyword?: string | undefined;
2100
+ paginationToken?: string | null | undefined;
2101
+ totalResults?: number | null | undefined;
2102
+ hasNextPage?: boolean | null | undefined;
2103
+ }>;
2104
+ static readonly shortDescription = "Scrape LinkedIn posts by profile or search by keyword. Get engagement metrics, media, and complete metadata.";
2105
+ static readonly longDescription = "\n Universal LinkedIn scraping tool for extracting posts and activity data.\n \n **OPERATIONS:**\n 1. **scrapePosts**: Scrape posts from a LinkedIn profile\n - Get posts from specific users\n - Extract author information and post metadata\n - Track reactions, comments, and reposts\n - Support for articles, documents, and reshared content\n \n 2. **searchPosts**: Search LinkedIn posts by keyword\n - Find posts across all of LinkedIn by keyword\n - Filter by date (past 24h, week, month)\n - Sort by relevance or date\n - Perfect for monitoring topics, trends, and mentions\n \n **WHEN TO USE THIS TOOL:**\n - **LinkedIn profile research** - analyze someone's LinkedIn activity\n - **Content strategy** - research what content performs well\n - **Influencer analysis** - track thought leaders and their engagement\n - **Competitive intelligence** - monitor competitor LinkedIn presence\n - **Lead generation** - identify active LinkedIn users in your space\n - **Social listening** - track discussions and trends on LinkedIn\n \n **DO NOT USE research-agent-tool or web-scrape-tool for LinkedIn** - This tool is specifically optimized for LinkedIn and provides:\n - Clean, structured post data ready for analysis\n - Complete engagement metrics (reactions, comments, reposts)\n - Support for all LinkedIn post types\n - Automatic pagination handling\n - Rate limiting and reliability\n \n **Simple Interface:**\n Just provide a LinkedIn username to get back all their recent posts with complete metadata.\n The tool automatically handles:\n - Authentication with Apify\n - Data transformation to unified format\n - Error handling and retries\n - Pagination token management\n \n **What you get:**\n - Post text and metadata (URN, URL, type, timestamp)\n - Complete engagement statistics (likes, comments, reposts, all reaction types)\n - Author information (name, headline, profile URL, picture)\n - Media content (images, videos, documents, articles)\n - Reshared post data (for quote posts)\n \n **Use cases:**\n - Influencer and thought leader tracking\n - Content performance analysis\n - Competitive research on LinkedIn\n - Lead generation and prospecting\n - Brand monitoring and reputation management\n - Recruitment and talent sourcing\n - Partnership and collaboration discovery\n \n The tool uses Apify's LinkedIn scraper behind the scenes while maintaining a clean, consistent interface.\n ";
2106
+ static readonly alias = "li";
2107
+ static readonly type = "tool";
2108
+ constructor(params?: LinkedInToolParamsInput, context?: BubbleContext);
2109
+ performAction(): Promise<LinkedInToolResult>;
2110
+ /**
2111
+ * Create an error result
2112
+ */
2113
+ private createErrorResult;
2114
+ /**
2115
+ * Handle scrapePosts operation
2116
+ */
2117
+ private handleScrapePosts;
2118
+ /**
2119
+ * Transform LinkedIn posts from Apify format to unified format
2120
+ */
2121
+ private transformPosts;
2122
+ /**
2123
+ * Handle searchPosts operation
2124
+ */
2125
+ private handleSearchPosts;
2126
+ /**
2127
+ * Transform search results to unified post format
2128
+ */
2129
+ private transformSearchResults;
2130
+ /**
2131
+ * Helper to get reaction count by type from reactions array
2132
+ */
2133
+ private getReactionCount;
2134
+ }
2135
+ export {};
2136
+ //# sourceMappingURL=linkedin-tool.d.ts.map