@bubblelab/bubble-core 0.1.12 → 0.1.13
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 +54 -31
- package/dist/bubble-factory.d.ts +2 -3
- package/dist/bubble-factory.d.ts.map +1 -1
- package/dist/bubble-factory.js +23 -96
- package/dist/bubble-factory.js.map +1 -1
- package/dist/bubbles/service-bubble/ai-agent.d.ts +26 -26
- package/dist/bubbles/tool-bubble/get-trigger-detail-tool.d.ts +146 -0
- package/dist/bubbles/tool-bubble/get-trigger-detail-tool.d.ts.map +1 -0
- package/dist/bubbles/tool-bubble/get-trigger-detail-tool.js +128 -0
- package/dist/bubbles/tool-bubble/get-trigger-detail-tool.js.map +1 -0
- package/dist/bubbles.json +18 -4
- package/dist/index.d.ts +1 -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/available-tools.d.ts +1 -1
- package/dist/types/available-tools.d.ts.map +1 -1
- package/dist/types/available-tools.js +1 -0
- package/dist/types/available-tools.js.map +1 -1
- package/package.json +2 -2
package/dist/bubble-bundle.d.ts
CHANGED
|
@@ -53,19 +53,19 @@ export declare const slackUrlVerificationSchema: z.ZodObject<{ token: z.ZodStrin
|
|
|
53
53
|
export type DatabaseStatus = 'connected' | 'disconnected' | 'error'; export type DatabaseType = 'postgresql' | 'mysql' | 'mongodb' | 'bigquery' | 'sqlite'; export interface DatabaseColumn { name: string; type: string; isNullable: boolean; defaultValue?: string; constraints?: string[]; }
|
|
54
54
|
export interface DatabaseTable { name: string; schema: string; columns: DatabaseColumn[]; rowCount?: number; size?: string; }
|
|
55
55
|
export interface DatabaseSchema { tables: DatabaseTable[]; totalTables: number; totalSize?: string; }
|
|
56
|
-
export declare const databaseMetadataSchema: z.ZodObject<{ tables: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>; tableNotes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; databaseName: z.ZodOptional<z.ZodString>; databaseType: z.ZodOptional<z.ZodEnum<["postgresql", "mysql", "sqlite", "mssql", "oracle"]>>; rules: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; text: z.ZodString; enabled: z.ZodBoolean; createdAt: z.ZodString; updatedAt: z.ZodString; }, "strip", z.ZodTypeAny, { id: string;
|
|
57
|
-
export type BubbleName = 'hello-world' | 'ai-agent' | 'postgresql' | 'slack' | 'resend' | 'http' | 'slack-formatter-agent' | 'database-analyzer' | 'slack-notifier' | 'get-bubble-details-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'; export interface CredentialConfig { label: string; description: string; placeholder: string; namePlaceholder: string; credentialConfigurations: Record<string, unknown>; }
|
|
56
|
+
export declare const databaseMetadataSchema: z.ZodObject<{ tables: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>; tableNotes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; databaseName: z.ZodOptional<z.ZodString>; databaseType: z.ZodOptional<z.ZodEnum<["postgresql", "mysql", "sqlite", "mssql", "oracle"]>>; rules: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; text: z.ZodString; enabled: z.ZodBoolean; createdAt: z.ZodString; updatedAt: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; createdAt: string; updatedAt: string; text: string; enabled: boolean; }, { id: string; createdAt: string; updatedAt: string; text: string; enabled: boolean; }>, "many">>; notes: z.ZodOptional<z.ZodString>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { tables: Record<string, Record<string, string>>; tableNotes?: Record<string, string> | undefined; databaseName?: string | undefined; databaseType?: "postgresql" | "mysql" | "sqlite" | "mssql" | "oracle" | undefined; rules?: { id: string; createdAt: string; updatedAt: string; text: string; enabled: boolean; }[] | undefined; notes?: string | undefined; tags?: string[] | undefined; }, { tables: Record<string, Record<string, string>>; tableNotes?: Record<string, string> | undefined; databaseName?: string | undefined; databaseType?: "postgresql" | "mysql" | "sqlite" | "mssql" | "oracle" | undefined; rules?: { id: string; createdAt: string; updatedAt: string; text: string; enabled: boolean; }[] | undefined; notes?: string | undefined; tags?: string[] | undefined; }>; export type DatabaseMetadata = z.infer<typeof databaseMetadataSchema>; export declare enum CredentialType { 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", 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" }
|
|
57
|
+
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'; export interface CredentialConfig { label: string; description: string; placeholder: string; namePlaceholder: string; credentialConfigurations: Record<string, unknown>; }
|
|
58
58
|
export declare const CREDENTIAL_TYPE_CONFIG: Record<CredentialType, CredentialConfig>; export declare function generateCredentialsSummary(): string; export declare const CREDENTIAL_ENV_MAP: Record<CredentialType, string>; export declare const SYSTEM_CREDENTIALS: Set<CredentialType>; export declare const OPTIONAL_CREDENTIALS: Set<CredentialType>; export type OAuthProvider = 'google' | 'followupboss' | 'notion'; export interface ScopeDescription { scope: string; description: string; defaultEnabled: boolean; }
|
|
59
59
|
export interface OAuthCredentialConfig { displayName: string; defaultScopes: string[]; description: string; scopeDescriptions?: ScopeDescription[]; }
|
|
60
60
|
export interface OAuthProviderConfig { name: OAuthProvider; displayName: string; credentialTypes: Partial<Record<CredentialType, OAuthCredentialConfig>>; authorizationParams?: Record<string, string>; }
|
|
61
61
|
export declare const OAUTH_PROVIDERS: Record<OAuthProvider, OAuthProviderConfig>; export declare function getOAuthProvider(credentialType: CredentialType): OAuthProvider | null; export declare function isOAuthCredential(credentialType: CredentialType): boolean; export declare function getScopeDescriptions(credentialType: CredentialType): ScopeDescription[]; export type BrowserSessionProvider = 'browserbase'; export interface BrowserSessionCredentialConfig { displayName: string; description: string; targetUrl: string; cookieDomain: string; }
|
|
62
62
|
export interface BrowserSessionProviderConfig { name: BrowserSessionProvider; displayName: string; credentialTypes: Partial<Record<CredentialType, BrowserSessionCredentialConfig>>; }
|
|
63
|
-
export declare const BROWSER_SESSION_PROVIDERS: Record<BrowserSessionProvider, BrowserSessionProviderConfig>; export declare function getBrowserSessionProvider(credentialType: CredentialType): BrowserSessionProvider | null; export declare function isBrowserSessionCredential(credentialType: CredentialType): boolean; export type CredentialOptions = Partial<Record<CredentialType, string>>; export declare const BUBBLE_CREDENTIAL_OPTIONS: Record<BubbleName, CredentialType[]>; export declare const createCredentialSchema: z.ZodObject<{ credentialType: z.ZodNativeEnum<typeof CredentialType>; value: z.ZodString; name: z.ZodOptional<z.ZodString>; skipValidation: z.ZodOptional<z.ZodBoolean>; credentialConfigurations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; metadata: z.ZodOptional<z.ZodObject<{ tables: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>; tableNotes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; databaseName: z.ZodOptional<z.ZodString>; databaseType: z.ZodOptional<z.ZodEnum<["postgresql", "mysql", "sqlite", "mssql", "oracle"]>>; rules: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; text: z.ZodString; enabled: z.ZodBoolean; createdAt: z.ZodString; updatedAt: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; text: string; enabled: boolean; createdAt: string; updatedAt: string; }, { id: string; text: string; enabled: boolean; createdAt: string; updatedAt: string; }>, "many">>; notes: z.ZodOptional<z.ZodString>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { tables: Record<string, Record<string, string>>; tableNotes?: Record<string, string> | undefined; databaseName?: string | undefined; databaseType?: "postgresql" | "mysql" | "sqlite" | "mssql" | "oracle" | undefined; rules?: { id: string; text: string; enabled: boolean; createdAt: string; updatedAt: string; }[] | undefined; notes?: string | undefined; tags?: string[] | undefined; }, { tables: Record<string, Record<string, string>>; tableNotes?: Record<string, string> | undefined; databaseName?: string | undefined; databaseType?: "postgresql" | "mysql" | "sqlite" | "mssql" | "oracle" | undefined; rules?: { id: string; text: string; enabled: boolean; createdAt: string; updatedAt: string; }[] | undefined; notes?: string | undefined; tags?: string[] | undefined; }>>; }, "strip", z.ZodTypeAny, { credentialType: CredentialType; value: string; name?: string | undefined; skipValidation?: boolean | undefined; credentialConfigurations?: Record<string, unknown> | undefined; metadata?: { tables: Record<string, Record<string, string>>; tableNotes?: Record<string, string> | undefined; databaseName?: string | undefined; databaseType?: "postgresql" | "mysql" | "sqlite" | "mssql" | "oracle" | undefined; rules?: { id: string; text: string; enabled: boolean; createdAt: string; updatedAt: string; }[] | undefined; notes?: string | undefined; tags?: string[] | undefined; } | undefined; }, { credentialType: CredentialType; value: string; name?: string | undefined; skipValidation?: boolean | undefined; credentialConfigurations?: Record<string, unknown> | undefined; metadata?: { tables: Record<string, Record<string, string>>; tableNotes?: Record<string, string> | undefined; databaseName?: string | undefined; databaseType?: "postgresql" | "mysql" | "sqlite" | "mssql" | "oracle" | undefined; rules?: { id: string; text: string; enabled: boolean; createdAt: string; updatedAt: string; }[] | undefined; notes?: string | undefined; tags?: string[] | undefined; } | undefined; }>; export declare const updateCredentialSchema: z.ZodObject<{ value: z.ZodOptional<z.ZodString>; name: z.ZodOptional<z.ZodString>; skipValidation: z.ZodOptional<z.ZodBoolean>; credentialConfigurations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; metadata: z.ZodOptional<z.ZodObject<{ tables: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>; tableNotes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; databaseName: z.ZodOptional<z.ZodString>; databaseType: z.ZodOptional<z.ZodEnum<["postgresql", "mysql", "sqlite", "mssql", "oracle"]>>; rules: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; text: z.ZodString; enabled: z.ZodBoolean; createdAt: z.ZodString; updatedAt: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; text: string; enabled: boolean; createdAt: string; updatedAt: string; }, { id: string; text: string; enabled: boolean; createdAt: string; updatedAt: string; }>, "many">>; notes: z.ZodOptional<z.ZodString>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { tables: Record<string, Record<string, string>>; tableNotes?: Record<string, string> | undefined; databaseName?: string | undefined; databaseType?: "postgresql" | "mysql" | "sqlite" | "mssql" | "oracle" | undefined; rules?: { id: string; text: string; enabled: boolean; createdAt: string; updatedAt: string; }[] | undefined; notes?: string | undefined; tags?: string[] | undefined; }, { tables: Record<string, Record<string, string>>; tableNotes?: Record<string, string> | undefined; databaseName?: string | undefined; databaseType?: "postgresql" | "mysql" | "sqlite" | "mssql" | "oracle" | undefined; rules?: { id: string; text: string; enabled: boolean; createdAt: string; updatedAt: string; }[] | undefined; notes?: string | undefined; tags?: string[] | undefined; }>>; }, "strip", z.ZodTypeAny, { value?: string | undefined; name?: string | undefined; skipValidation?: boolean | undefined; credentialConfigurations?: Record<string, unknown> | undefined; metadata?: { tables: Record<string, Record<string, string>>; tableNotes?: Record<string, string> | undefined; databaseName?: string | undefined; databaseType?: "postgresql" | "mysql" | "sqlite" | "mssql" | "oracle" | undefined; rules?: { id: string; text: string; enabled: boolean; createdAt: string; updatedAt: string; }[] | undefined; notes?: string | undefined; tags?: string[] | undefined; } | undefined; }, { value?: string | undefined; name?: string | undefined; skipValidation?: boolean | undefined; credentialConfigurations?: Record<string, unknown> | undefined; metadata?: { tables: Record<string, Record<string, string>>; tableNotes?: Record<string, string> | undefined; databaseName?: string | undefined; databaseType?: "postgresql" | "mysql" | "sqlite" | "mssql" | "oracle" | undefined; rules?: { id: string; text: string; enabled: boolean; createdAt: string; updatedAt: string; }[] | undefined; notes?: string | undefined; tags?: string[] | undefined; } | undefined; }>; export declare const credentialResponseSchema: z.ZodObject<{ id: z.ZodNumber; credentialType: z.ZodString; name: z.ZodOptional<z.ZodString>; metadata: z.ZodOptional<z.ZodObject<{ tables: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>; tableNotes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; databaseName: z.ZodOptional<z.ZodString>; databaseType: z.ZodOptional<z.ZodEnum<["postgresql", "mysql", "sqlite", "mssql", "oracle"]>>; rules: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; text: z.ZodString; enabled: z.ZodBoolean; createdAt: z.ZodString; updatedAt: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; text: string; enabled: boolean; createdAt: string; updatedAt: string; }, { id: string; text: string; enabled: boolean; createdAt: string; updatedAt: string; }>, "many">>; notes: z.ZodOptional<z.ZodString>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { tables: Record<string, Record<string, string>>; tableNotes?: Record<string, string> | undefined; databaseName?: string | undefined; databaseType?: "postgresql" | "mysql" | "sqlite" | "mssql" | "oracle" | undefined; rules?: { id: string; text: string; enabled: boolean; createdAt: string; updatedAt: string; }[] | undefined; notes?: string | undefined; tags?: string[] | undefined; }, { tables: Record<string, Record<string, string>>; tableNotes?: Record<string, string> | undefined; databaseName?: string | undefined; databaseType?: "postgresql" | "mysql" | "sqlite" | "mssql" | "oracle" | undefined; rules?: { id: string; text: string; enabled: boolean; createdAt: string; updatedAt: string; }[] | undefined; notes?: string | undefined; tags?: string[] | undefined; }>>; createdAt: z.ZodString; isOauth: z.ZodOptional<z.ZodBoolean>; oauthProvider: z.ZodOptional<z.ZodString>; oauthExpiresAt: z.ZodOptional<z.ZodString>; oauthScopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; oauthStatus: z.ZodOptional<z.ZodEnum<["active", "expired", "needs_refresh"]>>; isBrowserSession: z.ZodOptional<z.ZodBoolean>; browserbaseSessionData: z.ZodOptional<z.ZodObject<{ capturedAt: z.ZodString; cookieCount: z.ZodNumber; domain: z.ZodString; }, "strip", z.ZodTypeAny, { capturedAt: string; cookieCount: number; domain: string; }, { capturedAt: string; cookieCount: number; domain: string; }>>; }, "strip", z.ZodTypeAny, { credentialType: string; id: number; createdAt: string; name?: string | undefined; metadata?: { tables: Record<string, Record<string, string>>; tableNotes?: Record<string, string> | undefined; databaseName?: string | undefined; databaseType?: "postgresql" | "mysql" | "sqlite" | "mssql" | "oracle" | undefined; rules?: { id: string; text: string; enabled: boolean; createdAt: string; updatedAt: string; }[] | undefined; notes?: string | undefined; tags?: string[] | undefined; } | undefined; isOauth?: boolean | undefined; oauthProvider?: string | undefined; oauthExpiresAt?: string | undefined; oauthScopes?: string[] | undefined; oauthStatus?: "active" | "expired" | "needs_refresh" | undefined; isBrowserSession?: boolean | undefined; browserbaseSessionData?: { capturedAt: string; cookieCount: number; domain: string; } | undefined; }, { credentialType: string; id: number; createdAt: string; name?: string | undefined; metadata?: { tables: Record<string, Record<string, string>>; tableNotes?: Record<string, string> | undefined; databaseName?: string | undefined; databaseType?: "postgresql" | "mysql" | "sqlite" | "mssql" | "oracle" | undefined; rules?: { id: string; text: string; enabled: boolean; createdAt: string; updatedAt: string; }[] | undefined; notes?: string | undefined; tags?: string[] | undefined; } | undefined; isOauth?: boolean | undefined; oauthProvider?: string | undefined; oauthExpiresAt?: string | undefined; oauthScopes?: string[] | undefined; oauthStatus?: "active" | "expired" | "needs_refresh" | undefined; isBrowserSession?: boolean | undefined; browserbaseSessionData?: { capturedAt: string; cookieCount: number; domain: string; } | undefined; }>; export declare const createCredentialResponseSchema: z.ZodObject<{ id: z.ZodNumber; message: z.ZodString; }, "strip", z.ZodTypeAny, { message: string; id: number; }, { message: string; id: number; }>; export declare const updateCredentialResponseSchema: z.ZodObject<{ id: z.ZodNumber; message: z.ZodString; }, "strip", z.ZodTypeAny, { message: string; id: number; }, { message: string; id: number; }>; export declare const successMessageResponseSchema: z.ZodObject<{ message: z.ZodString; }, "strip", z.ZodTypeAny, { message: string; }, { message: string; }>; export declare const browserbaseSessionCreateRequestSchema: z.ZodObject<{ credentialType: z.ZodNativeEnum<typeof CredentialType>; name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { credentialType: CredentialType; name?: string | undefined; }, { credentialType: CredentialType; name?: string | undefined; }>; export declare const browserbaseSessionCreateResponseSchema: z.ZodObject<{ sessionId: z.ZodString; debugUrl: z.ZodString; contextId: z.ZodString; state: z.ZodString; }, "strip", z.ZodTypeAny, { sessionId: string; debugUrl: string; contextId: string; state: string; }, { sessionId: string; debugUrl: string; contextId: string; state: string; }>; export declare const browserbaseSessionCompleteRequestSchema: z.ZodObject<{ sessionId: z.ZodString; state: z.ZodString; name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { sessionId: string; state: string; name?: string | undefined; }, { sessionId: string; state: string; name?: string | undefined; }>; export declare const browserbaseSessionCompleteResponseSchema: z.ZodObject<{ id: z.ZodNumber; message: z.ZodString; }, "strip", z.ZodTypeAny, { message: string; id: number; }, { message: string; id: number; }>; export declare const browserbaseSessionReopenRequestSchema: z.ZodObject<{ credentialId: z.ZodNumber; }, "strip", z.ZodTypeAny, { credentialId: number; }, { credentialId: number; }>; export declare const browserbaseSessionReopenResponseSchema: z.ZodObject<{ sessionId: z.ZodString; debugUrl: z.ZodString; }, "strip", z.ZodTypeAny, { sessionId: string; debugUrl: string; }, { sessionId: string; debugUrl: string; }>; export type CreateCredentialRequest = z.infer<typeof createCredentialSchema>; export type UpdateCredentialRequest = z.infer<typeof updateCredentialSchema>; export type CredentialResponse = z.infer<typeof credentialResponseSchema>; export type CreateCredentialResponse = z.infer<typeof createCredentialResponseSchema>; export type UpdateCredentialResponse = z.infer<typeof updateCredentialResponseSchema>; export type BrowserbaseSessionCreateRequest = z.infer<typeof browserbaseSessionCreateRequestSchema>; export type BrowserbaseSessionCreateResponse = z.infer<typeof browserbaseSessionCreateResponseSchema>; export type BrowserbaseSessionCompleteRequest = z.infer<typeof browserbaseSessionCompleteRequestSchema>; export type BrowserbaseSessionCompleteResponse = z.infer<typeof browserbaseSessionCompleteResponseSchema>; export type BrowserbaseSessionReopenRequest = z.infer<typeof browserbaseSessionReopenRequestSchema>; export type BrowserbaseSessionReopenResponse = z.infer<typeof browserbaseSessionReopenResponseSchema>; export declare enum CredentialType { 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", 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" }
|
|
64
|
-
export type BubbleName = 'hello-world' | 'ai-agent' | 'postgresql' | 'slack' | 'resend' | 'http' | 'slack-formatter-agent' | 'database-analyzer' | 'slack-notifier' | 'get-bubble-details-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'; export declare enum BubbleParameterType { STRING = "string", NUMBER = "number", BOOLEAN = "boolean", OBJECT = "object", ARRAY = "array", ENV = "env", VARIABLE = "variable", EXPRESSION = "expression", UNKNOWN = "unknown" }
|
|
65
|
-
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, {
|
|
63
|
+
export declare const BROWSER_SESSION_PROVIDERS: Record<BrowserSessionProvider, BrowserSessionProviderConfig>; export declare function getBrowserSessionProvider(credentialType: CredentialType): BrowserSessionProvider | null; export declare function isBrowserSessionCredential(credentialType: CredentialType): boolean; export type CredentialOptions = Partial<Record<CredentialType, string>>; export declare const BUBBLE_CREDENTIAL_OPTIONS: Record<BubbleName, CredentialType[]>; export declare const createCredentialSchema: z.ZodObject<{ credentialType: z.ZodNativeEnum<typeof CredentialType>; value: z.ZodString; name: z.ZodOptional<z.ZodString>; skipValidation: z.ZodOptional<z.ZodBoolean>; credentialConfigurations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; metadata: z.ZodOptional<z.ZodObject<{ tables: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>; tableNotes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; databaseName: z.ZodOptional<z.ZodString>; databaseType: z.ZodOptional<z.ZodEnum<["postgresql", "mysql", "sqlite", "mssql", "oracle"]>>; rules: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; text: z.ZodString; enabled: z.ZodBoolean; createdAt: z.ZodString; updatedAt: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; createdAt: string; updatedAt: string; text: string; enabled: boolean; }, { id: string; createdAt: string; updatedAt: string; text: string; enabled: boolean; }>, "many">>; notes: z.ZodOptional<z.ZodString>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { tables: Record<string, Record<string, string>>; tableNotes?: Record<string, string> | undefined; databaseName?: string | undefined; databaseType?: "postgresql" | "mysql" | "sqlite" | "mssql" | "oracle" | undefined; rules?: { id: string; createdAt: string; updatedAt: string; text: string; enabled: boolean; }[] | undefined; notes?: string | undefined; tags?: string[] | undefined; }, { tables: Record<string, Record<string, string>>; tableNotes?: Record<string, string> | undefined; databaseName?: string | undefined; databaseType?: "postgresql" | "mysql" | "sqlite" | "mssql" | "oracle" | undefined; rules?: { id: string; createdAt: string; updatedAt: string; text: string; enabled: boolean; }[] | undefined; notes?: string | undefined; tags?: string[] | undefined; }>>; }, "strip", z.ZodTypeAny, { value: string; credentialType: CredentialType; name?: string | undefined; metadata?: { tables: Record<string, Record<string, string>>; tableNotes?: Record<string, string> | undefined; databaseName?: string | undefined; databaseType?: "postgresql" | "mysql" | "sqlite" | "mssql" | "oracle" | undefined; rules?: { id: string; createdAt: string; updatedAt: string; text: string; enabled: boolean; }[] | undefined; notes?: string | undefined; tags?: string[] | undefined; } | undefined; skipValidation?: boolean | undefined; credentialConfigurations?: Record<string, unknown> | undefined; }, { value: string; credentialType: CredentialType; name?: string | undefined; metadata?: { tables: Record<string, Record<string, string>>; tableNotes?: Record<string, string> | undefined; databaseName?: string | undefined; databaseType?: "postgresql" | "mysql" | "sqlite" | "mssql" | "oracle" | undefined; rules?: { id: string; createdAt: string; updatedAt: string; text: string; enabled: boolean; }[] | undefined; notes?: string | undefined; tags?: string[] | undefined; } | undefined; skipValidation?: boolean | undefined; credentialConfigurations?: Record<string, unknown> | undefined; }>; export declare const updateCredentialSchema: z.ZodObject<{ value: z.ZodOptional<z.ZodString>; name: z.ZodOptional<z.ZodString>; skipValidation: z.ZodOptional<z.ZodBoolean>; credentialConfigurations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; metadata: z.ZodOptional<z.ZodObject<{ tables: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>; tableNotes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; databaseName: z.ZodOptional<z.ZodString>; databaseType: z.ZodOptional<z.ZodEnum<["postgresql", "mysql", "sqlite", "mssql", "oracle"]>>; rules: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; text: z.ZodString; enabled: z.ZodBoolean; createdAt: z.ZodString; updatedAt: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; createdAt: string; updatedAt: string; text: string; enabled: boolean; }, { id: string; createdAt: string; updatedAt: string; text: string; enabled: boolean; }>, "many">>; notes: z.ZodOptional<z.ZodString>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { tables: Record<string, Record<string, string>>; tableNotes?: Record<string, string> | undefined; databaseName?: string | undefined; databaseType?: "postgresql" | "mysql" | "sqlite" | "mssql" | "oracle" | undefined; rules?: { id: string; createdAt: string; updatedAt: string; text: string; enabled: boolean; }[] | undefined; notes?: string | undefined; tags?: string[] | undefined; }, { tables: Record<string, Record<string, string>>; tableNotes?: Record<string, string> | undefined; databaseName?: string | undefined; databaseType?: "postgresql" | "mysql" | "sqlite" | "mssql" | "oracle" | undefined; rules?: { id: string; createdAt: string; updatedAt: string; text: string; enabled: boolean; }[] | undefined; notes?: string | undefined; tags?: string[] | undefined; }>>; }, "strip", z.ZodTypeAny, { name?: string | undefined; value?: string | undefined; metadata?: { tables: Record<string, Record<string, string>>; tableNotes?: Record<string, string> | undefined; databaseName?: string | undefined; databaseType?: "postgresql" | "mysql" | "sqlite" | "mssql" | "oracle" | undefined; rules?: { id: string; createdAt: string; updatedAt: string; text: string; enabled: boolean; }[] | undefined; notes?: string | undefined; tags?: string[] | undefined; } | undefined; skipValidation?: boolean | undefined; credentialConfigurations?: Record<string, unknown> | undefined; }, { name?: string | undefined; value?: string | undefined; metadata?: { tables: Record<string, Record<string, string>>; tableNotes?: Record<string, string> | undefined; databaseName?: string | undefined; databaseType?: "postgresql" | "mysql" | "sqlite" | "mssql" | "oracle" | undefined; rules?: { id: string; createdAt: string; updatedAt: string; text: string; enabled: boolean; }[] | undefined; notes?: string | undefined; tags?: string[] | undefined; } | undefined; skipValidation?: boolean | undefined; credentialConfigurations?: Record<string, unknown> | undefined; }>; export declare const credentialResponseSchema: z.ZodObject<{ id: z.ZodNumber; credentialType: z.ZodString; name: z.ZodOptional<z.ZodString>; metadata: z.ZodOptional<z.ZodObject<{ tables: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>; tableNotes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; databaseName: z.ZodOptional<z.ZodString>; databaseType: z.ZodOptional<z.ZodEnum<["postgresql", "mysql", "sqlite", "mssql", "oracle"]>>; rules: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; text: z.ZodString; enabled: z.ZodBoolean; createdAt: z.ZodString; updatedAt: z.ZodString; }, "strip", z.ZodTypeAny, { id: string; createdAt: string; updatedAt: string; text: string; enabled: boolean; }, { id: string; createdAt: string; updatedAt: string; text: string; enabled: boolean; }>, "many">>; notes: z.ZodOptional<z.ZodString>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { tables: Record<string, Record<string, string>>; tableNotes?: Record<string, string> | undefined; databaseName?: string | undefined; databaseType?: "postgresql" | "mysql" | "sqlite" | "mssql" | "oracle" | undefined; rules?: { id: string; createdAt: string; updatedAt: string; text: string; enabled: boolean; }[] | undefined; notes?: string | undefined; tags?: string[] | undefined; }, { tables: Record<string, Record<string, string>>; tableNotes?: Record<string, string> | undefined; databaseName?: string | undefined; databaseType?: "postgresql" | "mysql" | "sqlite" | "mssql" | "oracle" | undefined; rules?: { id: string; createdAt: string; updatedAt: string; text: string; enabled: boolean; }[] | undefined; notes?: string | undefined; tags?: string[] | undefined; }>>; createdAt: z.ZodString; isOauth: z.ZodOptional<z.ZodBoolean>; oauthProvider: z.ZodOptional<z.ZodString>; oauthExpiresAt: z.ZodOptional<z.ZodString>; oauthScopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; oauthStatus: z.ZodOptional<z.ZodEnum<["active", "expired", "needs_refresh"]>>; isBrowserSession: z.ZodOptional<z.ZodBoolean>; browserbaseSessionData: z.ZodOptional<z.ZodObject<{ capturedAt: z.ZodString; cookieCount: z.ZodNumber; domain: z.ZodString; }, "strip", z.ZodTypeAny, { capturedAt: string; cookieCount: number; domain: string; }, { capturedAt: string; cookieCount: number; domain: string; }>>; }, "strip", z.ZodTypeAny, { id: number; createdAt: string; credentialType: string; name?: string | undefined; metadata?: { tables: Record<string, Record<string, string>>; tableNotes?: Record<string, string> | undefined; databaseName?: string | undefined; databaseType?: "postgresql" | "mysql" | "sqlite" | "mssql" | "oracle" | undefined; rules?: { id: string; createdAt: string; updatedAt: string; text: string; enabled: boolean; }[] | undefined; notes?: string | undefined; tags?: string[] | undefined; } | undefined; isOauth?: boolean | undefined; oauthProvider?: string | undefined; oauthExpiresAt?: string | undefined; oauthScopes?: string[] | undefined; oauthStatus?: "active" | "expired" | "needs_refresh" | undefined; isBrowserSession?: boolean | undefined; browserbaseSessionData?: { capturedAt: string; cookieCount: number; domain: string; } | undefined; }, { id: number; createdAt: string; credentialType: string; name?: string | undefined; metadata?: { tables: Record<string, Record<string, string>>; tableNotes?: Record<string, string> | undefined; databaseName?: string | undefined; databaseType?: "postgresql" | "mysql" | "sqlite" | "mssql" | "oracle" | undefined; rules?: { id: string; createdAt: string; updatedAt: string; text: string; enabled: boolean; }[] | undefined; notes?: string | undefined; tags?: string[] | undefined; } | undefined; isOauth?: boolean | undefined; oauthProvider?: string | undefined; oauthExpiresAt?: string | undefined; oauthScopes?: string[] | undefined; oauthStatus?: "active" | "expired" | "needs_refresh" | undefined; isBrowserSession?: boolean | undefined; browserbaseSessionData?: { capturedAt: string; cookieCount: number; domain: string; } | undefined; }>; export declare const createCredentialResponseSchema: z.ZodObject<{ id: z.ZodNumber; message: z.ZodString; }, "strip", z.ZodTypeAny, { message: string; id: number; }, { message: string; id: number; }>; export declare const updateCredentialResponseSchema: z.ZodObject<{ id: z.ZodNumber; message: z.ZodString; }, "strip", z.ZodTypeAny, { message: string; id: number; }, { message: string; id: number; }>; export declare const successMessageResponseSchema: z.ZodObject<{ message: z.ZodString; }, "strip", z.ZodTypeAny, { message: string; }, { message: string; }>; export declare const browserbaseSessionCreateRequestSchema: z.ZodObject<{ credentialType: z.ZodNativeEnum<typeof CredentialType>; name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { credentialType: CredentialType; name?: string | undefined; }, { credentialType: CredentialType; name?: string | undefined; }>; export declare const browserbaseSessionCreateResponseSchema: z.ZodObject<{ sessionId: z.ZodString; debugUrl: z.ZodString; contextId: z.ZodString; state: z.ZodString; }, "strip", z.ZodTypeAny, { sessionId: string; debugUrl: string; contextId: string; state: string; }, { sessionId: string; debugUrl: string; contextId: string; state: string; }>; export declare const browserbaseSessionCompleteRequestSchema: z.ZodObject<{ sessionId: z.ZodString; state: z.ZodString; name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { sessionId: string; state: string; name?: string | undefined; }, { sessionId: string; state: string; name?: string | undefined; }>; export declare const browserbaseSessionCompleteResponseSchema: z.ZodObject<{ id: z.ZodNumber; message: z.ZodString; }, "strip", z.ZodTypeAny, { message: string; id: number; }, { message: string; id: number; }>; export declare const browserbaseSessionReopenRequestSchema: z.ZodObject<{ credentialId: z.ZodNumber; }, "strip", z.ZodTypeAny, { credentialId: number; }, { credentialId: number; }>; export declare const browserbaseSessionReopenResponseSchema: z.ZodObject<{ sessionId: z.ZodString; debugUrl: z.ZodString; }, "strip", z.ZodTypeAny, { sessionId: string; debugUrl: string; }, { sessionId: string; debugUrl: string; }>; export type CreateCredentialRequest = z.infer<typeof createCredentialSchema>; export type UpdateCredentialRequest = z.infer<typeof updateCredentialSchema>; export type CredentialResponse = z.infer<typeof credentialResponseSchema>; export type CreateCredentialResponse = z.infer<typeof createCredentialResponseSchema>; export type UpdateCredentialResponse = z.infer<typeof updateCredentialResponseSchema>; export type BrowserbaseSessionCreateRequest = z.infer<typeof browserbaseSessionCreateRequestSchema>; export type BrowserbaseSessionCreateResponse = z.infer<typeof browserbaseSessionCreateResponseSchema>; export type BrowserbaseSessionCompleteRequest = z.infer<typeof browserbaseSessionCompleteRequestSchema>; export type BrowserbaseSessionCompleteResponse = z.infer<typeof browserbaseSessionCompleteResponseSchema>; export type BrowserbaseSessionReopenRequest = z.infer<typeof browserbaseSessionReopenRequestSchema>; export type BrowserbaseSessionReopenResponse = z.infer<typeof browserbaseSessionReopenResponseSchema>; export declare enum CredentialType { 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", 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" }
|
|
64
|
+
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'; export declare enum BubbleParameterType { STRING = "string", NUMBER = "number", BOOLEAN = "boolean", OBJECT = "object", ARRAY = "array", ENV = "env", VARIABLE = "variable", EXPRESSION = "expression", UNKNOWN = "unknown" }
|
|
65
|
+
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; }
|
|
66
66
|
export interface DependencyGraphNode { name: BubbleName; variableName?: string; nodeType: BubbleNodeType; uniqueId?: string; variableId?: number; dependencies: DependencyGraphNode[]; functionCallChildren?: FunctionCallWorkflowNode[]; }
|
|
67
67
|
export interface BubbleDependencySpec { name: BubbleName; tools?: BubbleName[]; }
|
|
68
|
-
export type BubbleNodeType = 'service' | 'tool' | 'workflow' | 'unknown'; export declare const BubbleNodeTypeSchema: z.ZodEnum<["service", "tool", "workflow", "unknown"]>; export declare const DependencyGraphNodeSchema: z.ZodType<DependencyGraphNode>; export declare const ParsedBubbleSchema: z.ZodObject<{ variableName: z.ZodString; bubbleName: z.ZodType<BubbleName>; className: z.ZodString; parameters: z.ZodArray<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, {
|
|
68
|
+
export type BubbleNodeType = 'service' | 'tool' | 'workflow' | 'unknown'; export declare const BubbleNodeTypeSchema: z.ZodEnum<["service", "tool", "workflow", "unknown"]>; export declare const DependencyGraphNodeSchema: z.ZodType<DependencyGraphNode>; export declare const ParsedBubbleSchema: z.ZodObject<{ variableName: z.ZodString; bubbleName: z.ZodType<BubbleName>; className: z.ZodString; parameters: z.ZodArray<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; }>, "many">; hasAwait: z.ZodBoolean; hasActionCall: z.ZodBoolean; dependencies: z.ZodOptional<z.ZodArray<z.ZodType<BubbleName, z.ZodTypeDef, BubbleName>, "many">>; dependencyGraph: z.ZodOptional<z.ZodType<DependencyGraphNode, z.ZodTypeDef, DependencyGraphNode>>; }, "strip", z.ZodTypeAny, { variableName: string; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; dependencies?: BubbleName[] | undefined; dependencyGraph?: DependencyGraphNode | undefined; }, { variableName: string; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; dependencies?: BubbleName[] | undefined; dependencyGraph?: DependencyGraphNode | undefined; }>; export declare const BubbleDependencySpecSchema: z.ZodObject<{ name: z.ZodType<BubbleName>; tools: z.ZodOptional<z.ZodArray<z.ZodType<BubbleName, z.ZodTypeDef, BubbleName>, "many">>; }, "strip", z.ZodTypeAny, { name: BubbleName; tools?: BubbleName[] | undefined; }, { name: BubbleName; tools?: BubbleName[] | undefined; }>; export declare const ParsedBubbleWithInfoSchema: z.ZodObject<{ variableName: z.ZodString; bubbleName: z.ZodType<BubbleName>; className: z.ZodString; parameters: z.ZodArray<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; }>, "many">; hasAwait: z.ZodBoolean; hasActionCall: z.ZodBoolean; dependencies: z.ZodOptional<z.ZodArray<z.ZodType<BubbleName, z.ZodTypeDef, BubbleName>, "many">>; dependencyGraph: z.ZodOptional<z.ZodType<DependencyGraphNode, z.ZodTypeDef, DependencyGraphNode>>; variableId: z.ZodNumber; nodeType: z.ZodEnum<["service", "tool", "workflow", "unknown"]>; location: 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; }>; description: z.ZodOptional<z.ZodString>; invocationCallSiteKey: z.ZodOptional<z.ZodString>; clonedFromVariableId: z.ZodOptional<z.ZodNumber>; isInsideCustomTool: z.ZodOptional<z.ZodBoolean>; containingCustomToolId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>; export type ParsedBubbleWithInfo = z.infer<typeof ParsedBubbleWithInfoSchema>; export type BubbleParameterTypeInferred = z.infer<typeof BubbleParameterTypeSchema>; export type BubbleParameterInferred = BubbleParameter; export type BubbleNodeTypeInferred = z.infer<typeof BubbleNodeTypeSchema>; export type DependencyGraphNodeInferred = z.infer<typeof DependencyGraphNodeSchema>; export type ParsedBubbleInferred = z.infer<typeof ParsedBubbleSchema>; export type BubbleDependencySpecInferred = z.infer<typeof BubbleDependencySpecSchema>; export type ParsedBubbleWithInfoInferred = z.infer<typeof ParsedBubbleWithInfoSchema>; export type WorkflowNodeType = 'bubble' | 'if' | 'for' | 'while' | 'try_catch' | 'variable_declaration' | 'return' | 'function_call' | 'code_block' | 'parallel_execution' | 'transformation_function'; export interface BubbleWorkflowNode { type: 'bubble'; variableId: number; }
|
|
69
69
|
export interface ControlFlowWorkflowNode { type: 'if' | 'for' | 'while'; location: { startLine: number; startCol: number; endLine: number; endCol: number; }; condition?: string; children: WorkflowNode[]; elseBranch?: WorkflowNode[]; thenTerminates?: boolean; elseTerminates?: boolean; }
|
|
70
70
|
export interface TryCatchWorkflowNode { type: 'try_catch'; location: { startLine: number; startCol: number; endLine: number; endCol: number; }; children: WorkflowNode[]; catchBlock?: WorkflowNode[]; }
|
|
71
71
|
export interface CodeBlockWorkflowNode { type: 'code_block'; location: { startLine: number; startCol: number; endLine: number; endCol: number; }; code: string; children: WorkflowNode[]; }
|
|
@@ -75,19 +75,19 @@ export interface FunctionCallWorkflowNode { type: 'function_call'; location: { s
|
|
|
75
75
|
export interface ParallelExecutionWorkflowNode { type: 'parallel_execution'; location: { startLine: number; startCol: number; endLine: number; endCol: number; }; code: string; variableDeclaration?: { variableNames: string[]; variableType: 'const' | 'let' | 'var'; }; children: WorkflowNode[]; }
|
|
76
76
|
export interface TransformationFunctionWorkflowNode { type: 'transformation_function'; location: { startLine: number; startCol: number; endLine: number; endCol: number; }; code: string; functionName: string; isMethodCall: boolean; description?: string; arguments?: string; variableId: number; variableDeclaration?: { variableName: string; variableType: 'const' | 'let' | 'var'; }; methodDefinition?: { location: { startLine: number; endLine: number; }; isAsync: boolean; parameters: string[]; }; }
|
|
77
77
|
export type WorkflowNode = BubbleWorkflowNode | ControlFlowWorkflowNode | TryCatchWorkflowNode | CodeBlockWorkflowNode | VariableDeclarationBlockNode | ReturnWorkflowNode | FunctionCallWorkflowNode | ParallelExecutionWorkflowNode | TransformationFunctionWorkflowNode; export interface ParsedWorkflow { root: WorkflowNode[]; bubbles: Record<number, ParsedBubbleWithInfo>; }
|
|
78
|
-
export declare const WorkflowNodeTypeSchema: z.ZodEnum<["bubble", "if", "for", "while", "try_catch", "variable_declaration", "return", "function_call", "code_block", "parallel_execution", "transformation_function"]>; export declare const LocationSchema: 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; }>; export declare const BubbleWorkflowNodeSchema: z.ZodType<BubbleWorkflowNode>; export declare const ControlFlowWorkflowNodeSchema: z.ZodType<ControlFlowWorkflowNode>; export declare const TryCatchWorkflowNodeSchema: z.ZodType<TryCatchWorkflowNode>; export declare const CodeBlockWorkflowNodeSchema: z.ZodType<CodeBlockWorkflowNode>; export declare const VariableDeclarationBlockNodeSchema: z.ZodType<VariableDeclarationBlockNode>; export declare const ReturnWorkflowNodeSchema: z.ZodType<ReturnWorkflowNode>; export declare const FunctionCallWorkflowNodeSchema: z.ZodType<FunctionCallWorkflowNode>; export declare const ParallelExecutionWorkflowNodeSchema: z.ZodType<ParallelExecutionWorkflowNode>; export declare const TransformationFunctionWorkflowNodeSchema: z.ZodType<TransformationFunctionWorkflowNode>; export declare const WorkflowNodeSchema: z.ZodType<WorkflowNode>; export declare const ParsedWorkflowSchema: z.ZodObject<{ root: z.ZodArray<z.ZodType<WorkflowNode, z.ZodTypeDef, WorkflowNode>, "many">; bubbles: z.ZodRecord<z.ZodNumber, z.ZodObject<{ variableName: z.ZodString; bubbleName: z.ZodType<BubbleName>; className: z.ZodString; parameters: z.ZodArray<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, {
|
|
79
|
-
export type BubbleName = 'hello-world' | 'ai-agent' | 'postgresql' | 'slack' | 'resend' | 'http' | 'slack-formatter-agent' | 'database-analyzer' | 'slack-notifier' | 'get-bubble-details-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'; export declare enum CredentialType { 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", 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" }
|
|
80
|
-
export type BubbleName = 'hello-world' | 'ai-agent' | 'postgresql' | 'slack' | 'resend' | 'http' | 'slack-formatter-agent' | 'database-analyzer' | 'slack-notifier' | 'get-bubble-details-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'; export declare const COFFEE_MAX_ITERATIONS = 30; export declare const COFFEE_MAX_QUESTIONS = 5; export declare const COFFEE_DEFAULT_MODEL: "google/gemini-3-pro-preview"; export declare const ClarificationChoiceSchema: z.ZodObject<{ id: z.ZodString; label: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; label: string; description?: string | undefined; }, { id: string; label: string; description?: string | undefined; }>; export declare const ClarificationQuestionSchema: z.ZodObject<{ id: z.ZodString; question: z.ZodString; choices: z.ZodArray<z.ZodObject<{ id: z.ZodString; label: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; label: string; description?: string | undefined; }, { id: string; label: string; description?: string | undefined; }>, "many">; context: z.ZodOptional<z.ZodString>; allowMultiple: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }>; export declare const CoffeeClarificationEventSchema: z.ZodObject<{ questions: z.ZodArray<z.ZodObject<{ id: z.ZodString; question: z.ZodString; choices: z.ZodArray<z.ZodObject<{ id: z.ZodString; label: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; label: string; description?: string | undefined; }, { id: string; label: string; description?: string | undefined; }>, "many">; context: z.ZodOptional<z.ZodString>; allowMultiple: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }[]; }, { questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }[]; }>; export declare const CoffeeRequestExternalContextEventSchema: z.ZodObject<{ flowId: z.ZodString; flowCode: z.ZodString; requiredCredentials: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }>; export declare const CoffeeContextAnswerSchema: z.ZodObject<{ flowId: z.ZodString; status: z.ZodEnum<["success", "rejected", "error"]>; result: z.ZodOptional<z.ZodUnknown>; error: z.ZodOptional<z.ZodString>; originalRequest: z.ZodOptional<z.ZodObject<{ flowId: z.ZodString; flowCode: z.ZodString; requiredCredentials: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }>>; }, "strip", z.ZodTypeAny, { status: "success" | "error" | "rejected"; flowId: string; result?: unknown; error?: string | undefined; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }, { status: "success" | "error" | "rejected"; flowId: string; result?: unknown; error?: string | undefined; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }>; export declare const CoffeeContextRequestInfoSchema: z.ZodObject<{ purpose: z.ZodString; flowDescription: z.ZodString; }, "strip", z.ZodTypeAny, { purpose: string; flowDescription: string; }, { purpose: string; flowDescription: string; }>; export declare const CoffeeContextEventSchema: z.ZodObject<{ status: z.ZodEnum<["gathering", "complete"]>; miniFlowDescription: z.ZodOptional<z.ZodString>; result: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { status: "gathering" | "complete"; result?: string | undefined; miniFlowDescription?: string | undefined; }, { status: "gathering" | "complete"; result?: string | undefined; miniFlowDescription?: string | undefined; }>; export declare const PlanStepSchema: z.ZodObject<{ title: z.ZodString; description: z.ZodString; bubblesUsed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { description: string; title: string; bubblesUsed?: string[] | undefined; }, { description: string; title: string; bubblesUsed?: string[] | undefined; }>; export declare const CoffeePlanEventSchema: z.ZodObject<{ summary: z.ZodString; steps: z.ZodArray<z.ZodObject<{ title: z.ZodString; description: z.ZodString; bubblesUsed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { description: string; title: string; bubblesUsed?: string[] | undefined; }, { description: string; title: string; bubblesUsed?: string[] | undefined; }>, "many">; estimatedBubbles: z.ZodArray<z.ZodString, "many">; }, "strip", z.ZodTypeAny, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }>; export declare const UserMessageSchema: z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"user">; content: z.ZodString; }, "strip", z.ZodTypeAny, { type: "user"; content: string; id: string; timestamp: string; }, { type: "user"; content: string; id: string; timestamp: string; }>; export declare const AssistantMessageSchema: z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"assistant">; content: z.ZodString; code: z.ZodOptional<z.ZodString>; resultType: z.ZodOptional<z.ZodEnum<["code", "question", "answer", "reject"]>>; bubbleParameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { type: "assistant"; content: string; id: string; timestamp: string; code?: string | undefined; bubbleParameters?: Record<string, unknown> | undefined; resultType?: "code" | "question" | "answer" | "reject" | undefined; }, { type: "assistant"; content: string; id: string; timestamp: string; code?: string | undefined; bubbleParameters?: Record<string, unknown> | undefined; resultType?: "code" | "question" | "answer" | "reject" | undefined; }>; export declare const ClarificationRequestMessageSchema: z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"clarification_request">; questions: z.ZodArray<z.ZodObject<{ id: z.ZodString; question: z.ZodString; choices: z.ZodArray<z.ZodObject<{ id: z.ZodString; label: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; label: string; description?: string | undefined; }, { id: string; label: string; description?: string | undefined; }>, "many">; context: z.ZodOptional<z.ZodString>; allowMultiple: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { type: "clarification_request"; id: string; timestamp: string; questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }[]; }, { type: "clarification_request"; id: string; timestamp: string; questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }[]; }>; export declare const ClarificationResponseMessageSchema: z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"clarification_response">; answers: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>; originalQuestions: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; question: z.ZodString; choices: z.ZodArray<z.ZodObject<{ id: z.ZodString; label: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; label: string; description?: string | undefined; }, { id: string; label: string; description?: string | undefined; }>, "many">; context: z.ZodOptional<z.ZodString>; allowMultiple: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { type: "clarification_response"; id: string; timestamp: string; answers: Record<string, string[]>; originalQuestions?: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }[] | undefined; }, { type: "clarification_response"; id: string; timestamp: string; answers: Record<string, string[]>; originalQuestions?: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }[] | undefined; }>; export declare const ContextRequestMessageSchema: z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"context_request">; request: z.ZodObject<{ flowId: z.ZodString; flowCode: z.ZodString; requiredCredentials: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }>; }, "strip", z.ZodTypeAny, { type: "context_request"; id: string; timestamp: string; request: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }; }, { type: "context_request"; id: string; timestamp: string; request: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }; }>; export declare const ContextResponseMessageSchema: z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"context_response">; answer: z.ZodObject<{ flowId: z.ZodString; status: z.ZodEnum<["success", "rejected", "error"]>; result: z.ZodOptional<z.ZodUnknown>; error: z.ZodOptional<z.ZodString>; originalRequest: z.ZodOptional<z.ZodObject<{ flowId: z.ZodString; flowCode: z.ZodString; requiredCredentials: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }>>; }, "strip", z.ZodTypeAny, { status: "success" | "error" | "rejected"; flowId: string; result?: unknown; error?: string | undefined; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }, { status: "success" | "error" | "rejected"; flowId: string; result?: unknown; error?: string | undefined; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }>; credentialTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { type: "context_response"; id: string; timestamp: string; answer: { status: "success" | "error" | "rejected"; flowId: string; result?: unknown; error?: string | undefined; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }; credentialTypes?: string[] | undefined; }, { type: "context_response"; id: string; timestamp: string; answer: { status: "success" | "error" | "rejected"; flowId: string; result?: unknown; error?: string | undefined; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }; credentialTypes?: string[] | undefined; }>; export declare const PlanMessageSchema: z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"plan">; plan: z.ZodObject<{ summary: z.ZodString; steps: z.ZodArray<z.ZodObject<{ title: z.ZodString; description: z.ZodString; bubblesUsed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { description: string; title: string; bubblesUsed?: string[] | undefined; }, { description: string; title: string; bubblesUsed?: string[] | undefined; }>, "many">; estimatedBubbles: z.ZodArray<z.ZodString, "many">; }, "strip", z.ZodTypeAny, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }>; }, "strip", z.ZodTypeAny, { type: "plan"; id: string; timestamp: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }; }, { type: "plan"; id: string; timestamp: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }; }>; export declare const PlanApprovalMessageSchema: z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"plan_approval">; approved: z.ZodBoolean; comment: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "plan_approval"; id: string; timestamp: string; approved: boolean; comment?: string | undefined; }, { type: "plan_approval"; id: string; timestamp: string; approved: boolean; comment?: string | undefined; }>; export declare const SystemMessageSchema: z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"system">; content: z.ZodString; }, "strip", z.ZodTypeAny, { type: "system"; content: string; id: string; timestamp: string; }, { type: "system"; content: string; id: string; timestamp: string; }>; export declare const ToolResultMessageSchema: z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"tool_result">; toolName: z.ZodString; toolCallId: z.ZodString; input: z.ZodUnknown; output: z.ZodUnknown; duration: z.ZodNumber; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { type: "tool_result"; duration: number; id: string; toolCallId: string; timestamp: string; success: boolean; toolName: string; input?: unknown; output?: unknown; }, { type: "tool_result"; duration: number; id: string; toolCallId: string; timestamp: string; success: boolean; toolName: string; input?: unknown; output?: unknown; }>; export declare const CoffeeMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"user">; content: z.ZodString; }, "strip", z.ZodTypeAny, { type: "user"; content: string; id: string; timestamp: string; }, { type: "user"; content: string; id: string; timestamp: string; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"assistant">; content: z.ZodString; code: z.ZodOptional<z.ZodString>; resultType: z.ZodOptional<z.ZodEnum<["code", "question", "answer", "reject"]>>; bubbleParameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { type: "assistant"; content: string; id: string; timestamp: string; code?: string | undefined; bubbleParameters?: Record<string, unknown> | undefined; resultType?: "code" | "question" | "answer" | "reject" | undefined; }, { type: "assistant"; content: string; id: string; timestamp: string; code?: string | undefined; bubbleParameters?: Record<string, unknown> | undefined; resultType?: "code" | "question" | "answer" | "reject" | undefined; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"clarification_request">; questions: z.ZodArray<z.ZodObject<{ id: z.ZodString; question: z.ZodString; choices: z.ZodArray<z.ZodObject<{ id: z.ZodString; label: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; label: string; description?: string | undefined; }, { id: string; label: string; description?: string | undefined; }>, "many">; context: z.ZodOptional<z.ZodString>; allowMultiple: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { type: "clarification_request"; id: string; timestamp: string; questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }[]; }, { type: "clarification_request"; id: string; timestamp: string; questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }[]; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"clarification_response">; answers: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>; originalQuestions: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; question: z.ZodString; choices: z.ZodArray<z.ZodObject<{ id: z.ZodString; label: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; label: string; description?: string | undefined; }, { id: string; label: string; description?: string | undefined; }>, "many">; context: z.ZodOptional<z.ZodString>; allowMultiple: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { type: "clarification_response"; id: string; timestamp: string; answers: Record<string, string[]>; originalQuestions?: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }[] | undefined; }, { type: "clarification_response"; id: string; timestamp: string; answers: Record<string, string[]>; originalQuestions?: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }[] | undefined; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"context_request">; request: z.ZodObject<{ flowId: z.ZodString; flowCode: z.ZodString; requiredCredentials: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }>; }, "strip", z.ZodTypeAny, { type: "context_request"; id: string; timestamp: string; request: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }; }, { type: "context_request"; id: string; timestamp: string; request: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"context_response">; answer: z.ZodObject<{ flowId: z.ZodString; status: z.ZodEnum<["success", "rejected", "error"]>; result: z.ZodOptional<z.ZodUnknown>; error: z.ZodOptional<z.ZodString>; originalRequest: z.ZodOptional<z.ZodObject<{ flowId: z.ZodString; flowCode: z.ZodString; requiredCredentials: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }>>; }, "strip", z.ZodTypeAny, { status: "success" | "error" | "rejected"; flowId: string; result?: unknown; error?: string | undefined; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }, { status: "success" | "error" | "rejected"; flowId: string; result?: unknown; error?: string | undefined; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }>; credentialTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { type: "context_response"; id: string; timestamp: string; answer: { status: "success" | "error" | "rejected"; flowId: string; result?: unknown; error?: string | undefined; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }; credentialTypes?: string[] | undefined; }, { type: "context_response"; id: string; timestamp: string; answer: { status: "success" | "error" | "rejected"; flowId: string; result?: unknown; error?: string | undefined; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }; credentialTypes?: string[] | undefined; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"plan">; plan: z.ZodObject<{ summary: z.ZodString; steps: z.ZodArray<z.ZodObject<{ title: z.ZodString; description: z.ZodString; bubblesUsed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { description: string; title: string; bubblesUsed?: string[] | undefined; }, { description: string; title: string; bubblesUsed?: string[] | undefined; }>, "many">; estimatedBubbles: z.ZodArray<z.ZodString, "many">; }, "strip", z.ZodTypeAny, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }>; }, "strip", z.ZodTypeAny, { type: "plan"; id: string; timestamp: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }; }, { type: "plan"; id: string; timestamp: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"plan_approval">; approved: z.ZodBoolean; comment: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "plan_approval"; id: string; timestamp: string; approved: boolean; comment?: string | undefined; }, { type: "plan_approval"; id: string; timestamp: string; approved: boolean; comment?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"system">; content: z.ZodString; }, "strip", z.ZodTypeAny, { type: "system"; content: string; id: string; timestamp: string; }, { type: "system"; content: string; id: string; timestamp: string; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"tool_result">; toolName: z.ZodString; toolCallId: z.ZodString; input: z.ZodUnknown; output: z.ZodUnknown; duration: z.ZodNumber; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { type: "tool_result"; duration: number; id: string; toolCallId: string; timestamp: string; success: boolean; toolName: string; input?: unknown; output?: unknown; }, { type: "tool_result"; duration: number; id: string; toolCallId: string; timestamp: string; success: boolean; toolName: string; input?: unknown; output?: unknown; }>]>; export declare const CoffeeRequestSchema: z.ZodObject<{ prompt: z.ZodString; flowId: z.ZodOptional<z.ZodNumber>; messages: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"user">; content: z.ZodString; }, "strip", z.ZodTypeAny, { type: "user"; content: string; id: string; timestamp: string; }, { type: "user"; content: string; id: string; timestamp: string; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"assistant">; content: z.ZodString; code: z.ZodOptional<z.ZodString>; resultType: z.ZodOptional<z.ZodEnum<["code", "question", "answer", "reject"]>>; bubbleParameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { type: "assistant"; content: string; id: string; timestamp: string; code?: string | undefined; bubbleParameters?: Record<string, unknown> | undefined; resultType?: "code" | "question" | "answer" | "reject" | undefined; }, { type: "assistant"; content: string; id: string; timestamp: string; code?: string | undefined; bubbleParameters?: Record<string, unknown> | undefined; resultType?: "code" | "question" | "answer" | "reject" | undefined; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"clarification_request">; questions: z.ZodArray<z.ZodObject<{ id: z.ZodString; question: z.ZodString; choices: z.ZodArray<z.ZodObject<{ id: z.ZodString; label: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; label: string; description?: string | undefined; }, { id: string; label: string; description?: string | undefined; }>, "many">; context: z.ZodOptional<z.ZodString>; allowMultiple: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { type: "clarification_request"; id: string; timestamp: string; questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }[]; }, { type: "clarification_request"; id: string; timestamp: string; questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }[]; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"clarification_response">; answers: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>; originalQuestions: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; question: z.ZodString; choices: z.ZodArray<z.ZodObject<{ id: z.ZodString; label: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; label: string; description?: string | undefined; }, { id: string; label: string; description?: string | undefined; }>, "many">; context: z.ZodOptional<z.ZodString>; allowMultiple: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { type: "clarification_response"; id: string; timestamp: string; answers: Record<string, string[]>; originalQuestions?: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }[] | undefined; }, { type: "clarification_response"; id: string; timestamp: string; answers: Record<string, string[]>; originalQuestions?: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }[] | undefined; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"context_request">; request: z.ZodObject<{ flowId: z.ZodString; flowCode: z.ZodString; requiredCredentials: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }>; }, "strip", z.ZodTypeAny, { type: "context_request"; id: string; timestamp: string; request: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }; }, { type: "context_request"; id: string; timestamp: string; request: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"context_response">; answer: z.ZodObject<{ flowId: z.ZodString; status: z.ZodEnum<["success", "rejected", "error"]>; result: z.ZodOptional<z.ZodUnknown>; error: z.ZodOptional<z.ZodString>; originalRequest: z.ZodOptional<z.ZodObject<{ flowId: z.ZodString; flowCode: z.ZodString; requiredCredentials: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }>>; }, "strip", z.ZodTypeAny, { status: "success" | "error" | "rejected"; flowId: string; result?: unknown; error?: string | undefined; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }, { status: "success" | "error" | "rejected"; flowId: string; result?: unknown; error?: string | undefined; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }>; credentialTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { type: "context_response"; id: string; timestamp: string; answer: { status: "success" | "error" | "rejected"; flowId: string; result?: unknown; error?: string | undefined; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }; credentialTypes?: string[] | undefined; }, { type: "context_response"; id: string; timestamp: string; answer: { status: "success" | "error" | "rejected"; flowId: string; result?: unknown; error?: string | undefined; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }; credentialTypes?: string[] | undefined; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"plan">; plan: z.ZodObject<{ summary: z.ZodString; steps: z.ZodArray<z.ZodObject<{ title: z.ZodString; description: z.ZodString; bubblesUsed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { description: string; title: string; bubblesUsed?: string[] | undefined; }, { description: string; title: string; bubblesUsed?: string[] | undefined; }>, "many">; estimatedBubbles: z.ZodArray<z.ZodString, "many">; }, "strip", z.ZodTypeAny, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }>; }, "strip", z.ZodTypeAny, { type: "plan"; id: string; timestamp: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }; }, { type: "plan"; id: string; timestamp: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"plan_approval">; approved: z.ZodBoolean; comment: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "plan_approval"; id: string; timestamp: string; approved: boolean; comment?: string | undefined; }, { type: "plan_approval"; id: string; timestamp: string; approved: boolean; comment?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"system">; content: z.ZodString; }, "strip", z.ZodTypeAny, { type: "system"; content: string; id: string; timestamp: string; }, { type: "system"; content: string; id: string; timestamp: string; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"tool_result">; toolName: z.ZodString; toolCallId: z.ZodString; input: z.ZodUnknown; output: z.ZodUnknown; duration: z.ZodNumber; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { type: "tool_result"; duration: number; id: string; toolCallId: string; timestamp: string; success: boolean; toolName: string; input?: unknown; output?: unknown; }, { type: "tool_result"; duration: number; id: string; toolCallId: string; timestamp: string; success: boolean; toolName: string; input?: unknown; output?: unknown; }>]>, "many">>; }, "strip", z.ZodTypeAny, { prompt: string; flowId?: number | undefined; messages?: ({ type: "user"; content: string; id: string; timestamp: string; } | { type: "assistant"; content: string; id: string; timestamp: string; code?: string | undefined; bubbleParameters?: Record<string, unknown> | undefined; resultType?: "code" | "question" | "answer" | "reject" | undefined; } | { type: "clarification_request"; id: string; timestamp: string; questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }[]; } | { type: "clarification_response"; id: string; timestamp: string; answers: Record<string, string[]>; originalQuestions?: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }[] | undefined; } | { type: "context_request"; id: string; timestamp: string; request: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }; } | { type: "context_response"; id: string; timestamp: string; answer: { status: "success" | "error" | "rejected"; flowId: string; result?: unknown; error?: string | undefined; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }; credentialTypes?: string[] | undefined; } | { type: "plan"; id: string; timestamp: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }; } | { type: "plan_approval"; id: string; timestamp: string; approved: boolean; comment?: string | undefined; } | { type: "system"; content: string; id: string; timestamp: string; } | { type: "tool_result"; duration: number; id: string; toolCallId: string; timestamp: string; success: boolean; toolName: string; input?: unknown; output?: unknown; })[] | undefined; }, { prompt: string; flowId?: number | undefined; messages?: ({ type: "user"; content: string; id: string; timestamp: string; } | { type: "assistant"; content: string; id: string; timestamp: string; code?: string | undefined; bubbleParameters?: Record<string, unknown> | undefined; resultType?: "code" | "question" | "answer" | "reject" | undefined; } | { type: "clarification_request"; id: string; timestamp: string; questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }[]; } | { type: "clarification_response"; id: string; timestamp: string; answers: Record<string, string[]>; originalQuestions?: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }[] | undefined; } | { type: "context_request"; id: string; timestamp: string; request: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }; } | { type: "context_response"; id: string; timestamp: string; answer: { status: "success" | "error" | "rejected"; flowId: string; result?: unknown; error?: string | undefined; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }; credentialTypes?: string[] | undefined; } | { type: "plan"; id: string; timestamp: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }; } | { type: "plan_approval"; id: string; timestamp: string; approved: boolean; comment?: string | undefined; } | { type: "system"; content: string; id: string; timestamp: string; } | { type: "tool_result"; duration: number; id: string; toolCallId: string; timestamp: string; success: boolean; toolName: string; input?: unknown; output?: unknown; })[] | undefined; }>; export declare const CoffeeResponseSchema: z.ZodObject<{ type: z.ZodEnum<["clarification", "plan", "context_request", "error"]>; clarification: z.ZodOptional<z.ZodObject<{ questions: z.ZodArray<z.ZodObject<{ id: z.ZodString; question: z.ZodString; choices: z.ZodArray<z.ZodObject<{ id: z.ZodString; label: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; label: string; description?: string | undefined; }, { id: string; label: string; description?: string | undefined; }>, "many">; context: z.ZodOptional<z.ZodString>; allowMultiple: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }[]; }, { questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }[]; }>>; plan: z.ZodOptional<z.ZodObject<{ summary: z.ZodString; steps: z.ZodArray<z.ZodObject<{ title: z.ZodString; description: z.ZodString; bubblesUsed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { description: string; title: string; bubblesUsed?: string[] | undefined; }, { description: string; title: string; bubblesUsed?: string[] | undefined; }>, "many">; estimatedBubbles: z.ZodArray<z.ZodString, "many">; }, "strip", z.ZodTypeAny, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }>>; contextRequest: z.ZodOptional<z.ZodObject<{ flowId: z.ZodString; flowCode: z.ZodString; requiredCredentials: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }>>; error: z.ZodOptional<z.ZodString>; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { type: "error" | "context_request" | "plan" | "clarification"; success: boolean; error?: string | undefined; plan?: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; } | undefined; clarification?: { questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }[]; } | undefined; contextRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }, { type: "error" | "context_request" | "plan" | "clarification"; success: boolean; error?: string | undefined; plan?: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; } | undefined; clarification?: { questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }[]; } | undefined; contextRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }>; export declare const CoffeeAgentOutputSchema: z.ZodObject<{ action: z.ZodEnum<["askClarification", "generatePlan", "requestContext"]>; questions: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; question: z.ZodString; choices: z.ZodArray<z.ZodObject<{ id: z.ZodString; label: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; label: string; description?: string | undefined; }, { id: string; label: string; description?: string | undefined; }>, "many">; context: z.ZodOptional<z.ZodString>; allowMultiple: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }>, "many">>; plan: z.ZodOptional<z.ZodObject<{ summary: z.ZodString; steps: z.ZodArray<z.ZodObject<{ title: z.ZodString; description: z.ZodString; bubblesUsed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { description: string; title: string; bubblesUsed?: string[] | undefined; }, { description: string; title: string; bubblesUsed?: string[] | undefined; }>, "many">; estimatedBubbles: z.ZodArray<z.ZodString, "many">; }, "strip", z.ZodTypeAny, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }>>; contextRequest: z.ZodOptional<z.ZodObject<{ purpose: z.ZodString; flowDescription: z.ZodString; }, "strip", z.ZodTypeAny, { purpose: string; flowDescription: string; }, { purpose: string; flowDescription: string; }>>; }, "strip", z.ZodTypeAny, { action: "askClarification" | "generatePlan" | "requestContext"; questions?: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }[] | undefined; plan?: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; } | undefined; contextRequest?: { purpose: string; flowDescription: string; } | undefined; }, { action: "askClarification" | "generatePlan" | "requestContext"; questions?: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }[] | undefined; plan?: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; } | undefined; contextRequest?: { purpose: string; flowDescription: string; } | undefined; }>; export type ClarificationChoice = z.infer<typeof ClarificationChoiceSchema>; export type ClarificationQuestion = z.infer<typeof ClarificationQuestionSchema>; export type CoffeeClarificationEvent = z.infer<typeof CoffeeClarificationEventSchema>; export type CoffeeRequestExternalContextEvent = z.infer<typeof CoffeeRequestExternalContextEventSchema>; export type CoffeeContextAnswer = z.infer<typeof CoffeeContextAnswerSchema>; export type CoffeeContextEvent = z.infer<typeof CoffeeContextEventSchema>; export type CoffeeContextRequestInfo = z.infer<typeof CoffeeContextRequestInfoSchema>; export type PlanStep = z.infer<typeof PlanStepSchema>; export type CoffeePlanEvent = z.infer<typeof CoffeePlanEventSchema>; export type CoffeeRequest = z.infer<typeof CoffeeRequestSchema>; export type CoffeeResponse = z.infer<typeof CoffeeResponseSchema>; export type CoffeeAgentOutput = z.infer<typeof CoffeeAgentOutputSchema>; export type UserMessage = z.infer<typeof UserMessageSchema>; export type AssistantMessage = z.infer<typeof AssistantMessageSchema>; export type ClarificationRequestMessage = z.infer<typeof ClarificationRequestMessageSchema>; export type ClarificationResponseMessage = z.infer<typeof ClarificationResponseMessageSchema>; export type ContextRequestMessage = z.infer<typeof ContextRequestMessageSchema>; export type ContextResponseMessage = z.infer<typeof ContextResponseMessageSchema>; export type PlanMessage = z.infer<typeof PlanMessageSchema>; export type PlanApprovalMessage = z.infer<typeof PlanApprovalMessageSchema>; export type SystemMessage = z.infer<typeof SystemMessageSchema>; export type ToolResultMessage = z.infer<typeof ToolResultMessageSchema>; export type CoffeeMessage = z.infer<typeof CoffeeMessageSchema>; export interface StreamingLogEvent { type: 'log_line' | 'bubble_instantiation' | 'bubble_execution' | 'bubble_start' | 'bubble_complete' | 'execution_complete' | 'error' | 'stream_complete' | 'info' | 'warn' | 'debug' | 'bubble_execution_complete' | 'trace' | 'fatal' | 'bubble_parameters_update' | 'tool_call_start' | 'tool_call_complete' | 'function_call_start' | 'function_call_complete' | 'start_evaluating' | 'end_evaluating' | 'browser_session_start' | 'browser_session_end'; timestamp: string; lineNumber?: number; variableId?: number; message: string; bubbleId?: string; bubbleName?: string; variableName?: string; additionalData?: Record<string, unknown>; executionTime?: number; memoryUsage?: number; logLevel?: string; bubbleParameters?: Record<number, import('./bubble-definition-schema').ParsedBubbleWithInfo>; toolCallId?: string; toolName?: string; toolInput?: unknown; toolOutput?: unknown; toolDuration?: number; functionName?: string; functionInput?: unknown; functionOutput?: unknown; functionDuration?: number; tokenUsage?: { inputTokens: number; outputTokens: number; totalTokens: number; }; cumulativeTokenUsage?: { inputTokens: number; outputTokens: number; totalTokens: number; }; evaluationResult?: { working: boolean; issueType: 'setup' | 'workflow' | 'input' | null; summary: string; rating: number; }; browserSessionUrl?: string; browserSessionId?: string; }
|
|
78
|
+
export declare const WorkflowNodeTypeSchema: z.ZodEnum<["bubble", "if", "for", "while", "try_catch", "variable_declaration", "return", "function_call", "code_block", "parallel_execution", "transformation_function"]>; export declare const LocationSchema: 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; }>; export declare const BubbleWorkflowNodeSchema: z.ZodType<BubbleWorkflowNode>; export declare const ControlFlowWorkflowNodeSchema: z.ZodType<ControlFlowWorkflowNode>; export declare const TryCatchWorkflowNodeSchema: z.ZodType<TryCatchWorkflowNode>; export declare const CodeBlockWorkflowNodeSchema: z.ZodType<CodeBlockWorkflowNode>; export declare const VariableDeclarationBlockNodeSchema: z.ZodType<VariableDeclarationBlockNode>; export declare const ReturnWorkflowNodeSchema: z.ZodType<ReturnWorkflowNode>; export declare const FunctionCallWorkflowNodeSchema: z.ZodType<FunctionCallWorkflowNode>; export declare const ParallelExecutionWorkflowNodeSchema: z.ZodType<ParallelExecutionWorkflowNode>; export declare const TransformationFunctionWorkflowNodeSchema: z.ZodType<TransformationFunctionWorkflowNode>; export declare const WorkflowNodeSchema: z.ZodType<WorkflowNode>; export declare const ParsedWorkflowSchema: z.ZodObject<{ root: z.ZodArray<z.ZodType<WorkflowNode, z.ZodTypeDef, WorkflowNode>, "many">; bubbles: z.ZodRecord<z.ZodNumber, z.ZodObject<{ variableName: z.ZodString; bubbleName: z.ZodType<BubbleName>; className: z.ZodString; parameters: z.ZodArray<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; }>, "many">; hasAwait: z.ZodBoolean; hasActionCall: z.ZodBoolean; dependencies: z.ZodOptional<z.ZodArray<z.ZodType<BubbleName, z.ZodTypeDef, BubbleName>, "many">>; dependencyGraph: z.ZodOptional<z.ZodType<DependencyGraphNode, z.ZodTypeDef, DependencyGraphNode>>; variableId: z.ZodNumber; nodeType: z.ZodEnum<["service", "tool", "workflow", "unknown"]>; location: 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; }>; description: z.ZodOptional<z.ZodString>; invocationCallSiteKey: z.ZodOptional<z.ZodString>; clonedFromVariableId: z.ZodOptional<z.ZodNumber>; isInsideCustomTool: z.ZodOptional<z.ZodBoolean>; containingCustomToolId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { root: WorkflowNode[]; bubbles: Record<number, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>; }, { root: WorkflowNode[]; bubbles: Record<number, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>; }>; export declare enum CredentialType { 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", 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" }
|
|
79
|
+
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'; export declare enum CredentialType { 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", 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" }
|
|
80
|
+
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'; export declare const COFFEE_MAX_ITERATIONS = 30; export declare const COFFEE_MAX_QUESTIONS = 5; export declare const COFFEE_DEFAULT_MODEL: "google/gemini-3-pro-preview"; export declare const ClarificationChoiceSchema: z.ZodObject<{ id: z.ZodString; label: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; label: string; description?: string | undefined; }, { id: string; label: string; description?: string | undefined; }>; export declare const ClarificationQuestionSchema: z.ZodObject<{ id: z.ZodString; question: z.ZodString; choices: z.ZodArray<z.ZodObject<{ id: z.ZodString; label: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; label: string; description?: string | undefined; }, { id: string; label: string; description?: string | undefined; }>, "many">; context: z.ZodOptional<z.ZodString>; allowMultiple: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }>; export declare const CoffeeClarificationEventSchema: z.ZodObject<{ questions: z.ZodArray<z.ZodObject<{ id: z.ZodString; question: z.ZodString; choices: z.ZodArray<z.ZodObject<{ id: z.ZodString; label: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; label: string; description?: string | undefined; }, { id: string; label: string; description?: string | undefined; }>, "many">; context: z.ZodOptional<z.ZodString>; allowMultiple: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }[]; }, { questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }[]; }>; export declare const CoffeeRequestExternalContextEventSchema: z.ZodObject<{ flowId: z.ZodString; flowCode: z.ZodString; requiredCredentials: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }>; export declare const CoffeeContextAnswerSchema: z.ZodObject<{ flowId: z.ZodString; status: z.ZodEnum<["success", "rejected", "error"]>; result: z.ZodOptional<z.ZodUnknown>; error: z.ZodOptional<z.ZodString>; originalRequest: z.ZodOptional<z.ZodObject<{ flowId: z.ZodString; flowCode: z.ZodString; requiredCredentials: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }>>; }, "strip", z.ZodTypeAny, { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }, { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }>; export declare const CoffeeContextRequestInfoSchema: z.ZodObject<{ purpose: z.ZodString; flowDescription: z.ZodString; }, "strip", z.ZodTypeAny, { purpose: string; flowDescription: string; }, { purpose: string; flowDescription: string; }>; export declare const CoffeeContextEventSchema: z.ZodObject<{ status: z.ZodEnum<["gathering", "complete"]>; miniFlowDescription: z.ZodOptional<z.ZodString>; result: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { status: "gathering" | "complete"; result?: string | undefined; miniFlowDescription?: string | undefined; }, { status: "gathering" | "complete"; result?: string | undefined; miniFlowDescription?: string | undefined; }>; export declare const PlanStepSchema: z.ZodObject<{ title: z.ZodString; description: z.ZodString; bubblesUsed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { description: string; title: string; bubblesUsed?: string[] | undefined; }, { description: string; title: string; bubblesUsed?: string[] | undefined; }>; export declare const CoffeePlanEventSchema: z.ZodObject<{ summary: z.ZodString; steps: z.ZodArray<z.ZodObject<{ title: z.ZodString; description: z.ZodString; bubblesUsed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { description: string; title: string; bubblesUsed?: string[] | undefined; }, { description: string; title: string; bubblesUsed?: string[] | undefined; }>, "many">; estimatedBubbles: z.ZodArray<z.ZodString, "many">; }, "strip", z.ZodTypeAny, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }>; export declare const UserMessageSchema: z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"user">; content: z.ZodString; }, "strip", z.ZodTypeAny, { content: string; type: "user"; timestamp: string; id: string; }, { content: string; type: "user"; timestamp: string; id: string; }>; export declare const AssistantMessageSchema: z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"assistant">; content: z.ZodString; code: z.ZodOptional<z.ZodString>; resultType: z.ZodOptional<z.ZodEnum<["code", "question", "answer", "reject"]>>; bubbleParameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { content: string; type: "assistant"; timestamp: string; id: string; code?: string | undefined; bubbleParameters?: Record<string, unknown> | undefined; resultType?: "code" | "question" | "answer" | "reject" | undefined; }, { content: string; type: "assistant"; timestamp: string; id: string; code?: string | undefined; bubbleParameters?: Record<string, unknown> | undefined; resultType?: "code" | "question" | "answer" | "reject" | undefined; }>; export declare const ClarificationRequestMessageSchema: z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"clarification_request">; questions: z.ZodArray<z.ZodObject<{ id: z.ZodString; question: z.ZodString; choices: z.ZodArray<z.ZodObject<{ id: z.ZodString; label: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; label: string; description?: string | undefined; }, { id: string; label: string; description?: string | undefined; }>, "many">; context: z.ZodOptional<z.ZodString>; allowMultiple: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { type: "clarification_request"; timestamp: string; id: string; questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }[]; }, { type: "clarification_request"; timestamp: string; id: string; questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }[]; }>; export declare const ClarificationResponseMessageSchema: z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"clarification_response">; answers: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>; originalQuestions: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; question: z.ZodString; choices: z.ZodArray<z.ZodObject<{ id: z.ZodString; label: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; label: string; description?: string | undefined; }, { id: string; label: string; description?: string | undefined; }>, "many">; context: z.ZodOptional<z.ZodString>; allowMultiple: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { type: "clarification_response"; timestamp: string; id: string; answers: Record<string, string[]>; originalQuestions?: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }[] | undefined; }, { type: "clarification_response"; timestamp: string; id: string; answers: Record<string, string[]>; originalQuestions?: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }[] | undefined; }>; export declare const ContextRequestMessageSchema: z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"context_request">; request: z.ZodObject<{ flowId: z.ZodString; flowCode: z.ZodString; requiredCredentials: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }>; }, "strip", z.ZodTypeAny, { type: "context_request"; timestamp: string; id: string; request: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }; }, { type: "context_request"; timestamp: string; id: string; request: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }; }>; export declare const ContextResponseMessageSchema: z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"context_response">; answer: z.ZodObject<{ flowId: z.ZodString; status: z.ZodEnum<["success", "rejected", "error"]>; result: z.ZodOptional<z.ZodUnknown>; error: z.ZodOptional<z.ZodString>; originalRequest: z.ZodOptional<z.ZodObject<{ flowId: z.ZodString; flowCode: z.ZodString; requiredCredentials: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }>>; }, "strip", z.ZodTypeAny, { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }, { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }>; credentialTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { type: "context_response"; timestamp: string; id: string; answer: { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }; credentialTypes?: string[] | undefined; }, { type: "context_response"; timestamp: string; id: string; answer: { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }; credentialTypes?: string[] | undefined; }>; export declare const PlanMessageSchema: z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"plan">; plan: z.ZodObject<{ summary: z.ZodString; steps: z.ZodArray<z.ZodObject<{ title: z.ZodString; description: z.ZodString; bubblesUsed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { description: string; title: string; bubblesUsed?: string[] | undefined; }, { description: string; title: string; bubblesUsed?: string[] | undefined; }>, "many">; estimatedBubbles: z.ZodArray<z.ZodString, "many">; }, "strip", z.ZodTypeAny, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }>; }, "strip", z.ZodTypeAny, { type: "plan"; timestamp: string; id: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }; }, { type: "plan"; timestamp: string; id: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }; }>; export declare const PlanApprovalMessageSchema: z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"plan_approval">; approved: z.ZodBoolean; comment: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "plan_approval"; timestamp: string; id: string; approved: boolean; comment?: string | undefined; }, { type: "plan_approval"; timestamp: string; id: string; approved: boolean; comment?: string | undefined; }>; export declare const SystemMessageSchema: z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"system">; content: z.ZodString; }, "strip", z.ZodTypeAny, { content: string; type: "system"; timestamp: string; id: string; }, { content: string; type: "system"; timestamp: string; id: string; }>; export declare const ToolResultMessageSchema: z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"tool_result">; toolName: z.ZodString; toolCallId: z.ZodString; input: z.ZodUnknown; output: z.ZodUnknown; duration: z.ZodNumber; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { toolCallId: string; type: "tool_result"; timestamp: string; duration: number; id: string; success: boolean; toolName: string; input?: unknown; output?: unknown; }, { toolCallId: string; type: "tool_result"; timestamp: string; duration: number; id: string; success: boolean; toolName: string; input?: unknown; output?: unknown; }>; export declare const CoffeeMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"user">; content: z.ZodString; }, "strip", z.ZodTypeAny, { content: string; type: "user"; timestamp: string; id: string; }, { content: string; type: "user"; timestamp: string; id: string; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"assistant">; content: z.ZodString; code: z.ZodOptional<z.ZodString>; resultType: z.ZodOptional<z.ZodEnum<["code", "question", "answer", "reject"]>>; bubbleParameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { content: string; type: "assistant"; timestamp: string; id: string; code?: string | undefined; bubbleParameters?: Record<string, unknown> | undefined; resultType?: "code" | "question" | "answer" | "reject" | undefined; }, { content: string; type: "assistant"; timestamp: string; id: string; code?: string | undefined; bubbleParameters?: Record<string, unknown> | undefined; resultType?: "code" | "question" | "answer" | "reject" | undefined; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"clarification_request">; questions: z.ZodArray<z.ZodObject<{ id: z.ZodString; question: z.ZodString; choices: z.ZodArray<z.ZodObject<{ id: z.ZodString; label: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; label: string; description?: string | undefined; }, { id: string; label: string; description?: string | undefined; }>, "many">; context: z.ZodOptional<z.ZodString>; allowMultiple: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { type: "clarification_request"; timestamp: string; id: string; questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }[]; }, { type: "clarification_request"; timestamp: string; id: string; questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }[]; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"clarification_response">; answers: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>; originalQuestions: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; question: z.ZodString; choices: z.ZodArray<z.ZodObject<{ id: z.ZodString; label: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; label: string; description?: string | undefined; }, { id: string; label: string; description?: string | undefined; }>, "many">; context: z.ZodOptional<z.ZodString>; allowMultiple: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { type: "clarification_response"; timestamp: string; id: string; answers: Record<string, string[]>; originalQuestions?: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }[] | undefined; }, { type: "clarification_response"; timestamp: string; id: string; answers: Record<string, string[]>; originalQuestions?: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }[] | undefined; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"context_request">; request: z.ZodObject<{ flowId: z.ZodString; flowCode: z.ZodString; requiredCredentials: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }>; }, "strip", z.ZodTypeAny, { type: "context_request"; timestamp: string; id: string; request: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }; }, { type: "context_request"; timestamp: string; id: string; request: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"context_response">; answer: z.ZodObject<{ flowId: z.ZodString; status: z.ZodEnum<["success", "rejected", "error"]>; result: z.ZodOptional<z.ZodUnknown>; error: z.ZodOptional<z.ZodString>; originalRequest: z.ZodOptional<z.ZodObject<{ flowId: z.ZodString; flowCode: z.ZodString; requiredCredentials: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }>>; }, "strip", z.ZodTypeAny, { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }, { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }>; credentialTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { type: "context_response"; timestamp: string; id: string; answer: { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }; credentialTypes?: string[] | undefined; }, { type: "context_response"; timestamp: string; id: string; answer: { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }; credentialTypes?: string[] | undefined; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"plan">; plan: z.ZodObject<{ summary: z.ZodString; steps: z.ZodArray<z.ZodObject<{ title: z.ZodString; description: z.ZodString; bubblesUsed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { description: string; title: string; bubblesUsed?: string[] | undefined; }, { description: string; title: string; bubblesUsed?: string[] | undefined; }>, "many">; estimatedBubbles: z.ZodArray<z.ZodString, "many">; }, "strip", z.ZodTypeAny, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }>; }, "strip", z.ZodTypeAny, { type: "plan"; timestamp: string; id: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }; }, { type: "plan"; timestamp: string; id: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"plan_approval">; approved: z.ZodBoolean; comment: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "plan_approval"; timestamp: string; id: string; approved: boolean; comment?: string | undefined; }, { type: "plan_approval"; timestamp: string; id: string; approved: boolean; comment?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"system">; content: z.ZodString; }, "strip", z.ZodTypeAny, { content: string; type: "system"; timestamp: string; id: string; }, { content: string; type: "system"; timestamp: string; id: string; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"tool_result">; toolName: z.ZodString; toolCallId: z.ZodString; input: z.ZodUnknown; output: z.ZodUnknown; duration: z.ZodNumber; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { toolCallId: string; type: "tool_result"; timestamp: string; duration: number; id: string; success: boolean; toolName: string; input?: unknown; output?: unknown; }, { toolCallId: string; type: "tool_result"; timestamp: string; duration: number; id: string; success: boolean; toolName: string; input?: unknown; output?: unknown; }>]>; export declare const CoffeeRequestSchema: z.ZodObject<{ prompt: z.ZodString; flowId: z.ZodOptional<z.ZodNumber>; messages: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"user">; content: z.ZodString; }, "strip", z.ZodTypeAny, { content: string; type: "user"; timestamp: string; id: string; }, { content: string; type: "user"; timestamp: string; id: string; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"assistant">; content: z.ZodString; code: z.ZodOptional<z.ZodString>; resultType: z.ZodOptional<z.ZodEnum<["code", "question", "answer", "reject"]>>; bubbleParameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { content: string; type: "assistant"; timestamp: string; id: string; code?: string | undefined; bubbleParameters?: Record<string, unknown> | undefined; resultType?: "code" | "question" | "answer" | "reject" | undefined; }, { content: string; type: "assistant"; timestamp: string; id: string; code?: string | undefined; bubbleParameters?: Record<string, unknown> | undefined; resultType?: "code" | "question" | "answer" | "reject" | undefined; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"clarification_request">; questions: z.ZodArray<z.ZodObject<{ id: z.ZodString; question: z.ZodString; choices: z.ZodArray<z.ZodObject<{ id: z.ZodString; label: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; label: string; description?: string | undefined; }, { id: string; label: string; description?: string | undefined; }>, "many">; context: z.ZodOptional<z.ZodString>; allowMultiple: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { type: "clarification_request"; timestamp: string; id: string; questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }[]; }, { type: "clarification_request"; timestamp: string; id: string; questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }[]; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"clarification_response">; answers: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>; originalQuestions: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; question: z.ZodString; choices: z.ZodArray<z.ZodObject<{ id: z.ZodString; label: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; label: string; description?: string | undefined; }, { id: string; label: string; description?: string | undefined; }>, "many">; context: z.ZodOptional<z.ZodString>; allowMultiple: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { type: "clarification_response"; timestamp: string; id: string; answers: Record<string, string[]>; originalQuestions?: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }[] | undefined; }, { type: "clarification_response"; timestamp: string; id: string; answers: Record<string, string[]>; originalQuestions?: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }[] | undefined; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"context_request">; request: z.ZodObject<{ flowId: z.ZodString; flowCode: z.ZodString; requiredCredentials: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }>; }, "strip", z.ZodTypeAny, { type: "context_request"; timestamp: string; id: string; request: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }; }, { type: "context_request"; timestamp: string; id: string; request: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"context_response">; answer: z.ZodObject<{ flowId: z.ZodString; status: z.ZodEnum<["success", "rejected", "error"]>; result: z.ZodOptional<z.ZodUnknown>; error: z.ZodOptional<z.ZodString>; originalRequest: z.ZodOptional<z.ZodObject<{ flowId: z.ZodString; flowCode: z.ZodString; requiredCredentials: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }>>; }, "strip", z.ZodTypeAny, { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }, { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }>; credentialTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { type: "context_response"; timestamp: string; id: string; answer: { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }; credentialTypes?: string[] | undefined; }, { type: "context_response"; timestamp: string; id: string; answer: { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }; credentialTypes?: string[] | undefined; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"plan">; plan: z.ZodObject<{ summary: z.ZodString; steps: z.ZodArray<z.ZodObject<{ title: z.ZodString; description: z.ZodString; bubblesUsed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { description: string; title: string; bubblesUsed?: string[] | undefined; }, { description: string; title: string; bubblesUsed?: string[] | undefined; }>, "many">; estimatedBubbles: z.ZodArray<z.ZodString, "many">; }, "strip", z.ZodTypeAny, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }>; }, "strip", z.ZodTypeAny, { type: "plan"; timestamp: string; id: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }; }, { type: "plan"; timestamp: string; id: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"plan_approval">; approved: z.ZodBoolean; comment: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "plan_approval"; timestamp: string; id: string; approved: boolean; comment?: string | undefined; }, { type: "plan_approval"; timestamp: string; id: string; approved: boolean; comment?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"system">; content: z.ZodString; }, "strip", z.ZodTypeAny, { content: string; type: "system"; timestamp: string; id: string; }, { content: string; type: "system"; timestamp: string; id: string; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"tool_result">; toolName: z.ZodString; toolCallId: z.ZodString; input: z.ZodUnknown; output: z.ZodUnknown; duration: z.ZodNumber; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { toolCallId: string; type: "tool_result"; timestamp: string; duration: number; id: string; success: boolean; toolName: string; input?: unknown; output?: unknown; }, { toolCallId: string; type: "tool_result"; timestamp: string; duration: number; id: string; success: boolean; toolName: string; input?: unknown; output?: unknown; }>]>, "many">>; }, "strip", z.ZodTypeAny, { prompt: string; flowId?: number | undefined; messages?: ({ content: string; type: "user"; timestamp: string; id: string; } | { content: string; type: "assistant"; timestamp: string; id: string; code?: string | undefined; bubbleParameters?: Record<string, unknown> | undefined; resultType?: "code" | "question" | "answer" | "reject" | undefined; } | { type: "clarification_request"; timestamp: string; id: string; questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }[]; } | { type: "clarification_response"; timestamp: string; id: string; answers: Record<string, string[]>; originalQuestions?: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }[] | undefined; } | { type: "context_request"; timestamp: string; id: string; request: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }; } | { type: "context_response"; timestamp: string; id: string; answer: { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }; credentialTypes?: string[] | undefined; } | { type: "plan"; timestamp: string; id: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }; } | { type: "plan_approval"; timestamp: string; id: string; approved: boolean; comment?: string | undefined; } | { content: string; type: "system"; timestamp: string; id: string; } | { toolCallId: string; type: "tool_result"; timestamp: string; duration: number; id: string; success: boolean; toolName: string; input?: unknown; output?: unknown; })[] | undefined; }, { prompt: string; flowId?: number | undefined; messages?: ({ content: string; type: "user"; timestamp: string; id: string; } | { content: string; type: "assistant"; timestamp: string; id: string; code?: string | undefined; bubbleParameters?: Record<string, unknown> | undefined; resultType?: "code" | "question" | "answer" | "reject" | undefined; } | { type: "clarification_request"; timestamp: string; id: string; questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }[]; } | { type: "clarification_response"; timestamp: string; id: string; answers: Record<string, string[]>; originalQuestions?: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }[] | undefined; } | { type: "context_request"; timestamp: string; id: string; request: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }; } | { type: "context_response"; timestamp: string; id: string; answer: { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }; credentialTypes?: string[] | undefined; } | { type: "plan"; timestamp: string; id: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }; } | { type: "plan_approval"; timestamp: string; id: string; approved: boolean; comment?: string | undefined; } | { content: string; type: "system"; timestamp: string; id: string; } | { toolCallId: string; type: "tool_result"; timestamp: string; duration: number; id: string; success: boolean; toolName: string; input?: unknown; output?: unknown; })[] | undefined; }>; export declare const CoffeeResponseSchema: z.ZodObject<{ type: z.ZodEnum<["clarification", "plan", "context_request", "error"]>; clarification: z.ZodOptional<z.ZodObject<{ questions: z.ZodArray<z.ZodObject<{ id: z.ZodString; question: z.ZodString; choices: z.ZodArray<z.ZodObject<{ id: z.ZodString; label: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; label: string; description?: string | undefined; }, { id: string; label: string; description?: string | undefined; }>, "many">; context: z.ZodOptional<z.ZodString>; allowMultiple: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }[]; }, { questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }[]; }>>; plan: z.ZodOptional<z.ZodObject<{ summary: z.ZodString; steps: z.ZodArray<z.ZodObject<{ title: z.ZodString; description: z.ZodString; bubblesUsed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { description: string; title: string; bubblesUsed?: string[] | undefined; }, { description: string; title: string; bubblesUsed?: string[] | undefined; }>, "many">; estimatedBubbles: z.ZodArray<z.ZodString, "many">; }, "strip", z.ZodTypeAny, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }>>; contextRequest: z.ZodOptional<z.ZodObject<{ flowId: z.ZodString; flowCode: z.ZodString; requiredCredentials: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }>>; error: z.ZodOptional<z.ZodString>; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { type: "error" | "context_request" | "plan" | "clarification"; success: boolean; error?: string | undefined; plan?: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; } | undefined; clarification?: { questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }[]; } | undefined; contextRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }, { type: "error" | "context_request" | "plan" | "clarification"; success: boolean; error?: string | undefined; plan?: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; } | undefined; clarification?: { questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }[]; } | undefined; contextRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }>; export declare const CoffeeAgentOutputSchema: z.ZodObject<{ action: z.ZodEnum<["askClarification", "generatePlan", "requestContext"]>; questions: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; question: z.ZodString; choices: z.ZodArray<z.ZodObject<{ id: z.ZodString; label: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; label: string; description?: string | undefined; }, { id: string; label: string; description?: string | undefined; }>, "many">; context: z.ZodOptional<z.ZodString>; allowMultiple: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }>, "many">>; plan: z.ZodOptional<z.ZodObject<{ summary: z.ZodString; steps: z.ZodArray<z.ZodObject<{ title: z.ZodString; description: z.ZodString; bubblesUsed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { description: string; title: string; bubblesUsed?: string[] | undefined; }, { description: string; title: string; bubblesUsed?: string[] | undefined; }>, "many">; estimatedBubbles: z.ZodArray<z.ZodString, "many">; }, "strip", z.ZodTypeAny, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }>>; contextRequest: z.ZodOptional<z.ZodObject<{ purpose: z.ZodString; flowDescription: z.ZodString; }, "strip", z.ZodTypeAny, { purpose: string; flowDescription: string; }, { purpose: string; flowDescription: string; }>>; }, "strip", z.ZodTypeAny, { action: "askClarification" | "generatePlan" | "requestContext"; questions?: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }[] | undefined; plan?: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; } | undefined; contextRequest?: { purpose: string; flowDescription: string; } | undefined; }, { action: "askClarification" | "generatePlan" | "requestContext"; questions?: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }[] | undefined; plan?: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; } | undefined; contextRequest?: { purpose: string; flowDescription: string; } | undefined; }>; export type ClarificationChoice = z.infer<typeof ClarificationChoiceSchema>; export type ClarificationQuestion = z.infer<typeof ClarificationQuestionSchema>; export type CoffeeClarificationEvent = z.infer<typeof CoffeeClarificationEventSchema>; export type CoffeeRequestExternalContextEvent = z.infer<typeof CoffeeRequestExternalContextEventSchema>; export type CoffeeContextAnswer = z.infer<typeof CoffeeContextAnswerSchema>; export type CoffeeContextEvent = z.infer<typeof CoffeeContextEventSchema>; export type CoffeeContextRequestInfo = z.infer<typeof CoffeeContextRequestInfoSchema>; export type PlanStep = z.infer<typeof PlanStepSchema>; export type CoffeePlanEvent = z.infer<typeof CoffeePlanEventSchema>; export type CoffeeRequest = z.infer<typeof CoffeeRequestSchema>; export type CoffeeResponse = z.infer<typeof CoffeeResponseSchema>; export type CoffeeAgentOutput = z.infer<typeof CoffeeAgentOutputSchema>; export type UserMessage = z.infer<typeof UserMessageSchema>; export type AssistantMessage = z.infer<typeof AssistantMessageSchema>; export type ClarificationRequestMessage = z.infer<typeof ClarificationRequestMessageSchema>; export type ClarificationResponseMessage = z.infer<typeof ClarificationResponseMessageSchema>; export type ContextRequestMessage = z.infer<typeof ContextRequestMessageSchema>; export type ContextResponseMessage = z.infer<typeof ContextResponseMessageSchema>; export type PlanMessage = z.infer<typeof PlanMessageSchema>; export type PlanApprovalMessage = z.infer<typeof PlanApprovalMessageSchema>; export type SystemMessage = z.infer<typeof SystemMessageSchema>; export type ToolResultMessage = z.infer<typeof ToolResultMessageSchema>; export type CoffeeMessage = z.infer<typeof CoffeeMessageSchema>; export interface StreamingLogEvent { type: 'log_line' | 'bubble_instantiation' | 'bubble_execution' | 'bubble_start' | 'bubble_complete' | 'execution_complete' | 'error' | 'stream_complete' | 'info' | 'warn' | 'debug' | 'bubble_execution_complete' | 'trace' | 'fatal' | 'bubble_parameters_update' | 'tool_call_start' | 'tool_call_complete' | 'function_call_start' | 'function_call_complete' | 'start_evaluating' | 'end_evaluating' | 'browser_session_start' | 'browser_session_end'; timestamp: string; lineNumber?: number; variableId?: number; message: string; bubbleId?: string; bubbleName?: string; variableName?: string; additionalData?: Record<string, unknown>; executionTime?: number; memoryUsage?: number; logLevel?: string; bubbleParameters?: Record<number, import('./bubble-definition-schema').ParsedBubbleWithInfo>; toolCallId?: string; toolName?: string; toolInput?: unknown; toolOutput?: unknown; toolDuration?: number; functionName?: string; functionInput?: unknown; functionOutput?: unknown; functionDuration?: number; tokenUsage?: { inputTokens: number; outputTokens: number; totalTokens: number; }; cumulativeTokenUsage?: { inputTokens: number; outputTokens: number; totalTokens: number; }; evaluationResult?: { working: boolean; issueType: 'setup' | 'workflow' | 'input' | null; summary: string; rating: number; }; browserSessionUrl?: string; browserSessionId?: string; }
|
|
81
81
|
export type StreamingEvent = { type: 'start'; data: { message: string; maxIterations: number; timestamp: string; }; } | { type: 'llm_start'; data: { model: string; temperature: number; }; } | { type: 'token'; data: { content: string; messageId: string; }; } | { type: 'think'; data: { content: string; messageId: string; }; } | { type: 'llm_complete'; data: { messageId: string; totalTokens?: number; content?: string; }; } | { type: 'tool_start'; data: { tool: string; input: unknown; callId: string; }; } | { type: 'tool_complete'; data: { tool: string; input: { input: string; }; output: unknown; duration: number; callId: string; }; } | { type: 'iteration_start'; data: { iteration: number; }; } | { type: 'iteration_complete'; data: { iteration: number; hasToolCalls: boolean; }; } | { type: 'error'; data: { error: string; recoverable: boolean; }; } | { type: 'complete'; data: { result: unknown; totalDuration: number; }; } | { type: 'coffee_clarification'; data: CoffeeClarificationEvent; } | { type: 'coffee_context_gathering'; data: CoffeeContextEvent; } | { type: 'coffee_request_context'; data: CoffeeRequestExternalContextEvent; } | { type: 'coffee_plan'; data: CoffeePlanEvent; } | { type: 'coffee_complete'; data: { success: boolean; message?: string; }; }; export type StreamCallback = (event: StreamingLogEvent) => void | Promise<void>; export interface BubbleOperationResult { success: boolean; error: string; }
|
|
82
82
|
export interface BubbleResult<T> extends BubbleOperationResult { data: T; executionId: string; timestamp: Date; }
|
|
83
83
|
export declare class MockDataGenerator { static generateMockResult<TResult extends BubbleOperationResult>(resultSchema: z.ZodObject<z.ZodRawShape>): BubbleResult<TResult>; static generateMockFromJsonSchema(jsonSchema: Record<string, unknown>): Record<string, unknown>; static generateMockValueFromJsonSchema(schema: Record<string, unknown>): unknown; static generateMockFromSchema(schema: z.ZodObject<z.ZodRawShape>): Record<string, unknown>; static generateMockValue(zodType: z.ZodTypeAny): unknown; private static generateMockString; private static generateMockNumber; static generateMockWithSeed<TResult extends BubbleOperationResult>(resultSchema: z.ZodObject<z.ZodRawShape>, seed: number): BubbleResult<TResult>; }
|
|
84
84
|
export declare enum CredentialType { 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", 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" }
|
|
85
|
-
export type BubbleName = 'hello-world' | 'ai-agent' | 'postgresql' | 'slack' | 'resend' | 'http' | 'slack-formatter-agent' | 'database-analyzer' | 'slack-notifier' | 'get-bubble-details-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'; export declare const oauthInitiateRequestSchema: z.ZodObject<{ credentialType: z.ZodNativeEnum<typeof CredentialType>; name: z.ZodOptional<z.ZodString>; scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { credentialType: CredentialType; name?: string | undefined; scopes?: string[] | undefined; }, { credentialType: CredentialType; name?: string | undefined; scopes?: string[] | undefined; }>; export declare const oauthInitiateResponseSchema: z.ZodObject<{ authUrl: z.ZodString; state: z.ZodString; }, "strip", z.ZodTypeAny, { state: string; authUrl: string; }, { state: string; authUrl: string; }>; export declare const oauthCallbackRequestSchema: z.ZodObject<{ code: z.ZodString; state: z.ZodString; name: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, {
|
|
86
|
-
export type BubbleName = 'hello-world' | 'ai-agent' | 'postgresql' | 'slack' | 'resend' | 'http' | 'slack-formatter-agent' | 'database-analyzer' | 'slack-notifier' | 'get-bubble-details-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'; export declare enum BubbleParameterType { STRING = "string", NUMBER = "number", BOOLEAN = "boolean", OBJECT = "object", ARRAY = "array", ENV = "env", VARIABLE = "variable", EXPRESSION = "expression", UNKNOWN = "unknown" }
|
|
87
|
-
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, {
|
|
85
|
+
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'; export declare const oauthInitiateRequestSchema: z.ZodObject<{ credentialType: z.ZodNativeEnum<typeof CredentialType>; name: z.ZodOptional<z.ZodString>; scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { credentialType: CredentialType; name?: string | undefined; scopes?: string[] | undefined; }, { credentialType: CredentialType; name?: string | undefined; scopes?: string[] | undefined; }>; export declare const oauthInitiateResponseSchema: z.ZodObject<{ authUrl: z.ZodString; state: z.ZodString; }, "strip", z.ZodTypeAny, { state: string; authUrl: string; }, { state: string; authUrl: string; }>; export declare const oauthCallbackRequestSchema: z.ZodObject<{ code: z.ZodString; state: z.ZodString; name: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name: string; code: string; state: string; description?: string | undefined; }, { name: string; code: string; state: string; description?: string | undefined; }>; export declare const oauthTokenRefreshResponseSchema: z.ZodObject<{ message: z.ZodString; }, "strip", z.ZodTypeAny, { message: string; }, { message: string; }>; export declare const oauthRevokeResponseSchema: z.ZodObject<{ message: z.ZodString; }, "strip", z.ZodTypeAny, { message: string; }, { message: string; }>; export type OAuthInitiateRequest = z.infer<typeof oauthInitiateRequestSchema>; export type OAuthInitiateResponse = z.infer<typeof oauthInitiateResponseSchema>; export type OAuthCallbackRequest = z.infer<typeof oauthCallbackRequestSchema>; export type OAuthTokenRefreshResponse = z.infer<typeof oauthTokenRefreshResponseSchema>; export type OAuthRevokeResponse = z.infer<typeof oauthRevokeResponseSchema>; export declare const joinWaitlistSchema: z.ZodObject<{ name: z.ZodString; email: z.ZodString; database: z.ZodString; otherDatabase: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name: string; email: string; database: string; otherDatabase?: string | undefined; }, { name: string; email: string; database: string; otherDatabase?: string | undefined; }>; export declare const joinWaitlistResponseSchema: z.ZodObject<{ success: z.ZodBoolean; message: z.ZodString; }, "strip", z.ZodTypeAny, { message: string; success: boolean; }, { message: string; success: boolean; }>; export type JoinWaitlistRequest = z.infer<typeof joinWaitlistSchema>; export type JoinWaitlistResponse = z.infer<typeof joinWaitlistResponseSchema>; export declare enum CredentialType { 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", 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" }
|
|
86
|
+
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'; export declare enum BubbleParameterType { STRING = "string", NUMBER = "number", BOOLEAN = "boolean", OBJECT = "object", ARRAY = "array", ENV = "env", VARIABLE = "variable", EXPRESSION = "expression", UNKNOWN = "unknown" }
|
|
87
|
+
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; }
|
|
88
88
|
export interface DependencyGraphNode { name: BubbleName; variableName?: string; nodeType: BubbleNodeType; uniqueId?: string; variableId?: number; dependencies: DependencyGraphNode[]; functionCallChildren?: FunctionCallWorkflowNode[]; }
|
|
89
89
|
export interface BubbleDependencySpec { name: BubbleName; tools?: BubbleName[]; }
|
|
90
|
-
export type BubbleNodeType = 'service' | 'tool' | 'workflow' | 'unknown'; export declare const BubbleNodeTypeSchema: z.ZodEnum<["service", "tool", "workflow", "unknown"]>; export declare const DependencyGraphNodeSchema: z.ZodType<DependencyGraphNode>; export declare const ParsedBubbleSchema: z.ZodObject<{ variableName: z.ZodString; bubbleName: z.ZodType<BubbleName>; className: z.ZodString; parameters: z.ZodArray<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, {
|
|
90
|
+
export type BubbleNodeType = 'service' | 'tool' | 'workflow' | 'unknown'; export declare const BubbleNodeTypeSchema: z.ZodEnum<["service", "tool", "workflow", "unknown"]>; export declare const DependencyGraphNodeSchema: z.ZodType<DependencyGraphNode>; export declare const ParsedBubbleSchema: z.ZodObject<{ variableName: z.ZodString; bubbleName: z.ZodType<BubbleName>; className: z.ZodString; parameters: z.ZodArray<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; }>, "many">; hasAwait: z.ZodBoolean; hasActionCall: z.ZodBoolean; dependencies: z.ZodOptional<z.ZodArray<z.ZodType<BubbleName, z.ZodTypeDef, BubbleName>, "many">>; dependencyGraph: z.ZodOptional<z.ZodType<DependencyGraphNode, z.ZodTypeDef, DependencyGraphNode>>; }, "strip", z.ZodTypeAny, { variableName: string; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; dependencies?: BubbleName[] | undefined; dependencyGraph?: DependencyGraphNode | undefined; }, { variableName: string; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; dependencies?: BubbleName[] | undefined; dependencyGraph?: DependencyGraphNode | undefined; }>; export declare const BubbleDependencySpecSchema: z.ZodObject<{ name: z.ZodType<BubbleName>; tools: z.ZodOptional<z.ZodArray<z.ZodType<BubbleName, z.ZodTypeDef, BubbleName>, "many">>; }, "strip", z.ZodTypeAny, { name: BubbleName; tools?: BubbleName[] | undefined; }, { name: BubbleName; tools?: BubbleName[] | undefined; }>; export declare const ParsedBubbleWithInfoSchema: z.ZodObject<{ variableName: z.ZodString; bubbleName: z.ZodType<BubbleName>; className: z.ZodString; parameters: z.ZodArray<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; }>, "many">; hasAwait: z.ZodBoolean; hasActionCall: z.ZodBoolean; dependencies: z.ZodOptional<z.ZodArray<z.ZodType<BubbleName, z.ZodTypeDef, BubbleName>, "many">>; dependencyGraph: z.ZodOptional<z.ZodType<DependencyGraphNode, z.ZodTypeDef, DependencyGraphNode>>; variableId: z.ZodNumber; nodeType: z.ZodEnum<["service", "tool", "workflow", "unknown"]>; location: 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; }>; description: z.ZodOptional<z.ZodString>; invocationCallSiteKey: z.ZodOptional<z.ZodString>; clonedFromVariableId: z.ZodOptional<z.ZodNumber>; isInsideCustomTool: z.ZodOptional<z.ZodBoolean>; containingCustomToolId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>; export type ParsedBubbleWithInfo = z.infer<typeof ParsedBubbleWithInfoSchema>; export type BubbleParameterTypeInferred = z.infer<typeof BubbleParameterTypeSchema>; export type BubbleParameterInferred = BubbleParameter; export type BubbleNodeTypeInferred = z.infer<typeof BubbleNodeTypeSchema>; export type DependencyGraphNodeInferred = z.infer<typeof DependencyGraphNodeSchema>; export type ParsedBubbleInferred = z.infer<typeof ParsedBubbleSchema>; export type BubbleDependencySpecInferred = z.infer<typeof BubbleDependencySpecSchema>; export type ParsedBubbleWithInfoInferred = z.infer<typeof ParsedBubbleWithInfoSchema>; export type WorkflowNodeType = 'bubble' | 'if' | 'for' | 'while' | 'try_catch' | 'variable_declaration' | 'return' | 'function_call' | 'code_block' | 'parallel_execution' | 'transformation_function'; export interface BubbleWorkflowNode { type: 'bubble'; variableId: number; }
|
|
91
91
|
export interface ControlFlowWorkflowNode { type: 'if' | 'for' | 'while'; location: { startLine: number; startCol: number; endLine: number; endCol: number; }; condition?: string; children: WorkflowNode[]; elseBranch?: WorkflowNode[]; thenTerminates?: boolean; elseTerminates?: boolean; }
|
|
92
92
|
export interface TryCatchWorkflowNode { type: 'try_catch'; location: { startLine: number; startCol: number; endLine: number; endCol: number; }; children: WorkflowNode[]; catchBlock?: WorkflowNode[]; }
|
|
93
93
|
export interface CodeBlockWorkflowNode { type: 'code_block'; location: { startLine: number; startCol: number; endLine: number; endCol: number; }; code: string; children: WorkflowNode[]; }
|
|
@@ -97,15 +97,15 @@ export interface FunctionCallWorkflowNode { type: 'function_call'; location: { s
|
|
|
97
97
|
export interface ParallelExecutionWorkflowNode { type: 'parallel_execution'; location: { startLine: number; startCol: number; endLine: number; endCol: number; }; code: string; variableDeclaration?: { variableNames: string[]; variableType: 'const' | 'let' | 'var'; }; children: WorkflowNode[]; }
|
|
98
98
|
export interface TransformationFunctionWorkflowNode { type: 'transformation_function'; location: { startLine: number; startCol: number; endLine: number; endCol: number; }; code: string; functionName: string; isMethodCall: boolean; description?: string; arguments?: string; variableId: number; variableDeclaration?: { variableName: string; variableType: 'const' | 'let' | 'var'; }; methodDefinition?: { location: { startLine: number; endLine: number; }; isAsync: boolean; parameters: string[]; }; }
|
|
99
99
|
export type WorkflowNode = BubbleWorkflowNode | ControlFlowWorkflowNode | TryCatchWorkflowNode | CodeBlockWorkflowNode | VariableDeclarationBlockNode | ReturnWorkflowNode | FunctionCallWorkflowNode | ParallelExecutionWorkflowNode | TransformationFunctionWorkflowNode; export interface ParsedWorkflow { root: WorkflowNode[]; bubbles: Record<number, ParsedBubbleWithInfo>; }
|
|
100
|
-
export declare const WorkflowNodeTypeSchema: z.ZodEnum<["bubble", "if", "for", "while", "try_catch", "variable_declaration", "return", "function_call", "code_block", "parallel_execution", "transformation_function"]>; export declare const LocationSchema: 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; }>; export declare const BubbleWorkflowNodeSchema: z.ZodType<BubbleWorkflowNode>; export declare const ControlFlowWorkflowNodeSchema: z.ZodType<ControlFlowWorkflowNode>; export declare const TryCatchWorkflowNodeSchema: z.ZodType<TryCatchWorkflowNode>; export declare const CodeBlockWorkflowNodeSchema: z.ZodType<CodeBlockWorkflowNode>; export declare const VariableDeclarationBlockNodeSchema: z.ZodType<VariableDeclarationBlockNode>; export declare const ReturnWorkflowNodeSchema: z.ZodType<ReturnWorkflowNode>; export declare const FunctionCallWorkflowNodeSchema: z.ZodType<FunctionCallWorkflowNode>; export declare const ParallelExecutionWorkflowNodeSchema: z.ZodType<ParallelExecutionWorkflowNode>; export declare const TransformationFunctionWorkflowNodeSchema: z.ZodType<TransformationFunctionWorkflowNode>; export declare const WorkflowNodeSchema: z.ZodType<WorkflowNode>; export declare const ParsedWorkflowSchema: z.ZodObject<{ root: z.ZodArray<z.ZodType<WorkflowNode, z.ZodTypeDef, WorkflowNode>, "many">; bubbles: z.ZodRecord<z.ZodNumber, z.ZodObject<{ variableName: z.ZodString; bubbleName: z.ZodType<BubbleName>; className: z.ZodString; parameters: z.ZodArray<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, {
|
|
101
|
-
export type BubbleName = 'hello-world' | 'ai-agent' | 'postgresql' | 'slack' | 'resend' | 'http' | 'slack-formatter-agent' | 'database-analyzer' | 'slack-notifier' | 'get-bubble-details-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'; export declare enum CredentialType { 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", 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" }
|
|
102
|
-
export type BubbleName = 'hello-world' | 'ai-agent' | 'postgresql' | 'slack' | 'resend' | 'http' | 'slack-formatter-agent' | 'database-analyzer' | 'slack-notifier' | 'get-bubble-details-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'; export declare const createBubbleFlowSchema: z.ZodObject<{ name: z.ZodString; description: z.ZodOptional<z.ZodString>; prompt: z.ZodOptional<z.ZodString>; code: z.ZodString; eventType: z.ZodString; webhookPath: z.ZodOptional<z.ZodString>; webhookActive: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>; bubbleParameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{ variableName: z.ZodString; bubbleName: z.ZodType<BubbleName>; className: z.ZodString; parameters: z.ZodArray<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, { type: BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }, { type: BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }>, "many">; hasAwait: z.ZodBoolean; hasActionCall: z.ZodBoolean; dependencies: z.ZodOptional<z.ZodArray<z.ZodType<BubbleName, z.ZodTypeDef, BubbleName>, "many">>; dependencyGraph: z.ZodOptional<z.ZodType<import("./bubble-definition-schema.js").DependencyGraphNode, z.ZodTypeDef, import("./bubble-definition-schema.js").DependencyGraphNode>>; variableId: z.ZodNumber; nodeType: z.ZodEnum<["service", "tool", "workflow", "unknown"]>; location: 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; }>; description: z.ZodOptional<z.ZodString>; invocationCallSiteKey: z.ZodOptional<z.ZodString>; clonedFromVariableId: z.ZodOptional<z.ZodNumber>; isInsideCustomTool: z.ZodOptional<z.ZodBoolean>; containingCustomToolId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "unknown" | "tool" | "service" | "workflow"; className: string; parameters: { type: BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "unknown" | "tool" | "service" | "workflow"; className: string; parameters: { type: BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>>>; }, "strip", z.ZodTypeAny, { code: string; name: string; eventType: string; description?: string | undefined; prompt?: string | undefined; webhookPath?: string | undefined; webhookActive?: boolean | undefined; bubbleParameters?: Record<string, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "unknown" | "tool" | "service" | "workflow"; className: string; parameters: { type: BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }> | undefined; }, { code: string; name: string; eventType: string; description?: string | undefined; prompt?: string | undefined; webhookPath?: string | undefined; webhookActive?: boolean | undefined; bubbleParameters?: Record<string, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "unknown" | "tool" | "service" | "workflow"; className: string; parameters: { type: BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }> | undefined; }>; export declare const createEmptyBubbleFlowSchema: z.ZodObject<{ name: z.ZodString; description: z.ZodOptional<z.ZodString>; prompt: z.ZodString; eventType: z.ZodString; webhookPath: z.ZodOptional<z.ZodString>; webhookActive: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { name: string; prompt: string; eventType: string; description?: string | undefined; webhookPath?: string | undefined; webhookActive?: boolean | undefined; }, { name: string; prompt: string; eventType: string; description?: string | undefined; webhookPath?: string | undefined; webhookActive?: boolean | undefined; }>; export declare const executeBubbleFlowSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>; export declare const updateBubbleFlowParametersSchema: z.ZodObject<{ bubbleParameters: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{ variableName: z.ZodString; bubbleName: z.ZodType<BubbleName>; className: z.ZodString; parameters: z.ZodArray<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, { type: BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }, { type: BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }>, "many">; hasAwait: z.ZodBoolean; hasActionCall: z.ZodBoolean; dependencies: z.ZodOptional<z.ZodArray<z.ZodType<BubbleName, z.ZodTypeDef, BubbleName>, "many">>; dependencyGraph: z.ZodOptional<z.ZodType<import("./bubble-definition-schema.js").DependencyGraphNode, z.ZodTypeDef, import("./bubble-definition-schema.js").DependencyGraphNode>>; variableId: z.ZodNumber; nodeType: z.ZodEnum<["service", "tool", "workflow", "unknown"]>; location: 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; }>; description: z.ZodOptional<z.ZodString>; invocationCallSiteKey: z.ZodOptional<z.ZodString>; clonedFromVariableId: z.ZodOptional<z.ZodNumber>; isInsideCustomTool: z.ZodOptional<z.ZodBoolean>; containingCustomToolId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "unknown" | "tool" | "service" | "workflow"; className: string; parameters: { type: BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "unknown" | "tool" | "service" | "workflow"; className: string; parameters: { type: BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>, z.ZodObject<{ variableName: z.ZodString; bubbleName: z.ZodType<BubbleName>; className: z.ZodString; parameters: z.ZodArray<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, { type: BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }, { type: BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }>, "many">; hasAwait: z.ZodBoolean; hasActionCall: z.ZodBoolean; dependencies: z.ZodOptional<z.ZodArray<z.ZodType<BubbleName, z.ZodTypeDef, BubbleName>, "many">>; dependencyGraph: z.ZodOptional<z.ZodType<import("./bubble-definition-schema.js").DependencyGraphNode, z.ZodTypeDef, import("./bubble-definition-schema.js").DependencyGraphNode>>; }, "strip", z.ZodTypeAny, { variableName: string; className: string; parameters: { type: BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; }, { variableName: string; className: string; parameters: { type: BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; }>]>>; }, "strip", z.ZodTypeAny, { bubbleParameters: Record<string, { variableName: string; className: string; parameters: { type: BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; } | { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "unknown" | "tool" | "service" | "workflow"; className: string; parameters: { type: BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>; }, { bubbleParameters: Record<string, { variableName: string; className: string; parameters: { type: BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; } | { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "unknown" | "tool" | "service" | "workflow"; className: string; parameters: { type: BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>; }>; export declare const updateBubbleFlowNameSchema: z.ZodObject<{ name: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; }, { name: string; }>; export declare const createBubbleFlowResponseSchema: z.ZodObject<{ id: z.ZodNumber; message: z.ZodString; inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; bubbleParameters: z.ZodRecord<z.ZodString, z.ZodObject<{ variableName: z.ZodString; bubbleName: z.ZodType<BubbleName>; className: z.ZodString; parameters: z.ZodArray<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, { type: BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }, { type: BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }>, "many">; hasAwait: z.ZodBoolean; hasActionCall: z.ZodBoolean; dependencies: z.ZodOptional<z.ZodArray<z.ZodType<BubbleName, z.ZodTypeDef, BubbleName>, "many">>; dependencyGraph: z.ZodOptional<z.ZodType<import("./bubble-definition-schema.js").DependencyGraphNode, z.ZodTypeDef, import("./bubble-definition-schema.js").DependencyGraphNode>>; variableId: z.ZodNumber; nodeType: z.ZodEnum<["service", "tool", "workflow", "unknown"]>; location: 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; }>; description: z.ZodOptional<z.ZodString>; invocationCallSiteKey: z.ZodOptional<z.ZodString>; clonedFromVariableId: z.ZodOptional<z.ZodNumber>; isInsideCustomTool: z.ZodOptional<z.ZodBoolean>; containingCustomToolId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "unknown" | "tool" | "service" | "workflow"; className: string; parameters: { type: BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "unknown" | "tool" | "service" | "workflow"; className: string; parameters: { type: BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>>; workflow: z.ZodOptional<z.ZodObject<{ root: z.ZodArray<z.ZodType<import("./bubble-definition-schema.js").WorkflowNode, z.ZodTypeDef, import("./bubble-definition-schema.js").WorkflowNode>, "many">; bubbles: z.ZodRecord<z.ZodNumber, z.ZodObject<{ variableName: z.ZodString; bubbleName: z.ZodType<BubbleName>; className: z.ZodString; parameters: z.ZodArray<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, { type: BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }, { type: BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }>, "many">; hasAwait: z.ZodBoolean; hasActionCall: z.ZodBoolean; dependencies: z.ZodOptional<z.ZodArray<z.ZodType<BubbleName, z.ZodTypeDef, BubbleName>, "many">>; dependencyGraph: z.ZodOptional<z.ZodType<import("./bubble-definition-schema.js").DependencyGraphNode, z.ZodTypeDef, import("./bubble-definition-schema.js").DependencyGraphNode>>; variableId: z.ZodNumber; nodeType: z.ZodEnum<["service", "tool", "workflow", "unknown"]>; location: 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; }>; description: z.ZodOptional<z.ZodString>; invocationCallSiteKey: z.ZodOptional<z.ZodString>; clonedFromVariableId: z.ZodOptional<z.ZodNumber>; isInsideCustomTool: z.ZodOptional<z.ZodBoolean>; containingCustomToolId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "unknown" | "tool" | "service" | "workflow"; className: string; parameters: { type: BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "unknown" | "tool" | "service" | "workflow"; className: string; parameters: { type: BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { root: import("./bubble-definition-schema.js").WorkflowNode[]; bubbles: Record<number, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "unknown" | "tool" | "service" | "workflow"; className: string; parameters: { type: BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>; }, { root: import("./bubble-definition-schema.js").WorkflowNode[]; bubbles: Record<number, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "unknown" | "tool" | "service" | "workflow"; className: string; parameters: { type: BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>; }>>; requiredCredentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">>>; eventType: z.ZodString; webhook: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; url: z.ZodString; path: z.ZodString; active: z.ZodBoolean; }, "strip", z.ZodTypeAny, { path: string; url: string; id: number; active: boolean; }, { path: string; url: string; id: number; active: boolean; }>>; }, "strip", z.ZodTypeAny, { message: string; id: number; eventType: string; bubbleParameters: Record<string, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "unknown" | "tool" | "service" | "workflow"; className: string; parameters: { type: BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>; workflow?: { root: import("./bubble-definition-schema.js").WorkflowNode[]; bubbles: Record<number, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "unknown" | "tool" | "service" | "workflow"; className: string; parameters: { type: BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>; } | undefined; inputSchema?: Record<string, unknown> | undefined; requiredCredentials?: Record<string, CredentialType[]> | undefined; webhook?: { path: string; url: string; id: number; active: boolean; } | undefined; }, { message: string; id: number; eventType: string; bubbleParameters: Record<string, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "unknown" | "tool" | "service" | "workflow"; className: string; parameters: { type: BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>; workflow?: { root: import("./bubble-definition-schema.js").WorkflowNode[]; bubbles: Record<number, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "unknown" | "tool" | "service" | "workflow"; className: string; parameters: { type: BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>; } | undefined; inputSchema?: Record<string, unknown> | undefined; requiredCredentials?: Record<string, CredentialType[]> | undefined; webhook?: { path: string; url: string; id: number; active: boolean; } | undefined; }>; export declare const createEmptyBubbleFlowResponseSchema: z.ZodObject<{ id: z.ZodNumber; message: z.ZodString; webhook: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; url: z.ZodString; path: z.ZodString; active: z.ZodBoolean; }, "strip", z.ZodTypeAny, { path: string; url: string; id: number; active: boolean; }, { path: string; url: string; id: number; active: boolean; }>>; }, "strip", z.ZodTypeAny, { message: string; id: number; webhook?: { path: string; url: string; id: number; active: boolean; } | undefined; }, { message: string; id: number; webhook?: { path: string; url: string; id: number; active: boolean; } | undefined; }>; export declare const bubbleFlowDetailsResponseSchema: z.ZodObject<{ id: z.ZodNumber; name: z.ZodString; description: z.ZodOptional<z.ZodString>; prompt: z.ZodOptional<z.ZodString>; eventType: z.ZodString; code: z.ZodString; generationError: z.ZodOptional<z.ZodNullable<z.ZodString>>; inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; cron: z.ZodOptional<z.ZodNullable<z.ZodString>>; cronActive: z.ZodOptional<z.ZodBoolean>; defaultInputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; isActive: z.ZodBoolean; requiredCredentials: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">>; displayedBubbleParameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{ variableName: z.ZodString; bubbleName: z.ZodString; className: z.ZodString; parameters: z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodUnknown; type: z.ZodNativeEnum<typeof BubbleParameterType>; }, "strip", z.ZodTypeAny, { type: BubbleParameterType; name: string; value?: unknown; }, { type: BubbleParameterType; name: string; value?: unknown; }>, "many">; hasAwait: z.ZodBoolean; hasActionCall: z.ZodBoolean; }, "strip", z.ZodTypeAny, { variableName: string; className: string; parameters: { type: BubbleParameterType; name: string; value?: unknown; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: string; }, { variableName: string; className: string; parameters: { type: BubbleParameterType; name: string; value?: unknown; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: string; }>>>; bubbleParameters: z.ZodRecord<z.ZodString, z.ZodObject<{ variableName: z.ZodString; bubbleName: z.ZodType<BubbleName>; className: z.ZodString; parameters: z.ZodArray<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, { type: BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }, { type: BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }>, "many">; hasAwait: z.ZodBoolean; hasActionCall: z.ZodBoolean; dependencies: z.ZodOptional<z.ZodArray<z.ZodType<BubbleName, z.ZodTypeDef, BubbleName>, "many">>; dependencyGraph: z.ZodOptional<z.ZodType<import("./bubble-definition-schema.js").DependencyGraphNode, z.ZodTypeDef, import("./bubble-definition-schema.js").DependencyGraphNode>>; variableId: z.ZodNumber; nodeType: z.ZodEnum<["service", "tool", "workflow", "unknown"]>; location: 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; }>; description: z.ZodOptional<z.ZodString>; invocationCallSiteKey: z.ZodOptional<z.ZodString>; clonedFromVariableId: z.ZodOptional<z.ZodNumber>; isInsideCustomTool: z.ZodOptional<z.ZodBoolean>; containingCustomToolId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "unknown" | "tool" | "service" | "workflow"; className: string; parameters: { type: BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "unknown" | "tool" | "service" | "workflow"; className: string; parameters: { type: BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>>; workflow: z.ZodOptional<z.ZodObject<{ root: z.ZodArray<z.ZodType<import("./bubble-definition-schema.js").WorkflowNode, z.ZodTypeDef, import("./bubble-definition-schema.js").WorkflowNode>, "many">; bubbles: z.ZodRecord<z.ZodNumber, z.ZodObject<{ variableName: z.ZodString; bubbleName: z.ZodType<BubbleName>; className: z.ZodString; parameters: z.ZodArray<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, { type: BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }, { type: BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }>, "many">; hasAwait: z.ZodBoolean; hasActionCall: z.ZodBoolean; dependencies: z.ZodOptional<z.ZodArray<z.ZodType<BubbleName, z.ZodTypeDef, BubbleName>, "many">>; dependencyGraph: z.ZodOptional<z.ZodType<import("./bubble-definition-schema.js").DependencyGraphNode, z.ZodTypeDef, import("./bubble-definition-schema.js").DependencyGraphNode>>; variableId: z.ZodNumber; nodeType: z.ZodEnum<["service", "tool", "workflow", "unknown"]>; location: 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; }>; description: z.ZodOptional<z.ZodString>; invocationCallSiteKey: z.ZodOptional<z.ZodString>; clonedFromVariableId: z.ZodOptional<z.ZodNumber>; isInsideCustomTool: z.ZodOptional<z.ZodBoolean>; containingCustomToolId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "unknown" | "tool" | "service" | "workflow"; className: string; parameters: { type: BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "unknown" | "tool" | "service" | "workflow"; className: string; parameters: { type: BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { root: import("./bubble-definition-schema.js").WorkflowNode[]; bubbles: Record<number, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "unknown" | "tool" | "service" | "workflow"; className: string; parameters: { type: BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>; }, { root: import("./bubble-definition-schema.js").WorkflowNode[]; bubbles: Record<number, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "unknown" | "tool" | "service" | "workflow"; className: string; parameters: { type: BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>; }>>; metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; createdAt: z.ZodString; updatedAt: z.ZodString; webhook_url: z.ZodString; }, "strip", z.ZodTypeAny, { code: string; name: string; id: number; createdAt: string; updatedAt: string; webhook_url: string; eventType: string; requiredCredentials: Record<string, CredentialType[]>; bubbleParameters: Record<string, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "unknown" | "tool" | "service" | "workflow"; className: string; parameters: { type: BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>; isActive: boolean; description?: string | undefined; metadata?: Record<string, unknown> | undefined; prompt?: string | undefined; workflow?: { root: import("./bubble-definition-schema.js").WorkflowNode[]; bubbles: Record<number, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "unknown" | "tool" | "service" | "workflow"; className: string; parameters: { type: BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>; } | undefined; defaultInputs?: Record<string, unknown> | undefined; inputSchema?: Record<string, unknown> | undefined; cron?: string | null | undefined; cronActive?: boolean | undefined; generationError?: string | null | undefined; displayedBubbleParameters?: Record<string, { variableName: string; className: string; parameters: { type: BubbleParameterType; name: string; value?: unknown; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: string; }> | undefined; }, { code: string; name: string; id: number; createdAt: string; updatedAt: string; webhook_url: string; eventType: string; requiredCredentials: Record<string, CredentialType[]>; bubbleParameters: Record<string, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "unknown" | "tool" | "service" | "workflow"; className: string; parameters: { type: BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>; isActive: boolean; description?: string | undefined; metadata?: Record<string, unknown> | undefined; prompt?: string | undefined; workflow?: { root: import("./bubble-definition-schema.js").WorkflowNode[]; bubbles: Record<number, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "unknown" | "tool" | "service" | "workflow"; className: string; parameters: { type: BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>; } | undefined; defaultInputs?: Record<string, unknown> | undefined; inputSchema?: Record<string, unknown> | undefined; cron?: string | null | undefined; cronActive?: boolean | undefined; generationError?: string | null | undefined; displayedBubbleParameters?: Record<string, { variableName: string; className: string; parameters: { type: BubbleParameterType; name: string; value?: unknown; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: string; }> | undefined; }>; export declare const bubbleFlowListItemSchema: z.ZodObject<{ id: z.ZodNumber; name: z.ZodString; description: z.ZodOptional<z.ZodString>; eventType: z.ZodString; isActive: z.ZodBoolean; cronActive: z.ZodBoolean; cronSchedule: z.ZodOptional<z.ZodString>; webhookExecutionCount: z.ZodNumber; webhookFailureCount: z.ZodNumber; executionCount: z.ZodNumber; bubbles: z.ZodOptional<z.ZodArray<z.ZodObject<{ bubbleName: z.ZodType<BubbleName>; className: z.ZodString; }, "strip", z.ZodTypeAny, { className: string; bubbleName: BubbleName; }, { className: string; bubbleName: BubbleName; }>, "many">>; createdAt: z.ZodString; updatedAt: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: number; createdAt: string; updatedAt: string; eventType: string; cronActive: boolean; isActive: boolean; webhookExecutionCount: number; webhookFailureCount: number; executionCount: number; description?: string | undefined; bubbles?: { className: string; bubbleName: BubbleName; }[] | undefined; cronSchedule?: string | undefined; }, { name: string; id: number; createdAt: string; updatedAt: string; eventType: string; cronActive: boolean; isActive: boolean; webhookExecutionCount: number; webhookFailureCount: number; executionCount: number; description?: string | undefined; bubbles?: { className: string; bubbleName: BubbleName; }[] | undefined; cronSchedule?: string | undefined; }>; export declare const bubbleFlowListResponseSchema: z.ZodObject<{ bubbleFlows: z.ZodDefault<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; name: z.ZodString; description: z.ZodOptional<z.ZodString>; eventType: z.ZodString; isActive: z.ZodBoolean; cronActive: z.ZodBoolean; cronSchedule: z.ZodOptional<z.ZodString>; webhookExecutionCount: z.ZodNumber; webhookFailureCount: z.ZodNumber; executionCount: z.ZodNumber; bubbles: z.ZodOptional<z.ZodArray<z.ZodObject<{ bubbleName: z.ZodType<BubbleName>; className: z.ZodString; }, "strip", z.ZodTypeAny, { className: string; bubbleName: BubbleName; }, { className: string; bubbleName: BubbleName; }>, "many">>; createdAt: z.ZodString; updatedAt: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: number; createdAt: string; updatedAt: string; eventType: string; cronActive: boolean; isActive: boolean; webhookExecutionCount: number; webhookFailureCount: number; executionCount: number; description?: string | undefined; bubbles?: { className: string; bubbleName: BubbleName; }[] | undefined; cronSchedule?: string | undefined; }, { name: string; id: number; createdAt: string; updatedAt: string; eventType: string; cronActive: boolean; isActive: boolean; webhookExecutionCount: number; webhookFailureCount: number; executionCount: number; description?: string | undefined; bubbles?: { className: string; bubbleName: BubbleName; }[] | undefined; cronSchedule?: string | undefined; }>, "many">>; userMonthlyUsage: z.ZodObject<{ count: z.ZodNumber; }, "strip", z.ZodTypeAny, { count: number; }, { count: number; }>; }, "strip", z.ZodTypeAny, { bubbleFlows: { name: string; id: number; createdAt: string; updatedAt: string; eventType: string; cronActive: boolean; isActive: boolean; webhookExecutionCount: number; webhookFailureCount: number; executionCount: number; description?: string | undefined; bubbles?: { className: string; bubbleName: BubbleName; }[] | undefined; cronSchedule?: string | undefined; }[]; userMonthlyUsage: { count: number; }; }, { userMonthlyUsage: { count: number; }; bubbleFlows?: { name: string; id: number; createdAt: string; updatedAt: string; eventType: string; cronActive: boolean; isActive: boolean; webhookExecutionCount: number; webhookFailureCount: number; executionCount: number; description?: string | undefined; bubbles?: { className: string; bubbleName: BubbleName; }[] | undefined; cronSchedule?: string | undefined; }[] | undefined; }>; export declare const activateBubbleFlowResponseSchema: z.ZodObject<{ success: z.ZodBoolean; webhookUrl: z.ZodString; message: z.ZodString; }, "strip", z.ZodTypeAny, { message: string; success: boolean; webhookUrl: string; }, { message: string; success: boolean; webhookUrl: string; }>; export type ActivateBubbleFlowResponse = z.infer<typeof activateBubbleFlowResponseSchema>; export type CreateBubbleFlowResponse = z.infer<typeof createBubbleFlowResponseSchema>; export type CreateBubbleFlowRequest = z.infer<typeof createBubbleFlowSchema>; export type CreateEmptyBubbleFlowRequest = z.infer<typeof createEmptyBubbleFlowSchema>; export type CreateEmptyBubbleFlowResponse = z.infer<typeof createEmptyBubbleFlowResponseSchema>; export type ExecuteBubbleFlowRequest = z.infer<typeof executeBubbleFlowSchema>; export type UpdateBubbleFlowParametersRequest = z.infer<typeof updateBubbleFlowParametersSchema>; export type UpdateBubbleFlowParametersResponse = z.infer<typeof updateBubbleFlowParametersSchema>; export type UpdateBubbleFlowNameRequest = z.infer<typeof updateBubbleFlowNameSchema>; export type BubbleFlowDetailsResponse = z.infer<typeof bubbleFlowDetailsResponseSchema>; export type BubbleFlowListResponse = z.infer<typeof bubbleFlowListResponseSchema>; export type BubbleFlowListItem = z.infer<typeof bubbleFlowListItemSchema>; export declare enum CredentialType { 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", 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" }
|
|
103
|
-
export type BubbleName = 'hello-world' | 'ai-agent' | 'postgresql' | 'slack' | 'resend' | 'http' | 'slack-formatter-agent' | 'database-analyzer' | 'slack-notifier' | 'get-bubble-details-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'; export declare const ServiceUsageSchema: z.ZodObject<{ service: z.ZodNativeEnum<typeof CredentialType>; subService: z.ZodOptional<z.ZodString>; unit: z.ZodString; usage: z.ZodNumber; unitCost: z.ZodNumber; totalCost: z.ZodNumber; }, "strip", z.ZodTypeAny, { service: CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }, { service: CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }>; export type ServiceUsage = z.infer<typeof ServiceUsageSchema>; export declare const ExecutionSummarySchema: z.ZodObject<{ result: z.ZodOptional<z.ZodAny>; totalDuration: z.ZodNumber; lineExecutionCount: z.ZodOptional<z.ZodNumber>; bubbleExecutionCount: z.ZodOptional<z.ZodNumber>; errorCount: z.ZodOptional<z.ZodNumber>; totalCost: z.ZodNumber; warningCount: z.ZodOptional<z.ZodNumber>; errors: z.ZodOptional<z.ZodArray<z.ZodObject<{ message: z.ZodString; timestamp: z.ZodNumber; bubbleName: z.ZodOptional<z.ZodString>; variableId: z.ZodOptional<z.ZodNumber>; lineNumber: z.ZodOptional<z.ZodNumber>; additionalData: z.ZodOptional<z.ZodAny>; }, "strip", z.ZodTypeAny, { message: string; timestamp: number; variableId?: number | undefined; bubbleName?: string | undefined; lineNumber?: number | undefined; additionalData?: any; }, { message: string; timestamp: number; variableId?: number | undefined; bubbleName?: string | undefined; lineNumber?: number | undefined; additionalData?: any; }>, "many">>; warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{ message: z.ZodString; timestamp: z.ZodNumber; bubbleName: z.ZodOptional<z.ZodString>; variableId: z.ZodOptional<z.ZodNumber>; lineNumber: z.ZodOptional<z.ZodNumber>; additionalData: z.ZodOptional<z.ZodAny>; }, "strip", z.ZodTypeAny, { message: string; timestamp: number; variableId?: number | undefined; bubbleName?: string | undefined; lineNumber?: number | undefined; additionalData?: any; }, { message: string; timestamp: number; variableId?: number | undefined; bubbleName?: string | undefined; lineNumber?: number | undefined; additionalData?: any; }>, "many">>; averageLineExecutionTime: z.ZodOptional<z.ZodNumber>; slowestLines: z.ZodOptional<z.ZodArray<z.ZodObject<{ lineNumber: z.ZodNumber; duration: z.ZodNumber; message: z.ZodString; }, "strip", z.ZodTypeAny, { message: string; duration: number; lineNumber: number; }, { message: string; duration: number; lineNumber: number; }>, "many">>; memoryPeakUsage: z.ZodOptional<z.ZodAny>; startTime: z.ZodOptional<z.ZodNumber>; endTime: z.ZodOptional<z.ZodNumber>; serviceUsage: z.ZodOptional<z.ZodArray<z.ZodObject<{ service: z.ZodNativeEnum<typeof CredentialType>; subService: z.ZodOptional<z.ZodString>; unit: z.ZodString; usage: z.ZodNumber; unitCost: z.ZodNumber; totalCost: z.ZodNumber; }, "strip", z.ZodTypeAny, { service: CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }, { service: CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }>, "many">>; serviceUsageByService: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{ service: z.ZodNativeEnum<typeof CredentialType>; subService: z.ZodOptional<z.ZodString>; unit: z.ZodString; usage: z.ZodNumber; unitCost: z.ZodNumber; totalCost: z.ZodNumber; }, "strip", z.ZodTypeAny, { service: CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }, { service: CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }>>>; }, "strip", z.ZodTypeAny, { totalCost: number; totalDuration: number; result?: any; lineExecutionCount?: number | undefined; bubbleExecutionCount?: number | undefined; errorCount?: number | undefined; warningCount?: number | undefined; errors?: { message: string; timestamp: number; variableId?: number | undefined; bubbleName?: string | undefined; lineNumber?: number | undefined; additionalData?: any; }[] | undefined; warnings?: { message: string; timestamp: number; variableId?: number | undefined; bubbleName?: string | undefined; lineNumber?: number | undefined; additionalData?: any; }[] | undefined; averageLineExecutionTime?: number | undefined; slowestLines?: { message: string; duration: number; lineNumber: number; }[] | undefined; memoryPeakUsage?: any; startTime?: number | undefined; endTime?: number | undefined; serviceUsage?: { service: CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }[] | undefined; serviceUsageByService?: Record<string, { service: CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }> | undefined; }, { totalCost: number; totalDuration: number; result?: any; lineExecutionCount?: number | undefined; bubbleExecutionCount?: number | undefined; errorCount?: number | undefined; warningCount?: number | undefined; errors?: { message: string; timestamp: number; variableId?: number | undefined; bubbleName?: string | undefined; lineNumber?: number | undefined; additionalData?: any; }[] | undefined; warnings?: { message: string; timestamp: number; variableId?: number | undefined; bubbleName?: string | undefined; lineNumber?: number | undefined; additionalData?: any; }[] | undefined; averageLineExecutionTime?: number | undefined; slowestLines?: { message: string; duration: number; lineNumber: number; }[] | undefined; memoryPeakUsage?: any; startTime?: number | undefined; endTime?: number | undefined; serviceUsage?: { service: CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }[] | undefined; serviceUsageByService?: Record<string, { service: CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }> | undefined; }>; export type ExecutionSummary = z.infer<typeof ExecutionSummarySchema>; export declare const bubbleFlowExecutionSchema: z.ZodObject<{ id: z.ZodNumber; status: z.ZodEnum<["running", "success", "error"]>; payload: z.ZodRecord<z.ZodString, z.ZodAny>; result: z.ZodOptional<z.ZodAny>; error: z.ZodOptional<z.ZodString>; startedAt: z.ZodString; webhook_url: z.ZodString; completedAt: z.ZodOptional<z.ZodString>; code: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { status: "running" | "success" | "error"; id: number; payload: Record<string, any>; startedAt: string; webhook_url: string; code?: string | undefined; result?: any; error?: string | undefined; completedAt?: string | undefined; }, { status: "running" | "success" | "error"; id: number; payload: Record<string, any>; startedAt: string; webhook_url: string; code?: string | undefined; result?: any; error?: string | undefined; completedAt?: string | undefined; }>; export declare const listBubbleFlowExecutionsResponseSchema: z.ZodArray<z.ZodObject<{ id: z.ZodNumber; status: z.ZodEnum<["running", "success", "error"]>; payload: z.ZodRecord<z.ZodString, z.ZodAny>; result: z.ZodOptional<z.ZodAny>; error: z.ZodOptional<z.ZodString>; startedAt: z.ZodString; webhook_url: z.ZodString; completedAt: z.ZodOptional<z.ZodString>; code: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { status: "running" | "success" | "error"; id: number; payload: Record<string, any>; startedAt: string; webhook_url: string; code?: string | undefined; result?: any; error?: string | undefined; completedAt?: string | undefined; }, { status: "running" | "success" | "error"; id: number; payload: Record<string, any>; startedAt: string; webhook_url: string; code?: string | undefined; result?: any; error?: string | undefined; completedAt?: string | undefined; }>, "many">; export type ListBubbleFlowExecutionsResponse = z.infer<typeof listBubbleFlowExecutionsResponseSchema>; export declare const bubbleFlowExecutionDetailSchema: z.ZodObject<{ id: z.ZodNumber; status: z.ZodEnum<["running", "success", "error"]>; payload: z.ZodRecord<z.ZodString, z.ZodAny>; result: z.ZodOptional<z.ZodAny>; error: z.ZodOptional<z.ZodString>; startedAt: z.ZodString; webhook_url: z.ZodString; completedAt: z.ZodOptional<z.ZodString>; code: z.ZodOptional<z.ZodString>; } & { executionLogs: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>; }, "strip", z.ZodTypeAny, { status: "running" | "success" | "error"; id: number; payload: Record<string, any>; startedAt: string; webhook_url: string; code?: string | undefined; result?: any; error?: string | undefined; completedAt?: string | undefined; executionLogs?: any[] | undefined; }, { status: "running" | "success" | "error"; id: number; payload: Record<string, any>; startedAt: string; webhook_url: string; code?: string | undefined; result?: any; error?: string | undefined; completedAt?: string | undefined; executionLogs?: any[] | undefined; }>; export type BubbleFlowExecutionDetail = z.infer<typeof bubbleFlowExecutionDetailSchema>; export declare const executeBubbleFlowResponseSchema: z.ZodObject<{ executionId: z.ZodNumber; success: z.ZodBoolean; data: z.ZodOptional<z.ZodAny>; summary: z.ZodOptional<z.ZodObject<{ result: z.ZodOptional<z.ZodAny>; totalDuration: z.ZodNumber; lineExecutionCount: z.ZodOptional<z.ZodNumber>; bubbleExecutionCount: z.ZodOptional<z.ZodNumber>; errorCount: z.ZodOptional<z.ZodNumber>; totalCost: z.ZodNumber; warningCount: z.ZodOptional<z.ZodNumber>; errors: z.ZodOptional<z.ZodArray<z.ZodObject<{ message: z.ZodString; timestamp: z.ZodNumber; bubbleName: z.ZodOptional<z.ZodString>; variableId: z.ZodOptional<z.ZodNumber>; lineNumber: z.ZodOptional<z.ZodNumber>; additionalData: z.ZodOptional<z.ZodAny>; }, "strip", z.ZodTypeAny, { message: string; timestamp: number; variableId?: number | undefined; bubbleName?: string | undefined; lineNumber?: number | undefined; additionalData?: any; }, { message: string; timestamp: number; variableId?: number | undefined; bubbleName?: string | undefined; lineNumber?: number | undefined; additionalData?: any; }>, "many">>; warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{ message: z.ZodString; timestamp: z.ZodNumber; bubbleName: z.ZodOptional<z.ZodString>; variableId: z.ZodOptional<z.ZodNumber>; lineNumber: z.ZodOptional<z.ZodNumber>; additionalData: z.ZodOptional<z.ZodAny>; }, "strip", z.ZodTypeAny, { message: string; timestamp: number; variableId?: number | undefined; bubbleName?: string | undefined; lineNumber?: number | undefined; additionalData?: any; }, { message: string; timestamp: number; variableId?: number | undefined; bubbleName?: string | undefined; lineNumber?: number | undefined; additionalData?: any; }>, "many">>; averageLineExecutionTime: z.ZodOptional<z.ZodNumber>; slowestLines: z.ZodOptional<z.ZodArray<z.ZodObject<{ lineNumber: z.ZodNumber; duration: z.ZodNumber; message: z.ZodString; }, "strip", z.ZodTypeAny, { message: string; duration: number; lineNumber: number; }, { message: string; duration: number; lineNumber: number; }>, "many">>; memoryPeakUsage: z.ZodOptional<z.ZodAny>; startTime: z.ZodOptional<z.ZodNumber>; endTime: z.ZodOptional<z.ZodNumber>; serviceUsage: z.ZodOptional<z.ZodArray<z.ZodObject<{ service: z.ZodNativeEnum<typeof CredentialType>; subService: z.ZodOptional<z.ZodString>; unit: z.ZodString; usage: z.ZodNumber; unitCost: z.ZodNumber; totalCost: z.ZodNumber; }, "strip", z.ZodTypeAny, { service: CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }, { service: CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }>, "many">>; serviceUsageByService: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{ service: z.ZodNativeEnum<typeof CredentialType>; subService: z.ZodOptional<z.ZodString>; unit: z.ZodString; usage: z.ZodNumber; unitCost: z.ZodNumber; totalCost: z.ZodNumber; }, "strip", z.ZodTypeAny, { service: CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }, { service: CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }>>>; }, "strip", z.ZodTypeAny, { totalCost: number; totalDuration: number; result?: any; lineExecutionCount?: number | undefined; bubbleExecutionCount?: number | undefined; errorCount?: number | undefined; warningCount?: number | undefined; errors?: { message: string; timestamp: number; variableId?: number | undefined; bubbleName?: string | undefined; lineNumber?: number | undefined; additionalData?: any; }[] | undefined; warnings?: { message: string; timestamp: number; variableId?: number | undefined; bubbleName?: string | undefined; lineNumber?: number | undefined; additionalData?: any; }[] | undefined; averageLineExecutionTime?: number | undefined; slowestLines?: { message: string; duration: number; lineNumber: number; }[] | undefined; memoryPeakUsage?: any; startTime?: number | undefined; endTime?: number | undefined; serviceUsage?: { service: CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }[] | undefined; serviceUsageByService?: Record<string, { service: CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }> | undefined; }, { totalCost: number; totalDuration: number; result?: any; lineExecutionCount?: number | undefined; bubbleExecutionCount?: number | undefined; errorCount?: number | undefined; warningCount?: number | undefined; errors?: { message: string; timestamp: number; variableId?: number | undefined; bubbleName?: string | undefined; lineNumber?: number | undefined; additionalData?: any; }[] | undefined; warnings?: { message: string; timestamp: number; variableId?: number | undefined; bubbleName?: string | undefined; lineNumber?: number | undefined; additionalData?: any; }[] | undefined; averageLineExecutionTime?: number | undefined; slowestLines?: { message: string; duration: number; lineNumber: number; }[] | undefined; memoryPeakUsage?: any; startTime?: number | undefined; endTime?: number | undefined; serviceUsage?: { service: CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }[] | undefined; serviceUsageByService?: Record<string, { service: CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }> | undefined; }>>; error: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { success: boolean; executionId: number; error?: string | undefined; data?: any; summary?: { totalCost: number; totalDuration: number; result?: any; lineExecutionCount?: number | undefined; bubbleExecutionCount?: number | undefined; errorCount?: number | undefined; warningCount?: number | undefined; errors?: { message: string; timestamp: number; variableId?: number | undefined; bubbleName?: string | undefined; lineNumber?: number | undefined; additionalData?: any; }[] | undefined; warnings?: { message: string; timestamp: number; variableId?: number | undefined; bubbleName?: string | undefined; lineNumber?: number | undefined; additionalData?: any; }[] | undefined; averageLineExecutionTime?: number | undefined; slowestLines?: { message: string; duration: number; lineNumber: number; }[] | undefined; memoryPeakUsage?: any; startTime?: number | undefined; endTime?: number | undefined; serviceUsage?: { service: CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }[] | undefined; serviceUsageByService?: Record<string, { service: CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }> | undefined; } | undefined; }, { success: boolean; executionId: number; error?: string | undefined; data?: any; summary?: { totalCost: number; totalDuration: number; result?: any; lineExecutionCount?: number | undefined; bubbleExecutionCount?: number | undefined; errorCount?: number | undefined; warningCount?: number | undefined; errors?: { message: string; timestamp: number; variableId?: number | undefined; bubbleName?: string | undefined; lineNumber?: number | undefined; additionalData?: any; }[] | undefined; warnings?: { message: string; timestamp: number; variableId?: number | undefined; bubbleName?: string | undefined; lineNumber?: number | undefined; additionalData?: any; }[] | undefined; averageLineExecutionTime?: number | undefined; slowestLines?: { message: string; duration: number; lineNumber: number; }[] | undefined; memoryPeakUsage?: any; startTime?: number | undefined; endTime?: number | undefined; serviceUsage?: { service: CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }[] | undefined; serviceUsageByService?: Record<string, { service: CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }> | undefined; } | undefined; }>; export type ExecuteBubbleFlowResponse = z.infer<typeof executeBubbleFlowResponseSchema>; export type ExecutionResult = ExecuteBubbleFlowResponse; export declare const validateBubbleFlowCodeSchema: z.ZodObject<{ code: z.ZodString; options: z.ZodOptional<z.ZodObject<{ includeDetails: z.ZodDefault<z.ZodBoolean>; strictMode: z.ZodDefault<z.ZodBoolean>; syncInputsWithFlow: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { includeDetails: boolean; strictMode: boolean; syncInputsWithFlow: boolean; }, { includeDetails?: boolean | undefined; strictMode?: boolean | undefined; syncInputsWithFlow?: boolean | undefined; }>>; flowId: z.ZodOptional<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>>; defaultInputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; activateCron: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { code: string; options?: { includeDetails: boolean; strictMode: boolean; syncInputsWithFlow: boolean; } | undefined; flowId?: number | undefined; credentials?: Record<string, Record<string, number>> | undefined; defaultInputs?: Record<string, unknown> | undefined; activateCron?: boolean | undefined; }, { code: string; options?: { includeDetails?: boolean | undefined; strictMode?: boolean | undefined; syncInputsWithFlow?: boolean | undefined; } | undefined; flowId?: number | undefined; credentials?: Record<string, Record<string, number>> | undefined; defaultInputs?: Record<string, unknown> | undefined; activateCron?: boolean | undefined; }>; export declare const validateBubbleFlowCodeResponseSchema: z.ZodObject<{ eventType: z.ZodString; webhookPath: z.ZodString; valid: z.ZodBoolean; errors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; bubbleCount: z.ZodOptional<z.ZodNumber>; inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>; bubbles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{ variableName: z.ZodString; bubbleName: z.ZodType<import("./types").BubbleName>; className: z.ZodString; parameters: z.ZodArray<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 import("./bubble-definition-schema").BubbleParameterType>; source: z.ZodOptional<z.ZodEnum<["object-property", "first-arg", "spread"]>>; }, "strip", z.ZodTypeAny, { type: import("./bubble-definition-schema").BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }, { type: import("./bubble-definition-schema").BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }>, "many">; hasAwait: z.ZodBoolean; hasActionCall: z.ZodBoolean; dependencies: z.ZodOptional<z.ZodArray<z.ZodType<import("./types").BubbleName, z.ZodTypeDef, import("./types").BubbleName>, "many">>; dependencyGraph: z.ZodOptional<z.ZodType<import("./bubble-definition-schema").DependencyGraphNode, z.ZodTypeDef, import("./bubble-definition-schema").DependencyGraphNode>>; variableId: z.ZodNumber; nodeType: z.ZodEnum<["service", "tool", "workflow", "unknown"]>; location: 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; }>; description: z.ZodOptional<z.ZodString>; invocationCallSiteKey: z.ZodOptional<z.ZodString>; clonedFromVariableId: z.ZodOptional<z.ZodNumber>; isInsideCustomTool: z.ZodOptional<z.ZodBoolean>; containingCustomToolId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "unknown" | "tool" | "service" | "workflow"; className: string; parameters: { type: import("./bubble-definition-schema").BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: import("./types").BubbleName; description?: string | undefined; dependencies?: import("./types").BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "unknown" | "tool" | "service" | "workflow"; className: string; parameters: { type: import("./bubble-definition-schema").BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: import("./types").BubbleName; description?: string | undefined; dependencies?: import("./types").BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>>>; workflow: z.ZodOptional<z.ZodObject<{ root: z.ZodArray<z.ZodType<import("./bubble-definition-schema").WorkflowNode, z.ZodTypeDef, import("./bubble-definition-schema").WorkflowNode>, "many">; bubbles: z.ZodRecord<z.ZodNumber, z.ZodObject<{ variableName: z.ZodString; bubbleName: z.ZodType<import("./types").BubbleName>; className: z.ZodString; parameters: z.ZodArray<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 import("./bubble-definition-schema").BubbleParameterType>; source: z.ZodOptional<z.ZodEnum<["object-property", "first-arg", "spread"]>>; }, "strip", z.ZodTypeAny, { type: import("./bubble-definition-schema").BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }, { type: import("./bubble-definition-schema").BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }>, "many">; hasAwait: z.ZodBoolean; hasActionCall: z.ZodBoolean; dependencies: z.ZodOptional<z.ZodArray<z.ZodType<import("./types").BubbleName, z.ZodTypeDef, import("./types").BubbleName>, "many">>; dependencyGraph: z.ZodOptional<z.ZodType<import("./bubble-definition-schema").DependencyGraphNode, z.ZodTypeDef, import("./bubble-definition-schema").DependencyGraphNode>>; variableId: z.ZodNumber; nodeType: z.ZodEnum<["service", "tool", "workflow", "unknown"]>; location: 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; }>; description: z.ZodOptional<z.ZodString>; invocationCallSiteKey: z.ZodOptional<z.ZodString>; clonedFromVariableId: z.ZodOptional<z.ZodNumber>; isInsideCustomTool: z.ZodOptional<z.ZodBoolean>; containingCustomToolId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "unknown" | "tool" | "service" | "workflow"; className: string; parameters: { type: import("./bubble-definition-schema").BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: import("./types").BubbleName; description?: string | undefined; dependencies?: import("./types").BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "unknown" | "tool" | "service" | "workflow"; className: string; parameters: { type: import("./bubble-definition-schema").BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: import("./types").BubbleName; description?: string | undefined; dependencies?: import("./types").BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { root: import("./bubble-definition-schema").WorkflowNode[]; bubbles: Record<number, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "unknown" | "tool" | "service" | "workflow"; className: string; parameters: { type: import("./bubble-definition-schema").BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: import("./types").BubbleName; description?: string | undefined; dependencies?: import("./types").BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>; }, { root: import("./bubble-definition-schema").WorkflowNode[]; bubbles: Record<number, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "unknown" | "tool" | "service" | "workflow"; className: string; parameters: { type: import("./bubble-definition-schema").BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: import("./types").BubbleName; description?: string | undefined; dependencies?: import("./types").BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>; }>>; requiredCredentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>; metadata: z.ZodObject<{ validatedAt: z.ZodString; codeLength: z.ZodNumber; strictMode: z.ZodBoolean; flowUpdated: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { strictMode: boolean; validatedAt: string; codeLength: number; flowUpdated?: boolean | undefined; }, { strictMode: boolean; validatedAt: string; codeLength: number; flowUpdated?: boolean | undefined; }>; cron: z.ZodOptional<z.ZodNullable<z.ZodString>>; cronActive: z.ZodOptional<z.ZodBoolean>; defaultInputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { valid: boolean; metadata: { strictMode: boolean; validatedAt: string; codeLength: number; flowUpdated?: boolean | undefined; }; success: boolean; error: string; eventType: string; webhookPath: string; inputSchema: Record<string, unknown>; workflow?: { root: import("./bubble-definition-schema").WorkflowNode[]; bubbles: Record<number, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "unknown" | "tool" | "service" | "workflow"; className: string; parameters: { type: import("./bubble-definition-schema").BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: import("./types").BubbleName; description?: string | undefined; dependencies?: import("./types").BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>; } | undefined; bubbles?: Record<string, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "unknown" | "tool" | "service" | "workflow"; className: string; parameters: { type: import("./bubble-definition-schema").BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: import("./types").BubbleName; description?: string | undefined; dependencies?: import("./types").BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }> | undefined; errors?: string[] | undefined; defaultInputs?: Record<string, unknown> | undefined; bubbleCount?: number | undefined; requiredCredentials?: Record<string, string[]> | undefined; cron?: string | null | undefined; cronActive?: boolean | undefined; }, { valid: boolean; metadata: { strictMode: boolean; validatedAt: string; codeLength: number; flowUpdated?: boolean | undefined; }; success: boolean; error: string; eventType: string; webhookPath: string; inputSchema: Record<string, unknown>; workflow?: { root: import("./bubble-definition-schema").WorkflowNode[]; bubbles: Record<number, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "unknown" | "tool" | "service" | "workflow"; className: string; parameters: { type: import("./bubble-definition-schema").BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: import("./types").BubbleName; description?: string | undefined; dependencies?: import("./types").BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>; } | undefined; bubbles?: Record<string, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "unknown" | "tool" | "service" | "workflow"; className: string; parameters: { type: import("./bubble-definition-schema").BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: import("./types").BubbleName; description?: string | undefined; dependencies?: import("./types").BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }> | undefined; errors?: string[] | undefined; defaultInputs?: Record<string, unknown> | undefined; bubbleCount?: number | undefined; requiredCredentials?: Record<string, string[]> | undefined; cron?: string | null | undefined; cronActive?: boolean | undefined; }>; export type ValidateBubbleFlowResponse = z.infer<typeof validateBubbleFlowCodeResponseSchema>; export type BubbleFlowExecution = z.infer<typeof bubbleFlowExecutionSchema>; export declare enum CredentialType { 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", 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" }
|
|
104
|
-
export type BubbleName = 'hello-world' | 'ai-agent' | 'postgresql' | 'slack' | 'resend' | 'http' | 'slack-formatter-agent' | 'database-analyzer' | 'slack-notifier' | 'get-bubble-details-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'; export declare enum BubbleParameterType { STRING = "string", NUMBER = "number", BOOLEAN = "boolean", OBJECT = "object", ARRAY = "array", ENV = "env", VARIABLE = "variable", EXPRESSION = "expression", UNKNOWN = "unknown" }
|
|
105
|
-
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, {
|
|
100
|
+
export declare const WorkflowNodeTypeSchema: z.ZodEnum<["bubble", "if", "for", "while", "try_catch", "variable_declaration", "return", "function_call", "code_block", "parallel_execution", "transformation_function"]>; export declare const LocationSchema: 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; }>; export declare const BubbleWorkflowNodeSchema: z.ZodType<BubbleWorkflowNode>; export declare const ControlFlowWorkflowNodeSchema: z.ZodType<ControlFlowWorkflowNode>; export declare const TryCatchWorkflowNodeSchema: z.ZodType<TryCatchWorkflowNode>; export declare const CodeBlockWorkflowNodeSchema: z.ZodType<CodeBlockWorkflowNode>; export declare const VariableDeclarationBlockNodeSchema: z.ZodType<VariableDeclarationBlockNode>; export declare const ReturnWorkflowNodeSchema: z.ZodType<ReturnWorkflowNode>; export declare const FunctionCallWorkflowNodeSchema: z.ZodType<FunctionCallWorkflowNode>; export declare const ParallelExecutionWorkflowNodeSchema: z.ZodType<ParallelExecutionWorkflowNode>; export declare const TransformationFunctionWorkflowNodeSchema: z.ZodType<TransformationFunctionWorkflowNode>; export declare const WorkflowNodeSchema: z.ZodType<WorkflowNode>; export declare const ParsedWorkflowSchema: z.ZodObject<{ root: z.ZodArray<z.ZodType<WorkflowNode, z.ZodTypeDef, WorkflowNode>, "many">; bubbles: z.ZodRecord<z.ZodNumber, z.ZodObject<{ variableName: z.ZodString; bubbleName: z.ZodType<BubbleName>; className: z.ZodString; parameters: z.ZodArray<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; }>, "many">; hasAwait: z.ZodBoolean; hasActionCall: z.ZodBoolean; dependencies: z.ZodOptional<z.ZodArray<z.ZodType<BubbleName, z.ZodTypeDef, BubbleName>, "many">>; dependencyGraph: z.ZodOptional<z.ZodType<DependencyGraphNode, z.ZodTypeDef, DependencyGraphNode>>; variableId: z.ZodNumber; nodeType: z.ZodEnum<["service", "tool", "workflow", "unknown"]>; location: 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; }>; description: z.ZodOptional<z.ZodString>; invocationCallSiteKey: z.ZodOptional<z.ZodString>; clonedFromVariableId: z.ZodOptional<z.ZodNumber>; isInsideCustomTool: z.ZodOptional<z.ZodBoolean>; containingCustomToolId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { root: WorkflowNode[]; bubbles: Record<number, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>; }, { root: WorkflowNode[]; bubbles: Record<number, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>; }>; export declare enum CredentialType { 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", 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" }
|
|
101
|
+
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'; export declare enum CredentialType { 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", 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" }
|
|
102
|
+
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'; export declare const createBubbleFlowSchema: z.ZodObject<{ name: z.ZodString; description: z.ZodOptional<z.ZodString>; prompt: z.ZodOptional<z.ZodString>; code: z.ZodString; eventType: z.ZodString; webhookPath: z.ZodOptional<z.ZodString>; webhookActive: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>; bubbleParameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{ variableName: z.ZodString; bubbleName: z.ZodType<BubbleName>; className: z.ZodString; parameters: z.ZodArray<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; }>, "many">; hasAwait: z.ZodBoolean; hasActionCall: z.ZodBoolean; dependencies: z.ZodOptional<z.ZodArray<z.ZodType<BubbleName, z.ZodTypeDef, BubbleName>, "many">>; dependencyGraph: z.ZodOptional<z.ZodType<import("./bubble-definition-schema.js").DependencyGraphNode, z.ZodTypeDef, import("./bubble-definition-schema.js").DependencyGraphNode>>; variableId: z.ZodNumber; nodeType: z.ZodEnum<["service", "tool", "workflow", "unknown"]>; location: 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; }>; description: z.ZodOptional<z.ZodString>; invocationCallSiteKey: z.ZodOptional<z.ZodString>; clonedFromVariableId: z.ZodOptional<z.ZodNumber>; isInsideCustomTool: z.ZodOptional<z.ZodBoolean>; containingCustomToolId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>>>; }, "strip", z.ZodTypeAny, { name: string; code: string; eventType: string; description?: string | undefined; webhookPath?: string | undefined; prompt?: string | undefined; webhookActive?: boolean | undefined; bubbleParameters?: Record<string, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }> | undefined; }, { name: string; code: string; eventType: string; description?: string | undefined; webhookPath?: string | undefined; prompt?: string | undefined; webhookActive?: boolean | undefined; bubbleParameters?: Record<string, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }> | undefined; }>; export declare const createEmptyBubbleFlowSchema: z.ZodObject<{ name: z.ZodString; description: z.ZodOptional<z.ZodString>; prompt: z.ZodString; eventType: z.ZodString; webhookPath: z.ZodOptional<z.ZodString>; webhookActive: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { name: string; eventType: string; prompt: string; description?: string | undefined; webhookPath?: string | undefined; webhookActive?: boolean | undefined; }, { name: string; eventType: string; prompt: string; description?: string | undefined; webhookPath?: string | undefined; webhookActive?: boolean | undefined; }>; export declare const executeBubbleFlowSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>; export declare const updateBubbleFlowParametersSchema: z.ZodObject<{ bubbleParameters: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{ variableName: z.ZodString; bubbleName: z.ZodType<BubbleName>; className: z.ZodString; parameters: z.ZodArray<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; }>, "many">; hasAwait: z.ZodBoolean; hasActionCall: z.ZodBoolean; dependencies: z.ZodOptional<z.ZodArray<z.ZodType<BubbleName, z.ZodTypeDef, BubbleName>, "many">>; dependencyGraph: z.ZodOptional<z.ZodType<import("./bubble-definition-schema.js").DependencyGraphNode, z.ZodTypeDef, import("./bubble-definition-schema.js").DependencyGraphNode>>; variableId: z.ZodNumber; nodeType: z.ZodEnum<["service", "tool", "workflow", "unknown"]>; location: 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; }>; description: z.ZodOptional<z.ZodString>; invocationCallSiteKey: z.ZodOptional<z.ZodString>; clonedFromVariableId: z.ZodOptional<z.ZodNumber>; isInsideCustomTool: z.ZodOptional<z.ZodBoolean>; containingCustomToolId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>, z.ZodObject<{ variableName: z.ZodString; bubbleName: z.ZodType<BubbleName>; className: z.ZodString; parameters: z.ZodArray<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; }>, "many">; hasAwait: z.ZodBoolean; hasActionCall: z.ZodBoolean; dependencies: z.ZodOptional<z.ZodArray<z.ZodType<BubbleName, z.ZodTypeDef, BubbleName>, "many">>; dependencyGraph: z.ZodOptional<z.ZodType<import("./bubble-definition-schema.js").DependencyGraphNode, z.ZodTypeDef, import("./bubble-definition-schema.js").DependencyGraphNode>>; }, "strip", z.ZodTypeAny, { variableName: string; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; }, { variableName: string; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; }>]>>; }, "strip", z.ZodTypeAny, { bubbleParameters: Record<string, { variableName: string; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; } | { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>; }, { bubbleParameters: Record<string, { variableName: string; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; } | { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>; }>; export declare const updateBubbleFlowNameSchema: z.ZodObject<{ name: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; }, { name: string; }>; export declare const createBubbleFlowResponseSchema: z.ZodObject<{ id: z.ZodNumber; message: z.ZodString; inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; bubbleParameters: z.ZodRecord<z.ZodString, z.ZodObject<{ variableName: z.ZodString; bubbleName: z.ZodType<BubbleName>; className: z.ZodString; parameters: z.ZodArray<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; }>, "many">; hasAwait: z.ZodBoolean; hasActionCall: z.ZodBoolean; dependencies: z.ZodOptional<z.ZodArray<z.ZodType<BubbleName, z.ZodTypeDef, BubbleName>, "many">>; dependencyGraph: z.ZodOptional<z.ZodType<import("./bubble-definition-schema.js").DependencyGraphNode, z.ZodTypeDef, import("./bubble-definition-schema.js").DependencyGraphNode>>; variableId: z.ZodNumber; nodeType: z.ZodEnum<["service", "tool", "workflow", "unknown"]>; location: 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; }>; description: z.ZodOptional<z.ZodString>; invocationCallSiteKey: z.ZodOptional<z.ZodString>; clonedFromVariableId: z.ZodOptional<z.ZodNumber>; isInsideCustomTool: z.ZodOptional<z.ZodBoolean>; containingCustomToolId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>>; workflow: z.ZodOptional<z.ZodObject<{ root: z.ZodArray<z.ZodType<import("./bubble-definition-schema.js").WorkflowNode, z.ZodTypeDef, import("./bubble-definition-schema.js").WorkflowNode>, "many">; bubbles: z.ZodRecord<z.ZodNumber, z.ZodObject<{ variableName: z.ZodString; bubbleName: z.ZodType<BubbleName>; className: z.ZodString; parameters: z.ZodArray<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; }>, "many">; hasAwait: z.ZodBoolean; hasActionCall: z.ZodBoolean; dependencies: z.ZodOptional<z.ZodArray<z.ZodType<BubbleName, z.ZodTypeDef, BubbleName>, "many">>; dependencyGraph: z.ZodOptional<z.ZodType<import("./bubble-definition-schema.js").DependencyGraphNode, z.ZodTypeDef, import("./bubble-definition-schema.js").DependencyGraphNode>>; variableId: z.ZodNumber; nodeType: z.ZodEnum<["service", "tool", "workflow", "unknown"]>; location: 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; }>; description: z.ZodOptional<z.ZodString>; invocationCallSiteKey: z.ZodOptional<z.ZodString>; clonedFromVariableId: z.ZodOptional<z.ZodNumber>; isInsideCustomTool: z.ZodOptional<z.ZodBoolean>; containingCustomToolId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { root: import("./bubble-definition-schema.js").WorkflowNode[]; bubbles: Record<number, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>; }, { root: import("./bubble-definition-schema.js").WorkflowNode[]; bubbles: Record<number, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>; }>>; requiredCredentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">>>; eventType: z.ZodString; webhook: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; url: z.ZodString; path: z.ZodString; active: z.ZodBoolean; }, "strip", z.ZodTypeAny, { path: string; id: number; url: string; active: boolean; }, { path: string; id: number; url: string; active: boolean; }>>; }, "strip", z.ZodTypeAny, { message: string; id: number; eventType: string; bubbleParameters: Record<string, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>; workflow?: { root: import("./bubble-definition-schema.js").WorkflowNode[]; bubbles: Record<number, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>; } | undefined; inputSchema?: Record<string, unknown> | undefined; requiredCredentials?: Record<string, CredentialType[]> | undefined; webhook?: { path: string; id: number; url: string; active: boolean; } | undefined; }, { message: string; id: number; eventType: string; bubbleParameters: Record<string, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>; workflow?: { root: import("./bubble-definition-schema.js").WorkflowNode[]; bubbles: Record<number, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>; } | undefined; inputSchema?: Record<string, unknown> | undefined; requiredCredentials?: Record<string, CredentialType[]> | undefined; webhook?: { path: string; id: number; url: string; active: boolean; } | undefined; }>; export declare const createEmptyBubbleFlowResponseSchema: z.ZodObject<{ id: z.ZodNumber; message: z.ZodString; webhook: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; url: z.ZodString; path: z.ZodString; active: z.ZodBoolean; }, "strip", z.ZodTypeAny, { path: string; id: number; url: string; active: boolean; }, { path: string; id: number; url: string; active: boolean; }>>; }, "strip", z.ZodTypeAny, { message: string; id: number; webhook?: { path: string; id: number; url: string; active: boolean; } | undefined; }, { message: string; id: number; webhook?: { path: string; id: number; url: string; active: boolean; } | undefined; }>; export declare const bubbleFlowDetailsResponseSchema: z.ZodObject<{ id: z.ZodNumber; name: z.ZodString; description: z.ZodOptional<z.ZodString>; prompt: z.ZodOptional<z.ZodString>; eventType: z.ZodString; code: z.ZodString; generationError: z.ZodOptional<z.ZodNullable<z.ZodString>>; inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; cron: z.ZodOptional<z.ZodNullable<z.ZodString>>; cronActive: z.ZodOptional<z.ZodBoolean>; defaultInputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; isActive: z.ZodBoolean; requiredCredentials: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">>; displayedBubbleParameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{ variableName: z.ZodString; bubbleName: z.ZodString; className: z.ZodString; parameters: z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodUnknown; type: z.ZodNativeEnum<typeof BubbleParameterType>; }, "strip", z.ZodTypeAny, { name: string; type: BubbleParameterType; value?: unknown; }, { name: string; type: BubbleParameterType; value?: unknown; }>, "many">; hasAwait: z.ZodBoolean; hasActionCall: z.ZodBoolean; }, "strip", z.ZodTypeAny, { variableName: string; className: string; parameters: { name: string; type: BubbleParameterType; value?: unknown; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: string; }, { variableName: string; className: string; parameters: { name: string; type: BubbleParameterType; value?: unknown; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: string; }>>>; bubbleParameters: z.ZodRecord<z.ZodString, z.ZodObject<{ variableName: z.ZodString; bubbleName: z.ZodType<BubbleName>; className: z.ZodString; parameters: z.ZodArray<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; }>, "many">; hasAwait: z.ZodBoolean; hasActionCall: z.ZodBoolean; dependencies: z.ZodOptional<z.ZodArray<z.ZodType<BubbleName, z.ZodTypeDef, BubbleName>, "many">>; dependencyGraph: z.ZodOptional<z.ZodType<import("./bubble-definition-schema.js").DependencyGraphNode, z.ZodTypeDef, import("./bubble-definition-schema.js").DependencyGraphNode>>; variableId: z.ZodNumber; nodeType: z.ZodEnum<["service", "tool", "workflow", "unknown"]>; location: 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; }>; description: z.ZodOptional<z.ZodString>; invocationCallSiteKey: z.ZodOptional<z.ZodString>; clonedFromVariableId: z.ZodOptional<z.ZodNumber>; isInsideCustomTool: z.ZodOptional<z.ZodBoolean>; containingCustomToolId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>>; workflow: z.ZodOptional<z.ZodObject<{ root: z.ZodArray<z.ZodType<import("./bubble-definition-schema.js").WorkflowNode, z.ZodTypeDef, import("./bubble-definition-schema.js").WorkflowNode>, "many">; bubbles: z.ZodRecord<z.ZodNumber, z.ZodObject<{ variableName: z.ZodString; bubbleName: z.ZodType<BubbleName>; className: z.ZodString; parameters: z.ZodArray<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; }>, "many">; hasAwait: z.ZodBoolean; hasActionCall: z.ZodBoolean; dependencies: z.ZodOptional<z.ZodArray<z.ZodType<BubbleName, z.ZodTypeDef, BubbleName>, "many">>; dependencyGraph: z.ZodOptional<z.ZodType<import("./bubble-definition-schema.js").DependencyGraphNode, z.ZodTypeDef, import("./bubble-definition-schema.js").DependencyGraphNode>>; variableId: z.ZodNumber; nodeType: z.ZodEnum<["service", "tool", "workflow", "unknown"]>; location: 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; }>; description: z.ZodOptional<z.ZodString>; invocationCallSiteKey: z.ZodOptional<z.ZodString>; clonedFromVariableId: z.ZodOptional<z.ZodNumber>; isInsideCustomTool: z.ZodOptional<z.ZodBoolean>; containingCustomToolId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { root: import("./bubble-definition-schema.js").WorkflowNode[]; bubbles: Record<number, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>; }, { root: import("./bubble-definition-schema.js").WorkflowNode[]; bubbles: Record<number, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>; }>>; metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; createdAt: z.ZodString; updatedAt: z.ZodString; webhook_url: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; code: string; id: number; webhook_url: string; eventType: string; requiredCredentials: Record<string, CredentialType[]>; bubbleParameters: Record<string, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>; isActive: boolean; createdAt: string; updatedAt: string; description?: string | undefined; workflow?: { root: import("./bubble-definition-schema.js").WorkflowNode[]; bubbles: Record<number, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>; } | undefined; defaultInputs?: Record<string, unknown> | undefined; inputSchema?: Record<string, unknown> | undefined; metadata?: Record<string, unknown> | undefined; cron?: string | null | undefined; cronActive?: boolean | undefined; prompt?: string | undefined; generationError?: string | null | undefined; displayedBubbleParameters?: Record<string, { variableName: string; className: string; parameters: { name: string; type: BubbleParameterType; value?: unknown; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: string; }> | undefined; }, { name: string; code: string; id: number; webhook_url: string; eventType: string; requiredCredentials: Record<string, CredentialType[]>; bubbleParameters: Record<string, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>; isActive: boolean; createdAt: string; updatedAt: string; description?: string | undefined; workflow?: { root: import("./bubble-definition-schema.js").WorkflowNode[]; bubbles: Record<number, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>; } | undefined; defaultInputs?: Record<string, unknown> | undefined; inputSchema?: Record<string, unknown> | undefined; metadata?: Record<string, unknown> | undefined; cron?: string | null | undefined; cronActive?: boolean | undefined; prompt?: string | undefined; generationError?: string | null | undefined; displayedBubbleParameters?: Record<string, { variableName: string; className: string; parameters: { name: string; type: BubbleParameterType; value?: unknown; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: string; }> | undefined; }>; export declare const bubbleFlowListItemSchema: z.ZodObject<{ id: z.ZodNumber; name: z.ZodString; description: z.ZodOptional<z.ZodString>; eventType: z.ZodString; isActive: z.ZodBoolean; cronActive: z.ZodBoolean; cronSchedule: z.ZodOptional<z.ZodString>; webhookExecutionCount: z.ZodNumber; webhookFailureCount: z.ZodNumber; executionCount: z.ZodNumber; bubbles: z.ZodOptional<z.ZodArray<z.ZodObject<{ bubbleName: z.ZodType<BubbleName>; className: z.ZodString; }, "strip", z.ZodTypeAny, { className: string; bubbleName: BubbleName; }, { className: string; bubbleName: BubbleName; }>, "many">>; createdAt: z.ZodString; updatedAt: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: number; eventType: string; cronActive: boolean; isActive: boolean; createdAt: string; updatedAt: string; webhookExecutionCount: number; webhookFailureCount: number; executionCount: number; description?: string | undefined; bubbles?: { className: string; bubbleName: BubbleName; }[] | undefined; cronSchedule?: string | undefined; }, { name: string; id: number; eventType: string; cronActive: boolean; isActive: boolean; createdAt: string; updatedAt: string; webhookExecutionCount: number; webhookFailureCount: number; executionCount: number; description?: string | undefined; bubbles?: { className: string; bubbleName: BubbleName; }[] | undefined; cronSchedule?: string | undefined; }>; export declare const bubbleFlowListResponseSchema: z.ZodObject<{ bubbleFlows: z.ZodDefault<z.ZodArray<z.ZodObject<{ id: z.ZodNumber; name: z.ZodString; description: z.ZodOptional<z.ZodString>; eventType: z.ZodString; isActive: z.ZodBoolean; cronActive: z.ZodBoolean; cronSchedule: z.ZodOptional<z.ZodString>; webhookExecutionCount: z.ZodNumber; webhookFailureCount: z.ZodNumber; executionCount: z.ZodNumber; bubbles: z.ZodOptional<z.ZodArray<z.ZodObject<{ bubbleName: z.ZodType<BubbleName>; className: z.ZodString; }, "strip", z.ZodTypeAny, { className: string; bubbleName: BubbleName; }, { className: string; bubbleName: BubbleName; }>, "many">>; createdAt: z.ZodString; updatedAt: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: number; eventType: string; cronActive: boolean; isActive: boolean; createdAt: string; updatedAt: string; webhookExecutionCount: number; webhookFailureCount: number; executionCount: number; description?: string | undefined; bubbles?: { className: string; bubbleName: BubbleName; }[] | undefined; cronSchedule?: string | undefined; }, { name: string; id: number; eventType: string; cronActive: boolean; isActive: boolean; createdAt: string; updatedAt: string; webhookExecutionCount: number; webhookFailureCount: number; executionCount: number; description?: string | undefined; bubbles?: { className: string; bubbleName: BubbleName; }[] | undefined; cronSchedule?: string | undefined; }>, "many">>; userMonthlyUsage: z.ZodObject<{ count: z.ZodNumber; }, "strip", z.ZodTypeAny, { count: number; }, { count: number; }>; }, "strip", z.ZodTypeAny, { bubbleFlows: { name: string; id: number; eventType: string; cronActive: boolean; isActive: boolean; createdAt: string; updatedAt: string; webhookExecutionCount: number; webhookFailureCount: number; executionCount: number; description?: string | undefined; bubbles?: { className: string; bubbleName: BubbleName; }[] | undefined; cronSchedule?: string | undefined; }[]; userMonthlyUsage: { count: number; }; }, { userMonthlyUsage: { count: number; }; bubbleFlows?: { name: string; id: number; eventType: string; cronActive: boolean; isActive: boolean; createdAt: string; updatedAt: string; webhookExecutionCount: number; webhookFailureCount: number; executionCount: number; description?: string | undefined; bubbles?: { className: string; bubbleName: BubbleName; }[] | undefined; cronSchedule?: string | undefined; }[] | undefined; }>; export declare const activateBubbleFlowResponseSchema: z.ZodObject<{ success: z.ZodBoolean; webhookUrl: z.ZodString; message: z.ZodString; }, "strip", z.ZodTypeAny, { message: string; success: boolean; webhookUrl: string; }, { message: string; success: boolean; webhookUrl: string; }>; export type ActivateBubbleFlowResponse = z.infer<typeof activateBubbleFlowResponseSchema>; export type CreateBubbleFlowResponse = z.infer<typeof createBubbleFlowResponseSchema>; export type CreateBubbleFlowRequest = z.infer<typeof createBubbleFlowSchema>; export type CreateEmptyBubbleFlowRequest = z.infer<typeof createEmptyBubbleFlowSchema>; export type CreateEmptyBubbleFlowResponse = z.infer<typeof createEmptyBubbleFlowResponseSchema>; export type ExecuteBubbleFlowRequest = z.infer<typeof executeBubbleFlowSchema>; export type UpdateBubbleFlowParametersRequest = z.infer<typeof updateBubbleFlowParametersSchema>; export type UpdateBubbleFlowParametersResponse = z.infer<typeof updateBubbleFlowParametersSchema>; export type UpdateBubbleFlowNameRequest = z.infer<typeof updateBubbleFlowNameSchema>; export type BubbleFlowDetailsResponse = z.infer<typeof bubbleFlowDetailsResponseSchema>; export type BubbleFlowListResponse = z.infer<typeof bubbleFlowListResponseSchema>; export type BubbleFlowListItem = z.infer<typeof bubbleFlowListItemSchema>; export declare enum CredentialType { 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", 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" }
|
|
103
|
+
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'; export declare const ServiceUsageSchema: z.ZodObject<{ service: z.ZodNativeEnum<typeof CredentialType>; subService: z.ZodOptional<z.ZodString>; unit: z.ZodString; usage: z.ZodNumber; unitCost: z.ZodNumber; totalCost: z.ZodNumber; }, "strip", z.ZodTypeAny, { service: CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }, { service: CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }>; export type ServiceUsage = z.infer<typeof ServiceUsageSchema>; export declare const ExecutionSummarySchema: z.ZodObject<{ result: z.ZodOptional<z.ZodAny>; totalDuration: z.ZodNumber; lineExecutionCount: z.ZodOptional<z.ZodNumber>; bubbleExecutionCount: z.ZodOptional<z.ZodNumber>; errorCount: z.ZodOptional<z.ZodNumber>; totalCost: z.ZodNumber; warningCount: z.ZodOptional<z.ZodNumber>; errors: z.ZodOptional<z.ZodArray<z.ZodObject<{ message: z.ZodString; timestamp: z.ZodNumber; bubbleName: z.ZodOptional<z.ZodString>; variableId: z.ZodOptional<z.ZodNumber>; lineNumber: z.ZodOptional<z.ZodNumber>; additionalData: z.ZodOptional<z.ZodAny>; }, "strip", z.ZodTypeAny, { message: string; timestamp: number; variableId?: number | undefined; bubbleName?: string | undefined; lineNumber?: number | undefined; additionalData?: any; }, { message: string; timestamp: number; variableId?: number | undefined; bubbleName?: string | undefined; lineNumber?: number | undefined; additionalData?: any; }>, "many">>; warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{ message: z.ZodString; timestamp: z.ZodNumber; bubbleName: z.ZodOptional<z.ZodString>; variableId: z.ZodOptional<z.ZodNumber>; lineNumber: z.ZodOptional<z.ZodNumber>; additionalData: z.ZodOptional<z.ZodAny>; }, "strip", z.ZodTypeAny, { message: string; timestamp: number; variableId?: number | undefined; bubbleName?: string | undefined; lineNumber?: number | undefined; additionalData?: any; }, { message: string; timestamp: number; variableId?: number | undefined; bubbleName?: string | undefined; lineNumber?: number | undefined; additionalData?: any; }>, "many">>; averageLineExecutionTime: z.ZodOptional<z.ZodNumber>; slowestLines: z.ZodOptional<z.ZodArray<z.ZodObject<{ lineNumber: z.ZodNumber; duration: z.ZodNumber; message: z.ZodString; }, "strip", z.ZodTypeAny, { message: string; lineNumber: number; duration: number; }, { message: string; lineNumber: number; duration: number; }>, "many">>; memoryPeakUsage: z.ZodOptional<z.ZodAny>; startTime: z.ZodOptional<z.ZodNumber>; endTime: z.ZodOptional<z.ZodNumber>; serviceUsage: z.ZodOptional<z.ZodArray<z.ZodObject<{ service: z.ZodNativeEnum<typeof CredentialType>; subService: z.ZodOptional<z.ZodString>; unit: z.ZodString; usage: z.ZodNumber; unitCost: z.ZodNumber; totalCost: z.ZodNumber; }, "strip", z.ZodTypeAny, { service: CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }, { service: CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }>, "many">>; serviceUsageByService: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{ service: z.ZodNativeEnum<typeof CredentialType>; subService: z.ZodOptional<z.ZodString>; unit: z.ZodString; usage: z.ZodNumber; unitCost: z.ZodNumber; totalCost: z.ZodNumber; }, "strip", z.ZodTypeAny, { service: CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }, { service: CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }>>>; }, "strip", z.ZodTypeAny, { totalCost: number; totalDuration: number; result?: any; lineExecutionCount?: number | undefined; bubbleExecutionCount?: number | undefined; errorCount?: number | undefined; warningCount?: number | undefined; errors?: { message: string; timestamp: number; variableId?: number | undefined; bubbleName?: string | undefined; lineNumber?: number | undefined; additionalData?: any; }[] | undefined; warnings?: { message: string; timestamp: number; variableId?: number | undefined; bubbleName?: string | undefined; lineNumber?: number | undefined; additionalData?: any; }[] | undefined; averageLineExecutionTime?: number | undefined; slowestLines?: { message: string; lineNumber: number; duration: number; }[] | undefined; memoryPeakUsage?: any; startTime?: number | undefined; endTime?: number | undefined; serviceUsage?: { service: CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }[] | undefined; serviceUsageByService?: Record<string, { service: CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }> | undefined; }, { totalCost: number; totalDuration: number; result?: any; lineExecutionCount?: number | undefined; bubbleExecutionCount?: number | undefined; errorCount?: number | undefined; warningCount?: number | undefined; errors?: { message: string; timestamp: number; variableId?: number | undefined; bubbleName?: string | undefined; lineNumber?: number | undefined; additionalData?: any; }[] | undefined; warnings?: { message: string; timestamp: number; variableId?: number | undefined; bubbleName?: string | undefined; lineNumber?: number | undefined; additionalData?: any; }[] | undefined; averageLineExecutionTime?: number | undefined; slowestLines?: { message: string; lineNumber: number; duration: number; }[] | undefined; memoryPeakUsage?: any; startTime?: number | undefined; endTime?: number | undefined; serviceUsage?: { service: CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }[] | undefined; serviceUsageByService?: Record<string, { service: CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }> | undefined; }>; export type ExecutionSummary = z.infer<typeof ExecutionSummarySchema>; export declare const bubbleFlowExecutionSchema: z.ZodObject<{ id: z.ZodNumber; status: z.ZodEnum<["running", "success", "error"]>; payload: z.ZodRecord<z.ZodString, z.ZodAny>; result: z.ZodOptional<z.ZodAny>; error: z.ZodOptional<z.ZodString>; startedAt: z.ZodString; webhook_url: z.ZodString; completedAt: z.ZodOptional<z.ZodString>; code: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { status: "error" | "running" | "success"; id: number; payload: Record<string, any>; startedAt: string; webhook_url: string; code?: string | undefined; error?: string | undefined; result?: any; completedAt?: string | undefined; }, { status: "error" | "running" | "success"; id: number; payload: Record<string, any>; startedAt: string; webhook_url: string; code?: string | undefined; error?: string | undefined; result?: any; completedAt?: string | undefined; }>; export declare const listBubbleFlowExecutionsResponseSchema: z.ZodArray<z.ZodObject<{ id: z.ZodNumber; status: z.ZodEnum<["running", "success", "error"]>; payload: z.ZodRecord<z.ZodString, z.ZodAny>; result: z.ZodOptional<z.ZodAny>; error: z.ZodOptional<z.ZodString>; startedAt: z.ZodString; webhook_url: z.ZodString; completedAt: z.ZodOptional<z.ZodString>; code: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { status: "error" | "running" | "success"; id: number; payload: Record<string, any>; startedAt: string; webhook_url: string; code?: string | undefined; error?: string | undefined; result?: any; completedAt?: string | undefined; }, { status: "error" | "running" | "success"; id: number; payload: Record<string, any>; startedAt: string; webhook_url: string; code?: string | undefined; error?: string | undefined; result?: any; completedAt?: string | undefined; }>, "many">; export type ListBubbleFlowExecutionsResponse = z.infer<typeof listBubbleFlowExecutionsResponseSchema>; export declare const bubbleFlowExecutionDetailSchema: z.ZodObject<{ id: z.ZodNumber; status: z.ZodEnum<["running", "success", "error"]>; payload: z.ZodRecord<z.ZodString, z.ZodAny>; result: z.ZodOptional<z.ZodAny>; error: z.ZodOptional<z.ZodString>; startedAt: z.ZodString; webhook_url: z.ZodString; completedAt: z.ZodOptional<z.ZodString>; code: z.ZodOptional<z.ZodString>; } & { executionLogs: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>; }, "strip", z.ZodTypeAny, { status: "error" | "running" | "success"; id: number; payload: Record<string, any>; startedAt: string; webhook_url: string; code?: string | undefined; error?: string | undefined; result?: any; completedAt?: string | undefined; executionLogs?: any[] | undefined; }, { status: "error" | "running" | "success"; id: number; payload: Record<string, any>; startedAt: string; webhook_url: string; code?: string | undefined; error?: string | undefined; result?: any; completedAt?: string | undefined; executionLogs?: any[] | undefined; }>; export type BubbleFlowExecutionDetail = z.infer<typeof bubbleFlowExecutionDetailSchema>; export declare const executeBubbleFlowResponseSchema: z.ZodObject<{ executionId: z.ZodNumber; success: z.ZodBoolean; data: z.ZodOptional<z.ZodAny>; summary: z.ZodOptional<z.ZodObject<{ result: z.ZodOptional<z.ZodAny>; totalDuration: z.ZodNumber; lineExecutionCount: z.ZodOptional<z.ZodNumber>; bubbleExecutionCount: z.ZodOptional<z.ZodNumber>; errorCount: z.ZodOptional<z.ZodNumber>; totalCost: z.ZodNumber; warningCount: z.ZodOptional<z.ZodNumber>; errors: z.ZodOptional<z.ZodArray<z.ZodObject<{ message: z.ZodString; timestamp: z.ZodNumber; bubbleName: z.ZodOptional<z.ZodString>; variableId: z.ZodOptional<z.ZodNumber>; lineNumber: z.ZodOptional<z.ZodNumber>; additionalData: z.ZodOptional<z.ZodAny>; }, "strip", z.ZodTypeAny, { message: string; timestamp: number; variableId?: number | undefined; bubbleName?: string | undefined; lineNumber?: number | undefined; additionalData?: any; }, { message: string; timestamp: number; variableId?: number | undefined; bubbleName?: string | undefined; lineNumber?: number | undefined; additionalData?: any; }>, "many">>; warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{ message: z.ZodString; timestamp: z.ZodNumber; bubbleName: z.ZodOptional<z.ZodString>; variableId: z.ZodOptional<z.ZodNumber>; lineNumber: z.ZodOptional<z.ZodNumber>; additionalData: z.ZodOptional<z.ZodAny>; }, "strip", z.ZodTypeAny, { message: string; timestamp: number; variableId?: number | undefined; bubbleName?: string | undefined; lineNumber?: number | undefined; additionalData?: any; }, { message: string; timestamp: number; variableId?: number | undefined; bubbleName?: string | undefined; lineNumber?: number | undefined; additionalData?: any; }>, "many">>; averageLineExecutionTime: z.ZodOptional<z.ZodNumber>; slowestLines: z.ZodOptional<z.ZodArray<z.ZodObject<{ lineNumber: z.ZodNumber; duration: z.ZodNumber; message: z.ZodString; }, "strip", z.ZodTypeAny, { message: string; lineNumber: number; duration: number; }, { message: string; lineNumber: number; duration: number; }>, "many">>; memoryPeakUsage: z.ZodOptional<z.ZodAny>; startTime: z.ZodOptional<z.ZodNumber>; endTime: z.ZodOptional<z.ZodNumber>; serviceUsage: z.ZodOptional<z.ZodArray<z.ZodObject<{ service: z.ZodNativeEnum<typeof CredentialType>; subService: z.ZodOptional<z.ZodString>; unit: z.ZodString; usage: z.ZodNumber; unitCost: z.ZodNumber; totalCost: z.ZodNumber; }, "strip", z.ZodTypeAny, { service: CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }, { service: CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }>, "many">>; serviceUsageByService: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{ service: z.ZodNativeEnum<typeof CredentialType>; subService: z.ZodOptional<z.ZodString>; unit: z.ZodString; usage: z.ZodNumber; unitCost: z.ZodNumber; totalCost: z.ZodNumber; }, "strip", z.ZodTypeAny, { service: CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }, { service: CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }>>>; }, "strip", z.ZodTypeAny, { totalCost: number; totalDuration: number; result?: any; lineExecutionCount?: number | undefined; bubbleExecutionCount?: number | undefined; errorCount?: number | undefined; warningCount?: number | undefined; errors?: { message: string; timestamp: number; variableId?: number | undefined; bubbleName?: string | undefined; lineNumber?: number | undefined; additionalData?: any; }[] | undefined; warnings?: { message: string; timestamp: number; variableId?: number | undefined; bubbleName?: string | undefined; lineNumber?: number | undefined; additionalData?: any; }[] | undefined; averageLineExecutionTime?: number | undefined; slowestLines?: { message: string; lineNumber: number; duration: number; }[] | undefined; memoryPeakUsage?: any; startTime?: number | undefined; endTime?: number | undefined; serviceUsage?: { service: CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }[] | undefined; serviceUsageByService?: Record<string, { service: CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }> | undefined; }, { totalCost: number; totalDuration: number; result?: any; lineExecutionCount?: number | undefined; bubbleExecutionCount?: number | undefined; errorCount?: number | undefined; warningCount?: number | undefined; errors?: { message: string; timestamp: number; variableId?: number | undefined; bubbleName?: string | undefined; lineNumber?: number | undefined; additionalData?: any; }[] | undefined; warnings?: { message: string; timestamp: number; variableId?: number | undefined; bubbleName?: string | undefined; lineNumber?: number | undefined; additionalData?: any; }[] | undefined; averageLineExecutionTime?: number | undefined; slowestLines?: { message: string; lineNumber: number; duration: number; }[] | undefined; memoryPeakUsage?: any; startTime?: number | undefined; endTime?: number | undefined; serviceUsage?: { service: CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }[] | undefined; serviceUsageByService?: Record<string, { service: CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }> | undefined; }>>; error: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { success: boolean; executionId: number; error?: string | undefined; data?: any; summary?: { totalCost: number; totalDuration: number; result?: any; lineExecutionCount?: number | undefined; bubbleExecutionCount?: number | undefined; errorCount?: number | undefined; warningCount?: number | undefined; errors?: { message: string; timestamp: number; variableId?: number | undefined; bubbleName?: string | undefined; lineNumber?: number | undefined; additionalData?: any; }[] | undefined; warnings?: { message: string; timestamp: number; variableId?: number | undefined; bubbleName?: string | undefined; lineNumber?: number | undefined; additionalData?: any; }[] | undefined; averageLineExecutionTime?: number | undefined; slowestLines?: { message: string; lineNumber: number; duration: number; }[] | undefined; memoryPeakUsage?: any; startTime?: number | undefined; endTime?: number | undefined; serviceUsage?: { service: CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }[] | undefined; serviceUsageByService?: Record<string, { service: CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }> | undefined; } | undefined; }, { success: boolean; executionId: number; error?: string | undefined; data?: any; summary?: { totalCost: number; totalDuration: number; result?: any; lineExecutionCount?: number | undefined; bubbleExecutionCount?: number | undefined; errorCount?: number | undefined; warningCount?: number | undefined; errors?: { message: string; timestamp: number; variableId?: number | undefined; bubbleName?: string | undefined; lineNumber?: number | undefined; additionalData?: any; }[] | undefined; warnings?: { message: string; timestamp: number; variableId?: number | undefined; bubbleName?: string | undefined; lineNumber?: number | undefined; additionalData?: any; }[] | undefined; averageLineExecutionTime?: number | undefined; slowestLines?: { message: string; lineNumber: number; duration: number; }[] | undefined; memoryPeakUsage?: any; startTime?: number | undefined; endTime?: number | undefined; serviceUsage?: { service: CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }[] | undefined; serviceUsageByService?: Record<string, { service: CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }> | undefined; } | undefined; }>; export type ExecuteBubbleFlowResponse = z.infer<typeof executeBubbleFlowResponseSchema>; export type ExecutionResult = ExecuteBubbleFlowResponse; export declare const validateBubbleFlowCodeSchema: z.ZodObject<{ code: z.ZodString; options: z.ZodOptional<z.ZodObject<{ includeDetails: z.ZodDefault<z.ZodBoolean>; strictMode: z.ZodDefault<z.ZodBoolean>; syncInputsWithFlow: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { includeDetails: boolean; strictMode: boolean; syncInputsWithFlow: boolean; }, { includeDetails?: boolean | undefined; strictMode?: boolean | undefined; syncInputsWithFlow?: boolean | undefined; }>>; flowId: z.ZodOptional<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>>; defaultInputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; activateCron: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { code: string; options?: { includeDetails: boolean; strictMode: boolean; syncInputsWithFlow: boolean; } | undefined; flowId?: number | undefined; credentials?: Record<string, Record<string, number>> | undefined; defaultInputs?: Record<string, unknown> | undefined; activateCron?: boolean | undefined; }, { code: string; options?: { includeDetails?: boolean | undefined; strictMode?: boolean | undefined; syncInputsWithFlow?: boolean | undefined; } | undefined; flowId?: number | undefined; credentials?: Record<string, Record<string, number>> | undefined; defaultInputs?: Record<string, unknown> | undefined; activateCron?: boolean | undefined; }>; export declare const validateBubbleFlowCodeResponseSchema: z.ZodObject<{ eventType: z.ZodString; webhookPath: z.ZodString; valid: z.ZodBoolean; errors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; bubbleCount: z.ZodOptional<z.ZodNumber>; inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>; bubbles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{ variableName: z.ZodString; bubbleName: z.ZodType<import("./types").BubbleName>; className: z.ZodString; parameters: z.ZodArray<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 import("./bubble-definition-schema").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: import("./bubble-definition-schema").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: import("./bubble-definition-schema").BubbleParameterType; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }>, "many">; hasAwait: z.ZodBoolean; hasActionCall: z.ZodBoolean; dependencies: z.ZodOptional<z.ZodArray<z.ZodType<import("./types").BubbleName, z.ZodTypeDef, import("./types").BubbleName>, "many">>; dependencyGraph: z.ZodOptional<z.ZodType<import("./bubble-definition-schema").DependencyGraphNode, z.ZodTypeDef, import("./bubble-definition-schema").DependencyGraphNode>>; variableId: z.ZodNumber; nodeType: z.ZodEnum<["service", "tool", "workflow", "unknown"]>; location: 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; }>; description: z.ZodOptional<z.ZodString>; invocationCallSiteKey: z.ZodOptional<z.ZodString>; clonedFromVariableId: z.ZodOptional<z.ZodNumber>; isInsideCustomTool: z.ZodOptional<z.ZodBoolean>; containingCustomToolId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { name: string; value: string | number | boolean | unknown[] | Record<string, unknown>; type: import("./bubble-definition-schema").BubbleParameterType; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: import("./types").BubbleName; description?: string | undefined; dependencies?: import("./types").BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { name: string; value: string | number | boolean | unknown[] | Record<string, unknown>; type: import("./bubble-definition-schema").BubbleParameterType; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: import("./types").BubbleName; description?: string | undefined; dependencies?: import("./types").BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>>>; workflow: z.ZodOptional<z.ZodObject<{ root: z.ZodArray<z.ZodType<import("./bubble-definition-schema").WorkflowNode, z.ZodTypeDef, import("./bubble-definition-schema").WorkflowNode>, "many">; bubbles: z.ZodRecord<z.ZodNumber, z.ZodObject<{ variableName: z.ZodString; bubbleName: z.ZodType<import("./types").BubbleName>; className: z.ZodString; parameters: z.ZodArray<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 import("./bubble-definition-schema").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: import("./bubble-definition-schema").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: import("./bubble-definition-schema").BubbleParameterType; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }>, "many">; hasAwait: z.ZodBoolean; hasActionCall: z.ZodBoolean; dependencies: z.ZodOptional<z.ZodArray<z.ZodType<import("./types").BubbleName, z.ZodTypeDef, import("./types").BubbleName>, "many">>; dependencyGraph: z.ZodOptional<z.ZodType<import("./bubble-definition-schema").DependencyGraphNode, z.ZodTypeDef, import("./bubble-definition-schema").DependencyGraphNode>>; variableId: z.ZodNumber; nodeType: z.ZodEnum<["service", "tool", "workflow", "unknown"]>; location: 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; }>; description: z.ZodOptional<z.ZodString>; invocationCallSiteKey: z.ZodOptional<z.ZodString>; clonedFromVariableId: z.ZodOptional<z.ZodNumber>; isInsideCustomTool: z.ZodOptional<z.ZodBoolean>; containingCustomToolId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { name: string; value: string | number | boolean | unknown[] | Record<string, unknown>; type: import("./bubble-definition-schema").BubbleParameterType; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: import("./types").BubbleName; description?: string | undefined; dependencies?: import("./types").BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { name: string; value: string | number | boolean | unknown[] | Record<string, unknown>; type: import("./bubble-definition-schema").BubbleParameterType; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: import("./types").BubbleName; description?: string | undefined; dependencies?: import("./types").BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { root: import("./bubble-definition-schema").WorkflowNode[]; bubbles: Record<number, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { name: string; value: string | number | boolean | unknown[] | Record<string, unknown>; type: import("./bubble-definition-schema").BubbleParameterType; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: import("./types").BubbleName; description?: string | undefined; dependencies?: import("./types").BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>; }, { root: import("./bubble-definition-schema").WorkflowNode[]; bubbles: Record<number, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { name: string; value: string | number | boolean | unknown[] | Record<string, unknown>; type: import("./bubble-definition-schema").BubbleParameterType; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: import("./types").BubbleName; description?: string | undefined; dependencies?: import("./types").BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>; }>>; requiredCredentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>; metadata: z.ZodObject<{ validatedAt: z.ZodString; codeLength: z.ZodNumber; strictMode: z.ZodBoolean; flowUpdated: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { strictMode: boolean; validatedAt: string; codeLength: number; flowUpdated?: boolean | undefined; }, { strictMode: boolean; validatedAt: string; codeLength: number; flowUpdated?: boolean | undefined; }>; cron: z.ZodOptional<z.ZodNullable<z.ZodString>>; cronActive: z.ZodOptional<z.ZodBoolean>; defaultInputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { valid: boolean; error: string; success: boolean; eventType: string; webhookPath: string; inputSchema: Record<string, unknown>; metadata: { strictMode: boolean; validatedAt: string; codeLength: number; flowUpdated?: boolean | undefined; }; workflow?: { root: import("./bubble-definition-schema").WorkflowNode[]; bubbles: Record<number, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { name: string; value: string | number | boolean | unknown[] | Record<string, unknown>; type: import("./bubble-definition-schema").BubbleParameterType; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: import("./types").BubbleName; description?: string | undefined; dependencies?: import("./types").BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>; } | undefined; bubbles?: Record<string, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { name: string; value: string | number | boolean | unknown[] | Record<string, unknown>; type: import("./bubble-definition-schema").BubbleParameterType; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: import("./types").BubbleName; description?: string | undefined; dependencies?: import("./types").BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }> | undefined; errors?: string[] | undefined; defaultInputs?: Record<string, unknown> | undefined; bubbleCount?: number | undefined; requiredCredentials?: Record<string, string[]> | undefined; cron?: string | null | undefined; cronActive?: boolean | undefined; }, { valid: boolean; error: string; success: boolean; eventType: string; webhookPath: string; inputSchema: Record<string, unknown>; metadata: { strictMode: boolean; validatedAt: string; codeLength: number; flowUpdated?: boolean | undefined; }; workflow?: { root: import("./bubble-definition-schema").WorkflowNode[]; bubbles: Record<number, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { name: string; value: string | number | boolean | unknown[] | Record<string, unknown>; type: import("./bubble-definition-schema").BubbleParameterType; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: import("./types").BubbleName; description?: string | undefined; dependencies?: import("./types").BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>; } | undefined; bubbles?: Record<string, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { name: string; value: string | number | boolean | unknown[] | Record<string, unknown>; type: import("./bubble-definition-schema").BubbleParameterType; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: import("./types").BubbleName; description?: string | undefined; dependencies?: import("./types").BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }> | undefined; errors?: string[] | undefined; defaultInputs?: Record<string, unknown> | undefined; bubbleCount?: number | undefined; requiredCredentials?: Record<string, string[]> | undefined; cron?: string | null | undefined; cronActive?: boolean | undefined; }>; export type ValidateBubbleFlowResponse = z.infer<typeof validateBubbleFlowCodeResponseSchema>; export type BubbleFlowExecution = z.infer<typeof bubbleFlowExecutionSchema>; export declare enum CredentialType { 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", 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" }
|
|
104
|
+
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'; export declare enum BubbleParameterType { STRING = "string", NUMBER = "number", BOOLEAN = "boolean", OBJECT = "object", ARRAY = "array", ENV = "env", VARIABLE = "variable", EXPRESSION = "expression", UNKNOWN = "unknown" }
|
|
105
|
+
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; }
|
|
106
106
|
export interface DependencyGraphNode { name: BubbleName; variableName?: string; nodeType: BubbleNodeType; uniqueId?: string; variableId?: number; dependencies: DependencyGraphNode[]; functionCallChildren?: FunctionCallWorkflowNode[]; }
|
|
107
107
|
export interface BubbleDependencySpec { name: BubbleName; tools?: BubbleName[]; }
|
|
108
|
-
export type BubbleNodeType = 'service' | 'tool' | 'workflow' | 'unknown'; export declare const BubbleNodeTypeSchema: z.ZodEnum<["service", "tool", "workflow", "unknown"]>; export declare const DependencyGraphNodeSchema: z.ZodType<DependencyGraphNode>; export declare const ParsedBubbleSchema: z.ZodObject<{ variableName: z.ZodString; bubbleName: z.ZodType<BubbleName>; className: z.ZodString; parameters: z.ZodArray<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, {
|
|
108
|
+
export type BubbleNodeType = 'service' | 'tool' | 'workflow' | 'unknown'; export declare const BubbleNodeTypeSchema: z.ZodEnum<["service", "tool", "workflow", "unknown"]>; export declare const DependencyGraphNodeSchema: z.ZodType<DependencyGraphNode>; export declare const ParsedBubbleSchema: z.ZodObject<{ variableName: z.ZodString; bubbleName: z.ZodType<BubbleName>; className: z.ZodString; parameters: z.ZodArray<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; }>, "many">; hasAwait: z.ZodBoolean; hasActionCall: z.ZodBoolean; dependencies: z.ZodOptional<z.ZodArray<z.ZodType<BubbleName, z.ZodTypeDef, BubbleName>, "many">>; dependencyGraph: z.ZodOptional<z.ZodType<DependencyGraphNode, z.ZodTypeDef, DependencyGraphNode>>; }, "strip", z.ZodTypeAny, { variableName: string; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; dependencies?: BubbleName[] | undefined; dependencyGraph?: DependencyGraphNode | undefined; }, { variableName: string; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; dependencies?: BubbleName[] | undefined; dependencyGraph?: DependencyGraphNode | undefined; }>; export declare const BubbleDependencySpecSchema: z.ZodObject<{ name: z.ZodType<BubbleName>; tools: z.ZodOptional<z.ZodArray<z.ZodType<BubbleName, z.ZodTypeDef, BubbleName>, "many">>; }, "strip", z.ZodTypeAny, { name: BubbleName; tools?: BubbleName[] | undefined; }, { name: BubbleName; tools?: BubbleName[] | undefined; }>; export declare const ParsedBubbleWithInfoSchema: z.ZodObject<{ variableName: z.ZodString; bubbleName: z.ZodType<BubbleName>; className: z.ZodString; parameters: z.ZodArray<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; }>, "many">; hasAwait: z.ZodBoolean; hasActionCall: z.ZodBoolean; dependencies: z.ZodOptional<z.ZodArray<z.ZodType<BubbleName, z.ZodTypeDef, BubbleName>, "many">>; dependencyGraph: z.ZodOptional<z.ZodType<DependencyGraphNode, z.ZodTypeDef, DependencyGraphNode>>; variableId: z.ZodNumber; nodeType: z.ZodEnum<["service", "tool", "workflow", "unknown"]>; location: 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; }>; description: z.ZodOptional<z.ZodString>; invocationCallSiteKey: z.ZodOptional<z.ZodString>; clonedFromVariableId: z.ZodOptional<z.ZodNumber>; isInsideCustomTool: z.ZodOptional<z.ZodBoolean>; containingCustomToolId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>; export type ParsedBubbleWithInfo = z.infer<typeof ParsedBubbleWithInfoSchema>; export type BubbleParameterTypeInferred = z.infer<typeof BubbleParameterTypeSchema>; export type BubbleParameterInferred = BubbleParameter; export type BubbleNodeTypeInferred = z.infer<typeof BubbleNodeTypeSchema>; export type DependencyGraphNodeInferred = z.infer<typeof DependencyGraphNodeSchema>; export type ParsedBubbleInferred = z.infer<typeof ParsedBubbleSchema>; export type BubbleDependencySpecInferred = z.infer<typeof BubbleDependencySpecSchema>; export type ParsedBubbleWithInfoInferred = z.infer<typeof ParsedBubbleWithInfoSchema>; export type WorkflowNodeType = 'bubble' | 'if' | 'for' | 'while' | 'try_catch' | 'variable_declaration' | 'return' | 'function_call' | 'code_block' | 'parallel_execution' | 'transformation_function'; export interface BubbleWorkflowNode { type: 'bubble'; variableId: number; }
|
|
109
109
|
export interface ControlFlowWorkflowNode { type: 'if' | 'for' | 'while'; location: { startLine: number; startCol: number; endLine: number; endCol: number; }; condition?: string; children: WorkflowNode[]; elseBranch?: WorkflowNode[]; thenTerminates?: boolean; elseTerminates?: boolean; }
|
|
110
110
|
export interface TryCatchWorkflowNode { type: 'try_catch'; location: { startLine: number; startCol: number; endLine: number; endCol: number; }; children: WorkflowNode[]; catchBlock?: WorkflowNode[]; }
|
|
111
111
|
export interface CodeBlockWorkflowNode { type: 'code_block'; location: { startLine: number; startCol: number; endLine: number; endCol: number; }; code: string; children: WorkflowNode[]; }
|
|
@@ -115,14 +115,14 @@ export interface FunctionCallWorkflowNode { type: 'function_call'; location: { s
|
|
|
115
115
|
export interface ParallelExecutionWorkflowNode { type: 'parallel_execution'; location: { startLine: number; startCol: number; endLine: number; endCol: number; }; code: string; variableDeclaration?: { variableNames: string[]; variableType: 'const' | 'let' | 'var'; }; children: WorkflowNode[]; }
|
|
116
116
|
export interface TransformationFunctionWorkflowNode { type: 'transformation_function'; location: { startLine: number; startCol: number; endLine: number; endCol: number; }; code: string; functionName: string; isMethodCall: boolean; description?: string; arguments?: string; variableId: number; variableDeclaration?: { variableName: string; variableType: 'const' | 'let' | 'var'; }; methodDefinition?: { location: { startLine: number; endLine: number; }; isAsync: boolean; parameters: string[]; }; }
|
|
117
117
|
export type WorkflowNode = BubbleWorkflowNode | ControlFlowWorkflowNode | TryCatchWorkflowNode | CodeBlockWorkflowNode | VariableDeclarationBlockNode | ReturnWorkflowNode | FunctionCallWorkflowNode | ParallelExecutionWorkflowNode | TransformationFunctionWorkflowNode; export interface ParsedWorkflow { root: WorkflowNode[]; bubbles: Record<number, ParsedBubbleWithInfo>; }
|
|
118
|
-
export declare const WorkflowNodeTypeSchema: z.ZodEnum<["bubble", "if", "for", "while", "try_catch", "variable_declaration", "return", "function_call", "code_block", "parallel_execution", "transformation_function"]>; export declare const LocationSchema: 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; }>; export declare const BubbleWorkflowNodeSchema: z.ZodType<BubbleWorkflowNode>; export declare const ControlFlowWorkflowNodeSchema: z.ZodType<ControlFlowWorkflowNode>; export declare const TryCatchWorkflowNodeSchema: z.ZodType<TryCatchWorkflowNode>; export declare const CodeBlockWorkflowNodeSchema: z.ZodType<CodeBlockWorkflowNode>; export declare const VariableDeclarationBlockNodeSchema: z.ZodType<VariableDeclarationBlockNode>; export declare const ReturnWorkflowNodeSchema: z.ZodType<ReturnWorkflowNode>; export declare const FunctionCallWorkflowNodeSchema: z.ZodType<FunctionCallWorkflowNode>; export declare const ParallelExecutionWorkflowNodeSchema: z.ZodType<ParallelExecutionWorkflowNode>; export declare const TransformationFunctionWorkflowNodeSchema: z.ZodType<TransformationFunctionWorkflowNode>; export declare const WorkflowNodeSchema: z.ZodType<WorkflowNode>; export declare const ParsedWorkflowSchema: z.ZodObject<{ root: z.ZodArray<z.ZodType<WorkflowNode, z.ZodTypeDef, WorkflowNode>, "many">; bubbles: z.ZodRecord<z.ZodNumber, z.ZodObject<{ variableName: z.ZodString; bubbleName: z.ZodType<BubbleName>; className: z.ZodString; parameters: z.ZodArray<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, {
|
|
119
|
-
export type BubbleName = 'hello-world' | 'ai-agent' | 'postgresql' | 'slack' | 'resend' | 'http' | 'slack-formatter-agent' | 'database-analyzer' | 'slack-notifier' | 'get-bubble-details-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'; export declare const generateBubbleFlowCodeSchema: z.ZodObject<{ prompt: z.ZodString; flowId: z.ZodOptional<z.ZodNumber>; messages: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"user">; content: z.ZodString; }, "strip", z.ZodTypeAny, { type: "user"; content: string; id: string; timestamp: string; }, { type: "user"; content: string; id: string; timestamp: string; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"assistant">; content: z.ZodString; code: z.ZodOptional<z.ZodString>; resultType: z.ZodOptional<z.ZodEnum<["code", "question", "answer", "reject"]>>; bubbleParameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { type: "assistant"; content: string; id: string; timestamp: string; code?: string | undefined; bubbleParameters?: Record<string, unknown> | undefined; resultType?: "code" | "question" | "answer" | "reject" | undefined; }, { type: "assistant"; content: string; id: string; timestamp: string; code?: string | undefined; bubbleParameters?: Record<string, unknown> | undefined; resultType?: "code" | "question" | "answer" | "reject" | undefined; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"clarification_request">; questions: z.ZodArray<z.ZodObject<{ id: z.ZodString; question: z.ZodString; choices: z.ZodArray<z.ZodObject<{ id: z.ZodString; label: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; label: string; description?: string | undefined; }, { id: string; label: string; description?: string | undefined; }>, "many">; context: z.ZodOptional<z.ZodString>; allowMultiple: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { type: "clarification_request"; id: string; timestamp: string; questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }[]; }, { type: "clarification_request"; id: string; timestamp: string; questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }[]; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"clarification_response">; answers: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>; originalQuestions: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; question: z.ZodString; choices: z.ZodArray<z.ZodObject<{ id: z.ZodString; label: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; label: string; description?: string | undefined; }, { id: string; label: string; description?: string | undefined; }>, "many">; context: z.ZodOptional<z.ZodString>; allowMultiple: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { type: "clarification_response"; id: string; timestamp: string; answers: Record<string, string[]>; originalQuestions?: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }[] | undefined; }, { type: "clarification_response"; id: string; timestamp: string; answers: Record<string, string[]>; originalQuestions?: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }[] | undefined; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"context_request">; request: z.ZodObject<{ flowId: z.ZodString; flowCode: z.ZodString; requiredCredentials: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }>; }, "strip", z.ZodTypeAny, { type: "context_request"; id: string; timestamp: string; request: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }; }, { type: "context_request"; id: string; timestamp: string; request: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"context_response">; answer: z.ZodObject<{ flowId: z.ZodString; status: z.ZodEnum<["success", "rejected", "error"]>; result: z.ZodOptional<z.ZodUnknown>; error: z.ZodOptional<z.ZodString>; originalRequest: z.ZodOptional<z.ZodObject<{ flowId: z.ZodString; flowCode: z.ZodString; requiredCredentials: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }>>; }, "strip", z.ZodTypeAny, { status: "success" | "error" | "rejected"; flowId: string; result?: unknown; error?: string | undefined; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }, { status: "success" | "error" | "rejected"; flowId: string; result?: unknown; error?: string | undefined; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }>; credentialTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { type: "context_response"; id: string; timestamp: string; answer: { status: "success" | "error" | "rejected"; flowId: string; result?: unknown; error?: string | undefined; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }; credentialTypes?: string[] | undefined; }, { type: "context_response"; id: string; timestamp: string; answer: { status: "success" | "error" | "rejected"; flowId: string; result?: unknown; error?: string | undefined; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }; credentialTypes?: string[] | undefined; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"plan">; plan: z.ZodObject<{ summary: z.ZodString; steps: z.ZodArray<z.ZodObject<{ title: z.ZodString; description: z.ZodString; bubblesUsed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { description: string; title: string; bubblesUsed?: string[] | undefined; }, { description: string; title: string; bubblesUsed?: string[] | undefined; }>, "many">; estimatedBubbles: z.ZodArray<z.ZodString, "many">; }, "strip", z.ZodTypeAny, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }>; }, "strip", z.ZodTypeAny, { type: "plan"; id: string; timestamp: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }; }, { type: "plan"; id: string; timestamp: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"plan_approval">; approved: z.ZodBoolean; comment: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "plan_approval"; id: string; timestamp: string; approved: boolean; comment?: string | undefined; }, { type: "plan_approval"; id: string; timestamp: string; approved: boolean; comment?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"system">; content: z.ZodString; }, "strip", z.ZodTypeAny, { type: "system"; content: string; id: string; timestamp: string; }, { type: "system"; content: string; id: string; timestamp: string; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"tool_result">; toolName: z.ZodString; toolCallId: z.ZodString; input: z.ZodUnknown; output: z.ZodUnknown; duration: z.ZodNumber; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { type: "tool_result"; duration: number; id: string; toolCallId: string; timestamp: string; success: boolean; toolName: string; input?: unknown; output?: unknown; }, { type: "tool_result"; duration: number; id: string; toolCallId: string; timestamp: string; success: boolean; toolName: string; input?: unknown; output?: unknown; }>]>, "many">>; planContext: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { prompt: string; flowId?: number | undefined; messages?: ({ type: "user"; content: string; id: string; timestamp: string; } | { type: "assistant"; content: string; id: string; timestamp: string; code?: string | undefined; bubbleParameters?: Record<string, unknown> | undefined; resultType?: "code" | "question" | "answer" | "reject" | undefined; } | { type: "clarification_request"; id: string; timestamp: string; questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }[]; } | { type: "clarification_response"; id: string; timestamp: string; answers: Record<string, string[]>; originalQuestions?: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }[] | undefined; } | { type: "context_request"; id: string; timestamp: string; request: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }; } | { type: "context_response"; id: string; timestamp: string; answer: { status: "success" | "error" | "rejected"; flowId: string; result?: unknown; error?: string | undefined; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }; credentialTypes?: string[] | undefined; } | { type: "plan"; id: string; timestamp: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }; } | { type: "plan_approval"; id: string; timestamp: string; approved: boolean; comment?: string | undefined; } | { type: "system"; content: string; id: string; timestamp: string; } | { type: "tool_result"; duration: number; id: string; toolCallId: string; timestamp: string; success: boolean; toolName: string; input?: unknown; output?: unknown; })[] | undefined; planContext?: string | undefined; }, { prompt: string; flowId?: number | undefined; messages?: ({ type: "user"; content: string; id: string; timestamp: string; } | { type: "assistant"; content: string; id: string; timestamp: string; code?: string | undefined; bubbleParameters?: Record<string, unknown> | undefined; resultType?: "code" | "question" | "answer" | "reject" | undefined; } | { type: "clarification_request"; id: string; timestamp: string; questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }[]; } | { type: "clarification_response"; id: string; timestamp: string; answers: Record<string, string[]>; originalQuestions?: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }[] | undefined; } | { type: "context_request"; id: string; timestamp: string; request: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }; } | { type: "context_response"; id: string; timestamp: string; answer: { status: "success" | "error" | "rejected"; flowId: string; result?: unknown; error?: string | undefined; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }; credentialTypes?: string[] | undefined; } | { type: "plan"; id: string; timestamp: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }; } | { type: "plan_approval"; id: string; timestamp: string; approved: boolean; comment?: string | undefined; } | { type: "system"; content: string; id: string; timestamp: string; } | { type: "tool_result"; duration: number; id: string; toolCallId: string; timestamp: string; success: boolean; toolName: string; input?: unknown; output?: unknown; })[] | undefined; planContext?: string | undefined; }>; export declare const generateBubbleFlowCodeResponseSchema: z.ZodObject<{ generatedCode: z.ZodString; isValid: z.ZodBoolean; success: z.ZodBoolean; error: z.ZodString; bubbleParameters: z.ZodRecord<z.ZodString, z.ZodObject<{ variableName: z.ZodString; bubbleName: z.ZodType<import("./types").BubbleName>; className: z.ZodString; parameters: z.ZodArray<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, { type: BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }, { type: BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }>, "many">; hasAwait: z.ZodBoolean; hasActionCall: z.ZodBoolean; dependencies: z.ZodOptional<z.ZodArray<z.ZodType<import("./types").BubbleName, z.ZodTypeDef, import("./types").BubbleName>, "many">>; dependencyGraph: z.ZodOptional<z.ZodType<import("./bubble-definition-schema").DependencyGraphNode, z.ZodTypeDef, import("./bubble-definition-schema").DependencyGraphNode>>; variableId: z.ZodNumber; nodeType: z.ZodEnum<["service", "tool", "workflow", "unknown"]>; location: 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; }>; description: z.ZodOptional<z.ZodString>; invocationCallSiteKey: z.ZodOptional<z.ZodString>; clonedFromVariableId: z.ZodOptional<z.ZodNumber>; isInsideCustomTool: z.ZodOptional<z.ZodBoolean>; containingCustomToolId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "unknown" | "tool" | "service" | "workflow"; className: string; parameters: { type: BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: import("./types").BubbleName; description?: string | undefined; dependencies?: import("./types").BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "unknown" | "tool" | "service" | "workflow"; className: string; parameters: { type: BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: import("./types").BubbleName; description?: string | undefined; dependencies?: import("./types").BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>>; requiredCredentials: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { success: boolean; error: string; requiredCredentials: Record<string, string[]>; bubbleParameters: Record<string, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "unknown" | "tool" | "service" | "workflow"; className: string; parameters: { type: BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: import("./types").BubbleName; description?: string | undefined; dependencies?: import("./types").BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>; generatedCode: string; isValid: boolean; }, { success: boolean; error: string; requiredCredentials: Record<string, string[]>; bubbleParameters: Record<string, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "unknown" | "tool" | "service" | "workflow"; className: string; parameters: { type: BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: import("./types").BubbleName; description?: string | undefined; dependencies?: import("./types").BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>; generatedCode: string; isValid: boolean; }>; export declare const GenerationResultSchema: z.ZodObject<{ generatedCode: z.ZodString; isValid: z.ZodBoolean; success: z.ZodBoolean; error: z.ZodString; flowId: z.ZodOptional<z.ZodNumber>; toolCalls: z.ZodArray<z.ZodUnknown, "many">; summary: z.ZodDefault<z.ZodString>; inputsSchema: z.ZodDefault<z.ZodString>; serviceUsage: z.ZodOptional<z.ZodArray<z.ZodObject<{ service: z.ZodNativeEnum<typeof CredentialType>; subService: z.ZodOptional<z.ZodString>; unit: z.ZodString; usage: z.ZodNumber; unitCost: z.ZodNumber; totalCost: z.ZodNumber; }, "strip", z.ZodTypeAny, { service: CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }, { service: CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }>, "many">>; bubbleCount: z.ZodOptional<z.ZodNumber>; codeLength: z.ZodOptional<z.ZodNumber>; bubbleParameters: z.ZodOptional<z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodObject<{ variableName: z.ZodString; bubbleName: z.ZodType<import("./types").BubbleName>; className: z.ZodString; parameters: z.ZodArray<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, { type: BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }, { type: BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }>, "many">; hasAwait: z.ZodBoolean; hasActionCall: z.ZodBoolean; dependencies: z.ZodOptional<z.ZodArray<z.ZodType<import("./types").BubbleName, z.ZodTypeDef, import("./types").BubbleName>, "many">>; dependencyGraph: z.ZodOptional<z.ZodType<import("./bubble-definition-schema").DependencyGraphNode, z.ZodTypeDef, import("./bubble-definition-schema").DependencyGraphNode>>; variableId: z.ZodNumber; nodeType: z.ZodEnum<["service", "tool", "workflow", "unknown"]>; location: 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; }>; description: z.ZodOptional<z.ZodString>; invocationCallSiteKey: z.ZodOptional<z.ZodString>; clonedFromVariableId: z.ZodOptional<z.ZodNumber>; isInsideCustomTool: z.ZodOptional<z.ZodBoolean>; containingCustomToolId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "unknown" | "tool" | "service" | "workflow"; className: string; parameters: { type: BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: import("./types").BubbleName; description?: string | undefined; dependencies?: import("./types").BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "unknown" | "tool" | "service" | "workflow"; className: string; parameters: { type: BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: import("./types").BubbleName; description?: string | undefined; dependencies?: import("./types").BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>>>; }, "strip", z.ZodTypeAny, { success: boolean; error: string; summary: string; generatedCode: string; isValid: boolean; toolCalls: unknown[]; inputsSchema: string; serviceUsage?: { service: CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }[] | undefined; flowId?: number | undefined; bubbleCount?: number | undefined; codeLength?: number | undefined; bubbleParameters?: Record<string | number, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "unknown" | "tool" | "service" | "workflow"; className: string; parameters: { type: BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: import("./types").BubbleName; description?: string | undefined; dependencies?: import("./types").BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }> | undefined; }, { success: boolean; error: string; generatedCode: string; isValid: boolean; toolCalls: unknown[]; serviceUsage?: { service: CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }[] | undefined; summary?: string | undefined; flowId?: number | undefined; bubbleCount?: number | undefined; codeLength?: number | undefined; bubbleParameters?: Record<string | number, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "unknown" | "tool" | "service" | "workflow"; className: string; parameters: { type: BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: import("./types").BubbleName; description?: string | undefined; dependencies?: import("./types").BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }> | undefined; inputsSchema?: string | undefined; }>; export declare const generateBubbleFlowTemplateSchema: z.ZodObject<{ name: z.ZodString; description: z.ZodString; roles: z.ZodString; useCase: z.ZodLiteral<"slack-data-scientist">; verbosity: z.ZodOptional<z.ZodEnum<["1", "2", "3", "4", "5"]>>; technicality: z.ZodOptional<z.ZodEnum<["1", "2", "3", "4", "5"]>>; includeQuery: z.ZodOptional<z.ZodBoolean>; includeExplanation: z.ZodOptional<z.ZodBoolean>; maxQueries: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { description: string; name: string; roles: string; useCase: "slack-data-scientist"; verbosity?: "1" | "2" | "3" | "4" | "5" | undefined; technicality?: "1" | "2" | "3" | "4" | "5" | undefined; includeQuery?: boolean | undefined; includeExplanation?: boolean | undefined; maxQueries?: number | undefined; }, { description: string; name: string; roles: string; useCase: "slack-data-scientist"; verbosity?: "1" | "2" | "3" | "4" | "5" | undefined; technicality?: "1" | "2" | "3" | "4" | "5" | undefined; includeQuery?: boolean | undefined; includeExplanation?: boolean | undefined; maxQueries?: number | undefined; }>; export declare const generateDocumentGenerationTemplateSchema: z.ZodObject<{ name: z.ZodString; description: z.ZodDefault<z.ZodString>; outputDescription: z.ZodString; outputFormat: z.ZodOptional<z.ZodEnum<["html", "csv", "json"]>>; conversionOptions: z.ZodOptional<z.ZodObject<{ preserveStructure: z.ZodOptional<z.ZodBoolean>; includeVisualDescriptions: z.ZodOptional<z.ZodBoolean>; extractNumericalData: z.ZodOptional<z.ZodBoolean>; combinePages: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { preserveStructure?: boolean | undefined; includeVisualDescriptions?: boolean | undefined; extractNumericalData?: boolean | undefined; combinePages?: boolean | undefined; }, { preserveStructure?: boolean | undefined; includeVisualDescriptions?: boolean | undefined; extractNumericalData?: boolean | undefined; combinePages?: boolean | undefined; }>>; imageOptions: z.ZodOptional<z.ZodObject<{ format: z.ZodOptional<z.ZodEnum<["png", "jpg", "jpeg"]>>; quality: z.ZodOptional<z.ZodNumber>; dpi: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { format?: "png" | "jpg" | "jpeg" | undefined; quality?: number | undefined; dpi?: number | undefined; }, { format?: "png" | "jpg" | "jpeg" | undefined; quality?: number | undefined; dpi?: number | undefined; }>>; aiOptions: z.ZodOptional<z.ZodObject<{ model: z.ZodOptional<z.ZodString>; temperature: z.ZodOptional<z.ZodNumber>; maxTokens: z.ZodOptional<z.ZodNumber>; jsonMode: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { model?: string | undefined; temperature?: number | undefined; maxTokens?: number | undefined; jsonMode?: boolean | undefined; }, { model?: string | undefined; temperature?: number | undefined; maxTokens?: number | undefined; jsonMode?: boolean | undefined; }>>; metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { description: string; name: string; outputDescription: string; metadata?: Record<string, unknown> | undefined; outputFormat?: "html" | "csv" | "json" | undefined; conversionOptions?: { preserveStructure?: boolean | undefined; includeVisualDescriptions?: boolean | undefined; extractNumericalData?: boolean | undefined; combinePages?: boolean | undefined; } | undefined; imageOptions?: { format?: "png" | "jpg" | "jpeg" | undefined; quality?: number | undefined; dpi?: number | undefined; } | undefined; aiOptions?: { model?: string | undefined; temperature?: number | undefined; maxTokens?: number | undefined; jsonMode?: boolean | undefined; } | undefined; }, { name: string; outputDescription: string; description?: string | undefined; metadata?: Record<string, unknown> | undefined; outputFormat?: "html" | "csv" | "json" | undefined; conversionOptions?: { preserveStructure?: boolean | undefined; includeVisualDescriptions?: boolean | undefined; extractNumericalData?: boolean | undefined; combinePages?: boolean | undefined; } | undefined; imageOptions?: { format?: "png" | "jpg" | "jpeg" | undefined; quality?: number | undefined; dpi?: number | undefined; } | undefined; aiOptions?: { model?: string | undefined; temperature?: number | undefined; maxTokens?: number | undefined; jsonMode?: boolean | undefined; } | undefined; }>; export declare const bubbleFlowTemplateResponseSchema: z.ZodObject<{ id: z.ZodNumber; name: z.ZodString; description: z.ZodString; eventType: z.ZodString; displayedBubbleParameters: z.ZodRecord<z.ZodString, z.ZodObject<{ variableName: z.ZodString; bubbleName: z.ZodString; className: z.ZodString; parameters: z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodUnknown; type: z.ZodNativeEnum<typeof BubbleParameterType>; }, "strip", z.ZodTypeAny, { type: BubbleParameterType; name: string; value?: unknown; }, { type: BubbleParameterType; name: string; value?: unknown; }>, "many">; hasAwait: z.ZodBoolean; hasActionCall: z.ZodBoolean; }, "strip", z.ZodTypeAny, { variableName: string; className: string; parameters: { type: BubbleParameterType; name: string; value?: unknown; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: string; }, { variableName: string; className: string; parameters: { type: BubbleParameterType; name: string; value?: unknown; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: string; }>>; bubbleParameters: z.ZodRecord<z.ZodString, z.ZodObject<{ variableName: z.ZodString; bubbleName: z.ZodString; className: z.ZodString; parameters: z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodUnknown; type: z.ZodNativeEnum<typeof BubbleParameterType>; }, "strip", z.ZodTypeAny, { type: BubbleParameterType; name: string; value?: unknown; }, { type: BubbleParameterType; name: string; value?: unknown; }>, "many">; hasAwait: z.ZodBoolean; hasActionCall: z.ZodBoolean; }, "strip", z.ZodTypeAny, { variableName: string; className: string; parameters: { type: BubbleParameterType; name: string; value?: unknown; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: string; }, { variableName: string; className: string; parameters: { type: BubbleParameterType; name: string; value?: unknown; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: string; }>>; requiredCredentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">>>; createdAt: z.ZodString; updatedAt: z.ZodString; webhook: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; url: z.ZodString; path: z.ZodString; active: z.ZodBoolean; }, "strip", z.ZodTypeAny, { path: string; url: string; id: number; active: boolean; }, { path: string; url: string; id: number; active: boolean; }>>; }, "strip", z.ZodTypeAny, { description: string; name: string; id: number; createdAt: string; updatedAt: string; eventType: string; bubbleParameters: Record<string, { variableName: string; className: string; parameters: { type: BubbleParameterType; name: string; value?: unknown; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: string; }>; displayedBubbleParameters: Record<string, { variableName: string; className: string; parameters: { type: BubbleParameterType; name: string; value?: unknown; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: string; }>; requiredCredentials?: Record<string, CredentialType[]> | undefined; webhook?: { path: string; url: string; id: number; active: boolean; } | undefined; }, { description: string; name: string; id: number; createdAt: string; updatedAt: string; eventType: string; bubbleParameters: Record<string, { variableName: string; className: string; parameters: { type: BubbleParameterType; name: string; value?: unknown; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: string; }>; displayedBubbleParameters: Record<string, { variableName: string; className: string; parameters: { type: BubbleParameterType; name: string; value?: unknown; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: string; }>; requiredCredentials?: Record<string, CredentialType[]> | undefined; webhook?: { path: string; url: string; id: number; active: boolean; } | undefined; }>; export type GenerateBubbleFlowCodeResponse = z.infer<typeof generateBubbleFlowCodeResponseSchema>; export type GenerateBubbleFlowTemplateRequest = z.infer<typeof generateBubbleFlowTemplateSchema>; export type GenerateDocumentGenerationTemplateRequest = z.infer<typeof generateDocumentGenerationTemplateSchema>; export type BubbleFlowTemplateResponse = z.infer<typeof bubbleFlowTemplateResponseSchema>; export type GenerationResult = z.infer<typeof GenerationResultSchema>; export declare const webhookExecutionResponseSchema: z.ZodObject<{ executionId: z.ZodNumber; success: z.ZodBoolean; data: z.ZodOptional<z.ZodUnknown>; error: z.ZodOptional<z.ZodString>; webhook: z.ZodObject<{ userId: z.ZodString; path: z.ZodString; triggeredAt: z.ZodString; method: z.ZodString; }, "strip", z.ZodTypeAny, { path: string; userId: string; triggeredAt: string; method: string; }, { path: string; userId: string; triggeredAt: string; method: string; }>; }, "strip", z.ZodTypeAny, { success: boolean; executionId: number; webhook: { path: string; userId: string; triggeredAt: string; method: string; }; error?: string | undefined; data?: unknown; }, { success: boolean; executionId: number; webhook: { path: string; userId: string; triggeredAt: string; method: string; }; error?: string | undefined; data?: unknown; }>; export declare const webhookResponseSchema: z.ZodObject<{ challenge: z.ZodOptional<z.ZodString>; executionId: z.ZodOptional<z.ZodNumber>; success: z.ZodOptional<z.ZodBoolean>; data: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodUndefined]>>; error: z.ZodOptional<z.ZodString>; webhook: z.ZodOptional<z.ZodObject<{ userId: z.ZodString; path: z.ZodString; triggeredAt: z.ZodString; method: z.ZodString; }, "strip", z.ZodTypeAny, { path: string; userId: string; triggeredAt: string; method: string; }, { path: string; userId: string; triggeredAt: string; method: string; }>>; }, "strip", z.ZodTypeAny, { error?: string | undefined; challenge?: string | undefined; success?: boolean | undefined; executionId?: number | undefined; data?: Record<string, unknown> | undefined; webhook?: { path: string; userId: string; triggeredAt: string; method: string; } | undefined; }, { error?: string | undefined; challenge?: string | undefined; success?: boolean | undefined; executionId?: number | undefined; data?: Record<string, unknown> | undefined; webhook?: { path: string; userId: string; triggeredAt: string; method: string; } | undefined; }>; export type WebhookResponse = z.infer<typeof webhookResponseSchema>; export type WebhookExecutionResponse = z.infer<typeof webhookExecutionResponseSchema>; export declare const hackathonOfferSchema: z.ZodObject<{ isActive: z.ZodBoolean; expiresAt: z.ZodString; redeemedAt: z.ZodString; }, "strip", z.ZodTypeAny, { isActive: boolean; expiresAt: string; redeemedAt: string; }, { isActive: boolean; expiresAt: string; redeemedAt: string; }>; export type HackathonOffer = z.infer<typeof hackathonOfferSchema>; export declare const specialOfferSchema: z.ZodObject<{ isActive: z.ZodBoolean; plan: z.ZodString; expiresAt: z.ZodNullable<z.ZodString>; }, "strip", z.ZodTypeAny, { isActive: boolean; plan: string; expiresAt: string | null; }, { isActive: boolean; plan: string; expiresAt: string | null; }>; export type SpecialOffer = z.infer<typeof specialOfferSchema>; export declare const redeemCouponRequestSchema: z.ZodObject<{ code: z.ZodString; }, "strip", z.ZodTypeAny, { code: string; }, { code: string; }>; export type RedeemCouponRequest = z.infer<typeof redeemCouponRequestSchema>; export declare const redeemCouponResponseSchema: z.ZodObject<{ success: z.ZodBoolean; message: z.ZodString; expiresAt: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { message: string; success: boolean; expiresAt?: string | undefined; }, { message: string; success: boolean; expiresAt?: string | undefined; }>; export type RedeemCouponResponse = z.infer<typeof redeemCouponResponseSchema>; export declare const subscriptionStatusResponseSchema: z.ZodObject<{ userId: z.ZodString; plan: z.ZodString; planDisplayName: z.ZodString; features: z.ZodArray<z.ZodString, "many">; usage: z.ZodObject<{ executionCount: z.ZodNumber; executionLimit: z.ZodNumber; creditLimit: z.ZodNumber; activeFlowLimit: z.ZodNumber; estimatedMonthlyCost: z.ZodNumber; resetDate: z.ZodString; tokenUsage: z.ZodArray<z.ZodObject<{ modelName: z.ZodString; inputTokens: z.ZodNumber; outputTokens: z.ZodNumber; totalTokens: z.ZodNumber; }, "strip", z.ZodTypeAny, { modelName: string; inputTokens: number; outputTokens: number; totalTokens: number; }, { modelName: string; inputTokens: number; outputTokens: number; totalTokens: number; }>, "many">; serviceUsage: z.ZodArray<z.ZodObject<{ service: z.ZodNativeEnum<typeof import("./types").CredentialType>; subService: z.ZodOptional<z.ZodString>; unit: z.ZodString; usage: z.ZodNumber; unitCost: z.ZodNumber; totalCost: z.ZodNumber; }, "strip", z.ZodTypeAny, { service: import("./types").CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }, { service: import("./types").CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { serviceUsage: { service: import("./types").CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }[]; executionCount: number; executionLimit: number; creditLimit: number; activeFlowLimit: number; estimatedMonthlyCost: number; resetDate: string; tokenUsage: { modelName: string; inputTokens: number; outputTokens: number; totalTokens: number; }[]; }, { serviceUsage: { service: import("./types").CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }[]; executionCount: number; executionLimit: number; creditLimit: number; activeFlowLimit: number; estimatedMonthlyCost: number; resetDate: string; tokenUsage: { modelName: string; inputTokens: number; outputTokens: number; totalTokens: number; }[]; }>; isActive: z.ZodBoolean; hackathonOffer: z.ZodOptional<z.ZodObject<{ isActive: z.ZodBoolean; expiresAt: z.ZodString; redeemedAt: z.ZodString; }, "strip", z.ZodTypeAny, { isActive: boolean; expiresAt: string; redeemedAt: string; }, { isActive: boolean; expiresAt: string; redeemedAt: string; }>>; specialOffer: z.ZodOptional<z.ZodObject<{ isActive: z.ZodBoolean; plan: z.ZodString; expiresAt: z.ZodNullable<z.ZodString>; }, "strip", z.ZodTypeAny, { isActive: boolean; plan: string; expiresAt: string | null; }, { isActive: boolean; plan: string; expiresAt: string | null; }>>; }, "strip", z.ZodTypeAny, { usage: { serviceUsage: { service: import("./types").CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }[]; executionCount: number; executionLimit: number; creditLimit: number; activeFlowLimit: number; estimatedMonthlyCost: number; resetDate: string; tokenUsage: { modelName: string; inputTokens: number; outputTokens: number; totalTokens: number; }[]; }; isActive: boolean; plan: string; userId: string; planDisplayName: string; features: string[]; hackathonOffer?: { isActive: boolean; expiresAt: string; redeemedAt: string; } | undefined; specialOffer?: { isActive: boolean; plan: string; expiresAt: string | null; } | undefined; }, { usage: { serviceUsage: { service: import("./types").CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }[]; executionCount: number; executionLimit: number; creditLimit: number; activeFlowLimit: number; estimatedMonthlyCost: number; resetDate: string; tokenUsage: { modelName: string; inputTokens: number; outputTokens: number; totalTokens: number; }[]; }; isActive: boolean; plan: string; userId: string; planDisplayName: string; features: string[]; hackathonOffer?: { isActive: boolean; expiresAt: string; redeemedAt: string; } | undefined; specialOffer?: { isActive: boolean; plan: string; expiresAt: string | null; } | undefined; }>; export type SubscriptionStatusResponse = z.infer<typeof subscriptionStatusResponseSchema>; export declare const errorResponseSchema: z.ZodObject<{ error: z.ZodString; details: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { error: string; details?: string | undefined; }, { error: string; details?: string | undefined; }>; export type ErrorResponse = z.infer<typeof errorResponseSchema>; export interface HealthCheckResponse { message: string; timestamp: string; }
|
|
120
|
-
export declare const slackUrlVerificationSchema: z.ZodObject<{ token: z.ZodString; challenge: z.ZodString; type: z.ZodLiteral<"url_verification">; }, "strip", z.ZodTypeAny, { type: "url_verification"; token: string; challenge: string; }, { type: "url_verification"; token: string; challenge: string; }>; export declare const slackUrlVerificationResponseSchema: z.ZodObject<{ challenge: z.ZodString; }, "strip", z.ZodTypeAny, { challenge: string; }, { challenge: string; }>; export type SlackUrlVerificationResponse = z.infer<typeof slackUrlVerificationResponseSchema>; export declare const MilkTeaRequestSchema: z.ZodObject<{ userRequest: z.ZodString; bubbleName: z.ZodString; bubbleSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>; currentCode: z.ZodOptional<z.ZodString>; availableCredentials: z.ZodDefault<z.ZodArray<z.ZodString, "many">>; userName: z.ZodString; insertLocation: z.ZodOptional<z.ZodString>; conversationHistory: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{ role: z.ZodEnum<["user", "assistant", "tool"]>; content: z.ZodString; toolCallId: z.ZodOptional<z.ZodString>; name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, {
|
|
121
|
-
export type BubbleName = 'hello-world' | 'ai-agent' | 'postgresql' | 'slack' | 'resend' | 'http' | 'slack-formatter-agent' | 'database-analyzer' | 'slack-notifier' | 'get-bubble-details-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'; export declare const PEARL_DEFAULT_MODEL: AvailableModel; export declare const PearlRequestSchema: z.ZodObject<{ userRequest: z.ZodString; currentCode: z.ZodOptional<z.ZodString>; userName: z.ZodString; availableVariables: z.ZodArray<z.ZodAny, "many">; conversationHistory: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{ role: z.ZodEnum<["user", "assistant", "tool"]>; content: z.ZodString; toolCallId: z.ZodOptional<z.ZodString>; name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { content: string; role: "user" | "assistant" | "tool"; name?: string | undefined; toolCallId?: string | undefined; }, { content: string; role: "user" | "assistant" | "tool"; name?: string | undefined; toolCallId?: string | undefined; }>, "many">>>; model: z.ZodDefault<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/anthropic/claude-sonnet-4.5", "openrouter/google/gemini-3-pro-preview", "openrouter/morph/morph-v3-large", "openrouter/x-ai/grok-4.1-fast", "openrouter/openai/gpt-oss-120b", "openrouter/deepseek/deepseek-chat-v3.1"]>>; additionalContext: z.ZodOptional<z.ZodString>; uploadedFiles: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; content: z.ZodString; fileType: z.ZodEnum<["image", "text"]>; }, "strip", z.ZodTypeAny, { name: string; content: string; fileType: "text" | "image"; }, { name: string; content: string; fileType: "text" | "image"; }>, "many">>>; }, "strip", z.ZodTypeAny, { model: "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/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/x-ai/grok-4.1-fast" | "openrouter/openai/gpt-oss-120b" | "openrouter/deepseek/deepseek-chat-v3.1"; userRequest: string; userName: string; conversationHistory: { content: string; role: "user" | "assistant" | "tool"; name?: string | undefined; toolCallId?: string | undefined; }[]; availableVariables: any[]; uploadedFiles: { name: string; content: string; fileType: "text" | "image"; }[]; currentCode?: string | undefined; additionalContext?: string | undefined; }, { userRequest: string; userName: string; availableVariables: any[]; model?: "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/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/x-ai/grok-4.1-fast" | "openrouter/openai/gpt-oss-120b" | "openrouter/deepseek/deepseek-chat-v3.1" | undefined; currentCode?: string | undefined; conversationHistory?: { content: string; role: "user" | "assistant" | "tool"; name?: string | undefined; toolCallId?: string | undefined; }[] | undefined; additionalContext?: string | undefined; uploadedFiles?: { name: string; content: string; fileType: "text" | "image"; }[] | undefined; }>; export declare const PearlResponseSchema: z.ZodObject<{ type: z.ZodEnum<["code", "question", "answer", "reject"]>; message: z.ZodString; snippet: z.ZodOptional<z.ZodString>; bubbleParameters: z.ZodOptional<z.ZodRecord<z.ZodNumber, z.ZodObject<{ variableName: z.ZodString; bubbleName: z.ZodType<import("./types.js").BubbleName>; className: z.ZodString; parameters: z.ZodArray<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 import("./bubble-definition-schema.js").BubbleParameterType>; source: z.ZodOptional<z.ZodEnum<["object-property", "first-arg", "spread"]>>; }, "strip", z.ZodTypeAny, { type: import("./bubble-definition-schema.js").BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }, { type: import("./bubble-definition-schema.js").BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }>, "many">; hasAwait: z.ZodBoolean; hasActionCall: z.ZodBoolean; dependencies: z.ZodOptional<z.ZodArray<z.ZodType<import("./types.js").BubbleName, z.ZodTypeDef, import("./types.js").BubbleName>, "many">>; dependencyGraph: z.ZodOptional<z.ZodType<import("./bubble-definition-schema.js").DependencyGraphNode, z.ZodTypeDef, import("./bubble-definition-schema.js").DependencyGraphNode>>; variableId: z.ZodNumber; nodeType: z.ZodEnum<["service", "tool", "workflow", "unknown"]>; location: 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; }>; description: z.ZodOptional<z.ZodString>; invocationCallSiteKey: z.ZodOptional<z.ZodString>; clonedFromVariableId: z.ZodOptional<z.ZodNumber>; isInsideCustomTool: z.ZodOptional<z.ZodBoolean>; containingCustomToolId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "unknown" | "tool" | "service" | "workflow"; className: string; parameters: { type: import("./bubble-definition-schema.js").BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: import("./types.js").BubbleName; description?: string | undefined; dependencies?: import("./types.js").BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "unknown" | "tool" | "service" | "workflow"; className: string; parameters: { type: import("./bubble-definition-schema.js").BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: import("./types.js").BubbleName; description?: string | undefined; dependencies?: import("./types.js").BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>>>; inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; requiredCredentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">>>; success: z.ZodBoolean; error: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "code" | "question" | "answer" | "reject"; message: string; success: boolean; error?: string | undefined; inputSchema?: Record<string, unknown> | undefined; requiredCredentials?: Record<string, CredentialType[]> | undefined; bubbleParameters?: Record<number, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "unknown" | "tool" | "service" | "workflow"; className: string; parameters: { type: import("./bubble-definition-schema.js").BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: import("./types.js").BubbleName; description?: string | undefined; dependencies?: import("./types.js").BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }> | undefined; snippet?: string | undefined; }, { type: "code" | "question" | "answer" | "reject"; message: string; success: boolean; error?: string | undefined; inputSchema?: Record<string, unknown> | undefined; requiredCredentials?: Record<string, CredentialType[]> | undefined; bubbleParameters?: Record<number, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "unknown" | "tool" | "service" | "workflow"; className: string; parameters: { type: import("./bubble-definition-schema.js").BubbleParameterType; value: string | number | boolean | unknown[] | Record<string, unknown>; name: string; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: import("./types.js").BubbleName; description?: string | undefined; dependencies?: import("./types.js").BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }> | undefined; snippet?: string | undefined; }>; export declare const PearlAgentOutputSchema: z.ZodObject<{ type: z.ZodEnum<["code", "question", "answer", "reject", "text"]>; message: z.ZodString; snippet: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "code" | "text" | "question" | "answer" | "reject"; message: string; snippet?: string | undefined; }, { type: "code" | "text" | "question" | "answer" | "reject"; message: string; snippet?: string | undefined; }>; export type PearlRequest = z.infer<typeof PearlRequestSchema>; export type PearlResponse = z.infer<typeof PearlResponseSchema>; export type PearlAgentOutput = z.infer<typeof PearlAgentOutputSchema>; export declare enum CredentialType { 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", 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" }
|
|
122
|
-
export type BubbleName = 'hello-world' | 'ai-agent' | 'postgresql' | 'slack' | 'resend' | 'http' | 'slack-formatter-agent' | 'database-analyzer' | 'slack-notifier' | 'get-bubble-details-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'; export declare const COFFEE_MAX_ITERATIONS = 30; export declare const COFFEE_MAX_QUESTIONS = 5; export declare const COFFEE_DEFAULT_MODEL: "google/gemini-3-pro-preview"; export declare const ClarificationChoiceSchema: z.ZodObject<{ id: z.ZodString; label: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; label: string; description?: string | undefined; }, { id: string; label: string; description?: string | undefined; }>; export declare const ClarificationQuestionSchema: z.ZodObject<{ id: z.ZodString; question: z.ZodString; choices: z.ZodArray<z.ZodObject<{ id: z.ZodString; label: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; label: string; description?: string | undefined; }, { id: string; label: string; description?: string | undefined; }>, "many">; context: z.ZodOptional<z.ZodString>; allowMultiple: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }>; export declare const CoffeeClarificationEventSchema: z.ZodObject<{ questions: z.ZodArray<z.ZodObject<{ id: z.ZodString; question: z.ZodString; choices: z.ZodArray<z.ZodObject<{ id: z.ZodString; label: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; label: string; description?: string | undefined; }, { id: string; label: string; description?: string | undefined; }>, "many">; context: z.ZodOptional<z.ZodString>; allowMultiple: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }[]; }, { questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }[]; }>; export declare const CoffeeRequestExternalContextEventSchema: z.ZodObject<{ flowId: z.ZodString; flowCode: z.ZodString; requiredCredentials: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }>; export declare const CoffeeContextAnswerSchema: z.ZodObject<{ flowId: z.ZodString; status: z.ZodEnum<["success", "rejected", "error"]>; result: z.ZodOptional<z.ZodUnknown>; error: z.ZodOptional<z.ZodString>; originalRequest: z.ZodOptional<z.ZodObject<{ flowId: z.ZodString; flowCode: z.ZodString; requiredCredentials: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }>>; }, "strip", z.ZodTypeAny, { status: "success" | "error" | "rejected"; flowId: string; result?: unknown; error?: string | undefined; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }, { status: "success" | "error" | "rejected"; flowId: string; result?: unknown; error?: string | undefined; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }>; export declare const CoffeeContextRequestInfoSchema: z.ZodObject<{ purpose: z.ZodString; flowDescription: z.ZodString; }, "strip", z.ZodTypeAny, { purpose: string; flowDescription: string; }, { purpose: string; flowDescription: string; }>; export declare const CoffeeContextEventSchema: z.ZodObject<{ status: z.ZodEnum<["gathering", "complete"]>; miniFlowDescription: z.ZodOptional<z.ZodString>; result: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { status: "gathering" | "complete"; result?: string | undefined; miniFlowDescription?: string | undefined; }, { status: "gathering" | "complete"; result?: string | undefined; miniFlowDescription?: string | undefined; }>; export declare const PlanStepSchema: z.ZodObject<{ title: z.ZodString; description: z.ZodString; bubblesUsed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { description: string; title: string; bubblesUsed?: string[] | undefined; }, { description: string; title: string; bubblesUsed?: string[] | undefined; }>; export declare const CoffeePlanEventSchema: z.ZodObject<{ summary: z.ZodString; steps: z.ZodArray<z.ZodObject<{ title: z.ZodString; description: z.ZodString; bubblesUsed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { description: string; title: string; bubblesUsed?: string[] | undefined; }, { description: string; title: string; bubblesUsed?: string[] | undefined; }>, "many">; estimatedBubbles: z.ZodArray<z.ZodString, "many">; }, "strip", z.ZodTypeAny, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }>; export declare const UserMessageSchema: z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"user">; content: z.ZodString; }, "strip", z.ZodTypeAny, { type: "user"; content: string; id: string; timestamp: string; }, { type: "user"; content: string; id: string; timestamp: string; }>; export declare const AssistantMessageSchema: z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"assistant">; content: z.ZodString; code: z.ZodOptional<z.ZodString>; resultType: z.ZodOptional<z.ZodEnum<["code", "question", "answer", "reject"]>>; bubbleParameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { type: "assistant"; content: string; id: string; timestamp: string; code?: string | undefined; bubbleParameters?: Record<string, unknown> | undefined; resultType?: "code" | "question" | "answer" | "reject" | undefined; }, { type: "assistant"; content: string; id: string; timestamp: string; code?: string | undefined; bubbleParameters?: Record<string, unknown> | undefined; resultType?: "code" | "question" | "answer" | "reject" | undefined; }>; export declare const ClarificationRequestMessageSchema: z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"clarification_request">; questions: z.ZodArray<z.ZodObject<{ id: z.ZodString; question: z.ZodString; choices: z.ZodArray<z.ZodObject<{ id: z.ZodString; label: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; label: string; description?: string | undefined; }, { id: string; label: string; description?: string | undefined; }>, "many">; context: z.ZodOptional<z.ZodString>; allowMultiple: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { type: "clarification_request"; id: string; timestamp: string; questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }[]; }, { type: "clarification_request"; id: string; timestamp: string; questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }[]; }>; export declare const ClarificationResponseMessageSchema: z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"clarification_response">; answers: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>; originalQuestions: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; question: z.ZodString; choices: z.ZodArray<z.ZodObject<{ id: z.ZodString; label: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; label: string; description?: string | undefined; }, { id: string; label: string; description?: string | undefined; }>, "many">; context: z.ZodOptional<z.ZodString>; allowMultiple: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { type: "clarification_response"; id: string; timestamp: string; answers: Record<string, string[]>; originalQuestions?: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }[] | undefined; }, { type: "clarification_response"; id: string; timestamp: string; answers: Record<string, string[]>; originalQuestions?: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }[] | undefined; }>; export declare const ContextRequestMessageSchema: z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"context_request">; request: z.ZodObject<{ flowId: z.ZodString; flowCode: z.ZodString; requiredCredentials: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }>; }, "strip", z.ZodTypeAny, { type: "context_request"; id: string; timestamp: string; request: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }; }, { type: "context_request"; id: string; timestamp: string; request: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }; }>; export declare const ContextResponseMessageSchema: z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"context_response">; answer: z.ZodObject<{ flowId: z.ZodString; status: z.ZodEnum<["success", "rejected", "error"]>; result: z.ZodOptional<z.ZodUnknown>; error: z.ZodOptional<z.ZodString>; originalRequest: z.ZodOptional<z.ZodObject<{ flowId: z.ZodString; flowCode: z.ZodString; requiredCredentials: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }>>; }, "strip", z.ZodTypeAny, { status: "success" | "error" | "rejected"; flowId: string; result?: unknown; error?: string | undefined; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }, { status: "success" | "error" | "rejected"; flowId: string; result?: unknown; error?: string | undefined; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }>; credentialTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { type: "context_response"; id: string; timestamp: string; answer: { status: "success" | "error" | "rejected"; flowId: string; result?: unknown; error?: string | undefined; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }; credentialTypes?: string[] | undefined; }, { type: "context_response"; id: string; timestamp: string; answer: { status: "success" | "error" | "rejected"; flowId: string; result?: unknown; error?: string | undefined; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }; credentialTypes?: string[] | undefined; }>; export declare const PlanMessageSchema: z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"plan">; plan: z.ZodObject<{ summary: z.ZodString; steps: z.ZodArray<z.ZodObject<{ title: z.ZodString; description: z.ZodString; bubblesUsed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { description: string; title: string; bubblesUsed?: string[] | undefined; }, { description: string; title: string; bubblesUsed?: string[] | undefined; }>, "many">; estimatedBubbles: z.ZodArray<z.ZodString, "many">; }, "strip", z.ZodTypeAny, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }>; }, "strip", z.ZodTypeAny, { type: "plan"; id: string; timestamp: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }; }, { type: "plan"; id: string; timestamp: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }; }>; export declare const PlanApprovalMessageSchema: z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"plan_approval">; approved: z.ZodBoolean; comment: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "plan_approval"; id: string; timestamp: string; approved: boolean; comment?: string | undefined; }, { type: "plan_approval"; id: string; timestamp: string; approved: boolean; comment?: string | undefined; }>; export declare const SystemMessageSchema: z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"system">; content: z.ZodString; }, "strip", z.ZodTypeAny, { type: "system"; content: string; id: string; timestamp: string; }, { type: "system"; content: string; id: string; timestamp: string; }>; export declare const ToolResultMessageSchema: z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"tool_result">; toolName: z.ZodString; toolCallId: z.ZodString; input: z.ZodUnknown; output: z.ZodUnknown; duration: z.ZodNumber; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { type: "tool_result"; duration: number; id: string; toolCallId: string; timestamp: string; success: boolean; toolName: string; input?: unknown; output?: unknown; }, { type: "tool_result"; duration: number; id: string; toolCallId: string; timestamp: string; success: boolean; toolName: string; input?: unknown; output?: unknown; }>; export declare const CoffeeMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"user">; content: z.ZodString; }, "strip", z.ZodTypeAny, { type: "user"; content: string; id: string; timestamp: string; }, { type: "user"; content: string; id: string; timestamp: string; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"assistant">; content: z.ZodString; code: z.ZodOptional<z.ZodString>; resultType: z.ZodOptional<z.ZodEnum<["code", "question", "answer", "reject"]>>; bubbleParameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { type: "assistant"; content: string; id: string; timestamp: string; code?: string | undefined; bubbleParameters?: Record<string, unknown> | undefined; resultType?: "code" | "question" | "answer" | "reject" | undefined; }, { type: "assistant"; content: string; id: string; timestamp: string; code?: string | undefined; bubbleParameters?: Record<string, unknown> | undefined; resultType?: "code" | "question" | "answer" | "reject" | undefined; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"clarification_request">; questions: z.ZodArray<z.ZodObject<{ id: z.ZodString; question: z.ZodString; choices: z.ZodArray<z.ZodObject<{ id: z.ZodString; label: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; label: string; description?: string | undefined; }, { id: string; label: string; description?: string | undefined; }>, "many">; context: z.ZodOptional<z.ZodString>; allowMultiple: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { type: "clarification_request"; id: string; timestamp: string; questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }[]; }, { type: "clarification_request"; id: string; timestamp: string; questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }[]; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"clarification_response">; answers: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>; originalQuestions: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; question: z.ZodString; choices: z.ZodArray<z.ZodObject<{ id: z.ZodString; label: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; label: string; description?: string | undefined; }, { id: string; label: string; description?: string | undefined; }>, "many">; context: z.ZodOptional<z.ZodString>; allowMultiple: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { type: "clarification_response"; id: string; timestamp: string; answers: Record<string, string[]>; originalQuestions?: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }[] | undefined; }, { type: "clarification_response"; id: string; timestamp: string; answers: Record<string, string[]>; originalQuestions?: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }[] | undefined; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"context_request">; request: z.ZodObject<{ flowId: z.ZodString; flowCode: z.ZodString; requiredCredentials: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }>; }, "strip", z.ZodTypeAny, { type: "context_request"; id: string; timestamp: string; request: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }; }, { type: "context_request"; id: string; timestamp: string; request: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"context_response">; answer: z.ZodObject<{ flowId: z.ZodString; status: z.ZodEnum<["success", "rejected", "error"]>; result: z.ZodOptional<z.ZodUnknown>; error: z.ZodOptional<z.ZodString>; originalRequest: z.ZodOptional<z.ZodObject<{ flowId: z.ZodString; flowCode: z.ZodString; requiredCredentials: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }>>; }, "strip", z.ZodTypeAny, { status: "success" | "error" | "rejected"; flowId: string; result?: unknown; error?: string | undefined; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }, { status: "success" | "error" | "rejected"; flowId: string; result?: unknown; error?: string | undefined; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }>; credentialTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { type: "context_response"; id: string; timestamp: string; answer: { status: "success" | "error" | "rejected"; flowId: string; result?: unknown; error?: string | undefined; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }; credentialTypes?: string[] | undefined; }, { type: "context_response"; id: string; timestamp: string; answer: { status: "success" | "error" | "rejected"; flowId: string; result?: unknown; error?: string | undefined; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }; credentialTypes?: string[] | undefined; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"plan">; plan: z.ZodObject<{ summary: z.ZodString; steps: z.ZodArray<z.ZodObject<{ title: z.ZodString; description: z.ZodString; bubblesUsed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { description: string; title: string; bubblesUsed?: string[] | undefined; }, { description: string; title: string; bubblesUsed?: string[] | undefined; }>, "many">; estimatedBubbles: z.ZodArray<z.ZodString, "many">; }, "strip", z.ZodTypeAny, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }>; }, "strip", z.ZodTypeAny, { type: "plan"; id: string; timestamp: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }; }, { type: "plan"; id: string; timestamp: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"plan_approval">; approved: z.ZodBoolean; comment: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "plan_approval"; id: string; timestamp: string; approved: boolean; comment?: string | undefined; }, { type: "plan_approval"; id: string; timestamp: string; approved: boolean; comment?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"system">; content: z.ZodString; }, "strip", z.ZodTypeAny, { type: "system"; content: string; id: string; timestamp: string; }, { type: "system"; content: string; id: string; timestamp: string; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"tool_result">; toolName: z.ZodString; toolCallId: z.ZodString; input: z.ZodUnknown; output: z.ZodUnknown; duration: z.ZodNumber; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { type: "tool_result"; duration: number; id: string; toolCallId: string; timestamp: string; success: boolean; toolName: string; input?: unknown; output?: unknown; }, { type: "tool_result"; duration: number; id: string; toolCallId: string; timestamp: string; success: boolean; toolName: string; input?: unknown; output?: unknown; }>]>; export declare const CoffeeRequestSchema: z.ZodObject<{ prompt: z.ZodString; flowId: z.ZodOptional<z.ZodNumber>; messages: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"user">; content: z.ZodString; }, "strip", z.ZodTypeAny, { type: "user"; content: string; id: string; timestamp: string; }, { type: "user"; content: string; id: string; timestamp: string; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"assistant">; content: z.ZodString; code: z.ZodOptional<z.ZodString>; resultType: z.ZodOptional<z.ZodEnum<["code", "question", "answer", "reject"]>>; bubbleParameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { type: "assistant"; content: string; id: string; timestamp: string; code?: string | undefined; bubbleParameters?: Record<string, unknown> | undefined; resultType?: "code" | "question" | "answer" | "reject" | undefined; }, { type: "assistant"; content: string; id: string; timestamp: string; code?: string | undefined; bubbleParameters?: Record<string, unknown> | undefined; resultType?: "code" | "question" | "answer" | "reject" | undefined; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"clarification_request">; questions: z.ZodArray<z.ZodObject<{ id: z.ZodString; question: z.ZodString; choices: z.ZodArray<z.ZodObject<{ id: z.ZodString; label: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; label: string; description?: string | undefined; }, { id: string; label: string; description?: string | undefined; }>, "many">; context: z.ZodOptional<z.ZodString>; allowMultiple: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { type: "clarification_request"; id: string; timestamp: string; questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }[]; }, { type: "clarification_request"; id: string; timestamp: string; questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }[]; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"clarification_response">; answers: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>; originalQuestions: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; question: z.ZodString; choices: z.ZodArray<z.ZodObject<{ id: z.ZodString; label: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; label: string; description?: string | undefined; }, { id: string; label: string; description?: string | undefined; }>, "many">; context: z.ZodOptional<z.ZodString>; allowMultiple: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { type: "clarification_response"; id: string; timestamp: string; answers: Record<string, string[]>; originalQuestions?: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }[] | undefined; }, { type: "clarification_response"; id: string; timestamp: string; answers: Record<string, string[]>; originalQuestions?: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }[] | undefined; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"context_request">; request: z.ZodObject<{ flowId: z.ZodString; flowCode: z.ZodString; requiredCredentials: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }>; }, "strip", z.ZodTypeAny, { type: "context_request"; id: string; timestamp: string; request: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }; }, { type: "context_request"; id: string; timestamp: string; request: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"context_response">; answer: z.ZodObject<{ flowId: z.ZodString; status: z.ZodEnum<["success", "rejected", "error"]>; result: z.ZodOptional<z.ZodUnknown>; error: z.ZodOptional<z.ZodString>; originalRequest: z.ZodOptional<z.ZodObject<{ flowId: z.ZodString; flowCode: z.ZodString; requiredCredentials: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }>>; }, "strip", z.ZodTypeAny, { status: "success" | "error" | "rejected"; flowId: string; result?: unknown; error?: string | undefined; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }, { status: "success" | "error" | "rejected"; flowId: string; result?: unknown; error?: string | undefined; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }>; credentialTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { type: "context_response"; id: string; timestamp: string; answer: { status: "success" | "error" | "rejected"; flowId: string; result?: unknown; error?: string | undefined; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }; credentialTypes?: string[] | undefined; }, { type: "context_response"; id: string; timestamp: string; answer: { status: "success" | "error" | "rejected"; flowId: string; result?: unknown; error?: string | undefined; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }; credentialTypes?: string[] | undefined; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"plan">; plan: z.ZodObject<{ summary: z.ZodString; steps: z.ZodArray<z.ZodObject<{ title: z.ZodString; description: z.ZodString; bubblesUsed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { description: string; title: string; bubblesUsed?: string[] | undefined; }, { description: string; title: string; bubblesUsed?: string[] | undefined; }>, "many">; estimatedBubbles: z.ZodArray<z.ZodString, "many">; }, "strip", z.ZodTypeAny, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }>; }, "strip", z.ZodTypeAny, { type: "plan"; id: string; timestamp: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }; }, { type: "plan"; id: string; timestamp: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"plan_approval">; approved: z.ZodBoolean; comment: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "plan_approval"; id: string; timestamp: string; approved: boolean; comment?: string | undefined; }, { type: "plan_approval"; id: string; timestamp: string; approved: boolean; comment?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"system">; content: z.ZodString; }, "strip", z.ZodTypeAny, { type: "system"; content: string; id: string; timestamp: string; }, { type: "system"; content: string; id: string; timestamp: string; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"tool_result">; toolName: z.ZodString; toolCallId: z.ZodString; input: z.ZodUnknown; output: z.ZodUnknown; duration: z.ZodNumber; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { type: "tool_result"; duration: number; id: string; toolCallId: string; timestamp: string; success: boolean; toolName: string; input?: unknown; output?: unknown; }, { type: "tool_result"; duration: number; id: string; toolCallId: string; timestamp: string; success: boolean; toolName: string; input?: unknown; output?: unknown; }>]>, "many">>; }, "strip", z.ZodTypeAny, { prompt: string; flowId?: number | undefined; messages?: ({ type: "user"; content: string; id: string; timestamp: string; } | { type: "assistant"; content: string; id: string; timestamp: string; code?: string | undefined; bubbleParameters?: Record<string, unknown> | undefined; resultType?: "code" | "question" | "answer" | "reject" | undefined; } | { type: "clarification_request"; id: string; timestamp: string; questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }[]; } | { type: "clarification_response"; id: string; timestamp: string; answers: Record<string, string[]>; originalQuestions?: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }[] | undefined; } | { type: "context_request"; id: string; timestamp: string; request: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }; } | { type: "context_response"; id: string; timestamp: string; answer: { status: "success" | "error" | "rejected"; flowId: string; result?: unknown; error?: string | undefined; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }; credentialTypes?: string[] | undefined; } | { type: "plan"; id: string; timestamp: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }; } | { type: "plan_approval"; id: string; timestamp: string; approved: boolean; comment?: string | undefined; } | { type: "system"; content: string; id: string; timestamp: string; } | { type: "tool_result"; duration: number; id: string; toolCallId: string; timestamp: string; success: boolean; toolName: string; input?: unknown; output?: unknown; })[] | undefined; }, { prompt: string; flowId?: number | undefined; messages?: ({ type: "user"; content: string; id: string; timestamp: string; } | { type: "assistant"; content: string; id: string; timestamp: string; code?: string | undefined; bubbleParameters?: Record<string, unknown> | undefined; resultType?: "code" | "question" | "answer" | "reject" | undefined; } | { type: "clarification_request"; id: string; timestamp: string; questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }[]; } | { type: "clarification_response"; id: string; timestamp: string; answers: Record<string, string[]>; originalQuestions?: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }[] | undefined; } | { type: "context_request"; id: string; timestamp: string; request: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }; } | { type: "context_response"; id: string; timestamp: string; answer: { status: "success" | "error" | "rejected"; flowId: string; result?: unknown; error?: string | undefined; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }; credentialTypes?: string[] | undefined; } | { type: "plan"; id: string; timestamp: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }; } | { type: "plan_approval"; id: string; timestamp: string; approved: boolean; comment?: string | undefined; } | { type: "system"; content: string; id: string; timestamp: string; } | { type: "tool_result"; duration: number; id: string; toolCallId: string; timestamp: string; success: boolean; toolName: string; input?: unknown; output?: unknown; })[] | undefined; }>; export declare const CoffeeResponseSchema: z.ZodObject<{ type: z.ZodEnum<["clarification", "plan", "context_request", "error"]>; clarification: z.ZodOptional<z.ZodObject<{ questions: z.ZodArray<z.ZodObject<{ id: z.ZodString; question: z.ZodString; choices: z.ZodArray<z.ZodObject<{ id: z.ZodString; label: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; label: string; description?: string | undefined; }, { id: string; label: string; description?: string | undefined; }>, "many">; context: z.ZodOptional<z.ZodString>; allowMultiple: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }[]; }, { questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }[]; }>>; plan: z.ZodOptional<z.ZodObject<{ summary: z.ZodString; steps: z.ZodArray<z.ZodObject<{ title: z.ZodString; description: z.ZodString; bubblesUsed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { description: string; title: string; bubblesUsed?: string[] | undefined; }, { description: string; title: string; bubblesUsed?: string[] | undefined; }>, "many">; estimatedBubbles: z.ZodArray<z.ZodString, "many">; }, "strip", z.ZodTypeAny, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }>>; contextRequest: z.ZodOptional<z.ZodObject<{ flowId: z.ZodString; flowCode: z.ZodString; requiredCredentials: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }>>; error: z.ZodOptional<z.ZodString>; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { type: "error" | "context_request" | "plan" | "clarification"; success: boolean; error?: string | undefined; plan?: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; } | undefined; clarification?: { questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }[]; } | undefined; contextRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }, { type: "error" | "context_request" | "plan" | "clarification"; success: boolean; error?: string | undefined; plan?: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; } | undefined; clarification?: { questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }[]; } | undefined; contextRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }>; export declare const CoffeeAgentOutputSchema: z.ZodObject<{ action: z.ZodEnum<["askClarification", "generatePlan", "requestContext"]>; questions: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; question: z.ZodString; choices: z.ZodArray<z.ZodObject<{ id: z.ZodString; label: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; label: string; description?: string | undefined; }, { id: string; label: string; description?: string | undefined; }>, "many">; context: z.ZodOptional<z.ZodString>; allowMultiple: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }>, "many">>; plan: z.ZodOptional<z.ZodObject<{ summary: z.ZodString; steps: z.ZodArray<z.ZodObject<{ title: z.ZodString; description: z.ZodString; bubblesUsed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { description: string; title: string; bubblesUsed?: string[] | undefined; }, { description: string; title: string; bubblesUsed?: string[] | undefined; }>, "many">; estimatedBubbles: z.ZodArray<z.ZodString, "many">; }, "strip", z.ZodTypeAny, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }>>; contextRequest: z.ZodOptional<z.ZodObject<{ purpose: z.ZodString; flowDescription: z.ZodString; }, "strip", z.ZodTypeAny, { purpose: string; flowDescription: string; }, { purpose: string; flowDescription: string; }>>; }, "strip", z.ZodTypeAny, { action: "askClarification" | "generatePlan" | "requestContext"; questions?: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }[] | undefined; plan?: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; } | undefined; contextRequest?: { purpose: string; flowDescription: string; } | undefined; }, { action: "askClarification" | "generatePlan" | "requestContext"; questions?: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }[] | undefined; plan?: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; } | undefined; contextRequest?: { purpose: string; flowDescription: string; } | undefined; }>; export type ClarificationChoice = z.infer<typeof ClarificationChoiceSchema>; export type ClarificationQuestion = z.infer<typeof ClarificationQuestionSchema>; export type CoffeeClarificationEvent = z.infer<typeof CoffeeClarificationEventSchema>; export type CoffeeRequestExternalContextEvent = z.infer<typeof CoffeeRequestExternalContextEventSchema>; export type CoffeeContextAnswer = z.infer<typeof CoffeeContextAnswerSchema>; export type CoffeeContextEvent = z.infer<typeof CoffeeContextEventSchema>; export type CoffeeContextRequestInfo = z.infer<typeof CoffeeContextRequestInfoSchema>; export type PlanStep = z.infer<typeof PlanStepSchema>; export type CoffeePlanEvent = z.infer<typeof CoffeePlanEventSchema>; export type CoffeeRequest = z.infer<typeof CoffeeRequestSchema>; export type CoffeeResponse = z.infer<typeof CoffeeResponseSchema>; export type CoffeeAgentOutput = z.infer<typeof CoffeeAgentOutputSchema>; export type UserMessage = z.infer<typeof UserMessageSchema>; export type AssistantMessage = z.infer<typeof AssistantMessageSchema>; export type ClarificationRequestMessage = z.infer<typeof ClarificationRequestMessageSchema>; export type ClarificationResponseMessage = z.infer<typeof ClarificationResponseMessageSchema>; export type ContextRequestMessage = z.infer<typeof ContextRequestMessageSchema>; export type ContextResponseMessage = z.infer<typeof ContextResponseMessageSchema>; export type PlanMessage = z.infer<typeof PlanMessageSchema>; export type PlanApprovalMessage = z.infer<typeof PlanApprovalMessageSchema>; export type SystemMessage = z.infer<typeof SystemMessageSchema>; export type ToolResultMessage = z.infer<typeof ToolResultMessageSchema>; export type CoffeeMessage = z.infer<typeof CoffeeMessageSchema>; 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/anthropic/claude-sonnet-4.5", "openrouter/google/gemini-3-pro-preview", "openrouter/morph/morph-v3-large", "openrouter/x-ai/grok-4.1-fast", "openrouter/openai/gpt-oss-120b", "openrouter/deepseek/deepseek-chat-v3.1"]>; export type AvailableModel = z.infer<typeof AvailableModels>; export declare const RICE_DEFAULT_MODEL: AvailableModel; export declare const RiceIssueTypeSchema: z.ZodNullable<z.ZodEnum<["setup", "workflow", "input"]>>; export type RiceIssueType = z.infer<typeof RiceIssueTypeSchema>; export declare const RiceEvaluationResultSchema: z.ZodObject<{ working: z.ZodBoolean; issueType: z.ZodNullable<z.ZodEnum<["setup", "workflow", "input"]>>; summary: z.ZodString; rating: z.ZodNumber; }, "strip", z.ZodTypeAny, { working: boolean; issueType: "setup" | "workflow" | "input" | null; summary: string; rating: number; }, { working: boolean; issueType: "setup" | "workflow" | "input" | null; summary: string; rating: number; }>; export declare const RiceRequestSchema: z.ZodObject<{ executionLogs: z.ZodArray<z.ZodUnknown, "many">; workflowCode: z.ZodString; executionId: z.ZodNumber; bubbleFlowId: z.ZodNumber; model: z.ZodDefault<z.ZodOptional<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/anthropic/claude-sonnet-4.5", "openrouter/google/gemini-3-pro-preview", "openrouter/morph/morph-v3-large", "openrouter/x-ai/grok-4.1-fast", "openrouter/openai/gpt-oss-120b", "openrouter/deepseek/deepseek-chat-v3.1"]>>>; }, "strip", z.ZodTypeAny, { executionLogs: unknown[]; workflowCode: string; executionId: number; bubbleFlowId: number; model: "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/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/x-ai/grok-4.1-fast" | "openrouter/openai/gpt-oss-120b" | "openrouter/deepseek/deepseek-chat-v3.1"; }, { executionLogs: unknown[]; workflowCode: string; executionId: number; bubbleFlowId: number; model?: "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/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/x-ai/grok-4.1-fast" | "openrouter/openai/gpt-oss-120b" | "openrouter/deepseek/deepseek-chat-v3.1" | undefined; }>; export declare const RiceResponseSchema: z.ZodObject<{ success: z.ZodBoolean; evaluation: z.ZodOptional<z.ZodObject<{ working: z.ZodBoolean; issueType: z.ZodNullable<z.ZodEnum<["setup", "workflow", "input"]>>; summary: z.ZodString; rating: z.ZodNumber; }, "strip", z.ZodTypeAny, { working: boolean; issueType: "setup" | "workflow" | "input" | null; summary: string; rating: number; }, { working: boolean; issueType: "setup" | "workflow" | "input" | null; summary: string; rating: number; }>>; error: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { success: boolean; evaluation?: { working: boolean; issueType: "setup" | "workflow" | "input" | null; summary: string; rating: number; } | undefined; error?: string | undefined; }, { success: boolean; evaluation?: { working: boolean; issueType: "setup" | "workflow" | "input" | null; summary: string; rating: number; } | undefined; error?: string | undefined; }>; export type RiceEvaluationResult = z.infer<typeof RiceEvaluationResultSchema>; export type RiceRequest = z.input<typeof RiceRequestSchema>; export type RiceResponse = z.infer<typeof RiceResponseSchema>; 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/anthropic/claude-sonnet-4.5", "openrouter/google/gemini-3-pro-preview", "openrouter/morph/morph-v3-large", "openrouter/x-ai/grok-4.1-fast", "openrouter/openai/gpt-oss-120b", "openrouter/deepseek/deepseek-chat-v3.1"]>; export type AvailableModel = z.infer<typeof AvailableModels>; export interface CronExpression { minute: string; hour: string; dayOfMonth: string; month: string; dayOfWeek: string; original: string; }
|
|
118
|
+
export declare const WorkflowNodeTypeSchema: z.ZodEnum<["bubble", "if", "for", "while", "try_catch", "variable_declaration", "return", "function_call", "code_block", "parallel_execution", "transformation_function"]>; export declare const LocationSchema: 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; }>; export declare const BubbleWorkflowNodeSchema: z.ZodType<BubbleWorkflowNode>; export declare const ControlFlowWorkflowNodeSchema: z.ZodType<ControlFlowWorkflowNode>; export declare const TryCatchWorkflowNodeSchema: z.ZodType<TryCatchWorkflowNode>; export declare const CodeBlockWorkflowNodeSchema: z.ZodType<CodeBlockWorkflowNode>; export declare const VariableDeclarationBlockNodeSchema: z.ZodType<VariableDeclarationBlockNode>; export declare const ReturnWorkflowNodeSchema: z.ZodType<ReturnWorkflowNode>; export declare const FunctionCallWorkflowNodeSchema: z.ZodType<FunctionCallWorkflowNode>; export declare const ParallelExecutionWorkflowNodeSchema: z.ZodType<ParallelExecutionWorkflowNode>; export declare const TransformationFunctionWorkflowNodeSchema: z.ZodType<TransformationFunctionWorkflowNode>; export declare const WorkflowNodeSchema: z.ZodType<WorkflowNode>; export declare const ParsedWorkflowSchema: z.ZodObject<{ root: z.ZodArray<z.ZodType<WorkflowNode, z.ZodTypeDef, WorkflowNode>, "many">; bubbles: z.ZodRecord<z.ZodNumber, z.ZodObject<{ variableName: z.ZodString; bubbleName: z.ZodType<BubbleName>; className: z.ZodString; parameters: z.ZodArray<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; }>, "many">; hasAwait: z.ZodBoolean; hasActionCall: z.ZodBoolean; dependencies: z.ZodOptional<z.ZodArray<z.ZodType<BubbleName, z.ZodTypeDef, BubbleName>, "many">>; dependencyGraph: z.ZodOptional<z.ZodType<DependencyGraphNode, z.ZodTypeDef, DependencyGraphNode>>; variableId: z.ZodNumber; nodeType: z.ZodEnum<["service", "tool", "workflow", "unknown"]>; location: 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; }>; description: z.ZodOptional<z.ZodString>; invocationCallSiteKey: z.ZodOptional<z.ZodString>; clonedFromVariableId: z.ZodOptional<z.ZodNumber>; isInsideCustomTool: z.ZodOptional<z.ZodBoolean>; containingCustomToolId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { root: WorkflowNode[]; bubbles: Record<number, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>; }, { root: WorkflowNode[]; bubbles: Record<number, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: BubbleName; description?: string | undefined; dependencies?: BubbleName[] | undefined; dependencyGraph?: DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>; }>; export declare enum CredentialType { 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", 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" }
|
|
119
|
+
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'; export declare const generateBubbleFlowCodeSchema: z.ZodObject<{ prompt: z.ZodString; flowId: z.ZodOptional<z.ZodNumber>; messages: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"user">; content: z.ZodString; }, "strip", z.ZodTypeAny, { content: string; type: "user"; timestamp: string; id: string; }, { content: string; type: "user"; timestamp: string; id: string; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"assistant">; content: z.ZodString; code: z.ZodOptional<z.ZodString>; resultType: z.ZodOptional<z.ZodEnum<["code", "question", "answer", "reject"]>>; bubbleParameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { content: string; type: "assistant"; timestamp: string; id: string; code?: string | undefined; bubbleParameters?: Record<string, unknown> | undefined; resultType?: "code" | "question" | "answer" | "reject" | undefined; }, { content: string; type: "assistant"; timestamp: string; id: string; code?: string | undefined; bubbleParameters?: Record<string, unknown> | undefined; resultType?: "code" | "question" | "answer" | "reject" | undefined; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"clarification_request">; questions: z.ZodArray<z.ZodObject<{ id: z.ZodString; question: z.ZodString; choices: z.ZodArray<z.ZodObject<{ id: z.ZodString; label: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; label: string; description?: string | undefined; }, { id: string; label: string; description?: string | undefined; }>, "many">; context: z.ZodOptional<z.ZodString>; allowMultiple: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { type: "clarification_request"; timestamp: string; id: string; questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }[]; }, { type: "clarification_request"; timestamp: string; id: string; questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }[]; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"clarification_response">; answers: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>; originalQuestions: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; question: z.ZodString; choices: z.ZodArray<z.ZodObject<{ id: z.ZodString; label: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; label: string; description?: string | undefined; }, { id: string; label: string; description?: string | undefined; }>, "many">; context: z.ZodOptional<z.ZodString>; allowMultiple: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { type: "clarification_response"; timestamp: string; id: string; answers: Record<string, string[]>; originalQuestions?: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }[] | undefined; }, { type: "clarification_response"; timestamp: string; id: string; answers: Record<string, string[]>; originalQuestions?: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }[] | undefined; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"context_request">; request: z.ZodObject<{ flowId: z.ZodString; flowCode: z.ZodString; requiredCredentials: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }>; }, "strip", z.ZodTypeAny, { type: "context_request"; timestamp: string; id: string; request: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }; }, { type: "context_request"; timestamp: string; id: string; request: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"context_response">; answer: z.ZodObject<{ flowId: z.ZodString; status: z.ZodEnum<["success", "rejected", "error"]>; result: z.ZodOptional<z.ZodUnknown>; error: z.ZodOptional<z.ZodString>; originalRequest: z.ZodOptional<z.ZodObject<{ flowId: z.ZodString; flowCode: z.ZodString; requiredCredentials: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }>>; }, "strip", z.ZodTypeAny, { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }, { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }>; credentialTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { type: "context_response"; timestamp: string; id: string; answer: { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }; credentialTypes?: string[] | undefined; }, { type: "context_response"; timestamp: string; id: string; answer: { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }; credentialTypes?: string[] | undefined; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"plan">; plan: z.ZodObject<{ summary: z.ZodString; steps: z.ZodArray<z.ZodObject<{ title: z.ZodString; description: z.ZodString; bubblesUsed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { description: string; title: string; bubblesUsed?: string[] | undefined; }, { description: string; title: string; bubblesUsed?: string[] | undefined; }>, "many">; estimatedBubbles: z.ZodArray<z.ZodString, "many">; }, "strip", z.ZodTypeAny, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }>; }, "strip", z.ZodTypeAny, { type: "plan"; timestamp: string; id: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }; }, { type: "plan"; timestamp: string; id: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"plan_approval">; approved: z.ZodBoolean; comment: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "plan_approval"; timestamp: string; id: string; approved: boolean; comment?: string | undefined; }, { type: "plan_approval"; timestamp: string; id: string; approved: boolean; comment?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"system">; content: z.ZodString; }, "strip", z.ZodTypeAny, { content: string; type: "system"; timestamp: string; id: string; }, { content: string; type: "system"; timestamp: string; id: string; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"tool_result">; toolName: z.ZodString; toolCallId: z.ZodString; input: z.ZodUnknown; output: z.ZodUnknown; duration: z.ZodNumber; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { toolCallId: string; type: "tool_result"; timestamp: string; duration: number; id: string; success: boolean; toolName: string; input?: unknown; output?: unknown; }, { toolCallId: string; type: "tool_result"; timestamp: string; duration: number; id: string; success: boolean; toolName: string; input?: unknown; output?: unknown; }>]>, "many">>; planContext: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { prompt: string; flowId?: number | undefined; messages?: ({ content: string; type: "user"; timestamp: string; id: string; } | { content: string; type: "assistant"; timestamp: string; id: string; code?: string | undefined; bubbleParameters?: Record<string, unknown> | undefined; resultType?: "code" | "question" | "answer" | "reject" | undefined; } | { type: "clarification_request"; timestamp: string; id: string; questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }[]; } | { type: "clarification_response"; timestamp: string; id: string; answers: Record<string, string[]>; originalQuestions?: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }[] | undefined; } | { type: "context_request"; timestamp: string; id: string; request: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }; } | { type: "context_response"; timestamp: string; id: string; answer: { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }; credentialTypes?: string[] | undefined; } | { type: "plan"; timestamp: string; id: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }; } | { type: "plan_approval"; timestamp: string; id: string; approved: boolean; comment?: string | undefined; } | { content: string; type: "system"; timestamp: string; id: string; } | { toolCallId: string; type: "tool_result"; timestamp: string; duration: number; id: string; success: boolean; toolName: string; input?: unknown; output?: unknown; })[] | undefined; planContext?: string | undefined; }, { prompt: string; flowId?: number | undefined; messages?: ({ content: string; type: "user"; timestamp: string; id: string; } | { content: string; type: "assistant"; timestamp: string; id: string; code?: string | undefined; bubbleParameters?: Record<string, unknown> | undefined; resultType?: "code" | "question" | "answer" | "reject" | undefined; } | { type: "clarification_request"; timestamp: string; id: string; questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }[]; } | { type: "clarification_response"; timestamp: string; id: string; answers: Record<string, string[]>; originalQuestions?: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }[] | undefined; } | { type: "context_request"; timestamp: string; id: string; request: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }; } | { type: "context_response"; timestamp: string; id: string; answer: { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }; credentialTypes?: string[] | undefined; } | { type: "plan"; timestamp: string; id: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }; } | { type: "plan_approval"; timestamp: string; id: string; approved: boolean; comment?: string | undefined; } | { content: string; type: "system"; timestamp: string; id: string; } | { toolCallId: string; type: "tool_result"; timestamp: string; duration: number; id: string; success: boolean; toolName: string; input?: unknown; output?: unknown; })[] | undefined; planContext?: string | undefined; }>; export declare const generateBubbleFlowCodeResponseSchema: z.ZodObject<{ generatedCode: z.ZodString; isValid: z.ZodBoolean; success: z.ZodBoolean; error: z.ZodString; bubbleParameters: z.ZodRecord<z.ZodString, z.ZodObject<{ variableName: z.ZodString; bubbleName: z.ZodType<import("./types").BubbleName>; className: z.ZodString; parameters: z.ZodArray<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; }>, "many">; hasAwait: z.ZodBoolean; hasActionCall: z.ZodBoolean; dependencies: z.ZodOptional<z.ZodArray<z.ZodType<import("./types").BubbleName, z.ZodTypeDef, import("./types").BubbleName>, "many">>; dependencyGraph: z.ZodOptional<z.ZodType<import("./bubble-definition-schema").DependencyGraphNode, z.ZodTypeDef, import("./bubble-definition-schema").DependencyGraphNode>>; variableId: z.ZodNumber; nodeType: z.ZodEnum<["service", "tool", "workflow", "unknown"]>; location: 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; }>; description: z.ZodOptional<z.ZodString>; invocationCallSiteKey: z.ZodOptional<z.ZodString>; clonedFromVariableId: z.ZodOptional<z.ZodNumber>; isInsideCustomTool: z.ZodOptional<z.ZodBoolean>; containingCustomToolId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: import("./types").BubbleName; description?: string | undefined; dependencies?: import("./types").BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: import("./types").BubbleName; description?: string | undefined; dependencies?: import("./types").BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>>; requiredCredentials: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; requiredCredentials: Record<string, string[]>; bubbleParameters: Record<string, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: import("./types").BubbleName; description?: string | undefined; dependencies?: import("./types").BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>; generatedCode: string; isValid: boolean; }, { error: string; success: boolean; requiredCredentials: Record<string, string[]>; bubbleParameters: Record<string, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: import("./types").BubbleName; description?: string | undefined; dependencies?: import("./types").BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>; generatedCode: string; isValid: boolean; }>; export declare const GenerationResultSchema: z.ZodObject<{ generatedCode: z.ZodString; isValid: z.ZodBoolean; success: z.ZodBoolean; error: z.ZodString; flowId: z.ZodOptional<z.ZodNumber>; toolCalls: z.ZodArray<z.ZodUnknown, "many">; summary: z.ZodDefault<z.ZodString>; inputsSchema: z.ZodDefault<z.ZodString>; serviceUsage: z.ZodOptional<z.ZodArray<z.ZodObject<{ service: z.ZodNativeEnum<typeof CredentialType>; subService: z.ZodOptional<z.ZodString>; unit: z.ZodString; usage: z.ZodNumber; unitCost: z.ZodNumber; totalCost: z.ZodNumber; }, "strip", z.ZodTypeAny, { service: CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }, { service: CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }>, "many">>; bubbleCount: z.ZodOptional<z.ZodNumber>; codeLength: z.ZodOptional<z.ZodNumber>; bubbleParameters: z.ZodOptional<z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodObject<{ variableName: z.ZodString; bubbleName: z.ZodType<import("./types").BubbleName>; className: z.ZodString; parameters: z.ZodArray<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; }>, "many">; hasAwait: z.ZodBoolean; hasActionCall: z.ZodBoolean; dependencies: z.ZodOptional<z.ZodArray<z.ZodType<import("./types").BubbleName, z.ZodTypeDef, import("./types").BubbleName>, "many">>; dependencyGraph: z.ZodOptional<z.ZodType<import("./bubble-definition-schema").DependencyGraphNode, z.ZodTypeDef, import("./bubble-definition-schema").DependencyGraphNode>>; variableId: z.ZodNumber; nodeType: z.ZodEnum<["service", "tool", "workflow", "unknown"]>; location: 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; }>; description: z.ZodOptional<z.ZodString>; invocationCallSiteKey: z.ZodOptional<z.ZodString>; clonedFromVariableId: z.ZodOptional<z.ZodNumber>; isInsideCustomTool: z.ZodOptional<z.ZodBoolean>; containingCustomToolId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: import("./types").BubbleName; description?: string | undefined; dependencies?: import("./types").BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: import("./types").BubbleName; description?: string | undefined; dependencies?: import("./types").BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>>>; }, "strip", z.ZodTypeAny, { error: string; success: boolean; summary: string; generatedCode: string; isValid: boolean; toolCalls: unknown[]; inputsSchema: string; serviceUsage?: { service: CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }[] | undefined; flowId?: number | undefined; bubbleCount?: number | undefined; codeLength?: number | undefined; bubbleParameters?: Record<string | number, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: import("./types").BubbleName; description?: string | undefined; dependencies?: import("./types").BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }> | undefined; }, { error: string; success: boolean; generatedCode: string; isValid: boolean; toolCalls: unknown[]; serviceUsage?: { service: CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }[] | undefined; summary?: string | undefined; flowId?: number | undefined; bubbleCount?: number | undefined; codeLength?: number | undefined; bubbleParameters?: Record<string | number, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { 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; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: import("./types").BubbleName; description?: string | undefined; dependencies?: import("./types").BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }> | undefined; inputsSchema?: string | undefined; }>; export declare const generateBubbleFlowTemplateSchema: z.ZodObject<{ name: z.ZodString; description: z.ZodString; roles: z.ZodString; useCase: z.ZodLiteral<"slack-data-scientist">; verbosity: z.ZodOptional<z.ZodEnum<["1", "2", "3", "4", "5"]>>; technicality: z.ZodOptional<z.ZodEnum<["1", "2", "3", "4", "5"]>>; includeQuery: z.ZodOptional<z.ZodBoolean>; includeExplanation: z.ZodOptional<z.ZodBoolean>; maxQueries: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { name: string; description: string; roles: string; useCase: "slack-data-scientist"; verbosity?: "1" | "2" | "3" | "4" | "5" | undefined; technicality?: "1" | "2" | "3" | "4" | "5" | undefined; includeQuery?: boolean | undefined; includeExplanation?: boolean | undefined; maxQueries?: number | undefined; }, { name: string; description: string; roles: string; useCase: "slack-data-scientist"; verbosity?: "1" | "2" | "3" | "4" | "5" | undefined; technicality?: "1" | "2" | "3" | "4" | "5" | undefined; includeQuery?: boolean | undefined; includeExplanation?: boolean | undefined; maxQueries?: number | undefined; }>; export declare const generateDocumentGenerationTemplateSchema: z.ZodObject<{ name: z.ZodString; description: z.ZodDefault<z.ZodString>; outputDescription: z.ZodString; outputFormat: z.ZodOptional<z.ZodEnum<["html", "csv", "json"]>>; conversionOptions: z.ZodOptional<z.ZodObject<{ preserveStructure: z.ZodOptional<z.ZodBoolean>; includeVisualDescriptions: z.ZodOptional<z.ZodBoolean>; extractNumericalData: z.ZodOptional<z.ZodBoolean>; combinePages: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { preserveStructure?: boolean | undefined; includeVisualDescriptions?: boolean | undefined; extractNumericalData?: boolean | undefined; combinePages?: boolean | undefined; }, { preserveStructure?: boolean | undefined; includeVisualDescriptions?: boolean | undefined; extractNumericalData?: boolean | undefined; combinePages?: boolean | undefined; }>>; imageOptions: z.ZodOptional<z.ZodObject<{ format: z.ZodOptional<z.ZodEnum<["png", "jpg", "jpeg"]>>; quality: z.ZodOptional<z.ZodNumber>; dpi: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { format?: "png" | "jpg" | "jpeg" | undefined; quality?: number | undefined; dpi?: number | undefined; }, { format?: "png" | "jpg" | "jpeg" | undefined; quality?: number | undefined; dpi?: number | undefined; }>>; aiOptions: z.ZodOptional<z.ZodObject<{ model: z.ZodOptional<z.ZodString>; temperature: z.ZodOptional<z.ZodNumber>; maxTokens: z.ZodOptional<z.ZodNumber>; jsonMode: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { model?: string | undefined; temperature?: number | undefined; maxTokens?: number | undefined; jsonMode?: boolean | undefined; }, { model?: string | undefined; temperature?: number | undefined; maxTokens?: number | undefined; jsonMode?: boolean | undefined; }>>; metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { name: string; description: string; outputDescription: string; metadata?: Record<string, unknown> | undefined; outputFormat?: "html" | "csv" | "json" | undefined; conversionOptions?: { preserveStructure?: boolean | undefined; includeVisualDescriptions?: boolean | undefined; extractNumericalData?: boolean | undefined; combinePages?: boolean | undefined; } | undefined; imageOptions?: { format?: "png" | "jpg" | "jpeg" | undefined; quality?: number | undefined; dpi?: number | undefined; } | undefined; aiOptions?: { model?: string | undefined; temperature?: number | undefined; maxTokens?: number | undefined; jsonMode?: boolean | undefined; } | undefined; }, { name: string; outputDescription: string; description?: string | undefined; metadata?: Record<string, unknown> | undefined; outputFormat?: "html" | "csv" | "json" | undefined; conversionOptions?: { preserveStructure?: boolean | undefined; includeVisualDescriptions?: boolean | undefined; extractNumericalData?: boolean | undefined; combinePages?: boolean | undefined; } | undefined; imageOptions?: { format?: "png" | "jpg" | "jpeg" | undefined; quality?: number | undefined; dpi?: number | undefined; } | undefined; aiOptions?: { model?: string | undefined; temperature?: number | undefined; maxTokens?: number | undefined; jsonMode?: boolean | undefined; } | undefined; }>; export declare const bubbleFlowTemplateResponseSchema: z.ZodObject<{ id: z.ZodNumber; name: z.ZodString; description: z.ZodString; eventType: z.ZodString; displayedBubbleParameters: z.ZodRecord<z.ZodString, z.ZodObject<{ variableName: z.ZodString; bubbleName: z.ZodString; className: z.ZodString; parameters: z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodUnknown; type: z.ZodNativeEnum<typeof BubbleParameterType>; }, "strip", z.ZodTypeAny, { name: string; type: BubbleParameterType; value?: unknown; }, { name: string; type: BubbleParameterType; value?: unknown; }>, "many">; hasAwait: z.ZodBoolean; hasActionCall: z.ZodBoolean; }, "strip", z.ZodTypeAny, { variableName: string; className: string; parameters: { name: string; type: BubbleParameterType; value?: unknown; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: string; }, { variableName: string; className: string; parameters: { name: string; type: BubbleParameterType; value?: unknown; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: string; }>>; bubbleParameters: z.ZodRecord<z.ZodString, z.ZodObject<{ variableName: z.ZodString; bubbleName: z.ZodString; className: z.ZodString; parameters: z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodUnknown; type: z.ZodNativeEnum<typeof BubbleParameterType>; }, "strip", z.ZodTypeAny, { name: string; type: BubbleParameterType; value?: unknown; }, { name: string; type: BubbleParameterType; value?: unknown; }>, "many">; hasAwait: z.ZodBoolean; hasActionCall: z.ZodBoolean; }, "strip", z.ZodTypeAny, { variableName: string; className: string; parameters: { name: string; type: BubbleParameterType; value?: unknown; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: string; }, { variableName: string; className: string; parameters: { name: string; type: BubbleParameterType; value?: unknown; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: string; }>>; requiredCredentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">>>; createdAt: z.ZodString; updatedAt: z.ZodString; webhook: z.ZodOptional<z.ZodObject<{ id: z.ZodNumber; url: z.ZodString; path: z.ZodString; active: z.ZodBoolean; }, "strip", z.ZodTypeAny, { path: string; id: number; url: string; active: boolean; }, { path: string; id: number; url: string; active: boolean; }>>; }, "strip", z.ZodTypeAny, { name: string; description: string; id: number; eventType: string; bubbleParameters: Record<string, { variableName: string; className: string; parameters: { name: string; type: BubbleParameterType; value?: unknown; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: string; }>; displayedBubbleParameters: Record<string, { variableName: string; className: string; parameters: { name: string; type: BubbleParameterType; value?: unknown; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: string; }>; createdAt: string; updatedAt: string; requiredCredentials?: Record<string, CredentialType[]> | undefined; webhook?: { path: string; id: number; url: string; active: boolean; } | undefined; }, { name: string; description: string; id: number; eventType: string; bubbleParameters: Record<string, { variableName: string; className: string; parameters: { name: string; type: BubbleParameterType; value?: unknown; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: string; }>; displayedBubbleParameters: Record<string, { variableName: string; className: string; parameters: { name: string; type: BubbleParameterType; value?: unknown; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: string; }>; createdAt: string; updatedAt: string; requiredCredentials?: Record<string, CredentialType[]> | undefined; webhook?: { path: string; id: number; url: string; active: boolean; } | undefined; }>; export type GenerateBubbleFlowCodeResponse = z.infer<typeof generateBubbleFlowCodeResponseSchema>; export type GenerateBubbleFlowTemplateRequest = z.infer<typeof generateBubbleFlowTemplateSchema>; export type GenerateDocumentGenerationTemplateRequest = z.infer<typeof generateDocumentGenerationTemplateSchema>; export type BubbleFlowTemplateResponse = z.infer<typeof bubbleFlowTemplateResponseSchema>; export type GenerationResult = z.infer<typeof GenerationResultSchema>; export declare const webhookExecutionResponseSchema: z.ZodObject<{ executionId: z.ZodNumber; success: z.ZodBoolean; data: z.ZodOptional<z.ZodUnknown>; error: z.ZodOptional<z.ZodString>; webhook: z.ZodObject<{ userId: z.ZodString; path: z.ZodString; triggeredAt: z.ZodString; method: z.ZodString; }, "strip", z.ZodTypeAny, { path: string; userId: string; triggeredAt: string; method: string; }, { path: string; userId: string; triggeredAt: string; method: string; }>; }, "strip", z.ZodTypeAny, { success: boolean; executionId: number; webhook: { path: string; userId: string; triggeredAt: string; method: string; }; error?: string | undefined; data?: unknown; }, { success: boolean; executionId: number; webhook: { path: string; userId: string; triggeredAt: string; method: string; }; error?: string | undefined; data?: unknown; }>; export declare const webhookResponseSchema: z.ZodObject<{ challenge: z.ZodOptional<z.ZodString>; executionId: z.ZodOptional<z.ZodNumber>; success: z.ZodOptional<z.ZodBoolean>; data: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodUndefined]>>; error: z.ZodOptional<z.ZodString>; webhook: z.ZodOptional<z.ZodObject<{ userId: z.ZodString; path: z.ZodString; triggeredAt: z.ZodString; method: z.ZodString; }, "strip", z.ZodTypeAny, { path: string; userId: string; triggeredAt: string; method: string; }, { path: string; userId: string; triggeredAt: string; method: string; }>>; }, "strip", z.ZodTypeAny, { error?: string | undefined; challenge?: string | undefined; success?: boolean | undefined; executionId?: number | undefined; data?: Record<string, unknown> | undefined; webhook?: { path: string; userId: string; triggeredAt: string; method: string; } | undefined; }, { error?: string | undefined; challenge?: string | undefined; success?: boolean | undefined; executionId?: number | undefined; data?: Record<string, unknown> | undefined; webhook?: { path: string; userId: string; triggeredAt: string; method: string; } | undefined; }>; export type WebhookResponse = z.infer<typeof webhookResponseSchema>; export type WebhookExecutionResponse = z.infer<typeof webhookExecutionResponseSchema>; export declare const hackathonOfferSchema: z.ZodObject<{ isActive: z.ZodBoolean; expiresAt: z.ZodString; redeemedAt: z.ZodString; }, "strip", z.ZodTypeAny, { isActive: boolean; expiresAt: string; redeemedAt: string; }, { isActive: boolean; expiresAt: string; redeemedAt: string; }>; export type HackathonOffer = z.infer<typeof hackathonOfferSchema>; export declare const specialOfferSchema: z.ZodObject<{ isActive: z.ZodBoolean; plan: z.ZodString; expiresAt: z.ZodNullable<z.ZodString>; }, "strip", z.ZodTypeAny, { isActive: boolean; plan: string; expiresAt: string | null; }, { isActive: boolean; plan: string; expiresAt: string | null; }>; export type SpecialOffer = z.infer<typeof specialOfferSchema>; export declare const redeemCouponRequestSchema: z.ZodObject<{ code: z.ZodString; }, "strip", z.ZodTypeAny, { code: string; }, { code: string; }>; export type RedeemCouponRequest = z.infer<typeof redeemCouponRequestSchema>; export declare const redeemCouponResponseSchema: z.ZodObject<{ success: z.ZodBoolean; message: z.ZodString; expiresAt: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { message: string; success: boolean; expiresAt?: string | undefined; }, { message: string; success: boolean; expiresAt?: string | undefined; }>; export type RedeemCouponResponse = z.infer<typeof redeemCouponResponseSchema>; export declare const subscriptionStatusResponseSchema: z.ZodObject<{ userId: z.ZodString; plan: z.ZodString; planDisplayName: z.ZodString; features: z.ZodArray<z.ZodString, "many">; usage: z.ZodObject<{ executionCount: z.ZodNumber; executionLimit: z.ZodNumber; creditLimit: z.ZodNumber; activeFlowLimit: z.ZodNumber; estimatedMonthlyCost: z.ZodNumber; resetDate: z.ZodString; tokenUsage: z.ZodArray<z.ZodObject<{ modelName: z.ZodString; inputTokens: z.ZodNumber; outputTokens: z.ZodNumber; totalTokens: z.ZodNumber; }, "strip", z.ZodTypeAny, { modelName: string; inputTokens: number; outputTokens: number; totalTokens: number; }, { modelName: string; inputTokens: number; outputTokens: number; totalTokens: number; }>, "many">; serviceUsage: z.ZodArray<z.ZodObject<{ service: z.ZodNativeEnum<typeof import("./types").CredentialType>; subService: z.ZodOptional<z.ZodString>; unit: z.ZodString; usage: z.ZodNumber; unitCost: z.ZodNumber; totalCost: z.ZodNumber; }, "strip", z.ZodTypeAny, { service: import("./types").CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }, { service: import("./types").CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { serviceUsage: { service: import("./types").CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }[]; executionCount: number; executionLimit: number; creditLimit: number; activeFlowLimit: number; estimatedMonthlyCost: number; resetDate: string; tokenUsage: { modelName: string; inputTokens: number; outputTokens: number; totalTokens: number; }[]; }, { serviceUsage: { service: import("./types").CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }[]; executionCount: number; executionLimit: number; creditLimit: number; activeFlowLimit: number; estimatedMonthlyCost: number; resetDate: string; tokenUsage: { modelName: string; inputTokens: number; outputTokens: number; totalTokens: number; }[]; }>; isActive: z.ZodBoolean; hackathonOffer: z.ZodOptional<z.ZodObject<{ isActive: z.ZodBoolean; expiresAt: z.ZodString; redeemedAt: z.ZodString; }, "strip", z.ZodTypeAny, { isActive: boolean; expiresAt: string; redeemedAt: string; }, { isActive: boolean; expiresAt: string; redeemedAt: string; }>>; specialOffer: z.ZodOptional<z.ZodObject<{ isActive: z.ZodBoolean; plan: z.ZodString; expiresAt: z.ZodNullable<z.ZodString>; }, "strip", z.ZodTypeAny, { isActive: boolean; plan: string; expiresAt: string | null; }, { isActive: boolean; plan: string; expiresAt: string | null; }>>; }, "strip", z.ZodTypeAny, { usage: { serviceUsage: { service: import("./types").CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }[]; executionCount: number; executionLimit: number; creditLimit: number; activeFlowLimit: number; estimatedMonthlyCost: number; resetDate: string; tokenUsage: { modelName: string; inputTokens: number; outputTokens: number; totalTokens: number; }[]; }; isActive: boolean; plan: string; userId: string; planDisplayName: string; features: string[]; hackathonOffer?: { isActive: boolean; expiresAt: string; redeemedAt: string; } | undefined; specialOffer?: { isActive: boolean; plan: string; expiresAt: string | null; } | undefined; }, { usage: { serviceUsage: { service: import("./types").CredentialType; unit: string; usage: number; unitCost: number; totalCost: number; subService?: string | undefined; }[]; executionCount: number; executionLimit: number; creditLimit: number; activeFlowLimit: number; estimatedMonthlyCost: number; resetDate: string; tokenUsage: { modelName: string; inputTokens: number; outputTokens: number; totalTokens: number; }[]; }; isActive: boolean; plan: string; userId: string; planDisplayName: string; features: string[]; hackathonOffer?: { isActive: boolean; expiresAt: string; redeemedAt: string; } | undefined; specialOffer?: { isActive: boolean; plan: string; expiresAt: string | null; } | undefined; }>; export type SubscriptionStatusResponse = z.infer<typeof subscriptionStatusResponseSchema>; export declare const errorResponseSchema: z.ZodObject<{ error: z.ZodString; details: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { error: string; details?: string | undefined; }, { error: string; details?: string | undefined; }>; export type ErrorResponse = z.infer<typeof errorResponseSchema>; export interface HealthCheckResponse { message: string; timestamp: string; }
|
|
120
|
+
export declare const slackUrlVerificationSchema: z.ZodObject<{ token: z.ZodString; challenge: z.ZodString; type: z.ZodLiteral<"url_verification">; }, "strip", z.ZodTypeAny, { type: "url_verification"; token: string; challenge: string; }, { type: "url_verification"; token: string; challenge: string; }>; export declare const slackUrlVerificationResponseSchema: z.ZodObject<{ challenge: z.ZodString; }, "strip", z.ZodTypeAny, { challenge: string; }, { challenge: string; }>; export type SlackUrlVerificationResponse = z.infer<typeof slackUrlVerificationResponseSchema>; export declare const MilkTeaRequestSchema: z.ZodObject<{ userRequest: z.ZodString; bubbleName: z.ZodString; bubbleSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>; currentCode: z.ZodOptional<z.ZodString>; availableCredentials: z.ZodDefault<z.ZodArray<z.ZodString, "many">>; userName: z.ZodString; insertLocation: z.ZodOptional<z.ZodString>; conversationHistory: z.ZodDefault<z.ZodOptional<z.ZodArray<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; }>, "many">>>; model: z.ZodDefault<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/anthropic/claude-sonnet-4.5", "openrouter/google/gemini-3-pro-preview", "openrouter/morph/morph-v3-large", "openrouter/x-ai/grok-4.1-fast", "openrouter/openai/gpt-oss-120b", "openrouter/deepseek/deepseek-chat-v3.1"]>>; }, "strip", z.ZodTypeAny, { bubbleName: string; model: "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/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/x-ai/grok-4.1-fast" | "openrouter/openai/gpt-oss-120b" | "openrouter/deepseek/deepseek-chat-v3.1"; userRequest: string; bubbleSchema: Record<string, unknown>; availableCredentials: string[]; userName: string; conversationHistory: { role: "user" | "assistant" | "tool"; content: string; toolCallId?: string | undefined; name?: string | undefined; }[]; currentCode?: string | undefined; insertLocation?: string | undefined; }, { bubbleName: string; userRequest: string; bubbleSchema: Record<string, unknown>; userName: string; model?: "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/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/x-ai/grok-4.1-fast" | "openrouter/openai/gpt-oss-120b" | "openrouter/deepseek/deepseek-chat-v3.1" | undefined; currentCode?: string | undefined; availableCredentials?: string[] | undefined; insertLocation?: string | undefined; conversationHistory?: { role: "user" | "assistant" | "tool"; content: string; toolCallId?: string | undefined; name?: string | undefined; }[] | undefined; }>; export declare const MilkTeaResponseSchema: z.ZodObject<{ type: z.ZodEnum<["code", "question", "reject"]>; message: z.ZodString; snippet: z.ZodOptional<z.ZodString>; success: z.ZodBoolean; error: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { message: string; type: "code" | "question" | "reject"; success: boolean; error?: string | undefined; snippet?: string | undefined; }, { message: string; type: "code" | "question" | "reject"; success: boolean; error?: string | undefined; snippet?: string | undefined; }>; export declare const MilkTeaAgentOutputSchema: z.ZodObject<{ type: z.ZodEnum<["code", "question", "reject"]>; message: z.ZodString; snippet: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { message: string; type: "code" | "question" | "reject"; snippet?: string | undefined; }, { message: string; type: "code" | "question" | "reject"; snippet?: string | undefined; }>; export type MilkTeaRequest = z.infer<typeof MilkTeaRequestSchema>; export type MilkTeaResponse = z.infer<typeof MilkTeaResponseSchema>; export type MilkTeaAgentOutput = z.infer<typeof MilkTeaAgentOutputSchema>; 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/anthropic/claude-sonnet-4.5", "openrouter/google/gemini-3-pro-preview", "openrouter/morph/morph-v3-large", "openrouter/x-ai/grok-4.1-fast", "openrouter/openai/gpt-oss-120b", "openrouter/deepseek/deepseek-chat-v3.1"]>; export type AvailableModel = z.infer<typeof AvailableModels>; export declare enum CredentialType { 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", 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" }
|
|
121
|
+
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'; export declare const PEARL_DEFAULT_MODEL: AvailableModel; export declare const PearlRequestSchema: z.ZodObject<{ userRequest: z.ZodString; currentCode: z.ZodOptional<z.ZodString>; userName: z.ZodString; availableVariables: z.ZodArray<z.ZodAny, "many">; conversationHistory: z.ZodDefault<z.ZodOptional<z.ZodArray<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; }>, "many">>>; model: z.ZodDefault<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/anthropic/claude-sonnet-4.5", "openrouter/google/gemini-3-pro-preview", "openrouter/morph/morph-v3-large", "openrouter/x-ai/grok-4.1-fast", "openrouter/openai/gpt-oss-120b", "openrouter/deepseek/deepseek-chat-v3.1"]>>; additionalContext: z.ZodOptional<z.ZodString>; uploadedFiles: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; content: z.ZodString; fileType: z.ZodEnum<["image", "text"]>; }, "strip", z.ZodTypeAny, { content: string; name: string; fileType: "text" | "image"; }, { content: string; name: string; fileType: "text" | "image"; }>, "many">>>; }, "strip", z.ZodTypeAny, { model: "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/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/x-ai/grok-4.1-fast" | "openrouter/openai/gpt-oss-120b" | "openrouter/deepseek/deepseek-chat-v3.1"; userRequest: string; userName: string; conversationHistory: { role: "user" | "assistant" | "tool"; content: string; toolCallId?: string | undefined; name?: string | undefined; }[]; availableVariables: any[]; uploadedFiles: { content: string; name: string; fileType: "text" | "image"; }[]; currentCode?: string | undefined; additionalContext?: string | undefined; }, { userRequest: string; userName: string; availableVariables: any[]; model?: "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/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/x-ai/grok-4.1-fast" | "openrouter/openai/gpt-oss-120b" | "openrouter/deepseek/deepseek-chat-v3.1" | undefined; currentCode?: string | undefined; conversationHistory?: { role: "user" | "assistant" | "tool"; content: string; toolCallId?: string | undefined; name?: string | undefined; }[] | undefined; additionalContext?: string | undefined; uploadedFiles?: { content: string; name: string; fileType: "text" | "image"; }[] | undefined; }>; export declare const PearlResponseSchema: z.ZodObject<{ type: z.ZodEnum<["code", "question", "answer", "reject"]>; message: z.ZodString; snippet: z.ZodOptional<z.ZodString>; bubbleParameters: z.ZodOptional<z.ZodRecord<z.ZodNumber, z.ZodObject<{ variableName: z.ZodString; bubbleName: z.ZodType<import("./types.js").BubbleName>; className: z.ZodString; parameters: z.ZodArray<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 import("./bubble-definition-schema.js").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: import("./bubble-definition-schema.js").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: import("./bubble-definition-schema.js").BubbleParameterType; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }>, "many">; hasAwait: z.ZodBoolean; hasActionCall: z.ZodBoolean; dependencies: z.ZodOptional<z.ZodArray<z.ZodType<import("./types.js").BubbleName, z.ZodTypeDef, import("./types.js").BubbleName>, "many">>; dependencyGraph: z.ZodOptional<z.ZodType<import("./bubble-definition-schema.js").DependencyGraphNode, z.ZodTypeDef, import("./bubble-definition-schema.js").DependencyGraphNode>>; variableId: z.ZodNumber; nodeType: z.ZodEnum<["service", "tool", "workflow", "unknown"]>; location: 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; }>; description: z.ZodOptional<z.ZodString>; invocationCallSiteKey: z.ZodOptional<z.ZodString>; clonedFromVariableId: z.ZodOptional<z.ZodNumber>; isInsideCustomTool: z.ZodOptional<z.ZodBoolean>; containingCustomToolId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { name: string; value: string | number | boolean | unknown[] | Record<string, unknown>; type: import("./bubble-definition-schema.js").BubbleParameterType; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: import("./types.js").BubbleName; description?: string | undefined; dependencies?: import("./types.js").BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { name: string; value: string | number | boolean | unknown[] | Record<string, unknown>; type: import("./bubble-definition-schema.js").BubbleParameterType; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: import("./types.js").BubbleName; description?: string | undefined; dependencies?: import("./types.js").BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }>>>; inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; requiredCredentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">>>; success: z.ZodBoolean; error: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { message: string; type: "code" | "question" | "answer" | "reject"; success: boolean; error?: string | undefined; inputSchema?: Record<string, unknown> | undefined; requiredCredentials?: Record<string, CredentialType[]> | undefined; bubbleParameters?: Record<number, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { name: string; value: string | number | boolean | unknown[] | Record<string, unknown>; type: import("./bubble-definition-schema.js").BubbleParameterType; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: import("./types.js").BubbleName; description?: string | undefined; dependencies?: import("./types.js").BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }> | undefined; snippet?: string | undefined; }, { message: string; type: "code" | "question" | "answer" | "reject"; success: boolean; error?: string | undefined; inputSchema?: Record<string, unknown> | undefined; requiredCredentials?: Record<string, CredentialType[]> | undefined; bubbleParameters?: Record<number, { location: { startLine: number; startCol: number; endLine: number; endCol: number; }; variableId: number; variableName: string; nodeType: "tool" | "unknown" | "service" | "workflow"; className: string; parameters: { name: string; value: string | number | boolean | unknown[] | Record<string, unknown>; type: import("./bubble-definition-schema.js").BubbleParameterType; location?: { startLine: number; startCol: number; endLine: number; endCol: number; } | undefined; variableId?: number | undefined; source?: "object-property" | "first-arg" | "spread" | undefined; }[]; hasAwait: boolean; hasActionCall: boolean; bubbleName: import("./types.js").BubbleName; description?: string | undefined; dependencies?: import("./types.js").BubbleName[] | undefined; dependencyGraph?: import("./bubble-definition-schema.js").DependencyGraphNode | undefined; invocationCallSiteKey?: string | undefined; clonedFromVariableId?: number | undefined; isInsideCustomTool?: boolean | undefined; containingCustomToolId?: string | undefined; }> | undefined; snippet?: string | undefined; }>; export declare const PearlAgentOutputSchema: z.ZodObject<{ type: z.ZodEnum<["code", "question", "answer", "reject", "text"]>; message: z.ZodString; snippet: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { message: string; type: "code" | "question" | "answer" | "reject" | "text"; snippet?: string | undefined; }, { message: string; type: "code" | "question" | "answer" | "reject" | "text"; snippet?: string | undefined; }>; export type PearlRequest = z.infer<typeof PearlRequestSchema>; export type PearlResponse = z.infer<typeof PearlResponseSchema>; export type PearlAgentOutput = z.infer<typeof PearlAgentOutputSchema>; export declare enum CredentialType { 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", 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" }
|
|
122
|
+
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'; export declare const COFFEE_MAX_ITERATIONS = 30; export declare const COFFEE_MAX_QUESTIONS = 5; export declare const COFFEE_DEFAULT_MODEL: "google/gemini-3-pro-preview"; export declare const ClarificationChoiceSchema: z.ZodObject<{ id: z.ZodString; label: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; label: string; description?: string | undefined; }, { id: string; label: string; description?: string | undefined; }>; export declare const ClarificationQuestionSchema: z.ZodObject<{ id: z.ZodString; question: z.ZodString; choices: z.ZodArray<z.ZodObject<{ id: z.ZodString; label: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; label: string; description?: string | undefined; }, { id: string; label: string; description?: string | undefined; }>, "many">; context: z.ZodOptional<z.ZodString>; allowMultiple: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }>; export declare const CoffeeClarificationEventSchema: z.ZodObject<{ questions: z.ZodArray<z.ZodObject<{ id: z.ZodString; question: z.ZodString; choices: z.ZodArray<z.ZodObject<{ id: z.ZodString; label: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; label: string; description?: string | undefined; }, { id: string; label: string; description?: string | undefined; }>, "many">; context: z.ZodOptional<z.ZodString>; allowMultiple: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }[]; }, { questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }[]; }>; export declare const CoffeeRequestExternalContextEventSchema: z.ZodObject<{ flowId: z.ZodString; flowCode: z.ZodString; requiredCredentials: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }>; export declare const CoffeeContextAnswerSchema: z.ZodObject<{ flowId: z.ZodString; status: z.ZodEnum<["success", "rejected", "error"]>; result: z.ZodOptional<z.ZodUnknown>; error: z.ZodOptional<z.ZodString>; originalRequest: z.ZodOptional<z.ZodObject<{ flowId: z.ZodString; flowCode: z.ZodString; requiredCredentials: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }>>; }, "strip", z.ZodTypeAny, { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }, { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }>; export declare const CoffeeContextRequestInfoSchema: z.ZodObject<{ purpose: z.ZodString; flowDescription: z.ZodString; }, "strip", z.ZodTypeAny, { purpose: string; flowDescription: string; }, { purpose: string; flowDescription: string; }>; export declare const CoffeeContextEventSchema: z.ZodObject<{ status: z.ZodEnum<["gathering", "complete"]>; miniFlowDescription: z.ZodOptional<z.ZodString>; result: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { status: "gathering" | "complete"; result?: string | undefined; miniFlowDescription?: string | undefined; }, { status: "gathering" | "complete"; result?: string | undefined; miniFlowDescription?: string | undefined; }>; export declare const PlanStepSchema: z.ZodObject<{ title: z.ZodString; description: z.ZodString; bubblesUsed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { description: string; title: string; bubblesUsed?: string[] | undefined; }, { description: string; title: string; bubblesUsed?: string[] | undefined; }>; export declare const CoffeePlanEventSchema: z.ZodObject<{ summary: z.ZodString; steps: z.ZodArray<z.ZodObject<{ title: z.ZodString; description: z.ZodString; bubblesUsed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { description: string; title: string; bubblesUsed?: string[] | undefined; }, { description: string; title: string; bubblesUsed?: string[] | undefined; }>, "many">; estimatedBubbles: z.ZodArray<z.ZodString, "many">; }, "strip", z.ZodTypeAny, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }>; export declare const UserMessageSchema: z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"user">; content: z.ZodString; }, "strip", z.ZodTypeAny, { content: string; type: "user"; timestamp: string; id: string; }, { content: string; type: "user"; timestamp: string; id: string; }>; export declare const AssistantMessageSchema: z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"assistant">; content: z.ZodString; code: z.ZodOptional<z.ZodString>; resultType: z.ZodOptional<z.ZodEnum<["code", "question", "answer", "reject"]>>; bubbleParameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { content: string; type: "assistant"; timestamp: string; id: string; code?: string | undefined; bubbleParameters?: Record<string, unknown> | undefined; resultType?: "code" | "question" | "answer" | "reject" | undefined; }, { content: string; type: "assistant"; timestamp: string; id: string; code?: string | undefined; bubbleParameters?: Record<string, unknown> | undefined; resultType?: "code" | "question" | "answer" | "reject" | undefined; }>; export declare const ClarificationRequestMessageSchema: z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"clarification_request">; questions: z.ZodArray<z.ZodObject<{ id: z.ZodString; question: z.ZodString; choices: z.ZodArray<z.ZodObject<{ id: z.ZodString; label: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; label: string; description?: string | undefined; }, { id: string; label: string; description?: string | undefined; }>, "many">; context: z.ZodOptional<z.ZodString>; allowMultiple: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { type: "clarification_request"; timestamp: string; id: string; questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }[]; }, { type: "clarification_request"; timestamp: string; id: string; questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }[]; }>; export declare const ClarificationResponseMessageSchema: z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"clarification_response">; answers: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>; originalQuestions: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; question: z.ZodString; choices: z.ZodArray<z.ZodObject<{ id: z.ZodString; label: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; label: string; description?: string | undefined; }, { id: string; label: string; description?: string | undefined; }>, "many">; context: z.ZodOptional<z.ZodString>; allowMultiple: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { type: "clarification_response"; timestamp: string; id: string; answers: Record<string, string[]>; originalQuestions?: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }[] | undefined; }, { type: "clarification_response"; timestamp: string; id: string; answers: Record<string, string[]>; originalQuestions?: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }[] | undefined; }>; export declare const ContextRequestMessageSchema: z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"context_request">; request: z.ZodObject<{ flowId: z.ZodString; flowCode: z.ZodString; requiredCredentials: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }>; }, "strip", z.ZodTypeAny, { type: "context_request"; timestamp: string; id: string; request: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }; }, { type: "context_request"; timestamp: string; id: string; request: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }; }>; export declare const ContextResponseMessageSchema: z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"context_response">; answer: z.ZodObject<{ flowId: z.ZodString; status: z.ZodEnum<["success", "rejected", "error"]>; result: z.ZodOptional<z.ZodUnknown>; error: z.ZodOptional<z.ZodString>; originalRequest: z.ZodOptional<z.ZodObject<{ flowId: z.ZodString; flowCode: z.ZodString; requiredCredentials: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }>>; }, "strip", z.ZodTypeAny, { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }, { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }>; credentialTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { type: "context_response"; timestamp: string; id: string; answer: { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }; credentialTypes?: string[] | undefined; }, { type: "context_response"; timestamp: string; id: string; answer: { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }; credentialTypes?: string[] | undefined; }>; export declare const PlanMessageSchema: z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"plan">; plan: z.ZodObject<{ summary: z.ZodString; steps: z.ZodArray<z.ZodObject<{ title: z.ZodString; description: z.ZodString; bubblesUsed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { description: string; title: string; bubblesUsed?: string[] | undefined; }, { description: string; title: string; bubblesUsed?: string[] | undefined; }>, "many">; estimatedBubbles: z.ZodArray<z.ZodString, "many">; }, "strip", z.ZodTypeAny, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }>; }, "strip", z.ZodTypeAny, { type: "plan"; timestamp: string; id: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }; }, { type: "plan"; timestamp: string; id: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }; }>; export declare const PlanApprovalMessageSchema: z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"plan_approval">; approved: z.ZodBoolean; comment: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "plan_approval"; timestamp: string; id: string; approved: boolean; comment?: string | undefined; }, { type: "plan_approval"; timestamp: string; id: string; approved: boolean; comment?: string | undefined; }>; export declare const SystemMessageSchema: z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"system">; content: z.ZodString; }, "strip", z.ZodTypeAny, { content: string; type: "system"; timestamp: string; id: string; }, { content: string; type: "system"; timestamp: string; id: string; }>; export declare const ToolResultMessageSchema: z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"tool_result">; toolName: z.ZodString; toolCallId: z.ZodString; input: z.ZodUnknown; output: z.ZodUnknown; duration: z.ZodNumber; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { toolCallId: string; type: "tool_result"; timestamp: string; duration: number; id: string; success: boolean; toolName: string; input?: unknown; output?: unknown; }, { toolCallId: string; type: "tool_result"; timestamp: string; duration: number; id: string; success: boolean; toolName: string; input?: unknown; output?: unknown; }>; export declare const CoffeeMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"user">; content: z.ZodString; }, "strip", z.ZodTypeAny, { content: string; type: "user"; timestamp: string; id: string; }, { content: string; type: "user"; timestamp: string; id: string; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"assistant">; content: z.ZodString; code: z.ZodOptional<z.ZodString>; resultType: z.ZodOptional<z.ZodEnum<["code", "question", "answer", "reject"]>>; bubbleParameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { content: string; type: "assistant"; timestamp: string; id: string; code?: string | undefined; bubbleParameters?: Record<string, unknown> | undefined; resultType?: "code" | "question" | "answer" | "reject" | undefined; }, { content: string; type: "assistant"; timestamp: string; id: string; code?: string | undefined; bubbleParameters?: Record<string, unknown> | undefined; resultType?: "code" | "question" | "answer" | "reject" | undefined; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"clarification_request">; questions: z.ZodArray<z.ZodObject<{ id: z.ZodString; question: z.ZodString; choices: z.ZodArray<z.ZodObject<{ id: z.ZodString; label: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; label: string; description?: string | undefined; }, { id: string; label: string; description?: string | undefined; }>, "many">; context: z.ZodOptional<z.ZodString>; allowMultiple: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { type: "clarification_request"; timestamp: string; id: string; questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }[]; }, { type: "clarification_request"; timestamp: string; id: string; questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }[]; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"clarification_response">; answers: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>; originalQuestions: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; question: z.ZodString; choices: z.ZodArray<z.ZodObject<{ id: z.ZodString; label: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; label: string; description?: string | undefined; }, { id: string; label: string; description?: string | undefined; }>, "many">; context: z.ZodOptional<z.ZodString>; allowMultiple: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { type: "clarification_response"; timestamp: string; id: string; answers: Record<string, string[]>; originalQuestions?: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }[] | undefined; }, { type: "clarification_response"; timestamp: string; id: string; answers: Record<string, string[]>; originalQuestions?: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }[] | undefined; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"context_request">; request: z.ZodObject<{ flowId: z.ZodString; flowCode: z.ZodString; requiredCredentials: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }>; }, "strip", z.ZodTypeAny, { type: "context_request"; timestamp: string; id: string; request: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }; }, { type: "context_request"; timestamp: string; id: string; request: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"context_response">; answer: z.ZodObject<{ flowId: z.ZodString; status: z.ZodEnum<["success", "rejected", "error"]>; result: z.ZodOptional<z.ZodUnknown>; error: z.ZodOptional<z.ZodString>; originalRequest: z.ZodOptional<z.ZodObject<{ flowId: z.ZodString; flowCode: z.ZodString; requiredCredentials: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }>>; }, "strip", z.ZodTypeAny, { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }, { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }>; credentialTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { type: "context_response"; timestamp: string; id: string; answer: { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }; credentialTypes?: string[] | undefined; }, { type: "context_response"; timestamp: string; id: string; answer: { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }; credentialTypes?: string[] | undefined; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"plan">; plan: z.ZodObject<{ summary: z.ZodString; steps: z.ZodArray<z.ZodObject<{ title: z.ZodString; description: z.ZodString; bubblesUsed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { description: string; title: string; bubblesUsed?: string[] | undefined; }, { description: string; title: string; bubblesUsed?: string[] | undefined; }>, "many">; estimatedBubbles: z.ZodArray<z.ZodString, "many">; }, "strip", z.ZodTypeAny, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }>; }, "strip", z.ZodTypeAny, { type: "plan"; timestamp: string; id: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }; }, { type: "plan"; timestamp: string; id: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"plan_approval">; approved: z.ZodBoolean; comment: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "plan_approval"; timestamp: string; id: string; approved: boolean; comment?: string | undefined; }, { type: "plan_approval"; timestamp: string; id: string; approved: boolean; comment?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"system">; content: z.ZodString; }, "strip", z.ZodTypeAny, { content: string; type: "system"; timestamp: string; id: string; }, { content: string; type: "system"; timestamp: string; id: string; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"tool_result">; toolName: z.ZodString; toolCallId: z.ZodString; input: z.ZodUnknown; output: z.ZodUnknown; duration: z.ZodNumber; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { toolCallId: string; type: "tool_result"; timestamp: string; duration: number; id: string; success: boolean; toolName: string; input?: unknown; output?: unknown; }, { toolCallId: string; type: "tool_result"; timestamp: string; duration: number; id: string; success: boolean; toolName: string; input?: unknown; output?: unknown; }>]>; export declare const CoffeeRequestSchema: z.ZodObject<{ prompt: z.ZodString; flowId: z.ZodOptional<z.ZodNumber>; messages: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"user">; content: z.ZodString; }, "strip", z.ZodTypeAny, { content: string; type: "user"; timestamp: string; id: string; }, { content: string; type: "user"; timestamp: string; id: string; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"assistant">; content: z.ZodString; code: z.ZodOptional<z.ZodString>; resultType: z.ZodOptional<z.ZodEnum<["code", "question", "answer", "reject"]>>; bubbleParameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { content: string; type: "assistant"; timestamp: string; id: string; code?: string | undefined; bubbleParameters?: Record<string, unknown> | undefined; resultType?: "code" | "question" | "answer" | "reject" | undefined; }, { content: string; type: "assistant"; timestamp: string; id: string; code?: string | undefined; bubbleParameters?: Record<string, unknown> | undefined; resultType?: "code" | "question" | "answer" | "reject" | undefined; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"clarification_request">; questions: z.ZodArray<z.ZodObject<{ id: z.ZodString; question: z.ZodString; choices: z.ZodArray<z.ZodObject<{ id: z.ZodString; label: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; label: string; description?: string | undefined; }, { id: string; label: string; description?: string | undefined; }>, "many">; context: z.ZodOptional<z.ZodString>; allowMultiple: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { type: "clarification_request"; timestamp: string; id: string; questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }[]; }, { type: "clarification_request"; timestamp: string; id: string; questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }[]; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"clarification_response">; answers: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>; originalQuestions: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; question: z.ZodString; choices: z.ZodArray<z.ZodObject<{ id: z.ZodString; label: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; label: string; description?: string | undefined; }, { id: string; label: string; description?: string | undefined; }>, "many">; context: z.ZodOptional<z.ZodString>; allowMultiple: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { type: "clarification_response"; timestamp: string; id: string; answers: Record<string, string[]>; originalQuestions?: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }[] | undefined; }, { type: "clarification_response"; timestamp: string; id: string; answers: Record<string, string[]>; originalQuestions?: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }[] | undefined; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"context_request">; request: z.ZodObject<{ flowId: z.ZodString; flowCode: z.ZodString; requiredCredentials: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }>; }, "strip", z.ZodTypeAny, { type: "context_request"; timestamp: string; id: string; request: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }; }, { type: "context_request"; timestamp: string; id: string; request: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"context_response">; answer: z.ZodObject<{ flowId: z.ZodString; status: z.ZodEnum<["success", "rejected", "error"]>; result: z.ZodOptional<z.ZodUnknown>; error: z.ZodOptional<z.ZodString>; originalRequest: z.ZodOptional<z.ZodObject<{ flowId: z.ZodString; flowCode: z.ZodString; requiredCredentials: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }>>; }, "strip", z.ZodTypeAny, { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }, { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }>; credentialTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { type: "context_response"; timestamp: string; id: string; answer: { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }; credentialTypes?: string[] | undefined; }, { type: "context_response"; timestamp: string; id: string; answer: { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }; credentialTypes?: string[] | undefined; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"plan">; plan: z.ZodObject<{ summary: z.ZodString; steps: z.ZodArray<z.ZodObject<{ title: z.ZodString; description: z.ZodString; bubblesUsed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { description: string; title: string; bubblesUsed?: string[] | undefined; }, { description: string; title: string; bubblesUsed?: string[] | undefined; }>, "many">; estimatedBubbles: z.ZodArray<z.ZodString, "many">; }, "strip", z.ZodTypeAny, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }>; }, "strip", z.ZodTypeAny, { type: "plan"; timestamp: string; id: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }; }, { type: "plan"; timestamp: string; id: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"plan_approval">; approved: z.ZodBoolean; comment: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "plan_approval"; timestamp: string; id: string; approved: boolean; comment?: string | undefined; }, { type: "plan_approval"; timestamp: string; id: string; approved: boolean; comment?: string | undefined; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"system">; content: z.ZodString; }, "strip", z.ZodTypeAny, { content: string; type: "system"; timestamp: string; id: string; }, { content: string; type: "system"; timestamp: string; id: string; }>, z.ZodObject<{ id: z.ZodString; timestamp: z.ZodString; } & { type: z.ZodLiteral<"tool_result">; toolName: z.ZodString; toolCallId: z.ZodString; input: z.ZodUnknown; output: z.ZodUnknown; duration: z.ZodNumber; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { toolCallId: string; type: "tool_result"; timestamp: string; duration: number; id: string; success: boolean; toolName: string; input?: unknown; output?: unknown; }, { toolCallId: string; type: "tool_result"; timestamp: string; duration: number; id: string; success: boolean; toolName: string; input?: unknown; output?: unknown; }>]>, "many">>; }, "strip", z.ZodTypeAny, { prompt: string; flowId?: number | undefined; messages?: ({ content: string; type: "user"; timestamp: string; id: string; } | { content: string; type: "assistant"; timestamp: string; id: string; code?: string | undefined; bubbleParameters?: Record<string, unknown> | undefined; resultType?: "code" | "question" | "answer" | "reject" | undefined; } | { type: "clarification_request"; timestamp: string; id: string; questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }[]; } | { type: "clarification_response"; timestamp: string; id: string; answers: Record<string, string[]>; originalQuestions?: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }[] | undefined; } | { type: "context_request"; timestamp: string; id: string; request: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }; } | { type: "context_response"; timestamp: string; id: string; answer: { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }; credentialTypes?: string[] | undefined; } | { type: "plan"; timestamp: string; id: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }; } | { type: "plan_approval"; timestamp: string; id: string; approved: boolean; comment?: string | undefined; } | { content: string; type: "system"; timestamp: string; id: string; } | { toolCallId: string; type: "tool_result"; timestamp: string; duration: number; id: string; success: boolean; toolName: string; input?: unknown; output?: unknown; })[] | undefined; }, { prompt: string; flowId?: number | undefined; messages?: ({ content: string; type: "user"; timestamp: string; id: string; } | { content: string; type: "assistant"; timestamp: string; id: string; code?: string | undefined; bubbleParameters?: Record<string, unknown> | undefined; resultType?: "code" | "question" | "answer" | "reject" | undefined; } | { type: "clarification_request"; timestamp: string; id: string; questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }[]; } | { type: "clarification_response"; timestamp: string; id: string; answers: Record<string, string[]>; originalQuestions?: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }[] | undefined; } | { type: "context_request"; timestamp: string; id: string; request: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }; } | { type: "context_response"; timestamp: string; id: string; answer: { status: "error" | "success" | "rejected"; flowId: string; error?: string | undefined; result?: unknown; originalRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }; credentialTypes?: string[] | undefined; } | { type: "plan"; timestamp: string; id: string; plan: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }; } | { type: "plan_approval"; timestamp: string; id: string; approved: boolean; comment?: string | undefined; } | { content: string; type: "system"; timestamp: string; id: string; } | { toolCallId: string; type: "tool_result"; timestamp: string; duration: number; id: string; success: boolean; toolName: string; input?: unknown; output?: unknown; })[] | undefined; }>; export declare const CoffeeResponseSchema: z.ZodObject<{ type: z.ZodEnum<["clarification", "plan", "context_request", "error"]>; clarification: z.ZodOptional<z.ZodObject<{ questions: z.ZodArray<z.ZodObject<{ id: z.ZodString; question: z.ZodString; choices: z.ZodArray<z.ZodObject<{ id: z.ZodString; label: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; label: string; description?: string | undefined; }, { id: string; label: string; description?: string | undefined; }>, "many">; context: z.ZodOptional<z.ZodString>; allowMultiple: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }[]; }, { questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }[]; }>>; plan: z.ZodOptional<z.ZodObject<{ summary: z.ZodString; steps: z.ZodArray<z.ZodObject<{ title: z.ZodString; description: z.ZodString; bubblesUsed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { description: string; title: string; bubblesUsed?: string[] | undefined; }, { description: string; title: string; bubblesUsed?: string[] | undefined; }>, "many">; estimatedBubbles: z.ZodArray<z.ZodString, "many">; }, "strip", z.ZodTypeAny, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }>>; contextRequest: z.ZodOptional<z.ZodObject<{ flowId: z.ZodString; flowCode: z.ZodString; requiredCredentials: z.ZodArray<z.ZodNativeEnum<typeof CredentialType>, "many">; description: z.ZodString; }, "strip", z.ZodTypeAny, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }, { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; }>>; error: z.ZodOptional<z.ZodString>; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { type: "error" | "context_request" | "plan" | "clarification"; success: boolean; error?: string | undefined; plan?: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; } | undefined; clarification?: { questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }[]; } | undefined; contextRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }, { type: "error" | "context_request" | "plan" | "clarification"; success: boolean; error?: string | undefined; plan?: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; } | undefined; clarification?: { questions: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }[]; } | undefined; contextRequest?: { description: string; flowId: string; requiredCredentials: CredentialType[]; flowCode: string; } | undefined; }>; export declare const CoffeeAgentOutputSchema: z.ZodObject<{ action: z.ZodEnum<["askClarification", "generatePlan", "requestContext"]>; questions: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; question: z.ZodString; choices: z.ZodArray<z.ZodObject<{ id: z.ZodString; label: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; label: string; description?: string | undefined; }, { id: string; label: string; description?: string | undefined; }>, "many">; context: z.ZodOptional<z.ZodString>; allowMultiple: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }, { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }>, "many">>; plan: z.ZodOptional<z.ZodObject<{ summary: z.ZodString; steps: z.ZodArray<z.ZodObject<{ title: z.ZodString; description: z.ZodString; bubblesUsed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { description: string; title: string; bubblesUsed?: string[] | undefined; }, { description: string; title: string; bubblesUsed?: string[] | undefined; }>, "many">; estimatedBubbles: z.ZodArray<z.ZodString, "many">; }, "strip", z.ZodTypeAny, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }, { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; }>>; contextRequest: z.ZodOptional<z.ZodObject<{ purpose: z.ZodString; flowDescription: z.ZodString; }, "strip", z.ZodTypeAny, { purpose: string; flowDescription: string; }, { purpose: string; flowDescription: string; }>>; }, "strip", z.ZodTypeAny, { action: "askClarification" | "generatePlan" | "requestContext"; questions?: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; allowMultiple: boolean; context?: string | undefined; }[] | undefined; plan?: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; } | undefined; contextRequest?: { purpose: string; flowDescription: string; } | undefined; }, { action: "askClarification" | "generatePlan" | "requestContext"; questions?: { id: string; question: string; choices: { id: string; label: string; description?: string | undefined; }[]; context?: string | undefined; allowMultiple?: boolean | undefined; }[] | undefined; plan?: { summary: string; steps: { description: string; title: string; bubblesUsed?: string[] | undefined; }[]; estimatedBubbles: string[]; } | undefined; contextRequest?: { purpose: string; flowDescription: string; } | undefined; }>; export type ClarificationChoice = z.infer<typeof ClarificationChoiceSchema>; export type ClarificationQuestion = z.infer<typeof ClarificationQuestionSchema>; export type CoffeeClarificationEvent = z.infer<typeof CoffeeClarificationEventSchema>; export type CoffeeRequestExternalContextEvent = z.infer<typeof CoffeeRequestExternalContextEventSchema>; export type CoffeeContextAnswer = z.infer<typeof CoffeeContextAnswerSchema>; export type CoffeeContextEvent = z.infer<typeof CoffeeContextEventSchema>; export type CoffeeContextRequestInfo = z.infer<typeof CoffeeContextRequestInfoSchema>; export type PlanStep = z.infer<typeof PlanStepSchema>; export type CoffeePlanEvent = z.infer<typeof CoffeePlanEventSchema>; export type CoffeeRequest = z.infer<typeof CoffeeRequestSchema>; export type CoffeeResponse = z.infer<typeof CoffeeResponseSchema>; export type CoffeeAgentOutput = z.infer<typeof CoffeeAgentOutputSchema>; export type UserMessage = z.infer<typeof UserMessageSchema>; export type AssistantMessage = z.infer<typeof AssistantMessageSchema>; export type ClarificationRequestMessage = z.infer<typeof ClarificationRequestMessageSchema>; export type ClarificationResponseMessage = z.infer<typeof ClarificationResponseMessageSchema>; export type ContextRequestMessage = z.infer<typeof ContextRequestMessageSchema>; export type ContextResponseMessage = z.infer<typeof ContextResponseMessageSchema>; export type PlanMessage = z.infer<typeof PlanMessageSchema>; export type PlanApprovalMessage = z.infer<typeof PlanApprovalMessageSchema>; export type SystemMessage = z.infer<typeof SystemMessageSchema>; export type ToolResultMessage = z.infer<typeof ToolResultMessageSchema>; export type CoffeeMessage = z.infer<typeof CoffeeMessageSchema>; 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/anthropic/claude-sonnet-4.5", "openrouter/google/gemini-3-pro-preview", "openrouter/morph/morph-v3-large", "openrouter/x-ai/grok-4.1-fast", "openrouter/openai/gpt-oss-120b", "openrouter/deepseek/deepseek-chat-v3.1"]>; export type AvailableModel = z.infer<typeof AvailableModels>; export declare const RICE_DEFAULT_MODEL: AvailableModel; export declare const RiceIssueTypeSchema: z.ZodNullable<z.ZodEnum<["setup", "workflow", "input"]>>; export type RiceIssueType = z.infer<typeof RiceIssueTypeSchema>; export declare const RiceEvaluationResultSchema: z.ZodObject<{ working: z.ZodBoolean; issueType: z.ZodNullable<z.ZodEnum<["setup", "workflow", "input"]>>; summary: z.ZodString; rating: z.ZodNumber; }, "strip", z.ZodTypeAny, { summary: string; working: boolean; issueType: "workflow" | "input" | "setup" | null; rating: number; }, { summary: string; working: boolean; issueType: "workflow" | "input" | "setup" | null; rating: number; }>; export declare const RiceRequestSchema: z.ZodObject<{ executionLogs: z.ZodArray<z.ZodUnknown, "many">; workflowCode: z.ZodString; executionId: z.ZodNumber; bubbleFlowId: z.ZodNumber; model: z.ZodDefault<z.ZodOptional<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/anthropic/claude-sonnet-4.5", "openrouter/google/gemini-3-pro-preview", "openrouter/morph/morph-v3-large", "openrouter/x-ai/grok-4.1-fast", "openrouter/openai/gpt-oss-120b", "openrouter/deepseek/deepseek-chat-v3.1"]>>>; }, "strip", z.ZodTypeAny, { executionLogs: unknown[]; executionId: number; model: "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/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/x-ai/grok-4.1-fast" | "openrouter/openai/gpt-oss-120b" | "openrouter/deepseek/deepseek-chat-v3.1"; workflowCode: string; bubbleFlowId: number; }, { executionLogs: unknown[]; executionId: number; workflowCode: string; bubbleFlowId: number; model?: "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/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/x-ai/grok-4.1-fast" | "openrouter/openai/gpt-oss-120b" | "openrouter/deepseek/deepseek-chat-v3.1" | undefined; }>; export declare const RiceResponseSchema: z.ZodObject<{ success: z.ZodBoolean; evaluation: z.ZodOptional<z.ZodObject<{ working: z.ZodBoolean; issueType: z.ZodNullable<z.ZodEnum<["setup", "workflow", "input"]>>; summary: z.ZodString; rating: z.ZodNumber; }, "strip", z.ZodTypeAny, { summary: string; working: boolean; issueType: "workflow" | "input" | "setup" | null; rating: number; }, { summary: string; working: boolean; issueType: "workflow" | "input" | "setup" | null; rating: number; }>>; error: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { success: boolean; error?: string | undefined; evaluation?: { summary: string; working: boolean; issueType: "workflow" | "input" | "setup" | null; rating: number; } | undefined; }, { success: boolean; error?: string | undefined; evaluation?: { summary: string; working: boolean; issueType: "workflow" | "input" | "setup" | null; rating: number; } | undefined; }>; export type RiceEvaluationResult = z.infer<typeof RiceEvaluationResultSchema>; export type RiceRequest = z.input<typeof RiceRequestSchema>; export type RiceResponse = z.infer<typeof RiceResponseSchema>; 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/anthropic/claude-sonnet-4.5", "openrouter/google/gemini-3-pro-preview", "openrouter/morph/morph-v3-large", "openrouter/x-ai/grok-4.1-fast", "openrouter/openai/gpt-oss-120b", "openrouter/deepseek/deepseek-chat-v3.1"]>; export type AvailableModel = z.infer<typeof AvailableModels>; export interface CronExpression { minute: string; hour: string; dayOfMonth: string; month: string; dayOfWeek: string; original: string; }
|
|
123
123
|
export interface CronScheduleInfo { expression: CronExpression; description: string; nextRun?: Date; isValid: boolean; error?: string; }
|
|
124
|
-
export declare function parseCronExpression(cronString: string): CronExpression; export declare function validateCronExpression(cronString: string): { valid: boolean; error?: string; }; export declare function describeCronExpression(cronString: string): string; export declare function getCronScheduleInfo(cronString: string): CronScheduleInfo; export interface BubbleTriggerEventRegistry { 'slack/bot_mentioned': SlackMentionEvent; 'schedule/cron': CronEvent; 'webhook/http': WebhookEvent; }
|
|
125
|
-
export declare const BUBBLE_TRIGGER_EVENTS: { readonly 'slack/bot_mentioned': true; readonly 'schedule/cron': true; readonly 'webhook/http': true; }; export declare function isValidBubbleTriggerEvent(eventType: string): eventType is keyof BubbleTriggerEventRegistry; export interface BubbleTriggerEvent { type: keyof BubbleTriggerEventRegistry; timestamp: string; executionId: string; path: string; [key: string]: unknown; }
|
|
124
|
+
export declare function parseCronExpression(cronString: string): CronExpression; export declare function validateCronExpression(cronString: string): { valid: boolean; error?: string; }; export declare function describeCronExpression(cronString: string): string; export declare function getCronScheduleInfo(cronString: string): CronScheduleInfo; export interface BubbleTriggerEventRegistry { 'slack/bot_mentioned': SlackMentionEvent; 'slack/message_received': SlackMessageReceivedEvent; 'schedule/cron': CronEvent; 'webhook/http': WebhookEvent; }
|
|
125
|
+
export declare const BUBBLE_TRIGGER_EVENTS: { readonly 'slack/bot_mentioned': true; readonly 'slack/message_received': true; readonly 'schedule/cron': true; readonly 'webhook/http': true; }; export declare function isValidBubbleTriggerEvent(eventType: string): eventType is keyof BubbleTriggerEventRegistry; export interface BubbleTriggerEvent { type: keyof BubbleTriggerEventRegistry; timestamp: string; executionId: string; path: string; [key: string]: unknown; }
|
|
126
126
|
export interface CronEvent extends BubbleTriggerEvent { cron: string; body?: Record<string, unknown>; }
|
|
127
127
|
export interface WebhookEvent extends BubbleTriggerEvent { body?: Record<string, unknown>; }
|
|
128
128
|
export interface BubbleTrigger { type: keyof BubbleTriggerEventRegistry; cronSchedule?: string; name?: string; description?: string; timeout?: number; retries?: number; }
|
|
@@ -131,8 +131,11 @@ export interface SlackAppMentionEvent { type: 'app_mention'; user: string; text:
|
|
|
131
131
|
export interface SlackMessageEvent { type: 'message'; user: string; text: string; ts: string; channel: string; event_ts: string; channel_type: 'channel' | 'group' | 'im' | 'mpim'; subtype?: string; }
|
|
132
132
|
export interface SlackMentionEvent extends BubbleTriggerEvent { slack_event: SlackEventWrapper; channel: string; user: string; text: string; thread_ts?: string; }
|
|
133
133
|
export interface SlackMessageReceivedEvent extends BubbleTriggerEvent { slack_event: SlackEventWrapper; channel: string; user: string; text: string; channel_type: 'channel' | 'group' | 'im' | 'mpim'; subtype?: string; }
|
|
134
|
-
export
|
|
135
|
-
export
|
|
134
|
+
export interface JsonSchema { type: string; properties?: Record<string, JsonSchemaProperty>; required?: string[]; additionalProperties?: boolean; }
|
|
135
|
+
export interface JsonSchemaProperty { type?: string; description?: string; [key: string]: unknown; }
|
|
136
|
+
export interface TriggerEventConfig { serviceName: string; friendlyName: string; description: string; setupGuide: string; payloadSchema: JsonSchema; }
|
|
137
|
+
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 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/anthropic/claude-sonnet-4.5", "openrouter/google/gemini-3-pro-preview", "openrouter/morph/morph-v3-large", "openrouter/x-ai/grok-4.1-fast", "openrouter/openai/gpt-oss-120b", "openrouter/deepseek/deepseek-chat-v3.1"]>; 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 { 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", 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" }
|
|
138
|
+
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'; 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 class BubbleError extends Error { readonly variableId?: number; readonly bubbleName?: string; constructor(message: string, options?: { variableId?: number; bubbleName?: string; cause?: Error; }); }
|
|
136
139
|
export declare class BubbleValidationError extends BubbleError { readonly validationErrors?: string[]; constructor(message: string, options?: { variableId?: number; bubbleName?: string; validationErrors?: string[]; cause?: Error; }); }
|
|
137
140
|
export declare class BubbleExecutionError extends BubbleError { readonly executionPhase?: 'instantiation' | 'execution' | 'validation'; constructor(message: string, options?: { variableId?: number; bubbleName?: string; executionPhase?: 'instantiation' | 'execution' | 'validation'; cause?: Error; }); }
|
|
138
141
|
export declare enum LogLevel { TRACE = 0, DEBUG = 1, INFO = 2, WARN = 3, ERROR = 4, FATAL = 5 }
|
|
@@ -148,7 +151,7 @@ export interface IToolBubble<TResult extends BubbleOperationResult = BubbleOpera
|
|
|
148
151
|
export interface IUIBubble extends IBubble { readonly type: 'ui'; template: string; }
|
|
149
152
|
export interface IInfraBubble extends IBubble { readonly type: 'infra'; provider: 'aws' | 'gcp' | 'supabase'; resourceType: string; }
|
|
150
153
|
export type BubbleFlowOperationResult = unknown; export interface BubbleContext { logger?: BubbleLogger; variableId?: number; invocationCallSiteKey?: string; dependencyGraph?: DependencyGraphNode; currentUniqueId?: string; __uniqueIdCounters__?: Record<string, number>; [key: string]: unknown; }
|
|
151
|
-
export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; retries?: number; }; export { CREDENTIAL_CONFIGURATION_MAP, CREDENTIAL_ENV_MAP }; export declare const AvailableTools: z.ZodEnum<["web-search-tool", "web-scrape-tool", "web-crawl-tool", "web-extract-tool", "research-agent-tool", "reddit-scrape-tool", "instagram-tool", "list-bubbles-tool", "get-bubble-details-tool", "bubbleflow-validation-tool", "code-edit-tool", "chart-js-tool", "amazon-shopping-tool", "linkedin-tool", "tiktok-tool", "twitter-tool", "google-maps-tool", "youtube-tool", "sql-query-tool"]>; export type AvailableTool = z.infer<typeof AvailableTools>; export declare class BubbleError extends Error { readonly variableId?: number; readonly bubbleName?: string; constructor(message: string, options?: { variableId?: number; bubbleName?: string; cause?: Error; }); }
|
|
154
|
+
export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; retries?: number; }; export { CREDENTIAL_CONFIGURATION_MAP, CREDENTIAL_ENV_MAP }; export declare const AvailableTools: z.ZodEnum<["web-search-tool", "web-scrape-tool", "web-crawl-tool", "web-extract-tool", "research-agent-tool", "reddit-scrape-tool", "instagram-tool", "list-bubbles-tool", "get-bubble-details-tool", "get-trigger-detail-tool", "bubbleflow-validation-tool", "code-edit-tool", "chart-js-tool", "amazon-shopping-tool", "linkedin-tool", "tiktok-tool", "twitter-tool", "google-maps-tool", "youtube-tool", "sql-query-tool"]>; export type AvailableTool = z.infer<typeof AvailableTools>; export declare class BubbleError extends Error { readonly variableId?: number; readonly bubbleName?: string; constructor(message: string, options?: { variableId?: number; bubbleName?: string; cause?: Error; }); }
|
|
152
155
|
export declare class BubbleValidationError extends BubbleError { readonly validationErrors?: string[]; constructor(message: string, options?: { variableId?: number; bubbleName?: string; validationErrors?: string[]; cause?: Error; }); }
|
|
153
156
|
export declare class BubbleExecutionError extends BubbleError { readonly executionPhase?: 'instantiation' | 'execution' | 'validation'; constructor(message: string, options?: { variableId?: number; bubbleName?: string; executionPhase?: 'instantiation' | 'execution' | 'validation'; cause?: Error; }); }
|
|
154
157
|
export declare abstract class BaseBubble<TParams = unknown, TResult extends BubbleOperationResult = BubbleOperationResult> implements IBubble<TResult> { readonly name: string; readonly schema: z.ZodObject<z.ZodRawShape>; readonly resultSchema: z.ZodObject<z.ZodRawShape>; readonly shortDescription: string; readonly longDescription: string; readonly alias?: string; abstract readonly type: 'service' | 'workflow' | 'tool' | 'ui' | 'infra'; protected readonly params: TParams; protected context?: BubbleContext; previousResult: BubbleResult<BubbleOperationResult> | undefined; protected readonly instanceId?: string; constructor(params: unknown, context?: BubbleContext, instanceId?: string); private computeChildContext; saveResult<R extends BubbleOperationResult>(result: BubbleResult<R>): void; clearSavedResult(): void; toJSON(): Record<string, unknown>; action(): Promise<BubbleResult<TResult>>; generateMockResult(): BubbleResult<TResult>; generateMockResultWithSeed(seed: number): BubbleResult<TResult>; protected abstract performAction(context?: BubbleContext): Promise<TResult>; }
|
|
@@ -222,7 +225,7 @@ export interface IToolBubble<TResult extends BubbleOperationResult = BubbleOpera
|
|
|
222
225
|
export interface IUIBubble extends IBubble { readonly type: 'ui'; template: string; }
|
|
223
226
|
export interface IInfraBubble extends IBubble { readonly type: 'infra'; provider: 'aws' | 'gcp' | 'supabase'; resourceType: string; }
|
|
224
227
|
export type BubbleFlowOperationResult = unknown; export interface BubbleContext { logger?: BubbleLogger; variableId?: number; invocationCallSiteKey?: string; dependencyGraph?: DependencyGraphNode; currentUniqueId?: string; __uniqueIdCounters__?: Record<string, number>; [key: string]: unknown; }
|
|
225
|
-
export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; retries?: number; }; export declare const AvailableTools: z.ZodEnum<["web-search-tool", "web-scrape-tool", "web-crawl-tool", "web-extract-tool", "research-agent-tool", "reddit-scrape-tool", "instagram-tool", "list-bubbles-tool", "get-bubble-details-tool", "bubbleflow-validation-tool", "code-edit-tool", "chart-js-tool", "amazon-shopping-tool", "linkedin-tool", "tiktok-tool", "twitter-tool", "google-maps-tool", "youtube-tool", "sql-query-tool"]>; export type AvailableTool = z.infer<typeof AvailableTools>; export type ToolHookContext = { toolName: AvailableTool; toolInput: unknown; toolOutput?: BubbleResult<unknown>; messages: BaseMessage[]; }; export type ToolHookAfter = (context: ToolHookContext) => Promise<{ messages: BaseMessage[]; shouldStop?: boolean; }>; export type ToolHookBefore = (context: ToolHookContext) => Promise<{ messages: BaseMessage[]; toolInput: Record<string, any>; }>; export type AfterLLMCallContext = { messages: BaseMessage[]; lastAIMessage: AIMessage | AIMessageChunk; hasToolCalls: boolean; }; export type AfterLLMCallHook = (context: AfterLLMCallContext) => Promise<{ messages: BaseMessage[]; continueToAgent?: boolean; }>; export type StreamingCallback = (event: StreamingEvent) => Promise<void> | void; export type ConversationMessage = z.infer<typeof ConversationMessageSchema>; declare const AIAgentParamsSchema: z.ZodObject<{ message: z.ZodString; images: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodDefault<z.ZodLiteral<"base64">>; data: z.ZodString; mimeType: z.ZodDefault<z.ZodString>; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "base64"; data: string; mimeType: string; description?: string | undefined; }, { data: string; type?: "base64" | undefined; description?: string | undefined; mimeType?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; url: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "url"; url: string; description?: string | undefined; }, { type: "url"; url: string; description?: string | undefined; }>]>, "many">>; conversationHistory: z.ZodOptional<z.ZodArray<z.ZodObject<{ role: z.ZodEnum<["user", "assistant", "tool"]>; content: z.ZodString; toolCallId: z.ZodOptional<z.ZodString>; name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { content: string; role: "user" | "assistant" | "tool"; name?: string | undefined; toolCallId?: string | undefined; }, { content: string; role: "user" | "assistant" | "tool"; name?: string | undefined; toolCallId?: string | undefined; }>, "many">>; systemPrompt: z.ZodDefault<z.ZodString>; name: z.ZodOptional<z.ZodDefault<z.ZodString>>; model: z.ZodDefault<z.ZodObject<{ model: 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/anthropic/claude-sonnet-4.5", "openrouter/google/gemini-3-pro-preview", "openrouter/morph/morph-v3-large", "openrouter/x-ai/grok-4.1-fast", "openrouter/openai/gpt-oss-120b", "openrouter/deepseek/deepseek-chat-v3.1"]>; temperature: z.ZodDefault<z.ZodNumber>; maxTokens: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; reasoningEffort: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>; maxRetries: z.ZodDefault<z.ZodNumber>; provider: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; jsonMode: z.ZodDefault<z.ZodBoolean>; backupModel: z.ZodOptional<z.ZodDefault<z.ZodObject<{ model: 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/anthropic/claude-sonnet-4.5", "openrouter/google/gemini-3-pro-preview", "openrouter/morph/morph-v3-large", "openrouter/x-ai/grok-4.1-fast", "openrouter/openai/gpt-oss-120b", "openrouter/deepseek/deepseek-chat-v3.1"]>; temperature: z.ZodOptional<z.ZodNumber>; maxTokens: z.ZodOptional<z.ZodNumber>; reasoningEffort: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>; maxRetries: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { model: "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/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/x-ai/grok-4.1-fast" | "openrouter/openai/gpt-oss-120b" | "openrouter/deepseek/deepseek-chat-v3.1"; temperature?: number | undefined; maxTokens?: number | undefined; reasoningEffort?: "low" | "medium" | "high" | undefined; maxRetries?: number | undefined; }, { model: "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/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/x-ai/grok-4.1-fast" | "openrouter/openai/gpt-oss-120b" | "openrouter/deepseek/deepseek-chat-v3.1"; temperature?: number | undefined; maxTokens?: number | undefined; reasoningEffort?: "low" | "medium" | "high" | undefined; maxRetries?: number | undefined; }>>>; }, "strip", z.ZodTypeAny, { model: "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/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/x-ai/grok-4.1-fast" | "openrouter/openai/gpt-oss-120b" | "openrouter/deepseek/deepseek-chat-v3.1"; temperature: number; maxTokens: number; maxRetries: number; jsonMode: boolean; reasoningEffort?: "low" | "medium" | "high" | undefined; provider?: string[] | undefined; backupModel?: { model: "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/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/x-ai/grok-4.1-fast" | "openrouter/openai/gpt-oss-120b" | "openrouter/deepseek/deepseek-chat-v3.1"; temperature?: number | undefined; maxTokens?: number | undefined; reasoningEffort?: "low" | "medium" | "high" | undefined; maxRetries?: number | undefined; } | undefined; }, { model: "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/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/x-ai/grok-4.1-fast" | "openrouter/openai/gpt-oss-120b" | "openrouter/deepseek/deepseek-chat-v3.1"; temperature?: number | undefined; maxTokens?: number | undefined; reasoningEffort?: "low" | "medium" | "high" | undefined; maxRetries?: number | undefined; provider?: string[] | undefined; jsonMode?: boolean | undefined; backupModel?: { model: "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/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/x-ai/grok-4.1-fast" | "openrouter/openai/gpt-oss-120b" | "openrouter/deepseek/deepseek-chat-v3.1"; temperature?: number | undefined; maxTokens?: number | undefined; reasoningEffort?: "low" | "medium" | "high" | undefined; maxRetries?: number | undefined; } | undefined; }>>; tools: z.ZodDefault<z.ZodArray<z.ZodObject<{ name: z.ZodEnum<["web-search-tool", "web-scrape-tool", "web-crawl-tool", "web-extract-tool", "research-agent-tool", "reddit-scrape-tool", "instagram-tool", "list-bubbles-tool", "get-bubble-details-tool", "bubbleflow-validation-tool", "code-edit-tool", "chart-js-tool", "amazon-shopping-tool", "linkedin-tool", "tiktok-tool", "twitter-tool", "google-maps-tool", "youtube-tool", "sql-query-tool"]>; credentials: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>>; config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { name: "get-bubble-details-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" | "bubbleflow-validation-tool" | "code-edit-tool" | "instagram-tool" | "linkedin-tool" | "tiktok-tool" | "twitter-tool" | "google-maps-tool" | "youtube-tool" | "amazon-shopping-tool"; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }, { name: "get-bubble-details-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" | "bubbleflow-validation-tool" | "code-edit-tool" | "instagram-tool" | "linkedin-tool" | "tiktok-tool" | "twitter-tool" | "google-maps-tool" | "youtube-tool" | "amazon-shopping-tool"; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }>, "many">>; customTools: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{ name: z.ZodString; description: z.ZodString; schema: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodType<z.ZodTypeAny, z.ZodTypeDef, z.ZodTypeAny>]>; func: z.ZodFunction<z.ZodTuple<[z.ZodRecord<z.ZodString, z.ZodUnknown>], z.ZodUnknown>, z.ZodPromise<z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { description: string; name: string; schema: Record<string, unknown> | z.ZodTypeAny; func: (args_0: Record<string, unknown>, ...args: unknown[]) => Promise<unknown>; }, { description: string; name: string; schema: Record<string, unknown> | z.ZodTypeAny; func: (args_0: Record<string, unknown>, ...args: unknown[]) => Promise<unknown>; }>, "many">>>; maxIterations: z.ZodDefault<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; streaming: z.ZodDefault<z.ZodBoolean>; expectedOutputSchema: z.ZodOptional<z.ZodUnion<[z.ZodType<z.ZodTypeAny, z.ZodTypeDef, z.ZodTypeAny>, z.ZodString]>>; }, "strip", z.ZodTypeAny, { message: string; model: { model: "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/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/x-ai/grok-4.1-fast" | "openrouter/openai/gpt-oss-120b" | "openrouter/deepseek/deepseek-chat-v3.1"; temperature: number; maxTokens: number; maxRetries: number; jsonMode: boolean; reasoningEffort?: "low" | "medium" | "high" | undefined; provider?: string[] | undefined; backupModel?: { model: "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/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/x-ai/grok-4.1-fast" | "openrouter/openai/gpt-oss-120b" | "openrouter/deepseek/deepseek-chat-v3.1"; temperature?: number | undefined; maxTokens?: number | undefined; reasoningEffort?: "low" | "medium" | "high" | undefined; maxRetries?: number | undefined; } | undefined; }; streaming: boolean; tools: { name: "get-bubble-details-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" | "bubbleflow-validation-tool" | "code-edit-tool" | "instagram-tool" | "linkedin-tool" | "tiktok-tool" | "twitter-tool" | "google-maps-tool" | "youtube-tool" | "amazon-shopping-tool"; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }[]; images: ({ type: "base64"; data: string; mimeType: string; description?: string | undefined; } | { type: "url"; url: string; description?: string | undefined; })[]; systemPrompt: string; maxIterations: number; name?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; conversationHistory?: { content: string; role: "user" | "assistant" | "tool"; name?: string | undefined; toolCallId?: string | undefined; }[] | undefined; customTools?: { description: string; name: string; schema: Record<string, unknown> | z.ZodTypeAny; func: (args_0: Record<string, unknown>, ...args: unknown[]) => Promise<unknown>; }[] | undefined; expectedOutputSchema?: string | z.ZodTypeAny | undefined; }, { message: string; name?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; model?: { model: "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/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/x-ai/grok-4.1-fast" | "openrouter/openai/gpt-oss-120b" | "openrouter/deepseek/deepseek-chat-v3.1"; temperature?: number | undefined; maxTokens?: number | undefined; reasoningEffort?: "low" | "medium" | "high" | undefined; maxRetries?: number | undefined; provider?: string[] | undefined; jsonMode?: boolean | undefined; backupModel?: { model: "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/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/x-ai/grok-4.1-fast" | "openrouter/openai/gpt-oss-120b" | "openrouter/deepseek/deepseek-chat-v3.1"; temperature?: number | undefined; maxTokens?: number | undefined; reasoningEffort?: "low" | "medium" | "high" | undefined; maxRetries?: number | undefined; } | undefined; } | undefined; streaming?: boolean | undefined; tools?: { name: "get-bubble-details-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" | "bubbleflow-validation-tool" | "code-edit-tool" | "instagram-tool" | "linkedin-tool" | "tiktok-tool" | "twitter-tool" | "google-maps-tool" | "youtube-tool" | "amazon-shopping-tool"; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }[] | undefined; images?: ({ data: string; type?: "base64" | undefined; description?: string | undefined; mimeType?: string | undefined; } | { type: "url"; url: string; description?: string | undefined; })[] | undefined; conversationHistory?: { content: string; role: "user" | "assistant" | "tool"; name?: string | undefined; toolCallId?: string | undefined; }[] | undefined; systemPrompt?: string | undefined; customTools?: { description: string; name: string; schema: Record<string, unknown> | z.ZodTypeAny; func: (args_0: Record<string, unknown>, ...args: unknown[]) => Promise<unknown>; }[] | undefined; maxIterations?: number | undefined; expectedOutputSchema?: string | z.ZodTypeAny | undefined; }>; declare const AIAgentResultSchema: z.ZodObject<{ response: z.ZodString; toolCalls: z.ZodArray<z.ZodObject<{ tool: z.ZodString; input: z.ZodUnknown; output: z.ZodUnknown; }, "strip", z.ZodTypeAny, { tool: string; input?: unknown; output?: unknown; }, { tool: string; input?: unknown; output?: unknown; }>, "many">; iterations: z.ZodNumber; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; response: string; toolCalls: { tool: string; input?: unknown; output?: unknown; }[]; iterations: number; }, { error: string; success: boolean; response: string; toolCalls: { tool: string; input?: unknown; output?: unknown; }[]; iterations: number; }>; type AIAgentParams = z.input<typeof AIAgentParamsSchema>; & { beforeToolCall?: ToolHookBefore; afterToolCall?: ToolHookAfter; afterLLMCall?: AfterLLMCallHook; streamingCallback?: StreamingCallback; }; type AIAgentParamsParsed = z.output<typeof AIAgentParamsSchema> & { beforeToolCall?: ToolHookBefore; afterToolCall?: ToolHookAfter; afterLLMCall?: AfterLLMCallHook; streamingCallback?: StreamingCallback; }; type AIAgentResult = z.output<typeof AIAgentResultSchema>; export declare class AIAgentBubble extends ServiceBubble<AIAgentParamsParsed, AIAgentResult> { static readonly type: "service"; static readonly service = "ai-agent"; static readonly authType: "apikey"; static readonly bubbleName: BubbleName; static readonly schema: z.ZodObject<{ message: z.ZodString; images: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodDefault<z.ZodLiteral<"base64">>; data: z.ZodString; mimeType: z.ZodDefault<z.ZodString>; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "base64"; data: string; mimeType: string; description?: string | undefined; }, { data: string; type?: "base64" | undefined; description?: string | undefined; mimeType?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; url: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "url"; url: string; description?: string | undefined; }, { type: "url"; url: string; description?: string | undefined; }>]>, "many">>; conversationHistory: z.ZodOptional<z.ZodArray<z.ZodObject<{ role: z.ZodEnum<["user", "assistant", "tool"]>; content: z.ZodString; toolCallId: z.ZodOptional<z.ZodString>; name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { content: string; role: "user" | "assistant" | "tool"; name?: string | undefined; toolCallId?: string | undefined; }, { content: string; role: "user" | "assistant" | "tool"; name?: string | undefined; toolCallId?: string | undefined; }>, "many">>; systemPrompt: z.ZodDefault<z.ZodString>; name: z.ZodOptional<z.ZodDefault<z.ZodString>>; model: z.ZodDefault<z.ZodObject<{ model: 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/anthropic/claude-sonnet-4.5", "openrouter/google/gemini-3-pro-preview", "openrouter/morph/morph-v3-large", "openrouter/x-ai/grok-4.1-fast", "openrouter/openai/gpt-oss-120b", "openrouter/deepseek/deepseek-chat-v3.1"]>; temperature: z.ZodDefault<z.ZodNumber>; maxTokens: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; reasoningEffort: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>; maxRetries: z.ZodDefault<z.ZodNumber>; provider: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; jsonMode: z.ZodDefault<z.ZodBoolean>; backupModel: z.ZodOptional<z.ZodDefault<z.ZodObject<{ model: 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/anthropic/claude-sonnet-4.5", "openrouter/google/gemini-3-pro-preview", "openrouter/morph/morph-v3-large", "openrouter/x-ai/grok-4.1-fast", "openrouter/openai/gpt-oss-120b", "openrouter/deepseek/deepseek-chat-v3.1"]>; temperature: z.ZodOptional<z.ZodNumber>; maxTokens: z.ZodOptional<z.ZodNumber>; reasoningEffort: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>; maxRetries: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { model: "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/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/x-ai/grok-4.1-fast" | "openrouter/openai/gpt-oss-120b" | "openrouter/deepseek/deepseek-chat-v3.1"; temperature?: number | undefined; maxTokens?: number | undefined; reasoningEffort?: "low" | "medium" | "high" | undefined; maxRetries?: number | undefined; }, { model: "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/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/x-ai/grok-4.1-fast" | "openrouter/openai/gpt-oss-120b" | "openrouter/deepseek/deepseek-chat-v3.1"; temperature?: number | undefined; maxTokens?: number | undefined; reasoningEffort?: "low" | "medium" | "high" | undefined; maxRetries?: number | undefined; }>>>; }, "strip", z.ZodTypeAny, { model: "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/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/x-ai/grok-4.1-fast" | "openrouter/openai/gpt-oss-120b" | "openrouter/deepseek/deepseek-chat-v3.1"; temperature: number; maxTokens: number; maxRetries: number; jsonMode: boolean; reasoningEffort?: "low" | "medium" | "high" | undefined; provider?: string[] | undefined; backupModel?: { model: "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/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/x-ai/grok-4.1-fast" | "openrouter/openai/gpt-oss-120b" | "openrouter/deepseek/deepseek-chat-v3.1"; temperature?: number | undefined; maxTokens?: number | undefined; reasoningEffort?: "low" | "medium" | "high" | undefined; maxRetries?: number | undefined; } | undefined; }, { model: "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/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/x-ai/grok-4.1-fast" | "openrouter/openai/gpt-oss-120b" | "openrouter/deepseek/deepseek-chat-v3.1"; temperature?: number | undefined; maxTokens?: number | undefined; reasoningEffort?: "low" | "medium" | "high" | undefined; maxRetries?: number | undefined; provider?: string[] | undefined; jsonMode?: boolean | undefined; backupModel?: { model: "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/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/x-ai/grok-4.1-fast" | "openrouter/openai/gpt-oss-120b" | "openrouter/deepseek/deepseek-chat-v3.1"; temperature?: number | undefined; maxTokens?: number | undefined; reasoningEffort?: "low" | "medium" | "high" | undefined; maxRetries?: number | undefined; } | undefined; }>>; tools: z.ZodDefault<z.ZodArray<z.ZodObject<{ name: z.ZodEnum<["web-search-tool", "web-scrape-tool", "web-crawl-tool", "web-extract-tool", "research-agent-tool", "reddit-scrape-tool", "instagram-tool", "list-bubbles-tool", "get-bubble-details-tool", "bubbleflow-validation-tool", "code-edit-tool", "chart-js-tool", "amazon-shopping-tool", "linkedin-tool", "tiktok-tool", "twitter-tool", "google-maps-tool", "youtube-tool", "sql-query-tool"]>; credentials: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>>; config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { name: "get-bubble-details-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" | "bubbleflow-validation-tool" | "code-edit-tool" | "instagram-tool" | "linkedin-tool" | "tiktok-tool" | "twitter-tool" | "google-maps-tool" | "youtube-tool" | "amazon-shopping-tool"; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }, { name: "get-bubble-details-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" | "bubbleflow-validation-tool" | "code-edit-tool" | "instagram-tool" | "linkedin-tool" | "tiktok-tool" | "twitter-tool" | "google-maps-tool" | "youtube-tool" | "amazon-shopping-tool"; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }>, "many">>; customTools: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{ name: z.ZodString; description: z.ZodString; schema: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodType<z.ZodTypeAny, z.ZodTypeDef, z.ZodTypeAny>]>; func: z.ZodFunction<z.ZodTuple<[z.ZodRecord<z.ZodString, z.ZodUnknown>], z.ZodUnknown>, z.ZodPromise<z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { description: string; name: string; schema: Record<string, unknown> | z.ZodTypeAny; func: (args_0: Record<string, unknown>, ...args: unknown[]) => Promise<unknown>; }, { description: string; name: string; schema: Record<string, unknown> | z.ZodTypeAny; func: (args_0: Record<string, unknown>, ...args: unknown[]) => Promise<unknown>; }>, "many">>>; maxIterations: z.ZodDefault<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; streaming: z.ZodDefault<z.ZodBoolean>; expectedOutputSchema: z.ZodOptional<z.ZodUnion<[z.ZodType<z.ZodTypeAny, z.ZodTypeDef, z.ZodTypeAny>, z.ZodString]>>; }, "strip", z.ZodTypeAny, { message: string; model: { model: "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/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/x-ai/grok-4.1-fast" | "openrouter/openai/gpt-oss-120b" | "openrouter/deepseek/deepseek-chat-v3.1"; temperature: number; maxTokens: number; maxRetries: number; jsonMode: boolean; reasoningEffort?: "low" | "medium" | "high" | undefined; provider?: string[] | undefined; backupModel?: { model: "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/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/x-ai/grok-4.1-fast" | "openrouter/openai/gpt-oss-120b" | "openrouter/deepseek/deepseek-chat-v3.1"; temperature?: number | undefined; maxTokens?: number | undefined; reasoningEffort?: "low" | "medium" | "high" | undefined; maxRetries?: number | undefined; } | undefined; }; streaming: boolean; tools: { name: "get-bubble-details-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" | "bubbleflow-validation-tool" | "code-edit-tool" | "instagram-tool" | "linkedin-tool" | "tiktok-tool" | "twitter-tool" | "google-maps-tool" | "youtube-tool" | "amazon-shopping-tool"; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }[]; images: ({ type: "base64"; data: string; mimeType: string; description?: string | undefined; } | { type: "url"; url: string; description?: string | undefined; })[]; systemPrompt: string; maxIterations: number; name?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; conversationHistory?: { content: string; role: "user" | "assistant" | "tool"; name?: string | undefined; toolCallId?: string | undefined; }[] | undefined; customTools?: { description: string; name: string; schema: Record<string, unknown> | z.ZodTypeAny; func: (args_0: Record<string, unknown>, ...args: unknown[]) => Promise<unknown>; }[] | undefined; expectedOutputSchema?: string | z.ZodTypeAny | undefined; }, { message: string; name?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; model?: { model: "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/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/x-ai/grok-4.1-fast" | "openrouter/openai/gpt-oss-120b" | "openrouter/deepseek/deepseek-chat-v3.1"; temperature?: number | undefined; maxTokens?: number | undefined; reasoningEffort?: "low" | "medium" | "high" | undefined; maxRetries?: number | undefined; provider?: string[] | undefined; jsonMode?: boolean | undefined; backupModel?: { model: "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/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/x-ai/grok-4.1-fast" | "openrouter/openai/gpt-oss-120b" | "openrouter/deepseek/deepseek-chat-v3.1"; temperature?: number | undefined; maxTokens?: number | undefined; reasoningEffort?: "low" | "medium" | "high" | undefined; maxRetries?: number | undefined; } | undefined; } | undefined; streaming?: boolean | undefined; tools?: { name: "get-bubble-details-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" | "bubbleflow-validation-tool" | "code-edit-tool" | "instagram-tool" | "linkedin-tool" | "tiktok-tool" | "twitter-tool" | "google-maps-tool" | "youtube-tool" | "amazon-shopping-tool"; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }[] | undefined; images?: ({ data: string; type?: "base64" | undefined; description?: string | undefined; mimeType?: string | undefined; } | { type: "url"; url: string; description?: string | undefined; })[] | undefined; conversationHistory?: { content: string; role: "user" | "assistant" | "tool"; name?: string | undefined; toolCallId?: string | undefined; }[] | undefined; systemPrompt?: string | undefined; customTools?: { description: string; name: string; schema: Record<string, unknown> | z.ZodTypeAny; func: (args_0: Record<string, unknown>, ...args: unknown[]) => Promise<unknown>; }[] | undefined; maxIterations?: number | undefined; expectedOutputSchema?: string | z.ZodTypeAny | undefined; }>; static readonly resultSchema: z.ZodObject<{ response: z.ZodString; toolCalls: z.ZodArray<z.ZodObject<{ tool: z.ZodString; input: z.ZodUnknown; output: z.ZodUnknown; }, "strip", z.ZodTypeAny, { tool: string; input?: unknown; output?: unknown; }, { tool: string; input?: unknown; output?: unknown; }>, "many">; iterations: z.ZodNumber; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; response: string; toolCalls: { tool: string; input?: unknown; output?: unknown; }[]; iterations: number; }, { error: string; success: boolean; response: string; toolCalls: { tool: string; input?: unknown; output?: unknown; }[]; iterations: number; }>; static readonly shortDescription = "AI agent with LangGraph for tool-enabled conversations, multimodal support, and JSON mode"; static readonly longDescription = "\n An AI agent powered by LangGraph that can use any tool bubble to answer questions.\n Use cases:\n - Add tools to enhance the AI agent's capabilities (web-search-tool, web-scrape-tool)\n - Multi-step reasoning with tool assistance\n - Tool-augmented conversations with any registered tool\n - JSON mode for structured output (strips markdown formatting)\n "; static readonly alias = "agent"; private factory; private beforeToolCallHook; private afterToolCallHook; private afterLLMCallHook; private streamingCallback; private shouldStopAfterTools; private shouldContinueToAgent; constructor(params?: AIAgentParams, context?: BubbleContext, instanceId?: string); testCredential(): Promise<boolean>; private buildModelConfig; private executeWithModel; private beforeAction; protected performAction(context?: BubbleContext): Promise<AIAgentResult>; protected getCredentialType(): CredentialType; private getCredentialTypeForModel; protected chooseCredential(): string | undefined; private initializeModel; private initializeTools; private executeToolsWithHooks; private createAgentGraph; private executeAgent; }
|
|
228
|
+
export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; retries?: number; }; export declare const AvailableTools: z.ZodEnum<["web-search-tool", "web-scrape-tool", "web-crawl-tool", "web-extract-tool", "research-agent-tool", "reddit-scrape-tool", "instagram-tool", "list-bubbles-tool", "get-bubble-details-tool", "get-trigger-detail-tool", "bubbleflow-validation-tool", "code-edit-tool", "chart-js-tool", "amazon-shopping-tool", "linkedin-tool", "tiktok-tool", "twitter-tool", "google-maps-tool", "youtube-tool", "sql-query-tool"]>; export type AvailableTool = z.infer<typeof AvailableTools>; export type ToolHookContext = { toolName: AvailableTool; toolInput: unknown; toolOutput?: BubbleResult<unknown>; messages: BaseMessage[]; }; export type ToolHookAfter = (context: ToolHookContext) => Promise<{ messages: BaseMessage[]; shouldStop?: boolean; }>; export type ToolHookBefore = (context: ToolHookContext) => Promise<{ messages: BaseMessage[]; toolInput: Record<string, any>; }>; export type AfterLLMCallContext = { messages: BaseMessage[]; lastAIMessage: AIMessage | AIMessageChunk; hasToolCalls: boolean; }; export type AfterLLMCallHook = (context: AfterLLMCallContext) => Promise<{ messages: BaseMessage[]; continueToAgent?: boolean; }>; export type StreamingCallback = (event: StreamingEvent) => Promise<void> | void; export type ConversationMessage = z.infer<typeof ConversationMessageSchema>; declare const AIAgentParamsSchema: z.ZodObject<{ message: z.ZodString; images: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodDefault<z.ZodLiteral<"base64">>; data: z.ZodString; mimeType: z.ZodDefault<z.ZodString>; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "base64"; data: string; mimeType: string; description?: string | undefined; }, { data: string; type?: "base64" | undefined; description?: string | undefined; mimeType?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; url: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "url"; url: string; description?: string | undefined; }, { type: "url"; url: string; description?: string | undefined; }>]>, "many">>; conversationHistory: z.ZodOptional<z.ZodArray<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; }>, "many">>; systemPrompt: z.ZodDefault<z.ZodString>; name: z.ZodOptional<z.ZodDefault<z.ZodString>>; model: z.ZodDefault<z.ZodObject<{ model: 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/anthropic/claude-sonnet-4.5", "openrouter/google/gemini-3-pro-preview", "openrouter/morph/morph-v3-large", "openrouter/x-ai/grok-4.1-fast", "openrouter/openai/gpt-oss-120b", "openrouter/deepseek/deepseek-chat-v3.1"]>; temperature: z.ZodDefault<z.ZodNumber>; maxTokens: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; reasoningEffort: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>; maxRetries: z.ZodDefault<z.ZodNumber>; provider: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; jsonMode: z.ZodDefault<z.ZodBoolean>; backupModel: z.ZodOptional<z.ZodDefault<z.ZodObject<{ model: 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/anthropic/claude-sonnet-4.5", "openrouter/google/gemini-3-pro-preview", "openrouter/morph/morph-v3-large", "openrouter/x-ai/grok-4.1-fast", "openrouter/openai/gpt-oss-120b", "openrouter/deepseek/deepseek-chat-v3.1"]>; temperature: z.ZodOptional<z.ZodNumber>; maxTokens: z.ZodOptional<z.ZodNumber>; reasoningEffort: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>; maxRetries: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { model: "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/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/x-ai/grok-4.1-fast" | "openrouter/openai/gpt-oss-120b" | "openrouter/deepseek/deepseek-chat-v3.1"; temperature?: number | undefined; maxTokens?: number | undefined; reasoningEffort?: "low" | "medium" | "high" | undefined; maxRetries?: number | undefined; }, { model: "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/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/x-ai/grok-4.1-fast" | "openrouter/openai/gpt-oss-120b" | "openrouter/deepseek/deepseek-chat-v3.1"; temperature?: number | undefined; maxTokens?: number | undefined; reasoningEffort?: "low" | "medium" | "high" | undefined; maxRetries?: number | undefined; }>>>; }, "strip", z.ZodTypeAny, { model: "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/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/x-ai/grok-4.1-fast" | "openrouter/openai/gpt-oss-120b" | "openrouter/deepseek/deepseek-chat-v3.1"; temperature: number; maxTokens: number; maxRetries: number; jsonMode: boolean; reasoningEffort?: "low" | "medium" | "high" | undefined; provider?: string[] | undefined; backupModel?: { model: "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/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/x-ai/grok-4.1-fast" | "openrouter/openai/gpt-oss-120b" | "openrouter/deepseek/deepseek-chat-v3.1"; temperature?: number | undefined; maxTokens?: number | undefined; reasoningEffort?: "low" | "medium" | "high" | undefined; maxRetries?: number | undefined; } | undefined; }, { model: "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/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/x-ai/grok-4.1-fast" | "openrouter/openai/gpt-oss-120b" | "openrouter/deepseek/deepseek-chat-v3.1"; temperature?: number | undefined; maxTokens?: number | undefined; reasoningEffort?: "low" | "medium" | "high" | undefined; maxRetries?: number | undefined; provider?: string[] | undefined; jsonMode?: boolean | undefined; backupModel?: { model: "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/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/x-ai/grok-4.1-fast" | "openrouter/openai/gpt-oss-120b" | "openrouter/deepseek/deepseek-chat-v3.1"; temperature?: number | undefined; maxTokens?: number | undefined; reasoningEffort?: "low" | "medium" | "high" | undefined; maxRetries?: number | undefined; } | undefined; }>>; tools: z.ZodDefault<z.ZodArray<z.ZodObject<{ name: z.ZodEnum<["web-search-tool", "web-scrape-tool", "web-crawl-tool", "web-extract-tool", "research-agent-tool", "reddit-scrape-tool", "instagram-tool", "list-bubbles-tool", "get-bubble-details-tool", "get-trigger-detail-tool", "bubbleflow-validation-tool", "code-edit-tool", "chart-js-tool", "amazon-shopping-tool", "linkedin-tool", "tiktok-tool", "twitter-tool", "google-maps-tool", "youtube-tool", "sql-query-tool"]>; credentials: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>>; config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { name: "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" | "bubbleflow-validation-tool" | "code-edit-tool" | "instagram-tool" | "linkedin-tool" | "tiktok-tool" | "twitter-tool" | "google-maps-tool" | "youtube-tool" | "amazon-shopping-tool"; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }, { name: "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" | "bubbleflow-validation-tool" | "code-edit-tool" | "instagram-tool" | "linkedin-tool" | "tiktok-tool" | "twitter-tool" | "google-maps-tool" | "youtube-tool" | "amazon-shopping-tool"; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }>, "many">>; customTools: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{ name: z.ZodString; description: z.ZodString; schema: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodType<z.ZodTypeAny, z.ZodTypeDef, z.ZodTypeAny>]>; func: z.ZodFunction<z.ZodTuple<[z.ZodRecord<z.ZodString, z.ZodUnknown>], z.ZodUnknown>, z.ZodPromise<z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { description: string; name: string; schema: Record<string, unknown> | z.ZodTypeAny; func: (args_0: Record<string, unknown>, ...args: unknown[]) => Promise<unknown>; }, { description: string; name: string; schema: Record<string, unknown> | z.ZodTypeAny; func: (args_0: Record<string, unknown>, ...args: unknown[]) => Promise<unknown>; }>, "many">>>; maxIterations: z.ZodDefault<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; streaming: z.ZodDefault<z.ZodBoolean>; expectedOutputSchema: z.ZodOptional<z.ZodUnion<[z.ZodType<z.ZodTypeAny, z.ZodTypeDef, z.ZodTypeAny>, z.ZodString]>>; }, "strip", z.ZodTypeAny, { message: string; model: { model: "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/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/x-ai/grok-4.1-fast" | "openrouter/openai/gpt-oss-120b" | "openrouter/deepseek/deepseek-chat-v3.1"; temperature: number; maxTokens: number; maxRetries: number; jsonMode: boolean; reasoningEffort?: "low" | "medium" | "high" | undefined; provider?: string[] | undefined; backupModel?: { model: "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/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/x-ai/grok-4.1-fast" | "openrouter/openai/gpt-oss-120b" | "openrouter/deepseek/deepseek-chat-v3.1"; temperature?: number | undefined; maxTokens?: number | undefined; reasoningEffort?: "low" | "medium" | "high" | undefined; maxRetries?: number | undefined; } | undefined; }; streaming: boolean; tools: { name: "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" | "bubbleflow-validation-tool" | "code-edit-tool" | "instagram-tool" | "linkedin-tool" | "tiktok-tool" | "twitter-tool" | "google-maps-tool" | "youtube-tool" | "amazon-shopping-tool"; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }[]; images: ({ type: "base64"; data: string; mimeType: string; description?: string | undefined; } | { type: "url"; url: string; description?: string | undefined; })[]; systemPrompt: string; maxIterations: number; name?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; conversationHistory?: { role: "user" | "assistant" | "tool"; content: string; toolCallId?: string | undefined; name?: string | undefined; }[] | undefined; customTools?: { description: string; name: string; schema: Record<string, unknown> | z.ZodTypeAny; func: (args_0: Record<string, unknown>, ...args: unknown[]) => Promise<unknown>; }[] | undefined; expectedOutputSchema?: string | z.ZodTypeAny | undefined; }, { message: string; name?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; model?: { model: "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/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/x-ai/grok-4.1-fast" | "openrouter/openai/gpt-oss-120b" | "openrouter/deepseek/deepseek-chat-v3.1"; temperature?: number | undefined; maxTokens?: number | undefined; reasoningEffort?: "low" | "medium" | "high" | undefined; maxRetries?: number | undefined; provider?: string[] | undefined; jsonMode?: boolean | undefined; backupModel?: { model: "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/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/x-ai/grok-4.1-fast" | "openrouter/openai/gpt-oss-120b" | "openrouter/deepseek/deepseek-chat-v3.1"; temperature?: number | undefined; maxTokens?: number | undefined; reasoningEffort?: "low" | "medium" | "high" | undefined; maxRetries?: number | undefined; } | undefined; } | undefined; streaming?: boolean | undefined; tools?: { name: "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" | "bubbleflow-validation-tool" | "code-edit-tool" | "instagram-tool" | "linkedin-tool" | "tiktok-tool" | "twitter-tool" | "google-maps-tool" | "youtube-tool" | "amazon-shopping-tool"; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }[] | undefined; images?: ({ data: string; type?: "base64" | undefined; description?: string | undefined; mimeType?: string | undefined; } | { type: "url"; url: string; description?: string | undefined; })[] | undefined; conversationHistory?: { role: "user" | "assistant" | "tool"; content: string; toolCallId?: string | undefined; name?: string | undefined; }[] | undefined; systemPrompt?: string | undefined; customTools?: { description: string; name: string; schema: Record<string, unknown> | z.ZodTypeAny; func: (args_0: Record<string, unknown>, ...args: unknown[]) => Promise<unknown>; }[] | undefined; maxIterations?: number | undefined; expectedOutputSchema?: string | z.ZodTypeAny | undefined; }>; declare const AIAgentResultSchema: z.ZodObject<{ response: z.ZodString; toolCalls: z.ZodArray<z.ZodObject<{ tool: z.ZodString; input: z.ZodUnknown; output: z.ZodUnknown; }, "strip", z.ZodTypeAny, { tool: string; input?: unknown; output?: unknown; }, { tool: string; input?: unknown; output?: unknown; }>, "many">; iterations: z.ZodNumber; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; response: string; toolCalls: { tool: string; input?: unknown; output?: unknown; }[]; iterations: number; }, { error: string; success: boolean; response: string; toolCalls: { tool: string; input?: unknown; output?: unknown; }[]; iterations: number; }>; type AIAgentParams = z.input<typeof AIAgentParamsSchema>; & { beforeToolCall?: ToolHookBefore; afterToolCall?: ToolHookAfter; afterLLMCall?: AfterLLMCallHook; streamingCallback?: StreamingCallback; }; type AIAgentParamsParsed = z.output<typeof AIAgentParamsSchema> & { beforeToolCall?: ToolHookBefore; afterToolCall?: ToolHookAfter; afterLLMCall?: AfterLLMCallHook; streamingCallback?: StreamingCallback; }; type AIAgentResult = z.output<typeof AIAgentResultSchema>; export declare class AIAgentBubble extends ServiceBubble<AIAgentParamsParsed, AIAgentResult> { static readonly type: "service"; static readonly service = "ai-agent"; static readonly authType: "apikey"; static readonly bubbleName: BubbleName; static readonly schema: z.ZodObject<{ message: z.ZodString; images: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodDefault<z.ZodLiteral<"base64">>; data: z.ZodString; mimeType: z.ZodDefault<z.ZodString>; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "base64"; data: string; mimeType: string; description?: string | undefined; }, { data: string; type?: "base64" | undefined; description?: string | undefined; mimeType?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"url">; url: z.ZodString; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "url"; url: string; description?: string | undefined; }, { type: "url"; url: string; description?: string | undefined; }>]>, "many">>; conversationHistory: z.ZodOptional<z.ZodArray<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; }>, "many">>; systemPrompt: z.ZodDefault<z.ZodString>; name: z.ZodOptional<z.ZodDefault<z.ZodString>>; model: z.ZodDefault<z.ZodObject<{ model: 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/anthropic/claude-sonnet-4.5", "openrouter/google/gemini-3-pro-preview", "openrouter/morph/morph-v3-large", "openrouter/x-ai/grok-4.1-fast", "openrouter/openai/gpt-oss-120b", "openrouter/deepseek/deepseek-chat-v3.1"]>; temperature: z.ZodDefault<z.ZodNumber>; maxTokens: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; reasoningEffort: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>; maxRetries: z.ZodDefault<z.ZodNumber>; provider: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; jsonMode: z.ZodDefault<z.ZodBoolean>; backupModel: z.ZodOptional<z.ZodDefault<z.ZodObject<{ model: 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/anthropic/claude-sonnet-4.5", "openrouter/google/gemini-3-pro-preview", "openrouter/morph/morph-v3-large", "openrouter/x-ai/grok-4.1-fast", "openrouter/openai/gpt-oss-120b", "openrouter/deepseek/deepseek-chat-v3.1"]>; temperature: z.ZodOptional<z.ZodNumber>; maxTokens: z.ZodOptional<z.ZodNumber>; reasoningEffort: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>; maxRetries: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { model: "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/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/x-ai/grok-4.1-fast" | "openrouter/openai/gpt-oss-120b" | "openrouter/deepseek/deepseek-chat-v3.1"; temperature?: number | undefined; maxTokens?: number | undefined; reasoningEffort?: "low" | "medium" | "high" | undefined; maxRetries?: number | undefined; }, { model: "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/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/x-ai/grok-4.1-fast" | "openrouter/openai/gpt-oss-120b" | "openrouter/deepseek/deepseek-chat-v3.1"; temperature?: number | undefined; maxTokens?: number | undefined; reasoningEffort?: "low" | "medium" | "high" | undefined; maxRetries?: number | undefined; }>>>; }, "strip", z.ZodTypeAny, { model: "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/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/x-ai/grok-4.1-fast" | "openrouter/openai/gpt-oss-120b" | "openrouter/deepseek/deepseek-chat-v3.1"; temperature: number; maxTokens: number; maxRetries: number; jsonMode: boolean; reasoningEffort?: "low" | "medium" | "high" | undefined; provider?: string[] | undefined; backupModel?: { model: "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/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/x-ai/grok-4.1-fast" | "openrouter/openai/gpt-oss-120b" | "openrouter/deepseek/deepseek-chat-v3.1"; temperature?: number | undefined; maxTokens?: number | undefined; reasoningEffort?: "low" | "medium" | "high" | undefined; maxRetries?: number | undefined; } | undefined; }, { model: "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/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/x-ai/grok-4.1-fast" | "openrouter/openai/gpt-oss-120b" | "openrouter/deepseek/deepseek-chat-v3.1"; temperature?: number | undefined; maxTokens?: number | undefined; reasoningEffort?: "low" | "medium" | "high" | undefined; maxRetries?: number | undefined; provider?: string[] | undefined; jsonMode?: boolean | undefined; backupModel?: { model: "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/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/x-ai/grok-4.1-fast" | "openrouter/openai/gpt-oss-120b" | "openrouter/deepseek/deepseek-chat-v3.1"; temperature?: number | undefined; maxTokens?: number | undefined; reasoningEffort?: "low" | "medium" | "high" | undefined; maxRetries?: number | undefined; } | undefined; }>>; tools: z.ZodDefault<z.ZodArray<z.ZodObject<{ name: z.ZodEnum<["web-search-tool", "web-scrape-tool", "web-crawl-tool", "web-extract-tool", "research-agent-tool", "reddit-scrape-tool", "instagram-tool", "list-bubbles-tool", "get-bubble-details-tool", "get-trigger-detail-tool", "bubbleflow-validation-tool", "code-edit-tool", "chart-js-tool", "amazon-shopping-tool", "linkedin-tool", "tiktok-tool", "twitter-tool", "google-maps-tool", "youtube-tool", "sql-query-tool"]>; credentials: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>>; config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { name: "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" | "bubbleflow-validation-tool" | "code-edit-tool" | "instagram-tool" | "linkedin-tool" | "tiktok-tool" | "twitter-tool" | "google-maps-tool" | "youtube-tool" | "amazon-shopping-tool"; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }, { name: "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" | "bubbleflow-validation-tool" | "code-edit-tool" | "instagram-tool" | "linkedin-tool" | "tiktok-tool" | "twitter-tool" | "google-maps-tool" | "youtube-tool" | "amazon-shopping-tool"; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }>, "many">>; customTools: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{ name: z.ZodString; description: z.ZodString; schema: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodType<z.ZodTypeAny, z.ZodTypeDef, z.ZodTypeAny>]>; func: z.ZodFunction<z.ZodTuple<[z.ZodRecord<z.ZodString, z.ZodUnknown>], z.ZodUnknown>, z.ZodPromise<z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { description: string; name: string; schema: Record<string, unknown> | z.ZodTypeAny; func: (args_0: Record<string, unknown>, ...args: unknown[]) => Promise<unknown>; }, { description: string; name: string; schema: Record<string, unknown> | z.ZodTypeAny; func: (args_0: Record<string, unknown>, ...args: unknown[]) => Promise<unknown>; }>, "many">>>; maxIterations: z.ZodDefault<z.ZodNumber>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; streaming: z.ZodDefault<z.ZodBoolean>; expectedOutputSchema: z.ZodOptional<z.ZodUnion<[z.ZodType<z.ZodTypeAny, z.ZodTypeDef, z.ZodTypeAny>, z.ZodString]>>; }, "strip", z.ZodTypeAny, { message: string; model: { model: "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/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/x-ai/grok-4.1-fast" | "openrouter/openai/gpt-oss-120b" | "openrouter/deepseek/deepseek-chat-v3.1"; temperature: number; maxTokens: number; maxRetries: number; jsonMode: boolean; reasoningEffort?: "low" | "medium" | "high" | undefined; provider?: string[] | undefined; backupModel?: { model: "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/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/x-ai/grok-4.1-fast" | "openrouter/openai/gpt-oss-120b" | "openrouter/deepseek/deepseek-chat-v3.1"; temperature?: number | undefined; maxTokens?: number | undefined; reasoningEffort?: "low" | "medium" | "high" | undefined; maxRetries?: number | undefined; } | undefined; }; streaming: boolean; tools: { name: "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" | "bubbleflow-validation-tool" | "code-edit-tool" | "instagram-tool" | "linkedin-tool" | "tiktok-tool" | "twitter-tool" | "google-maps-tool" | "youtube-tool" | "amazon-shopping-tool"; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }[]; images: ({ type: "base64"; data: string; mimeType: string; description?: string | undefined; } | { type: "url"; url: string; description?: string | undefined; })[]; systemPrompt: string; maxIterations: number; name?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; conversationHistory?: { role: "user" | "assistant" | "tool"; content: string; toolCallId?: string | undefined; name?: string | undefined; }[] | undefined; customTools?: { description: string; name: string; schema: Record<string, unknown> | z.ZodTypeAny; func: (args_0: Record<string, unknown>, ...args: unknown[]) => Promise<unknown>; }[] | undefined; expectedOutputSchema?: string | z.ZodTypeAny | undefined; }, { message: string; name?: string | undefined; credentials?: Partial<Record<CredentialType, string>> | undefined; model?: { model: "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/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/x-ai/grok-4.1-fast" | "openrouter/openai/gpt-oss-120b" | "openrouter/deepseek/deepseek-chat-v3.1"; temperature?: number | undefined; maxTokens?: number | undefined; reasoningEffort?: "low" | "medium" | "high" | undefined; maxRetries?: number | undefined; provider?: string[] | undefined; jsonMode?: boolean | undefined; backupModel?: { model: "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/anthropic/claude-sonnet-4.5" | "openrouter/google/gemini-3-pro-preview" | "openrouter/morph/morph-v3-large" | "openrouter/x-ai/grok-4.1-fast" | "openrouter/openai/gpt-oss-120b" | "openrouter/deepseek/deepseek-chat-v3.1"; temperature?: number | undefined; maxTokens?: number | undefined; reasoningEffort?: "low" | "medium" | "high" | undefined; maxRetries?: number | undefined; } | undefined; } | undefined; streaming?: boolean | undefined; tools?: { name: "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" | "bubbleflow-validation-tool" | "code-edit-tool" | "instagram-tool" | "linkedin-tool" | "tiktok-tool" | "twitter-tool" | "google-maps-tool" | "youtube-tool" | "amazon-shopping-tool"; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }[] | undefined; images?: ({ data: string; type?: "base64" | undefined; description?: string | undefined; mimeType?: string | undefined; } | { type: "url"; url: string; description?: string | undefined; })[] | undefined; conversationHistory?: { role: "user" | "assistant" | "tool"; content: string; toolCallId?: string | undefined; name?: string | undefined; }[] | undefined; systemPrompt?: string | undefined; customTools?: { description: string; name: string; schema: Record<string, unknown> | z.ZodTypeAny; func: (args_0: Record<string, unknown>, ...args: unknown[]) => Promise<unknown>; }[] | undefined; maxIterations?: number | undefined; expectedOutputSchema?: string | z.ZodTypeAny | undefined; }>; static readonly resultSchema: z.ZodObject<{ response: z.ZodString; toolCalls: z.ZodArray<z.ZodObject<{ tool: z.ZodString; input: z.ZodUnknown; output: z.ZodUnknown; }, "strip", z.ZodTypeAny, { tool: string; input?: unknown; output?: unknown; }, { tool: string; input?: unknown; output?: unknown; }>, "many">; iterations: z.ZodNumber; error: z.ZodString; success: z.ZodBoolean; }, "strip", z.ZodTypeAny, { error: string; success: boolean; response: string; toolCalls: { tool: string; input?: unknown; output?: unknown; }[]; iterations: number; }, { error: string; success: boolean; response: string; toolCalls: { tool: string; input?: unknown; output?: unknown; }[]; iterations: number; }>; static readonly shortDescription = "AI agent with LangGraph for tool-enabled conversations, multimodal support, and JSON mode"; static readonly longDescription = "\n An AI agent powered by LangGraph that can use any tool bubble to answer questions.\n Use cases:\n - Add tools to enhance the AI agent's capabilities (web-search-tool, web-scrape-tool)\n - Multi-step reasoning with tool assistance\n - Tool-augmented conversations with any registered tool\n - JSON mode for structured output (strips markdown formatting)\n "; static readonly alias = "agent"; private factory; private beforeToolCallHook; private afterToolCallHook; private afterLLMCallHook; private streamingCallback; private shouldStopAfterTools; private shouldContinueToAgent; constructor(params?: AIAgentParams, context?: BubbleContext, instanceId?: string); testCredential(): Promise<boolean>; private buildModelConfig; private executeWithModel; private beforeAction; protected performAction(context?: BubbleContext): Promise<AIAgentResult>; protected getCredentialType(): CredentialType; private getCredentialTypeForModel; protected chooseCredential(): string | undefined; private initializeModel; private initializeTools; private executeToolsWithHooks; private createAgentGraph; private executeAgent; }
|
|
226
229
|
export {}; export declare abstract class BaseBubble<TParams = unknown, TResult extends BubbleOperationResult = BubbleOperationResult> implements IBubble<TResult> { readonly name: string; readonly schema: z.ZodObject<z.ZodRawShape>; readonly resultSchema: z.ZodObject<z.ZodRawShape>; readonly shortDescription: string; readonly longDescription: string; readonly alias?: string; abstract readonly type: 'service' | 'workflow' | 'tool' | 'ui' | 'infra'; protected readonly params: TParams; protected context?: BubbleContext; previousResult: BubbleResult<BubbleOperationResult> | undefined; protected readonly instanceId?: string; constructor(params: unknown, context?: BubbleContext, instanceId?: string); private computeChildContext; saveResult<R extends BubbleOperationResult>(result: BubbleResult<R>): void; clearSavedResult(): void; toJSON(): Record<string, unknown>; action(): Promise<BubbleResult<TResult>>; generateMockResult(): BubbleResult<TResult>; generateMockResultWithSeed(seed: number): BubbleResult<TResult>; protected abstract performAction(context?: BubbleContext): Promise<TResult>; }
|
|
227
230
|
export declare abstract class ServiceBubble<TParams extends ServiceBubbleParams = ServiceBubbleParams, TResult extends BubbleOperationResult = BubbleOperationResult> extends BaseBubble<TParams, TResult> { readonly type: "service"; authType?: 'oauth' | 'apikey' | 'none' | 'connection-string'; constructor(params: unknown, context?: BubbleContext, instanceId?: string); abstract testCredential(): Promise<boolean>; protected abstract chooseCredential(): string | undefined; getCredentialMetadata(): Promise<DatabaseMetadata | undefined>; get currentParams(): Omit<TParams, 'credentials'>; setParam<K extends keyof TParams>(paramName: K, paramValue: TParams[K]): void; get currentContext(): BubbleContext | undefined; }
|
|
228
231
|
export declare class BubbleError extends Error { readonly variableId?: number; readonly bubbleName?: string; constructor(message: string, options?: { variableId?: number; bubbleName?: string; cause?: Error; }); }
|
|
@@ -1021,6 +1024,26 @@ export interface IToolBubble<TResult extends BubbleOperationResult = BubbleOpera
|
|
|
1021
1024
|
export interface IUIBubble extends IBubble { readonly type: 'ui'; template: string; }
|
|
1022
1025
|
export interface IInfraBubble extends IBubble { readonly type: 'infra'; provider: 'aws' | 'gcp' | 'supabase'; resourceType: string; }
|
|
1023
1026
|
export type BubbleFlowOperationResult = unknown; export interface BubbleContext { logger?: BubbleLogger; variableId?: number; invocationCallSiteKey?: string; dependencyGraph?: DependencyGraphNode; currentUniqueId?: string; __uniqueIdCounters__?: Record<string, number>; [key: string]: unknown; }
|
|
1027
|
+
export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; retries?: number; }; declare const GetTriggerDetailToolParamsSchema: z.ZodObject<{ triggerType: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { credentials?: Partial<Record<CredentialType, string>> | undefined; triggerType?: string | undefined; }, { credentials?: Partial<Record<CredentialType, string>> | undefined; triggerType?: string | undefined; }>; type GetTriggerDetailToolParamsInput = z.input<typeof GetTriggerDetailToolParamsSchema>;; type GetTriggerDetailToolParams = z.output<typeof GetTriggerDetailToolParamsSchema>; declare const GetTriggerDetailToolResultSchema: z.ZodObject<{ triggerType: z.ZodOptional<z.ZodString>; serviceName: z.ZodOptional<z.ZodString>; friendlyName: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; setupGuide: z.ZodOptional<z.ZodString>; payloadSchema: z.ZodOptional<z.ZodString>; payloadTypeInterface: z.ZodOptional<z.ZodString>; availableTriggers: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodString; friendlyName: z.ZodString; description: z.ZodString; }, "strip", z.ZodTypeAny, { type: string; description: string; friendlyName: string; }, { type: string; description: string; friendlyName: string; }>, "many">>; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; description?: string | undefined; triggerType?: string | undefined; serviceName?: string | undefined; friendlyName?: string | undefined; setupGuide?: string | undefined; payloadSchema?: string | undefined; payloadTypeInterface?: string | undefined; availableTriggers?: { type: string; description: string; friendlyName: string; }[] | undefined; }, { error: string; success: boolean; description?: string | undefined; triggerType?: string | undefined; serviceName?: string | undefined; friendlyName?: string | undefined; setupGuide?: string | undefined; payloadSchema?: string | undefined; payloadTypeInterface?: string | undefined; availableTriggers?: { type: string; description: string; friendlyName: string; }[] | undefined; }>; type GetTriggerDetailToolResult = z.output<typeof GetTriggerDetailToolResultSchema>; export declare class GetTriggerDetailTool extends ToolBubble<GetTriggerDetailToolParams, GetTriggerDetailToolResult> { static readonly type: "tool"; static readonly bubbleName = "get-trigger-detail-tool"; static readonly schema: z.ZodObject<{ triggerType: z.ZodOptional<z.ZodString>; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; }, "strip", z.ZodTypeAny, { credentials?: Partial<Record<CredentialType, string>> | undefined; triggerType?: string | undefined; }, { credentials?: Partial<Record<CredentialType, string>> | undefined; triggerType?: string | undefined; }>; static readonly resultSchema: z.ZodObject<{ triggerType: z.ZodOptional<z.ZodString>; serviceName: z.ZodOptional<z.ZodString>; friendlyName: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; setupGuide: z.ZodOptional<z.ZodString>; payloadSchema: z.ZodOptional<z.ZodString>; payloadTypeInterface: z.ZodOptional<z.ZodString>; availableTriggers: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodString; friendlyName: z.ZodString; description: z.ZodString; }, "strip", z.ZodTypeAny, { type: string; description: string; friendlyName: string; }, { type: string; description: string; friendlyName: string; }>, "many">>; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; description?: string | undefined; triggerType?: string | undefined; serviceName?: string | undefined; friendlyName?: string | undefined; setupGuide?: string | undefined; payloadSchema?: string | undefined; payloadTypeInterface?: string | undefined; availableTriggers?: { type: string; description: string; friendlyName: string; }[] | undefined; }, { error: string; success: boolean; description?: string | undefined; triggerType?: string | undefined; serviceName?: string | undefined; friendlyName?: string | undefined; setupGuide?: string | undefined; payloadSchema?: string | undefined; payloadTypeInterface?: string | undefined; availableTriggers?: { type: string; description: string; friendlyName: string; }[] | undefined; }>; static readonly shortDescription = "Provides detailed information about BubbleFlow trigger types including setup guides and payload schemas"; static readonly longDescription = "\n A tool that retrieves comprehensive information about BubbleFlow trigger types.\n\n Returns detailed information including:\n - Service name and friendly display name\n - Description of what the trigger does\n - Setup guide with step-by-step configuration instructions\n - Payload schema (JSON Schema format)\n - TypeScript interface name for proper typing\n\n Use cases:\n - Understanding how to configure a specific trigger (Slack, Cron, Webhook)\n - Getting the correct payload interface to extend in your BubbleFlow\n - Learning about available trigger types\n - Generating properly typed BubbleFlow code\n\n If no triggerType is specified, returns a list of all available triggers.\n "; static readonly alias = "trigger"; constructor(params: GetTriggerDetailToolParamsInput, context?: BubbleContext); performAction(context?: BubbleContext): Promise<GetTriggerDetailToolResult>; }
|
|
1028
|
+
export {}; export declare abstract class BaseBubble<TParams = unknown, TResult extends BubbleOperationResult = BubbleOperationResult> implements IBubble<TResult> { readonly name: string; readonly schema: z.ZodObject<z.ZodRawShape>; readonly resultSchema: z.ZodObject<z.ZodRawShape>; readonly shortDescription: string; readonly longDescription: string; readonly alias?: string; abstract readonly type: 'service' | 'workflow' | 'tool' | 'ui' | 'infra'; protected readonly params: TParams; protected context?: BubbleContext; previousResult: BubbleResult<BubbleOperationResult> | undefined; protected readonly instanceId?: string; constructor(params: unknown, context?: BubbleContext, instanceId?: string); private computeChildContext; saveResult<R extends BubbleOperationResult>(result: BubbleResult<R>): void; clearSavedResult(): void; toJSON(): Record<string, unknown>; action(): Promise<BubbleResult<TResult>>; generateMockResult(): BubbleResult<TResult>; generateMockResultWithSeed(seed: number): BubbleResult<TResult>; protected abstract performAction(context?: BubbleContext): Promise<TResult>; }
|
|
1029
|
+
export interface LangGraphTool { name: string; description: string; schema: z.ZodSchema; func<TResult extends BubbleOperationResult = BubbleOperationResult>(params: unknown): Promise<BubbleResult<TResult>>; }
|
|
1030
|
+
export declare abstract class ToolBubble<TParams extends ServiceBubbleParams = ServiceBubbleParams, TResult extends BubbleOperationResult = BubbleOperationResult> extends BaseBubble<TParams, TResult> implements IToolBubble<TResult> { readonly type: "tool"; constructor(params: unknown, context?: BubbleContext, instanceId?: string); static toolAgent(credentials?: Partial<Record<CredentialType, string>>, config?: Record<string, unknown>, context?: BubbleContext): LangGraphTool; }
|
|
1031
|
+
export declare class BubbleError extends Error { readonly variableId?: number; readonly bubbleName?: string; constructor(message: string, options?: { variableId?: number; bubbleName?: string; cause?: Error; }); }
|
|
1032
|
+
export declare class BubbleValidationError extends BubbleError { readonly validationErrors?: string[]; constructor(message: string, options?: { variableId?: number; bubbleName?: string; validationErrors?: string[]; cause?: Error; }); }
|
|
1033
|
+
export declare class BubbleExecutionError extends BubbleError { readonly executionPhase?: 'instantiation' | 'execution' | 'validation'; constructor(message: string, options?: { variableId?: number; bubbleName?: string; executionPhase?: 'instantiation' | 'execution' | 'validation'; cause?: Error; }); }
|
|
1034
|
+
export declare enum LogLevel { TRACE = 0, DEBUG = 1, INFO = 2, WARN = 3, ERROR = 4, FATAL = 5 }
|
|
1035
|
+
export interface LogEntry { id: string; timestamp: number; level: LogLevel; message: string; metadata: LogMetadata; duration?: number; }
|
|
1036
|
+
export interface LogServiceUsage { usage: number; service: CredentialType; unit: string; subService?: string; }
|
|
1037
|
+
export interface LogMetadata { flowName: string; variableId?: number; lineNumber?: number; functionName?: string; bubbleName?: string; variableName?: string; operationType?: 'bubble_instantiation' | 'bubble_execution' | 'variable_assignment' | 'condition' | 'loop_iteration' | 'script' | 'bubble_execution_complete' | 'function_call'; memoryUsage?: NodeJS.MemoryUsage; stackTrace?: string; additionalData?: Record<string, unknown>; serviceUsage?: LogServiceUsage; }
|
|
1038
|
+
export interface LoggerConfig { minLevel: LogLevel; enableTiming: boolean; enableMemoryTracking: boolean; enableStackTraces: boolean; maxLogEntries: number; bufferSize: number; flushInterval?: number; pricingTable: Record<string, { unit: string; unitCost: number; }>; userCredentialMapping?: Map<number, Set<CredentialType>>; }
|
|
1039
|
+
export declare class BubbleLogger { private flowName; private config; private logs; private startTime; private lastLogTime; private executionId; private lineTimings; private lineLogCounts; private peakMemoryUsage?; private buffer; private flushTimer?; cumulativeServiceUsageByService: Map<string, Map<number, { usage: number; service: CredentialType; subService?: string; unit: string; }>>; private bubbleStartTimes; private functionCallStartTimes; private userCredentialMapping?; constructor(flowName: string, config: Partial<Omit<LoggerConfig, 'pricingTable'>> & { pricingTable: Record<string, { unit: string; unitCost: number; }>; }); logLine(lineNumber: number, message: string, additionalData?: Record<string, unknown>): string; protected shouldLogLine(lineNumber: number): boolean; logBubbleInstantiation(variableId: number, bubbleName: string, variableName: string, parameters?: Record<string, unknown>): string; logBubbleExecution(variableId: number, bubbleName: string, variableName: string, parameters?: Record<string, unknown>): string; logBubbleExecutionComplete(variableId: number, bubbleName: string, variableName: string, result?: unknown): string; logVariableAssignment(lineNumber: number, variableName: string, value: unknown): void; logControlFlow(lineNumber: number, type: 'condition' | 'loop_iteration', condition: string, result?: boolean): void; protected getServiceUsageKey(service: LogServiceUsage, unitCost?: number): string; addServiceUsage(serviceUsage: LogServiceUsage, variableId?: number): void; logTokenUsage(serviceUsage: LogServiceUsage, message?: string, metadata?: Partial<LogMetadata>): string; logToolCallStart(toolCallId: string, toolName: string, toolInput: unknown, message?: string): string; logToolCallComplete(toolCallId: string, toolName: string, toolInput: unknown, toolOutput: unknown, duration: number, message?: string): string; logFunctionCallStart(variableId: number, functionName: string, functionInput: unknown, lineNumber?: number): string; logFunctionCallComplete(variableId: number, functionName: string, functionOutput: unknown, duration: number, lineNumber?: number): string; protected getFunctionCallExecutionTime(variableId: number): number; log(level: LogLevel, message: string, metadata?: Partial<LogMetadata>): void; trace(message: string, metadata?: Partial<LogMetadata>): void; debug(message: string, metadata?: Partial<LogMetadata>): void; info(message: string, metadata?: Partial<LogMetadata>): void; warn(message: string, metadata?: Partial<LogMetadata>): void; error(message: string, error?: BubbleError, metadata?: Partial<LogMetadata>): void; fatal(message: string, error?: BubbleError, metadata?: Partial<LogMetadata>): void; flush(): void; getExecutionSummary(): ExecutionSummary; getLogs(): LogEntry[]; getLogsByLevel(level: LogLevel): LogEntry[]; getLogsByLine(lineNumber: number): LogEntry[]; exportLogs(format: 'json' | 'csv' | 'table'): string; dispose(): void; private captureStackTrace; private formatAsTable; protected getBubbleExecutionTime(variableId: number): number; logBrowserSessionStart(_sessionId: string, _sessionUrl: string, _variableId?: number): void; logBrowserSessionEnd(_sessionId: string, _variableId?: number): void; }
|
|
1040
|
+
export interface IBubble<TResult extends BubbleOperationResult = BubbleOperationResult> { readonly name: string; readonly schema: z.ZodObject<z.ZodRawShape>; readonly resultSchema: z.ZodObject<z.ZodRawShape>; readonly shortDescription: string; readonly longDescription: string; readonly alias?: string; readonly type: 'service' | 'workflow' | 'tool' | 'ui' | 'infra'; previousResult: BubbleResult<BubbleOperationResult> | undefined; action: () => Promise<BubbleResult<TResult>>; saveResult: <R extends BubbleOperationResult>(result: BubbleResult<R>) => void; clearSavedResult: () => void; generateMockResult: () => BubbleResult<TResult>; generateMockResultWithSeed: (seed: number) => BubbleResult<TResult>; }
|
|
1041
|
+
export interface IServiceBubble<TParams extends Record<string, unknown> = Record<string, unknown>, TResult extends BubbleOperationResult = BubbleOperationResult> extends IBubble<TResult> { readonly type: 'service'; authType?: 'oauth' | 'apikey' | 'none' | 'connection-string'; testCredential: () => Promise<boolean>; setParam: <K extends keyof TParams>(paramName: K, paramValue: TParams[K]) => void; getCredentialMetadata: () => Promise<DatabaseMetadata | undefined>; }
|
|
1042
|
+
export interface IWorkflowBubble<TResult extends BubbleOperationResult = BubbleOperationResult> extends IBubble<TResult> { readonly type: 'workflow'; }
|
|
1043
|
+
export interface IToolBubble<TResult extends BubbleOperationResult = BubbleOperationResult> extends IBubble<TResult> { readonly type: 'tool'; }
|
|
1044
|
+
export interface IUIBubble extends IBubble { readonly type: 'ui'; template: string; }
|
|
1045
|
+
export interface IInfraBubble extends IBubble { readonly type: 'infra'; provider: 'aws' | 'gcp' | 'supabase'; resourceType: string; }
|
|
1046
|
+
export type BubbleFlowOperationResult = unknown; export interface BubbleContext { logger?: BubbleLogger; variableId?: number; invocationCallSiteKey?: string; dependencyGraph?: DependencyGraphNode; currentUniqueId?: string; __uniqueIdCounters__?: Record<string, number>; [key: string]: unknown; }
|
|
1024
1047
|
export type ServiceBubbleParams<T = unknown> = T & { credentials?: CredentialOptions; retries?: number; }; declare const SQLQueryToolParamsSchema: z.ZodObject<{ query: z.ZodString; reasoning: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { reasoning: string; query: string; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }, { reasoning: string; query: string; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }>; type SQLQueryToolParamsInput = z.input<typeof SQLQueryToolParamsSchema>;; type SQLQueryToolParams = z.output<typeof SQLQueryToolParamsSchema>; type SQLQueryToolResult = z.output<typeof SQLQueryToolResultSchema>; declare const SQLQueryToolResultSchema: z.ZodObject<{ rows: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>; rowCount: z.ZodNumber; executionTime: z.ZodNumber; fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; dataTypeID: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { name: string; dataTypeID?: number | undefined; }, { name: string; dataTypeID?: number | undefined; }>, "many">>; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { executionTime: number; error: string; success: boolean; rowCount: number; rows?: Record<string, unknown>[] | undefined; fields?: { name: string; dataTypeID?: number | undefined; }[] | undefined; }, { executionTime: number; error: string; success: boolean; rowCount: number; rows?: Record<string, unknown>[] | undefined; fields?: { name: string; dataTypeID?: number | undefined; }[] | undefined; }>; export declare class SQLQueryTool extends ToolBubble<SQLQueryToolParams, SQLQueryToolResult> { static readonly type: "tool"; static readonly bubbleName = "sql-query-tool"; static readonly schema: z.ZodObject<{ query: z.ZodString; reasoning: z.ZodString; credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>; config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { reasoning: string; query: string; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }, { reasoning: string; query: string; credentials?: Partial<Record<CredentialType, string>> | undefined; config?: Record<string, unknown> | undefined; }>; static readonly resultSchema: z.ZodObject<{ rows: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>; rowCount: z.ZodNumber; executionTime: z.ZodNumber; fields: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; dataTypeID: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { name: string; dataTypeID?: number | undefined; }, { name: string; dataTypeID?: number | undefined; }>, "many">>; success: z.ZodBoolean; error: z.ZodString; }, "strip", z.ZodTypeAny, { executionTime: number; error: string; success: boolean; rowCount: number; rows?: Record<string, unknown>[] | undefined; fields?: { name: string; dataTypeID?: number | undefined; }[] | undefined; }, { executionTime: number; error: string; success: boolean; rowCount: number; rows?: Record<string, unknown>[] | undefined; fields?: { name: string; dataTypeID?: number | undefined; }[] | undefined; }>; static readonly shortDescription = "Execute read-only SQL queries against PostgreSQL databases for data analysis"; static readonly longDescription = "\n A tool bubble that provides safe, read-only SQL query execution against PostgreSQL databases.\n \n Features:\n - Execute SELECT, WITH, EXPLAIN, ANALYZE, SHOW, and DESCRIBE queries\n - Automatic query timeout and row limit enforcement (30s timeout, 1000 rows max)\n - Clean JSON formatting of results for AI consumption\n - Detailed execution metadata including timing and row counts\n \n Security:\n - Read-only operations enforced\n - Query timeout protection (30 seconds)\n - Row limit protection (1000 rows max)\n \n Use cases:\n - AI agents performing iterative database exploration\n - Data analysis and business intelligence queries\n - Schema discovery and table introspection\n - Performance analysis with EXPLAIN queries\n - Automated reporting and data extraction\n "; static readonly alias = "sql"; constructor(params: SQLQueryToolParamsInput, context?: BubbleContext); performAction(context?: BubbleContext): Promise<SQLQueryToolResult>; }
|
|
1025
1048
|
export {}; export declare abstract class BaseBubble<TParams = unknown, TResult extends BubbleOperationResult = BubbleOperationResult> implements IBubble<TResult> { readonly name: string; readonly schema: z.ZodObject<z.ZodRawShape>; readonly resultSchema: z.ZodObject<z.ZodRawShape>; readonly shortDescription: string; readonly longDescription: string; readonly alias?: string; abstract readonly type: 'service' | 'workflow' | 'tool' | 'ui' | 'infra'; protected readonly params: TParams; protected context?: BubbleContext; previousResult: BubbleResult<BubbleOperationResult> | undefined; protected readonly instanceId?: string; constructor(params: unknown, context?: BubbleContext, instanceId?: string); private computeChildContext; saveResult<R extends BubbleOperationResult>(result: BubbleResult<R>): void; clearSavedResult(): void; toJSON(): Record<string, unknown>; action(): Promise<BubbleResult<TResult>>; generateMockResult(): BubbleResult<TResult>; generateMockResultWithSeed(seed: number): BubbleResult<TResult>; protected abstract performAction(context?: BubbleContext): Promise<TResult>; }
|
|
1026
1049
|
export interface LangGraphTool { name: string; description: string; schema: z.ZodSchema; func<TResult extends BubbleOperationResult = BubbleOperationResult>(params: unknown): Promise<BubbleResult<TResult>>; }
|