@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.
- package/dist/bubble-bundle.d.ts +161 -122
- package/dist/bubble-factory.d.ts.map +1 -1
- package/dist/bubble-factory.js +4 -0
- package/dist/bubble-factory.js.map +1 -1
- package/dist/bubble-flow/bubble-flow-class.js.map +1 -1
- package/dist/bubble-trigger/index.d.ts +2 -0
- package/dist/bubble-trigger/index.d.ts.map +1 -0
- package/dist/bubble-trigger/index.js +2 -0
- package/dist/bubble-trigger/index.js.map +1 -0
- package/dist/bubble-trigger/types.d.ts +87 -0
- package/dist/bubble-trigger/types.d.ts.map +1 -0
- package/dist/bubble-trigger/types.js +14 -0
- package/dist/bubble-trigger/types.js.map +1 -0
- package/dist/bubbles/service-bubble/agi-inc.d.ts +144 -144
- package/dist/bubbles/service-bubble/ai-agent.d.ts +8 -8
- package/dist/bubbles/service-bubble/airtable.d.ts +184 -184
- package/dist/bubbles/service-bubble/apify/apify.d.ts +24 -24
- package/dist/bubbles/service-bubble/ashby/ashby.d.ts +152 -152
- package/dist/bubbles/service-bubble/browserbase/browserbase.d.ts +55 -55
- package/dist/bubbles/service-bubble/confluence/confluence.d.ts +63 -63
- package/dist/bubbles/service-bubble/crustdata/crustdata.d.ts +98 -98
- package/dist/bubbles/service-bubble/eleven-labs.d.ts +56 -56
- package/dist/bubbles/service-bubble/firecrawl.d.ts +264 -264
- package/dist/bubbles/service-bubble/followupboss.d.ts +282 -282
- package/dist/bubbles/service-bubble/fullenrich/fullenrich.d.ts +40 -40
- package/dist/bubbles/service-bubble/github.d.ts +216 -216
- package/dist/bubbles/service-bubble/gmail.d.ts +228 -228
- package/dist/bubbles/service-bubble/google-calendar.d.ts +62 -62
- package/dist/bubbles/service-bubble/google-drive.d.ts +152 -152
- package/dist/bubbles/service-bubble/google-sheets/google-sheets.d.ts +44 -44
- package/dist/bubbles/service-bubble/google-sheets.d.ts +1811 -0
- package/dist/bubbles/service-bubble/google-sheets.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/google-sheets.js +904 -0
- package/dist/bubbles/service-bubble/google-sheets.js.map +1 -0
- package/dist/bubbles/service-bubble/hello-world.d.ts +4 -4
- package/dist/bubbles/service-bubble/http.d.ts +12 -12
- package/dist/bubbles/service-bubble/insforge-db.d.ts +6 -6
- package/dist/bubbles/service-bubble/jira/jira.d.ts +107 -107
- package/dist/bubbles/service-bubble/notion/notion.d.ts +932 -932
- package/dist/bubbles/service-bubble/postgresql.d.ts +6 -6
- package/dist/bubbles/service-bubble/posthog/index.d.ts +3 -0
- package/dist/bubbles/service-bubble/posthog/index.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/posthog/index.js +3 -0
- package/dist/bubbles/service-bubble/posthog/index.js.map +1 -0
- package/dist/bubbles/service-bubble/posthog/posthog.d.ts +469 -0
- package/dist/bubbles/service-bubble/posthog/posthog.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/posthog/posthog.js +309 -0
- package/dist/bubbles/service-bubble/posthog/posthog.js.map +1 -0
- package/dist/bubbles/service-bubble/posthog/posthog.schema.d.ts +545 -0
- package/dist/bubbles/service-bubble/posthog/posthog.schema.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/posthog/posthog.schema.js +352 -0
- package/dist/bubbles/service-bubble/posthog/posthog.schema.js.map +1 -0
- package/dist/bubbles/service-bubble/resend.d.ts +16 -16
- package/dist/bubbles/service-bubble/slack/slack.d.ts +325 -325
- package/dist/bubbles/service-bubble/slack.d.ts +5869 -0
- package/dist/bubbles/service-bubble/slack.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/slack.js +1536 -0
- package/dist/bubbles/service-bubble/slack.js.map +1 -0
- package/dist/bubbles/service-bubble/storage.d.ts +40 -40
- package/dist/bubbles/service-bubble/stripe/stripe.d.ts +161 -161
- package/dist/bubbles/service-bubble/telegram.d.ts +264 -264
- package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.d.ts +26 -26
- package/dist/bubbles/tool-bubble/browser-tools/linkedin-accept-invitations/tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/browser-tools/linkedin-connection/tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/browser-tools/linkedin-received-invitations/tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/browser-tools/linkedin-sent-invitations/tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.d.ts +8 -8
- package/dist/bubbles/tool-bubble/chart-js-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/code-edit-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/company-enrichment-tool.d.ts +18 -18
- package/dist/bubbles/tool-bubble/get-bubble-details-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/get-trigger-detail-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/google-maps-tool.d.ts +12 -12
- package/dist/bubbles/tool-bubble/instagram-tool.d.ts +22 -22
- package/dist/bubbles/tool-bubble/linkedin-connection-tool/index.d.ts +3 -0
- package/dist/bubbles/tool-bubble/linkedin-connection-tool/index.d.ts.map +1 -0
- package/dist/bubbles/tool-bubble/linkedin-connection-tool/index.js +3 -0
- package/dist/bubbles/tool-bubble/linkedin-connection-tool/index.js.map +1 -0
- package/dist/bubbles/tool-bubble/linkedin-connection-tool/linkedin-connection-tool.d.ts +160 -0
- package/dist/bubbles/tool-bubble/linkedin-connection-tool/linkedin-connection-tool.d.ts.map +1 -0
- package/dist/bubbles/tool-bubble/linkedin-connection-tool/linkedin-connection-tool.js +706 -0
- package/dist/bubbles/tool-bubble/linkedin-connection-tool/linkedin-connection-tool.js.map +1 -0
- package/dist/bubbles/tool-bubble/linkedin-connection-tool/linkedin-connection-tool.schema.d.ts +93 -0
- package/dist/bubbles/tool-bubble/linkedin-connection-tool/linkedin-connection-tool.schema.d.ts.map +1 -0
- package/dist/bubbles/tool-bubble/linkedin-connection-tool/linkedin-connection-tool.schema.js +50 -0
- package/dist/bubbles/tool-bubble/linkedin-connection-tool/linkedin-connection-tool.schema.js.map +1 -0
- package/dist/bubbles/tool-bubble/linkedin-tool.d.ts +108 -108
- package/dist/bubbles/tool-bubble/list-airtable-bases-tool.d.ts +12 -12
- package/dist/bubbles/tool-bubble/list-airtable-tables-tool.d.ts +24 -24
- package/dist/bubbles/tool-bubble/list-bubbles-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/list-capabilities-tool.d.ts +12 -12
- package/dist/bubbles/tool-bubble/people-search-tool.d.ts +42 -42
- package/dist/bubbles/tool-bubble/reddit-scrape-tool.d.ts +16 -16
- package/dist/bubbles/tool-bubble/research-agent-tool.d.ts +8 -8
- package/dist/bubbles/tool-bubble/sql-query-tool.d.ts +8 -8
- package/dist/bubbles/tool-bubble/tiktok-tool.d.ts +12 -12
- package/dist/bubbles/tool-bubble/tool-template.d.ts +4 -4
- package/dist/bubbles/tool-bubble/twitter-tool.d.ts +36 -36
- package/dist/bubbles/tool-bubble/web-crawl-tool.d.ts +8 -8
- package/dist/bubbles/tool-bubble/web-extract-tool.d.ts +8 -8
- package/dist/bubbles/tool-bubble/web-scrape-tool.d.ts +8 -8
- package/dist/bubbles/tool-bubble/web-search-tool.d.ts +16 -16
- package/dist/bubbles/tool-bubble/yc-scraper-tool.d.ts +8 -8
- package/dist/bubbles/tool-bubble/youtube-tool.d.ts +18 -18
- package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.d.ts +114 -0
- package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.d.ts.map +1 -0
- package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.js +777 -0
- package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.js.map +1 -0
- package/dist/bubbles/workflow-bubble/database-analyzer.workflow.d.ts +4 -4
- package/dist/bubbles/workflow-bubble/generate-document.workflow.d.ts +24 -24
- package/dist/bubbles/workflow-bubble/parse-document.workflow.d.ts +4 -4
- package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts +68 -68
- package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.d.ts +24 -24
- package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.d.ts +10 -10
- package/dist/bubbles/workflow-bubble/slack-formatter-agent.d.ts +62 -62
- package/dist/bubbles/workflow-bubble/slack-notifier.workflow.d.ts +4 -4
- package/dist/bubbles.json +617 -2
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/types/ai-models.d.ts +4 -0
- package/dist/types/ai-models.d.ts.map +1 -0
- package/dist/types/ai-models.js +16 -0
- package/dist/types/ai-models.js.map +1 -0
- package/dist/utils/param-helper.d.ts +2 -0
- package/dist/utils/param-helper.d.ts.map +1 -0
- package/dist/utils/param-helper.js +5 -0
- package/dist/utils/param-helper.js.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,352 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { CredentialType } from '@bubblelab/shared-schemas';
|
|
3
|
+
// ============================================================================
|
|
4
|
+
// DATA SCHEMAS - PostHog API Response Types
|
|
5
|
+
// ============================================================================
|
|
6
|
+
/**
|
|
7
|
+
* PostHog event object from events API
|
|
8
|
+
*/
|
|
9
|
+
export const PosthogEventSchema = z
|
|
10
|
+
.object({
|
|
11
|
+
id: z.string().optional().describe('Event identifier (returned by API as id)'),
|
|
12
|
+
uuid: z.string().optional().describe('Unique event identifier (legacy field name)'),
|
|
13
|
+
event: z.string().describe('Event name (e.g., $pageview, user_signed_up)'),
|
|
14
|
+
distinct_id: z.string().describe('Distinct ID of the person'),
|
|
15
|
+
properties: z
|
|
16
|
+
.record(z.unknown())
|
|
17
|
+
.optional()
|
|
18
|
+
.describe('Event properties'),
|
|
19
|
+
timestamp: z.string().optional().describe('ISO 8601 event timestamp'),
|
|
20
|
+
created_at: z.string().optional().describe('ISO 8601 creation timestamp'),
|
|
21
|
+
elements: z.array(z.unknown()).optional().describe('DOM elements captured'),
|
|
22
|
+
elements_chain: z
|
|
23
|
+
.string()
|
|
24
|
+
.optional()
|
|
25
|
+
.describe('Serialized element chain'),
|
|
26
|
+
})
|
|
27
|
+
.describe('PostHog event record');
|
|
28
|
+
/**
|
|
29
|
+
* PostHog person object from persons API
|
|
30
|
+
*/
|
|
31
|
+
export const PosthogPersonSchema = z
|
|
32
|
+
.object({
|
|
33
|
+
id: z.string().describe('Internal person ID (UUID)'),
|
|
34
|
+
uuid: z.string().optional().describe('Person UUID'),
|
|
35
|
+
distinct_ids: z
|
|
36
|
+
.array(z.string())
|
|
37
|
+
.describe('All distinct IDs associated with this person'),
|
|
38
|
+
properties: z
|
|
39
|
+
.record(z.unknown())
|
|
40
|
+
.optional()
|
|
41
|
+
.describe('Person properties (set via $set)'),
|
|
42
|
+
created_at: z.string().optional().describe('ISO 8601 creation timestamp'),
|
|
43
|
+
})
|
|
44
|
+
.describe('PostHog person record');
|
|
45
|
+
/**
|
|
46
|
+
* PostHog insight object from insights API
|
|
47
|
+
*/
|
|
48
|
+
export const PosthogInsightSchema = z
|
|
49
|
+
.object({
|
|
50
|
+
id: z.number().describe('Insight ID'),
|
|
51
|
+
short_id: z.string().optional().describe('Short ID for sharing'),
|
|
52
|
+
name: z.string().optional().nullable().describe('Insight name'),
|
|
53
|
+
description: z
|
|
54
|
+
.string()
|
|
55
|
+
.optional()
|
|
56
|
+
.nullable()
|
|
57
|
+
.describe('Insight description'),
|
|
58
|
+
result: z.unknown().optional().describe('Computed insight results'),
|
|
59
|
+
filters: z
|
|
60
|
+
.record(z.unknown())
|
|
61
|
+
.optional()
|
|
62
|
+
.describe('Insight filter configuration'),
|
|
63
|
+
created_at: z.string().optional().describe('ISO 8601 creation timestamp'),
|
|
64
|
+
last_refresh: z
|
|
65
|
+
.string()
|
|
66
|
+
.optional()
|
|
67
|
+
.nullable()
|
|
68
|
+
.describe('Last time the insight was refreshed'),
|
|
69
|
+
last_modified_at: z
|
|
70
|
+
.string()
|
|
71
|
+
.optional()
|
|
72
|
+
.describe('ISO 8601 last modification timestamp'),
|
|
73
|
+
})
|
|
74
|
+
.describe('PostHog insight record');
|
|
75
|
+
/**
|
|
76
|
+
* HogQL query result
|
|
77
|
+
*/
|
|
78
|
+
export const PosthogQueryResultSchema = z
|
|
79
|
+
.object({
|
|
80
|
+
columns: z
|
|
81
|
+
.array(z.string())
|
|
82
|
+
.optional()
|
|
83
|
+
.describe('Column names in the result'),
|
|
84
|
+
results: z
|
|
85
|
+
.array(z.array(z.unknown()))
|
|
86
|
+
.optional()
|
|
87
|
+
.describe('Rows of query results'),
|
|
88
|
+
types: z
|
|
89
|
+
.array(z.union([z.string(), z.array(z.string())]))
|
|
90
|
+
.optional()
|
|
91
|
+
.describe('Column types in the result'),
|
|
92
|
+
hasMore: z
|
|
93
|
+
.boolean()
|
|
94
|
+
.nullable()
|
|
95
|
+
.optional()
|
|
96
|
+
.describe('Whether there are more rows available'),
|
|
97
|
+
limit: z.number().optional().describe('Number of rows returned'),
|
|
98
|
+
offset: z.number().optional().describe('Offset of the first row'),
|
|
99
|
+
})
|
|
100
|
+
.describe('HogQL query result');
|
|
101
|
+
/**
|
|
102
|
+
* PostHog project object from projects API
|
|
103
|
+
*/
|
|
104
|
+
export const PosthogProjectSchema = z
|
|
105
|
+
.object({
|
|
106
|
+
id: z.number().describe('Project ID (use this as project_id in other operations)'),
|
|
107
|
+
uuid: z.string().optional().describe('Project UUID'),
|
|
108
|
+
name: z.string().describe('Project name'),
|
|
109
|
+
organization: z.string().optional().describe('Organization ID'),
|
|
110
|
+
created_at: z.string().optional().describe('ISO 8601 creation timestamp'),
|
|
111
|
+
timezone: z.string().optional().describe('Project timezone (e.g., UTC)'),
|
|
112
|
+
is_demo: z.boolean().optional().describe('Whether this is a demo project'),
|
|
113
|
+
})
|
|
114
|
+
.describe('PostHog project record');
|
|
115
|
+
// ============================================================================
|
|
116
|
+
// PARAMETER SCHEMAS - Discriminated Union for Multiple Operations
|
|
117
|
+
// ============================================================================
|
|
118
|
+
export const PosthogParamsSchema = z.discriminatedUnion('operation', [
|
|
119
|
+
// List projects operation
|
|
120
|
+
z.object({
|
|
121
|
+
operation: z
|
|
122
|
+
.literal('list_projects')
|
|
123
|
+
.describe('List all projects accessible with your API key — use this to discover valid project_id values'),
|
|
124
|
+
host: z
|
|
125
|
+
.string()
|
|
126
|
+
.optional()
|
|
127
|
+
.default('https://us.posthog.com')
|
|
128
|
+
.describe('PostHog host URL (e.g., https://us.posthog.com, https://eu.posthog.com, or your self-hosted URL)'),
|
|
129
|
+
limit: z
|
|
130
|
+
.number()
|
|
131
|
+
.min(1)
|
|
132
|
+
.max(100)
|
|
133
|
+
.optional()
|
|
134
|
+
.default(100)
|
|
135
|
+
.describe('Maximum number of projects to return (1-100)'),
|
|
136
|
+
credentials: z
|
|
137
|
+
.record(z.nativeEnum(CredentialType), z.string())
|
|
138
|
+
.optional()
|
|
139
|
+
.describe('Object mapping credential types to values (injected at runtime)'),
|
|
140
|
+
}),
|
|
141
|
+
// List events operation
|
|
142
|
+
z.object({
|
|
143
|
+
operation: z
|
|
144
|
+
.literal('list_events')
|
|
145
|
+
.describe('List recent events with optional filtering'),
|
|
146
|
+
project_id: z
|
|
147
|
+
.string()
|
|
148
|
+
.min(1)
|
|
149
|
+
.describe('PostHog project ID (found in Project Settings)'),
|
|
150
|
+
host: z
|
|
151
|
+
.string()
|
|
152
|
+
.optional()
|
|
153
|
+
.default('https://us.posthog.com')
|
|
154
|
+
.describe('PostHog host URL (e.g., https://us.posthog.com, https://eu.posthog.com, or your self-hosted URL)'),
|
|
155
|
+
event: z
|
|
156
|
+
.string()
|
|
157
|
+
.optional()
|
|
158
|
+
.describe('Filter by event name (e.g., $pageview, user_signed_up)'),
|
|
159
|
+
person_id: z
|
|
160
|
+
.string()
|
|
161
|
+
.optional()
|
|
162
|
+
.describe('Filter events by person ID'),
|
|
163
|
+
distinct_id: z
|
|
164
|
+
.string()
|
|
165
|
+
.optional()
|
|
166
|
+
.describe('Filter events by distinct ID'),
|
|
167
|
+
after: z
|
|
168
|
+
.string()
|
|
169
|
+
.optional()
|
|
170
|
+
.describe('Only return events after this ISO 8601 timestamp'),
|
|
171
|
+
before: z
|
|
172
|
+
.string()
|
|
173
|
+
.optional()
|
|
174
|
+
.describe('Only return events before this ISO 8601 timestamp'),
|
|
175
|
+
properties: z
|
|
176
|
+
.string()
|
|
177
|
+
.optional()
|
|
178
|
+
.describe('JSON-encoded array of property filters (e.g., [{"key":"$browser","value":"Chrome","operator":"exact"}])'),
|
|
179
|
+
limit: z
|
|
180
|
+
.number()
|
|
181
|
+
.min(1)
|
|
182
|
+
.max(1000)
|
|
183
|
+
.optional()
|
|
184
|
+
.default(100)
|
|
185
|
+
.describe('Maximum number of events to return (1-1000)'),
|
|
186
|
+
credentials: z
|
|
187
|
+
.record(z.nativeEnum(CredentialType), z.string())
|
|
188
|
+
.optional()
|
|
189
|
+
.describe('Object mapping credential types to values (injected at runtime)'),
|
|
190
|
+
}),
|
|
191
|
+
// HogQL query operation
|
|
192
|
+
z.object({
|
|
193
|
+
operation: z
|
|
194
|
+
.literal('query')
|
|
195
|
+
.describe('Execute a HogQL query for custom analytics'),
|
|
196
|
+
project_id: z
|
|
197
|
+
.string()
|
|
198
|
+
.min(1)
|
|
199
|
+
.describe('PostHog project ID (found in Project Settings)'),
|
|
200
|
+
host: z
|
|
201
|
+
.string()
|
|
202
|
+
.optional()
|
|
203
|
+
.default('https://us.posthog.com')
|
|
204
|
+
.describe('PostHog host URL (e.g., https://us.posthog.com, https://eu.posthog.com, or your self-hosted URL)'),
|
|
205
|
+
query: z
|
|
206
|
+
.string()
|
|
207
|
+
.min(1)
|
|
208
|
+
.describe('HogQL query to execute (SQL-like syntax, e.g., SELECT event, count() FROM events GROUP BY event ORDER BY count() DESC LIMIT 10)'),
|
|
209
|
+
credentials: z
|
|
210
|
+
.record(z.nativeEnum(CredentialType), z.string())
|
|
211
|
+
.optional()
|
|
212
|
+
.describe('Object mapping credential types to values (injected at runtime)'),
|
|
213
|
+
}),
|
|
214
|
+
// Get person operation
|
|
215
|
+
z.object({
|
|
216
|
+
operation: z
|
|
217
|
+
.literal('get_person')
|
|
218
|
+
.describe('Look up a person profile by distinct ID or search'),
|
|
219
|
+
project_id: z
|
|
220
|
+
.string()
|
|
221
|
+
.min(1)
|
|
222
|
+
.describe('PostHog project ID (found in Project Settings)'),
|
|
223
|
+
host: z
|
|
224
|
+
.string()
|
|
225
|
+
.optional()
|
|
226
|
+
.default('https://us.posthog.com')
|
|
227
|
+
.describe('PostHog host URL (e.g., https://us.posthog.com, https://eu.posthog.com, or your self-hosted URL)'),
|
|
228
|
+
distinct_id: z
|
|
229
|
+
.string()
|
|
230
|
+
.optional()
|
|
231
|
+
.describe('Look up person by distinct ID'),
|
|
232
|
+
search: z
|
|
233
|
+
.string()
|
|
234
|
+
.optional()
|
|
235
|
+
.describe('Search for persons by email or name in person properties'),
|
|
236
|
+
limit: z
|
|
237
|
+
.number()
|
|
238
|
+
.min(1)
|
|
239
|
+
.max(100)
|
|
240
|
+
.optional()
|
|
241
|
+
.default(10)
|
|
242
|
+
.describe('Maximum number of persons to return (1-100)'),
|
|
243
|
+
credentials: z
|
|
244
|
+
.record(z.nativeEnum(CredentialType), z.string())
|
|
245
|
+
.optional()
|
|
246
|
+
.describe('Object mapping credential types to values (injected at runtime)'),
|
|
247
|
+
}),
|
|
248
|
+
// Get insight operation
|
|
249
|
+
z.object({
|
|
250
|
+
operation: z
|
|
251
|
+
.literal('get_insight')
|
|
252
|
+
.describe("Retrieve a saved insight's results by ID"),
|
|
253
|
+
project_id: z
|
|
254
|
+
.string()
|
|
255
|
+
.min(1)
|
|
256
|
+
.describe('PostHog project ID (found in Project Settings)'),
|
|
257
|
+
host: z
|
|
258
|
+
.string()
|
|
259
|
+
.optional()
|
|
260
|
+
.default('https://us.posthog.com')
|
|
261
|
+
.describe('PostHog host URL (e.g., https://us.posthog.com, https://eu.posthog.com, or your self-hosted URL)'),
|
|
262
|
+
insight_id: z
|
|
263
|
+
.number()
|
|
264
|
+
.min(1)
|
|
265
|
+
.describe('Numeric ID of the insight to retrieve'),
|
|
266
|
+
credentials: z
|
|
267
|
+
.record(z.nativeEnum(CredentialType), z.string())
|
|
268
|
+
.optional()
|
|
269
|
+
.describe('Object mapping credential types to values (injected at runtime)'),
|
|
270
|
+
}),
|
|
271
|
+
]);
|
|
272
|
+
// ============================================================================
|
|
273
|
+
// RESULT SCHEMAS - Discriminated Union for Operation Results
|
|
274
|
+
// ============================================================================
|
|
275
|
+
export const PosthogResultSchema = z.discriminatedUnion('operation', [
|
|
276
|
+
// List projects result
|
|
277
|
+
z.object({
|
|
278
|
+
operation: z.literal('list_projects').describe('List projects operation'),
|
|
279
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
280
|
+
projects: z
|
|
281
|
+
.array(PosthogProjectSchema)
|
|
282
|
+
.optional()
|
|
283
|
+
.describe('List of projects'),
|
|
284
|
+
next: z
|
|
285
|
+
.string()
|
|
286
|
+
.optional()
|
|
287
|
+
.nullable()
|
|
288
|
+
.describe('URL for fetching the next page of results'),
|
|
289
|
+
error: z.string().describe('Error message if operation failed'),
|
|
290
|
+
}),
|
|
291
|
+
// List events result
|
|
292
|
+
z.object({
|
|
293
|
+
operation: z.literal('list_events').describe('List events operation'),
|
|
294
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
295
|
+
events: z
|
|
296
|
+
.array(PosthogEventSchema)
|
|
297
|
+
.optional()
|
|
298
|
+
.describe('List of events'),
|
|
299
|
+
next: z
|
|
300
|
+
.string()
|
|
301
|
+
.optional()
|
|
302
|
+
.nullable()
|
|
303
|
+
.describe('URL for fetching the next page of results'),
|
|
304
|
+
error: z.string().describe('Error message if operation failed'),
|
|
305
|
+
}),
|
|
306
|
+
// HogQL query result
|
|
307
|
+
z.object({
|
|
308
|
+
operation: z.literal('query').describe('HogQL query operation'),
|
|
309
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
310
|
+
columns: z
|
|
311
|
+
.array(z.string())
|
|
312
|
+
.optional()
|
|
313
|
+
.describe('Column names in the result'),
|
|
314
|
+
results: z
|
|
315
|
+
.array(z.array(z.unknown()))
|
|
316
|
+
.optional()
|
|
317
|
+
.describe('Rows of query results'),
|
|
318
|
+
types: z
|
|
319
|
+
.array(z.union([z.string(), z.array(z.string())]))
|
|
320
|
+
.optional()
|
|
321
|
+
.describe('Column types in the result'),
|
|
322
|
+
hasMore: z
|
|
323
|
+
.boolean()
|
|
324
|
+
.nullable()
|
|
325
|
+
.optional()
|
|
326
|
+
.describe('Whether more rows are available'),
|
|
327
|
+
error: z.string().describe('Error message if operation failed'),
|
|
328
|
+
}),
|
|
329
|
+
// Get person result
|
|
330
|
+
z.object({
|
|
331
|
+
operation: z.literal('get_person').describe('Get person operation'),
|
|
332
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
333
|
+
persons: z
|
|
334
|
+
.array(PosthogPersonSchema)
|
|
335
|
+
.optional()
|
|
336
|
+
.describe('List of matching persons'),
|
|
337
|
+
next: z
|
|
338
|
+
.string()
|
|
339
|
+
.optional()
|
|
340
|
+
.nullable()
|
|
341
|
+
.describe('URL for fetching the next page'),
|
|
342
|
+
error: z.string().describe('Error message if operation failed'),
|
|
343
|
+
}),
|
|
344
|
+
// Get insight result
|
|
345
|
+
z.object({
|
|
346
|
+
operation: z.literal('get_insight').describe('Get insight operation'),
|
|
347
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
348
|
+
insight: PosthogInsightSchema.optional().describe('Insight details and results'),
|
|
349
|
+
error: z.string().describe('Error message if operation failed'),
|
|
350
|
+
}),
|
|
351
|
+
]);
|
|
352
|
+
//# sourceMappingURL=posthog.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"posthog.schema.js","sourceRoot":"","sources":["../../../../src/bubbles/service-bubble/posthog/posthog.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,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AAC,gCAAgC,CAAC;QAC7C,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mCAAmC,CAAC;KAChE,CAAC;IAEF,qBAAqB;IACrB,CAAC,CAAC,MAAM,CAAC;QACP,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,uBAAuB,CAAC;QACrE,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,sCAAsC,CAAC;QACrE,OAAO,EAAE,oBAAoB,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,6BAA6B,CAAC;QAChF,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mCAAmC,CAAC;KAChE,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -106,14 +106,14 @@ declare const ResendResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObj
|
|
|
106
106
|
email_id: z.ZodOptional<z.ZodString>;
|
|
107
107
|
error: z.ZodString;
|
|
108
108
|
}, "strip", z.ZodTypeAny, {
|
|
109
|
-
error: string;
|
|
110
|
-
success: boolean;
|
|
111
109
|
operation: "send_email";
|
|
110
|
+
success: boolean;
|
|
111
|
+
error: string;
|
|
112
112
|
email_id?: string | undefined;
|
|
113
113
|
}, {
|
|
114
|
-
error: string;
|
|
115
|
-
success: boolean;
|
|
116
114
|
operation: "send_email";
|
|
115
|
+
success: boolean;
|
|
116
|
+
error: string;
|
|
117
117
|
email_id?: string | undefined;
|
|
118
118
|
}>, z.ZodObject<{
|
|
119
119
|
operation: z.ZodLiteral<"get_email_status">;
|
|
@@ -123,16 +123,16 @@ declare const ResendResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObj
|
|
|
123
123
|
last_event: z.ZodOptional<z.ZodString>;
|
|
124
124
|
error: z.ZodString;
|
|
125
125
|
}, "strip", z.ZodTypeAny, {
|
|
126
|
-
error: string;
|
|
127
|
-
success: boolean;
|
|
128
126
|
operation: "get_email_status";
|
|
127
|
+
success: boolean;
|
|
128
|
+
error: string;
|
|
129
129
|
status?: string | undefined;
|
|
130
130
|
created_at?: string | undefined;
|
|
131
131
|
last_event?: string | undefined;
|
|
132
132
|
}, {
|
|
133
|
-
error: string;
|
|
134
|
-
success: boolean;
|
|
135
133
|
operation: "get_email_status";
|
|
134
|
+
success: boolean;
|
|
135
|
+
error: string;
|
|
136
136
|
status?: string | undefined;
|
|
137
137
|
created_at?: string | undefined;
|
|
138
138
|
last_event?: string | undefined;
|
|
@@ -253,14 +253,14 @@ export declare class ResendBubble<T extends ResendParams = ResendParams> extends
|
|
|
253
253
|
email_id: z.ZodOptional<z.ZodString>;
|
|
254
254
|
error: z.ZodString;
|
|
255
255
|
}, "strip", z.ZodTypeAny, {
|
|
256
|
-
error: string;
|
|
257
|
-
success: boolean;
|
|
258
256
|
operation: "send_email";
|
|
257
|
+
success: boolean;
|
|
258
|
+
error: string;
|
|
259
259
|
email_id?: string | undefined;
|
|
260
260
|
}, {
|
|
261
|
-
error: string;
|
|
262
|
-
success: boolean;
|
|
263
261
|
operation: "send_email";
|
|
262
|
+
success: boolean;
|
|
263
|
+
error: string;
|
|
264
264
|
email_id?: string | undefined;
|
|
265
265
|
}>, z.ZodObject<{
|
|
266
266
|
operation: z.ZodLiteral<"get_email_status">;
|
|
@@ -270,16 +270,16 @@ export declare class ResendBubble<T extends ResendParams = ResendParams> extends
|
|
|
270
270
|
last_event: z.ZodOptional<z.ZodString>;
|
|
271
271
|
error: z.ZodString;
|
|
272
272
|
}, "strip", z.ZodTypeAny, {
|
|
273
|
-
error: string;
|
|
274
|
-
success: boolean;
|
|
275
273
|
operation: "get_email_status";
|
|
274
|
+
success: boolean;
|
|
275
|
+
error: string;
|
|
276
276
|
status?: string | undefined;
|
|
277
277
|
created_at?: string | undefined;
|
|
278
278
|
last_event?: string | undefined;
|
|
279
279
|
}, {
|
|
280
|
-
error: string;
|
|
281
|
-
success: boolean;
|
|
282
280
|
operation: "get_email_status";
|
|
281
|
+
success: boolean;
|
|
282
|
+
error: string;
|
|
283
283
|
status?: string | undefined;
|
|
284
284
|
created_at?: string | undefined;
|
|
285
285
|
last_event?: string | undefined;
|