@bubblelab/bubble-core 0.1.155 → 0.1.157
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 +198 -158
- 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 +60 -60
- package/dist/bubbles/service-bubble/ai-agent.d.ts +8 -8
- package/dist/bubbles/service-bubble/airtable.d.ts +50 -50
- package/dist/bubbles/service-bubble/apify/actors/google-maps-scraper.d.ts +2 -2
- package/dist/bubbles/service-bubble/apify/actors/instagram-hashtag-scraper.d.ts +4 -4
- package/dist/bubbles/service-bubble/apify/actors/instagram-scraper.d.ts +12 -12
- package/dist/bubbles/service-bubble/apify/actors/linkedin-jobs-scraper.d.ts +2 -2
- package/dist/bubbles/service-bubble/apify/actors/linkedin-posts-search.d.ts +8 -8
- package/dist/bubbles/service-bubble/apify/actors/linkedin-profile-detail.d.ts +52 -52
- package/dist/bubbles/service-bubble/apify/actors/linkedin-profile-posts.d.ts +18 -18
- package/dist/bubbles/service-bubble/apify/actors/tiktok-scraper.d.ts +10 -10
- package/dist/bubbles/service-bubble/apify/actors/twitter-scraper.d.ts +27 -27
- package/dist/bubbles/service-bubble/apify/actors/youtube-scraper.d.ts +8 -8
- package/dist/bubbles/service-bubble/apify/apify-scraper.schema.d.ts +131 -131
- package/dist/bubbles/service-bubble/apify/apify.d.ts +12 -12
- package/dist/bubbles/service-bubble/ashby/ashby.d.ts +62 -62
- package/dist/bubbles/service-bubble/ashby/ashby.schema.d.ts +84 -84
- package/dist/bubbles/service-bubble/browserbase/browserbase.d.ts +28 -28
- package/dist/bubbles/service-bubble/browserbase/browserbase.schema.d.ts +30 -30
- package/dist/bubbles/service-bubble/confluence/confluence.d.ts +24 -24
- package/dist/bubbles/service-bubble/confluence/confluence.schema.d.ts +24 -24
- package/dist/bubbles/service-bubble/crustdata/crustdata.d.ts +126 -126
- package/dist/bubbles/service-bubble/crustdata/crustdata.schema.d.ts +158 -158
- package/dist/bubbles/service-bubble/eleven-labs.d.ts +28 -28
- package/dist/bubbles/service-bubble/firecrawl.d.ts +628 -628
- package/dist/bubbles/service-bubble/followupboss.d.ts +140 -140
- package/dist/bubbles/service-bubble/fullenrich/fullenrich.d.ts +68 -68
- package/dist/bubbles/service-bubble/fullenrich/fullenrich.schema.d.ts +108 -108
- package/dist/bubbles/service-bubble/github.d.ts +76 -76
- package/dist/bubbles/service-bubble/gmail.d.ts +80 -80
- package/dist/bubbles/service-bubble/google-calendar.d.ts +138 -138
- package/dist/bubbles/service-bubble/google-drive.d.ts +60 -60
- package/dist/bubbles/service-bubble/google-sheets/google-sheets.d.ts +44 -44
- package/dist/bubbles/service-bubble/google-sheets/google-sheets.schema.d.ts +48 -48
- 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 +8 -8
- package/dist/bubbles/service-bubble/http.d.ts +16 -16
- package/dist/bubbles/service-bubble/insforge-db.d.ts +8 -8
- package/dist/bubbles/service-bubble/jira/jira.d.ts +86 -86
- package/dist/bubbles/service-bubble/jira/jira.schema.d.ts +94 -94
- package/dist/bubbles/service-bubble/notion/notion.d.ts +522 -522
- package/dist/bubbles/service-bubble/notion/property-schemas.d.ts +8 -8
- package/dist/bubbles/service-bubble/postgresql.d.ts +8 -8
- 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 +387 -0
- package/dist/bubbles/service-bubble/posthog/posthog.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/posthog/posthog.js +291 -0
- package/dist/bubbles/service-bubble/posthog/posthog.js.map +1 -0
- package/dist/bubbles/service-bubble/posthog/posthog.schema.d.ts +432 -0
- package/dist/bubbles/service-bubble/posthog/posthog.schema.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/posthog/posthog.schema.js +298 -0
- package/dist/bubbles/service-bubble/posthog/posthog.schema.js.map +1 -0
- package/dist/bubbles/service-bubble/resend.d.ts +28 -28
- package/dist/bubbles/service-bubble/slack/slack.d.ts +312 -312
- 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 +20 -20
- package/dist/bubbles/service-bubble/stripe/stripe.d.ts +125 -125
- package/dist/bubbles/service-bubble/stripe/stripe.schema.d.ts +143 -143
- package/dist/bubbles/service-bubble/telegram.d.ts +1537 -1537
- package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.d.ts +13 -13
- package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.schema.d.ts +13 -13
- package/dist/bubbles/tool-bubble/browser-tools/_shared/schema.d.ts +2 -2
- package/dist/bubbles/tool-bubble/browser-tools/linkedin-accept-invitations/schema.d.ts +2 -2
- package/dist/bubbles/tool-bubble/browser-tools/linkedin-accept-invitations/tool.d.ts +2 -2
- package/dist/bubbles/tool-bubble/browser-tools/linkedin-connection/schema.d.ts +2 -2
- package/dist/bubbles/tool-bubble/browser-tools/linkedin-connection/tool.d.ts +2 -2
- package/dist/bubbles/tool-bubble/browser-tools/linkedin-received-invitations/schema.d.ts +2 -2
- package/dist/bubbles/tool-bubble/browser-tools/linkedin-received-invitations/tool.d.ts +2 -2
- package/dist/bubbles/tool-bubble/browser-tools/linkedin-sent-invitations/schema.d.ts +2 -2
- package/dist/bubbles/tool-bubble/browser-tools/linkedin-sent-invitations/tool.d.ts +2 -2
- package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.d.ts +16 -16
- package/dist/bubbles/tool-bubble/chart-js-tool.d.ts +26 -26
- package/dist/bubbles/tool-bubble/code-edit-tool.d.ts +8 -8
- package/dist/bubbles/tool-bubble/company-enrichment-tool.d.ts +22 -22
- 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 +4 -4
- package/dist/bubbles/tool-bubble/instagram-tool.d.ts +14 -14
- 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 +186 -186
- package/dist/bubbles/tool-bubble/list-airtable-bases-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/list-airtable-tables-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/list-bubbles-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/list-capabilities-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/people-search-tool.d.ts +14 -14
- package/dist/bubbles/tool-bubble/reddit-scrape-tool.d.ts +28 -28
- package/dist/bubbles/tool-bubble/research-agent-tool.d.ts +8 -8
- package/dist/bubbles/tool-bubble/sql-query-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/tiktok-tool.d.ts +28 -28
- package/dist/bubbles/tool-bubble/tool-template.d.ts +4 -4
- package/dist/bubbles/tool-bubble/twitter-tool.d.ts +54 -54
- package/dist/bubbles/tool-bubble/web-crawl-tool.d.ts +22 -22
- 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 +8 -8
- package/dist/bubbles/tool-bubble/yc-scraper-tool.d.ts +22 -22
- 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 +28 -28
- package/dist/bubbles/workflow-bubble/parse-document.workflow.d.ts +8 -8
- package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts +72 -72
- package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.d.ts +32 -32
- package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.d.ts +34 -34
- package/dist/bubbles/workflow-bubble/slack-formatter-agent.d.ts +98 -98
- package/dist/bubbles/workflow-bubble/slack-notifier.workflow.d.ts +8 -8
- package/dist/bubbles.json +494 -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
|
@@ -260,13 +260,13 @@ declare const NumberPropertySchema: z.ZodObject<{
|
|
|
260
260
|
number: z.ZodObject<{
|
|
261
261
|
format: z.ZodEnum<["number", "number_with_commas", "percent", "dollar", "canadian_dollar", "singapore_dollar", "euro", "pound", "yen", "ruble", "rupee", "won", "yuan", "real", "lira", "rupiah", "franc", "hong_kong_dollar", "new_zealand_dollar", "krona", "norwegian_krone", "mexican_peso", "rand", "new_taiwan_dollar", "danish_krone", "zloty", "baht", "forint", "koruna", "shekel", "chilean_peso", "philippine_peso", "dirham", "colombian_peso", "riyal", "ringgit", "leu", "argentine_peso", "uruguayan_peso", "peruvian_sol"]>;
|
|
262
262
|
}, "strip", z.ZodTypeAny, {
|
|
263
|
-
format: "number" | "percent" | "number_with_commas" | "dollar" | "canadian_dollar" | "singapore_dollar" | "euro" | "pound" | "yen" | "ruble" | "rupee" | "won" | "yuan" | "
|
|
263
|
+
format: "number" | "percent" | "real" | "number_with_commas" | "dollar" | "canadian_dollar" | "singapore_dollar" | "euro" | "pound" | "yen" | "ruble" | "rupee" | "won" | "yuan" | "lira" | "rupiah" | "franc" | "hong_kong_dollar" | "new_zealand_dollar" | "krona" | "norwegian_krone" | "mexican_peso" | "rand" | "new_taiwan_dollar" | "danish_krone" | "zloty" | "baht" | "forint" | "koruna" | "shekel" | "chilean_peso" | "philippine_peso" | "dirham" | "colombian_peso" | "riyal" | "ringgit" | "leu" | "argentine_peso" | "uruguayan_peso" | "peruvian_sol";
|
|
264
264
|
}, {
|
|
265
|
-
format: "number" | "percent" | "number_with_commas" | "dollar" | "canadian_dollar" | "singapore_dollar" | "euro" | "pound" | "yen" | "ruble" | "rupee" | "won" | "yuan" | "
|
|
265
|
+
format: "number" | "percent" | "real" | "number_with_commas" | "dollar" | "canadian_dollar" | "singapore_dollar" | "euro" | "pound" | "yen" | "ruble" | "rupee" | "won" | "yuan" | "lira" | "rupiah" | "franc" | "hong_kong_dollar" | "new_zealand_dollar" | "krona" | "norwegian_krone" | "mexican_peso" | "rand" | "new_taiwan_dollar" | "danish_krone" | "zloty" | "baht" | "forint" | "koruna" | "shekel" | "chilean_peso" | "philippine_peso" | "dirham" | "colombian_peso" | "riyal" | "ringgit" | "leu" | "argentine_peso" | "uruguayan_peso" | "peruvian_sol";
|
|
266
266
|
}>;
|
|
267
267
|
}, "strip", z.ZodTypeAny, {
|
|
268
268
|
number: {
|
|
269
|
-
format: "number" | "percent" | "number_with_commas" | "dollar" | "canadian_dollar" | "singapore_dollar" | "euro" | "pound" | "yen" | "ruble" | "rupee" | "won" | "yuan" | "
|
|
269
|
+
format: "number" | "percent" | "real" | "number_with_commas" | "dollar" | "canadian_dollar" | "singapore_dollar" | "euro" | "pound" | "yen" | "ruble" | "rupee" | "won" | "yuan" | "lira" | "rupiah" | "franc" | "hong_kong_dollar" | "new_zealand_dollar" | "krona" | "norwegian_krone" | "mexican_peso" | "rand" | "new_taiwan_dollar" | "danish_krone" | "zloty" | "baht" | "forint" | "koruna" | "shekel" | "chilean_peso" | "philippine_peso" | "dirham" | "colombian_peso" | "riyal" | "ringgit" | "leu" | "argentine_peso" | "uruguayan_peso" | "peruvian_sol";
|
|
270
270
|
};
|
|
271
271
|
type: "number";
|
|
272
272
|
name: string;
|
|
@@ -274,7 +274,7 @@ declare const NumberPropertySchema: z.ZodObject<{
|
|
|
274
274
|
description?: string | undefined;
|
|
275
275
|
}, {
|
|
276
276
|
number: {
|
|
277
|
-
format: "number" | "percent" | "number_with_commas" | "dollar" | "canadian_dollar" | "singapore_dollar" | "euro" | "pound" | "yen" | "ruble" | "rupee" | "won" | "yuan" | "
|
|
277
|
+
format: "number" | "percent" | "real" | "number_with_commas" | "dollar" | "canadian_dollar" | "singapore_dollar" | "euro" | "pound" | "yen" | "ruble" | "rupee" | "won" | "yuan" | "lira" | "rupiah" | "franc" | "hong_kong_dollar" | "new_zealand_dollar" | "krona" | "norwegian_krone" | "mexican_peso" | "rand" | "new_taiwan_dollar" | "danish_krone" | "zloty" | "baht" | "forint" | "koruna" | "shekel" | "chilean_peso" | "philippine_peso" | "dirham" | "colombian_peso" | "riyal" | "ringgit" | "leu" | "argentine_peso" | "uruguayan_peso" | "peruvian_sol";
|
|
278
278
|
};
|
|
279
279
|
type: "number";
|
|
280
280
|
name: string;
|
|
@@ -832,13 +832,13 @@ export declare const DataSourcePropertySchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
832
832
|
number: z.ZodObject<{
|
|
833
833
|
format: z.ZodEnum<["number", "number_with_commas", "percent", "dollar", "canadian_dollar", "singapore_dollar", "euro", "pound", "yen", "ruble", "rupee", "won", "yuan", "real", "lira", "rupiah", "franc", "hong_kong_dollar", "new_zealand_dollar", "krona", "norwegian_krone", "mexican_peso", "rand", "new_taiwan_dollar", "danish_krone", "zloty", "baht", "forint", "koruna", "shekel", "chilean_peso", "philippine_peso", "dirham", "colombian_peso", "riyal", "ringgit", "leu", "argentine_peso", "uruguayan_peso", "peruvian_sol"]>;
|
|
834
834
|
}, "strip", z.ZodTypeAny, {
|
|
835
|
-
format: "number" | "percent" | "number_with_commas" | "dollar" | "canadian_dollar" | "singapore_dollar" | "euro" | "pound" | "yen" | "ruble" | "rupee" | "won" | "yuan" | "
|
|
835
|
+
format: "number" | "percent" | "real" | "number_with_commas" | "dollar" | "canadian_dollar" | "singapore_dollar" | "euro" | "pound" | "yen" | "ruble" | "rupee" | "won" | "yuan" | "lira" | "rupiah" | "franc" | "hong_kong_dollar" | "new_zealand_dollar" | "krona" | "norwegian_krone" | "mexican_peso" | "rand" | "new_taiwan_dollar" | "danish_krone" | "zloty" | "baht" | "forint" | "koruna" | "shekel" | "chilean_peso" | "philippine_peso" | "dirham" | "colombian_peso" | "riyal" | "ringgit" | "leu" | "argentine_peso" | "uruguayan_peso" | "peruvian_sol";
|
|
836
836
|
}, {
|
|
837
|
-
format: "number" | "percent" | "number_with_commas" | "dollar" | "canadian_dollar" | "singapore_dollar" | "euro" | "pound" | "yen" | "ruble" | "rupee" | "won" | "yuan" | "
|
|
837
|
+
format: "number" | "percent" | "real" | "number_with_commas" | "dollar" | "canadian_dollar" | "singapore_dollar" | "euro" | "pound" | "yen" | "ruble" | "rupee" | "won" | "yuan" | "lira" | "rupiah" | "franc" | "hong_kong_dollar" | "new_zealand_dollar" | "krona" | "norwegian_krone" | "mexican_peso" | "rand" | "new_taiwan_dollar" | "danish_krone" | "zloty" | "baht" | "forint" | "koruna" | "shekel" | "chilean_peso" | "philippine_peso" | "dirham" | "colombian_peso" | "riyal" | "ringgit" | "leu" | "argentine_peso" | "uruguayan_peso" | "peruvian_sol";
|
|
838
838
|
}>;
|
|
839
839
|
}, "strip", z.ZodTypeAny, {
|
|
840
840
|
number: {
|
|
841
|
-
format: "number" | "percent" | "number_with_commas" | "dollar" | "canadian_dollar" | "singapore_dollar" | "euro" | "pound" | "yen" | "ruble" | "rupee" | "won" | "yuan" | "
|
|
841
|
+
format: "number" | "percent" | "real" | "number_with_commas" | "dollar" | "canadian_dollar" | "singapore_dollar" | "euro" | "pound" | "yen" | "ruble" | "rupee" | "won" | "yuan" | "lira" | "rupiah" | "franc" | "hong_kong_dollar" | "new_zealand_dollar" | "krona" | "norwegian_krone" | "mexican_peso" | "rand" | "new_taiwan_dollar" | "danish_krone" | "zloty" | "baht" | "forint" | "koruna" | "shekel" | "chilean_peso" | "philippine_peso" | "dirham" | "colombian_peso" | "riyal" | "ringgit" | "leu" | "argentine_peso" | "uruguayan_peso" | "peruvian_sol";
|
|
842
842
|
};
|
|
843
843
|
type: "number";
|
|
844
844
|
name: string;
|
|
@@ -846,7 +846,7 @@ export declare const DataSourcePropertySchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
846
846
|
description?: string | undefined;
|
|
847
847
|
}, {
|
|
848
848
|
number: {
|
|
849
|
-
format: "number" | "percent" | "number_with_commas" | "dollar" | "canadian_dollar" | "singapore_dollar" | "euro" | "pound" | "yen" | "ruble" | "rupee" | "won" | "yuan" | "
|
|
849
|
+
format: "number" | "percent" | "real" | "number_with_commas" | "dollar" | "canadian_dollar" | "singapore_dollar" | "euro" | "pound" | "yen" | "ruble" | "rupee" | "won" | "yuan" | "lira" | "rupiah" | "franc" | "hong_kong_dollar" | "new_zealand_dollar" | "krona" | "norwegian_krone" | "mexican_peso" | "rand" | "new_taiwan_dollar" | "danish_krone" | "zloty" | "baht" | "forint" | "koruna" | "shekel" | "chilean_peso" | "philippine_peso" | "dirham" | "colombian_peso" | "riyal" | "ringgit" | "leu" | "argentine_peso" | "uruguayan_peso" | "peruvian_sol";
|
|
850
850
|
};
|
|
851
851
|
type: "number";
|
|
852
852
|
name: string;
|
|
@@ -12,20 +12,20 @@ declare const PostgreSQLParamsSchema: z.ZodObject<{
|
|
|
12
12
|
maxRows: z.ZodDefault<z.ZodNumber>;
|
|
13
13
|
credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
|
|
14
14
|
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
timeout: number;
|
|
15
16
|
ignoreSSL: boolean;
|
|
16
17
|
query: string;
|
|
17
18
|
allowedOperations: ("SELECT" | "INSERT" | "UPDATE" | "DELETE" | "WITH" | "EXPLAIN" | "ANALYZE" | "SHOW" | "DESCRIBE" | "DESC" | "CREATE")[];
|
|
18
19
|
parameters: unknown[];
|
|
19
|
-
timeout: number;
|
|
20
20
|
maxRows: number;
|
|
21
21
|
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
22
22
|
}, {
|
|
23
23
|
query: string;
|
|
24
24
|
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
25
|
+
timeout?: number | undefined;
|
|
25
26
|
ignoreSSL?: boolean | undefined;
|
|
26
27
|
allowedOperations?: ("SELECT" | "INSERT" | "UPDATE" | "DELETE" | "WITH" | "EXPLAIN" | "ANALYZE" | "SHOW" | "DESCRIBE" | "DESC" | "CREATE")[] | undefined;
|
|
27
28
|
parameters?: unknown[] | undefined;
|
|
28
|
-
timeout?: number | undefined;
|
|
29
29
|
maxRows?: number | undefined;
|
|
30
30
|
}>;
|
|
31
31
|
type PostgreSQLParamsInput = z.input<typeof PostgreSQLParamsSchema>;
|
|
@@ -49,8 +49,8 @@ declare const PostgreSQLResultSchema: z.ZodObject<{
|
|
|
49
49
|
error: z.ZodString;
|
|
50
50
|
cleanedJSONString: z.ZodString;
|
|
51
51
|
}, "strip", z.ZodTypeAny, {
|
|
52
|
-
success: boolean;
|
|
53
52
|
error: string;
|
|
53
|
+
success: boolean;
|
|
54
54
|
rows: Record<string, unknown>[];
|
|
55
55
|
rowCount: number | null;
|
|
56
56
|
command: string;
|
|
@@ -61,8 +61,8 @@ declare const PostgreSQLResultSchema: z.ZodObject<{
|
|
|
61
61
|
dataTypeID: number;
|
|
62
62
|
}[] | undefined;
|
|
63
63
|
}, {
|
|
64
|
-
success: boolean;
|
|
65
64
|
error: string;
|
|
65
|
+
success: boolean;
|
|
66
66
|
rows: Record<string, unknown>[];
|
|
67
67
|
rowCount: number | null;
|
|
68
68
|
command: string;
|
|
@@ -89,20 +89,20 @@ export declare class PostgreSQLBubble extends ServiceBubble<PostgreSQLParams, Po
|
|
|
89
89
|
maxRows: z.ZodDefault<z.ZodNumber>;
|
|
90
90
|
credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
|
|
91
91
|
}, "strip", z.ZodTypeAny, {
|
|
92
|
+
timeout: number;
|
|
92
93
|
ignoreSSL: boolean;
|
|
93
94
|
query: string;
|
|
94
95
|
allowedOperations: ("SELECT" | "INSERT" | "UPDATE" | "DELETE" | "WITH" | "EXPLAIN" | "ANALYZE" | "SHOW" | "DESCRIBE" | "DESC" | "CREATE")[];
|
|
95
96
|
parameters: unknown[];
|
|
96
|
-
timeout: number;
|
|
97
97
|
maxRows: number;
|
|
98
98
|
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
99
99
|
}, {
|
|
100
100
|
query: string;
|
|
101
101
|
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
102
|
+
timeout?: number | undefined;
|
|
102
103
|
ignoreSSL?: boolean | undefined;
|
|
103
104
|
allowedOperations?: ("SELECT" | "INSERT" | "UPDATE" | "DELETE" | "WITH" | "EXPLAIN" | "ANALYZE" | "SHOW" | "DESCRIBE" | "DESC" | "CREATE")[] | undefined;
|
|
104
105
|
parameters?: unknown[] | undefined;
|
|
105
|
-
timeout?: number | undefined;
|
|
106
106
|
maxRows?: number | undefined;
|
|
107
107
|
}>;
|
|
108
108
|
static readonly resultSchema: z.ZodObject<{
|
|
@@ -124,8 +124,8 @@ export declare class PostgreSQLBubble extends ServiceBubble<PostgreSQLParams, Po
|
|
|
124
124
|
error: z.ZodString;
|
|
125
125
|
cleanedJSONString: z.ZodString;
|
|
126
126
|
}, "strip", z.ZodTypeAny, {
|
|
127
|
-
success: boolean;
|
|
128
127
|
error: string;
|
|
128
|
+
success: boolean;
|
|
129
129
|
rows: Record<string, unknown>[];
|
|
130
130
|
rowCount: number | null;
|
|
131
131
|
command: string;
|
|
@@ -136,8 +136,8 @@ export declare class PostgreSQLBubble extends ServiceBubble<PostgreSQLParams, Po
|
|
|
136
136
|
dataTypeID: number;
|
|
137
137
|
}[] | undefined;
|
|
138
138
|
}, {
|
|
139
|
-
success: boolean;
|
|
140
139
|
error: string;
|
|
140
|
+
success: boolean;
|
|
141
141
|
rows: Record<string, unknown>[];
|
|
142
142
|
rowCount: number | null;
|
|
143
143
|
command: string;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { PosthogBubble } from './posthog.js';
|
|
2
|
+
export { PosthogParamsSchema, PosthogResultSchema, PosthogEventSchema, PosthogPersonSchema, PosthogInsightSchema, PosthogQueryResultSchema, type PosthogParams, type PosthogParamsInput, type PosthogResult, type PosthogEvent, type PosthogPerson, type PosthogInsight, type PosthogQueryResult, type PosthogListEventsParams, type PosthogQueryParams, type PosthogGetPersonParams, type PosthogGetInsightParams, } from './posthog.schema.js';
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/bubbles/service-bubble/posthog/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,EACpB,wBAAwB,EACxB,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,uBAAuB,EAC5B,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,GAC7B,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/bubbles/service-bubble/posthog/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,EACpB,wBAAwB,GAYzB,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,387 @@
|
|
|
1
|
+
import { CredentialType } from '@bubblelab/shared-schemas';
|
|
2
|
+
import { ServiceBubble } from '../../../types/service-bubble-class.js';
|
|
3
|
+
import type { BubbleContext } from '../../../types/bubble.js';
|
|
4
|
+
import { type PosthogParamsInput, type PosthogResult } from './posthog.schema.js';
|
|
5
|
+
/**
|
|
6
|
+
* PosthogBubble - Integration with PostHog product analytics
|
|
7
|
+
*
|
|
8
|
+
* Provides read operations for retrieving analytics data from PostHog:
|
|
9
|
+
* - List events with filtering by event type, person, and date range
|
|
10
|
+
* - Execute HogQL queries for custom analytics
|
|
11
|
+
* - Look up person profiles and properties
|
|
12
|
+
* - Retrieve saved insight results
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```typescript
|
|
16
|
+
* // List recent pageview events
|
|
17
|
+
* const result = await new PosthogBubble({
|
|
18
|
+
* operation: 'list_events',
|
|
19
|
+
* project_id: '12345',
|
|
20
|
+
* event: '$pageview',
|
|
21
|
+
* limit: 50,
|
|
22
|
+
* }).action();
|
|
23
|
+
*
|
|
24
|
+
* // Execute a HogQL query
|
|
25
|
+
* const queryResult = await new PosthogBubble({
|
|
26
|
+
* operation: 'query',
|
|
27
|
+
* project_id: '12345',
|
|
28
|
+
* query: 'SELECT event, count() FROM events GROUP BY event ORDER BY count() DESC LIMIT 10',
|
|
29
|
+
* }).action();
|
|
30
|
+
*
|
|
31
|
+
* // Look up a person by distinct ID
|
|
32
|
+
* const person = await new PosthogBubble({
|
|
33
|
+
* operation: 'get_person',
|
|
34
|
+
* project_id: '12345',
|
|
35
|
+
* distinct_id: 'user_123',
|
|
36
|
+
* }).action();
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
export declare class PosthogBubble<T extends PosthogParamsInput = PosthogParamsInput> extends ServiceBubble<T, Extract<PosthogResult, {
|
|
40
|
+
operation: T['operation'];
|
|
41
|
+
}>> {
|
|
42
|
+
static readonly service = "posthog";
|
|
43
|
+
static readonly authType: "apikey";
|
|
44
|
+
static readonly bubbleName: "posthog";
|
|
45
|
+
static readonly type: "service";
|
|
46
|
+
static readonly schema: import("zod").ZodDiscriminatedUnion<"operation", [import("zod").ZodObject<{
|
|
47
|
+
operation: import("zod").ZodLiteral<"list_events">;
|
|
48
|
+
project_id: import("zod").ZodString;
|
|
49
|
+
host: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
50
|
+
event: import("zod").ZodOptional<import("zod").ZodString>;
|
|
51
|
+
person_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
52
|
+
distinct_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
53
|
+
after: import("zod").ZodOptional<import("zod").ZodString>;
|
|
54
|
+
before: import("zod").ZodOptional<import("zod").ZodString>;
|
|
55
|
+
properties: import("zod").ZodOptional<import("zod").ZodString>;
|
|
56
|
+
limit: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
57
|
+
credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>;
|
|
58
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
59
|
+
operation: "list_events";
|
|
60
|
+
limit: number;
|
|
61
|
+
project_id: string;
|
|
62
|
+
host: string;
|
|
63
|
+
properties?: string | undefined;
|
|
64
|
+
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
65
|
+
event?: string | undefined;
|
|
66
|
+
person_id?: string | undefined;
|
|
67
|
+
after?: string | undefined;
|
|
68
|
+
before?: string | undefined;
|
|
69
|
+
distinct_id?: string | undefined;
|
|
70
|
+
}, {
|
|
71
|
+
operation: "list_events";
|
|
72
|
+
project_id: string;
|
|
73
|
+
properties?: string | undefined;
|
|
74
|
+
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
75
|
+
limit?: number | undefined;
|
|
76
|
+
event?: string | undefined;
|
|
77
|
+
person_id?: string | undefined;
|
|
78
|
+
after?: string | undefined;
|
|
79
|
+
before?: string | undefined;
|
|
80
|
+
distinct_id?: string | undefined;
|
|
81
|
+
host?: string | undefined;
|
|
82
|
+
}>, import("zod").ZodObject<{
|
|
83
|
+
operation: import("zod").ZodLiteral<"query">;
|
|
84
|
+
project_id: import("zod").ZodString;
|
|
85
|
+
host: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
86
|
+
query: import("zod").ZodString;
|
|
87
|
+
credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>;
|
|
88
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
89
|
+
query: string;
|
|
90
|
+
operation: "query";
|
|
91
|
+
project_id: string;
|
|
92
|
+
host: string;
|
|
93
|
+
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
94
|
+
}, {
|
|
95
|
+
query: string;
|
|
96
|
+
operation: "query";
|
|
97
|
+
project_id: string;
|
|
98
|
+
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
99
|
+
host?: string | undefined;
|
|
100
|
+
}>, import("zod").ZodObject<{
|
|
101
|
+
operation: import("zod").ZodLiteral<"get_person">;
|
|
102
|
+
project_id: import("zod").ZodString;
|
|
103
|
+
host: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
104
|
+
distinct_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
105
|
+
search: import("zod").ZodOptional<import("zod").ZodString>;
|
|
106
|
+
limit: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
107
|
+
credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>;
|
|
108
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
109
|
+
operation: "get_person";
|
|
110
|
+
limit: number;
|
|
111
|
+
project_id: string;
|
|
112
|
+
host: string;
|
|
113
|
+
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
114
|
+
search?: string | undefined;
|
|
115
|
+
distinct_id?: string | undefined;
|
|
116
|
+
}, {
|
|
117
|
+
operation: "get_person";
|
|
118
|
+
project_id: string;
|
|
119
|
+
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
120
|
+
search?: string | undefined;
|
|
121
|
+
limit?: number | undefined;
|
|
122
|
+
distinct_id?: string | undefined;
|
|
123
|
+
host?: string | undefined;
|
|
124
|
+
}>, import("zod").ZodObject<{
|
|
125
|
+
operation: import("zod").ZodLiteral<"get_insight">;
|
|
126
|
+
project_id: import("zod").ZodString;
|
|
127
|
+
host: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
128
|
+
insight_id: import("zod").ZodNumber;
|
|
129
|
+
credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>;
|
|
130
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
131
|
+
operation: "get_insight";
|
|
132
|
+
project_id: string;
|
|
133
|
+
host: string;
|
|
134
|
+
insight_id: number;
|
|
135
|
+
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
136
|
+
}, {
|
|
137
|
+
operation: "get_insight";
|
|
138
|
+
project_id: string;
|
|
139
|
+
insight_id: number;
|
|
140
|
+
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
141
|
+
host?: string | undefined;
|
|
142
|
+
}>]>;
|
|
143
|
+
static readonly resultSchema: import("zod").ZodDiscriminatedUnion<"operation", [import("zod").ZodObject<{
|
|
144
|
+
operation: import("zod").ZodLiteral<"list_events">;
|
|
145
|
+
success: import("zod").ZodBoolean;
|
|
146
|
+
events: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
147
|
+
uuid: import("zod").ZodString;
|
|
148
|
+
event: import("zod").ZodString;
|
|
149
|
+
distinct_id: import("zod").ZodString;
|
|
150
|
+
properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
151
|
+
timestamp: import("zod").ZodOptional<import("zod").ZodString>;
|
|
152
|
+
created_at: import("zod").ZodOptional<import("zod").ZodString>;
|
|
153
|
+
elements: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodUnknown, "many">>;
|
|
154
|
+
elements_chain: import("zod").ZodOptional<import("zod").ZodString>;
|
|
155
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
156
|
+
uuid: string;
|
|
157
|
+
event: string;
|
|
158
|
+
distinct_id: string;
|
|
159
|
+
properties?: Record<string, unknown> | undefined;
|
|
160
|
+
elements?: unknown[] | undefined;
|
|
161
|
+
timestamp?: string | undefined;
|
|
162
|
+
created_at?: string | undefined;
|
|
163
|
+
elements_chain?: string | undefined;
|
|
164
|
+
}, {
|
|
165
|
+
uuid: string;
|
|
166
|
+
event: string;
|
|
167
|
+
distinct_id: string;
|
|
168
|
+
properties?: Record<string, unknown> | undefined;
|
|
169
|
+
elements?: unknown[] | undefined;
|
|
170
|
+
timestamp?: string | undefined;
|
|
171
|
+
created_at?: string | undefined;
|
|
172
|
+
elements_chain?: string | undefined;
|
|
173
|
+
}>, "many">>;
|
|
174
|
+
next: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
175
|
+
error: import("zod").ZodString;
|
|
176
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
177
|
+
error: string;
|
|
178
|
+
success: boolean;
|
|
179
|
+
operation: "list_events";
|
|
180
|
+
events?: {
|
|
181
|
+
uuid: string;
|
|
182
|
+
event: string;
|
|
183
|
+
distinct_id: string;
|
|
184
|
+
properties?: Record<string, unknown> | undefined;
|
|
185
|
+
elements?: unknown[] | undefined;
|
|
186
|
+
timestamp?: string | undefined;
|
|
187
|
+
created_at?: string | undefined;
|
|
188
|
+
elements_chain?: string | undefined;
|
|
189
|
+
}[] | undefined;
|
|
190
|
+
next?: string | null | undefined;
|
|
191
|
+
}, {
|
|
192
|
+
error: string;
|
|
193
|
+
success: boolean;
|
|
194
|
+
operation: "list_events";
|
|
195
|
+
events?: {
|
|
196
|
+
uuid: string;
|
|
197
|
+
event: string;
|
|
198
|
+
distinct_id: string;
|
|
199
|
+
properties?: Record<string, unknown> | undefined;
|
|
200
|
+
elements?: unknown[] | undefined;
|
|
201
|
+
timestamp?: string | undefined;
|
|
202
|
+
created_at?: string | undefined;
|
|
203
|
+
elements_chain?: string | undefined;
|
|
204
|
+
}[] | undefined;
|
|
205
|
+
next?: string | null | undefined;
|
|
206
|
+
}>, import("zod").ZodObject<{
|
|
207
|
+
operation: import("zod").ZodLiteral<"query">;
|
|
208
|
+
success: import("zod").ZodBoolean;
|
|
209
|
+
columns: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
210
|
+
results: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodArray<import("zod").ZodUnknown, "many">, "many">>;
|
|
211
|
+
types: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
212
|
+
hasMore: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
213
|
+
error: import("zod").ZodString;
|
|
214
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
215
|
+
error: string;
|
|
216
|
+
success: boolean;
|
|
217
|
+
operation: "query";
|
|
218
|
+
types?: string[] | undefined;
|
|
219
|
+
hasMore?: boolean | undefined;
|
|
220
|
+
results?: unknown[][] | undefined;
|
|
221
|
+
columns?: string[] | undefined;
|
|
222
|
+
}, {
|
|
223
|
+
error: string;
|
|
224
|
+
success: boolean;
|
|
225
|
+
operation: "query";
|
|
226
|
+
types?: string[] | undefined;
|
|
227
|
+
hasMore?: boolean | undefined;
|
|
228
|
+
results?: unknown[][] | undefined;
|
|
229
|
+
columns?: string[] | undefined;
|
|
230
|
+
}>, import("zod").ZodObject<{
|
|
231
|
+
operation: import("zod").ZodLiteral<"get_person">;
|
|
232
|
+
success: import("zod").ZodBoolean;
|
|
233
|
+
persons: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
234
|
+
id: import("zod").ZodString;
|
|
235
|
+
uuid: import("zod").ZodOptional<import("zod").ZodString>;
|
|
236
|
+
distinct_ids: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
237
|
+
properties: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
238
|
+
created_at: import("zod").ZodOptional<import("zod").ZodString>;
|
|
239
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
240
|
+
id: string;
|
|
241
|
+
distinct_ids: string[];
|
|
242
|
+
properties?: Record<string, unknown> | undefined;
|
|
243
|
+
uuid?: string | undefined;
|
|
244
|
+
created_at?: string | undefined;
|
|
245
|
+
}, {
|
|
246
|
+
id: string;
|
|
247
|
+
distinct_ids: string[];
|
|
248
|
+
properties?: Record<string, unknown> | undefined;
|
|
249
|
+
uuid?: string | undefined;
|
|
250
|
+
created_at?: string | undefined;
|
|
251
|
+
}>, "many">>;
|
|
252
|
+
next: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
253
|
+
error: import("zod").ZodString;
|
|
254
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
255
|
+
error: string;
|
|
256
|
+
success: boolean;
|
|
257
|
+
operation: "get_person";
|
|
258
|
+
next?: string | null | undefined;
|
|
259
|
+
persons?: {
|
|
260
|
+
id: string;
|
|
261
|
+
distinct_ids: string[];
|
|
262
|
+
properties?: Record<string, unknown> | undefined;
|
|
263
|
+
uuid?: string | undefined;
|
|
264
|
+
created_at?: string | undefined;
|
|
265
|
+
}[] | undefined;
|
|
266
|
+
}, {
|
|
267
|
+
error: string;
|
|
268
|
+
success: boolean;
|
|
269
|
+
operation: "get_person";
|
|
270
|
+
next?: string | null | undefined;
|
|
271
|
+
persons?: {
|
|
272
|
+
id: string;
|
|
273
|
+
distinct_ids: string[];
|
|
274
|
+
properties?: Record<string, unknown> | undefined;
|
|
275
|
+
uuid?: string | undefined;
|
|
276
|
+
created_at?: string | undefined;
|
|
277
|
+
}[] | undefined;
|
|
278
|
+
}>, import("zod").ZodObject<{
|
|
279
|
+
operation: import("zod").ZodLiteral<"get_insight">;
|
|
280
|
+
success: import("zod").ZodBoolean;
|
|
281
|
+
insight: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
282
|
+
id: import("zod").ZodNumber;
|
|
283
|
+
short_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
284
|
+
name: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
285
|
+
description: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
286
|
+
result: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
287
|
+
filters: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
288
|
+
created_at: import("zod").ZodOptional<import("zod").ZodString>;
|
|
289
|
+
last_refresh: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
290
|
+
last_modified_at: import("zod").ZodOptional<import("zod").ZodString>;
|
|
291
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
292
|
+
id: number;
|
|
293
|
+
description?: string | null | undefined;
|
|
294
|
+
name?: string | null | undefined;
|
|
295
|
+
result?: unknown;
|
|
296
|
+
created_at?: string | undefined;
|
|
297
|
+
filters?: Record<string, unknown> | undefined;
|
|
298
|
+
short_id?: string | undefined;
|
|
299
|
+
last_refresh?: string | null | undefined;
|
|
300
|
+
last_modified_at?: string | undefined;
|
|
301
|
+
}, {
|
|
302
|
+
id: number;
|
|
303
|
+
description?: string | null | undefined;
|
|
304
|
+
name?: string | null | undefined;
|
|
305
|
+
result?: unknown;
|
|
306
|
+
created_at?: string | undefined;
|
|
307
|
+
filters?: Record<string, unknown> | undefined;
|
|
308
|
+
short_id?: string | undefined;
|
|
309
|
+
last_refresh?: string | null | undefined;
|
|
310
|
+
last_modified_at?: string | undefined;
|
|
311
|
+
}>>;
|
|
312
|
+
error: import("zod").ZodString;
|
|
313
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
314
|
+
error: string;
|
|
315
|
+
success: boolean;
|
|
316
|
+
operation: "get_insight";
|
|
317
|
+
insight?: {
|
|
318
|
+
id: number;
|
|
319
|
+
description?: string | null | undefined;
|
|
320
|
+
name?: string | null | undefined;
|
|
321
|
+
result?: unknown;
|
|
322
|
+
created_at?: string | undefined;
|
|
323
|
+
filters?: Record<string, unknown> | undefined;
|
|
324
|
+
short_id?: string | undefined;
|
|
325
|
+
last_refresh?: string | null | undefined;
|
|
326
|
+
last_modified_at?: string | undefined;
|
|
327
|
+
} | undefined;
|
|
328
|
+
}, {
|
|
329
|
+
error: string;
|
|
330
|
+
success: boolean;
|
|
331
|
+
operation: "get_insight";
|
|
332
|
+
insight?: {
|
|
333
|
+
id: number;
|
|
334
|
+
description?: string | null | undefined;
|
|
335
|
+
name?: string | null | undefined;
|
|
336
|
+
result?: unknown;
|
|
337
|
+
created_at?: string | undefined;
|
|
338
|
+
filters?: Record<string, unknown> | undefined;
|
|
339
|
+
short_id?: string | undefined;
|
|
340
|
+
last_refresh?: string | null | undefined;
|
|
341
|
+
last_modified_at?: string | undefined;
|
|
342
|
+
} | undefined;
|
|
343
|
+
}>]>;
|
|
344
|
+
static readonly shortDescription = "PostHog product analytics for events, persons, and insights";
|
|
345
|
+
static readonly longDescription = "\n PostHog is an open-source product analytics platform.\n This bubble provides read operations for retrieving analytics data:\n - List and filter captured events (pageviews, custom events, etc.)\n - Execute HogQL queries for advanced custom analytics\n - Look up person profiles and their properties\n - Retrieve saved insight results\n\n Authentication:\n - Uses a Personal API Key via Bearer token\n - Supports US Cloud, EU Cloud, and self-hosted instances via configurable host URL\n\n Use Cases:\n - Pull analytics data into automated workflows\n - Query event data with HogQL for custom reports\n - Look up user profiles and their properties\n - Retrieve computed insight results for dashboards\n ";
|
|
346
|
+
static readonly alias = "posthog-analytics";
|
|
347
|
+
constructor(params?: T, context?: BubbleContext);
|
|
348
|
+
/**
|
|
349
|
+
* Choose the appropriate credential for PostHog API
|
|
350
|
+
*/
|
|
351
|
+
protected chooseCredential(): string | undefined;
|
|
352
|
+
/**
|
|
353
|
+
* Test if the credential is valid by listing projects
|
|
354
|
+
*/
|
|
355
|
+
testCredential(): Promise<boolean>;
|
|
356
|
+
/**
|
|
357
|
+
* Perform the PostHog operation
|
|
358
|
+
*/
|
|
359
|
+
protected performAction(context?: BubbleContext): Promise<Extract<PosthogResult, {
|
|
360
|
+
operation: T['operation'];
|
|
361
|
+
}>>;
|
|
362
|
+
/**
|
|
363
|
+
* Make an authenticated GET request to the PostHog API
|
|
364
|
+
*/
|
|
365
|
+
private makePosthogGetRequest;
|
|
366
|
+
/**
|
|
367
|
+
* Make an authenticated POST request to the PostHog API
|
|
368
|
+
*/
|
|
369
|
+
private makePosthogPostRequest;
|
|
370
|
+
/**
|
|
371
|
+
* List events with optional filtering
|
|
372
|
+
*/
|
|
373
|
+
private listEvents;
|
|
374
|
+
/**
|
|
375
|
+
* Execute a HogQL query
|
|
376
|
+
*/
|
|
377
|
+
private executeQuery;
|
|
378
|
+
/**
|
|
379
|
+
* Get person profiles
|
|
380
|
+
*/
|
|
381
|
+
private getPerson;
|
|
382
|
+
/**
|
|
383
|
+
* Get a saved insight's results
|
|
384
|
+
*/
|
|
385
|
+
private getInsight;
|
|
386
|
+
}
|
|
387
|
+
//# sourceMappingURL=posthog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"posthog.d.ts","sourceRoot":"","sources":["../../../../src/bubbles/service-bubble/posthog/posthog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AACvE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAIL,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAKnB,MAAM,qBAAqB,CAAC;AAE7B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,qBAAa,aAAa,CACxB,CAAC,SAAS,kBAAkB,GAAG,kBAAkB,CACjD,SAAQ,aAAa,CACrB,CAAC,EACD,OAAO,CAAC,aAAa,EAAE;IAAE,SAAS,EAAE,CAAC,CAAC,WAAW,CAAC,CAAA;CAAE,CAAC,CACtD;IAEC,MAAM,CAAC,QAAQ,CAAC,OAAO,aAAa;IACpC,MAAM,CAAC,QAAQ,CAAC,QAAQ,EAAG,QAAQ,CAAU;IAC7C,MAAM,CAAC,QAAQ,CAAC,UAAU,EAAG,SAAS,CAAU;IAChD,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAG,SAAS,CAAU;IAC1C,MAAM,CAAC,QAAQ,CAAC,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAAuB;IAC7C,MAAM,CAAC,QAAQ,CAAC,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAAuB;IACnD,MAAM,CAAC,QAAQ,CAAC,gBAAgB,iEACgC;IAChE,MAAM,CAAC,QAAQ,CAAC,eAAe,gvBAiB7B;IACF,MAAM,CAAC,QAAQ,CAAC,KAAK,uBAAuB;gBAG1C,MAAM,GAAE,CAIF,EACN,OAAO,CAAC,EAAE,aAAa;IAKzB;;OAEG;IACH,SAAS,CAAC,gBAAgB,IAAI,MAAM,GAAG,SAAS;IAShD;;OAEG;IACG,cAAc,IAAI,OAAO,CAAC,OAAO,CAAC;IAyBxC;;OAEG;cACa,aAAa,CAC3B,OAAO,CAAC,EAAE,aAAa,GACtB,OAAO,CAAC,OAAO,CAAC,aAAa,EAAE;QAAE,SAAS,EAAE,CAAC,CAAC,WAAW,CAAC,CAAA;KAAE,CAAC,CAAC;IA0CjE;;OAEG;YACW,qBAAqB;IA2CnC;;OAEG;YACW,sBAAsB;IAmCpC;;OAEG;YACW,UAAU;IA+BxB;;OAEG;YACW,YAAY;IA8B1B;;OAEG;YACW,SAAS;IA2BvB;;OAEG;YACW,UAAU;CAkBzB"}
|