@bubblelab/bubble-core 0.1.90 → 0.1.92
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 +5 -1
- package/dist/bubbles.json +1 -1
- package/package.json +2 -2
package/dist/bubble-bundle.d.ts
CHANGED
|
@@ -139,7 +139,11 @@ export interface AirtableRecordDeletedEvent extends AirtableEventBase { airtable
|
|
|
139
139
|
export interface JsonSchema { type: string; properties?: Record<string, JsonSchemaProperty>; required?: string[]; additionalProperties?: boolean; }
|
|
140
140
|
export interface JsonSchemaProperty { type?: string; description?: string; [key: string]: unknown; }
|
|
141
141
|
export interface TriggerEventConfig { serviceName: string; friendlyName: string; description: string; setupGuide: string; payloadSchema: JsonSchema; }
|
|
142
|
-
export declare const TRIGGER_EVENT_CONFIGS: Record<keyof BubbleTriggerEventRegistry, TriggerEventConfig>; export declare function getTriggerEventConfig(eventType: keyof BubbleTriggerEventRegistry): TriggerEventConfig; export declare function isServiceTrigger(eventType: keyof BubbleTriggerEventRegistry): boolean; export declare const TRIGGER_EVENT_INTERFACE_MAP: Record<string, keyof BubbleTriggerEventRegistry>; export declare function getTriggerEventTypeFromInterfaceName(interfaceName: string): keyof BubbleTriggerEventRegistry | undefined; export declare const
|
|
142
|
+
export declare const TRIGGER_EVENT_CONFIGS: Record<keyof BubbleTriggerEventRegistry, TriggerEventConfig>; export declare function getTriggerEventConfig(eventType: keyof BubbleTriggerEventRegistry): TriggerEventConfig; export declare function isServiceTrigger(eventType: keyof BubbleTriggerEventRegistry): boolean; export declare const TRIGGER_EVENT_INTERFACE_MAP: Record<string, keyof BubbleTriggerEventRegistry>; export declare function getTriggerEventTypeFromInterfaceName(interfaceName: string): keyof BubbleTriggerEventRegistry | undefined; export declare const AIRTABLE_DELAY_OPTIONS: readonly [0, 30, 60, 120, 300, 600]; export type AirtableDelaySeconds = (typeof AIRTABLE_DELAY_OPTIONS)[number]; export declare const AIRTABLE_DELAY_LABELS: Record<AirtableDelaySeconds, string>; export interface AirtableBase { id: string; name: string; permissionLevel: 'none' | 'read' | 'comment' | 'edit' | 'create'; }
|
|
143
|
+
export interface AirtableTable { id: string; name: string; description?: string; }
|
|
144
|
+
export interface AirtableTableFull extends AirtableTable { primaryFieldId: string; fields: Array<{ id: string; name: string; type: string; description?: string; }>; }
|
|
145
|
+
export declare const AIRTABLE_TRIGGER_CONFIG_KEYS: { readonly BASE_ID: "airtable_base_id"; readonly TABLE_ID: "airtable_table_id"; readonly WEBHOOK_ID: "airtable_webhook_id"; readonly MAC_SECRET: "airtable_mac_secret"; readonly WEBHOOK_EXPIRATION: "airtable_webhook_expiration"; readonly DELAY_SECONDS: "airtable_trigger_delay_seconds"; }; export interface AirtableTriggerConfig { airtable_base_id?: string; airtable_table_id?: string; airtable_webhook_id?: string; airtable_mac_secret?: string; airtable_webhook_expiration?: string; airtable_trigger_delay_seconds?: AirtableDelaySeconds; }
|
|
146
|
+
export declare function getAirtableTriggerConfig(defaultInputs: Record<string, unknown>): AirtableTriggerConfig; export type AirtableEventType = Extract<keyof BubbleTriggerEventRegistry, `airtable/${string}`>; export declare const AvailableModels: z.ZodEnum<["openai/gpt-5", "openai/gpt-5-mini", "openai/gpt-5.1", "openai/gpt-5.2", "google/gemini-2.5-pro", "google/gemini-2.5-flash", "google/gemini-2.5-flash-lite", "google/gemini-2.5-flash-image-preview", "google/gemini-3-pro-preview", "google/gemini-3-pro-image-preview", "google/gemini-3-flash-preview", "anthropic/claude-sonnet-4-5", "anthropic/claude-opus-4-5", "anthropic/claude-haiku-4-5", "openrouter/x-ai/grok-code-fast-1", "openrouter/z-ai/glm-4.6", "openrouter/z-ai/glm-4.7", "openrouter/anthropic/claude-sonnet-4.5", "openrouter/anthropic/claude-opus-4.5", "openrouter/google/gemini-3-pro-preview", "openrouter/morph/morph-v3-large", "openrouter/openai/gpt-oss-120b", "openrouter/openai/o3-deep-research", "openrouter/openai/o4-mini-deep-research"]>; export type AvailableModel = z.infer<typeof AvailableModels>; export declare const RECOMMENDED_MODELS: Record<string, AvailableModel>; export type StorableValue = { truncated: boolean; preview: string | unknown; sizeBytes: number; }; export declare function prepareForStorage(value: unknown, options?: { maxBytes?: number; previewBytes?: number; }): StorableValue; export declare function cleanUpObjectForDisplayAndStorage(obj: unknown, maxBytes?: number): unknown; export declare function sanitizeParams(params: Record<string, unknown>): Record<string, unknown>; export declare function enhanceErrorMessage(errorMessage: string): string; export declare function hashToVariableId(input: string): number; export declare function buildCallSiteKey(methodName: string, invocationIndex: number): string; export declare enum CredentialType { CREDENTIAL_WILDCARD = "*", OPENAI_CRED = "OPENAI_CRED", GOOGLE_GEMINI_CRED = "GOOGLE_GEMINI_CRED", ANTHROPIC_CRED = "ANTHROPIC_CRED", OPENROUTER_CRED = "OPENROUTER_CRED", FIRECRAWL_API_KEY = "FIRECRAWL_API_KEY", DATABASE_CRED = "DATABASE_CRED", SLACK_CRED = "SLACK_CRED", TELEGRAM_BOT_TOKEN = "TELEGRAM_BOT_TOKEN", RESEND_CRED = "RESEND_CRED", CLOUDFLARE_R2_ACCESS_KEY = "CLOUDFLARE_R2_ACCESS_KEY", CLOUDFLARE_R2_SECRET_KEY = "CLOUDFLARE_R2_SECRET_KEY", CLOUDFLARE_R2_ACCOUNT_ID = "CLOUDFLARE_R2_ACCOUNT_ID", APIFY_CRED = "APIFY_CRED", ELEVENLABS_API_KEY = "ELEVENLABS_API_KEY", GOOGLE_DRIVE_CRED = "GOOGLE_DRIVE_CRED", GMAIL_CRED = "GMAIL_CRED", GOOGLE_SHEETS_CRED = "GOOGLE_SHEETS_CRED", GOOGLE_CALENDAR_CRED = "GOOGLE_CALENDAR_CRED", FUB_CRED = "FUB_CRED", NOTION_OAUTH_TOKEN = "NOTION_OAUTH_TOKEN", AIRTABLE_OAUTH = "AIRTABLE_OAUTH", GITHUB_TOKEN = "GITHUB_TOKEN", AGI_API_KEY = "AGI_API_KEY", AIRTABLE_CRED = "AIRTABLE_CRED", INSFORGE_BASE_URL = "INSFORGE_BASE_URL", INSFORGE_API_KEY = "INSFORGE_API_KEY", CUSTOM_AUTH_KEY = "CUSTOM_AUTH_KEY", AMAZON_CRED = "AMAZON_CRED", LINKEDIN_CRED = "LINKEDIN_CRED", CRUSTDATA_API_KEY = "CRUSTDATA_API_KEY", JIRA_CRED = "JIRA_CRED", ASHBY_CRED = "ASHBY_CRED", FULLENRICH_API_KEY = "FULLENRICH_API_KEY", STRIPE_CRED = "STRIPE_CRED" }
|
|
143
147
|
export type BubbleName = 'hello-world' | 'ai-agent' | 'postgresql' | 'slack' | 'resend' | 'http' | 'slack-formatter-agent' | 'database-analyzer' | 'slack-notifier' | 'get-bubble-details-tool' | 'get-trigger-detail-tool' | 'list-bubbles-tool' | 'sql-query-tool' | 'chart-js-tool' | 'web-search-tool' | 'web-scrape-tool' | 'web-crawl-tool' | 'web-extract-tool' | 'research-agent-tool' | 'reddit-scrape-tool' | 'slack-data-assistant' | 'bubbleflow-code-generator' | 'bubbleflow-generator' | 'pdf-form-operations' | 'pdf-ocr-workflow' | 'generate-document-workflow' | 'parse-document-workflow' | 'bubbleflow-validation-tool' | 'code-edit-tool' | 'storage' | 'google-drive' | 'gmail' | 'google-sheets' | 'google-calendar' | 'apify' | 'instagram-tool' | 'linkedin-tool' | 'tiktok-tool' | 'twitter-tool' | 'google-maps-tool' | 'youtube-tool' | 'github' | 'eleven-labs' | 'followupboss' | 'agi-inc' | 'telegram' | 'airtable' | 'notion' | 'firecrawl' | 'insforge-db' | 'browserbase' | 'amazon-shopping-tool' | 'crustdata' | 'company-enrichment-tool' | 'people-search-tool' | 'jira' | 'ashby' | 'fullenrich' | 'linkedin-connection-tool' | 'stripe'; export declare const TOOL_CALL_TO_DISCARD: BubbleName[]; export declare const ConversationMessageSchema: z.ZodObject<{ role: z.ZodEnum<["user", "assistant", "tool"]>; content: z.ZodString; toolCallId: z.ZodOptional<z.ZodString>; name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { role: "user" | "assistant" | "tool"; content: string; toolCallId?: string | undefined; name?: string | undefined; }, { role: "user" | "assistant" | "tool"; content: string; toolCallId?: string | undefined; name?: string | undefined; }>; export type ConversationMessage = z.infer<typeof ConversationMessageSchema>; export declare enum CredentialType { CREDENTIAL_WILDCARD = "*", OPENAI_CRED = "OPENAI_CRED", GOOGLE_GEMINI_CRED = "GOOGLE_GEMINI_CRED", ANTHROPIC_CRED = "ANTHROPIC_CRED", OPENROUTER_CRED = "OPENROUTER_CRED", FIRECRAWL_API_KEY = "FIRECRAWL_API_KEY", DATABASE_CRED = "DATABASE_CRED", SLACK_CRED = "SLACK_CRED", TELEGRAM_BOT_TOKEN = "TELEGRAM_BOT_TOKEN", RESEND_CRED = "RESEND_CRED", CLOUDFLARE_R2_ACCESS_KEY = "CLOUDFLARE_R2_ACCESS_KEY", CLOUDFLARE_R2_SECRET_KEY = "CLOUDFLARE_R2_SECRET_KEY", CLOUDFLARE_R2_ACCOUNT_ID = "CLOUDFLARE_R2_ACCOUNT_ID", APIFY_CRED = "APIFY_CRED", ELEVENLABS_API_KEY = "ELEVENLABS_API_KEY", GOOGLE_DRIVE_CRED = "GOOGLE_DRIVE_CRED", GMAIL_CRED = "GMAIL_CRED", GOOGLE_SHEETS_CRED = "GOOGLE_SHEETS_CRED", GOOGLE_CALENDAR_CRED = "GOOGLE_CALENDAR_CRED", FUB_CRED = "FUB_CRED", NOTION_OAUTH_TOKEN = "NOTION_OAUTH_TOKEN", AIRTABLE_OAUTH = "AIRTABLE_OAUTH", GITHUB_TOKEN = "GITHUB_TOKEN", AGI_API_KEY = "AGI_API_KEY", AIRTABLE_CRED = "AIRTABLE_CRED", INSFORGE_BASE_URL = "INSFORGE_BASE_URL", INSFORGE_API_KEY = "INSFORGE_API_KEY", CUSTOM_AUTH_KEY = "CUSTOM_AUTH_KEY", AMAZON_CRED = "AMAZON_CRED", LINKEDIN_CRED = "LINKEDIN_CRED", CRUSTDATA_API_KEY = "CRUSTDATA_API_KEY", JIRA_CRED = "JIRA_CRED", ASHBY_CRED = "ASHBY_CRED", FULLENRICH_API_KEY = "FULLENRICH_API_KEY", STRIPE_CRED = "STRIPE_CRED" }
|
|
144
148
|
export type BubbleName = 'hello-world' | 'ai-agent' | 'postgresql' | 'slack' | 'resend' | 'http' | 'slack-formatter-agent' | 'database-analyzer' | 'slack-notifier' | 'get-bubble-details-tool' | 'get-trigger-detail-tool' | 'list-bubbles-tool' | 'sql-query-tool' | 'chart-js-tool' | 'web-search-tool' | 'web-scrape-tool' | 'web-crawl-tool' | 'web-extract-tool' | 'research-agent-tool' | 'reddit-scrape-tool' | 'slack-data-assistant' | 'bubbleflow-code-generator' | 'bubbleflow-generator' | 'pdf-form-operations' | 'pdf-ocr-workflow' | 'generate-document-workflow' | 'parse-document-workflow' | 'bubbleflow-validation-tool' | 'code-edit-tool' | 'storage' | 'google-drive' | 'gmail' | 'google-sheets' | 'google-calendar' | 'apify' | 'instagram-tool' | 'linkedin-tool' | 'tiktok-tool' | 'twitter-tool' | 'google-maps-tool' | 'youtube-tool' | 'github' | 'eleven-labs' | 'followupboss' | 'agi-inc' | 'telegram' | 'airtable' | 'notion' | 'firecrawl' | 'insforge-db' | 'browserbase' | 'amazon-shopping-tool' | 'crustdata' | 'company-enrichment-tool' | 'people-search-tool' | 'jira' | 'ashby' | 'fullenrich' | 'linkedin-connection-tool' | 'stripe'; export declare enum BubbleParameterType { STRING = "string", NUMBER = "number", BOOLEAN = "boolean", OBJECT = "object", ARRAY = "array", ENV = "env", VARIABLE = "variable", EXPRESSION = "expression", UNKNOWN = "unknown" }
|
|
145
149
|
export declare const CREDENTIAL_CONFIGURATION_MAP: Record<CredentialType, Record<string, BubbleParameterType>>; export declare const BUBBLE_NAMES_WITH_CONTEXT_INJECTION: string[]; export declare const BubbleParameterTypeSchema: z.ZodNativeEnum<typeof BubbleParameterType>; export declare const BubbleParameterSchema: z.ZodObject<{ location: z.ZodOptional<z.ZodObject<{ startLine: z.ZodNumber; startCol: z.ZodNumber; endLine: z.ZodNumber; endCol: z.ZodNumber; }, "strip", z.ZodTypeAny, { startLine: number; startCol: number; endLine: number; endCol: number; }, { startLine: number; startCol: number; endLine: number; endCol: number; }>>; variableId: z.ZodOptional<z.ZodNumber>; name: z.ZodString; value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown, "many">]>; type: z.ZodNativeEnum<typeof BubbleParameterType>; source: z.ZodOptional<z.ZodEnum<["object-property", "first-arg", "spread"]>>; }, "strip", z.ZodTypeAny, { name: string; value: string | number | boolean | unknown[] | Record<string, unknown>; type: BubbleParameterType; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }, { name: string; value: string | number | boolean | unknown[] | Record<string, unknown>; type: BubbleParameterType; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }>; export type BubbleParameter = z.infer<typeof BubbleParameterSchema>; export interface ParsedBubble { variableName: string; bubbleName: BubbleName; className: string; parameters: BubbleParameter[]; hasAwait: boolean; hasActionCall: boolean; dependencies?: BubbleName[]; dependencyGraph?: DependencyGraphNode; }
|
package/dist/bubbles.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bubblelab/bubble-core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.92",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"puppeteer-core": "^24.10.0",
|
|
41
41
|
"resend": "^4.8.0",
|
|
42
42
|
"zod": "^3.24.1",
|
|
43
|
-
"@bubblelab/shared-schemas": "0.1.
|
|
43
|
+
"@bubblelab/shared-schemas": "0.1.92"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"zod-to-json-schema": "^3.24.6",
|