@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
@@ -0,0 +1,545 @@
1
+ import { z } from 'zod';
2
+ import { CredentialType } from '@bubblelab/shared-schemas';
3
+ /**
4
+ * PostHog event object from events API
5
+ */
6
+ export declare const PosthogEventSchema: z.ZodObject<{
7
+ id: z.ZodOptional<z.ZodString>;
8
+ uuid: z.ZodOptional<z.ZodString>;
9
+ event: z.ZodString;
10
+ distinct_id: z.ZodString;
11
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
12
+ timestamp: z.ZodOptional<z.ZodString>;
13
+ created_at: z.ZodOptional<z.ZodString>;
14
+ elements: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
15
+ elements_chain: z.ZodOptional<z.ZodString>;
16
+ }, "strip", z.ZodTypeAny, {
17
+ event: string;
18
+ distinct_id: string;
19
+ id?: string | undefined;
20
+ uuid?: string | undefined;
21
+ properties?: Record<string, unknown> | undefined;
22
+ timestamp?: string | undefined;
23
+ created_at?: string | undefined;
24
+ elements?: unknown[] | undefined;
25
+ elements_chain?: string | undefined;
26
+ }, {
27
+ event: string;
28
+ distinct_id: string;
29
+ id?: string | undefined;
30
+ uuid?: string | undefined;
31
+ properties?: Record<string, unknown> | undefined;
32
+ timestamp?: string | undefined;
33
+ created_at?: string | undefined;
34
+ elements?: unknown[] | undefined;
35
+ elements_chain?: string | undefined;
36
+ }>;
37
+ /**
38
+ * PostHog person object from persons API
39
+ */
40
+ export declare const PosthogPersonSchema: z.ZodObject<{
41
+ id: z.ZodString;
42
+ uuid: z.ZodOptional<z.ZodString>;
43
+ distinct_ids: z.ZodArray<z.ZodString, "many">;
44
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
45
+ created_at: z.ZodOptional<z.ZodString>;
46
+ }, "strip", z.ZodTypeAny, {
47
+ id: string;
48
+ distinct_ids: string[];
49
+ uuid?: string | undefined;
50
+ properties?: Record<string, unknown> | undefined;
51
+ created_at?: string | undefined;
52
+ }, {
53
+ id: string;
54
+ distinct_ids: string[];
55
+ uuid?: string | undefined;
56
+ properties?: Record<string, unknown> | undefined;
57
+ created_at?: string | undefined;
58
+ }>;
59
+ /**
60
+ * PostHog insight object from insights API
61
+ */
62
+ export declare const PosthogInsightSchema: z.ZodObject<{
63
+ id: z.ZodNumber;
64
+ short_id: z.ZodOptional<z.ZodString>;
65
+ name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
66
+ description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
67
+ result: z.ZodOptional<z.ZodUnknown>;
68
+ filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
69
+ created_at: z.ZodOptional<z.ZodString>;
70
+ last_refresh: z.ZodNullable<z.ZodOptional<z.ZodString>>;
71
+ last_modified_at: z.ZodOptional<z.ZodString>;
72
+ }, "strip", z.ZodTypeAny, {
73
+ id: number;
74
+ description?: string | null | undefined;
75
+ created_at?: string | undefined;
76
+ short_id?: string | undefined;
77
+ name?: string | null | undefined;
78
+ result?: unknown;
79
+ filters?: Record<string, unknown> | undefined;
80
+ last_refresh?: string | null | undefined;
81
+ last_modified_at?: string | undefined;
82
+ }, {
83
+ id: number;
84
+ description?: string | null | undefined;
85
+ created_at?: string | undefined;
86
+ short_id?: string | undefined;
87
+ name?: string | null | undefined;
88
+ result?: unknown;
89
+ filters?: Record<string, unknown> | undefined;
90
+ last_refresh?: string | null | undefined;
91
+ last_modified_at?: string | undefined;
92
+ }>;
93
+ /**
94
+ * HogQL query result
95
+ */
96
+ export declare const PosthogQueryResultSchema: z.ZodObject<{
97
+ columns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
98
+ results: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodUnknown, "many">, "many">>;
99
+ types: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, "many">>;
100
+ hasMore: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
101
+ limit: z.ZodOptional<z.ZodNumber>;
102
+ offset: z.ZodOptional<z.ZodNumber>;
103
+ }, "strip", z.ZodTypeAny, {
104
+ columns?: string[] | undefined;
105
+ results?: unknown[][] | undefined;
106
+ types?: (string | string[])[] | undefined;
107
+ hasMore?: boolean | null | undefined;
108
+ limit?: number | undefined;
109
+ offset?: number | undefined;
110
+ }, {
111
+ columns?: string[] | undefined;
112
+ results?: unknown[][] | undefined;
113
+ types?: (string | string[])[] | undefined;
114
+ hasMore?: boolean | null | undefined;
115
+ limit?: number | undefined;
116
+ offset?: number | undefined;
117
+ }>;
118
+ /**
119
+ * PostHog project object from projects API
120
+ */
121
+ export declare const PosthogProjectSchema: z.ZodObject<{
122
+ id: z.ZodNumber;
123
+ uuid: z.ZodOptional<z.ZodString>;
124
+ name: z.ZodString;
125
+ organization: z.ZodOptional<z.ZodString>;
126
+ created_at: z.ZodOptional<z.ZodString>;
127
+ timezone: z.ZodOptional<z.ZodString>;
128
+ is_demo: z.ZodOptional<z.ZodBoolean>;
129
+ }, "strip", z.ZodTypeAny, {
130
+ id: number;
131
+ name: string;
132
+ uuid?: string | undefined;
133
+ created_at?: string | undefined;
134
+ organization?: string | undefined;
135
+ timezone?: string | undefined;
136
+ is_demo?: boolean | undefined;
137
+ }, {
138
+ id: number;
139
+ name: string;
140
+ uuid?: string | undefined;
141
+ created_at?: string | undefined;
142
+ organization?: string | undefined;
143
+ timezone?: string | undefined;
144
+ is_demo?: boolean | undefined;
145
+ }>;
146
+ export declare const PosthogParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{
147
+ operation: z.ZodLiteral<"list_projects">;
148
+ host: z.ZodDefault<z.ZodOptional<z.ZodString>>;
149
+ limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
150
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
151
+ }, "strip", z.ZodTypeAny, {
152
+ limit: number;
153
+ operation: "list_projects";
154
+ host: string;
155
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
156
+ }, {
157
+ operation: "list_projects";
158
+ limit?: number | undefined;
159
+ host?: string | undefined;
160
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
161
+ }>, z.ZodObject<{
162
+ operation: z.ZodLiteral<"list_events">;
163
+ project_id: z.ZodString;
164
+ host: z.ZodDefault<z.ZodOptional<z.ZodString>>;
165
+ event: z.ZodOptional<z.ZodString>;
166
+ person_id: z.ZodOptional<z.ZodString>;
167
+ distinct_id: z.ZodOptional<z.ZodString>;
168
+ after: z.ZodOptional<z.ZodString>;
169
+ before: z.ZodOptional<z.ZodString>;
170
+ properties: z.ZodOptional<z.ZodString>;
171
+ limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
172
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
173
+ }, "strip", z.ZodTypeAny, {
174
+ limit: number;
175
+ operation: "list_events";
176
+ host: string;
177
+ project_id: string;
178
+ event?: string | undefined;
179
+ distinct_id?: string | undefined;
180
+ properties?: string | undefined;
181
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
182
+ person_id?: string | undefined;
183
+ after?: string | undefined;
184
+ before?: string | undefined;
185
+ }, {
186
+ operation: "list_events";
187
+ project_id: string;
188
+ event?: string | undefined;
189
+ distinct_id?: string | undefined;
190
+ properties?: string | undefined;
191
+ limit?: number | undefined;
192
+ host?: string | undefined;
193
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
194
+ person_id?: string | undefined;
195
+ after?: string | undefined;
196
+ before?: string | undefined;
197
+ }>, z.ZodObject<{
198
+ operation: z.ZodLiteral<"query">;
199
+ project_id: z.ZodString;
200
+ host: z.ZodDefault<z.ZodOptional<z.ZodString>>;
201
+ query: z.ZodString;
202
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
203
+ }, "strip", z.ZodTypeAny, {
204
+ operation: "query";
205
+ host: string;
206
+ project_id: string;
207
+ query: string;
208
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
209
+ }, {
210
+ operation: "query";
211
+ project_id: string;
212
+ query: string;
213
+ host?: string | undefined;
214
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
215
+ }>, z.ZodObject<{
216
+ operation: z.ZodLiteral<"get_person">;
217
+ project_id: z.ZodString;
218
+ host: z.ZodDefault<z.ZodOptional<z.ZodString>>;
219
+ distinct_id: z.ZodOptional<z.ZodString>;
220
+ search: z.ZodOptional<z.ZodString>;
221
+ limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
222
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
223
+ }, "strip", z.ZodTypeAny, {
224
+ limit: number;
225
+ operation: "get_person";
226
+ host: string;
227
+ project_id: string;
228
+ distinct_id?: string | undefined;
229
+ search?: string | undefined;
230
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
231
+ }, {
232
+ operation: "get_person";
233
+ project_id: string;
234
+ distinct_id?: string | undefined;
235
+ limit?: number | undefined;
236
+ search?: string | undefined;
237
+ host?: string | undefined;
238
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
239
+ }>, z.ZodObject<{
240
+ operation: z.ZodLiteral<"get_insight">;
241
+ project_id: z.ZodString;
242
+ host: z.ZodDefault<z.ZodOptional<z.ZodString>>;
243
+ insight_id: z.ZodNumber;
244
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
245
+ }, "strip", z.ZodTypeAny, {
246
+ operation: "get_insight";
247
+ host: string;
248
+ project_id: string;
249
+ insight_id: number;
250
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
251
+ }, {
252
+ operation: "get_insight";
253
+ project_id: string;
254
+ insight_id: number;
255
+ host?: string | undefined;
256
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
257
+ }>]>;
258
+ export declare const PosthogResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{
259
+ operation: z.ZodLiteral<"list_projects">;
260
+ success: z.ZodBoolean;
261
+ projects: z.ZodOptional<z.ZodArray<z.ZodObject<{
262
+ id: z.ZodNumber;
263
+ uuid: z.ZodOptional<z.ZodString>;
264
+ name: z.ZodString;
265
+ organization: z.ZodOptional<z.ZodString>;
266
+ created_at: z.ZodOptional<z.ZodString>;
267
+ timezone: z.ZodOptional<z.ZodString>;
268
+ is_demo: z.ZodOptional<z.ZodBoolean>;
269
+ }, "strip", z.ZodTypeAny, {
270
+ id: number;
271
+ name: string;
272
+ uuid?: string | undefined;
273
+ created_at?: string | undefined;
274
+ organization?: string | undefined;
275
+ timezone?: string | undefined;
276
+ is_demo?: boolean | undefined;
277
+ }, {
278
+ id: number;
279
+ name: string;
280
+ uuid?: string | undefined;
281
+ created_at?: string | undefined;
282
+ organization?: string | undefined;
283
+ timezone?: string | undefined;
284
+ is_demo?: boolean | undefined;
285
+ }>, "many">>;
286
+ next: z.ZodNullable<z.ZodOptional<z.ZodString>>;
287
+ error: z.ZodString;
288
+ }, "strip", z.ZodTypeAny, {
289
+ operation: "list_projects";
290
+ success: boolean;
291
+ error: string;
292
+ projects?: {
293
+ id: number;
294
+ name: string;
295
+ uuid?: string | undefined;
296
+ created_at?: string | undefined;
297
+ organization?: string | undefined;
298
+ timezone?: string | undefined;
299
+ is_demo?: boolean | undefined;
300
+ }[] | undefined;
301
+ next?: string | null | undefined;
302
+ }, {
303
+ operation: "list_projects";
304
+ success: boolean;
305
+ error: string;
306
+ projects?: {
307
+ id: number;
308
+ name: string;
309
+ uuid?: string | undefined;
310
+ created_at?: string | undefined;
311
+ organization?: string | undefined;
312
+ timezone?: string | undefined;
313
+ is_demo?: boolean | undefined;
314
+ }[] | undefined;
315
+ next?: string | null | undefined;
316
+ }>, z.ZodObject<{
317
+ operation: z.ZodLiteral<"list_events">;
318
+ success: z.ZodBoolean;
319
+ events: z.ZodOptional<z.ZodArray<z.ZodObject<{
320
+ id: z.ZodOptional<z.ZodString>;
321
+ uuid: z.ZodOptional<z.ZodString>;
322
+ event: z.ZodString;
323
+ distinct_id: z.ZodString;
324
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
325
+ timestamp: z.ZodOptional<z.ZodString>;
326
+ created_at: z.ZodOptional<z.ZodString>;
327
+ elements: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
328
+ elements_chain: z.ZodOptional<z.ZodString>;
329
+ }, "strip", z.ZodTypeAny, {
330
+ event: string;
331
+ distinct_id: string;
332
+ id?: string | undefined;
333
+ uuid?: string | undefined;
334
+ properties?: Record<string, unknown> | undefined;
335
+ timestamp?: string | undefined;
336
+ created_at?: string | undefined;
337
+ elements?: unknown[] | undefined;
338
+ elements_chain?: string | undefined;
339
+ }, {
340
+ event: string;
341
+ distinct_id: string;
342
+ id?: string | undefined;
343
+ uuid?: string | undefined;
344
+ properties?: Record<string, unknown> | undefined;
345
+ timestamp?: string | undefined;
346
+ created_at?: string | undefined;
347
+ elements?: unknown[] | undefined;
348
+ elements_chain?: string | undefined;
349
+ }>, "many">>;
350
+ next: z.ZodNullable<z.ZodOptional<z.ZodString>>;
351
+ error: z.ZodString;
352
+ }, "strip", z.ZodTypeAny, {
353
+ operation: "list_events";
354
+ success: boolean;
355
+ error: string;
356
+ next?: string | null | undefined;
357
+ events?: {
358
+ event: string;
359
+ distinct_id: string;
360
+ id?: string | undefined;
361
+ uuid?: string | undefined;
362
+ properties?: Record<string, unknown> | undefined;
363
+ timestamp?: string | undefined;
364
+ created_at?: string | undefined;
365
+ elements?: unknown[] | undefined;
366
+ elements_chain?: string | undefined;
367
+ }[] | undefined;
368
+ }, {
369
+ operation: "list_events";
370
+ success: boolean;
371
+ error: string;
372
+ next?: string | null | undefined;
373
+ events?: {
374
+ event: string;
375
+ distinct_id: string;
376
+ id?: string | undefined;
377
+ uuid?: string | undefined;
378
+ properties?: Record<string, unknown> | undefined;
379
+ timestamp?: string | undefined;
380
+ created_at?: string | undefined;
381
+ elements?: unknown[] | undefined;
382
+ elements_chain?: string | undefined;
383
+ }[] | undefined;
384
+ }>, z.ZodObject<{
385
+ operation: z.ZodLiteral<"query">;
386
+ success: z.ZodBoolean;
387
+ columns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
388
+ results: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodUnknown, "many">, "many">>;
389
+ types: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, "many">>;
390
+ hasMore: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
391
+ error: z.ZodString;
392
+ }, "strip", z.ZodTypeAny, {
393
+ operation: "query";
394
+ success: boolean;
395
+ error: string;
396
+ columns?: string[] | undefined;
397
+ results?: unknown[][] | undefined;
398
+ types?: (string | string[])[] | undefined;
399
+ hasMore?: boolean | null | undefined;
400
+ }, {
401
+ operation: "query";
402
+ success: boolean;
403
+ error: string;
404
+ columns?: string[] | undefined;
405
+ results?: unknown[][] | undefined;
406
+ types?: (string | string[])[] | undefined;
407
+ hasMore?: boolean | null | undefined;
408
+ }>, z.ZodObject<{
409
+ operation: z.ZodLiteral<"get_person">;
410
+ success: z.ZodBoolean;
411
+ persons: z.ZodOptional<z.ZodArray<z.ZodObject<{
412
+ id: z.ZodString;
413
+ uuid: z.ZodOptional<z.ZodString>;
414
+ distinct_ids: z.ZodArray<z.ZodString, "many">;
415
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
416
+ created_at: z.ZodOptional<z.ZodString>;
417
+ }, "strip", z.ZodTypeAny, {
418
+ id: string;
419
+ distinct_ids: string[];
420
+ uuid?: string | undefined;
421
+ properties?: Record<string, unknown> | undefined;
422
+ created_at?: string | undefined;
423
+ }, {
424
+ id: string;
425
+ distinct_ids: string[];
426
+ uuid?: string | undefined;
427
+ properties?: Record<string, unknown> | undefined;
428
+ created_at?: string | undefined;
429
+ }>, "many">>;
430
+ next: z.ZodNullable<z.ZodOptional<z.ZodString>>;
431
+ error: z.ZodString;
432
+ }, "strip", z.ZodTypeAny, {
433
+ operation: "get_person";
434
+ success: boolean;
435
+ error: string;
436
+ next?: string | null | undefined;
437
+ persons?: {
438
+ id: string;
439
+ distinct_ids: string[];
440
+ uuid?: string | undefined;
441
+ properties?: Record<string, unknown> | undefined;
442
+ created_at?: string | undefined;
443
+ }[] | undefined;
444
+ }, {
445
+ operation: "get_person";
446
+ success: boolean;
447
+ error: string;
448
+ next?: string | null | undefined;
449
+ persons?: {
450
+ id: string;
451
+ distinct_ids: string[];
452
+ uuid?: string | undefined;
453
+ properties?: Record<string, unknown> | undefined;
454
+ created_at?: string | undefined;
455
+ }[] | undefined;
456
+ }>, z.ZodObject<{
457
+ operation: z.ZodLiteral<"get_insight">;
458
+ success: z.ZodBoolean;
459
+ insight: z.ZodOptional<z.ZodObject<{
460
+ id: z.ZodNumber;
461
+ short_id: z.ZodOptional<z.ZodString>;
462
+ name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
463
+ description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
464
+ result: z.ZodOptional<z.ZodUnknown>;
465
+ filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
466
+ created_at: z.ZodOptional<z.ZodString>;
467
+ last_refresh: z.ZodNullable<z.ZodOptional<z.ZodString>>;
468
+ last_modified_at: z.ZodOptional<z.ZodString>;
469
+ }, "strip", z.ZodTypeAny, {
470
+ id: number;
471
+ description?: string | null | undefined;
472
+ created_at?: string | undefined;
473
+ short_id?: string | undefined;
474
+ name?: string | null | undefined;
475
+ result?: unknown;
476
+ filters?: Record<string, unknown> | undefined;
477
+ last_refresh?: string | null | undefined;
478
+ last_modified_at?: string | undefined;
479
+ }, {
480
+ id: number;
481
+ description?: string | null | undefined;
482
+ created_at?: string | undefined;
483
+ short_id?: string | undefined;
484
+ name?: string | null | undefined;
485
+ result?: unknown;
486
+ filters?: Record<string, unknown> | undefined;
487
+ last_refresh?: string | null | undefined;
488
+ last_modified_at?: string | undefined;
489
+ }>>;
490
+ error: z.ZodString;
491
+ }, "strip", z.ZodTypeAny, {
492
+ operation: "get_insight";
493
+ success: boolean;
494
+ error: string;
495
+ insight?: {
496
+ id: number;
497
+ description?: string | null | undefined;
498
+ created_at?: string | undefined;
499
+ short_id?: string | undefined;
500
+ name?: string | null | undefined;
501
+ result?: unknown;
502
+ filters?: Record<string, unknown> | undefined;
503
+ last_refresh?: string | null | undefined;
504
+ last_modified_at?: string | undefined;
505
+ } | undefined;
506
+ }, {
507
+ operation: "get_insight";
508
+ success: boolean;
509
+ error: string;
510
+ insight?: {
511
+ id: number;
512
+ description?: string | null | undefined;
513
+ created_at?: string | undefined;
514
+ short_id?: string | undefined;
515
+ name?: string | null | undefined;
516
+ result?: unknown;
517
+ filters?: Record<string, unknown> | undefined;
518
+ last_refresh?: string | null | undefined;
519
+ last_modified_at?: string | undefined;
520
+ } | undefined;
521
+ }>]>;
522
+ export type PosthogParamsInput = z.input<typeof PosthogParamsSchema>;
523
+ export type PosthogParams = z.output<typeof PosthogParamsSchema>;
524
+ export type PosthogResult = z.output<typeof PosthogResultSchema>;
525
+ export type PosthogEvent = z.output<typeof PosthogEventSchema>;
526
+ export type PosthogPerson = z.output<typeof PosthogPersonSchema>;
527
+ export type PosthogInsight = z.output<typeof PosthogInsightSchema>;
528
+ export type PosthogQueryResult = z.output<typeof PosthogQueryResultSchema>;
529
+ export type PosthogProject = z.output<typeof PosthogProjectSchema>;
530
+ export type PosthogListProjectsParams = Extract<PosthogParams, {
531
+ operation: 'list_projects';
532
+ }>;
533
+ export type PosthogListEventsParams = Extract<PosthogParams, {
534
+ operation: 'list_events';
535
+ }>;
536
+ export type PosthogQueryParams = Extract<PosthogParams, {
537
+ operation: 'query';
538
+ }>;
539
+ export type PosthogGetPersonParams = Extract<PosthogParams, {
540
+ operation: 'get_person';
541
+ }>;
542
+ export type PosthogGetInsightParams = Extract<PosthogParams, {
543
+ operation: 'get_insight';
544
+ }>;
545
+ //# sourceMappingURL=posthog.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"posthog.schema.d.ts","sourceRoot":"","sources":["../../../../src/bubbles/service-bubble/posthog/posthog.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAM3D;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkBI,CAAC;AAEpC;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;EAaI,CAAC;AAErC;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0BI,CAAC;AAEtC;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;EAsBJ,CAAC;AAElC;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;EAUI,CAAC;AAMtC,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAuL9B,CAAC;AAMH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAgF9B,CAAC;AAOH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAGrE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAGjE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAGjE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC/D,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACjE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,oBAAoB,CAAC,CAAC;AACnE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC3E,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAGnE,MAAM,MAAM,yBAAyB,GAAG,OAAO,CAC7C,aAAa,EACb;IAAE,SAAS,EAAE,eAAe,CAAA;CAAE,CAC/B,CAAC;AACF,MAAM,MAAM,uBAAuB,GAAG,OAAO,CAC3C,aAAa,EACb;IAAE,SAAS,EAAE,aAAa,CAAA;CAAE,CAC7B,CAAC;AACF,MAAM,MAAM,kBAAkB,GAAG,OAAO,CACtC,aAAa,EACb;IAAE,SAAS,EAAE,OAAO,CAAA;CAAE,CACvB,CAAC;AACF,MAAM,MAAM,sBAAsB,GAAG,OAAO,CAC1C,aAAa,EACb;IAAE,SAAS,EAAE,YAAY,CAAA;CAAE,CAC5B,CAAC;AACF,MAAM,MAAM,uBAAuB,GAAG,OAAO,CAC3C,aAAa,EACb;IAAE,SAAS,EAAE,aAAa,CAAA;CAAE,CAC7B,CAAC"}